text
stringlengths 2
1.04M
| meta
dict |
---|---|
var requirejs = require('../../r.js');
//Try an optimization pass.
requirejs.optimize({
baseUrl: '../../../requirejs/tests',
name: 'one',
include: 'dimple',
out: 'builds/outSingleOpt.js',
optimize: 'none'
}, function (resultText) {
console.log('requirejs.optimize:\n===================\n' + resultText);
//Test error path
requirejs.optimize({
baseUrl: 'lib/missingDep',
name: 'main',
optimize: 'none',
out: 'lib/missingDep/out.js'
}, function () {
console.log('nodeOptimize.js: callback called. THIS SHOULD BE AN ERROR');
process.exit(1);
}, function (err) {
console.log('nodeOptimize.js: error path for requirejs.optimize() correctly called: ' + err);
console.log('');
});
});
| {
"content_hash": "5fe012c8aac3ae1353ee8b0452c37f91",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 101,
"avg_line_length": 29.214285714285715,
"alnum_prop": 0.5537897310513448,
"repo_name": "quantumlicht/collarbone",
"id": "7a6590083520acd046b2aeb7c414cdc268497952",
"size": "818",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "public/js/libs/rjs/build/tests/nodeOptimize.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "1060737"
},
{
"name": "CoffeeScript",
"bytes": "96"
},
{
"name": "JavaScript",
"bytes": "5791376"
},
{
"name": "Python",
"bytes": "3630"
},
{
"name": "Ruby",
"bytes": "9730"
},
{
"name": "Shell",
"bytes": "2421"
}
],
"symlink_target": ""
} |
namespace spider {
namespace {
const ::google::protobuf::Descriptor* consumer_register_req_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
consumer_register_req_reflection_ = NULL;
} // namespace
void protobuf_AssignDesc_consumer_5fregister_5freq_2eproto() {
protobuf_AddDesc_consumer_5fregister_5freq_2eproto();
const ::google::protobuf::FileDescriptor* file =
::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
"consumer_register_req.proto");
GOOGLE_CHECK(file != NULL);
consumer_register_req_descriptor_ = file->message_type(0);
static const int consumer_register_req_offsets_[1] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(consumer_register_req, id_),
};
consumer_register_req_reflection_ =
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
consumer_register_req_descriptor_,
consumer_register_req::default_instance_,
consumer_register_req_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(consumer_register_req, _has_bits_[0]),
-1,
-1,
sizeof(consumer_register_req),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(consumer_register_req, _internal_metadata_),
-1);
}
namespace {
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
inline void protobuf_AssignDescriptorsOnce() {
::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
&protobuf_AssignDesc_consumer_5fregister_5freq_2eproto);
}
void protobuf_RegisterTypes(const ::std::string&) {
protobuf_AssignDescriptorsOnce();
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
consumer_register_req_descriptor_, &consumer_register_req::default_instance());
}
} // namespace
void protobuf_ShutdownFile_consumer_5fregister_5freq_2eproto() {
delete consumer_register_req::default_instance_;
delete consumer_register_req_reflection_;
}
void protobuf_AddDesc_consumer_5fregister_5freq_2eproto() {
static bool already_here = false;
if (already_here) return;
already_here = true;
GOOGLE_PROTOBUF_VERIFY_VERSION;
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
"\n\033consumer_register_req.proto\022\006spider\"#\n"
"\025consumer_register_req\022\n\n\002id\030\001 \002(\005", 74);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"consumer_register_req.proto", &protobuf_RegisterTypes);
consumer_register_req::default_instance_ = new consumer_register_req();
consumer_register_req::default_instance_->InitAsDefaultInstance();
::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_consumer_5fregister_5freq_2eproto);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_consumer_5fregister_5freq_2eproto {
StaticDescriptorInitializer_consumer_5fregister_5freq_2eproto() {
protobuf_AddDesc_consumer_5fregister_5freq_2eproto();
}
} static_descriptor_initializer_consumer_5fregister_5freq_2eproto_;
namespace {
static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD;
static void MergeFromFail(int line) {
GOOGLE_CHECK(false) << __FILE__ << ":" << line;
}
} // namespace
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int consumer_register_req::kIdFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
consumer_register_req::consumer_register_req()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
SharedCtor();
// @@protoc_insertion_point(constructor:spider.consumer_register_req)
}
void consumer_register_req::InitAsDefaultInstance() {
}
consumer_register_req::consumer_register_req(const consumer_register_req& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL) {
SharedCtor();
MergeFrom(from);
// @@protoc_insertion_point(copy_constructor:spider.consumer_register_req)
}
void consumer_register_req::SharedCtor() {
_cached_size_ = 0;
id_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
consumer_register_req::~consumer_register_req() {
// @@protoc_insertion_point(destructor:spider.consumer_register_req)
SharedDtor();
}
void consumer_register_req::SharedDtor() {
if (this != default_instance_) {
}
}
void consumer_register_req::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* consumer_register_req::descriptor() {
protobuf_AssignDescriptorsOnce();
return consumer_register_req_descriptor_;
}
const consumer_register_req& consumer_register_req::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_consumer_5fregister_5freq_2eproto();
return *default_instance_;
}
consumer_register_req* consumer_register_req::default_instance_ = NULL;
consumer_register_req* consumer_register_req::New(::google::protobuf::Arena* arena) const {
consumer_register_req* n = new consumer_register_req;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void consumer_register_req::Clear() {
id_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
if (_internal_metadata_.have_unknown_fields()) {
mutable_unknown_fields()->Clear();
}
}
bool consumer_register_req::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:spider.consumer_register_req)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required int32 id = 1;
case 1: {
if (tag == 8) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &id_)));
set_has_id();
} else {
goto handle_unusual;
}
if (input->ExpectAtEnd()) goto success;
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:spider.consumer_register_req)
return true;
failure:
// @@protoc_insertion_point(parse_failure:spider.consumer_register_req)
return false;
#undef DO_
}
void consumer_register_req::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:spider.consumer_register_req)
// required int32 id = 1;
if (has_id()) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->id(), output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:spider.consumer_register_req)
}
::google::protobuf::uint8* consumer_register_req::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:spider.consumer_register_req)
// required int32 id = 1;
if (has_id()) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->id(), target);
}
if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:spider.consumer_register_req)
return target;
}
int consumer_register_req::ByteSize() const {
int total_size = 0;
// required int32 id = 1;
if (has_id()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->id());
}
if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void consumer_register_req::MergeFrom(const ::google::protobuf::Message& from) {
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
const consumer_register_req* source =
::google::protobuf::internal::DynamicCastToGenerated<const consumer_register_req>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void consumer_register_req::MergeFrom(const consumer_register_req& from) {
if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_id()) {
set_id(from.id());
}
}
if (from._internal_metadata_.have_unknown_fields()) {
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
}
void consumer_register_req::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void consumer_register_req::CopyFrom(const consumer_register_req& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool consumer_register_req::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
return true;
}
void consumer_register_req::Swap(consumer_register_req* other) {
if (other == this) return;
InternalSwap(other);
}
void consumer_register_req::InternalSwap(consumer_register_req* other) {
std::swap(id_, other->id_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_internal_metadata_.Swap(&other->_internal_metadata_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata consumer_register_req::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = consumer_register_req_descriptor_;
metadata.reflection = consumer_register_req_reflection_;
return metadata;
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// consumer_register_req
// required int32 id = 1;
bool consumer_register_req::has_id() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
void consumer_register_req::set_has_id() {
_has_bits_[0] |= 0x00000001u;
}
void consumer_register_req::clear_has_id() {
_has_bits_[0] &= ~0x00000001u;
}
void consumer_register_req::clear_id() {
id_ = 0;
clear_has_id();
}
::google::protobuf::int32 consumer_register_req::id() const {
// @@protoc_insertion_point(field_get:spider.consumer_register_req.id)
return id_;
}
void consumer_register_req::set_id(::google::protobuf::int32 value) {
set_has_id();
id_ = value;
// @@protoc_insertion_point(field_set:spider.consumer_register_req.id)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// @@protoc_insertion_point(namespace_scope)
} // namespace spider
// @@protoc_insertion_point(global_scope)
| {
"content_hash": "b956f0d84109d433d84e17e1ff4912c1",
"timestamp": "",
"source": "github",
"line_count": 352,
"max_line_length": 104,
"avg_line_length": 32.51136363636363,
"alnum_prop": 0.688395665851101,
"repo_name": "wonghoifung/learning-python",
"id": "8cd8050182edecba3d649138abf35bcd91ce1aa8",
"size": "12097",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "spider/spider_url_dispatcher/pb/consumer_register_req.pb.cc",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "820"
},
{
"name": "C++",
"bytes": "251188"
},
{
"name": "Makefile",
"bytes": "5904"
},
{
"name": "Protocol Buffer",
"bytes": "1048"
},
{
"name": "Python",
"bytes": "55691"
},
{
"name": "Shell",
"bytes": "5105"
},
{
"name": "Thrift",
"bytes": "442"
}
],
"symlink_target": ""
} |
SYNONYM
#### According to
Index Fungorum
#### Published in
Fragm. flor. geobot. (Kraków) 20(1): 97 (1974)
#### Original name
Mycoblastus alpinus (Fr.) Th. Fr. ex Hellb.
### Remarks
null | {
"content_hash": "3d709818d95a67ae52019da38486fe7f",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 46,
"avg_line_length": 14.538461538461538,
"alnum_prop": 0.6666666666666666,
"repo_name": "mdoering/backbone",
"id": "6b63e586a5a373799cd4feb52ac3a0157a644445",
"size": "261",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Fungi/Ascomycota/Lecanoromycetes/Lecanorales/Mycoblastaceae/Mycoblastus/Mycoblastus alpinus/ Syn. Mycoblastus affinis friesii/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
package demo.warehouse;
import demo.warehouse.domain.Warehouse;
import demo.warehouse.domain.WarehouseStatus;
import demo.warehouse.event.WarehouseEvent;
import demo.warehouse.event.WarehouseEventType;
import demo.warehouse.event.WarehouseEvents;
import org.springframework.statemachine.StateMachine;
import org.springframework.statemachine.config.StateMachineFactory;
import org.springframework.stereotype.Service;
import java.util.UUID;
/**
* The {@link WarehouseStateService} provides factory access to get new state machines for
* replicating the state of an {@link Warehouse} from {@link WarehouseEvents}.
*
* @author kbastani
*/
@Service
public class WarehouseStateService {
private final StateMachineFactory<WarehouseStatus, WarehouseEventType> factory;
public WarehouseStateService(StateMachineFactory<WarehouseStatus, WarehouseEventType> warehouseStateMachineFactory) {
this.factory = warehouseStateMachineFactory;
}
/**
* Create a new state machine that is initially configured and ready for replicating
* the state of an {@link Warehouse} from a sequence of {@link WarehouseEvent}.
*
* @return a new instance of {@link StateMachine}
*/
public StateMachine<WarehouseStatus, WarehouseEventType> newStateMachine() {
// Create a new state machine in its initial state
StateMachine<WarehouseStatus, WarehouseEventType> stateMachine =
factory.getStateMachine(UUID.randomUUID().toString());
// Start the new state machine
stateMachine.start();
return stateMachine;
}
}
| {
"content_hash": "c71da24f471d58556bcf1d2af9d8f31f",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 121,
"avg_line_length": 35.53333333333333,
"alnum_prop": 0.756722951844903,
"repo_name": "naheedmk/event-stream-processing-microservices",
"id": "3a598a2848e9311a8112fd2b6099ba28710db2a1",
"size": "1599",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "warehouse/warehouse-worker/src/main/java/demo/warehouse/WarehouseStateService.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "2324"
},
{
"name": "HTML",
"bytes": "7972"
},
{
"name": "Java",
"bytes": "652701"
},
{
"name": "JavaScript",
"bytes": "1670536"
}
],
"symlink_target": ""
} |
Isomorphisms, sections, retractions. With printing and parsing in mind.
The aim is to write a nice collection, which could also be reused by
parser combinators.
Also trying to find out whether they could be usable for direct
parsing and printing.
| {
"content_hash": "6dbeaeab14254e2db41d4c2f053c3f25",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 71,
"avg_line_length": 35.57142857142857,
"alnum_prop": 0.8032128514056225,
"repo_name": "defanor/morphisms",
"id": "654c863c7fdb5f2f2dd8c81780c24a71e8eff772",
"size": "262",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Idris",
"bytes": "17355"
}
],
"symlink_target": ""
} |
.class public Lcom/android/internal/telephony/gsm/SuppServiceNotification;
.super Ljava/lang/Object;
.source "SuppServiceNotification.java"
# static fields
.field public static final MO_CODE_CALL_DEFLECTED:I = 0x8
.field public static final MO_CODE_CALL_FORWARDED:I = 0x2
.field public static final MO_CODE_CALL_FORWARDED_TO:I = 0x9
.field public static final MO_CODE_CALL_IS_EMERGENCY:I = 0xa
.field public static final MO_CODE_CALL_IS_WAITING:I = 0x3
.field public static final MO_CODE_CLIR_SUPPRESSION_REJECTED:I = 0x7
.field public static final MO_CODE_CUG_CALL:I = 0x4
.field public static final MO_CODE_INCOMING_CALLS_BARRED:I = 0x6
.field public static final MO_CODE_OUTGOING_CALLS_BARRED:I = 0x5
.field public static final MO_CODE_SOME_CF_ACTIVE:I = 0x1
.field public static final MO_CODE_UNCONDITIONAL_CF_ACTIVE:I = 0x0
.field public static final MT_CODE_ADDITIONAL_CALL_FORWARDED:I = 0xa
.field public static final MT_CODE_CALL_CONNECTED_ECT:I = 0x8
.field public static final MT_CODE_CALL_CONNECTING_ECT:I = 0x7
.field public static final MT_CODE_CALL_ON_HOLD:I = 0x2
.field public static final MT_CODE_CALL_RETRIEVED:I = 0x3
.field public static final MT_CODE_CUG_CALL:I = 0x1
.field public static final MT_CODE_DEFLECTED_CALL:I = 0x9
.field public static final MT_CODE_FORWARDED_CALL:I = 0x0
.field public static final MT_CODE_FORWARDED_CF:I = 0xb
.field public static final MT_CODE_FORWARDED_CF_BUSY:I = 0xe
.field public static final MT_CODE_FORWARDED_CF_COND:I = 0xd
.field public static final MT_CODE_FORWARDED_CF_NOT_REACHABLE:I = 0x10
.field public static final MT_CODE_FORWARDED_CF_NO_REPLY:I = 0xf
.field public static final MT_CODE_FORWARDED_CF_UNCOND:I = 0xc
.field public static final MT_CODE_FORWARD_CHECK_RECEIVED:I = 0x6
.field public static final MT_CODE_MULTI_PARTY_CALL:I = 0x4
.field public static final MT_CODE_ON_HOLD_CALL_RELEASED:I = 0x5
# instance fields
.field public code:I
.field public index:I
.field public notificationType:I
.field public number:Ljava/lang/String;
.field public type:I
# direct methods
.method public constructor <init>()V
.locals 0
.prologue
.line 26
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public toString()Ljava/lang/String;
.locals 3
.prologue
.line 76
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-super {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, " mobile"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget v0, p0, Lcom/android/internal/telephony/gsm/SuppServiceNotification;->notificationType:I
if-nez v0, :cond_0
const-string v0, " originated "
:goto_0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, " code: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget v1, p0, Lcom/android/internal/telephony/gsm/SuppServiceNotification;->code:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, " index: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget v1, p0, Lcom/android/internal/telephony/gsm/SuppServiceNotification;->index:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, " \""
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lcom/android/internal/telephony/gsm/SuppServiceNotification;->number:Ljava/lang/String;
iget v2, p0, Lcom/android/internal/telephony/gsm/SuppServiceNotification;->type:I
invoke-static {v1, v2}, Landroid/telephony/PhoneNumberUtils;->stringFromStringAndTOA(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "\" "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
:cond_0
const-string v0, " terminated "
goto :goto_0
.end method
| {
"content_hash": "87c762c49f538f81f28b6a9f08d47a45",
"timestamp": "",
"source": "github",
"line_count": 181,
"max_line_length": 127,
"avg_line_length": 27.353591160220994,
"alnum_prop": 0.7337911533023631,
"repo_name": "GaHoKwan/tos_device_meizu_mx4",
"id": "3f22e9201e4890ad1c5007d8b8de7944ad9d8e1b",
"size": "4951",
"binary": false,
"copies": "2",
"ref": "refs/heads/TPS-YUNOS",
"path": "patch/smali/pack/telephony-common.jar/smali/com/android/internal/telephony/gsm/SuppServiceNotification.smali",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "2407"
},
{
"name": "Groff",
"bytes": "8687"
},
{
"name": "Makefile",
"bytes": "31774"
},
{
"name": "Shell",
"bytes": "6226"
},
{
"name": "Smali",
"bytes": "350951922"
}
],
"symlink_target": ""
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Wed Dec 02 13:39:44 MST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class org.wildfly.swarm.config.security.security_domain.ClassicAuthorization (BOM: * : All 2.7.1.Final-SNAPSHOT API)</title>
<meta name="date" content="2020-12-02">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class org.wildfly.swarm.config.security.security_domain.ClassicAuthorization (BOM: * : All 2.7.1.Final-SNAPSHOT API)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/ClassicAuthorization.html" title="class in org.wildfly.swarm.config.security.security_domain">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../../../../../../../overview-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">Thorntail API, 2.7.1.Final-SNAPSHOT</div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/wildfly/swarm/config/security/security_domain/class-use/ClassicAuthorization.html" target="_top">Frames</a></li>
<li><a href="ClassicAuthorization.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Class org.wildfly.swarm.config.security.security_domain.ClassicAuthorization" class="title">Uses of Class<br>org.wildfly.swarm.config.security.security_domain.ClassicAuthorization</h2>
</div>
<div class="classUseContainer">
<ul class="blockList">
<li class="blockList">
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/ClassicAuthorization.html" title="class in org.wildfly.swarm.config.security.security_domain">ClassicAuthorization</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#org.wildfly.swarm.config.security">org.wildfly.swarm.config.security</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.wildfly.swarm.config.security.security_domain">org.wildfly.swarm.config.security.security_domain</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="org.wildfly.swarm.config.security">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/ClassicAuthorization.html" title="class in org.wildfly.swarm.config.security.security_domain">ClassicAuthorization</a> in <a href="../../../../../../../org/wildfly/swarm/config/security/package-summary.html">org.wildfly.swarm.config.security</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../../org/wildfly/swarm/config/security/package-summary.html">org.wildfly.swarm.config.security</a> that return <a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/ClassicAuthorization.html" title="class in org.wildfly.swarm.config.security.security_domain">ClassicAuthorization</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/ClassicAuthorization.html" title="class in org.wildfly.swarm.config.security.security_domain">ClassicAuthorization</a></code></td>
<td class="colLast"><span class="typeNameLabel">SecurityDomain.SecurityDomainResources.</span><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/security/SecurityDomain.SecurityDomainResources.html#classicAuthorization--">classicAuthorization</a></span>()</code>
<div class="block">Authorization configuration.</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../../org/wildfly/swarm/config/security/package-summary.html">org.wildfly.swarm.config.security</a> with parameters of type <a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/ClassicAuthorization.html" title="class in org.wildfly.swarm.config.security.security_domain">ClassicAuthorization</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/wildfly/swarm/config/security/SecurityDomain.html" title="type parameter in SecurityDomain">T</a></code></td>
<td class="colLast"><span class="typeNameLabel">SecurityDomain.</span><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/security/SecurityDomain.html#classicAuthorization-org.wildfly.swarm.config.security.security_domain.ClassicAuthorization-">classicAuthorization</a></span>(<a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/ClassicAuthorization.html" title="class in org.wildfly.swarm.config.security.security_domain">ClassicAuthorization</a> value)</code>
<div class="block">Authorization configuration.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.wildfly.swarm.config.security.security_domain">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/ClassicAuthorization.html" title="class in org.wildfly.swarm.config.security.security_domain">ClassicAuthorization</a> in <a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/package-summary.html">org.wildfly.swarm.config.security.security_domain</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/package-summary.html">org.wildfly.swarm.config.security.security_domain</a> with type parameters of type <a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/ClassicAuthorization.html" title="class in org.wildfly.swarm.config.security.security_domain">ClassicAuthorization</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/ClassicAuthorization.html" title="class in org.wildfly.swarm.config.security.security_domain">ClassicAuthorization</a><T extends <a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/ClassicAuthorization.html" title="class in org.wildfly.swarm.config.security.security_domain">ClassicAuthorization</a><T>></span></code>
<div class="block">Authorization configuration.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/ClassicAuthorizationConsumer.html" title="interface in org.wildfly.swarm.config.security.security_domain">ClassicAuthorizationConsumer</a><T extends <a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/ClassicAuthorization.html" title="class in org.wildfly.swarm.config.security.security_domain">ClassicAuthorization</a><T>></span></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/ClassicAuthorizationSupplier.html" title="interface in org.wildfly.swarm.config.security.security_domain">ClassicAuthorizationSupplier</a><T extends <a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/ClassicAuthorization.html" title="class in org.wildfly.swarm.config.security.security_domain">ClassicAuthorization</a>></span></code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/package-summary.html">org.wildfly.swarm.config.security.security_domain</a> that return <a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/ClassicAuthorization.html" title="class in org.wildfly.swarm.config.security.security_domain">ClassicAuthorization</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/ClassicAuthorization.html" title="class in org.wildfly.swarm.config.security.security_domain">ClassicAuthorization</a></code></td>
<td class="colLast"><span class="typeNameLabel">ClassicAuthorizationSupplier.</span><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/ClassicAuthorizationSupplier.html#get--">get</a></span>()</code>
<div class="block">Constructed instance of ClassicAuthorization resource</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../../org/wildfly/swarm/config/security/security_domain/ClassicAuthorization.html" title="class in org.wildfly.swarm.config.security.security_domain">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../../../../../../../overview-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">Thorntail API, 2.7.1.Final-SNAPSHOT</div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/wildfly/swarm/config/security/security_domain/class-use/ClassicAuthorization.html" target="_top">Frames</a></li>
<li><a href="ClassicAuthorization.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2020 <a href="http://www.jboss.org">JBoss by Red Hat</a>. All rights reserved.</small></p>
</body>
</html>
| {
"content_hash": "feafa778a11575d935af230675268dee",
"timestamp": "",
"source": "github",
"line_count": 232,
"max_line_length": 532,
"avg_line_length": 59.831896551724135,
"alnum_prop": 0.6810748505150925,
"repo_name": "wildfly-swarm/wildfly-swarm-javadocs",
"id": "60d25c1ff109f89f616813bc297646ca1d4b0c79",
"size": "13881",
"binary": false,
"copies": "1",
"ref": "refs/heads/gh-pages",
"path": "2.7.1.Final-SNAPSHOT/apidocs/org/wildfly/swarm/config/security/security_domain/class-use/ClassicAuthorization.html",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
package org.apache.ignite.internal.processors.query.h2;
import java.sql.BatchUpdateException;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.TimeUnit;
import java.util.stream.Stream;
import javax.cache.CacheException;
import org.apache.ignite.IgniteCheckedException;
import org.apache.ignite.IgniteDataStreamer;
import org.apache.ignite.IgniteException;
import org.apache.ignite.IgniteLogger;
import org.apache.ignite.IgniteSystemProperties;
import org.apache.ignite.cache.CacheServerNotFoundException;
import org.apache.ignite.cache.query.FieldsQueryCursor;
import org.apache.ignite.cache.query.QueryCancelledException;
import org.apache.ignite.cache.query.SqlFieldsQuery;
import org.apache.ignite.cache.query.SqlQuery;
import org.apache.ignite.cluster.ClusterNode;
import org.apache.ignite.events.DiscoveryEvent;
import org.apache.ignite.events.EventType;
import org.apache.ignite.events.SqlQueryExecutionEvent;
import org.apache.ignite.internal.GridKernalContext;
import org.apache.ignite.internal.GridTopic;
import org.apache.ignite.internal.IgniteInternalFuture;
import org.apache.ignite.internal.cache.query.index.IndexName;
import org.apache.ignite.internal.cache.query.index.sorted.IndexKeyTypes;
import org.apache.ignite.internal.cache.query.index.sorted.inline.InlineIndex;
import org.apache.ignite.internal.cache.query.index.sorted.inline.InlineIndexFactory;
import org.apache.ignite.internal.cache.query.index.sorted.inline.InlineIndexImpl;
import org.apache.ignite.internal.cache.query.index.sorted.keys.IndexKeyFactory;
import org.apache.ignite.internal.cluster.ClusterTopologyServerNotFoundException;
import org.apache.ignite.internal.managers.IgniteMBeansManager;
import org.apache.ignite.internal.managers.communication.GridMessageListener;
import org.apache.ignite.internal.managers.eventstorage.GridLocalEventListener;
import org.apache.ignite.internal.mxbean.SqlQueryMXBean;
import org.apache.ignite.internal.mxbean.SqlQueryMXBeanImpl;
import org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion;
import org.apache.ignite.internal.processors.cache.CacheGroupDescriptor;
import org.apache.ignite.internal.processors.cache.CacheObjectValueContext;
import org.apache.ignite.internal.processors.cache.CacheOperationContext;
import org.apache.ignite.internal.processors.cache.DynamicCacheDescriptor;
import org.apache.ignite.internal.processors.cache.GridCacheContext;
import org.apache.ignite.internal.processors.cache.GridCacheContextInfo;
import org.apache.ignite.internal.processors.cache.KeyCacheObject;
import org.apache.ignite.internal.processors.cache.QueryCursorImpl;
import org.apache.ignite.internal.processors.cache.distributed.dht.IgniteClusterReadOnlyException;
import org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture;
import org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxLocal;
import org.apache.ignite.internal.processors.cache.mvcc.MvccQueryTracker;
import org.apache.ignite.internal.processors.cache.mvcc.MvccSnapshot;
import org.apache.ignite.internal.processors.cache.mvcc.MvccUtils;
import org.apache.ignite.internal.processors.cache.mvcc.StaticMvccQueryTracker;
import org.apache.ignite.internal.processors.cache.persistence.CacheDataRow;
import org.apache.ignite.internal.processors.cache.query.GridCacheQueryMarshallable;
import org.apache.ignite.internal.processors.cache.query.GridCacheQueryType;
import org.apache.ignite.internal.processors.cache.query.GridCacheTwoStepQuery;
import org.apache.ignite.internal.processors.cache.query.IgniteQueryErrorCode;
import org.apache.ignite.internal.processors.cache.query.RegisteredQueryCursor;
import org.apache.ignite.internal.processors.cache.transactions.IgniteTxAdapter;
import org.apache.ignite.internal.processors.cache.tree.CacheDataTree;
import org.apache.ignite.internal.processors.odbc.SqlStateCode;
import org.apache.ignite.internal.processors.odbc.jdbc.JdbcParameterMeta;
import org.apache.ignite.internal.processors.query.ColumnInformation;
import org.apache.ignite.internal.processors.query.EnlistOperation;
import org.apache.ignite.internal.processors.query.GridQueryCacheObjectsIterator;
import org.apache.ignite.internal.processors.query.GridQueryCancel;
import org.apache.ignite.internal.processors.query.GridQueryFieldMetadata;
import org.apache.ignite.internal.processors.query.GridQueryFieldsResult;
import org.apache.ignite.internal.processors.query.GridQueryFieldsResultAdapter;
import org.apache.ignite.internal.processors.query.GridQueryIndexing;
import org.apache.ignite.internal.processors.query.GridQueryProperty;
import org.apache.ignite.internal.processors.query.GridQueryTypeDescriptor;
import org.apache.ignite.internal.processors.query.GridRunningQueryInfo;
import org.apache.ignite.internal.processors.query.IgniteSQLException;
import org.apache.ignite.internal.processors.query.QueryField;
import org.apache.ignite.internal.processors.query.QueryIndexDescriptorImpl;
import org.apache.ignite.internal.processors.query.QueryUtils;
import org.apache.ignite.internal.processors.query.RunningQueryManager;
import org.apache.ignite.internal.processors.query.SqlClientContext;
import org.apache.ignite.internal.processors.query.TableInformation;
import org.apache.ignite.internal.processors.query.UpdateSourceIterator;
import org.apache.ignite.internal.processors.query.h2.affinity.H2PartitionResolver;
import org.apache.ignite.internal.processors.query.h2.affinity.PartitionExtractor;
import org.apache.ignite.internal.processors.query.h2.database.H2TreeClientIndex;
import org.apache.ignite.internal.processors.query.h2.database.H2TreeIndex;
import org.apache.ignite.internal.processors.query.h2.database.H2TreeIndexBase;
import org.apache.ignite.internal.processors.query.h2.dml.DmlDistributedPlanInfo;
import org.apache.ignite.internal.processors.query.h2.dml.DmlUpdateResultsIterator;
import org.apache.ignite.internal.processors.query.h2.dml.DmlUpdateSingleEntryIterator;
import org.apache.ignite.internal.processors.query.h2.dml.DmlUtils;
import org.apache.ignite.internal.processors.query.h2.dml.UpdateMode;
import org.apache.ignite.internal.processors.query.h2.dml.UpdatePlan;
import org.apache.ignite.internal.processors.query.h2.index.QueryIndexDefinition;
import org.apache.ignite.internal.processors.query.h2.index.client.ClientIndexDefinition;
import org.apache.ignite.internal.processors.query.h2.index.client.ClientIndexFactory;
import org.apache.ignite.internal.processors.query.h2.index.keys.DateIndexKey;
import org.apache.ignite.internal.processors.query.h2.index.keys.TimeIndexKey;
import org.apache.ignite.internal.processors.query.h2.index.keys.TimestampIndexKey;
import org.apache.ignite.internal.processors.query.h2.opt.GridH2IndexBase;
import org.apache.ignite.internal.processors.query.h2.opt.GridH2Table;
import org.apache.ignite.internal.processors.query.h2.opt.QueryContext;
import org.apache.ignite.internal.processors.query.h2.opt.QueryContextRegistry;
import org.apache.ignite.internal.processors.query.h2.sql.GridSqlConst;
import org.apache.ignite.internal.processors.query.h2.sql.GridSqlStatement;
import org.apache.ignite.internal.processors.query.h2.twostep.GridMapQueryExecutor;
import org.apache.ignite.internal.processors.query.h2.twostep.GridReduceQueryExecutor;
import org.apache.ignite.internal.processors.query.h2.twostep.PartitionReservationManager;
import org.apache.ignite.internal.processors.query.h2.twostep.messages.GridQueryCancelRequest;
import org.apache.ignite.internal.processors.query.h2.twostep.messages.GridQueryFailResponse;
import org.apache.ignite.internal.processors.query.h2.twostep.messages.GridQueryNextPageRequest;
import org.apache.ignite.internal.processors.query.h2.twostep.messages.GridQueryNextPageResponse;
import org.apache.ignite.internal.processors.query.h2.twostep.msg.GridH2DmlRequest;
import org.apache.ignite.internal.processors.query.h2.twostep.msg.GridH2DmlResponse;
import org.apache.ignite.internal.processors.query.h2.twostep.msg.GridH2QueryRequest;
import org.apache.ignite.internal.processors.query.schema.SchemaIndexCacheVisitor;
import org.apache.ignite.internal.processors.query.stat.IgniteStatisticsManager;
import org.apache.ignite.internal.processors.query.stat.IgniteStatisticsManagerImpl;
import org.apache.ignite.internal.processors.tracing.MTC;
import org.apache.ignite.internal.processors.tracing.MTC.TraceSurroundings;
import org.apache.ignite.internal.processors.tracing.Span;
import org.apache.ignite.internal.sql.command.SqlCommand;
import org.apache.ignite.internal.sql.command.SqlCommitTransactionCommand;
import org.apache.ignite.internal.sql.command.SqlRollbackTransactionCommand;
import org.apache.ignite.internal.sql.optimizer.affinity.PartitionResult;
import org.apache.ignite.internal.util.GridEmptyCloseableIterator;
import org.apache.ignite.internal.util.GridSpinBusyLock;
import org.apache.ignite.internal.util.IgniteUtils;
import org.apache.ignite.internal.util.lang.GridCloseableIterator;
import org.apache.ignite.internal.util.lang.GridPlainRunnable;
import org.apache.ignite.internal.util.lang.IgniteInClosure2X;
import org.apache.ignite.internal.util.lang.IgniteSingletonIterator;
import org.apache.ignite.internal.util.typedef.F;
import org.apache.ignite.internal.util.typedef.X;
import org.apache.ignite.internal.util.typedef.internal.CU;
import org.apache.ignite.internal.util.typedef.internal.U;
import org.apache.ignite.lang.IgniteBiClosure;
import org.apache.ignite.lang.IgniteBiTuple;
import org.apache.ignite.lang.IgniteFuture;
import org.apache.ignite.lang.IgniteInClosure;
import org.apache.ignite.marshaller.Marshaller;
import org.apache.ignite.plugin.extensions.communication.Message;
import org.apache.ignite.plugin.security.SecurityPermission;
import org.apache.ignite.resources.LoggerResource;
import org.apache.ignite.spi.indexing.IndexingQueryFilter;
import org.apache.ignite.spi.indexing.IndexingQueryFilterImpl;
import org.h2.api.ErrorCode;
import org.h2.api.JavaObjectSerializer;
import org.h2.engine.Session;
import org.h2.engine.SysProperties;
import org.h2.index.Index;
import org.h2.index.IndexType;
import org.h2.table.Column;
import org.h2.table.IndexColumn;
import org.h2.table.TableType;
import org.h2.util.JdbcUtils;
import org.h2.value.DataType;
import org.jetbrains.annotations.Nullable;
import static java.lang.Math.max;
import static java.lang.Math.min;
import static java.util.Collections.singletonList;
import static org.apache.ignite.IgniteSystemProperties.IGNITE_MVCC_TX_SIZE_CACHING_THRESHOLD;
import static org.apache.ignite.events.EventType.EVT_SQL_QUERY_EXECUTION;
import static org.apache.ignite.internal.processors.cache.mvcc.MvccCachingManager.TX_SIZE_THRESHOLD;
import static org.apache.ignite.internal.processors.cache.mvcc.MvccUtils.checkActive;
import static org.apache.ignite.internal.processors.cache.mvcc.MvccUtils.mvccEnabled;
import static org.apache.ignite.internal.processors.cache.mvcc.MvccUtils.requestSnapshot;
import static org.apache.ignite.internal.processors.cache.mvcc.MvccUtils.tx;
import static org.apache.ignite.internal.processors.cache.mvcc.MvccUtils.txStart;
import static org.apache.ignite.internal.processors.cache.query.GridCacheQueryType.TEXT;
import static org.apache.ignite.internal.processors.query.QueryUtils.matches;
import static org.apache.ignite.internal.processors.query.h2.H2Utils.UPDATE_RESULT_META;
import static org.apache.ignite.internal.processors.query.h2.H2Utils.generateFieldsQueryString;
import static org.apache.ignite.internal.processors.query.h2.H2Utils.session;
import static org.apache.ignite.internal.processors.query.h2.H2Utils.validateTypeDescriptor;
import static org.apache.ignite.internal.processors.query.h2.H2Utils.zeroCursor;
import static org.apache.ignite.internal.processors.tracing.SpanTags.ERROR;
import static org.apache.ignite.internal.processors.tracing.SpanTags.SQL_QRY_TEXT;
import static org.apache.ignite.internal.processors.tracing.SpanTags.SQL_SCHEMA;
import static org.apache.ignite.internal.processors.tracing.SpanType.SQL_CMD_QRY_EXECUTE;
import static org.apache.ignite.internal.processors.tracing.SpanType.SQL_CURSOR_OPEN;
import static org.apache.ignite.internal.processors.tracing.SpanType.SQL_DML_QRY_EXECUTE;
import static org.apache.ignite.internal.processors.tracing.SpanType.SQL_ITER_OPEN;
import static org.apache.ignite.internal.processors.tracing.SpanType.SQL_QRY;
import static org.apache.ignite.internal.processors.tracing.SpanType.SQL_QRY_EXECUTE;
/**
* Indexing implementation based on H2 database engine. In this implementation main query language is SQL,
* fulltext indexing can be performed using Lucene.
* <p>
* For each registered {@link GridQueryTypeDescriptor} this SPI will create respective SQL table with
* {@code '_key'} and {@code '_val'} fields for key and value, and fields from
* {@link GridQueryTypeDescriptor#fields()}.
* For each table it will create indexes declared in {@link GridQueryTypeDescriptor#indexes()}.
*/
public class IgniteH2Indexing implements GridQueryIndexing {
/** Default number of attempts to re-run DELETE and UPDATE queries in case of concurrent modifications of values. */
private static final int DFLT_UPDATE_RERUN_ATTEMPTS = 4;
/** Cached value of {@code IgniteSystemProperties.IGNITE_ALLOW_DML_INSIDE_TRANSACTION}. */
private final boolean updateInTxAllowed =
Boolean.getBoolean(IgniteSystemProperties.IGNITE_ALLOW_DML_INSIDE_TRANSACTION);
static {
// Register date/time types there as it contains H2 specific logic for storing and comparison those types.
IndexKeyFactory.register(IndexKeyTypes.DATE, DateIndexKey::new);
IndexKeyFactory.register(IndexKeyTypes.TIME, TimeIndexKey::new);
IndexKeyFactory.register(IndexKeyTypes.TIMESTAMP, TimestampIndexKey::new);
IndexKeyFactory.registerDateValueFactory(IndexKeyTypes.DATE, (dv, nanos) -> DateIndexKey.fromDateValue(dv));
IndexKeyFactory.registerDateValueFactory(IndexKeyTypes.TIME, (dv, nanos) -> TimeIndexKey.fromNanos(nanos));
IndexKeyFactory.registerDateValueFactory(IndexKeyTypes.TIMESTAMP, TimestampIndexKey::fromDateValueAndNanos);
}
/** Make it public for test purposes. */
public static InlineIndexFactory idxFactory = InlineIndexFactory.INSTANCE;
/** Logger. */
@LoggerResource
private IgniteLogger log;
/** Node ID. */
private UUID nodeId;
/** */
private Marshaller marshaller;
/** */
private GridMapQueryExecutor mapQryExec;
/** */
private GridReduceQueryExecutor rdcQryExec;
/** */
private GridSpinBusyLock busyLock;
/** */
protected volatile GridKernalContext ctx;
/** Query context registry. */
private final QueryContextRegistry qryCtxRegistry = new QueryContextRegistry();
/** Processor to execute commands which are neither SELECT, nor DML. */
private CommandProcessor cmdProc;
/** Partition reservation manager. */
private PartitionReservationManager partReservationMgr;
/** Partition extractor. */
private PartitionExtractor partExtractor;
/** Running query manager. */
private RunningQueryManager runningQryMgr;
/** Parser. */
private QueryParser parser;
/** */
private final IgniteInClosure<? super IgniteInternalFuture<?>> logger = new IgniteInClosure<IgniteInternalFuture<?>>() {
@Override public void apply(IgniteInternalFuture<?> fut) {
try {
fut.get();
}
catch (IgniteCheckedException e) {
U.error(log, e.getMessage(), e);
}
}
};
/** Query executor. */
private ConnectionManager connMgr;
/** Schema manager. */
private SchemaManager schemaMgr;
/** H2 Connection manager. */
private LongRunningQueryManager longRunningQryMgr;
/** Discovery event listener. */
private GridLocalEventListener discoLsnr;
/** Query message listener. */
private GridMessageListener qryLsnr;
/** Statistic manager. */
private IgniteStatisticsManager statsMgr;
/** Distributed config. */
private DistributedSqlConfiguration distrCfg;
/** Functions manager. */
private FunctionsManager funcMgr;
/**
* @return Kernal context.
*/
public GridKernalContext kernalContext() {
return ctx;
}
/** {@inheritDoc} */
@Override public List<JdbcParameterMeta> parameterMetaData(String schemaName, SqlFieldsQuery qry)
throws IgniteSQLException {
assert qry != null;
ArrayList<JdbcParameterMeta> metas = new ArrayList<>();
SqlFieldsQuery curQry = qry;
while (curQry != null) {
QueryParserResult parsed = parser.parse(schemaName, curQry, true);
metas.addAll(parsed.parametersMeta());
curQry = parsed.remainingQuery();
}
return metas;
}
/** {@inheritDoc} */
@Override public List<GridQueryFieldMetadata> resultMetaData(String schemaName, SqlFieldsQuery qry)
throws IgniteSQLException {
QueryParserResult parsed = parser.parse(schemaName, qry, true);
if (parsed.remainingQuery() != null)
return null;
if (parsed.isSelect())
return parsed.select().meta();
return null;
}
/** {@inheritDoc} */
@Override public void store(GridCacheContext cctx,
GridQueryTypeDescriptor type,
CacheDataRow row,
@Nullable CacheDataRow prevRow,
boolean prevRowAvailable
) throws IgniteCheckedException {
String cacheName = cctx.name();
H2TableDescriptor tbl = schemaMgr.tableForType(schema(cacheName), cacheName, type.name());
if (tbl == null)
return; // Type was rejected.
if (tbl.luceneIndex() != null) {
long expireTime = row.expireTime();
if (expireTime == 0L)
expireTime = Long.MAX_VALUE;
tbl.luceneIndex().store(row.key(), row.value(), row.version(), expireTime);
}
tbl.table().update(row, prevRow);
}
/** {@inheritDoc} */
@Override public void remove(GridCacheContext cctx, GridQueryTypeDescriptor type, CacheDataRow row)
throws IgniteCheckedException {
if (log.isDebugEnabled()) {
log.debug("Removing key from cache query index [locId=" + nodeId +
", key=" + row.key() +
", val=" + row.value() + ']');
}
String cacheName = cctx.name();
H2TableDescriptor tbl = schemaMgr.tableForType(schema(cacheName), cacheName, type.name());
if (tbl == null)
return;
if (tbl.luceneIndex() != null)
tbl.luceneIndex().remove(row.key());
tbl.table().remove(row);
}
/** {@inheritDoc} */
@Override public void dynamicIndexCreate(String schemaName, String tblName, QueryIndexDescriptorImpl idxDesc,
boolean ifNotExists, SchemaIndexCacheVisitor cacheVisitor) throws IgniteCheckedException {
schemaMgr.createIndex(schemaName, tblName, idxDesc, ifNotExists, cacheVisitor);
}
/** {@inheritDoc} */
@Override public void dynamicIndexDrop(String schemaName, String idxName, boolean ifExists)
throws IgniteCheckedException {
schemaMgr.dropIndex(schemaName, idxName, ifExists);
}
/** {@inheritDoc} */
@Override public void dynamicAddColumn(String schemaName, String tblName, List<QueryField> cols,
boolean ifTblExists, boolean ifColNotExists) throws IgniteCheckedException {
schemaMgr.addColumn(schemaName, tblName, cols, ifTblExists, ifColNotExists);
clearPlanCache();
}
/** {@inheritDoc} */
@Override public void dynamicDropColumn(String schemaName, String tblName, List<String> cols, boolean ifTblExists,
boolean ifColExists) throws IgniteCheckedException {
schemaMgr.dropColumn(schemaName, tblName, cols, ifTblExists, ifColExists);
clearPlanCache();
}
/**
* Create sorted index.
*
* @param name Index name,
* @param tbl Table.
* @param pk Primary key flag.
* @param affinityKey Affinity key flag.
* @param unwrappedCols Unwrapped index columns for complex types.
* @param wrappedCols Index columns as is complex types.
* @param inlineSize Index inline size.
* @param cacheVisitor whether index created with new cache or on existing one.
* @return Index.
*/
@SuppressWarnings("ConstantConditions")
GridH2IndexBase createSortedIndex(String name, GridH2Table tbl, boolean pk, boolean affinityKey,
List<IndexColumn> unwrappedCols, List<IndexColumn> wrappedCols, int inlineSize, @Nullable SchemaIndexCacheVisitor cacheVisitor) {
GridCacheContextInfo cacheInfo = tbl.cacheInfo();
if (log.isDebugEnabled())
log.debug("Creating cache index [cacheId=" + cacheInfo.cacheId() + ", idxName=" + name + ']');
if (cacheInfo.affinityNode()) {
QueryIndexDefinition idxDef = new QueryIndexDefinition(
tbl,
name,
ctx.indexProcessor().rowCacheCleaner(cacheInfo.groupId()),
pk,
affinityKey,
unwrappedCols,
wrappedCols,
inlineSize
);
org.apache.ignite.internal.cache.query.index.Index index;
if (cacheVisitor != null)
index = ctx.indexProcessor().createIndexDynamically(
tbl.cacheContext(), idxFactory, idxDef, cacheVisitor);
else
index = ctx.indexProcessor().createIndex(tbl.cacheContext(), idxFactory, idxDef);
InlineIndexImpl queryIndex = index.unwrap(InlineIndexImpl.class);
return new H2TreeIndex(queryIndex, tbl, unwrappedCols.toArray(new IndexColumn[0]), pk, log);
}
else {
ClientIndexDefinition d = new ClientIndexDefinition(
tbl,
new IndexName(tbl.cacheName(), tbl.getSchema().getName(), tbl.getName(), name),
unwrappedCols,
inlineSize,
tbl.cacheInfo().config().getSqlIndexMaxInlineSize());
org.apache.ignite.internal.cache.query.index.Index index =
ctx.indexProcessor().createIndex(tbl.cacheContext(), ClientIndexFactory.INSTANCE, d);
InlineIndex idx = index.unwrap(InlineIndex.class);
IndexType idxType = pk ? IndexType.createPrimaryKey(false, false) :
IndexType.createNonUnique(false, false, false);
return new H2TreeClientIndex(idx, tbl, name, unwrappedCols.toArray(new IndexColumn[0]), idxType);
}
}
/** {@inheritDoc} */
@Override public <K, V> GridCloseableIterator<IgniteBiTuple<K, V>> queryLocalText(String schemaName,
String cacheName, String qry, String typeName, IndexingQueryFilter filters, int limit) throws IgniteCheckedException {
H2TableDescriptor tbl = schemaMgr.tableForType(schemaName, cacheName, typeName);
if (tbl != null && tbl.luceneIndex() != null) {
Long qryId = runningQueryManager().register(qry, TEXT, schemaName, true, null, null);
try {
return tbl.luceneIndex().query(qry.toUpperCase(), filters, limit);
}
finally {
runningQueryManager().unregister(qryId, null);
}
}
return new GridEmptyCloseableIterator<>();
}
/**
* Queries individual fields (generally used by JDBC drivers).
*
* @param qryDesc Query descriptor.
* @param qryParams Query parameters.
* @param select Select.
* @param filter Cache name and key filter.
* @param mvccTracker Query tracker.
* @param cancel Query cancel.
* @param inTx Flag whether the query is executed in transaction.
* @param timeout Timeout.
* @return Query result.
* @throws IgniteCheckedException If failed.
*/
private GridQueryFieldsResult executeSelectLocal(
QueryDescriptor qryDesc,
QueryParameters qryParams,
QueryParserResultSelect select,
final IndexingQueryFilter filter,
MvccQueryTracker mvccTracker,
GridQueryCancel cancel,
boolean inTx,
int timeout
) throws IgniteCheckedException {
assert !select.mvccEnabled() || mvccTracker != null;
String qry;
if (select.forUpdate())
qry = inTx ? select.forUpdateQueryTx() : select.forUpdateQueryOutTx();
else
qry = qryDesc.sql();
boolean mvccEnabled = mvccTracker != null;
try {
assert select != null;
if (ctx.security().enabled())
checkSecurity(select.cacheIds());
MvccSnapshot mvccSnapshot = null;
if (mvccEnabled)
mvccSnapshot = mvccTracker.snapshot();
final QueryContext qctx = new QueryContext(
0,
filter,
null,
mvccSnapshot,
null,
true
);
return new GridQueryFieldsResultAdapter(select.meta(), null) {
@Override public GridCloseableIterator<List<?>> iterator() throws IgniteCheckedException {
H2PooledConnection conn = connections().connection(qryDesc.schemaName());
try (TraceSurroundings ignored = MTC.support(ctx.tracing().create(SQL_ITER_OPEN, MTC.span()))) {
H2Utils.setupConnection(conn, qctx,
qryDesc.distributedJoins(), qryDesc.enforceJoinOrder(), qryParams.lazy());
List<Object> args = F.asList(qryParams.arguments());
PreparedStatement stmt = conn.prepareStatement(qry, H2StatementCache.queryFlags(qryDesc));
H2Utils.bindParameters(stmt, args);
H2QueryInfo qryInfo = new H2QueryInfo(H2QueryInfo.QueryType.LOCAL, stmt, qry);
ResultSet rs = executeSqlQueryWithTimer(
stmt,
conn,
qry,
timeout,
cancel,
qryParams.dataPageScanEnabled(),
qryInfo
);
return new H2FieldsIterator(
rs,
mvccTracker,
conn,
qryParams.pageSize(),
log,
IgniteH2Indexing.this,
qryInfo,
ctx.tracing()
);
}
catch (IgniteCheckedException | RuntimeException | Error e) {
conn.close();
try {
if (mvccTracker != null)
mvccTracker.onDone();
}
catch (Exception e0) {
e.addSuppressed(e0);
}
throw e;
}
}
};
}
catch (Exception e) {
GridNearTxLocal tx = null;
if (mvccEnabled && (tx != null || (tx = tx(ctx)) != null))
tx.setRollbackOnly();
throw e;
}
}
/**
* @param qryTimeout Query timeout in milliseconds.
* @param tx Transaction.
* @return Timeout for operation in milliseconds based on query and tx timeouts.
*/
public static int operationTimeout(int qryTimeout, IgniteTxAdapter tx) {
if (tx != null) {
int remaining = (int)tx.remainingTime();
return remaining > 0 && qryTimeout > 0 ? min(remaining, qryTimeout) : max(remaining, qryTimeout);
}
return qryTimeout;
}
/** {@inheritDoc} */
@Override public long streamUpdateQuery(
String schemaName,
String qry,
@Nullable Object[] params,
IgniteDataStreamer<?, ?> streamer,
String qryInitiatorId
) throws IgniteCheckedException {
QueryParserResultDml dml = streamerParse(schemaName, qry);
return streamQuery0(qry, schemaName, streamer, dml, params, qryInitiatorId);
}
/** {@inheritDoc} */
@SuppressWarnings({"ForLoopReplaceableByForEach", "ConstantConditions"})
@Override public List<Long> streamBatchedUpdateQuery(
String schemaName,
String qry,
List<Object[]> params,
SqlClientContext cliCtx,
String qryInitiatorId
) throws IgniteCheckedException {
if (cliCtx == null || !cliCtx.isStream()) {
U.warn(log, "Connection is not in streaming mode.");
return zeroBatchedStreamedUpdateResult(params.size());
}
QueryParserResultDml dml = streamerParse(schemaName, qry);
IgniteDataStreamer<?, ?> streamer = cliCtx.streamerForCache(dml.streamTable().cacheName());
assert streamer != null;
List<Long> ress = new ArrayList<>(params.size());
for (int i = 0; i < params.size(); i++) {
long res = streamQuery0(qry, schemaName, streamer, dml, params.get(i), qryInitiatorId);
ress.add(res);
}
return ress;
}
/**
* Perform given statement against given data streamer. Only rows based INSERT is supported.
*
* @param qry Query.
* @param schemaName Schema name.
* @param streamer Streamer to feed data to.
* @param dml DML statement.
* @param args Statement arguments.
* @return Number of rows in given INSERT statement.
* @throws IgniteCheckedException if failed.
*/
@SuppressWarnings({"unchecked"})
private long streamQuery0(String qry, String schemaName, IgniteDataStreamer streamer, QueryParserResultDml dml,
final Object[] args, String qryInitiatorId) throws IgniteCheckedException {
Long qryId = runningQryMgr.register(
QueryUtils.INCLUDE_SENSITIVE ? qry : sqlWithoutConst(dml.statement()),
GridCacheQueryType.SQL_FIELDS,
schemaName,
true,
null,
qryInitiatorId
);
Exception failReason = null;
try {
UpdatePlan plan = dml.plan();
Iterator<List<?>> iter = new GridQueryCacheObjectsIterator(updateQueryRows(schemaName, plan, args),
objectContext(), true);
if (!iter.hasNext())
return 0;
IgniteBiTuple<?, ?> t = plan.processRow(iter.next());
if (!iter.hasNext()) {
streamer.addData(t.getKey(), t.getValue());
return 1;
}
else {
Map<Object, Object> rows = new LinkedHashMap<>(plan.rowCount());
rows.put(t.getKey(), t.getValue());
while (iter.hasNext()) {
List<?> row = iter.next();
t = plan.processRow(row);
rows.put(t.getKey(), t.getValue());
}
streamer.addData(rows);
return rows.size();
}
}
catch (IgniteException | IgniteCheckedException e) {
failReason = e;
throw e;
}
finally {
runningQryMgr.unregister(qryId, failReason);
}
}
/**
* Calculates rows for update query.
*
* @param schemaName Schema name.
* @param plan Update plan.
* @param args Statement arguments.
* @return Rows for update.
* @throws IgniteCheckedException If failed.
*/
private Iterator<List<?>> updateQueryRows(String schemaName, UpdatePlan plan, Object[] args) throws IgniteCheckedException {
Object[] params = args != null ? args : X.EMPTY_OBJECT_ARRAY;
if (!F.isEmpty(plan.selectQuery())) {
SqlFieldsQuery selectQry = new SqlFieldsQuery(plan.selectQuery())
.setArgs(params)
.setLocal(true);
QueryParserResult selectParseRes = parser.parse(schemaName, selectQry, false);
GridQueryFieldsResult res = executeSelectLocal(
selectParseRes.queryDescriptor(),
selectParseRes.queryParameters(),
selectParseRes.select(),
null,
null,
null,
false,
0
);
return res.iterator();
} else
return plan.createRows(params).iterator();
}
/**
* Parse statement for streamer.
*
* @param schemaName Schema name.
* @param qry Query.
* @return DML.
*/
private QueryParserResultDml streamerParse(String schemaName, String qry) {
QueryParserResult parseRes = parser.parse(schemaName, new SqlFieldsQuery(qry), false);
QueryParserResultDml dml = parseRes.dml();
if (dml == null || !dml.streamable()) {
throw new IgniteSQLException("Streaming mode supports only INSERT commands without subqueries.",
IgniteQueryErrorCode.UNSUPPORTED_OPERATION);
}
return dml;
}
/**
* @param size Result size.
* @return List of given size filled with 0Ls.
*/
private static List<Long> zeroBatchedStreamedUpdateResult(int size) {
Long[] res = new Long[size];
Arrays.fill(res, 0L);
return Arrays.asList(res);
}
/**
* Executes sql query statement.
*
* @param conn Connection,.
* @param stmt Statement.
* @param timeoutMillis Query timeout.
* @param cancel Query cancel.
* @return Result.
* @throws IgniteCheckedException If failed.
*/
private ResultSet executeSqlQuery(final H2PooledConnection conn, final PreparedStatement stmt,
int timeoutMillis, @Nullable GridQueryCancel cancel) throws IgniteCheckedException {
if (cancel != null)
cancel.add(() -> cancelStatement(stmt));
Session ses = session(conn);
if (timeoutMillis >= 0)
ses.setQueryTimeout(timeoutMillis);
else
ses.setQueryTimeout((int)distrCfg.defaultQueryTimeout());
try {
return stmt.executeQuery();
}
catch (SQLException e) {
// Throw special exception.
if (e.getErrorCode() == ErrorCode.STATEMENT_WAS_CANCELED)
throw new QueryCancelledException();
if (e.getCause() instanceof IgniteSQLException)
throw (IgniteSQLException)e.getCause();
throw new IgniteSQLException(e);
}
}
/**
* Cancel prepared statement.
*
* @param stmt Statement.
*/
private static void cancelStatement(PreparedStatement stmt) {
try {
stmt.cancel();
}
catch (SQLException ignored) {
// No-op.
}
}
/**
* Executes sql query and prints warning if query is too slow..
*
* @param conn Connection,
* @param sql Sql query.
* @param params Parameters.
* @param timeoutMillis Query timeout.
* @param cancel Query cancel.
* @param dataPageScanEnabled If data page scan is enabled.
* @return Result.
* @throws IgniteCheckedException If failed.
*/
public ResultSet executeSqlQueryWithTimer(
H2PooledConnection conn,
String sql,
@Nullable Collection<Object> params,
int timeoutMillis,
@Nullable GridQueryCancel cancel,
Boolean dataPageScanEnabled,
final H2QueryInfo qryInfo
) throws IgniteCheckedException {
PreparedStatement stmt = conn.prepareStatementNoCache(sql);
H2Utils.bindParameters(stmt, params);
return executeSqlQueryWithTimer(stmt,
conn, sql, timeoutMillis, cancel, dataPageScanEnabled, qryInfo);
}
/**
* @param dataPageScanEnabled If data page scan is enabled.
*/
public void enableDataPageScan(Boolean dataPageScanEnabled) {
// Data page scan is enabled by default for SQL.
// TODO https://issues.apache.org/jira/browse/IGNITE-11998
CacheDataTree.setDataPageScanEnabled(false);
}
/**
* Executes sql query and prints warning if query is too slow.
*
* @param stmt Prepared statement for query.
* @param conn Connection.
* @param sql Sql query.
* @param timeoutMillis Query timeout.
* @param cancel Query cancel.
* @param dataPageScanEnabled If data page scan is enabled.
* @return Result.
* @throws IgniteCheckedException If failed.
*/
public ResultSet executeSqlQueryWithTimer(
PreparedStatement stmt,
H2PooledConnection conn,
String sql,
int timeoutMillis,
@Nullable GridQueryCancel cancel,
Boolean dataPageScanEnabled,
final H2QueryInfo qryInfo
) throws IgniteCheckedException {
if (qryInfo != null)
longRunningQryMgr.registerQuery(qryInfo);
enableDataPageScan(dataPageScanEnabled);
try (
TraceSurroundings ignored = MTC.support(ctx.tracing()
.create(SQL_QRY_EXECUTE, MTC.span())
.addTag(SQL_QRY_TEXT, () -> sql))
) {
ResultSet rs = executeSqlQuery(conn, stmt, timeoutMillis, cancel);
if (qryInfo != null && qryInfo.time() > longRunningQryMgr.getTimeout())
qryInfo.printLogMessage(log, "Long running query is finished", null);
return rs;
}
catch (Throwable e) {
if (qryInfo != null && qryInfo.time() > longRunningQryMgr.getTimeout()) {
qryInfo.printLogMessage(log, "Long running query is finished with error: "
+ e.getMessage(), null);
}
throw e;
}
finally {
CacheDataTree.setDataPageScanEnabled(false);
if (qryInfo != null)
longRunningQryMgr.unregisterQuery(qryInfo);
}
}
/** {@inheritDoc} */
@SuppressWarnings("deprecation")
@Override public SqlFieldsQuery generateFieldsQuery(String cacheName, SqlQuery qry) {
String schemaName = schema(cacheName);
String type = qry.getType();
H2TableDescriptor tblDesc = schemaMgr.tableForType(schemaName, cacheName, type);
if (tblDesc == null)
throw new IgniteSQLException("Failed to find SQL table for type: " + type,
IgniteQueryErrorCode.TABLE_NOT_FOUND);
String sql;
try {
sql = generateFieldsQueryString(qry.getSql(), qry.getAlias(), tblDesc);
}
catch (IgniteCheckedException e) {
throw new IgniteException(e);
}
SqlFieldsQuery res = QueryUtils.withQueryTimeout(new SqlFieldsQuery(sql), qry.getTimeout(), TimeUnit.MILLISECONDS);
res.setArgs(qry.getArgs());
res.setDistributedJoins(qry.isDistributedJoins());
res.setLocal(qry.isLocal());
res.setPageSize(qry.getPageSize());
res.setPartitions(qry.getPartitions());
res.setReplicatedOnly(qry.isReplicatedOnly());
res.setSchema(schemaName);
res.setSql(sql);
return res;
}
/**
* Execute command.
*
* @param qryDesc Query descriptor.
* @param qryParams Query parameters.
* @param cliCtx CLient context.
* @param cmd Command (native).
* @return Result.
*/
private FieldsQueryCursor<List<?>> executeCommand(
QueryDescriptor qryDesc,
QueryParameters qryParams,
@Nullable SqlClientContext cliCtx,
QueryParserResultCommand cmd
) {
if (cmd.noOp())
return zeroCursor();
SqlCommand cmdNative = cmd.commandNative();
GridSqlStatement cmdH2 = cmd.commandH2();
if (qryDesc.local()) {
throw new IgniteSQLException("DDL statements are not supported for LOCAL caches",
IgniteQueryErrorCode.UNSUPPORTED_OPERATION);
}
Long qryId = registerRunningQuery(qryDesc, qryParams, null, null);
CommandResult res = null;
Exception failReason = null;
try (TraceSurroundings ignored = MTC.support(ctx.tracing().create(SQL_CMD_QRY_EXECUTE, MTC.span()))) {
res = cmdProc.runCommand(qryDesc.sql(), cmdNative, cmdH2, qryParams, cliCtx, qryId);
return res.cursor();
}
catch (IgniteException e) {
failReason = e;
throw e;
}
catch (IgniteCheckedException e) {
failReason = e;
throw new IgniteSQLException("Failed to execute DDL statement [stmt=" + qryDesc.sql() +
", err=" + e.getMessage() + ']', e);
}
finally {
if (res == null || res.unregisterRunningQuery())
runningQryMgr.unregister(qryId, failReason);
}
}
/**
* Check whether command could be executed with the given cluster state.
*
* @param parseRes Parsing result.
*/
private void checkClusterState(QueryParserResult parseRes) {
if (!ctx.state().publicApiActiveState(true)) {
if (parseRes.isCommand()) {
QueryParserResultCommand cmd = parseRes.command();
assert cmd != null;
SqlCommand cmd0 = cmd.commandNative();
if (cmd0 instanceof SqlCommitTransactionCommand || cmd0 instanceof SqlRollbackTransactionCommand)
return;
}
throw new IgniteException("Can not perform the operation because the cluster is inactive. Note, " +
"that the cluster is considered inactive by default if Ignite Persistent Store is used to " +
"let all the nodes join the cluster. To activate the cluster call Ignite.active(true).");
}
}
/** {@inheritDoc} */
@SuppressWarnings({"StringEquality"})
@Override public List<FieldsQueryCursor<List<?>>> querySqlFields(
String schemaName,
SqlFieldsQuery qry,
@Nullable SqlClientContext cliCtx,
boolean keepBinary,
boolean failOnMultipleStmts,
GridQueryCancel cancel
) {
try {
List<FieldsQueryCursor<List<?>>> res = new ArrayList<>(1);
SqlFieldsQuery remainingQry = qry;
while (remainingQry != null) {
Span qrySpan = ctx.tracing().create(SQL_QRY, MTC.span())
.addTag(SQL_SCHEMA, () -> schemaName);
try (TraceSurroundings ignored = MTC.supportContinual(qrySpan)) {
// Parse.
QueryParserResult parseRes = parser.parse(schemaName, remainingQry, !failOnMultipleStmts);
qrySpan.addTag(SQL_QRY_TEXT, () -> parseRes.queryDescriptor().sql());
remainingQry = parseRes.remainingQuery();
// Get next command.
QueryDescriptor newQryDesc = parseRes.queryDescriptor();
QueryParameters newQryParams = parseRes.queryParameters();
// Check if there is enough parameters. Batched statements are not checked at this point
// since they pass parameters differently.
if (!newQryDesc.batched()) {
int qryParamsCnt = F.isEmpty(newQryParams.arguments()) ? 0 : newQryParams.arguments().length;
if (qryParamsCnt < parseRes.parametersCount())
throw new IgniteSQLException("Invalid number of query parameters [expected=" +
parseRes.parametersCount() + ", actual=" + qryParamsCnt + ']');
}
// Check if cluster state is valid.
checkClusterState(parseRes);
// Execute.
if (parseRes.isCommand()) {
QueryParserResultCommand cmd = parseRes.command();
assert cmd != null;
FieldsQueryCursor<List<?>> cmdRes = executeCommand(
newQryDesc,
newQryParams,
cliCtx,
cmd
);
res.add(cmdRes);
}
else if (parseRes.isDml()) {
QueryParserResultDml dml = parseRes.dml();
assert dml != null;
List<? extends FieldsQueryCursor<List<?>>> dmlRes = executeDml(
newQryDesc,
newQryParams,
dml,
cancel
);
res.addAll(dmlRes);
}
else {
assert parseRes.isSelect();
QueryParserResultSelect select = parseRes.select();
assert select != null;
List<? extends FieldsQueryCursor<List<?>>> qryRes = executeSelect(
newQryDesc,
newQryParams,
select,
keepBinary,
cancel
);
res.addAll(qryRes);
}
}
catch (Throwable th) {
qrySpan.addTag(ERROR, th::getMessage).end();
throw th;
}
}
return res;
}
catch (RuntimeException | Error e) {
GridNearTxLocal tx = ctx.cache().context().tm().tx();
if (tx != null && tx.mvccSnapshot() != null &&
(!(e instanceof IgniteSQLException) || /* Parsing errors should not rollback Tx. */
((IgniteSQLException)e).sqlState() != SqlStateCode.PARSING_EXCEPTION))
tx.setRollbackOnly();
throw e;
}
}
/**
* Execute an all-ready {@link SqlFieldsQuery}.
*
* @param qryDesc Plan key.
* @param qryParams Parameters.
* @param dml DML.
* @param cancel Query cancel state holder.
* @return Query result.
*/
private List<? extends FieldsQueryCursor<List<?>>> executeDml(
QueryDescriptor qryDesc,
QueryParameters qryParams,
QueryParserResultDml dml,
GridQueryCancel cancel
) {
IndexingQueryFilter filter = (qryDesc.local() ? backupFilter(null, qryParams.partitions()) : null);
Long qryId = registerRunningQuery(qryDesc, qryParams, cancel, dml.statement());
Exception failReason = null;
try (TraceSurroundings ignored = MTC.support(ctx.tracing().create(SQL_DML_QRY_EXECUTE, MTC.span()))) {
if (!dml.mvccEnabled() && !updateInTxAllowed && ctx.cache().context().tm().inUserTx()) {
throw new IgniteSQLException("DML statements are not allowed inside a transaction over " +
"cache(s) with TRANSACTIONAL atomicity mode (change atomicity mode to " +
"TRANSACTIONAL_SNAPSHOT or disable this error message with system property " +
"\"-DIGNITE_ALLOW_DML_INSIDE_TRANSACTION=true\")");
}
if (!qryDesc.local()) {
return executeUpdateDistributed(
qryDesc,
qryParams,
dml,
cancel
);
}
else {
UpdateResult updRes = executeUpdate(
qryDesc,
qryParams,
dml,
true,
filter,
cancel
);
return singletonList(new QueryCursorImpl<>(new Iterable<List<?>>() {
@Override public Iterator<List<?>> iterator() {
return new IgniteSingletonIterator<>(singletonList(updRes.counter()));
}
}, cancel, true, false));
}
}
catch (IgniteException e) {
failReason = e;
throw e;
}
catch (IgniteCheckedException e) {
failReason = e;
IgniteClusterReadOnlyException roEx = X.cause(e, IgniteClusterReadOnlyException.class);
if (roEx != null) {
throw new IgniteSQLException(
"Failed to execute DML statement. Cluster in read-only mode [stmt=" + qryDesc.sql() +
", params=" + Arrays.deepToString(qryParams.arguments()) + "]",
IgniteQueryErrorCode.CLUSTER_READ_ONLY_MODE_ENABLED,
e
);
}
throw new IgniteSQLException("Failed to execute DML statement [stmt=" + qryDesc.sql() +
", params=" + Arrays.deepToString(qryParams.arguments()) + "]", e);
}
finally {
runningQryMgr.unregister(qryId, failReason);
}
}
/**
* Execute an all-ready {@link SqlFieldsQuery}.
*
* @param qryDesc Plan key.
* @param qryParams Parameters.
* @param select Select.
* @param keepBinary Whether binary objects must not be deserialized automatically.
* @param cancel Query cancel state holder.
* @return Query result.
*/
private List<? extends FieldsQueryCursor<List<?>>> executeSelect(
QueryDescriptor qryDesc,
QueryParameters qryParams,
QueryParserResultSelect select,
boolean keepBinary,
GridQueryCancel cancel
) {
assert cancel != null;
// Register query.
Long qryId = registerRunningQuery(qryDesc, qryParams, cancel, select.statement());
try (TraceSurroundings ignored = MTC.support(ctx.tracing().create(SQL_CURSOR_OPEN, MTC.span()))) {
GridNearTxLocal tx = null;
MvccQueryTracker tracker = null;
GridCacheContext mvccCctx = null;
boolean inTx = false;
if (select.mvccEnabled()) {
mvccCctx = ctx.cache().context().cacheContext(select.mvccCacheId());
if (mvccCctx == null)
throw new IgniteCheckedException("Cache has been stopped concurrently [cacheId=" +
select.mvccCacheId() + ']');
boolean autoStartTx = !qryParams.autoCommit() && tx(ctx) == null;
// Start new user tx in case of autocommit == false.
if (autoStartTx)
txStart(ctx, qryParams.timeout());
tx = tx(ctx);
checkActive(tx);
inTx = tx != null;
tracker = MvccUtils.mvccTracker(mvccCctx, tx);
}
int timeout = operationTimeout(qryParams.timeout(), tx);
Iterable<List<?>> iter = executeSelect0(
qryDesc,
qryParams,
select,
keepBinary,
tracker,
cancel,
inTx,
timeout);
// Execute SELECT FOR UPDATE if needed.
if (select.forUpdate() && inTx)
iter = lockSelectedRows(iter, mvccCctx, timeout, qryParams.pageSize());
RegisteredQueryCursor<List<?>> cursor = new RegisteredQueryCursor<>(iter, cancel, runningQueryManager(),
qryParams.lazy(), qryId, ctx.tracing());
cancel.add(cursor::cancel);
cursor.fieldsMeta(select.meta());
cursor.partitionResult(select.twoStepQuery() != null ? select.twoStepQuery().derivedPartitions() : null);
return singletonList(cursor);
}
catch (Exception e) {
runningQryMgr.unregister(qryId, e);
if (e instanceof IgniteCheckedException)
throw U.convertException((IgniteCheckedException)e);
if (e instanceof RuntimeException)
throw (RuntimeException)e;
throw new IgniteSQLException("Failed to execute SELECT statement: " + qryDesc.sql(), e);
}
}
/**
* Execute SELECT statement for DML.
*
* @param schema Schema.
* @param selectQry Select query.
* @param mvccTracker MVCC tracker.
* @param cancel Cancel.
* @param timeout Timeout.
* @return Fields query.
* @throws IgniteCheckedException On error.
*/
private QueryCursorImpl<List<?>> executeSelectForDml(
String schema,
SqlFieldsQuery selectQry,
MvccQueryTracker mvccTracker,
GridQueryCancel cancel,
int timeout
) throws IgniteCheckedException {
QueryParserResult parseRes = parser.parse(schema, selectQry, false);
QueryParserResultSelect select = parseRes.select();
assert select != null;
Iterable<List<?>> iter = executeSelect0(
parseRes.queryDescriptor(),
parseRes.queryParameters(),
select,
true,
mvccTracker,
cancel,
false,
timeout
);
QueryCursorImpl<List<?>> cursor = new QueryCursorImpl<>(iter, cancel, true, parseRes.queryParameters().lazy());
cursor.fieldsMeta(select.meta());
cursor.partitionResult(select.twoStepQuery() != null ? select.twoStepQuery().derivedPartitions() : null);
return cursor;
}
/**
* Execute an all-ready {@link SqlFieldsQuery}.
*
* @param qryDesc Plan key.
* @param qryParams Parameters.
* @param select Select.
* @param keepBinary Whether binary objects must not be deserialized automatically.
* @param mvccTracker MVCC tracker.
* @param cancel Query cancel state holder.
* @param inTx Flag whether query is executed within transaction.
* @param timeout Timeout.
* @return Query result.
* @throws IgniteCheckedException On error.
*/
private Iterable<List<?>> executeSelect0(
QueryDescriptor qryDesc,
QueryParameters qryParams,
QueryParserResultSelect select,
boolean keepBinary,
MvccQueryTracker mvccTracker,
GridQueryCancel cancel,
boolean inTx,
int timeout
) throws IgniteCheckedException {
assert !select.mvccEnabled() || mvccTracker != null;
// Check security.
if (ctx.security().enabled())
checkSecurity(select.cacheIds());
Iterable<List<?>> iter;
if (select.splitNeeded()) {
// Distributed query.
GridCacheTwoStepQuery twoStepQry = select.forUpdate() && inTx ?
select.forUpdateTwoStepQuery() : select.twoStepQuery();
assert twoStepQry != null;
iter = executeSelectDistributed(
qryDesc,
qryParams,
twoStepQry,
keepBinary,
mvccTracker,
cancel,
timeout
);
}
else {
// Local query.
IndexingQueryFilter filter = (qryDesc.local() ? backupFilter(null, qryParams.partitions()) : null);
GridQueryFieldsResult res = executeSelectLocal(
qryDesc,
qryParams,
select,
filter,
mvccTracker,
cancel,
inTx,
timeout
);
iter = () -> {
try {
return new GridQueryCacheObjectsIterator(res.iterator(), objectContext(), keepBinary);
}
catch (IgniteCheckedException | IgniteSQLException e) {
throw new CacheException(e);
}
};
}
return iter;
}
/**
* Locks rows from query cursor and returns the select result.
*
* @param cur Query cursor.
* @param cctx Cache context.
* @param pageSize Page size.
* @param timeout Timeout.
* @return Query results cursor.
*/
private Iterable<List<?>> lockSelectedRows(Iterable<List<?>> cur, GridCacheContext cctx, int pageSize, long timeout) {
assert cctx != null && cctx.mvccEnabled();
GridNearTxLocal tx = tx(ctx);
if (tx == null)
throw new IgniteSQLException("Failed to perform SELECT FOR UPDATE operation: transaction has already finished.");
Collection<List<?>> rowsCache = new ArrayList<>();
UpdateSourceIterator srcIt = new UpdateSourceIterator<KeyCacheObject>() {
private Iterator<List<?>> it = cur.iterator();
@Override public EnlistOperation operation() {
return EnlistOperation.LOCK;
}
@Override public boolean hasNextX() throws IgniteCheckedException {
return it.hasNext();
}
@Override public KeyCacheObject nextX() throws IgniteCheckedException {
List<?> res = it.next();
// nextX() can be called from the different threads.
synchronized (rowsCache) {
rowsCache.add(res.subList(0, res.size() - 1));
if (rowsCache.size() > TX_SIZE_THRESHOLD) {
throw new IgniteCheckedException("Too many rows are locked by SELECT FOR UPDATE statement. " +
"Consider locking fewer keys or increase the limit by setting a " +
IGNITE_MVCC_TX_SIZE_CACHING_THRESHOLD + " system property. Current value is " +
TX_SIZE_THRESHOLD + " rows.");
}
}
// The last column is expected to be a _key.
return cctx.toCacheKeyObject(res.get(res.size() - 1));
}
};
IgniteInternalFuture<Long> fut = tx.updateAsync(cctx, srcIt, pageSize,
timeout, true);
try {
fut.get();
}
catch (IgniteCheckedException e) {
throw U.convertException(e);
}
return rowsCache;
}
/**
* Register running query.
*
* @param qryDesc Query descriptor.
* @param qryParams Query parameters.
* @param cancel Query cancel state holder.
* @param stmnt Parsed statement.
* @return Id of registered query or {@code null} if query wasn't registered.
*/
private Long registerRunningQuery(
QueryDescriptor qryDesc,
QueryParameters qryParams,
GridQueryCancel cancel,
@Nullable GridSqlStatement stmnt
) {
String qry = QueryUtils.INCLUDE_SENSITIVE || stmnt == null ? qryDesc.sql() : sqlWithoutConst(stmnt);
Long res = runningQryMgr.register(
qry,
GridCacheQueryType.SQL_FIELDS,
qryDesc.schemaName(),
qryDesc.local(),
cancel,
qryDesc.queryInitiatorId()
);
if (ctx.event().isRecordable(EVT_SQL_QUERY_EXECUTION)) {
ctx.event().record(new SqlQueryExecutionEvent(
ctx.discovery().localNode(),
GridCacheQueryType.SQL_FIELDS.name() + " query execution.",
qry,
qryParams.arguments(),
ctx.security().enabled() ? ctx.security().securityContext().subject().id() : null));
}
return res;
}
/**
* @param stmnt Statement to print.
* @return SQL query where constant replaced with '?' char.
* @see GridSqlConst#getSQL()
* @see QueryUtils#includeSensitive()
*/
private String sqlWithoutConst(GridSqlStatement stmnt) {
QueryUtils.INCLUDE_SENSITIVE_TL.set(false);
try {
return stmnt.getSQL();
}
finally {
QueryUtils.INCLUDE_SENSITIVE_TL.set(true);
}
}
/**
* Check security access for caches.
*
* @param cacheIds Cache IDs.
*/
private void checkSecurity(Collection<Integer> cacheIds) {
if (F.isEmpty(cacheIds))
return;
for (Integer cacheId : cacheIds) {
DynamicCacheDescriptor desc = ctx.cache().cacheDescriptor(cacheId);
if (desc != null)
ctx.security().authorize(desc.cacheName(), SecurityPermission.CACHE_READ);
}
}
/** {@inheritDoc} */
@Override public UpdateSourceIterator<?> executeUpdateOnDataNodeTransactional(
GridCacheContext<?, ?> cctx,
int[] ids,
int[] parts,
String schema,
String qry,
Object[] params,
int flags,
int pageSize,
int timeout,
AffinityTopologyVersion topVer,
MvccSnapshot mvccSnapshot,
GridQueryCancel cancel
) throws IgniteCheckedException {
SqlFieldsQuery fldsQry = QueryUtils.withQueryTimeout(new SqlFieldsQuery(qry), timeout, TimeUnit.MILLISECONDS);
if (params != null)
fldsQry.setArgs(params);
fldsQry.setEnforceJoinOrder(U.isFlagSet(flags, GridH2QueryRequest.FLAG_ENFORCE_JOIN_ORDER));
fldsQry.setTimeout(timeout, TimeUnit.MILLISECONDS);
fldsQry.setPageSize(pageSize);
fldsQry.setLocal(true);
fldsQry.setLazy(U.isFlagSet(flags, GridH2QueryRequest.FLAG_LAZY));
boolean loc = true;
final boolean replicated = U.isFlagSet(flags, GridH2QueryRequest.FLAG_REPLICATED);
GridCacheContext<?, ?> cctx0;
if (!replicated
&& !F.isEmpty(ids)
&& (cctx0 = CU.firstPartitioned(cctx.shared(), ids)) != null
&& cctx0.config().getQueryParallelism() > 1) {
fldsQry.setDistributedJoins(true);
loc = false;
}
QueryParserResult parseRes = parser.parse(schema, fldsQry, false);
assert parseRes.remainingQuery() == null;
QueryParserResultDml dml = parseRes.dml();
assert dml != null;
IndexingQueryFilter filter = backupFilter(topVer, parts);
UpdatePlan plan = dml.plan();
GridCacheContext planCctx = plan.cacheContext();
// Force keepBinary for operation context to avoid binary deserialization inside entry processor
DmlUtils.setKeepBinaryContext(planCctx);
SqlFieldsQuery selectFieldsQry = QueryUtils.withQueryTimeout(
new SqlFieldsQuery(plan.selectQuery(), fldsQry.isCollocated()),
fldsQry.getTimeout(),
TimeUnit.MILLISECONDS
)
.setArgs(fldsQry.getArgs())
.setDistributedJoins(fldsQry.isDistributedJoins())
.setEnforceJoinOrder(fldsQry.isEnforceJoinOrder())
.setLocal(fldsQry.isLocal())
.setPageSize(fldsQry.getPageSize())
.setTimeout(fldsQry.getTimeout(), TimeUnit.MILLISECONDS)
.setLazy(fldsQry.isLazy());
QueryCursorImpl<List<?>> cur;
// Do a two-step query only if locality flag is not set AND if plan's SELECT corresponds to an actual
// sub-query and not some dummy stuff like "select 1, 2, 3;"
if (!loc && !plan.isLocalSubquery()) {
cur = executeSelectForDml(
schema,
selectFieldsQry,
new StaticMvccQueryTracker(planCctx, mvccSnapshot),
cancel,
timeout
);
}
else {
selectFieldsQry.setLocal(true);
QueryParserResult selectParseRes = parser.parse(schema, selectFieldsQry, false);
GridQueryFieldsResult res = executeSelectLocal(
selectParseRes.queryDescriptor(),
selectParseRes.queryParameters(),
selectParseRes.select(),
filter,
new StaticMvccQueryTracker(planCctx, mvccSnapshot),
cancel,
true,
timeout
);
cur = new QueryCursorImpl<>(new Iterable<List<?>>() {
@Override public Iterator<List<?>> iterator() {
try {
return res.iterator();
}
catch (IgniteCheckedException e) {
throw new IgniteException(e);
}
}
}, cancel, true, selectParseRes.queryParameters().lazy());
}
return plan.iteratorForTransaction(connMgr, cur);
}
/**
* Run distributed query on detected set of partitions.
*
* @param qryDesc Query descriptor.
* @param qryParams Query parameters.
* @param twoStepQry Two-step query.
* @param keepBinary Keep binary flag.
* @param mvccTracker Query tracker.
* @param cancel Cancel handler.
* @param timeout Timeout.
* @return Cursor representing distributed query result.
*/
@SuppressWarnings("IfMayBeConditional")
private Iterable<List<?>> executeSelectDistributed(
final QueryDescriptor qryDesc,
final QueryParameters qryParams,
final GridCacheTwoStepQuery twoStepQry,
final boolean keepBinary,
MvccQueryTracker mvccTracker,
final GridQueryCancel cancel,
int timeout
) {
// When explicit partitions are set, there must be an owning cache they should be applied to.
PartitionResult derivedParts = twoStepQry.derivedPartitions();
final int parts[] = PartitionResult.calculatePartitions(
qryParams.partitions(),
derivedParts,
qryParams.arguments()
);
Iterable<List<?>> iter;
if (parts != null && parts.length == 0) {
iter = new Iterable<List<?>>() {
@Override public Iterator<List<?>> iterator() {
return new Iterator<List<?>>() {
@Override public boolean hasNext() {
return false;
}
@SuppressWarnings("IteratorNextCanNotThrowNoSuchElementException")
@Override public List<?> next() {
return null;
}
};
}
};
}
else {
assert !twoStepQry.mvccEnabled() || !F.isEmpty(twoStepQry.cacheIds());
assert twoStepQry.mvccEnabled() == (mvccTracker != null);
iter = new Iterable<List<?>>() {
@Override public Iterator<List<?>> iterator() {
try (TraceSurroundings ignored = MTC.support(ctx.tracing().create(SQL_ITER_OPEN, MTC.span()))) {
return IgniteH2Indexing.this.rdcQryExec.query(
qryDesc.schemaName(),
twoStepQry,
keepBinary,
qryDesc.enforceJoinOrder(),
timeout,
cancel,
qryParams.arguments(),
parts,
qryParams.lazy(),
mvccTracker,
qryParams.dataPageScanEnabled(),
qryParams.pageSize()
);
}
catch (Throwable e) {
if (mvccTracker != null)
mvccTracker.onDone();
throw e;
}
}
};
}
return iter;
}
/**
* Executes DML request on map node. Happens only for "skip reducer" mode.
*
* @param schemaName Schema name.
* @param qry Query.
* @param filter Filter.
* @param cancel Cancel state.
* @param loc Locality flag.
* @return Update result.
* @throws IgniteCheckedException if failed.
*/
public UpdateResult executeUpdateOnDataNode(
String schemaName,
SqlFieldsQuery qry,
IndexingQueryFilter filter,
GridQueryCancel cancel,
boolean loc
) throws IgniteCheckedException {
QueryParserResult parseRes = parser.parse(schemaName, qry, false);
assert parseRes.remainingQuery() == null;
QueryParserResultDml dml = parseRes.dml();
assert dml != null;
return executeUpdate(
parseRes.queryDescriptor(),
parseRes.queryParameters(),
dml,
loc,
filter,
cancel
);
}
/**
* Registers new class description.
*
* This implementation doesn't support type reregistration.
*
* @param cacheInfo Cache context info.
* @param type Type description.
* @param isSql {@code true} in case table has been created from SQL.
* @throws IgniteCheckedException In case of error.
*/
@Override public boolean registerType(GridCacheContextInfo cacheInfo, GridQueryTypeDescriptor type, boolean isSql)
throws IgniteCheckedException {
validateTypeDescriptor(type);
schemaMgr.onCacheTypeCreated(cacheInfo, this, type, isSql);
return true;
}
/** {@inheritDoc} */
@Override public GridCacheContextInfo registeredCacheInfo(String cacheName) {
for (H2TableDescriptor tbl : schemaMgr.tablesForCache(cacheName)) {
if (F.eq(tbl.cacheName(), cacheName))
return tbl.cacheInfo();
}
return null;
}
/** {@inheritDoc} */
@Override public void closeCacheOnClient(String cacheName) {
GridCacheContextInfo cacheInfo = registeredCacheInfo(cacheName);
// Only for SQL caches.
if (cacheInfo != null) {
parser.clearCache();
cacheInfo.clearCacheContext();
}
}
/** {@inheritDoc} */
@Override public String schema(String cacheName) {
return schemaMgr.schemaName(cacheName);
}
/** {@inheritDoc} */
@Override public Set<String> schemasNames() {
return schemaMgr.schemaNames();
}
/** {@inheritDoc} */
@Override public Collection<TableInformation> tablesInformation(String schemaNamePtrn, String tblNamePtrn,
String... tblTypes) {
Set<String> types = F.isEmpty(tblTypes) ? Collections.emptySet() : new HashSet<>(Arrays.asList(tblTypes));
Collection<TableInformation> infos = new ArrayList<>();
boolean allTypes = F.isEmpty(tblTypes);
if (allTypes || types.contains(TableType.TABLE.name())) {
schemaMgr.dataTables().stream()
.filter(t -> matches(t.getSchema().getName(), schemaNamePtrn))
.filter(t -> matches(t.getName(), tblNamePtrn))
.map(t -> {
int cacheGrpId = t.cacheInfo().groupId();
CacheGroupDescriptor cacheGrpDesc = ctx.cache().cacheGroupDescriptors().get(cacheGrpId);
// We should skip table in case regarding cache group has been removed.
if (cacheGrpDesc == null)
return null;
GridQueryTypeDescriptor type = t.rowDescriptor().type();
IndexColumn affCol = t.getExplicitAffinityKeyColumn();
String affinityKeyCol = affCol != null ? affCol.columnName : null;
return new TableInformation(t.getSchema().getName(), t.getName(), TableType.TABLE.name(), cacheGrpId,
cacheGrpDesc.cacheOrGroupName(), t.cacheId(), t.cacheName(), affinityKeyCol,
type.keyFieldAlias(), type.valueFieldAlias(), type.keyTypeName(), type.valueTypeName());
})
.filter(Objects::nonNull)
.forEach(infos::add);
}
if ((allTypes || types.contains(TableType.VIEW.name()))
&& matches(QueryUtils.SCHEMA_SYS, schemaNamePtrn)) {
schemaMgr.systemViews().stream()
.filter(t -> matches(t.getTableName(), tblNamePtrn))
.map(v -> new TableInformation(QueryUtils.SCHEMA_SYS, v.getTableName(), TableType.VIEW.name()))
.forEach(infos::add);
}
return infos;
}
/** {@inheritDoc} */
@Override public Collection<ColumnInformation> columnsInformation(String schemaNamePtrn, String tblNamePtrn,
String colNamePtrn) {
Collection<ColumnInformation> infos = new ArrayList<>();
// Gather information about tables.
schemaMgr.dataTables().stream()
.filter(t -> matches(t.getSchema().getName(), schemaNamePtrn))
.filter(t -> matches(t.getName(), tblNamePtrn))
.flatMap(
tbl -> {
IndexColumn affCol = tbl.getAffinityKeyColumn();
return Stream.of(tbl.getColumns())
.filter(Column::getVisible)
.filter(c -> matches(c.getName(), colNamePtrn))
.map(c -> {
GridQueryProperty prop = tbl.rowDescriptor().type().property(c.getName());
boolean isAff = affCol != null && c.getColumnId() == affCol.column.getColumnId();
return new ColumnInformation(
c.getColumnId() - QueryUtils.DEFAULT_COLUMNS_COUNT + 1,
tbl.getSchema().getName(),
tbl.getName(),
c.getName(),
prop.type(),
c.isNullable(),
prop.defaultValue(),
prop.precision(),
prop.scale(),
isAff);
});
}
).forEach(infos::add);
// Gather information about system views.
if (matches(QueryUtils.SCHEMA_SYS, schemaNamePtrn)) {
schemaMgr.systemViews().stream()
.filter(v -> matches(v.getTableName(), tblNamePtrn))
.flatMap(
view ->
Stream.of(view.getColumns())
.filter(c -> matches(c.getName(), colNamePtrn))
.map(c -> new ColumnInformation(
c.getColumnId() + 1,
QueryUtils.SCHEMA_SYS,
view.getTableName(),
c.getName(),
IgniteUtils.classForName(DataType.getTypeClassName(c.getType()), Object.class),
c.isNullable(),
null,
(int)c.getPrecision(),
c.getScale(),
false))
).forEach(infos::add);
}
return infos;
}
/** {@inheritDoc} */
@Override public boolean isStreamableInsertStatement(String schemaName, SqlFieldsQuery qry) throws SQLException {
QueryParserResult parsed = parser.parse(schemaName, qry, true);
return parsed.isDml() && parsed.dml().streamable() && parsed.remainingQuery() == null;
}
/** {@inheritDoc} */
@Override public void markAsRebuildNeeded(GridCacheContext cctx, boolean val) {
markIndexRebuild(cctx.name(), val);
}
/**
* Mark tables for index rebuild, so that their indexes are not used.
*
* @param cacheName Cache name.
* @param val Value.
*/
private void markIndexRebuild(String cacheName, boolean val) {
for (H2TableDescriptor tblDesc : schemaMgr.tablesForCache(cacheName)) {
assert tblDesc.table() != null;
tblDesc.table().markRebuildFromHashInProgress(val);
}
}
/**
* @return Busy lock.
*/
public GridSpinBusyLock busyLock() {
return busyLock;
}
/**
* @return Map query executor.
*/
public GridMapQueryExecutor mapQueryExecutor() {
return mapQryExec;
}
/**
* @return Reduce query executor.
*/
public GridReduceQueryExecutor reduceQueryExecutor() {
return rdcQryExec;
}
/**
* Return Running query manager.
*
* @return Running query manager.
*/
public RunningQueryManager runningQueryManager() {
return runningQryMgr;
}
/** {@inheritDoc} */
@SuppressWarnings({"deprecation"})
@Override public void start(GridKernalContext ctx, GridSpinBusyLock busyLock) throws IgniteCheckedException {
if (log.isDebugEnabled())
log.debug("Starting cache query index...");
this.busyLock = busyLock;
if (SysProperties.serializeJavaObject) {
U.warn(log, "Serialization of Java objects in H2 was enabled.");
SysProperties.serializeJavaObject = false;
}
this.ctx = ctx;
partReservationMgr = new PartitionReservationManager(ctx);
connMgr = new ConnectionManager(ctx);
longRunningQryMgr = new LongRunningQueryManager(ctx);
parser = new QueryParser(this, connMgr);
schemaMgr = new SchemaManager(ctx, connMgr);
schemaMgr.start(ctx.config().getSqlConfiguration().getSqlSchemas());
statsMgr = new IgniteStatisticsManagerImpl(ctx, schemaMgr);
nodeId = ctx.localNodeId();
marshaller = ctx.config().getMarshaller();
mapQryExec = new GridMapQueryExecutor();
rdcQryExec = new GridReduceQueryExecutor();
mapQryExec.start(ctx, this);
rdcQryExec.start(ctx, this);
discoLsnr = evt -> {
mapQryExec.onNodeLeft((DiscoveryEvent)evt);
rdcQryExec.onNodeLeft((DiscoveryEvent)evt);
};
ctx.event().addLocalEventListener(discoLsnr, EventType.EVT_NODE_FAILED, EventType.EVT_NODE_LEFT);
qryLsnr = (nodeId, msg, plc) -> onMessage(nodeId, msg);
ctx.io().addMessageListener(GridTopic.TOPIC_QUERY, qryLsnr);
runningQryMgr = new RunningQueryManager(ctx);
partExtractor = new PartitionExtractor(new H2PartitionResolver(this), ctx);
cmdProc = new CommandProcessor(ctx, schemaMgr, this);
cmdProc.start();
if (JdbcUtils.serializer != null)
U.warn(log, "Custom H2 serialization is already configured, will override.");
JdbcUtils.serializer = h2Serializer();
distrCfg = new DistributedSqlConfiguration(ctx, log);
funcMgr = new FunctionsManager(distrCfg);
}
/**
* @param nodeId Node ID.
* @param msg Message.
*/
public void onMessage(UUID nodeId, Object msg) {
assert msg != null;
ClusterNode node = ctx.discovery().node(nodeId);
if (node == null)
return; // Node left, ignore.
if (!busyLock.enterBusy())
return;
try {
if (msg instanceof GridCacheQueryMarshallable)
((GridCacheQueryMarshallable)msg).unmarshall(ctx.config().getMarshaller(), ctx);
try {
boolean processed = true;
boolean tracebleMsg = false;
if (msg instanceof GridQueryNextPageRequest) {
mapQueryExecutor().onNextPageRequest(node, (GridQueryNextPageRequest)msg);
tracebleMsg = true;
}
else if (msg instanceof GridQueryNextPageResponse) {
reduceQueryExecutor().onNextPage(node, (GridQueryNextPageResponse)msg);
tracebleMsg = true;
}
else if (msg instanceof GridH2QueryRequest)
mapQueryExecutor().onQueryRequest(node, (GridH2QueryRequest)msg);
else if (msg instanceof GridH2DmlRequest)
mapQueryExecutor().onDmlRequest(node, (GridH2DmlRequest)msg);
else if (msg instanceof GridH2DmlResponse)
reduceQueryExecutor().onDmlResponse(node, (GridH2DmlResponse)msg);
else if (msg instanceof GridQueryFailResponse)
reduceQueryExecutor().onFail(node, (GridQueryFailResponse)msg);
else if (msg instanceof GridQueryCancelRequest)
mapQueryExecutor().onCancel(node, (GridQueryCancelRequest)msg);
else
processed = false;
if (processed && log.isDebugEnabled() && (!tracebleMsg || log.isTraceEnabled()))
log.debug("Processed message: [srcNodeId=" + nodeId + ", msg=" + msg + ']');
}
catch (Throwable th) {
U.error(log, "Failed to process message: [srcNodeId=" + nodeId + ", msg=" + msg + ']', th);
}
}
finally {
busyLock.leaveBusy();
}
}
/**
* @return Value object context.
*/
public CacheObjectValueContext objectContext() {
return ctx.query().objectContext();
}
/**
* @param topic Topic.
* @param topicOrd Topic ordinal for {@link GridTopic}.
* @param nodes Nodes.
* @param msg Message.
* @param specialize Optional closure to specialize message for each node.
* @param locNodeHnd Handler for local node.
* @param plc Policy identifying the executor service which will process message.
* @param runLocParallel Run local handler in parallel thread.
* @return {@code true} If all messages sent successfully.
*/
public boolean send(
Object topic,
int topicOrd,
Collection<ClusterNode> nodes,
Message msg,
@Nullable IgniteBiClosure<ClusterNode, Message, Message> specialize,
@Nullable final IgniteInClosure2X<ClusterNode, Message> locNodeHnd,
byte plc,
boolean runLocParallel
) {
boolean ok = true;
if (specialize == null && msg instanceof GridCacheQueryMarshallable)
((GridCacheQueryMarshallable)msg).marshall(marshaller);
ClusterNode locNode = null;
for (ClusterNode node : nodes) {
if (node.isLocal()) {
if (locNode != null)
throw new IllegalStateException();
locNode = node;
continue;
}
try {
if (specialize != null) {
msg = specialize.apply(node, msg);
if (msg instanceof GridCacheQueryMarshallable)
((GridCacheQueryMarshallable)msg).marshall(marshaller);
}
ctx.io().sendGeneric(node, topic, topicOrd, msg, plc);
}
catch (IgniteCheckedException e) {
ok = false;
U.warn(log, "Failed to send message [node=" + node + ", msg=" + msg +
", errMsg=" + e.getMessage() + "]");
}
}
// Local node goes the last to allow parallel execution.
if (locNode != null) {
assert locNodeHnd != null;
if (specialize != null) {
msg = specialize.apply(locNode, msg);
if (msg instanceof GridCacheQueryMarshallable)
((GridCacheQueryMarshallable)msg).marshall(marshaller);
}
if (runLocParallel) {
final ClusterNode finalLocNode = locNode;
final Message finalMsg = msg;
try {
// We prefer runLocal to runLocalSafe, because the latter can produce deadlock here.
ctx.closure().runLocal(new GridPlainRunnable() {
@Override public void run() {
if (!busyLock.enterBusy())
return;
try {
locNodeHnd.apply(finalLocNode, finalMsg);
}
finally {
busyLock.leaveBusy();
}
}
}, plc).listen(logger);
}
catch (IgniteCheckedException e) {
ok = false;
U.error(log, "Failed to execute query locally.", e);
}
}
else
locNodeHnd.apply(locNode, msg);
}
return ok;
}
/**
* @return Serializer.
*/
private JavaObjectSerializer h2Serializer() {
return new H2JavaObjectSerializer();
}
/** {@inheritDoc} */
@Override public void stop() {
if (log.isDebugEnabled())
log.debug("Stopping cache query index...");
mapQryExec.stop();
qryCtxRegistry.clearSharedOnLocalNodeStop();
runningQryMgr.stop();
schemaMgr.stop();
longRunningQryMgr.stop();
connMgr.stop();
cmdProc.stop();
statsMgr.stop();
if (log.isDebugEnabled())
log.debug("Cache query index stopped.");
}
/** {@inheritDoc} */
@Override public void onClientDisconnect() throws IgniteCheckedException {
if (!mvccEnabled(ctx))
return;
GridNearTxLocal tx = tx(ctx);
if (tx != null)
cmdProc.doRollback(tx);
}
/** {@inheritDoc} */
@SuppressWarnings("unchecked")
@Override public boolean initCacheContext(GridCacheContext cacheCtx) {
GridCacheContextInfo cacheInfo = registeredCacheInfo(cacheCtx.name());
if (cacheInfo != null) {
assert !cacheInfo.isCacheContextInited() : cacheInfo.name();
assert cacheInfo.name().equals(cacheCtx.name()) : cacheInfo.name() + " != " + cacheCtx.name();
cacheInfo.initCacheContext(cacheCtx);
return true;
}
return false;
}
/** {@inheritDoc} */
@Override public void registerCache(String cacheName, String schemaName, GridCacheContextInfo<?, ?> cacheInfo)
throws IgniteCheckedException {
ctx.indexProcessor().idxRowCacheRegistry().onCacheRegistered(cacheInfo);
schemaMgr.onCacheCreated(cacheName, schemaName, cacheInfo.config().getSqlFunctionClasses());
}
/** {@inheritDoc} */
@Override public void unregisterCache(GridCacheContextInfo cacheInfo, boolean rmvIdx) {
ctx.indexProcessor().unregisterCache(cacheInfo);
String cacheName = cacheInfo.name();
partReservationMgr.onCacheStop(cacheName);
// Drop schema (needs to be called after callback to DML processor because the latter depends on schema).
schemaMgr.onCacheDestroyed(cacheName, rmvIdx);
// Unregister connection.
connMgr.onCacheDestroyed();
// Clear query cache.
clearPlanCache();
}
/**
* Remove all cached queries from cached two-steps queries.
*/
private void clearPlanCache() {
parser.clearCache();
}
/** {@inheritDoc} */
@Override public IndexingQueryFilter backupFilter(@Nullable final AffinityTopologyVersion topVer,
@Nullable final int[] parts) {
return backupFilter(topVer, parts, false);
}
/**
* Returns backup filter.
*
* @param topVer Topology version.
* @param parts Partitions.
* @param treatReplicatedAsPartitioned true if need to treat replicated as partitioned (for outer joins).
* @return Backup filter.
*/
public IndexingQueryFilter backupFilter(@Nullable final AffinityTopologyVersion topVer, @Nullable final int[] parts,
boolean treatReplicatedAsPartitioned) {
return new IndexingQueryFilterImpl(ctx, topVer, parts, treatReplicatedAsPartitioned);
}
/**
* @return Ready topology version.
*/
public AffinityTopologyVersion readyTopologyVersion() {
return ctx.cache().context().exchange().readyAffinityVersion();
}
/**
* @param readyVer Ready topology version.
*
* @return {@code true} If pending distributed exchange exists because server topology is changed.
*/
public boolean serverTopologyChanged(AffinityTopologyVersion readyVer) {
GridDhtPartitionsExchangeFuture fut = ctx.cache().context().exchange().lastTopologyFuture();
if (fut.isDone())
return false;
AffinityTopologyVersion initVer = fut.initialVersion();
return initVer.compareTo(readyVer) > 0 && !fut.firstEvent().node().isClient();
}
/**
* @param topVer Topology version.
* @throws IgniteCheckedException If failed.
*/
public void awaitForReadyTopologyVersion(AffinityTopologyVersion topVer) throws IgniteCheckedException {
ctx.cache().context().exchange().affinityReadyFuture(topVer).get();
}
/** {@inheritDoc} */
@Override public void onDisconnected(IgniteFuture<?> reconnectFut) {
rdcQryExec.onDisconnected(reconnectFut);
cmdProc.onDisconnected();
}
/**
* Return SQL running queries.
*
* @return SQL running queries.
*/
public List<GridRunningQueryInfo> runningSqlQueries() {
return runningQryMgr.runningSqlQueries();
}
/** {@inheritDoc} */
@Override public Collection<GridRunningQueryInfo> runningQueries(long duration) {
return runningQryMgr.longRunningQueries(duration);
}
/** {@inheritDoc} */
@Override public void cancelQueries(Collection<Long> queries) {
if (!F.isEmpty(queries)) {
for (Long qryId : queries)
runningQryMgr.cancel(qryId);
}
}
/** {@inheritDoc} */
@Override public void onKernalStop() {
connMgr.onKernalStop();
ctx.io().removeMessageListener(GridTopic.TOPIC_QUERY, qryLsnr);
ctx.event().removeLocalEventListener(discoLsnr);
}
/**
* @return Query context registry.
*/
public QueryContextRegistry queryContextRegistry() {
return qryCtxRegistry;
}
/**
* @return Connection manager.
*/
public ConnectionManager connections() {
return connMgr;
}
/**
* @return Parser.
*/
public QueryParser parser() {
return parser;
}
/**
* @return Schema manager.
*/
public SchemaManager schemaManager() {
return schemaMgr;
}
/**
* @return Partition extractor.
*/
public PartitionExtractor partitionExtractor() {
return partExtractor;
}
/**
* @return Partition reservation manager.
*/
public PartitionReservationManager partitionReservationManager() {
return partReservationMgr;
}
/**
* @param qryDesc Query descriptor.
* @param qryParams Query parameters.
* @param dml DML statement.
* @param cancel Query cancel.
* @return Update result wrapped into {@link GridQueryFieldsResult}
* @throws IgniteCheckedException if failed.
*/
@SuppressWarnings("unchecked")
private List<QueryCursorImpl<List<?>>> executeUpdateDistributed(
QueryDescriptor qryDesc,
QueryParameters qryParams,
QueryParserResultDml dml,
GridQueryCancel cancel
) throws IgniteCheckedException {
if (qryDesc.batched()) {
Collection<UpdateResult> ress;
List<Object[]> argss = qryParams.batchedArguments();
UpdatePlan plan = dml.plan();
GridCacheContext<?, ?> cctx = plan.cacheContext();
// For MVCC case, let's enlist batch elements one by one.
if (plan.hasRows() && plan.mode() == UpdateMode.INSERT && !cctx.mvccEnabled()) {
CacheOperationContext opCtx = DmlUtils.setKeepBinaryContext(cctx);
try {
List<List<List<?>>> cur = plan.createRows(argss);
//TODO: IGNITE-11176 - Need to support cancellation
ress = DmlUtils.processSelectResultBatched(plan, cur, qryParams.updateBatchSize());
}
finally {
DmlUtils.restoreKeepBinaryContext(cctx, opCtx);
}
}
else {
// Fallback to previous mode.
ress = new ArrayList<>(argss.size());
SQLException batchException = null;
int[] cntPerRow = new int[argss.size()];
int cntr = 0;
for (Object[] args : argss) {
UpdateResult res;
try {
res = executeUpdate(
qryDesc,
qryParams.toSingleBatchedArguments(args),
dml,
false,
null,
cancel
);
cntPerRow[cntr++] = (int)res.counter();
ress.add(res);
}
catch (Exception e ) {
SQLException sqlEx = QueryUtils.toSqlException(e);
batchException = DmlUtils.chainException(batchException, sqlEx);
cntPerRow[cntr++] = Statement.EXECUTE_FAILED;
}
}
if (batchException != null) {
BatchUpdateException e = new BatchUpdateException(batchException.getMessage(),
batchException.getSQLState(), batchException.getErrorCode(), cntPerRow, batchException);
throw new IgniteCheckedException(e);
}
}
ArrayList<QueryCursorImpl<List<?>>> resCurs = new ArrayList<>(ress.size());
for (UpdateResult res : ress) {
res.throwIfError();
QueryCursorImpl<List<?>> resCur = (QueryCursorImpl<List<?>>)new QueryCursorImpl(singletonList(
singletonList(res.counter())), cancel, false, false);
resCur.fieldsMeta(UPDATE_RESULT_META);
resCurs.add(resCur);
}
return resCurs;
}
else {
UpdateResult res = executeUpdate(
qryDesc,
qryParams,
dml,
false,
null,
cancel
);
res.throwIfError();
QueryCursorImpl<List<?>> resCur = (QueryCursorImpl<List<?>>)new QueryCursorImpl(singletonList(
singletonList(res.counter())), cancel, false, false);
resCur.fieldsMeta(UPDATE_RESULT_META);
resCur.partitionResult(res.partitionResult());
return singletonList(resCur);
}
}
/**
* Execute DML statement, possibly with few re-attempts in case of concurrent data modifications.
*
* @param qryDesc Query descriptor.
* @param qryParams Query parameters.
* @param dml DML command.
* @param loc Query locality flag.
* @param filters Cache name and key filter.
* @param cancel Cancel.
* @return Update result (modified items count and failed keys).
* @throws IgniteCheckedException if failed.
*/
@SuppressWarnings("IfMayBeConditional")
private UpdateResult executeUpdate(
QueryDescriptor qryDesc,
QueryParameters qryParams,
QueryParserResultDml dml,
boolean loc,
IndexingQueryFilter filters,
GridQueryCancel cancel
) throws IgniteCheckedException {
Object[] errKeys = null;
long items = 0;
PartitionResult partRes = null;
GridCacheContext<?, ?> cctx = dml.plan().cacheContext();
boolean transactional = cctx != null && cctx.mvccEnabled();
int maxRetryCnt = transactional ? 1 : DFLT_UPDATE_RERUN_ATTEMPTS;
for (int i = 0; i < maxRetryCnt; i++) {
CacheOperationContext opCtx = cctx != null ? DmlUtils.setKeepBinaryContext(cctx) : null;
UpdateResult r;
try {
if (transactional)
r = executeUpdateTransactional(
qryDesc,
qryParams,
dml,
loc,
cancel
);
else
r = executeUpdateNonTransactional(
qryDesc,
qryParams,
dml,
loc,
filters,
cancel
);
}
finally {
if (opCtx != null)
DmlUtils.restoreKeepBinaryContext(cctx, opCtx);
}
items += r.counter();
errKeys = r.errorKeys();
partRes = r.partitionResult();
if (F.isEmpty(errKeys))
break;
}
if (F.isEmpty(errKeys) && partRes == null) {
if (items == 1L)
return UpdateResult.ONE;
else if (items == 0L)
return UpdateResult.ZERO;
}
return new UpdateResult(items, errKeys, partRes);
}
/**
* Execute update in non-transactional mode.
*
* @param qryDesc Query descriptor.
* @param qryParams Query parameters.
* @param dml Plan.
* @param loc Local flag.
* @param filters Filters.
* @param cancel Cancel hook.
* @return Update result.
* @throws IgniteCheckedException If failed.
*/
private UpdateResult executeUpdateNonTransactional(
QueryDescriptor qryDesc,
QueryParameters qryParams,
QueryParserResultDml dml,
boolean loc,
IndexingQueryFilter filters,
GridQueryCancel cancel
) throws IgniteCheckedException {
UpdatePlan plan = dml.plan();
UpdateResult fastUpdateRes = plan.processFast(qryParams.arguments());
if (fastUpdateRes != null)
return fastUpdateRes;
DmlDistributedPlanInfo distributedPlan = loc ? null : plan.distributedPlan();
if (distributedPlan != null) {
if (cancel == null)
cancel = new GridQueryCancel();
UpdateResult result = rdcQryExec.update(
qryDesc.schemaName(),
distributedPlan.getCacheIds(),
qryDesc.sql(),
qryParams.arguments(),
qryDesc.enforceJoinOrder(),
qryParams.pageSize(),
qryParams.timeout(),
qryParams.partitions(),
distributedPlan.isReplicatedOnly(),
cancel
);
// Null is returned in case not all nodes support distributed DML.
if (result != null)
return result;
}
final GridQueryCancel selectCancel = (cancel != null) ? new GridQueryCancel() : null;
if (cancel != null)
cancel.add(selectCancel::cancel);
SqlFieldsQuery selectFieldsQry = new SqlFieldsQuery(plan.selectQuery(), qryDesc.collocated())
.setArgs(qryParams.arguments())
.setDistributedJoins(qryDesc.distributedJoins())
.setEnforceJoinOrder(qryDesc.enforceJoinOrder())
.setLocal(qryDesc.local())
.setPageSize(qryParams.pageSize())
.setTimeout(qryParams.timeout(), TimeUnit.MILLISECONDS)
// On no MVCC mode we cannot use lazy mode when UPDATE query contains updated columns
// in WHERE condition because it may be cause of update one entry several times
// (when index for such columns is selected for scan):
// e.g. : UPDATE test SET val = val + 1 WHERE val >= ?
.setLazy(qryParams.lazy() && plan.canSelectBeLazy());
Iterable<List<?>> cur;
// Do a two-step query only if locality flag is not set AND if plan's SELECT corresponds to an actual
// sub-query and not some dummy stuff like "select 1, 2, 3;"
if (!loc && !plan.isLocalSubquery()) {
assert !F.isEmpty(plan.selectQuery());
cur = executeSelectForDml(
qryDesc.schemaName(),
selectFieldsQry,
null,
selectCancel,
qryParams.timeout()
);
}
else if (plan.hasRows())
cur = plan.createRows(qryParams.arguments());
else {
selectFieldsQry.setLocal(true);
QueryParserResult selectParseRes = parser.parse(qryDesc.schemaName(), selectFieldsQry, false);
final GridQueryFieldsResult res = executeSelectLocal(
selectParseRes.queryDescriptor(),
selectParseRes.queryParameters(),
selectParseRes.select(),
filters,
null,
selectCancel,
false,
qryParams.timeout()
);
cur = new QueryCursorImpl<>(new Iterable<List<?>>() {
@Override public Iterator<List<?>> iterator() {
try {
return new GridQueryCacheObjectsIterator(res.iterator(), objectContext(), true);
}
catch (IgniteCheckedException e) {
throw new IgniteException(e);
}
}
}, cancel, true, qryParams.lazy());
}
int pageSize = qryParams.updateBatchSize();
// TODO: IGNITE-11176 - Need to support cancellation
try {
return DmlUtils.processSelectResult(plan, cur, pageSize);
}
finally {
if (cur instanceof AutoCloseable)
U.closeQuiet((AutoCloseable)cur);
}
}
/**
* Execute update in transactional mode.
*
* @param qryDesc Query descriptor.
* @param qryParams Query parameters.
* @param dml Plan.
* @param loc Local flag.
* @param cancel Cancel hook.
* @return Update result.
* @throws IgniteCheckedException If failed.
*/
private UpdateResult executeUpdateTransactional(
QueryDescriptor qryDesc,
QueryParameters qryParams,
QueryParserResultDml dml,
boolean loc,
GridQueryCancel cancel
) throws IgniteCheckedException {
UpdatePlan plan = dml.plan();
GridCacheContext cctx = plan.cacheContext();
assert cctx != null;
assert cctx.transactional();
GridNearTxLocal tx = tx(ctx);
boolean implicit = (tx == null);
boolean commit = implicit && qryParams.autoCommit();
if (implicit)
tx = txStart(cctx, qryParams.timeout());
requestSnapshot(tx);
try (GridNearTxLocal toCommit = commit ? tx : null) {
DmlDistributedPlanInfo distributedPlan = loc ? null : plan.distributedPlan();
long timeout = implicit
? tx.remainingTime()
: operationTimeout(qryParams.timeout(), tx);
if (cctx.isReplicated() || distributedPlan == null || ((plan.mode() == UpdateMode.INSERT
|| plan.mode() == UpdateMode.MERGE) && !plan.isLocalSubquery())) {
boolean sequential = true;
UpdateSourceIterator<?> it;
if (plan.fastResult()) {
IgniteBiTuple row = plan.getFastRow(qryParams.arguments());
assert row != null;
EnlistOperation op = UpdatePlan.enlistOperation(plan.mode());
it = new DmlUpdateSingleEntryIterator<>(op, op.isDeleteOrLock() ? row.getKey() : row);
}
else if (plan.hasRows()) {
it = new DmlUpdateResultsIterator(
UpdatePlan.enlistOperation(plan.mode()),
plan,
plan.createRows(qryParams.arguments())
);
}
else {
SqlFieldsQuery selectFieldsQry = new SqlFieldsQuery(plan.selectQuery(), qryDesc.collocated())
.setArgs(qryParams.arguments())
.setDistributedJoins(qryDesc.distributedJoins())
.setEnforceJoinOrder(qryDesc.enforceJoinOrder())
.setLocal(qryDesc.local())
.setPageSize(qryParams.pageSize())
.setTimeout((int)timeout, TimeUnit.MILLISECONDS)
// In MVCC mode we can use lazy mode always (when is set up) without dependency on
// updated columns and WHERE condition.
.setLazy(qryParams.lazy());
FieldsQueryCursor<List<?>> cur = executeSelectForDml(
qryDesc.schemaName(),
selectFieldsQry,
MvccUtils.mvccTracker(cctx, tx),
cancel,
(int)timeout
);
it = plan.iteratorForTransaction(connMgr, cur);
}
//TODO: IGNITE-11176 - Need to support cancellation
IgniteInternalFuture<Long> fut = tx.updateAsync(
cctx,
it,
qryParams.pageSize(),
timeout,
sequential
);
UpdateResult res = new UpdateResult(fut.get(), X.EMPTY_OBJECT_ARRAY,
plan.distributedPlan() != null ? plan.distributedPlan().derivedPartitions() : null);
if (commit)
toCommit.commit();
return res;
}
int[] ids = U.toIntArray(distributedPlan.getCacheIds());
int flags = 0;
if (qryDesc.enforceJoinOrder())
flags |= GridH2QueryRequest.FLAG_ENFORCE_JOIN_ORDER;
if (distributedPlan.isReplicatedOnly())
flags |= GridH2QueryRequest.FLAG_REPLICATED;
if (qryParams.lazy())
flags |= GridH2QueryRequest.FLAG_LAZY;
flags = GridH2QueryRequest.setDataPageScanEnabled(flags,
qryParams.dataPageScanEnabled());
int[] parts = PartitionResult.calculatePartitions(
qryParams.partitions(),
distributedPlan.derivedPartitions(),
qryParams.arguments()
);
if (parts != null && parts.length == 0)
return new UpdateResult(0, X.EMPTY_OBJECT_ARRAY, distributedPlan.derivedPartitions());
else {
//TODO: IGNITE-11176 - Need to support cancellation
IgniteInternalFuture<Long> fut = tx.updateAsync(
cctx,
ids,
parts,
qryDesc.schemaName(),
qryDesc.sql(),
qryParams.arguments(),
flags,
qryParams.pageSize(),
timeout
);
UpdateResult res = new UpdateResult(fut.get(), X.EMPTY_OBJECT_ARRAY,
distributedPlan.derivedPartitions());
if (commit)
toCommit.commit();
return res;
}
}
catch (ClusterTopologyServerNotFoundException e) {
throw new CacheServerNotFoundException(e.getMessage(), e);
}
catch (IgniteCheckedException e) {
IgniteSQLException sqlEx = X.cause(e, IgniteSQLException.class);
if (sqlEx != null)
throw sqlEx;
Exception ex = IgniteUtils.convertExceptionNoWrap(e);
if (ex instanceof IgniteException)
throw (IgniteException)ex;
U.error(log, "Error during update [localNodeId=" + ctx.localNodeId() + "]", ex);
throw new IgniteSQLException("Failed to run update. " + ex.getMessage(), ex);
}
finally {
if (commit)
cctx.tm().resetContext();
}
}
/** {@inheritDoc} */
@Override public void registerMxBeans(IgniteMBeansManager mbMgr) throws IgniteCheckedException {
SqlQueryMXBean qryMXBean = new SqlQueryMXBeanImpl(ctx);
mbMgr.registerMBean("SQL Query", qryMXBean.getClass().getSimpleName(), qryMXBean, SqlQueryMXBean.class);
}
/**
* @return Long running queries manager.
*/
public LongRunningQueryManager longRunningQueries() {
return longRunningQryMgr;
}
/** {@inheritDoc} */
@Override public long indexSize(String schemaName, String tblName, String idxName) throws IgniteCheckedException {
GridH2Table tbl = schemaMgr.dataTable(schemaName, tblName);
if (tbl == null)
return 0;
H2TreeIndex idx = (H2TreeIndex)tbl.userIndex(idxName);
return idx == null ? 0 : idx.size();
}
/**
* @return Distributed SQL configuration.
*/
public DistributedSqlConfiguration distributedConfiguration() {
return distrCfg;
}
/** {@inheritDoc} */
@Override public Map<String, Integer> secondaryIndexesInlineSize() {
Map<String, Integer> map = new HashMap<>();
for (GridH2Table table : schemaMgr.dataTables()) {
for (Index index : table.getIndexes()) {
if (index instanceof H2TreeIndexBase && !index.getIndexType().isPrimaryKey()) {
map.put(
index.getSchema().getName() + "#" + index.getTable().getName() + "#" + index.getName(),
((H2TreeIndexBase)index).inlineSize()
);
}
}
}
return map;
}
/**
* @return Statistics manager.
*/
public IgniteStatisticsManager statsManager() {
return statsMgr;
}
}
| {
"content_hash": "13c4745df09a47bb363fc303f7f2222c",
"timestamp": "",
"source": "github",
"line_count": 3083,
"max_line_length": 137,
"avg_line_length": 35.94096659098281,
"alnum_prop": 0.5958341606050214,
"repo_name": "chandresh-pancholi/ignite",
"id": "f8c79f15c2b10463341d61904ac377af67657f3d",
"size": "111608",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/IgniteH2Indexing.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "50875"
},
{
"name": "C",
"bytes": "5286"
},
{
"name": "C#",
"bytes": "6011971"
},
{
"name": "C++",
"bytes": "3118601"
},
{
"name": "CSS",
"bytes": "267627"
},
{
"name": "Groovy",
"bytes": "15081"
},
{
"name": "HTML",
"bytes": "668069"
},
{
"name": "Java",
"bytes": "34347248"
},
{
"name": "JavaScript",
"bytes": "1696623"
},
{
"name": "M4",
"bytes": "12456"
},
{
"name": "Makefile",
"bytes": "107669"
},
{
"name": "PHP",
"bytes": "11079"
},
{
"name": "PowerShell",
"bytes": "12344"
},
{
"name": "SQLPL",
"bytes": "307"
},
{
"name": "Scala",
"bytes": "990645"
},
{
"name": "Shell",
"bytes": "592129"
},
{
"name": "Smalltalk",
"bytes": "1908"
},
{
"name": "TypeScript",
"bytes": "4522"
}
],
"symlink_target": ""
} |
package acmi.l2.clientmod.unreal.bytecode.token.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface ConversionToken {
}
| {
"content_hash": "fc38073cc82d90da1305abf17e679ac7",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 59,
"avg_line_length": 27.166666666666668,
"alnum_prop": 0.8282208588957055,
"repo_name": "acmi/L2unreal",
"id": "9be4eb475599f168d88848278db6e2c5f21d9d54",
"size": "1434",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/acmi/l2/clientmod/unreal/bytecode/token/annotation/ConversionToken.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "364626"
}
],
"symlink_target": ""
} |
Multi Box Grid
=====================
Have you ever need to have boxes that scale as the page shrinks and need all elements postion to stay the same? This mixin helps you do it.
This technique is very useful when you need to keep image responsive to the page and have overlaying text positioned at specific places.
How it works:
- first you have a class box that you make position relative
- then you set the pseudo CSS to have before box property push padding downward by the ratio you want
- then inside the box, you add a position absolute div content that fills the box
- now any element you put inside content are in position absolute. try making all positions percentages and it will scale
This technique is very useful for the scaling 3 grid boxes to mobile easily without breaking much code | {
"content_hash": "5b76b4e23d7cd31d4fa04af118dd3405",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 139,
"avg_line_length": 61.53846153846154,
"alnum_prop": 0.7775,
"repo_name": "ryan-wong/css-ui-pattern-library",
"id": "d223b21eca8a218b728c779e1551c6e90af2a460",
"size": "800",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "multiboxgrid/README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "43515"
},
{
"name": "JavaScript",
"bytes": "2092"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>graph-basics: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.14.1 / graph-basics - 8.9.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
graph-basics
<small>
8.9.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-12-29 02:51:29 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-29 02:51:29 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
conf-gmp 3 Virtual package relying on a GMP lib system installation
coq 8.14.1 Formal proof management system
dune 2.9.1 Fast, portable, and opinionated build system
ocaml 4.06.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.06.1 Official 4.06.1 release
ocaml-config 1 OCaml Switch Configuration
ocaml-secondary-compiler 4.08.1-1 OCaml 4.08.1 Secondary Switch Compiler
ocamlfind 1.9.1 A library manager for OCaml
ocamlfind-secondary 1.9.1 Adds support for ocaml-secondary-compiler to ocamlfind
zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/coq-contribs/graph-basics"
license: "LGPL 2.1"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/GraphBasics"]
depends: [
"ocaml"
"coq" {>= "8.9" & < "8.10~"}
]
tags: [
"keyword: graph theory"
"keyword: Curry-Howard's isomorphism"
"keyword: inductive definitions"
"category: Mathematics/Combinatorics and Graph Theory"
"date: April 2001"
]
authors: [
"Jean Duprat"
]
bug-reports: "https://github.com/coq-contribs/graph-basics/issues"
dev-repo: "git+https://github.com/coq-contribs/graph-basics.git"
synopsis: "a Coq toolkit for graph theory"
description: """
This library offers inductive definitions of basics
in graph theory. The goal is to offer the possibility to write proofs
and programs on graphs in the same formalism : the Coq language.
It now contains : vertices, arcs, edges, degrees, graphs, directed
graphs,
paths, acyclic graphs, connected graphs and tree."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/graph-basics/archive/v8.9.0.tar.gz"
checksum: "md5=0c9bb7ed9bb71744fb2d5847fdb651e7"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-graph-basics.8.9.0 coq.8.14.1</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.14.1).
The following dependencies couldn't be met:
- coq-graph-basics -> coq < 8.10~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-graph-basics.8.9.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| {
"content_hash": "f19a87c61b5e3289bf4fd8cc735e0a65",
"timestamp": "",
"source": "github",
"line_count": 180,
"max_line_length": 159,
"avg_line_length": 41.75555555555555,
"alnum_prop": 0.5525545502927088,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "7f0a558b75699f66f239c83a30e8111e195b6e0a",
"size": "7541",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.06.1-2.0.5/released/8.14.1/graph-basics/8.9.0.html",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
import OVIRT_PROVIDER from './provider';
import { logDebug } from './helpers';
export function updateHost(host) {
return {
type: 'OVIRT_UPDATE_HOST',
payload: host
}
}
export function updateVm(vm) {
return {
type: 'OVIRT_UPDATE_VM',
payload: vm
}
}
export function updateTemplate(template) {
return {
type: 'OVIRT_UPDATE_TEMPLATE',
payload: template
}
}
export function updateCluster(cluster) {
return {
type: 'OVIRT_UPDATE_CLUSTER',
payload: cluster
}
}
export function removeUnlistedHosts({allHostIds}) {
return {
type: 'OVIRT_REMOVE_UNLISTED_HOSTS',
payload: {
allHostIds
}
}
}
export function removeUnlistedVms({allVmsIds}) {
return {
type: 'OVIRT_REMOVE_UNLISTED_VMS',
payload: {
allVmsIds
}
}
}
export function removeUnlistedTemplates({allTemplateIds}) {
return {
type: 'OVIRT_REMOVE_UNLISTED_TEMPLATES',
payload: {
allTemplateIds
}
}
}
export function removeUnlistedClusters({allClusterIds}) {
return {
type: 'OVIRT_REMOVE_UNLISTED_CLUSTERS',
payload: {
allClusterIds
}
}
}
export function updateIcon(icon) {
return {
type: 'OVIRT_UPDATE_ICON',
payload: icon
};
}
export function migrateVm (vmId, vmName, hostId) {
return OVIRT_PROVIDER.actions.virtMiddleware('MIGRATE_VM', { vmId, vmName, hostId });
}
export function suspendVm ({ id, name, connectionName }) {
return OVIRT_PROVIDER.actions.virtMiddleware('SUSPEND_VM', { id, name, connectionName });
}
export function createVm ({ templateName, clusterName, vm }) {
return OVIRT_PROVIDER.actions.virtMiddleware('CREATE_VM', { templateName, clusterName, vm });
}
export function downloadIcons ({ iconIds, forceReload }) {
return OVIRT_PROVIDER.actions.virtMiddleware('DOWNLOAD_ICONS', { iconIds, forceReload });
}
export function downloadIcon ({ iconId }) {
return OVIRT_PROVIDER.actions.virtMiddleware('DOWNLOAD_ICON', { iconId });
}
export function switchToplevelVisibility (topLevelVisibleComponent, subview) {
return {
type: 'OVIRT_SWITCH_VISIBILITY',
payload: {
topLevelVisibleComponent,
subview,
}
}
}
// --- Matching cockpit:machines action creators: --------------
export function startVm(vm, hostName) {
const { virtMiddleware } = OVIRT_PROVIDER.actions;
logDebug(`startVm() called for vmId=${vm.id}, hostId=${hostName}`);
return virtMiddleware('START_VM', { name: vm.name, id: vm.id, connectionName: vm.connectionName, hostName });
}
export function vmActionFailed({ name, connectionName, message, detail, detailForNonexisting}) {
return {
type: 'VM_ACTION_FAILED',
payload: {
name,
connectionName,
message,
detail,
detailForNonexisting,
}
};
}
| {
"content_hash": "04c1f33a2f0d02dc6ff4ec4e564bfc96",
"timestamp": "",
"source": "github",
"line_count": 123,
"max_line_length": 111,
"avg_line_length": 22.495934959349594,
"alnum_prop": 0.6754607878568847,
"repo_name": "mareklibra/cockpit-machines-ovirt-provider",
"id": "9a8a9a19850cf6d489b28599f23f8858af0320bd",
"size": "2767",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/actions.js",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "752"
},
{
"name": "HTML",
"bytes": "1137"
},
{
"name": "JavaScript",
"bytes": "104193"
},
{
"name": "Makefile",
"bytes": "261"
},
{
"name": "Shell",
"bytes": "4360"
}
],
"symlink_target": ""
} |
using System;
namespace Bea.Core
{
public class PathHelper
{
public static string GetRelativePath (string source, string target)
{
if (!target.EndsWith ("\\")) {
target += '\\';
}
Uri path1 = new Uri (source);
Uri path2 = new Uri (target);
Uri diff = path2.MakeRelativeUri (path1);
return diff.ToString ().Replace ('/', '\\');
}
}
}
| {
"content_hash": "1cb7fca2de7865ed16cdb2c888fa06cd",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 69,
"avg_line_length": 19.31578947368421,
"alnum_prop": 0.6103542234332425,
"repo_name": "Anteru/bea",
"id": "c75ea1cd616d196cd3d8954e8455d92ba877cf9b",
"size": "369",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Bea/Core/PathHelper.cs",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "C#",
"bytes": "34892"
},
{
"name": "C++",
"bytes": "151"
}
],
"symlink_target": ""
} |
from convert.base.factorygenerator import BaseFactoryGenerator
class FactoryGenerator(BaseFactoryGenerator):
def generate(self, data):
return ""
| {
"content_hash": "9e087fecc581909c1314c0407db85d10",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 62,
"avg_line_length": 22.857142857142858,
"alnum_prop": 0.76875,
"repo_name": "HenrikPoulsen/Json2Class",
"id": "984446c935567e3778d244b52f57fded0d1e036c",
"size": "160",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "convert/java/gson/factorygenerator.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "84311"
},
{
"name": "Java",
"bytes": "37872"
},
{
"name": "Python",
"bytes": "104260"
}
],
"symlink_target": ""
} |
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{site.tracking}}']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script> | {
"content_hash": "16ef6f76b9f66a76a5ef1ad8cad54cb0",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 117,
"avg_line_length": 43.27272727272727,
"alnum_prop": 0.6197478991596639,
"repo_name": "caleorourke/portfolio",
"id": "f0ab0a5c7d710bc9150828c4000dc30697123b73",
"size": "476",
"binary": false,
"copies": "1",
"ref": "refs/heads/gh-pages",
"path": "_includes/tracking.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "7980"
},
{
"name": "HTML",
"bytes": "10866"
},
{
"name": "JavaScript",
"bytes": "5041"
}
],
"symlink_target": ""
} |
//=============================================================================
// THIS SOURCE CODE IS PROPRIETARY INFORMATION BELONGING TO INTERVIDEO, INC.
// ANY USE INCLUDING BUT NOT LIMITED TO COPYING OF CODE, CONCEPTS, AND/OR
// ALGORITHMS IS PROHIBITED EXCEPT WITH EXPRESS WRITTEN PERMISSION BY THE
// COMPANY.
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//
// Copyright (c) 1998 - 2006 InterVideo Corporation. All Rights Reserved.
//
//-----------------------------------------------------------------------------
#ifndef _IVI_ANTIDEBUG_H
#define _IVI_ANTIDEBUG_H
#include "IVITRComm.h"
///*!
// [Internal function. Do not call it.]
//
// Define char change to dword
//*/
#define TR_CHAR2DWORD(a,b,c,d) ((a)|((b)<<8)|((c)<<16)|((d)<<24))
///*!
// [Internal function. Do not call it.]
//
// Verify SoftIce exist.
//
// Return value - [bool] true is exist, false is not.\n
// Supported platform: Win98/Linux\n
//*/
bool __cdecl TR_fnVerify_SoftIce();
///*!
// [Internal function. Do not call it.]
//
// Verify is there attached debugger exist.
//
// Return value - [bool] true is exist, false is not.
// Supported platform: Win98/Linux
//*/
bool __cdecl TR_fnVerify_Attached_Debugger();
///*!
// [Internal function. Do not call it.]
//
// Verify is there Vtune 3.0 profiler exist.
//
// Return value - [bool] true is exist, false is not.
// Supported platform: All Windows
//*/
bool __cdecl TR_fnVerify_VTune_30();
///*!
// [Internal function. Do not call it.]
//
// Force halt this process.
//
// Return value - None
// Supported platform: All Windows/Linux
//*/
void __cdecl TR_fnStdHaltThisProcess(int nExitCode = 0);
#ifdef _WIN32
//#ifndef CLSID_DirectDraw
//#include <strmif.h>
//#endif // CLSID_DirectDraw
interface IPin;
///*!
// [Internal function. Do not call it.]
//
// Test upper stream filter is a microsoft navigator pin or ivi navigator pin.
//
// Return value - [bool] true is exist, false is not.
// Supported platform: All Windows(DirectX)
//*/
bool __cdecl TR_fnCheckIPin(IPin *pITestpin);
#endif // _WIN32
///*!
// [Internal class. Do not call it.]
//
// This is watch thread class that looks for the presence of a debugger.
//
// Supported platform: All Windows
//*/
class CTrWatchThd
{
public:
CTrWatchThd();
~CTrWatchThd();
static DWORD __stdcall _TrWatchThd(LPVOID pArg);
private:
HANDLE m_hThd, m_hTermEvt;
};
///*!
// [Internal function. Do not call it.]
//
// Get x86 system time clock cycles.
// for a 2GHz CPU, the result of this macro should increment by 1 for every 2 seconds.
//
// Supported platform: All Windows/Linux
//*/
DWORD __cdecl TR_GetRDTSC();
///*!
// [Internal function. Do not call it.]
//
// Get Pentium system time clock cycles.
// The variable returned is a 32 bit unsigned integer of the #cycles executed.
// divided by 16M. Hence, it increments by ~25 every second on a PII-400.
//
// Supported platform: All Windows/Linux
//*/
DWORD __cdecl TR_GetPentiumRDTSC();
///*!
// [Internal function. Do not call it.]
//
// Get x86 system time clock cycles.
//
// Return value - None
//
// -#dwRDTSC - [IN] can not be NULL, return RDTSC in DWORD.
//
// Supported platform: All Windows/Linux
// Performance overhead: Low
// Security level: Low
// Usage scope: Macro scope
//
// Note:\n
// for a 2GHz CPU, the result of this macro should increment by 1 for every 2 seconds.
//*/
#define GET_RDTSC(dwRDTSC) { dwRDTSC = TR_GetRDTSC(); }
///*!
// [Internal function. Do not call it.]
//
// Get x86 system time clock cycles. [Hidden version #1]
//
// Return value - None
//
// -#linenumber - [IN] can not be NULL, any number to assign a label name.
// -#dwRDTSC - [IN] can not be NULL, return RDTSC in DWORD.
//
// Supported platform: All Windows/Linux
// Performance overhead: Low
// Security level: Low
// Usage scope: Macro scope
//
// Note:\n
// for VC environment linenumber can use __LINE__ instead.
// please refer to GET_RDTSC macro.
//*/
#define HIDDEN_GET_RDTSC1(linenumber, dwRDTSC) \
iviTR_FALSE_RETURN_1(linenumber) \
GET_RDTSC(dwRDTSC)
///*!
// [Internal function. Do not call it.]
//
// Get x86 system time clock cycles. [Hidden version #2]
//
// Return value - None
//
// -#linenumber - [IN] can not be NULL, any number to assign a label name.
// -#dwRDTSC - [IN] can not be NULL, return RDTSC in DWORD.
//
// Supported platform: All Windows/Linux
// Performance overhead: Low
// Security level: Low
// Usage scope: Macro scope
//
// Note:\n
// for VC environment linenumber can use __LINE__ instead.
// please refer to GET_RDTSC macro.
//*/
#define HIDDEN_GET_RDTSC2(linenumber, dwRDTSC) \
iviTR_FALSE_RETURN_2(linenumber) \
GET_RDTSC(dwRDTSC)
///*!
// [Internal function. Do not call it.]
//
// Get x86 system time clock cycles. [Hidden version #3]
//
// Return value - None
//
// -#linenumber - [IN] can not be NULL, any number to assign a label name.
// -#dwRDTSC - [IN] can not be NULL, return RDTSC in DWORD.
//
// Supported platform: All Windows/Linux
// Performance overhead: Low
// Security level: Low
// Usage scope: Macro scope
//
// Note:\n
// for VC environment linenumber can use __LINE__ instead.
// please refer to GET_RDTSC macro.
//*/
#define HIDDEN_GET_RDTSC3(linenumber, dwRDTSC) \
iviTR_MISALIGNMENT_1(linenumber) \
GET_RDTSC(dwRDTSC)
///*!
// [Internal function. Do not call it.]
//
// Get x86 system time clock cycles. [Hidden version #3]
//
// Return value - None
//
// -#linenumber - [IN] can not be NULL, any number to assign a label name.
// -#dwRDTSC - [IN] can not be NULL, return RDTSC in DWORD.
//
// Supported platform: All Windows/Linux
// Performance overhead: Low
// Security level: Low
// Usage scope: Macro scope
//
// Note:\n
// for VC environment linenumber can use __LINE__ instead.
// please refer to GET_RDTSC macro.
//*/
#define HIDDEN_GET_RDTSC4(linenumber, dwRDTSC) \
iviTR_MISALIGNMENT_2(linenumber) \
GET_RDTSC(dwRDTSC)
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
///*!
// Verify if SoftIce kernel debugger is installed in the system.
//
// Return value - None
//
// -#proc - [IN] operation if Soft-Ice exist.
//
// Supported platform: Win95/98
// Performance overhead: Low
// Security level: Low
// Usage scope: Macro scope
//*/
#ifdef _WIN32
#define iviTR_VERIFY_SOFTICE(proc) { if (TR_fnVerify_SoftIce()) { iviTR_DUMP_ERROR_TR_MACRO_ENTRY(true, iviTR_VERIFY_SOFTICE) proc; }}
#elif defined(__linux__)
// Linux does not need to test for soft ice
#define iviTR_VERIFY_SOFTICE(proc)
#endif //_WIN32
///*!
// Verify if debugger is debugging current program.
//
// Return value - None
//
// -#proc - [IN] operation if debugger attached exist.
//
// Supported platform: Win95/98
// Performance overhead: Low
// Security level: Low
// Usage scope: Macro scope
//*/
#define iviTR_VERIFY_ATTACHED_DEBUGGER(proc) { if (TR_fnVerify_Attached_Debugger()) { iviTR_DUMP_ERROR_TR_MACRO_ENTRY(true, iviTR_VERIFY_ATTACHED_DEBUGGER) proc; }}
///*!
// Verify if Vtune 3.0 profiler is analyzing current program
//
// Return value - None
//
// -#proc - [IN] operation if Vtune 3.0 run-time exist.
//
// Supported platform: All Windows
// Performance overhead: Low
// Security level: Low
// Usage scope: Macro scope
//*/
#ifdef _WIN32
#define iviTR_VERIFY_VTUNE_30(proc) { if (TR_fnVerify_VTune_30()) { iviTR_DUMP_ERROR_TR_MACRO_ENTRY(true, iviTR_VERIFY_VTUNE_30) proc; }}
#elif defined(__linux__)
#define iviTR_VERIFY_VTUNE_30(proc)
#endif // _WIN32
///*!
// Check if time expired reported from the watchdog thread.
//
// Return value - None
//
// -#timeout_sec - [IN] specify time out limit in sec.
// -#proc - [IN] operation if exceed timer limit.
//
// Supported platform: All Windows/Linux
// Performance overhead: Low
// Security level: Low
// Usage scope: Macro scope
//
// Note:\n
// this macro is incomplete. Do not use it.
//*/
#ifdef _WIN32
#define iviTR_CHECK_THREAD_TIMER(timeout_sec,proc) /* need win32 implementation */
#elif defined(__linux__)
#define iviTR_CHECK_THREAD_TIMER(timeout_sec,proc)\
{ extern volatile unsigned long TR_max_expire_delay; /* linuxtimer.cpp */ \
if (TR_max_expire_delay > (timeout_sec)*1000) \
{ /*printf("exiting!\n");*/ iviTR_DUMP_ERROR_TR_MACRO_ENTRY(true, iviTR_CHECK_THREAD_TIMER) proc; }\
}
#endif // _WIN32
///*!
// Halt current process.
//
// Return value - None
//
// -#x - [IN] exit process return code, int value.
//
// Supported platform: All Windows/Linux
// Performance overhead: Low
// Security level: Low
// Usage scope: Macro scope
//*/
#ifdef _WIN32
#define iviTR_HALT_THIS_PROCESS(x) TR_fnStdHaltThisProcess(x)
#elif !defined(USE_MIPS) && !defined(NO_TR) && defined(__linux__)
/* Linux */
#define iviTR_HALT_THIS_PROCESS(x) TR_fnStdHaltThisProcess(x)
#endif // _WIN32
///*!
// Default halt current process.
//
// Return value - None
//
// -#x - [IN] exit process return code, int value.
//
// Supported platform: All Windows
// Performance overhead: Low
// Security level: Low
// Usage scope: Macro scope
//
// Note:\n
// Linux: does not exit process immediately after checking for debugger
// since it's too easy to see how debugger was detected by looking
// at the output of the "strace" command.
//*/
#ifdef _WIN32
#define iviTR_DEFAULT_ACTION iviTR_HALT_THIS_PROCESS(2)
#elif defined(__linux__)
#define iviTR_DEFAULT_ACTION
#endif // _WIN32
///*!
// Check if the testpin is connected to an upstream filter that IS NOT
// a Microsoft navigator pin or IVI navigator pin.
//
// Return value - None
//
// -#testpin - [IN] interface IPin point for test.
// -#flag - [OUT] return bool value, true if the testpin is cracked.
//
// Supported platform: All Windows
// Performance overhead: Low
// Security level: Medium
// Usage scope: Macro scope
//*/
#ifdef _WIN32
#define iviTR_CHECK_MICROSOFT_PIN(testpin, flag) { flag = TR_fnCheckIPin((IPin*)testpin); iviTR_DUMP_ERROR_TR_MACRO_ENTRY(flag, iviTR_CHECK_MICROSOFT_PIN)}
#elif defined(__linux__)
#define iviTR_CHECK_MICROSOFT_PIN(testpin, flag) {(flag)=0;}
#endif
/*
//
// Keep function return address.
//
// Return value - None
//
// Supported platform: All Windows
// Performance overhead: Medium
// Security level: Medium
// Usage scope: Function scope
//
// Note:\n
// READ_RETURN_ADDR must be placed near the beginning of the function.
// Use this with CHECK_RETURN_ADDR together.
// When you use these macros, you should check the compiled code to make
// sure there is no explicit operations on EBP (such as sub ebp,30h) in the function
// before the macros are called.
//
// emms instruction is only needed if you are not sure whether any MMX codes
// forgot to put emms at the end of the block.
//
// For safety, you should enclose your function with:
// #pragma optimize("y", off)
// ... your function ...
// #pragma optimize("", on)
//
// Usage:\n
// void somefunction()
// {
// READ_RETURN_ADDR
// ...
// ...
// __asm emms
// if(!CHECK_RETURN_ADDR(TR_RegionBegin_xx, TR_RegionEnd_xx))
// cause_delayed_instability;
//
// #ifndef READ_RETURN_ADDR
// #define READ_RETURN_ADDR \
// DWORD __dwRetAddr__; \
// __asm push eax \
// __asm mov eax, dword ptr [ebp+4] \
// __asm mov __dwRetAddr__, eax \
// __asm pop eax
// #endif
//
// Check function real body by entry address distance.
//
// Return value - None
//
// Supported platform: All Windows
// Performance overhead: Medium
// Security level: Medium
// Usage scope: Macro scope
//
// Note:\n
// Use this with READ_RETURN_ADDR together.
// When you use these macros, you should check the compiled code to make
// sure there is no explicit operations on EBP (such as sub ebp,30h) in the function
// before the macros are called.
//
// emms instruction is only needed if you are not sure whether any MMX codes
// forgot to put emms at the end of the block.
//
// For safety, you should enclose your function with:
// #pragma optimize("y", off)
// ... your function ...
// #pragma optimize("", on)
//
// Usage:\n
// void somefunction()
// {
// READ_RETURN_ADDR
// ...
// ...
// __asm emms
// if(!CHECK_RETURN_ADDR(TR_RegionBegin_xx, TR_RegionEnd_xx))
// cause_delayed_instability;
//
// #ifndef CHECK_RETURN_ADDR
// #define CHECK_RETURN_ADDR(regbegin, regend) \
// (((float)__dwRetAddr__ - (float)regbegin) * ((float)__dwRetAddr__ - (float)regend) <= 0.05f)
// #endif
*/
///*!
// The following macro gets the internal Pentium/PPro/PII timestamp counter
// (RDTSC) divided by 16Mcycles. The purpose of the macro is to be used in the synchronization code to
// detect whether or not play has been stopped in the middle of execution due
// to a kernel or system debugger.
//
// Return value - None
//
// -#dwRDTSC - [IN] can not be NULL, return RDTSC in DWORD.
//
// Supported platform: All Windows/Linux
// Performance overhead: Low
// Security level: None
// Usage scope: Macro scope
//
// Note:\n
// The variable returned is a 32 bit unsigned integer of the #cycles executed.
// divided by 16M. Hence, it increments by ~25 every second on a PII-400.
// Please take care about the overflow issue by yourself.
//*/
#define iviTR_GETRDTSC(dwRDTSC) { dwRDTSC = TR_GetPentiumRDTSC(); }
#endif // _IVI_ANTIDEBUG_H
| {
"content_hash": "3196ad3cb7484e35b4c5a1e5ad6bb45b",
"timestamp": "",
"source": "github",
"line_count": 486,
"max_line_length": 164,
"avg_line_length": 28.041152263374485,
"alnum_prop": 0.6538009979454065,
"repo_name": "goodspeed24e/2011Corel",
"id": "07b0bed7f71b451fe5e3768cae83d36bc44762c2",
"size": "13628",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Video/Dec/Core/H264VDec/Main/Imports/Inc/TRService/IVIAntiDebug.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Assembly",
"bytes": "86377"
},
{
"name": "C",
"bytes": "7852836"
},
{
"name": "C++",
"bytes": "16943615"
},
{
"name": "CSS",
"bytes": "1381"
},
{
"name": "Groff",
"bytes": "4265"
},
{
"name": "HTML",
"bytes": "47572"
},
{
"name": "Makefile",
"bytes": "46695"
},
{
"name": "Objective-C",
"bytes": "179437"
},
{
"name": "Shell",
"bytes": "676463"
}
],
"symlink_target": ""
} |
<?php
/**
* Custom User form element
*
* @author Christian Gijtenbeek <[email protected]>
* @package TA_Form
* @subpackage Element
*/
class TA_Form_Element_User extends Zend_Form_Element_Select
{
/**
* Holds the row object
* @var TA_Model_Resource_Db_Table_Row_Abstract
*/
protected $_taRow;
/**
* Holds the controller name
* @var string
*/
protected $_taController;
/**
* Populate element with user values
*
* @param string $role Only show users that have this role
* @return TA_Form_Element_User fluent interface
*/
public function populateElement($role = null)
{
$userModel = new Core_Model_User();
$this->setMultiOptions($userModel->getUsersForSelect(true, $role))
->setRegisterInArrayValidator(false);
return $this;
}
/**
* Set row property for later access by decorator
*
* @param TA_Model_Resource_Db_Table_Row_Abstract $row
* @return TA_Form_Element_User fluent interface
*/
public function setTaRow(TA_Model_Resource_Db_Table_Row_Abstract $row)
{
$this->_taRow = $row;
return $this;
}
public function setTaController($controller)
{
$this->_taController = $controller;
return $this;
}
public function getTaController()
{
return $this->_taController;
}
/**
* Get row object
*
* @return TA_Model_Resource_Db_Table_Row_Abstract
*/
public function getTaRow()
{
if (!$this->_taRow instanceof TA_Form_Element_User_Interface) {
throw new TA_Exception('Row element must implement TA_Form_Element_User_Interface');
}
return $this->_taRow;
}
/**
* Define default decorators
*
*/
public function loadDefaultDecorators()
{
if ($this->loadDefaultDecoratorsIsDisabled()) {
return;
}
$decorators = $this->getDecorators();
if (empty($decorators)) {
$this->addDecorator('User')
->addDecorator('ViewHelper')
->addDecorator('Label', array('class'=>'desc'))
->addDecorator('Errors')
->addDecorator('HtmlTag', array('tag'=>'li'))
->addDecorator('Description', array('tag' => 'div',
'class' => 'description', 'escape' => false));
}
}
} | {
"content_hash": "c8f0ba777bb94500980e3d84302aee3b",
"timestamp": "",
"source": "github",
"line_count": 101,
"max_line_length": 87,
"avg_line_length": 22.257425742574256,
"alnum_prop": 0.6174377224199288,
"repo_name": "Christian-G/terena-core",
"id": "8b6bb76f83e3fd4f960d4d60745a4ea3e56907d1",
"size": "2875",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "library/TA/Form/Element/User.php",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "ApacheConf",
"bytes": "64"
},
{
"name": "CSS",
"bytes": "57929"
},
{
"name": "HTML",
"bytes": "298259"
},
{
"name": "JavaScript",
"bytes": "24333"
},
{
"name": "PHP",
"bytes": "1729925"
},
{
"name": "SQLPL",
"bytes": "60140"
},
{
"name": "Smarty",
"bytes": "7111"
}
],
"symlink_target": ""
} |
package com.intellij.ide.navigationToolbar;
import com.intellij.ide.navigationToolbar.ui.NavBarUIManager;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.actionSystem.DataProvider;
import com.intellij.openapi.ui.DialogWrapper;
import com.intellij.openapi.ui.Queryable;
import com.intellij.openapi.util.Disposer;
import com.intellij.openapi.util.SystemInfo;
import com.intellij.openapi.wm.IdeFocusManager;
import com.intellij.psi.PsiElement;
import com.intellij.ui.*;
import com.intellij.ui.awt.RelativePoint;
import com.intellij.ui.components.JBList;
import com.intellij.ui.popup.HintUpdateSupply;
import com.intellij.ui.speedSearch.ListWithFilter;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* @author Konstantin Bulenkov
*/
public class NavBarPopup extends LightweightHint implements Disposable{
private static final String JBLIST_KEY = "OriginalList";
private static final String NAV_BAR_POPUP = "NAV_BAR_POPUP";
private final NavBarPanel myPanel;
private final int myIndex;
private static final String DISPOSED_OBJECTS = "DISPOSED_OBJECTS";
public NavBarPopup(final NavBarPanel panel, Object[] siblings, final int selectedIndex) {
super(createPopupContent(panel, siblings));
myPanel = panel;
myIndex = selectedIndex;
setFocusRequestor(getComponent());
setForceShowAsPopup(true);
ListenerUtil.addMouseListener(getComponent(), new MouseAdapter() {
@Override
public void mouseReleased(final MouseEvent e) {
if (SystemInfo.isWindows) {
click(e);
}
}
@Override
public void mousePressed(final MouseEvent e) {
if (!SystemInfo.isWindows) {
click(e);
}
}
private void click(final MouseEvent e) {
if (e.getComponent() != getList()) return;
if (!e.isConsumed() && e.isPopupTrigger()) {
myPanel.getModel().setSelectedIndex(selectedIndex);
IdeFocusManager.getInstance(myPanel.getProject()).requestFocus(myPanel, true);
myPanel.rightClick(selectedIndex);
e.consume();
} else {
final Object value = getList().getSelectedValue();
if (value != null) {
myPanel.navigateInsideBar(value);
}
}
}
});
}
@Override
protected void onPopupCancel() {
myPanel.resetSelection(); // select last item if popup cancelled
final JComponent component = getComponent();
if (component != null) {
Object o = component.getClientProperty(JBLIST_KEY);
if (o instanceof JComponent) HintUpdateSupply.hideHint((JComponent)o);
}
//noinspection unchecked
for (Disposable disposable : ((List<Disposable>)getList().getClientProperty(DISPOSED_OBJECTS))) {
Disposer.dispose(disposable);
}
Disposer.dispose(this);
}
public void show(final NavBarItem item) {
show(item, true);
}
private void show(final NavBarItem item, boolean checkRepaint) {
final RelativePoint point = new RelativePoint(item, new Point(0, item.getHeight()));
final Point p = point.getPoint(myPanel);
if (p.x == 0 && p.y == 0 && checkRepaint) { // need repaint of nav bar panel
//noinspection SSBasedInspection
SwingUtilities.invokeLater(() -> {
myPanel.getUpdateQueue().rebuildUi();
//noinspection SSBasedInspection
SwingUtilities.invokeLater(() -> {
show(item, false); // end-less loop protection
});
});
} else {
int offset = NavBarUIManager.getUI().getPopupOffset(item);
show(myPanel, p.x - offset, p.y, myPanel, new HintHint(myPanel, p));
final JBList list = getList();
if (0 <= myIndex && myIndex < list.getItemsCount()) {
ScrollingUtil.selectItem(list, myIndex);
}
}
if (myPanel.isInFloatingMode()) {
final Window window = SwingUtilities.windowForComponent(getList());
window.addWindowFocusListener(new WindowFocusListener() {
@Override
public void windowGainedFocus(WindowEvent e) {
}
@Override
public void windowLostFocus(WindowEvent e) {
final Window w = e.getOppositeWindow();
if (w != null && DialogWrapper.findInstance(w.getComponent(0)) != null) {
myPanel.hideHint();
}
}
});
}
}
@Override
public void dispose() {
}
private static JComponent createPopupContent(final NavBarPanel panel, Object[] siblings) {
final JBListWithHintProvider list = new NavbarPopupList(panel, siblings);
list.setDataProvider(new DataProvider() {
@Override
public Object getData(@NonNls String dataId) {
return panel.getData(dataId);
}
});
final List<Disposable> disposables = new ArrayList<>();
list.putClientProperty(DISPOSED_OBJECTS, disposables);
list.installCellRenderer(obj -> {
final NavBarItem navBarItem = new NavBarItem(panel, obj, null);
disposables.add(navBarItem);
return navBarItem;
});
list.setBorder(IdeBorderFactory.createEmptyBorder(5, 5, 5, 5));
installMoveAction(list, panel, -1, KeyEvent.VK_LEFT);
installMoveAction(list, panel, 1, KeyEvent.VK_RIGHT);
installEnterAction(list, panel, KeyEvent.VK_ENTER);
installEscapeAction(list, panel, KeyEvent.VK_ESCAPE);
final JComponent component = ListWithFilter.wrap(list, new NavBarListWrapper(list), o -> panel.getPresentation().getPresentableText(o));
component.putClientProperty(JBLIST_KEY, list);
return component;
}
private static void installEnterAction(final JBList list, final NavBarPanel panel, int keyCode) {
final AbstractAction action = new AbstractAction() {
@Override
public void actionPerformed(ActionEvent e) {
panel.navigateInsideBar(list.getSelectedValue());
}
};
list.registerKeyboardAction(action, KeyStroke.getKeyStroke(keyCode, 0), JComponent.WHEN_FOCUSED);
}
private static void installEscapeAction(final JBList list, final NavBarPanel panel, int keyCode) {
final AbstractAction action = new AbstractAction() {
@Override
public void actionPerformed(ActionEvent e) {
panel.cancelPopup();
}
};
list.registerKeyboardAction(action, KeyStroke.getKeyStroke(keyCode, 0), JComponent.WHEN_FOCUSED);
}
public Object getSelectedValue() {
return getList().getSelectedValue();
}
public Object[] getSelectedValues() {
return getList().getSelectedValues();
}
public JBList getList() {
return ((JBList)getComponent().getClientProperty(JBLIST_KEY));
}
private static void installMoveAction(JBList list, final NavBarPanel panel, final int direction, final int keyCode) {
final AbstractAction action = new AbstractAction() {
@Override
public void actionPerformed(ActionEvent e) {
panel.cancelPopup();
panel.shiftFocus(direction);
panel.restorePopup();
}
};
list.registerKeyboardAction(action, KeyStroke.getKeyStroke(keyCode, 0), JComponent.WHEN_FOCUSED);
}
private static class NavbarPopupList extends JBListWithHintProvider implements Queryable {
private final NavBarPanel myPanel;
public NavbarPopupList(NavBarPanel panel, Object[] siblings) {
super(siblings);
myPanel= panel;
}
@Override
public void putInfo(@NotNull Map<String, String> info) {
myPanel.putInfo(info);
}
@Override
protected PsiElement getPsiElementForHint(Object selectedValue) {
return selectedValue instanceof PsiElement ? (PsiElement) selectedValue : null;
}
}
}
| {
"content_hash": "ab40d4ec571fed65e6ad61b58a1a93b9",
"timestamp": "",
"source": "github",
"line_count": 224,
"max_line_length": 140,
"avg_line_length": 34.55357142857143,
"alnum_prop": 0.6903100775193799,
"repo_name": "idea4bsd/idea4bsd",
"id": "d9de8b72e706005cb6d1f7d26f38b78dae90b840",
"size": "8340",
"binary": false,
"copies": "1",
"ref": "refs/heads/idea4bsd-master",
"path": "platform/lang-impl/src/com/intellij/ide/navigationToolbar/NavBarPopup.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "AMPL",
"bytes": "20665"
},
{
"name": "AspectJ",
"bytes": "182"
},
{
"name": "Batchfile",
"bytes": "59458"
},
{
"name": "C",
"bytes": "224097"
},
{
"name": "C#",
"bytes": "1538"
},
{
"name": "C++",
"bytes": "197012"
},
{
"name": "CSS",
"bytes": "197224"
},
{
"name": "CoffeeScript",
"bytes": "1759"
},
{
"name": "Cucumber",
"bytes": "14382"
},
{
"name": "Erlang",
"bytes": "10"
},
{
"name": "Groff",
"bytes": "35232"
},
{
"name": "Groovy",
"bytes": "2971715"
},
{
"name": "HLSL",
"bytes": "57"
},
{
"name": "HTML",
"bytes": "1829102"
},
{
"name": "J",
"bytes": "5050"
},
{
"name": "Java",
"bytes": "158117117"
},
{
"name": "JavaScript",
"bytes": "563135"
},
{
"name": "Jupyter Notebook",
"bytes": "93222"
},
{
"name": "Kotlin",
"bytes": "2208983"
},
{
"name": "Lex",
"bytes": "179058"
},
{
"name": "Makefile",
"bytes": "3018"
},
{
"name": "NSIS",
"bytes": "49952"
},
{
"name": "Objective-C",
"bytes": "28750"
},
{
"name": "Perl",
"bytes": "903"
},
{
"name": "Perl6",
"bytes": "26"
},
{
"name": "Protocol Buffer",
"bytes": "6607"
},
{
"name": "Python",
"bytes": "23911290"
},
{
"name": "Ruby",
"bytes": "1217"
},
{
"name": "Scala",
"bytes": "11698"
},
{
"name": "Shell",
"bytes": "63460"
},
{
"name": "Smalltalk",
"bytes": "64"
},
{
"name": "TeX",
"bytes": "25473"
},
{
"name": "Thrift",
"bytes": "1846"
},
{
"name": "TypeScript",
"bytes": "9469"
},
{
"name": "Visual Basic",
"bytes": "77"
},
{
"name": "XSLT",
"bytes": "113040"
}
],
"symlink_target": ""
} |
{-+ PFE command line parsing utilities
-}
module PfeParse(module PfeParse,arg,(<@),( #@ ),many) where
import Char(isUpper)
import Monad(when)
import Maybe(isJust)
import HsName(ModuleName(..),sameModuleName,parseModuleName,isMainModule)
import TypedIds(NameSpace(..))
import PFE0(getCurrentModuleGraph,projectStatus)
import PrettyPrint(pp,(<+>),fsep)
import CmdLineParser3 as P
import MUtils((@@),( # ),concatMapM,swap,apBoth)
runCmds run cmds = run $ doCmd (cmds, projectStatus)
--type Cmd r = (String,(P r,String))
--doCmd :: ([Cmd (m ()], (m ())) -> String -> m ()
doCmd cmds _ = parseAll (cmdGrammar cmds)
cmdGrammar (cmds,default_cmd) =
named "command" $
foldr (!) (nil default_cmd)
[nil id `chk` kw cmd <@ p :-- usage|(cmd,(p,usage))<-cmds]
usage prg cmds = P.usage prg (cmdGrammar (cmds,projectStatus))
kwOption w = isJust # opt (kw w)
noArgs = nil
args s f = f # many (arg s) -- s should now be in singular form!
filename = arg "<filename>"
filenames = many filename
fileArgs f = f # filenames
fileArg f = fileArgs (mapM_ f)
moduleArg f = moduleArgs (mapM_ f)
moduleArgs f = f @@ checkModuleNames # many (arg "<module>")
moduleArg' opts f = moduleArgs' opts (mapM_ . f)
moduleArgs' opts f = f' #@ opts <@ many (arg "<module>")
where f' o = f o @@ checkModuleNames
checkModuleNames = concatMapM checkModuleName
checkModuleName s =
do ms <- filter sameModule . map (fst.snd) # getCurrentModuleGraph
when (null ms) $ fail (s++": unknown module")
return ms
where
m = parseModuleName s
sameModule = if isMainModule m then (==) m else sameModuleName s
-- "Main{-file.hs-}" selects one particular Main module,
-- "Main" select all main modules in a project
just ms = if null ms then Nothing else Just ms
idArgs f = f # many (arg "<identifier>")
qualIds f = (f @@ parseQualIds) # many (arg "<M.x>")
qualId f = (f @@ parseQualId) # arg "<M.x>"
parseQualIds = mapM parseQualId
{-
parseOneQualId = parseQualId @@ one
where
one [q] = return q
one qs = fail $ "Exactly one qualified name is required: "++unwords qs
-}
parseQualId s =
case splitQualName s of
Just (m,n) -> flip (,) n # checkModuleName1 m
-- TODO: also check that m.n is defined!
_ -> fail $ "Qaulified name required: "++s
where
splitQualName = fmap (apBoth reverse . swap) . split . reverse
split s = case break (=='.') s of
(s1,'.':s2) -> Just (s1,s2)
_ -> Nothing
{-
isQual s =
case break (=='.') s of
(c:_,'.':_:_) -> isUpper c
_ -> False
-}
checkModuleName1 = one @@ checkModuleName
where
one [q] = return q
one qs = fail $ pp $ "Ambiguous module name:"<+>fsep qs
entityId f = (f' # opt idty) <@ arg "<M.x>"
where
f' ns = f . (,) ns @@ parseQualId
-- This could be done with cmd and !,
-- but the usage printer isn't good enough yet.
idty = Token conv "type|class|value|con"
conv arg | isClassOrType arg = Just ClassOrTypeNames
| isValue arg = Just ValueNames
| otherwise = Nothing
isClassOrType arg = arg `elem` ["type","class"]
isValue arg = arg `elem` ["value","con"]
{-
entityId f = Args "[type|class|value] <M.x>" (f @@ parseEntId)
where
parseEntId args0 = (,) ns # parseOneQualId args1
where
(ns,args1) =
case args0 of
arg:args | isClassOrType arg -> (Just ClassOrTypeNames,args)
| isValue arg -> (Just ValueNames,args)
_ -> (Nothing,args0)
isClassOrType arg = arg `elem` ["type","class"]
isValue arg = arg `elem` ["value","con"]
-}
| {
"content_hash": "19caace6aab09693a1db6f35765408bf",
"timestamp": "",
"source": "github",
"line_count": 124,
"max_line_length": 75,
"avg_line_length": 29.177419354838708,
"alnum_prop": 0.6205085682697623,
"repo_name": "forste/haReFork",
"id": "d82a2ce49321806cc8e0bd2c09e266c4c62b0325",
"size": "3618",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "tools/pfe/PfeParse.hs",
"mode": "33261",
"license": "bsd-3-clause",
"language": [
{
"name": "Emacs Lisp",
"bytes": "57707"
},
{
"name": "Haskell",
"bytes": "1694821"
},
{
"name": "VimL",
"bytes": "35788"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html class="pl">
<head>
<title>UC Davis Library Pattern Lab</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="../../css/style.css?1474914948216" media="all" />
<link rel="stylesheet" href="../../css/pattern-scaffolding.css?1474914948216" media="all" />
<script src="https://use.typekit.net/umm3adq.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
<!-- Begin Pattern Lab (Required for Pattern Lab to run properly) -->
<!-- never cache patterns -->
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<link rel="stylesheet" href="../../styleguide/css/styleguide.min.css?1474914948216" media="all">
<link rel="stylesheet" href="../../styleguide/css/prism-typeahead.min.css?1474914948216" media="all" />
<!-- End Pattern Lab -->
</head>
<body class="body">
<fieldset class="fieldset">
<select>
<option value="husker">Husker</option>
<option value="starbuck">Starbuck</option>
<option value="hotdog">Hot Dog</option>
<option value="apollo">Apollo</option>
</select>
</fieldset>
<!--DO NOT REMOVE-->
<script type="text/json" id="sg-pattern-data-footer" class="sg-pattern-data">
{"cssEnabled":false,"patternLineageExists":false,"patternLineages":[],"lineage":[],"patternLineageRExists":false,"patternLineagesR":[],"lineageR":[],"patternLineageEExists":false,"patternDesc":"","patternBreadcrumb":{"patternType":"atoms","patternSubtype":"forms"},"patternExtension":"mustache","patternName":"Select Menu","patternPartial":"atoms-select-menu","patternState":"","patternEngineName":"mustache","extraOutput":{}}
</script>
<script>
var scriptLoader = {
run: function(js,cb,target) {
var s = document.getElementById(target+'-'+cb);
for (var i = 0; i < js.length; i++) {
var src = (typeof js[i] != 'string') ? js[i].src : js[i];
var c = document.createElement('script');
c.src = '../../'+src+'?'+cb;
if (typeof js[i] != 'string') {
if (js[i].dep !== undefined) {
c.onload = function(dep,cb,target) {
return function() {
scriptLoader.run(dep,cb,target);
}
}(js[i].dep,cb,target);
}
}
s.parentNode.insertBefore(c,s);
}
}
}
</script>
<script id="pl-js-polyfill-insert-1474914948216">
(function() {
if (self != top) {
var cb = '1474914948216';
var js = [];
if (typeof document !== 'undefined' && !('classList' in document.documentElement)) {
js.push('styleguide/bower_components/classList.min.js');
}
scriptLoader.run(js,cb,'pl-js-polyfill-insert');
}
})();
</script>
<script id="pl-js-insert-1474914948216">
(function() {
if (self != top) {
var cb = '1474914948216';
var js = [ { 'src': 'styleguide/bower_components/jwerty.min.js', 'dep': [ 'styleguide/js/patternlab-pattern.min.js' ] } ];
scriptLoader.run(js,cb,'pl-js-insert');
}
})();
</script>
</body>
</html>
| {
"content_hash": "26e4bb144e1f9dfd5917c2f0651cc81e",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 428,
"avg_line_length": 35.16842105263158,
"alnum_prop": 0.6070038910505836,
"repo_name": "UCDavisLibrary/ucd-lib-prototypes",
"id": "6f6aeb4561cd6087abc661aeb22ca81ab13d0f73",
"size": "3476",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "public/patterns/00-atoms-05-forms-01-select-menu/00-atoms-05-forms-01-select-menu.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "267920"
},
{
"name": "HTML",
"bytes": "1831690"
},
{
"name": "JavaScript",
"bytes": "93257"
}
],
"symlink_target": ""
} |
FROM balenalib/n510-tx2-fedora:33-build
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
RUN dnf install -y \
python-pip \
python-dbus \
&& dnf clean all
# install "virtualenv", since the vast majority of users of this image will want it
RUN pip install -U --no-cache-dir --ignore-installed pip setuptools \
&& pip install --no-cache-dir virtualenv
RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo $'As of January 1st, 2020, Python 2 was end-of-life, we will change the latest tag for Balenalib Python base image to Python 3.x and drop support for Python 2 soon. So after 1st July, 2020, all the balenalib Python latest tag will point to the latest Python 3 version and no changes, or fixes will be made to balenalib Python 2 base image. If you are using Python 2 for your application, please upgrade to Python 3 before 1st July.' > /.balena/messages/python-deprecation-warning
CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs"]
RUN curl -SLO "https://raw.githubusercontent.com/balena-io-library/base-images/8accad6af708fca7271c5c65f18a86782e19f877/scripts/assets/tests/[email protected]" \
&& echo "Running test-stack@python" \
&& chmod +x [email protected] \
&& bash [email protected] \
&& rm -rf [email protected]
RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo $'Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): \nArchitecture: ARM v8 \nOS: Fedora 33 \nVariant: build variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \nPython v2.7.18, Pip v21.0.1, Setuptools v56.0.0 \nExtra features: \n- Easy way to install packages with `install_packages <package-name>` command \n- Run anywhere with cross-build feature (for ARM only) \n- Keep the container idling with `balena-idle` command \n- Show base image details with `balena-info` command' > /.balena/messages/image-info
RUN echo $'#!/bin/sh.real\nbalena-info\nrm -f /bin/sh\ncp /bin/sh.real /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \
&& chmod +x /bin/sh-shim \
&& cp /bin/sh /bin/sh.real \
&& mv /bin/sh-shim /bin/sh | {
"content_hash": "931702e6824783b7f179be740d70b4dd",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 708,
"avg_line_length": 77.7741935483871,
"alnum_prop": 0.7328909166321028,
"repo_name": "nghiant2710/base-images",
"id": "344b08d302c52343413e96f14be35b1feaa69681",
"size": "2432",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "balena-base-images/python/n510-tx2/fedora/33/2.7.18/build/Dockerfile",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "144558581"
},
{
"name": "JavaScript",
"bytes": "16316"
},
{
"name": "Shell",
"bytes": "368690"
}
],
"symlink_target": ""
} |
.. title:: Home
.. raw:: html
<div class="container"><div class="row">
<div class="col-md-8"><div style="text-align: center; height: 270px">
<span style="display: inline-block; height: 100%; vertical-align: middle"></span>
<a href="index.html"><img src="_static/mne_logo.png" border="0" alt="MNE" style="vertical-align: middle"></a>
</div></div>
<div class="col-md-4"><div style="float: left">
<a href="index.html"><img src="_static/institutions.png"" border="0" alt="Institutions"/></a>
</div></div>
</div></div>
.. raw:: html
<div class="container-fluid">
<div class="row">
<div class="col-md-8">
<br>
MNE is a community-driven software package designed for for **processing
electroencephalography (EEG) and magnetoencephalography (MEG) data**
providing comprehensive tools and workflows for:
1. Preprocessing
2. Source estimation
3. Time–frequency analysis
4. Statistical testing
5. Estimation of functional connectivity
6. Applying machine learning algorithms
7. Visualization of sensor- and source-space data
MNE includes a comprehensive Python package (provided under the simplified
BSD license), supplemented by tools compiled from C code for the LINUX and
Mac OSX operating systems, as well as a MATLAB toolbox.
**From raw data to source estimates in about 30 lines of code:**
.. code:: python
>>> import mne
>>> raw = mne.io.Raw('raw.fif', preload=True) # load data
>>> raw.info['bads'] = ['MEG 2443', 'EEG 053'] # mark bad channels
>>> raw.filter(l_freq=None, h_freq=40.0) # low-pass filter data
>>> # Extract epochs and save them:
>>> picks = mne.pick_types(raw.info, meg=True, eeg=True, eog=True,
>>> exclude='bads')
>>> events = mne.find_events(raw)
>>> reject = dict(grad=4000e-13, mag=4e-12, eog=150e-6)
>>> epochs = mne.Epochs(raw, events, event_id=1, tmin=-0.2, tmax=0.5,
>>> proj=True, picks=picks, baseline=(None, 0),
>>> preload=True, reject=reject)
>>> # Compute evoked response and noise covariance
>>> evoked = epochs.average()
>>> cov = mne.compute_covariance(epochs, tmax=0)
>>> evoked.plot() # plot evoked
>>> # Compute inverse operator:
>>> fwd_fname = 'sample_audvis−meg−eeg−oct−6−fwd.fif'
>>> fwd = mne.read_forward_solution(fwd_fname, surf_ori=True)
>>> inv = mne.minimum_norm.make_inverse_operator(raw.info, fwd,
>>> cov, loose=0.2)
>>> # Compute inverse solution:
>>> stc = mne.minimum_norm.apply_inverse(evoked, inv, lambda2=1./9.,
>>> method='dSPM')
>>> # Morph it to average brain for group study and plot it
>>> stc_avg = mne.morph_data('sample', 'fsaverage', stc, 5, smooth=5)
>>> stc_avg.plot()
The MNE development is supported by National Institute of Biomedical Imaging and Bioengineering
grants 5R01EB009048 and P41EB015896 (Center for Functional Neuroimaging Technologies) as well as
NSF awards 0958669 and 1042134. It has been supported by the
NCRR *Center for Functional Neuroimaging Technologies* P41RR14075-06, the
NIH grants 1R01EB009048-01, R01 EB006385-A101, 1R01 HD40712-A1, 1R01
NS44319-01, and 2R01 NS37462-05, ell as by Department of Energy
under Award Number DE-FG02-99ER62764 to The MIND Institute.
.. raw:: html
<div style="width: 40%; float: left; padding: 20px;">
<script type="text/javascript" src="http://www.ohloh.net/p/586838/widgets/project_basic_stats.js"></script>
</div>
.. raw:: html
</div>
<div class="col-md-4">
<h2>Documentation</h2>
.. toctree::
:maxdepth: 1
getting_started
whats_new
cite
references
tutorials
auto_examples/index
manual/index
python_reference
generated/commands
faq
advanced_setup
mne_cpp
.. raw:: html
<h2>Community</h2>
* | Analysis talk: join the
| `MNE mailing list <http://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis>`_
* | Feature requests and bug reports:
| `GitHub issues <https://github.com/mne-tools/mne-python/issues/>`_
* | Chat with developers:
| `Gitter <https://gitter.im/mne-tools/mne-python>`_
* :ref:`Contribute to MNE! <contributing>`
.. raw:: html
<h2>Versions</h2>
<ul>
<li><a href=http://martinos.org/mne/stable>Stable</a></li>
<li><a href=http://martinos.org/mne/dev>Development</a></li>
</ul>
<div style="float: left; padding: 10px; width: 100%;">
<a class="twitter-timeline" href="https://twitter.com/mne_python" data-widget-id="317730454184804352">Tweets by @mne_python</a>
</div>
</div>
</div>
</div>
| {
"content_hash": "49ea620f77c93902e1750b67a31343fa",
"timestamp": "",
"source": "github",
"line_count": 137,
"max_line_length": 134,
"avg_line_length": 34.12408759124087,
"alnum_prop": 0.6468449197860963,
"repo_name": "andyh616/mne-python",
"id": "b1ca7516de4ee1bbd73a35cb97f47e0c544b8e64",
"size": "4687",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "doc/index.rst",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Makefile",
"bytes": "3117"
},
{
"name": "PowerShell",
"bytes": "2988"
},
{
"name": "Python",
"bytes": "4245296"
},
{
"name": "Shell",
"bytes": "936"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
{% include head.html %}
{% include google_analytics.html %}
{% include comments_count.html %}
<body>
<div class="container content">
<header class="masthead">
<h3 class="masthead-title">
<a href="{{ site.baseurl }}/" title="Home">{{ site.title }}</a>
{% for page in site.pages_list %}
<small><a href="{{ page[1] }}">{{ page[0] }}</a></small>
{% endfor %}
<small><a href="http://withsmilo.tistory.com" target="_blank">Old</a></small>
</h3>
</header>
<main>
{{ content }}
{% include comments.html %}
</main>
<footer class="footer">
<small>
© <time datetime="{{ site.time | date_to_xmlschema }}">{{ site.time | date: '%Y' }}</time>. All rights reserved.
</small>
</footer>
</div>
{% if site.analytics_id %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ site.analytics_id }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
</body>
</html>
| {
"content_hash": "69be60e7258408d0e5119ba310e84857",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 127,
"avg_line_length": 32.86363636363637,
"alnum_prop": 0.5283540802213001,
"repo_name": "githubsmilo/githubsmilo.github.io",
"id": "9f91cdcfef12aa4c6e6643081c9f06eb4c847a18",
"size": "1446",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "_layouts/default.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "11951"
},
{
"name": "HTML",
"bytes": "6455"
}
],
"symlink_target": ""
} |
JAVA bindings for oDesk API
============
[](http://www.apache.org/licenses/LICENSE-2.0.html)
[](https://travis-ci.org/odesk/java-odesk)
[](http://waffle.io/odesk/java-odesk)
# Introduction
This project provides a set of resources of oDesk API from http://developers.odesk.com
based on OAuth 1.0a.
# Features
These are the supported API resources:
* My Info
* Custom Payments
* Hiring
* Job and Freelancer Profile
* Search Jobs and Freelancers
* Organization
* MC
* Time and Financial Reporting
* Metadata
* Snapshot
* Team
* Workd Diary
* Activities
# License
Copyright 2014 oDesk Corporation. All Rights Reserved.
java-odesk is licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
## SLA
The usage of this API is ruled by the Terms of Use at:
https://developers.odesk.com/api-tos.html
## Example
See the `example` directory. To quickly run the example from the command line:
cd example
make
make run
Make sure you've added consumer key and secret to the `example/odesk.properties`.
| {
"content_hash": "9aa1815de28919e6a504dae2cd6df985",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 116,
"avg_line_length": 29.49122807017544,
"alnum_prop": 0.7549077929803688,
"repo_name": "odesk/java-odesk",
"id": "92b0a903f92df3aaf521f4f9f38ca41eaf1b63b1",
"size": "1751",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "155783"
},
{
"name": "Makefile",
"bytes": "667"
}
],
"symlink_target": ""
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="fr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Aide plugin PAG Luxembourg</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<style>
h1 {
padding-bottom: 9px;
border-bottom: 1px solid #eee;
}
h4 {
margin-top: 30px;
}
img {
max-width: 100%;
}
#navbar {
height: 75px;
}
.navbar-brand {
margin-top: 15px;
}
ul.nav li a {
text-align: center;
}
</style>
</head>
<body style="padding-top: 75px;position: relative;">
<div class="container">
<nav id="navbar" class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">Aide PAG Luxembourg</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li>
<a href="#create">
<img src="images/create.png" />
<br />
Créer un projet
</a>
</li>
<li>
<a href="#import">
<img src="images/import.png" />
<br />
Importer
</a>
</li>
<li>
<a href="#import-manager">
<img src="images/importmanager.png" />
<br />
Gestionnaire d'imports
</a>
</li>
<li>
<a href="#export">
<img src="images/export.png" />
<br />
Exporter
</a>
</li>
<li>
<a href="#stylize">
<img src="images/stylize.png" />
<br />
Symboliser
</a>
</li>
<li>
<a href="#topoclean">
<img src="images/topoclean.png" />
<br />
Vérifier la géométrie
</a>
</li>
<li>
<a href="#topology">
<img src="images/topology.png" />
<br />
Topologie
</a>
</li>
<li>
<a href="#check">
<img src="images/check.png" />
<br />
Valider
</a>
</li>
</ul>
</div>
</div>
</nav>
<h1 id="create"><img src="images/create.png" /> Créer un nouveau projet PAG</h1>
<p>
Cet outil permet de créer un projet PAG. Cliquer sur l'icône pour ouvrir la boite de dialogue.
</p>
<p>
<img src="images/create1.png" />
</p>
<p>
Saisir les paramètres du nouveau projet selon les indications suivantes :
<dl class="dl-horizontal">
<dt>Nom du projet</dt>
<dd>Le nom du projet, le nom du répertoire qui va contenir les fichiers du projet</dd>
<dt>Répertoire</dt>
<dd>Le répertoire qui va contenir le projet</dd>
</dl>
</p>
<div class="alert alert-info" role="alert">
<b>Note : </b>La création d'un projet peut prendre plusieurs secondes.
</div>
<p>
L'ouverture d'un projet PAG se fait via l'outil classique de QGIS : <img src="images/create2.png" />. Ouvrir le fichier <i><b>project.qgs</b></i> du répertoire de projet.
</p>
<p>
<img src="images/create3.png" />
</p>
<p>
Une fois le projet créé, l'interface s'affiche avec la liste des couches à gauche.
</p>
<p>
<img src="images/create4.png" />
</p>
<div class="alert alert-warning" role="alert">
<b>Attention : </b>Il faut obligatoirement créer ou ouvrir un projet PAG pour accéder aux autres outils du plugin!
</div>
<h1 id="import"><img src="images/import.png" /> Importer des données</h1>
<p>
Cet outil permet d'importer des données depuis un fichier <a href="#import-gml">GML</a>, <a href="#import-shp">SHP</a> ou <a href="#import-dxf">DXF</a>. Cliquez sur l'outil pour ouvrir la fenêtre de sélection du fichier à importer.
</p>
<p>
<img src="images/import1.png" />
</p>
<p>
La suite l'import dépend du type de fichier à importer :
</p>
<h4 id="import-gml">Import d'un fichier GML</h4>
<p>
L'import du fichier GML est direct, sans intervention de l'utilisateur, car il est au même format qu'un projet PAG.
</p>
<p>
Une barre de progression indique l'avancement de l'import.
</p>
<p>
<img src="images/import2.png" />
</p>
<p>
Un message indique la fin de l'import, et la carte zoom sur les entités importées.
</p>
<p>
<img src="images/import3.png" />
</p>
<h4 id="import-shp">Import d'un fichier SHP (Shapefile ESRI)</h4>
<p>
L'import du fichier SHP nécessite une configuration préalable, appelée mapping. Après sélection d'un fichier SHP, la fenêtre de configuration s'ouvre.
</p>
<p>
<img src="images/import4.png" />
</p>
<p>
Dans la première liste déroulante, sélectionnez la couche QGIS dans laquelle importer le fichier SHP.
</p>
<p>
<img src="images/import5.png" />
</p>
<p>
La seconde étape consiste soit à assigner un attribut QGIS à chaque attribut SHP, soit assigner directement une valeur constante.
Lors de l'importation, le contenu de l'attribut SHP, ou la constante seront alors copiés dans l'attribut QGIS correspondant.
Une fois la couche QGIS sélectionnée, la liste des attributs de cette couche (attributs QGIS) est disponible dans les différentes boites déroulantes.
Si le nom de l'attribut QGIS est le même que le nom de l'attribut SHP, le plugin le proposera par défaut.
Vous pouvez choisir l'attribut QGIS qui correspond à l'attribut SHP source.
Il est possible de désactiver un mapping si vous ne souhaitez pas importer un attribut SHP.
</p>
<p>
<img src="images/import6.png" />
</p>
<div class="alert alert-warning" role="alert">
<b>Note : </b>Si un attribut SHP et une valeur sont définis pour un même attribut QGIS, l'import utilisera l'attribut SHP.
</div>
<p>
La troisième étape est optionnelle et concerne les attributs QGIS rattachés à une liste de valeur.
En cliquant sur la ligne de l'attribut en question, il est possible de définir un mapping de valeurs.
Il arrive parfois que la valeur contenue dans un attribut SHP ne soit pas exactement celle attendue dans la liste de valeurs (ex. hab-1 au lieu de hab_1).
Ce mapping de valeur permet d'associer directement les valeurs SHP aux bonnes valeurs QGIS.
<br />
Cliquez sur importer.
</p>
<p>
<img src="images/import13.png" />
</p>
<p>
Un message indique la fin de l'import, et la carte zoom sur les entités importées.
</p>
<p>
<img src="images/import7.png" />
</p>
<div class="alert alert-info" role="alert">
<b>Note : </b>Il est possible de sauvegarder et de charger une configuration de mapping via les boutons éponymes.
</div>
<h4 id="import-dxf">Import d'un fichier DXF (Autocad)</h4>
<p>
Comme l'import SHP, l'import du fichier DXF nécessite une configuration préalable, légèrement plus complexe, appelée mapping.
En effet, contrairement à un fichier SHP, un calque DXF peut contenir plusieurs types de géométries.
Après sélection d'un fichier DXF, la fenêtre de configuration s'ouvre.
</p>
<p>
<img src="images/import8.png" />
</p>
<p>
La première étape consiste, pour chaque calque DXF, à indiquer dans quelle couche QGIS ils doivent être copiés.
Il est possible de désactiver un import de calque en le décochant.
</p>
<p>
<img src="images/import9.png" />
</p>
<div class="alert alert-warning" role="alert">
<b>Attention : </b>L'import ne copiera que les entités DXF dont la géométrie correspond à la couche QGIS de destination.
Les polylignes fermées DXF seront considérées comme des polygones dans QGIS.
</div>
<p>
La seconde étape consiste, pour chaque mapping calque DXF -> couche QGIS, à sélectionner les constantes à insérer dans les attributs QGIS.
Pour cela il faut cliquer sur le mapping à configurer dans le cadre du haut, puis saisir les valeurs dans le cadre du bas.
</p>
<p>
<img src="images/import10.png" />
</p>
<p>
Une fois configuré, cliquez sur importer.
</p>
<p>
<img src="images/import11.png" />
</p>
<p>
Un message indique la fin de l'import, et la carte zoom sur les entités importées.
</p>
<p>
<img src="images/import12.png" />
</p>
<div class="alert alert-info" role="alert">
<b>Note : </b>Il est possible de sauvegarder et de charger une configuration de mapping via les boutons éponymes.
</div>
<h1 id="import-manager"><img src="images/importmanager.png" /> Gestionnaire d'import</h1>
<p>
Cet outil permet d'annuler un import en cas d'erreur par exemple. Cliquer sur l'outil pour ouvrir la fenêtre.
</p>
<p>
<img src="images/importmanager1.png" />
</p>
<p>
Un tableau liste les imports effectués, on y trouve l'identifiant de l'import, la date, le nom du fichier importé et les couches importées.
<br/>
Cliquer sur annuler l'import pour supprimer tous les objets rattachés à cet import sur toutes les couches.
</p>
<p>
Un message indique la fin de la suppression.
</p>
<h1 id="export"><img src="images/export.png" /> Exporter le projet en GML</h1>
<p>
Cet outil permet d'exporter le projet actuel au format GML pour transmission au Ministère de l'Intérieur. Cliquez sur l'outil pour sélectionner le fichier GML de destination.
</p>
<p>
<img src="images/export1.png" />
</p>
<p>
Un message indique la fin de l'export de la totalité des données.
</p>
<p>
<img src="images/export2.png" />
</p>
<p>
Si une sélection est faite au sein de la couche 'MODIFICATION PAG', l'outil effectue l'export seulement sur les objets intersectant ces polygones.
</p>
<p>
<img src="images/export3.png" />
</p>
<p>
Si aucun polygone n'est sélectionné dans la couche 'MODIFICATION PAG', l'export s'effectue sur l'ensemble des données.
</p>
<div class="alert alert-info" role="alert">
<b>Note : </b>Une vérification des données est automatiquement effectuée avant l'export.
</div>
<h1 id="stylize"><img src="images/stylize.png" /> Symboliser le projet</h1>
<p>
Cet outil sert à symboliser les différentes couches du projet selon la configuration fournie par le Ministère de l'Intérieur.
Cliquez sur l'outil pour lancer la symbolisation.
</p>
<p>
Un message indique la fin de la symbolisation des couches.
</p>
<p>
<img src="images/stylize1.png" />
</p>
<h1 id="topoclean"><img src="images/topoclean.png" /> Vérifier la géométrie</h1>
<p>
Cet outil est natif de QGIS, il permet d'effectuer un certain nombre de vérifications et de corrections de géométrie. Cliquez sur l'outil. Si un polygone est sélectionné dans la couche "MODIFICATION_PAG", toutes les entités se trouvant dans ce polygone seront alors sélectionnées, pour permettre d'effectuer les validations seulement sur ces dernières.
</p>
<p>
Veuillez consulter l'aide officielle pour plus de détails : <a href="http://docs.qgis.org/2.14/en/docs/user_manual/plugins/plugins_geometry_checker.html">Aide QGIS</a>
</p>
<h1 id="topology"><img src="images/topology.png" /> Vérifier la topologie</h1>
<p>
Cet outil lance une vérification de la topologie des données, trous entre les polygones, superposition de polygones....
Le plugin va en fait configurer le plugin de vérification topologique intégré à QGIS.
Cliquez sur l'outil pour ouvrir le plugin <i><b>Topology Checker</b></i>.
</p>
<p>
<img src="images/topology1.png" />
</p>
<p>
La liste des règles peut-être visualisée en cliquant sur <i><b>Configuration</b></i>.
</p>
<p>
<img src="images/topology2.png" />
</p>
<p>
Lancer la validation en cliquant sur <i><b>Valider tout</b></i>.
</p>
<p>
La liste des erreurs apparait alors dans le tableau. Cliquer sur l'erreur pour zoomer dessus, vous permettant de la corriger.
</p>
<p>
<img src="images/topology3.png" />
</p>
<p>
Si une sélection est faite au sein de la couche 'MODIFICATION PAG', l'outil zoom automatiquement sur l'emprise des entités sélectionnées.
Ceci permet de limiter la vérification topologique à l'étendue affichée, via le bouton adéquat.
</p>
<p>
<img src="images/topology4.png" />
</p>
<p>
Si aucune sélection n'est faite au sein de la couche 'MODIFICATION PAG', l'outil n'aura aucune action de zoom.
</p>
<h1 id="check"><img src="images/check.png" /> Valider les données</h1>
<p>
Cet outil lance une vérification de la structure des données ainsi que des données elles-mêmes.
Cliquez sur l'outil pour lancer la vérification.
</p>
<p>
<img src="images/check1.png" />
</p>
<p>
Le premier cadre liste les erreurs de structure de données, type de géométrie, type d'attribut.
Ce genre d'erreur ne devrait pas survenir, dans tous les cas, il faut recréer la couche pour les corriger.
</p>
<p>
<img src="images/check2.png" />
</p>
<p>
Le second cadre liste les erreurs de données, valeur absente d'une liste, valeur requise, longueur maximale dépassée...
Cliquer la ligne correspondante pour zoomer sur l'entité en question. Double cliquer pour l'éditer avec les outils de QGIS.
</p>
<p>
<img src="images/check3.png" />
</p>
<div class="alert alert-info" role="alert">
<b>Note : </b>Penser à sauvegarder l'édition avant relancer la vérification des données.
</div>
<p>
Si une sélection est faite au sein de la couche 'MODIFICATION PAG', l'outil effectue la vérification seulement sur les objets intersectant ces polygones.
</p>
<p>
<img src="images/check4.png" />
</p>
<p>
Si aucun polygone n'est sélectionné dans la couche 'MODIFICATION PAG', le traitement s'effectue sur l'ensemble des données.
</p>
<script src="js/jquery-1.11.3.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript">
var offsetHeight = 75;
$('body').scrollspy({
offset: offsetHeight
});
$('a').click(function (event) {
var scrollPos = $('body > .container').find($(this).attr('href')).offset().top - offsetHeight;
$('body,html').animate({
scrollTop: scrollPos
}, 500, function () {
$(".btn-navbar").click();
});
return false;
});
</script>
</div>
</body>
</html>
| {
"content_hash": "dd014411ada15e7f0d9058cfa8467244",
"timestamp": "",
"source": "github",
"line_count": 493,
"max_line_length": 364,
"avg_line_length": 36.316430020283974,
"alnum_prop": 0.5215035746201966,
"repo_name": "Geoportail-Luxembourg/qgis-pag-plugin",
"id": "c1ab00afbccbe485294090e3410d8d16c6ddbb36",
"size": "18079",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "help/user/index.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "4758"
},
{
"name": "HTML",
"bytes": "27843"
},
{
"name": "JavaScript",
"bytes": "968"
},
{
"name": "Makefile",
"bytes": "4626"
},
{
"name": "Python",
"bytes": "280282"
},
{
"name": "QML",
"bytes": "414349"
}
],
"symlink_target": ""
} |
var express = require('express');
var router = express.Router();
var Encounter = require('./models/encounter');
var Verify = require('./verify');
router.get('/', Verify.verifyOrdinaryUser, function(req, res) {
Encounter.find({ owner: req.decoded.username }, function (err, encounters) {
if (err) throw err;
res.header('Cache-Control', "no-cache, no-store, must-revalidate");
res.header("Pragma", "no-cache");
res.header("Expires", 0);
res.json(encounters);
});
});
router.post('/', Verify.verifyOrdinaryUser, function(req, res) {
var newenc = new Encounter({ ...req.body.encounter, owner: req.decoded.username });
newenc.save(function(err, encounter) {
if (err) throw err;
console.log(encounter.id);
res.header("Cache-Control", "no-cache, no-store, must-revalidate");
res.header("Pragma", "no-cache");
res.header("Expires", 0);
res.json(encounter);
});
});
router.post('/:id', Verify.verifyOrdinaryUser, function(req, res) {
Encounter.findOneAndUpdate({ _id: req.params.id, owner: req.decoded.username }, { ...req.body.encounter, _id: req.params.id } , { new: true }, function(err, encounter) {
if (err) throw err;
res.header("Cache-Control", "no-cache, no-store, must-revalidate");
res.header("Pragma", "no-cache");
res.header("Expires", 0);
res.json(encounter);
});
});
router.delete('/:id', Verify.verifyOrdinaryUser, function(req, res) {
Encounter.findOneAndRemove({ _id: req.params.id, owner: req.decoded.username }, function(err) {
if (err) throw err;
res.header("Cache-Control", "no-cache, no-store, must-revalidate");
res.header("Pragma", "no-cache");
res.header("Expires", 0);
res.json({ success: true });
});
});
module.exports = router; | {
"content_hash": "c6d50d78f473b6f293ba07a5afde46f0",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 171,
"avg_line_length": 36.625,
"alnum_prop": 0.6518771331058021,
"repo_name": "whiplashomega/elthelas2",
"id": "9dd4d4a229a8b884d0ffa61b76f84272e62751c6",
"size": "1758",
"binary": false,
"copies": "1",
"ref": "refs/heads/3.x-dev",
"path": "app/encounters.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "2037"
},
{
"name": "HTML",
"bytes": "354"
},
{
"name": "JavaScript",
"bytes": "761819"
},
{
"name": "PHP",
"bytes": "6911"
},
{
"name": "Procfile",
"bytes": "19"
},
{
"name": "SCSS",
"bytes": "29752"
},
{
"name": "Vue",
"bytes": "727797"
}
],
"symlink_target": ""
} |
module Ruy
module Conditions
# Expects that a context attribute will be greater than the given value.
class GreaterThan < Condition
attr_reader :attr, :value
# @param value
# @param attr Context attribute's name
# @yield a block in the context of the current rule
def initialize(value, attr, &block)
super
@value = value
@attr = attr
end
def call(var_ctx)
@value < var_ctx.resolve(@attr)
end
def ==(o)
o.kind_of?(GreaterThan) &&
attr == o.attr &&
value == o.value
end
end
end
end
| {
"content_hash": "4589054fa846b6cc3e848ebd0aaf4e85",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 76,
"avg_line_length": 22.142857142857142,
"alnum_prop": 0.5661290322580645,
"repo_name": "elpic/ruy",
"id": "8ec510dbd361c71d96f4a69b2f3c4fd4beb0dda5",
"size": "620",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/ruy/conditions/greater_than.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "76136"
}
],
"symlink_target": ""
} |
<?xml version="1.0" encoding="UTF-8"?>
<tt xml:lang="en"
xmlns="http://www.w3.org/ns/ttml"
xmlns:ttm="http://www.w3.org/ns/ttml#metadata"
xmlns:ttp="http://www.w3.org/ns/ttml#parameter" ttp:profile="dfxp-presentation"
xmlns:tts="http://www.w3.org/ns/ttml#styling"
xmlns:ttva="http://skynav.com/ns/ttv/annotations" ttva:warnOn="all" ttva:expectedErrors="0" ttva:expectedWarnings="0" ttva:model="ttml1">
<head>
<metadata>
<ttm:desc>Anonymous span implicit duration</ttm:desc>
</metadata>
</head>
<body>
<div>
<p begin="0s" end="1s" timeContainer="seq" tts:backgroundColor="blue">
This text should not be displayed.
</p>
</div>
<div>
<p begin="0s" end="1s" tts:backgroundColor="blue">
Text should displayed.
</p>
</div>
</body>
</tt>
| {
"content_hash": "7eb5f4e4da701618806d76c593d1e9f0",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 141,
"avg_line_length": 33.16,
"alnum_prop": 0.6212303980699638,
"repo_name": "skynav/ttt",
"id": "4d3d4373ebebd5eb627bcf5b22c7c4f4301517ac",
"size": "829",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "w3c-tests/ttml1-tests/presentation/valid/ttml1-prstn-anonymous-span-duration-implicit.xml",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "CSS",
"bytes": "22996"
},
{
"name": "HTML",
"bytes": "4728"
},
{
"name": "Java",
"bytes": "4407277"
},
{
"name": "JavaScript",
"bytes": "9251"
},
{
"name": "Shell",
"bytes": "2813"
},
{
"name": "XSLT",
"bytes": "5232"
}
],
"symlink_target": ""
} |
package com.haulmont.cuba.core;
import com.haulmont.cuba.testsupport.TestContainer;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.api.Test;
import java.util.List;
public class FolderTest {
@RegisterExtension
public static TestContainer cont = TestContainer.Common.INSTANCE;
@Test
public void test() {
Transaction tx = cont.persistence().createTransaction();
try {
EntityManager em = cont.persistence().getEntityManager();
Query q = em.createQuery("select f from sys$Folder f");
List list = q.getResultList();
tx.commit();
} finally {
tx.end();
}
}
}
| {
"content_hash": "733aa95f50d0211544068b2d9d626e7a",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 69,
"avg_line_length": 25.214285714285715,
"alnum_prop": 0.6444759206798867,
"repo_name": "cuba-platform/cuba",
"id": "7969294004e6ab330785d9a532fa67f94f3d385f",
"size": "1310",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "modules/core/test/com/haulmont/cuba/core/FolderTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "77"
},
{
"name": "CSS",
"bytes": "68"
},
{
"name": "FreeMarker",
"bytes": "3996"
},
{
"name": "GAP",
"bytes": "20634"
},
{
"name": "Groovy",
"bytes": "897992"
},
{
"name": "HTML",
"bytes": "6464"
},
{
"name": "Java",
"bytes": "20605191"
},
{
"name": "PLSQL",
"bytes": "30678"
},
{
"name": "PLpgSQL",
"bytes": "1333"
},
{
"name": "SCSS",
"bytes": "306671"
},
{
"name": "Shell",
"bytes": "88"
},
{
"name": "XSLT",
"bytes": "63258"
}
],
"symlink_target": ""
} |
[DEMO] Calculate slope and aspect of a digital terrain model



| {
"content_hash": "5d1ab81832e364256b6b1ea89f5db6d2",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 60,
"avg_line_length": 27.6,
"alnum_prop": 0.7101449275362319,
"repo_name": "filipkral/slopeaspect",
"id": "f9bfea166121bdb4029149dbb0422f38282147a9",
"size": "152",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "R",
"bytes": "1932"
}
],
"symlink_target": ""
} |
from NetCatKS.Components import ComponentsRegistration
from NetCatKS.NetCAT import DefaultFactory, IDefaultService
components = ComponentsRegistration().init()
application = IDefaultService(
DefaultFactory(config=components.config.get_tcp())
).start()
| {
"content_hash": "9e833bec16bb9fd69e2317506b81bde9",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 59,
"avg_line_length": 32.25,
"alnum_prop": 0.8217054263565892,
"repo_name": "dimddev/NetCatKS",
"id": "6bd4bdbb74af6c59ba9bd9d936896f680ccf4571",
"size": "259",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "examples/projects/rootapis/tcp_time_server/tcp_time_server.py",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "Python",
"bytes": "182697"
}
],
"symlink_target": ""
} |
package com.zanis.protean.proxy;
public abstract class CommonProxy implements IProxy {
}
| {
"content_hash": "b56f3d60d778fabab31e301b4ed4619e",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 53,
"avg_line_length": 18.2,
"alnum_prop": 0.8021978021978022,
"repo_name": "Zanis15/mc-protean-mineral",
"id": "56d320cfe6548530f13137db3a7425013c91720c",
"size": "91",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/com/zanis/protean/proxy/CommonProxy.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "20583"
}
],
"symlink_target": ""
} |
<?php
namespace entities;
use Symfony\Component\HttpFoundation\RedirectResponse;
class Task
{
protected $name;
protected $mail;
protected $title;
protected $content;
public function getName()
{
return $this->name;
}
public function getMail()
{
return $this->mail;
}
public function getTitle()
{
return $this->title;
}
public function getContent()
{
return $this->content;
}
public function setName()
{
$this->name = $name;
return $this;
}
public function setMail()
{
$this->mail = $mail;
return $this;
}
public function setTitle()
{
$this->title = $title;
return $this;
}
public function setContent()
{
$this->content = $contens;
return $this;
}
public function addContact($app, $form)
{
$app['mailer']->send(\Swift_Message::newInstance()
->setSubject('Formulario de conctacto blog silex')
->setFrom(array('[email protected]' => '[email protected]'))
->setTo(array('[email protected]'))
->setBody($app['twig']->render('frontend/email.twig',
array('name' => $form['name'],
'mail' => $form['mail'],
'title' => $form['title'],
'content' => $form['content'],
)),
'text/html'
));
}
public function thanksForContact($app)
{
new RedirectResponse($app['url_generator']->generate('thanks'));
}
}
?>
| {
"content_hash": "2d8ef1ad4a7bca815d2ebbb2821c660d",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 82,
"avg_line_length": 19.29268292682927,
"alnum_prop": 0.5252844500632111,
"repo_name": "n0ni0/fooBlog",
"id": "d3bade2cdb572a8d01fc23a68f9923e99fcd495f",
"size": "1582",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/entities/Task.php",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "17204"
},
{
"name": "JavaScript",
"bytes": "7417"
},
{
"name": "PHP",
"bytes": "29128"
}
],
"symlink_target": ""
} |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "sales".
*
* @property integer $ID
* @property string $Photo
* @property integer $EstablishmentID
*/
class Sales extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'sales';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['EstablishmentID'], 'required'],
[['Photo'], 'string'],
[['EstablishmentID'], 'integer'],
[['Photo'], 'default', 'value' => '']
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'ID' => 'ID',
'Photo' => 'Изображение',
'EstablishmentID' => 'Заведение',
];
}
public function getEstablishment()
{
return $this->hasOne(Establishment::className(), ['ID' => 'EstablishmentID']);
}
}
| {
"content_hash": "e536c375bdac795cd7457759613dda60",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 86,
"avg_line_length": 18.62264150943396,
"alnum_prop": 0.49746707193515705,
"repo_name": "tatia-kom/gde_v_donetske",
"id": "3488cd87f49af128df8f2d5fa49f2e6131ad2cab",
"size": "1007",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "admin/models/Sales.php",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "ApacheConf",
"bytes": "397"
},
{
"name": "Batchfile",
"bytes": "2060"
},
{
"name": "CSS",
"bytes": "102354"
},
{
"name": "JavaScript",
"bytes": "489669"
},
{
"name": "PHP",
"bytes": "724315"
}
],
"symlink_target": ""
} |
package com.example.nick.onliner.Parser;
public class News {
private String Title;
private String URL;
private String ImageURL;
public void setURL(String link) {
URL = link;
}
public String getURL() {
return URL;
}
public void setTitle(String title) {
Title = title;
}
public String getTitle() {
return Title;
}
public void setImageURL(String link) {
ImageURL = link;
}
public String getImageURL() {
return ImageURL;
}
}
| {
"content_hash": "11ff4a843da0e4a6f6ae6c1ed5a0de40",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 42,
"avg_line_length": 16.303030303030305,
"alnum_prop": 0.5836431226765799,
"repo_name": "nikGayko/Onliner",
"id": "73954a769fabb2747c723e63935f835b25659912",
"size": "538",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Onliner/app/src/main/java/com/example/nick/onliner/Parser/News.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "12793"
}
],
"symlink_target": ""
} |
package com.stripe.model;
import com.stripe.net.APIResource;
public class Subscription extends APIResource {
Long currentPeriodEnd;
Long currentPeriodStart;
Boolean cancelAtPeriodEnd;
String customer;
Long start;
String status;
Long trialStart;
Long trialEnd;
Plan plan;
Long canceledAt;
Long endedAt;
public Long getCurrentPeriodEnd() {
return currentPeriodEnd;
}
public void setCurrentPeriodEnd(Long currentPeriodEnd) {
this.currentPeriodEnd = currentPeriodEnd;
}
public Long getCurrentPeriodStart() {
return currentPeriodStart;
}
public void setCurrentPeriodStart(Long currentPeriodStart) {
this.currentPeriodStart = currentPeriodStart;
}
public Boolean getCancelAtPeriodEnd() {
return cancelAtPeriodEnd;
}
public void setCancelAtPeriodEnd(Boolean cancelAtPeriodEnd) {
this.cancelAtPeriodEnd = cancelAtPeriodEnd;
}
public String getCustomer() {
return customer;
}
public void setCustomer(String customer) {
this.customer = customer;
}
public Long getStart() {
return start;
}
public void setStart(Long start) {
this.start = start;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public Long getTrialStart() {
return trialStart;
}
public void setTrialStart(Long trialStart) {
this.trialStart = trialStart;
}
public Long getTrialEnd() {
return trialEnd;
}
public void setTrialEnd(Long trialEnd) {
this.trialEnd = trialEnd;
}
public Plan getPlan() {
return plan;
}
public void setPlan(Plan plan) {
this.plan = plan;
}
public Long getCanceledAt() {
return canceledAt;
}
public void setCanceledAt(Long canceledAt) {
this.canceledAt = canceledAt;
}
public Long getEndedAt() {
return endedAt;
}
public void setEndedAt(Long endedAt) {
this.endedAt = endedAt;
}
} | {
"content_hash": "6da9e2cdd7104cdb05f7559fde7aa4fa",
"timestamp": "",
"source": "github",
"line_count": 85,
"max_line_length": 62,
"avg_line_length": 21.44705882352941,
"alnum_prop": 0.7454744925946243,
"repo_name": "ebroder/stripe-java",
"id": "7342a8c5ae60908b1e88d5a6bd7cd0deeaa01b1a",
"size": "1823",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/com/stripe/model/Subscription.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "74843"
}
],
"symlink_target": ""
} |
class UsersController < ApplicationController
def show
@user = User.find(params[:id])
end
def new
@user = User.new
end
def create
@user = User.new(user_params)
if @user.save
flash[:alert] = "Welcome #{@user.username}!"
session[:user_id] = @user.id
redirect_to '/'
else
flash[:error_object] = @user
render 'new'
end
end
private
def user_params
params.require(:user).permit(:username, :email, :password, :password_confirmation)
end
end
| {
"content_hash": "cd3f179ba28479ea9f2fdea815f91730",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 86,
"avg_line_length": 19.037037037037038,
"alnum_prop": 0.6186770428015564,
"repo_name": "lauframo/fantastic-game-app",
"id": "9371a5f8d70c856ac4bd47db1849f9d38c7cee4a",
"size": "514",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/controllers/users_controller.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "6395"
},
{
"name": "HTML",
"bytes": "13928"
},
{
"name": "JavaScript",
"bytes": "638"
},
{
"name": "Ruby",
"bytes": "60899"
}
],
"symlink_target": ""
} |
import * as React from 'react';
export interface CreateFilterOptionsConfig<T> {
ignoreAccents?: boolean;
ignoreCase?: boolean;
limit?: number;
matchFrom?: 'any' | 'start';
stringify?: (option: T) => string;
trim?: boolean;
}
export interface FilterOptionsState<T> {
inputValue: string;
getOptionLabel: (option: T) => string;
}
export interface AutocompleteGroupedOption<T = string> {
key: number;
index: number;
group: string;
options: T[];
}
export function createFilterOptions<T>(
config?: CreateFilterOptionsConfig<T>
): (options: T[], state: FilterOptionsState<T>) => T[];
export type AutocompleteFreeSoloValueMapping<FreeSolo> = FreeSolo extends true ? string : never;
export type Value<T, Multiple, DisableClearable, FreeSolo> = Multiple extends undefined | false
? DisableClearable extends true
? NonNullable<T | AutocompleteFreeSoloValueMapping<FreeSolo>>
: T | null | AutocompleteFreeSoloValueMapping<FreeSolo>
: Array<T | AutocompleteFreeSoloValueMapping<FreeSolo>>;
export interface UseAutocompleteProps<
T,
Multiple extends boolean | undefined,
DisableClearable extends boolean | undefined,
FreeSolo extends boolean | undefined
> {
/**
* If `true`, the portion of the selected suggestion that has not been typed by the user,
* known as the completion string, appears inline after the input cursor in the textbox.
* The inline completion string is visually highlighted and has a selected state.
* @default false
*/
autoComplete?: boolean;
/**
* If `true`, the first option is automatically highlighted.
* @default false
*/
autoHighlight?: boolean;
/**
* If `true`, the selected option becomes the value of the input
* when the Autocomplete loses focus unless the user chooses
* a different option or changes the character string in the input.
* @default false
*/
autoSelect?: boolean;
/**
* Control if the input should be blurred when an option is selected:
*
* - `false` the input is not blurred.
* - `true` the input is always blurred.
* - `touch` the input is blurred after a touch event.
* - `mouse` the input is blurred after a mouse event.
* @default false
*/
blurOnSelect?: 'touch' | 'mouse' | true | false;
/**
* If `true`, the input's text is cleared on blur if no value is selected.
*
* Set to `true` if you want to help the user enter a new value.
* Set to `false` if you want to help the user resume his search.
* @default !props.freeSolo
*/
clearOnBlur?: boolean;
/**
* If `true`, clear all values when the user presses escape and the popup is closed.
* @default false
*/
clearOnEscape?: boolean;
/**
* The component name that is using this hook. Used for warnings.
*/
componentName?: string;
/**
* If `true`, the input can't be cleared.
* @default false
*/
disableClearable?: DisableClearable;
/**
* If `true`, the popup won't close when a value is selected.
* @default false
*/
disableCloseOnSelect?: boolean;
/**
* If `true`, will allow focus on disabled items.
* @default false
*/
disabledItemsFocusable?: boolean;
/**
* If `true`, the list box in the popup will not wrap focus.
* @default false
*/
disableListWrap?: boolean;
/**
* A filter function that determines the options that are eligible.
*
* @param {T[]} options The options to render.
* @param {object} state The state of the component.
* @returns {T[]}
*/
filterOptions?: (options: T[], state: FilterOptionsState<T>) => T[];
/**
* If `true`, hide the selected options from the list box.
* @default false
*/
filterSelectedOptions?: boolean;
/**
* If `true`, the Autocomplete is free solo, meaning that the user input is not bound to provided options.
* @default false
*/
freeSolo?: FreeSolo;
/**
* Used to determine the disabled state for a given option.
*
* @param {T} option The option to test.
* @returns {boolean}
*/
getOptionDisabled?: (option: T) => boolean;
/**
* Used to determine the string value for a given option.
* It's used to fill the input (and the list box options if `renderOption` is not provided).
*
* @param {T} option
* @returns {string}
* @default (option) => option.label ?? option
*/
getOptionLabel?: (option: T) => string;
/**
* Used to determine if an option is selected, considering the current value(s).
* Uses strict equality by default.
* ⚠️ Both arguments need to be handled, an option can only match with one value.
*
* @param {T} option The option to test.
* @param {T} value The value to test against.
* @returns {boolean}
*/
getOptionSelected?: (option: T, value: T) => boolean;
/**
* If provided, the options will be grouped under the returned string.
* The groupBy value is also used as the text for group headings when `renderGroup` is not provided.
*
* @param {T} options The options to group.
* @returns {string}
*/
groupBy?: (option: T) => string;
/**
* If `true`, the component handles the "Home" and "End" keys when the popup is open.
* It should move focus to the first option and last option, respectively.
* @default !props.freeSolo
*/
handleHomeEndKeys?: boolean;
/**
* This prop is used to help implement the accessibility logic.
* If you don't provide this prop. It falls back to a randomly generated id.
*/
id?: string;
/**
* If `true`, the highlight can move to the input.
* @default false
*/
includeInputInList?: boolean;
/**
* The input value.
*/
inputValue?: string;
/**
* Callback fired when the popup requests to be closed.
* Use in controlled mode (see open).
*
* @param {object} event The event source of the callback.
* @param {string} reason Can be: `"toggleInput"`, `"escape"`, `"select-option"`, `"remove-option"`, `"blur"`.
*/
onClose?: (event: React.SyntheticEvent, reason: AutocompleteCloseReason) => void;
/**
* Callback fired when the input value changes.
*
* @param {object} event The event source of the callback.
* @param {string} value The new value of the text input.
* @param {string} reason Can be: `"input"` (user input), `"reset"` (programmatic change), `"clear"`.
*/
onInputChange?: (
event: React.SyntheticEvent,
value: string,
reason: AutocompleteInputChangeReason
) => void;
/**
* Callback fired when the popup requests to be opened.
* Use in controlled mode (see open).
*
* @param {object} event The event source of the callback.
*/
onOpen?: (event: React.SyntheticEvent) => void;
/**
* Callback fired when the highlight option changes.
*
* @param {object} event The event source of the callback.
* @param {T} option The highlighted option.
* @param {string} reason Can be: `"keyboard"`, `"auto"`, `"mouse"`.
*/
onHighlightChange?: (
event: React.SyntheticEvent,
option: T | null,
reason: AutocompleteHighlightChangeReason
) => void;
/**
* If `true`, the component is shown.
*/
open?: boolean;
/**
* If `true`, the popup will open on input focus.
* @default false
*/
openOnFocus?: boolean;
/**
* Array of options.
*/
options: T[];
/**
* If `true`, the input's text is selected on focus.
* It helps the user clear the selected value.
* @default !props.freeSolo
*/
selectOnFocus?: boolean;
/**
* If `true`, `value` must be an array and the menu will support multiple selections.
* @default false
*/
multiple?: Multiple;
/**
* The value of the autocomplete.
*
* The value must have reference equality with the option in order to be selected.
* You can customize the equality behavior with the `getOptionSelected` prop.
*/
value?: Value<T, Multiple, DisableClearable, FreeSolo>;
/**
* The default value. Use when the component is not controlled.
* @default props.multiple ? [] : null
*/
defaultValue?: Value<T, Multiple, DisableClearable, FreeSolo>;
/**
* Callback fired when the value changes.
*
* @param {object} event The event source of the callback.
* @param {T|T[]} value The new value of the component.
* @param {string} reason One of "create-option", "select-option", "remove-option", "blur" or "clear".
* @param {string} [details]
*/
onChange?: (
event: React.SyntheticEvent,
value: Value<T, Multiple, DisableClearable, FreeSolo>,
reason: AutocompleteChangeReason,
details?: AutocompleteChangeDetails<T>
) => void;
}
export type AutocompleteHighlightChangeReason = 'keyboard' | 'mouse' | 'auto';
export type AutocompleteChangeReason =
| 'create-option'
| 'select-option'
| 'remove-option'
| 'clear'
| 'blur';
export interface AutocompleteChangeDetails<T = string> {
option: T;
}
export type AutocompleteCloseReason =
| 'toggleInput'
| 'escape'
| 'select-option'
| 'remove-option'
| 'blur';
export type AutocompleteInputChangeReason = 'input' | 'reset' | 'clear';
export type AutocompleteGetTagProps = ({
index,
}: {
index: number;
}) => {
key: number;
'data-tag-index': number;
tabIndex: -1;
onDelete: (event: any) => void;
};
export default function useAutocomplete<
T,
Multiple extends boolean | undefined = undefined,
DisableClearable extends boolean | undefined = undefined,
FreeSolo extends boolean | undefined = undefined
>(
props: UseAutocompleteProps<T, Multiple, DisableClearable, FreeSolo>
): {
getRootProps: () => React.HTMLAttributes<HTMLDivElement>;
getInputProps: () => React.HTMLAttributes<HTMLInputElement>;
// We pass `getInputLabelProps()` to `@material-ui/core/InputLabel` which does not implement HTMLLabelElement#color.
getInputLabelProps: () => Omit<React.HTMLAttributes<HTMLLabelElement>, 'color'>;
getClearProps: () => React.HTMLAttributes<HTMLDivElement>;
getPopupIndicatorProps: () => React.HTMLAttributes<HTMLDivElement>;
getTagProps: AutocompleteGetTagProps;
getListboxProps: () => React.HTMLAttributes<HTMLUListElement>;
getOptionProps: ({
option,
index,
}: {
option: T;
index: number;
}) => React.HTMLAttributes<HTMLLIElement>;
id: string;
inputValue: string;
value: Value<T, Multiple, DisableClearable, FreeSolo>;
dirty: boolean;
popupOpen: boolean;
focused: boolean;
anchorEl: null | HTMLElement;
setAnchorEl: () => void;
focusedTag: number;
/**
* The options to render. It's either `T[]` or `AutocompleteGroupedOption<T>[]` if the groupBy prop is provided.
*/
groupedOptions: T[] | Array<AutocompleteGroupedOption<T>>;
};
| {
"content_hash": "e492369e19971e48aa66e8978c7dbcc7",
"timestamp": "",
"source": "github",
"line_count": 337,
"max_line_length": 118,
"avg_line_length": 31.504451038575667,
"alnum_prop": 0.67005745502496,
"repo_name": "cdnjs/cdnjs",
"id": "693b529f884e40fe700e7de5b9b10ba5cd5343ac",
"size": "10621",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "ajax/libs/material-ui/5.0.0-alpha.26/useAutocomplete/useAutocomplete.d.ts",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
/* eslint-disable no-var */
var path = require('path');
var webpack = require('webpack');
var axis = require('axis');
var rupture = require('rupture');
// Set up dev host host and HMR host. For the dev host this is pretty self
// explanatory: We use a different live-reload server to server our static JS
// files in dev, so we need to be able to actually point a script tag to that
// host so it can load the right files. The HRM host is a bit stranger. For more
// details on why we need this URL see the readme and:
// https://github.com/glenjamin/webpack-hot-middleware/issues/37
var DEV_PORT = process.env.DEV_PORT || 3002;
var DEV_HOST = '//localhost:' + DEV_PORT + '/';
var HMR_HOST = DEV_HOST + '__webpack_hmr';
module.exports = {
devtool: 'inline-source-map',
entry: {
app: [
'webpack-hot-middleware/client?path=' + HMR_HOST,
'./client/index.js',
],
},
output: {
path: path.join(__dirname, 'public'),
filename: '[name].js',
publicPath: DEV_HOST,
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin(),
],
module: {
loaders: [
{
test: /\.js$/,
loaders: ['babel'],
include: path.join(__dirname, 'client'),
},
{
test: /\.css$/,
loaders: ['style', 'css'],
},
{
test: /\.styl/,
loaders: [
'style',
'css?modules&importLoaders=2&localIdentName=[name]__[local]__[hash:base64:6]',
'autoprefixer',
'stylus',
],
},
{
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loaders: ['url?limit=10000&mimetype=application/font-woff'],
},
{
test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loaders: ['file'],
},
{
test: /\.(png|jpg|gif|ico)$/,
loaders: ['file?name=[name].[ext]'],
},
],
},
stylus: {
use: [axis(), rupture()],
},
};
| {
"content_hash": "b35937f03d21933bae4211efbb93290e",
"timestamp": "",
"source": "github",
"line_count": 76,
"max_line_length": 88,
"avg_line_length": 25.75,
"alnum_prop": 0.5416453755748595,
"repo_name": "iansinnott/react-static-presentation",
"id": "0c2f5e2fa214d61221b73772e634b2a6ff446367",
"size": "1957",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "presentation/examples/future-advisor-lite/webpack.config.dev.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "5332"
},
{
"name": "HTML",
"bytes": "1143"
},
{
"name": "JavaScript",
"bytes": "57516"
}
],
"symlink_target": ""
} |
Grouvie is a simple group movie event planner app for Android devices. The aim of Grouvie is to make event planning much simler through a small series of steps. Grouvie also makes it easier to collect responses from plan suggestions and centralises all information in one place that a group chat cannot do.
# Installation
You are able to install Grouvie on your Android phone through the following link.
[Download Here](https://rink.hockeyapp.net/apps/046ab778662f45fe96f640e328383218)
# System Architecture
The front-end of Grouvie is written in Java using Android Studio using the deafult frameworks. We use a Flask web server written in Python for the back-end to interact with a ProgresSQL database. This webserver is hosted using Horuku as part of our Continuous Integration in place for this project.
# Disclaimer
Please note that Grouvie is as of yet an incomplete as a few obscure bugs stil persist that we are in the process of debugging. We also initially planned on adding a few features that are yet to be implemented such as the ability to book tickets within the app itself as well as having individual profile settings whereby users are suggested a film that may align to their movie preferences through previous plans made through Grouvie.
# Resources
As part of the implementation of Grouive, we use a few APIs to obtain Movie listings, movie synopsis and more. We also use the copyright free logo made by Dimi Kazak from [FlatIcon](http://www.flaticon.com/free-icon/popcorn_230401)
# Team
Grouvie was written by Team\_JETT whose members are Tanmay Khanna, Erkin Salih, Tarun Sabbineni and Jay Munnangi.
| {
"content_hash": "d5ebaa2cea926156f45f66e5b8ee98a7",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 435,
"avg_line_length": 90.44444444444444,
"alnum_prop": 0.8083538083538083,
"repo_name": "Team-JETT/Grouvie",
"id": "e33da9743bcbae85ec7f9202627de8e6d089402f",
"size": "1638",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "152082"
},
{
"name": "Python",
"bytes": "30781"
},
{
"name": "Shell",
"bytes": "966"
}
],
"symlink_target": ""
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_45) on Sun Dec 23 18:05:52 IST 2018 -->
<title>PIGenerator</title>
<meta name="date" content="2018-12-23">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="PIGenerator";
}
}
catch(err) {
}
//-->
var methods = {"i0":6,"i1":6,"i2":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev Class</li>
<li><a href="../../../../../com/exlibris/dps/sdk/plugin/StartUpCheckPlugin.html" title="interface in com.exlibris.dps.sdk.plugin"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/exlibris/dps/sdk/plugin/PIGenerator.html" target="_top">Frames</a></li>
<li><a href="PIGenerator.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.exlibris.dps.sdk.plugin</div>
<h2 title="Interface PIGenerator" class="title">Interface PIGenerator</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public interface <span class="typeNameLabel">PIGenerator</span></pre>
<dl>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd>yaarac
General plugin type for persistent identifiers creation
<br>This plugin interface only supports java implementation.</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/exlibris/dps/sdk/plugin/PIGenerator.html#getType--">getType</a></span>()</code> </td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/exlibris/dps/sdk/plugin/PIGenerator.html#getValue--">getValue</a></span>()</code> </td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/exlibris/dps/sdk/plugin/PIGenerator.html#validate-java.lang.String-">validate</a></span>(java.lang.String pi)</code> </td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getType--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getType</h4>
<pre>java.lang.String getType()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the type of the PI generator</dd>
</dl>
</li>
</ul>
<a name="getValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValue</h4>
<pre>java.lang.String getValue()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A new persistent identifier value</dd>
</dl>
</li>
</ul>
<a name="validate-java.lang.String-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>validate</h4>
<pre>boolean validate(java.lang.String pi)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pi</code> - a persistent identifier to validate</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if the identifier is valid, <code>false</code> otherwise.</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev Class</li>
<li><a href="../../../../../com/exlibris/dps/sdk/plugin/StartUpCheckPlugin.html" title="interface in com.exlibris.dps.sdk.plugin"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/exlibris/dps/sdk/plugin/PIGenerator.html" target="_top">Frames</a></li>
<li><a href="PIGenerator.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
| {
"content_hash": "cb2e26f866ba4f55ec8243708befe394",
"timestamp": "",
"source": "github",
"line_count": 265,
"max_line_length": 391,
"avg_line_length": 32.97735849056604,
"alnum_prop": 0.624785444558874,
"repo_name": "ExLibrisGroup/Rosetta.dps-sdk-projects",
"id": "393ecb1b1f26bfaf5791fd2983d6129594a119e0",
"size": "8739",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "6.0/javadoc/com/exlibris/dps/sdk/plugin/PIGenerator.html",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Java",
"bytes": "4697410"
},
{
"name": "Shell",
"bytes": "297"
}
],
"symlink_target": ""
} |
package com.cola.service.customer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
/**
* cola
* Created by jiachen.shi on 11/2/2016.
*/
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
public class WebApplicationRunner {
private static Logger logger = LoggerFactory.getLogger(WebApplicationRunner.class);
public static void main(String[] args) {
logger.info("**************** WebApplication Cola-Price Start *****************");
SpringApplication.run(WebApplicationRunner.class, args);
logger.info("***************** WebApplication Cola-Price End ******************");
}
}
| {
"content_hash": "09e0e50b00c133bf4f3e5d472174c8f7",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 90,
"avg_line_length": 32.285714285714285,
"alnum_prop": 0.7245575221238938,
"repo_name": "james-shijiachen/cola",
"id": "6b9b126d843c32d32a83246496822d6e9fbca4ea",
"size": "1527",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "service/customer/src/main/java/com/cola/service/customer/WebApplicationRunner.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "4860"
},
{
"name": "CSS",
"bytes": "236728"
},
{
"name": "HTML",
"bytes": "115897"
},
{
"name": "Java",
"bytes": "260344"
},
{
"name": "JavaScript",
"bytes": "87393"
},
{
"name": "Shell",
"bytes": "1122"
}
],
"symlink_target": ""
} |
import os
from setuptools import setup, find_packages
import imp
REQUIREMENTS = ["offset"]
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Topic :: Software Development :: Libraries']
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
long_description = f.read()
DATA_FILES = [('libchan', ["LICENSE", "MANIFEST.in", "README.rst"])]
def load_module(name, path):
f, pathname, description = imp.find_module(name, [path])
return imp.load_module(name, f, pathname, description)
VERSION = load_module('version', './libchan').__version__
setup(name='libchan',
version=VERSION,
description='',
long_description=long_description,
classifiers=CLASSIFIERS,
license='MIT',
url='http://github.com/benoitc/offset',
author='Gijs Molenaar',
author_email='[email protected]',
packages=find_packages(),
install_requires=REQUIREMENTS,
setup_requires=REQUIREMENTS,
tests_require=['pytest'],
data_files=DATA_FILES) | {
"content_hash": "32ecc9e11ce4a6ebf992134909b97244",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 70,
"avg_line_length": 29.652173913043477,
"alnum_prop": 0.6495601173020528,
"repo_name": "gijzelaerr/python-libchan",
"id": "8f29a10a1451dc7a78bac5808430a62aadcc3373",
"size": "1364",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "setup.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "1551"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>All Classes | Soluble API</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" type="text/css" href="css/sami.css">
<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/typeahead.min.js"></script>
<script src="sami.js"></script>
</head>
<body id="classes" data-name="" data-root-path="">
<div id="content">
<div id="left-column">
<div id="control-panel">
<form id="search-form" action="search.html" method="GET">
<span class="glyphicon glyphicon-search"></span>
<input name="search"
class="typeahead form-control"
type="search"
placeholder="Search">
</form>
</div>
<div id="api-tree"></div>
</div>
<div id="right-column">
<nav id="site-nav" class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-elements">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">Soluble API</a>
</div>
<div class="collapse navbar-collapse" id="navbar-elements">
<ul class="nav navbar-nav">
<li><a href="classes.html">Classes</a></li>
<li><a href="namespaces.html">Namespaces</a></li>
<li><a href="interfaces.html">Interfaces</a></li>
<li><a href="traits.html">Traits</a></li>
<li><a href="doc-index.html">Index</a></li>
<li><a href="search.html">Search</a></li>
</ul>
</div>
</div>
</nav>
<div id="page-content">
<div class="page-header">
<h1>Classes</h1>
</div>
<div class="container-fluid underlined">
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Compat/Adodb.html"><abbr title="Soluble\Db\Compat\Adodb">Soluble\Db\Compat\Adodb</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Compat/Exception/AdoNotConnectedException.html"><abbr title="Soluble\Db\Compat\Exception\AdoNotConnectedException">Soluble\Db\Compat\Exception\AdoNotConnectedException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Compat/Exception/UnsupportedDriverException.html"><abbr title="Soluble\Db\Compat\Exception\UnsupportedDriverException">Soluble\Db\Compat\Exception\UnsupportedDriverException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Compat/Mysqli.html"><abbr title="Soluble\Db\Compat\Mysqli">Soluble\Db\Compat\Mysqli</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Compat/PDO.html"><abbr title="Soluble\Db\Compat\PDO">Soluble\Db\Compat\PDO</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/Db/Metadata/Cache/CacheAwareInterface.html"><abbr title="Soluble\Db\Metadata\Cache\CacheAwareInterface">Soluble\Db\Metadata\Cache\CacheAwareInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Column/Definition/AbstractColumnDefinition.html"><abbr title="Soluble\Db\Metadata\Column\Definition\AbstractColumnDefinition">Soluble\Db\Metadata\Column\Definition\AbstractColumnDefinition</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Column/Definition/BitColumn.html"><abbr title="Soluble\Db\Metadata\Column\Definition\BitColumn">Soluble\Db\Metadata\Column\Definition\BitColumn</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Column/Definition/BlobColumn.html"><abbr title="Soluble\Db\Metadata\Column\Definition\BlobColumn">Soluble\Db\Metadata\Column\Definition\BlobColumn</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Column/Definition/BooleanColumn.html"><abbr title="Soluble\Db\Metadata\Column\Definition\BooleanColumn">Soluble\Db\Metadata\Column\Definition\BooleanColumn</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Column/Definition/DateColumn.html"><abbr title="Soluble\Db\Metadata\Column\Definition\DateColumn">Soluble\Db\Metadata\Column\Definition\DateColumn</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/Db/Metadata/Column/Definition/DateColumnInterface.html"><abbr title="Soluble\Db\Metadata\Column\Definition\DateColumnInterface">Soluble\Db\Metadata\Column\Definition\DateColumnInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Column/Definition/DatetimeColumn.html"><abbr title="Soluble\Db\Metadata\Column\Definition\DatetimeColumn">Soluble\Db\Metadata\Column\Definition\DatetimeColumn</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/Db/Metadata/Column/Definition/DatetimeColumnInterface.html"><abbr title="Soluble\Db\Metadata\Column\Definition\DatetimeColumnInterface">Soluble\Db\Metadata\Column\Definition\DatetimeColumnInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Column/Definition/DecimalColumn.html"><abbr title="Soluble\Db\Metadata\Column\Definition\DecimalColumn">Soluble\Db\Metadata\Column\Definition\DecimalColumn</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Column/Definition/FloatColumn.html"><abbr title="Soluble\Db\Metadata\Column\Definition\FloatColumn">Soluble\Db\Metadata\Column\Definition\FloatColumn</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Column/Definition/GeometryColumn.html"><abbr title="Soluble\Db\Metadata\Column\Definition\GeometryColumn">Soluble\Db\Metadata\Column\Definition\GeometryColumn</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Column/Definition/IntegerColumn.html"><abbr title="Soluble\Db\Metadata\Column\Definition\IntegerColumn">Soluble\Db\Metadata\Column\Definition\IntegerColumn</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/Db/Metadata/Column/Definition/NumericColumnInterface.html"><abbr title="Soluble\Db\Metadata\Column\Definition\NumericColumnInterface">Soluble\Db\Metadata\Column\Definition\NumericColumnInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Column/Definition/StringColumn.html"><abbr title="Soluble\Db\Metadata\Column\Definition\StringColumn">Soluble\Db\Metadata\Column\Definition\StringColumn</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/Db/Metadata/Column/Definition/TextColumnInterface.html"><abbr title="Soluble\Db\Metadata\Column\Definition\TextColumnInterface">Soluble\Db\Metadata\Column\Definition\TextColumnInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Column/Definition/TimeColumn.html"><abbr title="Soluble\Db\Metadata\Column\Definition\TimeColumn">Soluble\Db\Metadata\Column\Definition\TimeColumn</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Column/Exception/UnsupportedDatatypeException.html"><abbr title="Soluble\Db\Metadata\Column\Exception\UnsupportedDatatypeException">Soluble\Db\Metadata\Column\Exception\UnsupportedDatatypeException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Column/Type.html"><abbr title="Soluble\Db\Metadata\Column\Type">Soluble\Db\Metadata\Column\Type</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Exception/ErrorException.html"><abbr title="Soluble\Db\Metadata\Exception\ErrorException">Soluble\Db\Metadata\Exception\ErrorException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/Db/Metadata/Exception/ExceptionInterface.html"><abbr title="Soluble\Db\Metadata\Exception\ExceptionInterface">Soluble\Db\Metadata\Exception\ExceptionInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Exception/InvalidArgumentException.html"><abbr title="Soluble\Db\Metadata\Exception\InvalidArgumentException">Soluble\Db\Metadata\Exception\InvalidArgumentException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Exception/MultiplePrimaryKeyException.html"><abbr title="Soluble\Db\Metadata\Exception\MultiplePrimaryKeyException">Soluble\Db\Metadata\Exception\MultiplePrimaryKeyException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Exception/NoPrimaryKeyException.html"><abbr title="Soluble\Db\Metadata\Exception\NoPrimaryKeyException">Soluble\Db\Metadata\Exception\NoPrimaryKeyException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Exception/SchemaNotFoundException.html"><abbr title="Soluble\Db\Metadata\Exception\SchemaNotFoundException">Soluble\Db\Metadata\Exception\SchemaNotFoundException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Exception/TableNotFoundException.html"><abbr title="Soluble\Db\Metadata\Exception\TableNotFoundException">Soluble\Db\Metadata\Exception\TableNotFoundException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Exception/UnsupportedDriverException.html"><abbr title="Soluble\Db\Metadata\Exception\UnsupportedDriverException">Soluble\Db\Metadata\Exception\UnsupportedDriverException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Metadata.html"><abbr title="Soluble\Db\Metadata\Metadata">Soluble\Db\Metadata\Metadata</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Source/AbstractSource.html"><abbr title="Soluble\Db\Metadata\Source\AbstractSource">Soluble\Db\Metadata\Source\AbstractSource</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Metadata/Source/Mysql/InformationSchema.html"><abbr title="Soluble\Db\Metadata\Source\Mysql\InformationSchema">Soluble\Db\Metadata\Source\Mysql\InformationSchema</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Sql/Exception/InvalidArgumentException.html"><abbr title="Soluble\Db\Sql\Exception\InvalidArgumentException">Soluble\Db\Sql\Exception\InvalidArgumentException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Sql/Exception/InvalidUsageException.html"><abbr title="Soluble\Db\Sql\Exception\InvalidUsageException">Soluble\Db\Sql\Exception\InvalidUsageException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Db/Sql/Select.html"><abbr title="Soluble\Db\Sql\Select">Soluble\Db\Sql\Select</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Column/Column.html"><abbr title="Soluble\FlexStore\Column\Column">Soluble\FlexStore\Column\Column</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Column/ColumnModel.html"><abbr title="Soluble\FlexStore\Column\ColumnModel">Soluble\FlexStore\Column\ColumnModel</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Column/ColumnModel/Search.html"><abbr title="Soluble\FlexStore\Column\ColumnModel\Search">Soluble\FlexStore\Column\ColumnModel\Search</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Column/ColumnModel/Search/Result.html"><abbr title="Soluble\FlexStore\Column\ColumnModel\Search\Result">Soluble\FlexStore\Column\ColumnModel\Search\Result</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/FlexStore/Column/ColumnSettableInterface.html"><abbr title="Soluble\FlexStore\Column\ColumnSettableInterface">Soluble\FlexStore\Column\ColumnSettableInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Column/ColumnType.html"><abbr title="Soluble\FlexStore\Column\ColumnType">Soluble\FlexStore\Column\ColumnType</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Column/Exception/ColumnNotFoundException.html"><abbr title="Soluble\FlexStore\Column\Exception\ColumnNotFoundException">Soluble\FlexStore\Column\Exception\ColumnNotFoundException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Column/Exception/DuplicateColumnException.html"><abbr title="Soluble\FlexStore\Column\Exception\DuplicateColumnException">Soluble\FlexStore\Column\Exception\DuplicateColumnException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/FlexStore/Column/Exception/ExceptionInterface.html"><abbr title="Soluble\FlexStore\Column\Exception\ExceptionInterface">Soluble\FlexStore\Column\Exception\ExceptionInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Column/Exception/InvalidArgumentException.html"><abbr title="Soluble\FlexStore\Column\Exception\InvalidArgumentException">Soluble\FlexStore\Column\Exception\InvalidArgumentException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Column/Exception/MissingColumnException.html"><abbr title="Soluble\FlexStore\Column\Exception\MissingColumnException">Soluble\FlexStore\Column\Exception\MissingColumnException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Column/Type/AbstractType.html"><abbr title="Soluble\FlexStore\Column\Type\AbstractType">Soluble\FlexStore\Column\Type\AbstractType</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Column/Type/BitType.html"><abbr title="Soluble\FlexStore\Column\Type\BitType">Soluble\FlexStore\Column\Type\BitType</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Column/Type/BlobType.html"><abbr title="Soluble\FlexStore\Column\Type\BlobType">Soluble\FlexStore\Column\Type\BlobType</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Column/Type/BooleanType.html"><abbr title="Soluble\FlexStore\Column\Type\BooleanType">Soluble\FlexStore\Column\Type\BooleanType</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Column/Type/DateType.html"><abbr title="Soluble\FlexStore\Column\Type\DateType">Soluble\FlexStore\Column\Type\DateType</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Column/Type/DatetimeType.html"><abbr title="Soluble\FlexStore\Column\Type\DatetimeType">Soluble\FlexStore\Column\Type\DatetimeType</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Column/Type/DecimalType.html"><abbr title="Soluble\FlexStore\Column\Type\DecimalType">Soluble\FlexStore\Column\Type\DecimalType</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Column/Type/IntegerType.html"><abbr title="Soluble\FlexStore\Column\Type\IntegerType">Soluble\FlexStore\Column\Type\IntegerType</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Column/Type/MetadataMapper.html"><abbr title="Soluble\FlexStore\Column\Type\MetadataMapper">Soluble\FlexStore\Column\Type\MetadataMapper</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Column/Type/StringType.html"><abbr title="Soluble\FlexStore\Column\Type\StringType">Soluble\FlexStore\Column\Type\StringType</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Column/Type/TimeType.html"><abbr title="Soluble\FlexStore\Column\Type\TimeType">Soluble\FlexStore\Column\Type\TimeType</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Exception/EmptyQueryException.html"><abbr title="Soluble\FlexStore\Exception\EmptyQueryException">Soluble\FlexStore\Exception\EmptyQueryException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Exception/ErrorException.html"><abbr title="Soluble\FlexStore\Exception\ErrorException">Soluble\FlexStore\Exception\ErrorException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/FlexStore/Exception/ExceptionInterface.html"><abbr title="Soluble\FlexStore\Exception\ExceptionInterface">Soluble\FlexStore\Exception\ExceptionInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Exception/ExtensionNotLoadedException.html"><abbr title="Soluble\FlexStore\Exception\ExtensionNotLoadedException">Soluble\FlexStore\Exception\ExtensionNotLoadedException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Exception/InvalidArgumentException.html"><abbr title="Soluble\FlexStore\Exception\InvalidArgumentException">Soluble\FlexStore\Exception\InvalidArgumentException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Exception/InvalidUsageException.html"><abbr title="Soluble\FlexStore\Exception\InvalidUsageException">Soluble\FlexStore\Exception\InvalidUsageException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Exception/MissingArgumentException.html"><abbr title="Soluble\FlexStore\Exception\MissingArgumentException">Soluble\FlexStore\Exception\MissingArgumentException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Exception/RuntimeException.html"><abbr title="Soluble\FlexStore\Exception\RuntimeException">Soluble\FlexStore\Exception\RuntimeException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Exception/UnsupportedFeatureException.html"><abbr title="Soluble\FlexStore\Exception\UnsupportedFeatureException">Soluble\FlexStore\Exception\UnsupportedFeatureException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Formatter.html"><abbr title="Soluble\FlexStore\Formatter">Soluble\FlexStore\Formatter</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Formatter/CurrencyFormatter.html"><abbr title="Soluble\FlexStore\Formatter\CurrencyFormatter">Soluble\FlexStore\Formatter\CurrencyFormatter</abbr></a>
</div>
<div class="col-md-6">
columns
- price:
- formatter:
- money
- currency_code
- locale
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Formatter/Exception/InvalidArgumentException.html"><abbr title="Soluble\FlexStore\Formatter\Exception\InvalidArgumentException">Soluble\FlexStore\Formatter\Exception\InvalidArgumentException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Formatter/Exception/RuntimeException.html"><abbr title="Soluble\FlexStore\Formatter\Exception\RuntimeException">Soluble\FlexStore\Formatter\Exception\RuntimeException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/FlexStore/Formatter/FormatterInterface.html"><abbr title="Soluble\FlexStore\Formatter\FormatterInterface">Soluble\FlexStore\Formatter\FormatterInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/FlexStore/Formatter/FormatterNumberInterface.html"><abbr title="Soluble\FlexStore\Formatter\FormatterNumberInterface">Soluble\FlexStore\Formatter\FormatterNumberInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Formatter/NumberFormatter.html"><abbr title="Soluble\FlexStore\Formatter\NumberFormatter">Soluble\FlexStore\Formatter\NumberFormatter</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Formatter/RowColumn.html"><abbr title="Soluble\FlexStore\Formatter\RowColumn">Soluble\FlexStore\Formatter\RowColumn</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Formatter/UnitFormatter.html"><abbr title="Soluble\FlexStore\Formatter\UnitFormatter">Soluble\FlexStore\Formatter\UnitFormatter</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Helper/Paginator.html"><abbr title="Soluble\FlexStore\Helper\Paginator">Soluble\FlexStore\Helper\Paginator</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/FlexStore/I18n/LocalizableInterface.html"><abbr title="Soluble\FlexStore\I18n\LocalizableInterface">Soluble\FlexStore\I18n\LocalizableInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Metadata/Exception/AmbiguousColumnException.html"><abbr title="Soluble\FlexStore\Metadata\Exception\AmbiguousColumnException">Soluble\FlexStore\Metadata\Exception\AmbiguousColumnException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Metadata/Exception/ConnectionException.html"><abbr title="Soluble\FlexStore\Metadata\Exception\ConnectionException">Soluble\FlexStore\Metadata\Exception\ConnectionException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Metadata/Exception/EmptyQueryException.html"><abbr title="Soluble\FlexStore\Metadata\Exception\EmptyQueryException">Soluble\FlexStore\Metadata\Exception\EmptyQueryException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Metadata/Exception/InvalidQueryException.html"><abbr title="Soluble\FlexStore\Metadata\Exception\InvalidQueryException">Soluble\FlexStore\Metadata\Exception\InvalidQueryException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Metadata/Exception/UnsupportedDriverException.html"><abbr title="Soluble\FlexStore\Metadata\Exception\UnsupportedDriverException">Soluble\FlexStore\Metadata\Exception\UnsupportedDriverException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Metadata/Exception/UnsupportedFeatureException.html"><abbr title="Soluble\FlexStore\Metadata\Exception\UnsupportedFeatureException">Soluble\FlexStore\Metadata\Exception\UnsupportedFeatureException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Metadata/Reader/AbstractMetadataReader.html"><abbr title="Soluble\FlexStore\Metadata\Reader\AbstractMetadataReader">Soluble\FlexStore\Metadata\Reader\AbstractMetadataReader</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Metadata/Reader/MysqliMetadataReader.html"><abbr title="Soluble\FlexStore\Metadata\Reader\MysqliMetadataReader">Soluble\FlexStore\Metadata\Reader\MysqliMetadataReader</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Metadata/Reader/PDOMysqlMetadataReader.html"><abbr title="Soluble\FlexStore\Metadata\Reader\PDOMysqlMetadataReader">Soluble\FlexStore\Metadata\Reader\PDOMysqlMetadataReader</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Options.html"><abbr title="Soluble\FlexStore\Options">Soluble\FlexStore\Options</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Options/HydrationOptions.html"><abbr title="Soluble\FlexStore\Options\HydrationOptions">Soluble\FlexStore\Options\HydrationOptions</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Renderer/ClosureRenderer.html"><abbr title="Soluble\FlexStore\Renderer\ClosureRenderer">Soluble\FlexStore\Renderer\ClosureRenderer</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/FlexStore/Renderer/RowRendererInterface.html"><abbr title="Soluble\FlexStore\Renderer\RowRendererInterface">Soluble\FlexStore\Renderer\RowRendererInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/ResultSet/AbstractResultSet.html"><abbr title="Soluble\FlexStore\ResultSet\AbstractResultSet">Soluble\FlexStore\ResultSet\AbstractResultSet</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/ResultSet/Exception/DuplicateColumnException.html"><abbr title="Soluble\FlexStore\ResultSet\Exception\DuplicateColumnException">Soluble\FlexStore\ResultSet\Exception\DuplicateColumnException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/ResultSet/Exception/InvalidArgumentException.html"><abbr title="Soluble\FlexStore\ResultSet\Exception\InvalidArgumentException">Soluble\FlexStore\ResultSet\Exception\InvalidArgumentException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/ResultSet/Exception/RuntimeException.html"><abbr title="Soluble\FlexStore\ResultSet\Exception\RuntimeException">Soluble\FlexStore\ResultSet\Exception\RuntimeException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/ResultSet/Exception/UnknownColumnException.html"><abbr title="Soluble\FlexStore\ResultSet\Exception\UnknownColumnException">Soluble\FlexStore\ResultSet\Exception\UnknownColumnException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/ResultSet/ResultSet.html"><abbr title="Soluble\FlexStore\ResultSet\ResultSet">Soluble\FlexStore\ResultSet\ResultSet</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/FlexStore/ResultSet/ResultSetInterface.html"><abbr title="Soluble\FlexStore\ResultSet\ResultSetInterface">Soluble\FlexStore\ResultSet\ResultSetInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Source/AbstractSource.html"><abbr title="Soluble\FlexStore\Source\AbstractSource">Soluble\FlexStore\Source\AbstractSource</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/FlexStore/Source/QueryableSourceInterface.html"><abbr title="Soluble\FlexStore\Source\QueryableSourceInterface">Soluble\FlexStore\Source\QueryableSourceInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/FlexStore/Source/SourceInterface.html"><abbr title="Soluble\FlexStore\Source\SourceInterface">Soluble\FlexStore\Source\SourceInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Source/Zend/SqlSource.html"><abbr title="Soluble\FlexStore\Source\Zend\SqlSource">Soluble\FlexStore\Source\Zend\SqlSource</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Store.html"><abbr title="Soluble\FlexStore\Store">Soluble\FlexStore\Store</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/FlexStore/StoreInterface.html"><abbr title="Soluble\FlexStore\StoreInterface">Soluble\FlexStore\StoreInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Store/Properties.html"><abbr title="Soluble\FlexStore\Store\Properties">Soluble\FlexStore\Store\Properties</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Writer/AbstractSendableWriter.html"><abbr title="Soluble\FlexStore\Writer\AbstractSendableWriter">Soluble\FlexStore\Writer\AbstractSendableWriter</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Writer/AbstractWriter.html"><abbr title="Soluble\FlexStore\Writer\AbstractWriter">Soluble\FlexStore\Writer\AbstractWriter</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Writer/CSVWriter.html"><abbr title="Soluble\FlexStore\Writer\CSVWriter">Soluble\FlexStore\Writer\CSVWriter</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Writer/Excel/LibXLWriter.html"><abbr title="Soluble\FlexStore\Writer\Excel\LibXLWriter">Soluble\FlexStore\Writer\Excel\LibXLWriter</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Writer/Exception/CharsetConversionException.html"><abbr title="Soluble\FlexStore\Writer\Exception\CharsetConversionException">Soluble\FlexStore\Writer\Exception\CharsetConversionException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Writer/Exception/InvalidArgumentException.html"><abbr title="Soluble\FlexStore\Writer\Exception\InvalidArgumentException">Soluble\FlexStore\Writer\Exception\InvalidArgumentException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Writer/Exception/RuntimeException.html"><abbr title="Soluble\FlexStore\Writer\Exception\RuntimeException">Soluble\FlexStore\Writer\Exception\RuntimeException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/FlexStore/Writer/HttpSendableInterface.html"><abbr title="Soluble\FlexStore\Writer\HttpSendableInterface">Soluble\FlexStore\Writer\HttpSendableInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Writer/Http/Exception/InvalidArgumentException.html"><abbr title="Soluble\FlexStore\Writer\Http\Exception\InvalidArgumentException">Soluble\FlexStore\Writer\Http\Exception\InvalidArgumentException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Writer/Http/Exception/RuntimeException.html"><abbr title="Soluble\FlexStore\Writer\Http\Exception\RuntimeException">Soluble\FlexStore\Writer\Http\Exception\RuntimeException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Writer/Http/SimpleHeaders.html"><abbr title="Soluble\FlexStore\Writer\Http\SimpleHeaders">Soluble\FlexStore\Writer\Http\SimpleHeaders</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Writer/JsonWriter.html"><abbr title="Soluble\FlexStore\Writer\JsonWriter">Soluble\FlexStore\Writer\JsonWriter</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Writer/SimpleXmlWriter.html"><abbr title="Soluble\FlexStore\Writer\SimpleXmlWriter">Soluble\FlexStore\Writer\SimpleXmlWriter</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Writer/Zend/JsonModelWriter.html"><abbr title="Soluble\FlexStore\Writer\Zend\JsonModelWriter">Soluble\FlexStore\Writer\Zend\JsonModelWriter</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/FlexStore/Writer/Zend/JsonWriter.html"><abbr title="Soluble\FlexStore\Writer\Zend\JsonWriter">Soluble\FlexStore\Writer\Zend\JsonWriter</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/AbstractDriver.html"><abbr title="Soluble\Japha\Bridge\Driver\AbstractDriver">Soluble\Japha\Bridge\Driver\AbstractDriver</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/Japha/Bridge/Driver/ConnectionInterface.html"><abbr title="Soluble\Japha\Bridge\Driver\ConnectionInterface">Soluble\Japha\Bridge\Driver\ConnectionInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/Japha/Bridge/Driver/DriverInterface.html"><abbr title="Soluble\Japha\Bridge\Driver\DriverInterface">Soluble\Japha\Bridge\Driver\DriverInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/AbstractJava.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\AbstractJava">Soluble\Japha\Bridge\Driver\Pjb621\AbstractJava</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/ApplyArg.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\ApplyArg">Soluble\Japha\Bridge\Driver\Pjb621\ApplyArg</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/Arg.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\Arg">Soluble\Japha\Bridge\Driver\Pjb621\Arg</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/ArrayProxy.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\ArrayProxy">Soluble\Japha\Bridge\Driver\Pjb621\ArrayProxy</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/ArrayProxyFactory.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\ArrayProxyFactory">Soluble\Japha\Bridge\Driver\Pjb621\ArrayProxyFactory</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/CacheEntry.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\CacheEntry">Soluble\Japha\Bridge\Driver\Pjb621\CacheEntry</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/ChunkedSocketChannel.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\ChunkedSocketChannel">Soluble\Japha\Bridge\Driver\Pjb621\ChunkedSocketChannel</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/Client.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\Client">Soluble\Japha\Bridge\Driver\Pjb621\Client</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/CompositeArg.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\CompositeArg">Soluble\Japha\Bridge\Driver\Pjb621\CompositeArg</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/EmptyChannel.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\EmptyChannel">Soluble\Japha\Bridge\Driver\Pjb621\EmptyChannel</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/ExceptionProxy.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\ExceptionProxy">Soluble\Japha\Bridge\Driver\Pjb621\ExceptionProxy</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/ExceptionProxyFactory.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\ExceptionProxyFactory">Soluble\Japha\Bridge\Driver\Pjb621\ExceptionProxyFactory</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/Exception/ConnectException.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\Exception\ConnectException">Soluble\Japha\Bridge\Driver\Pjb621\Exception\ConnectException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/Exception/IOException.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\Exception\IOException">Soluble\Japha\Bridge\Driver\Pjb621\Exception\IOException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/Exception/IllegalArgumentException.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\Exception\IllegalArgumentException">Soluble\Japha\Bridge\Driver\Pjb621\Exception\IllegalArgumentException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/Exception/IllegalStateException.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\Exception\IllegalStateException">Soluble\Japha\Bridge\Driver\Pjb621\Exception\IllegalStateException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/Exception/InternalException.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\Exception\InternalException">Soluble\Japha\Bridge\Driver\Pjb621\Exception\InternalException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/Exception/JavaBridgeException.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\Exception\JavaBridgeException">Soluble\Japha\Bridge\Driver\Pjb621\Exception\JavaBridgeException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/Exception/JavaException.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\Exception\JavaException">Soluble\Japha\Bridge\Driver\Pjb621\Exception\JavaException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/Exception/RuntimeException.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\Exception\RuntimeException">Soluble\Japha\Bridge\Driver\Pjb621\Exception\RuntimeException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/GlobalRef.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\GlobalRef">Soluble\Japha\Bridge\Driver\Pjb621\GlobalRef</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/HttpTunnelHandler.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\HttpTunnelHandler">Soluble\Japha\Bridge\Driver\Pjb621\HttpTunnelHandler</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/InternalJava.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\InternalJava">Soluble\Japha\Bridge\Driver\Pjb621\InternalJava</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/IteratorProxy.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\IteratorProxy">Soluble\Japha\Bridge\Driver\Pjb621\IteratorProxy</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/IteratorProxyFactory.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\IteratorProxyFactory">Soluble\Japha\Bridge\Driver\Pjb621\IteratorProxyFactory</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/Java.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\Java">Soluble\Japha\Bridge\Driver\Pjb621\Java</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/JavaClass.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\JavaClass">Soluble\Japha\Bridge\Driver\Pjb621\JavaClass</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/JavaProxy.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\JavaProxy">Soluble\Japha\Bridge\Driver\Pjb621\JavaProxy</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/JavaProxyProxy.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\JavaProxyProxy">Soluble\Japha\Bridge\Driver\Pjb621\JavaProxyProxy</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/Japha/Bridge/Driver/Pjb621/JavaType.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\JavaType">Soluble\Japha\Bridge\Driver\Pjb621\JavaType</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/NativeParser.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\NativeParser">Soluble\Japha\Bridge\Driver\Pjb621\NativeParser</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/ObjectIterator.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\ObjectIterator">Soluble\Japha\Bridge\Driver\Pjb621\ObjectIterator</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/Parser.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\Parser">Soluble\Japha\Bridge\Driver\Pjb621\Parser</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/ParserString.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\ParserString">Soluble\Japha\Bridge\Driver\Pjb621\ParserString</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/ParserTag.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\ParserTag">Soluble\Japha\Bridge\Driver\Pjb621\ParserTag</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/Pjb621Driver.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\Pjb621Driver">Soluble\Japha\Bridge\Driver\Pjb621\Pjb621Driver</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/Protocol.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\Protocol">Soluble\Japha\Bridge\Driver\Pjb621\Protocol</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/ProxyFactory.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\ProxyFactory">Soluble\Japha\Bridge\Driver\Pjb621\ProxyFactory</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/SimpleFactory.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\SimpleFactory">Soluble\Japha\Bridge\Driver\Pjb621\SimpleFactory</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/SimpleHttpHandler.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\SimpleHttpHandler">Soluble\Japha\Bridge\Driver\Pjb621\SimpleHttpHandler</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/SimpleHttpTunnelHandler.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\SimpleHttpTunnelHandler">Soluble\Japha\Bridge\Driver\Pjb621\SimpleHttpTunnelHandler</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/SocketChannel.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\SocketChannel">Soluble\Japha\Bridge\Driver\Pjb621\SocketChannel</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/SocketChannelP.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\SocketChannelP">Soluble\Japha\Bridge\Driver\Pjb621\SocketChannelP</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/SocketHandler.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\SocketHandler">Soluble\Japha\Bridge\Driver\Pjb621\SocketHandler</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Driver/Pjb621/ThrowExceptionProxyFactory.html"><abbr title="Soluble\Japha\Bridge\Driver\Pjb621\ThrowExceptionProxyFactory">Soluble\Japha\Bridge\Driver\Pjb621\ThrowExceptionProxyFactory</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/Japha/Bridge/Exception/ExceptionInterface.html"><abbr title="Soluble\Japha\Bridge\Exception\ExceptionInterface">Soluble\Japha\Bridge\Exception\ExceptionInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Exception/InvalidUsageException.html"><abbr title="Soluble\Japha\Bridge\Exception\InvalidUsageException">Soluble\Japha\Bridge\Exception\InvalidUsageException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Exception/NotAvailableException.html"><abbr title="Soluble\Japha\Bridge\Exception\NotAvailableException">Soluble\Japha\Bridge\Exception\NotAvailableException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/Exception/UnsupportedDriverException.html"><abbr title="Soluble\Japha\Bridge\Exception\UnsupportedDriverException">Soluble\Japha\Bridge\Exception\UnsupportedDriverException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/Japha/Bridge/JavaObjectInterface.html"><abbr title="Soluble\Japha\Bridge\JavaObjectInterface">Soluble\Japha\Bridge\JavaObjectInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Bridge/PhpJavaBridge.html"><abbr title="Soluble\Japha\Bridge\PhpJavaBridge">Soluble\Japha\Bridge\PhpJavaBridge</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Japha/Db/DriverManager.html"><abbr title="Soluble\Japha\Db\DriverManager">Soluble\Japha\Db\DriverManager</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Media/BoxDimension.html"><abbr title="Soluble\Media\BoxDimension">Soluble\Media\BoxDimension</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Media/Converter.html"><abbr title="Soluble\Media\Converter">Soluble\Media\Converter</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/Media/Converter/ConverterInterface.html"><abbr title="Soluble\Media\Converter\ConverterInterface">Soluble\Media\Converter\ConverterInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Media/Converter/Exception/InvalidArgumentException.html"><abbr title="Soluble\Media\Converter\Exception\InvalidArgumentException">Soluble\Media\Converter\Exception\InvalidArgumentException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Media/Converter/Exception/LogicException.html"><abbr title="Soluble\Media\Converter\Exception\LogicException">Soluble\Media\Converter\Exception\LogicException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Media/Converter/Exception/UnsupportedBackendException.html"><abbr title="Soluble\Media\Converter\Exception\UnsupportedBackendException">Soluble\Media\Converter\Exception\UnsupportedBackendException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Media/Converter/ImageConverter.html"><abbr title="Soluble\Media\Converter\ImageConverter">Soluble\Media\Converter\ImageConverter</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Media/Converter/Service/MediaConverterFactory.html"><abbr title="Soluble\Media\Converter\Service\MediaConverterFactory">Soluble\Media\Converter\Service\MediaConverterFactory</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/Normalist/Driver/DriverInterface.html"><abbr title="Soluble\Normalist\Driver\DriverInterface">Soluble\Normalist\Driver\DriverInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/Normalist/Driver/Exception/ExceptionInterface.html"><abbr title="Soluble\Normalist\Driver\Exception\ExceptionInterface">Soluble\Normalist\Driver\Exception\ExceptionInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Driver/Exception/InvalidArgumentException.html"><abbr title="Soluble\Normalist\Driver\Exception\InvalidArgumentException">Soluble\Normalist\Driver\Exception\InvalidArgumentException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Driver/Exception/ModelFileCorruptedException.html"><abbr title="Soluble\Normalist\Driver\Exception\ModelFileCorruptedException">Soluble\Normalist\Driver\Exception\ModelFileCorruptedException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Driver/Exception/ModelFileNotFoundException.html"><abbr title="Soluble\Normalist\Driver\Exception\ModelFileNotFoundException">Soluble\Normalist\Driver\Exception\ModelFileNotFoundException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Driver/Exception/ModelFileNotWritableException.html"><abbr title="Soluble\Normalist\Driver\Exception\ModelFileNotWritableException">Soluble\Normalist\Driver\Exception\ModelFileNotWritableException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Driver/Exception/ModelPathNotFoundException.html"><abbr title="Soluble\Normalist\Driver\Exception\ModelPathNotFoundException">Soluble\Normalist\Driver\Exception\ModelPathNotFoundException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Driver/Exception/ModelPathNotWritableException.html"><abbr title="Soluble\Normalist\Driver\Exception\ModelPathNotWritableException">Soluble\Normalist\Driver\Exception\ModelPathNotWritableException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Driver/Exception/RuntimeException.html"><abbr title="Soluble\Normalist\Driver\Exception\RuntimeException">Soluble\Normalist\Driver\Exception\RuntimeException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Driver/Metadata/NormalistModels.html"><abbr title="Soluble\Normalist\Driver\Metadata\NormalistModels">Soluble\Normalist\Driver\Metadata\NormalistModels</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Driver/ZeroConfDriver.html"><abbr title="Soluble\Normalist\Driver\ZeroConfDriver">Soluble\Normalist\Driver\ZeroConfDriver</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Exception/ErrorException.html"><abbr title="Soluble\Normalist\Exception\ErrorException">Soluble\Normalist\Exception\ErrorException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/Normalist/Exception/ExceptionInterface.html"><abbr title="Soluble\Normalist\Exception\ExceptionInterface">Soluble\Normalist\Exception\ExceptionInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Exception/FieldNotFoundException.html"><abbr title="Soluble\Normalist\Exception\FieldNotFoundException">Soluble\Normalist\Exception\FieldNotFoundException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Exception/InvalidArgumentException.html"><abbr title="Soluble\Normalist\Exception\InvalidArgumentException">Soluble\Normalist\Exception\InvalidArgumentException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Exception/InvalidColumnException.html"><abbr title="Soluble\Normalist\Exception\InvalidColumnException">Soluble\Normalist\Exception\InvalidColumnException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Exception/InvalidQueryException.html"><abbr title="Soluble\Normalist\Exception\InvalidQueryException">Soluble\Normalist\Exception\InvalidQueryException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Exception/LogicException.html"><abbr title="Soluble\Normalist\Exception\LogicException">Soluble\Normalist\Exception\LogicException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Exception/RecordNotFoundException.html"><abbr title="Soluble\Normalist\Exception\RecordNotFoundException">Soluble\Normalist\Exception\RecordNotFoundException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Exception/RelationNotFoundException.html"><abbr title="Soluble\Normalist\Exception\RelationNotFoundException">Soluble\Normalist\Exception\RelationNotFoundException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Exception/RuntimeException.html"><abbr title="Soluble\Normalist\Exception\RuntimeException">Soluble\Normalist\Exception\RuntimeException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Exception/UnexpectedValueException.html"><abbr title="Soluble\Normalist\Exception\UnexpectedValueException">Soluble\Normalist\Exception\UnexpectedValueException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/Exception/ColumnNotFoundException.html"><abbr title="Soluble\Normalist\Synthetic\Exception\ColumnNotFoundException">Soluble\Normalist\Synthetic\Exception\ColumnNotFoundException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/Exception/DuplicateEntryException.html"><abbr title="Soluble\Normalist\Synthetic\Exception\DuplicateEntryException">Soluble\Normalist\Synthetic\Exception\DuplicateEntryException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/Exception/FieldNotFoundException.html"><abbr title="Soluble\Normalist\Synthetic\Exception\FieldNotFoundException">Soluble\Normalist\Synthetic\Exception\FieldNotFoundException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/Exception/ForeignKeyException.html"><abbr title="Soluble\Normalist\Synthetic\Exception\ForeignKeyException">Soluble\Normalist\Synthetic\Exception\ForeignKeyException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/Exception/InvalidArgumentException.html"><abbr title="Soluble\Normalist\Synthetic\Exception\InvalidArgumentException">Soluble\Normalist\Synthetic\Exception\InvalidArgumentException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/Exception/LogicException.html"><abbr title="Soluble\Normalist\Synthetic\Exception\LogicException">Soluble\Normalist\Synthetic\Exception\LogicException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/Exception/MultiplePrimaryKeysFoundException.html"><abbr title="Soluble\Normalist\Synthetic\Exception\MultiplePrimaryKeysFoundException">Soluble\Normalist\Synthetic\Exception\MultiplePrimaryKeysFoundException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/Exception/NotFoundException.html"><abbr title="Soluble\Normalist\Synthetic\Exception\NotFoundException">Soluble\Normalist\Synthetic\Exception\NotFoundException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/Exception/NotNullException.html"><abbr title="Soluble\Normalist\Synthetic\Exception\NotNullException">Soluble\Normalist\Synthetic\Exception\NotNullException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/Exception/PrimaryKeyNotFoundException.html"><abbr title="Soluble\Normalist\Synthetic\Exception\PrimaryKeyNotFoundException">Soluble\Normalist\Synthetic\Exception\PrimaryKeyNotFoundException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/Exception/RelationNotFoundException.html"><abbr title="Soluble\Normalist\Synthetic\Exception\RelationNotFoundException">Soluble\Normalist\Synthetic\Exception\RelationNotFoundException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/Exception/RuntimeException.html"><abbr title="Soluble\Normalist\Synthetic\Exception\RuntimeException">Soluble\Normalist\Synthetic\Exception\RuntimeException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<em><a href="Soluble/Normalist/Synthetic/Exception/SyntheticExceptionInterface.html"><abbr title="Soluble\Normalist\Synthetic\Exception\SyntheticExceptionInterface">Soluble\Normalist\Synthetic\Exception\SyntheticExceptionInterface</abbr></a></em>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/Exception/TableNotFoundException.html"><abbr title="Soluble\Normalist\Synthetic\Exception\TableNotFoundException">Soluble\Normalist\Synthetic\Exception\TableNotFoundException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/Exception/TransactionException.html"><abbr title="Soluble\Normalist\Synthetic\Exception\TransactionException">Soluble\Normalist\Synthetic\Exception\TransactionException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/Exception/UnexpectedValueException.html"><abbr title="Soluble\Normalist\Synthetic\Exception\UnexpectedValueException">Soluble\Normalist\Synthetic\Exception\UnexpectedValueException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/Exception/UnsupportedFeatureException.html"><abbr title="Soluble\Normalist\Synthetic\Exception\UnsupportedFeatureException">Soluble\Normalist\Synthetic\Exception\UnsupportedFeatureException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/Record.html"><abbr title="Soluble\Normalist\Synthetic\Record">Soluble\Normalist\Synthetic\Record</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/ResultSet/ResultSet.html"><abbr title="Soluble\Normalist\Synthetic\ResultSet\ResultSet">Soluble\Normalist\Synthetic\ResultSet\ResultSet</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/Table.html"><abbr title="Soluble\Normalist\Synthetic\Table">Soluble\Normalist\Synthetic\Table</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/TableManager.html"><abbr title="Soluble\Normalist\Synthetic\TableManager">Soluble\Normalist\Synthetic\TableManager</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/TableSearch.html"><abbr title="Soluble\Normalist\Synthetic\TableSearch">Soluble\Normalist\Synthetic\TableSearch</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/Table/Relation.html"><abbr title="Soluble\Normalist\Synthetic\Table\Relation">Soluble\Normalist\Synthetic\Table\Relation</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Normalist/Synthetic/Transaction.html"><abbr title="Soluble\Normalist\Synthetic\Transaction">Soluble\Normalist\Synthetic\Transaction</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Spreadsheet/Exception/InvalidArgumentException.html"><abbr title="Soluble\Spreadsheet\Exception\InvalidArgumentException">Soluble\Spreadsheet\Exception\InvalidArgumentException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Spreadsheet/Library/Exception/InvalidArgumentException.html"><abbr title="Soluble\Spreadsheet\Library\Exception\InvalidArgumentException">Soluble\Spreadsheet\Library\Exception\InvalidArgumentException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Spreadsheet/Library/Exception/RuntimeException.html"><abbr title="Soluble\Spreadsheet\Library\Exception\RuntimeException">Soluble\Spreadsheet\Library\Exception\RuntimeException</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
<div class="row">
<div class="col-md-6">
<a href="Soluble/Spreadsheet/Library/LibXL.html"><abbr title="Soluble\Spreadsheet\Library\LibXL">Soluble\Spreadsheet\Library\LibXL</abbr></a>
</div>
<div class="col-md-6">
</div>
</div>
</div>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/">Sami, the API Documentation Generator</a>.
</div>
</div>
</div>
</body>
</html>
| {
"content_hash": "e3d593bd35917ffb75b6cf8b2943346a",
"timestamp": "",
"source": "github",
"line_count": 2195,
"max_line_length": 299,
"avg_line_length": 50.219589977220956,
"alnum_prop": 0.45003265839320705,
"repo_name": "belgattitude/solublecomponents",
"id": "ba6d1575f6b56389f1d44b44d3a932455237dd75",
"size": "110232",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/sphinx/source/_static/API/SAMI/classes.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "PHP",
"bytes": "241280"
},
{
"name": "Shell",
"bytes": "3906"
}
],
"symlink_target": ""
} |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "d4172cd79001c63cbb56531efc7a51d2",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "f15613cc8cb0d51a17b582f4e3ce903fe3e3a6c8",
"size": "184",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Liliopsida/Asparagales/Orchidaceae/Maxillariella/Maxillariella longibracteata/ Syn. Camaridium caucanum/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
function SkillTreeCore() {
this._totalsp = 0;
this._currentlevel = 0;
this._investedsp = 0;
this._spleft = 0;
this._selectedclassindex = 0;
this._selectedclass = null;
this.slotassign = new SlotGrid(this);
let maxValue = ClassIndex.Base;
for (var className in ClassIndex) {
if (ClassIndex[className] > maxValue) {
maxValue = ClassIndex[className];
}
}
this.AvailableClassIndex = maxValue;
}
SkillTreeCore.prototype.GetTotalSP = function () {
return this._totalsp;
}
SkillTreeCore.prototype.GetCurrentLevel = function () {
return this._currentlevel;
}
SkillTreeCore.prototype.GetInvestedSP = function () {
return this._investedsp;
}
SkillTreeCore.prototype.GetSPLeft = function () {
return this._spleft;
}
SkillTreeCore.prototype.GetAvailableClassIndex = function () {
return this.AvailableClassIndex;
}
SkillTreeCore.prototype.SetLevel = function (_level) {
if (isNaN(_level)) {
return;
}
let classData = this.GetSelectedClass(),
classReqLevel = classData.RequiredLevel || 0;
if (_level >= classReqLevel) {
this.setlevelcore(_level);
return true;
} else {
shownotify(window.SkillTreeData.Localization.Notify.ClassRequireCharacterLevel.fformat(classReqLevel), 'info');
}
return false;
}
SkillTreeCore.prototype.setlevelcore = function (_level) {
this._currentlevel = Math.min(_level, window.appdata.maxCharacterLevel);
this._totalsp = this.inner_gettotalsp(this._currentlevel);
this.UpdateAllSPs();
}
SkillTreeCore.prototype.SetLevelFromElement = function () {
this.SetLevel(parseInt($("#selectLevelBox").val()));
}
SkillTreeCore.prototype.UpdateSP = function () {
this._spleft = this._totalsp - this._investedsp;
let domRemainingSP = $("#e_remainingSP");
if (this._spleft < 5)
domRemainingSP.addClass("alertlow");
else
domRemainingSP.removeClass("alertlow");
$("#e_investedSP").text(window.SkillTreeData.Localization.SkillTree.InvestedSP + ": " + this._investedsp + "/" + this._totalsp);
domRemainingSP.text(window.SkillTreeData.Localization.SkillTree.RemainingSP + ": " + this._spleft + "/" + this._totalsp);
$("#spusageinfo").html(this.GenerateUsageInfo());
}
SkillTreeCore.prototype.UpdateAllSPs = function () {
$("#e_investedSP").text(window.SkillTreeData.Localization.SkillTree.InvestedSP + ": " + this._investedsp + "/" + this._totalsp);
this._spleft = this._totalsp - this._investedsp;
let domRemainingSP = $("#e_remainingSP");
domRemainingSP.text(window.SkillTreeData.Localization.SkillTree.RemainingSP + ": " + this._spleft + "/" + this._totalsp);
if (this.CheckAllSkills()) {
if (this._spleft < 5)
domRemainingSP.addClass("alertlow");
else
domRemainingSP.removeClass("alertlow");
}
// Foward event here
$("#spusageinfo").html(this.GenerateUsageInfo());
}
SkillTreeCore.prototype.UnlearnAllSkills = function () {
for (var skillid in this.SkillList)
this.SkillList[skillid].UnlearnSkill();
}
SkillTreeCore.prototype.CheckAllSkills = function () {
if (this._totalsp < this._investedsp) {
if (this.SkillList) {
for (var skillid in this.SkillList)
this.SkillList[skillid].UnlearnSkill();
}
return false;
}
if (!this.SkillList) return false;
var sk, skinfo;
for (var skillid in this.SkillList) {
sk = this.SkillList[skillid];
if (sk.GetAvailableLevel() > this._currentlevel) {
sk.UnlearnSkill();
} else {
if (sk.GetCurrentSkillLevel() < sk.GetDefaultLevel())
sk.UnlearnSkill();
skinfo = sk.GetCurrentLevelInfo();
if (skinfo.RequiredLevel > this._currentlevel)
sk.UnlearnSkill();
}
}
return true;
}
SkillTreeCore.prototype.inner_gettotalsp = function (_level) {
var tsp = 0;
for (var i = 1; i <= _level; i++) {
tsp += this.inner_gettotalspex(i);
}
return tsp;
}
SkillTreeCore.prototype.inner_gettotalspex = function (a) {
if (window.hasOwnProperty("SkillTreeData") && window.SkillTreeData.hasOwnProperty("SkillPointTable")) {
let sptable = window.SkillTreeData.SkillPointTable;
if (sptable.hasOwnProperty("Special") && sptable.Special.hasOwnProperty(a)) {
return sptable.Special[a];
}
if (typeof (sptable.DefaultSP) === "number") {
return sptable.DefaultSP;
} else {
return 2;
}
}
// Fallback code, actually if you don't mess anything up badly, this won't be used
switch (a) {
case 0:
case 1:
case 2:
case 3:
return 0;
case 4:
case 6:
case 7:
case 8:
case 9:
case 61:
case 62:
case 63:
case 64:
return 1;
case 5:
case 65:
return 3;
case 10:
case 15:
case 25:
case 30:
case 35:
case 45:
case 50:
case 55:
case 60:
return 5;
case 20:
case 40:
return 10;
default:
return 2;
}
};
SkillTreeCore.prototype.GenerateLink = function (showSkillAssignment) {
var arrayString = new URLSearchParams();
if (this._currentlevel !== window.appdata.maxCharacterLevel)
arrayString.append("lv", this._currentlevel);
for (var skillid in this.SkillList) {
var levelasd = (this.SkillList[skillid].GetCurrentSkillLevel());
if (levelasd != (this.SkillList[skillid].GetDefaultLevel())) {
if (this.SkillList[skillid].ShortID) {
arrayString.append(this.SkillList[skillid].ShortID, levelasd);
} else {
arrayString.append(skillid, levelasd);
}
}
}
var link = new URL(window.location.href),
assignstring = this.slotassign.GenerateAssignment();
if (assignstring)
arrayString.append("s", assignstring);
if (this.slotassign.effect2nd !== "2_1")
arrayString.append("b1", this.slotassign.effect2nd);
if (this.slotassign.effect3rd !== "3_1")
arrayString.append("b2", this.slotassign.effect3rd);
if (showSkillAssignment === true)
arrayString.append("sa", 1);
var selectedclassindex = this.GetSelectedClassIndex();
if (selectedclassindex !== this.GetAvailableClassIndex())
arrayString.append("c", selectedclassindex);
if (!arrayString.keys().next().done) {
link.search = ("?" + arrayString.toString());
}
return link.href;
}
SkillTreeCore.prototype.GenerateUsageInfo = function () {
var arrayString = {};
var parent_target, usedsp_target;
for (var skillid in this.SkillList)
if (this.SkillList.hasOwnProperty(skillid)) {
var levelasd = this.SkillList[skillid].GetCurrentSkillLevel();
if (levelasd != this.SkillList[skillid].GetDefaultLevel()) {
usedsp_target = this.SkillList[skillid].GetSPUsed();
parent_target = this.SkillList[skillid].GetParent();
if (usedsp_target != 0)
if (!parent_target) {
arrayString[skillid] = this.SkillList[skillid].GetName() + ": " + usedsp_target + "SP";
} else {
arrayString[parent_target.GetID()] += " + " + usedsp_target + "SP";
}
}
}
var result = "",
firstappend = true;
if (Object.keys(arrayString).length > 0)
for (var skillid in arrayString)
if (arrayString.hasOwnProperty(skillid)) {
if (firstappend) {
result += arrayString[skillid];
firstappend = false;
} else
result += ("<br>" + arrayString[skillid]);
}
return result;
}
SkillTreeCore.prototype.SetSelectedClass = function (classIndex) {
let result = this.IsSelectiveClass(classIndex);
if (result)
this.setclasscore(classIndex);
return result;
}
SkillTreeCore.prototype.IsSelectiveClass = function (classIndex) {
if (classIndex === 0) return true;
if (classIndex > this.AvailableClassIndex) return false;
if (this._jsondata.hasOwnProperty("AvailableClass")) {
if (this._jsondata.AvailableClass.hasOwnProperty(classIndex)) {
let classReqLevel = this._jsondata.AvailableClass[classIndex].RequiredLevel;
if (!classReqLevel) {
return true;
}
if (this._currentlevel >= classReqLevel) {
return true;
}
}
}
return false;
}
SkillTreeCore.prototype.setclasscore = function (classIndex) {
this._selectedclassindex = classIndex;
this._selectedclass = this._jsondata.AvailableClass[classIndex];
}
SkillTreeCore.prototype.SetCharacterInfo = function (_level, classIndex) {
if (isNaN(_level) || isNaN(classIndex)) return;
if (classIndex > this.AvailableClassIndex) return false;
if (this._jsondata.hasOwnProperty("AvailableClass")) {
if (this._jsondata.AvailableClass.hasOwnProperty(classIndex)) {
let classData = this._jsondata.AvailableClass[classIndex],
classReqLevel = classData.RequiredLevel;
if (!classReqLevel) classReqLevel = 0;
if (_level >= classReqLevel) {
this.setclasscore(classIndex);
this.setlevelcore(_level);
return true;
} else {
shownotify(window.SkillTreeData.Localization.Notify.ClassRequireCharacterLevel.fformat(classReqLevel), 'info');
}
}
}
return false;
}
SkillTreeCore.prototype.GetClass = function (classIndex) {
if (isNaN(classIndex)) return null;
return this._jsondata.AvailableClass[classIndex];
}
SkillTreeCore.prototype.GetClasses = function () {
return this._jsondata.AvailableClass;
}
SkillTreeCore.prototype.GetSelectedClassIndex = function () {
return this._selectedclassindex;
}
SkillTreeCore.prototype.GetSelectedClass = function () {
return this._selectedclass;
}
SkillTreeCore.prototype.SetJSON = function (jsonData) {
this._jsondata = jsonData;
}
SkillTreeCore.prototype.GetJSON = function () {
return this._jsondata;
}
SkillTreeCore.prototype.ResetSlotAssignment = function () {
this.slotassign.ResetToEmpty();
}
SkillTreeCore.prototype.SetSkillAssignment = function (columnIndex, rowIndex, skillinfo) {
this.slotassign.SetGridValue(columnIndex, rowIndex, skillinfo);
}
SkillTreeCore.prototype.GetSkillAssignmentRender = function () {
return this.slotassign.GetRender();
}
SkillTreeCore.prototype.ReadAssignment = function () {
this.slotassign.ReadAssignment();
}
SkillTreeCore.prototype.GetSkill = function (id) {
return this.SkillList[id];
}
SkillTreeCore.prototype.GetSkillByShortID = function (shortID) {
for (var ssk in this.SkillList)
if (this.SkillList.hasOwnProperty(ssk)) {
if (this.SkillList[ssk].ShortID && (this.SkillList[ssk].ShortID == shortID))
return this.SkillList[ssk];
};
return null;
}
SkillTreeCore.prototype.ReadTree = function (loadingCallback, loadedCallback) {
this.SkillList = {};
this.ActiveSkillList = {};
this.PassiveSkillList = {};
this.SkillCount = 0;
this.loadedSkillCount = 0;
let myself = this;
$.ajax({
cache: false,
url: "skilltreeinfo.json",
dataType: "json",
success: function (json) {
myself.SetJSON(json);
if (json.MaxLevel && !isNaN(json.MaxLevel)) {
Object.defineProperty(myself, "maxCharacterLevel", {
value: json.MaxLevel,
writable: false,
configurable: false
});
} else {
Object.defineProperty(myself, "maxCharacterLevel", {
value: window.appdata.maxCharacterLevel,
writable: false,
configurable: false
});
}
//Get the highest class index
if (json.hasOwnProperty("AvailableClass")) {
let highestClassIndex = 0;
for (let classindex in json.AvailableClass) {
if (json.AvailableClass.hasOwnProperty(classindex) && (classindex > highestClassIndex))
highestClassIndex = classindex;
}
myself.AvailableClassIndex = highestClassIndex;
}
if (json.CharacterName)
$("#charName").text(json.CharacterName);
else
$("#charName").text(GetCurrentFolderUrl());
if (json.CharacterWikiURL) {
if (json.CharacterName) {
$("#morecharacterinfo").attr("href", json.CharacterWikiURL).attr("target", "_blank").text(window.SkillTreeData.Localization.SkillTree.MenuItem_MoreInfoAboutCharacter.fformat(json.CharacterName));
} else {
$("#morecharacterinfo").attr("href", json.CharacterWikiURL).attr("target", "_blank").text(window.SkillTreeData.Localization.SkillTree.MenuItem_MoreInfoAboutCharacter.fformat(GetCurrentFolderUrl()));
}
} else
$("#morecharacterinfo").remove();
//$("li#charName").append($("<a>").attr("href", json.CharacterWikiURL).attr("target", "_blank").text(json.CharacterName));
if (json.CharacterName) {
window.document.title = window.SkillTreeData.Localization.General.WindowTitleWithCharacter.fformat(json.CharacterName);
}
for (let ssk in json.Skills)
if (json.Skills.hasOwnProperty(ssk)) {
myself.SkillList[ssk] = new SkillInfo(myself, ssk, json.Skills[ssk]["Name"], json.Skills[ssk]);
if (myself.SkillList[ssk].IsPassive())
myself.PassiveSkillList[ssk] = myself.SkillList[ssk];
else
myself.ActiveSkillList[ssk] = myself.SkillList[ssk];
};
myself.SkillCount = Object.keys(myself.SkillList).length;
if (typeof (loadingCallback) === "function")
loadingCallback.call(myself, json);
if (typeof (loadedCallback) === "function")
loadedCallback.call(myself, true, null, null);
//myself.RenderTree(loadedCallback);
},
error: function (xhr, textStatus, errorThrown) {
if (typeof (loadedCallback) === "function")
loadedCallback(false, textStatus, errorThrown);
}
});
}
SkillTreeCore.prototype.RenderTree = function (loadedCallback, forceCreate) {
var eTree = $("li#activeskill");
if (eTree) {
var activeRow = $("<ul>").addClass("tableactiveskill");
eTree.empty();
var activeCount = 0;
for (var sl in this.ActiveSkillList) {
if (this.ActiveSkillList.hasOwnProperty(sl)) {
if (this.ActiveSkillList[sl].IsVisible() && this.ActiveSkillList[sl].IsClassAvailable(this._selectedclassindex)) {
var spanvalue = this.ActiveSkillList[sl].GetRowSpan(this._selectedclassindex);
if (spanvalue > 1) {
activeCount += spanvalue;
} else
activeCount++;
activeRow.append($("<li>").addClass("tablelike").append(this.ActiveSkillList[sl].GetSkillPanel(false, forceCreate)));
if (activeCount >= 3) {
if (activeRow)
eTree.append(activeRow);
activeRow = $("<ul>").addClass("tableactiveskill");
activeCount = 0;
}
}
}
}
if (activeCount > 0)
if (activeRow)
eTree.append(activeRow);
}
eTree = $("li#passiveskill");
if (eTree) {
var passiveRow = $("<ul>").addClass("tablepassiveskill");
eTree.empty();
var passiveCount = 0;
for (var sl in this.PassiveSkillList) {
if (this.PassiveSkillList.hasOwnProperty(sl)) {
if (this.PassiveSkillList[sl].IsVisible() && this.PassiveSkillList[sl].IsClassAvailable(this._selectedclassindex)) {
var spanvalue = this.PassiveSkillList[sl].GetRowSpan(this._selectedclassindex);
if (spanvalue > 1) {
passiveCount += spanvalue;
} else
passiveCount++;
passiveRow.append($("<li>").addClass("tablelike").addClass("passiveskilltree").append(this.PassiveSkillList[sl].GetSkillPanel(false, forceCreate)));
if (passiveCount >= 2) {
if (passiveRow)
eTree.append(passiveRow);
passiveRow = $("<ul>").addClass("tablepassiveskill");
passiveCount = 0;
}
}
}
}
if (passiveCount > 0)
if (passiveRow)
eTree.append(passiveRow);
}
if (typeof loadedCallback === "function") {
$("#skilltree").imagesLoaded().always(function () {
loadedCallback(true);
});
}
}
SkillTreeCore.prototype.InvestedSPIncrease = function (sp) {
this._investedsp += sp;
this.UpdateSP();
}
SkillTreeCore.prototype.InvestedSPDecrease = function (sp) {
this._investedsp -= sp;
this.UpdateSP();
} | {
"content_hash": "1e1e7a4159ed6cdcc158f7ea8af52a2e",
"timestamp": "",
"source": "github",
"line_count": 505,
"max_line_length": 218,
"avg_line_length": 35.38217821782178,
"alnum_prop": 0.590329079919409,
"repo_name": "Leayal/swskillsimu",
"id": "14393df3a927062e08cb4999e69f1bb9e0aa1339",
"size": "17868",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/assets/js/skilltree.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "366"
}
],
"symlink_target": ""
} |
package org.xdty.imageviewer2.view;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.Rect;
import android.graphics.drawable.Animatable;
import android.util.AttributeSet;
import android.view.animation.AnimationUtils;
import android.view.animation.Interpolator;
import android.widget.FrameLayout;
import org.xdty.imageviewer2.R;
import org.xdty.imageviewer2.utils.Utils;
public class OutlineContainer extends FrameLayout implements Animatable {
private Paint mOutlinePaint;
private boolean mIsRunning = false;
private long mStartTime;
private float mAlpha = 1.0f;
private static final long ANIMATION_DURATION = 500;
private static final long FRAME_DURATION = 1000 / 60;
private final Interpolator mInterpolator = new Interpolator() {
public float getInterpolation(float t) {
t -= 1.0f;
return t * t * t + 1.0f;
}
};
public OutlineContainer(Context context) {
super(context);
init();
}
public OutlineContainer(Context context, AttributeSet attrs) {
super(context, attrs);
init();
}
public OutlineContainer(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
init();
}
private void init() {
mOutlinePaint = new Paint();
mOutlinePaint.setAntiAlias(true);
mOutlinePaint.setStrokeWidth(Utils.dpToPx(getResources(), 2));
mOutlinePaint.setColor(getResources().getColor(R.color.holo_blue));
mOutlinePaint.setStyle(Style.STROKE);
int padding = Utils.dpToPx(getResources(), 10);
setPadding(padding, padding, padding, padding);
}
@Override
protected void dispatchDraw(Canvas canvas) {
super.dispatchDraw(canvas);
int offset = Utils.dpToPx(getResources(), 5);
if (mOutlinePaint.getColor() != JazzyViewPager.sOutlineColor) {
mOutlinePaint.setColor(JazzyViewPager.sOutlineColor);
}
mOutlinePaint.setAlpha((int)(mAlpha * 255));
Rect rect = new Rect(offset, offset, getMeasuredWidth()-offset, getMeasuredHeight()-offset);
canvas.drawRect(rect, mOutlinePaint);
}
public void setOutlineAlpha(float alpha) {
mAlpha = alpha;
}
@Override
public boolean isRunning() {
return mIsRunning;
}
@Override
public void start() {
if (mIsRunning)
return;
mIsRunning = true;
mStartTime = AnimationUtils.currentAnimationTimeMillis();
post(mUpdater);
}
@Override
public void stop() {
if (!mIsRunning)
return;
mIsRunning = false;
}
private final Runnable mUpdater = new Runnable() {
@Override
public void run() {
long now = AnimationUtils.currentAnimationTimeMillis();
long duration = now - mStartTime;
if (duration >= ANIMATION_DURATION) {
mAlpha = 0.0f;
invalidate();
stop();
return;
} else {
mAlpha = mInterpolator.getInterpolation(1 - duration / (float) ANIMATION_DURATION);
invalidate();
}
postDelayed(mUpdater, FRAME_DURATION);
}
};
}
| {
"content_hash": "3a8592538a87c791c34c03f65e0bad5e",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 96,
"avg_line_length": 27.366071428571427,
"alnum_prop": 0.698858075040783,
"repo_name": "xdtianyu/ImageViewer",
"id": "b9fb49778e1b0d2a1713d9deb93f120a4d2056d9",
"size": "3065",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/src/main/java/org/xdty/imageviewer2/view/OutlineContainer.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "HTML",
"bytes": "8270"
},
{
"name": "Java",
"bytes": "476015"
}
],
"symlink_target": ""
} |
.class public final enum Landroid/security/KeyStore$State;
.super Ljava/lang/Enum;
.source "KeyStore.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/security/KeyStore;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "State"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum",
"<",
"Landroid/security/KeyStore$State;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Landroid/security/KeyStore$State;
.field public static final enum LOCKED:Landroid/security/KeyStore$State;
.field public static final enum UNINITIALIZED:Landroid/security/KeyStore$State;
.field public static final enum UNLOCKED:Landroid/security/KeyStore$State;
# direct methods
.method static constructor <clinit>()V
.locals 5
.prologue
const/4 v4, 0x2
const/4 v3, 0x1
const/4 v2, 0x0
.line 49
new-instance v0, Landroid/security/KeyStore$State;
const-string v1, "UNLOCKED"
invoke-direct {v0, v1, v2}, Landroid/security/KeyStore$State;-><init>(Ljava/lang/String;I)V
sput-object v0, Landroid/security/KeyStore$State;->UNLOCKED:Landroid/security/KeyStore$State;
new-instance v0, Landroid/security/KeyStore$State;
const-string v1, "LOCKED"
invoke-direct {v0, v1, v3}, Landroid/security/KeyStore$State;-><init>(Ljava/lang/String;I)V
sput-object v0, Landroid/security/KeyStore$State;->LOCKED:Landroid/security/KeyStore$State;
new-instance v0, Landroid/security/KeyStore$State;
const-string v1, "UNINITIALIZED"
invoke-direct {v0, v1, v4}, Landroid/security/KeyStore$State;-><init>(Ljava/lang/String;I)V
sput-object v0, Landroid/security/KeyStore$State;->UNINITIALIZED:Landroid/security/KeyStore$State;
const/4 v0, 0x3
new-array v0, v0, [Landroid/security/KeyStore$State;
sget-object v1, Landroid/security/KeyStore$State;->UNLOCKED:Landroid/security/KeyStore$State;
aput-object v1, v0, v2
sget-object v1, Landroid/security/KeyStore$State;->LOCKED:Landroid/security/KeyStore$State;
aput-object v1, v0, v3
sget-object v1, Landroid/security/KeyStore$State;->UNINITIALIZED:Landroid/security/KeyStore$State;
aput-object v1, v0, v4
sput-object v0, Landroid/security/KeyStore$State;->$VALUES:[Landroid/security/KeyStore$State;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.parameter
.parameter
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.prologue
.line 49
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Landroid/security/KeyStore$State;
.locals 1
.parameter "name"
.prologue
.line 49
const-class v0, Landroid/security/KeyStore$State;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object v0
check-cast v0, Landroid/security/KeyStore$State;
return-object v0
.end method
.method public static values()[Landroid/security/KeyStore$State;
.locals 1
.prologue
.line 49
sget-object v0, Landroid/security/KeyStore$State;->$VALUES:[Landroid/security/KeyStore$State;
invoke-virtual {v0}, [Landroid/security/KeyStore$State;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Landroid/security/KeyStore$State;
return-object v0
.end method
| {
"content_hash": "f303b3618bab310510fa6b5c83e876a8",
"timestamp": "",
"source": "github",
"line_count": 141,
"max_line_length": 106,
"avg_line_length": 25.98581560283688,
"alnum_prop": 0.7139737991266376,
"repo_name": "baidurom/devices-onex",
"id": "7f5b14b11baaa00d96d913387c81e4079b26fc5c",
"size": "3664",
"binary": false,
"copies": "2",
"ref": "refs/heads/coron-4.0",
"path": "framework.jar.out/smali/android/security/KeyStore$State.smali",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
class Astute::DeploymentEngine::GranularDeployment < Astute::DeploymentEngine
NAILGUN_STATUS = ['ready', 'error', 'deploying']
def deploy_piece(nodes, retries=1)
report_ready_for_nodes_without_tasks(nodes)
nodes = filter_nodes_with_tasks(nodes)
return false unless validate_nodes(nodes)
@ctx.reporter.report(nodes_status(nodes, 'deploying', {'progress' => 0}))
log_preparation(nodes)
Astute.logger.info "#{@ctx.task_id}: Starting deployment"
@running_tasks = {}
@nodes_roles = nodes.inject({}) { |h, n| h.merge({n['uid'] => n['role']}) }
@nodes_by_uid = nodes.inject({}) { |h, n| h.merge({ n['uid'] => n }) }
@puppet_debug = nodes.first.fetch('puppet_debug', true)
begin
@task_manager = Astute::TaskManager.new(nodes)
@hook_context = Astute::Context.new(
@ctx.task_id,
HookReporter.new,
Astute::LogParser::NoParsing.new
)
deploy_nodes(nodes)
rescue => e
# We should fail all nodes in case of post deployment
# process. In other case they will not sending back
# for redeploy
report_nodes = nodes.uniq{ |n| n['uid'] }.map do |node|
{ 'uid' => node['uid'],
'status' => 'error',
'role' => node['role'],
'error_type' => 'deploy'
}
end
@ctx.report_and_update_status('nodes' => report_nodes)
raise e
end
Astute.logger.info "#{@ctx.task_id}: Finished deployment of nodes" \
" => roles: #{@nodes_roles.pretty_inspect}"
end
def puppet_task(node_id, task)
# Use fake reporter because of logic. We need to handle report here
Astute::PuppetTask.new(
@hook_context,
@nodes_by_uid[node_id], # Use single node uid instead of task['uids']
retries=task['parameters']['retries'] || Astute.config.puppet_retries,
task['parameters']['puppet_manifest'],
task['parameters']['puppet_modules'],
task['parameters']['cwd'],
task['parameters']['timeout'],
@puppet_debug
)
end
def run_task(node_id, task)
Astute.logger.info "#{@ctx.task_id}: run task '#{task.to_yaml}' on node #{node_id}"
@running_tasks[node_id] = puppet_task(node_id, task)
@running_tasks[node_id].run
end
def check_status(node_id)
status = @running_tasks[node_id].status
if NAILGUN_STATUS.include? status
status
else
raise "Internal error. Unknown status '#{status}'"
end
end
def deploy_nodes(nodes)
@task_manager.node_uids.each { |n| task = @task_manager.next_task(n) and run_task(n, task) }
while @task_manager.task_in_queue?
nodes_to_report = []
sleep Astute.config.puppet_deploy_interval
@task_manager.node_uids.each do |node_id|
if task = @task_manager.current_task(node_id)
case status = check_status(node_id)
when 'ready'
Astute.logger.info "Task '#{task}' on node uid=#{node_id} ended successfully"
new_task = @task_manager.next_task(node_id)
if new_task
run_task(node_id, new_task)
else
nodes_to_report << process_success_node(node_id, task)
end
when 'deploying'
progress_report = process_running_node(node_id, task, nodes)
nodes_to_report << progress_report if progress_report
when 'error'
Astute.logger.error "Task '#{task}' failed on node #{node_id}"
nodes_to_report << process_fail_node(node_id, task)
else
raise "Internal error. Known status '#{status}', but handler not provided"
end
else
Astute.logger.debug "No more tasks provided for node #{node_id}"
end
end
@ctx.report_and_update_status('nodes' => nodes_to_report) if nodes_to_report.present?
break unless @task_manager.task_in_queue?
end
end
def process_success_node(node_id, task)
Astute.logger.info "No more tasks provided for node #{node_id}. All node " \
"tasks completed successfully"
{
"uid" => node_id,
'status' => 'ready',
'role' => @nodes_roles[node_id],
"progress" => 100,
'task' => task
}
end
def process_fail_node(node_id, task)
Astute.logger.error "No more tasks will be executed on the node #{node_id}"
@task_manager.delete_node(node_id)
{
'uid' => node_id,
'status' => 'error',
'error_type' => 'deploy',
'role' => @nodes_roles[node_id],
'task' => task
}
end
def process_running_node(node_id, task, nodes)
Astute.logger.debug "Task '#{task}' on node uid=#{node_id} deploying"
begin
# Pass nodes because logs calculation needs IP address of node, not just uid
nodes_progress = @ctx.deploy_log_parser.progress_calculate(Array(node_id), nodes)
if nodes_progress.present?
nodes_progress.map! { |x| x.merge!(
'status' => 'deploying',
'role' => @nodes_roles[x['uid']],
'task' => task
) }
nodes_progress.first
else
nil
end
rescue => e
Astute.logger.warn "Some error occurred when parse logs for nodes progress: #{e.message}, "\
"trace: #{e.format_backtrace}"
nil
end
end
def log_preparation(nodes)
@ctx.deploy_log_parser.prepare(nodes)
rescue => e
Astute.logger.warn "Some error occurred when prepare LogParser: " \
"#{e.message}, trace: #{e.format_backtrace}"
end
# If node doesn't have tasks, it means that node
# is ready, because it doesn't require deployment
def report_ready_for_nodes_without_tasks(nodes)
nodes_without_tasks = filter_nodes_without_tasks(nodes)
@ctx.reporter.report(nodes_status(nodes_without_tasks, 'ready', {'progress' => 100}))
end
def filter_nodes_with_tasks(nodes)
nodes.select { |n| node_with_tasks?(n) }
end
def filter_nodes_without_tasks(nodes)
nodes.select { |n| !node_with_tasks?(n) }
end
def node_with_tasks?(node)
node['tasks'].present?
end
# Pre/post hooks
def pre_deployment_actions(deployment_info, pre_deployment)
Astute::GranularPreDeploymentActions.new(deployment_info, @ctx).process
Astute::NailgunHooks.new(pre_deployment, @ctx).process
end
def pre_node_actions(part)
@action ||= Astute::GranularPreNodeActions.new(@ctx)
@action.process(part)
end
def pre_deploy_actions(part)
Astute::GranularPreDeployActions.new(part, @ctx).process
end
def post_deploy_actions(part)
Astute::GranularPostDeployActions.new(part, @ctx).process
end
def post_deployment_actions(deployment_info, post_deployment)
begin
Astute::NailgunHooks.new(post_deployment, @ctx).process
rescue => e
# We should fail all nodes in case of post deployment
# process. In other case they will not sending back
# for redeploy
nodes = deployment_info.uniq {|n| n['uid']}.map do |node|
{ 'uid' => node['uid'],
'status' => 'error',
'role' => 'hook',
'error_type' => 'deploy',
}
end
@ctx.report_and_update_status('nodes' => nodes)
raise e
end
end
class HookReporter
def report(msg)
Astute.logger.debug msg
end
end
end
| {
"content_hash": "283b985b13a5a0a3ab1816cb5fd7431e",
"timestamp": "",
"source": "github",
"line_count": 230,
"max_line_length": 98,
"avg_line_length": 31.55217391304348,
"alnum_prop": 0.6118230673832162,
"repo_name": "eayunstack/fuel-astute",
"id": "bf2bfdcaaab6575477e2517c02406acb0fcc9dbc",
"size": "7867",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/astute/deployment_engine/granular_deployment.rb",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Groff",
"bytes": "298515"
},
{
"name": "Ruby",
"bytes": "869285"
},
{
"name": "Shell",
"bytes": "830"
}
],
"symlink_target": ""
} |
package org.apache.flink.runtime.jobmaster.slotpool;
import org.apache.flink.annotation.VisibleForTesting;
import org.apache.flink.runtime.clusterframework.types.AllocationID;
import org.apache.flink.runtime.concurrent.FutureUtils;
import org.apache.flink.runtime.jobmanager.scheduler.Locality;
import org.apache.flink.runtime.jobmanager.slots.TaskManagerGateway;
import org.apache.flink.runtime.jobmaster.LogicalSlot;
import org.apache.flink.runtime.jobmaster.SlotContext;
import org.apache.flink.runtime.jobmaster.SlotOwner;
import org.apache.flink.runtime.jobmaster.SlotRequestId;
import org.apache.flink.runtime.taskmanager.TaskManagerLocation;
import org.apache.flink.util.Preconditions;
import javax.annotation.Nullable;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;
/** Implementation of the {@link LogicalSlot} which is used by the {@link SlotPoolImpl}. */
public class SingleLogicalSlot implements LogicalSlot, PhysicalSlot.Payload {
private static final AtomicReferenceFieldUpdater<SingleLogicalSlot, Payload> PAYLOAD_UPDATER =
AtomicReferenceFieldUpdater.newUpdater(
SingleLogicalSlot.class, Payload.class, "payload");
private static final AtomicReferenceFieldUpdater<SingleLogicalSlot, State> STATE_UPDATER =
AtomicReferenceFieldUpdater.newUpdater(SingleLogicalSlot.class, State.class, "state");
private final SlotRequestId slotRequestId;
private final SlotContext slotContext;
// locality of this slot wrt the requested preferred locations
private final Locality locality;
// owner of this slot to which it is returned upon release
private final SlotOwner slotOwner;
private final CompletableFuture<Void> releaseFuture;
private volatile State state;
// LogicalSlot.Payload of this slot
private volatile Payload payload;
/** Whether this logical slot will be occupied indefinitely. */
private boolean willBeOccupiedIndefinitely;
@VisibleForTesting
public SingleLogicalSlot(
SlotRequestId slotRequestId,
SlotContext slotContext,
Locality locality,
SlotOwner slotOwner) {
this(slotRequestId, slotContext, locality, slotOwner, true);
}
public SingleLogicalSlot(
SlotRequestId slotRequestId,
SlotContext slotContext,
Locality locality,
SlotOwner slotOwner,
boolean willBeOccupiedIndefinitely) {
this.slotRequestId = Preconditions.checkNotNull(slotRequestId);
this.slotContext = Preconditions.checkNotNull(slotContext);
this.locality = Preconditions.checkNotNull(locality);
this.slotOwner = Preconditions.checkNotNull(slotOwner);
this.willBeOccupiedIndefinitely = willBeOccupiedIndefinitely;
this.releaseFuture = new CompletableFuture<>();
this.state = State.ALIVE;
this.payload = null;
}
@Override
public TaskManagerLocation getTaskManagerLocation() {
return slotContext.getTaskManagerLocation();
}
@Override
public TaskManagerGateway getTaskManagerGateway() {
return slotContext.getTaskManagerGateway();
}
@Override
public Locality getLocality() {
return locality;
}
@Override
public boolean isAlive() {
return state == State.ALIVE;
}
@Override
public boolean tryAssignPayload(Payload payload) {
return PAYLOAD_UPDATER.compareAndSet(this, null, payload);
}
@Nullable
@Override
public Payload getPayload() {
return payload;
}
@Override
public CompletableFuture<?> releaseSlot(@Nullable Throwable cause) {
if (STATE_UPDATER.compareAndSet(this, State.ALIVE, State.RELEASING)) {
signalPayloadRelease(cause);
returnSlotToOwner(payload.getTerminalStateFuture());
}
return releaseFuture;
}
@Override
public AllocationID getAllocationId() {
return slotContext.getAllocationId();
}
@Override
public SlotRequestId getSlotRequestId() {
return slotRequestId;
}
public static SingleLogicalSlot allocateFromPhysicalSlot(
final SlotRequestId slotRequestId,
final PhysicalSlot physicalSlot,
final Locality locality,
final SlotOwner slotOwner,
final boolean slotWillBeOccupiedIndefinitely) {
final SingleLogicalSlot singleTaskSlot =
new SingleLogicalSlot(
slotRequestId,
physicalSlot,
locality,
slotOwner,
slotWillBeOccupiedIndefinitely);
if (physicalSlot.tryAssignPayload(singleTaskSlot)) {
return singleTaskSlot;
} else {
throw new IllegalStateException(
"BUG: Unexpected physical slot payload assignment failure!");
}
}
// -------------------------------------------------------------------------
// AllocatedSlot.Payload implementation
// -------------------------------------------------------------------------
/**
* A release of the payload by the {@link AllocatedSlot} triggers a release of the payload of
* the logical slot.
*
* @param cause of the payload release
*/
@Override
public void release(Throwable cause) {
if (STATE_UPDATER.compareAndSet(this, State.ALIVE, State.RELEASING)) {
signalPayloadRelease(cause);
}
markReleased();
releaseFuture.complete(null);
}
@Override
public boolean willOccupySlotIndefinitely() {
return willBeOccupiedIndefinitely;
}
private void signalPayloadRelease(Throwable cause) {
tryAssignPayload(TERMINATED_PAYLOAD);
payload.fail(cause);
}
private void returnSlotToOwner(CompletableFuture<?> terminalStateFuture) {
FutureUtils.assertNoException(
terminalStateFuture.thenRun(
() -> {
if (state == State.RELEASING) {
slotOwner.returnLogicalSlot(this);
}
markReleased();
releaseFuture.complete(null);
}));
}
private void markReleased() {
state = State.RELEASED;
}
// -------------------------------------------------------------------------
// Internal classes
// -------------------------------------------------------------------------
enum State {
ALIVE,
RELEASING,
RELEASED
}
}
| {
"content_hash": "7a0b52745d492ea3e2f57a135a1e6c06",
"timestamp": "",
"source": "github",
"line_count": 209,
"max_line_length": 98,
"avg_line_length": 32.301435406698566,
"alnum_prop": 0.6320545104428974,
"repo_name": "rmetzger/flink",
"id": "21e14f91a24bad6780172bfa5ab85a90abfa1adc",
"size": "7556",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/slotpool/SingleLogicalSlot.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "1863"
},
{
"name": "C",
"bytes": "847"
},
{
"name": "Clojure",
"bytes": "93543"
},
{
"name": "Dockerfile",
"bytes": "6926"
},
{
"name": "FreeMarker",
"bytes": "82636"
},
{
"name": "GAP",
"bytes": "139514"
},
{
"name": "HTML",
"bytes": "135607"
},
{
"name": "HiveQL",
"bytes": "71445"
},
{
"name": "Java",
"bytes": "83684824"
},
{
"name": "JavaScript",
"bytes": "1829"
},
{
"name": "Less",
"bytes": "65918"
},
{
"name": "Makefile",
"bytes": "5134"
},
{
"name": "Python",
"bytes": "2468561"
},
{
"name": "Scala",
"bytes": "15030324"
},
{
"name": "Shell",
"bytes": "540331"
},
{
"name": "TypeScript",
"bytes": "288463"
},
{
"name": "q",
"bytes": "7939"
}
],
"symlink_target": ""
} |
module Apiman {
export var EditRoleController = _module.controller("Apiman.EditRoleController",
['$q', '$scope', '$location', 'ApimanSvcs', 'PageLifecycle', 'Logger', 'Dialogs', '$routeParams',
($q, $scope, $location, ApimanSvcs, PageLifecycle, Logger, Dialogs, $routeParams) => {
var params = $routeParams;
var allPermissions = ['orgView', 'orgEdit', 'orgAdmin',
'planView','planEdit','planAdmin',
'svcView', 'svcEdit', 'svcAdmin',
'appView', 'appEdit', 'appAdmin'];
$scope.isValid = true;
$scope.rolePermissions = {};
angular.forEach(allPermissions, function(value) {
$scope.rolePermissions[value] = false;
});
var validate = function() {
var atLeastOne = false;
angular.forEach($scope.rolePermissions, function(value,key) {
if (value == true) {
atLeastOne = true;
}
});
return atLeastOne;
};
$scope.$watch('rolePermissions', function(newValue) {
$scope.isValid = validate();
}, true);
var pageData = {
role: $q(function(resolve, reject) {
ApimanSvcs.get({ entityType: 'roles', secondaryType: params.role }, function(role) {
angular.forEach(role.permissions, function(name) {
$scope.rolePermissions[name] = true;
});
resolve(role);
}, reject);
})
};
$scope.updateRole = function() {
$scope.updateButton.state = 'in-progress';
var permissions = [];
angular.forEach($scope.rolePermissions, function(value,key) {
if (value == true) {
permissions.push(key);
}
});
var role:any = {};
role.name = $scope.role.name;
role.description = $scope.role.description;
role.permissions = permissions;
role.autoGrant = $scope.role.autoGrant;
ApimanSvcs.update({ entityType: 'roles', secondaryType: $scope.role.id }, role, function(reply) {
PageLifecycle.redirectTo('/admin/roles');
}, PageLifecycle.handleError);
}
$scope.deleteRole = function() {
$scope.deleteButton.state = 'in-progress';
Dialogs.confirm('Confirm Delete Role', 'Do you really want to delete this role?', function() {
ApimanSvcs.delete({ entityType: 'roles', secondaryType: $scope.role.id }, function(reply) {
PageLifecycle.redirectTo('/admin/roles');
}, PageLifecycle.handleError);
}, function() {
$scope.deleteButton.state = 'complete';
});
}
PageLifecycle.loadPage('EditRole', 'admin', pageData, $scope, function() {
PageLifecycle.setPageTitle('edit-role');
$('#apiman-description').focus();
});
}])
}
| {
"content_hash": "658108a268eb5e38d33ce13089ac8b08",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 113,
"avg_line_length": 45.077922077922075,
"alnum_prop": 0.4647075770671276,
"repo_name": "kunallimaye/apiman",
"id": "7f31ed991bed8eee801836f9c493aeb9216d3971",
"size": "3553",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "manager/ui/hawtio/plugins/api-manager/ts/forms/edit-role.ts",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "42404"
},
{
"name": "HTML",
"bytes": "334352"
},
{
"name": "Java",
"bytes": "3632412"
},
{
"name": "JavaScript",
"bytes": "62597"
},
{
"name": "Shell",
"bytes": "1900"
},
{
"name": "TypeScript",
"bytes": "335704"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>LaurelEye - To Seek Knowledge</title>
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="bootstrap/css/bootstrap-theme.min.css">
<script src="js/jquery.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<style>
body{
padding-top: 0px;
background-color: white;
<!--background-image: url("imgs/hh2.jpg");-->
background-size:cover;
}
.container-fluid {
margin-top : 0px;
padding-top: 0px;
padding-bottom: 70px;
}
.nav .navbar-default{
padding:0px;
margin: 0px;
border: 0px;
}
.content{
color: black;
}
.name{
color: black;
}
.navi{
padding-bottom: 0px;
}
.laureli{
font-size: 20px;
letter-spacing: 0.2em;
font-style: italic;
}
</style>
</head>
<body>
<!-- Navbar code
--
--
-->
<nav class="navbar navbar-default">
<div class="container-fluid navi">
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="laureli"><a href="#">laureli</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#"><span class="glyphicon glyphicon-star"></span><span> 5.0</span></a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-user"></span> <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Profile</a></li>
<li><a href="#">Sign Out</a></li>
</ul>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<div class = "container-fluid">
<div class = "container col-md-1"></div>
<div class = "container col-md-2">
<center><div class = "list-group-item"><img src="imgs/me.png" height = "150px" width = "150px" ></div></center>
<div class = "list-group-item"><p class = "name">Pineda, Gabriel Andrew</p></div>
<div class="list-group">
<a href="studentmyprofile.html" class="list-group-item">My Profile</a>
<a href="#" class="list-group-item active">My Lessons</a>
<a href="#" class="list-group-item">Payment Statements</a>
<a href="#" class="list-group-item">Free Tutorials</a>
<a href="<?php echo base_url();?>account/logout" class="list-group-item">Log Out</a>
<a class = "list-group dummy"></a>
</div>
</div>
<div class = "container col-md-9 name">
<div class="container name">
<table class="table" style="max-width:900px;">
<tbody>
<thead>
<th colspan = "5"><h1>My Lessons</h1></th>
</thead>
<tr>
<td><strong>Subject</strong></td>
<td><strong>Tutor</strong></td>
<td><strong>Fee</strong></td>
<td><strong>City</strong></td>
<td><strong>Payment Method</strong></td>
</tr>
<tr>
<td>07/5/16</td>
<td>Cris</td>
<td>PHP1,000</td>
<td>Cebu</td>
<td>UB</td>
</tr>
<tr>
<td>07/1/16</td>
<td>Adrian</td>
<td>PHP100</td>
<td>Bohol</td>
<td>UB</td>
</tr>
<tr>
<td>05/3/16</td>
<td>Patrick</td>
<td>PHP10,000</td>
<td>Talisay</td>
<td>BPI</td>
</tr>
<tr>
<td>02/1/16</td>
<td>Dave</td>
<td>PHP1.0</td>
<td>Lapu-Lapu</td>
<td>BPO</td>
</tr>
<tr>
<td>01/19/16</td>
<td>Joshua</td>
<td>PHP200.0</td>
<td>Cebu</td>
<td>UB</td>
</tr>
<tr>
<td>01/1/16</td>
<td>Laurence</td>
<td>PHP100.0</td>
<td>Cebu</td>
<td>BDO</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>
<script>
/*$(document).ready(function(){
<!-- navbar transition script -->
$(window).scroll(function() { // check if scroll event happened
if ($(document).scrollTop() > 50) { // check if user scrolled more than 50 from top of the browser window
$(".navbar-fixed-top").css("background-color", "#ffffff"); // if yes, then change the color of class "navbar-fixed-top" to white (#f8f8f8)
} else {
$(".navbar-fixed-top").css("background", "rgba(255, 255, 255, 0.3)"); // if not, change it back to transparent
}
});
});*/
// Get the modal
var modal = document.getElementById('myModal');
// Get the button that opens the modal
var btn = document.getElementById("myBtn");
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];
// When the user clicks the button, open the modal
btn.onclick = function() {
modal.style.display = "block";
}
// When the user clicks on <span> (x), close the modal
span.onclick = function() {
modal.style.display = "none";
}
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
</script>
</body>
</html>
| {
"content_hash": "295e011fa4253425f1d61a2173a700d1",
"timestamp": "",
"source": "github",
"line_count": 190,
"max_line_length": 206,
"avg_line_length": 27.857894736842105,
"alnum_prop": 0.5730209710938976,
"repo_name": "ianace/uhac",
"id": "d7cae26feca1f0b5d1cebdd6e906a366fe439795",
"size": "5293",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "assets/studentmylessons.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "430"
},
{
"name": "CSS",
"bytes": "300044"
},
{
"name": "HTML",
"bytes": "101660"
},
{
"name": "JavaScript",
"bytes": "24260"
},
{
"name": "PHP",
"bytes": "1820083"
}
],
"symlink_target": ""
} |
<?php defined('_JEXEC') or die('Restricted access');
JHtml::_('bootstrap.tooltip');
JHtml::_('behavior.formvalidation');
// Çàãðóæàåì óêðàøàòåëüñòâà ôîðìû.
JHtml::_('formbehavior.chosen', 'select');
?>
<?php if (!empty($this->sidebar)): ?>
<div id="j-sidebar-container" class="span2">
<?php echo $this->sidebar; ?>
</div>
<div id="j-main-container" class="span10">
<?php else : ?>
<div id="j-main-container">
<?php endif;?>
<form method="post" action="index.php" name="adminForm" id="adminForm" class="form-validate">
<table align="left">
<tr>
<td ><strong>Preview image:</strong></td>
<td ><p id="gen"><img src="<?php echo JURI::root() ?>administrator/index.php?option=com_sdrsssyndicator&task=genbtn&outerBorder=#666666&innerBorder=#ffffff&barPosition=25&leftFill=#ff6600&leftText=RSS&leftTextColor=#ffffff&leftTextPosition=5&rightFill=#898E79&rightText=Valid&rightTextColor=#ffffff&rightTextPosition=29" alt="" id="generated" height="15" width="80"></p></td>
</tr>
<tr>
<td colspan="2"><strong>Borders</strong></td>
</tr>
<tr>
<td><label for="outerBorder">Outer border</label></td>
<td><input name="outerBorder" id="outerBorder" value="#666666" size="20" type="text">
<a href="javascript:TCP.popup(document.forms['adminForm'].elements['outerBorder'])" ><img src="<?php echo JURI::root() ?>administrator/components/com_sdrsssyndicator/assets/images/sel.gif" alt="Color Picker" title="Pick a color" border="0" height="13" width="15"></a></td>
</tr>
<tr>
<td><label for="innerBorder">Inner border</label></td>
<td><input name="innerBorder" id="innerBorder" value="#ffffff" size="20" type="text">
<a href="javascript:TCP.popup(document.forms['adminForm'].elements['innerBorder']);" ><img src="<?php echo JURI::root() ?>administrator/components/com_sdrsssyndicator/assets/images/sel.gif" alt="Color Picker" title="Pick a color" border="0" height="13" width="15"></a></td>
</tr>
<tr>
<td><label for="barPosition">Bar Position</label></td>
<td><input name="barPosition" id="barPosition" value="25" size="20" type="text">
pixels from the left</td>
</tr>
<tr>
<td colspan="2"><strong>Left Box</strong></td>
</tr>
<tr>
<td><label for="leftText">Text</label></td>
<td><input name="leftText" id="leftText" value="RSS" size="20" type="text"></td>
</tr>
<tr>
<td><label for="leftFill">Background</label></td>
<td><input name="leftFill" id="leftFill" value="#ff6600" size="20" type="text">
<a href="javascript:TCP.popup(document.forms['adminForm'].elements['leftFill']);" ><img src="<?php echo JURI::root() ?>administrator/components/com_sdrsssyndicator/assets/images/sel.gif" alt="Color Picker" title="Pick a color" border="0" height="13" width="15"></a></td>
</tr>
<tr>
<td><label for="leftTextColor">Text color</label></td>
<td><input name="leftTextColor" id="leftTextColor" value="#ffffff" size="20" type="text">
<a href="javascript:TCP.popup(document.forms['adminForm'].elements['leftTextColor']);" ><img src="<?php echo JURI::root() ?>administrator/components/com_sdrsssyndicator/assets/images/sel.gif" alt="Color Picker" title="Pick a color" border="0" height="13" width="15"></a></td>
</tr>
<tr>
<td><label for="leftTextPosition">Text start</label></td>
<td><input name="leftTextPosition" id="leftTextPosition" value="5" size="20" type="text">
pixels from the left</td>
</tr>
<tr>
<td colspan="2"><strong>Right Box</strong></td>
</tr>
<tr>
<td><label for="rightText">Text</label></td>
<td><input name="rightText" id="rightText" value="Valid" size="20" type="text"></td>
</tr>
<tr>
<td><label for="rightFill">Background</label></td>
<td><input name="rightFill" id="rightFill" value="#898E79" size="20" type="text">
<a href="javascript:TCP.popup(document.forms['adminForm'].elements['rightFill']);" ><img src="<?php echo JURI::root() ?>administrator/components/com_sdrsssyndicator/assets/images/sel.gif" alt="Color Picker" title="Pick a color" border="0" height="13" width="15"></a></td>
</tr>
<tr>
<td><label for="rightTextColor">Text color</label></td>
<td><input name="rightTextColor" id="rightTextColor" value="#ffffff" size="20" type="text">
<a href="javascript:TCP.popup(document.forms['adminForm'].elements['rightTextColor']);" ><img src="<?php echo JURI::root() ?>administrator/components/com_sdrsssyndicator/assets/images/sel.gif" alt="Color Picker" title="Pick a color" border="0" height="13" width="15"></a></td>
</tr>
<tr>
<td><label for="rightTextPosition">Text start</label></td>
<td><input name="rightTextPosition" id="rightTextPosition" value="29" size="20" type="text">
pixels from the bar</td>
</tr>
<tr>
<td colspan="2"><p>
<input name="Reset-Render" value="Reset" type="button" onclick="renderImage('reset')" />
<input name="Render" value="Render" type="button" onclick="renderImage('render');" />
<input name="Save" value="Save" type="button" id="btnSave" onclick="renderImage('save');" />
</p></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<div id="btnsavetip" style="clear:both; display:none"></div>
<input type="hidden" name="option" value="com_sdrsssyndicator" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="save_img" value="0" />
<input type="hidden" name="controller" id="controller" value="buttonmaker" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
<script type="text/javascript">
function toggleTip(msg)
{
if(!msg)
$('btnsavetip').setStyle('display','none');
else
{
$('btnsavetip').setHTML(msg);
$('btnsavetip').setStyle('display', 'block');
}
}
function renderImage(action) {
var url = "<?php echo JURI::root();?>";
var frm = $("adminForm");
var imgUrl = url+"administrator/components/com_sdrsssyndicator/views/buttonmaker/tmpl/button.php";
if (action=="reset") {
$("outerBorder").value="#666666";
$("innerBorder").value="#ffffff";
$("barPosition").value="25";
$("leftText").value="RSS";
$("leftFill").value="#ff6600";
$("leftTextColor").value="#ffffff";
$("leftTextPosition").value="5";
$("rightText").value="Valid";
$("rightFill").value="#898E79";
$("rightTextColor").value="#ffffff";
$("rightTextPosition").value="30";
$("generated").src=imgUrl;
}
else if(action=="save")
{
imgUrl = renderImage('');
frm.getElement('input[name=task]').value = 'genbtn';
frm.getElement('input[name=controller]').value = '';
frm.getElement('input[name=save_img]').value = '1';
frm.send({
method: 'POST',
onRequest: function() {
toggleTip('');
$('btnSave').setAttribute('disabled', 'disabled');
},
onComplete: function() {
$('btnSave').removeAttribute('disabled');
toggleTip(this.response.text);
frm.getElement('input[name=save_img]').value = '0';
},
onFailure:function() {
$('btnSave').removeAttribute('disabled');
frm.getElement('input[name=save_img]').value = '0';
}
});
return;
}
else if(action == "render")
{
toggleTip('Right click on the<strong> preview image</strong> and select <strong>Save as...</strong> to save the image');
}
//build image url
var inputElems = frm.getElementsByTagName("input");
var qs = "";
for (var i = 0 ; i < inputElems.length; i++)
{
if (inputElems[i].getAttribute("type")=="text") {
var currElem = inputElems[i];
qs+=currElem.getAttribute("id");
qs+="=";
qs+=currElem.value;
if (i!=inputElems.length-1)
qs+="&";
}
}
//replace # chars as http don't like 'em
var re = new RegExp ('#', 'gi') ;
qs = qs.replace(re, '') ;
imgUrl = url+"administrator/index.php?option=com_sdrsssyndicator&task=genbtn&"+qs
$("generated").src= imgUrl;
return imgUrl;
}
var mosUrl = "<?php echo JURI::root() ?>administrator/components/com_sdrsssyndicator/";
</script>
<script language="JavaScript" src="<?php echo JURI::root() ?>administrator/components/com_sdrsssyndicator/assets/js/picker.js"></script> | {
"content_hash": "b83d29b9cbac32d4bd31d4d20ab09818",
"timestamp": "",
"source": "github",
"line_count": 188,
"max_line_length": 381,
"avg_line_length": 44.53191489361702,
"alnum_prop": 0.6211180124223602,
"repo_name": "dron79-79/SD-RSS-Syndicator-J3.0",
"id": "631a564a33baa346198bc8ecaf34916b07e274d7",
"size": "8478",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "admin/views/buttonmaker/tmpl/form.php",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "HTML",
"bytes": "2382"
},
{
"name": "JavaScript",
"bytes": "4738"
},
{
"name": "PHP",
"bytes": "170860"
}
],
"symlink_target": ""
} |
package com.temple.util.json;
import javax.json.JsonArrayBuilder;
import javax.json.JsonObjectBuilder;
public final class GenericStringHandler extends AbstractOutputOnlyHandler {
@Override
protected void nullSafeAdd(JsonObjectBuilder job, String name, Object value) {
job.add(name, value.toString());
}
@Override
protected void nullSafeAdd(JsonArrayBuilder jab, Object value) {
jab.add(value.toString());
}
}
| {
"content_hash": "85c06af0f376c71c47121c8ce22b7a1b",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 79,
"avg_line_length": 22.42105263157895,
"alnum_prop": 0.7793427230046949,
"repo_name": "florent-pallaver/temple",
"id": "92f145926c0806315fd427f46dfa3bde17efdc64",
"size": "426",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "temple/temple-common/src/main/java/com/temple/util/json/GenericStringHandler.java",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "74071"
},
{
"name": "HTML",
"bytes": "25710"
},
{
"name": "Java",
"bytes": "930476"
},
{
"name": "JavaScript",
"bytes": "25923"
},
{
"name": "PHP",
"bytes": "515219"
},
{
"name": "TSQL",
"bytes": "76"
}
],
"symlink_target": ""
} |
package sh.isaac.convert.mojo.icd10;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
/**
*
* Loader code to convert ICD 10 into isaac.
*
* Paths are typically controlled by maven, however, the main() method has paths configured so that they
* match what maven does for test purposes.
*/
@Mojo(name = "convert-ICD10-to-ibdf", defaultPhase = LifecyclePhase.PROCESS_SOURCES)
public class ICD10ImportMojoDirect extends ICD10ImportHK2Direct
{
/**
* This constructor is for maven and should not be used at runtime.
*/
public ICD10ImportMojoDirect()
{
}
} | {
"content_hash": "aaf4128950c8a11543cb8d4558ae605d",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 104,
"avg_line_length": 26.333333333333332,
"alnum_prop": 0.7531645569620253,
"repo_name": "OSEHRA/ISAAC",
"id": "c7f8a22008ce30b91e7f61b192255aff5376382d",
"size": "2023",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "misc/importers-mojos/src/main/java/sh/isaac/convert/mojo/icd10/ICD10ImportMojoDirect.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "AppleScript",
"bytes": "1499"
},
{
"name": "CSS",
"bytes": "80251"
},
{
"name": "HTML",
"bytes": "35085"
},
{
"name": "Java",
"bytes": "12855254"
},
{
"name": "Swift",
"bytes": "98"
},
{
"name": "XSLT",
"bytes": "362"
}
],
"symlink_target": ""
} |
package org.apache.sysml.runtime.controlprogram.parfor.opt;
import java.io.IOException;
import java.util.ArrayList;
import org.apache.sysml.conf.ConfigurationManager;
import org.apache.sysml.conf.DMLConfig;
import org.apache.sysml.hops.Hop;
import org.apache.sysml.hops.HopsException;
import org.apache.sysml.hops.IndexingOp;
import org.apache.sysml.hops.OptimizerUtils;
import org.apache.sysml.hops.recompile.Recompiler;
import org.apache.sysml.lops.Lop;
import org.apache.sysml.lops.LopProperties;
import org.apache.sysml.lops.LopsException;
import org.apache.sysml.parser.DMLProgram;
import org.apache.sysml.parser.DMLTranslator;
import org.apache.sysml.parser.ForStatement;
import org.apache.sysml.parser.ForStatementBlock;
import org.apache.sysml.parser.IfStatement;
import org.apache.sysml.parser.IfStatementBlock;
import org.apache.sysml.parser.StatementBlock;
import org.apache.sysml.parser.WhileStatement;
import org.apache.sysml.parser.WhileStatementBlock;
import org.apache.sysml.runtime.DMLRuntimeException;
import org.apache.sysml.runtime.controlprogram.ForProgramBlock;
import org.apache.sysml.runtime.controlprogram.IfProgramBlock;
import org.apache.sysml.runtime.controlprogram.LocalVariableMap;
import org.apache.sysml.runtime.controlprogram.Program;
import org.apache.sysml.runtime.controlprogram.ProgramBlock;
import org.apache.sysml.runtime.controlprogram.WhileProgramBlock;
import org.apache.sysml.runtime.controlprogram.context.ExecutionContext;
import org.apache.sysml.runtime.instructions.Instruction;
import org.apache.sysml.runtime.instructions.cp.ArithmeticBinaryCPInstruction;
import org.apache.sysml.runtime.instructions.cp.Data;
import org.apache.sysml.runtime.instructions.cp.FunctionCallCPInstruction;
import org.apache.sysml.runtime.instructions.cp.ScalarObject;
public class ProgramRecompiler
{
public static ArrayList<ProgramBlock> generatePartitialRuntimeProgram(Program rtprog, ArrayList<StatementBlock> sbs)
throws LopsException, DMLRuntimeException, IOException, HopsException
{
ArrayList<ProgramBlock> ret = new ArrayList<ProgramBlock>();
DMLConfig config = ConfigurationManager.getDMLConfig();
//construct lops from hops if not existing
DMLTranslator dmlt = new DMLTranslator(sbs.get(0).getDMLProg());
for( StatementBlock sb : sbs ) {
dmlt.constructLops(sb);
}
//construct runtime program from lops
for( StatementBlock sb : sbs ) {
ret.add(dmlt.createRuntimeProgramBlock(rtprog, sb, config));
}
return ret;
}
/**
* NOTE: if force is set, we set and recompile the respective indexing hops;
* otherwise, we release the forced exec type and recompile again. Hence,
* any changes can be exactly reverted with the same access behavior.
*
* @param sb statement block
* @param pb program block
* @param var variable
* @param ec execution context
* @param force if true, set and recompile the respective indexing hops
* @throws DMLRuntimeException if DMLRuntimeException occurs
*/
public static void rFindAndRecompileIndexingHOP( StatementBlock sb, ProgramBlock pb, String var, ExecutionContext ec, boolean force )
throws DMLRuntimeException
{
if( pb instanceof IfProgramBlock && sb instanceof IfStatementBlock )
{
IfProgramBlock ipb = (IfProgramBlock) pb;
IfStatementBlock isb = (IfStatementBlock) sb;
IfStatement is = (IfStatement) sb.getStatement(0);
//process if condition
if( isb.getPredicateHops()!=null )
ipb.setPredicate( rFindAndRecompileIndexingHOP(isb.getPredicateHops(),ipb.getPredicate(),var,ec,force) );
//process if branch
int len = is.getIfBody().size();
for( int i=0; i<ipb.getChildBlocksIfBody().size() && i<len; i++ )
{
ProgramBlock lpb = ipb.getChildBlocksIfBody().get(i);
StatementBlock lsb = is.getIfBody().get(i);
rFindAndRecompileIndexingHOP(lsb,lpb,var,ec,force);
}
//process else branch
if( ipb.getChildBlocksElseBody() != null )
{
int len2 = is.getElseBody().size();
for( int i=0; i<ipb.getChildBlocksElseBody().size() && i<len2; i++ )
{
ProgramBlock lpb = ipb.getChildBlocksElseBody().get(i);
StatementBlock lsb = is.getElseBody().get(i);
rFindAndRecompileIndexingHOP(lsb,lpb,var,ec,force);
}
}
}
else if( pb instanceof WhileProgramBlock && sb instanceof WhileStatementBlock )
{
WhileProgramBlock wpb = (WhileProgramBlock) pb;
WhileStatementBlock wsb = (WhileStatementBlock) sb;
WhileStatement ws = (WhileStatement) sb.getStatement(0);
//process while condition
if( wsb.getPredicateHops()!=null )
wpb.setPredicate( rFindAndRecompileIndexingHOP(wsb.getPredicateHops(),wpb.getPredicate(),var,ec,force) );
//process body
int len = ws.getBody().size(); //robustness for potentially added problem blocks
for( int i=0; i<wpb.getChildBlocks().size() && i<len; i++ )
{
ProgramBlock lpb = wpb.getChildBlocks().get(i);
StatementBlock lsb = ws.getBody().get(i);
rFindAndRecompileIndexingHOP(lsb,lpb,var,ec, force);
}
}
else if( pb instanceof ForProgramBlock && sb instanceof ForStatementBlock ) //for or parfor
{
ForProgramBlock fpb = (ForProgramBlock) pb;
ForStatementBlock fsb = (ForStatementBlock)sb;
ForStatement fs = (ForStatement) fsb.getStatement(0);
if( fsb.getFromHops()!=null )
fpb.setFromInstructions( rFindAndRecompileIndexingHOP(fsb.getFromHops(),fpb.getFromInstructions(),var,ec,force) );
if( fsb.getToHops()!=null )
fpb.setToInstructions( rFindAndRecompileIndexingHOP(fsb.getToHops(),fpb.getToInstructions(),var,ec,force) );
if( fsb.getIncrementHops()!=null )
fpb.setIncrementInstructions( rFindAndRecompileIndexingHOP(fsb.getIncrementHops(),fpb.getIncrementInstructions(),var,ec,force) );
//process body
int len = fs.getBody().size(); //robustness for potentially added problem blocks
for( int i=0; i<fpb.getChildBlocks().size() && i<len; i++ )
{
ProgramBlock lpb = fpb.getChildBlocks().get(i);
StatementBlock lsb = fs.getBody().get(i);
rFindAndRecompileIndexingHOP(lsb,lpb,var,ec, force);
}
}
else //last level program block
{
try
{
//process actual hops
boolean ret = false;
Hop.resetVisitStatus(sb.get_hops());
if( force )
{
//set forced execution type
for( Hop h : sb.get_hops() )
ret |= rFindAndSetCPIndexingHOP(h, var);
}
else
{
//release forced execution type
for( Hop h : sb.get_hops() )
ret |= rFindAndReleaseIndexingHOP(h, var);
}
//recompilation on-demand
if( ret )
{
//construct new instructions
ArrayList<Instruction> newInst = Recompiler.recompileHopsDag(
sb, sb.get_hops(), ec.getVariables(), null, true, false, 0);
pb.setInstructions( newInst );
}
}
catch(Exception ex)
{
throw new DMLRuntimeException(ex);
}
}
}
public static LocalVariableMap getReusableScalarVariables( DMLProgram prog, StatementBlock parforSB, LocalVariableMap vars )
throws DMLRuntimeException
{
LocalVariableMap constVars = new LocalVariableMap();
for( String varname : vars.keySet() )
{
Data dat = vars.get(varname);
if( dat instanceof ScalarObject //scalar
&& isApplicableForReuseVariable(prog, parforSB, varname) ) //constant
{
constVars.put(varname, dat);
}
}
return constVars;
}
public static void replaceConstantScalarVariables( StatementBlock sb, LocalVariableMap vars )
throws DMLRuntimeException, HopsException
{
if( sb instanceof IfStatementBlock )
{
IfStatementBlock isb = (IfStatementBlock) sb;
IfStatement is = (IfStatement) sb.getStatement(0);
replacePredicateLiterals(isb.getPredicateHops(), vars);
for( StatementBlock lsb : is.getIfBody() )
replaceConstantScalarVariables(lsb, vars);
for( StatementBlock lsb : is.getElseBody() )
replaceConstantScalarVariables(lsb, vars);
}
else if( sb instanceof WhileStatementBlock )
{
WhileStatementBlock wsb = (WhileStatementBlock) sb;
WhileStatement ws = (WhileStatement) sb.getStatement(0);
replacePredicateLiterals(wsb.getPredicateHops(), vars);
for( StatementBlock lsb : ws.getBody() )
replaceConstantScalarVariables(lsb, vars);
}
else if( sb instanceof ForStatementBlock ) //for or parfor
{
ForStatementBlock fsb = (ForStatementBlock)sb;
ForStatement fs = (ForStatement) fsb.getStatement(0);
replacePredicateLiterals(fsb.getFromHops(), vars);
replacePredicateLiterals(fsb.getToHops(), vars);
replacePredicateLiterals(fsb.getIncrementHops(), vars);
for( StatementBlock lsb : fs.getBody() )
replaceConstantScalarVariables(lsb, vars);
}
else //last level block
{
ArrayList<Hop> hops = sb.get_hops();
if( hops != null )
{
//replace constant literals
Hop.resetVisitStatus(hops);
for( Hop hopRoot : hops )
Recompiler.rReplaceLiterals( hopRoot, vars, true );
}
}
}
private static void replacePredicateLiterals( Hop pred, LocalVariableMap vars )
throws DMLRuntimeException
{
if( pred != null ){
pred.resetVisitStatus();
Recompiler.rReplaceLiterals(pred, vars, true);
}
}
/**
* This function determines if an parfor input variable is guaranteed to be read-only
* across multiple invocations of parfor optimization (e.g., in a surrounding while loop).
* In case of invariant variables we can reuse partitioned matrices and propagate constants
* for better size estimation.
*
* @param prog dml program
* @param parforSB parfor statement block
* @param var variable
* @return true if can reuse variable
* @throws DMLRuntimeException if DMLRuntimeException occurs
*/
public static boolean isApplicableForReuseVariable( DMLProgram prog, StatementBlock parforSB, String var )
throws DMLRuntimeException
{
boolean ret = false;
for( StatementBlock sb : prog.getStatementBlocks() )
ret |= isApplicableForReuseVariable(sb, parforSB, var);
return ret;
}
private static boolean isApplicableForReuseVariable( StatementBlock sb, StatementBlock parforSB, String var )
throws DMLRuntimeException
{
boolean ret = false;
if( sb instanceof IfStatementBlock )
{
IfStatement is = (IfStatement) sb.getStatement(0);
for( StatementBlock lsb : is.getIfBody() )
ret |= isApplicableForReuseVariable(lsb, parforSB, var);
for( StatementBlock lsb : is.getElseBody() )
ret |= isApplicableForReuseVariable(lsb, parforSB, var);
}
else if( sb instanceof WhileStatementBlock )
{
WhileStatement ws = (WhileStatement) sb.getStatement(0);
for( StatementBlock lsb : ws.getBody() )
ret |= isApplicableForReuseVariable(lsb, parforSB, var);
}
else if( sb instanceof ForStatementBlock ) //for or parfor
{
ForStatementBlock fsb = (ForStatementBlock)sb;
ForStatement fs = (ForStatement) fsb.getStatement(0);
if( fsb == parforSB ) {
//found parfor statement
ret = true;
}
else {
for( StatementBlock lsb : fs.getBody() )
ret |= isApplicableForReuseVariable(lsb, parforSB, var);
}
}
return ret && !sb.variablesUpdated().containsVariable(var);
}
public static boolean containsAtLeastOneFunction( ProgramBlock pb )
{
if( pb instanceof IfProgramBlock )
{
IfProgramBlock ipb = (IfProgramBlock) pb;
for( ProgramBlock lpb : ipb.getChildBlocksIfBody() )
if( containsAtLeastOneFunction(lpb) )
return true;
for( ProgramBlock lpb : ipb.getChildBlocksElseBody() )
if( containsAtLeastOneFunction(lpb) )
return true;
}
else if( pb instanceof WhileProgramBlock )
{
WhileProgramBlock wpb = (WhileProgramBlock) pb;
for( ProgramBlock lpb : wpb.getChildBlocks() )
if( containsAtLeastOneFunction(lpb) )
return true;
}
else if( pb instanceof ForProgramBlock ) //incl parfor
{
ForProgramBlock fpb = (ForProgramBlock) pb;
for( ProgramBlock lpb : fpb.getChildBlocks() )
if( containsAtLeastOneFunction(lpb) )
return true;
}
else
{
if( pb.getInstructions() != null )
for( Instruction inst : pb.getInstructions() )
if( inst instanceof FunctionCallCPInstruction )
return true;
}
return false;
}
private static ArrayList<Instruction> rFindAndRecompileIndexingHOP( Hop hop, ArrayList<Instruction> in, String var, ExecutionContext ec, boolean force )
throws DMLRuntimeException
{
ArrayList<Instruction> tmp = in;
try
{
boolean ret = false;
hop.resetVisitStatus();
if( force ) //set forced execution type
ret = rFindAndSetCPIndexingHOP(hop, var);
else //release forced execution type
ret = rFindAndReleaseIndexingHOP(hop, var);
//recompilation on-demand
if( ret )
{
//construct new instructions
tmp = Recompiler.recompileHopsDag(
hop, ec.getVariables(), null, true, false, 0);
}
}
catch(Exception ex)
{
throw new DMLRuntimeException(ex);
}
return tmp;
}
private static boolean rFindAndSetCPIndexingHOP(Hop hop, String var)
{
boolean ret = false;
if( hop.isVisited() )
return ret;
ArrayList<Hop> in = hop.getInput();
if( hop instanceof IndexingOp )
{
String inMatrix = hop.getInput().get(0).getName();
if( inMatrix.equals(var) )
{
//NOTE: mem estimate of RIX, set to output size by parfor optmizer
//(rowblock/colblock only applied if in total less than two blocks,
// hence always mem_est<mem_budget)
if( hop.getMemEstimate() < OptimizerUtils.getLocalMemBudget() )
hop.setForcedExecType( LopProperties.ExecType.CP );
else
hop.setForcedExecType( LopProperties.ExecType.CP_FILE );
ret = true;
}
}
//recursive search
if( in != null )
for( Hop hin : in )
ret |= rFindAndSetCPIndexingHOP(hin,var);
hop.setVisited();
return ret;
}
private static boolean rFindAndReleaseIndexingHOP(Hop hop, String var)
{
boolean ret = false;
if( hop.isVisited() )
return ret;
ArrayList<Hop> in = hop.getInput();
if( hop instanceof IndexingOp )
{
String inMatrix = hop.getInput().get(0).getName();
if( inMatrix.equals(var) )
{
hop.setForcedExecType(null);
hop.clearMemEstimate();
ret = true;
}
}
//recursive search
if( in != null )
for( Hop hin : in )
ret |= rFindAndReleaseIndexingHOP(hin,var);
hop.setVisited();
return ret;
}
///////
// additional general-purpose functionalities
protected static ArrayList<Instruction> createNestedParallelismToInstructionSet(String iterVar, String offset)
throws DMLRuntimeException
{
//create instruction string
StringBuilder sb = new StringBuilder("CP"+Lop.OPERAND_DELIMITOR+"+"+Lop.OPERAND_DELIMITOR);
sb.append(iterVar);
sb.append(Lop.DATATYPE_PREFIX+"SCALAR"+Lop.VALUETYPE_PREFIX+"INT"+Lop.OPERAND_DELIMITOR);
sb.append(offset);
sb.append(Lop.DATATYPE_PREFIX+"SCALAR"+Lop.VALUETYPE_PREFIX+"INT"+Lop.OPERAND_DELIMITOR);
sb.append(iterVar);
sb.append(Lop.DATATYPE_PREFIX+"SCALAR"+Lop.VALUETYPE_PREFIX+"INT");
String str = sb.toString();
//create instruction set
ArrayList<Instruction> tmp = new ArrayList<Instruction>();
Instruction inst = ArithmeticBinaryCPInstruction.parseInstruction(str);
tmp.add(inst);
return tmp;
}
}
| {
"content_hash": "8806ef747ff0f1c9af66982d2f632d50",
"timestamp": "",
"source": "github",
"line_count": 468,
"max_line_length": 154,
"avg_line_length": 32.39957264957265,
"alnum_prop": 0.7189210578381586,
"repo_name": "asurve/arvind-sysml2",
"id": "189d0616901c3339909ec8651943bf5154645582",
"size": "15972",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/org/apache/sysml/runtime/controlprogram/parfor/opt/ProgramRecompiler.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ANTLR",
"bytes": "31285"
},
{
"name": "Batchfile",
"bytes": "23989"
},
{
"name": "C",
"bytes": "8676"
},
{
"name": "C++",
"bytes": "30804"
},
{
"name": "CMake",
"bytes": "10312"
},
{
"name": "Cuda",
"bytes": "35333"
},
{
"name": "Java",
"bytes": "13146562"
},
{
"name": "Jupyter Notebook",
"bytes": "107236"
},
{
"name": "Makefile",
"bytes": "2459"
},
{
"name": "Protocol Buffer",
"bytes": "78944"
},
{
"name": "Python",
"bytes": "317740"
},
{
"name": "R",
"bytes": "711665"
},
{
"name": "Scala",
"bytes": "211968"
},
{
"name": "Shell",
"bytes": "156697"
}
],
"symlink_target": ""
} |
'use strict';
module.exports = function(environment) {
let ENV = {
modulePrefix: 'dummy',
podModulePrefix: 'dummy/pods',
environment,
rootURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true
},
EXTEND_PROTOTYPES: {
// Prevent Ember Data from overriding Date.parse.
Date: false,
},
},
APP: {
// Here you can pass flags/options to your application instance
// when it is created
},
};
if (environment === 'development') {
// ENV.APP.LOG_RESOLVER = true;
// ENV.APP.LOG_ACTIVE_GENERATION = true;
// ENV.APP.LOG_TRANSITIONS = true;
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
// ENV.APP.LOG_VIEW_LOOKUPS = true;
}
if (environment === 'test') {
// Testem prefers this...
ENV.locationType = 'none';
// keep test console output quieter
ENV.APP.LOG_ACTIVE_GENERATION = false;
ENV.APP.LOG_VIEW_LOOKUPS = false;
ENV.APP.rootElement = '#ember-testing';
ENV.APP.autoboot = false;
}
if (environment === 'production') {
// Allow ember-cli-addon-docs to update the rootURL in compiled assets
ENV.rootURL = 'ADDON_DOCS_ROOT_URL';
// here you can enable a production-specific feature
}
return ENV;
};
| {
"content_hash": "76b0c9e50cfae00c0de9797ac7a4342a",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 77,
"avg_line_length": 25.327272727272728,
"alnum_prop": 0.6130653266331658,
"repo_name": "JFTechnology/ember-keycloak-auth",
"id": "e1af3d91913d215660844104857e3169d4db29c0",
"size": "1393",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "tests/dummy/config/environment.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "11120"
},
{
"name": "JavaScript",
"bytes": "38673"
},
{
"name": "TypeScript",
"bytes": "20457"
}
],
"symlink_target": ""
} |
import sys
sys.path.append('/usr/local/lib/python2.7/dist-packages/')
import freenect
import cv2
import numpy as np
#function to get RGB image from kinect
def get_video():
array,_ = freenect.sync_get_video()
array = cv2.cvtColor(array,cv2.COLOR_RGB2BGR)
return array
#function to get depth image from kinect
def get_depth():
array,_ = freenect.sync_get_depth()
array = array.astype(np.uint8)
return array
if __name__ == "__main__":
while 1:
#get a frame from RGB camera
frame = get_video()
#get a frame from depth sensor
depth = get_depth()
#display RGB image
cv2.imshow('RGB image',frame)
#display depth image
cv2.imshow('Depth image',depth)
# quit program when 'esc' key is pressed
k = cv2.waitKey(5) & 0xFF
if k == 27:
break
cv2.destroyAllWindows()
| {
"content_hash": "9225d9d52660efb1bb65decd4b3dfd21",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 58,
"avg_line_length": 26.235294117647058,
"alnum_prop": 0.6165919282511211,
"repo_name": "miltonsarria/dsp-python",
"id": "5a8f53c54e4c178872f9d6e0e35e7b0ca213336c",
"size": "922",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "images/kinect_test.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "28084"
},
{
"name": "C++",
"bytes": "2359"
},
{
"name": "Jupyter Notebook",
"bytes": "497554"
},
{
"name": "Python",
"bytes": "406827"
}
],
"symlink_target": ""
} |
<?php
namespace Ray\AuraSqlModule;
use Ray\AuraSqlModule\Annotation\AuraSqlQueryConfig;
class FakeQueryInject
{
use AuraSqlSelectInject;
use AuraSqlInsertInject;
use AuraSqlUpdateInject;
use AuraSqlDeleteInject;
private string $db;
/**
* @AuraSqlQueryConfig
*
* @param string $db
*/
#[AuraSqlQueryConfig]
public function __construct($db)
{
$this->db = $db;
}
public function get()
{
return [
$this->db,
$this->select,
$this->insert,
$this->update,
$this->delete
];
}
}
| {
"content_hash": "02628a99d22cefc0698c84bb7f010f2c",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 52,
"avg_line_length": 17.054054054054053,
"alnum_prop": 0.5530903328050714,
"repo_name": "ray-di/Ray.AuraSqlModule",
"id": "41355805958ffbb87aa21011300a1d7d51638b7c",
"size": "631",
"binary": false,
"copies": "1",
"ref": "refs/heads/1.x",
"path": "tests/Fake/FakeQueryInject.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "PHP",
"bytes": "123827"
}
],
"symlink_target": ""
} |
.class Lcom/android/server/power/PowerManagerService$ScaleFactorLock;
.super Ljava/lang/Object;
.source "PowerManagerService.java"
# interfaces
.implements Landroid/os/IBinder$DeathRecipient;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/android/server/power/PowerManagerService;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2
name = "ScaleFactorLock"
.end annotation
# instance fields
.field binder:Landroid/os/IBinder;
.field final synthetic this$0:Lcom/android/server/power/PowerManagerService;
# direct methods
.method constructor <init>(Lcom/android/server/power/PowerManagerService;Landroid/os/IBinder;)V
.locals 2
iput-object p1, p0, Lcom/android/server/power/PowerManagerService$ScaleFactorLock;->this$0:Lcom/android/server/power/PowerManagerService;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p2, p0, Lcom/android/server/power/PowerManagerService$ScaleFactorLock;->binder:Landroid/os/IBinder;
const/4 v1, 0x0
:try_start_0
invoke-interface {p2, p0, v1}, Landroid/os/IBinder;->linkToDeath(Landroid/os/IBinder$DeathRecipient;I)V
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
:goto_0
return-void
:catch_0
move-exception v0
invoke-virtual {p0}, Lcom/android/server/power/PowerManagerService$ScaleFactorLock;->binderDied()V
goto :goto_0
.end method
# virtual methods
.method public binderDied()V
.locals 3
iget-object v0, p0, Lcom/android/server/power/PowerManagerService$ScaleFactorLock;->this$0:Lcom/android/server/power/PowerManagerService;
invoke-static {v0}, Lcom/android/server/power/PowerManagerService;->-get38(Lcom/android/server/power/PowerManagerService;)Ljava/lang/Object;
move-result-object v1
monitor-enter v1
:try_start_0
const-string/jumbo v0, "PowerManagerService"
const-string/jumbo v2, "ScaleFactorLock : binderDied"
invoke-static {v0, v2}, Lcom/android/server/power/Slog;->e(Ljava/lang/String;Ljava/lang/String;)I
iget-object v0, p0, Lcom/android/server/power/PowerManagerService$ScaleFactorLock;->this$0:Lcom/android/server/power/PowerManagerService;
const/high16 v2, -0x40800000 # -1.0f
invoke-static {v0, v2}, Lcom/android/server/power/PowerManagerService;->-set28(Lcom/android/server/power/PowerManagerService;F)F
iget-object v0, p0, Lcom/android/server/power/PowerManagerService$ScaleFactorLock;->this$0:Lcom/android/server/power/PowerManagerService;
const/4 v2, 0x0
invoke-static {v0, v2}, Lcom/android/server/power/PowerManagerService;->-set27(Lcom/android/server/power/PowerManagerService;Lcom/android/server/power/PowerManagerService$ScaleFactorLock;)Lcom/android/server/power/PowerManagerService$ScaleFactorLock;
iget-object v0, p0, Lcom/android/server/power/PowerManagerService$ScaleFactorLock;->this$0:Lcom/android/server/power/PowerManagerService;
invoke-static {v0}, Lcom/android/server/power/PowerManagerService;->-get17(Lcom/android/server/power/PowerManagerService;)I
move-result v2
or-int/lit8 v2, v2, 0x20
invoke-static {v0, v2}, Lcom/android/server/power/PowerManagerService;->-set10(Lcom/android/server/power/PowerManagerService;I)I
iget-object v0, p0, Lcom/android/server/power/PowerManagerService$ScaleFactorLock;->this$0:Lcom/android/server/power/PowerManagerService;
invoke-static {v0}, Lcom/android/server/power/PowerManagerService;->-wrap66(Lcom/android/server/power/PowerManagerService;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit v1
return-void
:catchall_0
move-exception v0
monitor-exit v1
throw v0
.end method
| {
"content_hash": "b0e8b28aa8062ccda4e57b368b393cee",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 254,
"avg_line_length": 33.63392857142857,
"alnum_prop": 0.759490310591983,
"repo_name": "BatMan-Rom/ModdedFiles",
"id": "55bac789b54360b6a03bce6a173fe3c17cadffcb",
"size": "3767",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "services.jar.out/smali/com/android/server/power/PowerManagerService$ScaleFactorLock.smali",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "GLSL",
"bytes": "15069"
},
{
"name": "HTML",
"bytes": "139176"
},
{
"name": "Smali",
"bytes": "541934400"
}
],
"symlink_target": ""
} |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_PT" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Maieuticoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39"/>
<source><b>Maieuticoin</b> version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Copyright © 2009-2014 The Bitcoin developers
Copyright © 2012-2014 The NovaCoin developers
Copyright © 2014 The Maieuticoin developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young ([email protected]) and UPnP software written by Thomas Bernard.</source>
<translation>
Este é um programa experimental.
Distribuído sob uma licença de software MIT/X11, por favor verifique o ficheiro anexo license.txt ou http://www.opensource.org/licenses/mit-license.php.
Este produto inclui software desenvolvido pelo Projecto OpenSSL para uso no OpenSSL Toolkit (http://www.openssl.org/), software criptográfico escrito por Eric Young ([email protected]) e software UPnP escrito por Thomas Bernard.</translation>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Double-click to edit address or label</source>
<translation>Clique duas vezes para editar o endereço ou o rótulo</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Criar um novo endereço</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Copie o endereço selecionado para a área de transferência</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-46"/>
<source>These are your Maieuticoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+60"/>
<source>&Copy Address</source>
<translation>&Copiar Endereço</translation>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a Maieuticoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation>Apagar o endereço selecionado da lista</translation>
</message>
<message>
<location line="-14"/>
<source>Verify a message to ensure it was signed with a specified Maieuticoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>E&liminar</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+65"/>
<source>Copy &Label</source>
<translation>Copiar &Rótulo</translation>
</message>
<message>
<location line="+2"/>
<source>&Edit</source>
<translation>&Editar</translation>
</message>
<message>
<location line="+250"/>
<source>Export Address Book Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Ficheiro separado por vírgulas (*.csv)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>Rótulo</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Endereço</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(sem rótulo)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation>Diálogo de Frase-Passe</translation>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Escreva a frase de segurança</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Nova frase de segurança</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Repita a nova frase de segurança</translation>
</message>
<message>
<location line="+33"/>
<source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>For staking only</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+35"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>Escreva a nova frase de seguraça da sua carteira. <br/> Por favor, use uma frase de <b>10 ou mais caracteres aleatórios,</b> ou <b>oito ou mais palavras</b>.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Encriptar carteira</translation>
</message>
<message>
<location line="+7"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>A sua frase de segurança é necessária para desbloquear a carteira.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Desbloquear carteira</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>A sua frase de segurança é necessária para desencriptar a carteira.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Desencriptar carteira</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Alterar frase de segurança</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Escreva a frase de segurança antiga seguida da nova para a carteira.</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>Confirmar encriptação da carteira</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR COINS</b>!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation>Tem a certeza que deseja encriptar a carteira?</translation>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation>IMPORTANTE: Qualquer cópia de segurança anterior da carteira deverá ser substituída com o novo, actualmente encriptado, ficheiro de carteira. Por razões de segurança, cópias de segurança não encriptadas efectuadas anteriormente do ficheiro da carteira tornar-se-ão inúteis assim que começar a usar a nova carteira encriptada.</translation>
</message>
<message>
<location line="+103"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation>Atenção: A tecla Caps Lock está activa!</translation>
</message>
<message>
<location line="-133"/>
<location line="+60"/>
<source>Wallet encrypted</source>
<translation>Carteira encriptada</translation>
</message>
<message>
<location line="-58"/>
<source>Maieuticoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+44"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>A encriptação da carteira falhou</translation>
</message>
<message>
<location line="-56"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>A encriptação da carteira falhou devido a um erro interno. A carteira não foi encriptada.</translation>
</message>
<message>
<location line="+7"/>
<location line="+50"/>
<source>The supplied passphrases do not match.</source>
<translation>As frases de segurança fornecidas não coincidem.</translation>
</message>
<message>
<location line="-38"/>
<source>Wallet unlock failed</source>
<translation>O desbloqueio da carteira falhou</translation>
</message>
<message>
<location line="+1"/>
<location line="+12"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>A frase de segurança introduzida para a desencriptação da carteira estava incorreta.</translation>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>A desencriptação da carteira falhou</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation>A frase de segurança da carteira foi alterada com êxito.</translation>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+280"/>
<source>Sign &message...</source>
<translation>Assinar &mensagem...</translation>
</message>
<message>
<location line="+242"/>
<source>Synchronizing with network...</source>
<translation>Sincronizando com a rede...</translation>
</message>
<message>
<location line="-308"/>
<source>&Overview</source>
<translation>Visã&o geral</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Mostrar visão geral da carteira</translation>
</message>
<message>
<location line="+17"/>
<source>&Transactions</source>
<translation>&Transações</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>Navegar pelo histórico de transações</translation>
</message>
<message>
<location line="+5"/>
<source>&Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit the list of stored addresses and labels</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-13"/>
<source>&Receive coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show the list of addresses for receiving payments</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-7"/>
<source>&Send coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>E&xit</source>
<translation>Fec&har</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Sair da aplicação</translation>
</message>
<message>
<location line="+4"/>
<source>Show information about Maieuticoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation>Sobre &Qt</translation>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation>Mostrar informação sobre Qt</translation>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&Opções...</translation>
</message>
<message>
<location line="+4"/>
<source>&Encrypt Wallet...</source>
<translation>E&ncriptar Carteira...</translation>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation>&Guardar Carteira...</translation>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation>Mudar &Palavra-passe...</translation>
</message>
<message numerus="yes">
<location line="+250"/>
<source>~%n block(s) remaining</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-247"/>
<source>&Export...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-62"/>
<source>Send coins to a Maieuticoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+45"/>
<source>Modify configuration options for Maieuticoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-14"/>
<source>Encrypt or decrypt wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup wallet to another location</source>
<translation>Faça uma cópia de segurança da carteira para outra localização</translation>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Mudar a frase de segurança utilizada na encriptação da carteira</translation>
</message>
<message>
<location line="+10"/>
<source>&Debug window</source>
<translation>Janela de &depuração</translation>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation>Abrir consola de diagnóstico e depuração</translation>
</message>
<message>
<location line="-5"/>
<source>&Verify message...</source>
<translation>&Verificar mensagem...</translation>
</message>
<message>
<location line="-200"/>
<source>Maieuticoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet</source>
<translation>Carteira</translation>
</message>
<message>
<location line="+178"/>
<source>&About Maieuticoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation>Mo&strar / Ocultar</translation>
</message>
<message>
<location line="+9"/>
<source>Unlock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>&Lock Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Lock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>&File</source>
<translation>&Ficheiro</translation>
</message>
<message>
<location line="+8"/>
<source>&Settings</source>
<translation>Con&figurações</translation>
</message>
<message>
<location line="+8"/>
<source>&Help</source>
<translation>A&juda</translation>
</message>
<message>
<location line="+9"/>
<source>Tabs toolbar</source>
<translation>Barra de separadores</translation>
</message>
<message>
<location line="+8"/>
<source>Actions toolbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+9"/>
<source>[testnet]</source>
<translation>[rede de testes]</translation>
</message>
<message>
<location line="+0"/>
<location line="+60"/>
<source>Maieuticoin client</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+70"/>
<source>%n active connection(s) to Maieuticoin network</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+40"/>
<source>Downloaded %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+413"/>
<source>Staking.<br>Your weight is %1<br>Network weight is %2<br>Expected time to earn reward is %3</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Not staking because wallet is locked</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is syncing</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because you don't have mature coins</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-403"/>
<source>%n second(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="-284"/>
<source>&Unlock Wallet...</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+288"/>
<source>%n minute(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Up to date</source>
<translation>Atualizado</translation>
</message>
<message>
<location line="+7"/>
<source>Catching up...</source>
<translation>Recuperando...</translation>
</message>
<message>
<location line="+10"/>
<source>Last received block was generated %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Sent transaction</source>
<translation>Transação enviada</translation>
</message>
<message>
<location line="+1"/>
<source>Incoming transaction</source>
<translation>Transação recebida</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation>Data: %1
Quantia: %2
Tipo: %3
Endereço: %4
</translation>
</message>
<message>
<location line="+100"/>
<location line="+15"/>
<source>URI handling</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<location line="+15"/>
<source>URI can not be parsed! This can be caused by an invalid Maieuticoin address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>A carteira está <b>encriptada</b> e atualmente <b>desbloqueada</b></translation>
</message>
<message>
<location line="+10"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>A carteira está <b>encriptada</b> e atualmente <b>bloqueada</b></translation>
</message>
<message>
<location line="+25"/>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+76"/>
<source>%n second(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n minute(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s)</source>
<translation><numerusform>%n hora</numerusform><numerusform>%n horas</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation><numerusform>%n dia</numerusform><numerusform>%n dias</numerusform></translation>
</message>
<message>
<location line="+18"/>
<source>Not staking</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../bitcoin.cpp" line="+109"/>
<source>A fatal error occurred. Maieuticoin can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+90"/>
<source>Network Alert</source>
<translation>Alerta da Rede</translation>
</message>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<location filename="../forms/coincontroldialog.ui" line="+14"/>
<source>Coin Control</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Quantity:</source>
<translation>Quantidade:</translation>
</message>
<message>
<location line="+32"/>
<source>Bytes:</source>
<translation>Bytes:</translation>
</message>
<message>
<location line="+48"/>
<source>Amount:</source>
<translation>Quantia:</translation>
</message>
<message>
<location line="+32"/>
<source>Priority:</source>
<translation>Prioridade:</translation>
</message>
<message>
<location line="+48"/>
<source>Fee:</source>
<translation>Taxa:</translation>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation>Saída Baixa:</translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="+551"/>
<source>no</source>
<translation>não</translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="+51"/>
<source>After Fee:</source>
<translation>Depois de taxas:</translation>
</message>
<message>
<location line="+35"/>
<source>Change:</source>
<translation>Troco:</translation>
</message>
<message>
<location line="+69"/>
<source>(un)select all</source>
<translation>(des)seleccionar todos</translation>
</message>
<message>
<location line="+13"/>
<source>Tree mode</source>
<translation>Modo de árvore</translation>
</message>
<message>
<location line="+16"/>
<source>List mode</source>
<translation>Modo lista</translation>
</message>
<message>
<location line="+45"/>
<source>Amount</source>
<translation>Quantia</translation>
</message>
<message>
<location line="+5"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Address</source>
<translation>Endereço</translation>
</message>
<message>
<location line="+5"/>
<source>Date</source>
<translation>Data</translation>
</message>
<message>
<location line="+5"/>
<source>Confirmations</source>
<translation>Confirmados</translation>
</message>
<message>
<location line="+3"/>
<source>Confirmed</source>
<translation>Confirmada</translation>
</message>
<message>
<location line="+5"/>
<source>Priority</source>
<translation>Prioridade</translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="-515"/>
<source>Copy address</source>
<translation>Copiar endereço</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Copiar rótulo</translation>
</message>
<message>
<location line="+1"/>
<location line="+26"/>
<source>Copy amount</source>
<translation>Copiar quantia</translation>
</message>
<message>
<location line="-25"/>
<source>Copy transaction ID</source>
<translation>Copiar ID da Transação</translation>
</message>
<message>
<location line="+24"/>
<source>Copy quantity</source>
<translation>Copiar quantidade</translation>
</message>
<message>
<location line="+2"/>
<source>Copy fee</source>
<translation>Taxa de cópia</translation>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation>Taxa depois de cópia</translation>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation>Copiar bytes</translation>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation>Prioridade de Cópia</translation>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation>Copiar output baixo</translation>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation>Copiar alteração</translation>
</message>
<message>
<location line="+317"/>
<source>highest</source>
<translation>o maior</translation>
</message>
<message>
<location line="+1"/>
<source>high</source>
<translation>alto</translation>
</message>
<message>
<location line="+1"/>
<source>medium-high</source>
<translation>médio-alto</translation>
</message>
<message>
<location line="+1"/>
<source>medium</source>
<translation>médio</translation>
</message>
<message>
<location line="+4"/>
<source>low-medium</source>
<translation>baixo-médio</translation>
</message>
<message>
<location line="+1"/>
<source>low</source>
<translation>baixo</translation>
</message>
<message>
<location line="+1"/>
<source>lowest</source>
<translation>O mais baixo</translation>
</message>
<message>
<location line="+155"/>
<source>DUST</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>yes</source>
<translation>sim</translation>
</message>
<message>
<location line="+10"/>
<source>This label turns red, if the transaction size is bigger than 10000 bytes.
This means a fee of at least %1 per kb is required.
Can vary +/- 1 Byte per input.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transactions with higher priority get more likely into a block.
This label turns red, if the priority is smaller than "medium".
This means a fee of at least %1 per kb is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if any recipient receives an amount smaller than %1.
This means a fee of at least %2 is required.
Amounts below 0.546 times the minimum relay fee are shown as DUST.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if the change is smaller than %1.
This means a fee of at least %2 is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+66"/>
<source>(no label)</source>
<translation>(Sem rótulo)</translation>
</message>
<message>
<location line="-9"/>
<source>change from %1 (%2)</source>
<translation>Alteração de %1 (%2)</translation>
</message>
<message>
<location line="+1"/>
<source>(change)</source>
<translation>(Alteração)</translation>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>Editar Endereço</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>&Rótulo</translation>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>E&ndereço</translation>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+20"/>
<source>New receiving address</source>
<translation>Novo endereço de entrada</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>Novo endereço de saída</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>Editar endereço de entrada</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>Editar endereço de saída</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>O endereço introduzido "%1" já se encontra no livro de endereços.</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid Maieuticoin address.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>Impossível desbloquear carteira.</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>Falha ao gerar nova chave.</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+420"/>
<location line="+12"/>
<source>Maieuticoin-Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation>Opções</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation>&Principal</translation>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation>Pagar &taxa de transação</translation>
</message>
<message>
<location line="+31"/>
<source>Reserved amount does not participate in staking and is therefore spendable at any time.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Reserve</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Automatically start Maieuticoin after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Start Maieuticoin on system login</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Detach databases at shutdown</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Network</source>
<translation>&Rede</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the Maieuticoin client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation>Mapear porta usando &UPnP</translation>
</message>
<message>
<location line="+7"/>
<source>Connect to the Maieuticoin network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation>&IP do proxy:</translation>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation>&Porta:</translation>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation>Porta do proxy (p.ex. 9050)</translation>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation>&Versão SOCKS:</translation>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation>Versão do proxy SOCKS (p.ex. 5)</translation>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation>&Janela</translation>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation>Apenas mostrar o ícone da bandeja após minimizar a janela.</translation>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>&Minimizar para a bandeja e não para a barra de ferramentas</translation>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation>Minimize ao invés de sair da aplicação quando a janela é fechada. Com esta opção selecionada, a aplicação apenas será encerrada quando escolher Sair da aplicação no menú.</translation>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation>M&inimizar ao fechar</translation>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation>Vis&ualização</translation>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation>&Linguagem da interface de utilizador:</translation>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting Maieuticoin.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation>&Unidade a usar em quantias:</translation>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation>Escolha a subdivisão unitária a ser mostrada por defeito na aplicação e ao enviar moedas.</translation>
</message>
<message>
<location line="+9"/>
<source>Whether to show Maieuticoin addresses in the transaction list or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation>Mostrar en&dereços na lista de transações</translation>
</message>
<message>
<location line="+7"/>
<source>Whether to show coin control features or not.</source>
<translation>Escolha para mostrar funcionalidades de controlo "coin" ou não.</translation>
</message>
<message>
<location line="+3"/>
<source>Display coin &control features (experts only!)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation>&OK</translation>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation>&Cancelar</translation>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+55"/>
<source>default</source>
<translation>padrão</translation>
</message>
<message>
<location line="+149"/>
<location line="+9"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting Maieuticoin.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation>O endereço de proxy introduzido é inválido. </translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>Formulário</translation>
</message>
<message>
<location line="+33"/>
<location line="+231"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the Maieuticoin network after a connection is established, but this process has not completed yet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-160"/>
<source>Stake:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-107"/>
<source>Wallet</source>
<translation>Carteira</translation>
</message>
<message>
<location line="+49"/>
<source>Spendable:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current spendable balance</source>
<translation>O seu saldo disponível para gastar</translation>
</message>
<message>
<location line="+71"/>
<source>Immature:</source>
<translation>Imaturo:</translation>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation>O saldo minado ainda não maturou</translation>
</message>
<message>
<location line="+20"/>
<source>Total:</source>
<translation>Total:</translation>
</message>
<message>
<location line="+16"/>
<source>Your current total balance</source>
<translation>O seu saldo total actual</translation>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation><b>Transações recentes</b></translation>
</message>
<message>
<location line="-108"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Total of coins that was staked, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../overviewpage.cpp" line="+113"/>
<location line="+1"/>
<source>out of sync</source>
<translation>fora de sincronia</translation>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation>Nome do Cliente</translation>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+348"/>
<source>N/A</source>
<translation>N/D</translation>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation>Versão do Cliente</translation>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation>&Informação</translation>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation>Usando versão OpenSSL</translation>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation>Tempo de início</translation>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation>Rede</translation>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation>Número de ligações</translation>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation>Cadeia de blocos</translation>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation>Número actual de blocos</translation>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation>Total estimado de blocos</translation>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation>Tempo do último bloco</translation>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation>&Abrir</translation>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show the Maieuticoin-Qt help message to get a list with possible Maieuticoin command-line options.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation>&Consola</translation>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation>Data de construção</translation>
</message>
<message>
<location line="-104"/>
<source>Maieuticoin - Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Maieuticoin Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation>Ficheiro de registo de depuração</translation>
</message>
<message>
<location line="+7"/>
<source>Open the Maieuticoin debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation>Limpar consola</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-33"/>
<source>Welcome to the Maieuticoin RPC console.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation>Use as setas para cima e para baixo para navegar no histórico e <b>Ctrl-L</b> para limpar o ecrã.</translation>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation>Digite <b>help</b> para visualizar os comandos disponíveis.</translation>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+182"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation>Enviar Moedas</translation>
</message>
<message>
<location line="+76"/>
<source>Coin Control Features</source>
<translation>Funcionalidades de Coin Controlo:</translation>
</message>
<message>
<location line="+20"/>
<source>Inputs...</source>
<translation>Entradas</translation>
</message>
<message>
<location line="+7"/>
<source>automatically selected</source>
<translation>Selecção automática</translation>
</message>
<message>
<location line="+19"/>
<source>Insufficient funds!</source>
<translation>Fundos insuficientes!</translation>
</message>
<message>
<location line="+77"/>
<source>Quantity:</source>
<translation>Quantidade:</translation>
</message>
<message>
<location line="+22"/>
<location line="+35"/>
<source>0</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-19"/>
<source>Bytes:</source>
<translation>Bytes:</translation>
</message>
<message>
<location line="+51"/>
<source>Amount:</source>
<translation>Quantia:</translation>
</message>
<message>
<location line="+22"/>
<location line="+86"/>
<location line="+86"/>
<location line="+32"/>
<source>0.00 BC</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-191"/>
<source>Priority:</source>
<translation>Prioridade:</translation>
</message>
<message>
<location line="+19"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Fee:</source>
<translation>Taxa:</translation>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation>Output Baixo:</translation>
</message>
<message>
<location line="+19"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>After Fee:</source>
<translation>Depois de taxas:</translation>
</message>
<message>
<location line="+35"/>
<source>Change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+50"/>
<source>custom change address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+106"/>
<source>Send to multiple recipients at once</source>
<translation>Enviar para múltiplos destinatários de uma vez</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation>Adicionar &Destinatário</translation>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>&Limpar Tudo</translation>
</message>
<message>
<location line="+28"/>
<source>Balance:</source>
<translation>Saldo:</translation>
</message>
<message>
<location line="+16"/>
<source>123.456 BC</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation>Confirme ação de envio</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation>&Enviar</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-173"/>
<source>Enter a Maieuticoin address (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Copy quantity</source>
<translation>Copiar quantidade</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Copiar quantia</translation>
</message>
<message>
<location line="+1"/>
<source>Copy fee</source>
<translation>Taxa de cópia</translation>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation>Taxa depois de cópia</translation>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation>Copiar bytes</translation>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation>Prioridade de Cópia</translation>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation>Copiar output baixo</translation>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation>Copiar alteração</translation>
</message>
<message>
<location line="+86"/>
<source><b>%1</b> to %2 (%3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation>Confirme envio de moedas</translation>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The recipient address is not valid, please recheck.</source>
<translation>O endereço de destino não é válido, por favor verifique.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation>A quantia a pagar deverá ser maior que 0.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation>A quantia excede o seu saldo.</translation>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation>O total excede o seu saldo quando a taxa de transação de %1 for incluída.</translation>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation>Endereço duplicado encontrado, apenas poderá enviar uma vez para cada endereço por cada operação de envio.</translation>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+251"/>
<source>WARNING: Invalid Maieuticoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>(no label)</source>
<translation>(Sem rótulo)</translation>
</message>
<message>
<location line="+4"/>
<source>WARNING: unknown change address</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation>Qu&antia:</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation>&Pagar A:</translation>
</message>
<message>
<location line="+24"/>
<location filename="../sendcoinsentry.cpp" line="+25"/>
<source>Enter a label for this address to add it to your address book</source>
<translation>Escreva um rótulo para este endereço para o adicionar ao seu livro de endereços</translation>
</message>
<message>
<location line="+9"/>
<source>&Label:</source>
<translation>Rótu&lo:</translation>
</message>
<message>
<location line="+18"/>
<source>The address to send the payment to (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Choose address from address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation>Cole endereço da área de transferência</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a Maieuticoin address (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation>Assinaturas - Assinar / Verificar uma Mensagem</translation>
</message>
<message>
<location line="+13"/>
<location line="+124"/>
<source>&Sign Message</source>
<translation>A&ssinar Mensagem</translation>
</message>
<message>
<location line="-118"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation>Pode assinar mensagens com os seus endereços para provar que são seus. Tenha atenção ao assinar mensagens ambíguas, pois ataques de phishing podem tentar enganá-lo, de modo a assinar a sua identidade para os atacantes. Apenas assine declarações completamente detalhadas com as quais concorde.</translation>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+203"/>
<source>Choose an address from the address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-193"/>
<location line="+203"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="-193"/>
<source>Paste address from clipboard</source>
<translation>Cole endereço da área de transferência</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation>Escreva aqui a mensagem que deseja assinar</translation>
</message>
<message>
<location line="+24"/>
<source>Copy the current signature to the system clipboard</source>
<translation>Copiar a assinatura actual para a área de transferência</translation>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this Maieuticoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all sign message fields</source>
<translation>Repôr todos os campos de assinatura de mensagem</translation>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation>Limpar &Tudo</translation>
</message>
<message>
<location line="-87"/>
<location line="+70"/>
<source>&Verify Message</source>
<translation>&Verificar Mensagem</translation>
</message>
<message>
<location line="-64"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation>Introduza o endereço de assinatura, mensagem (assegure-se de copiar quebras de linha, espaços, tabuladores, etc. exactamente) e assinatura abaixo para verificar a mensagem. Tenha atenção para não ler mais na assinatura do que o que estiver na mensagem assinada, para evitar ser enganado por um atacante que se encontre entre si e quem assinou a mensagem.</translation>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified Maieuticoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all verify message fields</source>
<translation>Repôr todos os campos de verificação de mensagem</translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a Maieuticoin address (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation>Clique "Assinar mensagem" para gerar a assinatura</translation>
</message>
<message>
<location line="+3"/>
<source>Enter Maieuticoin signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation>O endereço introduzido é inválido. </translation>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation>Por favor verifique o endereço e tente de novo.</translation>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation>O endereço introduzido não refere a chave alguma.</translation>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation>O desbloqueio da carteira foi cancelado.</translation>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation>A chave privada para o endereço introduzido não está disponível.</translation>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation>Assinatura de mensagem falhou.</translation>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation>Mensagem assinada.</translation>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation>A assinatura não pôde ser descodificada.</translation>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation>Por favor verifique a assinatura e tente de novo.</translation>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation>A assinatura não condiz com o conteúdo da mensagem.</translation>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation>Verificação da mensagem falhou.</translation>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation>Mensagem verificada.</translation>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+19"/>
<source>Open until %1</source>
<translation>Aberto até %1</translation>
</message>
<message numerus="yes">
<location line="-2"/>
<source>Open for %n block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+8"/>
<source>conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/offline</source>
<translation>%1/desligado</translation>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation>%1/não confirmada</translation>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation>%1 confirmações</translation>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation>Estado</translation>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation><numerusform>, transmitida através de %n nó</numerusform><numerusform>, transmitida através de %n nós</numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Data</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation>Origem</translation>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation>Gerado</translation>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation>De</translation>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation>Para</translation>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation>endereço próprio</translation>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation>rótulo</translation>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation>Crédito</translation>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation><numerusform>matura daqui por %n bloco</numerusform><numerusform>matura daqui por %n blocos</numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation>não aceite</translation>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation>Débito</translation>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation>Taxa de transação</translation>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation>Valor líquido</translation>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation>Mensagem</translation>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation>Comentário</translation>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation>ID da Transação</translation>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 510 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation>Informação de depuração</translation>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation>Transação</translation>
</message>
<message>
<location line="+5"/>
<source>Inputs</source>
<translation>Entradas</translation>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>Quantia</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation>verdadeiro</translation>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation>falso</translation>
</message>
<message>
<location line="-211"/>
<source>, has not been successfully broadcast yet</source>
<translation>, ainda não foi transmitida com sucesso</translation>
</message>
<message>
<location line="+35"/>
<source>unknown</source>
<translation>desconhecido</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation>Detalhes da transação</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Esta janela mostra uma descrição detalhada da transação</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+226"/>
<source>Date</source>
<translation>Data</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation>Tipo</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Endereço</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>Quantia</translation>
</message>
<message>
<location line="+60"/>
<source>Open until %1</source>
<translation>Aberto até %1</translation>
</message>
<message>
<location line="+12"/>
<source>Confirmed (%1 confirmations)</source>
<translation>Confirmada (%1 confirmações)</translation>
</message>
<message numerus="yes">
<location line="-15"/>
<source>Open for %n more block(s)</source>
<translation><numerusform>Aberta por mais %n bloco</numerusform><numerusform>Aberta por mais %n blocos</numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirming (%1 of %2 recommended confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Immature (%1 confirmations, will be available after %2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation>Este bloco não foi recebido por outros nós e provavelmente não será aceite pela rede!</translation>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation>Gerado mas não aceite</translation>
</message>
<message>
<location line="+42"/>
<source>Received with</source>
<translation>Recebido com</translation>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation>Recebido de</translation>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation>Enviado para</translation>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation>Pagamento ao próprio</translation>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation>Minadas</translation>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation>(n/d)</translation>
</message>
<message>
<location line="+190"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation>Estado da transação. Pairar por cima deste campo para mostrar o número de confirmações.</translation>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation>Data e hora a que esta transação foi recebida.</translation>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation>Tipo de transação.</translation>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation>Endereço de destino da transação.</translation>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation>Quantia retirada ou adicionada ao saldo.</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+55"/>
<location line="+16"/>
<source>All</source>
<translation>Todas</translation>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation>Hoje</translation>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation>Esta semana</translation>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation>Este mês</translation>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation>Mês passado</translation>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation>Este ano</translation>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation>Período...</translation>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation>Recebida com</translation>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation>Enviada para</translation>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation>Para si</translation>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation>Minadas</translation>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation>Outras</translation>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation>Escreva endereço ou rótulo a procurar</translation>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation>Quantia mínima</translation>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation>Copiar endereço</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Copiar rótulo</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Copiar quantia</translation>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation>Copiar ID da Transação</translation>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation>Editar rótulo</translation>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation>Mostrar detalhes da transação</translation>
</message>
<message>
<location line="+144"/>
<source>Export Transaction Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Ficheiro separado por vírgula (*.csv)</translation>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation>Confirmada</translation>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>Data</translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation>Tipo</translation>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>Rótulo</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Endereço</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation>Quantia</translation>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation>ID</translation>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation>Período:</translation>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation>até</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+206"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+33"/>
<source>Maieuticoin version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Usage:</source>
<translation>Utilização:</translation>
</message>
<message>
<location line="+1"/>
<source>Send command to -server or maieuticoind</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>List commands</source>
<translation>Listar comandos</translation>
</message>
<message>
<location line="+1"/>
<source>Get help for a command</source>
<translation>Obter ajuda para um comando</translation>
</message>
<message>
<location line="+2"/>
<source>Options:</source>
<translation>Opções:</translation>
</message>
<message>
<location line="+2"/>
<source>Specify configuration file (default: maieuticoin.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Specify pid file (default: maieuticoind.pid)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify wallet file (within data directory)</source>
<translation>Especifique ficheiro de carteira (dentro da pasta de dados)</translation>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation>Especificar pasta de dados</translation>
</message>
<message>
<location line="+2"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation>Definir o tamanho da cache de base de dados em megabytes (por defeito: 25)</translation>
</message>
<message>
<location line="+1"/>
<source>Set database disk log size in megabytes (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Listen for connections on <port> (default: 15714 or testnet: 25714)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation>Manter no máximo <n> ligações a outros nós da rede (por defeito: 125)</translation>
</message>
<message>
<location line="+3"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation>Ligar a um nó para recuperar endereços de pares, e desligar</translation>
</message>
<message>
<location line="+1"/>
<source>Specify your own public address</source>
<translation>Especifique o seu endereço público</translation>
</message>
<message>
<location line="+5"/>
<source>Bind to given address. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Stake your coins to support network and gain reward (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation>Tolerância para desligar nós mal-formados (por defeito: 100)</translation>
</message>
<message>
<location line="+1"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>Número de segundos a impedir que nós mal-formados se liguem de novo (por defeito: 86400)</translation>
</message>
<message>
<location line="-44"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation>Ocorreu um erro ao definir a porta %u do serviço RPC a escutar em IPv4: %s</translation>
</message>
<message>
<location line="+51"/>
<source>Detach block and address databases. Increases shutdown time (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+109"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-87"/>
<source>Listen for JSON-RPC connections on <port> (default: 15715 or testnet: 25715)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-11"/>
<source>Accept command line and JSON-RPC commands</source>
<translation>Aceitar comandos da consola e JSON-RPC</translation>
</message>
<message>
<location line="+101"/>
<source>Error: Transaction creation failed </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: Wallet locked, unable to create transaction </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-8"/>
<source>Importing blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Importing bootstrap blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-88"/>
<source>Run in the background as a daemon and accept commands</source>
<translation>Correr o processo como um daemon e aceitar comandos</translation>
</message>
<message>
<location line="+1"/>
<source>Use the test network</source>
<translation>Utilizar a rede de testes - testnet</translation>
</message>
<message>
<location line="-24"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation>Aceitar ligações externas (padrão: 1 sem -proxy ou -connect)</translation>
</message>
<message>
<location line="-38"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation>Ocorreu um erro ao definir a porta %u do serviço RPC a escutar em IPv6, a usar IPv4: %s</translation>
</message>
<message>
<location line="+117"/>
<source>Error initializing database environment %s! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-20"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation>Atenção: -paytxfee está definida com um valor muito alto! Esta é a taxa que irá pagar se enviar uma transação.</translation>
</message>
<message>
<location line="+61"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong Maieuticoin will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-31"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation>Atenção: erro ao ler wallet.dat! Todas as chaves foram lidas correctamente, mas dados de transação ou do livro de endereços podem estar em falta ou incorrectos.</translation>
</message>
<message>
<location line="-18"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation>Atenção: wallet.dat corrupto, dados recuperados! wallet.dat original salvo como wallet.{timestamp}.bak em %s; se o seu saldo ou transações estiverem incorrectos deverá recuperar de uma cópia de segurança.</translation>
</message>
<message>
<location line="-30"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation>Tentar recuperar chaves privadas de um wallet.dat corrupto</translation>
</message>
<message>
<location line="+4"/>
<source>Block creation options:</source>
<translation>Opções de criação de bloco:</translation>
</message>
<message>
<location line="-62"/>
<source>Connect only to the specified node(s)</source>
<translation>Apenas ligar ao(s) nó(s) especificado(s)</translation>
</message>
<message>
<location line="+4"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation>Descobrir endereço IP próprio (padrão: 1 ao escutar e sem -externalip)</translation>
</message>
<message>
<location line="+94"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation>Falhou a escutar em qualquer porta. Use -listen=0 se quer isto.</translation>
</message>
<message>
<location line="-90"/>
<source>Find peers using DNS lookup (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync checkpoints policy (default: strict)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+83"/>
<source>Invalid -tor address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Invalid amount for -reservebalance=<amount></source>
<translation type="unfinished"/>
</message>
<message>
<location line="-82"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation>Armazenamento intermédio de recepção por ligação, <n>*1000 bytes (por defeito: 5000)</translation>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation>Armazenamento intermédio de envio por ligação, <n>*1000 bytes (por defeito: 1000)</translation>
</message>
<message>
<location line="-16"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation>Apenas ligar a nós na rede <net> (IPv4, IPv6 ou Tor)</translation>
</message>
<message>
<location line="+28"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Prepend debug output with timestamp</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source>
<translation>Opções SSL: (ver a Wiki Bitcoin para instruções de configuração SSL)</translation>
</message>
<message>
<location line="-74"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>Enviar informação de rastreio/depuração para a consola e não para o ficheiro debug.log</translation>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation>Definir tamanho minímo de um bloco em bytes (por defeito: 0)</translation>
</message>
<message>
<location line="-29"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation>Encolher ficheiro debug.log ao iniciar o cliente (por defeito: 1 sem -debug definido)</translation>
</message>
<message>
<location line="-42"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation>Especificar tempo de espera da ligação em millisegundos (por defeito: 5000)</translation>
</message>
<message>
<location line="+109"/>
<source>Unable to sign checkpoint, wrong checkpointkey?
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-80"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation>Usar UPnP para mapear a porta de escuta (padrão: 0)</translation>
</message>
<message>
<location line="-1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation>Usar UPnP para mapear a porta de escuta (padrão: 1 ao escutar)</translation>
</message>
<message>
<location line="-25"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<source>Username for JSON-RPC connections</source>
<translation>Nome de utilizador para ligações JSON-RPC</translation>
</message>
<message>
<location line="+47"/>
<source>Verifying database integrity...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+57"/>
<source>WARNING: syncronized checkpoint violation detected, but skipped!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation>Atenção: Esta versão está obsoleta, é necessário actualizar!</translation>
</message>
<message>
<location line="-48"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation>wallet.dat corrupta, recuperação falhou</translation>
</message>
<message>
<location line="-54"/>
<source>Password for JSON-RPC connections</source>
<translation>Palavra-passe para ligações JSON-RPC</translation>
</message>
<message>
<location line="-84"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=maieuticoinrpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "Maieuticoin Alert" [email protected]
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Find peers using internet relay chat (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>Permitir ligações JSON-RPC do endereço IP especificado</translation>
</message>
<message>
<location line="+1"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation>Enviar comandos para o nó a correr em <ip> (por defeito: 127.0.0.1)</translation>
</message>
<message>
<location line="+1"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation>Executar comando quando mudar o melhor bloco (no comando, %s é substituído pela hash do bloco)</translation>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation>Executar comando quando uma das transações na carteira mudar (no comando, %s é substituído pelo ID da Transação)</translation>
</message>
<message>
<location line="+3"/>
<source>Require a confirmations for change (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Upgrade wallet to latest format</source>
<translation>Atualize a carteira para o formato mais recente</translation>
</message>
<message>
<location line="+1"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation>Definir o tamanho da memória de chaves para <n> (por defeito: 100)</translation>
</message>
<message>
<location line="+1"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>Reexaminar a cadeia de blocos para transações em falta na carteira</translation>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 2500, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-6, default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Imports blocks from external blk000?.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>Usar OpenSSL (https) para ligações JSON-RPC</translation>
</message>
<message>
<location line="+1"/>
<source>Server certificate file (default: server.cert)</source>
<translation>Ficheiro de certificado do servidor (por defeito: server.cert)</translation>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation>Chave privada do servidor (por defeito: server.pem)</translation>
</message>
<message>
<location line="+1"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+53"/>
<source>Error: Wallet unlocked for staking only, unable to create transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-158"/>
<source>This help message</source>
<translation>Esta mensagem de ajuda</translation>
</message>
<message>
<location line="+95"/>
<source>Wallet %s resides outside data directory %s.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot obtain a lock on data directory %s. Maieuticoin is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-98"/>
<source>Maieuticoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+140"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation>Incapaz de vincular a %s neste computador (vínculo retornou erro %d, %s)</translation>
</message>
<message>
<location line="-130"/>
<source>Connect through socks proxy</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation>Permitir procuras DNS para -addnode, -seednode e -connect</translation>
</message>
<message>
<location line="+122"/>
<source>Loading addresses...</source>
<translation>Carregar endereços...</translation>
</message>
<message>
<location line="-15"/>
<source>Error loading blkindex.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation>Erro ao carregar wallet.dat: Carteira danificada</translation>
</message>
<message>
<location line="+4"/>
<source>Error loading wallet.dat: Wallet requires newer version of Maieuticoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Wallet needed to be rewritten: restart Maieuticoin to complete</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat</source>
<translation>Erro ao carregar wallet.dat</translation>
</message>
<message>
<location line="-16"/>
<source>Invalid -proxy address: '%s'</source>
<translation>Endereço -proxy inválido: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation>Rede desconhecida especificada em -onlynet: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation>Versão desconhecida de proxy -socks requisitada: %i</translation>
</message>
<message>
<location line="+4"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation>Não conseguiu resolver endereço -bind: '%s'</translation>
</message>
<message>
<location line="+2"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation>Não conseguiu resolver endereço -externalip: '%s'</translation>
</message>
<message>
<location line="-24"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation>Quantia inválida para -paytxfee=<amount>: '%s'</translation>
</message>
<message>
<location line="+44"/>
<source>Error: could not start node</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Invalid amount</source>
<translation>Quantia inválida</translation>
</message>
<message>
<location line="+1"/>
<source>Insufficient funds</source>
<translation>Fundos insuficientes</translation>
</message>
<message>
<location line="-34"/>
<source>Loading block index...</source>
<translation>Carregar índice de blocos...</translation>
</message>
<message>
<location line="-103"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation>Adicione um nó ao qual se ligar e tentar manter a ligação aberta</translation>
</message>
<message>
<location line="+122"/>
<source>Unable to bind to %s on this computer. Maieuticoin is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-97"/>
<source>Fee per KB to add to transactions you send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+55"/>
<source>Invalid amount for -mininput=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Loading wallet...</source>
<translation>Carregar carteira...</translation>
</message>
<message>
<location line="+8"/>
<source>Cannot downgrade wallet</source>
<translation>Impossível mudar a carteira para uma versão anterior</translation>
</message>
<message>
<location line="+1"/>
<source>Cannot initialize keypool</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot write default address</source>
<translation>Impossível escrever endereço por defeito</translation>
</message>
<message>
<location line="+1"/>
<source>Rescanning...</source>
<translation>Reexaminando...</translation>
</message>
<message>
<location line="+5"/>
<source>Done loading</source>
<translation>Carregamento completo</translation>
</message>
<message>
<location line="-167"/>
<source>To use the %s option</source>
<translation>Para usar a opção %s</translation>
</message>
<message>
<location line="+14"/>
<source>Error</source>
<translation>Erro</translation>
</message>
<message>
<location line="+6"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation>Deverá definir rpcpassword=<password> no ficheiro de configuração:
%s
Se o ficheiro não existir, crie-o com permissões de leitura apenas para o dono.</translation>
</message>
</context>
</TS> | {
"content_hash": "7895f1f5d9cef7d4ded3d62abaf7a5f6",
"timestamp": "",
"source": "github",
"line_count": 3286,
"max_line_length": 395,
"avg_line_length": 36.11442483262325,
"alnum_prop": 0.6104894162060132,
"repo_name": "snowballdaemons/MMXIV-Theme",
"id": "1666d3ab5a83ffb54eb62506c3b1b4341498a267",
"size": "119136",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/qt/locale/bitcoin_pt_PT.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Assembly",
"bytes": "51312"
},
{
"name": "C",
"bytes": "36935"
},
{
"name": "C++",
"bytes": "3530990"
},
{
"name": "CSS",
"bytes": "1127"
},
{
"name": "Makefile",
"bytes": "8905"
},
{
"name": "Objective-C++",
"bytes": "2620"
},
{
"name": "Python",
"bytes": "45767"
},
{
"name": "Shell",
"bytes": "9083"
}
],
"symlink_target": ""
} |
module SimpleForm
module ActionViewExtensions
# Base builder to handle each instance of a collection of radio buttons / check boxes.
# Based on (at this time upcoming) Rails 4 collection builders.
class BuilderBase #:nodoc:
attr_reader :object, :text, :value
def initialize(form_builder, method_name, object, sanitized_attribute_name, text,
value, input_html_options)
@form_builder = form_builder
@method_name = method_name
@object = object
@sanitized_attribute_name = sanitized_attribute_name
@text = text
@value = value
@input_html_options = input_html_options
end
def label(label_html_options={}, &block)
@form_builder.label(@sanitized_attribute_name, @text, label_html_options, &block)
end
end
# Handles generating an instance of radio + label for collection_radio_buttons.
class RadioButtonBuilder < BuilderBase #:nodoc:
def radio_button(extra_html_options={})
html_options = extra_html_options.merge(@input_html_options)
@form_builder.radio_button(@method_name, @value, html_options)
end
end
# Handles generating an instance of check box + label for collection_check_boxes.
class CheckBoxBuilder < BuilderBase #:nodoc:
def check_box(extra_html_options={})
html_options = extra_html_options.merge(@input_html_options)
@form_builder.check_box(@method_name, html_options, @value, nil)
end
end
# A collection of methods required by simple_form but added to rails default form.
# This means that you can use such methods outside simple_form context.
module Builder
# Create a collection of radio inputs for the attribute. Basically this
# helper will create a radio input associated with a label for each
# text/value option in the collection, using value_method and text_method
# to convert these text/value. You can give a symbol or a proc to both
# value_method and text_method, that will be evaluated for each item in
# the collection.
#
# == Examples
#
# form_for @user do |f|
# f.collection_radio_buttons :options, [[true, 'Yes'] ,[false, 'No']], :first, :last
# end
#
# <input id="user_options_true" name="user[options]" type="radio" value="true" />
# <label class="collection_radio_buttons" for="user_options_true">Yes</label>
# <input id="user_options_false" name="user[options]" type="radio" value="false" />
# <label class="collection_radio_buttons" for="user_options_false">No</label>
#
# It is also possible to give a block that should generate the radio +
# label. To wrap the radio with the label, for instance:
#
# form_for @user do |f|
# f.collection_radio_buttons(
# :options, [[true, 'Yes'] ,[false, 'No']], :first, :last
# ) do |b|
# b.label { b.radio_button + b.text }
# end
# end
#
# == Options
#
# Collection radio accepts some extra options:
#
# * checked => the value that should be checked initially.
#
# * disabled => the value or values that should be disabled. Accepts a single
# item or an array of items.
#
# * collection_wrapper_tag => the tag to wrap the entire collection.
#
# * collection_wrapper_class => the CSS class to use for collection_wrapper_tag
#
# * item_wrapper_tag => the tag to wrap each item in the collection.
#
# * item_wrapper_class => the CSS class to use for item_wrapper_tag
#
# * a block => to generate the label + radio or any other component.
#
def collection_radio_buttons(attribute, collection, value_method, text_method, options={}, html_options={})
rendered_collection = render_collection(
collection, value_method, text_method, options, html_options
) do |item, value, text, default_html_options|
builder = instantiate_builder(RadioButtonBuilder, attribute, item, value, text, default_html_options)
if block_given?
yield builder
else
builder.radio_button + builder.label(:class => "collection_radio_buttons")
end
end
wrap_rendered_collection(rendered_collection, options)
end
# deprecated
def collection_radio(*args, &block)
SimpleForm.deprecation_warn "The `collection_radio` helper is deprecated, " \
"please use `collection_radio_buttons` instead."
collection_radio_buttons(*args, &block)
end
# Creates a collection of check boxes for each item in the collection,
# associated with a clickable label. Use value_method and text_method to
# convert items in the collection for use as text/value in check boxes.
# You can give a symbol or a proc to both value_method and text_method,
# that will be evaluated for each item in the collection.
#
# == Examples
#
# form_for @user do |f|
# f.collection_check_boxes :options, [[true, 'Yes'] ,[false, 'No']], :first, :last
# end
#
# <input name="user[options][]" type="hidden" value="" />
# <input id="user_options_true" name="user[options][]" type="checkbox" value="true" />
# <label class="collection_check_boxes" for="user_options_true">Yes</label>
# <input name="user[options][]" type="hidden" value="" />
# <input id="user_options_false" name="user[options][]" type="checkbox" value="false" />
# <label class="collection_check_boxes" for="user_options_false">No</label>
#
# It is also possible to give a block that should generate the check box +
# label. To wrap the check box with the label, for instance:
#
# form_for @user do |f|
# f.collection_check_boxes(
# :options, [[true, 'Yes'] ,[false, 'No']], :first, :last
# ) do |b|
# b.label { b.check_box + b.text }
# end
# end
#
# == Options
#
# Collection check box accepts some extra options:
#
# * checked => the value or values that should be checked initially. Accepts
# a single item or an array of items. It overrides existing associations.
#
# * disabled => the value or values that should be disabled. Accepts a single
# item or an array of items.
#
# * collection_wrapper_tag => the tag to wrap the entire collection.
#
# * collection_wrapper_class => the CSS class to use for collection_wrapper_tag. This option
# is ignored if the :collection_wrapper_tag option is blank.
#
# * item_wrapper_tag => the tag to wrap each item in the collection.
#
# * item_wrapper_class => the CSS class to use for item_wrapper_tag
#
# * a block => to generate the label + check box or any other component.
#
def collection_check_boxes(attribute, collection, value_method, text_method, options={}, html_options={})
rendered_collection = render_collection(
collection, value_method, text_method, options, html_options
) do |item, value, text, default_html_options|
default_html_options[:multiple] = true
builder = instantiate_builder(CheckBoxBuilder, attribute, item, value, text, default_html_options)
if block_given?
yield builder
else
builder.check_box + builder.label(:class => "collection_check_boxes")
end
end
# Append a hidden field to make sure something will be sent back to the
# server if all checkboxes are unchecked.
hidden = @template.hidden_field_tag("#{object_name}[#{attribute}][]", "", :id => nil)
wrap_rendered_collection(rendered_collection + hidden, options)
end
# Wrapper for using SimpleForm inside a default rails form.
# Example:
#
# form_for @user do |f|
# f.simple_fields_for :posts do |posts_form|
# # Here you have all simple_form methods available
# posts_form.input :title
# end
# end
def simple_fields_for(*args, &block)
options = args.extract_options!
options[:wrapper] ||= self.options[:wrapper]
options[:defaults] ||= self.options[:defaults]
if self.class < ActionView::Helpers::FormBuilder
options[:builder] ||= self.class
else
options[:builder] ||= SimpleForm::FormBuilder
end
fields_for(*(args << options), &block)
end
private
def instantiate_builder(builder_class, attribute, item, value, text, html_options)
builder_class.new(self, attribute, item,
sanitize_attribute_name(attribute, value), text, value, html_options)
end
# Generate default options for collection helpers, such as :checked and
# :disabled.
def default_html_options_for_collection(item, value, options, html_options) #:nodoc:
html_options = html_options.dup
[:checked, :selected, :disabled].each do |option|
current_option = options[option]
next if current_option.nil?
accept = if current_option.respond_to?(:call)
current_option.call(item)
else
Array(current_option).map(&:to_s).include?(value.to_s)
end
if accept
html_options[option] = true
elsif option == :checked
html_options[option] = false
end
end
html_options
end
def sanitize_attribute_name(attribute, value) #:nodoc:
"#{attribute}_#{value.to_s.gsub(/\s/, "_").gsub(/[^-\w]/, "").downcase}"
end
def render_collection(collection, value_method, text_method, options={}, html_options={}) #:nodoc:
item_wrapper_tag = options.fetch(:item_wrapper_tag, :span)
item_wrapper_class = options[:item_wrapper_class]
collection.map do |item|
value = value_for_collection(item, value_method)
text = value_for_collection(item, text_method)
default_html_options = default_html_options_for_collection(item, value, options, html_options)
rendered_item = yield item, value, text, default_html_options
item_wrapper_tag ? @template.content_tag(item_wrapper_tag, rendered_item, :class => item_wrapper_class) : rendered_item
end.join.html_safe
end
def value_for_collection(item, value) #:nodoc:
value.respond_to?(:call) ? value.call(item) : item.send(value)
end
def wrap_rendered_collection(collection, options)
wrapper_tag = options[:collection_wrapper_tag]
if wrapper_tag
wrapper_class = options[:collection_wrapper_class]
@template.content_tag(wrapper_tag, collection, :class => wrapper_class)
else
collection
end
end
end
end
end
module ActionView::Helpers
class FormBuilder
include SimpleForm::ActionViewExtensions::Builder
# Override default Rails collection_select helper to handle lambdas/procs in
# text and value methods, so it works the same way as collection_radio_buttons
# and collection_check_boxes in SimpleForm. If none of text/value methods is a
# callable object, then it just delegates back to original collection select.
#
alias :original_collection_select :collection_select
def collection_select(attribute, collection, value_method, text_method, options={}, html_options={})
if value_method.respond_to?(:call) || text_method.respond_to?(:call)
collection = collection.map do |item|
value = value_for_collection(item, value_method)
text = value_for_collection(item, text_method)
default_html_options = default_html_options_for_collection(item, value, options, html_options)
disabled = value if default_html_options[:disabled]
selected = value if default_html_options[:selected]
[value, text, selected, disabled]
end
[:disabled, :selected].each do |option|
option_value = collection.map(&:pop).compact
options[option] = option_value if option_value.present?
end
value_method, text_method = :first, :last
end
original_collection_select(attribute, collection, value_method, text_method, options, html_options)
end
end
# Backport Rails fix to checkbox tag element, which does not generate the
# hidden input when given nil as unchecked value. This is to make SimpleForm
# collection check boxes helper to work fine with nested boolean style, when
# they are wrapped in labels. Without that, clicking in the label would
# actually change the hidden input, instead of the checkbox.
# FIXME: remove when support only Rails >= 3.2.2.
class InstanceTag
def to_check_box_tag(options = {}, checked_value = "1", unchecked_value = "0")
options = options.stringify_keys
options["type"] = "checkbox"
options["value"] = checked_value
if options.has_key?("checked")
cv = options.delete "checked"
checked = cv == true || cv == "checked"
else
checked = self.class.check_box_checked?(value(object), checked_value)
end
options["checked"] = "checked" if checked
if options["multiple"]
add_default_name_and_id_for_value(checked_value, options)
options.delete("multiple")
else
add_default_name_and_id(options)
end
hidden = unchecked_value ? tag("input", "name" => options["name"], "type" => "hidden", "value" => unchecked_value, "disabled" => options["disabled"]) : "".html_safe
checkbox = tag("input", options)
hidden + checkbox
end
end
end
| {
"content_hash": "360cfacf45d2cf9de5ea9fd264441532",
"timestamp": "",
"source": "github",
"line_count": 340,
"max_line_length": 170,
"avg_line_length": 41.56764705882353,
"alnum_prop": 0.6168541710889408,
"repo_name": "kevstessens/docnetrails",
"id": "2fe9b77bc4754dd8cc674d450aff28c143e4947d",
"size": "14133",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "vendor/bundle/gems/simple_form-2.0.4/lib/simple_form/action_view_extensions/builder.rb",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "100801"
},
{
"name": "CoffeeScript",
"bytes": "3893"
},
{
"name": "JavaScript",
"bytes": "282009"
},
{
"name": "Ruby",
"bytes": "100228"
}
],
"symlink_target": ""
} |
package com.asakusafw.testdriver.html;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import java.io.File;
import java.io.IOException;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import com.asakusafw.testdriver.core.DataModelDefinition;
import com.asakusafw.testdriver.core.Difference;
import com.asakusafw.testdriver.core.DifferenceSink;
import com.asakusafw.testdriver.core.DifferenceSinkFactory;
import com.asakusafw.testdriver.core.TestContext;
import com.asakusafw.testdriver.core.TestToolRepository;
import com.asakusafw.testdriver.excel.Simple;
import com.asakusafw.testdriver.model.SimpleDataModelDefinition;
/**
* Test for {@link HtmlDifferenceSinkProvider}.
*/
public class HtmlDifferenceSinkProviderTest {
static final DataModelDefinition<Simple> SIMPLE = new SimpleDataModelDefinition<>(Simple.class);
/**
* temporary folder.
*/
@Rule
public final TemporaryFolder temp = new TemporaryFolder();
/**
* Load the provider via SPI.
* @throws Exception if failed
*/
@Test
public void spi() throws Exception {
TestToolRepository repo = new TestToolRepository(getClass().getClassLoader());
File file = temp.newFile("example.html");
file.delete();
DifferenceSinkFactory factory = repo.getDifferenceSinkFactory(file.toURI());
try (DifferenceSink sink = factory.createSink(SIMPLE, new TestContext.Empty())) {
Simple expected = new Simple();
expected.text = "expected";
Simple actual = new Simple();
actual.text = "actual";
sink.put(new Difference(
SIMPLE.toReflection(expected),
SIMPLE.toReflection(actual),
"testing"));
}
assertThat(file.exists(), is(true));
}
/**
* Attempt to load the provider via SPI, but its extension is wrong.
* @throws Exception if failed
*/
@Test
public void spi_wrong_extension() throws Exception {
TestToolRepository repo = new TestToolRepository(getClass().getClassLoader());
File file = temp.newFile("example.invalid");
file.delete();
DifferenceSinkFactory factory = repo.getDifferenceSinkFactory(file.toURI());
try (DifferenceSink sink = factory.createSink(SIMPLE, new TestContext.Empty())) {
sink.close();
fail();
} catch (IOException e) {
// ok.
}
}
}
| {
"content_hash": "06ba7d52dc3272f5a8656026c07a2459",
"timestamp": "",
"source": "github",
"line_count": 81,
"max_line_length": 100,
"avg_line_length": 31.19753086419753,
"alnum_prop": 0.66798575385833,
"repo_name": "akirakw/asakusafw",
"id": "f7eb1cebdf6f0b727632f7d81ab06632039a0382",
"size": "3139",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "testing-project/asakusa-test-data-provider/src/test/java/com/asakusafw/testdriver/html/HtmlDifferenceSinkProviderTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "31"
},
{
"name": "CSS",
"bytes": "650"
},
{
"name": "Groovy",
"bytes": "275943"
},
{
"name": "Java",
"bytes": "12250766"
},
{
"name": "Lex",
"bytes": "12506"
},
{
"name": "Shell",
"bytes": "10149"
}
],
"symlink_target": ""
} |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>V8 API Reference Guide for node.js v0.4.9: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">V8 API Reference Guide for node.js v0.4.9
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacev8.html">v8</a></li><li class="navelem"><a class="el" href="classv8_1_1_output_stream.html">OutputStream</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">v8::OutputStream Member List</div> </div>
</div><!--header-->
<div class="contents">
<p>This is the complete list of members for <a class="el" href="classv8_1_1_output_stream.html">v8::OutputStream</a>, including all inherited members.</p>
<table class="directory">
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_output_stream.html#a6c5c308367fc5776bcbedff0e94d6049">EndOfStream</a>()=0</td><td class="entry"><a class="el" href="classv8_1_1_output_stream.html">v8::OutputStream</a></td><td class="entry"><span class="mlabel">pure virtual</span></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_output_stream.html#a93bdaa790cbd66a7283fad2cca3f48f7">GetChunkSize</a>()</td><td class="entry"><a class="el" href="classv8_1_1_output_stream.html">v8::OutputStream</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">virtual</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_output_stream.html#ae64c7719c109c5a7404caf4f311dc32d">GetOutputEncoding</a>()</td><td class="entry"><a class="el" href="classv8_1_1_output_stream.html">v8::OutputStream</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">virtual</span></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>kAbort</b> enum value (defined in <a class="el" href="classv8_1_1_output_stream.html">v8::OutputStream</a>)</td><td class="entry"><a class="el" href="classv8_1_1_output_stream.html">v8::OutputStream</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>kAscii</b> enum value (defined in <a class="el" href="classv8_1_1_output_stream.html">v8::OutputStream</a>)</td><td class="entry"><a class="el" href="classv8_1_1_output_stream.html">v8::OutputStream</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>kContinue</b> enum value (defined in <a class="el" href="classv8_1_1_output_stream.html">v8::OutputStream</a>)</td><td class="entry"><a class="el" href="classv8_1_1_output_stream.html">v8::OutputStream</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>OutputEncoding</b> enum name (defined in <a class="el" href="classv8_1_1_output_stream.html">v8::OutputStream</a>)</td><td class="entry"><a class="el" href="classv8_1_1_output_stream.html">v8::OutputStream</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_output_stream.html#a42adc62ebe43d00159f80328538f217f">WriteAsciiChunk</a>(char *data, int size)=0</td><td class="entry"><a class="el" href="classv8_1_1_output_stream.html">v8::OutputStream</a></td><td class="entry"><span class="mlabel">pure virtual</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>WriteResult</b> enum name (defined in <a class="el" href="classv8_1_1_output_stream.html">v8::OutputStream</a>)</td><td class="entry"><a class="el" href="classv8_1_1_output_stream.html">v8::OutputStream</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>~OutputStream</b>() (defined in <a class="el" href="classv8_1_1_output_stream.html">v8::OutputStream</a>)</td><td class="entry"><a class="el" href="classv8_1_1_output_stream.html">v8::OutputStream</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">virtual</span></td></tr>
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Aug 11 2015 23:47:11 for V8 API Reference Guide for node.js v0.4.9 by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
| {
"content_hash": "d4784787eb6c4cd2eecbd883587c9dad",
"timestamp": "",
"source": "github",
"line_count": 116,
"max_line_length": 347,
"avg_line_length": 65.25862068965517,
"alnum_prop": 0.6642007926023779,
"repo_name": "v8-dox/v8-dox.github.io",
"id": "33fb2fa8afe2114642d2e0af4200eba6c4ba3532",
"size": "7570",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "1e7769d/html/classv8_1_1_output_stream-members.html",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
using Microsoft.Xna.Framework.Input;
using System;
using System.Collections.Generic;
using System.Linq;
using XNA = Microsoft.Xna.Framework.Input;
namespace Far_Off_Wanderer
{
public class GamePad
{
GamePadState? last;
public Dictionary<Buttons, bool> On { get; private set; } = new Dictionary<Buttons, bool>();
public Dictionary<Buttons, bool> While { get; private set; } = new Dictionary<Buttons, bool>();
readonly Buttons[] buttons;
public GamePad()
{
this.buttons = Enum.GetValues(typeof(Buttons)).Cast<Buttons>().ToArray();
}
public void Update()
{
var next = XNA.GamePad.GetState(Microsoft.Xna.Framework.PlayerIndex.One);
last = last ?? next;
foreach(var button in buttons)
{
On[button] = next.IsButtonDown(button) && last.Value.IsButtonDown(button) == false;
While[button] = next.IsButtonDown(button);
}
last = next;
}
}
}
| {
"content_hash": "2ddf079648c4b0ca10e5e5945e3ee309",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 103,
"avg_line_length": 29.02777777777778,
"alnum_prop": 0.5913875598086125,
"repo_name": "far-off-wanderer/game",
"id": "dc202fb73c1a740ea475f932152deeb50e3adc18",
"size": "1047",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "Game/Input/GamePad.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "136849"
}
],
"symlink_target": ""
} |
<?php
include_once('../model/vendeur.php');
include_once('../model/lot.php');
include_once('../model/article.php');
include_once('../model/modele.php');
include_once('../model/marque.php');
if(isset($_POST['mail']) && !empty($_POST['mail'])){
$mail = $_POST['mail'];
} else if(isset($_GET['mail']) && !empty($_GET['mail'])){
$mail = $_GET['mail'];
} else if(empty($_GET['mail']) || empty($_POST['mail'])){
?>
<div id="timer_div">Aucune adresse mail entrée.</div>
<script>
var seconds_left = 4;
var interval = setInterval(function() {
document.getElementById('timer_div').innerHTML = "Aucune adresse mail entrée. Redirection dans " + --seconds_left;
if (seconds_left <= 0)
{
window.setTimeout("location=('../views/imprimerLots.php');",0);
clearInterval(interval);
}
}, 1000);
</script>
<?php
return false;
}
$vendeur = Vendeur::getVendeurByMail($mail);
if(empty($vendeur)){ ?>
<div id="timer_div">Pas de vendeur avec cette adresse mail.</div>
<script>
var seconds_left = 4;
var interval = setInterval(function() {
document.getElementById('timer_div').innerHTML = "Pas de vendeur avec cette adresse mail. Redirection dans " + --seconds_left;
if (seconds_left <= 0)
{
// document.getElementById('timer_div').innerHTML = "You are Ready!";
window.setTimeout("location=('../views/imprimerLots.php');",0);
clearInterval(interval);
}
}, 1000);
</script>
<?php
} else {
$idVendeur = $vendeur->getId();
$lots = Lot::getLotByVendeur($idVendeur);
$nombreLots = sizeof($lots);
$pageVide = true;
for ($j = 0; $j < $nombreLots; $j++) {
$nombreArticlesSuivants = 0;
if($j < $nombreLots-1){
$numeroLotSuivant = $lots[$j+1]->getId();
$articlesSuivants = Article::getArticlesByLot($numeroLotSuivant);
$nombreArticlesSuivants = sizeof($articlesSuivants);
}
$numeroLot = $lots[$j]->getId();
$vendeur = $lots[$j]->getVendeur();
$prixLot = $lots[$j]->getPrix();
$numeroLot = $lots[$j]->getId();
$numeroCoupon = $lots[$j]->getCouponNoIncr();
if($numeroCoupon==-1){
continue;
}
$articles = Article::getArticlesByLot($numeroLot);
if(!Lot::lotPossedeProduits($numeroLot)){
$nombreArticles = 0;
} else {
$nombreArticles = sizeof($articles);
}
if(empty($articles[0]) || $nombreArticles == 0){
continue;
}
if(Lot::afficheImprime($numeroLot) == 0){
continue;
} else {
Lot::updateAffiche($numeroLot, "OUI");
}
if(Lot::ficheImprime($numeroLot) == 0){
$lots[$j]->updateStatut("En vente");
}
$principal = 0;
$pageVide = false;
for ($k = 0; $k < $nombreArticles; $k++) {
$type = $articles[$k]->getLibelleTypeArticle();
if(strcmp($type, "Voile") == 0){
$principal = $k;
}
}
?>
<body class="hold-transition skin-blue sidebar-mini" onload="window.print();">
<div class="tg-wrap">
<table class="tg">
<tr>
<td class="tg-if35" colspan="2">Marque</td>
<td class="tg-if35">Type(NumeroCoupon)</td>
<td class="tg-if35" colspan="2">Prix</td>
</tr>
<tr>
<td class="tg-0s10" colspan="2"><?php if(!empty($articles[$principal]->getMarque()->getLibelle())) { echo $articles[$principal]->getMarque()->getLibelle(); } else { echo "X";}?></td>
<td class="tg-0s10"><?php if(!empty($articles[$principal]->getLibelleTypeArticle())) { echo $articles[$principal]->getLibelleTypeArticle().$numeroCoupon; } else { echo "X";}?></td>
<td class="tg-0s10" colspan="2"><?php echo $prixLot; ?></td>
</tr>
<?php if(!empty($articles[0]->getPtvMin())) { $ptvMin = $articles[$principal]->getPtvMin(); } else { $ptvMin = "X";}
if(!empty($articles[0]->getPtvMax())) { $ptvMax = $articles[$principal]->getPtvMax(); } else { $ptvMax = "X";}
if(!empty($articles[0]->getTaille())) { $taille = $articles[$principal]->getTaille(); } else { $taille = "X";}
?>
<tr>
<td class="tg-if35" colspan="2">Modele</td>
<td class="tg-if35">Coupon</td>
<td class="tg-if35">Année</td>
<td class="tg-if35" colspan="2">Taille</td>
</tr>
<tr>
<td class="tg-0s10" colspan="2"><?php if(!empty($articles[$principal]->getModele()->getLibelle())) { echo $articles[$principal]->getModele()->getLibelle(); } else { echo "X";}?></td>
<td class="tg-0s10"><?php echo $numeroCoupon;?></td>
<td class="tg-0s10"><?php if(!empty($articles[$principal]->getAnnee())) { echo $articles[$principal]->getAnnee(); } else { echo "X";}?></td>
<td class="tg-0s10" colspan="2"><?php echo $taille. " / " .$ptvMin. " / " .$ptvMax ?></td>
</tr>
<tr>
<td class="tg-if35">Categorie</td>
<td class="tg-if35">Homologation</td>
<td class="tg-if35">Couleur</td>
<td class="tg-if35">Heures de vol</td>
<td class="tg-if35">Certificat</td>
</tr>
<?php
if(!empty($articles[$principal]->getCouleurVoile())) { $couleur = $articles[$principal]->getCouleurVoile(); } else { $couleur = "Inconnue";}
$numWords = strlen($couleur);
if (($numWords >= 1) && ($numWords < 10)) {
$couleurTD = "<td class=\"tg-0s10\" style =\"font-size:25px\">". $couleur. "</td>";
}
else if (($numWords >= 10) && ($numWords < 20)) {
$couleurTD = "<td class=\"tg-0s10\" style =\"font-size:20px\">". $couleur. "</td>";
}
else if (($numWords >= 20) && ($numWords < 30)) {
$couleurTD = "<td class=\"tg-0s10\" style =\"font-size:15px\">". $couleur. "</td>";
}
else if (($numWords >= 30) && ($numWords < 40)) {
$couleurTD = "<td class=\"tg-0s10\" style =\"font-size:10px\">". $couleur. "</td>";
}
else {
$couleurTD = "<td class=\"tg-0s10\" style =\"font-size:10px\">". $couleur. "</td>";
}
if(!empty($articles[$principal]->getHomologation())) { $homologation = $articles[$principal]->getHomologation(); } else { $homologation = "NC";}
$numWords = strlen($homologation);
if (($numWords >= 1) && ($numWords < 10)) {
$homologationTD = "<td class=\"tg-0s10\" style =\"font-size:30px\">". $homologation. "</td>";
}
else if (($numWords >= 10) && ($numWords < 20)) {
$homologationTD = "<td class=\"tg-0s10\" style =\"font-size:30px\">". $homologation. "</td>";
}
else if (($numWords >= 20) && ($numWords < 30)) {
$homologationTD = "<td class=\"tg-0s10\" style =\"font-size:30px\">". $homologation. "</td>";
}
else if (($numWords >= 30) && ($numWords < 40)) {
$homologationTD = "<td class=\"tg-0s10\" style =\"font-size:30px\">". $homologation. "</td>";
}
else {
$homologationTD = "<td class=\"tg-0s10\" style =\"font-size:30px\">". $homologation. "</td>";
}
?>
<tr>
<td class="tg-0s10">Parapente</td>
<?php echo $homologationTD; ?>
<?php echo $couleurTD; ?>
<td class="tg-0s10"><?php if(!empty($articles[$principal]->getHeureVoile())) { echo $articles[$principal]->getHeureVoile(); } else { echo "X";}?></td>
<td class="tg-0s10"><?php if(!empty($articles[$principal]->getCertificat())) { echo "OUI"; } else { echo "NON";}?></td>
</tr>
<tr>
<td class="tg-wxgh" colspan="4">Articles supplémentaires dans le lot :</td>
<td class="tg-wxgh">Commentaires</td>
</tr>
<?php
for ($i = 0; $i < $nombreArticles; $i++) {
if($i==1){
?>
<?php
}
if($principal == $i){
continue;
}
?>
<tr>
<?php
$idArticle = $articles[$i]->getId();
if(!empty($articles[$i]->getTypeArticle())) {
$type = $articles[$i]->getLibelleTypeArticle();
} else if(!empty($articles[$i]->getSurfaceVoile())){
$type = "Voile";
} else {
$type = "";
}
if(!empty($articles[$i]->getPtvMin())) {
$ptvmin = $articles[$i]->getPtvMin();
} else {
$ptvmin = "";
}
if(!empty($articles[$i]->getPtvMax())) {
$ptvmax = $articles[$i]->getPtvMax();
} else {
$ptvmax = "";
}
if(!empty($articles[$i]->getTaille())) {
$taille = $articles[$i]->getTaille();
} else {
$taille = "";
}
if(!empty($articles[$i]->getAnnee())) {
$annee = $articles[$i]->getAnnee();
} else {
$annee = "";
}
if(!empty($articles[$i]->getSurfaceVoile())) {
$surfaceVoile = $articles[$i]->getSurfaceVoile();
} else {
$surfaceVoile = "";
}
if(!empty($articles[$i]->getCouleurVoile())) {
$couleurVoile = $articles[$i]->getCouleurVoile();
} else {
$couleurVoile = "";
}
if(!empty($articles[$i]->getHeureVoile())) {
$heureVoile = $articles[$i]->getHeureVoile();
} else {
$heureVoile = "";
}
if(!empty($articles[$i]->getCertificat())) {
$certificat = $articles[$i]->getCertificat();
} else {
$certificat = "";
}
if(!empty($articles[$i]->getTypeProtectionSelette())) {
$typeProtectionSelette = $articles[$i]->getTypeProtectionSelette();
} else {
$typeProtectionSelette = "";
}
if(!empty($articles[$i]->getTypeAccessoire())) {
$typeAccessoire = $articles[$i]->getTypeAccessoire();
} else {
$typeAccessoire = "";
}
if(!empty($articles[$i]->getMarque()->getLibelle())) {
$marque = $articles[$i]->getMarque()->getLibelle();
} else {
$marque = "";
}
if(!empty($articles[$i]->getModele()->getLibelle())) {
$modele = $articles[$i]->getModele()->getLibelle();
} else {
$modele = "";
}
if(!empty($articles[$i]->getHomologation())) {
$homologation = $articles[$i]->getHomologation();
} else {
$homologation = "";
}
if(!empty($articles[$i]->getCommentaire())) {
$commentaire = $articles[$i]->getCommentaire();
} else {
$commentaire = "";
} ?>
<td class="tg-yw4l" colspan="4"><?php echo $type ." de marque ".$marque ." de modele ".$modele." ".
$taille ." ".$surfaceVoile ." ".$ptvmin ." ".
$ptvmax ." ".$heureVoile ." ".
$certificat ." ".$typeProtectionSelette ." ".
$typeAccessoire ." ".$annee ." ".$homologation ." ".
$homologation; ?></td>
<td class="tg-yw4l"><?php echo $commentaire;?></td>
</tr>
<?php
}
?>
</table></div>
<div style=\"page-break-after:always\"></div>
<?php
}
}
if($pageVide){
echo "Auncun lot à imprimer";
}
?>
<style>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
<style type="text/css">
.tg {border-collapse:collapse;border-spacing:0;}
.tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;}
.tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;}
.tg .tg-baqh{text-align:center;vertical-align:top}
.tg .tg-wxgh{text-decoration:underline;vertical-align:top}
.tg .tg-zul5{font-weight:bold;font-size:28px;text-align:center;vertical-align:top}
.tg .tg-if35{text-decoration:underline;text-align:center;vertical-align:top}
.tg .tg-0s10{font-weight:bold;font-size:36px;text-align:center;vertical-align:top}
.tg .tg-yw4l{vertical-align:top}
@media screen and (max-width: 767px) {.tg {width: auto !important;}.tg col {width: auto !important;}.tg-wrap {overflow-x: auto;-webkit-overflow-scrolling: touch;}}</style>
<style type="text/css" media="print">
@page
{
size: landscape;
margin: 2mm; /* this affects the margin in the printer settings */
}
</style>
| {
"content_hash": "f915351c9598468eed751e8058f972cb",
"timestamp": "",
"source": "github",
"line_count": 332,
"max_line_length": 186,
"avg_line_length": 36.506024096385545,
"alnum_prop": 0.5544554455445545,
"repo_name": "RedaMaachiGit/clubhilaire",
"id": "8cb6ef1dd931ffeddd129230b9134c28780db4b9",
"size": "12125",
"binary": false,
"copies": "1",
"ref": "refs/heads/dev",
"path": "controller/ImpressionMail.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "491124"
},
{
"name": "HTML",
"bytes": "3412015"
},
{
"name": "JavaScript",
"bytes": "3046293"
},
{
"name": "PHP",
"bytes": "4936271"
}
],
"symlink_target": ""
} |
package org.workcraft.plugins.circuit;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.workcraft.Framework;
import org.workcraft.formula.BooleanFormula;
import org.workcraft.formula.BooleanVariable;
import org.workcraft.formula.jj.BooleanFormulaParser;
import org.workcraft.formula.jj.ParseException;
import org.workcraft.formula.visitors.StringGenerator;
import org.workcraft.plugins.circuit.genlib.Gate;
import org.workcraft.plugins.circuit.genlib.GenlibUtils;
import org.workcraft.plugins.circuit.genlib.Library;
import org.workcraft.plugins.circuit.genlib.LibraryManager;
import org.workcraft.types.Pair;
import org.workcraft.utils.BackendUtils;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
class GenlibUtilsTests {
@BeforeAll
static void init() {
final Framework framework = Framework.getInstance();
framework.init();
CircuitSettings.setGateLibrary(BackendUtils.getTemplateLibraryPath("workcraft.lib"));
}
@Test
void testReadLibrary() {
Set<String> gateNames = new HashSet<>(Arrays.asList(
"BUF", "INV",
"AND2", "NAND2", "NAND2B", "AND3", "NAND3", "NAND3B", "AND4", "NAND4", "NAND4B", "NAND4BB",
"OR2", "NOR2", "NOR2B", "OR3", "NOR3", "NOR3B", "OR4", "NOR4", "NOR4B", "NOR4BB",
"AOI21", "AOI211", "AOI22", "AOI221", "AOI222", "AOI31", "AOI32", "AOI33", "AOI2BB1", "AOI2BB2", "AO21", "AO22",
"OAI21", "OAI211", "OAI22", "OAI221", "OAI222", "OAI31", "OAI32", "OAI33", "OAI2BB1", "OAI2BB2", "OA21", "OA22",
"LOGIC1", "LOGIC0",
"C2", "NC2"));
Assertions.assertEquals(gateNames, LibraryManager.getLibrary().getNames());
}
@Test
void testMapping() throws ParseException {
Library gateLibrary = LibraryManager.getLibrary();
checkMapping(BooleanFormulaParser.parse("1"), gateLibrary, gateLibrary.get("LOGIC1"));
checkMapping(BooleanFormulaParser.parse("0"), gateLibrary, gateLibrary.get("LOGIC0"));
checkMapping(BooleanFormulaParser.parse("!a"), gateLibrary, gateLibrary.get("INV"));
checkMapping(BooleanFormulaParser.parse("a"), gateLibrary, gateLibrary.get("BUF"));
checkMapping(BooleanFormulaParser.parse("a*b"), gateLibrary, gateLibrary.get("AND2"));
checkMapping(BooleanFormulaParser.parse("a+b"), gateLibrary, gateLibrary.get("OR2"));
checkMapping(BooleanFormulaParser.parse("a^b"), gateLibrary, gateLibrary.get("XOR2"));
checkMapping(BooleanFormulaParser.parse("!(a*b)"), gateLibrary, gateLibrary.get("NAND2"));
checkMapping(BooleanFormulaParser.parse("!(a+b)"), gateLibrary, gateLibrary.get("NOR2"));
checkMapping(BooleanFormulaParser.parse("a=>b"), gateLibrary, gateLibrary.get("NAND2B"));
checkMapping(BooleanFormulaParser.parse("a*c+b*!c"), gateLibrary, null);
checkMapping(BooleanFormulaParser.parse("a=b"), gateLibrary, null);
checkMapping(BooleanFormulaParser.parse("(a+b)*(c+d)"), gateLibrary, gateLibrary.get("OA22"));
checkMapping(BooleanFormulaParser.parse("!(a*b+!c*!d)"), gateLibrary, gateLibrary.get("AOI2BB2"));
}
private void checkMapping(BooleanFormula func, Library gateLibrary, Gate expGate) {
Pair<Gate, Map<BooleanVariable, String>> mapping = GenlibUtils.findMapping(func, gateLibrary);
if (expGate == null) {
Assertions.assertNull(mapping);
} else {
Assertions.assertNotNull(mapping);
}
if (mapping == null) {
System.out.println(StringGenerator.toString(func) + " == ?");
} else {
Gate gate = mapping.getFirst();
Assertions.assertEquals(expGate, gate, expGate.name + "!=" + gate.name);
System.out.print(StringGenerator.toString(func) + " == " + gate.function.formula + " [");
Map<BooleanVariable, String> assignments = mapping.getSecond();
for (Map.Entry<BooleanVariable, String> entry : assignments.entrySet()) {
System.out.print(" " + entry.getKey().getLabel() + " -> " + entry.getValue() + " ");
}
System.out.println("]");
}
}
@Test
void testPinCount() {
Library gateLibrary = LibraryManager.getLibrary();
Assertions.assertEquals(0, GenlibUtils.getPinCount(null));
Assertions.assertEquals(2, GenlibUtils.getPinCount(gateLibrary.get("BUF")));
Assertions.assertEquals(1, GenlibUtils.getPinCount(gateLibrary.get("LOGIC1")));
Assertions.assertEquals(3, GenlibUtils.getPinCount(gateLibrary.get("C2")));
Assertions.assertEquals(4, GenlibUtils.getPinCount(gateLibrary.get("OR3")));
Assertions.assertEquals(5, GenlibUtils.getPinCount(gateLibrary.get("NAND4BB")));
Assertions.assertEquals(7, GenlibUtils.getPinCount(gateLibrary.get("AOI222")));
Assertions.assertEquals(Pair.of(1, 7), GenlibUtils.getPinRange(gateLibrary));
}
}
| {
"content_hash": "c3c0f102036b50fd6807160aa7645afa",
"timestamp": "",
"source": "github",
"line_count": 100,
"max_line_length": 128,
"avg_line_length": 50.78,
"alnum_prop": 0.6687672311933832,
"repo_name": "tuura/workcraft",
"id": "994f45e544752d9a4b81f68477b26e816b513e2f",
"size": "5078",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "workcraft/CircuitPlugin/test-src/org/workcraft/plugins/circuit/GenlibUtilsTests.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "366"
},
{
"name": "GAP",
"bytes": "1547"
},
{
"name": "Java",
"bytes": "4779990"
},
{
"name": "JavaScript",
"bytes": "1818"
},
{
"name": "Shell",
"bytes": "5281"
},
{
"name": "Verilog",
"bytes": "2416"
}
],
"symlink_target": ""
} |
#ifndef RAW_TEXT_CONFIG_H
#define RAW_TEXT_CONFIG_H
#include <string>
#include <fstream>
#include "file-config.h"
namespace ns3 {
/**
* \ingroup configstore
*
*/
class RawTextConfigSave : public FileConfig
{
public:
RawTextConfigSave ();
virtual ~RawTextConfigSave ();
virtual void SetFilename (std::string filename);
virtual void Default (void);
virtual void Global (void);
virtual void Attributes (void);
private:
std::ofstream *m_os;
};
/**
* \ingroup configstore
*
*/
class RawTextConfigLoad : public FileConfig
{
public:
RawTextConfigLoad ();
virtual ~RawTextConfigLoad ();
virtual void SetFilename (std::string filename);
virtual void Default (void);
virtual void Global (void);
virtual void Attributes (void);
private:
std::string Strip (std::string value);
std::ifstream *m_is;
};
} // namespace ns3
#endif /* RAW_TEXT_CONFIG_H */
| {
"content_hash": "6ac3d7722730250fcd982be23aaf6de8",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 50,
"avg_line_length": 18.74468085106383,
"alnum_prop": 0.7014755959137344,
"repo_name": "Chiru/NVE_Simulation",
"id": "e1b8259abe074051d4287081cc2df95c0070bbe0",
"size": "881",
"binary": false,
"copies": "112",
"ref": "refs/heads/master",
"path": "NS3/src/config-store/model/raw-text-config.h",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "C",
"bytes": "587430"
},
{
"name": "C++",
"bytes": "15139819"
},
{
"name": "DOT",
"bytes": "2792"
},
{
"name": "M",
"bytes": "5446"
},
{
"name": "Matlab",
"bytes": "18438"
},
{
"name": "Objective-C",
"bytes": "15035"
},
{
"name": "Perl",
"bytes": "302841"
},
{
"name": "Prolog",
"bytes": "2793"
},
{
"name": "Python",
"bytes": "32484684"
},
{
"name": "Scala",
"bytes": "51"
},
{
"name": "Shell",
"bytes": "7282"
}
],
"symlink_target": ""
} |
title: "Notes for: TGIK 001: A quick tour"
slug: tgik-001-quick-tour
date: 2018-07-14T12:01:00Z
tags: ["Tech notes", "Kubernetes"]
author: Daniel Rodriguez
---
{{< youtube id="9YYeE-bMWv8" class="video" >}}
This spends a lot of time going trough a k8s install in AWS using Heptio's tool. Its kinda not as useful anymore since all clouds have a k8s as a service option.
There is no such thing call a k8s master. There are a set of components that make the control plane, its a micro service architecture itself, its fundamentally distributed. Sometimes the control plane can be in a single node so you call it a master but its not a real setup.
You want to put the k8s db (etcd) into its own set of nodes, everything else just centers around that DB and the API server (a policy server that also sit on top of the DB).
etcd is a quorum based DB that is highly consistent, but that comes with some cost of coordination between nodes. Good thing is that it doesn't lose data! If a nodes goes down all the other ones are ready to pick it up. It has some limits up to 5000-10000 nodes (to git some slow downs), but it actually goes more to how much activity there is on those nodes (pods, cores).
The `KUBECONFIG` file is basically its own DB since it has relations between the clusters and the users = context. The `kubectl` cli uses the file in the `KUBECONFIG` env var so its easy to change it.
There is some things of the control plane that run inside k8s, the kube-system namespace.
Run a sample pod:
kubectl run --generator=run-pod/v1 --image=gcr.io/kuar-demo/kuard-amd64:1 kuard
kubectl get pods
> Pod. For most users pod=container. but also sometimes there is a set of containers that work well as an unit and we want them to run on the same machine and have a level of trusted communication between them.
> Its the fundamental thing that k8s cares about placing on machines.
> A concrete example is networking sidecar containers for things like Istio, that provide functionality to your application without changing any code. Another example is one container doing data loading and another container doing processing of that data, its important they are in the same node.
`kubectl` is a fancy curl, it generates a document and pushes it to the server.
You can use `--dry-run -o yaml` to see what the document is created.
`kubectl port-forward kuard 8080:8080` is basically doing an ssh port-forward from an specific pod to the host, use this for development and debugging.
Things are great because you know what to run and k8s finds a place to run it. Things pods don't do well:
- you have to manage them one by one, you usually want a set of things running specially in production
- once a pod lands on a node, its on that node forever. If the node dies, the pod dies with it
- Imagine a node is "down" but what does "down" really means? it could be a network blip (maybe it just a lot of load) and it will come back in 5 minutes. If k8s decides to relaunch the pod immediately when the node comes back there is going to be 2 copies running in the system at the same time. This could be bad for multiple reasons, logging aggregation is one since there is going to be 2 pods with the same name sending different information
> k8s deals with sets very well instead of individual things
Deployments solve this issue. Deployments are a thing built on top of Pods to help with sets of pods.
kubectl run --image=gcr.io/kuar-demo/kuard-amd64:1 kuard --replicas=5
kubectl get pods
This will create 5 pods, with an unique name for each pod. The name is `deployment-hash_of_template-uuid`.
We cannot use port-forward to access a deployment because it only works with a particular Pod, a Deployment is a set of Pods, how can we access that set of Pods?
A `Service` helps with that by creating a load-balancer and everytime a request comes in send it to one of the pods.
kubectl expose deployment kuard --type=LoadBalancer --port=80 --target-port=8080
A service does this:
1. Finds a way to name a set of pods. via labels.
- A Service and a deployment don't know about each other but a service can target the same set of pods based on the labels the deployment creates for the pods
2. Collect all the IP address and put an internal k8s LoadBalancer infront of those, this is the internal system called ClusterIP. Makes it easy to access services from one k8s pod to another through the service abstraction. This only works inside the cluster.
3. It takes a port across the cluster and make it so if you hit that port in any node it gets routed to that service. This is a NodePort. This only works inside a VPC, nodes have access to the cluster nodes.
- We can see the NodePort with `kubectl get svc`
4. If its running in a public cloud it can create an External load balancer (e.g. AWS ELB) and point it to all the nodes at the NodePort. This works from the outside world.
You can scale up and down the number of pods of a deployment.
kubectl scale deployment kuard --replicas=10
kubectl edit deploy kuard
If you `kubectl edit` the deployment you can see everything it was uploaded and also the current status of the deployment, for example number of replicas available.
You can update the version of the deployment by just changing the image that is being deployed.
kubectl set image deployment kuard kuard=gcr.io/kuar-demo/kuard-amd64:2
This will perform a rolling upgrade and no connections have been lost.
> k8s is declarative, you tell it want you want it to do and it will figure out how to do it.
Probes are way for k8s to talk to your application to get information about it and see if its running and healthy.
Stateful sets are a way to do deployments but back those containers with some data. They are different because the requirements to scale up and down are different. They are basically deployments with extra considerations for attaching volumes.
Daemon sets: I want to run all these containers but maybe i want one per node and in all my machines. Regular users don't use this that much since you don't want to think about nodes but its very useful for admins.
The default way of dealing with data you care about in k8s is to attach external storage solution to you pods such as [S3, NFS or others](https://kubernetes.io/docs/concepts/storage/volumes/#types-of-volumes). [Local Persistent Volumes](https://kubernetes.io/blog/2018/04/13/local-persistent-volumes-beta/) are a way to allocate some space in one of the nodes so that if a pod (that is using that volume) gets restarted it can reclaim that space. Useful for DBs since if you need to reboot everything it can find the data it had before. Using this you don't have to pin the pod to a particular node but k8s will do this automatically since it know that volume is running in that node.
Nice diagram by Julia Evans.

## Links
- Repo: [https://github.com/heptio/tgik/tree/master/episodes/001](https://github.com/heptio/tgik/tree/master/episodes/001)
| {
"content_hash": "29a2381bcb9fafcbe3c8d5ae7f9e0476",
"timestamp": "",
"source": "github",
"line_count": 97,
"max_line_length": 684,
"avg_line_length": 72.61855670103093,
"alnum_prop": 0.7764054514480409,
"repo_name": "danielfrg/danielfrg.github.io-source",
"id": "9a22baaf6e55f350bd4e38a8bbd04c8c6fe7ba1a",
"size": "7048",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "content/blog/2018/07/tgik001.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "10984"
},
{
"name": "HTML",
"bytes": "8292"
},
{
"name": "Jupyter Notebook",
"bytes": "4865820"
},
{
"name": "Makefile",
"bytes": "3758"
},
{
"name": "Python",
"bytes": "17618"
},
{
"name": "Shell",
"bytes": "3252"
}
],
"symlink_target": ""
} |
Sequelize supports read replication, i.e. having multiple servers that you can connect to when you want to do a SELECT query. When you do read replication, you specify one or more servers to act as read replicas, and one server to act as the write master, which handles all writes and updates and propagates them to the replicas (note that the actual replication process is **not** handled by Sequelize, but should be set up by database backend).
```js
const sequelize = new Sequelize('database', null, null, {
dialect: 'mysql',
port: 3306
replication: {
read: [
{ host: '8.8.8.8', username: 'read-username', password: 'some-password' },
{ host: '9.9.9.9', username: 'another-username', password: null }
],
write: { host: '1.1.1.1', username: 'write-username', password: 'any-password' }
},
pool: { // If you want to override the options used for the read/write pool you can do so here
max: 20,
idle: 30000
},
})
```
If you have any general settings that apply to all replicas you do not need to provide them for each instance. In the code above, database name and port is propagated to all replicas. The same will happen for user and password, if you leave them out for any of the replicas. Each replica has the following options:`host`,`port`,`username`,`password`,`database`.
Sequelize uses a pool to manage connections to your replicas. Internally Sequelize will maintain two pools created using `pool` configuration.
If you want to modify these, you can pass pool as an options when instantiating Sequelize, as shown above.
Each `write` or `useMaster: true` query will use write pool. For `SELECT` read pool will be used. Read replica are switched using a basic round robin scheduling. | {
"content_hash": "f83988f6b28b26388a5a670e432e163c",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 446,
"avg_line_length": 63.107142857142854,
"alnum_prop": 0.7209960384833051,
"repo_name": "yjwong/sequelize",
"id": "10c7166e3bc5fccfad630b07ffd4447f545fedbe",
"size": "1787",
"binary": false,
"copies": "1",
"ref": "refs/heads/v5",
"path": "docs/manual/read-replication.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "2550757"
},
{
"name": "PowerShell",
"bytes": "1468"
}
],
"symlink_target": ""
} |
<?php
namespace Data\Test\Fixture;
use App\Foo\Plugin;
use Cake\TestSuite\Fixture\TestFixture;
class LocationsFixture extends TestFixture implements Plugin {
}
| {
"content_hash": "73d054d451e4ca8d7241b2755fbb148e",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 62,
"avg_line_length": 20.25,
"alnum_prop": 0.808641975308642,
"repo_name": "tanuck/upgrade",
"id": "c966adad23428a1070427446cae30ddc609e1e79",
"size": "162",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "tests/test_files/AppUsesImplicitTestCaseAfter.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "975"
},
{
"name": "PHP",
"bytes": "103972"
},
{
"name": "Shell",
"bytes": "1319"
}
],
"symlink_target": ""
} |
<?php
namespace Application\FrontBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
class CommentForm extends AbstractType {
public function getName() {
return 'comment';
}
public function buildForm(FormBuilder $builder, array $options) {
$builder->add('comment', 'textarea', array('label'=>'Комментарий*'));
}
}
| {
"content_hash": "56146413f1f08b2271ed29629b33bb7d",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 71,
"avg_line_length": 23.125,
"alnum_prop": 0.7432432432432432,
"repo_name": "kostyakch/rhino",
"id": "60427a7ea587ec053752cb17f5d45973700c55d7",
"size": "381",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Application/FrontBundle/Form/CommentForm.php",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "155856"
},
{
"name": "PHP",
"bytes": "346603"
},
{
"name": "Perl",
"bytes": "26"
},
{
"name": "Shell",
"bytes": "141"
}
],
"symlink_target": ""
} |
namespace ash {
namespace smb_client {
// Represents an SMB URL.
// This class stores a URL using url::Component and can contain either a
// resolved or unresolved host. The host can be replaced when the address is
// resolved by using ReplaceHost(). The passed URL must start with either
// "smb://" or "\\" when constructed.
class SmbUrl {
public:
explicit SmbUrl(const std::string& url);
~SmbUrl();
SmbUrl(SmbUrl&& smb_url);
// Allow copying.
SmbUrl(const SmbUrl& url);
SmbUrl& operator=(const SmbUrl& url);
// Returns the host of the URL which can be resolved or unresolved.
std::string GetHost() const;
// Returns the share component of the URL. This does not have to be
// set for IsValid() to be true (but some clients may require it).
std::string GetShare() const;
// Returns the full, canonicalized URL |url_| in the form
// smb://server/share/path (where share and path are optional). Will
// not have trailing slashes.
const std::string& ToString() const;
// Replaces the host to |new_host| and returns the full URL. Does not
// change the original URL.
SmbUrl ReplaceHost(const std::string& new_host) const;
// Returns true if the passed URL is valid and was properly parsed. This
// should be called after the constructor. Callers should verify this
// before trying to use ToString(), GetHost(), GetShare() etc.
bool IsValid() const;
// Returns |url_| in the format \\server\share.
std::string GetWindowsUNCString() const;
private:
// Canonicalize |url| and saves the output as url_ and host_ if successful.
void CanonicalizeSmbUrl(const std::string& url);
// Parse |url| into a Windows UNC |windows_unc_|.
void CreateWindowsUnc(const std::string& url);
// Resets url_ and parsed_. Makes the SmbUrl invalid.
void Reset();
// String form of the canonical url.
std::string url_;
// String form of the Windows Universal Naming Convention of the url.
// MS-DTYP section 2.2.57
std::string windows_unc_;
// Holds the identified host of the URL. This does not store the host itself.
url::Component host_;
// Share name component of the URL.
std::string share_;
};
} // namespace smb_client
} // namespace ash
#endif // CHROME_BROWSER_ASH_SMB_CLIENT_SMB_URL_H_
| {
"content_hash": "a23c25c901beaf126879062763580e26",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 79,
"avg_line_length": 32.4,
"alnum_prop": 0.7006172839506173,
"repo_name": "chromium/chromium",
"id": "dc53d31213e62194791255a864834313378909b1",
"size": "2578",
"binary": false,
"copies": "5",
"ref": "refs/heads/main",
"path": "chrome/browser/ash/smb_client/smb_url.h",
"mode": "33188",
"license": "bsd-3-clause",
"language": [],
"symlink_target": ""
} |
FROM gerritforge/gerrit-ubuntu15.04:2.13.1
USER root
RUN apt-get install -y openjdk-8-jdk && update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java && \
apt-get install -y iputils-ping netcat
USER gerrit
ADD gerrit.config /var/gerrit/etc/
ADD secure.config /var/gerrit/etc/
ADD replication.config /var/gerrit/etc/
RUN mkdir /var/gerrit/.ssh
ADD id_rsa /var/gerrit/.ssh
ADD id_rsa.pub /var/gerrit/.ssh
ADD config /var/gerrit/.ssh
USER root
RUN apt-get install -y net-tools netcat inetutils-ping
ADD start.sh /bin/
ADD wait-for-it.sh /bin/
CMD /bin/start.sh
| {
"content_hash": "d9409cec3f512d2eb0987c7eeeb9d37a",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 122,
"avg_line_length": 21.962962962962962,
"alnum_prop": 0.7386172006745363,
"repo_name": "GerritForge/gerrit-master-slave-docker",
"id": "3a7103ec5d9bef4edc3a4ee797602f5dafb8d395",
"size": "593",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "gerrit-master/Dockerfile",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Makefile",
"bytes": "308"
},
{
"name": "Nginx",
"bytes": "2108"
},
{
"name": "Shell",
"bytes": "8913"
}
],
"symlink_target": ""
} |
ENABLE_HERO_RESPAWN = true -- Should the heroes automatically respawn on a timer or stay dead until manually respawned
UNIVERSAL_SHOP_MODE = false -- Should the main shop contain Secret Shop items as well as regular items
ALLOW_SAME_HERO_SELECTION = true -- Should we let people select the same hero as each other
HERO_SELECTION_TIME = 30.0 -- How long should we let people select their hero?
PRE_GAME_TIME = 30.0 -- How long after people select their heroes should the horn blow and the game start?
POST_GAME_TIME = 60.0 -- How long should we let people look at the scoreboard before closing the server automatically?
TREE_REGROW_TIME = 60.0 -- How long should it take individual trees to respawn after being cut down/destroyed?
GOLD_PER_TICK = 100 -- How much gold should players get per tick?
GOLD_TICK_TIME = 5 -- How long should we wait in seconds between gold ticks?
RECOMMENDED_BUILDS_DISABLED = false -- Should we disable the recommened builds for heroes
CAMERA_DISTANCE_OVERRIDE = 1134.0 -- How far out should we allow the camera to go? 1134 is the default in Dota
MINIMAP_ICON_SIZE = 1 -- What icon size should we use for our heroes?
MINIMAP_CREEP_ICON_SIZE = 1 -- What icon size should we use for creeps?
MINIMAP_RUNE_ICON_SIZE = 1 -- What icon size should we use for runes?
RUNE_SPAWN_TIME = 120 -- How long in seconds should we wait between rune spawns?
CUSTOM_BUYBACK_COST_ENABLED = true -- Should we use a custom buyback cost setting?
CUSTOM_BUYBACK_COOLDOWN_ENABLED = true -- Should we use a custom buyback time?
BUYBACK_ENABLED = false -- Should we allow people to buyback when they die?
DISABLE_FOG_OF_WAR_ENTIRELY = false -- Should we disable fog of war entirely for both teams?
USE_UNSEEN_FOG_OF_WAR = false -- Should we make unseen and fogged areas of the map completely black until uncovered by each team?
-- Note: DISABLE_FOG_OF_WAR_ENTIRELY must be false for USE_UNSEEN_FOG_OF_WAR to work
USE_STANDARD_DOTA_BOT_THINKING = false -- Should we have bots act like they would in Dota? (This requires 3 lanes, normal items, etc)
USE_STANDARD_HERO_GOLD_BOUNTY = true -- Should we give gold for hero kills the same as in Dota, or allow those values to be changed?
USE_CUSTOM_TOP_BAR_VALUES = true -- Should we do customized top bar values or use the default kill count per team?
TOP_BAR_VISIBLE = true -- Should we display the top bar score/count at all?
SHOW_KILLS_ON_TOPBAR = true -- Should we display kills only on the top bar? (No denies, suicides, kills by neutrals) Requires USE_CUSTOM_TOP_BAR_VALUES
ENABLE_TOWER_BACKDOOR_PROTECTION = false-- Should we enable backdoor protection for our towers?
REMOVE_ILLUSIONS_ON_DEATH = false -- Should we remove all illusions if the main hero dies?
DISABLE_GOLD_SOUNDS = false -- Should we disable the gold sound when players get gold?
END_GAME_ON_KILLS = true -- Should the game end after a certain number of kills?
KILLS_TO_END_GAME_FOR_TEAM = 50 -- How many kills for a team should signify an end of game?
USE_CUSTOM_HERO_LEVELS = true -- Should we allow heroes to have custom levels?
MAX_LEVEL = 50 -- What level should we let heroes get to?
USE_CUSTOM_XP_VALUES = true -- Should we use custom XP values to level up heroes, or the default Dota numbers?
-- Fill this table up with the required XP per level if you want to change it
XP_PER_LEVEL_TABLE = {}
for i=1,MAX_LEVEL do
XP_PER_LEVEL_TABLE[i] = (i-1) * 100
end
ENABLE_FIRST_BLOOD = true -- Should we enable first blood for the first kill in this game?
HIDE_KILL_BANNERS = false -- Should we hide the kill banners that show when a player is killed?
LOSE_GOLD_ON_DEATH = true -- Should we have players lose the normal amount of dota gold on death?
SHOW_ONLY_PLAYER_INVENTORY = false -- Should we only allow players to see their own inventory even when selecting other units?
DISABLE_STASH_PURCHASING = false -- Should we prevent players from being able to buy items into their stash when not at a shop?
DISABLE_ANNOUNCER = false -- Should we disable the announcer from working in the game?
FORCE_PICKED_HERO = nil -- What hero should we force all players to spawn as? (e.g. "npc_dota_hero_axe"). Use nil to allow players to pick their own hero.
FIXED_RESPAWN_TIME = -1 -- What time should we use for a fixed respawn timer? Use -1 to keep the default dota behavior.
FOUNTAIN_CONSTANT_MANA_REGEN = -1 -- What should we use for the constant fountain mana regen? Use -1 to keep the default dota behavior.
FOUNTAIN_PERCENTAGE_MANA_REGEN = -1 -- What should we use for the percentage fountain mana regen? Use -1 to keep the default dota behavior.
FOUNTAIN_PERCENTAGE_HEALTH_REGEN = -1 -- What should we use for the percentage fountain health regen? Use -1 to keep the default dota behavior.
MAXIMUM_ATTACK_SPEED = 600 -- What should we use for the maximum attack speed?
MINIMUM_ATTACK_SPEED = 20 -- What should we use for the minimum attack speed?
-- NOTE: You always need at least 2 non-bounty (non-regen while broken) type runes to be able to spawn or your game will crash!
ENABLED_RUNES = {} -- Which runes should be enabled to spawn in our game mode?
ENABLED_RUNES[DOTA_RUNE_DOUBLEDAMAGE] = true
ENABLED_RUNES[DOTA_RUNE_HASTE] = true
ENABLED_RUNES[DOTA_RUNE_ILLUSION] = true
ENABLED_RUNES[DOTA_RUNE_INVISIBILITY] = true
ENABLED_RUNES[DOTA_RUNE_REGENERATION] = true -- Regen runes are currently not spawning as of the writing of this comment
ENABLED_RUNES[DOTA_RUNE_BOUNTY] = true
MAX_NUMBER_OF_TEAMS = 10 -- How many potential teams can be in this game mode?
USE_CUSTOM_TEAM_COLORS = true -- Should we use custom team colors?
USE_CUSTOM_TEAM_COLORS_FOR_PLAYERS = true -- Should we use custom team colors to color the players/minimap?
TEAM_COLORS = {} -- If USE_CUSTOM_TEAM_COLORS is set, use these colors.
TEAM_COLORS[DOTA_TEAM_GOODGUYS] = { 61, 210, 150 } -- Teal
TEAM_COLORS[DOTA_TEAM_BADGUYS] = { 243, 201, 9 } -- Yellow
TEAM_COLORS[DOTA_TEAM_CUSTOM_1] = { 197, 77, 168 } -- Pink
TEAM_COLORS[DOTA_TEAM_CUSTOM_2] = { 255, 108, 0 } -- Orange
TEAM_COLORS[DOTA_TEAM_CUSTOM_3] = { 52, 85, 255 } -- Blue
TEAM_COLORS[DOTA_TEAM_CUSTOM_4] = { 101, 212, 19 } -- Green
TEAM_COLORS[DOTA_TEAM_CUSTOM_5] = { 129, 83, 54 } -- Brown
TEAM_COLORS[DOTA_TEAM_CUSTOM_6] = { 27, 192, 216 } -- Cyan
TEAM_COLORS[DOTA_TEAM_CUSTOM_7] = { 199, 228, 13 } -- Olive
TEAM_COLORS[DOTA_TEAM_CUSTOM_8] = { 140, 42, 244 } -- Purple
USE_AUTOMATIC_PLAYERS_PER_TEAM = true -- Should we set the number of players to 10 / MAX_NUMBER_OF_TEAMS?
CUSTOM_TEAM_PLAYER_COUNT = {} -- If we're not automatically setting the number of players per team, use this table
CUSTOM_TEAM_PLAYER_COUNT[DOTA_TEAM_GOODGUYS] = 1
CUSTOM_TEAM_PLAYER_COUNT[DOTA_TEAM_BADGUYS] = 1
CUSTOM_TEAM_PLAYER_COUNT[DOTA_TEAM_CUSTOM_1] = 1
CUSTOM_TEAM_PLAYER_COUNT[DOTA_TEAM_CUSTOM_2] = 1
CUSTOM_TEAM_PLAYER_COUNT[DOTA_TEAM_CUSTOM_3] = 1
CUSTOM_TEAM_PLAYER_COUNT[DOTA_TEAM_CUSTOM_4] = 1
CUSTOM_TEAM_PLAYER_COUNT[DOTA_TEAM_CUSTOM_5] = 1
CUSTOM_TEAM_PLAYER_COUNT[DOTA_TEAM_CUSTOM_6] = 1
CUSTOM_TEAM_PLAYER_COUNT[DOTA_TEAM_CUSTOM_7] = 1
CUSTOM_TEAM_PLAYER_COUNT[DOTA_TEAM_CUSTOM_8] = 1
| {
"content_hash": "f7573fd77247721c4b018da9a7ba44cf",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 171,
"avg_line_length": 72.42056074766356,
"alnum_prop": 0.6790553619821913,
"repo_name": "ConquestOfTheAncients/MapMain",
"id": "336171373a460ca6becd6e16586a8f557965faad",
"size": "7834",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "conquestoftheancients/scripts/vscripts/settings.lua",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Lua",
"bytes": "340712"
}
],
"symlink_target": ""
} |
MenuBarComponent::MenuBarComponent (MenuBarModel* model_)
: model (nullptr),
itemUnderMouse (-1),
currentPopupIndex (-1),
topLevelIndexClicked (0)
{
setRepaintsOnMouseActivity (true);
setWantsKeyboardFocus (false);
setMouseClickGrabsKeyboardFocus (false);
setModel (model_);
}
MenuBarComponent::~MenuBarComponent()
{
setModel (nullptr);
Desktop::getInstance().removeGlobalMouseListener (this);
}
MenuBarModel* MenuBarComponent::getModel() const noexcept
{
return model;
}
void MenuBarComponent::setModel (MenuBarModel* const newModel)
{
if (model != newModel)
{
if (model != nullptr)
model->removeListener (this);
model = newModel;
if (model != nullptr)
model->addListener (this);
repaint();
menuBarItemsChanged (nullptr);
}
}
//==============================================================================
void MenuBarComponent::paint (Graphics& g)
{
const bool isMouseOverBar = currentPopupIndex >= 0 || itemUnderMouse >= 0 || isMouseOver();
getLookAndFeel().drawMenuBarBackground (g,
getWidth(),
getHeight(),
isMouseOverBar,
*this);
if (model != nullptr)
{
for (int i = 0; i < menuNames.size(); ++i)
{
Graphics::ScopedSaveState ss (g);
g.setOrigin (xPositions [i], 0);
g.reduceClipRegion (0, 0, xPositions[i + 1] - xPositions[i], getHeight());
getLookAndFeel().drawMenuBarItem (g,
xPositions[i + 1] - xPositions[i],
getHeight(),
i,
menuNames[i],
i == itemUnderMouse,
i == currentPopupIndex,
isMouseOverBar,
*this);
}
}
}
void MenuBarComponent::resized()
{
xPositions.clear();
int x = 0;
xPositions.add (x);
for (int i = 0; i < menuNames.size(); ++i)
{
x += getLookAndFeel().getMenuBarItemWidth (*this, i, menuNames[i]);
xPositions.add (x);
}
}
int MenuBarComponent::getItemAt (Point<int> p)
{
for (int i = 0; i < xPositions.size(); ++i)
if (p.x >= xPositions[i] && p.x < xPositions[i + 1])
return reallyContains (p, true) ? i : -1;
return -1;
}
void MenuBarComponent::repaintMenuItem (int index)
{
if (isPositiveAndBelow (index, xPositions.size()))
{
const int x1 = xPositions [index];
const int x2 = xPositions [index + 1];
repaint (x1 - 2, 0, x2 - x1 + 4, getHeight());
}
}
void MenuBarComponent::setItemUnderMouse (const int index)
{
if (itemUnderMouse != index)
{
repaintMenuItem (itemUnderMouse);
itemUnderMouse = index;
repaintMenuItem (itemUnderMouse);
}
}
void MenuBarComponent::setOpenItem (int index)
{
if (currentPopupIndex != index)
{
repaintMenuItem (currentPopupIndex);
currentPopupIndex = index;
repaintMenuItem (currentPopupIndex);
Desktop& desktop = Desktop::getInstance();
if (index >= 0)
desktop.addGlobalMouseListener (this);
else
desktop.removeGlobalMouseListener (this);
}
}
void MenuBarComponent::updateItemUnderMouse (Point<int> p)
{
setItemUnderMouse (getItemAt (p));
}
void MenuBarComponent::showMenu (int index)
{
if (index != currentPopupIndex)
{
PopupMenu::dismissAllActiveMenus();
menuBarItemsChanged (nullptr);
setOpenItem (index);
setItemUnderMouse (index);
if (index >= 0)
{
PopupMenu m (model->getMenuForIndex (itemUnderMouse,
menuNames [itemUnderMouse]));
if (m.lookAndFeel == nullptr)
m.setLookAndFeel (&getLookAndFeel());
const Rectangle<int> itemPos (xPositions [index], 0, xPositions [index + 1] - xPositions [index], getHeight());
m.showMenuAsync (PopupMenu::Options().withTargetComponent (this)
.withTargetScreenArea (localAreaToGlobal (itemPos))
.withMinimumWidth (itemPos.getWidth()),
ModalCallbackFunction::forComponent (menuBarMenuDismissedCallback, this, index));
}
}
}
void MenuBarComponent::menuBarMenuDismissedCallback (int result, MenuBarComponent* bar, int topLevelIndex)
{
if (bar != nullptr)
bar->menuDismissed (topLevelIndex, result);
}
void MenuBarComponent::menuDismissed (int topLevelIndex, int itemId)
{
topLevelIndexClicked = topLevelIndex;
postCommandMessage (itemId);
}
void MenuBarComponent::handleCommandMessage (int commandId)
{
const Point<int> mousePos (getMouseXYRelative());
updateItemUnderMouse (mousePos);
if (currentPopupIndex == topLevelIndexClicked)
setOpenItem (-1);
if (commandId != 0 && model != nullptr)
model->menuItemSelected (commandId, topLevelIndexClicked);
}
//==============================================================================
void MenuBarComponent::mouseEnter (const MouseEvent& e)
{
if (e.eventComponent == this)
updateItemUnderMouse (e.getPosition());
}
void MenuBarComponent::mouseExit (const MouseEvent& e)
{
if (e.eventComponent == this)
updateItemUnderMouse (e.getPosition());
}
void MenuBarComponent::mouseDown (const MouseEvent& e)
{
if (currentPopupIndex < 0)
{
const MouseEvent e2 (e.getEventRelativeTo (this));
updateItemUnderMouse (e2.getPosition());
currentPopupIndex = -2;
showMenu (itemUnderMouse);
}
}
void MenuBarComponent::mouseDrag (const MouseEvent& e)
{
const MouseEvent e2 (e.getEventRelativeTo (this));
const int item = getItemAt (e2.getPosition());
if (item >= 0)
showMenu (item);
}
void MenuBarComponent::mouseUp (const MouseEvent& e)
{
const MouseEvent e2 (e.getEventRelativeTo (this));
updateItemUnderMouse (e2.getPosition());
if (itemUnderMouse < 0 && getLocalBounds().contains (e2.x, e2.y))
{
setOpenItem (-1);
PopupMenu::dismissAllActiveMenus();
}
}
void MenuBarComponent::mouseMove (const MouseEvent& e)
{
const MouseEvent e2 (e.getEventRelativeTo (this));
if (lastMousePos != e2.getPosition())
{
if (currentPopupIndex >= 0)
{
const int item = getItemAt (e2.getPosition());
if (item >= 0)
showMenu (item);
}
else
{
updateItemUnderMouse (e2.getPosition());
}
lastMousePos = e2.getPosition();
}
}
bool MenuBarComponent::keyPressed (const KeyPress& key)
{
bool used = false;
const int numMenus = menuNames.size();
const int currentIndex = jlimit (0, menuNames.size() - 1, currentPopupIndex);
if (key.isKeyCode (KeyPress::leftKey))
{
showMenu ((currentIndex + numMenus - 1) % numMenus);
used = true;
}
else if (key.isKeyCode (KeyPress::rightKey))
{
showMenu ((currentIndex + 1) % numMenus);
used = true;
}
return used;
}
void MenuBarComponent::menuBarItemsChanged (MenuBarModel* /*menuBarModel*/)
{
StringArray newNames;
if (model != nullptr)
newNames = model->getMenuBarNames();
if (newNames != menuNames)
{
menuNames = newNames;
repaint();
resized();
}
}
void MenuBarComponent::menuCommandInvoked (MenuBarModel* /*menuBarModel*/,
const ApplicationCommandTarget::InvocationInfo& info)
{
if (model == nullptr || (info.commandFlags & ApplicationCommandInfo::dontTriggerVisualFeedback) != 0)
return;
for (int i = 0; i < menuNames.size(); ++i)
{
const PopupMenu menu (model->getMenuForIndex (i, menuNames [i]));
if (menu.containsCommandItem (info.commandID))
{
setItemUnderMouse (i);
startTimer (200);
break;
}
}
}
void MenuBarComponent::timerCallback()
{
stopTimer();
updateItemUnderMouse (getMouseXYRelative());
}
| {
"content_hash": "3f835efa47027d211bd0bb318ccb945d",
"timestamp": "",
"source": "github",
"line_count": 321,
"max_line_length": 123,
"avg_line_length": 26.682242990654206,
"alnum_prop": 0.5625218914185639,
"repo_name": "kaathleen/LeapGesture-library",
"id": "e2b308723a8026dd11e5a9d73cceff0e5cd8c66b",
"size": "9487",
"binary": false,
"copies": "10",
"ref": "refs/heads/master",
"path": "GesturesVisualizer/JuceLibraryCode/modules/juce_gui_basics/menus/juce_MenuBarComponent.cpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "9407298"
},
{
"name": "C#",
"bytes": "6226"
},
{
"name": "C++",
"bytes": "12512157"
},
{
"name": "CSS",
"bytes": "127351"
},
{
"name": "Java",
"bytes": "130824"
},
{
"name": "JavaScript",
"bytes": "537132"
},
{
"name": "M",
"bytes": "798"
},
{
"name": "Objective-C",
"bytes": "96265"
},
{
"name": "Objective-C++",
"bytes": "347523"
},
{
"name": "Python",
"bytes": "140788"
},
{
"name": "Shell",
"bytes": "8185"
},
{
"name": "TeX",
"bytes": "212115"
},
{
"name": "XSLT",
"bytes": "14385"
}
],
"symlink_target": ""
} |
import { ClickHouseDatasource } from './datasource';
import { SqlQueryCtrl } from './query_ctrl';
declare class SqlConfigCtrl {
static templateUrl: string;
}
export { ClickHouseDatasource as Datasource, SqlQueryCtrl as QueryCtrl, SqlConfigCtrl as ConfigCtrl };
| {
"content_hash": "3cef7d0fa67230ec3a891688847ca43b",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 102,
"avg_line_length": 44.166666666666664,
"alnum_prop": 0.7735849056603774,
"repo_name": "jetscale/clickhouse-grafana",
"id": "7c86205bbbd69465359fc0297b08bc2d134ad8cc",
"size": "265",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "dist/module.d.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "9982"
},
{
"name": "JavaScript",
"bytes": "126677"
},
{
"name": "TypeScript",
"bytes": "57956"
}
],
"symlink_target": ""
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_212) on Thu Nov 07 15:58:18 CET 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class com.contactlab.api.ws.RollbackSelection (ContactLab SOAP API Java Client - NEXT 2.23.0 API)</title>
<meta name="date" content="2019-11-07">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class com.contactlab.api.ws.RollbackSelection (ContactLab SOAP API Java Client - NEXT 2.23.0 API)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../com/contactlab/api/ws/RollbackSelection.html" title="class in com.contactlab.api.ws">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/contactlab/api/ws/class-use/RollbackSelection.html" target="_top">Frames</a></li>
<li><a href="RollbackSelection.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Class com.contactlab.api.ws.RollbackSelection" class="title">Uses of Class<br>com.contactlab.api.ws.RollbackSelection</h2>
</div>
<div class="classUseContainer">
<ul class="blockList">
<li class="blockList">
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../../com/contactlab/api/ws/RollbackSelection.html" title="class in com.contactlab.api.ws">RollbackSelection</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#com.contactlab.api.ws">com.contactlab.api.ws</a></td>
<td class="colLast">
<div class="block">Copyright 2012-2015 ContactLab, Italy
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="com.contactlab.api.ws">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../com/contactlab/api/ws/RollbackSelection.html" title="class in com.contactlab.api.ws">RollbackSelection</a> in <a href="../../../../../com/contactlab/api/ws/package-summary.html">com.contactlab.api.ws</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../com/contactlab/api/ws/package-summary.html">com.contactlab.api.ws</a> that return <a href="../../../../../com/contactlab/api/ws/RollbackSelection.html" title="class in com.contactlab.api.ws">RollbackSelection</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/contactlab/api/ws/RollbackSelection.html" title="class in com.contactlab.api.ws">RollbackSelection</a></code></td>
<td class="colLast"><span class="typeNameLabel">ObjectFactory.</span><code><span class="memberNameLink"><a href="../../../../../com/contactlab/api/ws/ObjectFactory.html#createRollbackSelection--">createRollbackSelection</a></span>()</code>
<div class="block">Create an instance of <a href="../../../../../com/contactlab/api/ws/RollbackSelection.html" title="class in com.contactlab.api.ws"><code>RollbackSelection</code></a></div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../com/contactlab/api/ws/package-summary.html">com.contactlab.api.ws</a> that return types with arguments of type <a href="../../../../../com/contactlab/api/ws/RollbackSelection.html" title="class in com.contactlab.api.ws">RollbackSelection</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>javax.xml.bind.JAXBElement<<a href="../../../../../com/contactlab/api/ws/RollbackSelection.html" title="class in com.contactlab.api.ws">RollbackSelection</a>></code></td>
<td class="colLast"><span class="typeNameLabel">ObjectFactory.</span><code><span class="memberNameLink"><a href="../../../../../com/contactlab/api/ws/ObjectFactory.html#createRollbackSelection-com.contactlab.api.ws.RollbackSelection-">createRollbackSelection</a></span>(<a href="../../../../../com/contactlab/api/ws/RollbackSelection.html" title="class in com.contactlab.api.ws">RollbackSelection</a> value)</code>
<div class="block">Create an instance of <code>JAXBElement</code><code><</code><a href="../../../../../com/contactlab/api/ws/RollbackSelection.html" title="class in com.contactlab.api.ws"><code>RollbackSelection</code></a><code>></code>}</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../com/contactlab/api/ws/package-summary.html">com.contactlab.api.ws</a> with parameters of type <a href="../../../../../com/contactlab/api/ws/RollbackSelection.html" title="class in com.contactlab.api.ws">RollbackSelection</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>javax.xml.bind.JAXBElement<<a href="../../../../../com/contactlab/api/ws/RollbackSelection.html" title="class in com.contactlab.api.ws">RollbackSelection</a>></code></td>
<td class="colLast"><span class="typeNameLabel">ObjectFactory.</span><code><span class="memberNameLink"><a href="../../../../../com/contactlab/api/ws/ObjectFactory.html#createRollbackSelection-com.contactlab.api.ws.RollbackSelection-">createRollbackSelection</a></span>(<a href="../../../../../com/contactlab/api/ws/RollbackSelection.html" title="class in com.contactlab.api.ws">RollbackSelection</a> value)</code>
<div class="block">Create an instance of <code>JAXBElement</code><code><</code><a href="../../../../../com/contactlab/api/ws/RollbackSelection.html" title="class in com.contactlab.api.ws"><code>RollbackSelection</code></a><code>></code>}</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../com/contactlab/api/ws/RollbackSelection.html" title="class in com.contactlab.api.ws">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/contactlab/api/ws/class-use/RollbackSelection.html" target="_top">Frames</a></li>
<li><a href="RollbackSelection.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2019 <a href="http://www.contactlab.com">ContactLab</a>. All Rights Reserved.</small></p>
</body>
</html>
| {
"content_hash": "41aa2d6414fee6ffd9930151e3e96fa5",
"timestamp": "",
"source": "github",
"line_count": 203,
"max_line_length": 419,
"avg_line_length": 50.0935960591133,
"alnum_prop": 0.6622086734192153,
"repo_name": "contactlab/soap-api-java-client-next",
"id": "37a5be043cba39d7aebfcdcac1568efba7adea20",
"size": "10169",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "target/apidocs/com/contactlab/api/ws/class-use/RollbackSelection.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "12842"
},
{
"name": "HTML",
"bytes": "13839967"
},
{
"name": "Java",
"bytes": "1417219"
},
{
"name": "JavaScript",
"bytes": "827"
}
],
"symlink_target": ""
} |
package HxCKDMS.HxCTools.Items;
import HxCKDMS.HxCTools.Creative.HxCToolsTab;
import HxCKDMS.HxCTools.Handling.TextureHandler;
import net.minecraft.item.Item;
import net.minecraft.item.ItemHoe;
public class SapphireHoe extends ItemHoe
{
public SapphireHoe(Item.ToolMaterial material)
{
super(material);
setCreativeTab(HxCToolsTab.HxCToolsTab);
setUnlocalizedName("SapphireHoe");
setTextureName(TextureHandler.SapphireHoe);
}
} | {
"content_hash": "4424c79e74a0010eb7370c58a30d6636",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 51,
"avg_line_length": 27.764705882352942,
"alnum_prop": 0.760593220338983,
"repo_name": "HxCKDMS/HxCArmory",
"id": "07b5a3661a1e37823dc00f2f8f640c2253fdf728",
"size": "472",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/main/java/HxCKDMS/HxCTools/Items/SapphireHoe.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "108"
},
{
"name": "Java",
"bytes": "82551"
}
],
"symlink_target": ""
} |
SUBROUTINE MA02ES( UPLO, N, A, LDA )
C
C SLICOT RELEASE 5.5.
C
C Copyright (c) 2002-2012 NICONET e.V.
C
C PURPOSE
C
C To store by skew-symmetry the upper or lower triangle of a
C skew-symmetric matrix, given the other triangle. The diagonal
C entries are set to zero.
C
C ARGUMENTS
C
C Mode Parameters
C
C UPLO CHARACTER*1
C Specifies which part of the matrix is given as follows:
C = 'U': Upper triangular part;
C = 'L': Lower triangular part.
C For all other values, the array A is not referenced.
C
C Input/Output Parameters
C
C N (input) INTEGER
C The order of the matrix A. N >= 0.
C
C A (input/output) DOUBLE PRECISION array, dimension (LDA,N)
C On entry, the leading N-by-N upper triangular part
C (if UPLO = 'U'), or lower triangular part (if UPLO = 'L'),
C of this array must contain the corresponding upper or
C lower triangle of the skew-symmetric matrix A.
C On exit, the leading N-by-N part of this array contains
C the skew-symmetric matrix A with all elements stored.
C
C LDA INTEGER
C The leading dimension of the array A. LDA >= max(1,N).
C
C CONTRIBUTOR
C
C V. Sima, Research Institute for Informatics, Bucharest, Romania,
C Sep. 2012.
C
C REVISIONS
C
C -
C
C ******************************************************************
C
C .. Parameters ..
DOUBLE PRECISION ZERO
PARAMETER ( ZERO = 0.0D0 )
C .. Scalar Arguments ..
CHARACTER UPLO
INTEGER LDA, N
C .. Array Arguments ..
DOUBLE PRECISION A(LDA,*)
C .. Local Scalars ..
INTEGER J
C .. External Functions ..
LOGICAL LSAME
EXTERNAL LSAME
C
C .. Executable Statements ..
C
C For efficiency reasons, the parameters are not checked for errors.
C
IF( LSAME( UPLO, 'L' ) ) THEN
C
C Construct the upper triangle of A.
C
DO 20 I = 1, N
A(I,I) = ZERO
DO 10 J = 2, N
A(I,J) = -A(J,I)
10 CONTINUE
20 CONTINUE
C
ELSE IF( LSAME( UPLO, 'U' ) ) THEN
C
C Construct the lower triangle of A.
C
DO 40 I = 1, N
A(I,I) = ZERO
DO 30 J = 2, N
A(J,I) = -A(I,J)
30 CONTINUE
40 CONTINUE
C
END IF
RETURN
C *** Last line of MA02ES ***
END
| {
"content_hash": "d9144bff6c1e9401b0f0ddb5f98c6b9f",
"timestamp": "",
"source": "github",
"line_count": 93,
"max_line_length": 72,
"avg_line_length": 28.311827956989248,
"alnum_prop": 0.5184200531712875,
"repo_name": "bgin/MissileSimulation",
"id": "d125311998924ab244d6600eb7a657eca5e31f60",
"size": "2633",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "External/SLICOT/MA02ES.f",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Assembly",
"bytes": "5650"
},
{
"name": "C",
"bytes": "43360"
},
{
"name": "C++",
"bytes": "2089050"
},
{
"name": "Fortran",
"bytes": "7447841"
}
],
"symlink_target": ""
} |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Comp1970Component } from './comp-1970.component';
describe('Comp1970Component', () => {
let component: Comp1970Component;
let fixture: ComponentFixture<Comp1970Component>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ Comp1970Component ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(Comp1970Component);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
| {
"content_hash": "3e076a5719bc099369c914f2ba9ba5ac",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 73,
"avg_line_length": 23.88888888888889,
"alnum_prop": 0.6744186046511628,
"repo_name": "angular/angular-cli-stress-test",
"id": "e59b2ef8fd07a9b282ee6a236e6a8de42492c9c6",
"size": "847",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/app/components/comp-1970/comp-1970.component.spec.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "1040888"
},
{
"name": "HTML",
"bytes": "300322"
},
{
"name": "JavaScript",
"bytes": "2404"
},
{
"name": "TypeScript",
"bytes": "8535506"
}
],
"symlink_target": ""
} |
from __future__ import print_function
import sys, os
import logging
from ginga import AstroImage, colors
import ginga.toolkit as ginga_toolkit
from ginga.canvas.CanvasObject import get_canvas_types
from ginga.util.toolbox import ModeIndicator
from ginga.misc import log
class FitsViewer(object):
def __init__(self, logger):
self.logger = logger
self.drawcolors = colors.get_colors()
self.dc = get_canvas_types()
from ginga.gw import Widgets, Viewers
self.app = Widgets.Application(logger=logger)
#self.app.add_callback('shutdown', self.quit)
self.top = self.app.make_window("Ginga shared canvas example")
self.top.add_callback('close', self.closed)
vbox = Widgets.VBox()
vbox.set_border_width(2)
vbox.set_spacing(1)
hbox = Widgets.HBox()
hbox.set_border_width(2)
hbox.set_spacing(4)
v1 = Viewers.CanvasView(logger)
v1.enable_autocuts('on')
v1.set_autocut_params('zscale')
v1.enable_autozoom('on')
v1.set_zoom_algorithm('rate')
v1.set_zoomrate(1.4)
v1.show_pan_mark(True)
v1.set_callback('drag-drop', self.drop_file)
v1.set_callback('none-move', self.motion)
v1.set_bg(0.2, 0.2, 0.2)
v1.ui_setActive(True)
v1.set_name('tweedledee')
self.viewer1 = v1
self._mi1 = ModeIndicator(v1)
bd = v1.get_bindings()
bd.enable_all(True)
# shared canvas between the two viewers
shcanvas = self.dc.DrawingCanvas()
# Tell viewer1 to use this canvas
v1.set_canvas(shcanvas)
v1.set_desired_size(300, 300)
iw = Viewers.GingaViewerWidget(viewer=v1)
hbox.add_widget(iw, stretch=1)
# Add a second viewer viewing the same canvas
v2 = Viewers.CanvasView(logger)
v2.enable_autocuts('on')
v2.set_autocut_params('zscale')
v2.enable_autozoom('on')
v2.set_zoom_algorithm('rate')
v2.set_zoomrate(1.4)
v2.show_pan_mark(True)
v2.set_callback('drag-drop', self.drop_file)
v2.set_callback('none-move', self.motion)
v2.set_bg(0.2, 0.2, 0.2)
v2.ui_setActive(True)
v1.set_name('tweedledum')
self.viewer2 = v2
self._mi2 = ModeIndicator(v2)
# Tell viewer2 to use this same canvas
v2.set_canvas(shcanvas)
bd = v2.get_bindings()
bd.enable_all(True)
v2.set_desired_size(300, 300)
iw = Viewers.GingaViewerWidget(viewer=v2)
hbox.add_widget(iw, stretch=1)
# 2nd canvas as a subcanvas of the shared canvas
canvas = self.dc.DrawingCanvas()
canvas.enable_draw(True)
canvas.enable_edit(True)
canvas.register_for_cursor_drawing(v1)
canvas.register_for_cursor_drawing(v2)
canvas.set_drawtype('rectangle', color='lightblue')
self.canvas = canvas
shcanvas.add(self.canvas)
shcanvas.ui_setActive(True)
canvas.ui_setActive(True)
canvas.set_surface(v1)
self.drawtypes = canvas.get_drawtypes()
self.drawtypes.sort()
vbox.add_widget(hbox, stretch=1)
self.readout = Widgets.Label("")
vbox.add_widget(self.readout, stretch=0)
hbox = Widgets.HBox()
hbox.set_border_width(2)
wdrawtype = Widgets.ComboBox()
for name in self.drawtypes:
wdrawtype.append_text(name)
index = self.drawtypes.index('rectangle')
wdrawtype.set_index(index)
wdrawtype.add_callback('activated', lambda w, idx: self.set_drawparams())
self.wdrawtype = wdrawtype
wdrawcolor = Widgets.ComboBox()
for name in self.drawcolors:
wdrawcolor.append_text(name)
index = self.drawcolors.index('lightblue')
wdrawcolor.set_index(index)
wdrawcolor.add_callback('activated', lambda w, idx: self.set_drawparams())
self.wdrawcolor = wdrawcolor
wfill = Widgets.CheckBox("Fill")
wfill.add_callback('activated', lambda w, tf: self.set_drawparams())
self.wfill = wfill
walpha = Widgets.SpinBox(dtype=float)
walpha.set_limits(0.0, 1.0, incr_value=0.1)
walpha.set_value(1.0)
walpha.set_decimals(2)
walpha.add_callback('value-changed', lambda w, val: self.set_drawparams())
self.walpha = walpha
wclear = Widgets.Button("Clear Canvas")
wclear.add_callback('activated', lambda w: self.clear_canvas())
wopen = Widgets.Button("Open File")
wopen.add_callback('activated', lambda w: self.open_file())
wquit = Widgets.Button("Quit")
wquit.add_callback('activated', lambda w: self.quit())
hbox.add_widget(Widgets.Label(''), stretch=1)
for w in (wopen, wdrawtype, wdrawcolor, wfill,
Widgets.Label('Alpha:'), walpha, wclear, wquit):
hbox.add_widget(w, stretch=0)
vbox.add_widget(hbox, stretch=0)
mode = self.canvas.get_draw_mode()
hbox = Widgets.HBox()
btn1 = Widgets.RadioButton("Draw")
btn1.set_state(mode == 'draw')
btn1.add_callback('activated', lambda w, val: self.set_mode_cb('draw', val))
btn1.set_tooltip("Choose this to draw on the canvas")
hbox.add_widget(btn1)
btn2 = Widgets.RadioButton("Edit", group=btn1)
btn2.set_state(mode == 'edit')
btn2.add_callback('activated', lambda w, val: self.set_mode_cb('edit', val))
btn2.set_tooltip("Choose this to edit things on the canvas")
hbox.add_widget(btn2)
## btn3 = Widgets.CheckBox("I'm using a trackpad")
## btn3.add_callback('activated', lambda w, tf: self.use_trackpad_cb(tf))
## hbox.add_widget(btn3)
hbox.add_widget(Widgets.Label(''), stretch=1)
vbox.add_widget(hbox, stretch=0)
self.top.set_widget(vbox)
def set_drawparams(self):
index = self.wdrawtype.get_index()
kind = self.drawtypes[index]
index = self.wdrawcolor.get_index()
fill = self.wfill.get_state()
alpha = self.walpha.get_value()
coord = 'data'
params = { 'color': self.drawcolors[index],
'alpha': alpha,
'coord': coord,
}
if kind in ('circle', 'rectangle', 'polygon', 'triangle',
'righttriangle', 'ellipse', 'square', 'box'):
params['fill'] = fill
params['fillalpha'] = alpha
self.canvas.set_drawtype(kind, **params)
def clear_canvas(self):
self.canvas.delete_all_objects()
def load_file(self, viewer, filepath):
image = AstroImage.AstroImage(logger=self.logger)
image.load_file(filepath)
viewer.set_image(image)
self.top.set_title(filepath)
def open_file(self):
res = Widgets.FileDialog.getOpenFileName(self, "Open FITS file",
".", "FITS files (*.fits)")
if isinstance(res, tuple):
fileName = res[0]
else:
fileName = str(res)
if len(fileName) != 0:
self.load_file(self.viewer1, fileName)
def drop_file(self, viewer, paths):
fileName = paths[0]
#print(fileName)
self.load_file(viewer, fileName)
def motion(self, viewer, button, data_x, data_y):
# Get the value under the data coordinates
try:
#value = viewer.get_data(data_x, data_y)
# We report the value across the pixel, even though the coords
# change halfway across the pixel
value = viewer.get_data(int(data_x+0.5), int(data_y+0.5))
except Exception:
value = None
fits_x, fits_y = data_x + 1, data_y + 1
# Calculate WCS RA
try:
# NOTE: image function operates on DATA space coords
image = viewer.get_image()
if image is None:
# No image loaded
return
ra_txt, dec_txt = image.pixtoradec(fits_x, fits_y,
format='str', coords='fits')
except Exception as e:
self.logger.warning("Bad coordinate conversion: %s" % (
str(e)))
ra_txt = 'BAD WCS'
dec_txt = 'BAD WCS'
text = "RA: %s DEC: %s X: %.2f Y: %.2f Value: %s" % (
ra_txt, dec_txt, fits_x, fits_y, value)
self.readout.set_text(text)
def set_mode_cb(self, mode, tf):
self.logger.info("canvas mode changed (%s) %s" % (mode, tf))
if not (tf is False):
self.canvas.set_draw_mode(mode)
return True
def closed(self, w):
self.logger.info("Top window closed.")
self.top = None
sys.exit()
def quit(self, *args):
self.logger.info("Attempting to shut down the application...")
if not self.top is None:
self.top.close()
sys.exit()
def mainloop(self):
while True:
self.app.process_events()
def main(options, args):
logger = log.get_logger("example2", options=options)
if options.toolkit is None:
logger.error("Please choose a GUI toolkit with -t option")
# decide our toolkit, then import
ginga_toolkit.use(options.toolkit)
viewer = FitsViewer(logger)
viewer.top.resize(700, 540)
if len(args) > 0:
viewer.load_file(viewer.viewer1, args[0])
viewer.top.show()
viewer.top.raise_()
try:
app = viewer.top.get_app()
app.mainloop()
except KeyboardInterrupt:
print("Terminating viewer...")
if viewer.top is not None:
viewer.top.close()
if __name__ == "__main__":
# Parse command line options with nifty optparse module
from optparse import OptionParser
usage = "usage: %prog [options] cmd [args]"
optprs = OptionParser(usage=usage, version=('%%prog'))
optprs.add_option("--debug", dest="debug", default=False, action="store_true",
help="Enter the pdb debugger on main()")
optprs.add_option("--log", dest="logfile", metavar="FILE",
help="Write logging output to FILE")
optprs.add_option("--loglevel", dest="loglevel", metavar="LEVEL",
type='int', default=logging.INFO,
help="Set logging level to LEVEL")
optprs.add_option("--stderr", dest="logstderr", default=False,
action="store_true",
help="Copy logging also to stderr")
optprs.add_option("-t", "--toolkit", dest="toolkit", metavar="NAME",
default='qt',
help="Choose GUI toolkit (gtk|qt)")
optprs.add_option("--profile", dest="profile", action="store_true",
default=False,
help="Run the profiler on main()")
(options, args) = optprs.parse_args(sys.argv[1:])
# Are we debugging this?
if options.debug:
import pdb
pdb.run('main(options, args)')
# Are we profiling this?
elif options.profile:
import profile
print(("%s profile:" % sys.argv[0]))
profile.run('main(options, args)')
else:
main(options, args)
# END
| {
"content_hash": "0cc3348c4ce004f28d6de254edefd3fb",
"timestamp": "",
"source": "github",
"line_count": 347,
"max_line_length": 84,
"avg_line_length": 32.72910662824207,
"alnum_prop": 0.5777934313639165,
"repo_name": "rupak0577/ginga",
"id": "954ce085b3a63867c01d430c13e8ab3fe3d1c8e5",
"size": "11492",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "ginga/examples/gw/shared_canvas.py",
"mode": "33261",
"license": "bsd-3-clause",
"language": [
{
"name": "HTML",
"bytes": "2127"
},
{
"name": "JavaScript",
"bytes": "86230"
},
{
"name": "Jupyter Notebook",
"bytes": "2528752"
},
{
"name": "Makefile",
"bytes": "85"
},
{
"name": "Python",
"bytes": "3025335"
}
],
"symlink_target": ""
} |
<?php
use hipanel\models\IndexPageUiOptions;
use hipanel\modules\hosting\grid\HdomainGridLegend;
use hipanel\modules\hosting\grid\HdomainGridView;
use hipanel\modules\hosting\grid\HdomainRepresentations;
use hipanel\modules\hosting\models\HdomainSearch;
use hipanel\widgets\AjaxModal;
use hipanel\widgets\gridLegend\GridLegend;
use hipanel\widgets\IndexPage;
use hiqdev\hiart\ActiveDataProvider;
use yii\bootstrap\Dropdown;
use yii\helpers\Html;
use yii\web\View;
/**
* @var View $this
* @var HdomainSearch $model
* @var ActiveDataProvider $dataProvider
* @var IndexPageUiOptions $uiModel
* @var HdomainRepresentations $representationCollection
* @var array $stateData
* @var array $typeData
*/
$this->title = Yii::t('hipanel', 'Domains');
$this->params['subtitle'] = array_filter(Yii::$app->request->get($model->formName(), [])) ? Yii::t('hipanel', 'filtered list') : Yii::t('hipanel', 'full list');
$this->params['breadcrumbs'][] = $this->title;
?>
<?php $page = IndexPage::begin(['model' => $model, 'dataProvider' => $dataProvider]) ?>
<?php $page->setSearchFormData(['stateData' => $stateData, 'typeData' => $typeData]) ?>
<?php $page->beginContent('main-actions') ?>
<div class="dropdown">
<a class="btn btn-sm btn-success dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<?= Yii::t('hipanel:hosting', 'Create domain') ?>
<span class="caret"></span>
</a>
<?= Dropdown::widget([
'items' => [
['label' => Yii::t('hipanel:hosting', 'Create domain'), 'url' => ['create']],
['label' => Yii::t('hipanel:hosting', 'Create alias'), 'url' => ['create-alias']],
],
]) ?>
</div>
<?php if (Yii::getAlias('@certificate', false) && Yii::$app->user->can('certificate.pay') && Yii::$app->user->can('test.beta')) : ?>
<?= Html::a(Yii::t('hipanel:certificate', 'Buy certificate'), ['@certificate/order/index'], ['class' => 'btn btn-sm btn-success']) ?>
<?php endif ?>
<?php $page->endContent() ?>
<?php $page->begincontent('legend') ?>
<?= GridLegend::widget(['legendItem' => new HdomainGridLegend($model)]) ?>
<?php $page->endcontent() ?>
<?php $page->beginContent('sorter-actions') ?>
<?= $page->renderSorter([
'attributes' => [
'domain', 'client', 'seller',
'account', 'server', 'state',
],
]) ?>
<?php $page->endContent() ?>
<?php $page->beginContent('bulk-actions') ?>
<?php if (Yii::$app->user->can('support')) : ?>
<div class="dropdown" style="display: inline-block">
<button type="button" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<?= Yii::t('hipanel', 'Block') ?>
<span class="caret"></span>
</button>
<?= Dropdown::widget([
'encodeLabels' => false,
'options' => ['class' => 'pull-right'],
'items' => [
[
'label' => '<i class="fa fa-toggle-on"></i> ' . Yii::t('hipanel', 'Enable'),
'linkOptions' => ['data-toggle' => 'modal'],
'url' => '#bulk-enable-block-modal',
],
[
'label' => '<i class="fa fa-toggle-off"></i> ' . Yii::t('hipanel', 'Disable'),
'url' => '#bulk-disable-block-modal',
'linkOptions' => ['data-toggle' => 'modal'],
],
],
]) ?>
<div>
<?= AjaxModal::widget([
'id' => 'bulk-enable-block-modal',
'bulkPage' => true,
'header'=> Html::tag('h4', Yii::t('hipanel:hosting', 'Block domains'), ['class' => 'modal-title']),
'scenario' => 'bulk-enable-block',
'actionUrl' => ['bulk-enable-block-modal'],
'size' => AjaxModal::SIZE_LARGE,
'handleSubmit' => false,
'toggleButton' => false,
]) ?>
<?= AjaxModal::widget([
'id' => 'bulk-disable-block-modal',
'bulkPage' => true,
'header'=> Html::tag('h4', Yii::t('hipanel:hosting', 'Unblock domains'), ['class' => 'modal-title']),
'scenario' => 'bulk-disable-block',
'actionUrl' => ['bulk-disable-block-modal'],
'size' => AjaxModal::SIZE_LARGE,
'handleSubmit' => false,
'toggleButton' => false,
]) ?>
</div>
</div>
<?php endif ?>
<?= $page->renderBulkDeleteButton('delete')?>
<?php $page->endContent() ?>
<?php $page->beginContent('table') ?>
<?php $page->beginBulkForm() ?>
<?= HdomainGridView::widget([
'boxed' => false,
'dataProvider' => $dataProvider,
'filterModel' => $model,
'rowOptions' => function ($model) {
return GridLegend::create(new HdomainGridLegend($model))->gridRowOptions();
},
'columns' => $representationCollection->getByName($uiModel->representation)->getColumns(),
]) ?>
<?php $page->endBulkForm() ?>
<?php $page->endContent() ?>
<?php $page->end() ?>
| {
"content_hash": "d26e3babcd1be1a536f3e38583e3b8f5",
"timestamp": "",
"source": "github",
"line_count": 130,
"max_line_length": 160,
"avg_line_length": 44.95384615384615,
"alnum_prop": 0.4878507871321013,
"repo_name": "hiqdev/hipanel-module-hosting",
"id": "1c51e2e06a31830bc6f26cc633408512eeb3e18d",
"size": "5844",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/views/hdomain/index.php",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "JavaScript",
"bytes": "4295"
},
{
"name": "PHP",
"bytes": "488065"
}
],
"symlink_target": ""
} |
require "exception_list/version"
require "exception_list/exceptions"
Dir["tasks/**/*.rake"].each{|ext| load ext} if defined?(Rake)
module ExceptionList
def self.all
Exceptions.new.all
end
end
| {
"content_hash": "6cbc829fba5d9fe4cff79e79014358a5",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 61,
"avg_line_length": 22.333333333333332,
"alnum_prop": 0.7313432835820896,
"repo_name": "arktisklada/exception_list",
"id": "fc4db3476939aaffcf6e58ec72e301de256449db",
"size": "201",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/exception_list.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "1749"
}
],
"symlink_target": ""
} |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_31.c
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE193.label.xml
Template File: sources-sink-31.tmpl.c
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Point data to a buffer that does not have space for a NULL terminator
* GoodSource: Point data to a buffer that includes space for a NULL terminator
* Sinks: ncpy
* BadSink : Copy string to data using strncpy()
* Flow Variant: 31 Data flow using a copy of data within the same function
*
* */
#include "std_testcase.h"
#ifndef _WIN32
#include <wchar.h>
#endif
/* MAINTENANCE NOTE: The length of this string should equal the 10 */
#define SRC_STRING "AAAAAAAAAA"
#ifndef OMITBAD
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_31_bad()
{
char * data;
char dataBadBuffer[10];
char dataGoodBuffer[10+1];
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
{
char * dataCopy = data;
char * data = dataCopy;
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
}
}
#endif /* OMITBAD */
#ifndef OMITGOOD
/* goodG2B() uses the GoodSource with the BadSink */
static void goodG2B()
{
char * data;
char dataBadBuffer[10];
char dataGoodBuffer[10+1];
/* FIX: Set a pointer to a buffer that leaves room for a NULL terminator when performing
* string copies in the sinks */
data = dataGoodBuffer;
data[0] = '\0'; /* null terminate */
{
char * dataCopy = data;
char * data = dataCopy;
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
}
}
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_31_good()
{
goodG2B();
}
#endif /* OMITGOOD */
/* Below is the main(). It is only used when building this testcase on
* its own for testing or for building a binary to use in testing binary
* analysis tools. It is not used when compiling all the testcases as one
* application, which is how source code analysis tools are tested.
*/
#ifdef INCLUDEMAIN
int main(int argc, char * argv[])
{
/* seed randomness */
srand( (unsigned)time(NULL) );
#ifndef OMITGOOD
printLine("Calling good()...");
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_31_good();
printLine("Finished good()");
#endif /* OMITGOOD */
#ifndef OMITBAD
printLine("Calling bad()...");
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_31_bad();
printLine("Finished bad()");
#endif /* OMITBAD */
return 0;
}
#endif
| {
"content_hash": "d1e9fd06d4fe3ba5e65529394eaf9a31",
"timestamp": "",
"source": "github",
"line_count": 108,
"max_line_length": 101,
"avg_line_length": 30.814814814814813,
"alnum_prop": 0.6313100961538461,
"repo_name": "JianpingZeng/xcc",
"id": "5807249c979467ee0a6f304db2a71ecbe2d4b175",
"size": "3328",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s02/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_31.c",
"mode": "33188",
"license": "bsd-3-clause",
"language": [],
"symlink_target": ""
} |
FROM balenalib/jetson-nano-alpine:edge-run
# remove several traces of python
RUN apk del python*
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
# install python dependencies
RUN apk add --no-cache ca-certificates libffi \
&& apk add --no-cache libssl1.0 || apk add --no-cache libssl1.1
# key 63C7CC90: public key "Simon McVittie <[email protected]>" imported
# key 3372DCFA: public key "Donald Stufft (dstufft) <[email protected]>" imported
RUN gpg --keyserver keyring.debian.org --recv-keys 4DE8FF2A63C7CC90 \
&& gpg --keyserver keyserver.ubuntu.com --recv-key 6E3CBCE93372DCFA \
&& gpg --keyserver keyserver.ubuntu.com --recv-keys 0x52a43a1e4b77b059
# point Python at a system-provided certificate database. Otherwise, we might hit CERTIFICATE_VERIFY_FAILED.
# https://www.python.org/dev/peps/pep-0476/#trust-database
ENV SSL_CERT_FILE /etc/ssl/certs/ca-certificates.crt
ENV PYTHON_VERSION 3.6.15
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
ENV PYTHON_PIP_VERSION 21.3.1
ENV SETUPTOOLS_VERSION 60.5.4
RUN set -x \
&& buildDeps=' \
curl \
gnupg \
' \
&& apk add --no-cache --virtual .build-deps $buildDeps \
&& curl -SLO "http://resin-packages.s3.amazonaws.com/python/v$PYTHON_VERSION/Python-$PYTHON_VERSION.linux-alpine-aarch64-libffi3.3.tar.gz" \
&& echo "5b27dad8387ca41d1bafb93fc6f90ad0c4bca7f252cee4804713a9144ac6aebb Python-$PYTHON_VERSION.linux-alpine-aarch64-libffi3.3.tar.gz" | sha256sum -c - \
&& tar -xzf "Python-$PYTHON_VERSION.linux-alpine-aarch64-libffi3.3.tar.gz" --strip-components=1 \
&& rm -rf "Python-$PYTHON_VERSION.linux-alpine-aarch64-libffi3.3.tar.gz" \
&& if [ ! -e /usr/local/bin/pip3 ]; then : \
&& curl -SLO "https://raw.githubusercontent.com/pypa/get-pip/430ba37776ae2ad89f794c7a43b90dc23bac334c/get-pip.py" \
&& echo "19dae841a150c86e2a09d475b5eb0602861f2a5b7761ec268049a662dbd2bd0c get-pip.py" | sha256sum -c - \
&& python3 get-pip.py \
&& rm get-pip.py \
; fi \
&& pip3 install --no-cache-dir --upgrade --force-reinstall pip=="$PYTHON_PIP_VERSION" setuptools=="$SETUPTOOLS_VERSION" \
&& find /usr/local \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
-exec rm -rf '{}' + \
&& cd / \
&& rm -rf /usr/src/python ~/.cache
# make some useful symlinks that are expected to exist
RUN cd /usr/local/bin \
&& ln -sf pip3 pip \
&& { [ -e easy_install ] || ln -s easy_install-* easy_install; } \
&& ln -sf idle3 idle \
&& ln -sf pydoc3 pydoc \
&& ln -sf python3 python \
&& ln -sf python3-config python-config
CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs"]
RUN curl -SLO "https://raw.githubusercontent.com/balena-io-library/base-images/8accad6af708fca7271c5c65f18a86782e19f877/scripts/assets/tests/[email protected]" \
&& echo "Running test-stack@python" \
&& chmod +x [email protected] \
&& bash [email protected] \
&& rm -rf [email protected]
RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo $'Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): \nArchitecture: ARM v8 \nOS: Alpine Linux edge \nVariant: run variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \nPython v3.6.15, Pip v21.3.1, Setuptools v60.5.4 \nExtra features: \n- Easy way to install packages with `install_packages <package-name>` command \n- Run anywhere with cross-build feature (for ARM only) \n- Keep the container idling with `balena-idle` command \n- Show base image details with `balena-info` command' > /.balena/messages/image-info
RUN echo $'#!/bin/bash\nbalena-info\nbusybox ln -sf /bin/busybox /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \
&& chmod +x /bin/sh-shim \
&& ln -f /bin/sh /bin/sh.real \
&& ln -f /bin/sh-shim /bin/sh | {
"content_hash": "a9873914eb2d9b2b7f7ae85982d8de8b",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 714,
"avg_line_length": 53.35064935064935,
"alnum_prop": 0.7122687439143135,
"repo_name": "resin-io-library/base-images",
"id": "fc5e46098bc19a77673d664ae5f6a0244a9b7b5b",
"size": "4129",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "balena-base-images/python/jetson-nano/alpine/edge/3.6.15/run/Dockerfile",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "71234697"
},
{
"name": "JavaScript",
"bytes": "13096"
},
{
"name": "Shell",
"bytes": "12051936"
},
{
"name": "Smarty",
"bytes": "59789"
}
],
"symlink_target": ""
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_80) on Thu Oct 15 19:27:09 UTC 2015 -->
<title>CurrentRevision (AWS SDK for Java - 1.10.27)</title>
<meta name="date" content="2015-10-15">
<link rel="stylesheet" type="text/css" href="../../../../../JavaDoc.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="CurrentRevision (AWS SDK for Java - 1.10.27)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em>
<!-- Scripts for Syntax Highlighter START-->
<script id="syntaxhighlight_script_core" type="text/javascript" src = "http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/resources/syntaxhighlight/scripts/shCore.js">
</script>
<script id="syntaxhighlight_script_java" type="text/javascript" src = "http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/resources/syntaxhighlight/scripts/shBrushJava.js">
</script>
<link id="syntaxhighlight_css_core" rel="stylesheet" type="text/css" href = "http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/resources/syntaxhighlight/styles/shCoreDefault.css"/>
<link id="syntaxhighlight_css_theme" rel="stylesheet" type="text/css" href = "http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/resources/syntaxhighlight/styles/shThemeDefault.css"/>
<!-- Scripts for Syntax Highlighter END-->
<div>
<!-- BEGIN-SECTION -->
<div id="divsearch" style="float:left;">
<span id="lblsearch" for="searchQuery">
<label>Search</label>
</span>
<form id="nav-search-form" target="_parent" method="get" action="http://docs.aws.amazon.com/search/doc-search.html#facet_doc_guide=API+Reference&facet_doc_product=AWS+SDK+for+Java">
<div id="nav-searchfield-outer" class="nav-sprite">
<div class="nav-searchfield-inner nav-sprite">
<div id="nav-searchfield-width">
<input id="nav-searchfield" name="searchQuery">
</div>
</div>
</div>
<div id="nav-search-button" class="nav-sprite">
<input alt="" id="nav-search-button-inner" type="image">
</div>
<input name="searchPath" type="hidden" value="documentation-guide" />
<input name="this_doc_product" type="hidden" value="AWS SDK for Java" />
<input name="this_doc_guide" type="hidden" value="API Reference" />
<input name="doc_locale" type="hidden" value="en_us" />
</form>
</div>
<!-- END-SECTION -->
<!-- BEGIN-FEEDBACK-SECTION -->
<div id="feedback-section">
<h3>Did this page help you?</h3>
<div id="feedback-link-sectioin">
<a id="feedback_yes" target="_blank" style="display:inline;">Yes</a>
<a id="feedback_no" target="_blank" style="display:inline;">No</a>
<a id="go_cti" target="_blank" style="display:inline;">Tell us about it...</a>
</div>
</div>
<script type="text/javascript">
window.onload = function(){
/* Dynamically add feedback links */
var javadoc_root_name = "/javadoc/";
var javadoc_path = location.href.substring(0, location.href.lastIndexOf(javadoc_root_name) + javadoc_root_name.length);
var file_path = location.href.substring(location.href.lastIndexOf(javadoc_root_name) + javadoc_root_name.length);
var feedback_yes_url = javadoc_path + "javadoc-resources/feedbackyes.html?topic_id=";
var feedback_no_url = javadoc_path + "javadoc-resources/feedbackno.html?topic_id=";
var feedback_tellmore_url = "https://aws-portal.amazon.com/gp/aws/html-forms-controller/documentation/aws_doc_feedback_04?service_name=Java-Ref&file_name=";
if(file_path != "overview-frame.html") {
var file_name = file_path.replace(/[/.]/g, '_');
document.getElementById("feedback_yes").setAttribute("href", feedback_yes_url + file_name);
document.getElementById("feedback_no").setAttribute("href", feedback_no_url + file_name);
document.getElementById("go_cti").setAttribute("href", feedback_tellmore_url + file_name);
} else {
// hide the search box and the feeback links in overview-frame page,
// show "AWS SDK for Java" instead.
document.getElementById("feedback-section").outerHTML = "AWS SDK for Java";
document.getElementById("divsearch").outerHTML = "";
}
};
</script>
<!-- END-FEEDBACK-SECTION -->
</div>
</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/amazonaws/services/codepipeline/model/CreatePipelineResult.html" title="class in com.amazonaws.services.codepipeline.model"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../com/amazonaws/services/codepipeline/model/DeleteCustomActionTypeRequest.html" title="class in com.amazonaws.services.codepipeline.model"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/amazonaws/services/codepipeline/model/CurrentRevision.html" target="_top">Frames</a></li>
<li><a href="CurrentRevision.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.amazonaws.services.codepipeline.model</div>
<h2 title="Class CurrentRevision" class="title">Class CurrentRevision</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>com.amazonaws.services.codepipeline.model.CurrentRevision</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>java.io.Serializable, java.lang.Cloneable</dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">CurrentRevision</span>
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable</pre>
<div class="block"><p>
Represents information about a current revision.
</p></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../serialized-form.html#com.amazonaws.services.codepipeline.model.CurrentRevision">Serialized Form</a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../com/amazonaws/services/codepipeline/model/CurrentRevision.html#CurrentRevision()">CurrentRevision</a></strong>()</code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/codepipeline/model/CurrentRevision.html" title="class in com.amazonaws.services.codepipeline.model">CurrentRevision</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/codepipeline/model/CurrentRevision.html#clone()">clone</a></strong>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/codepipeline/model/CurrentRevision.html#equals(java.lang.Object)">equals</a></strong>(java.lang.Object obj)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/codepipeline/model/CurrentRevision.html#getChangeIdentifier()">getChangeIdentifier</a></strong>()</code>
<div class="block">
The change identifier for the current revision.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/codepipeline/model/CurrentRevision.html#getRevision()">getRevision</a></strong>()</code>
<div class="block">
The revision ID of the current version of an artifact.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/codepipeline/model/CurrentRevision.html#hashCode()">hashCode</a></strong>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/codepipeline/model/CurrentRevision.html#setChangeIdentifier(java.lang.String)">setChangeIdentifier</a></strong>(java.lang.String changeIdentifier)</code>
<div class="block">
The change identifier for the current revision.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/codepipeline/model/CurrentRevision.html#setRevision(java.lang.String)">setRevision</a></strong>(java.lang.String revision)</code>
<div class="block">
The revision ID of the current version of an artifact.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/codepipeline/model/CurrentRevision.html#toString()">toString</a></strong>()</code>
<div class="block">Returns a string representation of this object; useful for testing and
debugging.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/codepipeline/model/CurrentRevision.html" title="class in com.amazonaws.services.codepipeline.model">CurrentRevision</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/codepipeline/model/CurrentRevision.html#withChangeIdentifier(java.lang.String)">withChangeIdentifier</a></strong>(java.lang.String changeIdentifier)</code>
<div class="block">
The change identifier for the current revision.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/codepipeline/model/CurrentRevision.html" title="class in com.amazonaws.services.codepipeline.model">CurrentRevision</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/codepipeline/model/CurrentRevision.html#withRevision(java.lang.String)">withRevision</a></strong>(java.lang.String revision)</code>
<div class="block">
The revision ID of the current version of an artifact.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>getClass, notify, notifyAll, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="CurrentRevision()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>CurrentRevision</h4>
<pre>public CurrentRevision()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="setRevision(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRevision</h4>
<pre>public void setRevision(java.lang.String revision)</pre>
<div class="block"><p>
The revision ID of the current version of an artifact.
</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>revision</code> - The revision ID of the current version of an artifact.</dd></dl>
</li>
</ul>
<a name="getRevision()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRevision</h4>
<pre>public java.lang.String getRevision()</pre>
<div class="block"><p>
The revision ID of the current version of an artifact.
</p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The revision ID of the current version of an artifact.</dd></dl>
</li>
</ul>
<a name="withRevision(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withRevision</h4>
<pre>public <a href="../../../../../com/amazonaws/services/codepipeline/model/CurrentRevision.html" title="class in com.amazonaws.services.codepipeline.model">CurrentRevision</a> withRevision(java.lang.String revision)</pre>
<div class="block"><p>
The revision ID of the current version of an artifact.
</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>revision</code> - The revision ID of the current version of an artifact.</dd>
<dt><span class="strong">Returns:</span></dt><dd>Returns a reference to this object so that method calls can be
chained together.</dd></dl>
</li>
</ul>
<a name="setChangeIdentifier(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setChangeIdentifier</h4>
<pre>public void setChangeIdentifier(java.lang.String changeIdentifier)</pre>
<div class="block"><p>
The change identifier for the current revision.
</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>changeIdentifier</code> - The change identifier for the current revision.</dd></dl>
</li>
</ul>
<a name="getChangeIdentifier()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getChangeIdentifier</h4>
<pre>public java.lang.String getChangeIdentifier()</pre>
<div class="block"><p>
The change identifier for the current revision.
</p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The change identifier for the current revision.</dd></dl>
</li>
</ul>
<a name="withChangeIdentifier(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withChangeIdentifier</h4>
<pre>public <a href="../../../../../com/amazonaws/services/codepipeline/model/CurrentRevision.html" title="class in com.amazonaws.services.codepipeline.model">CurrentRevision</a> withChangeIdentifier(java.lang.String changeIdentifier)</pre>
<div class="block"><p>
The change identifier for the current revision.
</p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>changeIdentifier</code> - The change identifier for the current revision.</dd>
<dt><span class="strong">Returns:</span></dt><dd>Returns a reference to this object so that method calls can be
chained together.</dd></dl>
</li>
</ul>
<a name="toString()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public java.lang.String toString()</pre>
<div class="block">Returns a string representation of this object; useful for testing and
debugging.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>toString</code> in class <code>java.lang.Object</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>A string representation of this object.</dd><dt><span class="strong">See Also:</span></dt><dd><code>Object.toString()</code></dd></dl>
</li>
</ul>
<a name="equals(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public boolean equals(java.lang.Object obj)</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>equals</code> in class <code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="hashCode()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hashCode</h4>
<pre>public int hashCode()</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>hashCode</code> in class <code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="clone()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>clone</h4>
<pre>public <a href="../../../../../com/amazonaws/services/codepipeline/model/CurrentRevision.html" title="class in com.amazonaws.services.codepipeline.model">CurrentRevision</a> clone()</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>clone</code> in class <code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em>
<div>
<!-- Script for Syntax Highlighter START -->
<script type="text/javascript">
SyntaxHighlighter.all()
</script>
<!-- Script for Syntax Highlighter END -->
</div>
<script src="http://a0.awsstatic.com/chrome/js/1.0.46/jquery.1.9.js" type="text/javascript"></script>
<script>jQuery.noConflict();</script>
<script>
jQuery(function ($) {
$("div.header").prepend('<!--REGION_DISCLAIMER_DO_NOT_REMOVE-->');
});
</script>
<!-- BEGIN-URCHIN-TRACKER -->
<script src="http://l0.awsstatic.com/js/urchin.js" type="text/javascript"></script>
<script type="text/javascript">urchinTracker();</script>
<!-- END-URCHIN-TRACKER -->
<!-- SiteCatalyst code version: H.25.2. Copyright 1996-2012 Adobe, Inc. All Rights Reserved.
More info available at http://www.omniture.com -->
<script language="JavaScript" type="text/javascript" src="https://media.amazonwebservices.com/js/sitecatalyst/s_code.min.js (view-source:https://media.amazonwebservices.com/js/sitecatalyst/s_code.min.js)" />
<script language="JavaScript" type="text/javascript">
<!--
// Documentation Service Name
s.prop66='AWS SDK for Java';
s.eVar66='D=c66';
// Documentation Guide Name
s.prop65='API Reference';
s.eVar65='D=c65';
var s_code=s.t();if(s_code)document.write(s_code)
//-->
</script>
<script language="JavaScript" type="text/javascript">
<!--if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
//-->
</script>
<noscript>
<img src="http://amazonwebservices.d2.sc.omtrdc.net/b/ss/awsamazondev/1/H.25.2--NS/0" height="1" width="1" border="0" alt="" />
</noscript>
<!--/DO NOT REMOVE/-->
<!-- End SiteCatalyst code version: H.25.2. -->
</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/amazonaws/services/codepipeline/model/CreatePipelineResult.html" title="class in com.amazonaws.services.codepipeline.model"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../com/amazonaws/services/codepipeline/model/DeleteCustomActionTypeRequest.html" title="class in com.amazonaws.services.codepipeline.model"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/amazonaws/services/codepipeline/model/CurrentRevision.html" target="_top">Frames</a></li>
<li><a href="CurrentRevision.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.
</small></p>
</body>
</html>
| {
"content_hash": "553995992e5653d3dbb101492487e81b",
"timestamp": "",
"source": "github",
"line_count": 567,
"max_line_length": 255,
"avg_line_length": 42.282186948853614,
"alnum_prop": 0.6332276633019104,
"repo_name": "TomNong/Project2-Intel-Edison",
"id": "8def82e02c7fe82f3482108d4b863afc78d352ae",
"size": "23974",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "documentation/javadoc/com/amazonaws/services/codepipeline/model/CurrentRevision.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "5522"
}
],
"symlink_target": ""
} |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace NewtonVR
{
public class NVRCollisionSoundProviderUnity : NVRCollisionSoundProvider
{
private static string AudioSourcePrefabPath = "CollisionSoundPrefab";
private static string CollisionSoundsPath = "CollisionSounds";
private GameObject AudioSourcePrefab;
private AudioSource[] AudioPool;
private int CurrentPoolIndex;
private Dictionary<NVRCollisionSoundMaterials, List<AudioClip>> Clips;
public override void Awake()
{
AudioPool = new AudioSource[NVRCollisionSoundController.Instance.SoundPoolSize];
AudioSourcePrefab = Resources.Load<GameObject>(AudioSourcePrefabPath);
for (int index = 0; index < AudioPool.Length; index++)
{
AudioPool[index] = GameObject.Instantiate<GameObject>(AudioSourcePrefab).GetComponent<AudioSource>();
AudioPool[index].transform.parent = this.transform;
}
AudioClip[] clips = Resources.LoadAll<AudioClip>(CollisionSoundsPath);
Clips = new Dictionary<NVRCollisionSoundMaterials, List<AudioClip>>();
for (int index = 0; index < clips.Length; index++)
{
string name = clips[index].name;
int dividerIndex = name.IndexOf("__");
if (dividerIndex >= 0)
name = name.Substring(0, dividerIndex);
NVRCollisionSoundMaterials? material = NVRCollisionSoundMaterialsList.Parse(name);
if (material != null)
{
if (Clips.ContainsKey(material.Value) == false || Clips[material.Value] == null)
Clips[material.Value] = new List<AudioClip>();
Clips[material.Value].Add(clips[index]);
}
else
{
Debug.LogWarning("[NewtonVR] CollisionSound: Found clip for material that is not in enumeration (NVRCollisionSoundMaterials): " + clips[index].name);
}
}
}
public override void Play(NVRCollisionSoundMaterials material, Vector3 position, float impactVolume)
{
if (material == NVRCollisionSoundMaterials.none)
return;
if (NVRCollisionSoundController.Instance.PitchModulationEnabled == true)
{
AudioPool[CurrentPoolIndex].pitch = Random.Range(1 - NVRCollisionSoundController.Instance.PitchModulationRange, 1 + NVRCollisionSoundController.Instance.PitchModulationRange);
}
AudioPool[CurrentPoolIndex].transform.position = position;
AudioPool[CurrentPoolIndex].volume = impactVolume;
AudioPool[CurrentPoolIndex].clip = GetClip(material);
AudioPool[CurrentPoolIndex].Play();
CurrentPoolIndex++;
if (CurrentPoolIndex >= AudioPool.Length)
{
CurrentPoolIndex = 0;
}
}
private AudioClip GetClip(NVRCollisionSoundMaterials material)
{
if (Clips.ContainsKey(material) == false)
{
material = NVRCollisionSoundMaterials._default;
Debug.LogError("[NewtonVR] CollisionSound: Trying to play sound for material without a clip. Need a clip at: " + CollisionSoundsPath + "/" + material.ToString());
}
int index = Random.Range(0, Clips[material].Count);
return Clips[material][index];
}
}
}
| {
"content_hash": "c230cf49637f41b502c3c9a2b78c6340",
"timestamp": "",
"source": "github",
"line_count": 89,
"max_line_length": 191,
"avg_line_length": 40.561797752808985,
"alnum_prop": 0.6094182825484764,
"repo_name": "Battleman/StartHack2k17",
"id": "5438793279350cf21a7d91a1a2cb4acff7982f70",
"size": "3612",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "FFS/Assets/NewtonVR/CollisionSoundFramework/NVRCollisionSoundProviderUnity.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "237298"
},
{
"name": "C#",
"bytes": "1315851"
},
{
"name": "GLSL",
"bytes": "8166"
},
{
"name": "HTML",
"bytes": "2590"
}
],
"symlink_target": ""
} |
#nullable enable
using System;
using System.Threading.Tasks;
using Content.Server.GameObjects.Components.Stack;
using Content.Shared.Construction;
using Content.Shared.Utility;
using JetBrains.Annotations;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Serialization;
namespace Content.Server.Construction.Completions
{
[UsedImplicitly]
public class SpawnPrototype : IGraphAction
{
public string Prototype { get; private set; } = string.Empty;
public int Amount { get; private set; } = 1;
public void ExposeData(ObjectSerializer serializer)
{
serializer.DataField(this, x => x.Prototype, "prototype", string.Empty);
serializer.DataField(this, x => x.Amount, "amount", 1);
}
public async Task PerformAction(IEntity entity, IEntity? user)
{
if (entity.Deleted || string.IsNullOrEmpty(Prototype)) return;
var entityManager = IoCManager.Resolve<IEntityManager>();
var coordinates = entity.Transform.Coordinates;
if (EntityPrototypeHelpers.HasComponent<StackComponent>(Prototype))
{
var _entity = entityManager.SpawnEntity(Prototype, coordinates);
StackComponent stackComponent = _entity.GetComponent<StackComponent>();
stackComponent.Count = Math.Min(stackComponent.MaxCount, Amount);
}
else
{
for (var i = 0; i < Amount; i++)
{
entityManager.SpawnEntity(Prototype, coordinates);
}
}
}
}
}
| {
"content_hash": "b6ac3acb58613dc42dc7da34602a08e5",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 87,
"avg_line_length": 32.88235294117647,
"alnum_prop": 0.6249254621347644,
"repo_name": "space-wizards/space-station-14-content",
"id": "30e891bed6dc379f85878e1409e59aa97685e378",
"size": "1679",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Content.Server/Construction/Completions/SpawnPrototype.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "344"
},
{
"name": "C#",
"bytes": "582784"
},
{
"name": "Python",
"bytes": "13736"
},
{
"name": "Shell",
"bytes": "429"
}
],
"symlink_target": ""
} |
import numpy as np
import mygis
from bunch import Bunch
def vcoord(filename):
"""compute the vertical coordinate in space and time for a given file"""
na=np.newaxis
ptop = mygis.read_nc(filename,"ptop").data
sigma = mygis.read_nc(filename,"lev").data[na,:,na,na]
ps= mygis.read_nc(filename,"ps").data[:,na,:,:]
p= ptop+sigma*(ps-ptop)
return p
| {
"content_hash": "5a344bb1bc7b9690316a84ae95db92c4",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 76,
"avg_line_length": 26.785714285714285,
"alnum_prop": 0.664,
"repo_name": "NCAR/icar",
"id": "972c3932eeb23e02505b962cbb2045f3195faf84",
"size": "375",
"binary": false,
"copies": "2",
"ref": "refs/heads/main",
"path": "helpers/cmip/models/fgoals.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Assembly",
"bytes": "247"
},
{
"name": "C++",
"bytes": "667"
},
{
"name": "Fortran",
"bytes": "5590986"
},
{
"name": "Makefile",
"bytes": "35392"
},
{
"name": "NASL",
"bytes": "665"
},
{
"name": "Python",
"bytes": "286118"
},
{
"name": "Shell",
"bytes": "14780"
}
],
"symlink_target": ""
} |
using namespace std;
namespace po = boost::program_options;
using boost::asio::ip::tcp;
const string HOSTNAME = "api.openweathermap.org";
const string BASEPATH = "/data/2.5/weather?q=";
po::variables_map parse_args(int argc, char **argv) {
po::options_description desc("Accepted options");
desc.add_options()
("help", "produce help message")
("temp", "sort by temperature instead of location")
("location", po::value<vector<string> >(), "location(s)")
;
po::positional_options_description p;
p.add("location", -1);
po::variables_map vm;
po::store(po::command_line_parser(argc, argv).options(desc).positional(p).run(), vm);
po::notify(vm);
if (vm.count("help")) {
cout << desc << "\n";
}
return vm;
}
class WeatherData {
public:
WeatherData(string loc, string raw) {
this->loc = loc;
this->raw = raw;
}
string description() const {
return this->loc + ": " + this->raw;
}
string location() const {
return this->loc;
}
private:
string raw;
string loc;
};
WeatherData *get_data(string location) {
boost::asio::io_service io_service;
tcp::resolver resolver(io_service);
string path = BASEPATH + location;
tcp::resolver::query query(HOSTNAME, "http");
tcp::resolver::iterator endpoint_iterator = resolver.resolve(query);
tcp::socket socket(io_service);
boost::asio::connect(socket, endpoint_iterator);
boost::asio::streambuf request;
std::ostream request_stream(&request);
request_stream << "GET " << path << " HTTP/1.0\r\n";
request_stream << "Host: " << HOSTNAME << "\r\n";
request_stream << "Accept: application/json\r\n";
request_stream << "Connection: close\r\n\r\n";
boost::asio::write(socket, request);
// Read the response status line. The response streambuf will automatically
// grow to accommodate the entire line. The growth may be limited by passing
// a maximum size to the streambuf constructor.
boost::asio::streambuf response;
boost::asio::read_until(socket, response, "\r\n");
// Check that response is OK.
std::istream response_stream(&response);
std::string http_version;
response_stream >> http_version;
unsigned int status_code;
response_stream >> status_code;
std::string status_message;
std::getline(response_stream, status_message);
if (!response_stream || http_version.substr(0, 5) != "HTTP/")
{
std::cout << "Invalid response\n";
return nullptr;
}
if (status_code != 200)
{
std::cout << "Response returned with status code " << status_code << "\n";
return nullptr;
}
// Read the response headers, which are terminated by a blank line.
boost::asio::read_until(socket, response, "\r\n\r\n");
// Process the response headers.
std::string header;
while (std::getline(response_stream, header) && header != "\r")
;
stringstream content;
// Write whatever content we already have to output.
if (response.size() > 0)
content << &response;
// Read until EOF, writing data to output as we go.
boost::system::error_code error;
while (boost::asio::read(socket, response,
boost::asio::transfer_at_least(1), error))
content << &response;
if (error != boost::asio::error::eof)
throw boost::system::system_error(error);
return new WeatherData(location, content.str());
}
int main(int argc, char **argv) {
// First, parse input arguments
po::variables_map vm = parse_args(argc, argv);
// ... and quit if only 'help' was wanted
if (vm.count("help")) {
return 1;
}
// Ensure that we actually want to get weather for 1-or-more locations
if (vm.count("location") < 1) {
cerr << "No locations given" << endl;
return 2;
}
auto locations = vm["location"].as<vector<string> >();
// Check sorting order
if (vm.count("temp")) {
cout << "All righty, we'll sort by temperature instead of location" << endl;
}
// Fetch location data asynchronously
vector<future<WeatherData*> > futures;
for (auto location: locations)
{
futures.push_back(async(launch::async, get_data, location));
}
// Wait for the data to come back
vector<WeatherData> data;
for (auto &f: futures) {
auto wd = f.get();
if (wd) {
data.push_back(*wd);
}
}
// Set up and select sorting lambda to use (based on "--temp" input arg)
auto location_sorter = [](const WeatherData l, const WeatherData r) -> bool {
return l.location() < r.location();
};
auto temperature_sorter = [](const WeatherData l, const WeatherData r) -> bool {
return l.location() > r.location(); // FIXME
};
auto selected_sorter = vm.count("temp") ? temperature_sorter : location_sorter;
// Sort the data
sort(data.begin(), data.end(), selected_sorter);
// .. and finally display it
for (auto wd: data) {
cout << wd.description() << endl;
}
return 0;
}
| {
"content_hash": "ae32c7ccaf74b3fe10c710ad312faee1",
"timestamp": "",
"source": "github",
"line_count": 169,
"max_line_length": 89,
"avg_line_length": 30.284023668639055,
"alnum_prop": 0.6141070730754201,
"repo_name": "torarvid/openweather",
"id": "90f804ea188bc7c9e689d20b6228434375438881",
"size": "5221",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "main.cpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C++",
"bytes": "5221"
},
{
"name": "Makefile",
"bytes": "350"
}
],
"symlink_target": ""
} |
"use strict";
angular.module('Multihost.Host.Controllers', []) | {
"content_hash": "b8e5ce068837fec5aafafbf843e34235",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 48,
"avg_line_length": 21.333333333333332,
"alnum_prop": 0.71875,
"repo_name": "asitparida/Multihost.Adapter",
"id": "f8a7f299cbe955707934846caa0aedca1e190838",
"size": "66",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "MultihostAdapter/MultihostAdapter/wwwroot/host/controllers/host._.controller.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "4401"
},
{
"name": "C++",
"bytes": "3056"
},
{
"name": "CSS",
"bytes": "205530"
},
{
"name": "HTML",
"bytes": "117572"
},
{
"name": "Java",
"bytes": "11679"
},
{
"name": "JavaScript",
"bytes": "669184"
},
{
"name": "Objective-C",
"bytes": "8882"
}
],
"symlink_target": ""
} |
(function (){
var win = {{ window.render|safe }};
function closeWindow(){ win.close(); }
{{ window.render_globals }}
win.show();
return win;
})()
| {
"content_hash": "22a91e4e7a92bbaa80d31cc21891ab15",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 13.923076923076923,
"alnum_prop": 0.5082872928176796,
"repo_name": "barsgroup/m3-ext",
"id": "04d2d01dfa6d1b7b7fbde4b1fe6829c4fcf6261a",
"size": "181",
"binary": false,
"copies": "2",
"ref": "refs/heads/deprecated/2.0.7.x",
"path": "src/m3_ext/ui/templates/ext-script/ext-windowscript.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "132105"
},
{
"name": "HTML",
"bytes": "18203"
},
{
"name": "JavaScript",
"bytes": "1532142"
},
{
"name": "Python",
"bytes": "468313"
}
],
"symlink_target": ""
} |
package cz.softdeluxe.jlib.date;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import java.time.LocalDateTime;
/**
* User: Petr Balat
* Date: 1.4.2014
*/
public class LocalDateTimeAdapter extends XmlAdapter<String, LocalDateTime> {
public LocalDateTime unmarshal(String datetime) throws Exception {
return LocalDateTime.parse(datetime);
}
public String marshal(LocalDateTime datetime) throws Exception {
return datetime.toString();
}
} | {
"content_hash": "7d2f01af944e8e6c754e91f801f526bb",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 77,
"avg_line_length": 25.36842105263158,
"alnum_prop": 0.7385892116182573,
"repo_name": "petrbalat/jlib",
"id": "c25596fbc7aad4d224f3068c6e783418d2936208",
"size": "482",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/cz/softdeluxe/jlib/date/LocalDateTimeAdapter.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "129"
},
{
"name": "Java",
"bytes": "13796"
},
{
"name": "Kotlin",
"bytes": "80909"
},
{
"name": "Shell",
"bytes": "25"
}
],
"symlink_target": ""
} |
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Reflection;
using System.Threading;
using System.Text;
using System.Xml;
using System.Xml.Linq;
using log4net;
using OpenMetaverse;
using OpenSim.Framework;
using OpenSim.Framework.Serialization;
using OpenSim.Framework.Serialization.External;
using OpenSim.Region.CoreModules.World.Archiver;
using OpenSim.Region.Framework.Scenes;
using OpenSim.Region.Framework.Scenes.Serialization;
using OpenSim.Region.Framework.Interfaces;
using OpenSim.Services.Interfaces;
namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver
{
public class InventoryArchiveReadRequest
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
/// <summary>
/// The maximum major version of archive that we can read. Minor versions shouldn't need a max number since version
/// bumps here should be compatible.
/// </summary>
public static int MAX_MAJOR_VERSION = 1;
protected TarArchiveReader archive;
private UserAccount m_userInfo;
private string m_invPath;
/// <value>
/// ID of this request
/// </value>
protected UUID m_id;
/// <summary>
/// Do we want to merge this load with existing inventory?
/// </summary>
protected bool m_merge;
protected IInventoryService m_InventoryService;
protected IAssetService m_AssetService;
protected IUserAccountService m_UserAccountService;
private InventoryArchiverModule m_module;
/// <value>
/// The stream from which the inventory archive will be loaded.
/// </value>
private Stream m_loadStream;
/// <summary>
/// Has the control file been loaded for this archive?
/// </summary>
public bool ControlFileLoaded { get; private set; }
/// <summary>
/// Do we want to enforce the check. IAR versions before 0.2 and 1.1 do not guarantee this order, so we can't
/// enforce.
/// </summary>
public bool EnforceControlFileCheck { get; private set; }
protected bool m_assetsLoaded;
protected bool m_inventoryNodesLoaded;
protected int m_successfulAssetRestores;
protected int m_failedAssetRestores;
protected int m_successfulItemRestores;
/// <summary>
/// Root destination folder for the IAR load.
/// </summary>
protected InventoryFolderBase m_rootDestinationFolder;
/// <summary>
/// Inventory nodes loaded from the iar.
/// </summary>
protected HashSet<InventoryNodeBase> m_loadedNodes = new HashSet<InventoryNodeBase>();
/// <summary>
/// In order to load identically named folders, we need to keep track of the folders that we have already
/// resolved.
/// </summary>
Dictionary <string, InventoryFolderBase> m_resolvedFolders = new Dictionary<string, InventoryFolderBase>();
/// <summary>
/// Record the creator id that should be associated with an asset. This is used to adjust asset creator ids
/// after OSP resolution (since OSP creators are only stored in the item
/// </summary>
protected Dictionary<UUID, UUID> m_creatorIdForAssetId = new Dictionary<UUID, UUID>();
public InventoryArchiveReadRequest(
IInventoryService inv, IAssetService assets, IUserAccountService uacc, UserAccount userInfo, string invPath, string loadPath, bool merge)
: this(UUID.Zero, null,
inv,
assets,
uacc,
userInfo,
invPath,
loadPath,
merge)
{
}
public InventoryArchiveReadRequest(
UUID id, InventoryArchiverModule module, IInventoryService inv, IAssetService assets, IUserAccountService uacc, UserAccount userInfo, string invPath, string loadPath, bool merge)
: this(
id,
module,
inv,
assets,
uacc,
userInfo,
invPath,
new GZipStream(ArchiveHelpers.GetStream(loadPath), CompressionMode.Decompress),
merge)
{
}
public InventoryArchiveReadRequest(
UUID id, InventoryArchiverModule module, IInventoryService inv, IAssetService assets, IUserAccountService uacc, UserAccount userInfo, string invPath, Stream loadStream, bool merge)
{
m_id = id;
m_InventoryService = inv;
m_AssetService = assets;
m_UserAccountService = uacc;
m_merge = merge;
m_userInfo = userInfo;
m_invPath = invPath;
m_loadStream = loadStream;
m_module = module;
// FIXME: Do not perform this check since older versions of OpenSim do save the control file after other things
// (I thought they weren't). We will need to bump the version number and perform this check on all
// subsequent IAR versions only
ControlFileLoaded = true;
}
/// <summary>
/// Execute the request
/// </summary>
/// <remarks>
/// Only call this once. To load another IAR, construct another request object.
/// </remarks>
/// <returns>
/// A list of the inventory nodes loaded. If folders were loaded then only the root folders are
/// returned
/// </returns>
/// <exception cref="System.Exception">Thrown if load fails.</exception>
public HashSet<InventoryNodeBase> Execute()
{
try
{
Exception reportedException = null;
string filePath = "ERROR";
List<InventoryFolderBase> folderCandidates
= InventoryArchiveUtils.FindFoldersByPath(
m_InventoryService, m_userInfo.PrincipalID, m_invPath);
if (folderCandidates.Count == 0)
{
// Possibly provide an option later on to automatically create this folder if it does not exist
m_log.ErrorFormat("[INVENTORY ARCHIVER]: Inventory path {0} does not exist", m_invPath);
return m_loadedNodes;
}
m_rootDestinationFolder = folderCandidates[0];
archive = new TarArchiveReader(m_loadStream);
byte[] data;
TarArchiveReader.TarEntryType entryType;
while ((data = archive.ReadEntry(out filePath, out entryType)) != null)
{
if (filePath == ArchiveConstants.CONTROL_FILE_PATH)
{
LoadControlFile(filePath, data);
}
else if (filePath.StartsWith(ArchiveConstants.ASSETS_PATH))
{
LoadAssetFile(filePath, data);
}
else if (filePath.StartsWith(ArchiveConstants.INVENTORY_PATH))
{
LoadInventoryFile(filePath, entryType, data);
}
}
archive.Close();
m_log.DebugFormat(
"[INVENTORY ARCHIVER]: Successfully loaded {0} assets with {1} failures",
m_successfulAssetRestores, m_failedAssetRestores);
//Alicia: When this is called by LibraryModule or Tests, m_module will be null as event is not required
if(m_module != null)
m_module.TriggerInventoryArchiveLoaded(m_id, true, m_userInfo, m_invPath, m_loadStream, reportedException, m_successfulItemRestores);
return m_loadedNodes;
}
catch(Exception Ex)
{
// Trigger saved event with failed result and exception data
if (m_module != null)
m_module.TriggerInventoryArchiveLoaded(m_id, false, m_userInfo, m_invPath, m_loadStream, Ex, 0);
return m_loadedNodes;
}
finally
{
m_loadStream.Close();
}
}
public void Close()
{
if (m_loadStream != null)
m_loadStream.Close();
}
/// <summary>
/// Replicate the inventory paths in the archive to the user's inventory as necessary.
/// </summary>
/// <param name="iarPath">The item archive path to replicate</param>
/// <param name="rootDestinationFolder">The root folder for the inventory load</param>
/// <param name="resolvedFolders">
/// The folders that we have resolved so far for a given archive path.
/// This method will add more folders if necessary
/// </param>
/// <param name="loadedNodes">
/// Track the inventory nodes created.
/// </param>
/// <returns>The last user inventory folder created or found for the archive path</returns>
public InventoryFolderBase ReplicateArchivePathToUserInventory(
string iarPath,
InventoryFolderBase rootDestFolder,
Dictionary <string, InventoryFolderBase> resolvedFolders,
HashSet<InventoryNodeBase> loadedNodes)
{
string iarPathExisting = iarPath;
// m_log.DebugFormat(
// "[INVENTORY ARCHIVER]: Loading folder {0} {1}", rootDestFolder.Name, rootDestFolder.ID);
InventoryFolderBase destFolder
= ResolveDestinationFolder(rootDestFolder, ref iarPathExisting, resolvedFolders);
// m_log.DebugFormat(
// "[INVENTORY ARCHIVER]: originalArchivePath [{0}], section already loaded [{1}]",
// iarPath, iarPathExisting);
string iarPathToCreate = iarPath.Substring(iarPathExisting.Length);
CreateFoldersForPath(destFolder, iarPathExisting, iarPathToCreate, resolvedFolders, loadedNodes);
return destFolder;
}
/// <summary>
/// Resolve a destination folder
/// </summary>
///
/// We require here a root destination folder (usually the root of the user's inventory) and the archive
/// path. We also pass in a list of previously resolved folders in case we've found this one previously.
///
/// <param name="archivePath">
/// The item archive path to resolve. The portion of the path passed back is that
/// which corresponds to the resolved desintation folder.
/// <param name="rootDestinationFolder">
/// The root folder for the inventory load
/// </param>
/// <param name="resolvedFolders">
/// The folders that we have resolved so far for a given archive path.
/// </param>
/// <returns>
/// The folder in the user's inventory that matches best the archive path given. If no such folder was found
/// then the passed in root destination folder is returned.
/// </returns>
protected InventoryFolderBase ResolveDestinationFolder(
InventoryFolderBase rootDestFolder,
ref string archivePath,
Dictionary <string, InventoryFolderBase> resolvedFolders)
{
// string originalArchivePath = archivePath;
while (archivePath.Length > 0)
{
// m_log.DebugFormat("[INVENTORY ARCHIVER]: Trying to resolve destination folder {0}", archivePath);
if (resolvedFolders.ContainsKey(archivePath))
{
// m_log.DebugFormat(
// "[INVENTORY ARCHIVER]: Found previously created folder from archive path {0}", archivePath);
return resolvedFolders[archivePath];
}
else
{
if (m_merge)
{
// TODO: Using m_invPath is totally wrong - what we need to do is strip the uuid from the
// iar name and try to find that instead.
string plainPath = ArchiveConstants.ExtractPlainPathFromIarPath(archivePath);
List<InventoryFolderBase> folderCandidates
= InventoryArchiveUtils.FindFoldersByPath(
m_InventoryService, m_userInfo.PrincipalID, plainPath);
if (folderCandidates.Count != 0)
{
InventoryFolderBase destFolder = folderCandidates[0];
resolvedFolders[archivePath] = destFolder;
return destFolder;
}
}
// Don't include the last slash so find the penultimate one
int penultimateSlashIndex = archivePath.LastIndexOf("/", archivePath.Length - 2);
if (penultimateSlashIndex >= 0)
{
// Remove the last section of path so that we can see if we've already resolved the parent
archivePath = archivePath.Remove(penultimateSlashIndex + 1);
}
else
{
// m_log.DebugFormat(
// "[INVENTORY ARCHIVER]: Found no previously created folder for archive path {0}",
// originalArchivePath);
archivePath = string.Empty;
return rootDestFolder;
}
}
}
return rootDestFolder;
}
/// <summary>
/// Create a set of folders for the given path.
/// </summary>
/// <param name="destFolder">
/// The root folder from which the creation will take place.
/// </param>
/// <param name="iarPathExisting">
/// the part of the iar path that already exists
/// </param>
/// <param name="iarPathToReplicate">
/// The path to replicate in the user's inventory from iar
/// </param>
/// <param name="resolvedFolders">
/// The folders that we have resolved so far for a given archive path.
/// </param>
/// <param name="loadedNodes">
/// Track the inventory nodes created.
/// </param>
protected void CreateFoldersForPath(
InventoryFolderBase destFolder,
string iarPathExisting,
string iarPathToReplicate,
Dictionary <string, InventoryFolderBase> resolvedFolders,
HashSet<InventoryNodeBase> loadedNodes)
{
string[] rawDirsToCreate = iarPathToReplicate.Split(new char[] { '/' }, StringSplitOptions.RemoveEmptyEntries);
for (int i = 0; i < rawDirsToCreate.Length; i++)
{
// m_log.DebugFormat("[INVENTORY ARCHIVER]: Creating folder {0} from IAR", rawDirsToCreate[i]);
if (!rawDirsToCreate[i].Contains(ArchiveConstants.INVENTORY_NODE_NAME_COMPONENT_SEPARATOR))
continue;
int identicalNameIdentifierIndex
= rawDirsToCreate[i].LastIndexOf(
ArchiveConstants.INVENTORY_NODE_NAME_COMPONENT_SEPARATOR);
string newFolderName = rawDirsToCreate[i].Remove(identicalNameIdentifierIndex);
newFolderName = InventoryArchiveUtils.UnescapeArchivePath(newFolderName);
UUID newFolderId = UUID.Random();
destFolder
= new InventoryFolderBase(
newFolderId, newFolderName, m_userInfo.PrincipalID,
(short)FolderType.None, destFolder.ID, 1);
m_InventoryService.AddFolder(destFolder);
// Record that we have now created this folder
iarPathExisting += rawDirsToCreate[i] + "/";
m_log.DebugFormat("[INVENTORY ARCHIVER]: Created folder {0} from IAR", iarPathExisting);
resolvedFolders[iarPathExisting] = destFolder;
if (0 == i)
loadedNodes.Add(destFolder);
}
}
/// <summary>
/// Load an item from the archive
/// </summary>
/// <param name="filePath">The archive path for the item</param>
/// <param name="data">The raw item data</param>
/// <param name="rootDestinationFolder">The root destination folder for loaded items</param>
/// <param name="nodesLoaded">All the inventory nodes (items and folders) loaded so far</param>
protected InventoryItemBase LoadItem(byte[] data, InventoryFolderBase loadFolder)
{
InventoryItemBase item = UserInventoryItemSerializer.Deserialize(data);
// Don't use the item ID that's in the file
item.ID = UUID.Random();
UUID ospResolvedId = OspResolver.ResolveOspa(item.CreatorId, m_UserAccountService);
if (UUID.Zero != ospResolvedId) // The user exists in this grid
{
// m_log.DebugFormat("[INVENTORY ARCHIVER]: Found creator {0} via OSPA resolution", ospResolvedId);
// item.CreatorIdAsUuid = ospResolvedId;
// Don't preserve the OSPA in the creator id (which actually gets persisted to the
// database). Instead, replace with the UUID that we found.
item.CreatorId = ospResolvedId.ToString();
item.CreatorData = string.Empty;
}
else if (string.IsNullOrEmpty(item.CreatorData))
{
item.CreatorId = m_userInfo.PrincipalID.ToString();
// item.CreatorIdAsUuid = new UUID(item.CreatorId);
}
item.Owner = m_userInfo.PrincipalID;
// Reset folder ID to the one in which we want to load it
item.Folder = loadFolder.ID;
// Record the creator id for the item's asset so that we can use it later, if necessary, when the asset
// is loaded.
// FIXME: This relies on the items coming before the assets in the TAR file. Need to create stronger
// checks for this, and maybe even an external tool for creating OARs which enforces this, rather than
// relying on native tar tools.
m_creatorIdForAssetId[item.AssetID] = item.CreatorIdAsUuid;
if (!m_InventoryService.AddItem(item))
m_log.WarnFormat("[INVENTORY ARCHIVER]: Unable to save item {0} in folder {1}", item.Name, item.Folder);
return item;
}
/// <summary>
/// Load an asset
/// </summary>
/// <param name="assetFilename"></param>
/// <param name="data"></param>
/// <returns>true if asset was successfully loaded, false otherwise</returns>
private bool LoadAsset(string assetPath, byte[] data)
{
//IRegionSerialiser serialiser = scene.RequestModuleInterface<IRegionSerialiser>();
// Right now we're nastily obtaining the UUID from the filename
string filename = assetPath.Remove(0, ArchiveConstants.ASSETS_PATH.Length);
int i = filename.LastIndexOf(ArchiveConstants.ASSET_EXTENSION_SEPARATOR);
if (i == -1)
{
m_log.ErrorFormat(
"[INVENTORY ARCHIVER]: Could not find extension information in asset path {0} since it's missing the separator {1}. Skipping",
assetPath, ArchiveConstants.ASSET_EXTENSION_SEPARATOR);
return false;
}
string extension = filename.Substring(i);
string rawUuid = filename.Remove(filename.Length - extension.Length);
UUID assetId = new UUID(rawUuid);
if (ArchiveConstants.EXTENSION_TO_ASSET_TYPE.ContainsKey(extension))
{
sbyte assetType = ArchiveConstants.EXTENSION_TO_ASSET_TYPE[extension];
if (assetType == (sbyte)AssetType.Unknown)
{
m_log.WarnFormat("[INVENTORY ARCHIVER]: Importing {0} byte asset {1} with unknown type", data.Length, assetId);
}
else if (assetType == (sbyte)AssetType.Object)
{
if (m_creatorIdForAssetId.ContainsKey(assetId))
{
data = SceneObjectSerializer.ModifySerializedObject(assetId, data,
sog => {
bool modified = false;
foreach (SceneObjectPart sop in sog.Parts)
{
if (string.IsNullOrEmpty(sop.CreatorData))
{
sop.CreatorID = m_creatorIdForAssetId[assetId];
modified = true;
}
}
return modified;
});
if (data == null)
return false;
}
}
//m_log.DebugFormat("[INVENTORY ARCHIVER]: Importing asset {0}, type {1}", uuid, assetType);
AssetBase asset = new AssetBase(assetId, "From IAR", assetType, UUID.Zero.ToString());
asset.Data = data;
m_AssetService.Store(asset);
return true;
}
else
{
m_log.ErrorFormat(
"[INVENTORY ARCHIVER]: Tried to dearchive data with path {0} with an unknown type extension {1}",
assetPath, extension);
return false;
}
}
/// <summary>
/// Load control file
/// </summary>
/// <param name="path"></param>
/// <param name="data"></param>
public void LoadControlFile(string path, byte[] data)
{
XDocument doc = XDocument.Parse(Encoding.ASCII.GetString(data));
XElement archiveElement = doc.Element("archive");
int majorVersion = int.Parse(archiveElement.Attribute("major_version").Value);
int minorVersion = int.Parse(archiveElement.Attribute("minor_version").Value);
string version = string.Format("{0}.{1}", majorVersion, minorVersion);
if (majorVersion > MAX_MAJOR_VERSION)
{
throw new Exception(
string.Format(
"The IAR you are trying to load has major version number of {0} but this version of OpenSim can only load IARs with major version number {1} and below",
majorVersion, MAX_MAJOR_VERSION));
}
ControlFileLoaded = true;
m_log.InfoFormat("[INVENTORY ARCHIVER]: Loading IAR with version {0}", version);
}
/// <summary>
/// Load inventory file
/// </summary>
/// <param name="path"></param>
/// <param name="entryType"></param>
/// <param name="data"></param>
protected void LoadInventoryFile(string path, TarArchiveReader.TarEntryType entryType, byte[] data)
{
if (!ControlFileLoaded)
throw new Exception(
string.Format(
"The IAR you are trying to load does not list {0} before {1}. Aborting load",
ArchiveConstants.CONTROL_FILE_PATH, ArchiveConstants.INVENTORY_PATH));
if (m_assetsLoaded)
throw new Exception(
string.Format(
"The IAR you are trying to load does not list all {0} before {1}. Aborting load",
ArchiveConstants.INVENTORY_PATH, ArchiveConstants.ASSETS_PATH));
path = path.Substring(ArchiveConstants.INVENTORY_PATH.Length);
// Trim off the file portion if we aren't already dealing with a directory path
if (TarArchiveReader.TarEntryType.TYPE_DIRECTORY != entryType)
path = path.Remove(path.LastIndexOf("/") + 1);
InventoryFolderBase foundFolder
= ReplicateArchivePathToUserInventory(
path, m_rootDestinationFolder, m_resolvedFolders, m_loadedNodes);
if (TarArchiveReader.TarEntryType.TYPE_DIRECTORY != entryType)
{
InventoryItemBase item = LoadItem(data, foundFolder);
if (item != null)
{
m_successfulItemRestores++;
// If we aren't loading the folder containing the item then well need to update the
// viewer separately for that item.
if (!m_loadedNodes.Contains(foundFolder))
m_loadedNodes.Add(item);
}
}
m_inventoryNodesLoaded = true;
}
/// <summary>
/// Load asset file
/// </summary>
/// <param name="path"></param>
/// <param name="data"></param>
protected void LoadAssetFile(string path, byte[] data)
{
if (!ControlFileLoaded)
throw new Exception(
string.Format(
"The IAR you are trying to load does not list {0} before {1}. Aborting load",
ArchiveConstants.CONTROL_FILE_PATH, ArchiveConstants.ASSETS_PATH));
if (!m_inventoryNodesLoaded)
throw new Exception(
string.Format(
"The IAR you are trying to load does not list all {0} before {1}. Aborting load",
ArchiveConstants.INVENTORY_PATH, ArchiveConstants.ASSETS_PATH));
if (LoadAsset(path, data))
m_successfulAssetRestores++;
else
m_failedAssetRestores++;
if ((m_successfulAssetRestores) % 50 == 0)
m_log.DebugFormat(
"[INVENTORY ARCHIVER]: Loaded {0} assets...",
m_successfulAssetRestores);
m_assetsLoaded = true;
}
}
}
| {
"content_hash": "dbdc9df23d1230f68fc30c550f1fcdbe",
"timestamp": "",
"source": "github",
"line_count": 639,
"max_line_length": 192,
"avg_line_length": 41.72143974960876,
"alnum_prop": 0.5582895723930983,
"repo_name": "TomDataworks/opensim",
"id": "38383165d70ca02261162352d0796654601bc7c5",
"size": "28277",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Batchfile",
"bytes": "3307"
},
{
"name": "C#",
"bytes": "21751059"
},
{
"name": "CSS",
"bytes": "1683"
},
{
"name": "HTML",
"bytes": "9919"
},
{
"name": "JavaScript",
"bytes": "556"
},
{
"name": "LSL",
"bytes": "36962"
},
{
"name": "Makefile",
"bytes": "1232"
},
{
"name": "NSIS",
"bytes": "6208"
},
{
"name": "PLpgSQL",
"bytes": "599"
},
{
"name": "Perl",
"bytes": "3578"
},
{
"name": "Python",
"bytes": "5053"
},
{
"name": "Ruby",
"bytes": "1111"
},
{
"name": "Shell",
"bytes": "2979"
}
],
"symlink_target": ""
} |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "8fe0d170743635d980b135479aa7a124",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "bfc99050bd7a83ab20c9a1108e5b4bf59bc8d0f4",
"size": "194",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Liliopsida/Asparagales/Orchidaceae/Anathallis/Anathallis paranaensis/ Syn. Specklinia paranaensis/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>matrices: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.11.1 / matrices - 8.8.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
matrices
<small>
8.8.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-04-12 08:51:20 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-04-12 08:51:20 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
coq 8.11.1 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.3 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/coq-contribs/matrices"
license: "LGPL 2.1"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Matrices"]
depends: [
"ocaml"
"coq" {>= "8.8" & < "8.9~"}
]
tags: [ "keyword: matrices" "keyword: vectors" "keyword: linear algebra" "keyword: Coq modules" "category: Mathematics/Algebra" "date: 2003-03" ]
authors: [ "Nicolas Magaud" ]
bug-reports: "https://github.com/coq-contribs/matrices/issues"
dev-repo: "git+https://github.com/coq-contribs/matrices.git"
synopsis: "Ring properties for square matrices"
description: """
This contribution contains an operational formalization of square matrices.
(m,n)-Matrices are represented as vectors of length n. Each vector
(a row) is itself a vector whose length is m.
Vectors are actually implemented as dependent lists.
We define basic operations for this datatype (addition, product, neutral
elements O_n and I_n). We then prove the ring properties for these
operations. The development uses Coq modules to specify the interface
(the ring structure properties) as a signature.
This development deals with dependent types and partial functions.
Most of the functions are defined by dependent case analysis
and some functions such as getting a column require
the use of preconditions (to check whether we are within the
bounds of the matrix)."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/matrices/archive/v8.8.0.tar.gz"
checksum: "md5=e1966ab1027086001a3f4b27f37978dc"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-matrices.8.8.0 coq.8.11.1</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.11.1).
The following dependencies couldn't be met:
- coq-matrices -> coq < 8.9~ -> ocaml < 4.03.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-matrices.8.8.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| {
"content_hash": "4f798604c23f2ef20c0975d2d5ebf81d",
"timestamp": "",
"source": "github",
"line_count": 176,
"max_line_length": 205,
"avg_line_length": 42.98863636363637,
"alnum_prop": 0.5663494581020354,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "d2c6b7b34d6c23d63aed1d802a4d52fa33c47b2d",
"size": "7591",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.05.0-2.0.1/released/8.11.1/matrices/8.8.0.html",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
from .blueprint import checkout_page
| {
"content_hash": "8d6adafdc76a2fb63a16db01c8d7e0c2",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 36,
"avg_line_length": 37,
"alnum_prop": 0.8378378378378378,
"repo_name": "GoogleCloudPlatform/serverless-store-demo",
"id": "484cd1620ae7c251997617017f57243549603a88",
"size": "614",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/blueprints/checkout/__init__.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "525"
},
{
"name": "HTML",
"bytes": "18669"
},
{
"name": "JavaScript",
"bytes": "26967"
},
{
"name": "Python",
"bytes": "56513"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ails: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.15.1 / ails - 8.8.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
ails
<small>
8.8.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-04-01 15:17:29 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-04-01 15:17:29 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
conf-gmp 4 Virtual package relying on a GMP lib system installation
coq 8.15.1 Formal proof management system
dune 3.0.3 Fast, portable, and opinionated build system
ocaml 4.11.2 The OCaml compiler (virtual package)
ocaml-base-compiler 4.11.2 Official release 4.11.2
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.3 A library manager for OCaml
zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/coq-contribs/ails"
license: "LGPL 2.1"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/AILS"]
depends: [
"ocaml"
"coq" {>= "8.8" & < "8.9~"}
]
tags: [ "keyword: ails" "keyword: aircraft" "keyword: trajectory" "keyword: conflict" "keyword: collision" "category: Computer Science/Decision Procedures and Certified Algorithms/Correctness proofs of algorithms" "date: 2002" ]
authors: [ "Olivier Desmettre" ]
bug-reports: "https://github.com/coq-contribs/ails/issues"
dev-repo: "git+https://github.com/coq-contribs/ails.git"
synopsis: "Proof of AILS algorithm"
description: """
An aircraft trajectory modeling and analysis using the AILS
algorithm (Airborne Information for Lateral Spacing) to warn
against possible collisions."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/ails/archive/v8.8.0.tar.gz"
checksum: "md5=40237efb5d539f1ce89be6b97f0becf3"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-ails.8.8.0 coq.8.15.1</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.15.1).
The following dependencies couldn't be met:
- coq-ails -> coq < 8.9~ -> ocaml < 4.10
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-ails.8.8.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| {
"content_hash": "26a464e21f96a99c47ebb66e6ce8f817",
"timestamp": "",
"source": "github",
"line_count": 165,
"max_line_length": 298,
"avg_line_length": 42.35151515151515,
"alnum_prop": 0.5445048654836864,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "644ceddcdd4ff81d7205995d32274f5f42c4dabb",
"size": "7013",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.11.2-2.0.7/released/8.15.1/ails/8.8.0.html",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
/****************************************************************************
** Meta object code from reading C++ file 'qvalidatedlineedit.h'
**
** Created: Sun Jan 5 14:07:21 2014
** by: The Qt Meta Object Compiler version 63 (Qt 4.8.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "../src/qt/qvalidatedlineedit.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qvalidatedlineedit.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 63
#error "This file was generated using the moc from 4.8.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
static const uint qt_meta_data_QValidatedLineEdit[] = {
// content:
6, // revision
0, // classname
0, 0, // classinfo
2, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
0, // signalCount
// slots: signature, parameters, type, tag, flags
26, 20, 19, 19, 0x0a,
41, 19, 19, 19, 0x08,
0 // eod
};
static const char qt_meta_stringdata_QValidatedLineEdit[] = {
"QValidatedLineEdit\0\0valid\0setValid(bool)\0"
"markValid()\0"
};
void QValidatedLineEdit::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::InvokeMetaMethod) {
Q_ASSERT(staticMetaObject.cast(_o));
QValidatedLineEdit *_t = static_cast<QValidatedLineEdit *>(_o);
switch (_id) {
case 0: _t->setValid((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 1: _t->markValid(); break;
default: ;
}
}
}
const QMetaObjectExtraData QValidatedLineEdit::staticMetaObjectExtraData = {
0, qt_static_metacall
};
const QMetaObject QValidatedLineEdit::staticMetaObject = {
{ &QLineEdit::staticMetaObject, qt_meta_stringdata_QValidatedLineEdit,
qt_meta_data_QValidatedLineEdit, &staticMetaObjectExtraData }
};
#ifdef Q_NO_DATA_RELOCATION
const QMetaObject &QValidatedLineEdit::getStaticMetaObject() { return staticMetaObject; }
#endif //Q_NO_DATA_RELOCATION
const QMetaObject *QValidatedLineEdit::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
}
void *QValidatedLineEdit::qt_metacast(const char *_clname)
{
if (!_clname) return 0;
if (!strcmp(_clname, qt_meta_stringdata_QValidatedLineEdit))
return static_cast<void*>(const_cast< QValidatedLineEdit*>(this));
return QLineEdit::qt_metacast(_clname);
}
int QValidatedLineEdit::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QLineEdit::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 2)
qt_static_metacall(this, _c, _id, _a);
_id -= 2;
}
return _id;
}
QT_END_MOC_NAMESPACE
| {
"content_hash": "701c2c009d64f5f94770aba9cef22034",
"timestamp": "",
"source": "github",
"line_count": 96,
"max_line_length": 98,
"avg_line_length": 31.989583333333332,
"alnum_prop": 0.6046890263757734,
"repo_name": "betcoinproject/betcoin",
"id": "69e9ceaad5710a97be746e15d4ef7e094f0faeca",
"size": "3071",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "build/moc_qvalidatedlineedit.cpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "78622"
},
{
"name": "C++",
"bytes": "1378529"
},
{
"name": "IDL",
"bytes": "10997"
},
{
"name": "Objective-C",
"bytes": "2463"
},
{
"name": "Python",
"bytes": "47538"
},
{
"name": "Shell",
"bytes": "1402"
},
{
"name": "TypeScript",
"bytes": "3810608"
}
],
"symlink_target": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.