query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
The Amazon Resource Name (ARN) of the pipeline.
public String getPipelineArn() { return this.pipelineArn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPipelineExecutionArn() {\n return this.pipelineExecutionArn;\n }", "@Id\n @Output\n public String getArn() {\n return arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getARN() {\n return this.aRN;\n }", "String getArn();", "public String getStrPipelineName() {\n return strPipelineName;\n }", "public String getPipelineExecutionDisplayName() {\n return this.pipelineExecutionDisplayName;\n }", "public String assetName() {\n return assetName;\n }", "public String getResourceArn() {\n return this.resourceArn;\n }", "public String getResourceArn() {\n return this.resourceArn;\n }", "public String getResourceArn() {\n return this.resourceArn;\n }", "public String getPipelineExecutionDescription() {\n return this.pipelineExecutionDescription;\n }", "public String getNodeARN() {\n return this.nodeARN;\n }", "public String getAslName() {\n return (String) getAttributeInternal(ASLNAME);\n }", "public String getName() {\n return aao.getName();\n }", "java.lang.String getExecutionStageName();", "public String getRoleName() {\n return (String) getAttributeInternal(ROLENAME);\n }", "public final String aoy() {\n return this.label;\n }", "public String getTypeArn() {\n return this.typeArn;\n }", "public String getName() {\n\t\treturn this.toString();\n\t}", "public String getAeName() {\n\t\treturn name;\n\t}", "String getPipelineId();", "String getStageName();", "public String getAnalyzerArn() {\n return this.analyzerArn;\n }", "public String roleName() {\n return this.roleName;\n }", "public String getTargetArn() {\n return targetArn;\n }", "private String getRoleArn(String accout, String role){\n\t\treturn \"arn:aws:iam::\"+accout+\":role/\"+role;\n\t}", "@ApiModelProperty(value = \"The name of the resource or array element.\")\n @JsonProperty(\"Name\")\n public String getName() {\n return name;\n }", "public String getPolicyArn() {\n return this.policyArn;\n }", "public String getName() {\n return (NAME_PREFIX + _applicationId + DELIM + _endpointId);\n }", "@Nonnull\n\tpublic String getSequenceName() {\n\t\treturn _sequenceName;\n\t}", "public String getBucketName() {\n return getProperty(BUCKET_NAME);\n }", "public String getSequenceName() {\n return sequenceName;\n }", "public String getAlgorithmName ()\n {\n return algName; //(new String (algName + \" --> Input Stream : \" + this.inputName));\n }", "public String name() {\n this.use();\n\n return name;\n }", "public String getEngineArn() {\n return this.engineArn;\n }", "@ApiModelProperty(value = \"String matching the name of the application\")\n public String getName() {\n return name;\n }", "public String getRoleArn() {\n return roleArn;\n }", "@Override\n public String getName() {\n return this.role.getName();\n }", "public String getName() {\r\n return this.name();\r\n }", "public String getStageName() {\n return stageName;\n }", "public String getSequenceName() {\n return sequenceName;\n }", "public String getSourceArn() {\n return this.sourceArn;\n }", "public final String getName() {\n return this.name;\n }", "public String getName() {\n\t\treturn NAME;\n\t}", "public String getFullJobName() {\n return jobGroup + \".\" + jobName;\n }", "public String getName() {\n return NAME;\n }", "public final String getName() {\n\t\treturn this.name;\n\t}", "public String getName() {\r\n\t\treturn NAME;\r\n\t}", "@AutoEscape\n\tpublic String getName();", "@AutoEscape\n\tpublic String getName();", "@AutoEscape\n\tpublic String getName();", "@AutoEscape\n\tpublic String getName();", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getARN() != null)\n sb.append(\"ARN: \").append(getARN()).append(\",\");\n if (getExcludedRules() != null)\n sb.append(\"ExcludedRules: \").append(getExcludedRules()).append(\",\");\n if (getRuleActionOverrides() != null)\n sb.append(\"RuleActionOverrides: \").append(getRuleActionOverrides());\n sb.append(\"}\");\n return sb.toString();\n }", "public final String name() {\n\t\treturn name;\n\t}", "public String getPlatformApplicationArn() {\n return platformApplicationArn;\n }", "@Override\n\tpublic String getName() {\n\t\treturn \"Process Model Similarity Metric Based on Firing Sequences Collection\";\n\t}", "public String getRolelabel() {\n return rolelabel;\n }", "public final String getNameAttribute() {\n return getAttributeValue(\"name\");\n }", "@Nonnull String getName();", "@Basic @Raw\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}", "@ApiModelProperty(value = \"String containing the application name, such as \\\"iPlanetAMWebAgentService\\\", or \\\"mypolicyset\\\"\")\n public String getApplicationName() {\n return applicationName;\n }", "public String getName() {\n\n\t\treturn name;\n\t}", "public String getName() {\n\n\t\treturn name;\n\t}", "public String getName() {\n return name + \"\";\n }", "public final String name() {\n return name;\n }", "public String getName() {\n return name.get();\n }", "public void setPipelineArn(String pipelineArn) {\n this.pipelineArn = pipelineArn;\n }", "@Override\n\tpublic String name() {\n\n\t\treturn NAME;\n\t}", "public String getResourceName() {\n return getBaseName() + getNameSuffix();\n }", "public String getName() {\n\n return this.name;\n }", "public final String getName() {\n return name;\n }", "public final String getName() {\n return name;\n }", "public final String getName() {\n return name;\n }", "public final String getName() {\n return name;\n }", "public final String getName() {\n return name;\n }", "public String getAName()\n\t{\n\t\treturn aName;\n\t}", "public String getName() {\r\n\t\treturn name.get();\r\n\t}", "public String getRoleName() {\n return this.roleName;\n }", "public String getRoleName() {\n return this.roleName;\n }", "public String getGatewayARN() {\n return gatewayARN;\n }", "public String GetName() {\n\t\treturn this.name;\n\t}", "public String getRlName() {\n return (String) getAttributeInternal(RLNAME);\n }", "public String getName() { \n\t\treturn getNameElement().getValue();\n\t}", "public String getName() { \n\t\treturn getNameElement().getValue();\n\t}", "public String getName() { \n\t\treturn getNameElement().getValue();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn NAME;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn (String) attributes.get(\"name\");\n\t}", "@Basic @Immutable\n\tpublic String getName() {\n\t\treturn name;\n\t}", "public final String getName() {\n return name;\n }", "public String getCertificateArn() {\n return this.certificateArn;\n }", "public String getName()\n {\n return (this.name);\n }", "public String getStrPipelineExeURL() {\n return strPipelineExeURL;\n }", "public String getName() {\n return (this.name);\n }", "public String getJobName() {\n return this.jobName;\n }", "public String getName()\n {\n return NAME;\n }", "@Override\n public String getName() {\n return seqName;\n }" ]
[ "0.62372386", "0.61557615", "0.6141931", "0.6141931", "0.6141931", "0.6141931", "0.60426223", "0.5990907", "0.59689915", "0.55886257", "0.5506444", "0.5446852", "0.5446852", "0.5446852", "0.5346395", "0.5336407", "0.532889", "0.5237029", "0.523352", "0.52294356", "0.5213903", "0.5193102", "0.5150068", "0.51482993", "0.5120048", "0.51136976", "0.5076882", "0.5075787", "0.5068135", "0.504673", "0.50445884", "0.50420225", "0.50404114", "0.50400656", "0.5037615", "0.5035507", "0.50113165", "0.50109625", "0.5003222", "0.50031435", "0.49893013", "0.49821025", "0.49614298", "0.49594146", "0.49549", "0.4930055", "0.492146", "0.49201894", "0.4915455", "0.49151018", "0.49060166", "0.48962048", "0.48927966", "0.48927966", "0.48927966", "0.48927966", "0.48916936", "0.48858526", "0.48847547", "0.48838145", "0.48820564", "0.4879311", "0.48748037", "0.48671767", "0.48652866", "0.4851384", "0.4851384", "0.48461452", "0.48460194", "0.48442984", "0.4834039", "0.48320657", "0.48307633", "0.48303896", "0.4829315", "0.4829315", "0.4829315", "0.4829315", "0.4829315", "0.48248056", "0.48216227", "0.4820624", "0.4820624", "0.48193887", "0.4818123", "0.48170668", "0.4816037", "0.4816037", "0.4816037", "0.48134878", "0.4813381", "0.4811515", "0.48098853", "0.4808743", "0.48078012", "0.4805412", "0.48051226", "0.48027587", "0.48026797", "0.4802412" ]
0.6983177
0
The Amazon Resource Name (ARN) of the pipeline.
public DescribePipelineExecutionResult withPipelineArn(String pipelineArn) { setPipelineArn(pipelineArn); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPipelineArn() {\n return this.pipelineArn;\n }", "public String getPipelineExecutionArn() {\n return this.pipelineExecutionArn;\n }", "@Id\n @Output\n public String getArn() {\n return arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getARN() {\n return this.aRN;\n }", "String getArn();", "public String getStrPipelineName() {\n return strPipelineName;\n }", "public String getPipelineExecutionDisplayName() {\n return this.pipelineExecutionDisplayName;\n }", "public String assetName() {\n return assetName;\n }", "public String getResourceArn() {\n return this.resourceArn;\n }", "public String getResourceArn() {\n return this.resourceArn;\n }", "public String getResourceArn() {\n return this.resourceArn;\n }", "public String getPipelineExecutionDescription() {\n return this.pipelineExecutionDescription;\n }", "public String getNodeARN() {\n return this.nodeARN;\n }", "public String getAslName() {\n return (String) getAttributeInternal(ASLNAME);\n }", "public String getName() {\n return aao.getName();\n }", "java.lang.String getExecutionStageName();", "public String getRoleName() {\n return (String) getAttributeInternal(ROLENAME);\n }", "public final String aoy() {\n return this.label;\n }", "public String getTypeArn() {\n return this.typeArn;\n }", "public String getName() {\n\t\treturn this.toString();\n\t}", "public String getAeName() {\n\t\treturn name;\n\t}", "String getPipelineId();", "String getStageName();", "public String getAnalyzerArn() {\n return this.analyzerArn;\n }", "public String roleName() {\n return this.roleName;\n }", "public String getTargetArn() {\n return targetArn;\n }", "private String getRoleArn(String accout, String role){\n\t\treturn \"arn:aws:iam::\"+accout+\":role/\"+role;\n\t}", "@ApiModelProperty(value = \"The name of the resource or array element.\")\n @JsonProperty(\"Name\")\n public String getName() {\n return name;\n }", "public String getPolicyArn() {\n return this.policyArn;\n }", "public String getName() {\n return (NAME_PREFIX + _applicationId + DELIM + _endpointId);\n }", "@Nonnull\n\tpublic String getSequenceName() {\n\t\treturn _sequenceName;\n\t}", "public String getBucketName() {\n return getProperty(BUCKET_NAME);\n }", "public String getSequenceName() {\n return sequenceName;\n }", "public String getAlgorithmName ()\n {\n return algName; //(new String (algName + \" --> Input Stream : \" + this.inputName));\n }", "public String name() {\n this.use();\n\n return name;\n }", "public String getEngineArn() {\n return this.engineArn;\n }", "@ApiModelProperty(value = \"String matching the name of the application\")\n public String getName() {\n return name;\n }", "public String getRoleArn() {\n return roleArn;\n }", "@Override\n public String getName() {\n return this.role.getName();\n }", "public String getName() {\r\n return this.name();\r\n }", "public String getStageName() {\n return stageName;\n }", "public String getSequenceName() {\n return sequenceName;\n }", "public String getSourceArn() {\n return this.sourceArn;\n }", "public final String getName() {\n return this.name;\n }", "public String getName() {\n\t\treturn NAME;\n\t}", "public String getFullJobName() {\n return jobGroup + \".\" + jobName;\n }", "public String getName() {\n return NAME;\n }", "public final String getName() {\n\t\treturn this.name;\n\t}", "public String getName() {\r\n\t\treturn NAME;\r\n\t}", "@AutoEscape\n\tpublic String getName();", "@AutoEscape\n\tpublic String getName();", "@AutoEscape\n\tpublic String getName();", "@AutoEscape\n\tpublic String getName();", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getARN() != null)\n sb.append(\"ARN: \").append(getARN()).append(\",\");\n if (getExcludedRules() != null)\n sb.append(\"ExcludedRules: \").append(getExcludedRules()).append(\",\");\n if (getRuleActionOverrides() != null)\n sb.append(\"RuleActionOverrides: \").append(getRuleActionOverrides());\n sb.append(\"}\");\n return sb.toString();\n }", "public final String name() {\n\t\treturn name;\n\t}", "public String getPlatformApplicationArn() {\n return platformApplicationArn;\n }", "@Override\n\tpublic String getName() {\n\t\treturn \"Process Model Similarity Metric Based on Firing Sequences Collection\";\n\t}", "public String getRolelabel() {\n return rolelabel;\n }", "public final String getNameAttribute() {\n return getAttributeValue(\"name\");\n }", "@Nonnull String getName();", "@Basic @Raw\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}", "@ApiModelProperty(value = \"String containing the application name, such as \\\"iPlanetAMWebAgentService\\\", or \\\"mypolicyset\\\"\")\n public String getApplicationName() {\n return applicationName;\n }", "public String getName() {\n\n\t\treturn name;\n\t}", "public String getName() {\n\n\t\treturn name;\n\t}", "public String getName() {\n return name + \"\";\n }", "public final String name() {\n return name;\n }", "public String getName() {\n return name.get();\n }", "public void setPipelineArn(String pipelineArn) {\n this.pipelineArn = pipelineArn;\n }", "@Override\n\tpublic String name() {\n\n\t\treturn NAME;\n\t}", "public String getResourceName() {\n return getBaseName() + getNameSuffix();\n }", "public String getName() {\n\n return this.name;\n }", "public final String getName() {\n return name;\n }", "public final String getName() {\n return name;\n }", "public final String getName() {\n return name;\n }", "public final String getName() {\n return name;\n }", "public final String getName() {\n return name;\n }", "public String getAName()\n\t{\n\t\treturn aName;\n\t}", "public String getName() {\r\n\t\treturn name.get();\r\n\t}", "public String getRoleName() {\n return this.roleName;\n }", "public String getRoleName() {\n return this.roleName;\n }", "public String getGatewayARN() {\n return gatewayARN;\n }", "public String GetName() {\n\t\treturn this.name;\n\t}", "public String getRlName() {\n return (String) getAttributeInternal(RLNAME);\n }", "public String getName() { \n\t\treturn getNameElement().getValue();\n\t}", "public String getName() { \n\t\treturn getNameElement().getValue();\n\t}", "public String getName() { \n\t\treturn getNameElement().getValue();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn NAME;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn (String) attributes.get(\"name\");\n\t}", "@Basic @Immutable\n\tpublic String getName() {\n\t\treturn name;\n\t}", "public final String getName() {\n return name;\n }", "public String getCertificateArn() {\n return this.certificateArn;\n }", "public String getName()\n {\n return (this.name);\n }", "public String getStrPipelineExeURL() {\n return strPipelineExeURL;\n }", "public String getName() {\n return (this.name);\n }", "public String getJobName() {\n return this.jobName;\n }", "public String getName()\n {\n return NAME;\n }", "@Override\n public String getName() {\n return seqName;\n }" ]
[ "0.6983177", "0.62372386", "0.61557615", "0.6141931", "0.6141931", "0.6141931", "0.6141931", "0.60426223", "0.5990907", "0.59689915", "0.55886257", "0.5506444", "0.5446852", "0.5446852", "0.5446852", "0.5346395", "0.5336407", "0.532889", "0.5237029", "0.523352", "0.52294356", "0.5213903", "0.5193102", "0.5150068", "0.51482993", "0.5120048", "0.51136976", "0.5076882", "0.5075787", "0.5068135", "0.504673", "0.50445884", "0.50420225", "0.50404114", "0.50400656", "0.5037615", "0.5035507", "0.50113165", "0.50109625", "0.5003222", "0.50031435", "0.49893013", "0.49821025", "0.49614298", "0.49594146", "0.49549", "0.4930055", "0.492146", "0.49201894", "0.4915455", "0.49151018", "0.49060166", "0.48962048", "0.48927966", "0.48927966", "0.48927966", "0.48927966", "0.48916936", "0.48858526", "0.48847547", "0.48838145", "0.48820564", "0.4879311", "0.48748037", "0.48671767", "0.48652866", "0.4851384", "0.4851384", "0.48461452", "0.48460194", "0.48442984", "0.4834039", "0.48320657", "0.48307633", "0.48303896", "0.4829315", "0.4829315", "0.4829315", "0.4829315", "0.4829315", "0.48248056", "0.48216227", "0.4820624", "0.4820624", "0.48193887", "0.4818123", "0.48170668", "0.4816037", "0.4816037", "0.4816037", "0.48134878", "0.4813381", "0.4811515", "0.48098853", "0.4808743", "0.48078012", "0.4805412", "0.48051226", "0.48027587", "0.48026797", "0.4802412" ]
0.0
-1
The Amazon Resource Name (ARN) of the pipeline execution.
public void setPipelineExecutionArn(String pipelineExecutionArn) { this.pipelineExecutionArn = pipelineExecutionArn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPipelineExecutionArn() {\n return this.pipelineExecutionArn;\n }", "public String getPipelineArn() {\n return this.pipelineArn;\n }", "public String getPipelineExecutionDisplayName() {\n return this.pipelineExecutionDisplayName;\n }", "java.lang.String getExecutionStageName();", "@Id\n @Output\n public String getArn() {\n return arn;\n }", "public String getARN() {\n return this.aRN;\n }", "public String getArn() {\n return this.arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getPipelineExecutionDescription() {\n return this.pipelineExecutionDescription;\n }", "String getArn();", "com.google.protobuf.ByteString\n getExecutionStageNameBytes();", "public String getStrPipelineName() {\n return strPipelineName;\n }", "public String getExecutionRoleArn() {\n return this.executionRoleArn;\n }", "public String getNodeARN() {\n return this.nodeARN;\n }", "private String getTaskName() {\n \n \t\treturn this.environment.getTaskName() + \" (\" + (this.environment.getIndexInSubtaskGroup() + 1) + \"/\"\n \t\t\t+ this.environment.getCurrentNumberOfSubtasks() + \")\";\n \t}", "String getOutputName();", "public String getResourceArn() {\n return this.resourceArn;\n }", "public String getResourceArn() {\n return this.resourceArn;\n }", "public String getResourceArn() {\n return this.resourceArn;\n }", "public String getClusterExecutableBasename() {\n return SeqExec.EXECUTABLE_BASENAME;\n }", "public final String aoy() {\n return this.label;\n }", "public String getName()\r\n {\r\n return taskName;\r\n }", "public String assetName() {\n return assetName;\n }", "public String getTargetArn() {\n return targetArn;\n }", "public String getFullJobName() {\n return jobGroup + \".\" + jobName;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getPipelineArn() != null)\n sb.append(\"PipelineArn: \").append(getPipelineArn()).append(\",\");\n if (getPipelineExecutionArn() != null)\n sb.append(\"PipelineExecutionArn: \").append(getPipelineExecutionArn()).append(\",\");\n if (getPipelineExecutionDisplayName() != null)\n sb.append(\"PipelineExecutionDisplayName: \").append(getPipelineExecutionDisplayName()).append(\",\");\n if (getPipelineExecutionStatus() != null)\n sb.append(\"PipelineExecutionStatus: \").append(getPipelineExecutionStatus()).append(\",\");\n if (getPipelineExecutionDescription() != null)\n sb.append(\"PipelineExecutionDescription: \").append(getPipelineExecutionDescription()).append(\",\");\n if (getPipelineExperimentConfig() != null)\n sb.append(\"PipelineExperimentConfig: \").append(getPipelineExperimentConfig()).append(\",\");\n if (getFailureReason() != null)\n sb.append(\"FailureReason: \").append(getFailureReason()).append(\",\");\n if (getCreationTime() != null)\n sb.append(\"CreationTime: \").append(getCreationTime()).append(\",\");\n if (getLastModifiedTime() != null)\n sb.append(\"LastModifiedTime: \").append(getLastModifiedTime()).append(\",\");\n if (getCreatedBy() != null)\n sb.append(\"CreatedBy: \").append(getCreatedBy()).append(\",\");\n if (getLastModifiedBy() != null)\n sb.append(\"LastModifiedBy: \").append(getLastModifiedBy()).append(\",\");\n if (getParallelismConfiguration() != null)\n sb.append(\"ParallelismConfiguration: \").append(getParallelismConfiguration()).append(\",\");\n if (getSelectiveExecutionConfig() != null)\n sb.append(\"SelectiveExecutionConfig: \").append(getSelectiveExecutionConfig());\n sb.append(\"}\");\n return sb.toString();\n }", "public String getPipelineExecutionStatus() {\n return this.pipelineExecutionStatus;\n }", "public String getName() {\n return aao.getName();\n }", "public String getTaskName() {\n Object ref = taskName_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n taskName_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getTaskName() {\n Object ref = taskName_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n taskName_ = s;\n return s;\n }\n }", "public String getAeName() {\n\t\treturn name;\n\t}", "public String getEngineArn() {\n return this.engineArn;\n }", "public String taskName() {\n return this.taskName;\n }", "public String getName() {\n return (NAME_PREFIX + _applicationId + DELIM + _endpointId);\n }", "public String getTaskName();", "public String getName() {\n\t\treturn this.toString();\n\t}", "public java.lang.String getRndTaskName() {\n return rndTaskName;\n }", "public String getRoleName() {\n return (String) getAttributeInternal(ROLENAME);\n }", "String getTaskName();", "String getTaskName();", "public static String getName() {\n\t\treturn _asmFileStr;\n\t}", "String getStageName();", "@Override\n\tpublic String getName() {\n\t\treturn \"Process Model Similarity Metric Based on Firing Sequences Collection\";\n\t}", "public String getAslName() {\n return (String) getAttributeInternal(ASLNAME);\n }", "public java.lang.String getEXECUTION()\n {\n \n return __EXECUTION;\n }", "String getPipelineId();", "java.lang.String getTargetJobName();", "public String getTaskName() {\n return this.taskDescription;\n }", "public String name() {\n this.use();\n\n return name;\n }", "public String roleName() {\n return this.roleName;\n }", "public String getJobName() {\n return this.jobName;\n }", "public String getExecutorName() {\n return executorName;\n }", "public String getSequenceName() {\n return sequenceName;\n }", "public String getExecutionMessage() {\n return this.executionMessage;\n }", "public final String get_name() {\n return scheduler_name;\n }", "@Nonnull\n\tpublic String getSequenceName() {\n\t\treturn _sequenceName;\n\t}", "public String getJobName() {\n return this.JobName;\n }", "public final String getName() {\n return \"job-priority\";\n }", "public String getAlgorithmName ()\n {\n return algName; //(new String (algName + \" --> Input Stream : \" + this.inputName));\n }", "public String getIntentLabel() {\n Flow.Intent intent = getFlow().getIntent();\n return intent == null ? NO_INTENT : intent.getLabel();\n }", "public String getTaskName(){\r\n\t\treturn this.taskName;\r\n\t}", "@Override\n\tpublic String getJobName() {\n\t\treturn model.getJobName();\n\t}", "@Override\n public String getName() {\n return this.role.getName();\n }", "private String getRoleArn(String accout, String role){\n\t\treturn \"arn:aws:iam::\"+accout+\":role/\"+role;\n\t}", "public String getSequenceName() {\n return sequenceName;\n }", "public String getProgramStatusAsString() {\n return getProgramStatus().name();\n }", "public String getTaskName() {\n return taskName;\n }", "public String getTaskName() {\n return taskName;\n }", "public String getTaskName() {\n return taskName;\n }", "public String getTaskName() {\n return taskName;\n }", "@Override\n\tpublic String getAnalysisName() {\n\t\treturn analysisName;\n\t}", "public String getExecId() {\n Object ref = execId_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n execId_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getProgramName()\r\n \t{\r\n \t\treturn m_program.m_csSimpleName;\r\n \t}", "public final String toString() {\n return scheduler_name;\n }", "@Override\n public String getObjectName() {\n return getWorkflowName();\n }", "public String getJobName() {\n return jobName;\n }", "public String getJobName() {\n return jobName;\n }", "public String getName() {\r\n return this.name();\r\n }", "public String getExecId() {\n Object ref = execId_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n execId_ = s;\n }\n return s;\n }\n }", "public String getTypeArn() {\n return this.typeArn;\n }", "public String getDescription()\r\n {\r\n return \"Approver of the task \"+taskName();\r\n }", "public String getStrPipelineExeURL() {\n return strPipelineExeURL;\n }", "@ApiModelProperty(value = \"String matching the name of the application\")\n public String getName() {\n return name;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getARN() != null)\n sb.append(\"ARN: \").append(getARN()).append(\",\");\n if (getExcludedRules() != null)\n sb.append(\"ExcludedRules: \").append(getExcludedRules()).append(\",\");\n if (getRuleActionOverrides() != null)\n sb.append(\"RuleActionOverrides: \").append(getRuleActionOverrides());\n sb.append(\"}\");\n return sb.toString();\n }", "@Override\n\tpublic String toString() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\t\n\t\tsb.append(ThmProcessUtil.isaActProc + \" \" + name);\n\t\t\n\t\tif (!param.isEmpty()) {\n\t\t\tsb.append (\" = \\n\");\n\t\t\tfor (String s : param) {\n\t\t\t\tsb.append(s + \"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tsb.append(\"\\n\");\n\t\t\n\t\tsb.append(ThmProcessUtil.isaProcBegin + \"\\n\" + \n\t\t\t\t body + \"\\n\" + ThmProcessUtil.isaProcEnd);\n\n\t\treturn sb.toString();\n\t}", "public final String getName() {\n return this.name;\n }", "public final String name() {\n\t\treturn name;\n\t}", "com.google.protobuf.ByteString\n getTaskNameBytes();", "public String getPlatformApplicationArn() {\n return platformApplicationArn;\n }", "public String getTypeName()\n {\n return getArgumentTypeName(type);\n }", "public String getRoleArn() {\n return roleArn;\n }", "public String getJobName() {\n return this.mJob;\n }", "public final String getName() {\n\t\treturn this.name;\n\t}", "public String getAnalyzerArn() {\n return this.analyzerArn;\n }", "public String getApplicationName() {\r\n\t\treturn applicationName;\r\n\t}", "public String getAuditDestinationARN() {\n return this.auditDestinationARN;\n }", "public final String name() {\n return name;\n }", "public String getWorkflowName() {\r\n\t\treturn this.workflowName;\r\n\t}", "public String get_sequence() {\n return m_aa_sequence;\n }" ]
[ "0.68193483", "0.6387263", "0.6275161", "0.62470204", "0.6233654", "0.61735445", "0.6119016", "0.6119016", "0.6119016", "0.6119016", "0.6041742", "0.5941016", "0.56984824", "0.56832695", "0.5665822", "0.5637241", "0.55180377", "0.5462311", "0.54545414", "0.54545414", "0.54545414", "0.53788024", "0.5372144", "0.5326817", "0.5306424", "0.530224", "0.52999026", "0.5296644", "0.5280064", "0.52693313", "0.52691233", "0.524998", "0.5248293", "0.52450424", "0.52379525", "0.52284735", "0.52275354", "0.5199063", "0.51956445", "0.5192656", "0.5184593", "0.5184593", "0.51845616", "0.51698285", "0.5166769", "0.51608634", "0.51521057", "0.5148444", "0.514029", "0.5114753", "0.5105227", "0.5100167", "0.5098092", "0.50886935", "0.5086733", "0.50775844", "0.5076292", "0.50716615", "0.505152", "0.504717", "0.50464016", "0.5040379", "0.50300676", "0.5024636", "0.50231", "0.50204253", "0.501962", "0.50126904", "0.50126183", "0.50126183", "0.50126183", "0.50126183", "0.5012136", "0.5011512", "0.49949256", "0.49928907", "0.49927375", "0.49918085", "0.49918085", "0.49915707", "0.49912363", "0.49783635", "0.49719122", "0.49489293", "0.49459577", "0.49366242", "0.49310014", "0.49258453", "0.492516", "0.49250627", "0.49129397", "0.49076805", "0.4907266", "0.49054635", "0.49050725", "0.4904548", "0.4902122", "0.48957932", "0.48940954", "0.48911962", "0.48857415" ]
0.0
-1
The Amazon Resource Name (ARN) of the pipeline execution.
public String getPipelineExecutionArn() { return this.pipelineExecutionArn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPipelineArn() {\n return this.pipelineArn;\n }", "public String getPipelineExecutionDisplayName() {\n return this.pipelineExecutionDisplayName;\n }", "java.lang.String getExecutionStageName();", "@Id\n @Output\n public String getArn() {\n return arn;\n }", "public String getARN() {\n return this.aRN;\n }", "public String getArn() {\n return this.arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getPipelineExecutionDescription() {\n return this.pipelineExecutionDescription;\n }", "String getArn();", "com.google.protobuf.ByteString\n getExecutionStageNameBytes();", "public String getStrPipelineName() {\n return strPipelineName;\n }", "public String getExecutionRoleArn() {\n return this.executionRoleArn;\n }", "public String getNodeARN() {\n return this.nodeARN;\n }", "private String getTaskName() {\n \n \t\treturn this.environment.getTaskName() + \" (\" + (this.environment.getIndexInSubtaskGroup() + 1) + \"/\"\n \t\t\t+ this.environment.getCurrentNumberOfSubtasks() + \")\";\n \t}", "String getOutputName();", "public String getResourceArn() {\n return this.resourceArn;\n }", "public String getResourceArn() {\n return this.resourceArn;\n }", "public String getResourceArn() {\n return this.resourceArn;\n }", "public String getClusterExecutableBasename() {\n return SeqExec.EXECUTABLE_BASENAME;\n }", "public final String aoy() {\n return this.label;\n }", "public String getName()\r\n {\r\n return taskName;\r\n }", "public String assetName() {\n return assetName;\n }", "public String getTargetArn() {\n return targetArn;\n }", "public String getFullJobName() {\n return jobGroup + \".\" + jobName;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getPipelineArn() != null)\n sb.append(\"PipelineArn: \").append(getPipelineArn()).append(\",\");\n if (getPipelineExecutionArn() != null)\n sb.append(\"PipelineExecutionArn: \").append(getPipelineExecutionArn()).append(\",\");\n if (getPipelineExecutionDisplayName() != null)\n sb.append(\"PipelineExecutionDisplayName: \").append(getPipelineExecutionDisplayName()).append(\",\");\n if (getPipelineExecutionStatus() != null)\n sb.append(\"PipelineExecutionStatus: \").append(getPipelineExecutionStatus()).append(\",\");\n if (getPipelineExecutionDescription() != null)\n sb.append(\"PipelineExecutionDescription: \").append(getPipelineExecutionDescription()).append(\",\");\n if (getPipelineExperimentConfig() != null)\n sb.append(\"PipelineExperimentConfig: \").append(getPipelineExperimentConfig()).append(\",\");\n if (getFailureReason() != null)\n sb.append(\"FailureReason: \").append(getFailureReason()).append(\",\");\n if (getCreationTime() != null)\n sb.append(\"CreationTime: \").append(getCreationTime()).append(\",\");\n if (getLastModifiedTime() != null)\n sb.append(\"LastModifiedTime: \").append(getLastModifiedTime()).append(\",\");\n if (getCreatedBy() != null)\n sb.append(\"CreatedBy: \").append(getCreatedBy()).append(\",\");\n if (getLastModifiedBy() != null)\n sb.append(\"LastModifiedBy: \").append(getLastModifiedBy()).append(\",\");\n if (getParallelismConfiguration() != null)\n sb.append(\"ParallelismConfiguration: \").append(getParallelismConfiguration()).append(\",\");\n if (getSelectiveExecutionConfig() != null)\n sb.append(\"SelectiveExecutionConfig: \").append(getSelectiveExecutionConfig());\n sb.append(\"}\");\n return sb.toString();\n }", "public String getPipelineExecutionStatus() {\n return this.pipelineExecutionStatus;\n }", "public String getName() {\n return aao.getName();\n }", "public String getTaskName() {\n Object ref = taskName_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n taskName_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getTaskName() {\n Object ref = taskName_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n taskName_ = s;\n return s;\n }\n }", "public String getAeName() {\n\t\treturn name;\n\t}", "public String getEngineArn() {\n return this.engineArn;\n }", "public String taskName() {\n return this.taskName;\n }", "public String getName() {\n return (NAME_PREFIX + _applicationId + DELIM + _endpointId);\n }", "public String getTaskName();", "public String getName() {\n\t\treturn this.toString();\n\t}", "public java.lang.String getRndTaskName() {\n return rndTaskName;\n }", "public String getRoleName() {\n return (String) getAttributeInternal(ROLENAME);\n }", "public static String getName() {\n\t\treturn _asmFileStr;\n\t}", "String getTaskName();", "String getTaskName();", "String getStageName();", "@Override\n\tpublic String getName() {\n\t\treturn \"Process Model Similarity Metric Based on Firing Sequences Collection\";\n\t}", "public String getAslName() {\n return (String) getAttributeInternal(ASLNAME);\n }", "public java.lang.String getEXECUTION()\n {\n \n return __EXECUTION;\n }", "String getPipelineId();", "java.lang.String getTargetJobName();", "public String getTaskName() {\n return this.taskDescription;\n }", "public String name() {\n this.use();\n\n return name;\n }", "public String roleName() {\n return this.roleName;\n }", "public String getJobName() {\n return this.jobName;\n }", "public String getExecutorName() {\n return executorName;\n }", "public String getSequenceName() {\n return sequenceName;\n }", "public String getExecutionMessage() {\n return this.executionMessage;\n }", "public final String get_name() {\n return scheduler_name;\n }", "@Nonnull\n\tpublic String getSequenceName() {\n\t\treturn _sequenceName;\n\t}", "public String getJobName() {\n return this.JobName;\n }", "public String getAlgorithmName ()\n {\n return algName; //(new String (algName + \" --> Input Stream : \" + this.inputName));\n }", "public final String getName() {\n return \"job-priority\";\n }", "public String getIntentLabel() {\n Flow.Intent intent = getFlow().getIntent();\n return intent == null ? NO_INTENT : intent.getLabel();\n }", "public String getTaskName(){\r\n\t\treturn this.taskName;\r\n\t}", "@Override\n\tpublic String getJobName() {\n\t\treturn model.getJobName();\n\t}", "@Override\n public String getName() {\n return this.role.getName();\n }", "private String getRoleArn(String accout, String role){\n\t\treturn \"arn:aws:iam::\"+accout+\":role/\"+role;\n\t}", "public String getSequenceName() {\n return sequenceName;\n }", "@Override\n\tpublic String getAnalysisName() {\n\t\treturn analysisName;\n\t}", "public String getTaskName() {\n return taskName;\n }", "public String getTaskName() {\n return taskName;\n }", "public String getTaskName() {\n return taskName;\n }", "public String getTaskName() {\n return taskName;\n }", "public String getProgramStatusAsString() {\n return getProgramStatus().name();\n }", "public String getExecId() {\n Object ref = execId_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n execId_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getProgramName()\r\n \t{\r\n \t\treturn m_program.m_csSimpleName;\r\n \t}", "public final String toString() {\n return scheduler_name;\n }", "@Override\n public String getObjectName() {\n return getWorkflowName();\n }", "public String getName() {\r\n return this.name();\r\n }", "public String getJobName() {\n return jobName;\n }", "public String getJobName() {\n return jobName;\n }", "public String getExecId() {\n Object ref = execId_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n execId_ = s;\n }\n return s;\n }\n }", "public String getTypeArn() {\n return this.typeArn;\n }", "public String getDescription()\r\n {\r\n return \"Approver of the task \"+taskName();\r\n }", "public String getStrPipelineExeURL() {\n return strPipelineExeURL;\n }", "@ApiModelProperty(value = \"String matching the name of the application\")\n public String getName() {\n return name;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getARN() != null)\n sb.append(\"ARN: \").append(getARN()).append(\",\");\n if (getExcludedRules() != null)\n sb.append(\"ExcludedRules: \").append(getExcludedRules()).append(\",\");\n if (getRuleActionOverrides() != null)\n sb.append(\"RuleActionOverrides: \").append(getRuleActionOverrides());\n sb.append(\"}\");\n return sb.toString();\n }", "@Override\n\tpublic String toString() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\t\n\t\tsb.append(ThmProcessUtil.isaActProc + \" \" + name);\n\t\t\n\t\tif (!param.isEmpty()) {\n\t\t\tsb.append (\" = \\n\");\n\t\t\tfor (String s : param) {\n\t\t\t\tsb.append(s + \"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tsb.append(\"\\n\");\n\t\t\n\t\tsb.append(ThmProcessUtil.isaProcBegin + \"\\n\" + \n\t\t\t\t body + \"\\n\" + ThmProcessUtil.isaProcEnd);\n\n\t\treturn sb.toString();\n\t}", "public final String getName() {\n return this.name;\n }", "public final String name() {\n\t\treturn name;\n\t}", "com.google.protobuf.ByteString\n getTaskNameBytes();", "public String getPlatformApplicationArn() {\n return platformApplicationArn;\n }", "public String getTypeName()\n {\n return getArgumentTypeName(type);\n }", "public String getRoleArn() {\n return roleArn;\n }", "public final String getName() {\n\t\treturn this.name;\n\t}", "public String getAnalyzerArn() {\n return this.analyzerArn;\n }", "public String getJobName() {\n return this.mJob;\n }", "public String getApplicationName() {\r\n\t\treturn applicationName;\r\n\t}", "public String getAuditDestinationARN() {\n return this.auditDestinationARN;\n }", "public final String name() {\n return name;\n }", "public String getWorkflowName() {\r\n\t\treturn this.workflowName;\r\n\t}", "public String get_sequence() {\n return m_aa_sequence;\n }" ]
[ "0.6389589", "0.6276838", "0.62469274", "0.62334865", "0.6173583", "0.6118551", "0.6118551", "0.6118551", "0.6118551", "0.6043603", "0.5940033", "0.569852", "0.56857115", "0.5665975", "0.56367713", "0.55179083", "0.5462428", "0.5454489", "0.5454489", "0.5454489", "0.5379351", "0.5373691", "0.53262806", "0.5307126", "0.53017336", "0.5299578", "0.52975893", "0.528169", "0.5270301", "0.5268408", "0.5249316", "0.5249074", "0.52455235", "0.52373046", "0.5228223", "0.52263355", "0.5199723", "0.51951545", "0.5193844", "0.5183614", "0.518331", "0.518331", "0.51702625", "0.5166925", "0.51620764", "0.51511127", "0.5149633", "0.5138993", "0.51139116", "0.5105739", "0.5100917", "0.50975096", "0.5088191", "0.50874144", "0.5076889", "0.5076711", "0.5072395", "0.5050987", "0.5047234", "0.50469637", "0.5039923", "0.50293964", "0.5023724", "0.50237024", "0.5020392", "0.5020347", "0.5012425", "0.5011809", "0.5011809", "0.5011809", "0.5011809", "0.50116134", "0.5010488", "0.4994631", "0.49928546", "0.49926025", "0.4992357", "0.49912104", "0.49912104", "0.49902767", "0.49786967", "0.49710348", "0.4950722", "0.49458835", "0.49371266", "0.49296317", "0.49266148", "0.49255502", "0.4923942", "0.49131346", "0.49078843", "0.49074095", "0.4905827", "0.49050236", "0.49049366", "0.49021727", "0.48966068", "0.48945367", "0.48914024", "0.48869377" ]
0.68212205
0
The Amazon Resource Name (ARN) of the pipeline execution.
public DescribePipelineExecutionResult withPipelineExecutionArn(String pipelineExecutionArn) { setPipelineExecutionArn(pipelineExecutionArn); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPipelineExecutionArn() {\n return this.pipelineExecutionArn;\n }", "public String getPipelineArn() {\n return this.pipelineArn;\n }", "public String getPipelineExecutionDisplayName() {\n return this.pipelineExecutionDisplayName;\n }", "java.lang.String getExecutionStageName();", "@Id\n @Output\n public String getArn() {\n return arn;\n }", "public String getARN() {\n return this.aRN;\n }", "public String getArn() {\n return this.arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getArn() {\n return this.arn;\n }", "public String getPipelineExecutionDescription() {\n return this.pipelineExecutionDescription;\n }", "String getArn();", "com.google.protobuf.ByteString\n getExecutionStageNameBytes();", "public String getStrPipelineName() {\n return strPipelineName;\n }", "public String getExecutionRoleArn() {\n return this.executionRoleArn;\n }", "public String getNodeARN() {\n return this.nodeARN;\n }", "private String getTaskName() {\n \n \t\treturn this.environment.getTaskName() + \" (\" + (this.environment.getIndexInSubtaskGroup() + 1) + \"/\"\n \t\t\t+ this.environment.getCurrentNumberOfSubtasks() + \")\";\n \t}", "String getOutputName();", "public String getResourceArn() {\n return this.resourceArn;\n }", "public String getResourceArn() {\n return this.resourceArn;\n }", "public String getResourceArn() {\n return this.resourceArn;\n }", "public String getClusterExecutableBasename() {\n return SeqExec.EXECUTABLE_BASENAME;\n }", "public final String aoy() {\n return this.label;\n }", "public String getName()\r\n {\r\n return taskName;\r\n }", "public String assetName() {\n return assetName;\n }", "public String getTargetArn() {\n return targetArn;\n }", "public String getFullJobName() {\n return jobGroup + \".\" + jobName;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getPipelineArn() != null)\n sb.append(\"PipelineArn: \").append(getPipelineArn()).append(\",\");\n if (getPipelineExecutionArn() != null)\n sb.append(\"PipelineExecutionArn: \").append(getPipelineExecutionArn()).append(\",\");\n if (getPipelineExecutionDisplayName() != null)\n sb.append(\"PipelineExecutionDisplayName: \").append(getPipelineExecutionDisplayName()).append(\",\");\n if (getPipelineExecutionStatus() != null)\n sb.append(\"PipelineExecutionStatus: \").append(getPipelineExecutionStatus()).append(\",\");\n if (getPipelineExecutionDescription() != null)\n sb.append(\"PipelineExecutionDescription: \").append(getPipelineExecutionDescription()).append(\",\");\n if (getPipelineExperimentConfig() != null)\n sb.append(\"PipelineExperimentConfig: \").append(getPipelineExperimentConfig()).append(\",\");\n if (getFailureReason() != null)\n sb.append(\"FailureReason: \").append(getFailureReason()).append(\",\");\n if (getCreationTime() != null)\n sb.append(\"CreationTime: \").append(getCreationTime()).append(\",\");\n if (getLastModifiedTime() != null)\n sb.append(\"LastModifiedTime: \").append(getLastModifiedTime()).append(\",\");\n if (getCreatedBy() != null)\n sb.append(\"CreatedBy: \").append(getCreatedBy()).append(\",\");\n if (getLastModifiedBy() != null)\n sb.append(\"LastModifiedBy: \").append(getLastModifiedBy()).append(\",\");\n if (getParallelismConfiguration() != null)\n sb.append(\"ParallelismConfiguration: \").append(getParallelismConfiguration()).append(\",\");\n if (getSelectiveExecutionConfig() != null)\n sb.append(\"SelectiveExecutionConfig: \").append(getSelectiveExecutionConfig());\n sb.append(\"}\");\n return sb.toString();\n }", "public String getPipelineExecutionStatus() {\n return this.pipelineExecutionStatus;\n }", "public String getName() {\n return aao.getName();\n }", "public String getTaskName() {\n Object ref = taskName_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n taskName_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getTaskName() {\n Object ref = taskName_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n taskName_ = s;\n return s;\n }\n }", "public String getAeName() {\n\t\treturn name;\n\t}", "public String getEngineArn() {\n return this.engineArn;\n }", "public String taskName() {\n return this.taskName;\n }", "public String getName() {\n return (NAME_PREFIX + _applicationId + DELIM + _endpointId);\n }", "public String getTaskName();", "public String getName() {\n\t\treturn this.toString();\n\t}", "public java.lang.String getRndTaskName() {\n return rndTaskName;\n }", "public String getRoleName() {\n return (String) getAttributeInternal(ROLENAME);\n }", "public static String getName() {\n\t\treturn _asmFileStr;\n\t}", "String getTaskName();", "String getTaskName();", "String getStageName();", "@Override\n\tpublic String getName() {\n\t\treturn \"Process Model Similarity Metric Based on Firing Sequences Collection\";\n\t}", "public String getAslName() {\n return (String) getAttributeInternal(ASLNAME);\n }", "public java.lang.String getEXECUTION()\n {\n \n return __EXECUTION;\n }", "String getPipelineId();", "java.lang.String getTargetJobName();", "public String getTaskName() {\n return this.taskDescription;\n }", "public String name() {\n this.use();\n\n return name;\n }", "public String roleName() {\n return this.roleName;\n }", "public String getJobName() {\n return this.jobName;\n }", "public String getExecutorName() {\n return executorName;\n }", "public String getSequenceName() {\n return sequenceName;\n }", "public String getExecutionMessage() {\n return this.executionMessage;\n }", "public final String get_name() {\n return scheduler_name;\n }", "@Nonnull\n\tpublic String getSequenceName() {\n\t\treturn _sequenceName;\n\t}", "public String getJobName() {\n return this.JobName;\n }", "public String getAlgorithmName ()\n {\n return algName; //(new String (algName + \" --> Input Stream : \" + this.inputName));\n }", "public final String getName() {\n return \"job-priority\";\n }", "public String getIntentLabel() {\n Flow.Intent intent = getFlow().getIntent();\n return intent == null ? NO_INTENT : intent.getLabel();\n }", "public String getTaskName(){\r\n\t\treturn this.taskName;\r\n\t}", "@Override\n\tpublic String getJobName() {\n\t\treturn model.getJobName();\n\t}", "@Override\n public String getName() {\n return this.role.getName();\n }", "private String getRoleArn(String accout, String role){\n\t\treturn \"arn:aws:iam::\"+accout+\":role/\"+role;\n\t}", "public String getSequenceName() {\n return sequenceName;\n }", "@Override\n\tpublic String getAnalysisName() {\n\t\treturn analysisName;\n\t}", "public String getTaskName() {\n return taskName;\n }", "public String getTaskName() {\n return taskName;\n }", "public String getTaskName() {\n return taskName;\n }", "public String getTaskName() {\n return taskName;\n }", "public String getProgramStatusAsString() {\n return getProgramStatus().name();\n }", "public String getExecId() {\n Object ref = execId_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n execId_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getProgramName()\r\n \t{\r\n \t\treturn m_program.m_csSimpleName;\r\n \t}", "public final String toString() {\n return scheduler_name;\n }", "@Override\n public String getObjectName() {\n return getWorkflowName();\n }", "public String getName() {\r\n return this.name();\r\n }", "public String getJobName() {\n return jobName;\n }", "public String getJobName() {\n return jobName;\n }", "public String getExecId() {\n Object ref = execId_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n execId_ = s;\n }\n return s;\n }\n }", "public String getTypeArn() {\n return this.typeArn;\n }", "public String getDescription()\r\n {\r\n return \"Approver of the task \"+taskName();\r\n }", "public String getStrPipelineExeURL() {\n return strPipelineExeURL;\n }", "@ApiModelProperty(value = \"String matching the name of the application\")\n public String getName() {\n return name;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getARN() != null)\n sb.append(\"ARN: \").append(getARN()).append(\",\");\n if (getExcludedRules() != null)\n sb.append(\"ExcludedRules: \").append(getExcludedRules()).append(\",\");\n if (getRuleActionOverrides() != null)\n sb.append(\"RuleActionOverrides: \").append(getRuleActionOverrides());\n sb.append(\"}\");\n return sb.toString();\n }", "@Override\n\tpublic String toString() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\t\n\t\tsb.append(ThmProcessUtil.isaActProc + \" \" + name);\n\t\t\n\t\tif (!param.isEmpty()) {\n\t\t\tsb.append (\" = \\n\");\n\t\t\tfor (String s : param) {\n\t\t\t\tsb.append(s + \"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tsb.append(\"\\n\");\n\t\t\n\t\tsb.append(ThmProcessUtil.isaProcBegin + \"\\n\" + \n\t\t\t\t body + \"\\n\" + ThmProcessUtil.isaProcEnd);\n\n\t\treturn sb.toString();\n\t}", "public final String getName() {\n return this.name;\n }", "public final String name() {\n\t\treturn name;\n\t}", "com.google.protobuf.ByteString\n getTaskNameBytes();", "public String getPlatformApplicationArn() {\n return platformApplicationArn;\n }", "public String getTypeName()\n {\n return getArgumentTypeName(type);\n }", "public String getRoleArn() {\n return roleArn;\n }", "public final String getName() {\n\t\treturn this.name;\n\t}", "public String getAnalyzerArn() {\n return this.analyzerArn;\n }", "public String getJobName() {\n return this.mJob;\n }", "public String getApplicationName() {\r\n\t\treturn applicationName;\r\n\t}", "public String getAuditDestinationARN() {\n return this.auditDestinationARN;\n }", "public final String name() {\n return name;\n }", "public String getWorkflowName() {\r\n\t\treturn this.workflowName;\r\n\t}", "public String get_sequence() {\n return m_aa_sequence;\n }" ]
[ "0.68212205", "0.6389589", "0.6276838", "0.62469274", "0.62334865", "0.6173583", "0.6118551", "0.6118551", "0.6118551", "0.6118551", "0.6043603", "0.5940033", "0.569852", "0.56857115", "0.5665975", "0.56367713", "0.55179083", "0.5462428", "0.5454489", "0.5454489", "0.5454489", "0.5379351", "0.5373691", "0.53262806", "0.5307126", "0.53017336", "0.5299578", "0.52975893", "0.528169", "0.5270301", "0.5268408", "0.5249316", "0.5249074", "0.52455235", "0.52373046", "0.5228223", "0.52263355", "0.5199723", "0.51951545", "0.5193844", "0.5183614", "0.518331", "0.518331", "0.51702625", "0.5166925", "0.51620764", "0.51511127", "0.5149633", "0.5138993", "0.51139116", "0.5105739", "0.5100917", "0.50975096", "0.5088191", "0.50874144", "0.5076889", "0.5076711", "0.5072395", "0.5050987", "0.5047234", "0.50469637", "0.5039923", "0.50293964", "0.5023724", "0.50237024", "0.5020392", "0.5020347", "0.5012425", "0.5011809", "0.5011809", "0.5011809", "0.5011809", "0.50116134", "0.5010488", "0.4994631", "0.49928546", "0.49926025", "0.4992357", "0.49912104", "0.49912104", "0.49902767", "0.49786967", "0.49710348", "0.4950722", "0.49458835", "0.49371266", "0.49296317", "0.49266148", "0.49255502", "0.4923942", "0.49131346", "0.49078843", "0.49074095", "0.4905827", "0.49050236", "0.49049366", "0.49021727", "0.48966068", "0.48945367", "0.48914024", "0.48869377" ]
0.0
-1
The display name of the pipeline execution.
public void setPipelineExecutionDisplayName(String pipelineExecutionDisplayName) { this.pipelineExecutionDisplayName = pipelineExecutionDisplayName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPipelineExecutionDisplayName() {\n return this.pipelineExecutionDisplayName;\n }", "@Override\n public String getDisplayName() {\n return Strings.getString(\"BuildPipelineTrigger.DisplayText\"); //$NON-NLS-1$\n }", "java.lang.String getExecutionStageName();", "String displayName();", "String displayName();", "public String getStrPipelineName() {\n return strPipelineName;\n }", "public String getDisplayName() {\n return \"Aggregate build flow test results\";\n }", "public String getName() { return displayName; }", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "public String getName() {\r\n\t\treturn GDAssemblerUI.getText(UI_TEXT);\r\n\t}", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "@Nonnull\r\n String getDisplayName();", "public String getDisplayName() {\n return DatadogBuildListener.DISPLAY_NAME;\n }", "public String getDisplayName() {\n\t\treturn displayName.get();\n\t}", "String getStageName();", "String getOutputName();", "default String getDisplayName() {\r\n\t\treturn getClass().getSimpleName();\r\n\t}", "@Override\n public String getDisplayName() {\n return this.name;\n }", "public String getDisplayName() {\n return DISPLAY_NAME;\n }", "public String getDisplayName() {\n\t\t\tlogger.debug(\"### DescriptorImpl::getDisplayName\");\n\t\t\treturn \"Determine Semantic Version for project\";\n\t\t}", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName()\n {\n return getString(\"DisplayName\");\n }", "public String getPipelineExecutionDescription() {\n return this.pipelineExecutionDescription;\n }", "@Override\n\tpublic String getDisplayName() {\n\t\treturn displayName;\n\t}", "@Override\n\tpublic String getDisplayName() {\n\t\treturn displayName;\n\t}", "public void showNAME() {\r\n\t\tSystem.out.println(getName().toUpperCase());\r\n\t}", "public String getDisplayName () {\n return impl.getDisplayName ();\n }", "public String getDisplayName() {\n return \"Test website performance using Rigor Optimization\";\n }", "public String getName() {\n\t\treturn this.toString();\n\t}", "public String getName()\r\n {\r\n return taskName;\r\n }", "public String getDisplayName() {\n return this.displayname;\n }", "public String getDisplayName() {\r\n\t\treturn displayName;\r\n\t}", "public String displayName()\n {\n return displayName;\n }", "@Override\n public String getDisplayName() {\n\n return Messages.displayName();\n }", "public String displayName() {\n return this.displayName;\n }", "public String displayName() {\n return this.displayName;\n }", "@NonNull\n String getDisplayName();", "public String getName() {\r\n if (target != null) {\r\n return target.getName();\r\n }\r\n\r\n if (benchmark != null) {\r\n return benchmark.getName();\r\n }\r\n\r\n return \"\";\r\n }", "public String getName()\r\n {\r\n return screenName;\r\n }", "public String getDisplayName() {\n\t\treturn displayName;\n\t}", "public String getDisplayName() {\n\t\treturn displayName;\n\t}", "public String getDisplayName() {\n\t\treturn displayName;\n\t}", "public String getDisplayName() {\n\t\treturn displayName;\n\t}", "public String getDisplayName() {\n\t\treturn displayName;\n\t}", "public String getDisplayName() {\n return displayName;\n }", "public String getDisplayName () {\n return displayName;\n }", "public String getDisplayName () {\n return displayName;\n }", "public String name() {\n this.use();\n\n return name;\n }", "public String getDisplayName() {\n return graphConfig.getDisplayName();\n }", "public String getDisplayName() {\n return displayName;\n }", "public String showName(){\r\n\t\tSystem.out.println(\"This is a \" + name);\r\n\t\treturn name;}", "public String getDisplayName ( ) {\n\t\treturn handleOptional ( ).map ( Player :: getDisplayName ).orElse ( name );\n\t}", "public String getDisplayName() {\n return displayName;\n }", "public String getDisplayName() {\n return displayName;\n }", "public String getDisplayName() {\n return displayName;\n }", "public String getDisplayName() {\n return Messages.JobProfiles_displayName();\n }", "public String getDisplayName() {\n return displayName;\n }", "@Override\n public String getDisplayName() {\n return \"Trigger a remote parameterized job\";\n }", "public String getName() {\r\n return this.name();\r\n }", "public String getDisplayName() {\n return \"Rhapsody Build\";\n }", "public String getStepDisplayName()\r\n\t{\r\n\t\treturn stepDisplayName;\r\n\t}", "String getModuleDisplayName();", "@NotNull\n String getDisplayName();", "public String getDisplayName()\n {\n return displayName;\n }", "public String getDisplayName()\n {\n return displayName;\n }", "public String displayName() {\n return this.innerProperties() == null ? null : this.innerProperties().displayName();\n }", "public String displayName() {\n return this.innerProperties() == null ? null : this.innerProperties().displayName();\n }", "public String displayName() {\n return this.innerProperties() == null ? null : this.innerProperties().displayName();\n }", "String getDisplay_name();", "public String toString() {\n return getName();\n }", "public java.lang.String getName();", "public String getName() {\n return instance.getName();\n }", "public String getDisplayName () throws java.io.IOException, com.linar.jintegra.AutomationException;", "@Nonnull String getName();", "public String getDisplayName() {\n return configName;\n }", "public String toString() {\n return getName();\n }", "public String toString() {\n return getName();\n }", "String getTaskName();", "String getTaskName();", "public String getStrVisualizeName() {\n return strVisualizeName;\n }", "@Override\r\n\tpublic String getName() {\r\n\t\treturn this.title;\r\n\t}", "public String getName() {\n return instance.getName();\n }", "public String getName() {\n return instance.getName();\n }", "public String getName() {\n return instance.getName();\n }", "@Override\n\tpublic String getDisplayName()\n\t{\n\t\treturn this.getCameraActivity().getString(R.string.scene_hdr);\n\t}", "private String getTaskName() {\n \n \t\treturn this.environment.getTaskName() + \" (\" + (this.environment.getIndexInSubtaskGroup() + 1) + \"/\"\n \t\t\t+ this.environment.getCurrentNumberOfSubtasks() + \")\";\n \t}", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s\", getName());\n\t}", "@Override\n\tpublic ITextComponent getDisplayName() {\n\t\treturn null;\n\t}" ]
[ "0.8203438", "0.7529979", "0.74803615", "0.7178036", "0.7178036", "0.69871384", "0.69591886", "0.6945846", "0.6929692", "0.6929692", "0.6929692", "0.6929692", "0.6929692", "0.6929692", "0.68845916", "0.6805396", "0.6805396", "0.6805396", "0.6805396", "0.6805396", "0.6805396", "0.67935", "0.67704", "0.67609704", "0.67456573", "0.6740692", "0.6735607", "0.6712367", "0.66893077", "0.66880846", "0.66688216", "0.66688216", "0.66688216", "0.66688216", "0.66486347", "0.6637087", "0.6631474", "0.6631474", "0.66119623", "0.66039526", "0.6578268", "0.6559616", "0.65476", "0.6537377", "0.6517025", "0.65144885", "0.651113", "0.649952", "0.649952", "0.64926517", "0.6475897", "0.6475211", "0.6467464", "0.6467464", "0.6467464", "0.6467464", "0.6467464", "0.6461063", "0.64578223", "0.64578223", "0.643801", "0.6421021", "0.64203364", "0.6417808", "0.6405942", "0.63975626", "0.63975626", "0.63975626", "0.63935906", "0.63907826", "0.63903123", "0.6388026", "0.63833797", "0.63788486", "0.6376394", "0.6370868", "0.6351569", "0.6351569", "0.63484293", "0.63484293", "0.63484293", "0.6348174", "0.6341534", "0.6341312", "0.63398427", "0.6336026", "0.6335161", "0.63276637", "0.63101774", "0.63101774", "0.630733", "0.630733", "0.6304615", "0.6287012", "0.62851447", "0.62851447", "0.62851447", "0.62840956", "0.6283419", "0.6283338", "0.62822044" ]
0.0
-1
The display name of the pipeline execution.
public String getPipelineExecutionDisplayName() { return this.pipelineExecutionDisplayName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getDisplayName() {\n return Strings.getString(\"BuildPipelineTrigger.DisplayText\"); //$NON-NLS-1$\n }", "java.lang.String getExecutionStageName();", "String displayName();", "String displayName();", "public String getStrPipelineName() {\n return strPipelineName;\n }", "public String getDisplayName() {\n return \"Aggregate build flow test results\";\n }", "public String getName() { return displayName; }", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "public String getName() {\r\n\t\treturn GDAssemblerUI.getText(UI_TEXT);\r\n\t}", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "@Nonnull\r\n String getDisplayName();", "public String getDisplayName() {\n return DatadogBuildListener.DISPLAY_NAME;\n }", "public String getDisplayName() {\n\t\treturn displayName.get();\n\t}", "String getStageName();", "String getOutputName();", "default String getDisplayName() {\r\n\t\treturn getClass().getSimpleName();\r\n\t}", "@Override\n public String getDisplayName() {\n return this.name;\n }", "public String getDisplayName() {\n return DISPLAY_NAME;\n }", "public String getDisplayName() {\n\t\t\tlogger.debug(\"### DescriptorImpl::getDisplayName\");\n\t\t\treturn \"Determine Semantic Version for project\";\n\t\t}", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName()\n {\n return getString(\"DisplayName\");\n }", "public String getPipelineExecutionDescription() {\n return this.pipelineExecutionDescription;\n }", "@Override\n\tpublic String getDisplayName() {\n\t\treturn displayName;\n\t}", "@Override\n\tpublic String getDisplayName() {\n\t\treturn displayName;\n\t}", "public void showNAME() {\r\n\t\tSystem.out.println(getName().toUpperCase());\r\n\t}", "public String getDisplayName () {\n return impl.getDisplayName ();\n }", "public String getDisplayName() {\n return \"Test website performance using Rigor Optimization\";\n }", "public String getName() {\n\t\treturn this.toString();\n\t}", "public String getName()\r\n {\r\n return taskName;\r\n }", "public String getDisplayName() {\n return this.displayname;\n }", "public String getDisplayName() {\r\n\t\treturn displayName;\r\n\t}", "public String displayName()\n {\n return displayName;\n }", "@Override\n public String getDisplayName() {\n\n return Messages.displayName();\n }", "public String displayName() {\n return this.displayName;\n }", "public String displayName() {\n return this.displayName;\n }", "@NonNull\n String getDisplayName();", "public String getName() {\r\n if (target != null) {\r\n return target.getName();\r\n }\r\n\r\n if (benchmark != null) {\r\n return benchmark.getName();\r\n }\r\n\r\n return \"\";\r\n }", "public String getName()\r\n {\r\n return screenName;\r\n }", "public String getDisplayName() {\n\t\treturn displayName;\n\t}", "public String getDisplayName() {\n\t\treturn displayName;\n\t}", "public String getDisplayName() {\n\t\treturn displayName;\n\t}", "public String getDisplayName() {\n\t\treturn displayName;\n\t}", "public String getDisplayName() {\n\t\treturn displayName;\n\t}", "public String getDisplayName() {\n return displayName;\n }", "public String getDisplayName () {\n return displayName;\n }", "public String getDisplayName () {\n return displayName;\n }", "public String name() {\n this.use();\n\n return name;\n }", "public String getDisplayName() {\n return graphConfig.getDisplayName();\n }", "public String getDisplayName() {\n return displayName;\n }", "public String showName(){\r\n\t\tSystem.out.println(\"This is a \" + name);\r\n\t\treturn name;}", "public String getDisplayName ( ) {\n\t\treturn handleOptional ( ).map ( Player :: getDisplayName ).orElse ( name );\n\t}", "public String getDisplayName() {\n return displayName;\n }", "public String getDisplayName() {\n return displayName;\n }", "public String getDisplayName() {\n return displayName;\n }", "public String getDisplayName() {\n return Messages.JobProfiles_displayName();\n }", "public String getDisplayName() {\n return displayName;\n }", "@Override\n public String getDisplayName() {\n return \"Trigger a remote parameterized job\";\n }", "public String getName() {\r\n return this.name();\r\n }", "public String getDisplayName() {\n return \"Rhapsody Build\";\n }", "public String getStepDisplayName()\r\n\t{\r\n\t\treturn stepDisplayName;\r\n\t}", "String getModuleDisplayName();", "@NotNull\n String getDisplayName();", "public String getDisplayName()\n {\n return displayName;\n }", "public String getDisplayName()\n {\n return displayName;\n }", "public String displayName() {\n return this.innerProperties() == null ? null : this.innerProperties().displayName();\n }", "public String displayName() {\n return this.innerProperties() == null ? null : this.innerProperties().displayName();\n }", "public String displayName() {\n return this.innerProperties() == null ? null : this.innerProperties().displayName();\n }", "String getDisplay_name();", "public String toString() {\n return getName();\n }", "public java.lang.String getName();", "public String getName() {\n return instance.getName();\n }", "public String getDisplayName () throws java.io.IOException, com.linar.jintegra.AutomationException;", "@Nonnull String getName();", "public String getDisplayName() {\n return configName;\n }", "public String toString() {\n return getName();\n }", "public String toString() {\n return getName();\n }", "String getTaskName();", "String getTaskName();", "public String getStrVisualizeName() {\n return strVisualizeName;\n }", "@Override\r\n\tpublic String getName() {\r\n\t\treturn this.title;\r\n\t}", "public String getName() {\n return instance.getName();\n }", "public String getName() {\n return instance.getName();\n }", "public String getName() {\n return instance.getName();\n }", "@Override\n\tpublic String getDisplayName()\n\t{\n\t\treturn this.getCameraActivity().getString(R.string.scene_hdr);\n\t}", "private String getTaskName() {\n \n \t\treturn this.environment.getTaskName() + \" (\" + (this.environment.getIndexInSubtaskGroup() + 1) + \"/\"\n \t\t\t+ this.environment.getCurrentNumberOfSubtasks() + \")\";\n \t}", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s\", getName());\n\t}", "@Override\n\tpublic ITextComponent getDisplayName() {\n\t\treturn null;\n\t}" ]
[ "0.7529979", "0.74803615", "0.7178036", "0.7178036", "0.69871384", "0.69591886", "0.6945846", "0.6929692", "0.6929692", "0.6929692", "0.6929692", "0.6929692", "0.6929692", "0.68845916", "0.6805396", "0.6805396", "0.6805396", "0.6805396", "0.6805396", "0.6805396", "0.67935", "0.67704", "0.67609704", "0.67456573", "0.6740692", "0.6735607", "0.6712367", "0.66893077", "0.66880846", "0.66688216", "0.66688216", "0.66688216", "0.66688216", "0.66486347", "0.6637087", "0.6631474", "0.6631474", "0.66119623", "0.66039526", "0.6578268", "0.6559616", "0.65476", "0.6537377", "0.6517025", "0.65144885", "0.651113", "0.649952", "0.649952", "0.64926517", "0.6475897", "0.6475211", "0.6467464", "0.6467464", "0.6467464", "0.6467464", "0.6467464", "0.6461063", "0.64578223", "0.64578223", "0.643801", "0.6421021", "0.64203364", "0.6417808", "0.6405942", "0.63975626", "0.63975626", "0.63975626", "0.63935906", "0.63907826", "0.63903123", "0.6388026", "0.63833797", "0.63788486", "0.6376394", "0.6370868", "0.6351569", "0.6351569", "0.63484293", "0.63484293", "0.63484293", "0.6348174", "0.6341534", "0.6341312", "0.63398427", "0.6336026", "0.6335161", "0.63276637", "0.63101774", "0.63101774", "0.630733", "0.630733", "0.6304615", "0.6287012", "0.62851447", "0.62851447", "0.62851447", "0.62840956", "0.6283419", "0.6283338", "0.62822044" ]
0.8203438
0
The display name of the pipeline execution.
public DescribePipelineExecutionResult withPipelineExecutionDisplayName(String pipelineExecutionDisplayName) { setPipelineExecutionDisplayName(pipelineExecutionDisplayName); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPipelineExecutionDisplayName() {\n return this.pipelineExecutionDisplayName;\n }", "@Override\n public String getDisplayName() {\n return Strings.getString(\"BuildPipelineTrigger.DisplayText\"); //$NON-NLS-1$\n }", "java.lang.String getExecutionStageName();", "String displayName();", "String displayName();", "public String getStrPipelineName() {\n return strPipelineName;\n }", "public String getDisplayName() {\n return \"Aggregate build flow test results\";\n }", "public String getName() { return displayName; }", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "public String getName() {\r\n\t\treturn GDAssemblerUI.getText(UI_TEXT);\r\n\t}", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "@Nonnull\r\n String getDisplayName();", "public String getDisplayName() {\n return DatadogBuildListener.DISPLAY_NAME;\n }", "public String getDisplayName() {\n\t\treturn displayName.get();\n\t}", "String getStageName();", "String getOutputName();", "default String getDisplayName() {\r\n\t\treturn getClass().getSimpleName();\r\n\t}", "@Override\n public String getDisplayName() {\n return this.name;\n }", "public String getDisplayName() {\n return DISPLAY_NAME;\n }", "public String getDisplayName() {\n\t\t\tlogger.debug(\"### DescriptorImpl::getDisplayName\");\n\t\t\treturn \"Determine Semantic Version for project\";\n\t\t}", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName()\n {\n return getString(\"DisplayName\");\n }", "public String getPipelineExecutionDescription() {\n return this.pipelineExecutionDescription;\n }", "@Override\n\tpublic String getDisplayName() {\n\t\treturn displayName;\n\t}", "@Override\n\tpublic String getDisplayName() {\n\t\treturn displayName;\n\t}", "public void showNAME() {\r\n\t\tSystem.out.println(getName().toUpperCase());\r\n\t}", "public String getDisplayName () {\n return impl.getDisplayName ();\n }", "public String getDisplayName() {\n return \"Test website performance using Rigor Optimization\";\n }", "public String getName() {\n\t\treturn this.toString();\n\t}", "public String getName()\r\n {\r\n return taskName;\r\n }", "public String getDisplayName() {\n return this.displayname;\n }", "public String getDisplayName() {\r\n\t\treturn displayName;\r\n\t}", "public String displayName()\n {\n return displayName;\n }", "@Override\n public String getDisplayName() {\n\n return Messages.displayName();\n }", "public String displayName() {\n return this.displayName;\n }", "public String displayName() {\n return this.displayName;\n }", "@NonNull\n String getDisplayName();", "public String getName() {\r\n if (target != null) {\r\n return target.getName();\r\n }\r\n\r\n if (benchmark != null) {\r\n return benchmark.getName();\r\n }\r\n\r\n return \"\";\r\n }", "public String getName()\r\n {\r\n return screenName;\r\n }", "public String getDisplayName() {\n\t\treturn displayName;\n\t}", "public String getDisplayName() {\n\t\treturn displayName;\n\t}", "public String getDisplayName() {\n\t\treturn displayName;\n\t}", "public String getDisplayName() {\n\t\treturn displayName;\n\t}", "public String getDisplayName() {\n\t\treturn displayName;\n\t}", "public String getDisplayName() {\n return displayName;\n }", "public String getDisplayName () {\n return displayName;\n }", "public String getDisplayName () {\n return displayName;\n }", "public String name() {\n this.use();\n\n return name;\n }", "public String getDisplayName() {\n return graphConfig.getDisplayName();\n }", "public String getDisplayName() {\n return displayName;\n }", "public String showName(){\r\n\t\tSystem.out.println(\"This is a \" + name);\r\n\t\treturn name;}", "public String getDisplayName ( ) {\n\t\treturn handleOptional ( ).map ( Player :: getDisplayName ).orElse ( name );\n\t}", "public String getDisplayName() {\n return displayName;\n }", "public String getDisplayName() {\n return displayName;\n }", "public String getDisplayName() {\n return displayName;\n }", "public String getDisplayName() {\n return Messages.JobProfiles_displayName();\n }", "public String getDisplayName() {\n return displayName;\n }", "@Override\n public String getDisplayName() {\n return \"Trigger a remote parameterized job\";\n }", "public String getName() {\r\n return this.name();\r\n }", "public String getDisplayName() {\n return \"Rhapsody Build\";\n }", "public String getStepDisplayName()\r\n\t{\r\n\t\treturn stepDisplayName;\r\n\t}", "String getModuleDisplayName();", "@NotNull\n String getDisplayName();", "public String getDisplayName()\n {\n return displayName;\n }", "public String getDisplayName()\n {\n return displayName;\n }", "public String displayName() {\n return this.innerProperties() == null ? null : this.innerProperties().displayName();\n }", "public String displayName() {\n return this.innerProperties() == null ? null : this.innerProperties().displayName();\n }", "public String displayName() {\n return this.innerProperties() == null ? null : this.innerProperties().displayName();\n }", "String getDisplay_name();", "public String toString() {\n return getName();\n }", "public java.lang.String getName();", "public String getName() {\n return instance.getName();\n }", "public String getDisplayName () throws java.io.IOException, com.linar.jintegra.AutomationException;", "@Nonnull String getName();", "public String getDisplayName() {\n return configName;\n }", "public String toString() {\n return getName();\n }", "public String toString() {\n return getName();\n }", "String getTaskName();", "String getTaskName();", "public String getStrVisualizeName() {\n return strVisualizeName;\n }", "@Override\r\n\tpublic String getName() {\r\n\t\treturn this.title;\r\n\t}", "public String getName() {\n return instance.getName();\n }", "public String getName() {\n return instance.getName();\n }", "public String getName() {\n return instance.getName();\n }", "@Override\n\tpublic String getDisplayName()\n\t{\n\t\treturn this.getCameraActivity().getString(R.string.scene_hdr);\n\t}", "private String getTaskName() {\n \n \t\treturn this.environment.getTaskName() + \" (\" + (this.environment.getIndexInSubtaskGroup() + 1) + \"/\"\n \t\t\t+ this.environment.getCurrentNumberOfSubtasks() + \")\";\n \t}", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s\", getName());\n\t}", "@Override\n\tpublic ITextComponent getDisplayName() {\n\t\treturn null;\n\t}" ]
[ "0.8203438", "0.7529979", "0.74803615", "0.7178036", "0.7178036", "0.69871384", "0.69591886", "0.6945846", "0.6929692", "0.6929692", "0.6929692", "0.6929692", "0.6929692", "0.6929692", "0.68845916", "0.6805396", "0.6805396", "0.6805396", "0.6805396", "0.6805396", "0.6805396", "0.67935", "0.67704", "0.67609704", "0.67456573", "0.6740692", "0.6735607", "0.6712367", "0.66893077", "0.66880846", "0.66688216", "0.66688216", "0.66688216", "0.66688216", "0.66486347", "0.6637087", "0.6631474", "0.6631474", "0.66119623", "0.66039526", "0.6578268", "0.6559616", "0.65476", "0.6537377", "0.6517025", "0.65144885", "0.651113", "0.649952", "0.649952", "0.64926517", "0.6475897", "0.6475211", "0.6467464", "0.6467464", "0.6467464", "0.6467464", "0.6467464", "0.6461063", "0.64578223", "0.64578223", "0.643801", "0.6421021", "0.64203364", "0.6417808", "0.6405942", "0.63975626", "0.63975626", "0.63975626", "0.63935906", "0.63907826", "0.63903123", "0.6388026", "0.63833797", "0.63788486", "0.6376394", "0.6370868", "0.6351569", "0.6351569", "0.63484293", "0.63484293", "0.63484293", "0.6348174", "0.6341534", "0.6341312", "0.63398427", "0.6336026", "0.6335161", "0.63276637", "0.63101774", "0.63101774", "0.630733", "0.630733", "0.6304615", "0.6287012", "0.62851447", "0.62851447", "0.62851447", "0.62840956", "0.6283419", "0.6283338", "0.62822044" ]
0.0
-1
The status of the pipeline execution.
public void setPipelineExecutionStatus(String pipelineExecutionStatus) { this.pipelineExecutionStatus = pipelineExecutionStatus; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPipelineExecutionStatus() {\n return this.pipelineExecutionStatus;\n }", "public ExecutionStatus status() {\n return this.status;\n }", "public synchronized Status getStatus() {\n return execStatus;\n }", "public RunStatus status() {\n return this.status;\n }", "public int status() {\n return status;\n }", "public ProcessModelStatus getStatus() {\r\n return this.status;\r\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "@java.lang.Override\n public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "@Override\n\tpublic int getJobStatus() {\n\t\treturn model.getJobStatus();\n\t}", "public JenkinsStatus getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "@java.lang.Override\n public int getStatus() {\n return status_;\n }", "public long getStatus() {\r\n return status;\r\n }", "public int getStatus ()\n {\n return status;\n }", "public int getStatus ()\n {\n return status;\n }", "public WorkflowStatus getStatus() {\n\t\treturn status;\n\t}", "public boolean getStatus() {\n\t\treturn status;\n\t}", "public Status getStatus() {\n return result;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public int getStatus()\n {\n return status;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public String getJobStatus() {\n return this.jobStatus;\n }", "public String getJobStatus() {\n return this.jobStatus;\n }", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public Integer getJobStatus() {\n return jobStatus;\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public java.lang.Object getStatus() {\n return status;\n }", "public WorkflowInstanceStatus getStatus() {\n return this.status;\n }", "public boolean status() {\n return status;\n }", "public String getTestExecutionStatus() {\n return this.testExecutionStatus;\n }", "public ResultStatus getExecutionProgressStatus();", "public String status() {\n return this.status;\n }", "public String status() {\n return this.status;\n }", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus () {\r\n return status;\r\n }", "public com.google.protobuf.ByteString getStatus() {\n return instance.getStatus();\n }", "public Integer getStatus() {\n\t\treturn status;\n\t}", "public Integer getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }" ]
[ "0.8398989", "0.77710426", "0.734005", "0.72282815", "0.7211983", "0.7115507", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.70758975", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7027985", "0.7021775", "0.70019984", "0.70019984", "0.70019984", "0.70019984", "0.70019984", "0.699469", "0.6994153", "0.6975217", "0.6975217", "0.69542426", "0.6910012", "0.68936294", "0.6885835", "0.6885835", "0.6885835", "0.6881167", "0.6873363", "0.6873363", "0.6873363", "0.6861243", "0.6861243", "0.6859329", "0.6859329", "0.6859329", "0.6859329", "0.6859329", "0.685848", "0.6846647", "0.6846647", "0.6846647", "0.6846647", "0.6846647", "0.68464094", "0.6838506", "0.6836742", "0.68356514", "0.68353164", "0.68346375", "0.68346375", "0.6830859", "0.6830859", "0.6830859", "0.6830859", "0.682105", "0.68140155", "0.6812318", "0.6812318", "0.6810309", "0.6810309", "0.68077594", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135" ]
0.0
-1
The status of the pipeline execution.
public String getPipelineExecutionStatus() { return this.pipelineExecutionStatus; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ExecutionStatus status() {\n return this.status;\n }", "public synchronized Status getStatus() {\n return execStatus;\n }", "public RunStatus status() {\n return this.status;\n }", "public int status() {\n return status;\n }", "public ProcessModelStatus getStatus() {\r\n return this.status;\r\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "@java.lang.Override\n public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "@Override\n\tpublic int getJobStatus() {\n\t\treturn model.getJobStatus();\n\t}", "public JenkinsStatus getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "@java.lang.Override\n public int getStatus() {\n return status_;\n }", "public long getStatus() {\r\n return status;\r\n }", "public int getStatus ()\n {\n return status;\n }", "public int getStatus ()\n {\n return status;\n }", "public WorkflowStatus getStatus() {\n\t\treturn status;\n\t}", "public boolean getStatus() {\n\t\treturn status;\n\t}", "public Status getStatus() {\n return result;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public int getStatus()\n {\n return status;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public String getJobStatus() {\n return this.jobStatus;\n }", "public String getJobStatus() {\n return this.jobStatus;\n }", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public Integer getJobStatus() {\n return jobStatus;\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public java.lang.Object getStatus() {\n return status;\n }", "public WorkflowInstanceStatus getStatus() {\n return this.status;\n }", "public boolean status() {\n return status;\n }", "public String getTestExecutionStatus() {\n return this.testExecutionStatus;\n }", "public ResultStatus getExecutionProgressStatus();", "public String status() {\n return this.status;\n }", "public String status() {\n return this.status;\n }", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus () {\r\n return status;\r\n }", "public com.google.protobuf.ByteString getStatus() {\n return instance.getStatus();\n }", "public Integer getStatus() {\n\t\treturn status;\n\t}", "public Integer getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }" ]
[ "0.77710426", "0.734005", "0.72282815", "0.7211983", "0.7115507", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.70758975", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7027985", "0.7021775", "0.70019984", "0.70019984", "0.70019984", "0.70019984", "0.70019984", "0.699469", "0.6994153", "0.6975217", "0.6975217", "0.69542426", "0.6910012", "0.68936294", "0.6885835", "0.6885835", "0.6885835", "0.6881167", "0.6873363", "0.6873363", "0.6873363", "0.6861243", "0.6861243", "0.6859329", "0.6859329", "0.6859329", "0.6859329", "0.6859329", "0.685848", "0.6846647", "0.6846647", "0.6846647", "0.6846647", "0.6846647", "0.68464094", "0.6838506", "0.6836742", "0.68356514", "0.68353164", "0.68346375", "0.68346375", "0.6830859", "0.6830859", "0.6830859", "0.6830859", "0.682105", "0.68140155", "0.6812318", "0.6812318", "0.6810309", "0.6810309", "0.68077594", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135" ]
0.8398989
0
The status of the pipeline execution.
public DescribePipelineExecutionResult withPipelineExecutionStatus(String pipelineExecutionStatus) { setPipelineExecutionStatus(pipelineExecutionStatus); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPipelineExecutionStatus() {\n return this.pipelineExecutionStatus;\n }", "public ExecutionStatus status() {\n return this.status;\n }", "public synchronized Status getStatus() {\n return execStatus;\n }", "public RunStatus status() {\n return this.status;\n }", "public int status() {\n return status;\n }", "public ProcessModelStatus getStatus() {\r\n return this.status;\r\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "@java.lang.Override\n public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "@Override\n\tpublic int getJobStatus() {\n\t\treturn model.getJobStatus();\n\t}", "public JenkinsStatus getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "@java.lang.Override\n public int getStatus() {\n return status_;\n }", "public long getStatus() {\r\n return status;\r\n }", "public int getStatus ()\n {\n return status;\n }", "public int getStatus ()\n {\n return status;\n }", "public WorkflowStatus getStatus() {\n\t\treturn status;\n\t}", "public boolean getStatus() {\n\t\treturn status;\n\t}", "public Status getStatus() {\n return result;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public int getStatus()\n {\n return status;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public String getJobStatus() {\n return this.jobStatus;\n }", "public String getJobStatus() {\n return this.jobStatus;\n }", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public Integer getJobStatus() {\n return jobStatus;\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public java.lang.Object getStatus() {\n return status;\n }", "public WorkflowInstanceStatus getStatus() {\n return this.status;\n }", "public boolean status() {\n return status;\n }", "public String getTestExecutionStatus() {\n return this.testExecutionStatus;\n }", "public ResultStatus getExecutionProgressStatus();", "public String status() {\n return this.status;\n }", "public String status() {\n return this.status;\n }", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus () {\r\n return status;\r\n }", "public com.google.protobuf.ByteString getStatus() {\n return instance.getStatus();\n }", "public Integer getStatus() {\n\t\treturn status;\n\t}", "public Integer getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }" ]
[ "0.8398989", "0.77710426", "0.734005", "0.72282815", "0.7211983", "0.7115507", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.70758975", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7027985", "0.7021775", "0.70019984", "0.70019984", "0.70019984", "0.70019984", "0.70019984", "0.699469", "0.6994153", "0.6975217", "0.6975217", "0.69542426", "0.6910012", "0.68936294", "0.6885835", "0.6885835", "0.6885835", "0.6881167", "0.6873363", "0.6873363", "0.6873363", "0.6861243", "0.6861243", "0.6859329", "0.6859329", "0.6859329", "0.6859329", "0.6859329", "0.685848", "0.6846647", "0.6846647", "0.6846647", "0.6846647", "0.6846647", "0.68464094", "0.6838506", "0.6836742", "0.68356514", "0.68353164", "0.68346375", "0.68346375", "0.6830859", "0.6830859", "0.6830859", "0.6830859", "0.682105", "0.68140155", "0.6812318", "0.6812318", "0.6810309", "0.6810309", "0.68077594", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135" ]
0.0
-1
The status of the pipeline execution.
public DescribePipelineExecutionResult withPipelineExecutionStatus(PipelineExecutionStatus pipelineExecutionStatus) { this.pipelineExecutionStatus = pipelineExecutionStatus.toString(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPipelineExecutionStatus() {\n return this.pipelineExecutionStatus;\n }", "public ExecutionStatus status() {\n return this.status;\n }", "public synchronized Status getStatus() {\n return execStatus;\n }", "public RunStatus status() {\n return this.status;\n }", "public int status() {\n return status;\n }", "public ProcessModelStatus getStatus() {\r\n return this.status;\r\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "@java.lang.Override\n public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "@Override\n\tpublic int getJobStatus() {\n\t\treturn model.getJobStatus();\n\t}", "public JenkinsStatus getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "@java.lang.Override\n public int getStatus() {\n return status_;\n }", "public long getStatus() {\r\n return status;\r\n }", "public int getStatus ()\n {\n return status;\n }", "public int getStatus ()\n {\n return status;\n }", "public WorkflowStatus getStatus() {\n\t\treturn status;\n\t}", "public boolean getStatus() {\n\t\treturn status;\n\t}", "public Status getStatus() {\n return result;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public int getStatus()\n {\n return status;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public String getJobStatus() {\n return this.jobStatus;\n }", "public String getJobStatus() {\n return this.jobStatus;\n }", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public Integer getJobStatus() {\n return jobStatus;\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public java.lang.Object getStatus() {\n return status;\n }", "public WorkflowInstanceStatus getStatus() {\n return this.status;\n }", "public boolean status() {\n return status;\n }", "public String getTestExecutionStatus() {\n return this.testExecutionStatus;\n }", "public ResultStatus getExecutionProgressStatus();", "public String status() {\n return this.status;\n }", "public String status() {\n return this.status;\n }", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus () {\r\n return status;\r\n }", "public com.google.protobuf.ByteString getStatus() {\n return instance.getStatus();\n }", "public Integer getStatus() {\n\t\treturn status;\n\t}", "public Integer getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }" ]
[ "0.8398989", "0.77710426", "0.734005", "0.72282815", "0.7211983", "0.7115507", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.7086817", "0.70758975", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7074991", "0.7027985", "0.7021775", "0.70019984", "0.70019984", "0.70019984", "0.70019984", "0.70019984", "0.699469", "0.6994153", "0.6975217", "0.6975217", "0.69542426", "0.6910012", "0.68936294", "0.6885835", "0.6885835", "0.6885835", "0.6881167", "0.6873363", "0.6873363", "0.6873363", "0.6861243", "0.6861243", "0.6859329", "0.6859329", "0.6859329", "0.6859329", "0.6859329", "0.685848", "0.6846647", "0.6846647", "0.6846647", "0.6846647", "0.6846647", "0.68464094", "0.6838506", "0.6836742", "0.68356514", "0.68353164", "0.68346375", "0.68346375", "0.6830859", "0.6830859", "0.6830859", "0.6830859", "0.682105", "0.68140155", "0.6812318", "0.6812318", "0.6810309", "0.6810309", "0.68077594", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135", "0.67928135" ]
0.0
-1
The description of the pipeline execution.
public void setPipelineExecutionDescription(String pipelineExecutionDescription) { this.pipelineExecutionDescription = pipelineExecutionDescription; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPipelineExecutionDescription() {\n return this.pipelineExecutionDescription;\n }", "public String getPipelineExecutionDisplayName() {\n return this.pipelineExecutionDisplayName;\n }", "public String getPipelineExecutionStatus() {\n return this.pipelineExecutionStatus;\n }", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "@Override\r\n\tpublic String getDescription() {\n\t\tString descr=\"Results\";\r\n\t\treturn descr;\r\n\t}", "public String getDescription() { return description; }", "public String getDescription() {\n return desc;\n }", "public String getDescription() {\n return desc;\n }", "public String getDisplayName() {\n return \"Aggregate build flow test results\";\n }", "public String getDescription() {\n return (desc);\n }", "public String getDescription()\r\n {\r\n return \"Approver of the task \"+taskName();\r\n }", "public String getDescription() {\r\n return DESCRIPTION;\r\n }", "@Override\r\n\tpublic String getDescription() {\n\t\treturn description;\r\n\t}", "public String getDescription () {\n return description;\n }", "public String getDescription() {\n return DESCRIPTION;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String description();", "public String getDescription()\r\n\t{\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\n return description;\n }", "@Override\r\n\tpublic String getDescription() {\n\t\treturn this.description;\r\n\t}", "public String getDescription()\n {\n return description;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getPipelineArn() != null)\n sb.append(\"PipelineArn: \").append(getPipelineArn()).append(\",\");\n if (getPipelineExecutionArn() != null)\n sb.append(\"PipelineExecutionArn: \").append(getPipelineExecutionArn()).append(\",\");\n if (getPipelineExecutionDisplayName() != null)\n sb.append(\"PipelineExecutionDisplayName: \").append(getPipelineExecutionDisplayName()).append(\",\");\n if (getPipelineExecutionStatus() != null)\n sb.append(\"PipelineExecutionStatus: \").append(getPipelineExecutionStatus()).append(\",\");\n if (getPipelineExecutionDescription() != null)\n sb.append(\"PipelineExecutionDescription: \").append(getPipelineExecutionDescription()).append(\",\");\n if (getPipelineExperimentConfig() != null)\n sb.append(\"PipelineExperimentConfig: \").append(getPipelineExperimentConfig()).append(\",\");\n if (getFailureReason() != null)\n sb.append(\"FailureReason: \").append(getFailureReason()).append(\",\");\n if (getCreationTime() != null)\n sb.append(\"CreationTime: \").append(getCreationTime()).append(\",\");\n if (getLastModifiedTime() != null)\n sb.append(\"LastModifiedTime: \").append(getLastModifiedTime()).append(\",\");\n if (getCreatedBy() != null)\n sb.append(\"CreatedBy: \").append(getCreatedBy()).append(\",\");\n if (getLastModifiedBy() != null)\n sb.append(\"LastModifiedBy: \").append(getLastModifiedBy()).append(\",\");\n if (getParallelismConfiguration() != null)\n sb.append(\"ParallelismConfiguration: \").append(getParallelismConfiguration()).append(\",\");\n if (getSelectiveExecutionConfig() != null)\n sb.append(\"SelectiveExecutionConfig: \").append(getSelectiveExecutionConfig());\n sb.append(\"}\");\n return sb.toString();\n }", "public String getDescription()\r\n {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }" ]
[ "0.8184553", "0.71914166", "0.6559728", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.63925767", "0.6389617", "0.6344155", "0.6344015", "0.633946", "0.63393164", "0.63324046", "0.63198656", "0.6316001", "0.6309689", "0.6297128", "0.62927157", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.62798524", "0.6276227", "0.6270894", "0.626954", "0.6261128", "0.6259354", "0.6256552", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.6248215", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237" ]
0.0
-1
The description of the pipeline execution.
public String getPipelineExecutionDescription() { return this.pipelineExecutionDescription; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPipelineExecutionDisplayName() {\n return this.pipelineExecutionDisplayName;\n }", "public String getPipelineExecutionStatus() {\n return this.pipelineExecutionStatus;\n }", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "@Override\r\n\tpublic String getDescription() {\n\t\tString descr=\"Results\";\r\n\t\treturn descr;\r\n\t}", "public String getDescription() { return description; }", "public String getDescription() {\n return desc;\n }", "public String getDescription() {\n return desc;\n }", "public String getDisplayName() {\n return \"Aggregate build flow test results\";\n }", "public String getDescription() {\n return (desc);\n }", "public String getDescription()\r\n {\r\n return \"Approver of the task \"+taskName();\r\n }", "public String getDescription() {\r\n return DESCRIPTION;\r\n }", "@Override\r\n\tpublic String getDescription() {\n\t\treturn description;\r\n\t}", "public String getDescription () {\n return description;\n }", "public String getDescription() {\n return DESCRIPTION;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String description();", "public String getDescription()\r\n\t{\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\n return description;\n }", "@Override\r\n\tpublic String getDescription() {\n\t\treturn this.description;\r\n\t}", "public String getDescription()\n {\n return description;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getPipelineArn() != null)\n sb.append(\"PipelineArn: \").append(getPipelineArn()).append(\",\");\n if (getPipelineExecutionArn() != null)\n sb.append(\"PipelineExecutionArn: \").append(getPipelineExecutionArn()).append(\",\");\n if (getPipelineExecutionDisplayName() != null)\n sb.append(\"PipelineExecutionDisplayName: \").append(getPipelineExecutionDisplayName()).append(\",\");\n if (getPipelineExecutionStatus() != null)\n sb.append(\"PipelineExecutionStatus: \").append(getPipelineExecutionStatus()).append(\",\");\n if (getPipelineExecutionDescription() != null)\n sb.append(\"PipelineExecutionDescription: \").append(getPipelineExecutionDescription()).append(\",\");\n if (getPipelineExperimentConfig() != null)\n sb.append(\"PipelineExperimentConfig: \").append(getPipelineExperimentConfig()).append(\",\");\n if (getFailureReason() != null)\n sb.append(\"FailureReason: \").append(getFailureReason()).append(\",\");\n if (getCreationTime() != null)\n sb.append(\"CreationTime: \").append(getCreationTime()).append(\",\");\n if (getLastModifiedTime() != null)\n sb.append(\"LastModifiedTime: \").append(getLastModifiedTime()).append(\",\");\n if (getCreatedBy() != null)\n sb.append(\"CreatedBy: \").append(getCreatedBy()).append(\",\");\n if (getLastModifiedBy() != null)\n sb.append(\"LastModifiedBy: \").append(getLastModifiedBy()).append(\",\");\n if (getParallelismConfiguration() != null)\n sb.append(\"ParallelismConfiguration: \").append(getParallelismConfiguration()).append(\",\");\n if (getSelectiveExecutionConfig() != null)\n sb.append(\"SelectiveExecutionConfig: \").append(getSelectiveExecutionConfig());\n sb.append(\"}\");\n return sb.toString();\n }", "public String getDescription()\r\n {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }" ]
[ "0.71914166", "0.6559728", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.63925767", "0.6389617", "0.6344155", "0.6344015", "0.633946", "0.63393164", "0.63324046", "0.63198656", "0.6316001", "0.6309689", "0.6297128", "0.62927157", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.62798524", "0.6276227", "0.6270894", "0.626954", "0.6261128", "0.6259354", "0.6256552", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.6248215", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237" ]
0.8184553
0
The description of the pipeline execution.
public DescribePipelineExecutionResult withPipelineExecutionDescription(String pipelineExecutionDescription) { setPipelineExecutionDescription(pipelineExecutionDescription); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPipelineExecutionDescription() {\n return this.pipelineExecutionDescription;\n }", "public String getPipelineExecutionDisplayName() {\n return this.pipelineExecutionDisplayName;\n }", "public String getPipelineExecutionStatus() {\n return this.pipelineExecutionStatus;\n }", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "@Override\r\n\tpublic String getDescription() {\n\t\tString descr=\"Results\";\r\n\t\treturn descr;\r\n\t}", "public String getDescription() { return description; }", "public String getDescription() {\n return desc;\n }", "public String getDescription() {\n return desc;\n }", "public String getDisplayName() {\n return \"Aggregate build flow test results\";\n }", "public String getDescription() {\n return (desc);\n }", "public String getDescription()\r\n {\r\n return \"Approver of the task \"+taskName();\r\n }", "public String getDescription() {\r\n return DESCRIPTION;\r\n }", "@Override\r\n\tpublic String getDescription() {\n\t\treturn description;\r\n\t}", "public String getDescription () {\n return description;\n }", "public String getDescription() {\n return DESCRIPTION;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String description();", "public String getDescription()\r\n\t{\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\n return description;\n }", "@Override\r\n\tpublic String getDescription() {\n\t\treturn this.description;\r\n\t}", "public String getDescription()\n {\n return description;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getPipelineArn() != null)\n sb.append(\"PipelineArn: \").append(getPipelineArn()).append(\",\");\n if (getPipelineExecutionArn() != null)\n sb.append(\"PipelineExecutionArn: \").append(getPipelineExecutionArn()).append(\",\");\n if (getPipelineExecutionDisplayName() != null)\n sb.append(\"PipelineExecutionDisplayName: \").append(getPipelineExecutionDisplayName()).append(\",\");\n if (getPipelineExecutionStatus() != null)\n sb.append(\"PipelineExecutionStatus: \").append(getPipelineExecutionStatus()).append(\",\");\n if (getPipelineExecutionDescription() != null)\n sb.append(\"PipelineExecutionDescription: \").append(getPipelineExecutionDescription()).append(\",\");\n if (getPipelineExperimentConfig() != null)\n sb.append(\"PipelineExperimentConfig: \").append(getPipelineExperimentConfig()).append(\",\");\n if (getFailureReason() != null)\n sb.append(\"FailureReason: \").append(getFailureReason()).append(\",\");\n if (getCreationTime() != null)\n sb.append(\"CreationTime: \").append(getCreationTime()).append(\",\");\n if (getLastModifiedTime() != null)\n sb.append(\"LastModifiedTime: \").append(getLastModifiedTime()).append(\",\");\n if (getCreatedBy() != null)\n sb.append(\"CreatedBy: \").append(getCreatedBy()).append(\",\");\n if (getLastModifiedBy() != null)\n sb.append(\"LastModifiedBy: \").append(getLastModifiedBy()).append(\",\");\n if (getParallelismConfiguration() != null)\n sb.append(\"ParallelismConfiguration: \").append(getParallelismConfiguration()).append(\",\");\n if (getSelectiveExecutionConfig() != null)\n sb.append(\"SelectiveExecutionConfig: \").append(getSelectiveExecutionConfig());\n sb.append(\"}\");\n return sb.toString();\n }", "public String getDescription()\r\n {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }" ]
[ "0.8184553", "0.71914166", "0.6559728", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.6401964", "0.63925767", "0.6389617", "0.6344155", "0.6344015", "0.633946", "0.63393164", "0.63324046", "0.63198656", "0.6316001", "0.6309689", "0.6297128", "0.62927157", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.6280921", "0.62798524", "0.6276227", "0.6270894", "0.626954", "0.6261128", "0.6259354", "0.6256552", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.62488943", "0.6248215", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237", "0.62477237" ]
0.0
-1
If the execution failed, a message describing why.
public void setFailureReason(String failureReason) { this.failureReason = failureReason; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String getMessage() {\n\t\treturn \"Failed\";\r\n\t}", "@Override\n\tprotected String generateMessage() {\n\t\treturn \"Script evaluation exception \" + generateSimpleMessage();\n\t}", "String failureReason();", "String getFailureMessage();", "public static String operationFailed() {\n return holder.format(\"operationFailed\");\n }", "public void sendError()\n {\n \tString resultText = Integer.toString(stdID);\n \tresultText += \": \";\n\t\tfor(int i = 0; i<registeredCourses.size();i++)\n\t\t{\n\t\t\tresultText += registeredCourses.get(i);\n\t\t\tresultText += \" \";\n\t\t}\n\t\tresultText += \"--\";\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(semesterNum);\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(0); \n\t\tresultText += \" \";\n\t\tprintResults.writeResult(resultText);\n \tSystem.exit(1);\n }", "@Override\n\tpublic void errorOnExecution(final String message) {\n\t\tafterExecution();\n\t}", "private void printFailCommandResult(CommandResult result) {\n String commandType = result.getCommand().getCommandType();\n switch (commandType) {\n case Command.COMMAND_DONE:\n switch (result.getResultDescription()) {\n case CommandResult.INVALID_NUMBER:\n printInvalidTaskNotExistedMessage();\n break;\n case CommandResult.INVALID_TASK_ALREADY_DONE:\n printInvalidTaskAlreadyDoneMessage(result);\n break;\n }\n break;\n case Command.COMMAND_ADD_TODO:\n case Command.COMMAND_ADD_DEADLINE:\n case Command.COMMAND_ADD_EVENT:\n printInvalidAddTaskMessage(result);\n break;\n case Command.COMMAND_DELETE:\n printInvalidTaskNotExistedMessage();\n break;\n case Command.COMMAND_FIND:\n printInvalidKeywordMessage();\n break;\n default:\n printInvalidCommandMessage();\n break;\n }\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Failed\";\r\n\t}", "public void printFailure() {\n //\n }", "void recordExecutionError() {\n hadExecutionError = true;\n }", "@Override\r\n\tpublic String getFailDescription() {\n\t\treturn null;\r\n\t}", "public ExecutionResult failed(Throwable throwable) {\n var duration = Duration.between(start(), Instant.now());\n return new ExecutionResult(1, duration, out.toString(), err.toString(), throwable);\n }", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "public String getMessage() {\n return super.getMessage()+\"\\n error code=\"+error_code+\" error value=\"+error_value; //$NON-NLS-1$ //$NON-NLS-2$\n }", "@Override\r\n\t\t\t\t\tpublic void failed(String message) {\n\r\n\t\t\t\t\t}", "@Override\n\tpublic String getMessage()\n\t{\n\t\treturn errMessage;\n\t}", "void showResultMoError(String e);", "java.lang.String getReason();", "java.lang.String getErrmsg();", "@Override\n\tpublic String getFailureMessage() {\n\t return null;\n\t}", "protected String failedMatcherMessage() {\n return \"FAILED!\";\n }", "void reportCompileFailed(final String message)\n {\n this.printMessage(message);\n }", "java.lang.String getErr();", "public Throwable getReason() { return err; }", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\texecutable.feedbackExecutionError();\r\n\t\t\t\t\t}", "public static void reportFailure(String message) {\n System.err.println(\"\\nData verification failed:\");\n System.err.println('\\t' + message);\n }", "public static int error () {\n System.out.println(\"ERROR\");\n hasError = true;\n return -1;\n }", "public void fail( String reason );", "java.lang.String getError();", "java.lang.String getError();", "java.lang.String getError();", "CommandExecutionException(String errorMessage) {\n super(errorMessage);\n }", "@Override\n\tpublic String getMessage() {\n\t\treturn \"ATTENZIONE: nel progetto Eccezioni Java si è verificato un errore!\";\n\t}", "public String getMessage() {\n return \"☹ OOPS!!! There isn't a task labeled \" + label;\n }", "String errorMessage();", "public String getFailureReason() {\n return this.failureReason;\n }", "public String getFailureReason() {\n return this.failureReason;\n }", "int getReturnCode();", "int getReturnCode();", "@Override\n public void onAnalysisFailed(IntegrationAnalyzer.FailReason failReason) {\n String message = failReason.getMessage();\n Log.d(TAG, \"Fail Reason message is\" + message);\n //..\n\n }", "protected String formatErrorMessage() throws SQLException {\n \tint errCode = SQLite.extendederrcode(getConnection().getSqliteDb());\r\n \tString message = SQLite.errmsg(getConnection().getSqliteDb());\r\n\t\tString s = StringUtil.format(\"Code:{0}\\n{1}\", errCode, message);\r\n\t\treturn s;\r\n\t}", "private void fail(String message) {\n\t\t// we're pretty dramatic here, if a resource isn't available\n\t\t// we dump the message and exit the game\n\t\tLogger.severe(message);\n\t\tSystem.exit(0);\n\t}", "protected String status() {\n if (!hasStarted() && !hasRun()) {\n return \" not run yet\";\n } else if (hasStarted() && !hasRun()) {\n return \" failed to run\";\n } else if (!hasStarted() && hasRun()) {\n return \" ILLEGAL STATE\";\n } else if (exceptionThrown == null) {\n return \" returned: \" + StringsPlume.toStringAndClass(retval);\n } else {\n return \" threw: \" + exceptionThrown;\n }\n }", "private static void printErrorMessage() {\n System.out.println(\"Oh no! It looks like I wasn't able to understand the arguments you passed in :(\"\n + \"\\nI can only handle arguments passed in a format like the following: 1/2 * 3/4\\n\");\n }", "private String getStatusMessage() {\n\t\treturn (m_isTestPassed == true) ? \" successfully...\" : \" with failures...\";\n\t}", "public String networkFailureMessage();", "public String error();", "public String toString() {\n return \"Error on line \" + lineNum + \": \" + errorMessage;\n }", "@Override\n public void onTestFailure(ITestResult tr) {\n StatusPrinter.printTestFailure(tr);\n }", "private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }", "String getMessage();", "String getMessage();", "String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public void onTestFailure(ITestResult result) {\n\t\tSystem.out.println(result.getName()+\"**********Test Fail.............This is result.getName\");\r\n\t\t\r\n\t}", "@Override\n public String getAddionalInformationMessage()\n {\n StringBuilder b = new StringBuilder();\n for(String c : failedFilepaths.toArray(new String[]{}))\n {\n b.append(c).append(\"\\n\");\n }\n return b.toString();\n }", "public String getReasonPhrase() {\n return toString();\n }", "public void displayGraphErrMsg(String message) {\r\n \t\t// per ora faccio printare nell'output, assolutamente provvisorio.\r\n \t\tSystem.out.println(\"message = \" + message);\r\n \t}", "public void onFailure(Throwable caught) {\n\t\t\t\trpcResult = \"Remote Procedure Call - Failure\\n\" \n\t\t\t\t\t\t\t+ \"Error al obtener lista de items.\";\n\t\t\t\tmessagesLabel.setStyleName(\"messageErrorLabel\");\n\t\t\t\tmessagesLabel.setText(rpcResult);\n\t\t\t\tWindow.alert(rpcResult);\n\t\t\t\t\n\t\t\t}", "@Then(\"^Mostrara mensaje de error$\")\n\tpublic void Mostrara_mensaje_de_error() throws Throwable {\n\t System.out.println(\"El email o la contrase�a es erronea\");\n\t assert(true);\n\t}", "@Override\n public final String toString() {\n return ErrorMessages.invalidOperation(getMessage());\n }", "public void onFailure(Throwable caught) {\n\t\t\t\trpcResult = \"Remote Procedure Call - Failure\\n\" \n\t\t\t\t\t\t\t+ \"Error al guardar item.\";\n\t\t\t\tmessagesLabel.setStyleName(\"messageErrorLabel\");\n\t\t\t\tmessagesLabel.setText(rpcResult);\n\t\t\t\tWindow.alert(rpcResult);\n\t\t\t}", "@Override\n \t\t\tpublic void onFailure(Throwable arg0) {\n \t\t\t\tSystem.err.println(\"***failure:\" + arg0);\n \n \t\t\t}", "@Test\n public void CloudScriptErrorServer()\n {\n PlayFabServerModels.ExecuteCloudScriptServerRequest errRequest = new PlayFabServerModels.ExecuteCloudScriptServerRequest();\n errRequest.FunctionName = \"throwError\";\n errRequest.PlayFabId = playFabId;\n PlayFabResult<PlayFabServerModels.ExecuteCloudScriptResult> errResult = PlayFabServerAPI.ExecuteCloudScript(errRequest);\n\n String errorMessage = CompileErrorsFromResult(errResult);\n assertNotNull(errorMessage, errResult.Error);\n\n }", "@Override\n public void taskErrorMessage(Object result) {\n\n }", "public String getExceptionMessage() {\n\t\treturn \"Error while publishing JSON reports. Please contact system administrator or try again later!\";\n\t}", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();" ]
[ "0.6760508", "0.6706836", "0.6618063", "0.6395756", "0.6333754", "0.6199209", "0.6161941", "0.61458236", "0.6104516", "0.610247", "0.60735655", "0.6071856", "0.6068457", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.6022296", "0.59932333", "0.5961021", "0.5959667", "0.5955822", "0.5948502", "0.59297895", "0.59180266", "0.5913576", "0.5908157", "0.58952856", "0.5879777", "0.5877559", "0.5870024", "0.5867774", "0.58611196", "0.58611196", "0.58611196", "0.5858672", "0.5858029", "0.58571255", "0.58415353", "0.58271056", "0.58271056", "0.58252597", "0.58252597", "0.580977", "0.5787767", "0.578294", "0.5771466", "0.5766592", "0.57529664", "0.5729272", "0.5720389", "0.5701311", "0.57003987", "0.56805074", "0.5673282", "0.5673282", "0.5673282", "0.56621766", "0.56621766", "0.56621766", "0.56621766", "0.56621766", "0.56621766", "0.56621766", "0.56282544", "0.56266636", "0.5625505", "0.562382", "0.56186545", "0.5611167", "0.56098044", "0.5609767", "0.5609181", "0.56073695", "0.5605216", "0.56047404", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224" ]
0.0
-1
If the execution failed, a message describing why.
public String getFailureReason() { return this.failureReason; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String getMessage() {\n\t\treturn \"Failed\";\r\n\t}", "@Override\n\tprotected String generateMessage() {\n\t\treturn \"Script evaluation exception \" + generateSimpleMessage();\n\t}", "String failureReason();", "String getFailureMessage();", "public static String operationFailed() {\n return holder.format(\"operationFailed\");\n }", "public void sendError()\n {\n \tString resultText = Integer.toString(stdID);\n \tresultText += \": \";\n\t\tfor(int i = 0; i<registeredCourses.size();i++)\n\t\t{\n\t\t\tresultText += registeredCourses.get(i);\n\t\t\tresultText += \" \";\n\t\t}\n\t\tresultText += \"--\";\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(semesterNum);\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(0); \n\t\tresultText += \" \";\n\t\tprintResults.writeResult(resultText);\n \tSystem.exit(1);\n }", "@Override\n\tpublic void errorOnExecution(final String message) {\n\t\tafterExecution();\n\t}", "private void printFailCommandResult(CommandResult result) {\n String commandType = result.getCommand().getCommandType();\n switch (commandType) {\n case Command.COMMAND_DONE:\n switch (result.getResultDescription()) {\n case CommandResult.INVALID_NUMBER:\n printInvalidTaskNotExistedMessage();\n break;\n case CommandResult.INVALID_TASK_ALREADY_DONE:\n printInvalidTaskAlreadyDoneMessage(result);\n break;\n }\n break;\n case Command.COMMAND_ADD_TODO:\n case Command.COMMAND_ADD_DEADLINE:\n case Command.COMMAND_ADD_EVENT:\n printInvalidAddTaskMessage(result);\n break;\n case Command.COMMAND_DELETE:\n printInvalidTaskNotExistedMessage();\n break;\n case Command.COMMAND_FIND:\n printInvalidKeywordMessage();\n break;\n default:\n printInvalidCommandMessage();\n break;\n }\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Failed\";\r\n\t}", "public void printFailure() {\n //\n }", "void recordExecutionError() {\n hadExecutionError = true;\n }", "@Override\r\n\tpublic String getFailDescription() {\n\t\treturn null;\r\n\t}", "public ExecutionResult failed(Throwable throwable) {\n var duration = Duration.between(start(), Instant.now());\n return new ExecutionResult(1, duration, out.toString(), err.toString(), throwable);\n }", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "public String getMessage() {\n return super.getMessage()+\"\\n error code=\"+error_code+\" error value=\"+error_value; //$NON-NLS-1$ //$NON-NLS-2$\n }", "@Override\r\n\t\t\t\t\tpublic void failed(String message) {\n\r\n\t\t\t\t\t}", "@Override\n\tpublic String getMessage()\n\t{\n\t\treturn errMessage;\n\t}", "void showResultMoError(String e);", "java.lang.String getReason();", "java.lang.String getErrmsg();", "@Override\n\tpublic String getFailureMessage() {\n\t return null;\n\t}", "protected String failedMatcherMessage() {\n return \"FAILED!\";\n }", "void reportCompileFailed(final String message)\n {\n this.printMessage(message);\n }", "java.lang.String getErr();", "public Throwable getReason() { return err; }", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\texecutable.feedbackExecutionError();\r\n\t\t\t\t\t}", "public static void reportFailure(String message) {\n System.err.println(\"\\nData verification failed:\");\n System.err.println('\\t' + message);\n }", "public static int error () {\n System.out.println(\"ERROR\");\n hasError = true;\n return -1;\n }", "public void fail( String reason );", "java.lang.String getError();", "java.lang.String getError();", "java.lang.String getError();", "CommandExecutionException(String errorMessage) {\n super(errorMessage);\n }", "@Override\n\tpublic String getMessage() {\n\t\treturn \"ATTENZIONE: nel progetto Eccezioni Java si è verificato un errore!\";\n\t}", "public String getMessage() {\n return \"☹ OOPS!!! There isn't a task labeled \" + label;\n }", "String errorMessage();", "int getReturnCode();", "int getReturnCode();", "@Override\n public void onAnalysisFailed(IntegrationAnalyzer.FailReason failReason) {\n String message = failReason.getMessage();\n Log.d(TAG, \"Fail Reason message is\" + message);\n //..\n\n }", "protected String formatErrorMessage() throws SQLException {\n \tint errCode = SQLite.extendederrcode(getConnection().getSqliteDb());\r\n \tString message = SQLite.errmsg(getConnection().getSqliteDb());\r\n\t\tString s = StringUtil.format(\"Code:{0}\\n{1}\", errCode, message);\r\n\t\treturn s;\r\n\t}", "private void fail(String message) {\n\t\t// we're pretty dramatic here, if a resource isn't available\n\t\t// we dump the message and exit the game\n\t\tLogger.severe(message);\n\t\tSystem.exit(0);\n\t}", "protected String status() {\n if (!hasStarted() && !hasRun()) {\n return \" not run yet\";\n } else if (hasStarted() && !hasRun()) {\n return \" failed to run\";\n } else if (!hasStarted() && hasRun()) {\n return \" ILLEGAL STATE\";\n } else if (exceptionThrown == null) {\n return \" returned: \" + StringsPlume.toStringAndClass(retval);\n } else {\n return \" threw: \" + exceptionThrown;\n }\n }", "private static void printErrorMessage() {\n System.out.println(\"Oh no! It looks like I wasn't able to understand the arguments you passed in :(\"\n + \"\\nI can only handle arguments passed in a format like the following: 1/2 * 3/4\\n\");\n }", "private String getStatusMessage() {\n\t\treturn (m_isTestPassed == true) ? \" successfully...\" : \" with failures...\";\n\t}", "public String networkFailureMessage();", "public String error();", "public String toString() {\n return \"Error on line \" + lineNum + \": \" + errorMessage;\n }", "@Override\n public void onTestFailure(ITestResult tr) {\n StatusPrinter.printTestFailure(tr);\n }", "private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }", "String getMessage();", "String getMessage();", "String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public void onTestFailure(ITestResult result) {\n\t\tSystem.out.println(result.getName()+\"**********Test Fail.............This is result.getName\");\r\n\t\t\r\n\t}", "@Override\n public String getAddionalInformationMessage()\n {\n StringBuilder b = new StringBuilder();\n for(String c : failedFilepaths.toArray(new String[]{}))\n {\n b.append(c).append(\"\\n\");\n }\n return b.toString();\n }", "public String getReasonPhrase() {\n return toString();\n }", "public void displayGraphErrMsg(String message) {\r\n \t\t// per ora faccio printare nell'output, assolutamente provvisorio.\r\n \t\tSystem.out.println(\"message = \" + message);\r\n \t}", "public void onFailure(Throwable caught) {\n\t\t\t\trpcResult = \"Remote Procedure Call - Failure\\n\" \n\t\t\t\t\t\t\t+ \"Error al obtener lista de items.\";\n\t\t\t\tmessagesLabel.setStyleName(\"messageErrorLabel\");\n\t\t\t\tmessagesLabel.setText(rpcResult);\n\t\t\t\tWindow.alert(rpcResult);\n\t\t\t\t\n\t\t\t}", "@Then(\"^Mostrara mensaje de error$\")\n\tpublic void Mostrara_mensaje_de_error() throws Throwable {\n\t System.out.println(\"El email o la contrase�a es erronea\");\n\t assert(true);\n\t}", "@Override\n public final String toString() {\n return ErrorMessages.invalidOperation(getMessage());\n }", "public void onFailure(Throwable caught) {\n\t\t\t\trpcResult = \"Remote Procedure Call - Failure\\n\" \n\t\t\t\t\t\t\t+ \"Error al guardar item.\";\n\t\t\t\tmessagesLabel.setStyleName(\"messageErrorLabel\");\n\t\t\t\tmessagesLabel.setText(rpcResult);\n\t\t\t\tWindow.alert(rpcResult);\n\t\t\t}", "@Override\n \t\t\tpublic void onFailure(Throwable arg0) {\n \t\t\t\tSystem.err.println(\"***failure:\" + arg0);\n \n \t\t\t}", "@Test\n public void CloudScriptErrorServer()\n {\n PlayFabServerModels.ExecuteCloudScriptServerRequest errRequest = new PlayFabServerModels.ExecuteCloudScriptServerRequest();\n errRequest.FunctionName = \"throwError\";\n errRequest.PlayFabId = playFabId;\n PlayFabResult<PlayFabServerModels.ExecuteCloudScriptResult> errResult = PlayFabServerAPI.ExecuteCloudScript(errRequest);\n\n String errorMessage = CompileErrorsFromResult(errResult);\n assertNotNull(errorMessage, errResult.Error);\n\n }", "@Override\n public void taskErrorMessage(Object result) {\n\n }", "public String getExceptionMessage() {\n\t\treturn \"Error while publishing JSON reports. Please contact system administrator or try again later!\";\n\t}", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();" ]
[ "0.6760508", "0.6706836", "0.6618063", "0.6395756", "0.6333754", "0.6199209", "0.6161941", "0.61458236", "0.6104516", "0.610247", "0.60735655", "0.6071856", "0.6068457", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.6022296", "0.59932333", "0.5961021", "0.5959667", "0.5955822", "0.5948502", "0.59297895", "0.59180266", "0.5913576", "0.5908157", "0.58952856", "0.5879777", "0.5877559", "0.5870024", "0.5867774", "0.58611196", "0.58611196", "0.58611196", "0.5858672", "0.5858029", "0.58571255", "0.58415353", "0.58252597", "0.58252597", "0.580977", "0.5787767", "0.578294", "0.5771466", "0.5766592", "0.57529664", "0.5729272", "0.5720389", "0.5701311", "0.57003987", "0.56805074", "0.5673282", "0.5673282", "0.5673282", "0.56621766", "0.56621766", "0.56621766", "0.56621766", "0.56621766", "0.56621766", "0.56621766", "0.56282544", "0.56266636", "0.5625505", "0.562382", "0.56186545", "0.5611167", "0.56098044", "0.5609767", "0.5609181", "0.56073695", "0.5605216", "0.56047404", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224" ]
0.58271056
53
If the execution failed, a message describing why.
public DescribePipelineExecutionResult withFailureReason(String failureReason) { setFailureReason(failureReason); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String getMessage() {\n\t\treturn \"Failed\";\r\n\t}", "@Override\n\tprotected String generateMessage() {\n\t\treturn \"Script evaluation exception \" + generateSimpleMessage();\n\t}", "String failureReason();", "String getFailureMessage();", "public static String operationFailed() {\n return holder.format(\"operationFailed\");\n }", "public void sendError()\n {\n \tString resultText = Integer.toString(stdID);\n \tresultText += \": \";\n\t\tfor(int i = 0; i<registeredCourses.size();i++)\n\t\t{\n\t\t\tresultText += registeredCourses.get(i);\n\t\t\tresultText += \" \";\n\t\t}\n\t\tresultText += \"--\";\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(semesterNum);\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(0); \n\t\tresultText += \" \";\n\t\tprintResults.writeResult(resultText);\n \tSystem.exit(1);\n }", "@Override\n\tpublic void errorOnExecution(final String message) {\n\t\tafterExecution();\n\t}", "private void printFailCommandResult(CommandResult result) {\n String commandType = result.getCommand().getCommandType();\n switch (commandType) {\n case Command.COMMAND_DONE:\n switch (result.getResultDescription()) {\n case CommandResult.INVALID_NUMBER:\n printInvalidTaskNotExistedMessage();\n break;\n case CommandResult.INVALID_TASK_ALREADY_DONE:\n printInvalidTaskAlreadyDoneMessage(result);\n break;\n }\n break;\n case Command.COMMAND_ADD_TODO:\n case Command.COMMAND_ADD_DEADLINE:\n case Command.COMMAND_ADD_EVENT:\n printInvalidAddTaskMessage(result);\n break;\n case Command.COMMAND_DELETE:\n printInvalidTaskNotExistedMessage();\n break;\n case Command.COMMAND_FIND:\n printInvalidKeywordMessage();\n break;\n default:\n printInvalidCommandMessage();\n break;\n }\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Failed\";\r\n\t}", "public void printFailure() {\n //\n }", "void recordExecutionError() {\n hadExecutionError = true;\n }", "@Override\r\n\tpublic String getFailDescription() {\n\t\treturn null;\r\n\t}", "public ExecutionResult failed(Throwable throwable) {\n var duration = Duration.between(start(), Instant.now());\n return new ExecutionResult(1, duration, out.toString(), err.toString(), throwable);\n }", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "public String getMessage() {\n return super.getMessage()+\"\\n error code=\"+error_code+\" error value=\"+error_value; //$NON-NLS-1$ //$NON-NLS-2$\n }", "@Override\r\n\t\t\t\t\tpublic void failed(String message) {\n\r\n\t\t\t\t\t}", "@Override\n\tpublic String getMessage()\n\t{\n\t\treturn errMessage;\n\t}", "void showResultMoError(String e);", "java.lang.String getReason();", "java.lang.String getErrmsg();", "@Override\n\tpublic String getFailureMessage() {\n\t return null;\n\t}", "protected String failedMatcherMessage() {\n return \"FAILED!\";\n }", "void reportCompileFailed(final String message)\n {\n this.printMessage(message);\n }", "java.lang.String getErr();", "public Throwable getReason() { return err; }", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\texecutable.feedbackExecutionError();\r\n\t\t\t\t\t}", "public static void reportFailure(String message) {\n System.err.println(\"\\nData verification failed:\");\n System.err.println('\\t' + message);\n }", "public static int error () {\n System.out.println(\"ERROR\");\n hasError = true;\n return -1;\n }", "public void fail( String reason );", "java.lang.String getError();", "java.lang.String getError();", "java.lang.String getError();", "CommandExecutionException(String errorMessage) {\n super(errorMessage);\n }", "@Override\n\tpublic String getMessage() {\n\t\treturn \"ATTENZIONE: nel progetto Eccezioni Java si è verificato un errore!\";\n\t}", "public String getMessage() {\n return \"☹ OOPS!!! There isn't a task labeled \" + label;\n }", "String errorMessage();", "public String getFailureReason() {\n return this.failureReason;\n }", "public String getFailureReason() {\n return this.failureReason;\n }", "int getReturnCode();", "int getReturnCode();", "@Override\n public void onAnalysisFailed(IntegrationAnalyzer.FailReason failReason) {\n String message = failReason.getMessage();\n Log.d(TAG, \"Fail Reason message is\" + message);\n //..\n\n }", "protected String formatErrorMessage() throws SQLException {\n \tint errCode = SQLite.extendederrcode(getConnection().getSqliteDb());\r\n \tString message = SQLite.errmsg(getConnection().getSqliteDb());\r\n\t\tString s = StringUtil.format(\"Code:{0}\\n{1}\", errCode, message);\r\n\t\treturn s;\r\n\t}", "private void fail(String message) {\n\t\t// we're pretty dramatic here, if a resource isn't available\n\t\t// we dump the message and exit the game\n\t\tLogger.severe(message);\n\t\tSystem.exit(0);\n\t}", "protected String status() {\n if (!hasStarted() && !hasRun()) {\n return \" not run yet\";\n } else if (hasStarted() && !hasRun()) {\n return \" failed to run\";\n } else if (!hasStarted() && hasRun()) {\n return \" ILLEGAL STATE\";\n } else if (exceptionThrown == null) {\n return \" returned: \" + StringsPlume.toStringAndClass(retval);\n } else {\n return \" threw: \" + exceptionThrown;\n }\n }", "private static void printErrorMessage() {\n System.out.println(\"Oh no! It looks like I wasn't able to understand the arguments you passed in :(\"\n + \"\\nI can only handle arguments passed in a format like the following: 1/2 * 3/4\\n\");\n }", "private String getStatusMessage() {\n\t\treturn (m_isTestPassed == true) ? \" successfully...\" : \" with failures...\";\n\t}", "public String networkFailureMessage();", "public String error();", "public String toString() {\n return \"Error on line \" + lineNum + \": \" + errorMessage;\n }", "@Override\n public void onTestFailure(ITestResult tr) {\n StatusPrinter.printTestFailure(tr);\n }", "private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }", "String getMessage();", "String getMessage();", "String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public void onTestFailure(ITestResult result) {\n\t\tSystem.out.println(result.getName()+\"**********Test Fail.............This is result.getName\");\r\n\t\t\r\n\t}", "@Override\n public String getAddionalInformationMessage()\n {\n StringBuilder b = new StringBuilder();\n for(String c : failedFilepaths.toArray(new String[]{}))\n {\n b.append(c).append(\"\\n\");\n }\n return b.toString();\n }", "public String getReasonPhrase() {\n return toString();\n }", "public void displayGraphErrMsg(String message) {\r\n \t\t// per ora faccio printare nell'output, assolutamente provvisorio.\r\n \t\tSystem.out.println(\"message = \" + message);\r\n \t}", "public void onFailure(Throwable caught) {\n\t\t\t\trpcResult = \"Remote Procedure Call - Failure\\n\" \n\t\t\t\t\t\t\t+ \"Error al obtener lista de items.\";\n\t\t\t\tmessagesLabel.setStyleName(\"messageErrorLabel\");\n\t\t\t\tmessagesLabel.setText(rpcResult);\n\t\t\t\tWindow.alert(rpcResult);\n\t\t\t\t\n\t\t\t}", "@Then(\"^Mostrara mensaje de error$\")\n\tpublic void Mostrara_mensaje_de_error() throws Throwable {\n\t System.out.println(\"El email o la contrase�a es erronea\");\n\t assert(true);\n\t}", "@Override\n public final String toString() {\n return ErrorMessages.invalidOperation(getMessage());\n }", "public void onFailure(Throwable caught) {\n\t\t\t\trpcResult = \"Remote Procedure Call - Failure\\n\" \n\t\t\t\t\t\t\t+ \"Error al guardar item.\";\n\t\t\t\tmessagesLabel.setStyleName(\"messageErrorLabel\");\n\t\t\t\tmessagesLabel.setText(rpcResult);\n\t\t\t\tWindow.alert(rpcResult);\n\t\t\t}", "@Override\n \t\t\tpublic void onFailure(Throwable arg0) {\n \t\t\t\tSystem.err.println(\"***failure:\" + arg0);\n \n \t\t\t}", "@Test\n public void CloudScriptErrorServer()\n {\n PlayFabServerModels.ExecuteCloudScriptServerRequest errRequest = new PlayFabServerModels.ExecuteCloudScriptServerRequest();\n errRequest.FunctionName = \"throwError\";\n errRequest.PlayFabId = playFabId;\n PlayFabResult<PlayFabServerModels.ExecuteCloudScriptResult> errResult = PlayFabServerAPI.ExecuteCloudScript(errRequest);\n\n String errorMessage = CompileErrorsFromResult(errResult);\n assertNotNull(errorMessage, errResult.Error);\n\n }", "@Override\n public void taskErrorMessage(Object result) {\n\n }", "public String getExceptionMessage() {\n\t\treturn \"Error while publishing JSON reports. Please contact system administrator or try again later!\";\n\t}", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();" ]
[ "0.6760508", "0.6706836", "0.6618063", "0.6395756", "0.6333754", "0.6199209", "0.6161941", "0.61458236", "0.6104516", "0.610247", "0.60735655", "0.6071856", "0.6068457", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.60472405", "0.6022296", "0.59932333", "0.5961021", "0.5959667", "0.5955822", "0.5948502", "0.59297895", "0.59180266", "0.5913576", "0.5908157", "0.58952856", "0.5879777", "0.5877559", "0.5870024", "0.5867774", "0.58611196", "0.58611196", "0.58611196", "0.5858672", "0.5858029", "0.58571255", "0.58415353", "0.58271056", "0.58271056", "0.58252597", "0.58252597", "0.580977", "0.5787767", "0.578294", "0.5771466", "0.5766592", "0.57529664", "0.5729272", "0.5720389", "0.5701311", "0.57003987", "0.56805074", "0.5673282", "0.5673282", "0.5673282", "0.56621766", "0.56621766", "0.56621766", "0.56621766", "0.56621766", "0.56621766", "0.56621766", "0.56282544", "0.56266636", "0.5625505", "0.562382", "0.56186545", "0.5611167", "0.56098044", "0.5609767", "0.5609181", "0.56073695", "0.5605216", "0.56047404", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224", "0.55906224" ]
0.0
-1
The time when the pipeline execution was created.
public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long timeOfCreation() {\n\t\treturn timeOfCreation ;\n\t}", "public Date getTimeCreate() {\n return timeCreate;\n }", "public int getCreateTime() {\n return createTime_;\n }", "public long getCreateTime() {\n return createTime_;\n }", "public int getCreatedTime() {\n return instance.getCreatedTime();\n }", "public int getCreatedTime() {\n return createdTime_;\n }", "public Long getTimeCreated() {\r\n\t\treturn timeCreated;\r\n\t}", "public int getCreateTime() {\n return createTime_;\n }", "public long getCreateTime() {\n return createTime_;\n }", "String timeCreated();", "int getCreateTime();", "public OffsetDateTime timeCreated() {\n return this.timeCreated;\n }", "public String getCreateTime() {\r\n return createTime;\r\n }", "public BundleTimestamp creation_ts() {\r\n\t\treturn creation_ts_;\r\n\t}", "public long getCreatedTime() {\n return createdTime;\n }", "public long getCreateTime() {\n return this.createTime;\n }", "public Date getCreatedTime() {\n return createdTime;\n }", "public Date getCreatedTime() {\n return createdTime;\n }", "public Date getCreatedTime() {\n return createdTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateStartTime() {\n return createStartTime;\n }", "long getCreateTime();", "long getCreateTime();", "public String getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public String getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public String getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public String getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public DateTime creationTime() {\n return this.creationTime;\n }", "public long getExecutionTime() {\n return executionTime_;\n }", "public String getCreatetime() {\r\n return createtime;\r\n }", "public Instant getCreationTime() {\n return creation;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return this.createTime;\n }", "public Date getCreateTime() {\n return this.createTime;\n }", "public Date getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public Date getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public Timestamp getCreateTime() {\n return createTime;\n }", "public Long getCreatetime() {\n return createtime;\n }", "public Date getCreateTime() {\n\t\treturn createTime;\n\t}", "public Date getCreateTime() {\n\t\treturn createTime;\n\t}", "public Date getCreateTime() {\n\t\treturn createTime;\n\t}", "public Date getCreateTime() {\n\t\treturn createTime;\n\t}", "public Date getCreateTime() {\n\t\treturn createTime;\n\t}", "public String startTime(){\r\n\t\treturn startTime;\r\n\t}", "public Date getCreateTime() {\n\t\treturn this.createTime;\n\t}", "Instant getCreated();", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }" ]
[ "0.75280964", "0.7077174", "0.70218223", "0.7005247", "0.7001571", "0.6980327", "0.6959706", "0.6955473", "0.6940148", "0.6862823", "0.68538016", "0.68112516", "0.68064135", "0.67957795", "0.67872244", "0.67770547", "0.67712814", "0.67712814", "0.67712814", "0.6769689", "0.6769689", "0.6769689", "0.6769689", "0.6769689", "0.67671347", "0.6755962", "0.6755962", "0.6746011", "0.6746011", "0.6746011", "0.6746011", "0.674491", "0.674491", "0.674491", "0.674491", "0.674491", "0.674491", "0.674241", "0.67411053", "0.6734663", "0.6725843", "0.6725682", "0.67243546", "0.67243546", "0.6721375", "0.6721375", "0.6717776", "0.6715332", "0.6713404", "0.6713404", "0.6713404", "0.6713404", "0.6713404", "0.6711856", "0.67116165", "0.67086697", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757" ]
0.0
-1
The time when the pipeline execution was created.
public java.util.Date getCreationTime() { return this.creationTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long timeOfCreation() {\n\t\treturn timeOfCreation ;\n\t}", "public Date getTimeCreate() {\n return timeCreate;\n }", "public int getCreateTime() {\n return createTime_;\n }", "public long getCreateTime() {\n return createTime_;\n }", "public int getCreatedTime() {\n return instance.getCreatedTime();\n }", "public int getCreatedTime() {\n return createdTime_;\n }", "public Long getTimeCreated() {\r\n\t\treturn timeCreated;\r\n\t}", "public int getCreateTime() {\n return createTime_;\n }", "public long getCreateTime() {\n return createTime_;\n }", "String timeCreated();", "int getCreateTime();", "public OffsetDateTime timeCreated() {\n return this.timeCreated;\n }", "public String getCreateTime() {\r\n return createTime;\r\n }", "public BundleTimestamp creation_ts() {\r\n\t\treturn creation_ts_;\r\n\t}", "public long getCreatedTime() {\n return createdTime;\n }", "public long getCreateTime() {\n return this.createTime;\n }", "public Date getCreatedTime() {\n return createdTime;\n }", "public Date getCreatedTime() {\n return createdTime;\n }", "public Date getCreatedTime() {\n return createdTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateStartTime() {\n return createStartTime;\n }", "long getCreateTime();", "long getCreateTime();", "public String getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public String getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public String getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public String getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public DateTime creationTime() {\n return this.creationTime;\n }", "public long getExecutionTime() {\n return executionTime_;\n }", "public String getCreatetime() {\r\n return createtime;\r\n }", "public Instant getCreationTime() {\n return creation;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return this.createTime;\n }", "public Date getCreateTime() {\n return this.createTime;\n }", "public Date getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public Date getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public Timestamp getCreateTime() {\n return createTime;\n }", "public Long getCreatetime() {\n return createtime;\n }", "public Date getCreateTime() {\n\t\treturn createTime;\n\t}", "public Date getCreateTime() {\n\t\treturn createTime;\n\t}", "public Date getCreateTime() {\n\t\treturn createTime;\n\t}", "public Date getCreateTime() {\n\t\treturn createTime;\n\t}", "public Date getCreateTime() {\n\t\treturn createTime;\n\t}", "public String startTime(){\r\n\t\treturn startTime;\r\n\t}", "public Date getCreateTime() {\n\t\treturn this.createTime;\n\t}", "Instant getCreated();", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }" ]
[ "0.75280964", "0.7077174", "0.70218223", "0.7005247", "0.7001571", "0.6980327", "0.6959706", "0.6955473", "0.6940148", "0.6862823", "0.68538016", "0.68112516", "0.68064135", "0.67957795", "0.67872244", "0.67770547", "0.67712814", "0.67712814", "0.67712814", "0.6769689", "0.6769689", "0.6769689", "0.6769689", "0.6769689", "0.67671347", "0.6755962", "0.6755962", "0.6746011", "0.6746011", "0.6746011", "0.6746011", "0.674491", "0.674491", "0.674491", "0.674491", "0.674491", "0.674491", "0.674241", "0.67411053", "0.6734663", "0.6725843", "0.6725682", "0.67243546", "0.67243546", "0.6721375", "0.6721375", "0.6717776", "0.6715332", "0.6713404", "0.6713404", "0.6713404", "0.6713404", "0.6713404", "0.6711856", "0.67116165", "0.67086697", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757" ]
0.0
-1
The time when the pipeline execution was created.
public DescribePipelineExecutionResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long timeOfCreation() {\n\t\treturn timeOfCreation ;\n\t}", "public Date getTimeCreate() {\n return timeCreate;\n }", "public int getCreateTime() {\n return createTime_;\n }", "public long getCreateTime() {\n return createTime_;\n }", "public int getCreatedTime() {\n return instance.getCreatedTime();\n }", "public int getCreatedTime() {\n return createdTime_;\n }", "public Long getTimeCreated() {\r\n\t\treturn timeCreated;\r\n\t}", "public int getCreateTime() {\n return createTime_;\n }", "public long getCreateTime() {\n return createTime_;\n }", "String timeCreated();", "int getCreateTime();", "public OffsetDateTime timeCreated() {\n return this.timeCreated;\n }", "public String getCreateTime() {\r\n return createTime;\r\n }", "public BundleTimestamp creation_ts() {\r\n\t\treturn creation_ts_;\r\n\t}", "public long getCreatedTime() {\n return createdTime;\n }", "public long getCreateTime() {\n return this.createTime;\n }", "public Date getCreatedTime() {\n return createdTime;\n }", "public Date getCreatedTime() {\n return createdTime;\n }", "public Date getCreatedTime() {\n return createdTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateStartTime() {\n return createStartTime;\n }", "long getCreateTime();", "long getCreateTime();", "public String getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public String getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public String getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public String getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public DateTime creationTime() {\n return this.creationTime;\n }", "public long getExecutionTime() {\n return executionTime_;\n }", "public String getCreatetime() {\r\n return createtime;\r\n }", "public Instant getCreationTime() {\n return creation;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return this.createTime;\n }", "public Date getCreateTime() {\n return this.createTime;\n }", "public Date getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public Date getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public Timestamp getCreateTime() {\n return createTime;\n }", "public Long getCreatetime() {\n return createtime;\n }", "public Date getCreateTime() {\n\t\treturn createTime;\n\t}", "public Date getCreateTime() {\n\t\treturn createTime;\n\t}", "public Date getCreateTime() {\n\t\treturn createTime;\n\t}", "public Date getCreateTime() {\n\t\treturn createTime;\n\t}", "public Date getCreateTime() {\n\t\treturn createTime;\n\t}", "public String startTime(){\r\n\t\treturn startTime;\r\n\t}", "public Date getCreateTime() {\n\t\treturn this.createTime;\n\t}", "Instant getCreated();", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }" ]
[ "0.75280964", "0.7077174", "0.70218223", "0.7005247", "0.7001571", "0.6980327", "0.6959706", "0.6955473", "0.6940148", "0.6862823", "0.68538016", "0.68112516", "0.68064135", "0.67957795", "0.67872244", "0.67770547", "0.67712814", "0.67712814", "0.67712814", "0.6769689", "0.6769689", "0.6769689", "0.6769689", "0.6769689", "0.67671347", "0.6755962", "0.6755962", "0.6746011", "0.6746011", "0.6746011", "0.6746011", "0.674491", "0.674491", "0.674491", "0.674491", "0.674491", "0.674491", "0.674241", "0.67411053", "0.6734663", "0.6725843", "0.6725682", "0.67243546", "0.67243546", "0.6721375", "0.6721375", "0.6717776", "0.6715332", "0.6713404", "0.6713404", "0.6713404", "0.6713404", "0.6713404", "0.6711856", "0.67116165", "0.67086697", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757", "0.6707757" ]
0.0
-1
The time when the pipeline execution was modified last.
public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public long getLastModifiedTime() {\n return this.processor.getLastModifiedTime();\n }", "public Date getModifiedTime() {\n return modifiedTime;\n }", "public String getModifiedTime() {\n return modifiedTime;\n }", "@Override\n\tpublic long getModifiedTime() {\n\t\treturn _dlSyncEvent.getModifiedTime();\n\t}", "String timeModified();", "public Date getModificationTime()\n {\n return modified;\n }", "@Override\n public long getModificationTime() {\n if (exists()) {\n try {\n if (((Node)item).hasProperty(JcrConstants.JCR_LASTMODIFIED)) {\n return ((Node)item).getProperty(JcrConstants.JCR_LASTMODIFIED).getLong();\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:lastModified property\");\n }\n }\n // fallback: return 'now'\n return new Date().getTime();\n }", "public DateTime lastModifiedTime() {\n return this.lastModifiedTime;\n }", "public long getModificationTime();", "public Date getModificationTime() {\n\n\t\treturn lastModificationAtTime;\n\t}", "public long modified() {\n return lastModified;\n }", "public Date getLastModifyTime() {\n return lastModifyTime;\n }", "public long getModificationTime()\n {\n return m_metaInf.getModificationTime();\n }", "public long getModificationTime()\n {\n return modDate * 1000L;\n }", "public Long getLastModifiedTime() {\n return this.lastModifiedTime;\n }", "@java.lang.Override\n public long getModifiedTimestamp() {\n return modifiedTimestamp_;\n }", "@NonNull public Long getModificationTime();", "@java.lang.Override\n public long getModifiedTimestamp() {\n return modifiedTimestamp_;\n }", "public java.util.Date getLastModifiedTime() {\n return this.lastModifiedTime;\n }", "public java.util.Date getLastModifiedTime() {\n return this.lastModifiedTime;\n }", "public String getModifyEndTime() {\n return modifyEndTime;\n }", "public String getModifyTime() {\n return modifyTime;\n }", "public Timestamp getLastModified() {\r\n\t\treturn lastModified;\r\n\t}", "@Nullable\n public Date getModifiedTime() {\n return mModifiedTime == null ? null : new Date(mModifiedTime.getTime());\n }", "public Date getClModifyTime() {\r\n\t\treturn clModifyTime;\r\n\t}", "public OffsetDateTime getModifiedTime()\n\t{\n\t\treturn (OffsetDateTime) this.getKeyValue(\"Modified_Time\");\n\n\t}", "public Time lastModifiedTime()\n\t{\n\t\tResource resource = getResource();\n\t\tif (resource instanceof IModifiable)\n\t\t{\n\t\t\treturn ((IModifiable)resource).lastModifiedTime();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "long getLastAccessedTime();", "public Calendar getModifiedTime() {\n return this.modifiedTime;\n }", "public Date getModificationTime()\n\t{\n\t\treturn modificationTime;\n\t}", "@Raw @Basic\r\n public Date getModificationTime() {\r\n return modificationTime;\r\n }", "public DateTime modificationTime() {\n return this.modificationTime;\n }", "public Timestamp getLastModifiedOn() {\r\n\t\treturn lastModifiedOn;\r\n\t}", "public Integer getModifyTime() {\n\t\treturn modifyTime;\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifytime() {\n return modifytime;\n }", "public java.lang.String getLastChangedTime() {\n\t\treturn lastChangedTime;\n\t}", "public Integer getLastmodifiedTime() {\r\n return lastmodifiedTime;\r\n }", "public Date getLastModified() {\n return _lastModified;\n }", "public Date getModified() {\r\n\t\treturn modified;\r\n\t}", "public long getLastUpdatedTime() {\n return lastUpdatedTime;\n }", "public Date getModifyTime() {\r\n return modifyTime;\r\n }", "public java.sql.Timestamp getLastModified() {\r\n\t\treturn new java.sql.Timestamp(file.lastModified());\r\n\t}", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "long getLastUpdatedTime();", "public long getLastModified() { return lastModified; }", "@java.lang.Override\n public com.google.protobuf.Timestamp getLastModifiedAt() {\n return lastModifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastModifiedAt_;\n }", "public String getModifyStartTime() {\n return modifyStartTime;\n }", "public Date getModifyTime() {\n\t\treturn modifyTime;\n\t}", "public Date getModifyTime() {\n\t\treturn modifyTime;\n\t}", "public Date getModifyTime() {\n\t\treturn modifyTime;\n\t}", "public long getLastUpdateTs() {\n return lastUpdateTs;\n }", "public long getLastModified()\n {\n return( lastModified );\n }", "public long getLastModified()\n\t{\n\t\treturn lastModified;\n\t}", "public DateTime lastModifiedDateTime() {\n return this.lastModifiedDateTime;\n }", "public java.util.Date getLastModificationTime() {\n return this.lastModificationTime;\n }", "@java.lang.Override\n public com.google.protobuf.Timestamp getModifiedAt() {\n return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;\n }", "public Date getModifyTime() {\n return this.modifyTime;\n }", "public Date getLastModified() {\n\t\treturn new Date(file.lastModified());\n\t}", "@Override\n\tpublic long lastModified() throws IOException {\n\t\t// We can not use the superclass method since it uses conversion to a File and\n\t\t// only a Path on the default file system can be converted to a File...\n\t\treturn Files.getLastModifiedTime(this.path).toMillis();\n\t}", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public int getEditedTime() {\n return instance.getEditedTime();\n }", "@Override\n\tpublic long getLastAccessedTime() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long getLastAccessedTime() {\n\t\treturn 0;\n\t}", "public long getTimeOfLastValuesChanged();", "public long getLastModified() {\n return lastModified;\n }", "public Date getLastExecutionTime() {\n\t\treturn lastExecutionTime;\n\t}", "@SuppressWarnings(\"unused\")\n Date getLastUpdateTime();", "public long getLastUpdateTime() {\n return lastUpdateTime;\n }", "public int getEditedTime() {\n return editedTime_;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public long getExecutionTime() {\n return executionTime_;\n }", "public Date getLastModified() {\n\t\treturn header.getDate(HttpHeader.LAST_MODIFIED);\n\t}", "public Date getGmtModified() {\r\n return gmtModified;\r\n }", "public Date getLastUpdateTime() {\r\n return lastUpdateTime;\r\n }", "public long getLastUpdateTime() {\n return this.lastUpdateTime;\n }", "public java.util.Date getModifyTime() {\r\n return modifyTime;\r\n }", "public long getLastModify() {\r\n\t\treturn lastModify;\r\n\t}" ]
[ "0.7965634", "0.7634241", "0.7562864", "0.74882066", "0.7458935", "0.7410489", "0.7382901", "0.73669124", "0.7356154", "0.72994757", "0.72663695", "0.724249", "0.7219929", "0.7206839", "0.71844774", "0.717727", "0.7170799", "0.71624315", "0.7112897", "0.7112897", "0.7109457", "0.7109141", "0.7107296", "0.71009064", "0.7087693", "0.70813745", "0.707172", "0.7069294", "0.70620275", "0.7039298", "0.70220304", "0.6997237", "0.69949764", "0.6985909", "0.6971636", "0.6971636", "0.6971636", "0.6971636", "0.6968813", "0.69668067", "0.6965142", "0.6963774", "0.6957694", "0.6952095", "0.6931801", "0.6925292", "0.6917079", "0.6917079", "0.6917079", "0.6917079", "0.6917079", "0.6917079", "0.6917079", "0.6917079", "0.6917079", "0.6915809", "0.6898953", "0.6878939", "0.6871189", "0.68571675", "0.68571675", "0.68571675", "0.6856999", "0.6852334", "0.68393105", "0.68121046", "0.68075347", "0.68043053", "0.6802041", "0.6795565", "0.67948884", "0.67936254", "0.67936254", "0.67936254", "0.67936206", "0.6784076", "0.6784076", "0.67801446", "0.67785317", "0.67760307", "0.67668134", "0.6763897", "0.67586786", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.6746339", "0.67428505", "0.6738134", "0.6737527", "0.6736418", "0.6730305", "0.67195994" ]
0.0
-1
The time when the pipeline execution was modified last.
public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public long getLastModifiedTime() {\n return this.processor.getLastModifiedTime();\n }", "public Date getModifiedTime() {\n return modifiedTime;\n }", "public String getModifiedTime() {\n return modifiedTime;\n }", "@Override\n\tpublic long getModifiedTime() {\n\t\treturn _dlSyncEvent.getModifiedTime();\n\t}", "String timeModified();", "public Date getModificationTime()\n {\n return modified;\n }", "@Override\n public long getModificationTime() {\n if (exists()) {\n try {\n if (((Node)item).hasProperty(JcrConstants.JCR_LASTMODIFIED)) {\n return ((Node)item).getProperty(JcrConstants.JCR_LASTMODIFIED).getLong();\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:lastModified property\");\n }\n }\n // fallback: return 'now'\n return new Date().getTime();\n }", "public DateTime lastModifiedTime() {\n return this.lastModifiedTime;\n }", "public long getModificationTime();", "public Date getModificationTime() {\n\n\t\treturn lastModificationAtTime;\n\t}", "public long modified() {\n return lastModified;\n }", "public Date getLastModifyTime() {\n return lastModifyTime;\n }", "public long getModificationTime()\n {\n return m_metaInf.getModificationTime();\n }", "public long getModificationTime()\n {\n return modDate * 1000L;\n }", "public Long getLastModifiedTime() {\n return this.lastModifiedTime;\n }", "@java.lang.Override\n public long getModifiedTimestamp() {\n return modifiedTimestamp_;\n }", "@NonNull public Long getModificationTime();", "@java.lang.Override\n public long getModifiedTimestamp() {\n return modifiedTimestamp_;\n }", "public String getModifyEndTime() {\n return modifyEndTime;\n }", "public String getModifyTime() {\n return modifyTime;\n }", "public Timestamp getLastModified() {\r\n\t\treturn lastModified;\r\n\t}", "@Nullable\n public Date getModifiedTime() {\n return mModifiedTime == null ? null : new Date(mModifiedTime.getTime());\n }", "public Date getClModifyTime() {\r\n\t\treturn clModifyTime;\r\n\t}", "public OffsetDateTime getModifiedTime()\n\t{\n\t\treturn (OffsetDateTime) this.getKeyValue(\"Modified_Time\");\n\n\t}", "public Time lastModifiedTime()\n\t{\n\t\tResource resource = getResource();\n\t\tif (resource instanceof IModifiable)\n\t\t{\n\t\t\treturn ((IModifiable)resource).lastModifiedTime();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "long getLastAccessedTime();", "public Calendar getModifiedTime() {\n return this.modifiedTime;\n }", "public Date getModificationTime()\n\t{\n\t\treturn modificationTime;\n\t}", "@Raw @Basic\r\n public Date getModificationTime() {\r\n return modificationTime;\r\n }", "public DateTime modificationTime() {\n return this.modificationTime;\n }", "public Timestamp getLastModifiedOn() {\r\n\t\treturn lastModifiedOn;\r\n\t}", "public Integer getModifyTime() {\n\t\treturn modifyTime;\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifytime() {\n return modifytime;\n }", "public java.lang.String getLastChangedTime() {\n\t\treturn lastChangedTime;\n\t}", "public Integer getLastmodifiedTime() {\r\n return lastmodifiedTime;\r\n }", "public Date getLastModified() {\n return _lastModified;\n }", "public Date getModified() {\r\n\t\treturn modified;\r\n\t}", "public long getLastUpdatedTime() {\n return lastUpdatedTime;\n }", "public Date getModifyTime() {\r\n return modifyTime;\r\n }", "public java.sql.Timestamp getLastModified() {\r\n\t\treturn new java.sql.Timestamp(file.lastModified());\r\n\t}", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "long getLastUpdatedTime();", "public long getLastModified() { return lastModified; }", "@java.lang.Override\n public com.google.protobuf.Timestamp getLastModifiedAt() {\n return lastModifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastModifiedAt_;\n }", "public String getModifyStartTime() {\n return modifyStartTime;\n }", "public Date getModifyTime() {\n\t\treturn modifyTime;\n\t}", "public Date getModifyTime() {\n\t\treturn modifyTime;\n\t}", "public Date getModifyTime() {\n\t\treturn modifyTime;\n\t}", "public long getLastUpdateTs() {\n return lastUpdateTs;\n }", "public long getLastModified()\n {\n return( lastModified );\n }", "public long getLastModified()\n\t{\n\t\treturn lastModified;\n\t}", "public DateTime lastModifiedDateTime() {\n return this.lastModifiedDateTime;\n }", "public java.util.Date getLastModificationTime() {\n return this.lastModificationTime;\n }", "@java.lang.Override\n public com.google.protobuf.Timestamp getModifiedAt() {\n return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;\n }", "public Date getModifyTime() {\n return this.modifyTime;\n }", "public Date getLastModified() {\n\t\treturn new Date(file.lastModified());\n\t}", "@Override\n\tpublic long lastModified() throws IOException {\n\t\t// We can not use the superclass method since it uses conversion to a File and\n\t\t// only a Path on the default file system can be converted to a File...\n\t\treturn Files.getLastModifiedTime(this.path).toMillis();\n\t}", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public int getEditedTime() {\n return instance.getEditedTime();\n }", "@Override\n\tpublic long getLastAccessedTime() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long getLastAccessedTime() {\n\t\treturn 0;\n\t}", "public long getTimeOfLastValuesChanged();", "public long getLastModified() {\n return lastModified;\n }", "public Date getLastExecutionTime() {\n\t\treturn lastExecutionTime;\n\t}", "@SuppressWarnings(\"unused\")\n Date getLastUpdateTime();", "public long getLastUpdateTime() {\n return lastUpdateTime;\n }", "public int getEditedTime() {\n return editedTime_;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public long getExecutionTime() {\n return executionTime_;\n }", "public Date getLastModified() {\n\t\treturn header.getDate(HttpHeader.LAST_MODIFIED);\n\t}", "public Date getGmtModified() {\r\n return gmtModified;\r\n }", "public Date getLastUpdateTime() {\r\n return lastUpdateTime;\r\n }", "public long getLastUpdateTime() {\n return this.lastUpdateTime;\n }", "public java.util.Date getModifyTime() {\r\n return modifyTime;\r\n }", "public long getLastModify() {\r\n\t\treturn lastModify;\r\n\t}" ]
[ "0.7965634", "0.7634241", "0.7562864", "0.74882066", "0.7458935", "0.7410489", "0.7382901", "0.73669124", "0.7356154", "0.72994757", "0.72663695", "0.724249", "0.7219929", "0.7206839", "0.71844774", "0.717727", "0.7170799", "0.71624315", "0.7109457", "0.7109141", "0.7107296", "0.71009064", "0.7087693", "0.70813745", "0.707172", "0.7069294", "0.70620275", "0.7039298", "0.70220304", "0.6997237", "0.69949764", "0.6985909", "0.6971636", "0.6971636", "0.6971636", "0.6971636", "0.6968813", "0.69668067", "0.6965142", "0.6963774", "0.6957694", "0.6952095", "0.6931801", "0.6925292", "0.6917079", "0.6917079", "0.6917079", "0.6917079", "0.6917079", "0.6917079", "0.6917079", "0.6917079", "0.6917079", "0.6915809", "0.6898953", "0.6878939", "0.6871189", "0.68571675", "0.68571675", "0.68571675", "0.6856999", "0.6852334", "0.68393105", "0.68121046", "0.68075347", "0.68043053", "0.6802041", "0.6795565", "0.67948884", "0.67936254", "0.67936254", "0.67936254", "0.67936206", "0.6784076", "0.6784076", "0.67801446", "0.67785317", "0.67760307", "0.67668134", "0.6763897", "0.67586786", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.6746339", "0.67428505", "0.6738134", "0.6737527", "0.6736418", "0.6730305", "0.67195994" ]
0.7112897
19
The time when the pipeline execution was modified last.
public DescribePipelineExecutionResult withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public long getLastModifiedTime() {\n return this.processor.getLastModifiedTime();\n }", "public Date getModifiedTime() {\n return modifiedTime;\n }", "public String getModifiedTime() {\n return modifiedTime;\n }", "@Override\n\tpublic long getModifiedTime() {\n\t\treturn _dlSyncEvent.getModifiedTime();\n\t}", "String timeModified();", "public Date getModificationTime()\n {\n return modified;\n }", "@Override\n public long getModificationTime() {\n if (exists()) {\n try {\n if (((Node)item).hasProperty(JcrConstants.JCR_LASTMODIFIED)) {\n return ((Node)item).getProperty(JcrConstants.JCR_LASTMODIFIED).getLong();\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:lastModified property\");\n }\n }\n // fallback: return 'now'\n return new Date().getTime();\n }", "public DateTime lastModifiedTime() {\n return this.lastModifiedTime;\n }", "public long getModificationTime();", "public Date getModificationTime() {\n\n\t\treturn lastModificationAtTime;\n\t}", "public long modified() {\n return lastModified;\n }", "public Date getLastModifyTime() {\n return lastModifyTime;\n }", "public long getModificationTime()\n {\n return m_metaInf.getModificationTime();\n }", "public long getModificationTime()\n {\n return modDate * 1000L;\n }", "public Long getLastModifiedTime() {\n return this.lastModifiedTime;\n }", "@java.lang.Override\n public long getModifiedTimestamp() {\n return modifiedTimestamp_;\n }", "@NonNull public Long getModificationTime();", "@java.lang.Override\n public long getModifiedTimestamp() {\n return modifiedTimestamp_;\n }", "public java.util.Date getLastModifiedTime() {\n return this.lastModifiedTime;\n }", "public java.util.Date getLastModifiedTime() {\n return this.lastModifiedTime;\n }", "public String getModifyEndTime() {\n return modifyEndTime;\n }", "public String getModifyTime() {\n return modifyTime;\n }", "public Timestamp getLastModified() {\r\n\t\treturn lastModified;\r\n\t}", "@Nullable\n public Date getModifiedTime() {\n return mModifiedTime == null ? null : new Date(mModifiedTime.getTime());\n }", "public Date getClModifyTime() {\r\n\t\treturn clModifyTime;\r\n\t}", "public OffsetDateTime getModifiedTime()\n\t{\n\t\treturn (OffsetDateTime) this.getKeyValue(\"Modified_Time\");\n\n\t}", "public Time lastModifiedTime()\n\t{\n\t\tResource resource = getResource();\n\t\tif (resource instanceof IModifiable)\n\t\t{\n\t\t\treturn ((IModifiable)resource).lastModifiedTime();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "long getLastAccessedTime();", "public Calendar getModifiedTime() {\n return this.modifiedTime;\n }", "public Date getModificationTime()\n\t{\n\t\treturn modificationTime;\n\t}", "@Raw @Basic\r\n public Date getModificationTime() {\r\n return modificationTime;\r\n }", "public DateTime modificationTime() {\n return this.modificationTime;\n }", "public Timestamp getLastModifiedOn() {\r\n\t\treturn lastModifiedOn;\r\n\t}", "public Integer getModifyTime() {\n\t\treturn modifyTime;\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifytime() {\n return modifytime;\n }", "public java.lang.String getLastChangedTime() {\n\t\treturn lastChangedTime;\n\t}", "public Integer getLastmodifiedTime() {\r\n return lastmodifiedTime;\r\n }", "public Date getLastModified() {\n return _lastModified;\n }", "public Date getModified() {\r\n\t\treturn modified;\r\n\t}", "public long getLastUpdatedTime() {\n return lastUpdatedTime;\n }", "public Date getModifyTime() {\r\n return modifyTime;\r\n }", "public java.sql.Timestamp getLastModified() {\r\n\t\treturn new java.sql.Timestamp(file.lastModified());\r\n\t}", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "long getLastUpdatedTime();", "public long getLastModified() { return lastModified; }", "@java.lang.Override\n public com.google.protobuf.Timestamp getLastModifiedAt() {\n return lastModifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastModifiedAt_;\n }", "public String getModifyStartTime() {\n return modifyStartTime;\n }", "public Date getModifyTime() {\n\t\treturn modifyTime;\n\t}", "public Date getModifyTime() {\n\t\treturn modifyTime;\n\t}", "public Date getModifyTime() {\n\t\treturn modifyTime;\n\t}", "public long getLastUpdateTs() {\n return lastUpdateTs;\n }", "public long getLastModified()\n {\n return( lastModified );\n }", "public long getLastModified()\n\t{\n\t\treturn lastModified;\n\t}", "public DateTime lastModifiedDateTime() {\n return this.lastModifiedDateTime;\n }", "public java.util.Date getLastModificationTime() {\n return this.lastModificationTime;\n }", "@java.lang.Override\n public com.google.protobuf.Timestamp getModifiedAt() {\n return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;\n }", "public Date getModifyTime() {\n return this.modifyTime;\n }", "public Date getLastModified() {\n\t\treturn new Date(file.lastModified());\n\t}", "@Override\n\tpublic long lastModified() throws IOException {\n\t\t// We can not use the superclass method since it uses conversion to a File and\n\t\t// only a Path on the default file system can be converted to a File...\n\t\treturn Files.getLastModifiedTime(this.path).toMillis();\n\t}", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public int getEditedTime() {\n return instance.getEditedTime();\n }", "@Override\n\tpublic long getLastAccessedTime() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long getLastAccessedTime() {\n\t\treturn 0;\n\t}", "public long getTimeOfLastValuesChanged();", "public long getLastModified() {\n return lastModified;\n }", "public Date getLastExecutionTime() {\n\t\treturn lastExecutionTime;\n\t}", "@SuppressWarnings(\"unused\")\n Date getLastUpdateTime();", "public long getLastUpdateTime() {\n return lastUpdateTime;\n }", "public int getEditedTime() {\n return editedTime_;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public long getExecutionTime() {\n return executionTime_;\n }", "public Date getLastModified() {\n\t\treturn header.getDate(HttpHeader.LAST_MODIFIED);\n\t}", "public Date getGmtModified() {\r\n return gmtModified;\r\n }", "public Date getLastUpdateTime() {\r\n return lastUpdateTime;\r\n }", "public long getLastUpdateTime() {\n return this.lastUpdateTime;\n }", "public java.util.Date getModifyTime() {\r\n return modifyTime;\r\n }", "public long getLastModify() {\r\n\t\treturn lastModify;\r\n\t}" ]
[ "0.7965634", "0.7634241", "0.7562864", "0.74882066", "0.7458935", "0.7410489", "0.7382901", "0.73669124", "0.7356154", "0.72994757", "0.72663695", "0.724249", "0.7219929", "0.7206839", "0.71844774", "0.717727", "0.7170799", "0.71624315", "0.7112897", "0.7112897", "0.7109457", "0.7109141", "0.7107296", "0.71009064", "0.7087693", "0.70813745", "0.707172", "0.7069294", "0.70620275", "0.7039298", "0.70220304", "0.6997237", "0.69949764", "0.6985909", "0.6971636", "0.6971636", "0.6971636", "0.6971636", "0.6968813", "0.69668067", "0.6965142", "0.6963774", "0.6957694", "0.6952095", "0.6931801", "0.6925292", "0.6917079", "0.6917079", "0.6917079", "0.6917079", "0.6917079", "0.6917079", "0.6917079", "0.6917079", "0.6917079", "0.6915809", "0.6898953", "0.6878939", "0.6871189", "0.68571675", "0.68571675", "0.68571675", "0.6856999", "0.6852334", "0.68393105", "0.68121046", "0.68075347", "0.68043053", "0.6802041", "0.6795565", "0.67948884", "0.67936254", "0.67936254", "0.67936254", "0.67936206", "0.6784076", "0.6784076", "0.67801446", "0.67785317", "0.67760307", "0.67668134", "0.6763897", "0.67586786", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.67516524", "0.6746339", "0.67428505", "0.6738134", "0.6737527", "0.6736418", "0.6730305", "0.67195994" ]
0.0
-1
The parallelism configuration applied to the pipeline.
public void setParallelismConfiguration(ParallelismConfiguration parallelismConfiguration) { this.parallelismConfiguration = parallelismConfiguration; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ParallelismConfiguration getParallelismConfiguration() {\n return this.parallelismConfiguration;\n }", "public Long getParallelism() {\n return parallelism;\n }", "@JsonProperty(\"parallelism\")\n public Integer getParallelism() {\n return parallelism;\n }", "public Configuration() {\r\n\t\t\tmaxEffectiveWorker = (Runtime.getRuntime().availableProcessors()*3/2) + 2;\r\n\t\t\tmaxPhysicalWorker = Math.max(32, (maxEffectiveWorker * 2) + 2);\r\n\t\t}", "public DescribePipelineExecutionResult withParallelismConfiguration(ParallelismConfiguration parallelismConfiguration) {\n setParallelismConfiguration(parallelismConfiguration);\n return this;\n }", "public ParallelApply() {\n super.setParallel(true);\n }", "public String getConcurrentPool() {\n return getPropertyAsString(CONCURRENT_POOL, CONCURRENT_POOL_DEFAULT);\n }", "private int getPoolSize() {\n\t\tint numberOfTasks = SpectralDescriptionType.values().length;\n\t\tint procs = Runtime.getRuntime().availableProcessors();\n\t\treturn numberOfTasks < procs ? numberOfTasks : procs > 1 ? procs - 1\n\t\t\t\t: 1;\n\t}", "public boolean isParallel() {\n\t\treturn parallel;\n\t}", "public PipelineConfig() {\n super();\n }", "public int getMaxPartitionsRunInParallel() {\n return maxThreads;\n }", "public static java.lang.Long getDEFAULT_NUMBER_PARALLEL_THREADS()\n\t{\n\t\treturn (java.lang.Long)Core.getConfiguration().getConstantValue(\"ParallelExecute.DEFAULT_NUMBER_PARALLEL_THREADS\");\n\t}", "@SuppressForbidden(reason = \"to obtain default number of available processors\")\n/* */ synchronized int availableProcessors() {\n/* 65 */ if (this.availableProcessors == 0) {\n/* */ \n/* 67 */ int availableProcessors = SystemPropertyUtil.getInt(\"io.netty.availableProcessors\", \n/* */ \n/* 69 */ Runtime.getRuntime().availableProcessors());\n/* 70 */ setAvailableProcessors(availableProcessors);\n/* */ } \n/* 72 */ return this.availableProcessors;\n/* */ }", "@Override\n\tpublic int getProcessorsPerNode() {\n\t\treturn model.getProcessorsPerNode();\n\t}", "@Override\r\n public int getMaxConcurrentProcessingInstances() {\r\n return 1;\r\n }", "public int[][] getPoolingParameters() {\n return this.poolingParams;\n }", "@SuppressWarnings(\"unchecked\")\n private void setFlowConfig(Flow f, int parallelismIndex) {\n\n if (f instanceof PhysicalExecutionFlow) {\n PhysicalExecutionFlow<?, FlowConfig> flow = (PhysicalExecutionFlow<?, FlowConfig>) f;\n if (flow.getAction() instanceof SourceAction) {\n SourceConfig config = new SourceConfig();\n config.setEnumeratorTask(\n enumeratorTaskIDMap.get((SourceAction<?, ?, ?>) flow.getAction()));\n flow.setConfig(config);\n } else if (flow.getAction() instanceof SinkAction) {\n SinkConfig config = new SinkConfig();\n if (committerTaskIDMap.containsKey((SinkAction<?, ?, ?, ?>) flow.getAction())) {\n config.setContainCommitter(true);\n config.setCommitterTask(\n committerTaskIDMap.get((SinkAction<?, ?, ?, ?>) flow.getAction()));\n }\n flow.setConfig(config);\n }\n } else if (f instanceof IntermediateExecutionFlow) {\n ((IntermediateExecutionFlow<IntermediateQueueConfig>) f)\n .setConfig(\n new IntermediateQueueConfig(\n ((IntermediateExecutionFlow<?>) f).getQueue().getId()));\n } else {\n throw new UnknownFlowException(f);\n }\n\n if (!f.getNext().isEmpty()) {\n f.getNext().forEach(n -> setFlowConfig(n, parallelismIndex));\n }\n }", "public Config() {\n\t\tlambda = 5.0;\n\t\tnu = 1.3;\n\t\tlimit = 0.0001;\n\t\titerationLimit = 0;\n\t }", "@Override\n\tpublic java.lang.String getParallelModule() {\n\t\treturn _scienceApp.getParallelModule();\n\t}", "public SimpleXMLPipelineConfiguration() {\n configurations = new HashMap();\n }", "@Override\n public void setParallel(boolean parallel) {\n super.setParallel(true);\n }", "public static int getAvailableProcessors() {\r\n\t\treturn availableProcessors;\r\n\t}", "public static int availableProcessors() {\n/* 98 */ return holder.availableProcessors();\n/* */ }", "public int getNumberOfThreads() { return numberOfThreads; }", "public int getPoolSize() {\n return poolSize;\n }", "public int getExecutors() {\r\n return executors;\r\n }", "public SelectiveExecutionConfig getSelectiveExecutionConfig() {\n return this.selectiveExecutionConfig;\n }", "public int getProcessingMode() {\n return processingMode ;\n }", "public boolean getParallelize() {\n return this.m_Parallelize;\n }", "protected AlgorithmConfiguration getSettings() {\n return new AlgorithmConfiguration(m_SplitMethod, m_unbiasedEstimate,\n m_kBEPPConstant, m_useBagCount, m_bagInstanceMultiplier,\n m_AttributesToSplit, m_AttributeSplitChoices);\n }", "public int getNumberOfThreads(){\n return numberOfThreads;\n }", "int getExecutorPoolSize();", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "protected OeTemplateProcessorConfig getConfig() {\n final OeTemplateProcessorConfig config = OeTemplateProcessorConfig.create();\n config\n //.setPollingIntervalMillis(1000)\n //.setPollingMaxDurationSecs(5)\n //.setResultsBatchSize(100)\n .getInferenceParameterOverrides()\n .setMaxAnswerCount(MAX_ANSWERS);\n return config;\n }", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@JsonProperty(\"processors\")\n\t@DsonOutput(Output.API)\n\tint getJsonProcessors() {\n\t\treturn Runtime.getRuntime().availableProcessors();\n\t}", "public JobBuilder processorsPerNode(int processorsPerNode) {\r\n job.setProcessorsPerNode(processorsPerNode);\r\n return this;\r\n }", "@Test\n public void test4(){\n System.out.println(Runtime.getRuntime().availableProcessors());\n }", "public static String getPipelinePorts() {\r\n LOGGER.info(\"The configured pipeline ports: \" + pipelinePorts.getValue()); \r\n return pipelinePorts.getValue();\r\n }", "public int getActivePoolSize(){return activePoolSize;}", "public void setParallel( boolean parallel ) {\n\t\tif ( this.parallel != parallel ) {\n\t\t\tthis.parallel = parallel;\n\t\t\t// FIXME: notify the change\n\t\t}\n\t}", "public abstract IOpipeConfiguration config();", "public EngineConcurrency() {\n Runtime runtime = Runtime.getRuntime();\n int threads = runtime.availableProcessors();\n if (threads > 1) {\n threads++;\n }\n this.executor = Executors.newFixedThreadPool(threads);\n }", "@Override\r\n\t\tpublic int getStandbyCap() {\n\t\t\treturn 2 * Runtime.getRuntime().availableProcessors();\r\n\t\t}", "public int getWorkersPerServer() {\n return Integer.parseInt(getOptional(\"kylin.server.sequence-sql.workers-per-server\", \"1\"));\n }", "int getPoolSize();", "public List<UtteranceProcessorConfig> getProcessorConfigs() {\n return processorConfigs;\n }", "public static @Range(from = 2, to = Integer.MAX_VALUE) int threadAmount(@NonNull DriverEnvironment environment) {\n return environment.equals(DriverEnvironment.NODE) ? Math.max(8, Runtime.getRuntime().availableProcessors() * 2) : 4;\n }", "public boolean is_set_parallelism_hint() {\n return EncodingUtils.testBit(__isset_bitfield, __PARALLELISM_HINT_ISSET_ID);\n }", "@Override\n\tpublic void visit(ParallelConstruct n) {\n\t\tcfgNode = n;\n\t}", "public Object getNumExecutors() {\n return this.numExecutors;\n }", "@Override\n\tpublic void visit(ParallelForConstruct n) {\n\t\tcfgNode = n;\n\t}", "public ImmutableMap<String, Integer> getProcessorParametres() {\n return processorParametres;\n }", "public int getNumThreads() {\n return numThreads;\n }", "int getExecutorCorePoolSize();", "public String getName() {\n return \"Parallel Optimization Problem\";\n }", "public int getIoThreadMultiplier()\n {\n return ioThreadMultiplier;\n }", "public int getNumOfThreads() {\n return numOfThreads;\n }", "public Options setNumThreads(int numThreads) {\n this.numThreads = numThreads;\n return this;\n }", "public ForkJoinPool getPool() {\n return pool;\n }", "public int getNumberOfCores();", "public AbstractParallelAlgorithm()\n {\n this(null);\n }", "boolean isParallel();", "public int getInPipelineId() {\n return inPipelineId;\n }", "public String getStrPipelineConfFile() {\n return strPipelineConfFile;\n }", "public ParallelSection()\n\t\t{\n\t\tsuper();\n\t\t}", "public static void main(String[] args) {\n\t\tForkJoinPool core = ForkJoinPool.commonPool() ;\n\t\tSystem.out.println(core.getParallelism());\n\t\t\n\t\t// Paralle() on a stream\n\t\tStream stream =Stream.of(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\");\n\t\tStream.of(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\").forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\tStream.of(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\").parallel().forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\t//2 .Use ParallelStream method at a collector \n\t\tArrays.asList(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\").parallelStream().forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\t//3.Range method\n\t\tIntStream.rangeClosed(0, 10).forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\tIntStream.rangeClosed(0, 10).parallel().forEach(System.out::println);\n\t\t//Print in Alaphabetical order\n\t\t//System.out.println(getArrayList());\n\t\tgetArrayList().stream().forEach(System.out::println);\n\t\tgetArrayList().parallelStream().forEach(System.out::println);\n\t\t//Check stream is running in Parallel Mode :-isParallel() Method is there\n\t\tIntStream s1=IntStream.rangeClosed(1,10);\n\t\tSystem.out.println(s1.isParallel()); // to check whether stream is running paralllel or not\n\t\tIntStream s2=IntStream.rangeClosed(1,10);s2.parallel();\n\t\tSystem.out.println(s2.isParallel());\n\t}", "public BOutput parallel(BOutput parallelize, Supplier<Integer> width) {\n BOutput parallelOutput = addPassThroughMarker(parallelize, BVirtualMarker.PARALLEL, true);\n if (width.get() != null)\n parallelOutput.json().put(\"width\", width.get());\n else\n parallelOutput.json().put(\"width\", ((JSONAble) width).toJSON());\n return parallelOutput;\n }", "int getExecutorMaximumPoolSize();", "@Override\n protected PreprocessingConfig getPreprocessingConfig() {\n PreprocessingConfig config = super.getPreprocessingConfig();\n config.put(TargetEncoding.CONFIG_PREPARE_CV_ONLY, aml().isCVEnabled()); \n return config;\n }", "public boolean areParallel() {\n if (areParallel == null) {\n throw new UndefinedSubspace(\"It was not possible to establish the parallelism, probably because a parameter segment had zero length.\");\n }\n return areParallel;\n }", "public ClientExecutionManager(final TypedProperties config, final JPPFProperty<Integer> nbThreadsProperty) {\n super(config, nbThreadsProperty);\n }", "public static void setAvailableProcessors(int availableProcessors) {\n/* 87 */ holder.setAvailableProcessors(availableProcessors);\n/* */ }", "public int getWorkerThreads() {\n return workerThreads;\n }", "public double getParallelAnalysisPercentileValue(){\n return this.percentile;\n }", "public String getPipelineExecutionStatus() {\n return this.pipelineExecutionStatus;\n }", "public String getPar() {\n\t\treturn par;\n\t}", "public int getMinPoolSize() {\n return minPoolSize;\n }", "@Override\n\tpublic void setParallelModule(java.lang.String parallelModule) {\n\t\t_scienceApp.setParallelModule(parallelModule);\n\t}", "public int getMaxTasksPerNode() {\n return maxTasksPerNode;\n }", "public int getThreadCount() throws ResourceConfigurationException {\n return cpeFactory.getProcessingUnitThreadCount();\n }", "public InsertStatement useParallelDml(int degreeOfParallelism) {\r\n return copyOnWriteOrMutate(\r\n insertStatementBuilder -> insertStatementBuilder.useParallelDml(degreeOfParallelism),\r\n () -> this.hints.add(new UseParallelDml(degreeOfParallelism))\r\n );\r\n }", "public WorkerPool(IWorkerPoolConfiguration config) {\n this(config.getName());\n setConfiguration(config);\n }", "public static int getNumberOfCpuThreads() {\n\t\treturn Runtime.getRuntime().availableProcessors();\n\t}", "@Override\n\tpublic int getMaxThreads() {\n\t\treturn 10;\n\t}", "public Integer minNumberOfCores() {\n return this.minNumberOfCores;\n }", "public NumberOfNodesBasedConfig(int numberOfNodes) {\n this.numberOfNodes = numberOfNodes;\n }", "int getExecutorLargestPoolSize();", "int getMaximumPoolSize();", "public WorkflowExecutionConfiguration getExecutionConfiguration() {\n return executionConfiguration;\n }", "public int getParId() {\n\t\treturn parId;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getNumberOfThreads() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(NUMBEROFTHREADS_PROP.get());\n }", "public static void main(String[] args) {\n\n System.out.println(Runtime.getRuntime().availableProcessors());\n }" ]
[ "0.7489501", "0.7326965", "0.6979254", "0.62701017", "0.62187505", "0.5890898", "0.5785661", "0.5780584", "0.56596774", "0.5613952", "0.5557401", "0.55119854", "0.54869527", "0.5439671", "0.5411852", "0.54103005", "0.5392754", "0.53784573", "0.53609174", "0.5324004", "0.5310575", "0.53042364", "0.5292581", "0.52409536", "0.5229703", "0.51461643", "0.5132438", "0.5127186", "0.5086095", "0.50711584", "0.505419", "0.5044603", "0.502628", "0.502628", "0.5023324", "0.50157475", "0.50157475", "0.50157475", "0.50157475", "0.50157475", "0.50157475", "0.50157475", "0.5007298", "0.49979502", "0.49962533", "0.49922773", "0.49891067", "0.49648958", "0.4954186", "0.4943416", "0.49345577", "0.4933093", "0.49295232", "0.49294838", "0.49258882", "0.48963287", "0.48949274", "0.48886117", "0.48835006", "0.48817977", "0.48771968", "0.48622146", "0.48615634", "0.48576868", "0.48566633", "0.48500407", "0.48342633", "0.48342127", "0.48193792", "0.48172042", "0.48106575", "0.47844088", "0.47581103", "0.47425494", "0.47367057", "0.47208256", "0.47140265", "0.47087395", "0.47045144", "0.4699736", "0.46932584", "0.46912757", "0.4691254", "0.46846828", "0.46776724", "0.46704295", "0.4667893", "0.465252", "0.4650397", "0.46497172", "0.46449944", "0.4644949", "0.46400738", "0.4639835", "0.46363908", "0.46362317", "0.46360227", "0.4635431", "0.46247596", "0.46188307" ]
0.6802953
3
The parallelism configuration applied to the pipeline.
public ParallelismConfiguration getParallelismConfiguration() { return this.parallelismConfiguration; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getParallelism() {\n return parallelism;\n }", "@JsonProperty(\"parallelism\")\n public Integer getParallelism() {\n return parallelism;\n }", "public void setParallelismConfiguration(ParallelismConfiguration parallelismConfiguration) {\n this.parallelismConfiguration = parallelismConfiguration;\n }", "public Configuration() {\r\n\t\t\tmaxEffectiveWorker = (Runtime.getRuntime().availableProcessors()*3/2) + 2;\r\n\t\t\tmaxPhysicalWorker = Math.max(32, (maxEffectiveWorker * 2) + 2);\r\n\t\t}", "public DescribePipelineExecutionResult withParallelismConfiguration(ParallelismConfiguration parallelismConfiguration) {\n setParallelismConfiguration(parallelismConfiguration);\n return this;\n }", "public ParallelApply() {\n super.setParallel(true);\n }", "public String getConcurrentPool() {\n return getPropertyAsString(CONCURRENT_POOL, CONCURRENT_POOL_DEFAULT);\n }", "private int getPoolSize() {\n\t\tint numberOfTasks = SpectralDescriptionType.values().length;\n\t\tint procs = Runtime.getRuntime().availableProcessors();\n\t\treturn numberOfTasks < procs ? numberOfTasks : procs > 1 ? procs - 1\n\t\t\t\t: 1;\n\t}", "public boolean isParallel() {\n\t\treturn parallel;\n\t}", "public PipelineConfig() {\n super();\n }", "public int getMaxPartitionsRunInParallel() {\n return maxThreads;\n }", "public static java.lang.Long getDEFAULT_NUMBER_PARALLEL_THREADS()\n\t{\n\t\treturn (java.lang.Long)Core.getConfiguration().getConstantValue(\"ParallelExecute.DEFAULT_NUMBER_PARALLEL_THREADS\");\n\t}", "@SuppressForbidden(reason = \"to obtain default number of available processors\")\n/* */ synchronized int availableProcessors() {\n/* 65 */ if (this.availableProcessors == 0) {\n/* */ \n/* 67 */ int availableProcessors = SystemPropertyUtil.getInt(\"io.netty.availableProcessors\", \n/* */ \n/* 69 */ Runtime.getRuntime().availableProcessors());\n/* 70 */ setAvailableProcessors(availableProcessors);\n/* */ } \n/* 72 */ return this.availableProcessors;\n/* */ }", "@Override\n\tpublic int getProcessorsPerNode() {\n\t\treturn model.getProcessorsPerNode();\n\t}", "@Override\r\n public int getMaxConcurrentProcessingInstances() {\r\n return 1;\r\n }", "public int[][] getPoolingParameters() {\n return this.poolingParams;\n }", "@SuppressWarnings(\"unchecked\")\n private void setFlowConfig(Flow f, int parallelismIndex) {\n\n if (f instanceof PhysicalExecutionFlow) {\n PhysicalExecutionFlow<?, FlowConfig> flow = (PhysicalExecutionFlow<?, FlowConfig>) f;\n if (flow.getAction() instanceof SourceAction) {\n SourceConfig config = new SourceConfig();\n config.setEnumeratorTask(\n enumeratorTaskIDMap.get((SourceAction<?, ?, ?>) flow.getAction()));\n flow.setConfig(config);\n } else if (flow.getAction() instanceof SinkAction) {\n SinkConfig config = new SinkConfig();\n if (committerTaskIDMap.containsKey((SinkAction<?, ?, ?, ?>) flow.getAction())) {\n config.setContainCommitter(true);\n config.setCommitterTask(\n committerTaskIDMap.get((SinkAction<?, ?, ?, ?>) flow.getAction()));\n }\n flow.setConfig(config);\n }\n } else if (f instanceof IntermediateExecutionFlow) {\n ((IntermediateExecutionFlow<IntermediateQueueConfig>) f)\n .setConfig(\n new IntermediateQueueConfig(\n ((IntermediateExecutionFlow<?>) f).getQueue().getId()));\n } else {\n throw new UnknownFlowException(f);\n }\n\n if (!f.getNext().isEmpty()) {\n f.getNext().forEach(n -> setFlowConfig(n, parallelismIndex));\n }\n }", "public Config() {\n\t\tlambda = 5.0;\n\t\tnu = 1.3;\n\t\tlimit = 0.0001;\n\t\titerationLimit = 0;\n\t }", "@Override\n\tpublic java.lang.String getParallelModule() {\n\t\treturn _scienceApp.getParallelModule();\n\t}", "public SimpleXMLPipelineConfiguration() {\n configurations = new HashMap();\n }", "@Override\n public void setParallel(boolean parallel) {\n super.setParallel(true);\n }", "public static int getAvailableProcessors() {\r\n\t\treturn availableProcessors;\r\n\t}", "public static int availableProcessors() {\n/* 98 */ return holder.availableProcessors();\n/* */ }", "public int getNumberOfThreads() { return numberOfThreads; }", "public int getPoolSize() {\n return poolSize;\n }", "public int getExecutors() {\r\n return executors;\r\n }", "public SelectiveExecutionConfig getSelectiveExecutionConfig() {\n return this.selectiveExecutionConfig;\n }", "public int getProcessingMode() {\n return processingMode ;\n }", "public boolean getParallelize() {\n return this.m_Parallelize;\n }", "protected AlgorithmConfiguration getSettings() {\n return new AlgorithmConfiguration(m_SplitMethod, m_unbiasedEstimate,\n m_kBEPPConstant, m_useBagCount, m_bagInstanceMultiplier,\n m_AttributesToSplit, m_AttributeSplitChoices);\n }", "public int getNumberOfThreads(){\n return numberOfThreads;\n }", "int getExecutorPoolSize();", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "protected OeTemplateProcessorConfig getConfig() {\n final OeTemplateProcessorConfig config = OeTemplateProcessorConfig.create();\n config\n //.setPollingIntervalMillis(1000)\n //.setPollingMaxDurationSecs(5)\n //.setResultsBatchSize(100)\n .getInferenceParameterOverrides()\n .setMaxAnswerCount(MAX_ANSWERS);\n return config;\n }", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@JsonProperty(\"processors\")\n\t@DsonOutput(Output.API)\n\tint getJsonProcessors() {\n\t\treturn Runtime.getRuntime().availableProcessors();\n\t}", "public JobBuilder processorsPerNode(int processorsPerNode) {\r\n job.setProcessorsPerNode(processorsPerNode);\r\n return this;\r\n }", "@Test\n public void test4(){\n System.out.println(Runtime.getRuntime().availableProcessors());\n }", "public static String getPipelinePorts() {\r\n LOGGER.info(\"The configured pipeline ports: \" + pipelinePorts.getValue()); \r\n return pipelinePorts.getValue();\r\n }", "public int getActivePoolSize(){return activePoolSize;}", "public void setParallel( boolean parallel ) {\n\t\tif ( this.parallel != parallel ) {\n\t\t\tthis.parallel = parallel;\n\t\t\t// FIXME: notify the change\n\t\t}\n\t}", "public abstract IOpipeConfiguration config();", "public EngineConcurrency() {\n Runtime runtime = Runtime.getRuntime();\n int threads = runtime.availableProcessors();\n if (threads > 1) {\n threads++;\n }\n this.executor = Executors.newFixedThreadPool(threads);\n }", "@Override\r\n\t\tpublic int getStandbyCap() {\n\t\t\treturn 2 * Runtime.getRuntime().availableProcessors();\r\n\t\t}", "public int getWorkersPerServer() {\n return Integer.parseInt(getOptional(\"kylin.server.sequence-sql.workers-per-server\", \"1\"));\n }", "int getPoolSize();", "public List<UtteranceProcessorConfig> getProcessorConfigs() {\n return processorConfigs;\n }", "public static @Range(from = 2, to = Integer.MAX_VALUE) int threadAmount(@NonNull DriverEnvironment environment) {\n return environment.equals(DriverEnvironment.NODE) ? Math.max(8, Runtime.getRuntime().availableProcessors() * 2) : 4;\n }", "public boolean is_set_parallelism_hint() {\n return EncodingUtils.testBit(__isset_bitfield, __PARALLELISM_HINT_ISSET_ID);\n }", "@Override\n\tpublic void visit(ParallelConstruct n) {\n\t\tcfgNode = n;\n\t}", "public Object getNumExecutors() {\n return this.numExecutors;\n }", "@Override\n\tpublic void visit(ParallelForConstruct n) {\n\t\tcfgNode = n;\n\t}", "public ImmutableMap<String, Integer> getProcessorParametres() {\n return processorParametres;\n }", "public int getNumThreads() {\n return numThreads;\n }", "int getExecutorCorePoolSize();", "public String getName() {\n return \"Parallel Optimization Problem\";\n }", "public int getIoThreadMultiplier()\n {\n return ioThreadMultiplier;\n }", "public int getNumOfThreads() {\n return numOfThreads;\n }", "public Options setNumThreads(int numThreads) {\n this.numThreads = numThreads;\n return this;\n }", "public ForkJoinPool getPool() {\n return pool;\n }", "public int getNumberOfCores();", "public AbstractParallelAlgorithm()\n {\n this(null);\n }", "boolean isParallel();", "public int getInPipelineId() {\n return inPipelineId;\n }", "public String getStrPipelineConfFile() {\n return strPipelineConfFile;\n }", "public ParallelSection()\n\t\t{\n\t\tsuper();\n\t\t}", "public static void main(String[] args) {\n\t\tForkJoinPool core = ForkJoinPool.commonPool() ;\n\t\tSystem.out.println(core.getParallelism());\n\t\t\n\t\t// Paralle() on a stream\n\t\tStream stream =Stream.of(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\");\n\t\tStream.of(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\").forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\tStream.of(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\").parallel().forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\t//2 .Use ParallelStream method at a collector \n\t\tArrays.asList(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\").parallelStream().forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\t//3.Range method\n\t\tIntStream.rangeClosed(0, 10).forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\tIntStream.rangeClosed(0, 10).parallel().forEach(System.out::println);\n\t\t//Print in Alaphabetical order\n\t\t//System.out.println(getArrayList());\n\t\tgetArrayList().stream().forEach(System.out::println);\n\t\tgetArrayList().parallelStream().forEach(System.out::println);\n\t\t//Check stream is running in Parallel Mode :-isParallel() Method is there\n\t\tIntStream s1=IntStream.rangeClosed(1,10);\n\t\tSystem.out.println(s1.isParallel()); // to check whether stream is running paralllel or not\n\t\tIntStream s2=IntStream.rangeClosed(1,10);s2.parallel();\n\t\tSystem.out.println(s2.isParallel());\n\t}", "public BOutput parallel(BOutput parallelize, Supplier<Integer> width) {\n BOutput parallelOutput = addPassThroughMarker(parallelize, BVirtualMarker.PARALLEL, true);\n if (width.get() != null)\n parallelOutput.json().put(\"width\", width.get());\n else\n parallelOutput.json().put(\"width\", ((JSONAble) width).toJSON());\n return parallelOutput;\n }", "int getExecutorMaximumPoolSize();", "@Override\n protected PreprocessingConfig getPreprocessingConfig() {\n PreprocessingConfig config = super.getPreprocessingConfig();\n config.put(TargetEncoding.CONFIG_PREPARE_CV_ONLY, aml().isCVEnabled()); \n return config;\n }", "public boolean areParallel() {\n if (areParallel == null) {\n throw new UndefinedSubspace(\"It was not possible to establish the parallelism, probably because a parameter segment had zero length.\");\n }\n return areParallel;\n }", "public ClientExecutionManager(final TypedProperties config, final JPPFProperty<Integer> nbThreadsProperty) {\n super(config, nbThreadsProperty);\n }", "public static void setAvailableProcessors(int availableProcessors) {\n/* 87 */ holder.setAvailableProcessors(availableProcessors);\n/* */ }", "public int getWorkerThreads() {\n return workerThreads;\n }", "public double getParallelAnalysisPercentileValue(){\n return this.percentile;\n }", "public String getPipelineExecutionStatus() {\n return this.pipelineExecutionStatus;\n }", "public String getPar() {\n\t\treturn par;\n\t}", "public int getMinPoolSize() {\n return minPoolSize;\n }", "@Override\n\tpublic void setParallelModule(java.lang.String parallelModule) {\n\t\t_scienceApp.setParallelModule(parallelModule);\n\t}", "public int getMaxTasksPerNode() {\n return maxTasksPerNode;\n }", "public int getThreadCount() throws ResourceConfigurationException {\n return cpeFactory.getProcessingUnitThreadCount();\n }", "public InsertStatement useParallelDml(int degreeOfParallelism) {\r\n return copyOnWriteOrMutate(\r\n insertStatementBuilder -> insertStatementBuilder.useParallelDml(degreeOfParallelism),\r\n () -> this.hints.add(new UseParallelDml(degreeOfParallelism))\r\n );\r\n }", "public WorkerPool(IWorkerPoolConfiguration config) {\n this(config.getName());\n setConfiguration(config);\n }", "public static int getNumberOfCpuThreads() {\n\t\treturn Runtime.getRuntime().availableProcessors();\n\t}", "@Override\n\tpublic int getMaxThreads() {\n\t\treturn 10;\n\t}", "public Integer minNumberOfCores() {\n return this.minNumberOfCores;\n }", "public NumberOfNodesBasedConfig(int numberOfNodes) {\n this.numberOfNodes = numberOfNodes;\n }", "int getExecutorLargestPoolSize();", "int getMaximumPoolSize();", "public WorkflowExecutionConfiguration getExecutionConfiguration() {\n return executionConfiguration;\n }", "public int getParId() {\n\t\treturn parId;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getNumberOfThreads() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(NUMBEROFTHREADS_PROP.get());\n }", "public static void main(String[] args) {\n\n System.out.println(Runtime.getRuntime().availableProcessors());\n }" ]
[ "0.7326965", "0.6979254", "0.6802953", "0.62701017", "0.62187505", "0.5890898", "0.5785661", "0.5780584", "0.56596774", "0.5613952", "0.5557401", "0.55119854", "0.54869527", "0.5439671", "0.5411852", "0.54103005", "0.5392754", "0.53784573", "0.53609174", "0.5324004", "0.5310575", "0.53042364", "0.5292581", "0.52409536", "0.5229703", "0.51461643", "0.5132438", "0.5127186", "0.5086095", "0.50711584", "0.505419", "0.5044603", "0.502628", "0.502628", "0.5023324", "0.50157475", "0.50157475", "0.50157475", "0.50157475", "0.50157475", "0.50157475", "0.50157475", "0.5007298", "0.49979502", "0.49962533", "0.49922773", "0.49891067", "0.49648958", "0.4954186", "0.4943416", "0.49345577", "0.4933093", "0.49295232", "0.49294838", "0.49258882", "0.48963287", "0.48949274", "0.48886117", "0.48835006", "0.48817977", "0.48771968", "0.48622146", "0.48615634", "0.48576868", "0.48566633", "0.48500407", "0.48342633", "0.48342127", "0.48193792", "0.48172042", "0.48106575", "0.47844088", "0.47581103", "0.47425494", "0.47367057", "0.47208256", "0.47140265", "0.47087395", "0.47045144", "0.4699736", "0.46932584", "0.46912757", "0.4691254", "0.46846828", "0.46776724", "0.46704295", "0.4667893", "0.465252", "0.4650397", "0.46497172", "0.46449944", "0.4644949", "0.46400738", "0.4639835", "0.46363908", "0.46362317", "0.46360227", "0.4635431", "0.46247596", "0.46188307" ]
0.7489501
0
The parallelism configuration applied to the pipeline.
public DescribePipelineExecutionResult withParallelismConfiguration(ParallelismConfiguration parallelismConfiguration) { setParallelismConfiguration(parallelismConfiguration); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ParallelismConfiguration getParallelismConfiguration() {\n return this.parallelismConfiguration;\n }", "public Long getParallelism() {\n return parallelism;\n }", "@JsonProperty(\"parallelism\")\n public Integer getParallelism() {\n return parallelism;\n }", "public void setParallelismConfiguration(ParallelismConfiguration parallelismConfiguration) {\n this.parallelismConfiguration = parallelismConfiguration;\n }", "public Configuration() {\r\n\t\t\tmaxEffectiveWorker = (Runtime.getRuntime().availableProcessors()*3/2) + 2;\r\n\t\t\tmaxPhysicalWorker = Math.max(32, (maxEffectiveWorker * 2) + 2);\r\n\t\t}", "public ParallelApply() {\n super.setParallel(true);\n }", "public String getConcurrentPool() {\n return getPropertyAsString(CONCURRENT_POOL, CONCURRENT_POOL_DEFAULT);\n }", "private int getPoolSize() {\n\t\tint numberOfTasks = SpectralDescriptionType.values().length;\n\t\tint procs = Runtime.getRuntime().availableProcessors();\n\t\treturn numberOfTasks < procs ? numberOfTasks : procs > 1 ? procs - 1\n\t\t\t\t: 1;\n\t}", "public boolean isParallel() {\n\t\treturn parallel;\n\t}", "public PipelineConfig() {\n super();\n }", "public int getMaxPartitionsRunInParallel() {\n return maxThreads;\n }", "public static java.lang.Long getDEFAULT_NUMBER_PARALLEL_THREADS()\n\t{\n\t\treturn (java.lang.Long)Core.getConfiguration().getConstantValue(\"ParallelExecute.DEFAULT_NUMBER_PARALLEL_THREADS\");\n\t}", "@SuppressForbidden(reason = \"to obtain default number of available processors\")\n/* */ synchronized int availableProcessors() {\n/* 65 */ if (this.availableProcessors == 0) {\n/* */ \n/* 67 */ int availableProcessors = SystemPropertyUtil.getInt(\"io.netty.availableProcessors\", \n/* */ \n/* 69 */ Runtime.getRuntime().availableProcessors());\n/* 70 */ setAvailableProcessors(availableProcessors);\n/* */ } \n/* 72 */ return this.availableProcessors;\n/* */ }", "@Override\n\tpublic int getProcessorsPerNode() {\n\t\treturn model.getProcessorsPerNode();\n\t}", "@Override\r\n public int getMaxConcurrentProcessingInstances() {\r\n return 1;\r\n }", "public int[][] getPoolingParameters() {\n return this.poolingParams;\n }", "@SuppressWarnings(\"unchecked\")\n private void setFlowConfig(Flow f, int parallelismIndex) {\n\n if (f instanceof PhysicalExecutionFlow) {\n PhysicalExecutionFlow<?, FlowConfig> flow = (PhysicalExecutionFlow<?, FlowConfig>) f;\n if (flow.getAction() instanceof SourceAction) {\n SourceConfig config = new SourceConfig();\n config.setEnumeratorTask(\n enumeratorTaskIDMap.get((SourceAction<?, ?, ?>) flow.getAction()));\n flow.setConfig(config);\n } else if (flow.getAction() instanceof SinkAction) {\n SinkConfig config = new SinkConfig();\n if (committerTaskIDMap.containsKey((SinkAction<?, ?, ?, ?>) flow.getAction())) {\n config.setContainCommitter(true);\n config.setCommitterTask(\n committerTaskIDMap.get((SinkAction<?, ?, ?, ?>) flow.getAction()));\n }\n flow.setConfig(config);\n }\n } else if (f instanceof IntermediateExecutionFlow) {\n ((IntermediateExecutionFlow<IntermediateQueueConfig>) f)\n .setConfig(\n new IntermediateQueueConfig(\n ((IntermediateExecutionFlow<?>) f).getQueue().getId()));\n } else {\n throw new UnknownFlowException(f);\n }\n\n if (!f.getNext().isEmpty()) {\n f.getNext().forEach(n -> setFlowConfig(n, parallelismIndex));\n }\n }", "public Config() {\n\t\tlambda = 5.0;\n\t\tnu = 1.3;\n\t\tlimit = 0.0001;\n\t\titerationLimit = 0;\n\t }", "@Override\n\tpublic java.lang.String getParallelModule() {\n\t\treturn _scienceApp.getParallelModule();\n\t}", "public SimpleXMLPipelineConfiguration() {\n configurations = new HashMap();\n }", "@Override\n public void setParallel(boolean parallel) {\n super.setParallel(true);\n }", "public static int getAvailableProcessors() {\r\n\t\treturn availableProcessors;\r\n\t}", "public static int availableProcessors() {\n/* 98 */ return holder.availableProcessors();\n/* */ }", "public int getNumberOfThreads() { return numberOfThreads; }", "public int getPoolSize() {\n return poolSize;\n }", "public int getExecutors() {\r\n return executors;\r\n }", "public SelectiveExecutionConfig getSelectiveExecutionConfig() {\n return this.selectiveExecutionConfig;\n }", "public int getProcessingMode() {\n return processingMode ;\n }", "public boolean getParallelize() {\n return this.m_Parallelize;\n }", "protected AlgorithmConfiguration getSettings() {\n return new AlgorithmConfiguration(m_SplitMethod, m_unbiasedEstimate,\n m_kBEPPConstant, m_useBagCount, m_bagInstanceMultiplier,\n m_AttributesToSplit, m_AttributeSplitChoices);\n }", "public int getNumberOfThreads(){\n return numberOfThreads;\n }", "int getExecutorPoolSize();", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "protected OeTemplateProcessorConfig getConfig() {\n final OeTemplateProcessorConfig config = OeTemplateProcessorConfig.create();\n config\n //.setPollingIntervalMillis(1000)\n //.setPollingMaxDurationSecs(5)\n //.setResultsBatchSize(100)\n .getInferenceParameterOverrides()\n .setMaxAnswerCount(MAX_ANSWERS);\n return config;\n }", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@JsonProperty(\"processors\")\n\t@DsonOutput(Output.API)\n\tint getJsonProcessors() {\n\t\treturn Runtime.getRuntime().availableProcessors();\n\t}", "public JobBuilder processorsPerNode(int processorsPerNode) {\r\n job.setProcessorsPerNode(processorsPerNode);\r\n return this;\r\n }", "@Test\n public void test4(){\n System.out.println(Runtime.getRuntime().availableProcessors());\n }", "public static String getPipelinePorts() {\r\n LOGGER.info(\"The configured pipeline ports: \" + pipelinePorts.getValue()); \r\n return pipelinePorts.getValue();\r\n }", "public int getActivePoolSize(){return activePoolSize;}", "public void setParallel( boolean parallel ) {\n\t\tif ( this.parallel != parallel ) {\n\t\t\tthis.parallel = parallel;\n\t\t\t// FIXME: notify the change\n\t\t}\n\t}", "public abstract IOpipeConfiguration config();", "public EngineConcurrency() {\n Runtime runtime = Runtime.getRuntime();\n int threads = runtime.availableProcessors();\n if (threads > 1) {\n threads++;\n }\n this.executor = Executors.newFixedThreadPool(threads);\n }", "@Override\r\n\t\tpublic int getStandbyCap() {\n\t\t\treturn 2 * Runtime.getRuntime().availableProcessors();\r\n\t\t}", "public int getWorkersPerServer() {\n return Integer.parseInt(getOptional(\"kylin.server.sequence-sql.workers-per-server\", \"1\"));\n }", "int getPoolSize();", "public List<UtteranceProcessorConfig> getProcessorConfigs() {\n return processorConfigs;\n }", "public static @Range(from = 2, to = Integer.MAX_VALUE) int threadAmount(@NonNull DriverEnvironment environment) {\n return environment.equals(DriverEnvironment.NODE) ? Math.max(8, Runtime.getRuntime().availableProcessors() * 2) : 4;\n }", "public boolean is_set_parallelism_hint() {\n return EncodingUtils.testBit(__isset_bitfield, __PARALLELISM_HINT_ISSET_ID);\n }", "@Override\n\tpublic void visit(ParallelConstruct n) {\n\t\tcfgNode = n;\n\t}", "public Object getNumExecutors() {\n return this.numExecutors;\n }", "@Override\n\tpublic void visit(ParallelForConstruct n) {\n\t\tcfgNode = n;\n\t}", "public ImmutableMap<String, Integer> getProcessorParametres() {\n return processorParametres;\n }", "public int getNumThreads() {\n return numThreads;\n }", "int getExecutorCorePoolSize();", "public String getName() {\n return \"Parallel Optimization Problem\";\n }", "public int getIoThreadMultiplier()\n {\n return ioThreadMultiplier;\n }", "public int getNumOfThreads() {\n return numOfThreads;\n }", "public Options setNumThreads(int numThreads) {\n this.numThreads = numThreads;\n return this;\n }", "public ForkJoinPool getPool() {\n return pool;\n }", "public int getNumberOfCores();", "public AbstractParallelAlgorithm()\n {\n this(null);\n }", "boolean isParallel();", "public int getInPipelineId() {\n return inPipelineId;\n }", "public String getStrPipelineConfFile() {\n return strPipelineConfFile;\n }", "public ParallelSection()\n\t\t{\n\t\tsuper();\n\t\t}", "public static void main(String[] args) {\n\t\tForkJoinPool core = ForkJoinPool.commonPool() ;\n\t\tSystem.out.println(core.getParallelism());\n\t\t\n\t\t// Paralle() on a stream\n\t\tStream stream =Stream.of(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\");\n\t\tStream.of(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\").forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\tStream.of(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\").parallel().forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\t//2 .Use ParallelStream method at a collector \n\t\tArrays.asList(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\").parallelStream().forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\t//3.Range method\n\t\tIntStream.rangeClosed(0, 10).forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\tIntStream.rangeClosed(0, 10).parallel().forEach(System.out::println);\n\t\t//Print in Alaphabetical order\n\t\t//System.out.println(getArrayList());\n\t\tgetArrayList().stream().forEach(System.out::println);\n\t\tgetArrayList().parallelStream().forEach(System.out::println);\n\t\t//Check stream is running in Parallel Mode :-isParallel() Method is there\n\t\tIntStream s1=IntStream.rangeClosed(1,10);\n\t\tSystem.out.println(s1.isParallel()); // to check whether stream is running paralllel or not\n\t\tIntStream s2=IntStream.rangeClosed(1,10);s2.parallel();\n\t\tSystem.out.println(s2.isParallel());\n\t}", "public BOutput parallel(BOutput parallelize, Supplier<Integer> width) {\n BOutput parallelOutput = addPassThroughMarker(parallelize, BVirtualMarker.PARALLEL, true);\n if (width.get() != null)\n parallelOutput.json().put(\"width\", width.get());\n else\n parallelOutput.json().put(\"width\", ((JSONAble) width).toJSON());\n return parallelOutput;\n }", "int getExecutorMaximumPoolSize();", "@Override\n protected PreprocessingConfig getPreprocessingConfig() {\n PreprocessingConfig config = super.getPreprocessingConfig();\n config.put(TargetEncoding.CONFIG_PREPARE_CV_ONLY, aml().isCVEnabled()); \n return config;\n }", "public boolean areParallel() {\n if (areParallel == null) {\n throw new UndefinedSubspace(\"It was not possible to establish the parallelism, probably because a parameter segment had zero length.\");\n }\n return areParallel;\n }", "public ClientExecutionManager(final TypedProperties config, final JPPFProperty<Integer> nbThreadsProperty) {\n super(config, nbThreadsProperty);\n }", "public static void setAvailableProcessors(int availableProcessors) {\n/* 87 */ holder.setAvailableProcessors(availableProcessors);\n/* */ }", "public int getWorkerThreads() {\n return workerThreads;\n }", "public double getParallelAnalysisPercentileValue(){\n return this.percentile;\n }", "public String getPipelineExecutionStatus() {\n return this.pipelineExecutionStatus;\n }", "public String getPar() {\n\t\treturn par;\n\t}", "public int getMinPoolSize() {\n return minPoolSize;\n }", "@Override\n\tpublic void setParallelModule(java.lang.String parallelModule) {\n\t\t_scienceApp.setParallelModule(parallelModule);\n\t}", "public int getMaxTasksPerNode() {\n return maxTasksPerNode;\n }", "public int getThreadCount() throws ResourceConfigurationException {\n return cpeFactory.getProcessingUnitThreadCount();\n }", "public InsertStatement useParallelDml(int degreeOfParallelism) {\r\n return copyOnWriteOrMutate(\r\n insertStatementBuilder -> insertStatementBuilder.useParallelDml(degreeOfParallelism),\r\n () -> this.hints.add(new UseParallelDml(degreeOfParallelism))\r\n );\r\n }", "public WorkerPool(IWorkerPoolConfiguration config) {\n this(config.getName());\n setConfiguration(config);\n }", "public static int getNumberOfCpuThreads() {\n\t\treturn Runtime.getRuntime().availableProcessors();\n\t}", "@Override\n\tpublic int getMaxThreads() {\n\t\treturn 10;\n\t}", "public Integer minNumberOfCores() {\n return this.minNumberOfCores;\n }", "public NumberOfNodesBasedConfig(int numberOfNodes) {\n this.numberOfNodes = numberOfNodes;\n }", "int getExecutorLargestPoolSize();", "int getMaximumPoolSize();", "public WorkflowExecutionConfiguration getExecutionConfiguration() {\n return executionConfiguration;\n }", "public int getParId() {\n\t\treturn parId;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getNumberOfThreads() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(NUMBEROFTHREADS_PROP.get());\n }", "public static void main(String[] args) {\n\n System.out.println(Runtime.getRuntime().availableProcessors());\n }" ]
[ "0.7489501", "0.7326965", "0.6979254", "0.6802953", "0.62701017", "0.5890898", "0.5785661", "0.5780584", "0.56596774", "0.5613952", "0.5557401", "0.55119854", "0.54869527", "0.5439671", "0.5411852", "0.54103005", "0.5392754", "0.53784573", "0.53609174", "0.5324004", "0.5310575", "0.53042364", "0.5292581", "0.52409536", "0.5229703", "0.51461643", "0.5132438", "0.5127186", "0.5086095", "0.50711584", "0.505419", "0.5044603", "0.502628", "0.502628", "0.5023324", "0.50157475", "0.50157475", "0.50157475", "0.50157475", "0.50157475", "0.50157475", "0.50157475", "0.5007298", "0.49979502", "0.49962533", "0.49922773", "0.49891067", "0.49648958", "0.4954186", "0.4943416", "0.49345577", "0.4933093", "0.49295232", "0.49294838", "0.49258882", "0.48963287", "0.48949274", "0.48886117", "0.48835006", "0.48817977", "0.48771968", "0.48622146", "0.48615634", "0.48576868", "0.48566633", "0.48500407", "0.48342633", "0.48342127", "0.48193792", "0.48172042", "0.48106575", "0.47844088", "0.47581103", "0.47425494", "0.47367057", "0.47208256", "0.47140265", "0.47087395", "0.47045144", "0.4699736", "0.46932584", "0.46912757", "0.4691254", "0.46846828", "0.46776724", "0.46704295", "0.4667893", "0.465252", "0.4650397", "0.46497172", "0.46449944", "0.4644949", "0.46400738", "0.4639835", "0.46363908", "0.46362317", "0.46360227", "0.4635431", "0.46247596", "0.46188307" ]
0.62187505
5
The selective execution configuration applied to the pipeline run.
public void setSelectiveExecutionConfig(SelectiveExecutionConfig selectiveExecutionConfig) { this.selectiveExecutionConfig = selectiveExecutionConfig; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SelectiveExecutionConfig getSelectiveExecutionConfig() {\n return this.selectiveExecutionConfig;\n }", "public DescribePipelineExecutionResult withSelectiveExecutionConfig(SelectiveExecutionConfig selectiveExecutionConfig) {\n setSelectiveExecutionConfig(selectiveExecutionConfig);\n return this;\n }", "public WorkflowExecutionConfiguration getExecutionConfiguration() {\n return executionConfiguration;\n }", "public abstract IOpipeConfiguration config();", "public Object\tgetConfiguration();", "public PipelineConfig() {\n super();\n }", "@DISPID(23)\n\t// = 0x17. The runtime will prefer the VTID if present\n\t@VTID(34)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject executionSettings();", "public Configuration() {\r\n\t\t\tmaxEffectiveWorker = (Runtime.getRuntime().availableProcessors()*3/2) + 2;\r\n\t\t\tmaxPhysicalWorker = Math.max(32, (maxEffectiveWorker * 2) + 2);\r\n\t\t}", "@Override\n protected PreprocessingConfig getPreprocessingConfig() {\n PreprocessingConfig config = super.getPreprocessingConfig();\n config.put(TargetEncoding.CONFIG_PREPARE_CV_ONLY, aml().isCVEnabled()); \n return config;\n }", "ViewCycleExecutionOptions getDefaultExecutionOptions();", "public abstract Configuration configuration();", "@Parameterized.Parameters(name = \"Execution mode = {0}\")\n public static Collection<Object[]> executionModes() {\n return Arrays.asList(\n new Object[] {TestExecutionMode.CLUSTER},\n new Object[] {TestExecutionMode.COLLECTION});\n }", "public RunConfiguration[] getRunConfigurations()\n\t{\n\t\treturn runConfigurations;\n\t}", "protected WorkloadConfiguration getConfguration() {\n\t\treturn workloadConfiguration;\n\t}", "public SimpleXMLPipelineConfiguration() {\n configurations = new HashMap();\n }", "public String getPipelineExecutionDescription() {\n return this.pipelineExecutionDescription;\n }", "public interface StageConfig extends Config<StageConfig> {\r\n\r\n /**\r\n * Get the name of the stage\r\n * @return Name of the stage\r\n */\r\n String getStageName();\r\n\r\n /**\r\n * Get the fully-qualified class the stage is an instance of\r\n * @return\r\n */\r\n String getStageClass();\r\n\r\n /**\r\n * Get name for the StageExecutionMode to be used for this stage. This should\r\n * be the name of the enum (e.g. NEXT_DOC, NEXT_STAGE, etc..) It is used to\r\n * instantiate the enum from a serialized configuration.\r\n * @return Name for the StageExecutionMode\r\n */\r\n String getStageExceptionModeClass();\r\n\r\n /**\r\n * Get StageExecutionMode for the Stage. If stage does not set this explicitly,\r\n * the stageExecutionMode setting for the pipeline will be applied.\r\n * @return StageExecutionMode instance\r\n */\r\n StageExceptionMode getStageExceptionMode();\r\n\r\n /**\r\n * Set the StageExecutionMode for this stage to the specified value. If stage\r\n * does not set this explicitly, the stageExecutionMode setting for the pipeline\r\n * will be applied.\r\n * @param mode StageExceptionMode to apply\r\n */\r\n void setStageExceptionMode(StageExceptionMode mode);\r\n}", "public ParallelismConfiguration getParallelismConfiguration() {\n return this.parallelismConfiguration;\n }", "protected WorkloadConfiguration getWorkloadConfiguration() {\n\t\treturn workloadConfiguration;\n\t}", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "protected OeTemplateProcessorConfig getConfig() {\n final OeTemplateProcessorConfig config = OeTemplateProcessorConfig.create();\n config\n //.setPollingIntervalMillis(1000)\n //.setPollingMaxDurationSecs(5)\n //.setResultsBatchSize(100)\n .getInferenceParameterOverrides()\n .setMaxAnswerCount(MAX_ANSWERS);\n return config;\n }", "public Map<String, Object> getSelectedConfiguration() {\n\t\treturn loader.<TemplateController>getController().getSelectedConfiguration();\n\t}", "public Configuration getConfiguration() {\n return configurationParameter.getConfiguration();\n }", "public CommonExportProperties runSettings() {\n return this.runSettings;\n }", "@Override\n public Map<String, ConfiguredVariableItem> getConfiguration() {\n return config;\n }", "public ChainOfSelectors() {\n this(Genotype.getStaticConfiguration());\n }", "protected Configuration getConfiguration() {\n return variable.getConfiguration();\n }", "@Configuration\n public Option[] configuration() {\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.sling\", \"org.apache.sling.distribution.core\");\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.sling\", \"org.apache.sling.distribution.api\");\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.jackrabbit.vault\",\"org.apache.jackrabbit.vault\");\n return new Option[]{\n baseConfiguration(),\n slingQuickstart(),\n logback(),\n // build artifact\n slingDistribution(),\n // testing\n defaultOsgiConfigs(),\n SlingOptions.webconsole(),\n CoreOptions.mavenBundle(\"org.apache.felix\", \"org.apache.felix.webconsole.plugins.ds\", \"2.0.8\"),\n junitBundles()\n };\n }", "public IConfigurationElement getCommandLineGeneratorElement();", "public String getPipelineExecutionStatus() {\n return this.pipelineExecutionStatus;\n }", "public ReportConfig getConfiguration() {\r\n return predecessor.getConfiguration();\r\n }", "protected AlgorithmConfiguration getSettings() {\n return new AlgorithmConfiguration(m_SplitMethod, m_unbiasedEstimate,\n m_kBEPPConstant, m_useBagCount, m_bagInstanceMultiplier,\n m_AttributesToSplit, m_AttributeSplitChoices);\n }", "public void execute(DelegateExecution ex) throws Exception {\n\t\tString gotsid = getVar(ex, \"gotsid\");\n\t\tString name = getVar(ex, \"name\");\n\t\tString pipeline_name = getVar(ex, \"pipeline_name\");\n\t\tString submodule_name = getVar(ex, \"submodule_name\");\n\t\tString process_name = getVar(ex, \"processName\");\n\t\tString pipelineId = getVar(ex, \"pipeline_id\");\n\t\tString index = getVar(ex, \"array_indexer\");\n\t\tex.setVariable(\"reviewSubmodule\", \"false\");\n\t\tex.setVariable(\"refreshRate\", Database.getSystemConfig(\"jenkinsRefreshRate\").toString());\n\t\tex.setVariable(\"associated\", Database.isAssociated(gotsid));\n\t\tString info = \"Beginning\";\n\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name, \"GetConfig\",\n\t\t\t\t\"execute\", info);\n\t\tString deployName = Database.getVariableWithIndex(gotsid, name, pipeline_name, submodule_name, \"global\",\n\t\t\t\t\"deploymentName\", index);\n\n\t\t// Get the config attributes and values by index\n\t\tMap results = Database.getConfigAttributesByIndex(gotsid, name, pipeline_name, submodule_name, process_name,\n\t\t\t\tindex);\n\t\tif (!process_name.equals(\"RequestBuild\")) {\n\t\t\tinfo = \"The \\\"\" + Database.getProcessNameLabel(process_name) + \"\\\" phase for the deployment (\" + deployName + \") in the \"\n\t\t\t\t\t+ Database.getSubmoduleNameLabel(submodule_name) + \" stage has started.\";\n\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t}\n\n\t\t// Set each attribute's value during execution.\n\t\tIterator it = results.entrySet().iterator();\n\t\tboolean automatic = false;\n\t\twhile (it.hasNext()) {\n\t\t\tMap.Entry pair = (Map.Entry) it.next();\n\t\t\tString attribute_name = pair.getKey().toString().trim();\n\t\t\tString attribute_value = pair.getValue().toString().trim();\n\t\t\tif (attribute_name.equals(\"assignTo\") && (attribute_value == null || attribute_value.isEmpty())) {\n\t\t\t\tex.setVariable(\"assignTo\", AAFConnector.getAdminList(gotsid));\n\t\t\t} else if (attribute_name.equals(\"enableApproval\")\n\t\t\t\t\t&& (attribute_value == null || attribute_value.isEmpty() || attribute_value.equals(\"false\"))) {\n\t\t\t\tex.setVariable(\"isApproved\", true);\n\t\t\t\tex.setVariable(attribute_name, \"false\");\n\t\t\t\tinfo = \"The \\\"\" + Database.getProcessNameLabel(process_name) + \"\\\" approval process has been disabled in the \"\n\t\t\t\t\t\t+ Database.getSubmoduleNameLabel(submodule_name) + \" stage. This step has been skipped.\";\n\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t\t\tinfo = \"Setting \" + attribute_name + \" = \" + attribute_value;\n\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\"GetConfig\", \"execute\", info);\n\t\t\t} else {\n\t\t\t\tif (attribute_name.equals(\"enableApproval\")) {\n\t\t\t\t\tinfo = \"The \\\"\" + Database.getProcessNameLabel(process_name) + \"\\\" approval process has been enabled in the \"\n\t\t\t\t\t\t\t+ Database.getSubmoduleNameLabel(submodule_name) + \" stage for the deployment configuration (\" + deployName + \").\";\n\t\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t\t\t}\n\t\t\t\tex.setVariable(attribute_name, attribute_value);\n\t\t\t\tinfo = \"Setting \" + attribute_name + \" = \" + attribute_value;\n\t\t\t\tif (attribute_name.equals(\"automatic\") && attribute_value.equals(\"true\")) {\n\t\t\t\t\tautomatic = true;\n\t\t\t\t\tinfo = \"The \" + Database.getSubmoduleNameLabel(submodule_name) + \" phase for the deployment (\" + deployName\n\t\t\t\t\t\t\t+ \") has been configured to be handled automatically. Starting the automatic build and/or deployment process. Please wait...\";\n\t\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t\t\t}\n\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\"GetConfig\", \"execute\", info);\n\t\t\t}\n\t\t}\n\n\t\t// Set process description\n\t\tif (automatic) {\n\t\t\tString description = Database.getDescription(\"descriptionAutomatic\", pipeline_name, submodule_name,\n\t\t\t\t\tprocess_name);\n\t\t\tString deployname = Database.getVariableWithIndex(gotsid, name, pipeline_name, submodule_name, \"global\",\n\t\t\t\t\t\"deploymentName\", index);\n\t\t\tString newDescription = description.replaceAll(Pattern.quote(\"((deployname))\"), deployname);\n\t\t\tex.setVariable(\"processDescription\", newDescription);\n\t\t} else {\n\t\t\tString description = Database.getDescription(\"description\", pipeline_name, submodule_name, process_name);\n\t\t\tString deployname = Database.getVariableWithIndex(gotsid, name, pipeline_name, submodule_name, \"global\",\n\t\t\t\t\t\"deploymentName\", index);\n\t\t\tString newDescription = description.replaceAll(Pattern.quote(\"((deployname))\"), deployname);\n\t\t\tex.setVariable(\"processDescription\", newDescription);\n\t\t}\n\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name, \"GetConfig\",\n\t\t\t\t\"execute\", \"End\");\n\t}", "boolean hasPipelineRunContext();", "public ViewConfiguration invoke() {\n return ViewConfiguration.get(this.f64333a);\n }", "public ComponentConfiguration getConfiguration();", "public StepConfig getConfig() {\n StepConfig stepConfig = new StepConfig();\n stepConfig.setEnableTickCallback(true);\n stepConfig.setRunningPeriodicDelay(5);//10 Seconds\n stepConfig.setMonitorEnabledForStep(true);\n stepConfig.setRunningPeriodicDelayUnit(TimeUnit.SECONDS);\n stepConfig.setMonitorEmmitTimeout(10);\n return stepConfig;\n }", "public String getStrPipelineConfFile() {\n return strPipelineConfFile;\n }", "C getConfiguration();", "public Set<Configuration> getSelected() {\n\t\treturn selected;\n\t}", "public Parameters getConfigParameters();", "protected abstract String getCommandLine() throws ConfigException;", "public String getExecutionArgs() {\n\t\treturn null;\n\t}", "public boolean isSelectedConfigProfilingRBtn() {\n\t\treturn configProfilingCondSetRBtn.isSelected();\n\t}", "public ExperimentationConfiguration getExperimentationConfiguration() {\n return new ExperimentationConfiguration(this.applicationContext);\n }", "public Config() {\n\t\tlambda = 5.0;\n\t\tnu = 1.3;\n\t\tlimit = 0.0001;\n\t\titerationLimit = 0;\n\t }", "public RunConfigDataNode getCurrConfig() {\n\t\treturn currConfig;\n\t}", "public String getEvaluationCondition()\r\n {\r\n return evaluationCondition;\r\n }", "@java.lang.Override\n public com.google.protobuf.Any getConfiguration() {\n return configuration_ == null ? com.google.protobuf.Any.getDefaultInstance() : configuration_;\n }", "public String getConfiguration() {\r\n\t\treturn configuration;\r\n\t}", "public p getConfig() {\n return c.K();\n }", "public String getConfiguration() {\n return configuration;\n }", "@java.lang.Override\n public com.google.protobuf.AnyOrBuilder getConfigurationOrBuilder() {\n return getConfiguration();\n }", "public int getExecutionType() {\n\t\treturn 0;\n\t}", "public AwsAthenaWorkGroupConfigurationResultConfigurationDetails getResultConfiguration() {\n return this.resultConfiguration;\n }", "private void printConfigInfo(Configuration configuration, String pipelineName) throws IOException, ValueDoesNotMatchTypeException {\n IDecisionVariable pip = PipelineHelper.obtainPipelineByName(configuration, \"SwitchPip\");\n printNestedElement(pip, \"numworkers\");\n printNestedElement(pip, \"hosts\");\n printNestedElement(pip, \"executors\");\n \n // Experiment Start\n \n // Experiment End\n \n // Determine all Sources\n List<IDecisionVariable> sources = new ArrayList<IDecisionVariable>();\n IDecisionVariable sourcesVar = pip.getNestedElement(\"sources\");\n int amountOfSources = sourcesVar.getNestedElementsCount();\n for (int i = 0; i < amountOfSources; i++) {\n sources.add(nestedElement2IDecisionVariable(sourcesVar.getNestedElement(i), configuration));\n }\n \n // For all bolts\n List<IDecisionVariable> bolts = new ArrayList<IDecisionVariable>();\n for (IDecisionVariable source : sources) {\n visitAllSuccessors(source, configuration, bolts);\n }\n \n }", "public String getConfiguration(){\n\t\treturn this.config;\n\t}", "public Map<String, Object> getRunParams() {\n return this.runParams;\n }", "public JobLogParserConfiguration() {\r\n\r\n produceRegularExpressions();\r\n compilePattern();\r\n }", "public String getPipelineExecutionArn() {\n return this.pipelineExecutionArn;\n }", "public CompositeConfiguration getConfiguration() {\n return _configuration;\n }", "public String getConfiguration()\r\n\t{\r\n\t\treturn _configuration; \r\n\t}", "public abstract CONFIG build();", "@SuppressWarnings(\"unchecked\")\n private void setFlowConfig(Flow f, int parallelismIndex) {\n\n if (f instanceof PhysicalExecutionFlow) {\n PhysicalExecutionFlow<?, FlowConfig> flow = (PhysicalExecutionFlow<?, FlowConfig>) f;\n if (flow.getAction() instanceof SourceAction) {\n SourceConfig config = new SourceConfig();\n config.setEnumeratorTask(\n enumeratorTaskIDMap.get((SourceAction<?, ?, ?>) flow.getAction()));\n flow.setConfig(config);\n } else if (flow.getAction() instanceof SinkAction) {\n SinkConfig config = new SinkConfig();\n if (committerTaskIDMap.containsKey((SinkAction<?, ?, ?, ?>) flow.getAction())) {\n config.setContainCommitter(true);\n config.setCommitterTask(\n committerTaskIDMap.get((SinkAction<?, ?, ?, ?>) flow.getAction()));\n }\n flow.setConfig(config);\n }\n } else if (f instanceof IntermediateExecutionFlow) {\n ((IntermediateExecutionFlow<IntermediateQueueConfig>) f)\n .setConfig(\n new IntermediateQueueConfig(\n ((IntermediateExecutionFlow<?>) f).getQueue().getId()));\n } else {\n throw new UnknownFlowException(f);\n }\n\n if (!f.getNext().isEmpty()) {\n f.getNext().forEach(n -> setFlowConfig(n, parallelismIndex));\n }\n }", "abstract public Map<ScrapMode, List<String>> getScrapConfigurations();", "public ExecutionType executionType() {\n return this.executionType;\n }", "protected T getConfigurationByCommandline() {\n\t\t\n\t\tT result = null;\n\t\t\n\t\tString[] args = this.commandLineArguments; \n\t\t\n\t\tif (args == null) {\n\t\t\tthrow new NullPointerException(\"Command line arguments have not been set in factory!\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tresult = (T) CliFactory.parseArguments(\n\t\t\t\tthis.configurationInterface, args\n\t\t\t);\n\t\t} catch (ArgumentValidationException e) {\n\t\t\tthrow new ConfigurationException(e.getMessage());\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public SlopeOneConfiguration getConfiguration() { return configuration; }", "@Override\n public int getExecutionIndex()\n {\n return executionIndex;\n }", "public ConfigurationHolder getConfiguration() {\n return this.cfg;\n }", "public DescribePipelineExecutionResult withParallelismConfiguration(ParallelismConfiguration parallelismConfiguration) {\n setParallelismConfiguration(parallelismConfiguration);\n return this;\n }", "protected Configuration getConfiguration(){\n return configuration;\n }", "public Configuration getConfiguration() {\n return configuration;\n }", "public Configuration getConfiguration() {\n return configuration;\n }", "public Configuration getConfiguration() {\n return configuration;\n }", "public Configuration getConfiguration() {\n return configuration;\n }", "public List<UtteranceProcessorConfig> getProcessorConfigs() {\n return processorConfigs;\n }", "public Configuration getConfiguration() {\n return config;\n }", "public Configuration getConfiguration() {\n return config;\n }", "protected Configuration getConfiguration() {\n return configuration;\n }", "public IProjectConfiguration getConfiguration()\n {\n return new ProjectConfiguration(mProject, mCheckConfigs, mFileSets, mFilters,\n mUseSimpleConfig);\n }", "@Override\n public boolean hasAdditionalConfig() { return true; }", "public ArtifactConfigOutput getArtifactConfig() {\n return this.artifactConfig;\n }", "@Override\n public synchronized ListenableSet getExecutorSet(EngineManagementProtos.EngineId engineId,\n EngineManagementProtos.SubEngineId subEngineId) {\n if (executorSet == null) {\n ServiceSet serviceSet = coordinator.get().getServiceSet(Role.EXECUTOR);\n if (serviceSet != null) {\n // Read dremio check option at first call to this method.\n // If dremio check option is changed, coordinator needs to be restarted.\n isVersionCheckEnabled = optionManagerProvider.get().getOption(ExecutorSetService.DREMIO_VERSION_CHECK);\n executorSet = isVersionCheckEnabled ? filterCompatibleExecutors(serviceSet) : serviceSet;\n }\n }\n return executorSet;\n }", "ConfigBlock getConfig();", "public String getPipelineExecutionDisplayName() {\n return this.pipelineExecutionDisplayName;\n }", "public Executor getExecutor() {\n return executor;\n }", "protected List<String> configurationArguments() {\n List<String> args = new ArrayList<String>();\n return args;\n }", "public String getConfiguration() {\n return this.configuration;\n }", "@Override\n public boolean getDeclarativelyConfigured() {\n return declarativelyConfigured_;\n }", "public int getProcessingMode() {\n return processingMode ;\n }", "public Integer getNumberOfActiveRunners(){\n return numberOfActiveRunners;\n }", "public Executor getExecutor() {\n return execution.getExecutor();\n }", "@Override\n public List<Map<String, String>> taskConfigs(int i) {\n\n throw new UnsupportedOperationException(\"This has not been implemented.\");\n }", "public Configuration c() {\n return configuration;\n }", "public interface ViewExecutionOptions {\n \n /**\n * Gets the cycle execution sequence.\n * \n * @return the cycle execution sequence, not null\n */\n ViewCycleExecutionSequence getExecutionSequence();\n \n /**\n * Gets the set of flags defining aspects of the execution behaviour in relation to the execution options.\n * \n * @return the set of flags, not null\n */\n EnumSet<ViewExecutionFlags> getFlags();\n \n /**\n * Gets the maximum number of delta cycles following a full computation cycles.\n * \n * @return the maximum number of delta cycles following a full computation cycle, null for no limit\n */\n Integer getMaxSuccessiveDeltaCycles();\n \n /**\n * Gets the default execution options.\n * \n * @return the default execution options, null if not specified\n */\n ViewCycleExecutionOptions getDefaultExecutionOptions();\n \n /**\n * Gets the version-correction to apply during execution.\n * <p>\n * The version-correction affects the data used by the running view process. If the version-correction has either the\n * version or correction set to 'latest' then the view process will track real-time changes to any data on which it\n * depends. \n * \n * @return the version-correction, not null\n */\n VersionCorrection getVersionCorrection();\n \n}", "public Pipeline getPipeline(){\n return pipeline;\n }" ]
[ "0.7402138", "0.6254402", "0.6034317", "0.55442786", "0.54932356", "0.5483211", "0.5462499", "0.5360997", "0.53189987", "0.52918625", "0.528882", "0.5287964", "0.5225324", "0.5225186", "0.52161944", "0.52159625", "0.52032", "0.5176339", "0.5160866", "0.51470923", "0.51470923", "0.51470923", "0.51470923", "0.51293397", "0.51204675", "0.5100654", "0.50962967", "0.50907874", "0.5087966", "0.5075443", "0.50630903", "0.5021883", "0.49909064", "0.49754742", "0.4965688", "0.4940211", "0.49351683", "0.4929713", "0.48922458", "0.48888364", "0.48872453", "0.48777327", "0.4865778", "0.4846866", "0.4839937", "0.48203346", "0.4817485", "0.48161253", "0.4796502", "0.47839296", "0.47710535", "0.4770476", "0.4760742", "0.4755799", "0.4753368", "0.47438186", "0.47245124", "0.47157195", "0.47028193", "0.46954226", "0.46897164", "0.46873385", "0.46841437", "0.4681383", "0.46809113", "0.46775368", "0.4669966", "0.46638128", "0.46636808", "0.46616092", "0.46608528", "0.46606043", "0.4658021", "0.46565327", "0.46558473", "0.46479046", "0.46479046", "0.46479046", "0.46479046", "0.4635531", "0.46354604", "0.46354604", "0.4622098", "0.46161136", "0.46107608", "0.46072903", "0.46059966", "0.45999262", "0.45943895", "0.45943028", "0.4592971", "0.45917988", "0.45913148", "0.45858037", "0.45852476", "0.4581697", "0.4581654", "0.45816234", "0.45777565", "0.45771945" ]
0.64401966
1
The selective execution configuration applied to the pipeline run.
public SelectiveExecutionConfig getSelectiveExecutionConfig() { return this.selectiveExecutionConfig; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSelectiveExecutionConfig(SelectiveExecutionConfig selectiveExecutionConfig) {\n this.selectiveExecutionConfig = selectiveExecutionConfig;\n }", "public DescribePipelineExecutionResult withSelectiveExecutionConfig(SelectiveExecutionConfig selectiveExecutionConfig) {\n setSelectiveExecutionConfig(selectiveExecutionConfig);\n return this;\n }", "public WorkflowExecutionConfiguration getExecutionConfiguration() {\n return executionConfiguration;\n }", "public abstract IOpipeConfiguration config();", "public Object\tgetConfiguration();", "public PipelineConfig() {\n super();\n }", "@DISPID(23)\n\t// = 0x17. The runtime will prefer the VTID if present\n\t@VTID(34)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject executionSettings();", "public Configuration() {\r\n\t\t\tmaxEffectiveWorker = (Runtime.getRuntime().availableProcessors()*3/2) + 2;\r\n\t\t\tmaxPhysicalWorker = Math.max(32, (maxEffectiveWorker * 2) + 2);\r\n\t\t}", "@Override\n protected PreprocessingConfig getPreprocessingConfig() {\n PreprocessingConfig config = super.getPreprocessingConfig();\n config.put(TargetEncoding.CONFIG_PREPARE_CV_ONLY, aml().isCVEnabled()); \n return config;\n }", "ViewCycleExecutionOptions getDefaultExecutionOptions();", "public abstract Configuration configuration();", "@Parameterized.Parameters(name = \"Execution mode = {0}\")\n public static Collection<Object[]> executionModes() {\n return Arrays.asList(\n new Object[] {TestExecutionMode.CLUSTER},\n new Object[] {TestExecutionMode.COLLECTION});\n }", "public RunConfiguration[] getRunConfigurations()\n\t{\n\t\treturn runConfigurations;\n\t}", "protected WorkloadConfiguration getConfguration() {\n\t\treturn workloadConfiguration;\n\t}", "public SimpleXMLPipelineConfiguration() {\n configurations = new HashMap();\n }", "public String getPipelineExecutionDescription() {\n return this.pipelineExecutionDescription;\n }", "public interface StageConfig extends Config<StageConfig> {\r\n\r\n /**\r\n * Get the name of the stage\r\n * @return Name of the stage\r\n */\r\n String getStageName();\r\n\r\n /**\r\n * Get the fully-qualified class the stage is an instance of\r\n * @return\r\n */\r\n String getStageClass();\r\n\r\n /**\r\n * Get name for the StageExecutionMode to be used for this stage. This should\r\n * be the name of the enum (e.g. NEXT_DOC, NEXT_STAGE, etc..) It is used to\r\n * instantiate the enum from a serialized configuration.\r\n * @return Name for the StageExecutionMode\r\n */\r\n String getStageExceptionModeClass();\r\n\r\n /**\r\n * Get StageExecutionMode for the Stage. If stage does not set this explicitly,\r\n * the stageExecutionMode setting for the pipeline will be applied.\r\n * @return StageExecutionMode instance\r\n */\r\n StageExceptionMode getStageExceptionMode();\r\n\r\n /**\r\n * Set the StageExecutionMode for this stage to the specified value. If stage\r\n * does not set this explicitly, the stageExecutionMode setting for the pipeline\r\n * will be applied.\r\n * @param mode StageExceptionMode to apply\r\n */\r\n void setStageExceptionMode(StageExceptionMode mode);\r\n}", "public ParallelismConfiguration getParallelismConfiguration() {\n return this.parallelismConfiguration;\n }", "protected WorkloadConfiguration getWorkloadConfiguration() {\n\t\treturn workloadConfiguration;\n\t}", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "protected OeTemplateProcessorConfig getConfig() {\n final OeTemplateProcessorConfig config = OeTemplateProcessorConfig.create();\n config\n //.setPollingIntervalMillis(1000)\n //.setPollingMaxDurationSecs(5)\n //.setResultsBatchSize(100)\n .getInferenceParameterOverrides()\n .setMaxAnswerCount(MAX_ANSWERS);\n return config;\n }", "public Map<String, Object> getSelectedConfiguration() {\n\t\treturn loader.<TemplateController>getController().getSelectedConfiguration();\n\t}", "public Configuration getConfiguration() {\n return configurationParameter.getConfiguration();\n }", "public CommonExportProperties runSettings() {\n return this.runSettings;\n }", "@Override\n public Map<String, ConfiguredVariableItem> getConfiguration() {\n return config;\n }", "public ChainOfSelectors() {\n this(Genotype.getStaticConfiguration());\n }", "protected Configuration getConfiguration() {\n return variable.getConfiguration();\n }", "@Configuration\n public Option[] configuration() {\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.sling\", \"org.apache.sling.distribution.core\");\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.sling\", \"org.apache.sling.distribution.api\");\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.jackrabbit.vault\",\"org.apache.jackrabbit.vault\");\n return new Option[]{\n baseConfiguration(),\n slingQuickstart(),\n logback(),\n // build artifact\n slingDistribution(),\n // testing\n defaultOsgiConfigs(),\n SlingOptions.webconsole(),\n CoreOptions.mavenBundle(\"org.apache.felix\", \"org.apache.felix.webconsole.plugins.ds\", \"2.0.8\"),\n junitBundles()\n };\n }", "public IConfigurationElement getCommandLineGeneratorElement();", "public String getPipelineExecutionStatus() {\n return this.pipelineExecutionStatus;\n }", "public ReportConfig getConfiguration() {\r\n return predecessor.getConfiguration();\r\n }", "protected AlgorithmConfiguration getSettings() {\n return new AlgorithmConfiguration(m_SplitMethod, m_unbiasedEstimate,\n m_kBEPPConstant, m_useBagCount, m_bagInstanceMultiplier,\n m_AttributesToSplit, m_AttributeSplitChoices);\n }", "public void execute(DelegateExecution ex) throws Exception {\n\t\tString gotsid = getVar(ex, \"gotsid\");\n\t\tString name = getVar(ex, \"name\");\n\t\tString pipeline_name = getVar(ex, \"pipeline_name\");\n\t\tString submodule_name = getVar(ex, \"submodule_name\");\n\t\tString process_name = getVar(ex, \"processName\");\n\t\tString pipelineId = getVar(ex, \"pipeline_id\");\n\t\tString index = getVar(ex, \"array_indexer\");\n\t\tex.setVariable(\"reviewSubmodule\", \"false\");\n\t\tex.setVariable(\"refreshRate\", Database.getSystemConfig(\"jenkinsRefreshRate\").toString());\n\t\tex.setVariable(\"associated\", Database.isAssociated(gotsid));\n\t\tString info = \"Beginning\";\n\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name, \"GetConfig\",\n\t\t\t\t\"execute\", info);\n\t\tString deployName = Database.getVariableWithIndex(gotsid, name, pipeline_name, submodule_name, \"global\",\n\t\t\t\t\"deploymentName\", index);\n\n\t\t// Get the config attributes and values by index\n\t\tMap results = Database.getConfigAttributesByIndex(gotsid, name, pipeline_name, submodule_name, process_name,\n\t\t\t\tindex);\n\t\tif (!process_name.equals(\"RequestBuild\")) {\n\t\t\tinfo = \"The \\\"\" + Database.getProcessNameLabel(process_name) + \"\\\" phase for the deployment (\" + deployName + \") in the \"\n\t\t\t\t\t+ Database.getSubmoduleNameLabel(submodule_name) + \" stage has started.\";\n\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t}\n\n\t\t// Set each attribute's value during execution.\n\t\tIterator it = results.entrySet().iterator();\n\t\tboolean automatic = false;\n\t\twhile (it.hasNext()) {\n\t\t\tMap.Entry pair = (Map.Entry) it.next();\n\t\t\tString attribute_name = pair.getKey().toString().trim();\n\t\t\tString attribute_value = pair.getValue().toString().trim();\n\t\t\tif (attribute_name.equals(\"assignTo\") && (attribute_value == null || attribute_value.isEmpty())) {\n\t\t\t\tex.setVariable(\"assignTo\", AAFConnector.getAdminList(gotsid));\n\t\t\t} else if (attribute_name.equals(\"enableApproval\")\n\t\t\t\t\t&& (attribute_value == null || attribute_value.isEmpty() || attribute_value.equals(\"false\"))) {\n\t\t\t\tex.setVariable(\"isApproved\", true);\n\t\t\t\tex.setVariable(attribute_name, \"false\");\n\t\t\t\tinfo = \"The \\\"\" + Database.getProcessNameLabel(process_name) + \"\\\" approval process has been disabled in the \"\n\t\t\t\t\t\t+ Database.getSubmoduleNameLabel(submodule_name) + \" stage. This step has been skipped.\";\n\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t\t\tinfo = \"Setting \" + attribute_name + \" = \" + attribute_value;\n\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\"GetConfig\", \"execute\", info);\n\t\t\t} else {\n\t\t\t\tif (attribute_name.equals(\"enableApproval\")) {\n\t\t\t\t\tinfo = \"The \\\"\" + Database.getProcessNameLabel(process_name) + \"\\\" approval process has been enabled in the \"\n\t\t\t\t\t\t\t+ Database.getSubmoduleNameLabel(submodule_name) + \" stage for the deployment configuration (\" + deployName + \").\";\n\t\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t\t\t}\n\t\t\t\tex.setVariable(attribute_name, attribute_value);\n\t\t\t\tinfo = \"Setting \" + attribute_name + \" = \" + attribute_value;\n\t\t\t\tif (attribute_name.equals(\"automatic\") && attribute_value.equals(\"true\")) {\n\t\t\t\t\tautomatic = true;\n\t\t\t\t\tinfo = \"The \" + Database.getSubmoduleNameLabel(submodule_name) + \" phase for the deployment (\" + deployName\n\t\t\t\t\t\t\t+ \") has been configured to be handled automatically. Starting the automatic build and/or deployment process. Please wait...\";\n\t\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t\t\t}\n\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\"GetConfig\", \"execute\", info);\n\t\t\t}\n\t\t}\n\n\t\t// Set process description\n\t\tif (automatic) {\n\t\t\tString description = Database.getDescription(\"descriptionAutomatic\", pipeline_name, submodule_name,\n\t\t\t\t\tprocess_name);\n\t\t\tString deployname = Database.getVariableWithIndex(gotsid, name, pipeline_name, submodule_name, \"global\",\n\t\t\t\t\t\"deploymentName\", index);\n\t\t\tString newDescription = description.replaceAll(Pattern.quote(\"((deployname))\"), deployname);\n\t\t\tex.setVariable(\"processDescription\", newDescription);\n\t\t} else {\n\t\t\tString description = Database.getDescription(\"description\", pipeline_name, submodule_name, process_name);\n\t\t\tString deployname = Database.getVariableWithIndex(gotsid, name, pipeline_name, submodule_name, \"global\",\n\t\t\t\t\t\"deploymentName\", index);\n\t\t\tString newDescription = description.replaceAll(Pattern.quote(\"((deployname))\"), deployname);\n\t\t\tex.setVariable(\"processDescription\", newDescription);\n\t\t}\n\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name, \"GetConfig\",\n\t\t\t\t\"execute\", \"End\");\n\t}", "boolean hasPipelineRunContext();", "public ViewConfiguration invoke() {\n return ViewConfiguration.get(this.f64333a);\n }", "public ComponentConfiguration getConfiguration();", "public StepConfig getConfig() {\n StepConfig stepConfig = new StepConfig();\n stepConfig.setEnableTickCallback(true);\n stepConfig.setRunningPeriodicDelay(5);//10 Seconds\n stepConfig.setMonitorEnabledForStep(true);\n stepConfig.setRunningPeriodicDelayUnit(TimeUnit.SECONDS);\n stepConfig.setMonitorEmmitTimeout(10);\n return stepConfig;\n }", "public String getStrPipelineConfFile() {\n return strPipelineConfFile;\n }", "C getConfiguration();", "public Set<Configuration> getSelected() {\n\t\treturn selected;\n\t}", "public Parameters getConfigParameters();", "protected abstract String getCommandLine() throws ConfigException;", "public String getExecutionArgs() {\n\t\treturn null;\n\t}", "public boolean isSelectedConfigProfilingRBtn() {\n\t\treturn configProfilingCondSetRBtn.isSelected();\n\t}", "public ExperimentationConfiguration getExperimentationConfiguration() {\n return new ExperimentationConfiguration(this.applicationContext);\n }", "public Config() {\n\t\tlambda = 5.0;\n\t\tnu = 1.3;\n\t\tlimit = 0.0001;\n\t\titerationLimit = 0;\n\t }", "public RunConfigDataNode getCurrConfig() {\n\t\treturn currConfig;\n\t}", "public String getEvaluationCondition()\r\n {\r\n return evaluationCondition;\r\n }", "@java.lang.Override\n public com.google.protobuf.Any getConfiguration() {\n return configuration_ == null ? com.google.protobuf.Any.getDefaultInstance() : configuration_;\n }", "public String getConfiguration() {\r\n\t\treturn configuration;\r\n\t}", "public p getConfig() {\n return c.K();\n }", "public String getConfiguration() {\n return configuration;\n }", "@java.lang.Override\n public com.google.protobuf.AnyOrBuilder getConfigurationOrBuilder() {\n return getConfiguration();\n }", "public int getExecutionType() {\n\t\treturn 0;\n\t}", "public AwsAthenaWorkGroupConfigurationResultConfigurationDetails getResultConfiguration() {\n return this.resultConfiguration;\n }", "private void printConfigInfo(Configuration configuration, String pipelineName) throws IOException, ValueDoesNotMatchTypeException {\n IDecisionVariable pip = PipelineHelper.obtainPipelineByName(configuration, \"SwitchPip\");\n printNestedElement(pip, \"numworkers\");\n printNestedElement(pip, \"hosts\");\n printNestedElement(pip, \"executors\");\n \n // Experiment Start\n \n // Experiment End\n \n // Determine all Sources\n List<IDecisionVariable> sources = new ArrayList<IDecisionVariable>();\n IDecisionVariable sourcesVar = pip.getNestedElement(\"sources\");\n int amountOfSources = sourcesVar.getNestedElementsCount();\n for (int i = 0; i < amountOfSources; i++) {\n sources.add(nestedElement2IDecisionVariable(sourcesVar.getNestedElement(i), configuration));\n }\n \n // For all bolts\n List<IDecisionVariable> bolts = new ArrayList<IDecisionVariable>();\n for (IDecisionVariable source : sources) {\n visitAllSuccessors(source, configuration, bolts);\n }\n \n }", "public String getConfiguration(){\n\t\treturn this.config;\n\t}", "public Map<String, Object> getRunParams() {\n return this.runParams;\n }", "public JobLogParserConfiguration() {\r\n\r\n produceRegularExpressions();\r\n compilePattern();\r\n }", "public String getPipelineExecutionArn() {\n return this.pipelineExecutionArn;\n }", "public CompositeConfiguration getConfiguration() {\n return _configuration;\n }", "public String getConfiguration()\r\n\t{\r\n\t\treturn _configuration; \r\n\t}", "public abstract CONFIG build();", "@SuppressWarnings(\"unchecked\")\n private void setFlowConfig(Flow f, int parallelismIndex) {\n\n if (f instanceof PhysicalExecutionFlow) {\n PhysicalExecutionFlow<?, FlowConfig> flow = (PhysicalExecutionFlow<?, FlowConfig>) f;\n if (flow.getAction() instanceof SourceAction) {\n SourceConfig config = new SourceConfig();\n config.setEnumeratorTask(\n enumeratorTaskIDMap.get((SourceAction<?, ?, ?>) flow.getAction()));\n flow.setConfig(config);\n } else if (flow.getAction() instanceof SinkAction) {\n SinkConfig config = new SinkConfig();\n if (committerTaskIDMap.containsKey((SinkAction<?, ?, ?, ?>) flow.getAction())) {\n config.setContainCommitter(true);\n config.setCommitterTask(\n committerTaskIDMap.get((SinkAction<?, ?, ?, ?>) flow.getAction()));\n }\n flow.setConfig(config);\n }\n } else if (f instanceof IntermediateExecutionFlow) {\n ((IntermediateExecutionFlow<IntermediateQueueConfig>) f)\n .setConfig(\n new IntermediateQueueConfig(\n ((IntermediateExecutionFlow<?>) f).getQueue().getId()));\n } else {\n throw new UnknownFlowException(f);\n }\n\n if (!f.getNext().isEmpty()) {\n f.getNext().forEach(n -> setFlowConfig(n, parallelismIndex));\n }\n }", "abstract public Map<ScrapMode, List<String>> getScrapConfigurations();", "public ExecutionType executionType() {\n return this.executionType;\n }", "protected T getConfigurationByCommandline() {\n\t\t\n\t\tT result = null;\n\t\t\n\t\tString[] args = this.commandLineArguments; \n\t\t\n\t\tif (args == null) {\n\t\t\tthrow new NullPointerException(\"Command line arguments have not been set in factory!\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tresult = (T) CliFactory.parseArguments(\n\t\t\t\tthis.configurationInterface, args\n\t\t\t);\n\t\t} catch (ArgumentValidationException e) {\n\t\t\tthrow new ConfigurationException(e.getMessage());\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public SlopeOneConfiguration getConfiguration() { return configuration; }", "@Override\n public int getExecutionIndex()\n {\n return executionIndex;\n }", "public ConfigurationHolder getConfiguration() {\n return this.cfg;\n }", "public DescribePipelineExecutionResult withParallelismConfiguration(ParallelismConfiguration parallelismConfiguration) {\n setParallelismConfiguration(parallelismConfiguration);\n return this;\n }", "protected Configuration getConfiguration(){\n return configuration;\n }", "public Configuration getConfiguration() {\n return configuration;\n }", "public Configuration getConfiguration() {\n return configuration;\n }", "public Configuration getConfiguration() {\n return configuration;\n }", "public Configuration getConfiguration() {\n return configuration;\n }", "public List<UtteranceProcessorConfig> getProcessorConfigs() {\n return processorConfigs;\n }", "public Configuration getConfiguration() {\n return config;\n }", "public Configuration getConfiguration() {\n return config;\n }", "protected Configuration getConfiguration() {\n return configuration;\n }", "public IProjectConfiguration getConfiguration()\n {\n return new ProjectConfiguration(mProject, mCheckConfigs, mFileSets, mFilters,\n mUseSimpleConfig);\n }", "@Override\n public boolean hasAdditionalConfig() { return true; }", "public ArtifactConfigOutput getArtifactConfig() {\n return this.artifactConfig;\n }", "@Override\n public synchronized ListenableSet getExecutorSet(EngineManagementProtos.EngineId engineId,\n EngineManagementProtos.SubEngineId subEngineId) {\n if (executorSet == null) {\n ServiceSet serviceSet = coordinator.get().getServiceSet(Role.EXECUTOR);\n if (serviceSet != null) {\n // Read dremio check option at first call to this method.\n // If dremio check option is changed, coordinator needs to be restarted.\n isVersionCheckEnabled = optionManagerProvider.get().getOption(ExecutorSetService.DREMIO_VERSION_CHECK);\n executorSet = isVersionCheckEnabled ? filterCompatibleExecutors(serviceSet) : serviceSet;\n }\n }\n return executorSet;\n }", "ConfigBlock getConfig();", "public String getPipelineExecutionDisplayName() {\n return this.pipelineExecutionDisplayName;\n }", "public Executor getExecutor() {\n return executor;\n }", "protected List<String> configurationArguments() {\n List<String> args = new ArrayList<String>();\n return args;\n }", "public String getConfiguration() {\n return this.configuration;\n }", "@Override\n public boolean getDeclarativelyConfigured() {\n return declarativelyConfigured_;\n }", "public int getProcessingMode() {\n return processingMode ;\n }", "public Integer getNumberOfActiveRunners(){\n return numberOfActiveRunners;\n }", "public Executor getExecutor() {\n return execution.getExecutor();\n }", "@Override\n public List<Map<String, String>> taskConfigs(int i) {\n\n throw new UnsupportedOperationException(\"This has not been implemented.\");\n }", "public Configuration c() {\n return configuration;\n }", "public interface ViewExecutionOptions {\n \n /**\n * Gets the cycle execution sequence.\n * \n * @return the cycle execution sequence, not null\n */\n ViewCycleExecutionSequence getExecutionSequence();\n \n /**\n * Gets the set of flags defining aspects of the execution behaviour in relation to the execution options.\n * \n * @return the set of flags, not null\n */\n EnumSet<ViewExecutionFlags> getFlags();\n \n /**\n * Gets the maximum number of delta cycles following a full computation cycles.\n * \n * @return the maximum number of delta cycles following a full computation cycle, null for no limit\n */\n Integer getMaxSuccessiveDeltaCycles();\n \n /**\n * Gets the default execution options.\n * \n * @return the default execution options, null if not specified\n */\n ViewCycleExecutionOptions getDefaultExecutionOptions();\n \n /**\n * Gets the version-correction to apply during execution.\n * <p>\n * The version-correction affects the data used by the running view process. If the version-correction has either the\n * version or correction set to 'latest' then the view process will track real-time changes to any data on which it\n * depends. \n * \n * @return the version-correction, not null\n */\n VersionCorrection getVersionCorrection();\n \n}", "public Pipeline getPipeline(){\n return pipeline;\n }" ]
[ "0.64401966", "0.6254402", "0.6034317", "0.55442786", "0.54932356", "0.5483211", "0.5462499", "0.5360997", "0.53189987", "0.52918625", "0.528882", "0.5287964", "0.5225324", "0.5225186", "0.52161944", "0.52159625", "0.52032", "0.5176339", "0.5160866", "0.51470923", "0.51470923", "0.51470923", "0.51470923", "0.51293397", "0.51204675", "0.5100654", "0.50962967", "0.50907874", "0.5087966", "0.5075443", "0.50630903", "0.5021883", "0.49909064", "0.49754742", "0.4965688", "0.4940211", "0.49351683", "0.4929713", "0.48922458", "0.48888364", "0.48872453", "0.48777327", "0.4865778", "0.4846866", "0.4839937", "0.48203346", "0.4817485", "0.48161253", "0.4796502", "0.47839296", "0.47710535", "0.4770476", "0.4760742", "0.4755799", "0.4753368", "0.47438186", "0.47245124", "0.47157195", "0.47028193", "0.46954226", "0.46897164", "0.46873385", "0.46841437", "0.4681383", "0.46809113", "0.46775368", "0.4669966", "0.46638128", "0.46636808", "0.46616092", "0.46608528", "0.46606043", "0.4658021", "0.46565327", "0.46558473", "0.46479046", "0.46479046", "0.46479046", "0.46479046", "0.4635531", "0.46354604", "0.46354604", "0.4622098", "0.46161136", "0.46107608", "0.46072903", "0.46059966", "0.45999262", "0.45943895", "0.45943028", "0.4592971", "0.45917988", "0.45913148", "0.45858037", "0.45852476", "0.4581697", "0.4581654", "0.45816234", "0.45777565", "0.45771945" ]
0.7402138
0
The selective execution configuration applied to the pipeline run.
public DescribePipelineExecutionResult withSelectiveExecutionConfig(SelectiveExecutionConfig selectiveExecutionConfig) { setSelectiveExecutionConfig(selectiveExecutionConfig); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SelectiveExecutionConfig getSelectiveExecutionConfig() {\n return this.selectiveExecutionConfig;\n }", "public void setSelectiveExecutionConfig(SelectiveExecutionConfig selectiveExecutionConfig) {\n this.selectiveExecutionConfig = selectiveExecutionConfig;\n }", "public WorkflowExecutionConfiguration getExecutionConfiguration() {\n return executionConfiguration;\n }", "public abstract IOpipeConfiguration config();", "public Object\tgetConfiguration();", "public PipelineConfig() {\n super();\n }", "@DISPID(23)\n\t// = 0x17. The runtime will prefer the VTID if present\n\t@VTID(34)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject executionSettings();", "public Configuration() {\r\n\t\t\tmaxEffectiveWorker = (Runtime.getRuntime().availableProcessors()*3/2) + 2;\r\n\t\t\tmaxPhysicalWorker = Math.max(32, (maxEffectiveWorker * 2) + 2);\r\n\t\t}", "@Override\n protected PreprocessingConfig getPreprocessingConfig() {\n PreprocessingConfig config = super.getPreprocessingConfig();\n config.put(TargetEncoding.CONFIG_PREPARE_CV_ONLY, aml().isCVEnabled()); \n return config;\n }", "ViewCycleExecutionOptions getDefaultExecutionOptions();", "public abstract Configuration configuration();", "@Parameterized.Parameters(name = \"Execution mode = {0}\")\n public static Collection<Object[]> executionModes() {\n return Arrays.asList(\n new Object[] {TestExecutionMode.CLUSTER},\n new Object[] {TestExecutionMode.COLLECTION});\n }", "public RunConfiguration[] getRunConfigurations()\n\t{\n\t\treturn runConfigurations;\n\t}", "protected WorkloadConfiguration getConfguration() {\n\t\treturn workloadConfiguration;\n\t}", "public SimpleXMLPipelineConfiguration() {\n configurations = new HashMap();\n }", "public String getPipelineExecutionDescription() {\n return this.pipelineExecutionDescription;\n }", "public interface StageConfig extends Config<StageConfig> {\r\n\r\n /**\r\n * Get the name of the stage\r\n * @return Name of the stage\r\n */\r\n String getStageName();\r\n\r\n /**\r\n * Get the fully-qualified class the stage is an instance of\r\n * @return\r\n */\r\n String getStageClass();\r\n\r\n /**\r\n * Get name for the StageExecutionMode to be used for this stage. This should\r\n * be the name of the enum (e.g. NEXT_DOC, NEXT_STAGE, etc..) It is used to\r\n * instantiate the enum from a serialized configuration.\r\n * @return Name for the StageExecutionMode\r\n */\r\n String getStageExceptionModeClass();\r\n\r\n /**\r\n * Get StageExecutionMode for the Stage. If stage does not set this explicitly,\r\n * the stageExecutionMode setting for the pipeline will be applied.\r\n * @return StageExecutionMode instance\r\n */\r\n StageExceptionMode getStageExceptionMode();\r\n\r\n /**\r\n * Set the StageExecutionMode for this stage to the specified value. If stage\r\n * does not set this explicitly, the stageExecutionMode setting for the pipeline\r\n * will be applied.\r\n * @param mode StageExceptionMode to apply\r\n */\r\n void setStageExceptionMode(StageExceptionMode mode);\r\n}", "public ParallelismConfiguration getParallelismConfiguration() {\n return this.parallelismConfiguration;\n }", "protected WorkloadConfiguration getWorkloadConfiguration() {\n\t\treturn workloadConfiguration;\n\t}", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "protected OeTemplateProcessorConfig getConfig() {\n final OeTemplateProcessorConfig config = OeTemplateProcessorConfig.create();\n config\n //.setPollingIntervalMillis(1000)\n //.setPollingMaxDurationSecs(5)\n //.setResultsBatchSize(100)\n .getInferenceParameterOverrides()\n .setMaxAnswerCount(MAX_ANSWERS);\n return config;\n }", "public Map<String, Object> getSelectedConfiguration() {\n\t\treturn loader.<TemplateController>getController().getSelectedConfiguration();\n\t}", "public Configuration getConfiguration() {\n return configurationParameter.getConfiguration();\n }", "public CommonExportProperties runSettings() {\n return this.runSettings;\n }", "@Override\n public Map<String, ConfiguredVariableItem> getConfiguration() {\n return config;\n }", "public ChainOfSelectors() {\n this(Genotype.getStaticConfiguration());\n }", "protected Configuration getConfiguration() {\n return variable.getConfiguration();\n }", "@Configuration\n public Option[] configuration() {\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.sling\", \"org.apache.sling.distribution.core\");\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.sling\", \"org.apache.sling.distribution.api\");\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.jackrabbit.vault\",\"org.apache.jackrabbit.vault\");\n return new Option[]{\n baseConfiguration(),\n slingQuickstart(),\n logback(),\n // build artifact\n slingDistribution(),\n // testing\n defaultOsgiConfigs(),\n SlingOptions.webconsole(),\n CoreOptions.mavenBundle(\"org.apache.felix\", \"org.apache.felix.webconsole.plugins.ds\", \"2.0.8\"),\n junitBundles()\n };\n }", "public IConfigurationElement getCommandLineGeneratorElement();", "public String getPipelineExecutionStatus() {\n return this.pipelineExecutionStatus;\n }", "public ReportConfig getConfiguration() {\r\n return predecessor.getConfiguration();\r\n }", "protected AlgorithmConfiguration getSettings() {\n return new AlgorithmConfiguration(m_SplitMethod, m_unbiasedEstimate,\n m_kBEPPConstant, m_useBagCount, m_bagInstanceMultiplier,\n m_AttributesToSplit, m_AttributeSplitChoices);\n }", "public void execute(DelegateExecution ex) throws Exception {\n\t\tString gotsid = getVar(ex, \"gotsid\");\n\t\tString name = getVar(ex, \"name\");\n\t\tString pipeline_name = getVar(ex, \"pipeline_name\");\n\t\tString submodule_name = getVar(ex, \"submodule_name\");\n\t\tString process_name = getVar(ex, \"processName\");\n\t\tString pipelineId = getVar(ex, \"pipeline_id\");\n\t\tString index = getVar(ex, \"array_indexer\");\n\t\tex.setVariable(\"reviewSubmodule\", \"false\");\n\t\tex.setVariable(\"refreshRate\", Database.getSystemConfig(\"jenkinsRefreshRate\").toString());\n\t\tex.setVariable(\"associated\", Database.isAssociated(gotsid));\n\t\tString info = \"Beginning\";\n\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name, \"GetConfig\",\n\t\t\t\t\"execute\", info);\n\t\tString deployName = Database.getVariableWithIndex(gotsid, name, pipeline_name, submodule_name, \"global\",\n\t\t\t\t\"deploymentName\", index);\n\n\t\t// Get the config attributes and values by index\n\t\tMap results = Database.getConfigAttributesByIndex(gotsid, name, pipeline_name, submodule_name, process_name,\n\t\t\t\tindex);\n\t\tif (!process_name.equals(\"RequestBuild\")) {\n\t\t\tinfo = \"The \\\"\" + Database.getProcessNameLabel(process_name) + \"\\\" phase for the deployment (\" + deployName + \") in the \"\n\t\t\t\t\t+ Database.getSubmoduleNameLabel(submodule_name) + \" stage has started.\";\n\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t}\n\n\t\t// Set each attribute's value during execution.\n\t\tIterator it = results.entrySet().iterator();\n\t\tboolean automatic = false;\n\t\twhile (it.hasNext()) {\n\t\t\tMap.Entry pair = (Map.Entry) it.next();\n\t\t\tString attribute_name = pair.getKey().toString().trim();\n\t\t\tString attribute_value = pair.getValue().toString().trim();\n\t\t\tif (attribute_name.equals(\"assignTo\") && (attribute_value == null || attribute_value.isEmpty())) {\n\t\t\t\tex.setVariable(\"assignTo\", AAFConnector.getAdminList(gotsid));\n\t\t\t} else if (attribute_name.equals(\"enableApproval\")\n\t\t\t\t\t&& (attribute_value == null || attribute_value.isEmpty() || attribute_value.equals(\"false\"))) {\n\t\t\t\tex.setVariable(\"isApproved\", true);\n\t\t\t\tex.setVariable(attribute_name, \"false\");\n\t\t\t\tinfo = \"The \\\"\" + Database.getProcessNameLabel(process_name) + \"\\\" approval process has been disabled in the \"\n\t\t\t\t\t\t+ Database.getSubmoduleNameLabel(submodule_name) + \" stage. This step has been skipped.\";\n\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t\t\tinfo = \"Setting \" + attribute_name + \" = \" + attribute_value;\n\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\"GetConfig\", \"execute\", info);\n\t\t\t} else {\n\t\t\t\tif (attribute_name.equals(\"enableApproval\")) {\n\t\t\t\t\tinfo = \"The \\\"\" + Database.getProcessNameLabel(process_name) + \"\\\" approval process has been enabled in the \"\n\t\t\t\t\t\t\t+ Database.getSubmoduleNameLabel(submodule_name) + \" stage for the deployment configuration (\" + deployName + \").\";\n\t\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t\t\t}\n\t\t\t\tex.setVariable(attribute_name, attribute_value);\n\t\t\t\tinfo = \"Setting \" + attribute_name + \" = \" + attribute_value;\n\t\t\t\tif (attribute_name.equals(\"automatic\") && attribute_value.equals(\"true\")) {\n\t\t\t\t\tautomatic = true;\n\t\t\t\t\tinfo = \"The \" + Database.getSubmoduleNameLabel(submodule_name) + \" phase for the deployment (\" + deployName\n\t\t\t\t\t\t\t+ \") has been configured to be handled automatically. Starting the automatic build and/or deployment process. Please wait...\";\n\t\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t\t\t}\n\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\"GetConfig\", \"execute\", info);\n\t\t\t}\n\t\t}\n\n\t\t// Set process description\n\t\tif (automatic) {\n\t\t\tString description = Database.getDescription(\"descriptionAutomatic\", pipeline_name, submodule_name,\n\t\t\t\t\tprocess_name);\n\t\t\tString deployname = Database.getVariableWithIndex(gotsid, name, pipeline_name, submodule_name, \"global\",\n\t\t\t\t\t\"deploymentName\", index);\n\t\t\tString newDescription = description.replaceAll(Pattern.quote(\"((deployname))\"), deployname);\n\t\t\tex.setVariable(\"processDescription\", newDescription);\n\t\t} else {\n\t\t\tString description = Database.getDescription(\"description\", pipeline_name, submodule_name, process_name);\n\t\t\tString deployname = Database.getVariableWithIndex(gotsid, name, pipeline_name, submodule_name, \"global\",\n\t\t\t\t\t\"deploymentName\", index);\n\t\t\tString newDescription = description.replaceAll(Pattern.quote(\"((deployname))\"), deployname);\n\t\t\tex.setVariable(\"processDescription\", newDescription);\n\t\t}\n\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name, \"GetConfig\",\n\t\t\t\t\"execute\", \"End\");\n\t}", "boolean hasPipelineRunContext();", "public ViewConfiguration invoke() {\n return ViewConfiguration.get(this.f64333a);\n }", "public ComponentConfiguration getConfiguration();", "public StepConfig getConfig() {\n StepConfig stepConfig = new StepConfig();\n stepConfig.setEnableTickCallback(true);\n stepConfig.setRunningPeriodicDelay(5);//10 Seconds\n stepConfig.setMonitorEnabledForStep(true);\n stepConfig.setRunningPeriodicDelayUnit(TimeUnit.SECONDS);\n stepConfig.setMonitorEmmitTimeout(10);\n return stepConfig;\n }", "public String getStrPipelineConfFile() {\n return strPipelineConfFile;\n }", "C getConfiguration();", "public Set<Configuration> getSelected() {\n\t\treturn selected;\n\t}", "public Parameters getConfigParameters();", "protected abstract String getCommandLine() throws ConfigException;", "public String getExecutionArgs() {\n\t\treturn null;\n\t}", "public boolean isSelectedConfigProfilingRBtn() {\n\t\treturn configProfilingCondSetRBtn.isSelected();\n\t}", "public ExperimentationConfiguration getExperimentationConfiguration() {\n return new ExperimentationConfiguration(this.applicationContext);\n }", "public Config() {\n\t\tlambda = 5.0;\n\t\tnu = 1.3;\n\t\tlimit = 0.0001;\n\t\titerationLimit = 0;\n\t }", "public RunConfigDataNode getCurrConfig() {\n\t\treturn currConfig;\n\t}", "public String getEvaluationCondition()\r\n {\r\n return evaluationCondition;\r\n }", "@java.lang.Override\n public com.google.protobuf.Any getConfiguration() {\n return configuration_ == null ? com.google.protobuf.Any.getDefaultInstance() : configuration_;\n }", "public String getConfiguration() {\r\n\t\treturn configuration;\r\n\t}", "public p getConfig() {\n return c.K();\n }", "public String getConfiguration() {\n return configuration;\n }", "@java.lang.Override\n public com.google.protobuf.AnyOrBuilder getConfigurationOrBuilder() {\n return getConfiguration();\n }", "public int getExecutionType() {\n\t\treturn 0;\n\t}", "public AwsAthenaWorkGroupConfigurationResultConfigurationDetails getResultConfiguration() {\n return this.resultConfiguration;\n }", "private void printConfigInfo(Configuration configuration, String pipelineName) throws IOException, ValueDoesNotMatchTypeException {\n IDecisionVariable pip = PipelineHelper.obtainPipelineByName(configuration, \"SwitchPip\");\n printNestedElement(pip, \"numworkers\");\n printNestedElement(pip, \"hosts\");\n printNestedElement(pip, \"executors\");\n \n // Experiment Start\n \n // Experiment End\n \n // Determine all Sources\n List<IDecisionVariable> sources = new ArrayList<IDecisionVariable>();\n IDecisionVariable sourcesVar = pip.getNestedElement(\"sources\");\n int amountOfSources = sourcesVar.getNestedElementsCount();\n for (int i = 0; i < amountOfSources; i++) {\n sources.add(nestedElement2IDecisionVariable(sourcesVar.getNestedElement(i), configuration));\n }\n \n // For all bolts\n List<IDecisionVariable> bolts = new ArrayList<IDecisionVariable>();\n for (IDecisionVariable source : sources) {\n visitAllSuccessors(source, configuration, bolts);\n }\n \n }", "public String getConfiguration(){\n\t\treturn this.config;\n\t}", "public Map<String, Object> getRunParams() {\n return this.runParams;\n }", "public JobLogParserConfiguration() {\r\n\r\n produceRegularExpressions();\r\n compilePattern();\r\n }", "public String getPipelineExecutionArn() {\n return this.pipelineExecutionArn;\n }", "public CompositeConfiguration getConfiguration() {\n return _configuration;\n }", "public String getConfiguration()\r\n\t{\r\n\t\treturn _configuration; \r\n\t}", "public abstract CONFIG build();", "@SuppressWarnings(\"unchecked\")\n private void setFlowConfig(Flow f, int parallelismIndex) {\n\n if (f instanceof PhysicalExecutionFlow) {\n PhysicalExecutionFlow<?, FlowConfig> flow = (PhysicalExecutionFlow<?, FlowConfig>) f;\n if (flow.getAction() instanceof SourceAction) {\n SourceConfig config = new SourceConfig();\n config.setEnumeratorTask(\n enumeratorTaskIDMap.get((SourceAction<?, ?, ?>) flow.getAction()));\n flow.setConfig(config);\n } else if (flow.getAction() instanceof SinkAction) {\n SinkConfig config = new SinkConfig();\n if (committerTaskIDMap.containsKey((SinkAction<?, ?, ?, ?>) flow.getAction())) {\n config.setContainCommitter(true);\n config.setCommitterTask(\n committerTaskIDMap.get((SinkAction<?, ?, ?, ?>) flow.getAction()));\n }\n flow.setConfig(config);\n }\n } else if (f instanceof IntermediateExecutionFlow) {\n ((IntermediateExecutionFlow<IntermediateQueueConfig>) f)\n .setConfig(\n new IntermediateQueueConfig(\n ((IntermediateExecutionFlow<?>) f).getQueue().getId()));\n } else {\n throw new UnknownFlowException(f);\n }\n\n if (!f.getNext().isEmpty()) {\n f.getNext().forEach(n -> setFlowConfig(n, parallelismIndex));\n }\n }", "abstract public Map<ScrapMode, List<String>> getScrapConfigurations();", "public ExecutionType executionType() {\n return this.executionType;\n }", "protected T getConfigurationByCommandline() {\n\t\t\n\t\tT result = null;\n\t\t\n\t\tString[] args = this.commandLineArguments; \n\t\t\n\t\tif (args == null) {\n\t\t\tthrow new NullPointerException(\"Command line arguments have not been set in factory!\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tresult = (T) CliFactory.parseArguments(\n\t\t\t\tthis.configurationInterface, args\n\t\t\t);\n\t\t} catch (ArgumentValidationException e) {\n\t\t\tthrow new ConfigurationException(e.getMessage());\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public SlopeOneConfiguration getConfiguration() { return configuration; }", "@Override\n public int getExecutionIndex()\n {\n return executionIndex;\n }", "public ConfigurationHolder getConfiguration() {\n return this.cfg;\n }", "public DescribePipelineExecutionResult withParallelismConfiguration(ParallelismConfiguration parallelismConfiguration) {\n setParallelismConfiguration(parallelismConfiguration);\n return this;\n }", "protected Configuration getConfiguration(){\n return configuration;\n }", "public Configuration getConfiguration() {\n return configuration;\n }", "public Configuration getConfiguration() {\n return configuration;\n }", "public Configuration getConfiguration() {\n return configuration;\n }", "public Configuration getConfiguration() {\n return configuration;\n }", "public List<UtteranceProcessorConfig> getProcessorConfigs() {\n return processorConfigs;\n }", "public Configuration getConfiguration() {\n return config;\n }", "public Configuration getConfiguration() {\n return config;\n }", "protected Configuration getConfiguration() {\n return configuration;\n }", "public IProjectConfiguration getConfiguration()\n {\n return new ProjectConfiguration(mProject, mCheckConfigs, mFileSets, mFilters,\n mUseSimpleConfig);\n }", "@Override\n public boolean hasAdditionalConfig() { return true; }", "public ArtifactConfigOutput getArtifactConfig() {\n return this.artifactConfig;\n }", "@Override\n public synchronized ListenableSet getExecutorSet(EngineManagementProtos.EngineId engineId,\n EngineManagementProtos.SubEngineId subEngineId) {\n if (executorSet == null) {\n ServiceSet serviceSet = coordinator.get().getServiceSet(Role.EXECUTOR);\n if (serviceSet != null) {\n // Read dremio check option at first call to this method.\n // If dremio check option is changed, coordinator needs to be restarted.\n isVersionCheckEnabled = optionManagerProvider.get().getOption(ExecutorSetService.DREMIO_VERSION_CHECK);\n executorSet = isVersionCheckEnabled ? filterCompatibleExecutors(serviceSet) : serviceSet;\n }\n }\n return executorSet;\n }", "ConfigBlock getConfig();", "public String getPipelineExecutionDisplayName() {\n return this.pipelineExecutionDisplayName;\n }", "public Executor getExecutor() {\n return executor;\n }", "protected List<String> configurationArguments() {\n List<String> args = new ArrayList<String>();\n return args;\n }", "public String getConfiguration() {\n return this.configuration;\n }", "@Override\n public boolean getDeclarativelyConfigured() {\n return declarativelyConfigured_;\n }", "public int getProcessingMode() {\n return processingMode ;\n }", "public Integer getNumberOfActiveRunners(){\n return numberOfActiveRunners;\n }", "public Executor getExecutor() {\n return execution.getExecutor();\n }", "@Override\n public List<Map<String, String>> taskConfigs(int i) {\n\n throw new UnsupportedOperationException(\"This has not been implemented.\");\n }", "public Configuration c() {\n return configuration;\n }", "public interface ViewExecutionOptions {\n \n /**\n * Gets the cycle execution sequence.\n * \n * @return the cycle execution sequence, not null\n */\n ViewCycleExecutionSequence getExecutionSequence();\n \n /**\n * Gets the set of flags defining aspects of the execution behaviour in relation to the execution options.\n * \n * @return the set of flags, not null\n */\n EnumSet<ViewExecutionFlags> getFlags();\n \n /**\n * Gets the maximum number of delta cycles following a full computation cycles.\n * \n * @return the maximum number of delta cycles following a full computation cycle, null for no limit\n */\n Integer getMaxSuccessiveDeltaCycles();\n \n /**\n * Gets the default execution options.\n * \n * @return the default execution options, null if not specified\n */\n ViewCycleExecutionOptions getDefaultExecutionOptions();\n \n /**\n * Gets the version-correction to apply during execution.\n * <p>\n * The version-correction affects the data used by the running view process. If the version-correction has either the\n * version or correction set to 'latest' then the view process will track real-time changes to any data on which it\n * depends. \n * \n * @return the version-correction, not null\n */\n VersionCorrection getVersionCorrection();\n \n}", "public Pipeline getPipeline(){\n return pipeline;\n }" ]
[ "0.7402138", "0.64401966", "0.6034317", "0.55442786", "0.54932356", "0.5483211", "0.5462499", "0.5360997", "0.53189987", "0.52918625", "0.528882", "0.5287964", "0.5225324", "0.5225186", "0.52161944", "0.52159625", "0.52032", "0.5176339", "0.5160866", "0.51470923", "0.51470923", "0.51470923", "0.51470923", "0.51293397", "0.51204675", "0.5100654", "0.50962967", "0.50907874", "0.5087966", "0.5075443", "0.50630903", "0.5021883", "0.49909064", "0.49754742", "0.4965688", "0.4940211", "0.49351683", "0.4929713", "0.48922458", "0.48888364", "0.48872453", "0.48777327", "0.4865778", "0.4846866", "0.4839937", "0.48203346", "0.4817485", "0.48161253", "0.4796502", "0.47839296", "0.47710535", "0.4770476", "0.4760742", "0.4755799", "0.4753368", "0.47438186", "0.47245124", "0.47157195", "0.47028193", "0.46954226", "0.46897164", "0.46873385", "0.46841437", "0.4681383", "0.46809113", "0.46775368", "0.4669966", "0.46638128", "0.46636808", "0.46616092", "0.46608528", "0.46606043", "0.4658021", "0.46565327", "0.46558473", "0.46479046", "0.46479046", "0.46479046", "0.46479046", "0.4635531", "0.46354604", "0.46354604", "0.4622098", "0.46161136", "0.46107608", "0.46072903", "0.46059966", "0.45999262", "0.45943895", "0.45943028", "0.4592971", "0.45917988", "0.45913148", "0.45858037", "0.45852476", "0.4581697", "0.4581654", "0.45816234", "0.45777565", "0.45771945" ]
0.6254402
2
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getPipelineArn() != null) sb.append("PipelineArn: ").append(getPipelineArn()).append(","); if (getPipelineExecutionArn() != null) sb.append("PipelineExecutionArn: ").append(getPipelineExecutionArn()).append(","); if (getPipelineExecutionDisplayName() != null) sb.append("PipelineExecutionDisplayName: ").append(getPipelineExecutionDisplayName()).append(","); if (getPipelineExecutionStatus() != null) sb.append("PipelineExecutionStatus: ").append(getPipelineExecutionStatus()).append(","); if (getPipelineExecutionDescription() != null) sb.append("PipelineExecutionDescription: ").append(getPipelineExecutionDescription()).append(","); if (getPipelineExperimentConfig() != null) sb.append("PipelineExperimentConfig: ").append(getPipelineExperimentConfig()).append(","); if (getFailureReason() != null) sb.append("FailureReason: ").append(getFailureReason()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(","); if (getCreatedBy() != null) sb.append("CreatedBy: ").append(getCreatedBy()).append(","); if (getLastModifiedBy() != null) sb.append("LastModifiedBy: ").append(getLastModifiedBy()).append(","); if (getParallelismConfiguration() != null) sb.append("ParallelismConfiguration: ").append(getParallelismConfiguration()).append(","); if (getSelectiveExecutionConfig() != null) sb.append("SelectiveExecutionConfig: ").append(getSelectiveExecutionConfig()); sb.append("}"); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() { return stringify(this, true); }", "@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }", "@Override\n public String toString() {\n return new Gson().toJson(this);\n }", "@Override\n public String toString() {\n ObjectMapper mapper = new ObjectMapper();\n try {\n return mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n return null;\n }\n }", "@Override\n public String toString() {\n return new GsonBuilder().serializeNulls().create().toJson(this).toString();\n }", "public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }", "@Override\n public String toString() {\n return gson.toJson(this);\n }", "@Override\n public String toString() {\n final Map<String, Object> augmentedToStringFields = Reflect.getStringInstanceVarEntries(this);\n augmentToStringFields(augmentedToStringFields);\n return Reflect.joinStringMap(augmentedToStringFields, this);\n }", "@Override\n\tpublic String toString() {\n\t\treturn toStringBuilder(new StringBuilder()).toString();\n\t}", "@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override()\n public String toString()\n {\n final StringBuilder buffer = new StringBuilder();\n toString(buffer);\n return buffer.toString();\n }", "@Override\n public String toString() {\n // TODO this is a sudo method only for testing puroposes\n return \"{name: 5aled, age:15}\";\n }", "public String toString()\n\t{\n\t\treturn Printer.stringify(this, false);\n\t}", "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public String toString() {\n\t\t//TODO add your own field name here\t\t\n\t\t//return buffer.append(this.yourFieldName).toString();\n\t\treturn \"\";\n\t}", "public String toString() {\n\t\treturn toString(true);\n\t}", "public String toString() {\n return ToStringBuilder.reflectionToString(this);\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getName() != null)\n sb.append(\"Name: \").append(getName()).append(\",\");\n if (getPhoneNumber() != null)\n sb.append(\"PhoneNumber: \").append(\"***Sensitive Data Redacted***\").append(\",\");\n if (getEmail() != null)\n sb.append(\"Email: \").append(\"***Sensitive Data Redacted***\").append(\",\");\n if (getIdentificationNumber() != null)\n sb.append(\"IdentificationNumber: \").append(getIdentificationNumber()).append(\",\");\n if (getIdentificationExpirationDate() != null)\n sb.append(\"IdentificationExpirationDate: \").append(getIdentificationExpirationDate()).append(\",\");\n if (getIdentificationIssuingOrg() != null)\n sb.append(\"IdentificationIssuingOrg: \").append(getIdentificationIssuingOrg()).append(\",\");\n if (getDevicePickupId() != null)\n sb.append(\"DevicePickupId: \").append(getDevicePickupId());\n sb.append(\"}\");\n return sb.toString();\n }", "@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\treturn this.toJSONString(0);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n public String toString() {\n String str = \"\";\n\n //TODO: Complete Method\n\n return str;\n }", "@Override\n\tpublic String toString() {\n\t\treturn toText();\n\t}", "@Override\r\n\tpublic String toString() {\n\t\tString str = \"\";\r\n\t\treturn str;\r\n\t}", "@Override\n public String toString() {\n Gson gson = new Gson();\n\n String json = gson.toJson(this);\n System.out.println(\"json \\n\" + json);\n return json;\n }", "@Override\n public String toString() {\n return toString(false, true, true, null);\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn JSONObject.toJSONString(this);\r\n\t}", "public String toString() {\n\t\treturn toString(this);\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn Json.pretty( this );\n\t}", "@Override\n public final String toString() {\n return asString(0, 4);\n }", "@Override\n public String toString() {\n return MoreObjects.toStringHelper(this) //\n .add(\"name\", getName()) //\n .add(\"phNumber\", getPhNumber()) //\n .add(\"emailId\", getEmailId()) //\n .add(\"parent\", getParent()) //\n .toString();\n }", "public java.lang.String toString() {\n return this.stringValue;\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn MoreObjects.toStringHelper(this) //\r\n\t\t\t\t.add(\"id\", getId()) //\r\n\t\t\t\t.add(\"parameter\", getParameter()) //\r\n\t\t\t\t.add(\"value\", getValue()) //\r\n\t\t\t\t.add(\"hieraAddress\", getHieraAddress()) //\r\n\t\t\t\t.toString();\r\n\t}", "@Override\n\tpublic String toString()\n\t{\n\t\treturn this.str;\n\t}", "public String toString() {\n StringBuilder stringBuilder = new StringBuilder(40);\n stringBuilder.append(\"property '\").append(this.getName()).append(\"' (\");\n if (this._accessorMethod != null) {\n stringBuilder.append(\"via method \").append(this._accessorMethod.getDeclaringClass().getName()).append(\"#\").append(this._accessorMethod.getName());\n } else {\n stringBuilder.append(\"field \\\"\").append(this._field.getDeclaringClass().getName()).append(\"#\").append(this._field.getName());\n }\n if (this._serializer == null) {\n stringBuilder.append(\", no static serializer\");\n } else {\n stringBuilder.append(\", static serializer of type \" + this._serializer.getClass().getName());\n }\n stringBuilder.append(')');\n return stringBuilder.toString();\n }", "@Override\n public String toString() {\n byte[] buffer = toBuffer();\n return (buffer == null) ? null : new String(buffer, StandardCharsets.UTF_8);\n }", "@Override\n public String toString() {\n return (this.str);\n }", "public String toString()\n\t{\n\t\tString result = \"\";\n\t\tresult += this.data;\n\t\treturn result;\n\t}", "@Override\n public String toString()\n {\n StringBuilder builder = new StringBuilder();\n dump(builder, 0, '\\'');\n return builder.toString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn JSON.toJSONString(this,SerializerFeature.WriteMapNullValue,\n\t\t\t\tSerializerFeature.WriteNonStringKeyAsString,\n\t\t\t\tSerializerFeature.WriteNullListAsEmpty,\n\t\t\t\tSerializerFeature.WriteNullNumberAsZero,\n\t\t\t\tSerializerFeature.WriteNullStringAsEmpty);\n\t}", "@Override\n\tpublic String toString() {\n\t\tif (repr == null)\n\t\t\trepr = toString(null);\n\n\t\treturn repr;\n\t}", "public String toString() {\n\treturn createString(data);\n }", "@Override\n public String toString() {\n return mString;\n }", "public String toString() {\n\t\t\tif (this.getKey() == null) {\n\t\t\t\treturn \"\";\n\t\t\t} else {\n\t\t\t\treturn \"Key:\" + this.getKey() + \" Value:\" + this.getValue();\n\t\t\t}\n\t\t}", "public String toString() {\n return toDisplayString();\n }", "public java.lang.String toString()\n {\n return this.stringValue;\n }", "public String toString() {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(getClass().getName());\n buffer.append(\"@\");\n buffer.append(Integer.toHexString(hashCode()));\n buffer.append(\" [\");\n buffer.append(objectToString(\"Id\", getId()));\n buffer.append(objectToStringFK(\"Project\", getProject()));\n buffer.append(objectToStringFK(\"User\", getUser()));\n buffer.append(objectToString(\"Status\", getStatus()));\n buffer.append(objectToString(\"LastActivityDate\", getLastActivityDate()));\n buffer.append(objectToString(\"HasPiSeen\", getHasPiSeen()));\n buffer.append(objectToString(\"HasDpSeen\", getHasDpSeen()));\n buffer.append(objectToString(\"HasAdminSeen\", getHasAdminSeen()));\n buffer.append(objectToString(\"HasRequestorSeen\", getHasRequestorSeen()));\n buffer.append(objectToString(\"EmailStatus\", getEmailStatus()));\n buffer.append(\"]\");\n\n return buffer.toString();\n }", "public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}", "public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}", "public String toString() {\r\n\t\treturn \"Name: \" + getName() + \" Phone: \" + phoneNumber + \" Email: \" + email;\r\n\t\t\r\n\t}", "@Override\n public String toString() {\n return string;\n }", "@Override\n public final String toString() {\n return this.value;\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn value + \"\";\r\n\t}", "public String toString() {\n\t\treturn toString(0, 0);\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn \"\";\r\n\t}", "@Override\n public String toString() {\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bs);\n output(out, \"\");\n return bs.toString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn toJSON().toString();\n\t}", "public String toString() {\r\n\t\treturn \"Name: \" + name + \"\\nAddress: \" + addr + \"\\n\" + city + \"\\n\"\r\n\t\t\t\t+ state + \"\\n\" + zip + \"\\nPhone: \" + phone + \"\\nId: \" + id\r\n\t\t\t\t+ \"\\nMajor: \" + major + \"\\nGPA: \" + gpa;\r\n\t}", "public synchronized String toString() {\n StringBuffer oBuffer = new StringBuffer();\n\n oBuffer\n .append(\"Preprocessing params: \").append(this.oPreprocessingParams).append(\"\\n\")\n .append(\"Feature extraction params: \").append(this.oFeatureExtractionParams).append(\"\\n\")\n .append(\"Classification params: \").append(this.oClassificationParams);\n\n return oBuffer.toString();\n }", "public String toString() {\r\n\t\treturn \"Name: \" + getName() + \"\\nAddress: \" + getAddress() + \"\\nPhone Number: \" + getPhoneNumber();\r\n\t}", "@Override String toString();", "@Override\n\tpublic String toString() {\n\t\treturn \"\";\n\t}", "@Override\n public String toString() {\n return value();\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.toAnticipatedString();\n\t}", "public String toString(){\r\n\t\tString superString = super.toString();\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\t//Add the object to the string\r\n\t\tbuilder.append(\". \");\r\n\t\tif (this.error != null) {\r\n\t\t\tbuilder.append(error.toString());\r\n\t\t\tbuilder.append(\". \");\r\n\t\t}\r\n\t\tbuilder.append(\"Object: \");\r\n\t\tbuilder.append(object.toString());\r\n\t\tif (this.recordRoute)\r\n\t\t\tbuilder.append(\", [RECORD_ROUTE]\");\r\n\t\tif (this.reRouting) \r\n\t\t\tbuilder.append(\", [RE-ROUTING]\");\r\n\t\t//Add the masks to the string\r\n\t\tif (this.mask != null) {\r\n\t\t\tbuilder.append(\", label set: \");\r\n\t\t\tbuilder.append(mask.toString());\r\n\t\t}\r\n\t\treturn superString.concat(builder.toString());\r\n\t}", "public String toString()\r\n\t{\r\n\t\treturn toCharSequence().toString();\r\n\t}", "@Override\n public String toString() {\n try {\n return new ObjectMapper().writeValueAsString(this);\n } catch (final JsonProcessingException ioe) {\n return ioe.getLocalizedMessage();\n }\n }", "public String toString() {\n\t\treturn \"{\\\"username\\\":\\\"\" + this.username + \"\\\",\\\"apiKey\\\":\\\"\"\n\t\t\t\t+ this.apiKey + \"\\\",\\\"apiSecret:\\\"\" + this.apiSecret\n\t\t\t\t+ \"\\\",\\\"nonce:\\\"\" + this.nonce + \"\\\"}\";\n\t}", "@Override\n public String toString() {\n return Objects.toStringHelper(this)\n .addValue(this.id)\n .addValue(this.name)\n .addValue(this.author)\n .addValue(this.description)\n .addValue(this.pictureOfCover)\n .toString();\n }", "public String getAsString() {\n\t\treturn new String(this.getAsBytes());\n\t}", "@Override\n public String toString() {\n return toStringHelper(this)\n .addValue(id)\n .addValue(firstName)\n .addValue(lastName)\n .addValue(email)\n .addValue(activities)\n .addValue(password).toString();\n }", "public String toString() {\n return \"\" + data;\n }", "public String toString()\r\n\t{\r\n\t\tStringBuffer OutString = new StringBuffer();\r\n\t\t// Open tag\r\n\t\tOutString.append(\"<\");\r\n\t\t// Add the object's type\r\n\t\tOutString.append(getType());\r\n\t\t// attach the ID if required.\r\n\t\tif (DEBUG)\r\n\t\t\tOutString.append(getObjID());\r\n\t\t// add the class attribute if required; default: don't.\r\n\t\tif (getIncludeClassAttribute() == true)\r\n\t\t\tOutString.append(getClassAttribute());\r\n\t\t// Add any transformation information,\r\n\t\t// probably the minimum is the x and y values.\r\n\t\t// again this is new to Java 1.4;\r\n\t\t// this function returns a StringBuffer.\r\n\t\tOutString.append(getAttributes());\r\n\t\t// close the tag.\r\n\t\tOutString.append(\">\");\r\n\t\tOutString.append(\"&\"+entityReferenceName+\";\");\r\n\t\t// close tag\r\n\t\tOutString.append(\"</\");\r\n\t\tOutString.append(getType());\r\n\t\tOutString.append(\">\");\r\n\r\n\t\treturn OutString.toString();\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn new StringBuilder()\n\t\t\t.append(this.getClass().getSimpleName())\n\t\t\t.append(\" { id:\").append(id)\n\t\t\t.append(\", version:\").append(version)\n\t\t\t.append(\" }\")\n\t\t\t.toString();\n\t}", "public String toString() {\n\t\treturn (getValue().toString());\r\n\t}", "public String toString() {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(getClass().getName());\n buffer.append(\"@\");\n buffer.append(Integer.toHexString(hashCode()));\n buffer.append(\" [\");\n buffer.append(objectToString(\"Id\", getId()));\n buffer.append(objectToString(\"ProjectName\", getProjectName()));\n buffer.append(objectToStringFK(\"DataProvider\", getDataProvider()));\n buffer.append(objectToStringFK(\"PrimaryInvestigator\", getPrimaryInvestigator()));\n buffer.append(objectToStringFK(\"CreatedBy\", getCreatedBy()));\n buffer.append(objectToString(\"CreatedTime\", getCreatedTime()));\n buffer.append(\"]\");\n\n return buffer.toString();\n }", "public String toString ( ) {\r\n String returnString = _name + \"{ id: \" + _uniqueID + \" pos: [\"+ getPosition().getPosition() + \"] }\";\r\n return returnString;\r\n }", "public String toString() {\n String output = \"\\nName: \" + name;\n output += \"\\nType: \" + type;\n output += \"\\nContact Details: \" + contactNo;\n output += \"\\nEmail address: \" + email;\n output += \"\\nResidentail Address: \" + address;\n\n return output;\n }", "@Override \n\tpublic String toString() {\n\t\treturn stringForm;\n\t}", "@Override public String toString();", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\" {\");\n sb.append(\" \\\"fileid\\\":\\\"\").append(fileid);\n sb.append(\", \\\"filename\\\":\\\"\").append(filename);\n sb.append(\", \\\"fileupdate\\\":\\\"\").append(fileupdate);\n sb.append(\", \\\"filepath\\\":\\\"\").append(filepath);\n sb.append(\", \\\"fileuploader\\\":\\\"\").append(fileuploader);\n sb.append(\", \\\"isdelete\\\":\\\"\").append(isdelete);\n sb.append(\", \\\"filedesc\\\":\\\"\").append(filedesc);\n sb.append(\", \\\"filetype\\\":\\\"\").append(filetype);\n sb.append(\"\\\"}\");\n return sb.toString();\n }", "public final String toString() {\n\t\tStringWriter write = new StringWriter();\n\t\tString out = null;\n\t\ttry {\n\t\t\toutput(write);\n\t\t\twrite.flush();\n\t\t\tout = write.toString();\n\t\t\twrite.close();\n\t\t} catch (UnsupportedEncodingException use) {\n\t\t\tuse.printStackTrace();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\treturn (out);\n\t}", "public String toString() {\n\t\treturn super.toString();\n\t\t// This gives stack overflows:\n\t\t// return ToStringBuilder.reflectionToString(this);\n\t}", "public String toString() {\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n\t\tDocument document = XMLUtils.newDocument();\n\t\tdocument.appendChild(toXML(document));\n\t\tXMLUtils.write(bos, document);\n\n\t\treturn bos.toString();\n\t}", "public String toString() {\n\t\treturn String.format(\"%s\\nID: %d\\nDescription: %s\\n\", name.toUpperCase(), id, description); \n\t}", "public String toString() {\r\n String result = \"Name: \" + name + \"\\n\";\r\n\r\n result += \"Address: \" + address + \"\\n\";\r\n result += \"Phone: \" + phone;\r\n\r\n return result;\r\n }", "@Override\n public String toString() {\n return \"\" + this.value;\n }", "public String toString()\n\t{\n\t\treturn String.format(\"%-25s%-15s\\n%-25s%-15s\\n%-25s%-15s\\n%-25s%-15d\\n%-25s%-15s\\n%-25s$%,-13.2f\", \n\t\t\t\t \t\t \t \"Name\", this.getName(), \"Address:\", this.getAddress(), \"Telephone number:\", this.getTelephone(), \n\t\t\t\t \t\t \t \"Customer Number:\", this.getCustNum(), \"Email notifications:\", this.getSignedUp() == true ? \"Yes\" : \"No\",\n\t\t\t\t \t\t \t \"Purchase amount:\", this.getCustomerPurchase());\n\t}", "public String toString() {\n\t\treturn str;\n\t}", "public String toString() {\n return String.format(mFormat,\n format(mManufacturer),\n format(mBrand),\n format(mModel),\n mResolution,\n mDensity,\n mAndroidDensity,\n mVersion,\n mSdk,\n mLanguage);\n }", "@Override\r\n public String toString() {\r\n return toSmartText().toString();\r\n }", "@Override\n public String toString()\n {\n return this.toLsString();\n }", "public String toString()\n {\n return this.string;\n }", "@Override\n public String toString() {\n return Helper.concat(this.getClass().getName(), \"{\",\n \"id:\", getId(),\n \", name:\", getName(),\n \", positions:\", positions,\n \", resourceRoles:\", resourceRoles,\n \"}\");\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getVersion() != null)\n sb.append(\"version: \").append(getVersion()).append(\",\");\n if (getResource() != null)\n sb.append(\"resource: \").append(getResource()).append(\",\");\n if (getPath() != null)\n sb.append(\"path: \").append(getPath()).append(\",\");\n if (getHttpMethod() != null)\n sb.append(\"httpMethod: \").append(getHttpMethod()).append(\",\");\n if (getHeaders() != null)\n sb.append(\"headers: \").append(getHeaders().toString()).append(\",\");\n if (getMultiValueHeaders() != null)\n sb.append(\"multiValueHeaders: \").append(getMultiValueHeaders().toString()).append(\",\");\n if (getQueryStringParameters() != null)\n sb.append(\"queryStringParameters: \").append(getQueryStringParameters().toString()).append(\",\");\n if (getMultiValueQueryStringParameters() != null)\n sb.append(\"multiValueQueryStringParameters: \").append(getMultiValueQueryStringParameters().toString()).append(\",\");\n if (getPathParameters() != null)\n sb.append(\"pathParameters: \").append(getPathParameters().toString()).append(\",\");\n if (getStageVariables() != null)\n sb.append(\"stageVariables: \").append(getStageVariables().toString()).append(\",\");\n if (getRequestContext() != null)\n sb.append(\"requestContext: \").append(getRequestContext().toString()).append(\",\");\n if (getBody() != null)\n sb.append(\"body: \").append(getBody()).append(\",\");\n if (getIsBase64Encoded() != null)\n sb.append(\"isBase64Encoded: \").append(getIsBase64Encoded());\n sb.append(\"}\");\n return sb.toString();\n }", "public String toString() {\n return \"\";\n }" ]
[ "0.8100615", "0.8075129", "0.80493397", "0.80493397", "0.8026168", "0.7975271", "0.7939094", "0.79294294", "0.79116815", "0.78960097", "0.7784765", "0.77844536", "0.77691835", "0.77683777", "0.77683777", "0.77683777", "0.7757559", "0.77284676", "0.7723956", "0.76756173", "0.76756173", "0.76692086", "0.7654793", "0.7653188", "0.76435244", "0.76434803", "0.7637885", "0.763587", "0.76234025", "0.7622123", "0.76198125", "0.75992966", "0.75907856", "0.75905097", "0.75559664", "0.75383794", "0.75365", "0.75318193", "0.7527218", "0.7527168", "0.75206417", "0.7507902", "0.75005764", "0.7475749", "0.7454012", "0.7422608", "0.7421741", "0.7419291", "0.7418795", "0.7418333", "0.7413099", "0.7407248", "0.7404625", "0.7404625", "0.7404351", "0.73969483", "0.73959684", "0.7395966", "0.7392615", "0.7390311", "0.7378705", "0.7378194", "0.73712283", "0.7361871", "0.7360193", "0.73499906", "0.7343122", "0.73424107", "0.73362726", "0.73300934", "0.73281384", "0.73281085", "0.7321833", "0.731992", "0.7315513", "0.7313988", "0.7312755", "0.7302213", "0.72955364", "0.72932297", "0.7292118", "0.7291991", "0.7288276", "0.7279718", "0.72773874", "0.72759235", "0.7273329", "0.72621465", "0.726152", "0.7259058", "0.72569185", "0.7251922", "0.7248893", "0.72488266", "0.72465265", "0.72431153", "0.7242123", "0.72389954", "0.7238517", "0.72325176", "0.7226302" ]
0.0
-1
The main method It will check for all required arguments and print an error message if any is missing, then it will open a server socket and run a GUI program to initate the game
public static void main(String[] args){ //Check number of arguments if(args.length != 5){ System.err.println("Usage: java WordzClient <serverhost> <serverport> <clienthost> <clientport> <playername>"); System.exit(1); } //Record serverhost String serverhost = args[0]; //Record serverport int serverport = 0; //Check if server port is an integer if(!args[1].matches("\\d+")){ System.err.println("server port is not an integer!"); System.exit(1); } serverport = Integer.parseInt(args[1]); if(serverport < 0){ System.err.println("server port cannot be below zero!"); System.exit(1); } //Record clienthost String clienthost = args[2]; //Record clientport int clientport = 0; //Check if client port is an integer if(!args[3].matches("\\d+")){ System.err.println("client port is not an integer!"); System.exit(1); } clientport = Integer.parseInt(args[3]); if(clientport < 0){ System.err.println("client port cannot be below zero!"); System.exit(1); } //Record player name String playername = args[4]; //Create the view WordzView view = WordzView.create(playername); //Create datagram mailbox DatagramSocket mailbox = null; try{ mailbox = new DatagramSocket(new InetSocketAddress(clienthost, clientport)); }catch(Exception e){ System.err.println("Cannot create the client UDP datagram service"); } //Create model proxy try{ final WordzModelProxy proxy = new WordzModelProxy(mailbox, new InetSocketAddress(serverhost, serverport)); view.setViewListener(proxy); proxy.setModelListener(view); Runtime.getRuntime().addShutdownHook (new Thread(){ public void run(){ try { proxy.quit(); } catch (Exception exc) {} } }); proxy.join(null, playername); }catch(Exception e){ System.err.println("Cannot create the server UDP datagram service"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args)\n {\n if(args.length < 2){\n System.out.println(\"Missing Arguments. Please Try Again\");\n System.exit(0);\n }\n else if(args.length > 2){\n System.out.println(\"Too many Arguments. Please Try Again\");\n System.exit(0);\n }\n\n serverIp = args[0];\n try {\n serverPort = Integer.parseInt(args[1]);\n }\n catch(NumberFormatException e){\n System.out.println(\"The port number must be an integer.\");\n System.exit(0);\n }\n\n try{\n Socket socket = new Socket(serverIp, serverPort);\n // Open GUI\n window = new MainWindow(socket);\n window.run();\n } catch (UnknownHostException e) {\n System.out.println(\"Unknown Host.\");\n System.exit(0);\n } catch (IOException e) {\n System.out.println(\"Connection Refused.\");\n System.exit(0);\n }\n }", "public static void main(String[] args){\n try {\n GameClient.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args){\n\t\t\n\t\ttry{\n\t\t\t//Socket attempts to connect to the same computer, localhost, using the port number 4500\n\t\t\tclient = new Socket(\"localhost\", 4500);\n\t\t\t\n\t\t\t//A PrintWriter is connected to the OutputStream of the client Socket. \n\t\t\t//The boolean determines whether it should auto-flush or not.\n\t\t\tout = new PrintWriter(client.getOutputStream(),true);\n\t\t\t\n\t\t\t//The BufferedReader creates a Buffer for the InputStreamReader, which in turn\n\t\t\t//reads from the InputStream of the client Socket. \n\t\t\tin = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\t\n\t\t\t//The ObjectInputStream is able to read objects from the Socket\n\t\t\tobjIn = new ObjectInputStream(client.getInputStream());\n\t\t\t\n\n\t\t}catch(FileNotFoundException fnfe){\n\t\t\tfnfe.printStackTrace();\n\t\t\t\n\t\t}catch(ConnectException ce) {\n\t\t\tSystem.out.println(\"Could not connect to the server. Please ensure that the server is active before starting the game.\");\n\t\t\tSystem.exit(1);\n\t\t\t\n\t\t}catch(IOException ioe){\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\t\n\t\t//JavaFX requires that this method is called, with args as a parameter, in order to start creating windows\n\t\tlaunch(args);\n\t}", "public static void main( String[] args ) {\n // verify the number of arguments\n if ( args.length != 2 ) {\n usage( );\n }\n\n // verify the correctness of my counterpart address\n InetAddress addr = null;\n try {\n addr = InetAddress.getByName( args[0] );\n } catch ( UnknownHostException e ) {\n error( e );\n }\n\n // verify the correctness of my counterpart port\n int port = 0;\n try {\n port = Integer.parseInt( args[1] );\n } catch (NumberFormatException e) {\n error( e );\n }\n if ( port < 5000 ) {\n usage( );\n }\n\n // now start the application\n OnlineTicTacToeFrame game = new OnlineTicTacToeFrame( addr, port );\n }", "public static void main(String[] args) {\n \n try {\n boolean useGUI = false;\n int i = -1;\n\n // Parse options. Add additional options here if you have to. Do not\n // forget to mention their usage in the help-string!\n while(args[++i].startsWith(\"-\")) {\n if(args[i].toLowerCase().equals(\"-help\")) {\n System.out.println(USAGE + String.format(\"%n%nwhere options include:\", args));\n System.out.println(\" -help Show this text.\");\n System.out.println(\" -gui Show a graphical user interface.\");\n System.exit(0);\n }\n else if(args[i].toLowerCase().equals(\"-gui\")) {\n useGUI = true;\n }\n }\n \n String mode = args[i++];\n String connectionType = args[i++];\n\n if(mode.toLowerCase().equals(\"server\"))\n {\n int port = Integer.parseInt(args[i++]);\n \n // Start server\n if(connectionType.toLowerCase().equals(\"tcp\"))\n {\n try\n {\n Player player = new Player();\n Server server = new ConnectionServerTCP(port, player);\n \n Thread cs = new Thread(server);\n cs.start();\n Log.log(\"Main: Starting Thread ConnectionServer (\"+cs.getName()+\")\");\n \n cs.join();\n \n Log.notice(\"Main: shuting down\");\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n } else if(connectionType.toLowerCase().equals(\"udp\"))\n {\n try\n {\n Player player = new Player();\n Server server = new ConnectionServerTCP(port, player);\n \n Thread cs = new Thread(server);\n cs.start();\n Log.log(\"Main: Starting Thread ConnectionServer (\"+cs.getName()+\")\");\n \n cs.join();\n \n Log.notice(\"Main: shuting down\");\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n } else if(connectionType.toLowerCase().equals(\"mc\"))\n {\n try\n {\n Player player = new Player();\n Server server = new ConnectionServerMC(port, player);\n \n Thread cs = new Thread(server);\n cs.start();\n Log.log(\"Main: Starting Thread ConnectionServer (\"+cs.getName()+\")\");\n \n cs.join();\n \n Log.notice(\"Main: shuting down\");\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }\n }\n else if(mode.toLowerCase().equals(\"client\"))\n {\n String host = args[i++];\n int port = Integer.parseInt(args[i++]);\n String username = args[i++];\n \n // Start client\n if(connectionType.toLowerCase().equals(\"tcp\"))\n {\n try\n {\n ClientGUI gui = new ClientGUI();\n RadioClientTCP client = new RadioClientTCP(gui);\n gui.setContext(client);\n \n Thread rc = new Thread(client);\n new Thread(gui).start();\n rc.start();\n Log.log(\"Main: Starting Thread RadioClient (\"+rc.getName()+\")\");\n \n //client.connect(new InetSocketAddress(host, port));\n \n rc.join();\n \n Log.notice(\"Main: shuting down\");\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n } else if(connectionType.toLowerCase().equals(\"udp\"))\n {\n try\n {\n ClientGUI gui = new ClientGUI();\n RadioClientUDP client = new RadioClientUDP(gui);\n gui.setContext(client);\n \n Thread rc = new Thread(client);\n new Thread(gui).start();\n rc.start();\n Log.log(\"Main: Starting Thread RadioClient (\"+rc.getName()+\")\");\n \n //client.connect(new InetSocketAddress(host, port));\n \n rc.join();\n \n Log.notice(\"Main: shuting down\");\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n } else if(connectionType.toLowerCase().equals(\"mc\"))\n {\n try\n {\n ClientGUI gui = new ClientGUI();\n RadioClientMC client = new RadioClientMC(gui);\n gui.setContext(client);\n \n Thread rc = new Thread(client);\n new Thread(gui).start();\n rc.start();\n Log.log(\"Main: Starting Thread RadioClient (\"+rc.getName()+\")\");\n \n //client.connect(new InetSocketAddress(host, port));\n \n rc.join();\n \n Log.notice(\"Main: shuting down\");\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }\n \n else\n throw new IllegalArgumentException(\"Illegal connection method\");\n }\n else\n throw new IllegalArgumentException(\"Illegal program mode\");\n }\n catch(ArrayIndexOutOfBoundsException e) {\n System.err.println(USAGE);\n }\n catch(NumberFormatException e) {\n System.err.println(USAGE);\n }\n catch(IllegalArgumentException e) {\n System.err.println(USAGE);\n }\n }", "public static void main(String[] args) {\n\t\tSettingUI serverUI = new SettingUI(\"server\");\n\n\t\t//System.out.print(\"Port(eg.1111): \");\n\t\t// int portNumber = 1111;\n\t\t// int portNumber = console.nextInt();\n\t\t// GameServer gameServer = new GameServer(portNumber);\n\t\t// gameServer.setUpChat();\n\t\t// gameServer.start();\n\t}", "public static void main(String[] args){\n\n GameClientImpl client = new GameClientImpl();\n client.startConnection(\"127.0.0.1\", ProtocolConfiguration.PORT);\n\n }", "public static void main(String[] args) \n {\n int port = DEFAULT_PORT; //Port to listen on\n\n\n ServerGui serverGui = new ServerGui();\n serverGui.setVisible(true);\n serverGui.setSize(450, 300);\n \n \n //----------------------------------\n // EchoServer sv = new EchoServer(port);\n \n }", "public static void main(String[] args){\n\t\t/**************************************************\n\t\t * \t\t\tProcess command line arguments\n\t\t * ************************************************/\n\t\tboolean server = false;\n\t\tint nclients = 1;\n\t\tString url = null; \n\t\tint broadcastClock = DEFAULT_BROADCAST_CLK_PERIOD;\n\t\tint port = DEFAULT_PORT;\n\t\t\n\t\tfor (int i = 0; i != args.length; ++i) {\n\t\t\tif (args[i].startsWith(\"-\")) {\n\t\t\t\tString arg = args[i];\n\t\t\t\tif(arg.equals(\"-server\")) {\n\t\t\t\t\tserver = true;\n\t\t\t\t\tnclients = Integer.parseInt(args[++i]);\n\t\t\t\t} else if(arg.equals(\"-connect\")) {\n\t\t\t\t\turl = args[++i];\n\t\t\t\t}else if(arg.equals(\"-port\")) {\n\t\t\t\t\tport = Integer.parseInt(args[++i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tInetAddress address;\n\t\ttry {\n\t\t\taddress = InetAddress.getByName(DEFAULT_HOST);\n\t\t\tGame game = new Game();\n\t\t\tParser p = new Parser(game);\n\t\t\tgame = p.createGameFromFiles(1);\n\t\t\trunServer(address, DEFAULT_PORT, 1, DEFAULT_BROADCAST_CLK_PERIOD, PLAYER_UID++, game, 1);\n\t\t} catch (UnknownHostException e) {\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\t\tString username;\n\n\t\ttry {\n\n\t\t\t/* if no arguments were entered, a notification will be shown */\n\t\t\t\n\t\t\tif(args.length == 0) {\n\n\t\t\t\tSystem.out.println(USAGE);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t/* if the first argument is \"server\", a new server-object will be created and started */\n\t\t\t\n\t\t\tif(args[0].equalsIgnoreCase(\"server\")) {\n\n\t\t\t\t/* if there are not 3 arguments, a notification will be shown */\n\t\t\t\t\n\t\t\t\tif(args.length != 3) {\n\n\t\t\t\t\tSystem.out.println(USAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tServer server = new Server();\n\t\t\t\tserver.startHosting(Integer.parseInt(args[1]));\n\t\t\t\tusername = args[2];\n\t\t\t\n\t\t\t/* if the first argument is \"server\", a new server-object will be created and started */\n\t\t\t\t\n\t\t\t} else if(args[0].equalsIgnoreCase(\"client\")) {\n\n\t\t\t\t/* if there are not 4 arguments, a notification will be shown */\n\t\t\t\t\n\t\t\t\tif(args.length != 4) {\n\n\t\t\t\t\tSystem.out.println(USAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tClient client = new Client();\n\n\t\t\t\twhile(true) {\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tclient.connect(args[1], Integer.parseInt(args[2]));\n\t\t\t\t\t\tusername = args[3];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\t/* if the entered port number is not a number, a notification will be sent */\n\t\t\t\t\t\t\n\t\t\t\t\t} catch(NumberFormatException ex) {\n\n\t\t\t\t\t\tSystem.out.println(\"Port not a number\");\n\t\t\t\t\t\tSystem.out.println(USAGE);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t\n\t\t\t\t\t/* if the client couln't connect to the server, a connection will be retried in 2 seconds */\n\t\t\t\t\t\t\n\t\t\t\t\t} catch(Exception ex) {\n\n\t\t\t\t\t\tLOG.warn(\"Couldn't connect to server, retrying in 2 seconds\");\n\t\t\t\t\t\ttry { Thread.sleep(2000); } catch(InterruptedException ignore) { }\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t/* if the arguments are not correct set, a notification will be shown */\n\t\t\t\t\n\t\t\t} else {\n\n\t\t\t\tSystem.out.println(USAGE);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t/* a new MainFrame-object is decleared and the size of the window is set by 700 * 500 pixel */\n\n\t\t\tMainFrame mainFrame = new MainFrame(username);\n\t\t\tmainFrame.setSize(700, 500);\n\t\t\tmainFrame.setVisible(true);\n\n\t\t/* if the entered port number is not a number, a notification will be sent */\n\t\t\t\n\t\t} catch(NumberFormatException e) {\n\n\t\t\tSystem.out.println(\"Port not a number\");\n\t\t\tSystem.out.println(USAGE);\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n startupTime = DateUtil.getCurrentTimeSeconds();\n\n try {\n LoggingConfiguration.checkLoggingConfig();\n\n ServerConfiguration.load(\"server.ini\");\n GameConfiguration.load(\"game.ini\");\n\n log = LoggerFactory.getLogger(Kepler.class);\n ResourceLeakDetector.setLevel(ResourceLeakDetector.Level.ADVANCED);\n\n // TODO: The \"Standard\" ASCII from\n // http://patorjk.com/software/taag/#p=display&f=Standard&t=Kepler\n // On a grey background with white ASCII text\n // ASCII logo on the left side, contributors and other credits/info on the right side\n // TODO: also a way to disable the fancy headers, as in production it would only fill the logs\n log.info(\"Kepler - Habbo Hotel V21 Emulation\");\n\n if (!Storage.connect()) {\n return;\n }\n\n log.info(\"Setting up game\");\n\n WalkwaysManager.getInstance();\n ItemManager.getInstance();\n CatalogueManager.getInstance();\n RoomModelManager.getInstance();\n RoomManager.getInstance();\n PlayerManager.getInstance();\n FuserightsManager.getInstance();\n NavigatorManager.getInstance();\n GameScheduler.getInstance();\n CommandManager.getInstance();\n MessageHandler.getInstance();\n TextsManager.getInstance();\n\n // Get the server variables for the socket to listen on\n serverIP = ServerConfiguration.getString(\"server.bind\");\n serverPort = ServerConfiguration.getInteger(\"server.port\");\n\n // Get an InetAddressValidator\n InetAddressValidator validator = InetAddressValidator.getInstance();\n\n // Validate an IPv4 or IPv6 address\n if (!validator.isValid(serverIP)) {\n log.error(\"%s is not a valid IP\", serverIP);\n return;\n }\n\n // getByName parses IPv6, IPv4 and DNS all in one go\n serverIP = InetAddress.getByName(serverIP).getHostAddress();\n\n // Create the server instance\n // TODO: listen on both IPv4 and IPv6 if serverIP is 0.0.0.0 or localhost\n server = new NettyServer(serverIP, serverPort);\n server.createSocket();\n server.bind();\n\n Runtime.getRuntime().addShutdownHook(new Thread(() -> dispose()));\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void start() {\n // set player number\n playerNumber = clientTUI.getInt(\"set player number (2-4):\");\n while (true) {\n try {\n game = new Game();\n game.setPlayerNumber(playerNumber - 1);\n host = this.clientTUI.getString(\"server IP address:\");\n port = this.clientTUI.getInt(\"server port number:\");\n clientName = this.clientTUI.getString(\"your name:\");\n player = clientTUI.getBoolean(\"are you human (or AI): (true/false)\") ?\n new HumanPlayer(clientName) : new ComputerPlayer(clientName);\n game.join(player);\n // initialize the game\n game.init();\n while (clientName.indexOf(' ') >= 0) {\n clientName = this.clientTUI.getString(\"re-input your name without space:\");\n }\n this.createConnection();\n this.sendJoin(clientName);\n this.handleJoin();\n if (handshake) {\n run();\n } else {\n if (!this.clientTUI.getBoolean(\"Do you want to open a new connection?\")) {\n shutdown();\n break;\n }\n }\n } catch (ServerUnavailableException e) {\n clientTUI.showMessage(\"A ServerUnavailableException error occurred: \" + e.getMessage());\n if (!clientTUI.getBoolean(\"Do you want to open a new connection?\")) {\n shutdown();\n break;\n }\n }\n }\n clientTUI.showMessage(\"Exiting...\");\n }", "public static void main(String[] args){\n\t\tClientGui gui = new ClientGui();\n\t\tString address = args[0];\n\t\tgui.address=address;\n\t\tint port = Integer.parseInt(args[1]);\n\t\tgui.port = port;\n\t\t//unable to connect?\n\t\treturn ; \n\n\t}", "public static void main(String[] args) throws SlickException{\n\t\tnew ERGameEventFactory();\n \t\n\t\tif(args.length==0){\n \t\targs = new String[] {\"-sc\"};\n \t}\n \t\n\t\t\n\t\t\n \tif(args[0].equals(\"-s\") || args[0].equals(\"-sc\") ){//run the server on -s command\n \t\tEmptyRoomServer server = new EmptyRoomServer(); \n \tserver.start();\t\t\t\t\t\t\t\n \t}\n \tif (args[0].equals(\"-c\") || args[0].equals(\"-sc\") ){\n\n \t\tEmptyRoomSimulation client;\n \t\tif(args[0].equals(\"-c\") && args.length>1){\n \t \tclient = new EmptyRoomSimulation(args[1]);\n \t\t} else{\n \t\t\tclient = new EmptyRoomSimulation(\"localhost\");\n \t\t}\n \t\t\n\t \t//make client in network game framework\n\t \t\n\t \tclient.start();\n\t \t\n\t \t//SLICK\n\t \tAppGameContainer app = new AppGameContainer(new EmptyRoom(\"\", client));\n\t app.setDisplayMode(800, 600, false);\n\t app.setSmoothDeltas(true);\n\t app.setTargetFrameRate(60);\n\t app.setShowFPS(true);\n\t \n\t System.out.println(\"STARTING APP\");\n\t app.start();\n \t}\n\t}", "public static void main(String[] args) {\n if (args.length != 2) {\n System.out.println(\"Usage: java GuessClient host port\");\n } else {\n try {\n // initiate the network connection and set up the I/O streams\n GuessClient client = new GuessClient(args[0], Integer.parseInt(args[1]));\n // play the game\n client.playGame();\n // shut down the network connection\n client.shutDown();\n } catch (IOException ioe) {\n System.err.println(ioe.getMessage());\n }\n }\n }", "public static void main(String[] args) {\n\n ConsoleChessGui gui = new ConsoleChessGui();\n GameController gameController = new GameController(gui);\n gameController.run();\n\n\n\n\n }", "public static void main(String args[]) throws InterruptedException, IOException {\r\n\t\t\r\n\t\tsetupConnection();\r\n\t\t\r\n\t\t// Create GUI which also handles output to the server.\r\n\t\tHumanGUI GUI = new HumanGUI(sock);\r\n\t\t\r\n\t\t// Loop forever as the game could run forever\r\n\t\twhile (true) {\r\n\t\t\tString input = null;;\r\n\t\t\ttry {\r\n\t\t\t\tinput = serverReader.readLine();\r\n\t\t\t\t\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tshowMSG(CONNECTION_ERROR_MSG);\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// If the input is null it means the server has terminated the connection\r\n\t\t\tif(input == null) {\r\n\t\t\t\tshowMSG(CONNECTION_ERROR_MSG);\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Check to see if the server has sent a winner command\r\n\t\t\telse if(input.contains(\"WINNER\")) {\r\n\t\t\t\tshowMSG(WINNER_MSG);\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Check if it is a look window being sent from the server\r\n\t\t\telse if(input.contains(\"X\")) {\r\n\t\t\t\tString[] lookWindow = new String[5];\r\n\t\t\t\tlookWindow[0] = input;\r\n\t\t\t\t\r\n\t\t\t\t// Read all 5 lines of the look window\r\n\t\t\t\tfor(int i = 1; i < 5; i++) {\r\n\t\t\t\t\tlookWindow[i] = serverReader.readLine();\r\n\t\t\t\t}\r\n\t\t\t\tGUI.updateLook(lookWindow);\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t// Check if the server has sent a 'successful pickup' command\r\n\t\t\telse if(input.contains(\"GOLD\")) {\r\n\t\t\t\tGUI.updateGold(input);\r\n\t\t\t}\t\t\r\n\t\t}\r\n\t}", "public void start()\r\n {\r\n System.out.print(\"Server host? [localhost]: \");\r\n String host = scanner.nextLine().trim();\r\n if(host.length() == 0)\r\n {\r\n host = \"localhost\";\r\n }\r\n \r\n System.out.print(\"Server port? [2345]: \");\r\n String portString = scanner.nextLine().trim();\r\n if(portString.length() == 0)\r\n {\r\n portString = \"2345\";\r\n }\r\n int port = Integer.parseInt(portString);\r\n //trying to establish connection through the socket\r\n try(Socket socket = new Socket(host, port))\r\n {\r\n //creating i/o streams\r\n outputStream = new ObjectOutputStream(socket.getOutputStream());\r\n HelloRequest request = new HelloRequest();\r\n request.setName(\"world\");\r\n outputStream.writeObject(request);\r\n inputStream = new ObjectInputStream(socket.getInputStream());\r\n inputStream.readObject();\r\n System.out.println(\"Server connected.\");\r\n \r\n // login.\r\n while(!this.login())\r\n {\r\n ;\r\n }\r\n \r\n // Executing users input\r\n options:\r\n while(true)\r\n {\r\n try\r\n {\r\n int option = this.readOption(\"1. Create a game 2. Set commands 3. Get high scores 4. Delete a game 5. Start a game 6. Show a game 7. Logout : \", 1, 7);\r\n switch(option)\r\n {\r\n case 1: this.createGame(); break;\r\n case 2: this.setCommands(); break;\r\n case 3: this.getHighScores(); break;\r\n case 4: this.deleteGame(); break;\r\n case 5: this.startGame(); break;\r\n case 6: this.showGame(); break;\r\n case 7: this.logout(); break options;\r\n }\r\n }catch(Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }\r\n }catch(Exception e)\r\n {\r\n throw new RuntimeException(e);\r\n }\r\n }", "public static void main(String[] args) {\n\t\t\n\t\ttry {\n\t\t\tServerSocket serverSocket = new ServerSocket(2011);\n\t\t\tnew MainFrame();\n\t\t} catch (IOException e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n // parses the command-line arguments\n ICmdHandler cmdHandler = new CmdHandler(args);\n if (!cmdHandler.isValid()) {\n throw new InvalidInputArgumentException(cmdHandler.getErrorMessage());\n }\n\n // creates the socket\n String hostname = cmdHandler.getHostname();\n int portNumber = cmdHandler.getPortNumber();\n Socket socket = createSocket(hostname, portNumber);\n\n // initializes a new player and starts the game\n IPlayer player = new YahtzeePlayer(socket);\n player.playGame();\n }", "public static void main(String[] args) {\n startServer();\n Application.launch(GUI.class, args);\n }", "public static void main(String[] args) {\n\t\tint choice = Integer.parseInt(JOptionPane.showInputDialog(\"Type 1 for server | Type 2 for client\"));\r\n\t\t\r\n\t\tif (choice == 1) {\t// assign to server\r\n\t\t\tnew GameServer() ;\r\n\t\t} else if (choice == 2) {\t// assign to client\r\n\t\t\tnew GameClient() ;\r\n\t\t} else {\r\n\t\t\t// show the message when user enter wrong number\r\n\t\t\tJOptionPane.showMessageDialog(null, \"You entered the wrong number, please try again!\") ;\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tserver_gui s_gui = new server_gui();\n\t}", "public static void main(String[] args) {\n String pswd=JOptionPane.showInputDialog(\"Input MySQL root password\");\n try {\n database.initial.initialize(pswd);\n message.initial.initialize(pswd);\n } catch (SQLSyntaxErrorException e) {\n System.out.println(\"Database already exists\");\n } catch (IOException e) {\n JOptionPane.showMessageDialog(null,e.getMessage());\n return;\n } catch (Exception e) {\n e.printStackTrace();\n JOptionPane.showMessageDialog(null,\"Failed to connect to database\");\n return;\n }\n\n //build GUI\n JFrame gui=new JFrame();\n gui.setLayout(new BorderLayout());\n JPanel labels=new JPanel();\n labels.setSize(400,200);\n labels.setLayout(new GridLayout(3,1));\n JLabel ipLabel1=new JLabel(\"IP: Pending...\");\n JLabel ipLabel2=new JLabel(\"Port: Pending...\");\n JLabel notice=new JLabel(\"Tell your clients the above information!\");\n ipLabel1.setHorizontalAlignment(SwingConstants.CENTER);\n ipLabel2.setHorizontalAlignment(SwingConstants.CENTER);\n notice.setHorizontalAlignment(SwingConstants.CENTER);\n labels.add(ipLabel1,0);\n labels.add(ipLabel2,1);\n labels.add(notice,2);\n JTextArea text=new JTextArea();\n text.setEditable(false);\n JScrollPane scrollPane=new JScrollPane(text);\n gui.add(labels,BorderLayout.NORTH);\n gui.add(scrollPane,BorderLayout.CENTER);\n gui.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n gui.setSize(400,550);\n gui.setTitle(\"Server\");\n gui.setVisible(true);\n String lip=getLocalIP();\n ipLabel1.setText(\"IP: \"+lip);\n if(!getInternetIP().equals(lip))\n notice.setText(\"Warning: NOT Internet IP! Try natapp.cn for Internet service.\");\n\n //Launch server\n ServerNetManager network;\n try {\n try {\n network = new ServerNetManager(13060);\n } catch (IOException e) {\n network = new ServerNetManager(0);\n }\n ipLabel2.setText(\"Port: \"+network.getPort());\n } catch (IOException e) {\n System.err.println(\"Failed to launch server network!\");\n return;\n }\n\t\tnetwork.parser=new ServerBeanParser(\n network,\n new AccountManager(pswd),\n new FriendSysManager(pswd),\n new MessageManager(pswd),\n new MailVerifier(\"[email protected]\",\"CNKFUFWDLSCRSKYG\", \"smtp.163.com\")\n );\n\n network.log=(s)->\n SwingUtilities.invokeLater(()->text.append(\n new SimpleDateFormat(\"HH:mm:ss\").format(new Date())+\" \"+s+'\\n'));\n try {\n network.start();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n try{\n if((args.length%2) != 0){\n expectedUsage();\n }\n\n for(int i = 0; i < args.length; i+=2){\n try{\n switch(args[i]){\n case \"--PORT\":\n SERVER_PORT = Integer.parseInt(args[i+1]);\n if(SERVER_PORT <= 0){\n System.out.println(\"Invalid Port Number.\");\n throw new NumberFormatException();\n }\n break;\n case \"--PLAYERS\":\n PLAYERS_PER_TABLE = Integer.parseInt(args[i+1]);\n if(PLAYERS_PER_TABLE <= 0){\n System.out.println(\"Invalid Number of Players. Must be greater than 0.\");\n throw new NumberFormatException();\n }\n break;\n case \"--MONEY\":\n STARTING_MONEY = Integer.parseInt(args[i+1]);\n if(STARTING_MONEY <= 0){\n System.out.println(\"Invalid Amount of Starting Money. Must be greater than 0.\");\n throw new NumberFormatException();\n }\n break;\n case \"--BET\":\n MINIMUM_BET = Integer.parseInt(args[i+1]);\n if(MINIMUM_BET <= 0){\n System.out.println(\"Invalid Minimum Bet. Must be greater than 0.\");\n throw new NumberFormatException();\n }\n break;\n case \"--DECKS\":\n DECKS_USED = Integer.parseInt(args[i+1]);\n if(DECKS_USED <= 0){\n System.out.println(\"Invalid Number of Decks. Must be greater than 0.\");\n throw new NumberFormatException();\n }\n break;\n default:\n expectedUsage();\n }\n }catch(NumberFormatException e){\n expectedUsage();\n }\n }\n if(STARTING_MONEY < MINIMUM_BET){\n System.out.println(\"Starting Money must be greater than/equal to the Minimum Bet\");\n expectedUsage();\n }\n if(CARDS_BEFORE_SHUFFLE > 0.2*(52 * DECKS_USED)){\n CARDS_BEFORE_SHUFFLE = (int) Math.floor(0.2 * 52 * DECKS_USED);\n }\n\n System.out.println(\"Server Starting...\");\n\n ServerSocket serverSocket = new ServerSocket(SERVER_PORT); //Initialise Server on specified Port\n SERVER_ADDRESS = InetAddress.getLocalHost().getHostAddress(); //Get the IP Address of Server\n\n System.out.println(String.format(\"Server Running:\\n\\tPort: %d\\n\\tIP Address: %s\", SERVER_PORT, SERVER_ADDRESS));\n System.out.println(String.format(\"\\tNumber of Players: %d\\n\\tDecks Used: %d\\n\\tCards Before Shuffle: %d\" +\n \"\\n\\tStarting Money: %.2f\\n\\tMinimum Bet: %.2f\",\n PLAYERS_PER_TABLE, DECKS_USED, CARDS_BEFORE_SHUFFLE, STARTING_MONEY, MINIMUM_BET));\n\n int connectedClients = 0; //Number of Currently connected players\n Table playingTable = new Table(MINIMUM_BET, DECKS_USED, CARDS_BEFORE_SHUFFLE);\n System.out.println(\"Waiting for Clients to Connect...\");\n\n do{\n Socket playerSocket = serverSocket.accept(); //Connect new client\n connectedClients++;\n\n int clientPort = playerSocket.getPort(); //Extract Server Port and IP Address\n String clientAddress = playerSocket.getInetAddress().getHostAddress();\n\n Player player = new Player(playerSocket, playingTable, STARTING_MONEY);\n playingTable.addPlayer(player);\n new Thread(player).start();\n System.out.println(String.format(\"Client %d Connected:\\n\\tPort: %s\\n\\tIP Address: %s\", connectedClients, clientPort, clientAddress));\n\n }while(connectedClients < PLAYERS_PER_TABLE);\n\n System.out.println(\"All Clients Connected\");\n playingTable.run();\n System.out.println(\"Playing Table Finished!\");\n }catch (IOException e){\n e.printStackTrace();\n System.exit(-1);\n }\n\n\n }", "public static void main(String[] args) {\n setUpGamePlayer();\r\n \r\n //display of game board for computer\r\n setUpGameComp();\r\n System.out.println();\r\n \r\n System.out.println();\r\n System.out.println();\r\n \r\n //starting game\r\n // code incomplete to play game\r\n //playGame();\r\n }", "public static void main(String[] args)\n\t{\n\t\tloginWindow = new ClientLogonDialog(null);\n\t\t\n\t\t// If the user quit the dialog, we must quit\n\t\tif (!loginWindow.show())\n\t\t\tSystem.exit(0);\n\t\t// Else play the game\n\n\t\tMap map;\n\t\tGameEngine game;\n\t\tdo\n\t\t{\n\t\t\t// This grabs a random map on startup\n\t\t\tmap = new Map(MAP_LIST[RANDOM.nextInt(MAP_LIST.length)]);\n Random random = new Random();\n char playerId = (char) random.nextInt(MAX_PLAYERS);\n //System.out.println(playerId);\n\t\t\tgame = new GameEngine(map, playerId, loginWindow.getUserName(), false);\n\t\t\t\n\t\t\t// Set up the game gameWindow\n\t\t\tgameWindow = new JDialog();\n\t\t\tgameWindow.setTitle(CLIENT_WINDOW_NAME);\n\t\t\tgameWindow.setModal(true);\n\t\t\t\n\t\t\tgameWindow.getContentPane().add(game.getGameViewArea(), BorderLayout.CENTER);\n\t\t\t\n\t\t\tgameWindow.pack();\n\t\t\tgameWindow.setLocationRelativeTo(null);\n\t\t\t\n ClientWindow s = new ClientWindow(game);\n\n s.start();\n\t\t\t\n\t\t\tgame.registerActionListeners(gameWindow);\n\t\t\t// Play the game once:\n\t\t\tgameWindow.setVisible(true);\n\t\t\tgame.unregisterActionListeners(gameWindow);\n\t\t\t\n\t\t\t// Show the login dialog again\n\t\t}\n\t\twhile (loginWindow != null && loginWindow.show());\n\t\t// If quit, don't loop\n\t\t\n\t\t// TEMP: this is for testing only:\n\t\tgameWindow.dispose();\n\t\t\n\t\tSystem.exit(0);\n\t}", "private void runServer()\n\t{\n\t\tif(sm == null)\n\t\t{\n\t\t\tsm = new ServerManager();\n\t\t}\n\t\t\n\t\tint port = 1209;\n\t\ttry \n\t\t{\n\t\t\twaitUser(sm, port);\n\t\t\t//이 아래 로직이 실행된다는건 유저가 다 들어왔다는 뜻임. 즉 게임 시작할 준비 되었음을 의미함\t\t\t\n\t\t\tGame.getInstance().runGame();\n\t\t} \n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"[Server.runServer()] error >>> : \" + e.getMessage());\n\t\t}\n\t}", "public static void main(String[] args) throws IOException \n {\t \n\tScanner scannerIn = new Scanner(System.in);\n\tSystem.out.print(\"Please enter port number for the Chat Server to run on : \");\n\tint port = scannerIn.nextInt();\n\t//starts new ChatServer\n\tChatServer cs = new ChatServer(port);\n }", "public static void main(String[] args) throws IOException {\t\t\t\n\t\t\n\t\tSystem.out.println(\"Starting server...\");\n\t\tGameServer gameServer = new GameServer(4321);\n\t\tgameServer.serve();\n\n\t}", "public static void main(String[] args) {\n init();\n\n //take input from the players before starting the game\n input();\n\n //the gameplay begins from here\n System.out.println();\n System.out.println();\n System.out.println(\"***** Game starts *****\");\n play();\n }", "public static void main(String[] args)\n\t{\n\t\tnew ClientGUI();\n\t}", "public static void main(String[] args)\n {\n if (args.length != 1) {\n System.err.println(\"Usage: GamePlayer <port>\");\n System.exit(1);\n }\n\n try {\n GamePlayer player = new GamePlayer(Integer.valueOf(args[0]), new RandomGamer());\n player.run();\n } catch (NumberFormatException e) {\n System.err.println(\"Illegal port number: \" + args[0]);\n e.printStackTrace();\n System.exit(2);\n } catch (IOException e) {\n System.err.println(\"IO Exception: \" + e);\n e.printStackTrace();\n System.exit(3);\n }\n }", "public Main(String title) {\n super(title);\n \n setSize(200, 100);\n setResizable(false);\n setLayout(new GridLayout(1, 2));\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n \n JButton host = new JButton(\"Host\");\n host.addActionListener(new ActionListener() {\n \n @Override\n public void actionPerformed(ActionEvent e) {\n // Launch server\n new Server(\"JTetris - Server\");\n dispose();\n }\n });\n add(host);\n JButton join = new JButton(\"Join\");\n join.addActionListener(new ActionListener() {\n \n @Override\n public void actionPerformed(ActionEvent e) {\n // Launch client\n String ip = JOptionPane.showInputDialog(null, \"IP Address:\", \"Server IP Addresss\", JOptionPane.QUESTION_MESSAGE);\n \n if (ip != null) {\n if (!ip.equals(\"\"))\n new Client(\"JTetris - Client\", ip);\n dispose();\n } else\n JOptionPane.showMessageDialog(null, \"Invalid IP Addres.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n });\n add(join);\n setLocationRelativeTo(null);\n setVisible(true);\n }", "public static void main(String[] args){\n\t\t EventQueue.invokeLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t // create our game and set it to visible\n\t \tSnakeGame game = new SnakeGame();\n\t }\n\t });\n\t}", "public static void main(String[] args) {\n boolean cmdStart = false;\n if (args.length != 0) {\n GuiUtils guiUtils = new GuiUtils();\n String errorResponse = guiUtils.verifyPort(args[0]);\n if (errorResponse != null) {\n System.err.println(\"Could not start the Server: \" + errorResponse);\n System.exit(-1);\n } else {\n int port = Integer.parseInt(args[0]);\n HangmanServer hangmanServer = new HangmanServer();\n hangmanServer.config = new ServerConfiguration(port);\n hangmanServer.run();\n cmdStart = true;\n }\n }\n \n if (!cmdStart) {\n launch(args);\n }\n }", "@Override\n @SuppressWarnings(\"CallToPrintStackTrace\")\n public void simpleInitApp() {\n \n\n try {\n System.out.println(\"Using port \" + port);\n // create the server by opening a port\n server = Network.createServer(port);\n server.start(); // start the server, so it starts using the port\n } catch (IOException ex) {\n ex.printStackTrace();\n destroy();\n this.stop();\n }\n System.out.println(\"Server started\");\n // create a separat thread for sending \"heartbeats\" every now and then\n new Thread(new NetWrite()).start();\n server.addMessageListener(new ServerListener(), ChangeVelocityMessage.class);\n // add a listener that reacts on incoming network packets\n \n }", "public static void main(String[] args) {\n Game game = new Game(\"Programming 2 Project\",600,600);\n game.start();\n \n }", "public static void main(String[] args) throws IOException {\n // Get proper arguments and override defaults\n\n boolean isExit = false;\n Scanner scan = new Scanner( System.in );\n\n String username;\n int port;\n String serverAddress;\n\n switch( args.length ) {\n case 3:\n username = args[0];\n port = Integer.parseInt( args[1] );\n serverAddress = args[2];\n break;\n case 2:\n username = args[0];\n port = Integer.parseInt( args[1] );\n serverAddress = \"localhost\";\n break;\n case 1:\n username = args[0];\n port = 1500;\n serverAddress = \"localhost\";\n break;\n default:\n username = \"Anonymous\";\n port = 1500;\n serverAddress = \"localhost\";\n }\n\n String hostname;\n\n // Create your client and start it\n ChatClient client = new ChatClient( serverAddress, port, username );\n //ChatClient client = new ChatClient(\"localhost\", 1500, \"CS 180 Student\");\n boolean serverStart = client.start();\n\n // Send an empty message to the server\n if ( !serverStart || !client.socket.isConnected() ) {\n System.out.print(\"\");\n isExit = true;\n } else {\n try {\n client.sendMessage(new ChatMessage( \"just joined\", 0, null));\n } catch ( SocketException ignored) {\n isExit = true;\n }\n }\n //client.sOutput.flush();\n //client.sendMessage( new ChatMessage( \"yeet\", 0 ));\n\n while ( !isExit ) {\n String message = scan.nextLine();\n\n if ( message.toLowerCase().contains( \"/logout\" ) ) {\n client.sendMessage(new ChatMessage(message, 1, null));\n try {\n client.sOutput.close();\n client.sInput.close();\n isExit = true;\n System.out.println(\"You have been successfully logged out.\");\n //client.socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else if ( message.contains( \"/msg\" ) ) {\n String[] msg = message.split(\" \");\n String privateMessage = \"\";\n for ( int i = 2; i < msg.length; i++ ) {\n privateMessage = privateMessage + msg[i] + \" \";\n }\n client.sendMessage( new ChatMessage( privateMessage , 2, msg[1] ));\n } else if ( message.contains( \"/list\" ) ) {\n client.sendMessage( new ChatMessage( null, 3, null ));\n } else {\n client.sendMessage( new ChatMessage( message, 0 , null) );\n }\n }\n\n //BufferedReader userInputReader = new BufferedReader( new InputStreamReader( client.socket.getInputStream() ));\n //String message = userInputReader.readLine();\n //client.sendMessage( new ChatMessage( message, 0));\n\n }", "public static void main(String[] args){\n \n Chat m = new Chat();\n m.connectChat(new String[]{\"100.1.215.220\",\"8889\"});\n //m.runServer(new String[]{\"192.168.1.164\",\"8889\"});\n }", "public static void main(String args[]) {\n\t\tchatClient c = new chatClient();\r\n\t\tc.createGUI();// call createGUI() method\r\n\r\n\t}", "public static void main(String[] args)\n {\n if (setupDialog.dialogValue())\n System.exit(0);\n\n // Message loop listening for incoming messages from the server.\n String chatMsg;\n for (;;)\n {\n try\n {\n // Get message from server.\n chatMsg = streamIn.readLine();\n }\n catch(SocketException se)\n {\n // If SocketException is thrown, the socket has been disconnected.\n chatMsg = \"Disconnected.\";\n }\n catch(IOException ioe)\n {\n // Catch I/O exception on socket buffer.\n chatMsg = \"Socket I/O error: \" + ioe.getMessage();\n }\n\n // If user is disconnected, bring up setupDialog again\n if (chatMsg == null)\n {\n clientFrame.printMsg(\"Disconnected.\");\n\n // If user selects cancel, quit app\n if (setupDialog.dialogValue())\n System.exit(0);\n else\n continue;\n }\n\n // Print the message in the chat window.\n clientFrame.printMsg(chatMsg);\n }\n }", "public static void main(String[] args){\n\t\t\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tGameLauncher gameLauncher = new GameLauncher();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n MainGameClass mg=new MainGameClass();\n mg.start();\n \n \n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String args[]){\r\n\t\tnew ChatServer();\r\n\t}", "public static void main(String[] args){\n String data = JOptionPane.showInputDialog(null,\"What is the IP Address of the server?\", \"Connect to Server\", JOptionPane.PLAIN_MESSAGE);\n if(data != null){\n CoronosClient c = new CoronosClient(data);\n }\n else{\n System.exit(0);\n }\n }", "public static void main(String[] args) {\n //Starts the choice class\n choice();\n //This runs the single player mode\n if (whichProgramToStart == 0) {\n\n JFrame frame = new JFrame(\"Single Player\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setLayout(new BorderLayout());\n SinglePlayerPongPanel singlePongPanel = new SinglePlayerPongPanel();\n frame.add(singlePongPanel, BorderLayout.CENTER);\n frame.setResizable(false);\n frame.setSize(500, 500);\n frame.setVisible(true);\n\n } //This runs the online multiplayer mode\n else if (whichProgramToStart == 1) {\n\n JFrame frame = new JFrame(\"Online Multiplayer\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setLayout(new BorderLayout());\n OnlineMultiplayer onlineMultiplayer = new OnlineMultiplayer();\n frame.add(onlineMultiplayer, BorderLayout.CENTER);\n frame.setResizable(false);\n frame.setSize(500, 500);\n frame.setVisible(true);\n\n } //This runs the local multiplayer mode\n else if (whichProgramToStart == 2) {\n\n JFrame frame = new JFrame(\"Local Multiplayer\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setLayout(new BorderLayout());\n LocalMultiplayer localMultiplayer = new LocalMultiplayer();\n frame.add(localMultiplayer, BorderLayout.CENTER);\n frame.setResizable(false);\n frame.setSize(500, 500);\n frame.setVisible(true);\n }\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t // gui=new GUI();\n //create a hashmap for collecting all the connected socket along with the username\n map=new HashMap<String,Socket_thread>();\n \n\t\t\n \n \n \n \n \n //this thread is used for notifying the client which port to chose\n\t\tThread thread_8000=new Thread(new Server_8000());\n\t\tthread_8000.start();\n \n \n //thread for image transfer server \n imageServer=new ImageServer();\n imageServer.start();\n \n \n //server_9000 for connection check\n Server_9000 server_9000=new Server_9000();\n server_9000.start();\n \n\n\t\tThread[] thread=new Thread[4]; \n\n\t\t//three other thread created with different port number\n\t\tthread_8001=new ServerConnect(8001);\n\t\tthread[0]=new Thread(thread_8001);\n\t\tthread[0].start();\n\n\t\tthread_8002=new ServerConnect(8002);\n\t\tthread[1]=new Thread(thread_8002);\n\t\tthread[1].start();\n\n\t\tthread_8003=new ServerConnect(8003);\n\t\tthread[2]=new Thread(thread_8003);\n\t\tthread[2].start();\n\n\n\t}", "public SimpleGUI(String p_host, String p_name) {\r\n super();\r\n initialize();\r\n int porti=1099;\r\n String adresa=\"192.165.43.195\"; \r\n try\r\n {\r\n this.rem = (ServerInterface)Naming.lookup(\"rmi://\"+adresa+\":\"+porti+\"/RMD\");\r\n \t\r\n this.id = rem.EnterGame(p_name);\r\n System.out.println(\"Your id is : \"+ id);\r\n \t\r\n if(id == 0)\r\n {\r\n System.out.println(\"Max Connection reached\");\r\n \t\r\n }\r\n else\r\n {\r\n this.name = rem.getName(id);\r\n this.setTitle(\"Welcome \" + name);\r\n \t\r\n GiveCards();\r\n \t\r\n }\r\n \r\n }\r\n catch (MalformedURLException e)\r\n {\r\n System.err.println(\"MalformedURLException: \"+e.getMessage());\r\n }\r\n catch (RemoteException e)\r\n {\r\n System.err.println(\"RemoteException: \" + e.getMessage());\r\n }\r\n catch (NotBoundException e)\r\n {\r\n System.err.println(\"NotBoundException: \"+e.getMessage());\r\n }\r\n }", "public static void main(String[] args) {\n if (Config.Api.URL.contains(\"localhost\")) {\n Server.main(new String[0]);\n }\n Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();\n config.setTitle(Config.Game.TITLE);\n config.setWindowedMode(Config.Game.WIDTH, Config.Game.HEIGHT);\n config.setWindowIcon(Config.Game.ICON);\n config.setResizable(false);\n new Lwjgl3Application(new BubbleSpinner(), config);\n }", "public static void main(String[] args) {\n\t\tString[] arguments = new String[8];\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Arguments for first camera/server connection\");\n\t\tSystem.out.println(\"rt@argus-N, insert chosen N:\");\n\t\targuments[0] = scan.nextLine();\n\t\tSystem.out.println(\"Insert chosen proxyport ****:\");\n\t\targuments[1] = scan.nextLine();\n\t\tSystem.out.println(\"Arguments for second camera/server connection\");\n\t\tSystem.out.println(\"rt@argus-N, insert chosen N:\");\n\t\targuments[2] = scan.nextLine();\n\t\tSystem.out.println(\"Insert chosen proxyport ****:\");\n\t\targuments[3] = scan.nextLine();\n\n\t\tClient client = new Client();\n\n\t\tGUIThread gui = new GUIThread(client);\n\n\t\tgui.start();\n\n\t\tServer1 s = new Server1(arguments[0], \"6077\", \"0\", arguments[1]);\n\t\ts.start();\n\t\tServer2 s2 = new Server2(arguments[2], \"6078\", \"1\", arguments[3]);\n\t\ts2.start();\n\t}", "public static void main (String arg[]) throws IOException\n {\n try\n {\n Socket socket = new Socket(\"127.0.0.1\", 3000);\n //System.out.println(\"Connected!\");\n DataInputStream inputStream = new DataInputStream(socket.getInputStream());\n String received = inputStream.readUTF();\n System.out.println(received);\n }\n catch(Exception e) {}\n\n IO ioMenu = new IO();\n ioMenu.runMenu();\n }", "public static void main(String[] args) {\r\n\t\tnew ServerFrame().setVisible(true);\r\n\t}", "public synchronized void start() {\n\t\trunning=true;\n\t\tnew Thread(this).start();\n\t\t\n\t\tif(JOptionPane.showConfirmDialog(this, \"Do you want to run the server\")==0){\n\t\t\tsocketServer = new GameServer(this);\n\t\t\tsocketServer.start();\n\t\t\t\n\t\t}\n\t\tsocketClient=new GameClient(this, \"localhost\");\n\t\tsocketClient.start();\n\t}", "public static void main(String[] args) {\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n try {\n new LaunchGame().setVisible(true);\n } catch (IOException ex) {\n Logger.getLogger(LaunchGame.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n });\n }", "public static void main(String[] args){\n\t\tint port = 6677;\n\t\tboolean done = false;\n\t\tboolean connected = false;\n\t\tboolean ourTurnToSend = true;\n\t\tString clientTextSent = new String();\n\t\tString emptyString = new String();\n\t\tString ip = new String(\"\");\n\t\tScanner in;\n\t\tScanner terminalText = new Scanner(System.in);\n\t\tPrintWriter out;\n\t\ttry{\n\t\t\tSocket chatSocket;\n\t\t\tchatSocket = new Socket(ip,3000);\n\t//------------------------------------------------------------------------I have a chat socket, HOHOHO--------------------------\n\t\t\tin = new Scanner(chatSocket.getInputStream());\n\t\t\tout = new PrintWriter(chatSocket.getOutputStream());\n\t//------------------------------------------------------------------------Fully initialised, front-back chat possible------------\n\t\t\twhile(done == false){\n\t\t\t\tout.println(\"{\\\"PLAYER_NUMBER\\\":\\\"P1\\\",\\\"PROTOCOL\\\":\\\"PADDLE_MOVEMENT\\\",\\\"X\\\":-293.3333333333334,\\\"Y\\\":-230}\");out.flush();\n\t\t\t}\n\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Shit be whack Yo\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) throws IOException, InterruptedException {\n\t\tLwjglApplicationConfiguration config = new LwjglApplicationConfiguration();\n\t\tconfig.title = \"Catch It - Game\";\n\t\tconfig.height = 720;\n\t\tconfig.width = 1080;\n\n\t\tnew LwjglApplication(new Chansey_Game(), config);\n\n\t\tServerSocket serverSocket = new ServerSocket(9655);\n\t\twhile( true) {\n\t\t\tSystem.out.println(\"Server Open\");\n\n\t\t\tSocket clientSocket = serverSocket.accept();\n\t\t\tPrintWriter out =\n\t\t\t\t\tnew PrintWriter(clientSocket.getOutputStream(), true);\n\t\t\tBufferedReader in = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(clientSocket.getInputStream()));\n\t\t\tString line = in.readLine();\n\t\t\tSystem.out.println(line);\n\t\t\tif ( line != null && !line.equals( \"\") ) {\n\t\t\t\tPrintWriter fileOut = new PrintWriter(new BufferedWriter(new FileWriter(\"Server/globalScores.txt\", true)));\n\t\t\t\tfileOut.println(line);\n\t\t\t\tfileOut.close();\n\t\t\t}\n\n\t\t\tThread.sleep(1000);\n\n\t\t}\n\n\t}", "public static void main(String[] arguments){\r\n TicTac frame = new TicTac(); //runs the screen layout class.\r\n }", "public static void main(String[] args) {\n Server server = new Server(1234);\n server.listen();\n \n // YOUR CODE HERE\n // It is not required (or recommended) to implement the server in\n // this runner class.\n }", "public static void main(String[] args) {\r\n\t\tSystem.out.println(\"Starting...\");\r\n\t\ttry {\r\n\t\t\tCmdApp cmd = new CmdApp();\t\t\r\n\t\t\tcmd.launchGame();\t\t\t\r\n\t\t} catch (FileNotFoundException | LevelException | VacuumException | SpriteException e) {\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Finishing... bye!!\");\r\n\t}", "public static void main(String[] args) throws IOException {\n\t\tGame game = new Game();\n\n // Setup server logs\n Logger commLog = Utility.createLogger(COMMUNICATIONS_LOG, ServerCallback.class);\n IServerCallback serverCallback = new ServerCallback(commLog);\n\n // Game log\n Logger gameLog = Utility.createLogger(GAME_LOG, GameCallbackLogger.class);\n GameCallbackLogger gameCallbackLogger = new GameCallbackLogger(gameLog);\n\t\t\n\n\t\t// Client processes are saved here\n\t\tMap<Socket, ServerProcess> processes = new ConcurrentHashMap<>();\n\t\t\n\t\t// Create the server\n\t\tMultiPlayerServer multiPlayerServer = new MultiPlayerServer(DEFAULT_PORT, game);\n\t\tmultiPlayerServer.addServerCallback(serverCallback);\n\t\t\n\t\ttry {\n\t\t\t// start the server\n\t\t\tmultiPlayerServer.start();\n\t\t\tServerSocket serverSocket = multiPlayerServer.getServerSocket();\n\t\t\tgame.start();\n\n\t\t\t// close the server using 'q'\n\t\t\tThread background = new Thread(() -> {\n\t\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t\tString line = \"\";\n\t\t\t\tSystem.out.println(\"Press 'q' to exit the server.\");\n\t\t\t\tdo {\n\t\t\t\t\tline = scanner.nextLine();\n\t\t\t\t} while (!line.equals(\"q\"));\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tfor (ServerProcess process : processes.values()) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tSocket socket = process.getSocket();\n\t\t\t\t\t\t\tsocket.close();\n\t\t\t\t\t\t\tserverCallback.onClientDisconnected(multiPlayerServer, socket, process);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tserverCallback.onException(process, e);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tserverSocket.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tserverCallback.onException(null, e);\n\t\t\t\t}\n\t\t\t\tscanner.close();\n\t\t\t});\n\t\t\tbackground.start();\n\t\t\t\n\t\t\t\n\t\t\tdo {\n\t\t\t\t// listen for new connections\n\t\t\t\tSocket socket = serverSocket.accept();\n\t\t\t\t\n\t\t\t\t// keep alive\n\t\t\t\tsocket.setKeepAlive(true);\n\t\t\t\t\n\t\t\t\tserverCallback.onClientConnected(multiPlayerServer, socket);\n\t\t\t\t\n\t\t\t\t// process the game in a new thread per client connected\n\t\t\t\tServerProcess process = new ServerProcess(game, socket, serverCallback, gameCallbackLogger);\n\t\t\t\tThread thread = new Thread(process);\n\t\t\t\tthread.start();\n\t\t\t\t\n\t\t\t\t// save this process for future reference\n\t\t\t\tprocesses.put(socket, process);\n\n\t\t\t} \n\t\t\twhile (true);\n\t\t}\n\t\t// server operator closed the server\n\t\tcatch (SocketException e) {\n\t\t\tSystem.out.println(\"Server closed.\");\n\t\t}\n\t\t// when something wrong happens, trigger an onException() event\n\t\tcatch (IOException e) {\n\t\t\tserverCallback.onException(null, e);\n\t\t}\n\t\t// close the server\n\t\tfinally {\n\t\t\tmultiPlayerServer.close();\n\t\t}\n\t}", "public static void main(String [] args){\n\t int port = 55002;\n\t DungeonServer theServer = new DungeonServer(port);\n\t theServer.setup();\n\t \n\t }", "public static void main(String[] args) {\r\n\r\n\t\t// Much taken from the application launcher provided by WindowBuilder in\r\n\t\t// Eclipse.\r\n\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// Create a setup window and set the action for pressing the\r\n\t\t\t\t\t// start game button.\r\n\t\t\t\t\tsetup = new SetupGUI();\r\n\t\t\t\t\tsetup.addStartGameActionListener(new ActionListener() {\r\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\t\t\t\tsetup.setVisible(false);\r\n\r\n\t\t\t\t\t\t\t// If the view is never disposed, it can not be\r\n\t\t\t\t\t\t\t// garbage collected\r\n\t\t\t\t\t\t\tif (view != null)\r\n\t\t\t\t\t\t\t\tview.dispose();\r\n\r\n\t\t\t\t\t\t\t// Create the underlying game model with the values\r\n\t\t\t\t\t\t\t// set in the setup window\r\n\t\t\t\t\t\t\tmodel = new GreedGameModel(setup.getBustLimit(),\r\n\t\t\t\t\t\t\t\t\tsetup.getPointsToWin());\r\n\r\n\t\t\t\t\t\t\t// Create a new view and set it to observe the game\r\n\t\t\t\t\t\t\t// model\r\n\t\t\t\t\t\t\tview = new GreedGameGUI(model);\r\n\r\n\t\t\t\t\t\t\t// Set an action for when the window is closing,\r\n\t\t\t\t\t\t\t// either manually or because the model has ended\r\n\t\t\t\t\t\t\tview.addWindowListener(new WindowAdapter() {\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void windowClosing(WindowEvent arg0) {\r\n\r\n\t\t\t\t\t\t\t\t\t// Get the winning player, if any\r\n\t\t\t\t\t\t\t\t\tPlayer winningPlayer = model\r\n\t\t\t\t\t\t\t\t\t\t\t.getWinningPlayer();\r\n\r\n\t\t\t\t\t\t\t\t\t// If a winning player was found, present\r\n\t\t\t\t\t\t\t\t\t// the players result to the user with a\r\n\t\t\t\t\t\t\t\t\t// message box\r\n\t\t\t\t\t\t\t\t\tif (winningPlayer != null)\r\n\t\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\t\t\t\t\t\t\tnull,\r\n\t\t\t\t\t\t\t\t\t\t\t\twinningPlayer.getName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" won the game with \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ winningPlayer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getScore()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" points.\");\r\n\r\n\t\t\t\t\t\t\t\t\t// Change visible window to setup\r\n\t\t\t\t\t\t\t\t\tsetup.setVisible(true);\r\n\t\t\t\t\t\t\t\t\tview.setVisible(false);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t// Create a new controller object, which creates all\r\n\t\t\t\t\t\t\t// necessary bindings between the GUI's action\r\n\t\t\t\t\t\t\t// listeners and the model's functions\r\n\t\t\t\t\t\t\tcontroller = new GreedGameController(model, view);\r\n\r\n\t\t\t\t\t\t\t// Display the view\r\n\t\t\t\t\t\t\tview.setVisible(true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Once setup is setup, display the window\r\n\t\t\t\t\tsetup.setVisible(true);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tif (args[1] != null)\n\t\t{\n\t\t\thost = args[1];\n\t\t} else {\n\t\t\thost = \"127.0.0.1\";\n\t\t}\n\t\ttry {\n\t\t\tcreateUI();\n\t\t\tclientSocket = new Socket(host, port);\n\t\t\tout = new PrintWriter(clientSocket.getOutputStream(), true);\n\t\t\tin = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tclientSocket.getInputStream()));\n\t\t\tmessageHandler(out, in);\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n\t}", "public static void main(String[] args){\n DotComBust game = new DotComBust();\n game.setUpGame();\n game.startPlaying();\n }", "public static void main(String[] args) {\n\n String host = \"\";\n int port = DEFAULT_PORT; // The port number\n\n try {\n host = args[1];\n port = Integer.parseInt(args[2]);\n } catch (Exception ex) {\n }\n\n // Getting the login id\n\n // BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n // String identification = new String();\n\n try {\n String clientID = args[0];\n ClientConsole chat = new ClientConsole(clientID, host, port);\n chat.accept();\n } catch (Exception Ex) {\n System.out.println(\"ERROR - No login ID specified. Connection aborted.\");\n }\n\n /*\n * System.out.\n * println(\"Please specify port number (If blank, default port 5555 will be used)\"\n * ); try { String input = reader.readLine(); port = Integer.parseInt(input); }\n * \n * catch (Exception ex) {\n * System.out.println(\"Invalid port number. Default port of 5555 will be used\");\n * }\n * \n * if (port > 65535 || port < 0) { System.out.println(\"Invalid Port Number\"); }\n * else { System.out.println(\"Connection to server at port \" + port); try { host\n * = args[0]; } catch (ArrayIndexOutOfBoundsException e) { host = \"localhost\"; }\n * \n * ClientConsole chat = new ClientConsole(identification, host, port);\n * chat.accept(); // Wait for console data\n */\n }", "public static void main(String[] args) {\n ServerSocket serverSocket = null;\n \n /* Create the server socket */\n try {\n serverSocket = new ServerSocket(9999);\n } catch (IOException e) {\n System.out.println(\"IOException: \" + e);\n System.exit(1);\n }\n room r = new room(\"Lobby\");\n ChatServerThread.addRoom(r);\n /* In the main thread, continuously listen for new clients and spin off threads for them. */\n while (true) {\n try {\n /* Get a new client */\n Socket clientSocket = serverSocket.accept();\n \n /* Create a thread for it and start! */\n ChatServerThread clientThread = new ChatServerThread(clientSocket);\n ChatServerThread.addClient(clientThread);\n new Thread(clientThread).start();\n\n } catch (IOException e) {\n System.out.println(\"Accept failed: \" + e);\n System.exit(1);\n }\n }\n }", "public static void main(String[] args) {\n\n\t\t// Aus diese Schleife sorgt dafür, das man ohne großen aufwand immer neu spielen kann\n\t\t// hier wird auch das spiel raus gestartet\n\t\twhile (true){\n\n\t\tboard = new Board(); //erstellt das Fenster des Spielfeldes\n\t\tgui = new GUI();\t//erstellt das Fenster des Einstellungs/Start fensters\n\t\tgui.checkBtnPlay(); //wird von hier aufgerufen damit gui nicht = null ist und objekt erstellung abgeschlossen wird\n\t\t\t\t\t\t\t//in dieser Funktion wird auch das spiel gestartet\n\n\t\t//Wenn man hier angekommen ist ist das Aktuelle spiel zuende\n\t\tboard.dispose();\n\n\n\n\t\t//Zurück setzen der der Richtung\n\t\t// 4 heißt keine Bewegung\n\t\tGame.p1direction = 4;\n\t\tGame.p2direction = 4;\n\t}\n\n\n\t\t\n\t}", "public static void main(String[] args) throws Exception {\n ServerSocket listener = new ServerSocket(8102);\n System.out.println(\"Server is Running\");\n try {\n while (true) {\n\n Panel panel = new Panel();\n Game game = new Game();\n Object[] map = panel.generator(game);\n gamesArchive.add(game);\n Game.Player playerX = game.new Player(listener.accept(), 'X');\n Game.Player playerO = game.new Player(listener.accept(), 'O');\n playerX.setOpponent(playerO);\n playerO.setOpponent(playerX);\n game.thisPlayer = playerX;\n game.setPanel(map, panel.getLocationX(), panel.getLocationO());\n playerX.start();\n playerO.start();\n panel.printMap(map);\n }\n } finally {\n listener.close();\n }\n }", "public static void main(String[] args) {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tGameGomokuGUI frame = new GameGomokuGUI();\n\t\t\t\t\tframe.setVisible(true);\n\t\t\t\t\t//frame.repaint();\t//Tell me if this stops you from needing to drag GUI down to see jpanel\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public static void main(String[] args){\n ChatRoomServer server = new ChatRoomServer(portNumber);\n server.startServer();\n }", "public static void main(String[] args) {\n\n System.out.println(\"Welcome to TEAM-11 Game\");\n new GameEngine().start();\n }", "public void run() {\n\t\t//if this is the server side, create a server socket\n\t\tif( parent.whichPlayer.equals(\"server\") ){\n\t\t\t//create serverSocket on port 1234\n\t\t\ttry {\n\t\t\t\tss = new ServerSocket(1234);\n\t\t\t\tsock = ss.accept();\n\t\t\t\tsc = new Scanner(sock.getInputStream());\n\t\t\t\tpw = new PrintWriter(sock.getOutputStream());\n\t\t\t}catch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.out.println(\"Server Socket not able to be established on port 1234\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Input stream created, waiting for input from foreign socket\");\n\t\t}\n\n\t\t//if this is the client side, create a normal socket\n\t\telse{\n\t\t\t//try to create a socket on 1234\n\t\t\ttry {\n\t\t\t\tsock = new Socket(parent.hostnameField.getText(),1234);//create a socket on the IP specified by the player in the hostname box\n\t\t\t\tsc = new Scanner( sock.getInputStream() );\n\t\t\t\tpw = new PrintWriter(sock.getOutputStream());\n\t\t\t}catch(Exception e) {\n\t\t\t\tSystem.out.println(\"Could not create connection on localhost\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\t\n\t\t\n\t\t//send a single line with name to other side\n\t\tpw.println(\"N \" + parent.myName);\n\t\tpw.flush();\n\t\t\n\t\t//read single line for name`\n\t\t//wait for input from client side\n\t\tString input = sc.nextLine();\n\t\tprocessInput(input);\n\t\tparent.displayInstruction.setText(\"Connection Established, It is \" + parent.playerOneTextField.getText() + \"'s turn\");\n\t\tparent.beginGame = true;\n\t\t\n\t\t//loop and continue to read from the other side\n\t\twhile( sc.hasNextLine() ) {\n\t\t\tinput = sc.nextLine();\n\t\t\tSystem.out.println(\"Read \" + input + \" from the client side\");\n\t\t\tprocessInput(input);\n\t\t}\n\t\t\n\t\t//close all of the scanners and sockets\n\t\t//This should already be handled by the quit button, but in case the player just exits the window\n\t\ttry {\n\t\t\tsock.close();\n\t\t\tpw.close();\n\t\t\tss.close();\n\t\t\tsc.close();\n\t\t}catch(Exception e) {\n\t\t\tSystem.out.println(\"Could not close the sockets/scanner\");\n\t\t}\n\t\t\n\t\tSystem.out.println(\"All sockets and scanners successfully closed\");\n\t\tparent.displayInstruction.setText(\"Connect Lost, Ending Gamplay\");\n\t\tparent.beginGame = false;\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tResources.setEncoding(Resources.ENCODING_UTF_8);\r\n\t\tGame.setInfo(\"gameInfo.xml\");\r\n\t\tGame.init();\r\n\t\tGame.getRenderEngine().setBaseRenderScale((float) 2);\r\n\t\tGame.getScreenManager().setResolution(Resolution.custom(1280, 720, \"1280*720\"));\r\n\t\tGame.getScreenManager().addScreen(new mainMenu());\r\n\t\tGame.getScreenManager().addScreen(mainGameScreen.getInstance());\r\n\t\tGame.getScreenManager().displayScreen(mainMenu.NAME);\r\n\t\tGame.start();\r\n\t\tSystem.out.println(\"Game version is: \" + Game.getInfo().getVersion());\r\n\t\tSystem.out.println(\"Currently active screen: \" + Game.getScreenManager().getCurrentScreen().getName());\r\n\t\t\r\n\t}", "public static void main(String[] args) throws Exception\r\n {\r\n ChatClient client = new ChatClient();\r\n client.frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n client.frame.setVisible(true);\r\n client.run();\r\n }", "public static void main(String[] args) \r\n\t{\n\t\t\r\n\t\tboolean playing = false;\r\n\t\t\r\n\t\twhile(true)\r\n\t\t{\r\n\t\t\tString option = menu();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"\\n\\n\\n\\n\\n\\n\");\r\n\t\t\t\r\n\t\t\tif(option.equals(\"1\"))\r\n\t\t\t{\r\n\t\t\t\tcreateGame();\r\n\t\t\t\tplaying = true;\r\n\t\t\t}\r\n\t\t\telse if(option.equals(\"2\"))\r\n\t\t\t{\r\n\t\t\t\tcontinueGame();\r\n\t\t\t\tplaying = true;\r\n\t\t\t}\r\n\t\t\telse if(option.equals(\"3\"))\r\n\t\t\t{\r\n\t\t\t\tdeleteGames();\r\n\t\t\t}\r\n\t\t\telse if(option.equals(\"4\"))\r\n\t\t\t{\r\n\t\t\t\tGameManager.instance().viewHallOfFame();\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t\telse if(option.equals(\"5\"))\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Thanks for playing Rogue Lands\");\r\n\t\t\t\t\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Invalid option\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(playing)\r\n\t\t\t{\t\r\n\t\t\t\tboolean ans = Game.instance().Load();\r\n\t\t\t\t\r\n\t\t\t\tif(!ans) continue;\r\n\t\t\t\t\r\n\t\t\t\tGame.instance().AssembleScene();\r\n\t\t\t\t\r\n\t\t\t\tGame.instance().Setup();\r\n\t\t\t\t\r\n\t\t\t\tGame.instance().Play();\r\n\t\t\t\t\r\n\t\t\t\tplaying = false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws IOException {\n int port = 8080;\n\n try {\n if (args.length == 1) {\n port = Integer.parseInt(args[0]);\n }\n ServerSocket serverSocket = new ServerSocket(port);\n ChatServer server = new ChatServer(serverSocket);\n server.startServer();\n } catch (NumberFormatException ne) {\n System.out.println(\"Illegal inputs provided when starting the server!\");\n return;\n }\n }", "private void initialize() {\n\t\tpop.connect();\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 500, 400);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tlblNewLabel = new JLabel(\"Hello \"+ pop.first+ \" \" + pop.last);\n\t\tlblNewLabel.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 24));\n\t\tlblNewLabel.setBounds(18, 6, 350, 20);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Server\");\n\t\tlblNewLabel_1.setBounds(395, 90, 75, 40);\n\t\tlblNewLabel_1.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 14));\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Start\");\n\t\tbtnNewButton.setBounds(380, 120, 75, 40);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tSocket client = new Socket(\"mastacademy.ddns.net\", 80);\n\t\t\t\t\t\n\t\t\t\t\tOutputStream out = client.getOutputStream();\n\t\t\t\t\t\n\t\t\t\t\tout.write(\"serverStatus:on\".getBytes());\n\t\t\t\t\tout.flush();\n\t\t\t\t\t\n\t\t\t\t\tout.close();\n\t\t\t\t\tclient.close();\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t});\n\t\t\n\t\tJButton btnNewButton_1 = new JButton(\"Stop\");\n\t\tbtnNewButton_1.setBounds(380, 160, 75, 40);\n\t\tframe.getContentPane().add(btnNewButton_1);\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tSocket client = new Socket(\"mastacademy.ddns.net\", 80);\n\t\t\t\t\t\n\t\t\t\t\tOutputStream out = client.getOutputStream();\n\t\t\t\t\t\n\t\t\t\t\tout.write(\"serverStatus:off\".getBytes());\n\t\t\t\t\tout.flush();\n\t\t\t\t\t\n\t\t\t\t\tout.close();\n\t\t\t\t\tclient.close();\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t});\n\t\t\n\t\tJButton btnEditSettings = new JButton(\"Edit Settings\");\n\t\tbtnEditSettings.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\teditConnection.newFrame(null);\n\t\t\t}\n\t\t});\n\t\tbtnEditSettings.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 12));\n\t\tbtnEditSettings.setBounds(370, 302, 95, 40);\n\t\t\n\t\tframe.getContentPane().add(btnEditSettings);\n\t\t\n\t\tJButton btnEditStudents = new JButton(\"Edit Students\");\n\t\tbtnEditStudents.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tEditWindow.NewWindow();\n\t\t\t}\n\t\t});\n\t\tbtnEditStudents.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 12));\n\t\tbtnEditStudents.setBounds(370, 265, 95, 40);\n\t\tframe.getContentPane().add(btnEditStudents);\n\t\t\n\n\t\t\n\t\tJButton btnRefresh = new JButton(\"Refresh\");\n\t\tbtnRefresh.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 12));\n\t\tbtnRefresh.setBounds(370, 227, 95, 40);\n\t\tframe.getContentPane().add(btnRefresh);\n\t\t\n\t\tbtnRefresh.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t Thread t = new Thread(new Runnable() {\n\t\t\t\t @Override\n\t\t\t\t public void run() {\n\t\t\t\t \tframe.setTitle(\"Working\");\n\t\t\t\t \tgraphMaker.getGraphs();\n\t\t\t\t \n\t\t\t\t \t//Updates all the images in the tabs to the recently made ones\n\t\t\t\t\t\t\tmathLbl.setIcon(getImageIcon(new File(\"mathPieChart.png\")));\n\t\t\t\t\t\t\tsocialStudiesLbl.setIcon(getImageIcon(new File(\"socialPieChart.png\")));\n\t\t\t\t\t\t\tscienceLbl.setIcon(getImageIcon(new File(\"sciencePieChart.png\")));\n\t\t\t\t\t\t\tlanguageLbl.setIcon(getImageIcon(new File(\"languagePieChart.png\")));\n\t\t\t\t\t\t\tenglishLbl.setIcon(getImageIcon(new File(\"englishPieChart.png\")));\n\t\t\t\t\t\t\tartLbl.setIcon(getImageIcon(new File(\"artPieChart.png\")));\n\t\t\t\t\t\t\tpeLbl.setIcon(getImageIcon(new File(\"pePieChart.png\")));\n\t\t\t\t\t\t\tframe.setTitle(\"\");\n\t\t\t\t } \n\t\t\t\t });\n\t\t\t\t t.start();\n\t\t\t\n\t\t\t\t}\t\t\t\n\t\t\t});\n\t\t\n\t\tJLabel lblNewLabel_9 = new JLabel(\"Today is:\");\n\t\tlblNewLabel_9.setBounds(420, -20, 100, 100);\n\t\tframe.getContentPane().add(lblNewLabel_9);\n\t\t\n\t\t GregorianCalendar gcalendar = new GregorianCalendar();\n\t\t String day = (\"\" + gcalendar.get(Calendar.DATE) + \"/\");\n\t\t String month = (\"\" + (gcalendar.get(Calendar.MONTH)+1) + \"/\");\n\t\t String year = (\"\" + gcalendar.get(Calendar.YEAR));\n\n\t\t\tJLabel lblNewLabel_8 = new JLabel(month + day + year);\n\t\t\tlblNewLabel_8.setBounds(420, 0, 100, 100);\n\t\t\tframe.getContentPane().add(lblNewLabel_8);\n\t\t\n\t\ttabbedPane = new JTabbedPane(JTabbedPane.TOP);\n\t\ttabbedPane.setBounds(5, 50, 350, 300);\n\t\tframe.getContentPane().add(tabbedPane);\n\t\t\n\t\n\t\t\n\t\tmathLbl = new JLabel();\n\t\tmathLbl.setIcon(getImageIcon(new File(\"mathPieChart.png\")));\n\t\ttabbedPane.add(\"Math\", mathLbl);\n\t\t\t\t\n\t\tsocialStudiesLbl = new JLabel();\n\t\ttabbedPane.addTab(\"Social Studies\", socialStudiesLbl);\n\t\tsocialStudiesLbl.setIcon(getImageIcon(new File(\"socialPieChart.png\")));\n\t\t\n\t\tscienceLbl = new JLabel();\n\t\ttabbedPane.addTab(\"Science\", scienceLbl);\n\t\tscienceLbl.setIcon(getImageIcon(new File(\"sciencePieChart.png\")));\n\t\t\n\t\tenglishLbl = new JLabel();\n\t\ttabbedPane.addTab(\"English\", englishLbl);\n\t\tenglishLbl.setIcon(getImageIcon(new File(\"englishPieChart.png\")));\n\t\t\n\t\tlanguageLbl = new JLabel();\n\t\ttabbedPane.addTab(\"Language\", languageLbl);\n\t\tlanguageLbl.setIcon(getImageIcon(new File(\"languagePieChart.png\")));\n\t\t\n\t\tartLbl = new JLabel();\n\t\ttabbedPane.addTab(\"Art\", artLbl);\n\t\tartLbl.setIcon(getImageIcon(new File(\"artPieChart.png\")));\n\t\t\n\t\tpeLbl = new JLabel();\n\t\ttabbedPane.addTab(\"PE\", peLbl);\n\t\tpeLbl.setIcon(getImageIcon(new File(\"pePieChart.png\")));\n\t\t\n\t\tJButton btnResort = new JButton(\"Sort\");\n\t\tbtnResort.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t//pop.makeStudents();//TAKE THIS OUT FOR FINAL RELEASE\n\t\t\t\t(new Thread((new pop()))).start(); //sorts students and makes graphs\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnResort.setBounds(286, 18, 97, 25);\n\t\tframe.getContentPane().add(btnResort);\n\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tGameEnvironment runningGame = new GameEnvironment();\n\t\trunningGame.launchStartupScreen();\n\t}", "public static void main(String[] args)\n {\n //Create an instance of the game\n game Game = new game(PAGE_HEIGHT,PAGE_WIDTH,PAGE_TITLE);\n \n //Start the game loop\n Game.start();\n }", "public static void main(String[] args) {\n LANChat lanChat = new LANChat();\n MainView mainView = new MainView(lanChat);\n mainView.setVisible(true);\n }", "public static void main(String[] args) {\n\t\tsIRC irc = new sIRC();\n\t\t\n\t\tirc.setVisible(true);\n\t\tirc.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\toptions.createAndShowGUI();\n\t}", "public static void main(String[] args) {\n new ServerControl().start();\n new UserMonitor().start();\n boolean listening = true;\n //listen for connection attempt and handle it accordingly\n try (ServerSocket socket = new ServerSocket(4044)) {\n while (listening) {\n new AwaitCommand(Singleton.addToList(socket.accept())).start();\n System.out.println(\"Connection started...\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n //Create a JFrame to show content\n JFrame frame = new JFrame();\n\n //create an instance of the applet\n final ClientDisplayNumberOfUsers applet = new ClientDisplayNumberOfUsers();\n applet.isStandAlone = true;\n\n //get the host\n if (args.length == 1) {\n applet.host = args[0]; //change the host from localhost to host passed through argument\n }\n\n //add the applet instance to the JFramSe\n frame.setLayout(new BorderLayout());\n frame.add(applet, BorderLayout.CENTER);\n\n //invoke initialise and start methods from Applet class\n applet.init();\n applet.start();\n\n //set frame settings\n frame.setTitle(\"Client Applet\");\n frame.setSize(300, 300);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setVisible(true);\n //add code to when window is closing\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent we) {\n try {\n //create a DataOutputStream to tell server that this client has exited\n DataOutputStream toServer = new DataOutputStream(applet.socket.getOutputStream());\n //send boolean to server FALSE --> meaning we are not on server anymore\n toServer.writeInt(0);\n System.out.println(\"Closed\");\n } catch (IOException ex) {\n }\n }\n });\n }", "public static void main(String[] args) {\n\t\tClientState clientState = new ClientState();\n\t\t\n\t //Check correct usage.\n\t\tif(args.length != 3) {\n\t \tConstants.errorAndEnd(\"Invalid usage of args, Usage : java Client nickname hostname port\");\n\t }\t \n\t\t\n\t\tSocket socket = null;\n\t\t//Attempt to open a socket to the server at hostname:port\n\t\ttry {\n\t\t socket = new Socket(args[1], Integer.parseInt(args[2]));\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tConstants.errorAndEnd(\"Something went wrong opening a socket. Was your port an integer?\");\n\t\t}\n\t\t\n\t\tObjectInputStream fromServer = null;\n\t\tObjectOutputStream toServer = null;\n\t\t//Attempt to open an input and output stream to/from the server.\n\t\t/*\n\t\t * ALWAYS OPEN OUTPUT BEFORE INPUT BECAUSE IT WON'T WORK OTHERWISE,\n\t\t * BECAUSE JAVA HAS REALLY WEIRD QUIRKS.\n\t\t */\n\t\ttry {\n\t\t\tSystem.out.println(\"Started opening I/O Streams.\");\n\t\t\n\t\t\ttoServer = new ObjectOutputStream(socket.getOutputStream());\n\t\t\tSystem.out.println(\"Opened ObjectOutputStream\");\n\t\t\t\n\t\t\tfromServer = new ObjectInputStream(socket.getInputStream());\n\t\t\tSystem.out.println(\"Opened ObjectInputStream\");\n\t\t\t\n\t\t\ttoServer.flush();\n\t\t}\n\t\tcatch (Exception e){\n\t\t Constants.errorAndEnd(\"Something went wrong opening and flushing the I/O Stream.\");\n\t\t}\n\t\t\n\t\t//Attempt to send our nickname to the server. The server will respond to us, telling us what our nickname is.\n\t\ttry {\n\t\t\ttoServer.writeObject(args[0]);\n\t\t\tSystem.out.println(\"Wrote nickname to Output Stream.\");\n\t\t} \n\t\tcatch (IOException e) {\n\t\t\tConstants.errorAndEnd(\"Something went wrong sending the nickname to the server.\");\n\t\t}\n\t\t\n\t\t//Try to read back and store my final username.\n\t\tString finalClientName = null;\n\t\ttry {\n\t finalClientName = (String) fromServer.readObject();\n\t System.out.println(\"My final username is : \" + finalClientName );\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tConstants.errorAndEnd(\"Error receiving final username from Server.\");\n\t\t}\n\t\t\n\t\t//Create and start an OutToServer thread that handles all user input and data flow to the Server.\n\t\t\n\t\tOutToServer toServerThread = new OutToServer((clientState), toServer, finalClientName);\n\t\t\n\t\ttoServerThread.start();\n\n\t\t/*\n\t\t * Handles all input from the server.\n\t\t */\n\t\twhile(true) {\n\t\t\tMessage message = null;\n\t\t\t//System.out.println(\"Waiting for Message from server.\");\n\t\t\t//Attempt to grab a message from the input stream.\n\t\t\ttry {\n\t\t\t\tmessage = (Message) fromServer.readObject();\n\t\t\t\t//System.out.println(\"Got a Message from the server.\"); \n\t\t\t} \n\t\t\tcatch (ClassNotFoundException e) {\n\t\t\t\tConstants.errorAndEnd(\"Error reading message from server (ClassNotFound Exception).\");\n\t\t\t}\n\t\t\tcatch (IOException e) {\n\t\t\t\tConstants.errorAndEnd(\"Error reading message from server (I/O Exception).\");\n\t\t\t}\n\t\t\t\n\t\t\tMessageType command = message.getMessageCommand();\n\t\t\tswitch(command) {\n\t\t\tcase PLAYERDISCONNECT :\n\t\t\t\t//System.out.println(\"Received a PLAYERDISCONNECT Message.\");\n\t\t\t\ttry {\n\t\t\t\t\t//System.out.println(\"Message data : \" + message.getData());\n\t\t\t\t\tclientState.removeFromList((String) message.getData());\n\t\t\t\t\t//System.out.println(\"Removed player: \" + (String) message.getData() + \" from client list.\");\n\t\t\t\t}\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\tConstants.errorAndEnd(\"Error when processing PLAYERDISCONNECT Message. Data was not of type : String.\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase PLAYERJOINED :\n\t\t\t\t//System.out.println(\"Received a PLAYERJOINED Message.\");\n\t\t\t\ttry {\n\t\t\t\t\tclientState.addToList((String) message.getData());\n\t\t\t\t\t//System.out.println(\"Added player: \" + (String) message.getData() + \" to client list.\");\n\t\t\t\t}\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\tConstants.errorAndEnd(\"Error when processing PLAYERJOINED Message. Data was not of type : String.\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CLIENTLIST :\n\t\t\t\t//System.out.println(\"Received a CLIENTLIST Message.\");\n\t\t\t\ttry {\n\t\t\t\t\t//Make the list equal to the new list of connected clients.\n\t\t clientState.setClientList((ArrayList<String>) message.getData());\n\t\t //System.out.println(\"Set Client List to : \" + (ArrayList<String>) message.getData());\n\t\t\t\t}\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\tConstants.errorAndEnd(\"Error when processing CLIENTLIST Message. Data was not of type : ArrayList<String>.\");\n\t\t\t\t}\n\t\t\t break;\n\t\t\tcase PLAYREQUEST :\n\t\t\t\t//If the client has already been invited, notify the sender.\n\t\t\t\tif(clientState.isInvited()) {\n\t\t\t\t\t//Notify the client that sent the request.\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t clientState.setInvited(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public final void run() {\n try {\n this.serverSocket = new ServerSocket(port);\n Socket clientSocket = serverSocket.accept();\n this.panel.setVisible(false);\n this.control.createServerGame(clientSocket);\n } catch (IOException ex) {\n Logger.getLogger(ServerThread.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static void main(String args[]){\n\n createConnection();\n\n if (conn == null) {\n System.err.println(\"Failed to establish connection!\");\n }\n\n new App();\n\n }", "public static void main(String[] args) throws Exception {\r\n\t\tGame game = new Game();\r\n\t\tgame.start(true,null,null,null);\r\n\t}", "public ServerGUI() {\n\t\t\n\t\tinitialize();\n\n\t}", "public static void main(String[] args) {\n \t\tJFrame gameFrame = new JFrame();\n \n \t\t// Setup window properties for frame\n \t\t// i.e can't resize, close on exit, and title\n \t\tgameFrame.setResizable(false);\n \t\tgameFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \t\tgameFrame.setTitle(\"CodePath Snake Project\");\n \n \t\t// Setup game board with size, add SnakeGame panel\n \t\t// and set the window visible\n\t\tgameFrame.setSize(625, 645);\n \t\tgameFrame.setLocationRelativeTo(null);\n \t\tgameFrame.add(new SnakeGame());\n \t\tgameFrame.setVisible(true);\n \t}", "public static void main(String[] args) {\n\t\tObject[] options = {\"Start Server\",\r\n \"Start Client\"};\r\n\t\tint n = JOptionPane.showOptionDialog(null,\r\n\t\t\t\t\"Start As\",\r\n\t\t\t\t\"SubSpace\",\r\n\t\t\t\tJOptionPane.YES_NO_OPTION,\r\n\t\t\t\tJOptionPane.QUESTION_MESSAGE,\r\n\t\t\t\tnull,\r\n\t\t\t\toptions,\r\n\t\t\t\toptions[0]);\r\n\t\t\r\n\t\tif (n == 0){\r\n\t\t\t// Start server\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tInitServer();\r\n\t\t\t\tserver = new SUDPServer(9090);\r\n\t\t\t\tStartServer(server);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tif (server != null)\r\n\t\t\t\t\tserver.Close();\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} finally {\r\n\t\t\t\tif (server != null)\r\n\t\t\t\t\tserver.Close();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\ttry {\r\n\t\t\t\tInitClient();\r\n\t\t\t\tclient = new SUDPClient(9090);\r\n\t\t\t\tStartClient();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tif(client!=null)\r\n\t\t\t\t\tclient.Close();\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} finally {\r\n\t\t\t\tif(client!=null)\r\n\t\t\t\t\tclient.Close();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n/* 66 */ logger.info(\"WurmServerGuiMain starting\");\n/* 67 */ HashSet<String> allowedArgStrings = new HashSet<>();\n/* 68 */ for (GuiCommandLineArgument argument : GuiCommandLineArgument.values())\n/* */ {\n/* 70 */ allowedArgStrings.add(argument.getArgumentString());\n/* */ }\n/* */ \n/* 73 */ SimpleArgumentParser parser = new SimpleArgumentParser(args, allowedArgStrings);\n/* 74 */ String dbToStart = \"\";\n/* 75 */ if (parser.hasOption(GuiCommandLineArgument.START.getArgumentString())) {\n/* 76 */ dbToStart = parser.getOptionValue(GuiCommandLineArgument.START.getArgumentString());\n/* 77 */ if (dbToStart == null || dbToStart.isEmpty()) {\n/* 78 */ System.err.println(\"Start param needs to be followed by server dir: Start=<ServerDir>\");\n/* 79 */ System.exit(1);\n/* */ } \n/* */ } \n/* */ \n/* 83 */ Servers.arguments = parser;\n/* 84 */ String adminPass = \"\";\n/* 85 */ if (parser.hasOption(GuiCommandLineArgument.ADMIN_PWD.getArgumentString())) {\n/* */ \n/* 87 */ adminPass = parser.getOptionValue(GuiCommandLineArgument.ADMIN_PWD.getArgumentString());\n/* 88 */ if (adminPass == null || adminPass.isEmpty()) {\n/* */ \n/* 90 */ System.err.println(\"The admin password needs to be set or it will not be possible to change the settings within the game.\");\n/* */ }\n/* */ else {\n/* */ \n/* 94 */ WurmServerGuiController.adminPassword = adminPass;\n/* */ } \n/* */ } \n/* */ \n/* 98 */ if (!dbToStart.isEmpty()) {\n/* */ \n/* 100 */ System.out.println(\"Should start without GUI here!\");\n/* 101 */ WurmServerGuiController.startDB(dbToStart);\n/* */ }\n/* */ else {\n/* */ \n/* 105 */ Application.launch(WurmServerGuiMain.class, (String[])null);\n/* */ } \n/* */ \n/* 108 */ logger.info(\"WurmServerGuiMain finished\");\n/* */ }", "public static void main(String[] args) {\n Model model = new Model();\n View view = new View(model);\n Controller controller = new Controller(model, view);\n\n /*main program (each loop):\n -player token gets set\n -game status gets shown visually and user input gets requested\n -game grid gets updated\n -if the game is determined: messages gets shown and a system exit gets called*/\n while (model.turnCounter < 10) {\n model.setToken();\n view.IO();\n controller.update();\n if (controller.checker()){\n System.out.println(\"player \" + model.playerToken + \" won!\");\n System.exit(1);\n }\n System.out.println(\"draw\");\n }\n }", "public static void main(String[] args){\n GameFrame frame = new GameFrame(1);\n frame.run();\n }", "public static void main(String[] args) {\n Properties props = new Properties();\n try {\n props.load(ResourceLoader.getResourceAsStream(\"game.properties\"));\n Config config = new Config(props);\n Game game = new Game(\"PlatformerState\");\n AppGameContainer app = new AppGameContainer(game);\n app.setIcons( new String[] {\"res/icon/16x16.png\", \"res/icon/32x32.png\"} ); //load icons\n app.setDisplayMode(config.getInteger(Config.WINDOW_WIDTH_CONFIG_KEY), \n config.getInteger(Config.WINDOW_HEIGHT_CONFIG_KEY), \n config.getBoolean(Config.WINDOW_FULLSCREEN_CONFIG_KEY));\n app.setTargetFrameRate(60);\n app.setShowFPS(false);\n app.start();\n } catch(IOException e) {\n e.printStackTrace();\n } catch(SlickException e) {\n e.printStackTrace();\n }\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n home = new Home();\n home.setVisible(true);\n /*ThreadRunnable callbackRunnable = new ThreadRunnable(home);\n new Thread(callbackRunnable).start();*/\n ThreadSocket server = new ThreadSocket();\n new Thread(server).start();\n InitThreadRunnable initRunnable = new InitThreadRunnable(home);\n new Thread(initRunnable).start();\n home.security(0);\n System.out.println(\"All the threads are started\");\n }", "public static void main(String[] args) {\n\t\t\n\t\tChatAdministration ca =ChatAdministration.getInstance();\n\n\t\tmainWindow = MainWindow.getInstance();\n\t\tmainWindow.setVisible(true);\n\t\tif (args.length == 3){\n\t\t\tConnectionConfiguration args_config = new ConnectionConfiguration();\n\t\t args_config.setServer(args[0]);\n\t\t args_config.setUser(args[1]);\n\t\t args_config.setPasswd(args[2]);\n\t\t ca.setConnectionConfiguration(args_config, false);\n\t\t}\n\t}", "private void start(String[] args){\n\t\tServerSocket listenSocket;\n\n\t\ttry {\n\t\t\tlistenSocket = new ServerSocket(Integer.parseInt(args[0])); //port\n\t\t\tSystem.out.println(\"Server ready...\");\n\t\t\twhile (true) {\n\t\t\t\tSocket clientSocket = listenSocket.accept();\n\t\t\t\tSystem.out.println(\"Connexion from:\" + clientSocket.getInetAddress());\n\t\t\t\tClientThread ct = new ClientThread(this,clientSocket);\n\t\t\t\tct.start();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error in EchoServer:\" + e);\n\t\t}\n\t}", "public static void main(String[] args){\n \t\tJFrame game = new theGame();\n \t\tgame.setVisible(true);\n \n \t}", "public static void main(String[] args) {\r\n\r\n if (args.length > 0 && args[0] != null && args[0].equals(\"server\")) {\r\n ServerCore serverCore = new ServerCore();\r\n new ServerNetworkCore(serverCore, serverCore.getReceiveQueue());\r\n new Thread(serverCore).start();\r\n } else {\r\n ClientCore clientCore = new ClientGameCore();\r\n GUICore gui =\r\n new GUICore(clientCore.getComponentManager(), clientCore.getEntityManager(), clientCore.getEventManager(),\r\n clientCore.getTimer());\r\n clientCore.setGUI(gui);\r\n ClientNetworkCore network =\r\n new ClientNetworkCore(clientCore.getNetworkSendQueue(), clientCore.getNetworkReceiveQueue(), null);\r\n new Thread(clientCore).start();\r\n new Thread(network).start();\r\n }\r\n }", "public void startProgram() {\n this.displayBanner();\n// prompt the player to enter their name Retrieve the name of the player\n String playersName = this.getPlayersName();\n// create and save the player object\n User user = ProgramControl.createPlayer(playersName);\n// Display a personalized welcome message\n this.displayWelcomeMessage(user);\n// Display the Main menu.\n MainMenuView mainMenu = new MainMenuView();\n mainMenu.display();\n }" ]
[ "0.77065897", "0.7701978", "0.7498411", "0.7491094", "0.7486413", "0.7417205", "0.7409734", "0.7390084", "0.7327624", "0.72982204", "0.72877014", "0.7229569", "0.72140265", "0.7116998", "0.707167", "0.7038201", "0.70372844", "0.6994304", "0.6987197", "0.697827", "0.6950523", "0.694853", "0.6944315", "0.6922815", "0.6919905", "0.690805", "0.68982947", "0.68888664", "0.688846", "0.686845", "0.6868415", "0.6830263", "0.68282086", "0.68212074", "0.6810802", "0.6783607", "0.67833656", "0.6769685", "0.676746", "0.67662513", "0.67644715", "0.6760692", "0.67605853", "0.6743651", "0.6738458", "0.6729534", "0.6703752", "0.66982216", "0.6694695", "0.66937006", "0.6692024", "0.66863316", "0.66843367", "0.6675546", "0.6672866", "0.66720974", "0.66651154", "0.6664295", "0.6656207", "0.6652532", "0.664678", "0.66447777", "0.6641679", "0.6633159", "0.66310596", "0.66265893", "0.66247505", "0.6624525", "0.66141605", "0.6604667", "0.6603157", "0.66009855", "0.6599934", "0.6592995", "0.65852815", "0.6581778", "0.6579885", "0.65792733", "0.6576271", "0.6556482", "0.65530694", "0.65525377", "0.6551931", "0.6550221", "0.6544798", "0.6542877", "0.65300405", "0.65241355", "0.65193695", "0.65175086", "0.6516684", "0.6515729", "0.65082556", "0.6503316", "0.6503039", "0.6502303", "0.6500371", "0.6487082", "0.64798534", "0.647903", "0.6476876" ]
0.0
-1
stores location to the stringBuffer there the actual string is store partition constructor, given a partition definition and max object size, initialize tables and meta data
public partition(String partition, int max_size){ //max_size is the maximum number of Objects, NOT max bytes String[] keyTypes = partition.split("\\s+"); //separted by any white space List<String> listStringKeys = new ArrayList<String>(); List<String> listLongKeys = new ArrayList<String>(); List<String> listDoubleKeys = new ArrayList<String>(); List<String> listBoolKeys = new ArrayList<String>(); for(int i = 0; i < keyTypes.length; i++){ String[] parts = keyTypes[i].split(separator); if(parts[1].equals("STRING")) listStringKeys.add(keyTypes[i]); else if(parts[1].equals("LONG")) listLongKeys.add(keyTypes[i]); else if(parts[1].equals("DOUBLE")) listDoubleKeys.add(keyTypes[i]); else if(parts[1].equals("BOOL")) listBoolKeys.add(keyTypes[i]); } keyForString = listStringKeys.toArray(new String[listStringKeys.size()]); keyForLong = listLongKeys.toArray(new String[listLongKeys.size()]); keyForDouble = listDoubleKeys.toArray(new String[listDoubleKeys.size()]); keyForBool = listBoolKeys.toArray(new String[listBoolKeys.size()]); longValues = new long[max_size]; doubleValues = new double[max_size]; booleanValues = new byte[max_size]; stringValues = new long[max_size]; objectIds= new int[max_size]; numObject = 0; UndefByte[0] = -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MemoryPartition createMemoryPartition();", "@Override\n public void createPartition(Partition partition) {\n \n }", "private void loadPartition(Path p, Context context) throws IOException {\n\t\treader = new BufferedReader(new FileReader(p.toString()));\n\t\tString inputline = reader.readLine();\n\t\tString[] input;\n\t\twhile (inputline != null) {\n\t\t\tinput = inputline.split(\"\\t\");\n\t\t\tlong key=Long.parseLong(input[0].replace(\"\\\"\", \"\"));\n\t\t\tString[] corners=input[1].split(\",\");\n\t\t\tpartition.put(key, new partition.Rectangle(corners[0].replace(\"\\\"\", \"\"),corners[1]\n\t\t\t\t\t.replace(\"\\\"\", \"\"),\n\t\t\t\t\tcorners[2].replace(\"\\\"\", \"\")\n\t\t\t\t\t,corners[3].replace(\"\\\"\", \"\")));\n\t\t\tinputline = reader.readLine();\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n protected void initDerivedTpchQ17() throws IOException {\n ArrayList<LVReplicaPartition> concatenated = new ArrayList<LVReplicaPartition>();\n for (LVReplicaPartition[] partitions : lineitemPartitionLists) {\n for (LVReplicaPartition partition : partitions) {\n concatenated.add(partition);\n }\n }\n lineitemNodeMap = createNodeMap (concatenated.toArray(new LVReplicaPartition[0]), \"lineitem\");\n partNodeMap = createNodeMap (partPartitions, \"part\");\n partGroup = metaRepo.getReplicaGroup(partScheme.getGroupId());\n assert (partGroup != null);\n l_partkey = metaRepo.getColumnByName(lineitemTable.getTableId(), \"l_partkey\");\n assert (l_partkey != null);\n l_extendedprice = metaRepo.getColumnByName(lineitemTable.getTableId(), \"l_extendedprice\");\n assert (l_extendedprice != null);\n l_quantity = metaRepo.getColumnByName(lineitemTable.getTableId(), \"l_quantity\");\n assert (l_quantity != null);\n }", "public void createPartition(int nPid);", "private void initInternal() throws AccumuloException, AccumuloSecurityException, TableNotFoundException,\n TableExistsException {\n final String doctable = getFreeTextDocTablename(conf);\n final String termtable = getFreeTextTermTablename(conf);\n\n docTableNumPartitions = ConfigUtils.getFreeTextDocNumPartitions(conf);\n final int termTableNumPartitions = ConfigUtils.getFreeTextTermNumPartitions(conf);\n\n final TableOperations tableOps = ConfigUtils.getConnector(conf).tableOperations();\n\n // Create term table partitions\n final boolean createdTermTable = ConfigUtils.createTableIfNotExists(conf, termtable);\n if (createdTermTable && !ConfigUtils.useMockInstance(conf) && termTableNumPartitions > 0) {\n final TreeSet<Text> splits = new TreeSet<Text>();\n\n // split on the \"Term List\" and \"Reverse Term list\" boundary\n splits.add(new Text(ColumnPrefixes.getRevTermListColFam(\"\")));\n\n // Symmetrically split the \"Term List\" and \"Reverse Term list\"\n final int numSubpartitions = ((termTableNumPartitions - 1) / 2);\n if (numSubpartitions > 0) {\n final int step = (26 / numSubpartitions);\n for (int i = 0; i < numSubpartitions; i++) {\n final String nextChar = String.valueOf((char) ('a' + (step * i)));\n splits.add(new Text(ColumnPrefixes.getTermListColFam(nextChar)));\n splits.add(new Text(ColumnPrefixes.getRevTermListColFam(nextChar)));\n }\n }\n tableOps.addSplits(termtable, splits);\n }\n\n // Create document (text) table partitions\n final boolean createdDocTable = ConfigUtils.createTableIfNotExists(conf, doctable);\n if (createdDocTable && !ConfigUtils.useMockInstance(conf)) {\n final TreeSet<Text> splits = new TreeSet<Text>();\n for (int i = 0; i < docTableNumPartitions; i++) {\n splits.add(genPartition(i, docTableNumPartitions));\n }\n tableOps.addSplits(doctable, splits);\n\n // Add a tablet level Bloom filter for the Column Family.\n // This will allow us to quickly determine if a term is contained in a tablet.\n tableOps.setProperty(doctable, \"table.bloom.key.functor\", ColumnFamilyFunctor.class.getCanonicalName());\n tableOps.setProperty(doctable, \"table.bloom.enabled\", Boolean.TRUE.toString());\n }\n\n // Set mtbw by calling setMultiTableBatchWriter(). The DAO does this and manages flushing.\n // If you create it here, tests work, but a real Accumulo may lose writes due to unmanaged flushing.\n if (mtbw != null) {\n\t docTableBw = mtbw.getBatchWriter(doctable);\n\t termTableBw = mtbw.getBatchWriter(termtable);\n }\n tokenizer = ConfigUtils.getFreeTextTokenizer(conf);\n validPredicates = ConfigUtils.getFreeTextPredicates(conf);\n\n queryTermLimit = ConfigUtils.getFreeTextTermLimit(conf);\n }", "public StringToStringTableVector()\n {\n\n m_blocksize = 8;\n m_mapSize = m_blocksize;\n m_map = new StringToStringTable[m_blocksize];\n }", "private void initSystemPartition() throws Exception {\n // change the working directory to something that is unique\n // on the system and somewhere either under target directory\n // or somewhere in a temp area of the machine.\n\n // Inject the System Partition\n Partition systemPartition = factory.createPartition(service.getSchemaManager(),\n service.getDnFactory(),\n \"system\", ServerDNConstants.SYSTEM_DN, 500,\n new File(service.getInstanceLayout().getPartitionsDirectory(), \"system\"));\n systemPartition.setSchemaManager(service.getSchemaManager());\n\n factory.addIndex(systemPartition, SchemaConstants.OBJECT_CLASS_AT, 100);\n\n service.setSystemPartition(systemPartition);\n }", "public BOHMap(int partitionCount, Function<byte[], Integer> hashFunction) {\n this.unsafe = getUnsafe();\n this.addressSize = unsafe.addressSize();\n this.partitionCount = partitionCount;\n this.hashFunction = hashFunction;\n \n this.partitionAddress = allocate(this.partitionCount * addressSize, true);\n }", "protected void initStorageDevices() throws OBStorageException, OBException {\r\n OBStorageConfig conf = new OBStorageConfig();\r\n conf.setTemp(false);\r\n conf.setDuplicates(false);\r\n conf.setBulkMode(! isFrozen());\r\n conf.setIndexType(IndexType.HASH);\r\n this.A = fact.createOBStoreLong(\"A\", conf );\r\n if (!this.isFrozen()) {\r\n conf = new OBStorageConfig();\r\n conf.setTemp(false);\r\n conf.setDuplicates(false);\r\n conf.setBulkMode(false);\r\n conf.setRecordSize(fixedRecordSize);\r\n if(fixedRecord){\r\n conf.setIndexType(IndexType.FIXED_RECORD);\r\n }\r\n this.preFreeze = fact.createOBStore(\"pre\", conf);\r\n }\r\n }", "public void setPartitionNumber(int part) {\n\tpartitionNumber = part;\n }", "public StringToStringTableVector(int blocksize)\n {\n\n m_blocksize = blocksize;\n m_mapSize = blocksize;\n m_map = new StringToStringTable[blocksize];\n }", "private static List<List<byte[]>> prepareDataForTest(int partitionSize, String path){\n\t\tByteArrayDataPreparator dp = new ByteArrayDataPreparator(path);\n\t\treturn dp.getPartitionedData(partitionSize);\n\t}", "public GptPartitionTable(GptPartitionTableType tableType, byte[] first16KiB, Device device) {\n this.tableType = tableType;\n\n blockSize = detectBlockSize(first16KiB);\n\n if (blockSize != -1) {\n long entries = LittleEndian.getUInt32(first16KiB, blockSize + 0x50);\n int entrySize = (int) LittleEndian.getUInt32(first16KiB, blockSize + 0x54);\n\n for (int partitionNumber = 0; partitionNumber < entries; partitionNumber++) {\n log.debug(\"try part \" + partitionNumber);\n\n int offset = blockSize * 2 + (partitionNumber * entrySize);\n GptPartitionTableEntry entry = new GptPartitionTableEntry(this, first16KiB, offset, blockSize);\n\n log.debug(entry);\n\n if (entry.isValid()) {\n partitions.add(entry);\n }\n }\n }\n }", "public AssetDiskPartitionInfo(AssetDiskPartitionInfo source) {\n if (source.Name != null) {\n this.Name = new String(source.Name);\n }\n if (source.Size != null) {\n this.Size = new Long(source.Size);\n }\n if (source.Percent != null) {\n this.Percent = new Float(source.Percent);\n }\n if (source.Type != null) {\n this.Type = new String(source.Type);\n }\n if (source.Path != null) {\n this.Path = new String(source.Path);\n }\n if (source.Used != null) {\n this.Used = new Long(source.Used);\n }\n }", "public abstract String generateStorageString();", "public int getDefaultPartitionSize();", "@Before\n public void init(){\n spaceCapacity = 20;\n fileSystem = new FileSystem(spaceCapacity);\n }", "private void createPartitions() {\n \tfor (int attrOrd : splitAttrs) {\n \t\tFeatureField featFld = schema.findFieldByOrdinal(attrOrd);\n \t\tif (featFld.isInteger()) {\n \t\t\t//numerical\n \t\t\tList<Integer[]> splitList = new ArrayList<Integer[]>();\n \t\t\tInteger[] splits = null;\n \t\t\tcreateNumPartitions(splits, featFld, splitList);\n \t\t\t\n \t\t\t//collect all splits\n \t\t\tfor (Integer[] thisSplit : splitList) {\n \t\t\t\tsplitHandler.addIntSplits(attrOrd, thisSplit);\n \t\t\t}\n \t\t} else if (featFld.isCategorical()) {\n \t\t\t//categorical\n \t\t\tint numGroups = featFld.getMaxSplit();\n \t\t\tif (numGroups > maxCatAttrSplitGroups) {\n \t\t\t\tthrow new IllegalArgumentException(\n \t\t\t\t\t\"more than \" + maxCatAttrSplitGroups + \" split groups not allwed for categorical attr\");\n \t\t\t}\n \t\t\t\n \t\t\t//try all group count from 2 to max\n \t\t\tList<List<List<String>>> finalSplitList = new ArrayList<List<List<String>>>();\n \t\t\tfor (int gr = 2; gr <= numGroups; ++gr) {\n \t\t\t\tLOG.debug(\"num of split sets:\" + gr);\n \t\t\t\tList<List<List<String>>> splitList = new ArrayList<List<List<String>>>();\n \t\t\t\tcreateCatPartitions(splitList, featFld.getCardinality(), 0, gr);\n \t\t\t\tfinalSplitList.addAll(splitList);\n \t\t\t}\n \t\t\t\n \t\t\t//collect all splits\n \t\t\tfor (List<List<String>> splitSets : finalSplitList) {\n \t\t\t\tsplitHandler.addCategoricalSplits(attrOrd, splitSets);\n \t\t\t}\n \t\t\t\n \t\t}\n \t}\n }", "public static HashMap<String, ArrayList<String>> parseCreateString(String createTableString, boolean metadata) throws FileNotFoundException {\n\n /*\n CREATE TABLE CUSTOMERS( ID INT PRIMARY KEY,NAME TEXT NOT NULL,AGE INT);\n */\n\n System.out.println(\"STUB: Calling your method to create a table\");\n System.out.println(\"Parsing the string:\\\"\" + createTableString + \"\\\"\");\n createTableString = createTableString.toLowerCase();\n String tablename = createTableString.substring(0, createTableString.indexOf(\"(\")).split(\" \")[2].trim();\n String tablenamefile = tablename + \".tbl\";\n Table newTable = new Table(tablenamefile, Constant.leafNodeType);\n HashMap<String, ArrayList<String>> columndata = new HashMap<>();\n TreeMap<Integer, String> columnOrdinalPosition = new TreeMap<>();\n int record_length = 0;\n Matcher m = Pattern.compile(\"\\\\((.*?)\\\\)\").matcher(createTableString);\n while (m.find()) {\n String cols = m.group(1);\n String singlecol[] = cols.split(\",\");\n ArrayList<String> colname;\n int ordinalPosition = 1;\n for (int i = singlecol.length - 1; i >= 0; i--) {\n\n\n colname = new ArrayList<>();\n singlecol[i] = singlecol[i].trim();\n String colNameType[] = singlecol[i].split(\" \");\n colNameType = removeWhiteSpacesInArray(colNameType);\n //columntype\n colname.add(0, colNameType[1]);\n\n columnTypeHelper.setProperties(tablename.concat(\".\").concat(colNameType[0]), colNameType[1]);\n record_length = record_length + RecordFormat.getRecordFormat(colNameType[1]);\n colname.add(1, \"yes\");\n //ordinaltype\n colname.add(2, String.valueOf(++ordinalPosition));\n columnOrdinalPosition.put(ordinalPosition, tablename.concat(\".\").concat(colNameType[0]));\n if (colNameType.length == 4) {\n if (colNameType[2].equals(\"primary\")) {\n colname.set(1, \"pri\");\n colname.set(2, String.valueOf(1));\n columnOrdinalPosition.remove(ordinalPosition);\n columnOrdinalPosition.put(1, tablename.concat(\".\").concat(colNameType[0]));\n --ordinalPosition;\n } else\n colname.set(1, \"no\");\n columnNotNullHelper.setProperties(tablename.concat(\".\").concat(colNameType[0]), \"NOT NULL\");\n }\n columndata.put(colNameType[0], colname);\n }\n\n }\n\n Iterator it = columnOrdinalPosition.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pair = (Map.Entry) it.next();\n columnOrdinalHelper.setProperties(String.valueOf(pair.getValue()), String.valueOf(pair.getKey()));\n }\n recordLengthHelper.setProperties(tablename.concat(\".\").concat(Constant.recordLength), String.valueOf(record_length));\n recordLengthHelper.setProperties(tablename.concat(\".\").concat(Constant.numberOfColumns), String.valueOf(columnOrdinalPosition.size()));\n if (!metadata) {\n updateTablesTable(tablename, record_length);\n updateColumnsTable(tablename, columndata);\n }\n return columndata;\n\n }", "public PlanImpl generatePlanFromMetisPartition(Plan currentPlan, String partitionFileContents) {\n\t\t// Ordering of partition indexes based on ordering of channelList\n\n\t\t// Create a plan based on new plan\n\t\tPlanImpl plan = new PlanImpl( (PlanImpl)currentPlan );\n\t\t\n\t\t// Split by line\n\t\tString[] lines = partitionFileContents.split(\"\\\\r?\\\\n\");\n\t\t\n\t\t// For each channel\n\t\tint i=0;\n\t\tfor (Channel channel: channelList) {\n\t\t\t// Get shard index\n\t\t\tint shardIndex = Integer.parseInt(lines[i].trim());\n\t\t\t\n\t\t\t// Set entry in plan\n\t\t\tplan.setMapping(channel.getChannelName(), new PlanMappingImpl( new PlanId(currentPlan.getPlanId().getId()), channel.getChannelName(), new RPubClientId(shardIndex)));\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\treturn plan;\n\t}", "private void createInternalStorage(int length) {\n\t\tif(internalStorage == null) {\n\t\t\tinternalStorage = new java.util.ArrayList<java.util.HashMap<String,LinkedList<T>>> ();\n\t\t\tfor(int i=0;i<length;i++)\n\t\t\t\tinternalStorage.add(new HashMap<String,LinkedList<T>>());\n\t\t}\n\t\t\n\t}", "protected void setPartitionDotFile(final String str) {\n\t\tthis.partitionDot = str;\n\t}", "@Test\n public void loadStringsTest()\n {\n TestCase.assertEquals( 0, testObj.getSize() );\n TestCase.assertEquals( testObj.insert( \"foo\" ), 0 );\n TestCase.assertEquals( testObj.insert( \"bar\" ), 1 );\n TestCase.assertEquals( testObj.insert( \"baz\" ), 2 );\n TestCase.assertEquals( testObj.insert( \"quux\" ), 3 );\n TestCase.assertEquals( 4, testObj.getSize() );\n\n TestCase.assertEquals( testObj.getByteBlock( 2 ), \"baz\" );\n }", "public LiteralValuePartitionAlgorithm() {\n\t\t\n\t}", "public interface Partitioner {\n\n Set<String> getPartitions();\n\n String getNextObjectName(String topic, String previousObject);\n\n boolean shouldReconfigure();\n\n}", "private void initializationParameters(int numberOfPartitions){\n int tempNumber = numberOfPartitions * 2 + 1;\n ksi = new int[tempNumber];\n ksi[0] = NUMOFTESTCASES;\n eta = new int[numberOfPartitions];\n Y = new int[numberOfPartitions];\n d = 2;\n p = new double[numberOfPartitions];\n for (int i = 0; i < numberOfPartitions; i++) {\n p[i] = 1.0 / numberOfPartitions ;\n }\n }", "private KidDatabaseDisk(){\n //for use with loadFromFileUnsafe() builder\n super();\n sequenceLength.add(0);\n exceptionsArr = new ArrayList<HashMap<Integer,Character>>();\n exceptionsArr.add(new HashMap<Integer,Character>());\n }", "public interface Partition extends PrintableStruct {\n /** Returns the start offset in bytes. */\n public abstract long getStartOffset();\n\n /** Returns the length of the partition in bytes. */\n public abstract long getLength();\n\n /** Returns the type of the partition. */\n public abstract PartitionType getType();\n}", "QueryPartitionClause createQueryPartitionClause();", "public void setTopObjectInitData() {\n\t\t\n\t\tthis.partShape = 0; // L, T, Z, I, H,\n\t\tthis.ABClines = 0; // if reflects lines for\n\t\t// ABC dims of\n\t\t// parts, by T\n\t\t// partDimA = 0f / myLevelShape.myMainPanel.scale;\n\t\t// partDimB = 0 / myLevelShape.myMainPanel.scale;\n\t\t// partDimC = 0 / myLevelShape.myMainPanel.scale;\n\t\t// partDimM = 0f / myLevelShape.myMainPanel.scale;\n\t\tthis.partID = 999;\n\t\tthis.stockCode = \"Profile\";\n\t}", "@Override\n\tvoid internalStorage(Class type,String line) throws NotEnoughElements {\n\t T t = createInternalT(type);\n\t t.load(line);\n\t insert(t);\n\t}", "public MemoryPartitionItemProvider(AdapterFactory adapterFactory) {\r\n\t\tsuper(adapterFactory);\r\n\t}", "protected void sequence_BEGIN_END_ExecPartition_PARTITION_WITH(ISerializationContext context, ExecPartition semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public void partition() \n\t{\n\t\tXPath xPath = getXPathHandler();\n\t\tNodeList parentNodes;\n\t\ttry {\n\t\t\tparentNodes = (NodeList)xPath.compile(this.getParentContainerXPath()).evaluate(this.document, XPathConstants.NODESET);\n\t\t\t\n\t\t\tlogger.info(\">>> \" + this.getPartitionType().name() + \" Partitioner: partition()\");\n\t\t\t\n\t\t\tfor (int i = 0; i < parentNodes.getLength(); i++) \n\t\t\t{ \t\n\t\t\t\tNode parentNode = (Node)parentNodes.item(i);\n\t\t\t\t\n\t\t\t\tif (parentNode instanceof Element)\n\t\t\t\t{\n\t\t\t\t\tString sParentClass = parentNode.getAttributes().getNamedItem(\"class\") != null ? parentNode.getAttributes().getNamedItem(this.getMatchingAttributeName()).getNodeValue() : \"\";\n\t\t\t\t\tlogger.info(\"\\tParent Node Name=\" + parentNode.getNodeName()+\":class=\"+ sParentClass);\n\t\t\t\t\t\n\t\t\t\t\tNodeList nodeList = parentNode.getChildNodes();\n\t\t\t\t\tNode xDivNode = null;\n\t\t\t\t\t\n\t\t\t\t\tNode xIntroDivNode = this.document.createElement(\"div\");\n\t\t\t\t\t((Element)xIntroDivNode).setAttribute(\"class\", this.getPartitionTypeAsString());\n\t\t\t\t\t((Element)xIntroDivNode).setAttribute(\"title\", this.getIntroPartitionTitle());\n\t\t\t\t\t\n\t\t\t\t\tboolean first = true;\n\t\t\t\t\tboolean keepFirst = this.getKeepFirstElements();\n\t\t\t\t\tboolean hasIntroNode = false;\n\t\t\t \n\t\t\t\t\tfor (int j = 0, pCount = 0; j < nodeList.getLength(); j++) \n\t\t\t\t\t{ \t\n\t\t\t \tNode xNode = nodeList.item(j);\n\t\t\t \tif (xNode instanceof Element)\n\t\t\t \t{\n\t\t\t \t\tif (first && keepFirst)\n\t\t\t \t\t{\n\t\t\t \t\t\tif (!hasIntroNode) {\n\t\t\t\t \t\t\t((Element)xIntroDivNode).setAttribute(\"id\", Integer.toString(++pCount));\n\t\t\t \t\t\t\tDomUtils.insertBefore(xIntroDivNode, xNode);\t\t \t\t\t\t\n\t\t\t\t \t\t\tj++;\n\t\t\t\t \t\t\thasIntroNode = true;\n\t\t\t \t\t\t}\n\t\t\t \t\t}\n\t\t\t \t\t\n\t\t\t \t\tString sClass = xNode.getAttributes().getNamedItem(\"class\") != null ? xNode.getAttributes().getNamedItem(this.getMatchingAttributeName()).getNodeValue() : \"\";\n\t\t\t\t \tboolean isTable = xNode.getNodeName().equalsIgnoreCase(\"table\") ? true : false;\n\t\t\t\t \tString sId = isTable && xNode.getAttributes().getNamedItem(\"id\") != null ? xNode.getAttributes().getNamedItem(\"id\").getNodeValue() : \"\";\n\t\t\t\t \t\n\t\t\t\t \tif (sClass != null)\n\t\t\t\t \t{\n\t\t\t\t \t\tlogger.info(\"\\tNode Name=\" + xNode.getNodeName()+\":class=\"+ sClass);\n\t\t\t\t \t\t\n\t\t\t\t \t\tboolean match = false;\n\t\t\t\t \t\tswitch ((TaskExprType)this.getAttributeMatchExpression())\n\t\t\t\t \t\t{\n\t\t\t\t \t\tcase NOT_SET:\n\t\t\t\t \t\tcase STARTS_WITH:\n\t\t\t\t \t\t\tmatch = sClass.startsWith(this.getMatchingAttributeValue());\n\t\t\t\t \t\t\tbreak;\n\t\t\t\t \t\tcase CONTAINS:\n\t\t\t\t \t\t\tmatch = sClass.contains(this.getMatchingAttributeValue());\n\t\t\t\t \t\t\tbreak;\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t\t// Process the title name match condition if it exists\n\t\t\t\t \t\tString title = null;\n\t\t\t\t \t\tif (match)\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\ttitle = DomUtils.extractTextChildren(xNode);\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tif (this.isTitleNameMatchCondition())\n\t\t\t\t \t\t\t{\n\t\t\t\t\t \t\t\tif (title != null && this.getTitleNameMatchType() == TaskMatchType.EXPR)\n\t\t\t\t\t \t\t\t{\n\t\t\t\t\t \t\t\t\tswitch ((TaskExprType)this.getTitleNameMatchExprType())\n\t\t\t\t\t \t\t\t\t{\n\t\t\t\t\t \t\t\t\t\tcase STARTS_WITH:\n\t\t\t\t\t \t\t\t\t\t\tmatch = title.startsWith(this.getTitleNameMatchExprValue());\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tcase CONTAINS:\n\t\t\t\t\t \t\t\t\t\t\tmatch = title.contains(this.getTitleNameMatchExprValue());\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tcase NOT_SET:\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tdefault:\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t}\n\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t \t\t\t} else if (this.getTitleNameMatchType() == TaskMatchType.REGEX)\n\t\t\t\t\t \t\t\t{\n\t\t\t\t\t\t \t\t\tPattern r = Pattern.compile(this.getTitleNameMatchRegexPattern());\t\t\t \t\t\t\n\t\t\t\t\t\t \t\t\tMatcher m = r.matcher(title);\t\t\t \t\t\t\n\t\t\t\t\t\t \t\t\tmatch = m.matches();\n\t\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t\tif (match)\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\tif (first)\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\tPartition partition = new Partition();\n\t\t\t\t \t\t\t\tpartition.setType(this.getPartitionType());\n\t\t\t\t \t\t\t\tpartition.setsId(sId);\n\t\t\t\t \t\t\t\tthis.setFirstPartition(partition);\n\t\t\t\t \t\t\t}\n\n\t\t\t\t \t\t\tfirst = false;\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tif (this.isTitleNameReplaceCondition())\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\tPattern r = Pattern.compile(this.getTitleNameReplaceRegexPattern());\t\t\t \t\t\t\n\t\t\t\t\t \t\t\tMatcher m = r.matcher(title);\t\n\t\t\t\t\t \t\t\ttitle = m.replaceAll(this.getTitleNameReplaceWithRegexPattern());\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\txDivNode = this.document.createElement(\"div\");\n\t\t\t\t \t\t\t((Element)xDivNode).setAttribute(\"class\", getPartitionTypeAsString());\n\t\t\t\t \t\t\t((Element)xDivNode).setAttribute(\"title\", title);\n\t\t\t\t \t\t\t((Element)xDivNode).setAttribute(\"id\", Integer.toString(++pCount));\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tDomUtils.insertBefore(xDivNode, xNode);\n\t\t\t\t \t\t\tDomUtils.removeElement((Element) xNode, false);\t \n\t\t\t\t \t\t}\n\t\t\t\t \t\telse\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\t// Skip over all nodes leading up to the first Heading1 node\n\t\t\t\t \t\t\tif (!first && xDivNode != null)\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\txDivNode.appendChild(xNode);\n\t\t\t\t \t\t\t\tj--;\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\telse if (first && keepFirst && xIntroDivNode != null)\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\txIntroDivNode.appendChild(xNode);\n\t\t\t\t \t\t\t\tj--;\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t \t} else if (isTable && sId != null)\n\t\t\t\t \t{\n\t\t\t\t \t\tlogger.info(\"\\t\\tNode Name=\" + xNode.getNodeName()+\":id=\"+ sId);\n\t\t\t \t\t\t// Skip over all nodes leading up to the first Heading1 node\n\t\t\t \t\t\tif (!first && xDivNode != null)\n\t\t\t \t\t\t{\n\t\t\t \t\t\t\txDivNode.appendChild(xNode);\n\t\t\t \t\t\t\tj--;\n\t\t\t \t\t\t}\n\t\t\t \t\t\telse if (first && keepFirst && xIntroDivNode != null)\n\t\t\t \t\t\t{\n\t\t\t \t\t\t\txIntroDivNode.appendChild(xNode);\n\t\t\t \t\t\t\tj--;\n\t\t\t \t\t\t}\n\t\t\t\t \t}\t \t\n\t\t\t \t}\n\t\t\t } // end for j\n\t\t\t\t} // end if parentNode\n\t\t\t} // end for i\n\t\t} catch (XPathExpressionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\t\n\t}", "ByteBuffer getStringTable(){\n return ByteBuffer.wrap(super.buf, 0, super.count);\n }", "public void doPartition() {\n int sum = 0;\n for (int q = 0; q < w.queryCount; q++) {\n for (int a = 0; a < w.attributeCount; a++) {\n sum += w.usageMatrix[q][a];\n }\n }\n\n if (sum == w.queryCount * w.attributeCount) {\n partitioning = new int[w.attributeCount];\n return;\n }\n\n\t\t//ArrayUtils.printArray(usageMatrix, \"Usage Matrix\", \"Query\", null);\n\t\t\n\t\t// generate candidate partitions (all possible primary partitions)\n\t\tint[][] candidatePartitions = generateCandidates(w.usageMatrix);\n\t\t//ArrayUtils.printArray(candidatePartitions, \"Number of primary partitions:\"+candidatePartitions.length, \"Partition \", null);\n\t\t\n\t\t// generate the affinity matrix and METIS input file \n\t\tint[][] matrix = affinityMatrix(candidatePartitions, w.usageMatrix);\n\t\t//ArrayUtils.printArray(matrix, \"Partition Affinity Matrix Size: \"+matrix.length, null, null);\n\t\twriteGraphFile(graphFileName, matrix);\n\t\t\n\t\t// run METIS using the graph file\n\t\ttry {\n\t\t\tProcess p = Runtime.getRuntime().exec(metisLocation+\" \"+graphFileName+\" \"+K);\n\t\t\tp.waitFor();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\n\t\t// read primary partition groups created by METIS \n\t\tint[][][] primaryPartitionGroups = readPartitionFile(candidatePartitions); // TODO exception here for too few groups or attributes...\n\t\t//for(int[][] primaryPartitionGroup: primaryPartitionGroups)\n\t\t//\tArrayUtils.printArray(primaryPartitionGroup, \"Partition Group\", \"Partition\", null);\n\t\t\n\t\t\n\t\t//int i=0;\n\t\tList<int[][]> bestLayouts = new ArrayList<int[][]>();\n\t\tfor(int[][] primaryPartitionGroup: primaryPartitionGroups){\n\t\t\tminCost = Double.MAX_VALUE;\n\t\t\t\n\t\t\t// Candidate Merging\n\t\t\t//System.out.println(\"Primary Partition Group:\"+(i+1));\n\t\t\tList<BigInteger> mergedCandidatePartitions = mergeCandidates(primaryPartitionGroup);\n\t\t\t//System.out.println(\"Number of merged partitions:\"+mergedCandidatePartitions.size());\n\t\t\t\n\t\t\t// Layout Generation\n\t\t\tgenerateLayout(mergedCandidatePartitions, primaryPartitionGroup);\n\t\t\tbestLayouts.add(bestLayout);\t\t\t\n\t\t\t//ArrayUtils.printArray(bestLayout, \"Layout:\"+(++i), null, null);\n\t\t}\n\t\t\n\t\t// Combine sub-Layouts\n\t\tList<int[][]> mergedBestLayouts = mergeAcrossLayouts(bestLayouts, bestLayouts.size());\n\t\tpartitioning = PartitioningUtils.getPartitioning(mergedBestLayouts);\n\t}", "public void init() {\r\n BufferedReader in = null;\r\n String line;\r\n PreparedStatement iStmt;\r\n String insertStmt = \"INSERT INTO \" + schema + \"ULDSHAPE \"\r\n + \"(SHAPE, ALLHGHT, ALLLENG, ALLWDTH, BIGPIC, DESCR, INTERNALVOLUME, INTHGHT, INTLENG, INTWDTH, \"\r\n + \"MAXGROSSWGHT, RATING, TAREWGHT, THUMBNAIL, UPDATED, UPDTUSER, VERSION) VALUES \"\r\n + \"(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\r\n int count = 0;\r\n\r\n LOG.log(Level.INFO, \"Initialize basic Uldshapes in DB from file [{0}]\", path);\r\n\r\n try {\r\n in = new BufferedReader(new InputStreamReader(new FileInputStream(path), StandardCharsets.UTF_8));\r\n\r\n iStmt = conn.prepareStatement(insertStmt);\r\n\r\n while ((line = in.readLine()) != null) {\r\n LOG.finer(line);\r\n\r\n UldshapeVO uldshapeVO = parseUldshape(line);\r\n\r\n iStmt.setString(1, uldshapeVO.getShape());\r\n iStmt.setInt(2, uldshapeVO.getAllhght());\r\n iStmt.setInt(3, uldshapeVO.getAllleng());\r\n iStmt.setInt(4, uldshapeVO.getAllwdth());\r\n iStmt.setBytes(5, uldshapeVO.getBigpic());\r\n iStmt.setString(6, uldshapeVO.getDescr());\r\n iStmt.setInt(7, uldshapeVO.getInternalvolume());\r\n iStmt.setInt(8, uldshapeVO.getInthght());\r\n iStmt.setInt(9, uldshapeVO.getIntleng());\r\n iStmt.setInt(10, uldshapeVO.getIntwdth());\r\n iStmt.setInt(11, uldshapeVO.getMaxgrosswght());\r\n iStmt.setString(12, uldshapeVO.getRating());\r\n iStmt.setInt(13, uldshapeVO.getTarewght());\r\n iStmt.setBytes(14, uldshapeVO.getThumbnail());\r\n iStmt.setTimestamp(15, DbUtil.getCurrentTimeStamp());\r\n iStmt.setString(16, uldshapeVO.getUpdtuser());\r\n iStmt.setLong(17, 0);\r\n\r\n // execute insert SQL stetement\r\n iStmt.executeUpdate();\r\n\r\n ++count;\r\n }\r\n LOG.log(Level.INFO, \"Finished: [{0}] ULDSHAPES loaded\", count);\r\n\r\n DbUtil.cleanupJdbc();\r\n }\r\n catch (IOException ioex) {\r\n LOG.log(Level.SEVERE, \"An IO error occured. The error message is: {0}\", ioex.getMessage());\r\n }\r\n catch (SQLException ex) {\r\n LOG.log(Level.SEVERE, \"An SQL error occured. The error message is: {0}\", ex.getMessage());\r\n }\r\n finally {\r\n if (in != null) {\r\n try {\r\n in.close();\r\n }\r\n catch (IOException e) {\r\n }\r\n }\r\n }\r\n }", "private Partition addPartition(String partitionId, String partitionDn, DnFactory dnFactory) throws Exception {\n JdbmPartition partition = new JdbmPartition(service.getSchemaManager(), dnFactory);\n partition.setId(partitionId);\n partition.setPartitionPath(new File(service.getInstanceLayout().getPartitionsDirectory(), partitionId).toURI());\n partition.setSuffixDn(new Dn(service.getSchemaManager(), partitionDn));\n return partition;\n }", "public BEROctetString(byte[] string, int segmentSize)\n {\n this(string, null, segmentSize);\n }", "void prepareSortedLedgerStorageCheckpoint(long numBytesFlushed) throws IOException;", "@Test\n public void testWriteReadOldStringData() \n throws IOException {\n TestUtils.loadLog(getClass(), \"je-4.0.103_StringData.jdb\", envHome);\n\n open();\n\n PrimaryIndex<String, StringData> primary = \n store.getPrimaryIndex(String.class, StringData.class);\n CompositeKey compK = \n new CompositeKey(\"new_CompKey2_1\", \"new_CompKey2_2\");\n String[] f3 = {\"new_f3_1\", \"new_f3_2\"};\n List<String> f4 = new ArrayList<String>();\n f4.add(\"new_f4_1\");\n f4.add(\"new_f4_2\");\n \n /* Put the String data in a new foramt.*/\n primary.put(null, new StringData(\"pk2\", \"new_sk2\", compK, \"new_f1\", \n \"new_f2\", f3, f4));\n \n /* Read the String data using new format. */\n StringData entity = primary.get(\"pk2\");\n assertNotNull(entity);\n entity.validate(new StringData(\"pk2\", \"new_sk2\", compK, \"new_f1\", \n \"new_f2\", f3, f4));\n \n /* Read the old String data. */\n entity = primary.get(\"pk1\");\n assertNotNull(entity);\n compK = new CompositeKey(\"CompKey1_1\", \"CompKey1_2\");\n f3 = new String[]{\"f3_1\", \"f3_2\"};\n f4 = new ArrayList<String>();\n f4.add(\"f4_1\");\n f4.add(\"f4_2\");\n entity.validate\n (new StringData (\"pk1\", \"sk1\", compK, \"f1\", \"f2\", f3, f4));\n close();\n }", "void put(int partitionID, String key, String value);", "private void init(int bytesPerId, int bytesPerType, int bytesPerPath) throws IOException {\n this.indexVersion = INDEX_VERSION;\n this.bytesPerId = bytesPerId;\n this.bytesPerType = bytesPerType;\n this.bytesPerPath = bytesPerPath;\n this.bytesPerSlot = bytesPerId + bytesPerType + bytesPerPath;\n this.entries = 0;\n \n logger.info(\"Creating uri index with {} bytes per entry\", bytesPerSlot);\n \n // Write header\n idx.seek(IDX_START_OF_HEADER);\n idx.writeInt(indexVersion);\n idx.writeInt(bytesPerId);\n idx.writeInt(bytesPerType);\n idx.writeInt(bytesPerPath);\n idx.writeLong(slots);\n idx.writeLong(entries);\n \n // If this file used to contain entries, we just null out the rest\n try {\n byte[] bytes = new byte[bytesPerSlot - 2];\n while (idx.getFilePointer() < idx.length()) {\n idx.writeChar('\\n');\n idx.write(bytes);\n }\n } catch (EOFException e) {\n // That's ok, we wanted to write until the very end\n }\n \n logger.debug(\"Uri index created\");\n }", "void setPQ( byte[] buffer, short offset, short length) throws CryptoException;", "public abstract String apachedb(int size);", "public void setPartitions(Long Partitions) {\n this.Partitions = Partitions;\n }", "private void init() {\n _capacity = 1 << 9;\n int holderSize = _capacity << 1;\n _keyValueHolder = new int[holderSize];\n _mask = holderSize - 1;\n _maxNumEntries = (int) (_capacity * LOAD_FACTOR);\n }", "public Builder addPartitionKeyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n ensurePartitionKeyIsMutable();\n partitionKey_.add(value);\n onChanged();\n return this;\n }", "public RowColStore (int memory_size_in_bytes,String layoutFile)\n\t{\n\t\t/* later -- pass it from paramters */\n\t\tmax_buf_size = memory_size_in_bytes; /* allocated first */\n\n /* create colum Buffer hash table */ \n hybridBufs = new Hashtable<String, String>();\n searchBufs = new Hashtable<String, ByteBuffer>();\n tempBufLong = new Hashtable<String, Long>();\n types = new Hashtable<String, String>();\n\n UndefByte[0] = -1;\n\n /* create buffer first */\n /* read layout file, create each buffer for each line */\n /* key is field_name:type, value is the buf */\n\n try {\n BufferedReader bufferedReader = new BufferedReader(new FileReader(layoutFile));\n String line = bufferedReader.readLine();\n int i = 0;\n while(line !=null){\n String[] keys = line.split(\"\\\\s+\"); //separted by any white space \n if(keys.length == 0) \n continue; // empty line\n ByteBuffer buf = ByteBuffer.allocateDirect(max_buf_size);\n //System.out.println(\"allocate buf \"+max_buf_size +\" for \" + keys);\n for (String k : keys){\n hybridBufs.put(k,line);\n }\n searchBufs.put(line,buf);\n i++;\n line = bufferedReader.readLine();\n }\n } catch (FileNotFoundException e){\n\t\t\tSystem.err.println(\"FileNotFoundException:\"+e.getMessage());\n\t\t\treturn ;\n } catch (IOException e){\n\t\t\tSystem.err.println(\"IOException:\"+e.getMessage());\n\t\t\treturn;\n }\n\t}", "private IDataKey(Queue<Part> parts) {\n super(parts);\n }", "public Struct(String b){\r\n\tid=b;\r\n\tsize=0;\r\n\tform=0;\r\n }", "public StringTable(int maxSize) \n\t{\n\t\tfor (int j = 0; j < length; j++){ //fills table with empty slots\n\t\t\tTable[j] = new Record(\" \");\n\t\t}\n\t}", "public void setPartitionId(String partitionId) {\n this.partitionId = partitionId;\n }", "abstract public Buffer createBufferFromString(String data);", "public static void store() {\r\n//\t\tSystem.out.println(\"mar\"+readMAR().getStr());\r\n\t\tString mar = new String(readMAR().getStr());\r\n\t\tTraceINF.write(\"Write memory \"+mar);\r\n\t\tFormatstr content = new Formatstr();\r\n\t\t\r\n\t\tcontent = readMBR();\r\n\t\tgetBank(mar)[Integer.parseInt(mar.substring(0, mar.length() - 2), 2)] = content.getStr();\r\n\t\tTraceINF.write(\"Write finished.\");\r\n\t}", "private StringBuilder startBuild() {\n StringBuilder strBuilder = new StringBuilder()\n .append(\"CREATE EXTERNAL TABLE IF NOT EXISTS \");\n if (databaseName != null) {\n strBuilder.append(databaseName).append('.');\n }\n strBuilder.append(tableName);\n\n // yeah... schema is not always required.\n if (hiveSchema != null) {\n strBuilder.append(\" \").append(hiveSchema);\n }\n\n if (tableComment != null && !tableComment.isEmpty()) {\n strBuilder.append(\" COMMENT '\")\n .append(tableComment)\n .append(\"'\");\n }\n\n if (partitioning != null && !partitioning.getFields().isEmpty()) {\n strBuilder.append(\" PARTITIONED BY (\");\n for (Map.Entry<String, Partitioning.FieldType> entry : partitioning.getFields().entrySet()) {\n strBuilder = shouldEscapeColumns ?\n strBuilder.append('`').append(entry.getKey()).append('`') : strBuilder.append(entry.getKey());\n strBuilder.append(\" \")\n .append(FieldTypes.toHiveType(entry.getValue()))\n .append(\", \");\n }\n // remove trailing \", \"\n strBuilder.deleteCharAt(strBuilder.length() - 1)\n .deleteCharAt(strBuilder.length() - 1)\n .append(\")\");\n }\n\n if (rowFormat != null) {\n strBuilder.append(\" ROW FORMAT \").append(rowFormat);\n }\n return strBuilder;\n }", "public StrippedPartition(Object2ObjectOpenHashMap<Object, LongBigArrayBigList> partition) {\n this.strippedPartition = new ObjectBigArrayBigList<LongBigArrayBigList>();\n this.elementCount = 0;\n\n //create stripped partitions -> only use equivalence classes with size > 1.\n for (LongBigArrayBigList eqClass : partition.values()) {\n if (eqClass.size64() > 1) {\n strippedPartition.add(eqClass);\n elementCount += eqClass.size64();\n }\n }\n this.calculateError();\n }", "private void init(int diskSize) {\n this.readSuperblock();\n\n // if the configuration that was read from disk is not valid then go\n // ahead and use a default configuration\n if (configNotValid(diskSize)) {\n this.totalBlocks = diskSize;\n this.freeListTail = diskSize - 1;\n this.format(DEFAULT_TOTAL_INODE_BLOCKS);\n }\n }", "public Builder addPartitionKey(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensurePartitionKeyIsMutable();\n partitionKey_.add(value);\n onChanged();\n return this;\n }", "public QuickSort(Partitionable<T> part)\n {\n partAlgo = part;\n MIN_SIZE = 3;\n }", "public static void parseCreateString(String createTableString) {\n //System.out.println(\"Parsing the string:\\\"\" + createTableString + \"\\\"\");\n ArrayList<String> createTableTokens = new ArrayList<String>(Arrays.asList(createTableString.split(\" \")));\n\n /* Define table file name */\n String tableFileName = createTableTokens.get(2) + \".tbl\";\n String tableName = createTableTokens.get(2);\n //System.out.println(\"tableName:\"+tableName);\n //System.out.println(\"tableFileName:\"+tableFileName);\n \n //parse column fields into map\n String column = createTableString.substring(createTableString.indexOf(\"(\")+1,createTableString.indexOf(\")\"));\n //System.out.println(\"column:\"+column);\n ArrayList<String> columnTokens = new ArrayList<String>(Arrays.asList((column.trim()).split(\",\")));\n for(int i=0; i<columnTokens.size(); i++){\n \tint size = (((columnTokens.get(i)).trim()).split(\"\\\\s+\")).length;\n \t//System.out.println(\"size:\"+size);\n \tif(i==0){\n \t\tcolumnDataMap.put((((columnTokens.get(i)).trim()).split(\"\\\\s+\"))[0],\"INT\");\n \t\tcolumnIsNullableMap.put((((columnTokens.get(i)).trim()).split(\"\\\\s+\"))[0],\"NO\");\n \t}\n \telse if(i>0)\n \t{\n \t\tcolumnDataMap.put((((columnTokens.get(i)).trim()).split(\"\\\\s+\"))[0],(((columnTokens.get(i)).trim()).split(\"\\\\s+\"))[1]);\n \t\tif(size>2){\n \t\t\tcolumnIsNullableMap.put((((columnTokens.get(i)).trim()).split(\"\\\\s+\"))[0],\"NO\");\n \t\t}\n \t\telse if (size==2){\n \t\t\tcolumnIsNullableMap.put((((columnTokens.get(i)).trim()).split(\"\\\\s+\"))[0],\"YES\");\n \t\t}\n \t}\n \telse\n \t\tSystem.out.println(\"Given command is not correct\");\n }\n /*\n Iterator entries = columnDataMap.entrySet().iterator();\n while (entries.hasNext()) {\n Map.Entry entry = (Map.Entry) entries.next();\n String key = (String)entry.getKey();\n String value = (String)entry.getValue();\n System.out.println(\"Key = \" + key + \", Value = \" + value);\n }*/\n UserDataHandler table = new UserDataHandler(tableName);\n table.createTable(columnDataMap,columnIsNullableMap);\n }", "public BOHMap(int partitionCount) {\n this(partitionCount, Arrays::hashCode);\n }", "public static void initializeMemory(){\n\t\tif(memory == null){\n\t\t\tmemory = new TreeMap<String,String>();\n\t\t\tfor(int i=0;i<2048;i++){\n\t\t\t\tmemory.put(Utility.decimalToHex(i, 3), null);\n\t\t\t}\n\t\t\tmemory_fmbv = new int[256];\n\t\t\tfor(int i:memory_fmbv){\n\t\t\t\tmemory_fmbv[i] = 0;\n\t\t\t}\n\t\t}\n\t\tif(diskJobStorage == null){\n\t\t\tdiskJobStorage = new TreeMap<String,DiskSMT>();\n\t\t}\n\t}", "@Test\n public void testReadOldStringData()\n throws IOException {\n TestUtils.loadLog(getClass(), \"je-4.0.103_StringData.jdb\", envHome);\n\n open();\n PrimaryIndex<String, StringData> primary = \n store.getPrimaryIndex(String.class, StringData.class);\n \n /* Read the older String data. */\n StringData entity = primary.get(\"pk1\");\n assertNotNull(entity);\n CompositeKey compK = new CompositeKey(\"CompKey1_1\", \"CompKey1_2\");\n String[] f3 = {\"f3_1\", \"f3_2\"};\n List<String> f4 = new ArrayList<String>();\n f4.add(\"f4_1\");\n f4.add(\"f4_2\");\n entity.validate\n (new StringData (\"pk1\", \"sk1\", compK, \"f1\", \"f2\", f3, f4)); \n close();\n }", "private void setupMockBase() {\n storage = new MockBase(tsdb, client, true, true, true, true);\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, \n Bytes.fromLong(2L));\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, TAGK, \n Bytes.fromLong(2L));\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, TAGV, \n Bytes.fromLong(2L));\n // forward mappings\n storage.addColumn(UID_TABLE, \"foo\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 1});\n storage.addColumn(UID_TABLE, \"host\".getBytes(MockBase.ASCII()), ID_FAMILY, \n TAGK, new byte[] {0, 0, 1});\n storage.addColumn(UID_TABLE, \"web01\".getBytes(MockBase.ASCII()), ID_FAMILY, \n TAGV, new byte[] {0, 0, 1});\n \n storage.addColumn(UID_TABLE, \"bar\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 2});\n storage.addColumn(UID_TABLE, \"dc\".getBytes(MockBase.ASCII()), ID_FAMILY, \n TAGK, new byte[] {0, 0, 2});\n storage.addColumn(UID_TABLE, \"web02\".getBytes(MockBase.ASCII()), ID_FAMILY, \n TAGV, new byte[] {0, 0, 2});\n \n // reverse mappings\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 1}, NAME_FAMILY, \n METRICS, \"foo\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 1}, NAME_FAMILY, \n TAGK, \"host\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 1}, NAME_FAMILY, \n TAGV, \"web01\".getBytes(MockBase.ASCII()));\n \n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n METRICS, \"bar\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n TAGK, \"dc\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n TAGV, \"web02\".getBytes(MockBase.ASCII()));\n }", "public void setFirstPartitionId(int id)\n\t{\n\t\tthis.firstPartitionId = id;\n\t}", "private void initResultStorage() {\n\t\tstorage = new ResultStorage();\n\t\t\n\t\tfinal String geom = GeometryNames.RECT;\n\t\tfinal String mix = \"Default\";\n\t\tfinal int steps = 20;\n\t\tfinal double[] segr = new double[] { 0.1, 0.2, 0.3, 0.7, 0.6, 0.8, 0.8,\n\t\t\t\t0.4, 0.9, 0.4, 0.8, 0.2, 0.6, 0.3, 0.7, 0.5, 0.9, 0.4, 0.8, 0.1 };\n\n\t\tfor (int i = startIndex; i < endIndex; i++) {\n\t\t\tdistribution[i] = 255;\n\t\t}\n\t\t\n\t\tstorage.setDistribution(distribution);\n\t\tstorage.setGeometry(geom);\n\t\tstorage.setMixer(mix);\n\t\tstorage.setNrSteps(steps);\n\t\tstorage.setMixingProtocol(protocol);\n\t\tstorage.setSegregation(segr);\n\t}", "protected abstract void initTable() throws RemoteException, NotBoundException, FileNotFoundException;", "private void insertPartitionEntry(String file, String word, String partition) {\n\t\tArrayList<String> fileList = new ArrayList<String>();\n\t\tfileList.add(file);\n\t\tMap<String, ArrayList<String>> wordMap = new HashMap<String, ArrayList<String>>();\n\t\twordMap.put(word, fileList);\n\n\t\tindexedDir.put(partition, wordMap);\n\t}", "public String initializeChunk() {\n\t\ttry {\n\t\t\t// request \n\t\t\t// write payload size (2 ints, 4 + 4)\n\t\t\toos.writeInt(8);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.InitializeChunk);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint chunkHandleSize = getPayloadInt(ois);\n\t\t\t// reduce size by payload size int \n\t\t\tchunkHandleSize -= 4; \n\t\t\tbyte[] handle = getPayload(ois, chunkHandleSize);\n\t\t\treturn (new String(handle).toString());\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"ioe in initialize chunk \" + ioe.getMessage());\n\t\t}\n\t\treturn null; \n\t}", "public LargeObjectAvro() {}", "public void setFirstPartition(Partition partition)\n\t{\n\t\tfirstPartition = partition;\n\t}", "public abstract FlowNodeStorage instantiateStorage(MockFlowExecution exec, File storageDirectory);", "private static PartitionSpec spec(Properties props, Schema schema) {\n String specString = props.getProperty(InputFormatConfig.PARTITION_SPEC);\n PartitionSpec spec = PartitionSpec.unpartitioned();\n if (specString != null) {\n spec = PartitionSpecParser.fromJson(schema, specString);\n }\n return spec;\n }", "public HeapFile(File f, TupleDesc td) {\n this.file = f;\n this.tableId = f.getAbsoluteFile().hashCode();\n this.td = td;\n int pageSize = BufferPool.PAGE_SIZE;\n int pagesNeeded;\n\n RandomAccessFile rf;\n try {\n rf = new RandomAccessFile(f, \"r\");\n pagesNeeded = (int) Math.ceil((double) rf.length() / pageSize);\n } catch (Exception e) {\n System.err.println(\"Caugth exception1:\" + e.getMessage());\n return;\n }\n this.numPages = pagesNeeded;\n System.out.println(\"Created \" + pagesNeeded + \" heap files.\");\n pages = new HeapPage[pagesNeeded];\n\n // TODO Find out the best way to handle exceptions\n for (int pageIndex = 0; pageIndex < pagesNeeded; ++pageIndex) {\n int offset = pageIndex * pageSize;\n byte[] data = new byte[pageSize];\n try {\n rf.readFully(data, offset, pageSize);\n HeapPageId pid = new HeapPageId(tableId, pageIndex);\n System.out.println(\"Created HeapPageId\");\n pages[pageIndex] = new HeapPage(pid, data);\n System.out.println(\"Wrote to pages[\"+pageIndex+\"].\");\n } catch (Exception e) {\n System.err.println(\"Caught exception2:\" + e.getMessage());\n return;\n }\n }\n }", "public Id5320DataFile()\n\t{\n\t\tlineLength = OFF_CUSTOMER_NAME + LEN_CUSTOMER_NAME;\n\t}", "public ResizingArrayQueueOfStrings(){\n s = (Item[]) new Object[2];\n n = 0;\n first = 0;\n last = 0;\n }", "private void createClassSQLContract(){\n //---------------------------------------------------------------------------\n buffer=new StringBuffer();\n createGetColumnPropertiesHash();\n createGetPrimaryKeyVector();\n createGetTableName();\n createSetFKParent();\n\t}", "public abstract PartitionType getType();", "public Builder setPartitionKey(\n int index, String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensurePartitionKeyIsMutable();\n partitionKey_.set(index, value);\n onChanged();\n return this;\n }", "public void init() {\n int total_home = 0;\n for (int i = 0; i < _data.anyVec().nChunks(); ++i) {\n if (_data.anyVec().chunkKey(i).home()) {\n total_home++;\n }\n }\n\n // Now generate the mapping\n _chunk_row_mapping = new long[total_home];\n int off=0;\n int cidx=0;\n for (int i = 0; i < _data.anyVec().nChunks(); ++i) {\n if (_data.anyVec().chunkKey(i).home()) {\n _chunk_row_mapping[cidx++] = _data.anyVec().chunk2StartElem(i);\n }\n }\n\n // Initialize number of rows per node\n _rowsPerNode = new int[H2O.CLOUD.size()];\n long chunksCount = _data.anyVec().nChunks();\n for(int ci=0; ci<chunksCount; ci++) {\n Key cKey = _data.anyVec().chunkKey(ci);\n _rowsPerNode[cKey.home_node().index()] += _data.anyVec().chunkLen(ci);\n }\n\n _remoteChunksKeys = new Key[H2O.CLOUD.size()][];\n int[] _remoteChunksCounter = new int[H2O.CLOUD.size()];\n\n for (int i = 0; i < _data.anyVec().nChunks(); ++i) {\n _remoteChunksCounter[_data.anyVec().chunkKey(i).home(H2O.CLOUD)]++;\n }\n\n for (int i = 0; i < H2O.CLOUD.size(); ++i) _remoteChunksKeys[i] = new Key[_remoteChunksCounter[i]];\n\n int[] cnter = new int[H2O.CLOUD.size()];\n for (int i = 0; i < _data.anyVec().nChunks(); ++i) {\n int node_idx = _data.anyVec().chunkKey(i).home(H2O.CLOUD);\n _remoteChunksKeys[node_idx][cnter[node_idx]++] = _data.anyVec().chunkKey(i);\n }\n }", "protected void constructPartitions( Callback c, List nodes, int level ){\n //we want to ignore the dummy node partition\n String id = getPartitionID( mCurrentDepth );\n Partition p = new Partition( nodes, id );\n p.setIndex( mCurrentDepth );\n\n p.constructPartition();\n mLogger.log( \"Partition \" + p.getID() + \" is :\" + p.getNodeIDs(),\n LogManager.DEBUG_MESSAGE_LEVEL );\n c.cbPartition( p );\n\n }", "public StrippedPartition(long numberTuples) {\n this.strippedPartition = new ObjectBigArrayBigList<LongBigArrayBigList>();\n this.elementCount = numberTuples;\n // StrippedPartition only contains partition with more than one elements.\n if (numberTuples > 1) {\n LongBigArrayBigList newEqClass = new LongBigArrayBigList();\n for (int i = 0; i < numberTuples; i++) {\n newEqClass.add(i);\n }\n this.strippedPartition.add(newEqClass);\n }\n this.calculateError();\n }", "@Test\n public void testGetAlterPartitionMessage() {\n String messageBody = \"H4sIAAAAAAAAAO1WW2sbRxT+L/usjHa1ullQqOMkbUpSBWwKJVuW0e7IGntvmZlVcIwhT8UlfuhDiimUGk\"\n + \"NKk5fQQkmD3dI/Y8nuv+iZmZWtXa+VKNSUgh7sHc05cy5z5jvf2TY4YUPCjI4hBoz2RadaTVqW3WwP0SANNlFvI/TRIzqIY\"\n + \"xQR0Vky27ZRUYeoRx4wGnk0wQEcH9AhqbqfdlfXPr735coKWuneB0W/B6I+jVzsczeOAhoR2BW4FxAQyM3ETd0eGeAhjZnL\"\n + \"iBcz3wXTLhdYUC6oByo+nRxa20rkwfvLny9/cvuWu7Z8897tiazb2/iMxxGItx3DcowOfLhgsHDm8OQYOxXHqOWP5zPQKnZ\"\n + \"eReZ/nrnWqGsNaktrVrPVqNVNq2lLUWNaZMqd5qWdlt6BSPUiSyngAhYPM0GlUbmcbZacoCEpTQe+NFovTeP0+cF499uz17\"\n + \"+M/vxuvP/m7/3fQG2nxMfUrfl4a243xwdnrw/H+z+Nfzi4wgEZkki4HhZkPWZzOzg5enZy/Obk7dPTo59Hu1+f/no8042Ad\"\n + \"/VhLsDy6MdnVxj3scDuEAdpufEeXaeRmHFBo6d/SMtflZwd+H0OYLWb5gaNWBytB1ueV00BmVUFxceYkUEMv6v5x4v8XnVe\"\n + \"NBRii9k6wgn2BgQNsB/HCZIe0aMA0RjFzENd5t2NklTciVmIRQ4M89jopqJgJION6Jei5oZVBpva/I5XCfPzKA9xokGnzFQ\"\n + \"mX0vWHK6c4oA+gXuLI9TPwu2oxwCl25Fm2gXs6uOmKuxSKa61zDJn+jcr2/pxWNY7msW0w1pBphaZrJivluX9qYysWq4WpV\"\n + \"nqTKwSYCQf0DPGe9+MXrwCMI/2js5RsTTzfpZUfRLMNhGHCvM4ZR7hiEP1Q4yiNHyAmViJAz6pV2WGOuwLZCrNbceBzGXPc\"\n + \"ORvR/lLPSFXFfmvT0ngcyV9qJQjHF4oT/fnyYmiNXkLE1mUBoFkOCUHR0TthkRg2WDUrnLixWEI3ezcTEkzd7JOVQyp0M6v\"\n + \"Narp3n9VPIXuf53xlFDF7KgmQVxzRBmzXBXLFLeUxhLE/1qtJA1dFUZy3c8lB3tHA18B1WMEnsdkvgtp9G74AtQzBOsGBPq\"\n + \"C4YhTWdYAc3HLD9bU1CTbwfnEphR7qbdJBGTkwrzModUrpZoOJYtZtanvj07+Ojx9/nK8+/vZ4d7J26PsEl+8Ojt8OTvGrC\"\n + \"OVtyOdL8p5RzaSfxaqI/OGbTUU40x150nvzA3Murtal8jUahVGDCDGTLc9zbOKZq2s89JmXRMAjOGUr7E0kqDtJnLuxwFX4\"\n + \"z7cKPSXMFFTcLtu11v1RsV4zKggd304XDE2ydYX8ilzsKlqA8drZs02LduCCAxZPCr5FYb8mwQ4llwa9QtUZ0luySw4RtkE\"\n + \"9R5D/byDUsnEb7Vbsyf+xXy/mO//s/m+KrH20QVOFtP+Ytp/32m/NTNYW17WTHLVRKDJVcQCB6v0iRYuNTT3AR3eoQHhU/d\"\n + \"7cYMlLGVepqRp4ljuw7iw4I0Fbyx4Y8EbC974f/NG4zp5Y+cflz5IfxgZAAA=\";\n MessageDeserializer messageDeserializer = MetastoreEventsProcessor.getMessageDeserializer(\"gzip(json-2.0)\");\n Assert.assertTrue(messageDeserializer instanceof GzipJSONMessageDeserializer);\n\n try {\n AlterPartitionMessage alterPartitionMessage = messageDeserializer.getAlterPartitionMessage(messageBody);\n Assert.assertTrue(alterPartitionMessage != null);\n Assert.assertTrue(alterPartitionMessage.getEventType() == EventMessage.EventType.ALTER_PARTITION);\n Assert.assertTrue(alterPartitionMessage.getTableObj() != null);\n } catch (Exception e) {\n e.printStackTrace();\n Assert.assertTrue(false);\n }\n }", "protected void createFromPMSInit(PMSInit init) {\n\t\tdescription = init.getDescription();\n\t\tbatchSize = init.getBatchSize() > 0 ? init.getBatchSize() : BATCH_SIZE;\n\t\tinjectBeans = init.getInjectBeans();\n\t\tcommitImmediately = init.isCommitImmediately();\n\t}", "public int setUp() throws IOException {\r\n\t\tint kSz = 0;\r\n\t\tkeys = ByteBuffer.allocate(size * FREE.length);\r\n\t\tvalues = ByteBuffer.allocate(size * 8);\r\n\t\tclaims = ByteBuffer.allocate(size);\r\n\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\tkeys.put(FREE);\r\n\t\t\tvalues.putLong(-1);\r\n\t\t\tclaims.put((byte) 0);\r\n\t\t\tkSz++;\r\n\t\t}\r\n\t\treturn size;\r\n\t}", "public TextObjectBaseRecord(short id, short size, byte [] data, int offset)\n {\n super(id, size, data, offset);\n \n }", "public void addPartition(Connection c, final String prefix, final String schema, final String table, final Date lowValue, final Date highValue) throws SQLException {\n String partitionName = prefix + DateMath.format2(lowValue);\n String highValueStr = DateMath.format(highValue);\n String lowValueStr = DateMath.format(lowValue);\n \n // RTC_33190 Begin: add partition failed due to missing '' around highValueStr, and partitionName can not be used as parameter.\n // Because both partitionName and highValueStr are not gotten from user input, so there will be no sql injection risk without using ps.setString.\n final String ddl = \"ALTER TABLE \" + schema + \".\" + table \n + \" ADD PARTITION \" + partitionName + \" STARTING FROM '\" + lowValueStr + \"' INCLUSIVE ENDING AT '\" + highValueStr + \"' EXCLUSIVE\";\n \n try (Statement s = c.createStatement()) {\n s.executeUpdate(ddl);\n }\n // RTC_33190 End\n }", "private void allocateGrainTable(int grainTable) {\n int startSector = serverHeader.freeSector;\n byte[] emptyGrainTable = new byte[header.numGTEsPerGT * 4];\n fileStream.position(startSector * (long) Sizes.Sector);\n fileStream.write(emptyGrainTable, 0, emptyGrainTable.length);\n // Update header\n serverHeader.freeSector += MathUtilities.ceil(emptyGrainTable.length, Sizes.Sector);\n byte[] headerBytes = serverHeader.getBytes();\n fileStream.position(0);\n fileStream.write(headerBytes, 0, headerBytes.length);\n // Update the global directory\n globalDirectory[grainTable] = startSector;\n writeGlobalDirectory();\n this.grainTable = new byte[header.numGTEsPerGT * 4];\n currentGrainTable = grainTable;\n }", "@Before\r\n public void setUp() {\r\n queue = new LinkedQueue<String> (initCapacity);\r\n }", "@Test\n public void testPartitionResolverPartitionedRegion() throws Throwable {\n createCacheInAllVms();\n redundancy = 0;\n localMaxmemory = 50;\n totalNumBuckets = 11;\n try {\n // Create Customer PartitionedRegion in All VMs\n regionName = CustomerPartitionedRegionName;\n colocatedWith = null;\n isPartitionResolver = Boolean.FALSE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n // Create Order PartitionedRegion in All VMs\n regionName = OrderPartitionedRegionName;\n colocatedWith = CustomerPartitionedRegionName;\n isPartitionResolver = Boolean.FALSE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n // With same Key Based Partition Resolver\n accessor.invoke(new SerializableCallable(\"Create data, invoke exectuable\") {\n @Override\n public Object call() throws Exception {\n PartitionedRegion prForCustomer =\n (PartitionedRegion) basicGetCache().getRegion(CustomerPartitionedRegionName);\n assertNotNull(prForCustomer);\n DummyKeyBasedRoutingResolver dummy = new DummyKeyBasedRoutingResolver(1);\n prForCustomer.put(dummy, 100);\n assertEquals(prForCustomer.get(dummy), 100);\n LogWriterUtils.getLogWriter()\n .info(\"Key :\" + dummy.dummyID + \" Value :\" + prForCustomer.get(dummy));\n\n PartitionedRegion prForOrder =\n (PartitionedRegion) basicGetCache().getRegion(OrderPartitionedRegionName);\n assertNotNull(prForOrder);\n prForOrder.put(dummy, 200);\n assertEquals(prForOrder.get(dummy), 200);\n LogWriterUtils.getLogWriter()\n .info(\"Key :\" + dummy.dummyID + \" Value :\" + prForOrder.get(dummy));\n return null;\n }\n });\n } catch (Exception unexpected) {\n unexpected.printStackTrace();\n LogWriterUtils.getLogWriter().info(\"Unexpected Message: \" + unexpected.getMessage());\n fail(\"Test failed\");\n }\n }", "public void initialize(int numPartitions) {\n Preconditions.checkState(!initialized);\n Preconditions.checkArgument(numPartitions >= 1); // Numpartitions must be positive\n Preconditions.checkArgument((numPartitions & (numPartitions - 1)) == 0); // Make sure it's a power of two\n\n this.numPartitions = numPartitions;\n initialized = true;\n partitionMask = numPartitions - 1;\n bitsInMask = Integer.bitCount(partitionMask);\n }", "static <H, I> TableStore<I, X509Certificate> getTableStore(I localId, X509Certificate localCert, Serializer<I> iSerializer, X509Serializer cSerializer, InputBuffer buf) {\n MyStore<H, I> ret = new MyStore<H, I>();\n ret.put(localId, localCert);\n if (buf != null) {\n // load store from the file\n throw new RuntimeException(\"Persistent version not implemented.\");\n }\n \n return ret;\n }", "public Storage(int storageSize) {\n\t\tstorageSpace = new Block[storageSize];\n\t}", "abstract E createSplit(RandomAccessFile raf, long length) throws IOException;", "public Creator_4_tables() {\n// this.sourceUnits = sourceUnits;\n sourceUnits = new HashMap<String, PojoSourceCreatorUnit>();\n sourceTemplatePool.logEnvOnSrcCreate = app.cfg.getCfgBean().logEnvOnSrcCreate;\n env.setLogLeading(\"--cfenv--\");\n }", "private static void populateOMDB() throws IOException {\n // Bucket1 FSO layout\n writeKeyToOm(reconOMMetadataManager,\n KEY_ONE,\n BUCKET_ONE,\n VOL,\n FILE_ONE,\n KEY_ONE_OBJECT_ID,\n BUCKET_ONE_OBJECT_ID,\n BUCKET_ONE_OBJECT_ID,\n VOL_OBJECT_ID,\n KEY_ONE_SIZE,\n getFSOBucketLayout());\n\n // Bucket2 Legacy layout\n writeKeyToOm(reconOMMetadataManager,\n KEY_TWO,\n BUCKET_TWO,\n VOL,\n FILE_TWO,\n KEY_TWO_OBJECT_ID,\n PARENT_OBJECT_ID_ZERO,\n BUCKET_TWO_OBJECT_ID,\n VOL_OBJECT_ID,\n KEY_TWO_SIZE,\n getLegacyBucketLayout());\n\n // Bucket3 OBS layout\n writeKeyToOm(reconOMMetadataManager,\n KEY_THREE,\n BUCKET_THREE,\n VOL,\n FILE_THREE,\n KEY_THREE_OBJECT_ID,\n PARENT_OBJECT_ID_ZERO,\n BUCKET_THREE_OBJECT_ID,\n VOL_OBJECT_ID,\n KEY_THREE_SIZE,\n getOBSBucketLayout());\n }", "public AbstractLdifPartition( SchemaManager schemaManager )\n {\n super( schemaManager );\n \n initInstance();\n }", "Update withPartitionCount(int count);" ]
[ "0.5720352", "0.54767543", "0.5390743", "0.5375251", "0.5247475", "0.5196523", "0.5153725", "0.5147266", "0.5145101", "0.5101685", "0.5069216", "0.5029089", "0.5001812", "0.49786922", "0.49743828", "0.49743327", "0.49561808", "0.4924878", "0.49170348", "0.48968083", "0.48335508", "0.4810157", "0.4797701", "0.47832835", "0.47746196", "0.47744885", "0.4773804", "0.47638732", "0.4754503", "0.47541928", "0.47375095", "0.4734989", "0.47100052", "0.4703466", "0.4701489", "0.4678098", "0.46770597", "0.46526426", "0.46398535", "0.4635251", "0.46243703", "0.46236333", "0.46179938", "0.46178216", "0.46145415", "0.46012643", "0.46011886", "0.45877883", "0.45865163", "0.45855004", "0.45849943", "0.4582581", "0.45793086", "0.45740628", "0.4570577", "0.4565151", "0.4562733", "0.45609394", "0.4551811", "0.45421898", "0.4540898", "0.4538865", "0.45353335", "0.4524945", "0.45208165", "0.45024857", "0.45016587", "0.4491944", "0.44843364", "0.44775793", "0.4476346", "0.4475972", "0.4458713", "0.44557178", "0.44548926", "0.44457716", "0.4444899", "0.44381446", "0.44351095", "0.4414332", "0.44094554", "0.44059965", "0.44035602", "0.44034475", "0.43948102", "0.43917653", "0.43809196", "0.43789667", "0.43780404", "0.43766367", "0.43558115", "0.43503085", "0.43492723", "0.43485585", "0.43459204", "0.43443394", "0.43439648", "0.43344355", "0.4333073", "0.43320224" ]
0.6668233
0
this is the partition with where field
public List<Integer> selectRangeWherePar(byte[][] selectCols, byte[] whereCol, long value1, long value2, ResultSet result){ List<Integer> oidList = new ArrayList<Integer>(); //assuming the where col is in type LONG boolean[] access = new boolean[keyForLong.length]; int whereIndex = -1; for(int i = 0; i < keyForLong.length; i++){ if(keyForLong[i].equals( new String(whereCol) + separator + "LONG" )) whereIndex = i; access[i] = false; for(int j = 0; j < selectCols.length; j++){ if(keyForLong[i].equals( new String(selectCols[j]) + separator + "LONG" )){ access[i] = true; break; } } } int numOfFields = keyForLong.length; for(int i = 0; i < numObject; i++){ //first check if this object meet the where condition long value = longValues[i*numOfFields + whereIndex]; if( (value >= value1) && (value <= value2)){ //this object meets condition int oid=objectIds[i]; oidList.add(oid); //select fields in the select clause for(int j = 0; j < access.length; j++){ if(access[j]){ String key = keyForLong[j]; if(j == whereIndex){ result.addLong(key, oid, value); continue; } long longnum = longValues[i*numOfFields + j]; if(longnum != UNDEFINED) result.addLong(key, oid, longnum); } } } } if(oidList.size() > 0){ //if this partition also has other data types, also select those based on oidList if(keyForString.length != 0) selectConditionString(oidList, selectCols, result); if(keyForDouble.length != 0) selectConditionDouble(oidList, selectCols, result); if(keyForBool.length != 0) selectConditionBool(oidList, selectCols, result); } return oidList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "QueryPartitionClause createQueryPartitionClause();", "@Value.Parameter\n int partition();", "public void partition();", "public void partitionExample(){\n Map<Boolean, List<Person>> result= createPeople()\n .stream()\n .collect(Collectors.partitioningBy(e->e.getAge()>30));\n print.accept(result);\n }", "public Map<String, ExecutionContext> partition(int gridSize) {\n\n\t\tMap<String, ExecutionContext> partitionMap = new HashMap<String, ExecutionContext>();\n\n\t\tString partitionerQuery =this.getPrimaryKeyQuery();\n\t\t\n\t\tResultSetExtractor<List<Object>> resultSetExtractor = new ResultSetExtractor<List<Object>>() {\n\n\t\t\t@Override\n\t\t\tpublic List<Object> extractData(ResultSet rs)\n\t\t\t\t\tthrows SQLException, DataAccessException {\n\t\t\t\tList<Object> listOfIds = new ArrayList<Object>();\n\t\t\t\twhile(rs.next()){\n\n\t\t\t\t\tlistOfIds.add(rs.getObject(1));\n\t\t\t\t}\n\t\t\t\treturn listOfIds;\n\t\t\t}\n\t\t};\n\t\t\n\t\tList<Object> keys = query(partitionerQuery, resultSetExtractor);\n\n\t\tint recordsToProcess = keys.size();\n\t\tlogger.info(\"-------------------- Total records to process: \" + recordsToProcess);\n\n\t\tint partitionSize = (int) (Math.ceil((float) recordsToProcess / (float) gridSize));\n\n\t\tif (partitionSize < skipGridSizeForRecordsLessThenCount) {\n\t\t\tpartitionSize = skipGridSizeForRecordsLessThenCount;\n\t\t}\n\n\t\tlogger.info(\"--------------------- Total records per Partition: \" + partitionSize);\n\n\t\tint startKey = 0;\n\t\tint endKey = startKey + partitionSize - 1;\n\t\tint partitionId = 1;\n\n\t\twhile (startKey < recordsToProcess) {\n\t\t\tif (endKey > recordsToProcess - 1) {\n\t\t\t\tendKey = recordsToProcess - 1;\n\t\t\t}\n\t\t\tExecutionContext context = new ExecutionContext();\n\n\t\t\tlogger.info(\"-------------------- Start index(\" + partitionId + \"): \" + keys.get(startKey));\n\t\t\tlogger.info(\"-------------------- End index(\" + partitionId + \"): \" + keys.get(endKey));\n\n\t\t\tpartitionMap.put(\"partition-\" + partitionId, context);\n\t\t\tcontext.put(\"startKey\", keys.get(startKey));\n\t\t\tcontext.put(\"endKey\", keys.get(endKey));\n\t\t\tcontext.put(\"partitionId\", partitionId);\n\t\t\tcontext.put(\"partitionSize\", partitionSize);\n\t\t\tcontext.put(\"totalRecords\", keys.size());\n\n\t\t\tstartKey += partitionSize;\n\t\t\tendKey += partitionSize;\n\t\t\tpartitionId++;\n\t\t}\n\n\t\tlogger.info(\"Total no. of Partitions: \" + partitionMap.size());\n\t\treturn partitionMap;\n\t}", "public VirtualDataSet[] partitionByNumericAttribute(int attributeIndex, int valueIndex) {\n\t\t// WRITE YOUR CODE HERE!\n\n\t\t if(attributes[attributeIndex].getType()==AttributeType.NOMINAL){ \t\t\t\t\t\t\t// avoid passing through nominal value to current method\n return null; \n }\n\t\t\tVirtualDataSet [] partitions = new VirtualDataSet[2]; \t\t\t\t\t\t\t\t\t// creates two split path \n\n\t\t\tdouble split = Double.parseDouble(getValueAt(valueIndex , attributeIndex));\t\t\t// determine the middle number in order to split \n\t\t\t\n\t\t\tLinkedList<Integer> rowsLess = new LinkedList<Integer> (); \t\t\t\t\t\t\t// using linkedlist to do collection of split rows that less than valueIndex value\n\t\t\t\n\t\t\tLinkedList<Integer> rowsMore = new LinkedList<Integer> ();\t\t\t\t\t\t\t\t// using linkedlist to do collection of split rows that less than valueIndex value\n\t\t\t\n\t\t\tint countLess = 0;\n\t\t\tint countMore = 0; \n\n\t\t\tString []arrayOfNums = attributes[attributeIndex].getValues();\n\n\t\t\tfor(int j = 0; j < source.numRows; j++){ \n\t\t\t\t\n\t\t\t\tif(Double.parseDouble(getValueAt(j,attributeIndex)) <= split){ \t\t\t\t// transform from string to integer in order to compare the number smaller than middle number\n\t\t\t\t\t\n\t\t\t\t\trowsLess.add(j);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add rows that correspond with the current attribute of spliting \n\t\t\t\t\tcountLess++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// determine the size of partition rows array \n\t\t\t\t}else if(Double.parseDouble(getValueAt(j,attributeIndex)) > split){\t\t\t// transform from string to integer in order to compare the number bigger than middle number\n\t\t\t\t\t\n\t\t\t\t\trowsMore.add(j); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add rows that correspond with the current attribute of spliting \n\t\t\t\t\tcountMore++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// determine the size of partition rows array \n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint [] partitionRowsLess = new int [countLess]; \t\t\t\t\t\t\t\t\t\t// the collection of rows represents all number that smaller than middle number\n\t\t\tint [] partitionRowsMore = new int [countMore]; \t\t\t\t\t\t\t\t\t\t// the collection of rows represents all number that bigger than middle number\n\t\t\tfor(int k = 0; k < countLess; k++){\n\t\t\t\tpartitionRowsLess[k] = rowsLess.poll(); \t\t\t\t\t\t\t\t\t\t\t// transform from linkedlist to array \n\t\t\t}\n\t\t\tfor(int k = 0; k < countMore; k++){\n\t\t\t\tpartitionRowsMore[k] = rowsMore.poll(); \t\t\t\t\t\t\t\t\t\t\t// transform from linkedlist to array \n\t\t\t}\n\t\t\t\n\t\t\tpartitions[0] = new VirtualDataSet(source,partitionRowsLess, attributes); \t\t\t\t// send partition to VirtualDataSet constructor \n\t\t\tpartitions[1] = new VirtualDataSet(source,partitionRowsMore, attributes); \n\t\t\t\n\n\n\t\t\treturn partitions;\n\t\t\n\t}", "@Test\n public void testMultiLevelPartitionPruning() throws SqlParseException {\n\n val project = \"multi_level_partition\";\n val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\";\n val expectedRanges = Lists.<Pair<String, String>> newArrayList();\n val segmentRange1 = Pair.newPair(\"2012-01-01\", \"2012-01-02\");\n val segment1Uuid = \"8892fa3f-f607-4eec-8159-7c5ae2f16942\";\n val segmentRange2 = Pair.newPair(\"2012-01-02\", \"2012-01-03\");\n val segment2Uuid = \"d75a822c-788a-4592-a500-cf20186dded1\";\n val segmentRange3 = Pair.newPair(\"2012-01-03\", \"2012-01-04\");\n val segment3Uuid = \"54eaf96d-6146-45d2-b94e-d5d187f89919\";\n val segmentRange4 = Pair.newPair(\"2012-01-04\", \"2012-01-05\");\n val segment4Uuid = \"411f40b9-a80a-4453-90a9-409aac6f7632\";\n val segmentRange5 = Pair.newPair(\"2012-01-05\", \"2012-01-06\");\n val segment5Uuid = \"a8318597-cb75-416f-8eb8-96ea285dd2b4\";\n val expectedPartitionMap = Maps.<String, List<Long>> newHashMap();\n\n val sqlBase = \"select cal_dt, sum(price) from test_kylin_fact inner join test_account on test_kylin_fact.seller_id = test_account.account_id \";\n\n // no filter\n val noFilterSql = sqlBase + \"group by cal_dt\";\n expectedRanges.add(segmentRange1);\n expectedRanges.add(segmentRange2);\n expectedRanges.add(segmentRange3);\n expectedRanges.add(segmentRange4);\n expectedRanges.add(segmentRange5);\n expectedPartitionMap.put(segment1Uuid, Lists.newArrayList(0L, 1L, 2L, 3L));\n expectedPartitionMap.put(segment2Uuid, Lists.newArrayList(0L, 1L, 2L));\n expectedPartitionMap.put(segment3Uuid, Lists.newArrayList(1L, 2L, 3L));\n expectedPartitionMap.put(segment4Uuid, Lists.newArrayList(0L, 1L));\n expectedPartitionMap.put(segment5Uuid, Lists.newArrayList(2L, 3L));\n assertPrunedSegmentsRange(project, noFilterSql, dfId, expectedRanges, 1L, expectedPartitionMap);\n\n val andSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-04' and lstg_site_id = 1 group by cal_dt\";\n val andMappingSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-04' and lstg_format_name = 'FP-non GTC' group by cal_dt\";\n val andMixSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-04' and lstg_site_id = 1 and lstg_format_name = 'FP-non GTC' group by cal_dt\";\n expectedRanges.clear();\n expectedRanges.add(segmentRange1);\n expectedRanges.add(segmentRange2);\n expectedRanges.add(segmentRange3);\n expectedPartitionMap.clear();\n expectedPartitionMap.put(segment1Uuid, Lists.newArrayList(1L));\n expectedPartitionMap.put(segment2Uuid, Lists.newArrayList(1L));\n expectedPartitionMap.put(segment3Uuid, Lists.newArrayList(1L));\n assertPrunedSegmentsRange(project, andSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, andMappingSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, andMixSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n\n val notInSql0 = sqlBase\n + \"where cal_dt > '2012-01-02' and cal_dt < '2012-01-04' and lstg_site_id not in (0, 2, 3) group by cal_dt\";\n val notInMappingSql0 = sqlBase\n + \"where cal_dt > '2012-01-02' and cal_dt < '2012-01-04' and lstg_format_name not in ('FP-GTC', 'ABIN', 'Auction') group by cal_dt\";\n val notInMixSql0 = sqlBase\n + \"where cal_dt > '2012-01-02' and cal_dt < '2012-01-04' and lstg_site_id not in (0, 2, 3) and lstg_format_name not in ('FP-GTC', 'ABIN', 'Auction') group by cal_dt\";\n expectedRanges.clear();\n expectedRanges.add(segmentRange2);\n expectedRanges.add(segmentRange3);\n expectedPartitionMap.clear();\n expectedPartitionMap.put(segment2Uuid, Lists.newArrayList(1L));\n expectedPartitionMap.put(segment3Uuid, Lists.newArrayList(1L));\n assertPrunedSegmentsRange(project, notInSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, notInMappingSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, notInMixSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n\n // return empty data case\n val emptyData = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-03' and lstg_site_id = 5 group by cal_dt\";\n val emptyDataMapping = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-03' and lstg_format_name = 'not_exist_name' group by cal_dt\";\n val emptyDataMix = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-03' and lstg_site_id = 5 and lstg_format_name = 'not_exist_name' group by cal_dt\";\n expectedRanges.clear();\n expectedPartitionMap.clear();\n assertPrunedSegmentsRange(project, emptyData, dfId, expectedRanges, -1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, emptyDataMapping, dfId, expectedRanges, -1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, emptyDataMix, dfId, expectedRanges, -1L, expectedPartitionMap);\n\n // query data out of current built segments range\n val inSql0 = sqlBase\n + \"where cal_dt > '2011-12-30' and cal_dt < '2012-01-03' and lstg_site_id in (1, 2) group by cal_dt\";\n val inMappingSql0 = sqlBase\n + \"where cal_dt > '2011-12-30' and cal_dt < '2012-01-03' and lstg_format_name in ('FP-non GTC', 'ABIN') group by cal_dt\";\n val inMixSql0 = sqlBase\n + \"where cal_dt > '2011-12-30' and cal_dt < '2012-01-03' and lstg_site_id in (1, 2) and lstg_format_name in ('FP-non GTC', 'ABIN') group by cal_dt\";\n expectedRanges.add(segmentRange1);\n expectedRanges.add(segmentRange2);\n expectedPartitionMap.put(segment1Uuid, Lists.newArrayList(1L, 2L));\n expectedPartitionMap.put(segment2Uuid, Lists.newArrayList(1L, 2L));\n assertPrunedSegmentsRange(project, inSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, inMappingSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, inMixSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n\n val pushDownSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-03' and lstg_site_id = 3 group by cal_dt\";\n assertNoRealizationFound(project, pushDownSql0);\n\n val pushDownMappingSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-03' and lstg_format_name = 'Auction' group by cal_dt\";\n assertNoRealizationFound(project, pushDownMappingSql0);\n\n val pushDownMixSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-03' and lstg_site_id = 3 and lstg_format_name = 'Auction' group by cal_dt\";\n assertNoRealizationFound(project, pushDownMixSql0);\n\n // return empty result\n val wrongMapping0 = sqlBase\n + \"where cal_dt between '2012-01-01' and '2012-01-02' and lstg_site_id = 0 and lstg_format_name = 'FP-non GTC' group by cal_dt\";\n assertPrunedSegmentsRange(project, wrongMapping0, dfId, null, -1L, null);\n\n val orSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-02' and (lstg_site_id = 0 or lstg_format_name = 'FP-non GTC') group by cal_dt\";\n expectedRanges.clear();\n expectedPartitionMap.clear();\n expectedRanges.add(segmentRange1);\n expectedPartitionMap.put(segment1Uuid, Lists.newArrayList(0L, 1L));\n assertPrunedSegmentsRange(project, orSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n }", "public QbWhere where();", "public void partitionCollectorExample(){\n Map<Boolean, Long> result= createPeople()\n .stream()\n .collect(Collectors.partitioningBy(e->e.getAge()>30, counting()));\n print.accept(result);\n }", "public interface ContextPartitionSelectorSegmented extends ContextPartitionSelector {\n /**\n * Returns the partition keys.\n *\n * @return key set\n */\n public List<Object[]> getPartitionKeys();\n}", "public void doPartition() {\n int sum = 0;\n for (int q = 0; q < w.queryCount; q++) {\n for (int a = 0; a < w.attributeCount; a++) {\n sum += w.usageMatrix[q][a];\n }\n }\n\n if (sum == w.queryCount * w.attributeCount) {\n partitioning = new int[w.attributeCount];\n return;\n }\n\n\t\t//ArrayUtils.printArray(usageMatrix, \"Usage Matrix\", \"Query\", null);\n\t\t\n\t\t// generate candidate partitions (all possible primary partitions)\n\t\tint[][] candidatePartitions = generateCandidates(w.usageMatrix);\n\t\t//ArrayUtils.printArray(candidatePartitions, \"Number of primary partitions:\"+candidatePartitions.length, \"Partition \", null);\n\t\t\n\t\t// generate the affinity matrix and METIS input file \n\t\tint[][] matrix = affinityMatrix(candidatePartitions, w.usageMatrix);\n\t\t//ArrayUtils.printArray(matrix, \"Partition Affinity Matrix Size: \"+matrix.length, null, null);\n\t\twriteGraphFile(graphFileName, matrix);\n\t\t\n\t\t// run METIS using the graph file\n\t\ttry {\n\t\t\tProcess p = Runtime.getRuntime().exec(metisLocation+\" \"+graphFileName+\" \"+K);\n\t\t\tp.waitFor();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\n\t\t// read primary partition groups created by METIS \n\t\tint[][][] primaryPartitionGroups = readPartitionFile(candidatePartitions); // TODO exception here for too few groups or attributes...\n\t\t//for(int[][] primaryPartitionGroup: primaryPartitionGroups)\n\t\t//\tArrayUtils.printArray(primaryPartitionGroup, \"Partition Group\", \"Partition\", null);\n\t\t\n\t\t\n\t\t//int i=0;\n\t\tList<int[][]> bestLayouts = new ArrayList<int[][]>();\n\t\tfor(int[][] primaryPartitionGroup: primaryPartitionGroups){\n\t\t\tminCost = Double.MAX_VALUE;\n\t\t\t\n\t\t\t// Candidate Merging\n\t\t\t//System.out.println(\"Primary Partition Group:\"+(i+1));\n\t\t\tList<BigInteger> mergedCandidatePartitions = mergeCandidates(primaryPartitionGroup);\n\t\t\t//System.out.println(\"Number of merged partitions:\"+mergedCandidatePartitions.size());\n\t\t\t\n\t\t\t// Layout Generation\n\t\t\tgenerateLayout(mergedCandidatePartitions, primaryPartitionGroup);\n\t\t\tbestLayouts.add(bestLayout);\t\t\t\n\t\t\t//ArrayUtils.printArray(bestLayout, \"Layout:\"+(++i), null, null);\n\t\t}\n\t\t\n\t\t// Combine sub-Layouts\n\t\tList<int[][]> mergedBestLayouts = mergeAcrossLayouts(bestLayouts, bestLayouts.size());\n\t\tpartitioning = PartitioningUtils.getPartitioning(mergedBestLayouts);\n\t}", "@Override\n\tpublic String getWherePart() {\n\t\t\n\t\treturn super.getWherePart();\n\t}", "@Override\n protected ExactRelation rewriteWithPartition() {\n ExactRelation newSource = source.rewriteWithPartition();\n List<SelectElem> newElems = new ArrayList<SelectElem>();\n \n // Check if the newElems include star expressions. If so, we don't have to explicitly include\n // prob column and partition column.\n// boolean includeStar = false;\n \n for (SelectElem e : elems) {\n if (e.getExpr() instanceof StarExpr) {\n// includeStar = true;\n TableNameExpr tabExpr = ((StarExpr) e.getExpr()).getTab();\n List<ColNameExpr> col_names = source.getAssociatedColumnNames(tabExpr);\n for (ColNameExpr ce : col_names) {\n newElems.add(new SelectElem(vc, ce));\n }\n } else {\n newElems.add(e);\n }\n }\n \n // prob column (for point estimate and also for subsampling)\n newElems.add(new SelectElem(vc, source.tupleProbabilityColumn(), samplingProbabilityColumnName()));\n\n // partition column (for subsampling)\n newElems.add(new SelectElem(vc, newSource.partitionColumn(), partitionColumnName()));\n \n// // we manually insert the probability and partition (for subsampling) columns if the star expression\n// // is not placed on the table from which partition\n// if (includeStar == false) {\n// }\n\n ExactRelation r = new ProjectedRelation(vc, newSource, newElems);\n r.setAlias(getAlias());\n return r;\n\n // return rewriteWithPartition(false);\n }", "interface Partitioner {\n int partition(int[] array, int left, int right, int pivot);\n }", "@Override\n\tpublic void prepareResult(Partition partition) {\n\t}", "public final AstValidator.partition_clause_return partition_clause() throws RecognitionException {\n AstValidator.partition_clause_return retval = new AstValidator.partition_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree PARTITION318=null;\n AstValidator.func_name_return func_name319 =null;\n\n\n CommonTree PARTITION318_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:501:18: ( ^( PARTITION func_name ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:501:20: ^( PARTITION func_name )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n PARTITION318=(CommonTree)match(input,PARTITION,FOLLOW_PARTITION_in_partition_clause2683); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n PARTITION318_tree = (CommonTree)adaptor.dupNode(PARTITION318);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(PARTITION318_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_func_name_in_partition_clause2685);\n func_name319=func_name();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, func_name319.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public SolrQueryResult query(Map<String, String> params) {\n SolrQuery query = new SolrQuery();\n\n /* enable facetting */\n query.setFacet(true);\n\n /* list of all filters; key: name to display, value: entity parameter */\n List<SolrQueryParameter> filter = new ArrayList<SolrQueryParameter>();\n\n /* list of partition filter */\n List<SolrQueryParameter> partitionFilter = new ArrayList<SolrQueryParameter>();\n\n /*\n * list of filter which have been set by the user (key = filtername, value =\n * list of selections)\n */\n Map<String, List<String>> activeFilterValues = new HashMap<String, List<String>>();\n\n /*\n * determine on which type is searched for (either 'Table' or 'Partition')\n */\n String typeFilterValue = params.get(TYPE);\n filter.add(new SolrQueryParameter(FILTER_TYPE, TYPE, FilterType.EXCLUSIVE, FacetSort.COUNT));\n if (typeFilterValue != null && typeFilterValue.equalsIgnoreCase(TYPE_PARTITION)) {\n typeFilterValue = TYPE_PARTITION;\n for (String parameter : metascopeParameterService.findDistinctParameters()) {\n partitionFilter.add(new SolrQueryParameter(\"Parameter: \" + parameter, parameter + \"_s\", FilterType.AND,\n FacetSort.INDEX));\n }\n for (SolrQueryParameter pFilter : partitionFilter) {\n query.addFacetField(pFilter.getName());\n query.add(\"f.\" + pFilter.getName() + \".facet.sort\", \"index\");\n String filterValue = params.get(pFilter.getName());\n if (filterValue != null && !filterValue.isEmpty()) {\n query.addFilterQuery(pFilter.getName() + \":\" + \"(\" + filterValue.replace(\",\", \" AND \") + \")\");\n }\n\n }\n } else {\n typeFilterValue = TYPE_TABLE;\n }\n query.addFilterQuery(\"{!tag=\" + TYPE + \"}\" + TYPE + \":\" + typeFilterValue);\n query.addFacetField(\"{!ex=\" + TYPE + \"}\" + TYPE);\n\n /* set solr search query parameter 'q' */\n String searchQueryValue = params.get(URLUtil.SEARCH_QUERY_PARAM);\n if (searchQueryValue == null || searchQueryValue.isEmpty()) {\n searchQueryValue = \"*\";\n query.setQuery(searchQueryValue);\n } else {\n String[] queryTerms = searchQueryValue.trim().split(\" \");\n String queryTerm = \"\";\n for (String term : queryTerms) {\n if (term.isEmpty()) {\n continue;\n }\n\n if (!queryTerm.isEmpty()) {\n queryTerm += \" AND \";\n }\n queryTerm += \"*\" + term + \"*\";\n }\n query.setQuery(queryTerm);\n query.setHighlight(true);\n query.setHighlightSimplePre(\"<b>\");\n query.setHighlightSimplePost(\"</b>\");\n query.setHighlightSnippets(100);\n query.set(\"hl.fl\", \"*\");\n }\n\n /* set the remaining filters */\n for (SolrQueryParameter queryFilter : facetFields) {\n filter.add(queryFilter);\n String value = params.get(queryFilter.getName());\n\n String filterQuery = \"\";\n String facetField = \"\";\n if (queryFilter.isExcludeFromFacet()) {\n if (value != null) {\n String[] multipleFilter = value.split(\",\");\n value = \"(\";\n for (int i = 0; i < multipleFilter.length; i++) {\n String filterValue = cleanseValue(multipleFilter[i]).replace(\" \", \"*\");\n value += \"(\" + filterValue + \")\";\n if (i < multipleFilter.length - 1) {\n value += \" \" + getOperator(queryFilter.getFilterType()) + \" \";\n }\n }\n value += \")\";\n }\n filterQuery = \"{!tag=\" + queryFilter.getName() + \"}\" + queryFilter.getName() + \":\" + value;\n facetField = \"{!ex=\" + queryFilter.getName() + \"}\" + queryFilter.getName();\n } else {\n if (value != null) {\n String[] multipleFilter = value.split(\",\");\n value = \"(\";\n for (int i = 0; i < multipleFilter.length; i++) {\n String filterValue = cleanseValue(multipleFilter[i]).replace(\" \", \"*\");\n value += \"(\" + filterValue + \")\";\n if (i < multipleFilter.length - 1) {\n value += \" \" + getOperator(queryFilter.getFilterType()) + \" \";\n }\n }\n value += \")\";\n }\n filterQuery = queryFilter.getName() + \":\" + value;\n facetField = queryFilter.getName();\n }\n\n if (value != null && !value.isEmpty()) {\n query.addFilterQuery(filterQuery);\n }\n query.addFacetField(facetField);\n\n if (queryFilter.getFacetSort().equals(FacetSort.INDEX)) {\n query.add(\"f.\" + queryFilter.getName() + \".facet.sort\", \"index\");\n }\n query.add(\"f.\" + queryFilter.getName() + \".facet.limit\", \"-1\");\n }\n\n /* set facet queries */\n Map<String, String> facetQueryMap = new HashMap<String, String>();\n long now = System.currentTimeMillis() / 1000;\n for (SolrFacetQuery solrFacetQuery : facetQueries) {\n for (SolrHourRange range : solrFacetQuery.getRanges()) {\n long from = range.getFrom() == Long.MAX_VALUE ? 0 : now - (range.getFrom() * 3600);\n String facetQueryString = solrFacetQuery.getName() + \":[\" + from + \" TO \" + now + \"]\";\n query.addFacetQuery(\"{!ex=\" + solrFacetQuery.getName() + \"}\" + facetQueryString);\n facetQueryMap.put(solrFacetQuery.getName() + range.getName(), facetQueryString);\n }\n String value = params.get(solrFacetQuery.getName());\n if (value != null) {\n String fq = \"{!tag=\" + solrFacetQuery.getName() + \"}\" + facetQueryMap.get(solrFacetQuery.getName() + value);\n query.addFilterQuery(fq);\n }\n }\n\n /* always sort the entities (for a deterministic view) */\n query.setSort(ID, ORDER.asc);\n\n /* set pagination information */\n int page = getPageParameter(params);\n int elements = getElementsParameter(params);\n query.setRows(elements);\n query.setStart((page - 1) * elements);\n\n /* execute the query */\n QueryResponse queryResponse = null;\n try {\n queryResponse = solrClient.query(query);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n SolrDocumentList list = queryResponse.getResults();\n\n /* get table / view entities from local repository */\n List<SolrQueryResultEntity> resultEntities = new LinkedList<SolrQueryResultEntity>();\n String resultType = \"\";\n for (SolrDocument solrDocument : list) {\n String id = (String) solrDocument.get(ID);\n\n if (typeFilterValue.equalsIgnoreCase(TYPE_PARTITION)) {\n if (!searchQueryValue.equals(\"*\")) {\n resultEntities.add(new SolrQueryResultEntity(metascopeViewService.findByViewId(id), queryResponse\n .getHighlighting().get(id)));\n } else {\n resultEntities.add(new SolrQueryResultEntity(metascopeViewService.findByViewId(id)));\n }\n resultType = TYPE_PARTITION;\n } else if (typeFilterValue.equalsIgnoreCase(TYPE_TABLE)) {\n if (!searchQueryValue.equals(\"*\")) {\n resultEntities.add(new SolrQueryResultEntity(metascopeTableService.findByFqdn(id), queryResponse\n .getHighlighting().get(id)));\n } else {\n resultEntities.add(new SolrQueryResultEntity(metascopeTableService.findByFqdn(id)));\n }\n }\n }\n if (resultType.isEmpty()) {\n resultType = TYPE_TABLE;\n }\n\n filter.addAll(partitionFilter);\n\n /* get the facet values and counts */\n Map<String, List<SolrFacet>> facetValues = new HashMap<String, List<SolrFacet>>();\n for (SolrQueryParameter f : filter) {\n if (!f.getName().equals(URLUtil.SEARCH_QUERY_PARAM)) {\n List<SolrFacet> values = new ArrayList<SolrFacet>();\n FacetField facet = queryResponse.getFacetField(f.getName());\n for (Count count : facet.getValues()) {\n values.add(new SolrFacet(count.getName(), count.getCount()));\n }\n facetValues.put(f.getName(), values);\n }\n }\n\n /* remove the type filter */\n filter.remove(0);\n\n for (SolrFacetQuery solrFacetQuery : facetQueries) {\n filter\n .add(new SolrQueryParameter(solrFacetQuery.getDisplayName(), solrFacetQuery.getName(), FilterType.EXCLUSIVE));\n List<SolrFacet> values = new ArrayList<SolrFacet>();\n for (SolrHourRange range : solrFacetQuery.getRanges()) {\n long facetQueryCount = getFacetQueryCount(queryResponse, \"{!ex=\" + solrFacetQuery.getName() + \"}\"\n + facetQueryMap.get(solrFacetQuery.getName() + range.getName()));\n values.add(new SolrFacet(range.getName(), facetQueryCount));\n }\n facetValues.put(solrFacetQuery.getName(), values);\n }\n\n /* get the active filter values which have been selected by the user */\n addToActiveFilterValues(activeFilterValues, params, filter);\n\n /* is a search query */\n boolean isSearchQuery = (searchQueryValue != null && !searchQueryValue.isEmpty() && !searchQueryValue.equals(\"*\"))\n || hasActiveFilters(activeFilterValues);\n\n\n /* build and return the result */\n SolrQueryResult result = new SolrQueryResult().withResultEntities(resultEntities).withResultType(resultType)\n .withFilters(filter).withFacetValues(facetValues).withActiveFilterValues(activeFilterValues)\n .withSearchQuery(searchQueryValue).withPage(page).withElements(elements)\n .withTotalPages((int) Math.ceil(((double) list.getNumFound()) / elements)).withTotalResults(list.getNumFound())\n .withIsSearchRequest(isSearchQuery);\n return result;\n }", "public Builder withPartition(int partition) {\n this.partition = partition;\n return this;\n }", "public TimePartitionFilter getTimePartitionFilter() {\n Set<Integer> slotSet =\n new HashSet<>(\n ((SlotPartitionTable) metaGroupMember.getPartitionTable()).getNodeSlots(getHeader()));\n return new SlotTimePartitionFilter(slotSet);\n }", "public VirtualDataSet[] partitionByNominallAttribute(int attributeIndex) {\n\t\t// WRITE YOUR CODE HERE!\n\t\tString [] category = source.getUniqueAttributeValues(attributeIndex); \t\t\t\t\t\t//find unique element to split \n\t\tVirtualDataSet [] partitions = new VirtualDataSet[category.length ]; \t\t\t\t\t\t// determine number of split path \n\t\tAttribute [] subset = new Attribute[source.numAttributes-1]; \n\n\t\tfor(int i =0; i<attributeIndex; i++){\n subset[i] = source.getAttribute(i); \t\t\t\t\t\t\t\t\t\t\t\t\t// create a subset to eliminate the split attribute\n } \n for(int i = attributeIndex+1; i<source.numAttributes; i++){\n subset[i-1] = source.getAttribute(i);\n }\n\n\t\tfor(int i = 0; i < partitions.length;i++){ \n\t\t\tLinkedList<Integer> rows = new LinkedList<Integer> (); \t\t\t\t\t\t\t\t\t// using linkedlist to do collection of split rows \n\t\t\tint count = 0; \n\t\t\tfor(int j = 0; j < source.numRows; j++){ \n\t\t\t\tif(category[i].equals(source.getValueAt(j, attributeIndex))){\n\t\t\t\t\trows.add(j); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add rows that correspond with the current attribute of spliting \n\t\t\t\t\tcount++; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// determine the size of partition rows array \n\t\t\t\t}\n\t\t\t}\n\t\t\tint[] partitionRows = new int[count]; \n\t\t\tfor(int k = 0; k < count; k++){\n\t\t\t\tpartitionRows[k] = rows.poll(); \t\t\t\t\t\t\t\t\t\t\t\t\t// transform from linkedlist to array \n\t\t\t}\n\n\t\t\tpartitions[i] = new VirtualDataSet(source,partitionRows,subset); \t\t\t\t\t\t// send partition to VirtualDataSet constructor \n\n\t\t}\n\t\treturn partitions;\n\n\t\t// for each partition we need 1. orginal rows index[] 2. unique attribute \n\t\t// Where to split \n\t\t// for each path, i have to know the original position of row (1 partition at time)\n\t\t// I need to know rest attribute value and record the unique (this need to be recaculate)\n\t}", "KTable<K, V> filter(Predicate<K, V> predicate);", "public AbstractRowIndexEntry append(UnfilteredRowIterator partition)\n {\n DecoratedKey key = partition.partitionKey();\n maybeReopenEarly(key);\n return writer.append(partition);\n }", "public interface Partition\n extends Set\n{\n Set find (int item);\n void join (Set set1, Set set2);\n}", "@Test\n public void testHeterogeneousSegmentFilterConditionLimit() throws SqlParseException {\n\n val project = \"heterogeneous_segment\";\n // val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\"\n // val seg1Id = \"8892fa3f-f607-4eec-8159-7c5ae2f16942\"\n // val seg2Id = \"d75a822c-788a-4592-a500-cf20186dded1\"\n // val seg3Id = \"54eaf96d-6146-45d2-b94e-d5d187f89919\"\n // val seg4Id = \"411f40b9-a80a-4453-90a9-409aac6f7632\"\n // val seg5Id = \"a8318597-cb75-416f-8eb8-96ea285dd2b4\"\n // \n val sql = \"with T1 as (select cal_dt, trans_id \\n\" + \"from test_kylin_fact inner join test_account \\n\"\n + \"on test_kylin_fact.seller_id = test_account.account_id \\n\"\n + \"where cal_dt between date'2012-01-01' and date'2012-01-03'\\n\" + \"group by cal_dt, trans_id)\\n\";\n\n {\n val sqlWithTooManyOrs = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 12) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 13) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 14) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 15) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 16) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 17) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 18) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 19) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 20)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithTooManyOrs);\n Assert.assertEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n {\n val sqlWithFilter = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithFilter);\n Assert.assertNotEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n }", "public StatementBuilder setWhere(SqlPart where) {\n this.where = where;\n return this;\n }", "@Override\r\n\tpublic int getPartition(CompositeKey key, ByteWritable value,int numPartitions) {\n\t\treturn (int)key.getProductID()% numPartitions;\r\n\t}", "private int partition (Column A, int [] ix, int p, int r, int begin) {\n\t\tint i = p - 1;\n\t\tint j = r + 1;\n\t\tboolean isMissing = A.isValueMissing(ix[p]);\n\t\twhile (true) {\n\t\t\tif (isMissing) {\n\t\t\t\tj--;\n\t\t\t\tdo {\n\t\t\t\t\ti++;\n\t\t\t\t} while (!A.isValueMissing(ix[i]));\n\t\t\t} else {\n\n\t\t\t\t// find the first entry [j] <= entry [p].\n\t\t\t\tdo {\n\t\t\t\t\tj--;\n\t\t\t\t} while (A.isValueMissing(ix[j]) || A.compareRows (ix[j], ix[p]) > 0);\n\t\n\t\t\t\t// now find the first entry [i] >= entry [p].\n\t\t\t\tdo {\n\t\t\t\t\ti++;\n\t\t\t\t} while (!A.isValueMissing(ix[i]) && A.compareRows (ix[i], ix[p]) < 0);\n\t\t\t}\n\n\t\t\tif (i < j) {\n\t\t\t\tthis.swapRows(i+begin, j+begin);\n\t\t\t\tint tmp = ix[i];\n\t\t\t\tix[i] = ix[j];\n\t\t\t\tix[j] = tmp;\n\t\t\t} else\n\t\t\t\treturn j;\n\t\t}\n\t}", "@Override\n\t public int getPartition(Tuple key, IntWritable value, int numPartitions) {\n\t\t return key.hashCodePartial(2) % numPartitions;\n\t }", "public abstract PartitionType getType();", "@Override\n public void createPartition(Partition partition) {\n \n }", "public partition(String partition, int max_size){\n //max_size is the maximum number of Objects, NOT max bytes\n String[] keyTypes = partition.split(\"\\\\s+\"); //separted by any white space\n \n List<String> listStringKeys = new ArrayList<String>();\n List<String> listLongKeys = new ArrayList<String>();\n List<String> listDoubleKeys = new ArrayList<String>();\n List<String> listBoolKeys = new ArrayList<String>();\n \n for(int i = 0; i < keyTypes.length; i++){\n String[] parts = keyTypes[i].split(separator);\n if(parts[1].equals(\"STRING\"))\n listStringKeys.add(keyTypes[i]);\n else if(parts[1].equals(\"LONG\"))\n listLongKeys.add(keyTypes[i]);\n else if(parts[1].equals(\"DOUBLE\"))\n listDoubleKeys.add(keyTypes[i]);\n else if(parts[1].equals(\"BOOL\"))\n listBoolKeys.add(keyTypes[i]);\n }\n \n keyForString = listStringKeys.toArray(new String[listStringKeys.size()]);\n keyForLong = listLongKeys.toArray(new String[listLongKeys.size()]);\n keyForDouble = listDoubleKeys.toArray(new String[listDoubleKeys.size()]);\n keyForBool = listBoolKeys.toArray(new String[listBoolKeys.size()]);\n \n longValues = new long[max_size];\n doubleValues = new double[max_size];\n booleanValues = new byte[max_size];\n stringValues = new long[max_size];\n \n objectIds= new int[max_size];\n numObject = 0;\n UndefByte[0] = -1;\n }", "handy.storage.api.ColumnCondition<DeleteOperation<T>> where(String column);", "private List<Partition> partitionForSending(WorkerInfo worker) {\n\t\t\tList<Partition> partitions = new ArrayList<Partition>();\n\t\t\tfor (Entry<String, String> r : distribution.entrySet()) {\n\t\t\t\tif (r.getValue().equals(worker.getName())) {\n\t\t\t\t\tfor (Partition part : worker.getPartitions()) {\n\t\t\t\t\t\tif (part.getPartitionName().equals(r.getKey())) {\n\t\t\t\t\t\t\tpartitions.add(part);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn partitions;\n\t\t}", "private void fetchPartitioningConfig() {\n SegmentPartitionConfig segmentPartitionConfig = _tableConfig.getIndexingConfig().getSegmentPartitionConfig();\n if (segmentPartitionConfig != null) {\n Map<String, ColumnPartitionConfig> columnPartitionMap = segmentPartitionConfig.getColumnPartitionMap();\n Preconditions.checkArgument(columnPartitionMap.size() <= 1, \"There should be at most 1 partition setting in the table.\");\n if (columnPartitionMap.size() == 1) {\n _partitionColumn = columnPartitionMap.keySet().iterator().next();\n _numberOfPartitions = segmentPartitionConfig.getNumPartitions(_partitionColumn);\n _partitionFunction = segmentPartitionConfig.getFunctionName(_partitionColumn);\n }\n } else {\n _logger.info(\"Segment partition config is null for table: {}\", _tableConfig.getTableName());\n }\n }", "public String partitionKey() {\n return this.partitionKey;\n }", "@Test\n public void testPartitionColumnSelection() {\n Path filePath = new Path(\"hdfs:///w/x/y/z.csv\");\n ImplicitColumnManager implictColManager = new ImplicitColumnManager(\n fixture.getOptionManager(),\n standardOptions(filePath));\n\n String dir0 = ScanTestUtils.partitionColName(0);\n // Sic: case insensitivity, but name in project list\n // is preferred over \"natural\" name.\n String dir1 = \"DIR1\";\n String dir2 = ScanTestUtils.partitionColName(2);\n ScanLevelProjection scanProj = ScanLevelProjection.build(\n RowSetTestUtils.projectList(dir2, dir1, dir0, \"a\"),\n Lists.newArrayList(implictColManager.projectionParser()));\n\n assertEquals(4, scanProj.columns().size());\n assertEquals(dir2, scanProj.columns().get(0).name());\n assertEquals(dir1, scanProj.columns().get(1).name());\n assertEquals(dir0, scanProj.columns().get(2).name());\n assertEquals(\"a\", scanProj.columns().get(3).name());\n\n // Verify column type\n\n assertTrue(scanProj.columns().get(0) instanceof PartitionColumn);\n }", "private SelectOnConditionStep<Record> commonTestItemDslSelect() {\n\t\treturn dsl.select().from(TEST_ITEM).join(TEST_ITEM_RESULTS).on(TEST_ITEM.ITEM_ID.eq(TEST_ITEM_RESULTS.RESULT_ID));\n\t}", "public void setFirstPartition(Partition partition)\n\t{\n\t\tfirstPartition = partition;\n\t}", "public QuickSort(Partitionable<T> part)\n {\n partAlgo = part;\n MIN_SIZE = 3;\n }", "public List<ParameterValueObject> getClustering(Filter filter);", "private int partition (List<Event> filteredEvents, int low, int high) {\n\n Event pivot = filteredEvents.get(high);\n int i = low;\n int j = low;\n\n while (i <= high) {\n\n String name1 = filteredEvents.get(j).getName();\n double distance1 = map.get(name1);\n String name2 = filteredEvents.get(j+1).getName();\n double distance2 = map.get(name2);\n\n if (distance1 == distance2) {\n // If name2 comes alphabetically before name1\n if (name2.compareToIgnoreCase(name1) > 0) {\n i++;\n }else {\n\n Event temp = filteredEvents.get(i);\n filteredEvents.set(i, filteredEvents.get(j));\n filteredEvents.set(j, temp);\n i++;\n j++;\n }\n\n } else {\n i++;\n continue;\n }\n\n }\n\n return j;\n }", "public org.apache.spark.sql.SchemaRDD logicalPlanToSparkQuery (org.apache.spark.sql.catalyst.plans.logical.LogicalPlan plan) { throw new RuntimeException(); }", "private void getPartition(PointList customers){\n\t\t\n\t\tsplitByQuadrant(customers);\n\t\tsplitByLine(customers);\n\t\t\n\t}", "@Override\r\n\tpublic int partitionFor(String elem, int numPartitions) {\n\t\t\r\n\t\tString arr[]=elem.split(\",\");\r\n\t\t\r\n\t if(arr[3].equals(\"Los Angeles\"))\r\n\t {\r\n\t \treturn 0;\r\n\t }\r\n\t else if(arr[3].equals(\"Phoenix\"))\r\n\t {\r\n\t \treturn 1;\r\n\t }\r\n\t else \r\n\t {\r\n\t \treturn 2;\r\n\t }\r\n\t \r\n\t\t\r\n\t}", "int getPartitionForDataSetId(String topic, String datasetId);", "@Test\n public void testRevisedWildcardAndPartition() {\n Path filePath = new Path(\"hdfs:///w/x/y/z.csv\");\n ImplicitColumnManager implictColManager = new ImplicitColumnManager(\n fixture.getOptionManager(),\n standardOptions(filePath));\n\n ScanLevelProjection scanProj = ScanLevelProjection.build(\n RowSetTestUtils.projectList(SchemaPath.DYNAMIC_STAR,\n ScanTestUtils.partitionColName(8)),\n Lists.newArrayList(implictColManager.projectionParser()));\n\n List<ColumnProjection> cols = scanProj.columns();\n assertEquals(2, cols.size());\n assertTrue(scanProj.columns().get(0) instanceof UnresolvedWildcardColumn);\n assertTrue(scanProj.columns().get(1) instanceof PartitionColumn);\n }", "public Dataset FilterDataset(Dataset dataset)\n {\n Dataset result = new Dataset();\n for(HashMap<String, Object> row : dataset.dataset){\n if(this.eventExpression.MatchExpression(row))\n result.addRow(row);\n }\n return result;\n }", "public HashMap<String,LinkedList<String>> splitWhere() {\n\n LinkedList<String> where = new LinkedList<>(whereClause);\n LinkedList<String> referencingRelations;\n LinkedList<MyRelation> relations;\n String temp;\n optimizedWhere = new HashMap<>();\n\n String whereString = new String(myHelper.getWhereFields(where));\n String[] whereParts = whereString.split(\"(?i)and\");\n\n //Iterates through all the parts divided by \"AND\"\n for (int i=0; i<whereParts.length; i++) {\n\n referencingRelations = new LinkedList<>();\n String symbol = myHelper.getSymbol(whereParts[i]);\n\n if(symbol != null) {\n String[] equationParts = whereParts[i].split(symbol);\n String condition = null;\n\n //For every side of the \"=\" sing.\n for(int j=0; j<equationParts.length; j++) {\n //Removes white spaces if any.\n equationParts[j] = equationParts[j].replaceAll(\"\\\\s\",\"\");\n\n //if there is a referencing table stores the table and and the field used is temporarily stored.\n if(equationParts[j].contains(\".\")) {\n referencingRelations.addLast(equationParts[j].substring(0, equationParts[j].indexOf(\".\")));\n temp = equationParts[j].substring(equationParts[j].indexOf(\".\")+1);\n\n }else {\n //if no \".\" p simeni en ksero se pio relation kamni reference enna to psaxo p to schema !!\n relations = schema.getRelations();\n String name = myHelper.getRelationNameOnField(equationParts[j],relations,newTablesFromCanonical);\n\n //if name is a field name add the table name to the referencing\n if(name != null) {\n referencingRelations.addLast(name);\n temp = equationParts[j];\n }\n else\n temp = equationParts[j].substring(equationParts[j].indexOf(\".\")+1);\n }\n if(j!= equationParts.length-1)\n condition = temp + symbol;\n else condition = condition + temp;\n }\n optimizedWhere.put(condition,referencingRelations);\n }\n }\n return optimizedWhere;\n }", "public void setWhere(String where) {\r\n\t\tthis._where = where;\r\n\t}", "@Override\n\t\tpublic int getPartition(MyKey arg0, Text arg1, int arg2) {\n\t\t\treturn arg0.getK().hashCode()%arg2;\n\t\t}", "public StatementBuilder where(SqlPart where) {\n if (this.where == null) {\n setWhere(where);\n } else {\n setWhere(Where.and(this.where, where));\n }\n return this;\n }", "int getPartitionId();", "DataFrame<R,C> select(Predicate<DataFrameRow<R,C>> rowPredicate, Predicate<DataFrameColumn<R,C>> colPredicate);", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tArrayList<ArrayList<String>> resultSet = partition(\"aba\");\n\t\tSystem.out.println(resultSet);\n\t}", "@Test\n public void should_iterate_with_partition_keys_and_partition_keys_IN() throws Exception {\n //Given\n long partitionKey = RandomUtils.nextLong(0,Long.MAX_VALUE);\n\n insertCompositeClusteredValues(partitionKey,\"bucket1\",1,\"name1\",1);\n insertCompositeClusteredValues(partitionKey,\"bucket2\",1,\"name2\",1);\n insertCompositeClusteredValues(partitionKey,\"bucket3\",1,\"name3\",1);\n\n //When\n final Iterator<CompositeClusteredEntity> iterator = manager.sliceQuery(CompositeClusteredEntity.class)\n .forIteration()\n .withPartitionComponents(partitionKey)\n .andPartitionComponentsIN(\"bucket1\", \"bucket3\")\n .iterator();\n\n //Then\n assertThat(iterator.hasNext()).isTrue();\n CompositeClusteredEntity next = iterator.next();\n assertThat(next.getId().getId()).isEqualTo(partitionKey);\n assertThat(next.getId().getBucket()).isEqualTo(\"bucket1\");\n assertThat(next.getId().getName()).isEqualTo(\"name11\");\n assertThat(next.getValue()).isEqualTo(\"value11\");\n\n assertThat(iterator.hasNext()).isTrue();\n next = iterator.next();\n assertThat(next.getId().getId()).isEqualTo(partitionKey);\n assertThat(next.getId().getBucket()).isEqualTo(\"bucket3\");\n assertThat(next.getId().getName()).isEqualTo(\"name31\");\n assertThat(next.getValue()).isEqualTo(\"value11\");\n }", "@Override\n\t\tpublic int getPartition(IntPair key, Text value, int numPartitions) {\n\t\t\tSystem.out.println(\"get partition run\");\n\t\t\treturn ((key.id.hashCode() & Integer.MAX_VALUE) % numPartitions);\n\t\t}", "@Test\n public void testHeterogeneousSegment() throws SqlParseException {\n\n val project = \"heterogeneous_segment\";\n val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\";\n val expectedRanges = Lists.<Pair<String, String>> newArrayList();\n val segmentRange1 = Pair.newPair(\"2012-01-01\", \"2012-01-02\");\n val segmentRange2 = Pair.newPair(\"2012-01-02\", \"2012-01-03\");\n val segmentRange3 = Pair.newPair(\"2012-01-03\", \"2012-01-04\");\n val segmentRange4 = Pair.newPair(\"2012-01-04\", \"2012-01-05\");\n val segmentRange5 = Pair.newPair(\"2012-01-05\", \"2012-01-06\");\n val layout_20000000001 = 20000000001L;\n val layout_20001 = 20001L;\n val layout_10001 = 10001L;\n\n val sql = \"select cal_dt, sum(price) from test_kylin_fact inner join test_account on test_kylin_fact.seller_id = test_account.account_id \";\n\n val no_filter = sql + \"group by cal_dt\";\n assertNoRealizationFound(project, no_filter);\n\n val sql1_date = sql\n + \"where cal_dt = DATE '2012-01-01' or (cal_dt >= DATE '2012-01-02' and cal_dt < DATE '2012-01-04') group by cal_dt\";\n expectedRanges.add(segmentRange1);\n expectedRanges.add(segmentRange2);\n expectedRanges.add(segmentRange3);\n assertPrunedSegmentsRange(project, sql1_date, dfId, expectedRanges, layout_20001, null);\n\n val sql1_date_string = sql\n + \"where cal_dt = '2012-01-01' or (cal_dt >= '2012-01-02' and cal_dt < '2012-01-04') group by cal_dt\";\n assertPrunedSegmentsRange(project, sql1_date_string, dfId, expectedRanges, layout_20001, null);\n\n val sql2_date = sql + \"where cal_dt >= DATE '2012-01-03' and cal_dt < DATE '2012-01-10' group by cal_dt\";\n expectedRanges.clear();\n expectedRanges.add(segmentRange3);\n expectedRanges.add(segmentRange4);\n expectedRanges.add(segmentRange5);\n assertPrunedSegmentsRange(project, sql2_date, dfId, expectedRanges, layout_10001, null);\n\n val sql2_date_string = sql + \"where cal_dt >= '2012-01-03' and cal_dt < '2012-01-10' group by cal_dt\";\n assertPrunedSegmentsRange(project, sql2_date_string, dfId, expectedRanges, layout_10001, null);\n\n // pruned segments do not have capable layout to answer\n val sql3_no_layout = \"select trans_id from test_kylin_fact \"\n + \"inner join test_account on test_kylin_fact.seller_id = test_account.account_id \"\n + \"where cal_dt > '2012-01-03' and cal_dt < '2012-01-05'\";\n assertNoRealizationFound(project, sql3_no_layout);\n\n expectedRanges.clear();\n expectedRanges.add(segmentRange1);\n expectedRanges.add(segmentRange2);\n val sql4_table_index = \"select trans_id from test_kylin_fact \"\n + \"inner join test_account on test_kylin_fact.seller_id = test_account.account_id \"\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-03'\";\n assertPrunedSegmentsRange(project, sql4_table_index, dfId, expectedRanges, layout_20000000001, null);\n\n // pruned segments do not have capable layout to answer\n val sql5 = \"select trans_id, sum(price) \"\n + \"from test_kylin_fact inner join test_account on test_kylin_fact.seller_id = test_account.account_id \"\n + \"where cal_dt > '2012-01-03' and cal_dt < '2012-01-06' group by trans_id\";\n\n assertNoRealizationFound(project, sql5);\n }", "public interface Partitioner<ELEMENT, CLASS> {\n\n\t/**\n\t * @param obj\n\t * the Object to be assigned to a bucket\n\t * @return A key representing the bucket containing obj\n\t */\n\tpublic CLASS assignToBucket(ELEMENT obj);\n\n}", "@Override\n public PaymentP2007_03 where(Field<Boolean> condition) {\n return where(DSL.condition(condition));\n }", "public List<Object> queryByWhere(String col_name, String dto, List<List<Triple>> filter, List<String> keys) {\n\t\tList<Object> res = new ArrayList<Object>();\n\t\tDBCollection dbc = db.getCollection(col_name);\n\t\t// filter\n\t\tBasicDBObject all_ref = new BasicDBObject();\n\t\tDBObject _keys = new BasicDBObject();\n\t\t\n\t\tif(keys != null)\n\t\t\tfor(String key : keys) \n\t\t\t\t_keys.put(key, true);\n\t\t\n\t\tBasicDBList list = new BasicDBList();\n\t\tfor(List<Triple> and : filter) {\n\t\t\tBasicDBObject ref = new BasicDBObject();\n\t\t\tfor(Triple tri : and) {\n\t\t\t\tif(!ref.containsField(tri.key_name)) {\n\t\t\t\t\tif(tri.condition.equals(Condition.EQUAL)) \n\t\t\t\t\t\tref.put(tri.key_name, tri.value);\n\t\t\t\t\t\n\t\t\t\t\telse \n\t\t\t\t\t\tref.put(tri.key_name, new BasicDBObject(tri.condition, tri.value));\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif(tri.condition.equals(Condition.EQUAL)) {\n\t\t\t\t\t\t// TODO It is impossible\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tBasicDBObject bo = (BasicDBObject)ref.get(tri.key_name);\n\t\t\t\t\t\tbo.append(tri.condition, tri.value);\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} // end an \"and\" query\n\t\t\tlist.add(ref);\n\t\t}\n\t\t\n\t\tall_ref.put(\"$or\", list);\n\t\t\n\t\ttry {\n\t DBCursor cur = dbc.find(all_ref, _keys);\n\t \twhile (cur.hasNext()) {\n\t \t\tDBObject doc = cur.next();\n\t \t\ttry {\n\t \t\t\tres.add(Util.deserialize(doc, dto));\n\t \t\t} catch(InvocationTargetException ite) {\n\t \t\t\tite.printStackTrace();\n\t \t\t} \t\t\n\t \t\t//System.out.println(doc);\n\t }\n\n\t\t} catch(ClassNotFoundException cnfe) {\n \tcnfe.printStackTrace();\n } catch(InstantiationException ie) {\n \tie.printStackTrace();\n } catch(IllegalAccessException iae) {\n \tiae.printStackTrace();\n }\n\n \treturn res;\n\t}", "@Override\n\t\tpublic int getPartition(TextPair key, IntWritable value, int numPartitions) {\n\t\t\treturn (key.getFirst().hashCode() & Integer.MAX_VALUE) % numPartitions;\n\t\t\t//la \"& Integer.MAX_VALUE\" viene fatto per essere sicuro il valore ritornato sia positivo\n\t\t}", "@Test\n public void whereNormalColumn() throws Exception {\n String sql = \"desc verbose select k1, e1 from db1.tbl1 lateral view explode_split(k2, \\\",\\\") tmp as e1 \"\n + \"where k1=1; \";\n String explainString = UtFrameUtils.getSQLPlanOrErrorMsg(ctx, sql, true);\n Assert.assertTrue(explainString.contains(\"1:TABLE FUNCTION NODE\"));\n Assert.assertTrue(explainString.contains(\"table function: explode_split(`k2`, ',')\"));\n Assert.assertTrue(explainString.contains(\"tuple ids: 0 1\"));\n Assert.assertTrue(explainString.contains(\"TupleDescriptor{id=1, tbl=tmp, byteSize=32, materialized=true}\"));\n Assert.assertTrue(explainString.contains(\"SlotDescriptor{id=1, col=e1, type=VARCHAR(*)}\"));\n Assert.assertTrue(explainString.contains(\"0:OlapScanNode\"));\n Assert.assertTrue(explainString.contains(\"PREDICATES: `k1` = 1\"));\n }", "public IAverageClause having(String column);", "public int getPartitionNumber() {\n\treturn partitionNumber;\n }", "public static void main(String[] args) {\n System.out.println(partition(new int[]{1,2,3,4,5,6,7,8,9}, 2));\n // 1 1 1 | 1 1 1 | 1 1 1\n System.out.println(partition(new int[]{1,1,1,1,1,1,1,1,1}, 2));\n }", "public static int partition(int qArr[], int start, int end){\n int pivot; int endLeft; int mid;\n \n mid = (start + end) / 2;\n swap(qArr, start, mid);\n pivot=qArr[start];\n endLeft=start;\n for (int scan = start + 1; scan <= end; scan++){\n if(qArr[scan]<pivot){\n endLeft++;\n swap(qArr,endLeft,scan);\n }\n }\n swap(qArr,start,endLeft);\n return endLeft;\n }", "public void partition() \n\t{\n\t\tXPath xPath = getXPathHandler();\n\t\tNodeList parentNodes;\n\t\ttry {\n\t\t\tparentNodes = (NodeList)xPath.compile(this.getParentContainerXPath()).evaluate(this.document, XPathConstants.NODESET);\n\t\t\t\n\t\t\tlogger.info(\">>> \" + this.getPartitionType().name() + \" Partitioner: partition()\");\n\t\t\t\n\t\t\tfor (int i = 0; i < parentNodes.getLength(); i++) \n\t\t\t{ \t\n\t\t\t\tNode parentNode = (Node)parentNodes.item(i);\n\t\t\t\t\n\t\t\t\tif (parentNode instanceof Element)\n\t\t\t\t{\n\t\t\t\t\tString sParentClass = parentNode.getAttributes().getNamedItem(\"class\") != null ? parentNode.getAttributes().getNamedItem(this.getMatchingAttributeName()).getNodeValue() : \"\";\n\t\t\t\t\tlogger.info(\"\\tParent Node Name=\" + parentNode.getNodeName()+\":class=\"+ sParentClass);\n\t\t\t\t\t\n\t\t\t\t\tNodeList nodeList = parentNode.getChildNodes();\n\t\t\t\t\tNode xDivNode = null;\n\t\t\t\t\t\n\t\t\t\t\tNode xIntroDivNode = this.document.createElement(\"div\");\n\t\t\t\t\t((Element)xIntroDivNode).setAttribute(\"class\", this.getPartitionTypeAsString());\n\t\t\t\t\t((Element)xIntroDivNode).setAttribute(\"title\", this.getIntroPartitionTitle());\n\t\t\t\t\t\n\t\t\t\t\tboolean first = true;\n\t\t\t\t\tboolean keepFirst = this.getKeepFirstElements();\n\t\t\t\t\tboolean hasIntroNode = false;\n\t\t\t \n\t\t\t\t\tfor (int j = 0, pCount = 0; j < nodeList.getLength(); j++) \n\t\t\t\t\t{ \t\n\t\t\t \tNode xNode = nodeList.item(j);\n\t\t\t \tif (xNode instanceof Element)\n\t\t\t \t{\n\t\t\t \t\tif (first && keepFirst)\n\t\t\t \t\t{\n\t\t\t \t\t\tif (!hasIntroNode) {\n\t\t\t\t \t\t\t((Element)xIntroDivNode).setAttribute(\"id\", Integer.toString(++pCount));\n\t\t\t \t\t\t\tDomUtils.insertBefore(xIntroDivNode, xNode);\t\t \t\t\t\t\n\t\t\t\t \t\t\tj++;\n\t\t\t\t \t\t\thasIntroNode = true;\n\t\t\t \t\t\t}\n\t\t\t \t\t}\n\t\t\t \t\t\n\t\t\t \t\tString sClass = xNode.getAttributes().getNamedItem(\"class\") != null ? xNode.getAttributes().getNamedItem(this.getMatchingAttributeName()).getNodeValue() : \"\";\n\t\t\t\t \tboolean isTable = xNode.getNodeName().equalsIgnoreCase(\"table\") ? true : false;\n\t\t\t\t \tString sId = isTable && xNode.getAttributes().getNamedItem(\"id\") != null ? xNode.getAttributes().getNamedItem(\"id\").getNodeValue() : \"\";\n\t\t\t\t \t\n\t\t\t\t \tif (sClass != null)\n\t\t\t\t \t{\n\t\t\t\t \t\tlogger.info(\"\\tNode Name=\" + xNode.getNodeName()+\":class=\"+ sClass);\n\t\t\t\t \t\t\n\t\t\t\t \t\tboolean match = false;\n\t\t\t\t \t\tswitch ((TaskExprType)this.getAttributeMatchExpression())\n\t\t\t\t \t\t{\n\t\t\t\t \t\tcase NOT_SET:\n\t\t\t\t \t\tcase STARTS_WITH:\n\t\t\t\t \t\t\tmatch = sClass.startsWith(this.getMatchingAttributeValue());\n\t\t\t\t \t\t\tbreak;\n\t\t\t\t \t\tcase CONTAINS:\n\t\t\t\t \t\t\tmatch = sClass.contains(this.getMatchingAttributeValue());\n\t\t\t\t \t\t\tbreak;\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t\t// Process the title name match condition if it exists\n\t\t\t\t \t\tString title = null;\n\t\t\t\t \t\tif (match)\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\ttitle = DomUtils.extractTextChildren(xNode);\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tif (this.isTitleNameMatchCondition())\n\t\t\t\t \t\t\t{\n\t\t\t\t\t \t\t\tif (title != null && this.getTitleNameMatchType() == TaskMatchType.EXPR)\n\t\t\t\t\t \t\t\t{\n\t\t\t\t\t \t\t\t\tswitch ((TaskExprType)this.getTitleNameMatchExprType())\n\t\t\t\t\t \t\t\t\t{\n\t\t\t\t\t \t\t\t\t\tcase STARTS_WITH:\n\t\t\t\t\t \t\t\t\t\t\tmatch = title.startsWith(this.getTitleNameMatchExprValue());\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tcase CONTAINS:\n\t\t\t\t\t \t\t\t\t\t\tmatch = title.contains(this.getTitleNameMatchExprValue());\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tcase NOT_SET:\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tdefault:\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t}\n\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t \t\t\t} else if (this.getTitleNameMatchType() == TaskMatchType.REGEX)\n\t\t\t\t\t \t\t\t{\n\t\t\t\t\t\t \t\t\tPattern r = Pattern.compile(this.getTitleNameMatchRegexPattern());\t\t\t \t\t\t\n\t\t\t\t\t\t \t\t\tMatcher m = r.matcher(title);\t\t\t \t\t\t\n\t\t\t\t\t\t \t\t\tmatch = m.matches();\n\t\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t\tif (match)\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\tif (first)\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\tPartition partition = new Partition();\n\t\t\t\t \t\t\t\tpartition.setType(this.getPartitionType());\n\t\t\t\t \t\t\t\tpartition.setsId(sId);\n\t\t\t\t \t\t\t\tthis.setFirstPartition(partition);\n\t\t\t\t \t\t\t}\n\n\t\t\t\t \t\t\tfirst = false;\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tif (this.isTitleNameReplaceCondition())\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\tPattern r = Pattern.compile(this.getTitleNameReplaceRegexPattern());\t\t\t \t\t\t\n\t\t\t\t\t \t\t\tMatcher m = r.matcher(title);\t\n\t\t\t\t\t \t\t\ttitle = m.replaceAll(this.getTitleNameReplaceWithRegexPattern());\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\txDivNode = this.document.createElement(\"div\");\n\t\t\t\t \t\t\t((Element)xDivNode).setAttribute(\"class\", getPartitionTypeAsString());\n\t\t\t\t \t\t\t((Element)xDivNode).setAttribute(\"title\", title);\n\t\t\t\t \t\t\t((Element)xDivNode).setAttribute(\"id\", Integer.toString(++pCount));\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tDomUtils.insertBefore(xDivNode, xNode);\n\t\t\t\t \t\t\tDomUtils.removeElement((Element) xNode, false);\t \n\t\t\t\t \t\t}\n\t\t\t\t \t\telse\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\t// Skip over all nodes leading up to the first Heading1 node\n\t\t\t\t \t\t\tif (!first && xDivNode != null)\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\txDivNode.appendChild(xNode);\n\t\t\t\t \t\t\t\tj--;\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\telse if (first && keepFirst && xIntroDivNode != null)\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\txIntroDivNode.appendChild(xNode);\n\t\t\t\t \t\t\t\tj--;\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t \t} else if (isTable && sId != null)\n\t\t\t\t \t{\n\t\t\t\t \t\tlogger.info(\"\\t\\tNode Name=\" + xNode.getNodeName()+\":id=\"+ sId);\n\t\t\t \t\t\t// Skip over all nodes leading up to the first Heading1 node\n\t\t\t \t\t\tif (!first && xDivNode != null)\n\t\t\t \t\t\t{\n\t\t\t \t\t\t\txDivNode.appendChild(xNode);\n\t\t\t \t\t\t\tj--;\n\t\t\t \t\t\t}\n\t\t\t \t\t\telse if (first && keepFirst && xIntroDivNode != null)\n\t\t\t \t\t\t{\n\t\t\t \t\t\t\txIntroDivNode.appendChild(xNode);\n\t\t\t \t\t\t\tj--;\n\t\t\t \t\t\t}\n\t\t\t\t \t}\t \t\n\t\t\t \t}\n\t\t\t } // end for j\n\t\t\t\t} // end if parentNode\n\t\t\t} // end for i\n\t\t} catch (XPathExpressionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\t\n\t}", "public void setPartitionNumber(int part) {\n\tpartitionNumber = part;\n }", "String limitSubquery();", "@Override\n\tprotected String getWhereConditionBaseOnIdRecord()\n\t{\n\t\tStringBuilder whereCondition = new StringBuilder(\"HBLNM='\");\n\t\twhereCondition.append(getMyDataModel().getLanguageCode());\n\t\twhereCondition.append(\"' and HBCFR='\");\n\t\twhereCondition.append(getMyDataModel().getFilePrefix());\n\t\twhereCondition.append(\"' and HBCFL='\");\n\t\twhereCondition.append(getMyDataModel().getFileKey());\n\t\twhereCondition.append(\"' \");\n\t\treturn whereCondition.toString();\n\t}", "String getPartitionKey(int index);", "@Test\n public void testDAM31201001() {\n // In this test case the where clause is specified in a common sql shared in multiple queries.\n testDAM30505001();\n }", "public String partitionKey() {\n return partitionKey;\n }", "@SuppressWarnings(\"FieldAccessNotGuarded\")\n @Override\n public int partitions()\n {\n return partitions.length;\n }", "default <K> List<Condition> composeFilterConditionsForPrimaryKeyOfEntity(T entity) {\n\t\tList<Condition> conditions = new ArrayList<>();\n\t\tfor (Attribute<T, ?> attr : getPrimaryAttributes()) {\n\t\t\tconditions.add(Condition.eq(attr, attr.getValue(entity)));\n\t\t}\n\t\treturn conditions;\n\t}", "KTable<K, V> filterOut(Predicate<K, V> predicate);", "public static String partition(Map<String, Object> key) {\n return partition( (Integer) key.get(\"datasetKey\"));\n }", "public interface Partitioner {\n\n Set<String> getPartitions();\n\n String getNextObjectName(String topic, String previousObject);\n\n boolean shouldReconfigure();\n\n}", "private static int partition(int[] a, int[][] part, int i, int j, int n) {\n if (i == j) return 0;\n if (n == 0) return sum(a, i, j);\n int min = Integer.MAX_VALUE;\n for (int k = i; k < j; k++) {\n int c = Math.max(partition(a, part, i, k, 0), partition(a, part, k, j, n-1));\n if (c < min) {\n part[i][part[0].length - n] = k;\n min = c;\n }\n }\n return min;\n }", "@Override\r\n\tpublic DeptBean[] findByDynamicWhereByPage(String whereSql, int page,\r\n\t\t\tint rows, Object[] array) throws SQLException {\n\t\tList<Map<String, Object>> resultList = new ArrayList<Map<String,Object>>();\r\n\t\tdeptConn = this.getConnection();\r\n\t\t// construct the SQL statement\r\n\t\tfinal String SQL = SQL_SELECT + \" WHERE 1=1 \" + whereSql;\r\n\t\r\n\t\tresultList = this.queryByPage(deptConn, SQL, page, rows, array);\r\n\t\t\r\n\t\tif (deptConn != null) {\r\n\t\t\tthis.closeConnection(deptConn);\r\n\t\t}\r\n\t\treturn MapToObject(resultList);\r\n\r\n\t}", "@Test\n public void should_iterate_with_default_params() throws Exception {\n long partitionKey = RandomUtils.nextLong(0,Long.MAX_VALUE);\n insertClusteredValues(partitionKey, 1, \"name1\", 5);\n\n Iterator<ClusteredEntity> iter = manager.sliceQuery(ClusteredEntity.class)\n .forIteration()\n .withPartitionComponents(partitionKey)\n .iterator();\n\n assertThat(iter.hasNext()).isTrue();\n ClusteredEntity next = iter.next();\n assertThat(next.getId().getCount()).isEqualTo(1);\n assertThat(next.getId().getName()).isEqualTo(\"name11\");\n assertThat(next.getValue()).isEqualTo(\"value11\");\n\n assertThat(iter.hasNext()).isTrue();\n next = iter.next();\n assertThat(next.getId().getCount()).isEqualTo(1);\n assertThat(next.getId().getName()).isEqualTo(\"name12\");\n assertThat(next.getValue()).isEqualTo(\"value12\");\n\n assertThat(iter.hasNext()).isTrue();\n next = iter.next();\n assertThat(next.getId().getCount()).isEqualTo(1);\n assertThat(next.getId().getName()).isEqualTo(\"name13\");\n assertThat(next.getValue()).isEqualTo(\"value13\");\n\n assertThat(iter.hasNext()).isTrue();\n next = iter.next();\n assertThat(next.getId().getCount()).isEqualTo(1);\n assertThat(next.getId().getName()).isEqualTo(\"name14\");\n assertThat(next.getValue()).isEqualTo(\"value14\");\n\n assertThat(iter.hasNext()).isTrue();\n next = iter.next();\n assertThat(next.getId().getCount()).isEqualTo(1);\n assertThat(next.getId().getName()).isEqualTo(\"name15\");\n assertThat(next.getValue()).isEqualTo(\"value15\");\n\n assertThat(iter.hasNext()).isFalse();\n }", "public void setWhereCondition(com.sforce.soap.partner.SoqlWhereCondition whereCondition) {\r\n this.whereCondition = whereCondition;\r\n }", "@Test\n public void testQueryWithEmptySegment() throws SqlParseException {\n\n val project = \"heterogeneous_segment\";\n val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\";\n // val seg1Id = \"8892fa3f-f607-4eec-8159-7c5ae2f16942\" [20120101000000_20120102000000]\n // val seg2Id = \"d75a822c-788a-4592-a500-cf20186dded1\" [20120102000000_20120103000000]\n val seg3Id = \"54eaf96d-6146-45d2-b94e-d5d187f89919\"; // [20120103000000_20120104000000]\n // val seg4Id = \"411f40b9-a80a-4453-90a9-409aac6f7632\" [20120104000000_20120105000000]\n // val seg5Id = \"a8318597-cb75-416f-8eb8-96ea285dd2b4\" [20120105000000_20120106000000]\n\n EnhancedUnitOfWork.doInTransactionWithCheckAndRetry(() -> {\n NDataflowManager dfMgr = NDataflowManager.getInstance(getTestConfig(), project);\n NDataflow dataflow = dfMgr.getDataflow(dfId);\n NDataSegment latestReadySegment = dataflow.getSegment(seg3Id);\n if (latestReadySegment != null) {\n NDataSegDetails segDetails = latestReadySegment.getSegDetails();\n List<NDataLayout> allLayouts = segDetails.getAllLayouts();\n\n // update\n NDataflowUpdate dataflowUpdate = new NDataflowUpdate(dfId);\n NDataLayout[] toRemoveLayouts = allLayouts.stream()\n .filter(dataLayout -> dataLayout.getLayoutId() == 20001).toArray(NDataLayout[]::new);\n dataflowUpdate.setToRemoveLayouts(toRemoveLayouts);\n dfMgr.updateDataflow(dataflowUpdate);\n }\n return null;\n }, project);\n\n val sql = \"select cal_dt, sum(price), count(*) from test_kylin_fact inner join test_account \\n\"\n + \"on test_kylin_fact.seller_id = test_account.account_id \\n\"\n + \"where cal_dt between date'2012-01-01' and date'2012-01-03'\\n\" //\n + \"group by cal_dt\\n\";\n // can not query\n {\n OLAPContext olapContext = OlapContextTestUtil.getOlapContexts(project, sql).get(0);\n StorageContext storageContext = olapContext.storageContext;\n Assert.assertEquals(-1L, storageContext.getLayoutId().longValue());\n }\n\n {\n MetadataTestUtils.updateProjectConfig(project, \"kylin.query.index-match-rules\",\n QueryRouter.USE_VACANT_INDEXES);\n try (QueryContext queryContext = QueryContext.current()) {\n OLAPContext olapContext = OlapContextTestUtil.getOlapContexts(project, sql).get(0);\n StorageContext storageContext = olapContext.storageContext;\n Assert.assertEquals(10001L, storageContext.getLayoutId().longValue());\n Assert.assertFalse(queryContext.getQueryTagInfo().isVacant());\n }\n }\n }", "public ZExpression getWhereExpression()\r\n\t{\r\n\t\treturn where;\r\n\t}", "private int partitionArray(Comparable<T>[] arr, int s, int e) {\n\t\tint pvt = e;\r\n\t\t// choose partition index as zero and start from 0 to end -1, if any element is less than the pivot swap positions that element and partionIndex element and increment partition indes\r\n\t\t// by the end of loop all elements left to partition index are less that it and elemnts right (till e-1) are grater.\r\n\t\t//lastly swap the elements in partIndex and pivot element\r\n\t\tint partIndx = s;\r\n\t\tfor(int j=s ; j <e; j++) {\r\n\t\t\tif(arr[j].compareTo((T) arr[pvt]) <= 0) {\r\n\t\t\t\tswap(arr,j,partIndx);\r\n\t\t\t\tpartIndx++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// lastly swap partIndex with pivot(end) index element\r\n\t\tswap(arr,partIndx,pvt);\r\n\t\treturn partIndx;\r\n\t}", "Update withPartitionCount(int count);", "public List<Object[]> getPartitionKeys();", "@Override\n @PlainSQL\n public PaymentP2007_03 where(@Stringly.SQL String condition, QueryPart... parts) {\n return where(DSL.condition(condition, parts));\n }", "@Override\n\tprotected String getWhereConditionBaseOnIdRecord()\n\t{\n\t\tStringBuilder whereCondition = new StringBuilder(\"GAZOID='\");\n\t\twhereCondition.append(getMyDataModel().getOptionId());\n\t\twhereCondition.append(\"'and GAZFLD='\");\n\t\twhereCondition.append(getMyDataModel().getFieldId());\n\t\twhereCondition.append(\"'and GAZPVN='\");\n\t\twhereCondition.append(getMyDataModel().getPvId());\n\t\twhereCondition.append(\"'and GAZTYP='\");\n\t\twhereCondition.append(getMyDataModel().getType());\n\t\twhereCondition.append(\"'\");\n\t\treturn whereCondition.toString();\n\t}", "public HistoryCollection slice(HistoryCollection hc, Predicate p) {\n\t\tHistoryCollection result = options.newHistoryCollection();\n\t\tfor (History h : hc.getHistories()) {\n\t\t\tif (p.passes(h)) result.addHistory(h);\n\t\t}\n\t\treturn result;\n\t}", "@Override\n @PlainSQL\n public PaymentP2007_03 where(SQL condition) {\n return where(DSL.condition(condition));\n }", "boolean hasPartitionLimit();", "@Override\n public boolean getIsPartitionKey() {\n return isPartitionKey_;\n }", "@Test\n public void testQueryWithAllSegmentsAreEmpty() throws SqlParseException {\n\n val project = \"heterogeneous_segment\";\n val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\";\n // val seg1Id = \"8892fa3f-f607-4eec-8159-7c5ae2f16942\" [20120101000000_20120102000000]\n // val seg2Id = \"d75a822c-788a-4592-a500-cf20186dded1\" [20120102000000_20120103000000]\n // val seg3Id = \"54eaf96d-6146-45d2-b94e-d5d187f89919\" [20120103000000_20120104000000]\n // val seg4Id = \"411f40b9-a80a-4453-90a9-409aac6f7632\" [20120104000000_20120105000000]\n // val seg5Id = \"a8318597-cb75-416f-8eb8-96ea285dd2b4\" [20120105000000_20120106000000]\n\n EnhancedUnitOfWork.doInTransactionWithCheckAndRetry(() -> {\n NDataflowManager dfMgr = NDataflowManager.getInstance(getTestConfig(), project);\n NDataflow dataflow = dfMgr.getDataflow(dfId);\n Segments<NDataSegment> segments = dataflow.getSegments();\n // update\n NDataflowUpdate dataflowUpdate = new NDataflowUpdate(dfId);\n dataflowUpdate.setToRemoveSegs(segments.toArray(new NDataSegment[0]));\n dfMgr.updateDataflow(dataflowUpdate);\n return null;\n }, project);\n\n val sql = \"select cal_dt, sum(price), count(*) from test_kylin_fact inner join test_account \\n\"\n + \"on test_kylin_fact.seller_id = test_account.account_id \\n\"\n + \"where cal_dt between date'2012-01-01' and date'2012-01-03'\\n\" //\n + \"group by cal_dt\\n\";\n\n MetadataTestUtils.updateProjectConfig(project, \"kylin.query.index-match-rules\", QueryRouter.USE_VACANT_INDEXES);\n try (QueryContext queryContext = QueryContext.current()) {\n OLAPContext olapContext = OlapContextTestUtil.getOlapContexts(project, sql).get(0);\n StorageContext storageContext = olapContext.storageContext;\n Assert.assertEquals(-1L, storageContext.getLayoutId().longValue());\n Assert.assertFalse(queryContext.getQueryTagInfo().isVacant());\n }\n }", "public StrippedPartition(Object2ObjectOpenHashMap<Object, LongBigArrayBigList> partition) {\n this.strippedPartition = new ObjectBigArrayBigList<LongBigArrayBigList>();\n this.elementCount = 0;\n\n //create stripped partitions -> only use equivalence classes with size > 1.\n for (LongBigArrayBigList eqClass : partition.values()) {\n if (eqClass.size64() > 1) {\n strippedPartition.add(eqClass);\n elementCount += eqClass.size64();\n }\n }\n this.calculateError();\n }", "public static void partitionStudentsByGpaPredicate() {\n\t\tMap<Boolean, Set<Student>> mapOfStudents = StudentDb.getAllStudents().stream()\n\t\t\t\t.collect(partitioningBy(gpaPredicate, toSet()));\n\t\t\n\t\tSystem.out.println(\"Does the Student have First Class Degree? \" + mapOfStudents);\n\t}", "public PartitionUpdateParam getPartParam() {\n return partParam;\n }", "public void testFilterOnAggregationColumn() throws Exception {\n \t\tccName = new String[] { \"cc1\", \"cc2\", \"cc3\" };\n \t\tccExpr = new String[] { \"row.COL0+row.COL1\",\n \t\t\t\t\"Total.runningSum(row.cc1,row.COL0==0,0)\",\n \t\t\t\t\"Total.runningSum(row.cc1,row.COL0>0,0)\" };\n \n \t\tfor (int i = 0; i < ccName.length; i++) {\n \t\t\tComputedColumn computedColumn = new ComputedColumn(ccName[i],\n \t\t\t\t\tccExpr[i], DataType.ANY_TYPE);\n \t\t\t((BaseDataSetDesign) this.dataSet)\n \t\t\t\t\t.addComputedColumn(computedColumn);\n \t\t}\n \n \t\tString[] bindingNameRow = new String[7];\n \t\tbindingNameRow[0] = \"ROW_COL0\";\n \t\tbindingNameRow[1] = \"ROW_COL1\";\n \t\tbindingNameRow[2] = \"ROW_COL2\";\n \t\tbindingNameRow[3] = \"ROW_COL3\";\n \t\tbindingNameRow[4] = \"ROW_cc1\";\n \t\tbindingNameRow[5] = \"ROW_cc2\";\n \t\tbindingNameRow[6] = \"ROW_cc3\";\n \t\tScriptExpression[] bindingExprRow = new ScriptExpression[] {\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL0\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL1\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL2\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL3\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[0], 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[1], 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[2], 0) };\n \n \t\tIResultIterator resultIt = this.executeQuery(this.createQuery(null,\n \t\t\t\tnull, null, null, null, null, null, null, null, bindingNameRow,\n \t\t\t\tbindingExprRow));\n \n \t\tprintResult(resultIt, bindingNameRow, bindingExprRow);\n \t\t// assert\n \t\tcheckOutputFile();\n \n \t}", "private void bootstrapIndexIfNeed(String partition) {\n if (OptionsResolver.isInsertOverwrite(config)) {\n // skips the index loading for insert overwrite operation.\n return;\n }\n if (bucketIndex.containsKey(partition)) {\n return;\n }\n LOG.info(String.format(\"Loading Hoodie Table %s, with path %s\", this.metaClient.getTableConfig().getTableName(),\n this.metaClient.getBasePath() + \"/\" + partition));\n\n // Load existing fileID belongs to this task\n Map<Integer, String> bucketToFileIDMap = new HashMap<>();\n this.writeClient.getHoodieTable().getHoodieView().getLatestFileSlices(partition).forEach(fileSlice -> {\n String fileId = fileSlice.getFileId();\n int bucketNumber = BucketIdentifier.bucketIdFromFileId(fileId);\n if (isBucketToLoad(bucketNumber, partition)) {\n LOG.info(String.format(\"Should load this partition bucket %s with fileId %s\", bucketNumber, fileId));\n // Validate that one bucketId has only ONE fileId\n if (bucketToFileIDMap.containsKey(bucketNumber)) {\n throw new RuntimeException(String.format(\"Duplicate fileId %s from bucket %s of partition %s found \"\n + \"during the BucketStreamWriteFunction index bootstrap.\", fileId, bucketNumber, partition));\n } else {\n LOG.info(String.format(\"Adding fileId %s to the bucket %s of partition %s.\", fileId, bucketNumber, partition));\n bucketToFileIDMap.put(bucketNumber, fileId);\n }\n }\n });\n bucketIndex.put(partition, bucketToFileIDMap);\n }", "Condition(Column col1, String relation, Column col2) {\n // YOUR CODE HERE\n }" ]
[ "0.66020566", "0.60567683", "0.579988", "0.55735964", "0.5452887", "0.54146564", "0.5337042", "0.52978605", "0.5287343", "0.52245075", "0.52031296", "0.5194291", "0.5187598", "0.515892", "0.5142905", "0.5068243", "0.50648105", "0.5021467", "0.5020631", "0.49997666", "0.49949732", "0.49760425", "0.49623868", "0.49604028", "0.49477395", "0.49233103", "0.49222708", "0.48974434", "0.48848447", "0.48739588", "0.48631513", "0.4833937", "0.4829821", "0.48238522", "0.48126233", "0.4808439", "0.4801572", "0.47929037", "0.4789291", "0.478696", "0.4773564", "0.47699913", "0.47609285", "0.47404948", "0.4739663", "0.47355953", "0.47132537", "0.46972308", "0.46945056", "0.4689778", "0.46848878", "0.46764514", "0.46691987", "0.4666173", "0.46513146", "0.46400046", "0.46265957", "0.46168885", "0.46146867", "0.46011484", "0.4597336", "0.45970166", "0.4581388", "0.4576238", "0.45736775", "0.4559631", "0.45483178", "0.45395795", "0.4528253", "0.45272008", "0.45256212", "0.45233908", "0.45155355", "0.451298", "0.45113745", "0.4510667", "0.45071435", "0.44960728", "0.44872254", "0.44833857", "0.4482993", "0.4480525", "0.44766355", "0.44733498", "0.4468386", "0.44648877", "0.4454942", "0.4453495", "0.44532785", "0.44517475", "0.44492915", "0.44348317", "0.44323596", "0.44319746", "0.44288427", "0.4426049", "0.44167545", "0.44134325", "0.44129997", "0.44126213" ]
0.52799904
9
A dao interface provides methods to access database table dc_squad. This file is generated by dreamcubedalgen, a DAL (Data Access Layer) code generation utility specially developed for paygw project. PLEASE DO NOT MODIFY THIS FILE MANUALLY, or else your modification may be OVERWRITTEN by someone else. To modify the file, you should go to directory (projecthome)/biz/dal/src/conf/dalgen, and find the corresponding configuration file (tables/dc_squad.xml). Modify the configuration file according to your needs, then run dreamcubedalgen to generate this file.
public interface DcSquadDAO { /** * Insert one <tt>DcSquadDO</tt> object to DB table <tt>dc_squad</tt>, return primary key * * <p> * The sql statement for this operation is <br> * <tt>insert into dc_squad(squad_name,squad_desc,axiser,cubers,followers,investors,status,gmt_create,gmt_modify,attention) values (?, ?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?)</tt> * * @param dcSquad * @return long * @throws DataAccessException */ public long insert(DcSquadDO dcSquad) throws DataAccessException; /** * Query DB table <tt>dc_squad</tt> for records. * * <p> * The sql statement for this operation is <br> * <tt>select * from dc_squad</tt> * * @return List<DcSquadDO> * @throws DataAccessException */ public List<DcSquadDO> load() throws DataAccessException; /** * Query DB table <tt>dc_squad</tt> for records. * * <p> * The sql statement for this operation is <br> * <tt>select * from dc_squad where (id = ?)</tt> * * @param id * @return DcSquadDO * @throws DataAccessException */ public DcSquadDO loadById(long id) throws DataAccessException; /** * Query DB table <tt>dc_squad</tt> for records. * * <p> * The sql statement for this operation is <br> * <tt>select * from dc_squad where (squad_name = ?)</tt> * * @param squadName * @return DcSquadDO * @throws DataAccessException */ public DcSquadDO loadByName(String squadName) throws DataAccessException; /** * Update DB table <tt>dc_squad</tt>. * * <p> * The sql statement for this operation is <br> * <tt>update dc_squad set squad_name=?, squad_desc=?, axiser=?, cubers=?, followers=?, investors=?, status=?, gmt_modify=CURRENT_TIMESTAMP where (id = ?)</tt> * * @param dcSquad * @return int * @throws DataAccessException */ public int update(DcSquadDO dcSquad) throws DataAccessException; /** * Delete records from DB table <tt>dc_squad</tt>. * * <p> * The sql statement for this operation is <br> * <tt>delete from dc_squad where (id = ?)</tt> * * @param id * @return int * @throws DataAccessException */ public int deleteById(long id) throws DataAccessException; /** * Query DB table <tt>dc_squad</tt> for records. * * <p> * The sql statement for this operation is <br> * <tt>select * from dc_squad where ((squad_name = ?) AND (axiser = ?) AND (cubers = ?) AND (followers = ?) AND (investors = ?) AND (status = ?) AND (gmt_create = ?) AND (gmt_modify = ?))</tt> * * @param squadName * @param axiser * @param cubers * @param followers * @param investors * @param status * @param gmtCreate * @param gmtModify * @param pageSize * @param pageNum * @return PageList * @throws DataAccessException */ public PageList query(String squadName, String axiser, String cubers, String followers, String investors, String status, Date gmtCreate, Date gmtModify, int pageSize, int pageNum) throws DataAccessException; /** * Update DB table <tt>dc_squad</tt>. * * <p> * The sql statement for this operation is <br> * <tt>update dc_squad set attention=? where (id = ?)</tt> * * @param attention * @param id * @return int * @throws DataAccessException */ public int updateAttention(long attention, long id) throws DataAccessException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DcSquadDO loadByName(String squadName) throws DataAccessException;", "public int update(DcSquadDO dcSquad) throws DataAccessException;", "public DcSquadDO loadById(long id) throws DataAccessException;", "public interface SolutionsDao {\n\n\tString writeSolution(Solution sol);\n\tSolution readSoluiton(String _id);\n\t\n}", "public interface SectionDao extends Dao{\n}", "public interface IndentDao extends BaseDao<Indent,Integer>{\n\n /**\n * 通过订单关联查询到买家信息\n */\n void queryBuyerByIndentNO();\n}", "public long insert(DcSquadDO dcSquad) throws DataAccessException;", "public interface SdaDao extends GenericDao<Sda, Long> {\n}", "public interface DVDCategorieDAO {\n /**\n * This is the method to be used to initialize\n * database resources ie. connection.\n */\n public void setDataSource(DataSource ds);\n\n /**\n * This is the method to be used to create\n * a record in the Graduate table.\n */\n public void create(int id, DVD dvd, Categorie categorie);\n\n /**\n * This is the method to be used to list down\n * a record from the Graduate table corresponding\n * to a passed graduate id.\n */\n public DVDCategorie getDVDCategorie(int id);\n\n /**\n * This is the method to be used to list down\n * all the records from the Graduate table.\n */\n public List<DVDCategorie> listDVDCategorie();\n\n /**\n * This is the method to be used to delete\n * a record from the Graduate table corresponding\n * to a passed graduate id.\n */\n public void delete(Integer id);\n\n /**\n * This is the method to be used to update\n * a record into the Graduate table.\n */\n public void update(Integer id, DVD dvd, Categorie categorie);\n}", "public interface HelloDao {\n\n String getName();\n\n void InsertAdCustomRelation(AdGroupSum adGroupSum);\n\n}", "public interface StockDao {\n //包含仓库、入库、出库信息\n\n //添加仓库信息\n boolean addStock(Stock stock);\n //更新仓库信息\n boolean updateStock(Stock stock);\n //增加入库记录\n boolean addInnerStock(InnerStock innerStock);\n //查看入库记录\n List<InnerStock> listInnerStock();\n\n}", "public interface IEjsinoDao {\n\n public List<EjsinoCityInfo> getCityInfo();\n\n /**\n * 记录e车险订单 根据业务场景因此业务量少,做使用一个表做记录即可\n * @param ejsinoFormModel\n * @return\n */\n public int insertEjsinoInfo(EjsinoFormModel ejsinoFormModel);\n\n /**\n * 完善e车险订单信息\n * @param ejsinoFormModel\n * @return\n */\n public int updateEjsinoInfo(EjsinoFormModel ejsinoFormModel);\n\n /**\n * 判断交易号是否存在\n * @param outerno\n * @return\n */\n public int getEjsinoCountByOuterno(String outerno);\n}", "public interface DistrictSanteDao extends ImogBeanDao<DistrictSante> {\n\n\t/* relation dependencies */\n\n}", "D getDao();", "public interface ImplementShoppingDao {\n\n\n public Shopping selectShoppingById(int id);\n\n /**\n * 通过板块plate查询Article\n *\n * @return Article对象集合\n */\npublic List<Shopping> selectShoppingAllshop();\n\n /**\n * 添加商品\n * @param shopping\n * @return\n */\n public boolean addShopping(Shopping shopping);\n}", "public List<DcSquadDO> load() throws DataAccessException;", "public interface StuDao {\n\n boolean addStu(TbStu stu); //增加学生\n\n boolean deleteStu(TbStu stu); //删除学生\n\n boolean updateStu(TbStu stu); //修改学生\n\n TbStu findStuById(int id); //根据id查询学生\n\n List findStuList();// 查询学生信息\n\n\n}", "public interface RightInfoDAO extends BaseDAO {\n /** The name of the DAO */\n public static final String NAME = \"RightInfoDAO\";\n\n\t/**\n\t * Insert one <tt>RightInfoDTO</tt> object to DB table <tt>azdai_right_info</tt>, return primary key\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>insert into azdai_right_info(code,title,memo,gmt_create,gmt_modify) values (?, ?, ?, ?, ?)</tt>\n\t *\n\t *\t@param rightInfo\n\t *\t@return String\n\t *\t@throws DataAccessException\n\t */\t \n public String insert(RightInfoDTO rightInfo) throws DataAccessException;\n\n\t/**\n\t * Update DB table <tt>azdai_right_info</tt>.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>update azdai_right_info set title=?, memo=?, gmt_modify='NOW' where (code = ?)</tt>\n\t *\n\t *\t@param rightInfo\n\t *\t@return int\n\t *\t@throws DataAccessException\n\t */\t \n public int update(RightInfoDTO rightInfo) throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info where (code = ?)</tt>\n\t *\n\t *\t@param code\n\t *\t@return RightInfoDTO\n\t *\t@throws DataAccessException\n\t */\t \n public RightInfoDTO find(String code) throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info order by code ASC</tt>\n\t *\n\t *\t@return List<RightInfoDTO>\n\t *\t@throws DataAccessException\n\t */\t \n public List<RightInfoDTO> findAll() throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info order by code ASC</tt>\n\t *\n\t *\t@param userNo\n\t *\t@return List<RightInfoDTO>\n\t *\t@throws DataAccessException\n\t */\t \n public List<RightInfoDTO> findUserRights(String userNo) throws DataAccessException;\n\n\t/**\n\t * Delete records from DB table <tt>azdai_right_info</tt>.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>delete from azdai_right_info where (code = ?)</tt>\n\t *\n\t *\t@param code\n\t *\t@return int\n\t *\t@throws DataAccessException\n\t */\t \n public int delete(String code) throws DataAccessException;\n\n}", "public interface DomainDao extends GenericDao<Domain, Integer> {\r\n\t/**\r\n\t * \r\n\t * @param unitName\r\n\t * @return Returns a domain by unit name\r\n\t * @throws Exception\r\n\t */\r\n\tpublic Domain getDomainByUnitName(String unitName) throws Exception;\r\n\r\n\t/**\r\n\t * \r\n\t * @param domainName\r\n\t * @return Returns a domain by name\r\n\t * @throws Exception\r\n\t */\r\n\tpublic Domain getDomainByName(String domainName) throws Exception;\r\n\r\n\t/**\r\n\t * \r\n\t * @param domainName\r\n\t * @return Returns the admin login of the domain\r\n\t * @throws Exception\r\n\t */\r\n\tpublic Login getGoogleDomainAdminLogin(String domainName) throws Exception;\r\n\r\n\t/**\r\n\t * \r\n\t * @param domainName\r\n\t * @return Returns all domains by name\r\n\t * @throws Exception\r\n\t */\r\n\tpublic List<Domain> getAllByDomainName(String domainName) throws Exception;\r\n}", "public interface GuruDao {\n public int findTotal();\n public int insertGuru(@Param(\"guru\") Guru guru);\n public int updateGuru(@Param(\"guru\") Guru guru);\n public Guru findGuru(@Param(\"context\") String context);\n public List<Guru> findByPage(@Param(\"start\") int start,@Param(\"rows\")int rows);\n}", "public interface SellerDAOInterface {\n\t\n\tpublic Seller selectById(int id);\n\tpublic List<Seller> selectAll ();\n\tpublic void insert (Seller seller);\n\tpublic void update (Seller seller);\n\tpublic void delete (Seller seller);\n\n}", "public interface ITradeDao {\n int insertTrade(Trade trade);\n\n List<Trade> queryTrade(TradeQuery query);\n}", "StockDao getStockDao();", "public interface MysqldataQueryDao {\n public List<Map<String, Object>> Querydata(String sql);\n public List<Map<String, Object>> Querymaindata(String sql);\n\n}", "public interface TestDao {\n}", "public interface SysTableKindDao extends GenericDao<SysTableKind, String> {\n\tpublic JQueryPager getSysTableKindCriteria(final JQueryPager paginatedList,List<PropertyFilter> filters);\n\tpublic List<SysTableKind> getFullSysTableKind(String orgCode);\n}", "public interface SsoAuthDAO {\r\n\t/**\r\n\t * Insert one <tt>SsoAuthDO</tt> object to DB table <tt>sso_auth</tt>, return primary key\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>insert into sso_auth(auth_code,auth_name,app_id,is_enable,description,last_modifier,gmt_create,gmt_modified) values (?, ?, ?, ?, ?, ?, ?, ?)</tt>\r\n\t *\r\n\t *\t@param ssoAuth\r\n\t *\t@return Integer\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public Integer insert(SsoAuthDO ssoAuth) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Delete records from DB table <tt>sso_auth</tt>.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>delete from sso_auth where (id = ?)</tt>\r\n\t *\r\n\t *\t@param id\r\n\t *\t@return int\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public int delete(Integer id) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Update DB table <tt>sso_auth</tt>.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>update sso_auth set auth_code=?, auth_name=?, app_id=?, is_enable=?, description=?, last_modifier=?, gmt_modified=? where (id = ?)</tt>\r\n\t *\r\n\t *\t@param ssoAuth\r\n\t *\t@return int\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public int update(SsoAuthDO ssoAuth) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Query DB table <tt>sso_auth</tt> for records.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>select id, auth_code, auth_name, app_id, is_enable, description, last_modifier, gmt_create, gmt_modified from sso_auth where (id = ?)</tt>\r\n\t *\r\n\t *\t@param id\r\n\t *\t@return SsoAuthDO\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public SsoAuthDO query(Integer id) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Query DB table <tt>sso_auth</tt> for records.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>select id, auth_code, auth_name, app_id, is_enable, description, last_modifier, gmt_create, gmt_modified from sso_auth where (app_id = ?)</tt>\r\n\t *\r\n\t *\t@param appId\r\n\t *\t@return List<SsoAuthDO>\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public List<SsoAuthDO> queryByAppId(Integer appId) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Query DB table <tt>sso_auth</tt> for records.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>select id, auth_code, auth_name, app_id, is_enable, description, last_modifier, gmt_create, gmt_modified from sso_auth where (auth_code = ?)</tt>\r\n\t *\r\n\t *\t@param authCode\r\n\t *\t@return SsoAuthDO\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public SsoAuthDO queryByAuthCode(String authCode) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Query DB table <tt>sso_auth</tt> for records.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>select id, auth_code, auth_name, app_id, is_enable, description, last_modifier, gmt_create, gmt_modified from sso_auth where (auth_name = ?)</tt>\r\n\t *\r\n\t *\t@param authName\r\n\t *\t@return SsoAuthDO\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public SsoAuthDO queryByAuthName(String authName) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Query DB table <tt>sso_auth</tt> for records.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>select b.id id, b.auth_code auth_code, b.auth_name auth_name, b.app_id app_id, b.is_enable is_enable, c.description description, b.last_modifier last_modifier, b.gmt_create gmt_create, b.gmt_modified gmt_modified from sso_role a, sso_auth b, sso_role_auth c where ((a.id = c.role_id) AND (b.id = c.auth_id))</tt>\r\n\t *\r\n\t *\t@param roleName\r\n\t *\t@return List<SsoAuthDO>\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public List<SsoAuthDO> queryByRoleName(String roleName) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Query DB table <tt>sso_auth</tt> for records.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>select e.id id, e.app_id app_id, e.auth_code auth_code, e.auth_name auth_name, e.description description, e.is_enable is_enable, e.last_modifier last_modifier, e.gmt_create gmt_create, e.gmt_modified gmt_modified from sso_user a, sso_user_role b, sso_role c, sso_role_auth d, sso_auth e, sso_app f where ((a.id = b.user_id) AND (b.role_id = d.role_id) AND (d.auth_id = e.id) AND (e.app_id = f.id) AND (a.is_enable = 1) AND (e.is_enable = 1))</tt>\r\n\t *\r\n\t *\t@param userId\r\n\t *\t@param appName\r\n\t *\t@return List<SsoAuthDO>\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public List<SsoAuthDO> queryByAppIdAndUserName(String userId, String appName) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Delete records from DB table <tt>sso_auth</tt>.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>delete from sso_auth where (description LIKE ?)</tt>\r\n\t *\r\n\t *\t@param description\r\n\t *\t@return int\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public int deleteByDesc(String description) throws DataAccessException;\r\n\r\n}", "public VRpDyHlrforbeDAOImpl() {\r\n super();\r\n }", "@MyBatisDao\n@Repository\npublic interface DeviceDao {\n\n void addDevice(DeviceDTO deviceDTO);\n\n void updateDevice(DeviceDTO deviceDTO);\n\n void delDevice(Integer id);\n\n List<String> selectAllType();\n\n List getDeviceByInfo(DeviceDTO deviceDTO);\n\n int getDeviceNum(String type);\n\n int deviceBindNum(String type);\n}", "public interface DeptDao {\n\n public Dept selectDept(int id);\n\n public List<Dept> queryAll(@Param(\"tableName\") String tableName);\n\n public void login(@Param(\"name\") String name,@Param(\"password\") String password);\n}", "public interface ProductDAO {\n\n /**\n * 添加商品\n * @param product\n */\n public void addProduct(Product product);\n\n /**\n * 分页查询\n * @param pager\n * @param fileId\n * @param fType\n * @param days1\n * @return\n */\n public Pager4EasyUI<ProductInfo> pager(Pager4EasyUI<ProductInfo> pager, String fileId, String fType);\n\n /**\n * 计数\n * @param fileId\n * @return\n */\n public int count(String fileId);\n\n /**\n * 批量添加\n */\n public void addProducts(List<Product> products);\n\n}", "public abstract ZALogDao mo87644a();", "public interface MetricDayDao extends BaseDao<MetricDay> {\n List<MetricDay> queryByProjectIdList(Map<String, Object> params);\n\n List<MetricDay> findByProjectIds(List<String> idList);\n\n void insertDataByParentId(Map<String, Object> params);\n\n int deleteByProjectId(Map<String, Object> params);\n\n void batchUpdateByProjectNumAndDate(List<MetricDay> list);\n \n void batchUpdateShopSales(List<BsShopSales> list);\n\n int insertOrUpdateUserMetrics(MetricDay metricDay);\n \n int batchUpdateByMemberAndPotential(String runDate);\n \n List<MetricDay> queryMetricMonthByDate(Map<String, Object> params);\n \n List<MetricDay> queryMetricWeekByDate(Map<String, Object> params);\n \n List<BsShopSales> listShopSalesByDateList(List<String> dates);\n \n}", "public interface ClothDao {\n /**\n * 判断衣服Id是否存在\n * @param id\n * @return boolean\n */\n boolean isClothIdExists(int id);\n /**\n * 返回图片\n * @param clothId\n * @return Clothinfostring\n */\n String getClothById(int clothId);\n /**\n * 返回图片\n * @param none\n * @return Cloth Ids\n */\n String getAllCloth();\n\n}", "public interface SiacTAttoLeggeDao extends Dao<SiacTAttoLegge,Integer> {\n\t\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @param attoLegge the atto legge\n\t * @return the siac t atto legge\n\t */\n\tSiacTAttoLegge create(SiacTAttoLegge attoLegge);\n\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#update(java.lang.Object)\n\t */\n\tSiacTAttoLegge update(SiacTAttoLegge attoDiLeggeDB);\n\t\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#findById(java.lang.Object)\n\t */\n\tSiacTAttoLegge findById (Integer uid);\n\t\n}", "public interface ProductDao {\n\n}", "public interface ConfigurationDAO\n{\n /**\n * Export table configuration information\n * \n * @param fullTableName\n * full table name, including schema\n * @return column configurations mapped by column name\n */\n public Map<String, ColumnConfig> exportColumns(String fullTableName);\n\n /**\n * Adds column comments to column configs\n * \n * @param fullTableName\n * full table name\n * @param configs\n * ColumnConfig objects mapped to column names\n */\n public void addColumnComments(String fullTableName, Map<String, ColumnConfig> configs);\n\n /**\n * Updates table configuration based on information available from TAP tables table\n * \n * @param fullTableName\n * full name of table to update\n * @param config\n * table configuration\n * @return false if the table does not exist, else true\n */\n public boolean updateTableFromTap(String fullTableName, TableConfig config);\n\n /**\n * Updates columns configuration based on information available from TAP columns table\n * \n * @param fullTableName\n * full name of table that the columns belong to\n * @param configs\n * columns configurations\n */\n public void updateColumnsFromTap(String fullTableName, Map<String, ColumnConfig> configs);\n\n /**\n * Get index definition statements\n * \n * @param fullTableName\n * full name of table that the columns belong to\n * @return index definition statements as Strings in a List\n */\n public Map<String, String> exportIndexDefs(String fullTableName);\n\n /**\n * Get constraints information\n * \n * @param fullDbTableName\n * full database name of table that the columns belong to\n * @param constraintType\n * ConfigurationDAOImpl.FOREIGN_KEYS for foreign keys, ConfigurationDAOImpl.PRIMARY_KEYS for primary keys\n * @return Map constraint name -$gt; encoded constraint string\n */\n public Map<String, String> exportConstraints(String fullDbTableName, String constraintType);\n\n /**\n * Query for strings using the template\n * \n * @param sql\n * sql query with params placeholders\n * @param params\n * an array of params\n * @return a list of String results\n */\n public List<String> queryForStrings(String sql, Object[] params);\n\n /**\n * Get description of given table in given schema\n * \n * @param fullTableName\n * full table name\n * \n * @return table description as a String\n */\n public String exportTableDescription(String fullTableName);\n\n /**\n * Executes a statement\n * \n * @param statement\n * sql statement\n */\n public void execute(String statement);\n\n /**\n * Drops a constraint\n * \n * @param constraint\n * constraint to drop\n * @throws ConfigurationException\n * if change is not allowed\n */\n public void dropConstraint(ConstraintConfig constraint) throws ConfigurationException;\n\n /**\n * Adds a constraint\n * \n * @param constraint\n * constraint to add\n * @throws ConfigurationException\n * if change is not allowed\n */\n public void addConstraint(ConstraintConfig constraint) throws ConfigurationException;\n\n /**\n * Drops an index\n * \n * @param index\n * index to drop\n * @throws ConfigurationException\n * if change is not allowed\n */\n public void dropIndex(IndexConfig index) throws ConfigurationException;\n\n /**\n * Adds an index\n * \n * @param index\n * index to add\n * @throws ConfigurationException\n * if change is not allowed\n */\n public void addIndex(IndexConfig index) throws ConfigurationException;\n\n /**\n * Begin transaction\n */\n public void begin();\n\n /**\n * Commit transaction\n */\n public void commit();\n\n /**\n * Rollback transaction\n */\n public void rollback();\n\n /**\n * Drops column\n * \n * @param columnConfig\n * column configuration object of the column to drop\n * @throws ConfigurationException\n * if change is not allowed\n */\n public void dropColumn(ColumnConfig columnConfig) throws ConfigurationException;\n\n /**\n * Creates column\n * \n * @param columnConfig\n * column attributes\n * @throws ConfigurationException\n * if change is not allowed\n */\n public void createColumn(ColumnConfig columnConfig) throws ConfigurationException;\n\n /**\n * Updates column\n * \n * @param current\n * current column attributes\n * @param updated\n * desired column attributes\n * @throws ConfigurationException\n * if change is not allowed\n */\n public void updateColumn(ColumnConfig current, ColumnConfig updated) throws ConfigurationException;\n\n /**\n * Creates foreign key constraint\n * \n * @param constraintConfig\n * constraint configuration\n * @throws ConfigurationException\n * if change is not allowed\n */\n public void createConstraint(ConstraintConfig constraintConfig) throws ConfigurationException;\n\n /**\n * Creates index\n * \n * @param indexConfig\n * index configuration\n * @throws ConfigurationException\n * if change is not allowed\n * \n */\n public void createIndex(IndexConfig indexConfig) throws ConfigurationException;\n\n /**\n * Creates a table\n * \n * @param tableConfig\n * table configuration\n * @throws ConfigurationException\n * if change is not allowed\n */\n public void createTable(TableConfig tableConfig) throws ConfigurationException;\n\n /**\n * Delete schema from TAP metadata tables\n * \n * @param schemaConfig\n * schema configuration\n * @throws ConfigurationException\n * if change is not allowed\n */\n public void deleteTapSchema(SchemaConfig schemaConfig) throws ConfigurationException;\n\n /**\n * Create schema in TAP metadata tables\n * \n * @param schemaConfig\n * schema configuration\n * @throws ConfigurationException\n * if change is not allowed\n */\n public void createTapSchema(SchemaConfig schemaConfig) throws ConfigurationException;\n\n /**\n * Update schema in TAP metadata tables\n * \n * @param newSchema\n * schema configuration\n * @param createOnly\n * do not update the record if it exists\n * @throws ConfigurationException\n * if change is not allowed\n */\n public void updateTapSchema(SchemaConfig newSchema, boolean createOnly) throws ConfigurationException;\n\n /**\n * Delete table from TAP metadata tables\n * \n * @param tableConfig\n * table configuration\n * @throws ConfigurationException\n * if change is not allowed\n */\n public void deleteTapTable(TableConfig tableConfig) throws ConfigurationException;\n\n /**\n * Create table in TAP metadata tables\n * \n * @param tableConfig\n * table configuration\n * @throws ConfigurationException\n * if change is not allowed\n */\n public void createTapTable(TableConfig tableConfig) throws ConfigurationException;\n\n /**\n * Update table in TAP metadata tables\n * \n * @param newTable\n * table configuration\n * @param createOnly\n * do not update the record if it exists\n * @throws ConfigurationException\n * if change is not allowed\n */\n public void updateTapTable(TableConfig newTable, boolean createOnly) throws ConfigurationException;\n\n /**\n * Adds missing records and references defined by the table's keys\n * \n * @param cfgTable\n * TableConfig object to process\n * @param createOnly\n * do not update the record if it exists\n * @throws ConfigurationException\n * if change is not allowed\n */\n void updateTapTableReferences(TableConfig cfgTable, boolean createOnly) throws ConfigurationException;\n\n /* =============================================================================== */\n /* Replacements for former JPA repositories functions */\n /* =============================================================================== */\n\n /**\n * Find all TAP schemas\n * \n * @return a collection of TapSchema objects\n */\n public Collection<TapSchema> findAllSchemas();\n\n /**\n * Find all TAP tables\n * \n * @return a collection of TapTable objects\n */\n public Collection<TapTable> findAllTables();\n\n /**\n * Find a TAP schema by name\n * \n * @param schemaName\n * schema name\n * @return TapSchema object\n */\n public TapSchema findOneSchema(String schemaName);\n\n /**\n * Find all TAP columns\n * \n * @return a collection of TapColumn objects\n */\n public Collection<TapColumn> findAllColumns();\n\n /**\n * Find a TAP table by name\n * \n * @param tableName\n * column name\n * @return TapTable object\n */\n public TapTable findOneTable(String tableName);\n\n /**\n * Find all TAP key columns\n * \n * @return a collection of TapKeyColumn objects\n */\n public Collection<TapKeyColumn> findAllKeyColumns();\n\n /**\n * Find a TAP column by its key\n * \n * @param tapColumnPK\n * column key\n * @return TapColumn object\n */\n public TapColumn findOneColumn(TapColumnPK tapColumnPK);\n\n /**\n * Find all TAP keys\n * \n * @return a collection of TapKey objects\n */\n public Collection<TapKey> findAllKeys();\n\n /**\n * Get JdbcTemplate\n * \n * @return JdbcTemplate used by this DAO\n */\n public JdbcTemplate getTemplate();\n\n /**\n * Get schema name\n * \n * @return schema name of any existing table or default schema name\n */\n public String getSchema();\n\n /**\n * Make sure that TAP tables satisfy current version requirements\n * \n * @throws ConfigurationException\n * if there were configuration problems\n */\n void checkTapDbVersion() throws ConfigurationException;\n\n /**\n * Refreshes the object cache, for TAP metadata cached by the application.\n */\n public void refreshObjectCache();\n \n /**\n * Convert project codes to project ids\n * \n * @param projectCodes\n * list of project codes\n * @param schema\n * Schema of the projects table\n * @return projectIds List of project ids for codes\n */\n public List<Long> convertProjectCodesToIds(List<String> projectCodes, String schema);\n \n}", "public interface CityDao {\n\n List<City> queryAllCity() throws Exception;\n\n City queryCityByCode(String cityCode) throws Exception;\n\n List<City> queryCityByBmsCode(String code) throws Exception;\n\n List<City> insert(City city) throws Exception;\n\n}", "public interface IntegralDao {\n public void addIntegral(OrderInfo orderInfo);\n\n /**\n * 获取用户积分记录\n * @param userId\n * @return\n */\n public Map<String,Object> getIntegralListByUserId(Integer userId,Integer page,Integer page_size);\n\n}", "public interface OrderDAOI{ \r\n\r\n \r\n enum SQL {\r\n\t\tGETALLUSERSORDERSBYID(\"SELECT * FROM TSR_ADMIN.TSR_ORDER WHERE CUSTOMER_ID=?\"),\r\n GETORDERBYDATE(\"SELECT * FROM TSR_ADMIN.TSR_ORDER WHERE ORDER_DATE=?\"),\r\n GETORDERBYID(\"SELECT * FROM TSR_ADMIN.TSR_ODER WHERE ORDER_ID=?\");\r\n\t\t\r\n\t\tString query;\r\n\t\t\r\n\t\tSQL(String givenQuery){\r\n\t\t\tquery = givenQuery;\r\n\t\t}\r\n\t\t\r\n\t\tString getQuery() {\r\n\t\t\treturn query;\r\n\t\t}\r\n }\r\n\r\n /**\r\n * getAllUsersOrdersById gets all of a users orders.\r\n * @param userId the user's ID \r\n * @return A list of orders type List\r\n */\r\n public List<Order> getAllUsersOrdersById(long userId);\r\n\r\n /**\r\n * getOrdersByDate gets all orders on a specified date\r\n * @param date the date of the order(s)\r\n * @return a List of Orders type List\r\n */\r\n public List<Order> getOrdersByDate(Date date);\r\n\r\n /**\r\n * getOrderByid returns an order specified by the ID\r\n * @param orderId the order's Id\r\n * @return a list of Orders type List\r\n */\r\n public Order getOrderById(long orderId);\r\n\r\n}", "public interface TestDao {\n\n List query();\n\n}", "public interface SurgeryDao {\n\n public boolean updateSurgery(@Param(\"surgery\")Surgery surgery);\n\n public boolean startSurgery(@Param(\"surgery\")Surgery surgery);\n\n public boolean endSurgery(@Param(\"surgery\")Surgery surgery);\n\n public List<String> selectDistinctDoctor();\n\n public List<String> selectDistinctPatient();\n\n public List<Surgery> selectSurgeryByState(@Param(\"state\")int state);\n\n public List<Surgery> selectSurgeryDynamic(@Param(\"startTime\")long startTime,@Param(\"endTime\")long endTime,@Param(\"doctor\")String doctor,@Param(\"patient\")String patient);\n\n public Surgery selectSurgeryBySurgeryNo(@Param(\"surgeryNo\")String surgeryNo);\n\n public List<Surgery> selectExecutingSurgeryBySurgeryNoList(@Param(\"surgeryNoList\")List<String> surgeryNoList);\n\n\n}", "public interface DepartmentDAO {\n\n /**\n * This method is used to retrieve a list of all departments.\n *\n * @return List of generic type {@link Department}\n */\n public List<Department> getAllDepartments();\n\n /**\n * This method is used when adding a department.\n *\n * @param department of type {@link Department}\n */\n public void addDepartment(Department department);\n\n /**\n * This method is used to update the department table.\n *\n * @param department of type {@link Department}\n * @param newDeptName of type String *\n */\n public void updateDepartment(Department department, String newDeptName);\n\n /**\n * This method is used to delete departments by department number.\n *\n * @param dept_no of type integer\n */\n public void deleteDepartmentByDeptNo(int dept_no);\n\n /**\n * This method is use to delete departments by name.\n *\n * @param dept_name of type String\n */\n public void deleteDepartmentByDeptName(String dept_name);\n\n /**\n * This method is responsible for returning a department by dept_no.\n *\n * @param dept_no of type integer\n * @return ResultSet\n */\n public ResultSet getDepartmentByID(int dept_no);\n\n /**\n * This method is responsible for returning a department by dept_name\n *\n * @param dept_name of type String\n * @return ResultSet\n */\n public ResultSet getDepartmentByName(String dept_name);\n}", "@Repository\npublic interface WeatherAqiDao {\n /**\n * 根据参数查询AQI\n * @param selParams\n * @return\n */\n List<WeatherAQI> selectAqis(HashMap<String, Object> selParams);\n\n /**\n * 入库AQI\n * @param weatherAQI\n */\n void insert(WeatherAQI weatherAQI);\n\n /**\n * 更新AQI\n * @param weatherAQI\n */\n void update(WeatherAQI weatherAQI);\n\n /**\n * 根据id查询空气质量\n * @param params\n * @return\n */\n WeatherAQI selectById(Map<String, Object> params);\n}", "public interface CompanyDao {\n /**\n * 根据主键ID获取企业信息\n *\n * @param id\n * @return\n */\n Company getById(Long id);\n\n /**\n * 根据会员ID获取企业信息\n *\n * @param memberId\n * @return\n */\n Company getByMemberId(Long memberId);\n \n /**\n * 根据企业名字查询\n *\n * @param company\n * @return\n */\n public Company getByName(String name);\n /**\n * 查询数量\n * @param name\n * @return\n */\n public int getCountByName(@Param(\"name\")String name,@Param(\"statuss\")int statuss[]);\n /**\n * 保存\n * @param company\n */\n public void save(Company company);\n /**\n * 更新\n * @param company\n */\n public void update(Company company);\n}", "public interface Dao {\n\n\tpublic void say();\n}", "public VRpHrStpDAOImpl() {\r\n super();\r\n }", "public interface SysOrderDao {\n //根据id删除订单\n void deleteById(Integer id);\n //添加订单项\n void insert(SysOrder record);\n //添加一部分订单项\n void addSelective(SysOrder record);\n //通过id查询信息\n SysOrder selectById(Integer id);\n //修改一部分信息通过id\n void updateByIdSelective(SysOrder record);\n //修改全部信息通过id\n void updateById(SysOrder record);\n //\n List<VOrder> selectAll(Integer uid);\n}", "public interface ClerkShiftRecordDAO {\n\n int insert(ClerkShiftDO clerkShiftDO);\n\n Page<ClerkShiftVO> query(ClerkShiftBO clerkShiftBO,RowBounds build);\n}", "public interface IDrinkingSpotDAO {\n\n List<DrinkingSpot> getAll() throws BeerBuddyException;\n\n DrinkingSpot getActiveByPersonId(long personId) throws BeerBuddyException;\n\n DrinkingSpot insertOrUpdate(DrinkingSpot drinkingSpot) throws BeerBuddyException;\n\n DrinkingSpot getById(long dsid) throws BeerBuddyException;\n\n void join(long dsid, long personId) throws BeerBuddyException;\n\n void deactivate(long dsid) throws BeerBuddyException;\n}", "public interface DaoInterface {}", "public interface CategoryDao {\n\n public SCategory create(SCategory category);\n\n public void update(SCategory category);\n\n public List<SCategory> getAll();\n\n public void delete(SCategory category);\n\n public SCategory getById(Integer id);\n\n public SPath createPath(SPath path);\n\n}", "public interface BaseDao {\n}", "public interface IBuyDao extends Dao<Buy> {\n\n// /** Gets the appropriate List<Executor> by period */\n// public List<Buy> getExecutorsByPeriod(int first, int second) throws PersistException;\n//\n /** Gets all Items*/\n public List<Buy> getAll() throws PersistException;\n\n public String[] getBuysListNameArray() throws PersistException;\n\n /** Gets count Buys*/\n public int getCountBuys() throws PersistException;\n\n// /** Gets Executor by name*/\n// public Buy getExecutorByName(String name) throws PersistException;\n//\n// /** Gets Executors with status Active*/\n// public List<Buy> getActiveExecutors() throws PersistException;\n}", "public interface LuDao extends CrudDao {\n\tpublic List<Clu> getClusByIdList(List<String> cluIdList);\n\tpublic List<Clu> getClusByLuType(String luTypeKey, String luState);\n\t//public List<Lui> getLuisByIdList(List<String> luiIds);\n\t//public List<Lui> getLuisByRelationType(String luiId, String luLuRelationTypeId);\n\tpublic List<String> getLuiIdsByCluId(String cluId);\n\tpublic List<String> getLuiIdsInAtpByCluId(String cluId, String atpKey);\n public List<CluSet> getCluSetInfoByIdList(List<String> cluSetIdList);\n public Boolean isCluInCluSet(String cluId, String cluSetId);\n\t//public List<LuiLuiRelation> getLuiLuiRelations(String luiId);\n\tpublic List<CluCluRelation> getCluCluRelationsByClu(String cluId);\n\tpublic List<Clu> getClusByRelation(String relatedCluId, String luLuRelationTypeKey);\n\tpublic List<Clu> getClusByRelationSt(String relatedCluId, String luLuRelationTypeId, List<String> luStateList);\n public List<String> getCluIdsByLoId(String loId);\n\tpublic List<String> getRelatedCluIdsByCluId(String cluId,\n\t\t\tString luLuRelationTypeId);\n\tpublic List<String> getCluIdsByRelatedCluId(String cluId,\n\t\t\tString luLuRelationTypeId);\n\tpublic List<Clu> getRelatedClusByCluId(String cluId,\n\t\t\tString luLuRelationTypeId);\n\t//public List<Lui> getRelatedLuisByLuiId(String luiId, String id);\n\tpublic List<String> getRelatedLuiIdsByLuiId(String luiId, String id);\n\tpublic List<String> getLuiIdsByRelationType(String relatedLuiId, String luLuRelationTypeId);\n\tpublic List<CluLoRelation> getCluLoRelationsByClu(String cluId);\n\tpublic List<CluLoRelation> getCluLoRelationsByCludIdAndLoId(String cluId,\n\t\t\tString loId);\n\tpublic List<CluLoRelation> getCluLoRelationsByLo(String loId);\n\tpublic List<String> getAllowedCluLoRelationTypesForLuType(String luTypeId);\n\tpublic List<CluResultType> getAllowedCluResultTypesForLuType(String luTypeId);\n\tpublic List<String> getCluIdsByResultUsageType(String resultUsageTypeKey);\n\tpublic List<String> getCluIdsByResultComponentId(String resultComponentId);\n\tpublic List<String> getAllowedResultUsageTypesForLuType(String luTypeId);\n\tpublic List<String> getAllowedResultComponentTypesForResultUsageType(\n\t\t\tString resultUsageType);\n\tpublic List<String> getAllowedLuLuRelationTypesForLuType(\n\t\t\tString luTypeId, String relatedLuTypeId);\n\tpublic List<String> getAllowedLuLuRelationTypesByLuiId(String luiId,\n\t\t\tString relatedLuiId);\n\tpublic List<String> getAllowedLuLuRelationTypesByCluId(String cluId,\n\t\t\tString relatedCluId);\n\tpublic List<CluResult> getCluResultByClu(String cluId);\n public List<CluResult> getCluResultsByClus(List<String> cluIds);\n\t\n\tpublic Clu getLatestCluVersion(String cluVersionIndId);\n\tpublic Clu getCurrentCluVersion(String cluVersionIndId);\n\tpublic VersionDisplayInfo getCurrentCluVersionInfo(String cluVersionIndId, String objectTypeURI);\n\tpublic List<VersionDisplayInfo> getVersionsInDateRange(String refObjectId,\n\t\t\tString refObjectTypeURI, Date from, Date to);\n\tpublic List<VersionDisplayInfo> getVersions(String refObjectId,\n\t\t\tString refObjectTypeURI);\n\tpublic VersionDisplayInfo getVersionBySequenceNumber(String refObjectId,\n\t\t\tString refObjectTypeURI, Long sequence);\n\tpublic VersionDisplayInfo getFirstVersion(String refObjectId,\n\t\t\tString refObjectTypeURI);\n\tpublic VersionDisplayInfo getLatestVersion(String refObjectId,\n\t\t\tString refObjectTypeURI);\n\tpublic VersionDisplayInfo getCurrentVersionOnDate(String refObjectId,\n\t\t\tString refObjectTypeURI, Date date);\n\tpublic List<CluPublication> getCluPublicationsByType(\n\t\t\tString luPublicationTypeKey);\n\tpublic List<CluPublication> getCluPublicationsByCluId(String cluId);\n\tpublic List<CluSet> getCluSetsByCluVersionIndId(List<String> cluVersionIndId);\n\tpublic List<CluSet> getAllDynamicCluSets();\n\tList<Clu> getClusByRelatedCluId(String relatedCluId,\n\t\t\tString luLuRelationTypeId);\n\tpublic List<Clu> getCrossListedClusByCodes(List<String> crossListedCodes);\n\n}", "public interface TestScoreDAO\nextends BaseIbatisDAO<TestScore> {\n}", "public interface ItemSettlementConditionDAO {\n List<ItemSettlementConditionDO> queryItemSettlementCondition(ItemSettlementConditionQTO itemSettlementConditionQTO);\n\n Long deleteItemSettlementConditionByConfig(Long id, String bizCode);\n\n Object addItemSettlementCondition(ItemSettlementConditionDO itemSettlementConditionDO);\n}", "public interface IQuizDAO {\n\n public Quiz getQuizById(Long id);\n\n public void insertQuiz(String name, User user, Date date);\n\n public List<Quiz> getQuizesByUser(User user);\n\n public void updateQuizNameById(Long id, String name);\n\n public List<Quiz> getQuizesByName(String name);\n}", "public interface SimpleCityDao {\n\n void insertWithIdGenerate(SimpleCity simpleCity);\n\n void insert(SimpleCity simpleCity);\n\n void update(SimpleCity simpleCity);\n\n void deleteById(Long id);\n\n SimpleCity findById(Long id);\n}", "public interface DaoRegion {\n Long create(Region region);\n Region read(Long id);\n void update(Region region);\n void delete (Region region);\n List<Region> findAll();\n List<Region> findRegionByName(Region region);\n List<Region> findRegionById(Long id1, Long id2);\n List<Region> RegionPortion(int id, int size);\n}", "public interface IITDIndexDAO {\n\n /**\n * Inserts a list of itdIndices into the persistent storage.\n *\n * @param itdIndices A list of {@link ScripITD} instances.\n *\n * @return The number of successful inserts.\n *\n * @throws DataAccessException In case an exception is encountered during\n * the data access operation.\n */\n int insert( final List<ScripITD> itdIndices )\n throws DataAccessException ;\n\n /**\n * Inserts an instance of ScripITD into the persistent storage.\n *\n * @param itdIndices A list of {@link ScripITD} instances.\n *\n * @return The number of successful inserts.\n *\n * @throws DataAccessException In case an exception is encountered during\n * the data access operation.\n */\n int insert( final ScripITD itdIndex )\n throws DataAccessException ;\n\n /**\n * Returns a list of the latest Scrip ITD instances for all the symbols\n * for whom the intra day data is available.\n *\n * @return A list of {@link ScripITD}. If there are no intra day data for\n * the specified date, an empty list is returned, never null.\n *\n * @throws DataAccessException In case an exception is encountered during\n * the data access operation.\n */\n List<ScripITD> getLatestScripITD() throws DataAccessException ;\n\n /**\n * Returns a list of all the intra day ITD markers for the specified symbol\n * for the specified date.\n *\n * @param symbol The NSE symbol for which the ITD data has to be fetched\n * @param date The date for which the data has to be fetched.\n *\n * @return A list of {@link ScripITD}. If there are no intra day data for\n * the specified date, an empty list is returned, never null.\n *\n * @throws DataAccessException In case an exception is encountered during\n * the data access operation.\n */\n List<ScripITD> getScripITD( final String symbol, final Date date )\n throws DataAccessException ;\n\n /**\n * Returns a list of all the intra day ITD markers for the specified symbol\n * and the date range specified.\n *\n * @param symbol The NSE symbol for which the ITD data has to be fetched\n * @param start The start date of the date range\n * @param end The end date of the date range\n *\n * @return A list of {@link ScripITD}. If there are no intra day data for\n * the specified date, an empty list is returned, never null.\n *\n * @throws DataAccessException In case an exception is encountered during\n * the data access operation.\n */\n List<ScripITD> getScripITD( final String symbol, final Date start,\n final Date end )\n throws DataAccessException ;\n\n /**\n * Moves all records in the SCRIP_ITD_DATA table which have a date attribute\n * which is in the past, relative to the boundary date passed as parameter.\n * Please note that this operation does not delete the data from the live\n * table. If you want to delete the live data which has been archived, you\n * need to call on the deleteLiveRecords operation within the same transaction\n * boundary.\n *\n * @param boundary The date which implies that any record with date in the\n * past as compared to the boundary will be archived.\n *\n * @throws DataAccessException If an exception is encountered during the\n * archival process.\n */\n void archiveLiveRecords( final Date boundary )\n throws DataAccessException ;\n\n /**\n * Deletes all records in the SCRIP_ITD_DATA table which have a date attribute\n * which is in the past, relative to the boundary date passed as parameter.\n * Please note that this operation does not copy the data from the live\n * table to the archive table. If you want to copy the live data which is\n * about to be deleted, you need to call on the archiveLiveRecords\n * before this call, within the same transaction boundary.\n *\n * @param boundary The date which implies that any record with date in the\n * past as compared to the boundary will be deleted.\n *\n * @throws DataAccessException If an exception is encountered during the\n * archival process.\n */\n void deleteLiveRecords( final Date boundary )\n throws DataAccessException ;\n}", "public interface SeckillDao {\n\n /**\n * 减库存\n * @param seckillId\n * @param killTime\n * @return\n */\n public int reduceNumber(@Param(\"seckillId\") long seckillId,@Param(\"killTime\") Date killTime);\n\n /**\n * 根据seckillId查询仓库产品\n * @param seckillId\n * @return\n */\n public Seckill queryById(long seckillId);\n\n /**\n * 根据偏移量查询仓库产品集合\n * @param offset\n * @param limit\n * @return\n */\n public List<Seckill> querySeckillList(@Param(\"offset\") int offset,@Param(\"limit\") int limit);\n\n\n\n}", "public interface EntradaPontosDAO extends EntradaPontosSQL{\n\n}", "public interface Sqlable {\n\n Map<String, Object> getSqlMap();\n\n String getTableName();\n\n}", "public interface BaseSectionDAO {\n void addSectionInfo(Section section) throws DAOException;\n void updateSectionInfo(Section section) throws DAOException;\n void deleteSection(long sectionId) throws DAOException;\n ArrayList<Section> showSections() throws DAOException;\n ArrayList<Section> showSectionsByConferenceId(long conferenceId) throws DAOException;\n Section findSectionById(long sectionId) throws DAOException;\n Section findSectionByName (String sectionName) throws DAOException;\n}", "public interface DaoFactory {\r\n\r\n\t/**\r\n\t * Returns objects for access to account table.\r\n\t * \r\n\t * @return DAO for account table.\r\n\t */\r\n\tpublic GenericDao<Account> getAccountDao();\r\n\r\n\t/**\r\n\t * Returns objects for access to client table.\r\n\t * \r\n\t * @return DAO for client table.\r\n\t */\r\n\tpublic GenericDao<Client> getClientDao();\r\n\r\n\t/**\r\n\t * Returns objects for access to payment table.\r\n\t * \r\n\t * @return DAO for payment table.\r\n\t */\r\n\tpublic GenericDao<Payment> getPaymentDao();\r\n\r\n\t/**\r\n\t * Returns objects for access to credit card table.\r\n\t * \r\n\t * @return DAO for credit card table.\r\n\t */\r\n\tpublic GenericDao<CreditCard> getCreditCardDao();\r\n\r\n\t/**\r\n\t * Returns objects for access to authorization table.\r\n\t * \r\n\t * @return DAO for authorization table.\r\n\t */\r\n\tpublic GenericDao<Autorization> getAutorizationDao();\r\n\r\n\t/**\r\n\t * This method returns connection for accessing to database.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Connection getConnection();\r\n\r\n}", "public interface AddressDao extends SSJGenericDao<Address> {\r\n\r\n}", "public interface SGroupAsIndexQueryDAO extends TableDAO<SGroupAsDO> { \n /**\n * 根据以下索引字段查询实体对象集\n * @param gid 抽象类型id\n * @param sortField 排序字段,传入null时表示不写入sql\n * @param isDesc 排序为降序\n * @param offset 其实位置\n * @param limit 返回条数\n * @return\n */\n public List<SGroupAsDO> queryByGid(@Param(\"gid\") long gid,@Param(\"sortField\") String sortField,@Param(\"isDesc\") boolean isDesc,@Param(\"offset\") int offset,@Param(\"limit\") int limit);\n\r\n\r /**\n * 根据以下索引字段查询实体对象集\n * @param gid 抽象类型id\n * @param asid \n * @param sortField 排序字段,传入null时表示不写入sql\n * @param isDesc 排序为降序\n * @param offset 其实位置\n * @param limit 返回条数\n * @return\n */\n public List<SGroupAsDO> queryByGidAndAsid(@Param(\"gid\") long gid, @Param(\"asid\") long asid,@Param(\"sortField\") String sortField,@Param(\"isDesc\") boolean isDesc,@Param(\"offset\") int offset,@Param(\"limit\") int limit);\n\r\n\r /**\n * 根据以下索引字段计算count\n * @param gid 抽象类型id\n * @return\n */\n public long countByGid(@Param(\"gid\") long gid);\n\r\n\r /**\n * 根据以下索引字段计算count\n * @param gid 抽象类型id\n * @param asid \n * @return\n */\n public long countByGidAndAsid(@Param(\"gid\") long gid, @Param(\"asid\") long asid);\n\r\n\r}", "public interface Dao {\n void crud();\n}", "public interface DAOCompanies {\n\n void create(Company company);\n boolean update (int companyId, Company company);\n Company read(int companyId);\n boolean delete(int companyId);\n void addCompanyToDeveloper(int compId, int devId);\n\n}", "public interface VillageDao extends CrudDao<Village> {\n Village getById(String id);\n Village getByCoordinates(short xCoort, short yCoord);\n Village getByName(String name);\n}", "public interface IKindOfDaoDao {\n\n\t/**\n\t * Create a new element.\n\t * @param exempleDirect Element to create.\n\t \t * @throws DaoException If a DAO problem occurs.\n\t */\n\tpublic void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;\n\n\t/**\n\t * Update an existing element.\n\t * @param exempleDirect Element to update. \n * If the element has an id, it may use it.\n \t * @throws DaoException If a DAO problem occurs.\n\t */\n\tpublic void updateExempleDirect(ExempleDirect exempleDirect) throws DaoException;\n\n\t/**\n\t * Delete an element.\n * Only id can be used to find which element must be deleted.\n\t * @param exempleDirect Element which will be delete. \n\t \t * @throws DaoException If a DAO problem occurs.\n\t */\n\tpublic void deleteExempleDirect(ExempleDirect exempleDirect) throws DaoException;\n\n\t/**\n\t * Find all elements.\n\t * @return A list with all elements, without any filter.\n\t \t * @throws DaoException If a DAO problem occurs.\n\t */\n\tpublic Collection<ExempleDirect> findAllExempleDirects() throws DaoException;\n\n\t/**\n\t * Find one entity by its primary key.\n * @param id The PK of the entity.\n\t * @return The entity found.\n\t \t * @throws DaoException If a DAO problem occurs.\n\t */\n\tpublic ExempleDirect findExempleDirectById(String id) throws DaoException;\n\n\t//Start of user code for technicals dao access api\n\t//End of user code\n}", "public interface ShopcartDao {\n //添加商品到购物车\n int addProductToCartBackId(Shopcart shopcart);\n //判断某个商品是否已经在购物车\n Shopcart findShopcartByCustomerIdAndProductId(Integer customerId,Integer productId);\n //通过购物车id更新信息(在原来基础上增加)\n boolean updateShopcartById(Integer productCartCount,Integer id);\n //通过购物车id更新信息(在原来基础上增加或者是减少)\n boolean updateShopcartAddAndDecrease(Integer count,Integer id);\n //清空购物车\n boolean deleteShopcartByCustomerId(Integer customerId);\n //删除购物车某一条记录\n boolean deleteShopcartByShopcartId(Integer shopcartId);\n}", "public interface IDBPOI {\n\t/** Name of the database */\n static final String DB_NAME = \"discoveryRallye\";\n \n /** Name of the table */\n static final String DB_TABLE_POIS = \"pois\";\n \n /** version number of the database */\n static final int DB_VERSION \t\t= 1;\n \n /** name of the id column */\n static final String ATTR_ID = \"_id\";\n \n /** name of the name column */\n static final String ATTR_NAME = \"name\";\n \n /** name of the longitude column */\n static final String ATTR_LON = \"longitude\";\n \n /** name of the latitude column */\n static final String ATTR_LAT = \"latitude\";\n}", "public interface ExampleDao {\r\n\r\n /**\r\n * 列出所有测\r\n * @return\r\n */\r\n public List<Example> findExamples() ;\r\n\r\n /**\r\n * 取得总记录数\r\n * @return 记录数量\r\n */\r\n int getExamplesCount();\r\n\r\n /**\r\n * 取得总记录数\r\n * @return 记录数量\r\n */\r\n int getExamplesCount(Query query);\r\n\r\n int getExamplesCount1(TimeQuery query);\r\n\r\n /**\r\n * 取得相关的记录数\r\n * @param query 查询参数\r\n * @return 相关记录\r\n */\r\n List<Example> findExamplesPage(Query query);\r\n\r\n List<Example>findExamplesPage1(TimeQuery query);\r\n\r\n /**\r\n * 创建对象\r\n * @param example\r\n */\r\n void createExample(Example example);\r\n\r\n List<Example> findExamplesByTime(String startDate,String endDate);\r\n\r\n\r\n List<Example> findExamplesByTime1(TimeQuery query);\r\n}", "public interface DemoDao extends BaseDao<Demo> {\n}", "public interface SoundDao {\n public List<Sound> selectAllSound() throws DBSystemException;\n public void insertSound(String idUser, String NameSound) throws DBSystemException;\n public List<Sound> selectSoundByUserId(String idUser) throws DBSystemException;\n}", "public interface SkillDao {\n \n /**\n * gets untrained skills.\n * convenience method. can use get all skills and iterate through and \n * manually check the {@link Skill#isUsableUntrained() isUsableUntrained flag}.\n */\n Collection<Skill> getUntrainedSkills();\n\n /**\n * gets all skills\n * @return\n */\n Collection<Skill> getSkills();\n\n /**\n * saves a new skill.\n * @param skill skill to save\n * @return\n */\n Skill saveSkill(Skill skill);\n\n /**\n * deletes a skill.\n * @param skill\n */\n void deleteSkill(Skill skill);\n\n /**\n * commit changes to a skill.\n * @param skill\n */\n void updateSkill(Skill skill);\n\n /**\n * Get a skill by name.\n * @param name\n * @return\n */\n Skill getSkill(String name);\n\n\tCollection<Skill> searchSkills(String query);\n}", "public interface ShardedCounterDao extends BaseDao {\n /**\n * Get shards by parent key.\n * \n * @param parentKey String\n * @return List<ShardedCounter>\n */\n public List<ShardedCounter> getShardsByParentKey(String parentKey);\n\n /**\n * \n * Get shards by parent key and shard number.\n * \n * @param parentKey String primary key of parent object for which sharded\n * counter stores data.\n * @param shardNum int shardnumber for particular parent key\n * @return List<ShardedCounter> list of ShardedCounter.\n */\n public List<ShardedCounter> getShardsByParentKeyAndShardNum(String parentKey, int shardNum);\n\n /**\n * Create or update ShardedCounter\n * \n * @param shardedCounter\n * @return updated ShardedCounter instance.\n */\n public ShardedCounter createOrUpdateShardedCounter(ShardedCounter shardedCounter);\n\n}", "public interface CashRegisterDAO {\n public void addCashRegister(CashRegister cashRegister ) throws SQLException;\n public void updateCashRegister(CashRegister cashRegister ) throws SQLException;\n public CashRegister getCashRegisterById(Long cashregister_id) throws SQLException;\n public Collection getAllCashRegister() throws SQLException;\n public void deleteCashRegister(CashRegister cashRegister) throws SQLException;\n}", "public interface DeptDao {\n //动态查询\n @SelectProvider(type=DeptDynaSqlProvider.class,method = \"selectWithParam\")\n List<Dept> selectByPage(Map<String,Object> params);\n @SelectProvider(type=DeptDynaSqlProvider.class,method = \"count\")\n Integer count(Map<String,Object> params);\n @Select(\"select * from \"+DEPTTABLE+\" \")\n List<Dept> selectAllDept();\n @Select(\"select * from \"+DEPTTABLE+\" where id = #{id}\")\n Dept selectById(int id);\n @Delete(\"delete from \"+DEPTTABLE+\" where id = #{id}\")\n void deleteById(int id);\n //动态插入部门\n @InsertProvider(type=DeptDynaSqlProvider.class,method = \"insertDept\")\n void save(Dept dept);\n //动态修改部门\n @UpdateProvider(type=DeptDynaSqlProvider.class,method = \"updateDept\")\n void update(Dept dept);\n}", "public interface BaseDao {\n\n int getTotalCount(SelectArgs selectArgs);\n\n List<Map<String,Object>> queryList(SelectArgs selectArgs);\n\n int addRecord (InsertArgs insertArgs);\n}", "public ServiceDAO(){\n\t\t\n\t\tString[] tables = new String[]{\"CUSTOMERS\",\"PRODUCTS\"};\n\t\tfor(String table:tables){\n\t\t\tif(!checkIfDBExists(table)){\n\t\t\t\ttry{\n\t\t\t\t\tnew DerbyDataLoader().loadDataFor(table);\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\tlogger.error(\"Error Loading the Data into the Derby\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static String daoInterface() {\r\n return \"com.ctfo.upp.accountservice.account.dao.UnbalanceDetailWithBusPlatformDAO\";\r\n }", "public interface InvMainDao extends GenericDao<InvMain, String> {\n\tpublic JQueryPager getInvMainCriteria(final JQueryPager paginatedList,List<PropertyFilter> filters);\n\tpublic boolean checkAllInitInvMainConfirm(String orgCode,String copyCode,String kjYear,String storeId);\n\tpublic InvMain getInvMainByNo(String no, String orgCode, String copyCode);\n\tpublic boolean checkAllDocsInStore(String storeId,String orgCode,String copyCode,String kjYear);\n\tpublic void deleteInvDictAccount(String storeId, String orgCode,String copyCode,String kjYear);\n\n}", "public interface DAO {\n\n /* -------------------------------------------------------------------------------\n Helper method to set parser-specific override configuration parameters\n ------------------------------------------------------------------------------- */\n public void setConfiguration(Properties props);\n\n public Properties getConfiguration();\n\n /* -------------------------------------------------------------------------------\n Methods for REPORT FORMAT generation\n ------------------------------------------------------------------------------- */\n\n /**\n * MANDATORY - Must return some experiment title. In case no title\n * is provided by the search enginge's result file, a default title\n * should be returned.\n * @return \n */\n public String getExperimentTitle() throws InvalidFormatException;\n\n /**\n * OPTIONAL - Should return null in case this option is not supported\n * by the search engine.\n * @return \n */\n public String getExperimentShortLabel();\n\n /**\n * MANDATORY - As a minimal requirement the date of search and the original\n * MS data file format should be set.\n * @return \n */\n public Param getExperimentParams() throws InvalidFormatException;\n\n /**\n * OPTIONAL - Should return null in case it's not supported by the search engine.\n * @return \n */\n public String getSampleName();\n\n /**\n * OPTIONAL - Should return null in case it's not supported by the search engine.\n * @return \n */\n public String getSampleComment();\n\n /**\n * MANDATORY - As a minimal requirement the sample's species should be returned.\n * @return \n */\n public Param getSampleParams() throws InvalidFormatException;\n\n /**\n * MANDATORY - Represents the input file for the conversion.\n * @return \n */\n public SourceFile getSourceFile() throws InvalidFormatException;\n\n /**\n * OPTIONAL - Should return null in case it's not supported by the search engine.\n * @return \n */\n public Collection<Contact> getContacts();\n\n /**\n * OPTIONAL - Should return null in case it's not supported by the search engine.\n * @return \n */\n public InstrumentDescription getInstrument();\n\n /**\n * MANDATORY - The search engine's name and version.\n * @return \n */\n public Software getSoftware() throws InvalidFormatException;\n\n /**\n * OPTIONAL - Should return null in case it's not supported by the search engine.\n * @return \n */\n public Param getProcessingMethod();\n\n /**\n * OPTIONAL - Should return null in case it's not supported by the search engine.\n * @return \n */\n public Protocol getProtocol();\n\n /**\n * OPTIONAL - Should return null in case it's not supported by the search engine.\n * @return \n */\n public Collection<Reference> getReferences();\n\n //these will be written to the FASTA attributes and will be used in the FASTA section\n // if there are multiple sequence files, the search database name will be a string-delimited\n // concatenation of all the names. Idem for version.\n\n /**\n * MANDATORY - these will be written to the FASTA attributes and will be used\n * in the FASTA section if there are multiple sequence files, the search database\n * name will be a string-delimited concatenation of all the names. Idem for version.\n * @return \n */\n public String getSearchDatabaseName() throws InvalidFormatException;\n\n /**\n * MANDATORY - see getSearchDatabaseName\n * @return \n */\n public String getSearchDatabaseVersion() throws InvalidFormatException;\n\n /**\n * MANDATORY - Should return a collection of PTMs representing all PTMs that are used\n * in this search. Collection can be empty but not null.\n * @return \n */\n public Collection<PTM> getPTMs() throws InvalidFormatException;\n\n /**\n * MANDATORY - Should return a collection of DatabaseMappings that contain all search database names and versions\n * used in this search. Collection can be empty but not null.\n * @return \n */\n public Collection<DatabaseMapping> getDatabaseMappings() throws InvalidFormatException;\n\n /**\n * MANDATORY - Must return a valid SearchResultIdenfier object\n * @return \n */\n public SearchResultIdentifier getSearchResultIdentifier() throws InvalidFormatException;\n\n /**\n * MANDATORY - Must return a non-null list of all CV lookups used by the DAO\n * @return \n */\n public Collection<CV> getCvLookup() throws InvalidFormatException;\n\n /**\n * MANDATORY - Must returns a count of the number of spectra. if onlyIdentified is true, return only count\n * of identified spectra. If false, return count of all spectra.\n * @return \n */\n public int getSpectrumCount(boolean onlyIdentified) throws InvalidFormatException;\n\n /* -------------------------------------------------------------------------------\n Methods for XML output\n ------------------------------------------------------------------------------- */\n\n /**\n * returns an iterator for spectra in the source file - if onlyIdentified is true, return only identified\n * spectra. If false, return all spectra\n * @return \n */\n\n public Iterator<Spectrum> getSpectrumIterator(boolean onlyIdentified) throws InvalidFormatException;\n\n /**\n * must return -1 if no spectrum ref found\n * @return \n */\n public int getSpectrumReferenceForPeptideUID(String peptideUID) throws InvalidFormatException;\n\n /**\n * This function provides random access to the identifications.\n * It is only used in scan mode!\n *\n * @param identificationUID\n * @return\n * @throws uk.ac.ebi.pride.tools.converter.utils.InvalidFormatException\n */\n public Identification getIdentificationByUID(String identificationUID) throws InvalidFormatException;\n\n\n /* -------------------------------------------------------------------------------\n Shared methods\n ------------------------------------------------------------------------------- */\n\n /**\n * This method will return an iterator that will return individual identification objects.\n * In prescanMode the complete Identification and Peptide objects should be returned\n * <b>without</b> the peptide's fragment ion annotation. Peptide items have to contain\n * all the PTMs. <br>\n * In conversionMode (= !prescanMode) Peptide and Protein objects should <b>NOT</b> contain\n * any additional parameters and peptidePTMs should <b>NOT</b> be included. Peptide\n * FragmentIon annotations are mandatory (if applicable) in scanMode.\n * The identification iterator may return null for an identification\n * @return \n */\n public Iterator<Identification> getIdentificationIterator(boolean prescanMode) throws InvalidFormatException;\n /**\n * Sets the external spectrum file to the given filename. This function\n * is ignored by DAOs that do not require external spectrum files.\n * @param filename\n */\n public void setExternalSpectrumFile(String filename);\n\n /*\n These handlers need to be passed to the IdentificationIterator so that the identification objects can be properly\n decorated with the requested information, if available.\n */\n\n}", "public interface DUserDao {\n /**\n * 根据手机和密码,查询返回病患信息\n * 若不存在返回空,若密码不对返回id=0的医生\n * @param phone 医生手机\n * @return\n */\n DUser queryByPhone(@Param(\"phone\") String phone);\n\n /**\n * 新建一个医生用户\n * @param dUser\n * @return\n */\n boolean save(DUser dUser);\n\n /**\n * 查询所有的医生用户\n * @return\n */\n ArrayList<DUser> queryAll();\n\n /**\n * 更新医生\n * @param dUser\n * @return\n */\n boolean updateDUser(DUser dUser);\n}", "public interface SysConfigDao extends BaseDao<SysConfig, String> {\n\t//SysConfig findByCfPlazaNoAndCfConfigNameAndCfPCNo(String cfPlazaNo, String cfConfigName, String cfPCNo);\n\n SysConfig findByCfConfigName(String cfConfigName);\n}", "public interface SpeedFactorDao extends SqlMapDao<SpeedFactor, HashMap> {\n}", "@Override\r\n\tpublic void createQuotes(iDAO interfaceDAO)\r\n\t\t\tthrows SQLException {\n\t\t\r\n\t}", "public interface IProductDao extends IBaseDao<Product>{\n\n /**\n * 根据系列id查找该系列对应的静态页面的Url\n *\n * @param sid 系列id\n * @return 对应系列id的静态页面的Url\n */\n Series findSeriesBySid(Long sid);\n\n List<Product> findProductListBySid(Long sid);\n\n List<Product> findProductList(PageBean pageBean);\n}", "public interface FeedbackOptionDAO extends DAO{\r\n \r\n}", "@Mapper\npublic interface QuestionDAO {\n String TABLE_NAME = \" question \";\n String INSERT_FIELDS = \" title, content, created_date, user_id, comment_count \";\n String SELECT_FIELDS = \" id, \" + INSERT_FIELDS;\n\n @Insert({\"insert into \", TABLE_NAME, \"(\", INSERT_FIELDS,\n \") values (#{title},#{content},#{createdDate},#{userId},#{commentCount})\"})\n int addQuestion(Question question);\n\n // 使用 xml 配置文件进行 数据库查询语句与程序接口的映射。\n // 对应的 QuestionDAO.xml 文件位于 resources 文件夹 -》com.mattLearn.dao 文件夹中。\n List<Question> selectLatestQuestions(@Param(\"userId\") int userId, @Param(\"offset\") int offset,\n @Param(\"limit\") int limit);\n\n @Select({\"select \", SELECT_FIELDS, \" from \", TABLE_NAME, \" where id=#{id}\"})\n Question SelectById(int id);\n\n @Update(\" update question set comment_count=#{commentCount} where id = #{id}\")\n int updateCommentCount(@Param(\"commentCount\") int commentCount,\n @Param(\"id\") int id);\n\n}", "public interface SliderDao {\n void addSlider(Slider slider);\n\n void editSlider(Slider slider);\n\n List<Slider> getAllSlider();\n\n Slider getSliderById(int sliderId);\n}", "public interface RegionPlaceDAO {\r\n\tpublic List<RegionPlace> viewRegionPlace() throws SQLException, ClassNotFoundException, NamingException;\r\n\tpublic RegionPlace selectRegionPlace(RegionPlace region) throws SQLException, ClassNotFoundException, NamingException;\r\n\tpublic RegionPlace getRegionPlace(TypePlace typePlace) throws SQLException, ClassNotFoundException, NamingException;\r\n}", "public ScaleDefDAOImpl() {\r\n super();\r\n }", "public interface SessionDao {\n\n /**\n * Returns list of sessions\n *\n * @return List<Session>\n */\n List<Session> getAllSessions();\n\n /**\n * Returns session by its id\n *\n * @param id Session\n * @return Session\n */\n Session get(int id);\n}", "public interface OrdersDao extends BaseDao<Orders> {\n public void updateANT(String address,String name,String telephone,String oid);\n\n}", "@MyBatisDao\npublic interface ContnDao extends BaseDao<Contn> {\n\n Contn get(@Param(\"id\") int id);\n\n Contn getByContnNo(@Param(\"contnNo\") String contnNo);\n}", "public abstract DbDAO AccessToDAO();" ]
[ "0.62690896", "0.61076367", "0.6061479", "0.5983365", "0.5963352", "0.5906753", "0.58938694", "0.58832824", "0.5855347", "0.5852033", "0.5839349", "0.58168316", "0.5806537", "0.577273", "0.5747952", "0.57415956", "0.57362866", "0.57296324", "0.5721212", "0.57109356", "0.57049805", "0.5698023", "0.5682597", "0.56819886", "0.5668778", "0.56621015", "0.56538856", "0.56403744", "0.5638388", "0.5632292", "0.56123036", "0.56058216", "0.5599414", "0.5598005", "0.55955005", "0.55883837", "0.55877644", "0.5587532", "0.5586982", "0.5582215", "0.5562437", "0.55579585", "0.5555581", "0.5554294", "0.55538994", "0.5551845", "0.55479985", "0.5542981", "0.55283517", "0.5523821", "0.5523322", "0.5522862", "0.5517115", "0.55133647", "0.5505259", "0.5502516", "0.550242", "0.54966915", "0.54954416", "0.5494724", "0.549297", "0.54906803", "0.5475137", "0.54720217", "0.54681957", "0.5465696", "0.545493", "0.54424256", "0.54417646", "0.54297614", "0.54281896", "0.54244566", "0.54207605", "0.5419421", "0.5418876", "0.54153824", "0.54134923", "0.54049504", "0.54021734", "0.5400702", "0.5400316", "0.53987616", "0.53972095", "0.5395891", "0.53944165", "0.53926647", "0.5389907", "0.5388785", "0.53872126", "0.5384638", "0.53831655", "0.53789234", "0.53782374", "0.5372335", "0.53722864", "0.5368915", "0.5359618", "0.5347631", "0.53429514", "0.53407365" ]
0.74712056
0
Insert one DcSquadDO object to DB table dc_squad, return primary key The sql statement for this operation is insert into dc_squad(squad_name,squad_desc,axiser,cubers,followers,investors,status,gmt_create,gmt_modify,attention) values (?, ?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?)
public long insert(DcSquadDO dcSquad) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int update(DcSquadDO dcSquad) throws DataAccessException;", "public void guardarDietaComida(DietaComida dietaComida){\r\n try {\r\n \r\n String sql = \"INSERT INTO dietacomida (idDieta,idComida) VALUES ( ? , ? );\";\r\n \r\n PreparedStatement ps = con.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\r\n ps.setInt(1, dietaComida.getIdDieta());\r\n ps.setInt(2, dietaComida.getIdComida());\r\n \r\n ps.executeQuery();\r\n \r\n ResultSet rs = ps.getGeneratedKeys();\r\n\r\n /* if (rs.next()) {\r\n dietaComida.setId(rs.getInt(1));\r\n } else {\r\n System.out.println(\"No se pudo obtener el id luego de insertar una DietaComida\");\r\n }*/\r\n ps.close();\r\n \r\n } catch (SQLException ex) {\r\n System.out.println(\"Error al insertar una DietaComida \" + ex.getMessage());\r\n }\r\n }", "public interface DcSquadDAO {\n /**\n * Insert one <tt>DcSquadDO</tt> object to DB table <tt>dc_squad</tt>, return primary key\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>insert into dc_squad(squad_name,squad_desc,axiser,cubers,followers,investors,status,gmt_create,gmt_modify,attention) values (?, ?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?)</tt>\n *\n *\t@param dcSquad\n *\t@return long\n *\t@throws DataAccessException\n */\n public long insert(DcSquadDO dcSquad) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad</tt>\n *\n *\t@return List<DcSquadDO>\n *\t@throws DataAccessException\n */\n public List<DcSquadDO> load() throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where (id = ?)</tt>\n *\n *\t@param id\n *\t@return DcSquadDO\n *\t@throws DataAccessException\n */\n public DcSquadDO loadById(long id) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where (squad_name = ?)</tt>\n *\n *\t@param squadName\n *\t@return DcSquadDO\n *\t@throws DataAccessException\n */\n public DcSquadDO loadByName(String squadName) throws DataAccessException;\n\n /**\n * Update DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>update dc_squad set squad_name=?, squad_desc=?, axiser=?, cubers=?, followers=?, investors=?, status=?, gmt_modify=CURRENT_TIMESTAMP where (id = ?)</tt>\n *\n *\t@param dcSquad\n *\t@return int\n *\t@throws DataAccessException\n */\n public int update(DcSquadDO dcSquad) throws DataAccessException;\n\n /**\n * Delete records from DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>delete from dc_squad where (id = ?)</tt>\n *\n *\t@param id\n *\t@return int\n *\t@throws DataAccessException\n */\n public int deleteById(long id) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where ((squad_name = ?) AND (axiser = ?) AND (cubers = ?) AND (followers = ?) AND (investors = ?) AND (status = ?) AND (gmt_create = ?) AND (gmt_modify = ?))</tt>\n *\n *\t@param squadName\n *\t@param axiser\n *\t@param cubers\n *\t@param followers\n *\t@param investors\n *\t@param status\n *\t@param gmtCreate\n *\t@param gmtModify\n *\t@param pageSize\n *\t@param pageNum\n *\t@return PageList\n *\t@throws DataAccessException\n */\n public PageList query(String squadName, String axiser, String cubers, String followers,\n String investors, String status, Date gmtCreate, Date gmtModify,\n int pageSize, int pageNum) throws DataAccessException;\n\n /**\n * Update DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>update dc_squad set attention=? where (id = ?)</tt>\n *\n *\t@param attention\n *\t@param id\n *\t@return int\n *\t@throws DataAccessException\n */\n public int updateAttention(long attention, long id) throws DataAccessException;\n\n}", "int insert(R_dept_trade record);", "@Override\r\n public long insertRecord(Object o) throws SQLException {\r\n\r\n String sql = \"insert into patient (LastName, FirstName, Diagnosis, AdmissionDate, ReleaseDate) values (?,?,?,?,?)\";\r\n long result = -1;\r\n PatientBean pb;\r\n\r\n try (PreparedStatement pStatement = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);) {\r\n\r\n pb = (PatientBean) o;\r\n\r\n pStatement.setString(1, pb.getLastName());\r\n pStatement.setString(2, pb.getFirstName());\r\n pStatement.setString(3, pb.getDiagnosis());\r\n pStatement.setTimestamp(4, pb.getAdmissionDate());\r\n pStatement.setTimestamp(5, pb.getReleaseDate());\r\n\r\n pStatement.executeUpdate();\r\n\r\n // Retrieve new primary key\r\n try (ResultSet rs = pStatement.getGeneratedKeys()) {\r\n if (rs.next()) {\r\n result = rs.getLong(1);\r\n }\r\n }\r\n }\r\n\r\n logger.info(\"New patient record has been added: \" + pb.getFirstName() + \" \" + pb.getLastName() + \", new patient id: \" + result);\r\n\r\n return result;\r\n }", "int insert(SysId record);", "int insert(TCpySpouse record);", "int insert(Disease record);", "public DcSquadDO loadByName(String squadName) throws DataAccessException;", "@Override\n\tpublic int insert(StuXK sxk) {\n\t\tString sql=\"insert into T_CourseSchedule(StudentID,TeachTaskID,ScoreOne,ScoreTwo,ScoreThree,TotalScore) values(?,?,?,?,?,?)\";\n\t\tObject[] parmas={sxk.getStudentID(),sxk.getTeachTaskID(),sxk.getScoreOne(),sxk.getScoreTwo(),sxk.getScoreThree(),sxk.getTotalScore()};\t\t\n\t\tBaseDAO dao=new BaseDAO();\t\t\n\t\treturn dao.insert(sql, parmas);\n\t}", "int insert(ScPartyMember record);", "int insert(PmKeyDbObj record);", "void insert(OrderPreferential record) throws SQLException;", "public int insert(int raceID, int lat, int lng, double spd, int tmStmp, String notes, int usr)\n {\n String timeStamp = new Timestamp(Calendar.getInstance().getTimeInMillis()).toString();\n ContentValues values = new ContentValues();\n\n values.put(FKEY, raceID);\n values.put(LATITUDE, lat);\n values.put(LONGITUDE, lng);\n values.put(SPEED, spd);\n values.put(LTS, Integer.toString(tmStmp));\n values.put(NOTES, notes);\n values.put(EUSR, usr);\n values.put(EDATE, timeStamp);\n values.put(UUSR, usr);\n values.put(UDATE, timeStamp);\n\n return (int) db.insert(TABLENAME, null, values);\n }", "int insert(ItemStockDO record);", "int insert(ItemStockDO record);", "public int addPurchase(int PID, int SID, double price, String units, int quality, String timestamp) {\n //TODO: ISSUE # implement this method\n ContentValues cv=new ContentValues();\n cv.put(DBHelper.PURCHASEHISTORY_PID, PID);\n cv.put(DBHelper.PURCHASEHISTORY_SID, SID);\n cv.put(DBHelper.PURCHASEHISTORY_PRICE, price);\n cv.put(DBHelper.PURCHASEHISTORY_UNIT, units);\n cv.put(DBHelper.PURCHASEHISTORY_QUALITY, quality);\n cv.put(DBHelper.PURCHASEHISTORY_DATE, timestamp);\n\n Log.d(DatabaseHelper.class.getName(), \"addPurchase: Getting writable database\");\n\n SQLiteDatabase db = DBHelper.getWritableDatabase();\n long _id = db.insert(DBHelper.TABLE_PURCHASEHISTORY, null, cv);\n db.close();\n\n\n Log.i(DatabaseHelper.class.getName(), \"addPurchase: autoincrement _id='\" + _id + \"' pid '\" + PID + \"' sid='\" + SID + \"' price='\" + price + \"' units='\" + units +\n \"' quality='\" + quality + \"' time='\" + timestamp + \"' into PurchaseHistory table.\");\n\n return (int) _id;\n }", "public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;", "@Insert({\n \"insert into t_apikey (id, key, \",\n \"name, api_id, des_key, \",\n \"parkIds)\",\n \"values (#{id,jdbcType=INTEGER}, #{key,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{apiId,jdbcType=VARCHAR}, #{desKey,jdbcType=VARCHAR}, \",\n \"#{parkids,jdbcType=VARCHAR})\"\n })\n int insert(TApikey record);", "void insert(IrpSignInfo record) throws SQLException;", "@Override\n\tpublic int insert(Sptasts sptasts) {\n\t\tConnection conn = this.connectionManager.openConnection();\n\t\t//锟斤拷锟斤拷一锟斤拷锟斤拷锟斤拷\n\t\tTransactionManager.conn = conn;\n\t\tTransactionManager.beginTransaction();\n\t\t\n\t\t//锟斤拷锟斤拷锟斤拷锟�\n\n\t\t//Date posttime=sptasts.getPosttime();\n\t\tString saname =sptasts.getSaname();\n\t\tString satype =sptasts.getSatype();\n\t\tint sastate =sptasts.getSastate();\n\t\tString samark = sptasts.getSamark();\n\t\tString saresource =sptasts.getSaresource();\n\t\tint uid=sptasts.getUid();\n\t\t\n\t\t\n\t\t\n\t\n\t\t//锟斤拷锟斤拷锟接Qo拷锟斤拷锟斤拷模锟斤拷\n\t\tString strSQL = \"insert into sptasts values(null,now(),?,?,?,?,?,?)\";\n\t\tObject[] params = new Object[]{saname,satype,sastate,samark,saresource,uid};\n\t\t// 锟斤拷锟斤拷dbutils锟斤拷锟襟,诧拷锟斤拷锟斤拷execothers锟斤拷锟斤拷实锟斤拷锟斤拷菘锟斤拷锟斤拷硬锟斤拷锟斤拷锟�\n\t\tint affectedRows = this.dbUtils.execOthers(conn, strSQL, params);\n\t\t//锟斤拷锟斤拷锟揭伙拷锟斤拷慕锟斤拷锟斤拷锟斤拷锟接︼拷锟斤拷锟斤拷锟斤拷锟�\n\t\tif(affectedRows > 0){\n\t\t\t// 锟结交锟斤拷锟斤拷\n\t\t\tTransactionManager.commit();\n\t\t}else{\n\t\t\t// 锟截癸拷锟斤拷锟斤拷\n\t\t\tTransactionManager.rollback();\n\t\t}\n\t\treturn affectedRows;\n\t}", "public SgfensPedidoProductoPk insert(SgfensPedidoProducto dto) throws SgfensPedidoProductoDaoException;", "public FaqPk insert(Faq dto) throws FaqDaoException;", "int insert(DepAcctDO record);", "public TipologiaStrutturaPk insert(TipologiaStruttura dto) throws TipologiaStrutturaDaoException;", "public KeyType insert(DomainObject object) {\r\n Session session = getSession();\r\n KeyType serialid;\r\n Transaction tx = null;\r\n try {\r\n tx = session.beginTransaction();\r\n serialid = (KeyType) session.save(object);\r\n tx.commit();\r\n } catch (RuntimeException e) {\r\n LOG.error(MODULE + \"Exception in insert Method:\" + e, e);\r\n if (tx != null) {\r\n tx.rollback();\r\n }\r\n throw e;\r\n } finally {\r\n if (session.isOpen()) {\r\n session.close();\r\n }\r\n }\r\n return serialid;\r\n }", "void insert(PaymentTrade record);", "int insert(Lbt72TesuryoSumDPkey record);", "@Insert({\n \"insert into PURCHASE (ID, SDATE, \",\n \"STYPE, SMONEY, TOUCHING, \",\n \"ACCOUNT, CHECKSTATUS, \",\n \"DEMO1, DEMO2, DEMO3)\",\n \"values (#{id,jdbcType=DECIMAL}, #{sdate,jdbcType=TIMESTAMP}, \",\n \"#{stype,jdbcType=VARCHAR}, #{smoney,jdbcType=DECIMAL}, #{touching,jdbcType=VARCHAR}, \",\n \"#{account,jdbcType=VARCHAR}, #{checkstatus,jdbcType=DECIMAL}, \",\n \"#{demo1,jdbcType=DECIMAL}, #{demo2,jdbcType=VARCHAR}, #{demo3,jdbcType=DECIMAL})\"\n })\n int insert(Purchase record);", "int insert(Yqbd record);", "int insert(ProSchoolWare record);", "int insert(Goodexistsingle record);", "public DcSquadDO loadById(long id) throws DataAccessException;", "int insert(SPerms record);", "public int insert(DataDict stu)\n {\n\n try\n {\n String sql = \"insert into data_dict( dict_parent_id, dict_index , dict_name , dict_value )\" + \" values(\"\n + stu.getSuperId() + \", \" + stu.getIndex() + \", '\" + stu.getName() + \"' , '\" + stu.getValue()\n + \"' )\";\n DBUtil db = new DBUtil();\n db.openConnection();\n ResultSet rst = db.getInsertObjectIDs(sql);\n if (rst != null && rst.first())\n {\n stu.setId(rst.getInt(1));\n }\n db.close(rst);\n db.close();\n return 1;\n\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n return 0;\n }", "@Override\n\tpublic void dbInsert(PreparedStatement pstmt) {\n\t\ttry \n\t\t{\n\t\t\tpstmt.setInt(1, getParent());\n\t\t\tpstmt.setInt(2, getParentType().getValue()); \t\t\t// owner_type\n\t\t\tpstmt.setString(3, this.predefinedPeriod.getKey() ); \t\t\t// period key\n\t\t\tpstmt.setDouble(4, this.getProductiveTime());\t\t\t\t\t\t// productive time\n\t\t\tpstmt.setDouble(5, this.getQtySchedToProduce());\t\t\t\t// Quantity scheduled to produce\n\t\t\tpstmt.setDouble(6, this.getQtyProduced());\t\t\t\t\t\t// Quantity produced\n\t\t\tpstmt.setDouble(7, this.getQtyDefective());\t\t\t\t\t\t// Quantity with rework or considered defective. \n\n\t\t\tpstmt.addBatch();\n\n\t\t} catch (SQLException e) {\n\t\t\tLogger logger = LogManager.getLogger(OverallEquipmentEffectiveness.class.getName());\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\n\t}", "int insert(CartDO record);", "int insert(QuestionOne record);", "public static long insert(Disease disease, boolean useExistingPK) throws Exception {\n if (!useExistingPK && PrefC.getRandomKeys())\n {\n disease.DiseaseNum = ReplicationServers.getKey(\"disease\",\"DiseaseNum\");\n }\n \n String command = \"INSERT INTO disease (\";\n if (useExistingPK || PrefC.getRandomKeys())\n {\n command += \"DiseaseNum,\";\n }\n \n command += \"PatNum,DiseaseDefNum,PatNote,ProbStatus,DateStart,DateStop,SnomedProblemType,FunctionStatus) VALUES(\";\n if (useExistingPK || PrefC.getRandomKeys())\n {\n command += POut.long(disease.DiseaseNum) + \",\";\n }\n \n //DateTStamp can only be set by MySQL\n command += POut.long(disease.PatNum) + \",\" + POut.long(disease.DiseaseDefNum) + \",\" + \"'\" + POut.string(disease.PatNote) + \"',\" + POut.int(((Enum)disease.ProbStatus).ordinal()) + \",\" + POut.date(disease.DateStart) + \",\" + POut.date(disease.DateStop) + \",\" + \"'\" + POut.string(disease.SnomedProblemType) + \"',\" + POut.int(((Enum)disease.FunctionStatus).ordinal()) + \")\";\n if (useExistingPK || PrefC.getRandomKeys())\n {\n Db.nonQ(command);\n }\n else\n {\n disease.DiseaseNum = Db.nonQ(command,true);\n } \n return disease.DiseaseNum;\n }", "@Insert({\n \"insert into order (id, orderid, \",\n \"name, price, userid)\",\n \"values (#{id,jdbcType=BIGINT}, #{orderid,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{price,jdbcType=BIGINT}, #{userid,jdbcType=VARCHAR})\"\n })\n int insert(Order record);", "private Integer insertAddress(Connection con, AddressDto addressId) throws SQLException {\n\t\nPreparedStatement ps=\tcon.prepareStatement(SQLQueryConstants.INSERT_ADDRESS,Statement.RETURN_GENERATED_KEYS);\n\tps.setString(1, addressId.getAddress());\n\tps.setInt(2, addressId.getPinCode());\t\nps.setInt(3, addressId.getCityId().getCityId());\n int status =ps.executeUpdate();\nif(status!=0){\nResultSet rs=\tps.getGeneratedKeys();\n\tif(rs.next()){\n\t\treturn rs.getInt(1);\n\t\t\n\t}\n}\nreturn null;\t\n}", "int insert(Cargo record);", "void insertCustomerDDPay(CustomerDDPay cddp);", "public EvaluationsDegreePk insert(EvaluationsDegree dto) throws EvaluationsDegreeDaoException;", "@Override\n\tpublic void insert(Seller obj) {\n\t\tPreparedStatement st = null;\n\t\ttry {\n\t\t\tst = conn.prepareStatement(\n\t\t\t\t\t\"INSERT INTO seller\\r\\n\" +\n\t\t\t\t\t\"(Name, Email, BirthDate,BaseSalary,DepartmentId)\\r\\n\" +\n\t\t\t\t\t\"VALUES\\r\\n\"+ \n\t\t\t\t\t\"(?,?,?,?,?);\", Statement.RETURN_GENERATED_KEYS);\n\t\t\tst.setString(1, obj.getName());\n\t\t\tst.setString(2, obj.getEmail());\n\t\t\tst.setDate(3, new java.sql.Date(obj.getBirthDate().getTime()));\n\t\t\tst.setDouble(4, obj.getBaseSalary());\n\t\t\tst.setInt(5, obj.getDepartment().getId());\n\t\t\tint rowsAffected = st.executeUpdate();\n\t\t\tif(rowsAffected > 0) {\n\t\t\t\tResultSet rst = st.getGeneratedKeys();\n\t\t\t\tif(rst.next()) obj.setId(rst.getInt(1));\n\t\t\t\trst.close();\n\t\t\t}\n\t\t}catch(SQLException e) {\n\t\t\tthrow new DbException(e.getMessage());\n\t\t}finally {\n\t\t\tDb.closeStatement(st);\n\t\t}\n\t}", "int insert(InternalTradeEpa022016 record);", "int insert(ClOrderInfo record);", "public int db_cl_insert(int sy_id){\n\n ContentValues values = new ContentValues();\n values.put(\"sy_id\", sy_id);\n\n\n int id= (int) db.insert(CLTABLE_NAME, null, values);\n\n\n\n return id;\n }", "int insert(PcQualificationInfo record);", "int insert(Commodity record);", "int insert(MedicalOrdersExecutePlan record);", "int insert(CommonQuestionStrategyType record);", "int insert(NeeqCompanyAccountingFirmOnline record);", "public SgfensBancoPk insert(SgfensBanco dto) throws SgfensBancoDaoException;", "abstract public void insert(final KeyClass data, final RID rid);", "int insert(TdxCompanyTaxArrears record);", "int insert(Drug_OutWarehouse record);", "int insert(ScoreProduct record);", "@Override\n\tpublic int insert(Object ob) {\n\t\t\n\t\tint res = session.insert(\"party.party_insert_one\",ob);\n\t\t\n\t\treturn res;\n\t}", "void insert(Disproduct record);", "public String addBilling(Tour t,Event e){\n \n \n String result = \"0\";\n Connection con = null;\n //build the sql\n String SQLCommand = \"INSERT INTO billing(id,lineup_order,event_id,artist_id,tour_id)\" +\n \" values (seq_billing_id.NEXTVAL,?,?,?,?)\";\n \n try{\n //obtain the database connection by calling getConn() \n con = getConn();\n Billing b = t.getBills().get(0);\n \n \n //create the PreparedStatement from the Connection object by calling prepareCall\n //method, passing it the sql , parameters are represented by ? in the sql\n PreparedStatement ps = con.prepareStatement(SQLCommand); \n \n //setting the parameters values\n ps.setInt(1,b.getLineupOrder());\n ps.setLong(2,e.getId());\n ps.setLong(3, b.getArtist().getId());\n ps.setLong(4, t.getId());\n \n //exceuting the insert or update operation \n ps.executeUpdate(); \n }\n catch (SQLException ex){\n ex.printStackTrace();\n result = ex.getMessage();\n }\n return result;\n }", "int insert(SupplierInfo record);", "int insert(Dress record);", "int insert(Depart record);", "int insert(OrderDetail record);", "int insert(SwipersDO record);", "@Override\r\n public Kiosque insertKiosque(Kiosque obj) {\r\n em.persist(obj);\r\n return obj;\r\n //To change body of generated methods, choose Tools | Templates.\r\n }", "int insert(ReleaseSystem record);", "public RutaPk insert(Ruta dto) throws RutaDaoException;", "int insert(DictDoseUnit record);", "public void addDoubt(String dquest,String uid,String cid) throws SQLException {\n\t// TODO Auto-generated method stub\n\t\n\t\tString sql = \"INSERT INTO doubts(DQUEST,UID,CID) VALUES(?,?,?);\";\n\t\t\n\t\tpreparedStatement = conn\n\t\t .prepareStatement(sql);\n\t\t\n\t\tpreparedStatement.setString(1, dquest);\n\t\tpreparedStatement.setString(2, uid);\n\t\tpreparedStatement.setString(3, cid);\n\t\t\n\t\t\n\t\tpreparedStatement.executeUpdate();\n\t\tSystem.out.println(\"doubt Added!\");\n\t}", "public Question saveQuestion(Question question) throws UserException {\n\t\tOnlineTest onlineTest=new OnlineTest();\r\n\t\tString sql=\"insert into Question(question_title, question_option_a, question_option_b, question_option_c, question_option_d, question_chosen_answer, question_correct_answer, question_marks, question_marks_scored, test_id) values(?,?,?,?,?,?,?,?,?,?)\";\r\n\t\ttry {\r\n\t\t\tpreparedStatement=connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\r\n\t\t\tpreparedStatement.setString(1, question.getQuestionTitle());\r\n\t\t\tpreparedStatement.setString(2, question.getQusetionOptions()[0]);\r\n\t\t\tpreparedStatement.setString(3, question.getQusetionOptions()[1]);\r\n\t\t\tpreparedStatement.setString(4, question.getQusetionOptions()[2]);\r\n\t\t\tpreparedStatement.setString(5, question.getQusetionOptions()[3]);\r\n\t\t\tpreparedStatement.setInt(6, question.getChosenAnswer());\r\n\t\t\tpreparedStatement.setInt(7, question.getQuestionAnswer());\r\n\t\t\tpreparedStatement.setDouble(8, question.getQuestionMarks());\r\n\t\t\tpreparedStatement.setDouble(9, question.getMarksScored());\r\n\t\t\tpreparedStatement.setLong(10, onlineTest.getTestId().longValue());\r\n\t\t\tint result = preparedStatement.executeUpdate();\r\n\t\t\tif(result == 0) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tBigInteger generatedId = BigInteger.valueOf(0L);\r\n\t\t\tresultSet = preparedStatement.getGeneratedKeys();\r\n\t\t\tif (resultSet.next()) {\r\n\t\t\t\tgeneratedId = BigInteger.valueOf(resultSet.getLong(1));\r\n\t\t\t\tSystem.out.println(\"Auto generated id : \" + generatedId);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tquestion.setQuestionId(generatedId);\r\n\t\t\tSystem.out.println(\"Added Question to the database with id as : \" + generatedId);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(\"Error at add Question Dao method: \" + e);\r\n\t\t} finally {\r\n\t\t\tif (preparedStatement != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpreparedStatement.close();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tSystem.out.println(\"Error at add Question Dao method: \" + e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn question;\r\n\t}", "int insert(EcsSupplierRebate record);", "@Insert({\n \"insert into soggetto_personale_scolastico (codice_fiscale, \",\n \"id_asr, cognome, nome, \",\n \"data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, \",\n \"telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, \",\n \"email, lat, lng, \",\n \"id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, \",\n \"data_cancellazione, id_medico, id_soggetto_fk)\",\n \"values ( #{codiceFiscale,jdbcType=VARCHAR}, \",\n \"#{idAsr,jdbcType=BIGINT}, #{cognome,jdbcType=VARCHAR}, #{nome,jdbcType=VARCHAR}, \",\n \"#{dataNascitaStr,jdbcType=VARCHAR}, #{comuneResidenzaIstat,jdbcType=VARCHAR}, \",\n \"#{comuneDomicilioIstat,jdbcType=VARCHAR}, #{indirizzoDomicilio,jdbcType=VARCHAR}, \",\n \"#{telefonoRecapito,jdbcType=VARCHAR}, #{dataNascita,jdbcType=DATE}, \",\n \"#{aslResidenza,jdbcType=VARCHAR}, #{aslDomicilio,jdbcType=VARCHAR}, \",\n \"#{email,jdbcType=VARCHAR}, #{lat,jdbcType=NUMERIC}, #{lng,jdbcType=NUMERIC}, \",\n \"#{idTipoSoggetto,jdbcType=INTEGER}, #{utenteOperazione,jdbcType=VARCHAR}, \",\n \"#{dataCreazione,jdbcType=TIMESTAMP}, #{dataModifica,jdbcType=TIMESTAMP}, \",\n \"#{dataCancellazione,jdbcType=TIMESTAMP}, #{idMedico,jdbcType=BIGINT}, #{idSoggettoFk,jdbcType=BIGINT})\"\n })\n @Options(useGeneratedKeys = true, keyProperty = \"idSoggetto\", keyColumn = \"id_soggetto\")\n int insert(SoggettoPersonaleScolastico record);", "int insert(PublicDoctorNotice record);", "int insert(OcCustContract record);", "@Override\n\tpublic int topicAdd(QuestionBean q) {\n\t\tString sql = \"insert into topic(title,result,subjectName,difficulty,type,score) values('\"+q.getTitle()+\"','\"+q.getResult()+\"',\"+q.getSubjectName()+\",'\"+q.getDifficulty()+\"',\"+q.getType()+\",\"+q.getScore()+\")\";\n\t\t//int result = jt.update(sql, q.getTitle(),q.getResult(),q.getSubjectName(),q.getDifficulty(),q.getType(),q.getScore());\n\t\tKeyHolder keyHolder = new GeneratedKeyHolder();\n\t\tjt.update(new PreparedStatementCreator() {\n\t\t\t@Override\n\t\t\tpublic java.sql.PreparedStatement createPreparedStatement(java.sql.Connection arg0) throws SQLException {\n\t\t\t\tPreparedStatement ps = arg0.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n\t\t\t\treturn ps;\n\t\t\t}\n\t\t}, keyHolder);\n\t\tSystem.out.println(\"新增加的primarykey:\"+keyHolder.getKey().intValue());\n\t\treturn keyHolder.getKey().intValue();\n\t}", "int insert(OrderPO record);", "int insert(ErpOaLicKey record);", "int insert(SysCode record);", "int insert(OrderDetails record);", "int insert(Assist_table record);", "int insert(Owner record);", "int insert(CityDO record);", "public Integer insert(SsoAuthDO ssoAuth) throws DataAccessException;", "int insert(NjProductTaticsRelation record);", "public void testInsert3() throws Exception {\n DAS das = DAS.FACTORY.createDAS(getConnection());\n Command insert = das.createCommand(\"insert into COMPANY (NAME) values (?)\");\n insert.setParameter(1, \"AAA Rental\");\n insert.execute();\n // Integer key = (Integer) insert.getParameterValue(\"generated_key\");\n Integer key = new Integer(insert.getGeneratedKey());\n\n // Verify insert\n Command select = das.createCommand(\"Select ID, NAME from COMPANY where ID = ?\");\n select.setParameter(1, key);\n DataObject root = select.executeQuery();\n assertEquals(key, root.get(\"COMPANY[1]/ID\"));\n\n }", "int insert(WayShopCateRoot record);", "public int Trans1(Long userid,Long amount,Double price,Double comp_id)throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"Insert into transaction values(trans_seq.nextval,\"+userid+\",sysdate,\"+amount+\",'sale','self',\"+comp_id+\",\"+price+\")\");\r\n\treturn i;\r\n}", "int insert(SsSocialSecurityAccount record);", "int insertSelective(SysId record);", "public boolean insertCourtyard(Courtyard courtyard) {\n\t\tCourtyardMapper courtyardMapper = this.getSqlSession().getMapper(CourtyardMapper.class);\n\t\tcourtyardMapper.insert(courtyard);\n\t\tSystem.out.println(\"--Into Dao Method of insertCourtyard!!!--\");\n\t\treturn true;\n\t}", "public int updShare(Long cid, Long shareamt, String datee, Long noShare,Long sindex) throws Exception{\n\tint i=DbConnect.getStatement().executeUpdate(\"insert into share_details values(\"+cid+\",\"+noShare+\",\"+shareamt+\",'\"+datee+\"',\"+sindex+\")\");\r\n\treturn i;\r\n}", "Long insert(Access record);", "int insert(CGcontractCredit record);", "int insert(SellType record);", "int insert(SmtOrderProductAttributes record);", "public void insert(TdiaryArticle obj) throws SQLException {\n\r\n\t}", "int insertp(Publisher p){\r\n String pu = \"INSERT INTO publisher(publisher_id,publisher_name) VALUES(?,?);\";\r\n int res=0;\r\n try {\r\n PreparedStatement statement = this.connection.prepareStatement(pu);\r\n statement.setInt(1, p.getPublisher_id());\r\n statement.setString(2, p.getPublisher_name());\r\n res = statement.executeUpdate();\r\n statement.close(); //close\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n return res;\r\n }", "int insert(ac_teacher_instrument record);" ]
[ "0.5980005", "0.58499235", "0.57232183", "0.56750214", "0.5667091", "0.5634593", "0.55824447", "0.5558391", "0.55487007", "0.5536669", "0.54428345", "0.54340637", "0.5431339", "0.5422818", "0.5416937", "0.5416937", "0.5415974", "0.5396491", "0.5395836", "0.53916466", "0.538713", "0.53740305", "0.53651017", "0.53611124", "0.5355964", "0.5332709", "0.5330809", "0.53246367", "0.53207016", "0.53193426", "0.53095126", "0.5308057", "0.5298238", "0.5280692", "0.5276889", "0.5271646", "0.5271173", "0.5263312", "0.525839", "0.525789", "0.5248952", "0.52425957", "0.524167", "0.5241269", "0.52345014", "0.5231885", "0.5230776", "0.52304566", "0.52295876", "0.5228993", "0.52207965", "0.5207575", "0.5206587", "0.52062273", "0.5205008", "0.51938707", "0.51927656", "0.5187158", "0.51813304", "0.5178467", "0.51730907", "0.5172672", "0.5170276", "0.5163364", "0.5161431", "0.5157908", "0.51448184", "0.51352525", "0.5132776", "0.5130423", "0.5130092", "0.51167244", "0.5116215", "0.5110509", "0.51088965", "0.5107271", "0.51069546", "0.51058966", "0.5100125", "0.5095406", "0.5085196", "0.50848025", "0.5084695", "0.5084134", "0.50839096", "0.5078223", "0.50745696", "0.5073434", "0.5070512", "0.50665426", "0.5065347", "0.5062956", "0.5062695", "0.5059356", "0.5056662", "0.50565714", "0.5054041", "0.50511664", "0.5048985", "0.5048789" ]
0.77871805
0
Query DB table dc_squad for records. The sql statement for this operation is select from dc_squad
public List<DcSquadDO> load() throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DcSquadDO loadByName(String squadName) throws DataAccessException;", "private List<OfertaDisciplina> listarTodasQuad(int quad){\n return ofertaDisciplinaFacade.findAllQuad(quad);\n }", "public ResultSet getRecordingsByTune(int tune_id) throws SQLException {\n\t\tquery = \"SELECT r.*, dt.name as type, mt.description as medleytype, p.name as phrasing, pn.name as artist \"\n\t\t\t\t+ \"FROM recording r LEFT OUTER JOIN dancetype dt ON r.type_id=dt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON r.medleytype_id=mt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN phrasing p ON r.phrasing_id=p.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN person pn ON r.artist_id=pn.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN tunesrecordingsmap trm ON r.id=trm.recording_id \"\n\t\t\t\t+ \"WHERE trm.tune_id=\" + tune_id + \" ORDER BY r.name\";\n\t\treturn stmt.executeQuery(query);\n\t}", "public void displaySquad(Squad squad);", "public ResultSet getRecordingsByAlbum(int album_id) throws SQLException {\n\t\tquery = \"SELECT r.*, dt.name as type, mt.description as medleytype, p.name as phrasing, pn.name as artist, tracknumber \"\n\t\t\t\t+ \"FROM recording r LEFT OUTER JOIN dancetype dt ON r.type_id=dt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON r.medleytype_id=mt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN phrasing p ON r.phrasing_id=p.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN albumsrecordingsmap arm ON r.id=arm.recording_id \"\n\t\t\t\t+ \"LEFT OUTER JOIN person pn ON r.artist_id=pn.id \"\n\t\t\t\t+ \"WHERE arm.album_id=\" + album_id + \" ORDER BY tracknumber\";\n\t\treturn stmt.executeQuery(query);\n\t}", "public ResultSet getRecordingsByDance(int dance_id) throws SQLException {\n\t\tquery = \"SELECT r.*, dt.name as type, mt.description as medleytype, p.name as phrasing, pn.name as artist \"\n\t\t\t\t+ \"FROM recording r LEFT OUTER JOIN dancetype dt ON r.type_id=dt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON r.medleytype_id=mt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN phrasing p ON r.phrasing_id=p.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN person pn ON r.artist_id=pn.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN dancesrecordingsmap drm ON r.id=drm.recording_id \"\n\t\t\t\t+ \"WHERE drm.dance_id=\" + dance_id + \" ORDER BY r.name\";\n\t\treturn stmt.executeQuery(query);\n\t}", "public DcSquadDO loadById(long id) throws DataAccessException;", "public PageList query(String squadName, String axiser, String cubers, String followers,\n String investors, String status, Date gmtCreate, Date gmtModify,\n int pageSize, int pageNum) throws DataAccessException;", "private void getScholsFromDatabase() {\n schols = new Select().all().from(Scholarship.class).execute();\n }", "public List<TermSpanRecord> getResults()\n {\n String whereClause = \"owner = ?\";\n List<TermSpanRecord> results = TermSpanRecord.find(TermSpanRecord.class, whereClause, new String[]{String.valueOf(getId())});\n return results;\n }", "public ResultSet getRecords(String table)\n\t{\n\t\tResultSet rs = null;\n\t\trs = source.select(\"select * from \" + table);\n\t\treturn rs;\n\t}", "public abstract Statement queryToRetrieveData();", "public int update(DcSquadDO dcSquad) throws DataAccessException;", "public ResultSet getRecordingsByPerson(int person_id) throws SQLException {\n\t\tquery = \"SELECT r.*, dt.name as type, mt.description as medleytype, p.name as phrasing, pn.name as artist \"\n\t\t\t\t+ \"FROM recording r LEFT OUTER JOIN dancetype dt ON r.type_id=dt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON r.medleytype_id=mt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN phrasing p ON r.phrasing_id=p.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN person pn ON r.artist_id=pn.id \"\n\t\t\t\t+ \"WHERE pn.id=\" + person_id + \" ORDER BY r.name\";\n\t\treturn stmt.executeQuery(query);\n\t}", "public List<Record> _queryWholePatrolCard_Records(Long fid) {\n synchronized (this) {\n if (wholePatrolCard_RecordsQuery == null) {\n QueryBuilder<Record> queryBuilder = queryBuilder();\n queryBuilder.where(Properties.Fid.eq(null));\n wholePatrolCard_RecordsQuery = queryBuilder.build();\n }\n }\n Query<Record> query = wholePatrolCard_RecordsQuery.forCurrentThread();\n query.setParameter(0, fid);\n return query.list();\n }", "public long insert(DcSquadDO dcSquad) throws DataAccessException;", "protected Collection<RS_Track> selectTracksFromRecordings(String query) {\n\t\tCollection<RS_Track> tracks = new SortedArrayList<RS_Track>();\n\t\t//TODO Robbert: is deze keuze hier ok???\n\t\t\n\t\tResultSet rs;\n\t\ttry {\n\t\t\tStatement stat = conn.createStatement();\n\t\t\trs = stat.executeQuery(query);\n\t\t\t\n\t\t\twhile (rs.next()) {\t\n\t\t\t\tString artistName = rs.getString(\"artist_name\");\n\t\t\t\tString trackName = rs.getString(\"track_name\");\n\t\t\t\tRS_Track rst = new RS_Track(trackName, null, artistName, 0);\n\t\t\t\ttracks.add(rst);\n\t\t\t\t\n\t\t\t\t//TODO overleg met Thomas/Robbert welke info hier opslaan/ophalen??\n\t\t\t}\t\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Something went wrong selecting results from Recordings\");\n\t\t}\n\t\treturn tracks;\n\t}", "void runQueries();", "Query query();", "@Override\n\tpublic List<Student> queryAll() {\n\t\treturn sDao.queryAll();\n\t}", "static ResultSet dataOphalen(String querry) {\n //declaratie anders kan er niks worden gereturnt\n ResultSet rs = null;\n try {\n Statement stmt = connectieMaken().createStatement(); //\n rs = stmt.executeQuery(querry);\n } catch (SQLException se) {\n se.printStackTrace();\n }\n return rs;\n }", "public List<T> query(QueryObject qo) {\n\t\treturn null;\n\t}", "public List<SubQueryDef> getSubQueries();", "public String getSquadName() {\n\n return m_squadName;\n }", "public static ru.terralink.mvideo.sap.Orders findByPrimaryKey(java.lang.String IV_FO_TOR_ID\n ,java.lang.String IV_FU_TOR_ID)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.findByPrimaryKey\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n \n \n String _selectSQL = \"SELECT x.\\\"a\\\",x.\\\"b\\\",x.\\\"c\\\",x.\\\"d\\\",x.\\\"e\\\",x.\\\"f\\\",x.\\\"g\\\",x.\\\"h\\\",x.\\\"i\\\",x.\\\"j\\\",x.\\\"l\\\",x.\\\"m\\\",x.\\\"n\\\",x.\\\"o\\\",x.\\\"p\\\",x.\\\"q\\\",x.\\\"r\\\",x.\\\"s\\\",x.\\\"t\\\",x.\\\"u\\\",x.\\\"v\\\",x.\\\"w\\\",x.\\\"x\\\",x.\\\"y\\\",x.\\\"z\\\",x.\\\"ba\\\",x.\\\"bb\\\",x.\\\"bc\\\",x.\\\"bd\\\",x.\\\"be\\\",x.\\\"bf\\\",x.\\\"bg\\\",x.\\\"bh\\\",x.\\\"bi\\\",x.\\\"bj\\\",x.\\\"bl\\\",x.\\\"bm\\\",x.\\\"pending\\\",x.\\\"_pc\\\",x.\\\"_rp\\\",x\"\n + \".\\\"_rf\\\",x.\\\"relationsFK\\\",x.\\\"bn\\\",x.\\\"_rc\\\",x.\\\"_ds\\\",x.\\\"cvpOperation_length\\\",x.\\\"cvpOperationLobs_length\\\" FROM \\\"mvideo5_1_0_orders\\\" x WHERE (((x.\\\"pending\\\" = 1 or not exists (select x_os.\\\"bn\\\" from \\\"mvideo5_1_0_orders_os\\\" x_os where x_os.\\\"bn\\\" = x.\\\"bn\\\")))) and ( x.\\\"bl\\\" = ? AND x.\\\"bm\\\" = ?)\";\n String[] ids = new String[0];\n com.sybase.reflection.DataType[] dts = new com.sybase.reflection.DataType[]{ \n com.sybase.reflection.DataType.forName(\"string\"),\n com.sybase.reflection.DataType.forName(\"string\"),\n };\n Object[] values = new Object[] { \n IV_FO_TOR_ID,\n IV_FU_TOR_ID,\n };\n Object res = DELEGATE.findWithSQL(_selectSQL, dts, values, ids, ru.terralink.mvideo.sap.Orders.class);\n return (ru.terralink.mvideo.sap.Orders)res;\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }", "public static List<Sighting> all() {\n\t\tString sql = \"SELECT id, name, location, rangerName FROM sightings\";\n\t\ttry(Connection con = DB.sql2o.open()) {\n\t\t\treturn con.createQuery(sql).executeAndFetch(Sighting.class);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tSession s2=util.getSession();\r\n\t\tQuery qry=s2.getNamedQuery(\"q2\");\r\n\t\t//Query qry=s2.getNamedQuery(\"q3\");\r\n\t\t//qry.setInteger(0, 50);\r\n\t\tList<Object[]> lust=qry.list();\r\n\t\tfor(Object[] row:lust) {\r\n\t\t\tSystem.out.println(Arrays.toString(row));\r\n\t\t}\r\n\t\tSystem.out.println(\"Completed\");\r\n\t}", "private static void selectRecordsFromDbUserTable() throws SQLException {\n\n\t\tConnection dbConnection = null;\n\t\tStatement statement = null;\n\n\t\tString selectTableSQL = \"SELECT * from spelers\";\n\n\t\ttry {\n\t\t\tdbConnection = getDBConnection();\n\t\t\tstatement = dbConnection.createStatement();\n\n\t\t\tSystem.out.println(selectTableSQL);\n\n\t\t\t// execute select SQL stetement\n\t\t\tResultSet rs = statement.executeQuery(selectTableSQL);\n\n\t\t\twhile (rs.next()) {\n \n String naam = rs.getString(\"naam\");\n\t\t\t\tint punten = rs.getInt(\"punten\");\n \n System.out.println(\"naam : \" + naam);\n\t\t\t\tSystem.out.println(\"punten : \" + punten);\n\t\t\t\t\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\n\t\t\tSystem.out.println(e.getMessage());\n\n\t\t} finally {\n\n\t\t\tif (statement != null) {\n\t\t\t\tstatement.close();\n\t\t\t}\n\n\t\t\tif (dbConnection != null) {\n\t\t\t\tdbConnection.close();\n\t\t\t}\n\n\t\t}\n\n\t}", "private static void runQuery(Statement stmt, String sqlQuery) throws SQLException {\n\t\tResultSet rs;\n\t\tResultSetMetaData rsMetaData;\n\t\tString toShow;\n\t\trs = stmt.executeQuery(sqlQuery);\n\t\trsMetaData = rs.getMetaData();\n\t\tSystem.out.println(sqlQuery);\n\t\ttoShow = \"\";\n\t\twhile (rs.next()) {\n\t\t\tfor (int i = 0; i < rsMetaData.getColumnCount(); i++) {\n\t\t\t\ttoShow += rs.getString(i + 1) + \", \";\n\t\t\t}\n\t\t\ttoShow += \"\\n\";\n\t\t}\n\t\tif (toShow == \"\" ) {\n\t\t\ttoShow = \"No results found matching your criteria.\";\n\t\t}\n\t\tJOptionPane.showMessageDialog(null, toShow);\n\t}", "public ResultSet getRecords() throws SQLException{\n Statement stmt = getConnection().createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,\n ResultSet.CONCUR_UPDATABLE);\n String sqlGet = \"SELECT * FROM myStudents\";\n stmt.executeQuery(sqlGet);\n ResultSet rs = stmt.getResultSet();\n return rs;\n }", "public static String getAllRecords() {\n Log.i(CLASS_NAME, \"getAllRecords\");\n final String apiString = \"_search?pretty=true&q=*:*\";\n return ElasticRestClient.get(getIndex(), getType(), apiString, \"{ \\\"size\\\" : \\\"1000\\\"}\");\n }", "@Override\n\tpublic List<Lease> queryLeasebyStudentId(int sid) {\n\t\treturn leaseDAO.findLeasebyStudentId(sid);\n\t}", "List<PointsExchangeRecord> selectAll();", "private Collection<Record> getResults(SimpleSurnameAndPostcodeQuery query) {\n\t\treturn search(query);\n\t}", "@Override\n\tpublic List<Student> queryByGid(int gid) {\n\t\treturn sDao.queryByGid(gid);\n\t}", "@Query(\"select sh from Sponsorship sh where sh.sponsor.id=?1\")\n\tCollection<Sponsorship> sponsorshipsFromSponsor(int sponsorId);", "private SeqIter query(final int db, final int qu) throws Exception {\r\n final int size = qressizes[db * nqueries + qu];\r\n final double qtime = qt[db * nqueries + qu];\r\n \r\n if(size == 0) return new SeqIter();\r\n \r\n // query and cache result\r\n final String que = XQM + \"for $i score $s in \" +\r\n queries.get(qu) + \" order by $s descending \" +\r\n \"return (basex:sum-path($i), $s, base-uri($i))\";\r\n \r\n final Process proc = new XQuery(que);\r\n final CachedOutput res = new CachedOutput();\r\n if(session.execute(proc)) session.output(res);\r\n \r\n final SeqIter sq = new SeqIter();\r\n final StringTokenizer st = new StringTokenizer(res.toString(), \" \");\r\n String lp = \"\";\r\n int z = 0;\r\n while(st.hasMoreTokens() && z < size) {\r\n qtimes[qu] += qtime;\r\n final String p = st.nextToken();\r\n if(!st.hasMoreTokens()) break;\r\n final String s = st.nextToken();\r\n if(!st.hasMoreTokens()) break;\r\n String uri = st.nextToken();\r\n //while(uri.indexOf(\".xml\") == -1) uri = st.nextToken();\r\n uri = uri.substring(uri.lastIndexOf('/') + 1);\r\n final String tmp = uri + \";\" + p;\r\n if(!lp.equals(tmp)) {\r\n final Str str = Str.get(token(uri + \";\" + p));\r\n str.score(Double.parseDouble(s));\r\n sq.add(str);\r\n lp = tmp;\r\n }\r\n z++;\r\n }\r\n \r\n Main.outln(\"Query % on %: %\", qu + 1, databases.get(db), qtime);\r\n return sq;\r\n }", "public ResultSet getStats() throws SQLException {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString statsRecords_sql = \"SELECT * FROM \" + stats_table;\n\t\tconnection = connector.getConnection();\n\t\tstatement = connection.prepareStatement(statsRecords_sql);\n\t\trs = statement.executeQuery();\n\t\treturn rs;\n\t}", "List<Quarter> getQuarterList(Integer cityId)throws EOTException;", "@Test\n\tpublic void getAllByRegion() {\n\t\tList<String> consequenceTypeList = new ArrayList<String>();\n\t\tconsequenceTypeList.add(\"2KB_upstream_variant\");\n\t\tconsequenceTypeList.add(\"splice_region_variant\");\n\t\tList<Snp> snps = snpDBAdaptor.getAllByRegion(new Region(\"1\", 10327, 12807), consequenceTypeList);\n\t\tthis.printSNPList(\"getAllByRegion\", snps, 50);\n\t}", "public List<Map<String, Object>> query(long tableID, String key)\r\n\t{\n\t\treturn null;\r\n\t}", "public QDAList getQDAList() {\r\n/* 231 */ return this._QDAList;\r\n/* */ }", "public void query(String sql) throws SQLException {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(sql);\r\n\r\n while (rs.next()){\r\n System.out.println(rs.getInt(\"id\")+\" \"+rs.getString(\"name\")+\" \"+rs.getString(\"surname\")+\" \"+rs.getFloat(\"grade\"));\r\n }\r\n\r\n }", "public List<Record> _queryPerPatrolCard_Records(Long fid) {\n synchronized (this) {\n if (perPatrolCard_RecordsQuery == null) {\n QueryBuilder<Record> queryBuilder = queryBuilder();\n queryBuilder.where(Properties.Fid.eq(null));\n perPatrolCard_RecordsQuery = queryBuilder.build();\n }\n }\n Query<Record> query = perPatrolCard_RecordsQuery.forCurrentThread();\n query.setParameter(0, fid);\n return query.list();\n }", "public void getSelectRecord(TaxChallan taxChallan){\r\n\t\tObject taxData[][] = null;\r\n\t\ttry{\r\n\t\ttry {\r\n\t\t\tString query = \"SELECT TO_CHAR(NVL(CHALLAN_TAX,0),9999999990.99), TO_CHAR(NVL(CHALLAN_SURCHARGE,0),9999999990.99), TO_CHAR(NVL(CHALLAN_EDUCESS,0),9999999990.99), TO_CHAR(NVL(CHALLAN_TOTALTAX,0),9999999990.99), NVL(CHALLAN_CHQNO,' '), NVL(TO_CHAR(CHALLAN_CHQDATE,'DD-MM-YYYY'),' '),\"\r\n\t\t\t\t\t+ \" CHALLAN_NO,TO_CHAR(CHALLAN_DATE,'DD-MM-YYYY'),BANK_NAME,BANK_BSR_CODE,CHALLAN_ACK_NO,BANK_MICR_CODE,CHALLAN_VCHR_NO,NVL(CHALLAN_INT_AMT,0.00),NVL(CHALLAN_OTHR_AMT,0.00),\"\r\n\t\t\t\t\t+ \" CHALLAN_BOOK_ENTRY,DECODE(CHALLAN_TAX_ONHOLD,'A','ALL','N','No','Y','Yes'),TO_CHAR(CHALLAN_DATE_PAYMENT,'DD-MM-YYYY'),DECODE(CHALLAN_SALARY_FLAG,'Y','true','N','false'), \" \r\n\t\t\t\t\t+ \" DECODE(CHALLAN_SETTLE_FLAG,'Y','true','N','false','false'),DECODE(CHALLAN_ALLOW_FLAG,'Y','true','N','false','false'),DECODE(CHALLAN_ARREARS_FLAG,'Y','true','N','false','false'), \" \r\n\t\t\t\t\t+ \" DECODE(CHALLAN_BONUS_FLAG,'Y','true','N','false','false'), DECODE(CHALLAN_LEAVE_FLAG,'Y','true','N','false','false'), DECODE(CHALLAN_OT_FLAG,'Y','true','N','false','false')\"\r\n\t\t\t\t\t+ \" FROM HRMS_TAX_CHALLAN \"\r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_BANK ON HRMS_BANK.BANK_BSR_CODE = hrms_tax_challan.CHALLAN_BANK WHERE CHALLAN_CODE=\"\r\n\t\t\t\t\t+ taxChallan.getChallanID();\r\n\t\t\ttaxData = getSqlModel().getSingleResult(query);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"eception in taxData query\",e);\r\n\t\t} //end of catch\r\n\t\tif(!(taxData.length >0)){\r\n\t\t\ttaxChallan.setTax(\"\");\r\n\t\t\ttaxChallan.setSurcharge(\"\");\r\n\t\t\ttaxChallan.setEduCess(\"\");\r\n\t\t\ttaxChallan.setTotalTax(\"\");\r\n\t\t\ttaxChallan.setChequeNo(\"\");\r\n\t\t\ttaxChallan.setChequeDate(\"\");\r\n\t\t\ttaxChallan.setChallanNo(\"\");\r\n\t\t\ttaxChallan.setChallanDate(\"\");\r\n\t\t\ttaxChallan.setBank(\"\");\r\n\t\t\ttaxChallan.setBsrCode(\"\");\r\n\t\t\ttaxChallan.setAckNo(\"\");\r\n\t\t\ttaxChallan.setVchrNo(\"\");\r\n\t\t\ttaxChallan.setIntAmt(\"\");\r\n\t\t\ttaxChallan.setOthrAmt(\"\");\r\n\t\t\t//taxChallan.setBookEntry(\"\");\r\n\t\t}else{\r\n\t\t\ttaxChallan.setTax(Utility.twoDecimals(String.valueOf(taxData[0][0])));\r\n\t\t\ttaxChallan.setSurcharge(Utility.twoDecimals(String.valueOf(taxData[0][1])));\r\n\t\t\ttaxChallan.setEduCess(Utility.twoDecimals(String.valueOf(taxData[0][2])));\r\n\t\t\ttaxChallan.setTotalTax(Utility.twoDecimals(String.valueOf(taxData[0][3])));\r\n\t\t\ttaxChallan.setChequeNo(String.valueOf(taxData[0][4]));\r\n\t\t\ttaxChallan.setChequeDate(checkNull(String.valueOf(taxData[0][5])).trim());\r\n\t\t\ttaxChallan.setChallanNo(checkNull(String.valueOf(taxData[0][6])).trim());\r\n\t\t\ttaxChallan.setChallanDate(checkNull(String.valueOf(taxData[0][7])).trim());\r\n\t\t\ttaxChallan.setBank(checkNull(String.valueOf(taxData[0][8])));\r\n\t\t\ttaxChallan.setBsrCode(checkNull(String.valueOf(taxData[0][9])));\r\n\t\t\ttaxChallan.setAckNo(checkNull(String.valueOf(taxData[0][10])));\r\n\t\t\ttaxChallan.setMicr(checkNull(String.valueOf(taxData[0][11])));\r\n\t\t\ttaxChallan.setVchrNo(checkNull(String.valueOf(taxData[0][12])));\r\n\t\t\ttaxChallan.setIntAmt(Utility.twoDecimals(String.valueOf(taxData[0][13])));\r\n\t\t\ttaxChallan.setOthrAmt(Utility.twoDecimals(String.valueOf(taxData[0][14])));\r\n\t\t\ttaxChallan.setBookEntry(String.valueOf(taxData[0][15]));\r\n\t\t\ttaxChallan.setOnHold(String.valueOf(taxData[0][16]));\r\n\t\t\ttaxChallan.setPaymentDate(checkNull(String.valueOf(taxData[0][17])));\r\n\t\t\ttaxChallan.setIncludeSalary(String.valueOf(taxData[0][18]));\r\n\t\t\ttaxChallan.setIncludeSettlement(String.valueOf(taxData[0][19]));\r\n\t\t\ttaxChallan.setIncludeAllowance(String.valueOf(taxData[0][20]));\r\n\t\t\ttaxChallan.setIncludeArrears(String.valueOf(taxData[0][21]));\r\n\t\t\ttaxChallan.setIncludeBonus(String.valueOf(taxData[0][22]));\r\n\t\t\ttaxChallan.setIncludeLeaveEncashment(String.valueOf(taxData[0][23]));\r\n\t\t\ttaxChallan.setIncludeOverTime(String.valueOf(taxData[0][24]));\r\n\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\tlogger.error(\"exception in getSelectRecord method\",e);\r\n\t\t} \r\n\t\tObject[][]tdsParameter = null;\r\n\t\ttry {\r\n\t\t\tString tdsParaQuery = \"SELECT TDS_DEBIT_CODE,TDS_EDU_CESS,TDS_REBATEMAX_AMOUNT,TDS_SURCHARGE \"\r\n\t\t\t\t\t+ \" FROM HRMS_TAX_PARAMETER \"\r\n\t\t\t\t\t+ \" WHERE TDS_CODE= (SELECT MAX(TDS_CODE) FROM HRMS_TAX_PARAMETER)\";\r\n\t\t\ttdsParameter = getSqlModel().getSingleResult(tdsParaQuery);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in tdsParameter query\",e);\r\n\t\t}\r\n\t\t/**\r\n\t\t * this values are set...because they are used in java script for calculation\r\n\t\t * if in case total tax is changed.\r\n\t\t */\r\n\t\tif(tdsParameter !=null && tdsParameter.length >0){\r\n\t\t\ttaxChallan.setEduCessPercen(String.valueOf(tdsParameter[0][1]));\r\n\t\t\ttaxChallan.setRebateLimit(String.valueOf(tdsParameter[0][2]));\r\n\t\t\ttaxChallan.setSurchargePercen(String.valueOf(tdsParameter[0][3]));\r\n\t\t}\r\n\t}", "public static void queryTable(DynamoDbClient ddb) {\r\n String sqlStatement = \"SELECT * FROM MoviesPartiQ where year = ? ORDER BY year\";\r\n try {\r\n\r\n List<AttributeValue> parameters = new ArrayList<>();\r\n AttributeValue att1 = AttributeValue.builder()\r\n .n(String.valueOf(\"2013\"))\r\n .build();\r\n parameters.add(att1);\r\n\r\n // Get items in the table and write out the ID value.\r\n ExecuteStatementResponse response = executeStatementRequest(ddb, sqlStatement, parameters);\r\n System.out.println(\"ExecuteStatement successful: \"+ response.toString());\r\n\r\n } catch (DynamoDbException e) {\r\n System.err.println(e.getMessage());\r\n System.exit(1);\r\n }\r\n }", "@Select(\"select * from deal_record where d_account=#{id} order by d_time desc\")\n List<Record> queryallRecord(Integer id);", "public List<TransferObject> select(WhereStatement whereClause){\r\n\t long start, end;\r\n\t start = (new java.util.Date()).getTime(); \r\n\t String tableName = this.getTableName();\r\n\t List<TransferObject> items = new ArrayList<TransferObject>();\r\n\t Cursor c = null;\r\n\t StatementArguments arguments = new StatementArguments(tableName);\r\n\t \r\n\t arguments.setWhereClause(whereClause.createWhereStatement().toString());\r\n\t SelectStatement sql = new SelectStatement(arguments);\r\n\t\ttry {\r\n\t\t\tc = getDb().rawQuery(sql.createStatement().toString(), whereClause.getArguments());\r\n\t\t\tLog.i(\"GPA\", sql.createStatement().toString());\r\n\t c.moveToFirst(); \r\n\t while(!c.isAfterLast()){ \r\n\t \tTransferObject bean = this.fill(c);\r\n\t \titems.add( bean ); \r\n\t \tc.moveToNext(); \r\n\t } \r\n\t c.close();\r\n\t return items;\r\n\t\t} catch (Exception e) {\r\n\t\t\tLog.e(\"GPALOG\" , e.getMessage(),e); \r\n\t\t}finally{\r\n\t\t\t if(c!=null){c.close();}\r\n\t end = (new java.util.Date()).getTime();\r\n\t Log.i(\"GPALOG\", \"Time to query: \" + (end - start) + \" ms\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public List<Record> listAllRecords();", "public static ResultSet ListRs(String S) {\n\n Connection con = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n\n try {\n con = DBConnect.openConnection();\n ps = con.prepareStatement(S);\n\n rs = ps.executeQuery();\n// while (rs.next()) {\n// tad u = new tad();\n// u.setId(rs.getInt(1));\n// u.setOutlook(rs.getString(2));\n// u.setTemperature(rs.getString(3));\n// u.setHumidity(rs.getString(4));\n// u.setWindy(rs.getString(5));\n// u.setClasses(rs.getString(6));\n// list.add(u);\n// }\n } catch (SQLException ex) {\n Logger.getLogger(tadDAO.class.getName()).log(Level.SEVERE, null, ex);\n// } finally {\n// DBConnect.closeAll(con, ps, rs);\n }\n\n return rs;\n }", "List<ScPartyMember> selectAll();", "DictDoseUnit selectByPrimaryKey(Long dduId);", "@Override\r\n\tpublic List<Spot> queryAllSpot() {\n\t\treturn spotRepository.queryAllSpot();\r\n\t}", "List<Bill> all() throws SQLException;", "protected ResultSet selectStaff() {\r\n\t\tResultSet rs = sqlSelect( \"*\", \"Staff\", \"\");\r\n\t\treturn rs;\r\n\t}", "public ResultSet getMatches() throws SQLException {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString matchRecords_sql = \"SELECT * FROM \" + match_table;\n\t\tconnection = connector.getConnection();\n\t\tstatement = connection.prepareStatement(matchRecords_sql);\n\t\trs = statement.executeQuery();\n\t\treturn rs;\n\t}", "public List<AbsRecord> getRecordBy(String whereClause)\n\t{\n\t\treturn getRecordBy(whereClause, new GAZRecordRowMapper());\n\t}", "WorldUps.UQuery getQueries(int index);", "public java.util.Collection<pl.wcislo.sbql4j.java.model.runtime.Struct> executeQuery(\n final ObjectContainerBase ocb, final Transaction t) {\n final LocalTransaction transLocal = (LocalTransaction) t;\n final java.util.Collection<kor.model.Student> _ident_Student = new java.util.ArrayList<kor.model.Student>();\n ClassMetadata _classMeta5 = ocb.classCollection()\n .getClassMetadata(\"kor.model.Student\");\n long[] _ids5 = _classMeta5.getIDs(transLocal);\n\n for (long _id5 : _ids5) {\n LazyObjectReference _ref5 = transLocal.lazyReferenceFor((int) _id5);\n _ident_Student.add((kor.model.Student) _ref5.getObject());\n }\n\n java.util.Collection<pl.wcislo.sbql4j.java.model.runtime.Struct> _dotResult3 =\n new java.util.ArrayList<pl.wcislo.sbql4j.java.model.runtime.Struct>();\n int _dotIndex3 = 0;\n\n for (kor.model.Student _dotEl3 : _ident_Student) {\n if (_dotEl3 == null) {\n continue;\n }\n\n if (_dotEl3 != null) {\n ocb.activate(_dotEl3, 2);\n }\n\n java.lang.String _mth_getFnameResult = _dotEl3.getFname();\n\n if (_mth_getFnameResult != null) {\n ocb.activate(_mth_getFnameResult, 1);\n }\n\n java.lang.String _mth_getSnameResult = _dotEl3.getSname();\n\n if (_mth_getSnameResult != null) {\n ocb.activate(_mth_getSnameResult, 1);\n }\n\n pl.wcislo.sbql4j.java.model.runtime.Struct _commaResult = OperatorUtils.cartesianProductSS(_mth_getFnameResult,\n _mth_getSnameResult, \"\", \"\");\n kor.model.Address _mth_getAddressResult = _dotEl3.getAddress();\n\n if (_mth_getAddressResult != null) {\n ocb.activate(_mth_getAddressResult, 1);\n }\n\n kor.model.Address _dotEl = _mth_getAddressResult;\n\n if (_mth_getAddressResult != null) {\n ocb.activate(_mth_getAddressResult, 2);\n }\n\n java.lang.String _mth_getStreetResult = _dotEl.getStreet();\n\n if (_mth_getStreetResult != null) {\n ocb.activate(_mth_getStreetResult, 1);\n }\n\n pl.wcislo.sbql4j.java.model.runtime.Struct _commaResult1 = OperatorUtils.cartesianProductSS(_commaResult,\n _mth_getStreetResult, \"\", \"\");\n kor.model.Address _mth_getAddressResult1 = _dotEl3.getAddress();\n\n if (_mth_getAddressResult1 != null) {\n ocb.activate(_mth_getAddressResult1, 1);\n }\n\n kor.model.Address _dotEl1 = _mth_getAddressResult1;\n\n if (_mth_getAddressResult1 != null) {\n ocb.activate(_mth_getAddressResult1, 2);\n }\n\n java.lang.String _mth_getCityResult = _dotEl1.getCity();\n\n if (_mth_getCityResult != null) {\n ocb.activate(_mth_getCityResult, 1);\n }\n\n pl.wcislo.sbql4j.java.model.runtime.Struct _commaResult2 = OperatorUtils.cartesianProductSS(_commaResult1,\n _mth_getCityResult, \"\", \"\");\n kor.model.Address _mth_getAddressResult2 = _dotEl3.getAddress();\n\n if (_mth_getAddressResult2 != null) {\n ocb.activate(_mth_getAddressResult2, 1);\n }\n\n kor.model.Address _dotEl2 = _mth_getAddressResult2;\n\n if (_mth_getAddressResult2 != null) {\n ocb.activate(_mth_getAddressResult2, 2);\n }\n\n java.lang.String _mth_getZipResult = _dotEl2.getZip();\n\n if (_mth_getZipResult != null) {\n ocb.activate(_mth_getZipResult, 1);\n }\n\n pl.wcislo.sbql4j.java.model.runtime.Struct _commaResult3 = OperatorUtils.cartesianProductSS(_commaResult2,\n _mth_getZipResult, \"\", \"\");\n\n if (_commaResult3 != null) {\n ocb.activate(_commaResult3, 2);\n }\n\n _dotResult3.add(_commaResult3);\n _dotIndex3++;\n }\n\n java.util.Collection<pl.wcislo.sbql4j.java.model.runtime.Struct> _groupAsResultstuds =\n _dotResult3;\n pl.wcislo.sbql4j.db4o.utils.DerefUtils.activateResult(_groupAsResultstuds,\n ocb);\n\n return _groupAsResultstuds;\n }", "private ResultSet getSpatialQueryResults(final Connection conn, final SearchRegion region) throws SQLException {\n final Statement stmt = conn.createStatement();\n final double lx = region.getLx(), ly = region.getLy(), rx = region.getRx(), ry = region.getRy();\n\n //Careful about the precision of the float from string formatter\n final String spatial_query = String.format(\"SELECT * FROM item_location WHERE \"\n + \"MBRContains(GeomFromText('Polygon((%f %f, %f %f, %f %f, %f %f, %f %f))'), coord)\", \n lx, ly, lx, ry, rx, ry, rx, ly, lx, ly);\n return stmt.executeQuery(spatial_query);\n }", "@Override\n\t//查询所有数据\n\tpublic List<Student> selectStudents() {\n\t\tConnection connection =null;\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tList<Student> sList = new ArrayList<Student>();\n\t\t\n\t\ttry {\n\t\t\tconnection = MySQLConnectUtil.getMySQLConnection();\n\t\t\tps = connection.prepareStatement(QUARYSQL);\n\t\t\trs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tStudent student = new Student();\n\t\t\t\tstudent.setId(rs.getString(\"ID\"));\n\t\t\t\tstudent.setName(rs.getString(\"NAME\"));\n\t\t\t\tstudent.setAge(rs.getInt(\"AGE\"));\n\t\t\t\tsList.add(student);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tMySQLConnectUtil.closeResultset(rs);\n\t\t\tMySQLConnectUtil.closePreparestatement(ps);\n\t\t\tMySQLConnectUtil.closeConnection(connection);\n\t\t}\n\t\treturn sList;\n\t}", "@Override\n\tpublic List<StuXK> select() throws SQLException {\n\t\tList<StuXK> list=new ArrayList<StuXK>();\n\t\tString sql=\"select * from V_Stuxk \";\t\n\t\tBaseDAO dao=new BaseDAO();\t\n\t\tResultSet rs=dao.select(sql);\n\t\twhile(rs.next()){\t\n\t\t\tStuXK sxk=new StuXK();\n\t\t\tsxk.setCourseName(rs.getString(\"CourseName\"));\n\t\t\tsxk.setTeacherName(rs.getString(\"TeacherName\"));\n\t\t\tsxk.setWeekday(rs.getString(\"Weekday\"));\n\t\t\tsxk.setClassfestival(rs.getString(\"Classfestival\"));\n\t\t\tsxk.setClassRoomName(rs.getString(\"ClassRoomName\"));\n\t\t\tsxk.setCrediy(rs.getString(\"Crediy\"));\n\t\t\tsxk.setTeachTaskID(rs.getInt(\"ID\"));\n\t\t\tsxk.setProfessionName(rs.getString(\"ProfessionName\"));\n\t\t\tlist.add(sxk);\n\t\t}\n\t\treturn list;\n\t}", "private void runQuery(QueryTerm qt, String name) {\n\t\tqt.setInferred(false);\n\t\tRDFQuery q = new RDFQuery(qt);\n\t\tSystem.out.println(\"=== \"+name+\" ===\\n* OBD Query:\\n \"+qt);\n\t\tSystem.out.println(\"\\n* Autogenerated SPARQL:\\n \"+q.toSPARQL()+\"\\n\\n\");\n\t\tfor (Node n : this.shard.getNodesByQuery(qt)){\n\t\t\tSystem.out.println(\"Node: \" + n.toString());\n\t\t}\n\t\n\t}", "public List findRecords(String informationType, String queryString) throws DatabaseException;", "@Override\r\n public void query(String strSQL)\r\n {\r\n try\r\n {\r\n dbRecordset = dbCmdText.executeQuery(strSQL);\r\n status(\"epic wonder \"+ strSQL);\r\n }\r\n catch (Exception ex)\r\n {status(\"Query fail\");\r\n }\r\n }", "public Collection<URI> searchWithSPARQL(final String queryString)\n {\n if (DEBUG.SEARCH) Log.debug(\"searchWithSPARQL; queryString:\\n\" + Util.tags(queryString));\n \n final Collection<URI> resultSet = new ArrayList<URI>();\n final com.hp.hpl.jena.query.Query query = QueryFactory.create(queryString);\n \n if (DEBUG.SEARCH) Log.debug(\"QF created \" + Util.tag(query)\n + \"; memory=\" + Runtime.getRuntime().freeMemory()\n + \"\\n\" + query.toString().trim().replaceAll(\"\\n\\n\", \"\\n\"));\n\n final QueryExecution qe = QueryExecutionFactory.create(query, this); // 2nd arg is for Model or for FileManager?\n if (DEBUG.SEARCH) Log.debug(\"created QEF \" + qe + \"; memory=\" + Runtime.getRuntime().freeMemory());\n\n final ResultSet results = qe.execSelect();\n if (DEBUG.SEARCH) Log.debug(\"execSelect returned; memory=\" + Runtime.getRuntime().freeMemory());\n \n while (results.hasNext()) {\n final QuerySolution qs = results.nextSolution();\n if (DEBUG.SEARCH) {\n final String qss = qs.toString().replaceAll(\"<http://vue.tufts.edu\", \"...\"); // shorten debug output\n Log.debug(\"qSol \" + String.format(\"%.190s%s\", qss, qss.length() > 190 ? (\"...x\"+qss.length()) : \"\"));\n }\n if (false) {\n // debug debug all vars from query\n //Util.dumpIterator(qs.varNames());\n Iterator<String> vn = qs.varNames(); \n while (vn.hasNext()) {\n String v = vn.next();\n Log.debug(\"\\t\" + Util.tags(v) + \"=\" + Util.tags(qs.get(v)));\n }\n }\n try {\n resultSet.add(new URI(qs.getResource(\"rid\").getURI()));\n } catch (Throwable t) {\n Log.warn(\"handling QuerySolution \" + qs, t);\n }\n }\n qe.close();\n return resultSet;\n }", "@Override\r\n\tpublic ArrayList<ArrayList<Value>> getResults(Value[] quad) throws IOException {\n\t\treturn null;\r\n\t}", "protected void generateFromClause( WrqInfo wrqInfo, SQLStatementWithParams sqlStatement ) throws BindingException\n {\n sqlStatement.append(\" FROM \");\n WrqBindingSet bs = wrqInfo.getResultingBindingSet();\n resolvedBindingSets.addAll(bs.getResolvedBindingSets());\n sqlStatement.append(wrqInfo.getSQLSelectWithParams()); \n }", "@Override\n public void query(Connection c, SQLEngine engine, Record val, ImmutableList.Builder<Record> result) throws DataException {\n \n Variant varcat = val.get(\"TABLE_CAT\");\n String cat = Variants.isNull(varcat) ? null : varcat.asString();\n \n Variant varschem = val.get(\"TABLE_SCHEM\");\n String schem = Variants.isNull(varschem) ? null : varschem.asString();\n \n Variant varname = val.get(\"TABLE_NAME\");\n String name = Variants.isNull(varname) ? null : varname.asString();\n \n Variant vartype = val.get(\"TABLE_TYPE\");\n String[] tabletypes = Variants.isNull(vartype) ? TABLE_TYPES : new String[]{ vartype.asString() };\n\n try (ResultSet resultset = c.getMetaData().getTables(cat, schem, name, tabletypes)) {\n while (resultset.next()) {\n result.add(read(resultset, val));\n } \n } catch (SQLException ex) {\n throw new DataException(ex);\n }\n }", "private ResultSet queryDatabaseForDataRow(Connection m_dbconn, String col) \n\t{\n\t\tResultSet rs = null;\n\t\tString selectStmt = \"SELECT * FROM RELATE_W_CH WHERE Ch_Name=\\\"\" + col + \"\\\"\";\n\n\t\ttry\n\t\t{\n\t\t\tStatement stmt = m_dbconn.createStatement();\n\n\t\t\trs = stmt.executeQuery(selectStmt);\n\t\t\trs.next();\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn rs;\n\t}", "protected String buildDataQuery() {\n StringBuilder sql = new StringBuilder(\"select\");\n String delim = \" \";\n for (String vname : getColumnNames()) {\n sql.append(delim).append(vname);\n delim = \", \";\n }\n \n Element ncElement = getNetcdfElement();\n \n String table = ncElement.getAttributeValue(\"dbTable\");\n if (table == null) {\n String msg = \"No database table defined. Must set 'dbTable' attribute.\";\n _logger.error(msg);\n throw new TSSException(msg);\n }\n sql.append(\" from \" + table);\n \n String predicate = ncElement.getAttributeValue(\"predicate\");\n if (predicate != null) sql.append(\" where \" + predicate);\n \n //Order by time.\n String tname = getTimeVarName();\n sql.append(\" order by \"+tname+\" ASC\");\n \n return sql.toString();\n }", "public boolean getAllServiceRecords(){\n\t\tArrayList<FamilyPlanningRecord> list=new ArrayList<FamilyPlanningRecord>();\n\t\ttry{\n\t\t\tdb=getReadableDatabase();\n\t\t\tString sql= FamilyPlanningRecords.getServiceRecordSQLString(); \n\t\t\n\t\t\tcursor=db.rawQuery(sql, null);\n\t\t\t\n\t\t\treturn true;\n\t\t}catch(Exception ex){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "@Override\n public Class<QsRecord> getRecordType() {\n return QsRecord.class;\n }", "@Test\n public void testQuery() {\n DataSetArgument lArgs = new DataSetArgument();\n lArgs.add( \"aMsgId\", \"100\" );\n\n QuerySet lQs = QuerySetFactory.getInstance()\n .executeQuery( \"com.mxi.mx.integration.query.process.LookupQueueId\", lArgs );\n\n Assert.assertEquals( \"Row Count\", 1, lQs.getRowCount() );\n\n lQs.next();\n\n Assert.assertEquals( \"Queue Id\", 1000, lQs.getInt( \"queue_id\" ) );\n }", "public List<Object> queryAll(String col_name, String dto) {\n\t\tDBCollection dbc = db.getCollection(col_name);\n DBCursor cur = dbc.find();\n List<Object> res = new ArrayList<Object>();\n try {\n \twhile (cur.hasNext()) {\n \t\tDBObject doc = cur.next();\n \t\ttry {\n \t\t\tres.add(Util.deserialize(doc, dto));\n \t\t} catch(InvocationTargetException ite) {\n \t\t\tite.printStackTrace();\n \t\t} \t\t\n \t\t//System.out.println(doc);\n }\n } catch(ClassNotFoundException cnfe) {\n \tcnfe.printStackTrace();\n } catch(InstantiationException ie) {\n \tie.printStackTrace();\n } catch(IllegalAccessException iae) {\n \tiae.printStackTrace();\n }\n return res;\n\t}", "List<SellMedia> selectSellMediaByExample(SellMediaExample example) throws SQLException;", "public ResultSet query(String sQLQuery) throws SQLException {\n\t Statement stmt = c.createStatement();\n\t ResultSet ret = stmt.executeQuery(sQLQuery);\n\t stmt.close();\n\t return ret;\n\t}", "public List<Literal> query(Literal q) {\n\r\n\t\t\r\n\t\tList<Literal> result = datalogReasoner.query(compiledClauses, q);\r\n\t\t\r\n\t\tLDLPProgramQueryResultDecompiler decompiler = new LDLPProgramQueryResultDecompiler();\r\n\t\t\r\n\t\tresult = decompiler.decompileLiterals(result);\r\n\t\t\t\t\r\n\t\treturn result;\r\n\r\n\r\n\t}", "public List<AbsRecord> getRecordBy(String whereClause)\n\t{\n\t\treturn getRecordBy(whereClause, new HBRecordRowMapper());\n\t}", "DeltaFileEntry[] query(long lastSeqNo, int limit);", "@Override\r\n public List<Map<String, Object>> findAllRecords(String tableName, int upperLimit) throws SQLException {\r\n List<Map<String, Object>> records = new ArrayList();\r\n String sqlQuery = (upperLimit > 0) ? \"SELECT * FROM \" + tableName + \" LIMIT \" + upperLimit : \"SELECT * FROM \" + tableName;\r\n if (connection != null) {\r\n\r\n Statement sqlStatement = connection.createStatement();\r\n ResultSet rs = sqlStatement.executeQuery(sqlQuery);\r\n ResultSetMetaData rsmd = rs.getMetaData();\r\n int columnCount = rsmd.getColumnCount();\r\n while (rs.next()) {\r\n Map<String, Object> record = new HashMap();\r\n for (int i = 1; i <= columnCount; i++) {\r\n record.put(rsmd.getColumnName(i), rs.getObject(i));\r\n }\r\n records.add(record);\r\n }\r\n } else {\r\n System.out.println(\"No connection could be established\");\r\n }\r\n return records;\r\n }", "private StarTable runCheckedQuery( String adql, int maxrec,\n ColSpec[] colSpecs, int maxrow ) {\n Map<String,String> extraParams = new HashMap<String,String>();\n if ( maxrec >= 0 ) {\n extraParams.put( \"MAXREC\", Integer.toString( maxrec ) );\n }\n TapQuery tq;\n try {\n tq = new TapQuery( serviceUrl_, adql, extraParams, null, 0 );\n }\n catch ( IOException e ) {\n reporter_.report( ReportType.ERROR, \"TSER\",\n \"TAP job creation failed for \" + adql, e );\n return null;\n }\n StarTable table = tapRunner_.getResultTable( reporter_, tq );\n if ( table != null ) {\n int nrow = (int) table.getRowCount();\n if ( maxrec >=0 && nrow > maxrec ) {\n String msg = new StringBuffer()\n .append( \"More than MAXREC rows returned (\" )\n .append( nrow )\n .append( \" > \" )\n .append( maxrec )\n .append( \")\" )\n .append( \" for \" )\n .append( adql )\n .toString();\n reporter_.report( ReportType.ERROR, \"NREC\", msg );\n }\n if ( maxrow >= 0 && nrow > maxrow ) {\n String msg = new StringBuffer()\n .append( \"More rows than expected (\" )\n .append( nrow )\n .append( \") returned\" )\n .append( \" for \" )\n .append( adql )\n .toString();\n reporter_.report( ReportType.ERROR, \"NROW\", msg );\n }\n checkMeta( adql, colSpecs, table );\n }\n return table;\n }", "void queryTimeSeries(final Message<JsonObject> msg) {\n\n final JsonObject query = msg.body();\n LOG.debug(\"{}\\n{}\", address, query.encodePrettily());\n\n // get the paramsters from the query\n final Range range = rangeParser.parse(query.getJsonObject(\"range\").getString(\"from\"),\n query.getJsonObject(\"range\").getString(\"to\"));\n final long interval = intervalParser.parseToLong(query.getString(\"interval\"));\n final JsonArray targets = query.getJsonArray(\"targets\")\n .stream()\n .map(o -> ((JsonObject) o).getString(\"target\"))\n .collect(toJsonArray());\n\n //build the query and options\n final JsonObject tsQuery = $and(obj(\"n.begin\", $gte(range.getStart())),\n obj(\"n.begin\", $lte(range.getEnd())),\n obj(\"t.name\", $in(targets)));\n\n final FindOptions findOptions = new FindOptions().setFields(obj().put(\"t.name\", 1)\n .put(\"n.begin\", 1)\n .put(\"n.value\", 1)\n .put(\"_id\", 0)).setSort(obj(\"n.begin\", 1));\n\n long start = System.currentTimeMillis();\n //execute search and process response\n client.findWithOptions(collectionName, tsQuery, findOptions, result -> {\n\n if (result.succeeded()) {\n JsonArray resp = processResponse(range, r -> range.splitEvery(interval), targets, result);\n long end = System.currentTimeMillis();\n LOG.debug(\n \"Sending response with {} timeseries and {} datapoints (after {} ms)\",\n resp.size(),\n resp.stream()\n .map(o -> ((JsonObject) o).getJsonArray(\"datapoints\"))\n .collect(Collectors.summingInt(JsonArray::size)),\n (end - start));\n msg.reply(resp);\n\n } else {\n LOG.error(\"Annotation query failed\", result.cause());\n msg.reply(arr());\n }\n\n });\n }", "java.util.List<WorldUps.UQuery> \n getQueriesList();", "@Override\n\tpublic List<SocialInsuranceRecord> selectAll() {\n\t\treturn dao.selectAll();\n\t}", "public static void getAllRecord(TableName tableName) throws IOException {\n Connection cn = ConnectionFactory.createConnection(conf);\n try {\n Table table = cn.getTable(tableName);\n Scan s = new Scan();\n ResultScanner ss = table.getScanner(s);\n for (Result r : ss) {\n for (KeyValue kv : r.raw()) {\n System.out.print(new String(kv.getRow()) + \" \");\n System.out.print(new String(kv.getFamily()) + \":\");\n System.out.print(new String(kv.getQualifier()) + \" \");\n System.out.print(kv.getTimestamp() + \" \");\n System.out.println(new String(kv.getValue()));\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (cn != null)\n cn.close();\n }\n }", "public void queryTransactions(){\n System.out.println(\"-----find transaction by condition-----\");\n System.out.println(\"--press enter to skip the input--\");\n //for every query input, do not format it into sql if it is null\n String sql = \"select * from transactionrecords join ClubMembers on transactionrecords.CustomerID = ClubMembers.CustomerID where 1=1\";\n System.out.print(\"TransactionID: \");\n String unuse=scanner.nextLine();\n String id=scanner.nextLine();\n\n //if id is given, no need for other information\n if(!StringUtils.isNullOrEmpty(id)){\n sql+=(\" and TransactionID=\"+id);\n }else{\n System.out.print(\"cashier id: \");\n String cashierid=scanner.nextLine();\n if(!StringUtils.isNullOrEmpty(cashierid)){\n sql+=(\" and CashierID=\"+cashierid);\n }\n System.out.print(\"store id: \");\n String storeid=scanner.nextLine();\n if(!StringUtils.isNullOrEmpty(storeid)){\n sql+=(\" and StoreID=\"+storeid);\n }\n System.out.print(\"customer id: \");\n String customerid=scanner.nextLine();\n if(!StringUtils.isNullOrEmpty(customerid)){\n sql+=(\" and CustomerID=\"+customerid);\n }\n }\n try {\n //System.out.println(sql);\n result = statement.executeQuery(sql);\n int cnt=0;\n\n //print all qualified result one by one\n while (result.next()) {\n cnt++;\n System.out.println(\"\\n=== No.\"+cnt+\" ===\");\n System.out.println(\"transaction id: \"+result.getInt(\"TransactionID\"));\n System.out.println(\"cashier id: \"+result.getInt(\"CashierID\"));\n System.out.println(\"store id: \"+result.getInt(\"StoreID\"));\n System.out.println(\"customer id: \"+result.getInt(\"CustomerID\"));\n System.out.println(\"customer first name: \"+result.getString(\"FirstName\"));\n System.out.println(\"customer last name: \"+result.getString(\"LastName\"));\n System.out.println(\"total price: \"+result.getDouble(\"TotalPrice\"));\n }\n System.out.println(\"Total rows: \"+cnt);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public int queryByOnsale(String shelfid,String goodsid) throws SQLException {\n\t\tint result = 0;\n\t\tif (shelfid == null||goodsid==null) {\n\t\t\treturn result;\n\t\t}\n\t\tString checkSql = \"select * from onsale where shelfid=? and goodsid=?\";\n\t\tString [] checkParam = { shelfid,goodsid };\n\t\trs = db.executeQuery(checkSql, checkParam);\n\t\tif (rs.next()) {\n\t\t\tresult = 1;\n\t\t}\n\t\treturn result;\n\t\t}", "@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}", "List<ItemStockDO> selectAll();", "public void queryData() throws SolrServerException {\n\t\tfinal SolrQuery query = new SolrQuery(\"*:*\");\r\n\t\tquery.setRows(2000);\r\n\t\t// 5. Executes the query\r\n\t\tfinal QueryResponse response = client.query(query);\r\n\r\n\t\t/*\t\tassertEquals(1, response.getResults().getNumFound());*/\r\n\r\n\t\t// 6. Gets the (output) Data Transfer Object.\r\n\t\t\r\n\t\t\r\n\t\r\n\t\tif (response.getResults().iterator().hasNext())\r\n\t\t{\r\n\t\t\tfinal SolrDocument output = response.getResults().iterator().next();\r\n\t\t\tfinal String from = (String) output.getFieldValue(\"from\");\r\n\t\t\tfinal String to = (String) output.getFieldValue(\"to\");\r\n\t\t\tfinal String body = (String) output.getFieldValue(\"body\");\r\n\t\t\t// 7.1 In case we are running as a Java application print out the query results.\r\n\t\t\tSystem.out.println(\"It works! I found the following book: \");\r\n\t\t\tSystem.out.println(\"--------------------------------------\");\r\n\t\t\tSystem.out.println(\"ID: \" + from);\r\n\t\t\tSystem.out.println(\"Title: \" + to);\r\n\t\t\tSystem.out.println(\"Author: \" + body);\r\n\t\t}\r\n\t\t\r\n\t\tSolrDocumentList list = response.getResults();\r\n\t\tSystem.out.println(\"list size is: \" + list.size());\r\n\r\n\r\n\r\n\t\t/*\t\t// 7. Otherwise asserts the query results using standard JUnit procedures.\r\n\t\tassertEquals(\"1\", id);\r\n\t\tassertEquals(\"Apache SOLR Essentials\", title);\r\n\t\tassertEquals(\"Andrea Gazzarini\", author);\r\n\t\tassertEquals(\"972-2-5A619-12A-X\", isbn);*/\r\n\t}", "public List<SALE_FQ> selectByskt(SALEKey key) {\n\t\treturn myMapper.selectByskt(key);\r\n\t}", "Disproduct selectByPrimaryKey(String samId);", "@Override\n public List<Score> findExperimentsBySnoTime(int sno) {\n String sql = \" select * from score where sno=? and eno in (select eno from experiment where now() between time and date_add(time,interval 180 minute))\";\n try {\n QueryRunner queryRunner = new QueryRunner(TransactionManager.getSource());\n return queryRunner.query(sql, new BeanListHandler<Score>(Score.class), sno);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public List<IkrInstanceData> fetchDBMS_SYBASE_STATEMENT()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseStatementMeasurement measurement = (SybaseStatementMeasurement)client.getMeasurement(\"DBMS_SYBASE_STATEMENT\");\r\n\r\n\t\tList<SybaseStatementResult> infos = measurement.getStatementResult();\r\n\t\tfor(SybaseStatementResult info : infos)\r\n\t\t\tres.add(new SybaseStatementIkrInstanceData(client.getDatabaseInstance(),info, fetchDate));\r\n\t\treturn res;\r\n\t}", "@Override\r\n\tpublic List<Units> queryAllHx() {\n\t\treturn adi.queryAllHx();\r\n\t}", "public static void printAllRecords() {\r\n\t\tfor (int i = 0; i<studRecs.size(); i++) {\r\n\t\t\tprintRecord(i);\r\n\t\t}\r\n\t}", "public static QueryDelegate generateTableQuery(String tableName) {\n String FROM_QUERY = \" FROM \" + tableName;\n String SELECT_QUERY=\" SELECT * \" +\n FROM_QUERY;\n String COUNT_QUERY = \"SELECT count(*) \" + FROM_QUERY;\n String CONTAINS_QUERY = \"SELECT * FROM \" + tableName + \" WHERE id = ?\";\n\n return generateQueryDelegate(SELECT_QUERY, COUNT_QUERY, CONTAINS_QUERY);\n }", "public List<?> query(String jql, int offset, int size) {\r\n\t\treturn query(jql, offset, size, new Object[0]);\r\n\t}", "public void quadTest()\n\t{\n\t\tint index = 0, lim = 3;\n\t\tboolean quads = false;\n\t\t\n\t\twhile (index<=lim && (!quads))\n\t\t{\n\t\t\tif ((intRep[index] == intRep[index+1]) &&\n\t\t\t\t(intRep[index] == intRep[index+2]) &&\n\t\t\t\t(intRep[index] == intRep[index+3]) )\n\t\t\t{\n\t\t\t\tquads = true;\n\t\t\t\thandScore = 70000;\n\t\t\t\thandScore += 100 * intRep[index];\n\t\t\t}\n\t\t\telse index++;\n\t\t}\n\t}" ]
[ "0.5814809", "0.5608098", "0.53292394", "0.52365595", "0.5236215", "0.5214902", "0.5205996", "0.51600456", "0.5158556", "0.50660384", "0.50043315", "0.49883738", "0.49575967", "0.49490482", "0.49356243", "0.4867204", "0.48623896", "0.48614174", "0.48450524", "0.48372468", "0.4836412", "0.4831558", "0.48195672", "0.48144078", "0.47854078", "0.47834072", "0.4777894", "0.4765883", "0.47640392", "0.474659", "0.47450942", "0.47431213", "0.47391522", "0.47285083", "0.47144863", "0.47067368", "0.47055098", "0.46981525", "0.46841714", "0.46717852", "0.46525952", "0.4641092", "0.4635391", "0.4632867", "0.4629055", "0.46281537", "0.46116695", "0.46053666", "0.46016124", "0.45810845", "0.45661202", "0.45490822", "0.4549062", "0.4542843", "0.45343375", "0.45285803", "0.45212686", "0.45155847", "0.4511738", "0.45079926", "0.45071787", "0.44980004", "0.44921002", "0.44866985", "0.44866645", "0.44736147", "0.44725013", "0.44724336", "0.4472321", "0.4471905", "0.4469658", "0.44667932", "0.44599006", "0.44532365", "0.44502667", "0.44483143", "0.44481218", "0.4444768", "0.44404587", "0.44371724", "0.4432465", "0.44301248", "0.4426692", "0.44154954", "0.44142836", "0.4410178", "0.4406744", "0.44049054", "0.4404786", "0.44045672", "0.44043118", "0.4400146", "0.43944505", "0.43939346", "0.43934453", "0.43862975", "0.4385324", "0.43825406", "0.4382174", "0.43787056" ]
0.57382125
1
Query DB table dc_squad for records. The sql statement for this operation is select from dc_squad where (id = ?)
public DcSquadDO loadById(long id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DcSquadDO loadByName(String squadName) throws DataAccessException;", "public ResultSet getRecordingsByTune(int tune_id) throws SQLException {\n\t\tquery = \"SELECT r.*, dt.name as type, mt.description as medleytype, p.name as phrasing, pn.name as artist \"\n\t\t\t\t+ \"FROM recording r LEFT OUTER JOIN dancetype dt ON r.type_id=dt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON r.medleytype_id=mt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN phrasing p ON r.phrasing_id=p.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN person pn ON r.artist_id=pn.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN tunesrecordingsmap trm ON r.id=trm.recording_id \"\n\t\t\t\t+ \"WHERE trm.tune_id=\" + tune_id + \" ORDER BY r.name\";\n\t\treturn stmt.executeQuery(query);\n\t}", "private List<OfertaDisciplina> listarTodasQuad(int quad){\n return ofertaDisciplinaFacade.findAllQuad(quad);\n }", "public ResultSet getRecordingsByDance(int dance_id) throws SQLException {\n\t\tquery = \"SELECT r.*, dt.name as type, mt.description as medleytype, p.name as phrasing, pn.name as artist \"\n\t\t\t\t+ \"FROM recording r LEFT OUTER JOIN dancetype dt ON r.type_id=dt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON r.medleytype_id=mt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN phrasing p ON r.phrasing_id=p.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN person pn ON r.artist_id=pn.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN dancesrecordingsmap drm ON r.id=drm.recording_id \"\n\t\t\t\t+ \"WHERE drm.dance_id=\" + dance_id + \" ORDER BY r.name\";\n\t\treturn stmt.executeQuery(query);\n\t}", "public List<DcSquadDO> load() throws DataAccessException;", "public ResultSet getRecordingsByAlbum(int album_id) throws SQLException {\n\t\tquery = \"SELECT r.*, dt.name as type, mt.description as medleytype, p.name as phrasing, pn.name as artist, tracknumber \"\n\t\t\t\t+ \"FROM recording r LEFT OUTER JOIN dancetype dt ON r.type_id=dt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON r.medleytype_id=mt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN phrasing p ON r.phrasing_id=p.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN albumsrecordingsmap arm ON r.id=arm.recording_id \"\n\t\t\t\t+ \"LEFT OUTER JOIN person pn ON r.artist_id=pn.id \"\n\t\t\t\t+ \"WHERE arm.album_id=\" + album_id + \" ORDER BY tracknumber\";\n\t\treturn stmt.executeQuery(query);\n\t}", "public void displaySquad(Squad squad);", "public int update(DcSquadDO dcSquad) throws DataAccessException;", "@Select(\"select * from deal_record where d_account=#{id} order by d_time desc\")\n List<Record> queryallRecord(Integer id);", "public ResultSet getRecordingsByPerson(int person_id) throws SQLException {\n\t\tquery = \"SELECT r.*, dt.name as type, mt.description as medleytype, p.name as phrasing, pn.name as artist \"\n\t\t\t\t+ \"FROM recording r LEFT OUTER JOIN dancetype dt ON r.type_id=dt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON r.medleytype_id=mt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN phrasing p ON r.phrasing_id=p.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN person pn ON r.artist_id=pn.id \"\n\t\t\t\t+ \"WHERE pn.id=\" + person_id + \" ORDER BY r.name\";\n\t\treturn stmt.executeQuery(query);\n\t}", "T queryForId(ID id) throws SQLException, DaoException;", "public Question getQuestionbyId(int sid,int qid);", "@Override\n\tpublic List<Lease> queryLeasebyStudentId(int sid) {\n\t\treturn leaseDAO.findLeasebyStudentId(sid);\n\t}", "public PageList query(String squadName, String axiser, String cubers, String followers,\n String investors, String status, Date gmtCreate, Date gmtModify,\n int pageSize, int pageNum) throws DataAccessException;", "public ResultSet returnRecord(String id) throws SQLException{\n Statement stmt = getConnection().createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,\n ResultSet.CONCUR_UPDATABLE);\n String sqlGet = \"SELECT * FROM myStudents WHERE STUD_ID ='\" + id + \"'\";\n stmt.executeQuery(sqlGet);\n ResultSet rs = stmt.getResultSet();\n return rs;\n }", "@Query(\"select sh from Sponsorship sh where sh.sponsor.id=?1\")\n\tCollection<Sponsorship> sponsorshipsFromSponsor(int sponsorId);", "public long insert(DcSquadDO dcSquad) throws DataAccessException;", "public static ru.terralink.mvideo.sap.Orders findByPrimaryKey(java.lang.String IV_FO_TOR_ID\n ,java.lang.String IV_FU_TOR_ID)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.findByPrimaryKey\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n \n \n String _selectSQL = \"SELECT x.\\\"a\\\",x.\\\"b\\\",x.\\\"c\\\",x.\\\"d\\\",x.\\\"e\\\",x.\\\"f\\\",x.\\\"g\\\",x.\\\"h\\\",x.\\\"i\\\",x.\\\"j\\\",x.\\\"l\\\",x.\\\"m\\\",x.\\\"n\\\",x.\\\"o\\\",x.\\\"p\\\",x.\\\"q\\\",x.\\\"r\\\",x.\\\"s\\\",x.\\\"t\\\",x.\\\"u\\\",x.\\\"v\\\",x.\\\"w\\\",x.\\\"x\\\",x.\\\"y\\\",x.\\\"z\\\",x.\\\"ba\\\",x.\\\"bb\\\",x.\\\"bc\\\",x.\\\"bd\\\",x.\\\"be\\\",x.\\\"bf\\\",x.\\\"bg\\\",x.\\\"bh\\\",x.\\\"bi\\\",x.\\\"bj\\\",x.\\\"bl\\\",x.\\\"bm\\\",x.\\\"pending\\\",x.\\\"_pc\\\",x.\\\"_rp\\\",x\"\n + \".\\\"_rf\\\",x.\\\"relationsFK\\\",x.\\\"bn\\\",x.\\\"_rc\\\",x.\\\"_ds\\\",x.\\\"cvpOperation_length\\\",x.\\\"cvpOperationLobs_length\\\" FROM \\\"mvideo5_1_0_orders\\\" x WHERE (((x.\\\"pending\\\" = 1 or not exists (select x_os.\\\"bn\\\" from \\\"mvideo5_1_0_orders_os\\\" x_os where x_os.\\\"bn\\\" = x.\\\"bn\\\")))) and ( x.\\\"bl\\\" = ? AND x.\\\"bm\\\" = ?)\";\n String[] ids = new String[0];\n com.sybase.reflection.DataType[] dts = new com.sybase.reflection.DataType[]{ \n com.sybase.reflection.DataType.forName(\"string\"),\n com.sybase.reflection.DataType.forName(\"string\"),\n };\n Object[] values = new Object[] { \n IV_FO_TOR_ID,\n IV_FU_TOR_ID,\n };\n Object res = DELEGATE.findWithSQL(_selectSQL, dts, values, ids, ru.terralink.mvideo.sap.Orders.class);\n return (ru.terralink.mvideo.sap.Orders)res;\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }", "void runQueries();", "@Override\n\tpublic ScenicSpots selectById(String id) {\n\t\t;\n\t\treturn mapper.selectByPrimaryKey(id);\n\t}", "Query query();", "@Override\n\tpublic List<Student> queryByGid(int gid) {\n\t\treturn sDao.queryByGid(gid);\n\t}", "TCpySpouse selectByPrimaryKey(Integer id);", "@Override\n\tpublic int queryCurrentIdbyStudentId(int sid) {\n\t\tSystem.out.println(\"curredt id\");\n\t\treturn leaseDAO.findCurrentIdbyStudentId(sid);\n\t}", "public List<Record> _queryWholePatrolCard_Records(Long fid) {\n synchronized (this) {\n if (wholePatrolCard_RecordsQuery == null) {\n QueryBuilder<Record> queryBuilder = queryBuilder();\n queryBuilder.where(Properties.Fid.eq(null));\n wholePatrolCard_RecordsQuery = queryBuilder.build();\n }\n }\n Query<Record> query = wholePatrolCard_RecordsQuery.forCurrentThread();\n query.setParameter(0, fid);\n return query.list();\n }", "public abstract Statement queryToRetrieveData();", "RecordLike selectByPrimaryKey(String id);", "public interface DcSquadDAO {\n /**\n * Insert one <tt>DcSquadDO</tt> object to DB table <tt>dc_squad</tt>, return primary key\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>insert into dc_squad(squad_name,squad_desc,axiser,cubers,followers,investors,status,gmt_create,gmt_modify,attention) values (?, ?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?)</tt>\n *\n *\t@param dcSquad\n *\t@return long\n *\t@throws DataAccessException\n */\n public long insert(DcSquadDO dcSquad) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad</tt>\n *\n *\t@return List<DcSquadDO>\n *\t@throws DataAccessException\n */\n public List<DcSquadDO> load() throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where (id = ?)</tt>\n *\n *\t@param id\n *\t@return DcSquadDO\n *\t@throws DataAccessException\n */\n public DcSquadDO loadById(long id) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where (squad_name = ?)</tt>\n *\n *\t@param squadName\n *\t@return DcSquadDO\n *\t@throws DataAccessException\n */\n public DcSquadDO loadByName(String squadName) throws DataAccessException;\n\n /**\n * Update DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>update dc_squad set squad_name=?, squad_desc=?, axiser=?, cubers=?, followers=?, investors=?, status=?, gmt_modify=CURRENT_TIMESTAMP where (id = ?)</tt>\n *\n *\t@param dcSquad\n *\t@return int\n *\t@throws DataAccessException\n */\n public int update(DcSquadDO dcSquad) throws DataAccessException;\n\n /**\n * Delete records from DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>delete from dc_squad where (id = ?)</tt>\n *\n *\t@param id\n *\t@return int\n *\t@throws DataAccessException\n */\n public int deleteById(long id) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where ((squad_name = ?) AND (axiser = ?) AND (cubers = ?) AND (followers = ?) AND (investors = ?) AND (status = ?) AND (gmt_create = ?) AND (gmt_modify = ?))</tt>\n *\n *\t@param squadName\n *\t@param axiser\n *\t@param cubers\n *\t@param followers\n *\t@param investors\n *\t@param status\n *\t@param gmtCreate\n *\t@param gmtModify\n *\t@param pageSize\n *\t@param pageNum\n *\t@return PageList\n *\t@throws DataAccessException\n */\n public PageList query(String squadName, String axiser, String cubers, String followers,\n String investors, String status, Date gmtCreate, Date gmtModify,\n int pageSize, int pageNum) throws DataAccessException;\n\n /**\n * Update DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>update dc_squad set attention=? where (id = ?)</tt>\n *\n *\t@param attention\n *\t@param id\n *\t@return int\n *\t@throws DataAccessException\n */\n public int updateAttention(long attention, long id) throws DataAccessException;\n\n}", "public static ResultSet searchByID(int id) {\r\n\t\ttry{\r\n\t\t\tconnection = DriverManager.getConnection(connectionString);\r\n\t\t\tstmt = connection.prepareStatement(\"SELECT * FROM Patient WHERE ID =?;\");\r\n\t\t\tstmt.setString(1, String.valueOf(id));\r\n\t\t\tdata = stmt.executeQuery();\r\n\t\t}\r\n\t\tcatch (SQLException ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "public void query(String sql) throws SQLException {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(sql);\r\n\r\n while (rs.next()){\r\n System.out.println(rs.getInt(\"id\")+\" \"+rs.getString(\"name\")+\" \"+rs.getString(\"surname\")+\" \"+rs.getFloat(\"grade\"));\r\n }\r\n\r\n }", "private void getScholsFromDatabase() {\n schols = new Select().all().from(Scholarship.class).execute();\n }", "public static void queryTable(DynamoDbClient ddb) {\r\n String sqlStatement = \"SELECT * FROM MoviesPartiQ where year = ? ORDER BY year\";\r\n try {\r\n\r\n List<AttributeValue> parameters = new ArrayList<>();\r\n AttributeValue att1 = AttributeValue.builder()\r\n .n(String.valueOf(\"2013\"))\r\n .build();\r\n parameters.add(att1);\r\n\r\n // Get items in the table and write out the ID value.\r\n ExecuteStatementResponse response = executeStatementRequest(ddb, sqlStatement, parameters);\r\n System.out.println(\"ExecuteStatement successful: \"+ response.toString());\r\n\r\n } catch (DynamoDbException e) {\r\n System.err.println(e.getMessage());\r\n System.exit(1);\r\n }\r\n }", "public int queryByOnsale(String shelfid,String goodsid) throws SQLException {\n\t\tint result = 0;\n\t\tif (shelfid == null||goodsid==null) {\n\t\t\treturn result;\n\t\t}\n\t\tString checkSql = \"select * from onsale where shelfid=? and goodsid=?\";\n\t\tString [] checkParam = { shelfid,goodsid };\n\t\trs = db.executeQuery(checkSql, checkParam);\n\t\tif (rs.next()) {\n\t\t\tresult = 1;\n\t\t}\n\t\treturn result;\n\t\t}", "ProSchoolWare selectByPrimaryKey(String id);", "DictDoseUnit selectByPrimaryKey(Long dduId);", "public objData getQuestion(String id){\n objData objdata = new objData();\n try{\n MainClient mc = new MainClient(DBConn.getHost());\n\n String query = \"SELECT TBD_REFID, TSDB_REFID, TDB_QNO, TDB_QUEST FROM TEST_DB WHERE TDB_REFID = '\" + id + \"'\";\n String data[] = {};\n\n objdata.setTableData(mc.getQuery(query,data));\n }\n catch(Exception e){\n objdata.setErrorMessage(e.toString());\n objdata.setFlag(1);\n }\n return objdata;\n }", "Drug_OutWarehouse selectByPrimaryKey(Long id);", "@SqlQuery(\"select * from PLAYERSTATS where SCOREID = :id\")\n PlayerStats findByScoreId(@Bind(\"id\") String id);", "public static void removeSquadInfo(int idSquad)\n {\n String keyOnCache = String.format(Constants.KEY_ON_CACHE_TEMPLATE_TWO_PARAM, Constants.KEY_ON_CACHE__SQUAD_INFO, idSquad);\n InfoCache.removeFromCache(keyOnCache);\n }", "List<Quarter> getQuarterList(Integer cityId)throws EOTException;", "public List<T> query(QueryObject qo) {\n\t\treturn null;\n\t}", "public SsoAuthDO query(Integer id) throws DataAccessException;", "public ResultSet getDancesByTune(int tune_id) throws SQLException {\n\t\tquery = \"SELECT d.*, dt.name as type, mt.description as medleytype, s.name as shape, \"\n\t\t\t\t+ \"c.name as couples, p.name as progression, pb.name as publication, pn.name as devisor FROM dance d \"\n\t\t\t\t+ \"LEFT OUTER JOIN dancetype dt ON d.type_id=dt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON d.medleytype_id=mt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN shape s ON d.shape_id=s.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN couples c ON d.couples_id=c.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN progression p ON d.progression_id=p.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN dancespublicationsmap dpm ON d.id=dpm.dance_id \"\n\t\t\t\t+ \"LEFT OUTER JOIN publication pb ON dpm.publication_id=pb.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN person pn ON d.devisor_id=pn.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN dancestunesmap dtm ON d.id=dtm.dance_id \"\n\t\t\t\t+ \"WHERE dtm.tune_id=\" + tune_id + \" ORDER BY d.name\";\n\t\treturn stmt.executeQuery(query);\n\t}", "public Survey getSurveybySid(int sid);", "Disproduct selectByPrimaryKey(String samId);", "BnesBrowsingHis selectByPrimaryKey(BigDecimal browsingHisId) throws SQLException;", "Dish selectByPrimaryKey(String id);", "@Override\r\n\tpublic List<Yquestion> queryYquestion(int qid) {\n\t\treturn ym.queryYquestion(qid);\r\n\t}", "@Override\n\tpublic List<Student> queryAll() {\n\t\treturn sDao.queryAll();\n\t}", "public static Sighting find(int id) {\n\t\t try(Connection con = DB.sql2o.open()) {\n\t\t\t String sql = \"SELECT * FROM sightings where id=:id\";\n\t\t\t Sighting sighting = con.createQuery(sql)\n\t\t\t\t .addParameter(\"id\", id)\n\t\t\t\t .executeAndFetchFirst(Sighting.class);\n\t\t\t return sighting;\n\n\t\t }\n\t }", "@Override\r\n public void query(String strSQL)\r\n {\r\n try\r\n {\r\n dbRecordset = dbCmdText.executeQuery(strSQL);\r\n status(\"epic wonder \"+ strSQL);\r\n }\r\n catch (Exception ex)\r\n {status(\"Query fail\");\r\n }\r\n }", "public static List<Sighting> all() {\n\t\tString sql = \"SELECT id, name, location, rangerName FROM sightings\";\n\t\ttry(Connection con = DB.sql2o.open()) {\n\t\t\treturn con.createQuery(sql).executeAndFetch(Sighting.class);\n\t\t}\n\t}", "public List<Record> _queryPerPatrolCard_Records(Long fid) {\n synchronized (this) {\n if (perPatrolCard_RecordsQuery == null) {\n QueryBuilder<Record> queryBuilder = queryBuilder();\n queryBuilder.where(Properties.Fid.eq(null));\n perPatrolCard_RecordsQuery = queryBuilder.build();\n }\n }\n Query<Record> query = perPatrolCard_RecordsQuery.forCurrentThread();\n query.setParameter(0, fid);\n return query.list();\n }", "@Override\n public ResultSet getByID(String id) throws SQLException {\n return db.getConnection().createStatement().executeQuery(\"select * from comic where idcomic=\"+id);\n }", "private static void selectRecordsFromDbUserTable() throws SQLException {\n\n\t\tConnection dbConnection = null;\n\t\tStatement statement = null;\n\n\t\tString selectTableSQL = \"SELECT * from spelers\";\n\n\t\ttry {\n\t\t\tdbConnection = getDBConnection();\n\t\t\tstatement = dbConnection.createStatement();\n\n\t\t\tSystem.out.println(selectTableSQL);\n\n\t\t\t// execute select SQL stetement\n\t\t\tResultSet rs = statement.executeQuery(selectTableSQL);\n\n\t\t\twhile (rs.next()) {\n \n String naam = rs.getString(\"naam\");\n\t\t\t\tint punten = rs.getInt(\"punten\");\n \n System.out.println(\"naam : \" + naam);\n\t\t\t\tSystem.out.println(\"punten : \" + punten);\n\t\t\t\t\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\n\t\t\tSystem.out.println(e.getMessage());\n\n\t\t} finally {\n\n\t\t\tif (statement != null) {\n\t\t\t\tstatement.close();\n\t\t\t}\n\n\t\t\tif (dbConnection != null) {\n\t\t\t\tdbConnection.close();\n\t\t\t}\n\n\t\t}\n\n\t}", "private static void runQuery(Statement stmt, String sqlQuery) throws SQLException {\n\t\tResultSet rs;\n\t\tResultSetMetaData rsMetaData;\n\t\tString toShow;\n\t\trs = stmt.executeQuery(sqlQuery);\n\t\trsMetaData = rs.getMetaData();\n\t\tSystem.out.println(sqlQuery);\n\t\ttoShow = \"\";\n\t\twhile (rs.next()) {\n\t\t\tfor (int i = 0; i < rsMetaData.getColumnCount(); i++) {\n\t\t\t\ttoShow += rs.getString(i + 1) + \", \";\n\t\t\t}\n\t\t\ttoShow += \"\\n\";\n\t\t}\n\t\tif (toShow == \"\" ) {\n\t\t\ttoShow = \"No results found matching your criteria.\";\n\t\t}\n\t\tJOptionPane.showMessageDialog(null, toShow);\n\t}", "public static void main(String[] args) {\n\t\tSession s2=util.getSession();\r\n\t\tQuery qry=s2.getNamedQuery(\"q2\");\r\n\t\t//Query qry=s2.getNamedQuery(\"q3\");\r\n\t\t//qry.setInteger(0, 50);\r\n\t\tList<Object[]> lust=qry.list();\r\n\t\tfor(Object[] row:lust) {\r\n\t\t\tSystem.out.println(Arrays.toString(row));\r\n\t\t}\r\n\t\tSystem.out.println(\"Completed\");\r\n\t}", "public void queryTransactions(){\n System.out.println(\"-----find transaction by condition-----\");\n System.out.println(\"--press enter to skip the input--\");\n //for every query input, do not format it into sql if it is null\n String sql = \"select * from transactionrecords join ClubMembers on transactionrecords.CustomerID = ClubMembers.CustomerID where 1=1\";\n System.out.print(\"TransactionID: \");\n String unuse=scanner.nextLine();\n String id=scanner.nextLine();\n\n //if id is given, no need for other information\n if(!StringUtils.isNullOrEmpty(id)){\n sql+=(\" and TransactionID=\"+id);\n }else{\n System.out.print(\"cashier id: \");\n String cashierid=scanner.nextLine();\n if(!StringUtils.isNullOrEmpty(cashierid)){\n sql+=(\" and CashierID=\"+cashierid);\n }\n System.out.print(\"store id: \");\n String storeid=scanner.nextLine();\n if(!StringUtils.isNullOrEmpty(storeid)){\n sql+=(\" and StoreID=\"+storeid);\n }\n System.out.print(\"customer id: \");\n String customerid=scanner.nextLine();\n if(!StringUtils.isNullOrEmpty(customerid)){\n sql+=(\" and CustomerID=\"+customerid);\n }\n }\n try {\n //System.out.println(sql);\n result = statement.executeQuery(sql);\n int cnt=0;\n\n //print all qualified result one by one\n while (result.next()) {\n cnt++;\n System.out.println(\"\\n=== No.\"+cnt+\" ===\");\n System.out.println(\"transaction id: \"+result.getInt(\"TransactionID\"));\n System.out.println(\"cashier id: \"+result.getInt(\"CashierID\"));\n System.out.println(\"store id: \"+result.getInt(\"StoreID\"));\n System.out.println(\"customer id: \"+result.getInt(\"CustomerID\"));\n System.out.println(\"customer first name: \"+result.getString(\"FirstName\"));\n System.out.println(\"customer last name: \"+result.getString(\"LastName\"));\n System.out.println(\"total price: \"+result.getDouble(\"TotalPrice\"));\n }\n System.out.println(\"Total rows: \"+cnt);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "@Test\n public void testQuery() {\n DataSetArgument lArgs = new DataSetArgument();\n lArgs.add( \"aMsgId\", \"100\" );\n\n QuerySet lQs = QuerySetFactory.getInstance()\n .executeQuery( \"com.mxi.mx.integration.query.process.LookupQueueId\", lArgs );\n\n Assert.assertEquals( \"Row Count\", 1, lQs.getRowCount() );\n\n lQs.next();\n\n Assert.assertEquals( \"Queue Id\", 1000, lQs.getInt( \"queue_id\" ) );\n }", "public static Result search(Long id, String query) {\n Datasource d = Datasource.find.byId(id);\n if (d == null) {\n return notFound(\"Datasource you requested does not exist\");\n }\n Set<Dataset> matching = findDatasets(d, query);\n if (matching.isEmpty()) {\n return ok(\"No datasets found for search query. Sorry!\");\n }\n String result = \"\";\n for (Dataset set : matching) {\n result += set.getName() + \"\\n\";\n }\n return ok(result);\n }", "public List<TermSpanRecord> getResults()\n {\n String whereClause = \"owner = ?\";\n List<TermSpanRecord> results = TermSpanRecord.find(TermSpanRecord.class, whereClause, new String[]{String.valueOf(getId())});\n return results;\n }", "public ResultSet getAlbumByRecording(int recording_id) throws SQLException {\n\t\tquery = \"SELECT a.*, p.name as artist FROM album a LEFT OUTER JOIN albumsrecordingsmap arm ON a.id=arm.album_id \"\n\t\t\t\t+ \"LEFT OUTER JOIN person p ON a.artist_id=p.id WHERE arm.recording_id=\" + recording_id + \" ORDER BY a.name\";\n\t\treturn stmt.executeQuery(query);\n\t}", "public List<Question> getQuestionbySid(int sid);", "List<SellMedia> selectSellMediaByExample(SellMediaExample example) throws SQLException;", "@Transactional(propagation=Propagation.SUPPORTS,readOnly=true)\r\n\tpublic Music querySongById(Integer id) {\n\t\tMusic music = musicdao.selectSong(id);\r\n\t\treturn music;\r\n\t}", "public void getSingleTransQuery(HashMap<String, String> params) {\n\t\tID = params.get(\"transactionID\");\n\t\tREPORT_START = params.get(\"reportStart\");\n\t\tREPORT_END = params.get(\"reportEnd\");\n\t\tEXCLUDE_ERRORS = params.get(\"excludeErrors\");\n\t\tAPI = \"stq\";\n\t}", "static ResultSet dataOphalen(String querry) {\n //declaratie anders kan er niks worden gereturnt\n ResultSet rs = null;\n try {\n Statement stmt = connectieMaken().createStatement(); //\n rs = stmt.executeQuery(querry);\n } catch (SQLException se) {\n se.printStackTrace();\n }\n return rs;\n }", "@WebMethod(\"borqsids\")\n public void queryContactBorqsIDMapping(QueryParams qp,ResponseWriter writer) throws AccountException{\n \tString ownerid = qp.checkGetString(\"oid\");\n\t\tString formated = qp.getString(\"formated\",null);\n\t\tString cols = qp.getString(\"cols\",null);\n\t\t\n\t\tif(null == ownerid) {\n\t\t\tWebLog.getLogger(mContext).info(\"lose 'oid' parameter!\");\n\t\t\ttry {\n\t\t\t\tResponseWriterUtil.writeStringJson(\"result\", \"{\\\"success\\\":\\\"false\\\", \\\"message\\\":\\\"lose oid parameter\\\"}\", writer);\n\t\t\t} catch (IOException e) {\n\t\t\t\tWebLog.getLogger(mContext).info(e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new AccountException(AccountErrorCode.UNKNOWN_ERROR, e);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// fetch mappings by owner\n\t\tConnection conn = mContext.getSqlConnection();\n\t\t\n\t\tIContactsMappingService service = null;\n\t\tList<ContactMapping> mappings = null;\n\t\ttry {\n\t\t\tIContactsMappingDao dao = new ContactsMappingDao(conn);\n\t\t\tservice = new ContactsMappingService(mContext, dao);\n\t\t\tmappings = service.fetchMappingByOID(ownerid);\n\t\t\t\n\t\t\t// convert to JSON\n\t\t\tString content = service.convertToJson(mappings, cols);\n\t\t\tif(\"false\".equals(formated)) {\n\t\t\t\tCharSequence newline = System.getProperty(\"line.separator\");\n\t\t\t\tcontent = content.replace(\" \", \"\").replace(newline, \"\");\n\t\t\t}\n\t\t\t\n\t\t\tResponseWriterUtil.writeObjectJson(content,writer);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tWebLog.getLogger(mContext).info(e.getMessage());\n\t\t\tthrow new AccountException(AccountErrorCode.UNKNOWN_ERROR, e);\n\t\t} finally {\n\t\t\tDBUtility.close(conn, null, null);\n\t\t}\n }", "FormatOriginRecord selectByPrimaryKey(Integer id);", "public Cursor getRecord(int id) {\n Cursor res = db.rawQuery( \"select * from TRACKRECORD where TRACKID=\"+id+\"\", null );\n return res;\n }", "public void deleteAllQuad(Long quad) {\n\n Integer q = (int)(long) quad; \n List<OfertaDisciplina> all = listarTodasQuad(q);\n \n for (OfertaDisciplina t : all) {\n t = ofertaDisciplinaFacade.inicializarColecaoDisponibilidades(t);\n Set<Disponibilidade> ds = t.getDisponibilidades();\n Pessoa atual;\n ofertaDisciplinaFacade.remove(t);\n }\n if(q == 1){\n ofertas1LazyModel = null; \n }\n else{\n if(q == 2){\n ofertas2LazyModel = null;\n }\n else{\n ofertas3LazyModel = null;\n }\n }\n }", "public void queryTransactionDetail(){\n System.out.println(\"-----find transaction detail by condition-----\");\n System.out.println(\"--press enter to skip the input--\");\n String sql = \"select * from TransactionContains join Merchandise on TransactionContains.ProductID = Merchandise.ProductID where TransactionID=\";\n System.out.print(\"TransactionID: \");\n String unuse=scanner.nextLine();\n String id=scanner.nextLine();\n sql+=id;\n try {\n //System.out.println(sql);\n result = statement.executeQuery(sql);\n int cnt=0;\n while (result.next()) {\n cnt++;\n System.out.println(\"\\n=== No.\"+cnt+\" ===\");\n System.out.println(\"transaction id: \"+result.getInt(\"TransactionID\"));\n System.out.println(\"product id: \"+result.getInt(\"ProductID\"));\n System.out.println(\"product name: \"+result.getString(\"ProductName\"));\n System.out.println(\"actual price: \"+result.getDouble(\"ActualPrice\"));\n }\n System.out.println(\"Total rows: \"+cnt);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public String passSidForJoin(String sid) throws SQLException {\t\r\n\t\tstudents = dao.showAllDetailsForStudent(sid);\t\r\n\t\treturn \"fullStudentDetails.xhtml\";\t\r\n\t}", "public List<Map<String, Object>> query(long tableID, String key)\r\n\t{\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic snstatus queryByDocId(String sn) {\n\t\treturn (snstatus)super.getHibernateTemplate().get(snstatus.class, sn); \r\n\t}", "public ResultSet getAllByIdFromTable(String table, int id) throws SQLException {\n\t\tquery = \"SELECT * FROM '\" + table +\"' WHERE id=\" + id;\n\t\treturn stmt.executeQuery(query);\n\t}", "Thing selectByPrimaryKey(String thingid);", "Mono<Quotation> findByQid(String qid);", "public String getSquadName() {\n\n return m_squadName;\n }", "public static Segment getSegment(double id) {\n\n String idAsString = String.valueOf(id);\n String sql = \"SELECT id, fileID, fileName, thai, english, committed, removed, rank FROM corpus1 WHERE id =\" + idAsString + \";\";\n\n try (Connection conn = DatabaseOperations.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n\n // loop through the result set\n while (rs.next()) {\n // Segment ret = new Segment(rs.getInt(\"id\"), rs.getInt(\"fileID\"), rs.getString(\"fileName\"));\n return rebuildSegment(rs);\n }\n return null;\n } catch (SQLException e) {\n System.out.println(\"getSegment: \" + e.getMessage());\n }\n return null;\n }", "@Override\r\n\tpublic List<Shop> chakan(Integer sid) {\n\t\treturn dao.chakan(sid);\r\n\t}", "public List findRecords(String informationType, String queryString) throws DatabaseException;", "@Override\r\n\tpublic List<Spot> queryAllSpot() {\n\t\treturn spotRepository.queryAllSpot();\r\n\t}", "County selectByPrimaryKey(Long id);", "List<MusicInfo> selectByMusicId(String musicid);", "private static StationData findSDInList(ConcurrentLinkedQueue <StationData> queue, String id) {\n StationData returnThis = null;\r\n for ( StationData Station : queue ) {\r\n if ( Station.id.equals(id) ) {\r\n returnThis = Station;\r\n }\r\n }\r\n return returnThis;\r\n }", "Disease selectByPrimaryKey(Integer id);", "Yqbd selectByPrimaryKey(Integer id);", "QueryResponse query(SolrParams solrParams) throws SolrServerException;", "public QDAList getQDAList() {\r\n/* 231 */ return this._QDAList;\r\n/* */ }", "private void queryForSelectedSession(String sessionId) {\r\n GetSessionQuery getSessionQuery = GetSessionQuery.builder().id(sessionId).build();\r\n awsAppSyncClient.query(getSessionQuery)\r\n .responseFetcher(AppSyncResponseFetchers.NETWORK_ONLY)\r\n .enqueue(getSessionCallBack);\r\n }", "private static void search_by_id() {\r\n\t\ttry (// Creates a connection and statement object\r\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/PoisedPMS\",\"poisedpms\",\"poisedpms\");\r\n\t\t\t\t\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\t\r\n\t\t\t){\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\r\n\t\t\tSystem.out.println(\"Project id: \");\r\n\t\t\tString project_id_str = input.nextLine();\r\n\t\t\r\n\t\t\tString strSelectProject = String.format(\"SELECT * FROM projects INNER JOIN project_statuses ON \"\r\n\t\t\t\t\t+ \"projects.project_id = project_statuses.project_id;\");\r\n\t\t\tResultSet project_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\t\r\n\t\t\tfetch_all_project_info(stmt, project_id_str, project_rset);\r\n\t\t/**\r\n\t\t * @exception If entered project id cannot be found in the projects table then an SQLException is thrown\r\n\t\t */\t\r\n\t\t} catch ( SQLException ex ) {\r\n\t\t\tex . printStackTrace ();\r\n\t\t}\r\n\t\t\r\n\t}", "public ResultSet Brus(Long broker_id) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from broker where broker_id=\"+broker_id+\" \");\r\n\treturn rs;\r\n\t\r\n}", "@Override\n\t\tpublic String queryStudent(int no) throws RemoteException {\n\t\t\treturn queryString(no);\n\t\t}", "public int queryCars(int id, String location)\n throws RemoteException, DeadlockException;", "public Page searchOneRecord(String sql) {\n return mysqlDao.searchOneRecord(sql);\n }", "PrescriptionVerifyRecordDetail selectByPrimaryKey(String id);", "public List<Triplet> selectAllByRelation(int id) throws DAOException;", "protected Collection<RS_Track> selectTracksFromRecordings(String query) {\n\t\tCollection<RS_Track> tracks = new SortedArrayList<RS_Track>();\n\t\t//TODO Robbert: is deze keuze hier ok???\n\t\t\n\t\tResultSet rs;\n\t\ttry {\n\t\t\tStatement stat = conn.createStatement();\n\t\t\trs = stat.executeQuery(query);\n\t\t\t\n\t\t\twhile (rs.next()) {\t\n\t\t\t\tString artistName = rs.getString(\"artist_name\");\n\t\t\t\tString trackName = rs.getString(\"track_name\");\n\t\t\t\tRS_Track rst = new RS_Track(trackName, null, artistName, 0);\n\t\t\t\ttracks.add(rst);\n\t\t\t\t\n\t\t\t\t//TODO overleg met Thomas/Robbert welke info hier opslaan/ophalen??\n\t\t\t}\t\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Something went wrong selecting results from Recordings\");\n\t\t}\n\t\treturn tracks;\n\t}", "private SeqIter query(final int db, final int qu) throws Exception {\r\n final int size = qressizes[db * nqueries + qu];\r\n final double qtime = qt[db * nqueries + qu];\r\n \r\n if(size == 0) return new SeqIter();\r\n \r\n // query and cache result\r\n final String que = XQM + \"for $i score $s in \" +\r\n queries.get(qu) + \" order by $s descending \" +\r\n \"return (basex:sum-path($i), $s, base-uri($i))\";\r\n \r\n final Process proc = new XQuery(que);\r\n final CachedOutput res = new CachedOutput();\r\n if(session.execute(proc)) session.output(res);\r\n \r\n final SeqIter sq = new SeqIter();\r\n final StringTokenizer st = new StringTokenizer(res.toString(), \" \");\r\n String lp = \"\";\r\n int z = 0;\r\n while(st.hasMoreTokens() && z < size) {\r\n qtimes[qu] += qtime;\r\n final String p = st.nextToken();\r\n if(!st.hasMoreTokens()) break;\r\n final String s = st.nextToken();\r\n if(!st.hasMoreTokens()) break;\r\n String uri = st.nextToken();\r\n //while(uri.indexOf(\".xml\") == -1) uri = st.nextToken();\r\n uri = uri.substring(uri.lastIndexOf('/') + 1);\r\n final String tmp = uri + \";\" + p;\r\n if(!lp.equals(tmp)) {\r\n final Str str = Str.get(token(uri + \";\" + p));\r\n str.score(Double.parseDouble(s));\r\n sq.add(str);\r\n lp = tmp;\r\n }\r\n z++;\r\n }\r\n \r\n Main.outln(\"Query % on %: %\", qu + 1, databases.get(db), qtime);\r\n return sq;\r\n }" ]
[ "0.5975264", "0.57526696", "0.57159567", "0.56826514", "0.5671556", "0.563539", "0.5598788", "0.53910214", "0.52953446", "0.52776605", "0.52380544", "0.51468426", "0.514485", "0.5139072", "0.5123587", "0.5107735", "0.508047", "0.5079195", "0.50647163", "0.50441706", "0.5039788", "0.5039326", "0.5023141", "0.50192463", "0.50172335", "0.49910247", "0.4989733", "0.49601778", "0.4945366", "0.4942248", "0.4939863", "0.49289468", "0.4924732", "0.48820066", "0.48706186", "0.4865432", "0.48612383", "0.48584738", "0.4856469", "0.4850074", "0.4842099", "0.48287377", "0.48109403", "0.48079902", "0.47972947", "0.47817308", "0.47804016", "0.4780397", "0.47769907", "0.47652623", "0.47652158", "0.47636157", "0.47186214", "0.4716981", "0.47035873", "0.4703389", "0.4700912", "0.46975732", "0.46964586", "0.4695005", "0.46879074", "0.4682311", "0.46768904", "0.4674493", "0.46656504", "0.4661853", "0.46587718", "0.4657741", "0.46571413", "0.46452418", "0.4643836", "0.46434236", "0.4639806", "0.46376765", "0.46344084", "0.46308708", "0.4624812", "0.46244496", "0.4613942", "0.46093035", "0.46038046", "0.45977145", "0.45956573", "0.4593738", "0.45927677", "0.45924118", "0.45899573", "0.4585634", "0.45809373", "0.4576867", "0.45705938", "0.4559712", "0.45592263", "0.4556905", "0.45554176", "0.4552853", "0.45497006", "0.4542007", "0.45414346", "0.45378488" ]
0.61846167
0
Query DB table dc_squad for records. The sql statement for this operation is select from dc_squad where (squad_name = ?)
public DcSquadDO loadByName(String squadName) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displaySquad(Squad squad);", "public PageList query(String squadName, String axiser, String cubers, String followers,\n String investors, String status, Date gmtCreate, Date gmtModify,\n int pageSize, int pageNum) throws DataAccessException;", "public List<DcSquadDO> load() throws DataAccessException;", "public String getSquadName() {\n\n return m_squadName;\n }", "public ResultSet getRecordingsByTune(int tune_id) throws SQLException {\n\t\tquery = \"SELECT r.*, dt.name as type, mt.description as medleytype, p.name as phrasing, pn.name as artist \"\n\t\t\t\t+ \"FROM recording r LEFT OUTER JOIN dancetype dt ON r.type_id=dt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON r.medleytype_id=mt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN phrasing p ON r.phrasing_id=p.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN person pn ON r.artist_id=pn.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN tunesrecordingsmap trm ON r.id=trm.recording_id \"\n\t\t\t\t+ \"WHERE trm.tune_id=\" + tune_id + \" ORDER BY r.name\";\n\t\treturn stmt.executeQuery(query);\n\t}", "public DcSquadDO loadById(long id) throws DataAccessException;", "public ResultSet getRecordingsByDance(int dance_id) throws SQLException {\n\t\tquery = \"SELECT r.*, dt.name as type, mt.description as medleytype, p.name as phrasing, pn.name as artist \"\n\t\t\t\t+ \"FROM recording r LEFT OUTER JOIN dancetype dt ON r.type_id=dt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON r.medleytype_id=mt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN phrasing p ON r.phrasing_id=p.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN person pn ON r.artist_id=pn.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN dancesrecordingsmap drm ON r.id=drm.recording_id \"\n\t\t\t\t+ \"WHERE drm.dance_id=\" + dance_id + \" ORDER BY r.name\";\n\t\treturn stmt.executeQuery(query);\n\t}", "public ResultSet getRecordingsByAlbum(int album_id) throws SQLException {\n\t\tquery = \"SELECT r.*, dt.name as type, mt.description as medleytype, p.name as phrasing, pn.name as artist, tracknumber \"\n\t\t\t\t+ \"FROM recording r LEFT OUTER JOIN dancetype dt ON r.type_id=dt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON r.medleytype_id=mt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN phrasing p ON r.phrasing_id=p.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN albumsrecordingsmap arm ON r.id=arm.recording_id \"\n\t\t\t\t+ \"LEFT OUTER JOIN person pn ON r.artist_id=pn.id \"\n\t\t\t\t+ \"WHERE arm.album_id=\" + album_id + \" ORDER BY tracknumber\";\n\t\treturn stmt.executeQuery(query);\n\t}", "public static ResultSet searchBySurname(String name) {\r\n\t\ttry{\r\n\t\t\tconnection = DriverManager.getConnection(connectionString);\r\n\t\t\tstmt = connection.prepareStatement(\"SELECT * FROM Patient WHERE Surname =?;\");\r\n\t\t\tstmt.setString(1, name);\r\n\t\t\tdata = stmt.executeQuery();\r\n\t\t}\r\n\t\tcatch (SQLException ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "public int update(DcSquadDO dcSquad) throws DataAccessException;", "private List<OfertaDisciplina> listarTodasQuad(int quad){\n return ofertaDisciplinaFacade.findAllQuad(quad);\n }", "private static void runQuery(Statement stmt, String sqlQuery) throws SQLException {\n\t\tResultSet rs;\n\t\tResultSetMetaData rsMetaData;\n\t\tString toShow;\n\t\trs = stmt.executeQuery(sqlQuery);\n\t\trsMetaData = rs.getMetaData();\n\t\tSystem.out.println(sqlQuery);\n\t\ttoShow = \"\";\n\t\twhile (rs.next()) {\n\t\t\tfor (int i = 0; i < rsMetaData.getColumnCount(); i++) {\n\t\t\t\ttoShow += rs.getString(i + 1) + \", \";\n\t\t\t}\n\t\t\ttoShow += \"\\n\";\n\t\t}\n\t\tif (toShow == \"\" ) {\n\t\t\ttoShow = \"No results found matching your criteria.\";\n\t\t}\n\t\tJOptionPane.showMessageDialog(null, toShow);\n\t}", "@Override\r\n public void query(String strSQL)\r\n {\r\n try\r\n {\r\n dbRecordset = dbCmdText.executeQuery(strSQL);\r\n status(\"epic wonder \"+ strSQL);\r\n }\r\n catch (Exception ex)\r\n {status(\"Query fail\");\r\n }\r\n }", "private void runQuery(QueryTerm qt, String name) {\n\t\tqt.setInferred(false);\n\t\tRDFQuery q = new RDFQuery(qt);\n\t\tSystem.out.println(\"=== \"+name+\" ===\\n* OBD Query:\\n \"+qt);\n\t\tSystem.out.println(\"\\n* Autogenerated SPARQL:\\n \"+q.toSPARQL()+\"\\n\\n\");\n\t\tfor (Node n : this.shard.getNodesByQuery(qt)){\n\t\t\tSystem.out.println(\"Node: \" + n.toString());\n\t\t}\n\t\n\t}", "static ResultSet dataOphalen(String querry) {\n //declaratie anders kan er niks worden gereturnt\n ResultSet rs = null;\n try {\n Statement stmt = connectieMaken().createStatement(); //\n rs = stmt.executeQuery(querry);\n } catch (SQLException se) {\n se.printStackTrace();\n }\n return rs;\n }", "public void query(String sql) throws SQLException {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(sql);\r\n\r\n while (rs.next()){\r\n System.out.println(rs.getInt(\"id\")+\" \"+rs.getString(\"name\")+\" \"+rs.getString(\"surname\")+\" \"+rs.getFloat(\"grade\"));\r\n }\r\n\r\n }", "private void getScholsFromDatabase() {\n schols = new Select().all().from(Scholarship.class).execute();\n }", "private void searchSponsor() {\r\n String sponsorCode=null;\r\n try {\r\n CoeusSearch coeusSearch =\r\n new CoeusSearch(mdiForm, \"SPONSORSEARCH\",\r\n CoeusSearch.TWO_TABS_WITH_MULTIPLE_SELECTION );\r\n coeusSearch.showSearchWindow();\r\n javax.swing.JTable tblResultsTable = coeusSearch.getSearchResTable();\r\n if(tblResultsTable == null) return;\r\n int row = tblResultsTable.getSelectedRow();\r\n if(row!=-1){\r\n sponsorCode = (String)tblResultsTable.getValueAt(row, 0);\r\n sponsorCode = sponsorCode+\":\"+(String)tblResultsTable.getValueAt(row, 1);\r\n }else{\r\n CoeusOptionPane.showErrorDialog(\"Please select a Sponsor\");\r\n }\r\n } catch (Exception exception) {\r\n exception.printStackTrace();\r\n }\r\n int startRow = 0;\r\n TreePath root = new TreePath(sponsorHierarchyTree.getModel().getRoot());\r\n // Find the path (regardless of visibility) that matches the\r\n // specified sequence of names\r\n TreePath path = findByName(sponsorHierarchyTree, sponsorCode);\r\n if(path == null) {\r\n CoeusOptionPane.showInfoDialog(\"The sponsor:\"+sponsorCode.substring(0,sponsorCode.indexOf(\":\"))+\" is not found in this hierarchy.\");\r\n sponsorHierarchyTree.collapsePath(root);\r\n sponsorHierarchyTree.setSelectionPath(root);\r\n return;\r\n }\r\n sponsorHierarchyTree.expandPath(root);\r\n sponsorHierarchyTree.expandPath(path);\r\n sponsorHierarchyTree.setSelectionPath(path);\r\n sponsorHierarchyTree.scrollRowToVisible(sponsorHierarchyTree.getRowForPath(path));\r\n }", "@Query(\"select sh from Sponsorship sh where sh.sponsor.id=?1\")\n\tCollection<Sponsorship> sponsorshipsFromSponsor(int sponsorId);", "@Query(\"spouse.name = ?\")\n List<PersonDocument> findBySpouseName(String name);", "public long insert(DcSquadDO dcSquad) throws DataAccessException;", "public ResultSet getRecordingsByPerson(int person_id) throws SQLException {\n\t\tquery = \"SELECT r.*, dt.name as type, mt.description as medleytype, p.name as phrasing, pn.name as artist \"\n\t\t\t\t+ \"FROM recording r LEFT OUTER JOIN dancetype dt ON r.type_id=dt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON r.medleytype_id=mt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN phrasing p ON r.phrasing_id=p.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN person pn ON r.artist_id=pn.id \"\n\t\t\t\t+ \"WHERE pn.id=\" + person_id + \" ORDER BY r.name\";\n\t\treturn stmt.executeQuery(query);\n\t}", "public abstract Statement queryToRetrieveData();", "@Override\n\tpublic List<Lease> queryLeasebyStudentId(int sid) {\n\t\treturn leaseDAO.findLeasebyStudentId(sid);\n\t}", "public void createSQLQuery(String s, String returnAlias, Class<?> returnClass)\n throws HibException;", "public ResultSet query(String sQLQuery) throws SQLException {\n\t Statement stmt = c.createStatement();\n\t ResultSet ret = stmt.executeQuery(sQLQuery);\n\t stmt.close();\n\t return ret;\n\t}", "public String getNameBySID(int sid) {\n String query = \"SELECT \"+DBHelper.STORES_SNAME+\" FROM \"+DBHelper.TABLE_STORES+\" WHERE \"+DBHelper.STORES_ID+\" =?\";\n String[] arg = new String[]{String.valueOf(sid)};\n\n SQLiteDatabase db = DBHelper.getWritableDatabase();\n Cursor cursor = db.rawQuery(query, arg);\n\n if(cursor.moveToNext()) {\n String sname = cursor.getString(cursor.getColumnIndex(DBHelper.STORES_SNAME));\n db.close();\n return sname;\n }\n else{\n return null;\n }\n }", "public static boolean exists(String kingdomName) {\n try {\n java.sql.PreparedStatement s = QuartzKingdoms.DBKing.prepareStatement(\"SELECT * FROM Kingdoms WHERE KingdomName=?;\");\n s.setString(1, kingdomName);\n ResultSet res2 = s.executeQuery();\n if (res2.next()) {\n return true;\n } else {\n return false;\n }\n } catch (SQLException e) {\n e.printStackTrace();\n return false;\n }\n }", "public static List<Book> searchBookByNameAndLocation(String name,String location) throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n\r\n Query query = session.getNamedQuery(\"INVENTORY_searchBookByNameAndLocation\").setString(\"name\", name).setString(\"location\", location);\r\n\r\n List<Book> resultList = query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return resultList;\r\n \r\n }", "@Override\n\t\tpublic String queryStudent(int no) throws RemoteException {\n\t\t\treturn queryString(no);\n\t\t}", "Query query();", "@Override\n\tpublic List<Student> queryByGid(int gid) {\n\t\treturn sDao.queryByGid(gid);\n\t}", "void runQueries();", "public static ResultSet getSensor(String sensorName) {\n ResultSet rs = null;\n\n try (\n PreparedStatement stmt = conn.prepareStatement(SENSORSQL, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);) {\n stmt.setString(1, sensorName);\n\n rs = stmt.executeQuery();\n\n } catch (SQLException e) {\n System.err.println(e);\n System.out.println(\"Query 2 Issue!!\");\n }\n return rs;\n\n }", "public ResultSet consulta(String sql) {\n ResultSet res = null;\n\n try {\n PreparedStatement pstm = this.getConnection().prepareStatement(\"SELECT * FROM Clubs\");\n res = pstm.executeQuery();;\n } catch (SQLException e) {\n System.err.println(e.getMessage());\n }\n return res;\n }", "SparqlResultObject callSelectQuery(String name, Map<String, String> params);", "public Collection<URI> searchWithSPARQL(final String queryString)\n {\n if (DEBUG.SEARCH) Log.debug(\"searchWithSPARQL; queryString:\\n\" + Util.tags(queryString));\n \n final Collection<URI> resultSet = new ArrayList<URI>();\n final com.hp.hpl.jena.query.Query query = QueryFactory.create(queryString);\n \n if (DEBUG.SEARCH) Log.debug(\"QF created \" + Util.tag(query)\n + \"; memory=\" + Runtime.getRuntime().freeMemory()\n + \"\\n\" + query.toString().trim().replaceAll(\"\\n\\n\", \"\\n\"));\n\n final QueryExecution qe = QueryExecutionFactory.create(query, this); // 2nd arg is for Model or for FileManager?\n if (DEBUG.SEARCH) Log.debug(\"created QEF \" + qe + \"; memory=\" + Runtime.getRuntime().freeMemory());\n\n final ResultSet results = qe.execSelect();\n if (DEBUG.SEARCH) Log.debug(\"execSelect returned; memory=\" + Runtime.getRuntime().freeMemory());\n \n while (results.hasNext()) {\n final QuerySolution qs = results.nextSolution();\n if (DEBUG.SEARCH) {\n final String qss = qs.toString().replaceAll(\"<http://vue.tufts.edu\", \"...\"); // shorten debug output\n Log.debug(\"qSol \" + String.format(\"%.190s%s\", qss, qss.length() > 190 ? (\"...x\"+qss.length()) : \"\"));\n }\n if (false) {\n // debug debug all vars from query\n //Util.dumpIterator(qs.varNames());\n Iterator<String> vn = qs.varNames(); \n while (vn.hasNext()) {\n String v = vn.next();\n Log.debug(\"\\t\" + Util.tags(v) + \"=\" + Util.tags(qs.get(v)));\n }\n }\n try {\n resultSet.add(new URI(qs.getResource(\"rid\").getURI()));\n } catch (Throwable t) {\n Log.warn(\"handling QuerySolution \" + qs, t);\n }\n }\n qe.close();\n return resultSet;\n }", "protected void generateFromClause( WrqInfo wrqInfo, SQLStatementWithParams sqlStatement ) throws BindingException\n {\n sqlStatement.append(\" FROM \");\n WrqBindingSet bs = wrqInfo.getResultingBindingSet();\n resolvedBindingSets.addAll(bs.getResolvedBindingSets());\n sqlStatement.append(wrqInfo.getSQLSelectWithParams()); \n }", "public static void main(String[] args) {\n\t\tSession s2=util.getSession();\r\n\t\tQuery qry=s2.getNamedQuery(\"q2\");\r\n\t\t//Query qry=s2.getNamedQuery(\"q3\");\r\n\t\t//qry.setInteger(0, 50);\r\n\t\tList<Object[]> lust=qry.list();\r\n\t\tfor(Object[] row:lust) {\r\n\t\t\tSystem.out.println(Arrays.toString(row));\r\n\t\t}\r\n\t\tSystem.out.println(\"Completed\");\r\n\t}", "@Override\n\tpublic List<Student> queryAll() {\n\t\treturn sDao.queryAll();\n\t}", "public int queryByOnsale(String shelfid,String goodsid) throws SQLException {\n\t\tint result = 0;\n\t\tif (shelfid == null||goodsid==null) {\n\t\t\treturn result;\n\t\t}\n\t\tString checkSql = \"select * from onsale where shelfid=? and goodsid=?\";\n\t\tString [] checkParam = { shelfid,goodsid };\n\t\trs = db.executeQuery(checkSql, checkParam);\n\t\tif (rs.next()) {\n\t\t\tresult = 1;\n\t\t}\n\t\treturn result;\n\t\t}", "private Collection<Record> getResults(SimpleSurnameAndPostcodeQuery query) {\n\t\treturn search(query);\n\t}", "@Override\r\n\tpublic List<BIrd> searchByName(String birdName) throws Exception {\n\t\tList<BIrd> list=new ArrayList<BIrd>();\r\n\t\ttry{\r\n\t\tsession=sessionfactory.openSession();\r\n\t\ttransaction = session.beginTransaction();\r\n\t\tString sql=\"SELECT * FROM tbl_bird WHERE BirdName LIKE '%\"+birdName+\"%'\";\r\n\t\tSQLQuery query=session.createSQLQuery(sql);\r\n\t\tquery.addEntity(BIrd.class);\r\n\t\tlist=query.list();\r\n\t\tSystem.out.println(list.size());\r\n\t\t} catch (Exception e) {\r\n\t\t\ttransaction.rollback();\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tsession.close();\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "public ResultSet getAlbumByRecording(int recording_id) throws SQLException {\n\t\tquery = \"SELECT a.*, p.name as artist FROM album a LEFT OUTER JOIN albumsrecordingsmap arm ON a.id=arm.album_id \"\n\t\t\t\t+ \"LEFT OUTER JOIN person p ON a.artist_id=p.id WHERE arm.recording_id=\" + recording_id + \" ORDER BY a.name\";\n\t\treturn stmt.executeQuery(query);\n\t}", "public static List<Sighting> all() {\n\t\tString sql = \"SELECT id, name, location, rangerName FROM sightings\";\n\t\ttry(Connection con = DB.sql2o.open()) {\n\t\t\treturn con.createQuery(sql).executeAndFetch(Sighting.class);\n\t\t}\n\t}", "public List<T> query(QueryObject qo) {\n\t\treturn null;\n\t}", "public List findRecords(String informationType, String queryString) throws DatabaseException;", "@Transactional(propagation=Propagation.SUPPORTS,readOnly=true)\r\n\tpublic List<Music> queryLikeName(Integer page, Integer rows, String name) {\n\t\tList<Music> list = musicdao.selectLikeName(page, rows, name);\r\n\t\treturn list;\r\n\t}", "@Test\n public void testQuery() {\n DataSetArgument lArgs = new DataSetArgument();\n lArgs.add( \"aMsgId\", \"100\" );\n\n QuerySet lQs = QuerySetFactory.getInstance()\n .executeQuery( \"com.mxi.mx.integration.query.process.LookupQueueId\", lArgs );\n\n Assert.assertEquals( \"Row Count\", 1, lQs.getRowCount() );\n\n lQs.next();\n\n Assert.assertEquals( \"Queue Id\", 1000, lQs.getInt( \"queue_id\" ) );\n }", "private ResultSet queryDatabaseForDataRow(Connection m_dbconn, String col) \n\t{\n\t\tResultSet rs = null;\n\t\tString selectStmt = \"SELECT * FROM RELATE_W_CH WHERE Ch_Name=\\\"\" + col + \"\\\"\";\n\n\t\ttry\n\t\t{\n\t\t\tStatement stmt = m_dbconn.createStatement();\n\n\t\t\trs = stmt.executeQuery(selectStmt);\n\t\t\trs.next();\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn rs;\n\t}", "public void search() throws SQLException;", "public interface DcSquadDAO {\n /**\n * Insert one <tt>DcSquadDO</tt> object to DB table <tt>dc_squad</tt>, return primary key\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>insert into dc_squad(squad_name,squad_desc,axiser,cubers,followers,investors,status,gmt_create,gmt_modify,attention) values (?, ?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?)</tt>\n *\n *\t@param dcSquad\n *\t@return long\n *\t@throws DataAccessException\n */\n public long insert(DcSquadDO dcSquad) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad</tt>\n *\n *\t@return List<DcSquadDO>\n *\t@throws DataAccessException\n */\n public List<DcSquadDO> load() throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where (id = ?)</tt>\n *\n *\t@param id\n *\t@return DcSquadDO\n *\t@throws DataAccessException\n */\n public DcSquadDO loadById(long id) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where (squad_name = ?)</tt>\n *\n *\t@param squadName\n *\t@return DcSquadDO\n *\t@throws DataAccessException\n */\n public DcSquadDO loadByName(String squadName) throws DataAccessException;\n\n /**\n * Update DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>update dc_squad set squad_name=?, squad_desc=?, axiser=?, cubers=?, followers=?, investors=?, status=?, gmt_modify=CURRENT_TIMESTAMP where (id = ?)</tt>\n *\n *\t@param dcSquad\n *\t@return int\n *\t@throws DataAccessException\n */\n public int update(DcSquadDO dcSquad) throws DataAccessException;\n\n /**\n * Delete records from DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>delete from dc_squad where (id = ?)</tt>\n *\n *\t@param id\n *\t@return int\n *\t@throws DataAccessException\n */\n public int deleteById(long id) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where ((squad_name = ?) AND (axiser = ?) AND (cubers = ?) AND (followers = ?) AND (investors = ?) AND (status = ?) AND (gmt_create = ?) AND (gmt_modify = ?))</tt>\n *\n *\t@param squadName\n *\t@param axiser\n *\t@param cubers\n *\t@param followers\n *\t@param investors\n *\t@param status\n *\t@param gmtCreate\n *\t@param gmtModify\n *\t@param pageSize\n *\t@param pageNum\n *\t@return PageList\n *\t@throws DataAccessException\n */\n public PageList query(String squadName, String axiser, String cubers, String followers,\n String investors, String status, Date gmtCreate, Date gmtModify,\n int pageSize, int pageNum) throws DataAccessException;\n\n /**\n * Update DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>update dc_squad set attention=? where (id = ?)</tt>\n *\n *\t@param attention\n *\t@param id\n *\t@return int\n *\t@throws DataAccessException\n */\n public int updateAttention(long attention, long id) throws DataAccessException;\n\n}", "@Override\n\tpublic List<Patient> query_Name() {\n\t\tList<Patient> list = dd.query_Name();\n\t\tsqlSession.close();\n\t\treturn list;\n\t}", "public List<AbsRecord> getRecordBy(String whereClause)\n\t{\n\t\treturn getRecordBy(whereClause, new GAZRecordRowMapper());\n\t}", "private static void selectRecordsFromDbUserTable() throws SQLException {\n\n\t\tConnection dbConnection = null;\n\t\tStatement statement = null;\n\n\t\tString selectTableSQL = \"SELECT * from spelers\";\n\n\t\ttry {\n\t\t\tdbConnection = getDBConnection();\n\t\t\tstatement = dbConnection.createStatement();\n\n\t\t\tSystem.out.println(selectTableSQL);\n\n\t\t\t// execute select SQL stetement\n\t\t\tResultSet rs = statement.executeQuery(selectTableSQL);\n\n\t\t\twhile (rs.next()) {\n \n String naam = rs.getString(\"naam\");\n\t\t\t\tint punten = rs.getInt(\"punten\");\n \n System.out.println(\"naam : \" + naam);\n\t\t\t\tSystem.out.println(\"punten : \" + punten);\n\t\t\t\t\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\n\t\t\tSystem.out.println(e.getMessage());\n\n\t\t} finally {\n\n\t\t\tif (statement != null) {\n\t\t\t\tstatement.close();\n\t\t\t}\n\n\t\t\tif (dbConnection != null) {\n\t\t\t\tdbConnection.close();\n\t\t\t}\n\n\t\t}\n\n\t}", "QueryResponse query(SolrParams solrParams) throws SolrServerException;", "@Transactional(propagation=Propagation.SUPPORTS,readOnly=true)\r\n\tpublic Music queryByName(String name) {\n\t\tMusic music = musicdao.selectByName(name);\r\n\t\treturn music;\r\n\t}", "public void queryTransactions(){\n System.out.println(\"-----find transaction by condition-----\");\n System.out.println(\"--press enter to skip the input--\");\n //for every query input, do not format it into sql if it is null\n String sql = \"select * from transactionrecords join ClubMembers on transactionrecords.CustomerID = ClubMembers.CustomerID where 1=1\";\n System.out.print(\"TransactionID: \");\n String unuse=scanner.nextLine();\n String id=scanner.nextLine();\n\n //if id is given, no need for other information\n if(!StringUtils.isNullOrEmpty(id)){\n sql+=(\" and TransactionID=\"+id);\n }else{\n System.out.print(\"cashier id: \");\n String cashierid=scanner.nextLine();\n if(!StringUtils.isNullOrEmpty(cashierid)){\n sql+=(\" and CashierID=\"+cashierid);\n }\n System.out.print(\"store id: \");\n String storeid=scanner.nextLine();\n if(!StringUtils.isNullOrEmpty(storeid)){\n sql+=(\" and StoreID=\"+storeid);\n }\n System.out.print(\"customer id: \");\n String customerid=scanner.nextLine();\n if(!StringUtils.isNullOrEmpty(customerid)){\n sql+=(\" and CustomerID=\"+customerid);\n }\n }\n try {\n //System.out.println(sql);\n result = statement.executeQuery(sql);\n int cnt=0;\n\n //print all qualified result one by one\n while (result.next()) {\n cnt++;\n System.out.println(\"\\n=== No.\"+cnt+\" ===\");\n System.out.println(\"transaction id: \"+result.getInt(\"TransactionID\"));\n System.out.println(\"cashier id: \"+result.getInt(\"CashierID\"));\n System.out.println(\"store id: \"+result.getInt(\"StoreID\"));\n System.out.println(\"customer id: \"+result.getInt(\"CustomerID\"));\n System.out.println(\"customer first name: \"+result.getString(\"FirstName\"));\n System.out.println(\"customer last name: \"+result.getString(\"LastName\"));\n System.out.println(\"total price: \"+result.getDouble(\"TotalPrice\"));\n }\n System.out.println(\"Total rows: \"+cnt);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public boolean searchCertainItem(String itemname, String tableName)\n {\n String selectStr;\n ResultSet rs;\n try{\n\n selectStr=\"SELECT \"+itemname+\" FROM \"+tableName;\n rs = stmt.executeQuery(selectStr);\n\n while (rs.next())\n {\n return true;\n }\n }catch(Exception e){\n System.out.println(\"Error occurred in searchLogin\");\n }\n\n return false;\n\n }", "public ResultSet getCertainRow(String itemname, String tableName, String columnName)\n {\n\n String selectStr;\n ResultSet rs=null;\n String itemn=\"%\"+itemname+\"%\";\n\n try{\n\n selectStr=\"SELECT * FROM \"+tableName+\" WHERE \"+ columnName+\" LIKE \"+quotate(itemn);\n rs = stmt.executeQuery(selectStr);\n\n\n\n\n\n }catch(Exception e){\n System.out.println(\"Error occurred in searchLogin\");\n }\n\n return rs;\n }", "public abstract DbQuery getQuery(String queryName);", "private CriteriaQuery<Bank> getCriteriaQuery(String name, String location) {\n Expression expr; // refers to the attributes of entity class\n Root<Bank> queryRoot; // entity/table from which the selection is performed\n CriteriaQuery<Bank> queryDefinition; // query being built\n List<Predicate> predicates = new ArrayList<>(); // list of conditions in the where clause\n\n CriteriaBuilder builder; // creates predicates\n builder = em.getCriteriaBuilder();\n\n queryDefinition = builder.createQuery(Bank.class);\n // defines the from part of the query\n queryRoot = queryDefinition.from(Bank.class);\n // defines the select part of the query\n // at this point we have a query select s from Student s (select * from student in SQL)\n queryDefinition.select(queryRoot);\n if (name != null) {\n // gets access to the field called name in the Student class\n expr = queryRoot.get(\"name\");\n predicates.add(builder.like(expr, name));\n }\n\n if (location != null) {\n // gets access to the field called name in the Student class\n expr = queryRoot.get(\"location\");\n // creates condition of the form s.average >= average\n predicates.add(builder.equal(expr, location));\n }\n // if there are any conditions defined\n if (!predicates.isEmpty()) {\n // build the where part in which we combine the conditions using AND operator\n queryDefinition.where(\n builder.or(predicates.toArray(\n new Predicate[predicates.size()])));\n }\n return queryDefinition;\n }", "protected Collection<RS_Track> selectTracksFromRecordings(String query) {\n\t\tCollection<RS_Track> tracks = new SortedArrayList<RS_Track>();\n\t\t//TODO Robbert: is deze keuze hier ok???\n\t\t\n\t\tResultSet rs;\n\t\ttry {\n\t\t\tStatement stat = conn.createStatement();\n\t\t\trs = stat.executeQuery(query);\n\t\t\t\n\t\t\twhile (rs.next()) {\t\n\t\t\t\tString artistName = rs.getString(\"artist_name\");\n\t\t\t\tString trackName = rs.getString(\"track_name\");\n\t\t\t\tRS_Track rst = new RS_Track(trackName, null, artistName, 0);\n\t\t\t\ttracks.add(rst);\n\t\t\t\t\n\t\t\t\t//TODO overleg met Thomas/Robbert welke info hier opslaan/ophalen??\n\t\t\t}\t\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Something went wrong selecting results from Recordings\");\n\t\t}\n\t\treturn tracks;\n\t}", "public static void queryTable(DynamoDbClient ddb) {\r\n String sqlStatement = \"SELECT * FROM MoviesPartiQ where year = ? ORDER BY year\";\r\n try {\r\n\r\n List<AttributeValue> parameters = new ArrayList<>();\r\n AttributeValue att1 = AttributeValue.builder()\r\n .n(String.valueOf(\"2013\"))\r\n .build();\r\n parameters.add(att1);\r\n\r\n // Get items in the table and write out the ID value.\r\n ExecuteStatementResponse response = executeStatementRequest(ddb, sqlStatement, parameters);\r\n System.out.println(\"ExecuteStatement successful: \"+ response.toString());\r\n\r\n } catch (DynamoDbException e) {\r\n System.err.println(e.getMessage());\r\n System.exit(1);\r\n }\r\n }", "public static ru.terralink.mvideo.sap.Orders findByPrimaryKey(java.lang.String IV_FO_TOR_ID\n ,java.lang.String IV_FU_TOR_ID)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.findByPrimaryKey\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n \n \n String _selectSQL = \"SELECT x.\\\"a\\\",x.\\\"b\\\",x.\\\"c\\\",x.\\\"d\\\",x.\\\"e\\\",x.\\\"f\\\",x.\\\"g\\\",x.\\\"h\\\",x.\\\"i\\\",x.\\\"j\\\",x.\\\"l\\\",x.\\\"m\\\",x.\\\"n\\\",x.\\\"o\\\",x.\\\"p\\\",x.\\\"q\\\",x.\\\"r\\\",x.\\\"s\\\",x.\\\"t\\\",x.\\\"u\\\",x.\\\"v\\\",x.\\\"w\\\",x.\\\"x\\\",x.\\\"y\\\",x.\\\"z\\\",x.\\\"ba\\\",x.\\\"bb\\\",x.\\\"bc\\\",x.\\\"bd\\\",x.\\\"be\\\",x.\\\"bf\\\",x.\\\"bg\\\",x.\\\"bh\\\",x.\\\"bi\\\",x.\\\"bj\\\",x.\\\"bl\\\",x.\\\"bm\\\",x.\\\"pending\\\",x.\\\"_pc\\\",x.\\\"_rp\\\",x\"\n + \".\\\"_rf\\\",x.\\\"relationsFK\\\",x.\\\"bn\\\",x.\\\"_rc\\\",x.\\\"_ds\\\",x.\\\"cvpOperation_length\\\",x.\\\"cvpOperationLobs_length\\\" FROM \\\"mvideo5_1_0_orders\\\" x WHERE (((x.\\\"pending\\\" = 1 or not exists (select x_os.\\\"bn\\\" from \\\"mvideo5_1_0_orders_os\\\" x_os where x_os.\\\"bn\\\" = x.\\\"bn\\\")))) and ( x.\\\"bl\\\" = ? AND x.\\\"bm\\\" = ?)\";\n String[] ids = new String[0];\n com.sybase.reflection.DataType[] dts = new com.sybase.reflection.DataType[]{ \n com.sybase.reflection.DataType.forName(\"string\"),\n com.sybase.reflection.DataType.forName(\"string\"),\n };\n Object[] values = new Object[] { \n IV_FO_TOR_ID,\n IV_FU_TOR_ID,\n };\n Object res = DELEGATE.findWithSQL(_selectSQL, dts, values, ids, ru.terralink.mvideo.sap.Orders.class);\n return (ru.terralink.mvideo.sap.Orders)res;\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }", "public Question getQuestionbyId(int sid,int qid);", "public ResultSet getRecords(String table)\n\t{\n\t\tResultSet rs = null;\n\t\trs = source.select(\"select * from \" + table);\n\t\treturn rs;\n\t}", "public List<AbsRecord> getRecordBy(String whereClause)\n\t{\n\t\treturn getRecordBy(whereClause, new HBRecordRowMapper());\n\t}", "List<Quarter> getQuarterList(Integer cityId)throws EOTException;", "public Page searchOneRecord(String sql) {\n return mysqlDao.searchOneRecord(sql);\n }", "public static List<Book> searchBookByNameOfSeller(String nameOfSeller) throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n\r\n Query query = session.getNamedQuery(\"INVENTORY_searchBookByNameOfTheSeller\").setString(\"nameOfTheSeller\", nameOfSeller);\r\n\r\n List<Book> resultList = query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return resultList;\r\n \r\n }", "String queryInformation(String tableName,String queryname){\n Connection con = GetDBConnection.connectDB(\"booklibrarymanager\",\"root\",\"HanDong85\");\n String tar;\n if(tableName.equals(\"authorinformation\"))\n tar = \"author\";\n else if(tableName.equals(\"classificationinformation\"))\n tar = \"classification\";\n else tar = \"press\";\n String sql = \"select \" + tar + \"Id\" + \" from \" + tableName + \" where \";\n if(tableName.equals(\"authorinformation\"))\n sql += \"authorName = ?;\";\n else if(tableName.equals(\"classificationinformation\"))\n sql += \"classifcationName = ?;\";\n else sql += \"pressName = ?;\";\n System.out.println(sql);\n PreparedStatement preSQL;\n try{\n preSQL = con.prepareStatement(sql);\n preSQL.setString(1,queryname);\n ResultSet rs = preSQL.executeQuery();\n rs.beforeFirst();\n if(rs.next()){\n String ans = rs.getString(1);\n GetDBConnection.closeCon(con);\n return ans;\n }\n else{\n GetDBConnection.closeCon(con);\n return ERROR_TIP;\n }\n }\n catch (SQLException e){\n GetDBConnection.closeCon(con);\n return ERROR_TIP;\n }\n }", "public static List<Book> searchBookByNameAndNameOfTheSeller(String name,String nameOfTheSeller) throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n\r\n Query query = session.getNamedQuery(\"INVENTORY_searchBookByNameAndNameOfTheSeller\").setString(\"name\", name).setString(\"nameOfTheSeller\", nameOfTheSeller);\r\n\r\n List<Book> resultList = query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return resultList;\r\n \r\n }", "public List<TermSpanRecord> getResults()\n {\n String whereClause = \"owner = ?\";\n List<TermSpanRecord> results = TermSpanRecord.find(TermSpanRecord.class, whereClause, new String[]{String.valueOf(getId())});\n return results;\n }", "public List<Record> _queryWholePatrolCard_Records(Long fid) {\n synchronized (this) {\n if (wholePatrolCard_RecordsQuery == null) {\n QueryBuilder<Record> queryBuilder = queryBuilder();\n queryBuilder.where(Properties.Fid.eq(null));\n wholePatrolCard_RecordsQuery = queryBuilder.build();\n }\n }\n Query<Record> query = wholePatrolCard_RecordsQuery.forCurrentThread();\n query.setParameter(0, fid);\n return query.list();\n }", "public ResultSet execute(final String stmt) throws SQLException {\n return connection.createStatement().executeQuery(stmt);\n }", "public void retriveSearchSaleDataFromDB(String search1,String search2, String selection) throws SQLException {\r\n\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n\r\n\r\n Character x = '\\'';\r\n String y = \"%\";\r\n ResultSet rs = null;\r\n ResultSet rs2 = null;\r\n\r\n String searchWord = x + y + search1 + y + x;\r\n String searchWord1 = x + search1 + x;\r\n String searchWord2 = x + search2 + x;\r\n\r\n\r\n try (Connection con = DBConnection.getconnection(); Statement stmt = con.createStatement()) {\r\n\r\n // selction of the SQL statment depending on RadioButton clicked by the user\r\n if (selection.equals(\"SaleNumber\")) {\r\n\r\n String SQL = \"SELECT * FROM Sales where Sales.SaleNumber>=\" + search1 + \" AND \" + \"Sales.SaleNumber<=\" + search2; // filters rows by Sale Number\r\n rs = stmt.executeQuery(SQL);\r\n\r\n\r\n } else if (selection.equals(\"dateSelected\")) {\r\n\r\n String SQL = \"SELECT * FROM Sales where Sales.Date between \" + searchWord1 + \" AND \" + searchWord2; // filters rows by selected date\r\n rs = stmt.executeQuery(SQL);\r\n\r\n\r\n } else if (selection.equals(\"customerName\")) {\r\n\r\n String SQL = \"SELECT * FROM Sales where Sales.Customer like \" + searchWord; // filters rows by typed Customer Name\r\n rs = stmt.executeQuery(SQL);\r\n } else if (selection.equals(\"productName\")) {\r\n\r\n String SQL = \"SELECT * FROM Sales where Sales.Product like \" + searchWord; // filters rows by typed Product Name\r\n rs = stmt.executeQuery(SQL);\r\n } else if (selection.equals(\"category\")) {\r\n\r\n String SQL = \"SELECT * FROM Sales where Sales.Category like \" + searchWord; // filters rows by typed Category\r\n rs = stmt.executeQuery(SQL);\r\n }\r\n\r\n while (rs.next()) {\r\n addSaleToTableList(new Sales(rs.getInt(\"SaleNumber\"), simpleDateFormat.format(rs.getDate(\"Date\")), rs.getString(\"Time\"), rs.getString(\"Customer\"),\r\n rs.getString(\"Product\"), rs.getString(\"Code\"), rs.getString(\"Size\"),\r\n rs.getString(\"Units\"), rs.getString(\"Category\"), rs.getString(\"Quantity\"), rs.getString(\"UnitPrice\"), rs.getString(\"SalePrice\")));\r\n\r\n }\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "protected ResultSet selectStaff() {\r\n\t\tResultSet rs = sqlSelect( \"*\", \"Staff\", \"\");\r\n\t\treturn rs;\r\n\t}", "public void namedQuery(String name) throws HibException;", "public static ResultSet ListRs(String S) {\n\n Connection con = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n\n try {\n con = DBConnect.openConnection();\n ps = con.prepareStatement(S);\n\n rs = ps.executeQuery();\n// while (rs.next()) {\n// tad u = new tad();\n// u.setId(rs.getInt(1));\n// u.setOutlook(rs.getString(2));\n// u.setTemperature(rs.getString(3));\n// u.setHumidity(rs.getString(4));\n// u.setWindy(rs.getString(5));\n// u.setClasses(rs.getString(6));\n// list.add(u);\n// }\n } catch (SQLException ex) {\n Logger.getLogger(tadDAO.class.getName()).log(Level.SEVERE, null, ex);\n// } finally {\n// DBConnect.closeAll(con, ps, rs);\n }\n\n return rs;\n }", "public Query getQuery(Map points, boolean forMapping, boolean[] geokosher) {\n Query query;\n if (chkUseRawName.isChecked()) {\n query = QueryUtil.get(autoComplete.getFacetField(), ((Comboitem)autoComplete.getSelection()).getAnnotatedProperties().get(0), forMapping, geokosher);\n } else {\n query = QueryUtil.get(((Comboitem)autoComplete.getSelection()).getAnnotatedProperties().get(0), points, forMapping, geokosher);\n }\n return query;\n }", "public ResultSet searchTableByName(String table, String name, boolean ihave) throws SQLException {\n\t\tname = name.replace(\"'\", \"''\");\n\t\tif(table.equals(\"dance\")) {\n\t\t\tquery = \"SELECT d.*, dt.name as type, mt.description as medleytype, s.name as shape, \"\n\t\t\t\t\t+ \"c.name as couples, p.name as progression, pb.name as publication, pn.name as devisor FROM dance d \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN dancetype dt ON d.type_id=dt.id \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON d.medleytype_id=mt.id \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN shape s ON d.shape_id=s.id \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN couples c ON d.couples_id=c.id \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN progression p ON d.progression_id=p.id \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN dancespublicationsmap dpm ON d.id=dpm.dance_id \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN publication pb ON dpm.publication_id=pb.id \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN person pn ON d.devisor_id=pn.id \"\n\t\t\t\t\t+ \"WHERE d.name like '%\" + name + \"%'\";\n\t\t\tif(ihave) {\n\t\t\t\tquery += \" AND d.ihave=1\";\n\t\t\t}\n\t\t\tquery += \" ORDER by name\";\n\t\t} else if(table.equals(\"album\")) {\n\t\t\tquery = \"SELECT a.*, p.name as artist FROM album a \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN person p ON a.artist_id=p.id \"\n\t\t\t\t\t+ \"WHERE a.name like '%\" + name + \"%'\";\n\t\t\tif(ihave) {\n\t\t\t\tquery += \" AND a.ihave=1\";\n\t\t\t}\n\t\t\tquery += \" ORDER by name\";\n\t\t} else if(table.equals(\"publication\")) {\n\t\t\tquery = \"SELECT pb.*, pr.name as devisor FROM publication pb \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN person pr ON pb.devisor_id=pr.id WHERE pb.name like '%\" + name + \"%'\";\n\t\t\tif(ihave) {\n\t\t\t\tquery += \" AND pb.ihave=1\";\n\t\t\t}\n\t\t\tquery += \" ORDER by name\";\n\t\t} else if(table.equals(\"recording\")){\n\t\t\tquery = \"SELECT r.*, dt.name as type, mt.description as medleytype, p.name as phrasing, pn.name as artist \"\n\t\t\t\t\t+ \"FROM recording r LEFT OUTER JOIN dancetype dt ON r.type_id=dt.id \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON r.medleytype_id=mt.id \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN phrasing p ON r.phrasing_id=p.id \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN person pn ON r.artist_id=pn.id \"\n\t\t\t\t\t+ \"WHERE r.name like '%\" + name + \"%'\";\n\t\t\tif(ihave) {\n\t\t\t\tquery += \" AND r.ihave=1\";\n\t\t\t}\n\t\t\tquery += \" ORDER by name\";\n\t\t} else {\n\t\t\tquery = \"SELECT * FROM \" + table + \" WHERE name like '%\" + name + \"%'\";\n\t\t\tif(ihave) {\n\t\t\t\tquery += \" AND ihave=1\";\n\t\t\t}\n\t\t}\n\t\treturn stmt.executeQuery(query);\n\t}", "@Test\n\tpublic void selectFromCourseTable_where() {\n\t\tList arrayList = em.createNamedQuery(\"query_with_where_name_like_call\",Course.class).getResultList();\n\t\tlogger.info(\"\\n\\n>>>>>>> Select c FROM Course c WHERE name like '%call%' -> {}\", arrayList);\n\t}", "@Test\n public void testShowSearchedApartment() throws SQLException {\n System.out.println(\"showSearchedApartment\");\n String location = \"gokarna\";\n ApartmentBLL instance = new ApartmentBLL();\n ResultSet result = instance.showSearchedApartment(location);\n assertTrue(result.next());\n }", "public void createQuery(String s) throws HibException;", "@Override\n public List<BaseLog> query(String realname) {\n BaseLogExample example = new BaseLogExample();\n if(realname!=null){\n example.createCriteria().andRealnameLike(\"%\"+realname+\"%\");\n }\n List<BaseLog> list = baseLogMapper.selectByExample(example);\n return list;\n }", "public List<SubQueryDef> getSubQueries();", "public void getCityList(String quName) {\n this.mCityShowMode = true;\n if (this.mCityCursor != null) {\n this.mCityCursor.close();\n this.mCityCursor = null;\n }\n if (this.mCityRedMan != null) {\n this.mCityCursor = this.mCityRedMan.queryCityRec(quName);\n if (this.mCityCursor != null) {\n Log.i(TAG, \"mCityCursor count = \" + this.mCityCursor.getCount());\n }\n }\n }", "public static List<StudentInfo> searchStudentInfo(String firtname, String lastname) {\r\n \r\n List<StudentInfo> students = new ArrayList<>();\r\n \r\n // declare resultSet\r\n ResultSet rs = null;\r\n \r\n // declare prepared statement\r\n PreparedStatement preparedStatement = null;\r\n \r\n // declare connection\r\n Connection conn = null;\r\n try {\r\n // get connection\r\n conn = DBUtils.getConnection();\r\n\r\n // set prepared statement\r\n preparedStatement = conn\r\n .prepareStatement(\"SELECT instructor.FName, instructor.LName,\" +\r\n \" IF(EXISTS ( SELECT * FROM gra WHERE gra.StudentId = phdstudent.StudentId) , 'GRA', \" +\r\n \" IF(EXISTS ( SELECT * FROM gta WHERE gta.StudentId = phdstudent.StudentId) , 'GTA', \" +\r\n \" IF(EXISTS ( SELECT * FROM scholarshipsupport WHERE scholarshipsupport.StudentId = phdstudent.StudentId) , 'scholarship', \" +\r\n \" IF(EXISTS ( SELECT * FROM selfsupport WHERE selfsupport.StudentId = phdstudent.StudentId) , 'self', ''))\" +\r\n \" )) AS StudentType, \" +\r\n \" milestone.MName, milestonespassed.PassDate\" +\r\n \" FROM phdstudent left join instructor on instructor.InstructorId = phdstudent.Supervisor\"\r\n + \" left join milestonespassed on phdstudent.StudentId = milestonespassed.StudentId\"\r\n + \" left join milestone on milestonespassed.MID = milestone.MID\" +\r\n \" WHERE phdstudent.FName = ? AND phdstudent.LName = ?\");\r\n \r\n // execute query\r\n preparedStatement.setString(1, firtname);\r\n preparedStatement.setString(2, lastname); \r\n\r\n rs = preparedStatement.executeQuery();\r\n \r\n //iterate and create the StudentInfo objects\r\n while (rs.next()) {\r\n \r\n students.add(new StudentInfo(rs.getString(1)+ \" \" + rs.getString(2), rs.getString(3), rs.getString(4), \r\n utils.Utils.toDate(rs.getDate(5))));\r\n\r\n }\r\n }catch(Exception ex){\r\n ex.printStackTrace();\r\n }\r\n finally {\r\n DBUtils.closeResource(conn);\r\n DBUtils.closeResource(preparedStatement);\r\n DBUtils.closeResource(rs);\r\n } \r\n \r\n return students; \r\n }", "public String passSidForJoin(String sid) throws SQLException {\t\r\n\t\tstudents = dao.showAllDetailsForStudent(sid);\t\r\n\t\treturn \"fullStudentDetails.xhtml\";\t\r\n\t}", "public List<Literal> query(Literal q) {\n\r\n\t\t\r\n\t\tList<Literal> result = datalogReasoner.query(compiledClauses, q);\r\n\t\t\r\n\t\tLDLPProgramQueryResultDecompiler decompiler = new LDLPProgramQueryResultDecompiler();\r\n\t\t\r\n\t\tresult = decompiler.decompileLiterals(result);\r\n\t\t\t\t\r\n\t\treturn result;\r\n\r\n\r\n\t}", "public PreparedQuery getQuery() {\n Query query = new Query(\"TrackedLocation\").addSort(\"cityName\", SortDirection.ASCENDING);\n return datastore.prepare(query);\n }", "public ResultSet fetchSelectUserByUNameBookings(String uName) {\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tTo create connection to the DataBase\r\n\t\t\t*/\r\n\t\t\tnew DbConnection();\r\n\t\t\t/**\r\n\t\t\t*\tStore the table data in ResultSet rs and then return it\r\n\t\t\t*/\r\n\t\t\tpstmt = conn.prepareStatement(SELECT_USER_BOOKING_BY_UNAME_QUERY);\r\n\t\t\tpstmt.setString(1, uName);\r\n\t\t\trs = pstmt.executeQuery();\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSqlExcep.printStackTrace();\r\n\t\t} catch(ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\tcloseDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t\treturn rs;\r\n\t}", "@Override\n @Transactional\n public List<Patient> selectPatientsByAttendingDoctor(String doctorFullname) {\n return patientDAO.getByAttendingDoctor(doctorFullname);\n }", "public String executeQueryS(String SQL){\n\t\ttry {\n\t\t\trs = stmt.executeQuery(SQL);\n\t\t\tif(rs.next()){\n\t\t\t\treturn rs.getString(\"Name\");\n\t\t\t}\n\t\t\treturn \"\";\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn \"\";\n\t}", "public ResultSet getAll(String tableName)\n {\n\n String selectStr;\n ResultSet rs=null;\n\n try{\n\n selectStr=\"SELECT * FROM \"+tableName;\n rs = stmt.executeQuery(selectStr);\n\n\n\n\n\n }catch(Exception e){\n System.out.println(\"Error occurred in searchLogin\");\n }\n\n return rs;\n }", "private String queryFormerFromStudent(String firstName, String lastName, String bcsYear) {\n String query = \"SELECT * FROM student WHERE \";\n\n if (firstName != null) {\n query = query + \"firstName = \\\"\" + firstName + \"\\\" AND \";\n }\n\n if (lastName != null) {\n query = query + \"lastName = \\\"\" + lastName + \"\\\" AND \";\n }\n\n if (bcsYear != null) {\n query = query + \"bcsYear = \\\"\" + bcsYear + \"\\\";\";\n }\n\n return query;\n }", "public ResultSet runQuery(String sql){\n\n try {\n\n Statement stmt = conn.createStatement();\n\n return stmt.executeQuery(sql);\n\n } catch (SQLException e) {\n e.printStackTrace(System.out);\n return null;\n }\n\n }", "public ResultSet advancedTableSearch(String table, String name, Map<String,String> map, boolean ihave) throws SQLException{\n\t\tif(table.equals(\"dance\")) {\n\t\t\tquery = \"SELECT d.*, dt.name as type, mt.description as medleytype, s.name as shape, \"\n\t\t\t\t\t+ \"c.name as couples, p.name as progression, pb.name as publication, pn.name as devisor \"\n\t\t\t\t\t+ \"FROM dance d \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN dancetype dt ON d.type_id=dt.id \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON d.medleytype_id=mt.id \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN shape s ON d.shape_id=s.id \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN couples c ON d.couples_id=c.id \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN progression p ON d.progression_id=p.id \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN dancespublicationsmap dpm ON d.id=dpm.dance_id \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN publication pb ON dpm.publication_id=pb.id \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN person pn ON d.devisor_id=pn.id \";\n\t\t\tif (name.length() != 0){\n\t\t\t\tif (name.contains(\"'\"))\n\t\t\t\t\tquery += \"WHERE d.name like '%\" + name.replace(\"'\", \"''\") + \"%'\";\n\t\t\t\telse\n\t\t\t\t\tquery += \"WHERE d.name like '%\" + name + \"%'\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tquery += \"WHERE d.name like '%%'\";\n\t\t\tObject[] keys = map.keySet().toArray();\n\t\t\tfor (int i=0; keys.length>i; i++){\n\t\t\t\tString param = (String)keys[i];\n\t\t\t\tString val = map.get(keys[i]);\n\t\t\t\tif(!val.isEmpty()){\n\t\t\t\t\tval.replace(\"'\", \"''\");\n\t\t\t\t\tif (param.equals(\"bars\")){\n\t\t\t\t\t\tquery += \" AND d.barsperrepeat\"+val;\n\t\t\t\t\t}\n\t\t\t\t\telse if (param.equals(\"author\")){\n\t\t\t\t\t\tquery += \" AND pn.name like '%\"+val+\"%'\";\n\t\t\t\t\t}\n\t\t\t\t\telse if (param.equals(\"type\")){\n\t\t\t\t\t\tquery += \" AND dt.name='\"+ val +\"'\";\n\t\t\t\t\t}\n\t\t\t\t\telse if (param.equals(\"couples\")){\n\t\t\t\t\t\tquery += \" AND c.name='\"+ val +\"'\";\n\t\t\t\t\t}\n\t\t\t\t\telse if (param.equals(\"shape\")){\n\t\t\t\t\t\tquery += \" AND s.name='\"+ val +\"'\";\n\t\t\t\t\t}\n\t\t\t\t\telse if (param.equals(\"formation\") && !(val.contains(\"* * * * *\"))){\n\t\t\t\t\t\tString[] formations = new String[5];\n\t\t\t\t\t\tint len = val.length();\n\t\t\t\t\t\tfor (int k=0,j=0,count=0; k<len; k++){\n\t\t\t\t\t\t\tif (val.substring(k,k+1).equals(\"~\")){\n\t\t\t\t\t\t\t\tif (val.substring(j,k).equals(\"and\") || val.substring(j,k).equals(\"or\")){\n\t\t\t\t\t\t\t\t\tformations[count] = val.substring(j,k);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if (val.substring(j,k).equals(\"not\")){\n\t\t\t\t\t\t\t\t\tformations[count] = \"and \" +val.substring(j,k);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\tformations[count] = stmt.executeQuery(\"SELECT id FROM formation WHERE name='\"+val.substring(j,k)+\"'\").getString(1);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t\tj=k+1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(val.substring(k,k+1).equals(\"*\")){\n\t\t\t\t\t\t\t\tj=k+2;\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(val.substring(k,k+1).equals(\"'\")){\n\t\t\t\t\t\t\t\tval = val.substring(0,k) + \"'\" + val.substring(k+1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (formations[0] != null){\n\t\t\t\t\t\t\tquery += \" AND (d.id IN (SELECT dfm.dance_id FROM dancesformationsmap dfm\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tquery+= \" WHERE dfm.formation_id='\" + formations[0] +\"')\";\n\t\t\t\t\t\t\tif (formations[1] != null && formations[2] != null){\n\t\t\t\t\t\t\t\tquery+= \" \" +formations[1] + \" d.id IN (SELECT dfm.dance_id FROM dancesformationsmap dfm\"\n\t\t\t\t\t\t\t\t\t\t+ \" WHERE dfm.formation_id='\"+formations[2] +\"')\";\n\t\t\t\t\t\t\t\tif (formations[3] != null && formations[4] != null)\n\t\t\t\t\t\t\t\t\tquery+= \" \"+ formations[3] + \" d.id IN (SELECT dfm.dance_id FROM dancesformationsmap dfm\"\n\t\t\t\t\t\t\t\t\t\t\t+ \" WHERE dfm.formation_id='\" + formations[4] +\"'))\";\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\tquery += \")\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tquery += \")\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse if (param.equals(\"steps\") && !(val.contains(\"* * * * *\"))){\n\t\t\t\t\t\tString[] steps = new String[5];\n\t\t\t\t\t\tint len = val.length();\n\t\t\t\t\t\tfor (int k=0,j=0,count=0; k<len; k++){\n\t\t\t\t\t\t\tif (val.substring(k,k+1).equals(\"~\")){\n\t\t\t\t\t\t\t\tif (val.substring(j,k).equals(\"and\") || val.substring(j,k).equals(\"or\")){\n\t\t\t\t\t\t\t\t\tsteps[count] = val.substring(j,k);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if (val.substring(j,k).equals(\"not\")){\n\t\t\t\t\t\t\t\t\tsteps[count] = \"and \" +val.substring(j,k);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\tsteps[count] = stmt.executeQuery(\"SELECT id FROM step WHERE name='\"+val.substring(j,k)+\"'\").getString(1);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t\tj=k+1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(val.substring(k,k+1).equals(\"*\")){\n\t\t\t\t\t\t\t\tj=k+2;\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(val.substring(k,k+1).equals(\"'\")){\n\t\t\t\t\t\t\t\tval = val.substring(0,k) + \"'\" + val.substring(k+1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (steps[0] != null){\n\t\t\t\t\t\t\tquery += \" AND (d.id IN (SELECT dsm.dance_id FROM dancesstepsmap dsm\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tquery+= \" WHERE dsm.step_id='\" + steps[0] +\"')\";\n\t\t\t\t\t\t\tif (steps[1] != null && steps[2] != null){\n\t\t\t\t\t\t\t\tquery+= \" \" +steps[1] + \" d.id IN (SELECT dsm.dance_id FROM dancesstepsmap dsm\"\n\t\t\t\t\t\t\t\t\t\t+ \" WHERE dsm.step_id='\"+steps[2] +\"')\";\n\t\t\t\t\t\t\t\tif (steps[3] != null && steps[4] != null)\n\t\t\t\t\t\t\t\t\tquery+= \" \"+ steps[3] + \" d.id IN (SELECT dsm.dance_id FROM dancesstepsmap dsm\"\n\t\t\t\t\t\t\t\t\t\t\t+ \" WHERE dsm.step_id='\" + steps[4] +\"'))\";\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\tquery += \")\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tquery += \")\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (param.equals(\"RSCDS\")){\n\t\t\t\t\t\tif (val.equals(\"1\")){\n\t\t\t\t\t\t\tquery += \" AND d.id IN (SELECT dpm.dance_id FROM dancespublicationsmap dpm \"\n\t\t\t\t\t\t\t\t\t+ \"LEFT OUTER JOIN publication pb \"\n\t\t\t\t\t\t\t\t\t+ \"WHERE dpm.publication_id=pb.id AND pb.shortname like '%RSCDS%')\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(ihave) {\n\t\t\t\tquery += \" AND d.ihave=1\";\n\t\t\t}\n\t\t\tquery += \" GROUP by d.name, publication\";\n\t\t}\n\t\telse if(table.equals(\"publication\")) {\n\t\t\tquery = \"SELECT pb.*, pr.name as devisor FROM publication pb \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN person pr ON pb.devisor_id=pr.id \";\n\t\t\tif (name.length() != 0){\n\t\t\t\tif (name.contains(\"'\"))\n\t\t\t\t\tquery += \"WHERE pb.name like '%\" + name.replace(\"'\", \"''\") + \"%'\";\n\t\t\t\telse\n\t\t\t\t\tquery += \"WHERE pb.name like '%\" + name + \"%'\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tquery += \"WHERE pb.name like '%%'\";\n\t\t\tString author = map.get(\"author\");\n\t\t\tauthor = author.replace(\"'\", \"''\");\n\t\t\tString rscds = map.get(\"RSCDS\");\n\t\t\tif (!author.isEmpty())\n\t\t\t\tquery += \" AND pr.name like '%\"+author+\"%'\";\n\t\t\tif (rscds.equals(\"1\"))\n\t\t\t\tquery += \" AND pb.rscds\";\n\t\t\tif(ihave) {\n\t\t\t\tquery += \" AND pb.ihave=1\";\n\t\t\t}\n\t\t\tquery += \" ORDER by name\";\n\t\t}\n\t\telse if(table.equals(\"recording\")){\n\t\t\tquery = \"SELECT r.*, dt.name as type, mt.description as medleytype, p.name as phrasing, pn.name as artist \"\n\t\t\t\t\t+ \"FROM recording r LEFT OUTER JOIN dancetype dt ON r.type_id=dt.id \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON r.medleytype_id=mt.id \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN phrasing p ON r.phrasing_id=p.id \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN person pn ON r.artist_id=pn.id \";\n\t\t\tif (name.length() != 0){\n\t\t\t\tif (name.contains(\"'\"))\n\t\t\t\t\tquery += \"WHERE r.name like '%\" + name.replace(\"'\", \"''\") + \"%'\";\n\t\t\t\telse\n\t\t\t\t\tquery += \"WHERE r.name like '%\" + name + \"%'\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tquery += \"WHERE r.name like '%%'\";\n\t\t\tString type = map.get(\"type\");\n\t\t\ttype= type.replace(\"'\", \"''\");\n\t\t\tString medley = map.get(\"medley type\");\n\t\t\tmedley = medley.replace(\"'\", \"''\");\n\t\t\tString repetitions = map.get(\"repetitions\");\n\t\t\trepetitions= repetitions.replace(\"'\", \"''\");\n\t\t\tString bars = map.get(\"bars\");\n\t\t\tbars = bars.replace(\"'\", \"''\");\n\t\t\tif (type != null)\n\t\t\t\tif (!type.isEmpty())\n\t\t\t\t\tquery += \" AND dt.name='\"+type+\"'\";\n\t\t\tif (medley != null)\n\t\t\t\tif (!medley.isEmpty())\n\t\t\t\t\tquery += \" AND mt.description='\"+medley+\"'\";\n\t\t\tif (repetitions != null)\n\t\t\t\tif (!repetitions.isEmpty())\n\t\t\t\t\tquery += \" AND r.repetitions\"+repetitions;\n\t\t\tif (bars != null)\n\t\t\t\tif (!bars.isEmpty())\n\t\t\t\t\tquery += \" AND r.barsperrepeat\"+bars;\n\t\t\tif(ihave) {\n\t\t\t\tquery += \" AND r.ihave=1\";\n\t\t\t}\n\t\t\tquery += \" ORDER by name\";\n\t\t} \n\t\telse if(table.equals(\"album\")) {\n\t\t\tquery = \"SELECT a.*, p.name as artist FROM album a \"\n\t\t\t\t\t+ \"LEFT OUTER JOIN person p ON a.artist_id=p.id \";\n\t\t\tif (name.length() != 0){\n\t\t\t\tif (name.contains(\"'\"))\n\t\t\t\t\tquery += \"WHERE a.name like '%\" + name.replace(\"'\", \"''\") + \"%'\";\n\t\t\t\telse\n\t\t\t\t\tquery += \"WHERE a.name like '%\" + name + \"%'\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tquery += \"WHERE a.name like '%%'\";\n\t\t\tString artist = map.get(\"artist_id\");\n\t\t\tartist = artist.replace(\"'\", \"''\");\n\t\t\tString year = map.get(\"productionyear\");\n\t\t\tyear = year.replace(\"'\", \"''\");\n\t\t\tif (artist != null)\n\t\t\t\tif(!artist.isEmpty())\n\t\t\t\t\tquery += \" AND p.name like '%\"+artist+\"%'\";\n\t\t\tif (year != null)\n\t\t\t\tif (!year.isEmpty())\n\t\t\t\t\tquery += \" AND a.productionyear=\"+year;\n\t\t\tif(ihave) {\n\t\t\t\tquery += \" AND a.ihave=1\";\n\t\t\t}\n\t\t\tquery += \" ORDER by name\";\n\t\t}\n\t\telse {\n\t\t\tquery = \"SELECT * FROM \" + table + \" WHERE name like '%\" + name + \"%'\";\n\t\t\tif(ihave) {\n\t\t\t\tquery += \" AND ihave=1\";\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(query);\n\t\treturn stmt.executeQuery(query);\n\t}", "public final void querySAX(String statementName, ContentHandler handler,\n\t\t\tAttributes atts, Object[] args) throws SQLException, SAXException {\n\t\tSQLStatement ss = this.getStatement(statementName);\n\t\tfinal Connection con = getConnection();\n\t\tPreparedStatement stmt = null;\n\t\ttry {\n\t\t\tstmt = ss.prepareStatement(con, args);\n\t\t\tDOMUtils.resultSet2ContentHandler(stmt.executeQuery(), handler,\n\t\t\t\t\tatts);\n\t\t} finally {\n\t\t\tif (stmt != null)\n\t\t\t\tstmt.close();\n\t\t\tif (con != null)\n\t\t\t\tcon.close();\n\t\t}\n\t}" ]
[ "0.5732306", "0.5512185", "0.5415957", "0.539364", "0.52919906", "0.5244225", "0.5233141", "0.5220447", "0.52190393", "0.5200291", "0.5116002", "0.49820718", "0.49545133", "0.4949906", "0.49344805", "0.49236953", "0.49124843", "0.4888709", "0.48783106", "0.48751375", "0.48691612", "0.4853029", "0.48436412", "0.48186627", "0.47775793", "0.475447", "0.47436562", "0.47432008", "0.4737656", "0.47307947", "0.47259644", "0.47255972", "0.47211578", "0.4719578", "0.47174817", "0.4706484", "0.4701938", "0.46999148", "0.46981034", "0.4676891", "0.46725106", "0.4668141", "0.46656066", "0.46446258", "0.46427333", "0.4636448", "0.46302465", "0.46237352", "0.4600135", "0.45857924", "0.45759612", "0.45750427", "0.45716554", "0.45620784", "0.45591128", "0.45528865", "0.455006", "0.45464963", "0.45438802", "0.45433122", "0.45339212", "0.45290905", "0.45279986", "0.45215258", "0.45186266", "0.45160902", "0.45066223", "0.4493422", "0.44902852", "0.44804543", "0.44675308", "0.44633543", "0.44603592", "0.44603282", "0.4457435", "0.44546476", "0.4452745", "0.44496143", "0.44469893", "0.44466218", "0.44432124", "0.4438993", "0.4437235", "0.44360644", "0.44345948", "0.44285706", "0.44284412", "0.442663", "0.4426089", "0.44181493", "0.44156396", "0.44128773", "0.44074675", "0.44054267", "0.4404308", "0.44013754", "0.4397365", "0.43946704", "0.43888786", "0.43878955" ]
0.65393525
0
Update DB table dc_squad. The sql statement for this operation is update dc_squad set squad_name=?, squad_desc=?, axiser=?, cubers=?, followers=?, investors=?, status=?, gmt_modify=CURRENT_TIMESTAMP where (id = ?)
public int update(DcSquadDO dcSquad) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update (int ID, String frist_name, String lastName, String nationality, \n int age, Date commingDate, Date checkOutDate){\n String qury = \"update customer\\n\" +\n \"set First_name = '\"+frist_name+\"', Last_name = '\"+lastName+\"', nationality = '\"+\n nationality+\"', age = \"+age+\", coming_date = '\"\n +commingDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate().plusDays(2)+\n \"', check_out_date = '\"+checkOutDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate().plusDays(2)+\"'\\n\" +\n \"where customer_id = \"+ID;\n try {\n statement.executeUpdate(qury);\n }catch (SQLException e)\n {\n e.printStackTrace();\n }finally{\n setQuery(DEFUALT_QUERY);\n }\n }", "@Override\n\tpublic void updateStock(Stock s) {\n\n\t\ttry {\n\t String sql = \"INSERT or Replace into stockTable (hlr,sim,card,easyL,easyLR,easyP,easyPR,cash) \"\n\t \t\t+ \"VALUES (?,?,?,?,?,?,?,?)\";\n\t \n\t prepStmt = connection.prepareStatement(sql);\n\t prepStmt.setInt(1, s.getHlr());\n\t prepStmt.setInt(2, s.getSim());\n\t prepStmt.setInt(3, s.getCard());\n\t prepStmt.setInt(4, s.getEasyLoad());\n\t prepStmt.setInt(5, s.getEasyLoadReturn());\n\t prepStmt.setInt(6, s.getEasyPaisa());\n\t prepStmt.setInt(7, s.getEasyPaisaReturn());\n\t prepStmt.setInt(8,s.getCash());\n\t \t\t \n\t prepStmt.executeUpdate();\n\t \n\n\t System.out.println(\">>> Successfully insert query working\"); \n\t } catch (SQLException ex) {\n \n\t \t System.out.println(\"*** Error: insert query is not working\");\n\t \t ex.printStackTrace();\n\t \t \n\t }\n\t\t\n\t\t\n\t}", "public static void modifyPatient(String id,String title, String fname,String sname,String bd,String ph,String pl){\r\n\t\ttry{\r\n\t\t\t// this is how you connect\r\n\t\t\tconnection = DriverManager.getConnection(connectionString);\r\n\t\t\tstmt = connection.prepareStatement(\"UPDATE Patient SET Title =?, Forename=?,Surname=?,Birthdate=?,Phone=?, Plan=? WHERE ID=?;\");\r\n\t\t\tstmt.setString(1, title);\r\n\t\t\tstmt.setString(2, fname);\r\n\t\t\tstmt.setString(3, sname);\r\n\t\t\tstmt.setString(4, bd);\r\n\t\t\tstmt.setString(5, ph);\r\n\t\t\tstmt.setString(5, pl);\r\n\t\t\tstmt.setString(5, id);\r\n\t\t\tstmt.executeUpdate();\r\n\t\t}\r\n\t\tcatch (SQLException ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void update(StockDataRecord bo) throws SQLException {\n\t\t\n\t}", "public void update(String hql) {\n\r\n\t}", "@Override\n\tpublic void executeUpdateDinamicSQL(String s) throws Exception {\n\t\t\n\t}", "public void updateStudent(int id,Student student) {\n\t\tQuery q=session.createQuery(\"update Student set name=:stname ,city=:stcity where id=:stid\"); \n\t\tq.setParameter(\"stname\",student.getName()); \n\t\tq.setParameter(\"stcity\",student.getCity()); \n\t\tq.setParameter(\"stid\",id); \n\t\t \n\t\tq.executeUpdate(); \n\t\t\n\t}", "CustomUpdateQuery update(String table);", "Update withSku(Sku sku);", "public void update(Tiaoxiushenqing t) throws SQLException {\n\t\tTiaoxiushenqingDao dao = new TiaoxiushenqingDao();\n\t\tdao.update(t);\n\t}", "public String updateContactStatement() {\n\t\treturn \"UPDATE CONTACTS SET (name, surname, title, address, city, \"\n\t\t\t\t+ \"province, postal_Code, region, country , company_Name, \"\n\t\t\t\t+ \"workstation, work_Phone, work_Extension, mobile_Phone, \"\n\t\t\t\t+ \"fax_Number, email, contact_type_id, notes) = (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) \" + \"WHERE id=?\";\n\n\t}", "public void updateData() throws SQLException {\n pst=con.prepareStatement(\"update employee set name=?,city=? where id=?\");\n System.out.println(\"Enter name: \");\n String name=sc.next();\n pst.setString(1,name);\n\n System.out.println(\"Enter city: \");\n String city=sc.next();\n pst.setString(2,city);\n\n System.out.println(\"Enter id: \");\n int id=sc.nextInt();\n pst.setInt(3,id);\n pst.execute();\n\n System.out.println(\"Data updated successfully\");\n }", "void updateQuestion(String questionId, Question question) throws SQLException;", "private void updateBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_updateBtnMouseClicked\n String id = pidTxt.getText().toString();\n String name = pnameTxt.getText().toString();\n String price = pperpriceTxt.getText().toString();\n String quantity = pquanityTxt.getText().toString();\n String date = pdateTxt.getText().toString();\n\n try {\n String Query = \"UPDATE `stock` SET `Product_Name`=?,`Quantity`=?,`Entry_Date`=?,`Price`=? Where `Product_ID`=?\";\n\n pstm = con.prepareStatement(Query);\n\n pstm.setString(1, name);\n\n pstm.setInt(2, Integer.parseInt(quantity));\n pstm.setString(3, date);\n pstm.setInt(4, Integer.parseInt(price));\n pstm.setInt(5, Integer.parseInt(id));\n pstm.executeUpdate();\n } catch (Exception ex) {\n\n JOptionPane.showMessageDialog(null, \"Data Not Found To be Updated\");\n }\n\n //Refersh Table\n refTable();\n\n }", "@Query(\"UPDATE wellbeing_questions SET question = :question, positive_message = :positiveMessage , negative_message = :negativeMessage WHERE wellbeing_questions.wellbeing_question_id = :id\")\n void updateQuestion(long id, String question, String positiveMessage, String negativeMessage);", "@Override\r\n\tpublic void update() throws SQLException {\n\r\n\t}", "@Update({\n \"update PURCHASE\",\n \"set SDATE = #{sdate,jdbcType=TIMESTAMP},\",\n \"STYPE = #{stype,jdbcType=VARCHAR},\",\n \"SMONEY = #{smoney,jdbcType=DECIMAL},\",\n \"TOUCHING = #{touching,jdbcType=VARCHAR},\",\n \"ACCOUNT = #{account,jdbcType=VARCHAR},\",\n \"CHECKSTATUS = #{checkstatus,jdbcType=DECIMAL},\",\n \"DEMO1 = #{demo1,jdbcType=DECIMAL},\",\n \"DEMO2 = #{demo2,jdbcType=VARCHAR},\",\n \"DEMO3 = #{demo3,jdbcType=DECIMAL}\",\n \"where ID = #{id,jdbcType=DECIMAL}\"\n })\n int updateByPrimaryKey(Purchase record);", "public void update() {\n\t\tPreparedStatement stmt;\n\t\ttry {\n\t\t\tstmt = cn.prepareStatement(\n\t\t\t\t\t\"UPDATE Metal SET metalDissolvedBy = ?, molesOfAcidToDissolve = ? WHERE metalID = ?\");\n\t\t\tstmt.setInt(1, dissolvedBy);\n\t\t\tstmt.setDouble(2, molesOfAcidToDissolve);\n\t\t\tstmt.setInt(3, ID);\n\t\t\tstmt.execute();\n\t\t} catch (Exception e) {\n\t\t\tDatabaseException.detectError(e);\n\t\t}\n\t}", "@Override\n\tpublic void update(DomainEntity entity) throws SQLException {\n\t\t\n\t}", "public void update(Jiaqishenqing j) throws SQLException {\n JiaqishenqingDao dao = new JiaqishenqingDao();\n dao.update(j);\n }", "@Override\n\tpublic void update(Brand brand) {\n\t\tsql=\"update brands set Name=? where Id=?\";\n \ttry {\n\t\t\tquery=connection.prepareStatement(sql);\n\t\t\tquery.setString(1, brand.getName());\n\t\t\tquery.setInt(2, brand.getId());\n\t\t\tquery.executeUpdate();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tnew Exception(e);\n\t\t}\n\t}", "@Override\r\n\tpublic void updateCourse(Course c) {\n\t\t\r\n\t\tint cid1 = c.getCid();\r\n\t\ttry\r\n\t\t{\r\n\t\tConnection connection=DBConnection.getConnection();\r\n\t\tString sqlQuery=\"update \"+TABLECourse+\" set \"+COLcname+\" = ?, \"+COLduration+\" = ?, \"+COLfees+\"=? where \"+COLcid+\" =\"+cid1;\r\n\t\t\r\n\t\tPreparedStatement pst = connection.prepareStatement(sqlQuery);\r\n\t\tpst.setString(1, c.getCname());\r\n\t\tpst.setInt(2, c.getCduration());\r\n\t\tpst.setInt(3, c.getCfees());\r\n\t\t\r\n\t\tpst.executeUpdate();\r\n\r\n\t\t\r\n\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public boolean updateStat(Stats s, int id) {\n\t\tboolean update = false;\n\t\ttry {\n\t\t\tPreparedStatement statement = null;\n\t\t\tString updateRecords_sql = \"UPDATE \" + stats_table + \" SET goalsHome='\" + s.getGoalsHome()\n\t\t\t\t\t+ \"', goalsAway='\" + s.getGoalsAway() + \"', numberOfCorners='\" + s.getNumberOfCorners()\n\t\t\t\t\t+ \"', numberOfFouls='\" + s.getNumberOfFouls() + \"' WHERE idMatch='\" + id + \"'\";\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connection.prepareStatement(updateRecords_sql);\n\t\t\tstatement.executeUpdate();\n\t\t\tupdate = true;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn update;\n\t}", "public static void update() {\n String sql = \"UPDATE dateGame SET level = ? , \"\n + \"score = ?,\"\n + \"hearts = ?, \"\n + \"sound = ?, \"\n + \"speed = ?, \"\n + \"path = ? \"\n + \"WHERE id = ?\";\n\n try (Connection conn = connect();\n PreparedStatement pstmt = conn.prepareStatement(sql)) {\n\n // set the corresponding param\n pstmt.setInt(1, level);\n pstmt.setInt(2, score);\n pstmt.setInt(3, hearts);\n pstmt.setInt(4, sound);\n pstmt.setInt(5, speed);\n pstmt.setString(6, path);\n //id-ul este hardcoded setat pe 1\n pstmt.setInt(7, 1);\n\n // update\n pstmt.executeUpdate();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "@Override\n\tpublic void update(Connection c, Genre v, Integer id) throws SQLException {\n\n\t}", "default void update(String catalogAlias, QuerySession querySession)\r\n {\r\n }", "public void updatedata()throws ClassNotFoundException,SQLException {\n\t\tScanner s=new Scanner(System.in);\r\n\t\tStatement smt=(Statement) con.getConnection().createStatement();\r\n\t\tSystem.out.println(\"Enter Id:\");\r\n\t\tint rollno=s.nextInt();\r\n\t\tSystem.out.println(\"Enter new name:\");\r\n\t\tString name=s.next();\r\n\t\t//System.out.println(\"Enter new year:\");\r\n\t\t//String year=s.next();\r\n\t\t//System.out.println(\"Enter new Department:\");\r\n\t\t//String dep=s.next();\r\n\t\tPreparedStatement ps=con.getConnection().prepareStatement(\"update student set Name=? where RollNo=?\");\r\n\t\tps.setString(1, name);\r\n\t\tps.setInt(2, rollno);\r\n\t\tps.executeUpdate();\r\n\t\tSystem.out.println(\"Successfully Updated...\");\r\n\t}", "@Override\n\tpublic String updateGoods(String hql) {\n\t\treturn super.updateByHql(hql);\n\t}", "@Override\n\tpublic void update(Seller obj) {\n\t\tPreparedStatement pst = null;\n\t\ttry {\n\t\t\tpst = conn.prepareStatement(\n\t\t\t\t\t\"UPDATE seller\\r\\n\"+\n\t\t\t\t\t\"SET Name = ?, Email = ?, BirthDate = ?, BaseSalary = ?, DepartmentId = ?\\r\\n\" +\n\t\t\t\t\t\"WHERE Id = ?;\");\n\t\t\tpst.setString(1, obj.getName());\n\t\t\tpst.setString(2, obj.getEmail());\n\t\t\tpst.setDate(3, new java.sql.Date(obj.getBirthDate().getTime()));\n\t\t\tpst.setDouble(4, obj.getBaseSalary());\n\t\t\tpst.setInt(5, obj.getDepartment().getId());\n\t\t\tpst.setInt(6, obj.getId());\n\t\t\tpst.executeUpdate();\n\t\t}catch(SQLException e) {\n\t\t\tthrow new DbException(e.getMessage());\n\t\t}finally {\n\t\t\tDb.closeStatement(pst);\n\t\t}\n\t}", "@Update({\n \"update SALEORDERDETAIL\",\n \"set MID = #{mid,jdbcType=VARCHAR},\",\n \"MNAME = #{mname,jdbcType=VARCHAR},\",\n \"STANDARD = #{standard,jdbcType=VARCHAR},\",\n \"UNITID = #{unitid,jdbcType=VARCHAR},\",\n \"UNITNAME = #{unitname,jdbcType=VARCHAR},\",\n \"NUM = #{num,jdbcType=DECIMAL},\",\n \"BEFOREDISCOUNT = #{beforediscount,jdbcType=DECIMAL},\",\n \"DISCOUNT = #{discount,jdbcType=DECIMAL},\",\n \"PRICE = #{price,jdbcType=DECIMAL},\",\n \"TOTALPRICE = #{totalprice,jdbcType=DECIMAL},\",\n \"TAXRATE = #{taxrate,jdbcType=DECIMAL},\",\n \"TOTALTAX = #{totaltax,jdbcType=DECIMAL},\",\n \"TOTALMONEY = #{totalmoney,jdbcType=DECIMAL},\",\n \"BEFOREOUT = #{beforeout,jdbcType=DECIMAL},\",\n \"ESTIMATEDATE = #{estimatedate,jdbcType=TIMESTAMP},\",\n \"LEFTNUM = #{leftnum,jdbcType=DECIMAL},\",\n \"ISGIFT = #{isgift,jdbcType=DECIMAL},\",\n \"FROMBILLTYPE = #{frombilltype,jdbcType=DECIMAL},\",\n \"FROMBILLID = #{frombillid,jdbcType=VARCHAR}\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n int updateByPrimaryKey(Saleorderdetail record);", "public void updateStudentCOOP(StudentCOOP toUpdate) {\n openConnection();\n try {\n updateStudent = conn.prepareStatement(\"update app.studentcoop set firstname=?, lastname=?, gender=?, address=?,\"\n + \" contact=?, email=?, workemail=?, notes=?, subject=?, semestercompleted=?, mark=?, wam=?\");\n \n updateStudent.setString(1, toUpdate.getZID());\n updateStudent.setString(1, toUpdate.getFName());\n updateStudent.setString(2, toUpdate.getLName());\n updateStudent.setString(3, toUpdate.getGEnder());\n updateStudent.setString(4, toUpdate.getADdress());\n updateStudent.setInt(5, toUpdate.getCOntact());\n updateStudent.setString(6, toUpdate.getEMail());\n updateStudent.setString(7, toUpdate.getWOrkemail());\n updateStudent.setString(8, toUpdate.getNOtes());\n updateStudent.setString(9, toUpdate.getSUbject());\n updateStudent.setInt(10, toUpdate.getSEmestercompleted());\n updateStudent.setDouble(11, toUpdate.getMArk());\n updateStudent.setDouble(12, toUpdate.getWAm());\n\n updateStudent.executeUpdate();\n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n closeConnection();\n }", "@Override\n\tpublic void update(double sal, int id) {\n\t\tConnection con=null;\n\t\tPreparedStatement stmt=null;\n\t\t\n\t\ttry {\n\t\t\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/ems?user=root&password=root\");\n\t\t\tString query=\"update employee set sal=? where id=?\";\n\t\t\tstmt=con.prepareStatement(query);\n\t\t\tstmt.setDouble(1, sal);\n\t\t\tstmt.setInt(2, id);\n\t\t\tstmt.execute();\n\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\r\n public void update(Appointment a) throws SQLException {\r\n int id = a.getAppointmentId();\r\n String statement =\r\n \"UPDATE appointments SET \" +\r\n \"Title='\" + a.getTitle() +\r\n \"', Description ='\" + a.getDescription() +\r\n \"', Location ='\" + a.getLocation() +\r\n \"', Type='\" + a.getType() +\r\n \"', Start='\" + DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\").format(a.getStartTime().withZoneSameInstant(ZoneId.of(\"Etc/UTC\"))) +\r\n \"', End= '\" + DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\").format(a.getEndTime().withZoneSameInstant(ZoneId.of(\"Etc/UTC\"))) +\r\n \"', Customer_ID =\" + a.getCustomer().getCustomerId() +\r\n \", User_ID=\" + a.getUser().getId() +\r\n \", Contact_ID=\" + a.getContact().getId() +\r\n \" WHERE Appointment_ID =\" + id + \";\";\r\n System.out.println(statement);\r\n conn.prepareStatement(statement).executeUpdate();\r\n }", "public void update() throws SQLException {\r\n\t\t//SQL-Statment\r\n\r\n\t\tString sql = \" UPDATE \" +table+ \" SET \" + col_genre + \" = ?\"\r\n\t\t\t\t+ \"WHERE \" + col_genreID + \" = ?\";\r\n\t\tPreparedStatement stmt = DBConnection.getConnection().prepareStatement(sql);\r\n\t\tstmt.setString(1, this.getGenre());\r\n\t\tstmt.setInt(2, this.getGenreID());\r\n\r\n\r\n\t\t//Update\r\n\t\tint rowsUpdated = stmt.executeUpdate();\r\n\t\tSystem.out.println(\"Es wurden \"+rowsUpdated+ \"Zeilen hinzugefügt\");\r\n\t\tstmt.close();\r\n\r\n\t}", "public void update() throws SQLException {\n DatabaseConnector.updateQuery(\"UPDATE course SET \"\n + \"courseDept='\" + this.courseDept + \"', \"\n + \"courseNum='\" + this.courseNum + \"', \"\n + \"courseName='\" + this.courseName + \"', \"\n + \"info='\" + this.info + \"', \"\n + \"credit=\" + this.credit);\n }", "@LogExceptions\n @Override\n public void update(Data data) throws SQLException {\n Event event = (Event)data;\n Connection conn = DatabaseConnection.getConnection();\n \n try(PreparedStatement stmt = \n conn.prepareStatement(getMembers().getUpdateFormat())) \n {\n stmt.setString(1, event.getEvent());\n stmt.setString(2, event.getDescription());\n stmt.setString(3, event.getLocation());\n stmt.setString(4, event.getDate());\n stmt.setString(5, event.getYear());\n stmt.setString(6, event.getMonth());\n stmt.setString(7, event.getDay());\n stmt.setString(8, event.getStart());\n stmt.setString(9, event.getEnd());\n stmt.setInt(10, event.getID());\n stmt.executeUpdate();\n }\n }", "@Override\n\tpublic void update(String state,String id) {\n\t\tString query=\"UPDATE Book SET State='\"+state+\"' Where id='\"+id+\"'\";\n\t\texecuteQuery(query);\n\t\tnotifyAllObservers();\n\t\t\n\t}", "void updateNames(Long id, String firstName, String lastName);", "@PUT\n\t@Path(\"{id}\")\n\tpublic Response putStation(@PathParam(\"id\") int id, Station update) throws SQLException, JsonProcessingException{\n\t\tConnection conn = establishConnection();\n\t\tMap<String,Object> stationMap = StationDataService.getStation(conn,id);\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tStation currentStation = mapper.convertValue(stationMap.get(0),Station.class);\n\t\tint response = StationDataService.updateStationEntry(conn, id, update);\n\t\tif(response == 0) return Response.status(Status.INTERNAL_SERVER_ERROR).entity(\"UPDATE statment failed.\").build();\n\t\telse return Response.ok().build();\n\t}", "public int Edbroker(Long broker_id, String firstname, String lastname,\r\n\t\tString address, String gender, String eMail, Long phone,\r\n\t\tString experience) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update broker set first_name='\"+firstname+\"',last_name='\"+lastname+\"',address='\"+address+\"',gender='\"+gender+\"',e_mail='\"+eMail+\"',phone=\"+phone+\",experience='\"+experience+\"' where broker_id=\"+broker_id+\"\");\r\n\treturn i;\r\n}", "@Update({\n \"update SWMS_stock_out_record_detail\",\n \"set stock_out_record_id = #{stockOutRecordId,jdbcType=BIGINT},\",\n \"stock_out_record_head_id = #{stockOutRecordHeadId,jdbcType=BIGINT},\",\n \"stock_out_record_head_code = #{stockOutRecordHeadCode,jdbcType=BIGINT},\",\n \"group_name = #{groupName,jdbcType=VARCHAR},\",\n \"stock_in_record_account_id = #{stockInRecordAccountId,jdbcType=BIGINT},\",\n \"material_code = #{materialCode,jdbcType=VARCHAR},\",\n \"material_batch = #{materialBatch,jdbcType=VARCHAR},\",\n \"material_type_id = #{materialTypeId,jdbcType=INTEGER},\",\n \"material_sub_type_id = #{materialSubTypeId,jdbcType=INTEGER},\",\n \"material_workshop_id = #{materialWorkshopId,jdbcType=INTEGER},\",\n \"material_name_code = #{materialNameCode,jdbcType=INTEGER},\",\n \"material_supplier_code = #{materialSupplierCode,jdbcType=INTEGER},\",\n \"material_name = #{materialName,jdbcType=VARCHAR},\",\n \"bag_num = #{bagNum,jdbcType=INTEGER},\",\n \"weight = #{weight,jdbcType=REAL},\",\n \"measure_unit = #{measureUnit,jdbcType=VARCHAR},\",\n \"created_time = #{createdTime,jdbcType=TIMESTAMP},\",\n \"completion_flag = #{completionFlag,jdbcType=BIT}\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n int updateByPrimaryKey(SwmsStockOutRecordDetail record);", "@Modifying\n @Query(\"update Dept u set u.deptName = ?1 where u.deptId = ?2\")\n int updateDept(String deptName, Long deptId);", "@Test\n\tpublic void update01() throws SQLException {\n\t\tjdbcLink.update(Product.class)\n\t\t\t.set()\n\t\t\t\t.param(Product.NAME, \"xxxxx\").param(Product.NAME, \"xxxxx\")\n\t\t\t.where()\n\t\t\t\t.and().eq(Product.UID, 77L)\n\t\t\t.execute();\n\t\t\n\t\t\t\t\n\t}", "public static void updateTicket(Ticket ticket) {\n try {\n Connection conn = Main.conn;\n PreparedStatement statement = conn.prepareStatement(\"UPDATE bs_tickets SET username = ?, admin = ?, status = ?, question = ?, server = ?, date_created = ?, date_accepted = ?, date_resolved = ? WHERE id = ?\");\n\n statement.setString(1, ticket.username);\n statement.setString(2, ticket.admin);\n statement.setString(3, ticket.status);\n statement.setString(4, ticket.question);\n statement.setString(5, ticket.server);\n statement.setInt(6, ticket.date_created);\n statement.setInt(7, ticket.date_accepted);\n statement.setInt(8, ticket.date_resolved);\n statement.setInt(9, ticket.id);\n\n statement.executeUpdate();\n }\n catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@Update(\"UPDATE patients SET first_name=#{firstName}, last_name=#{lastName}, PESEL=#{pesel}, \" +\n \"email=#{email}, phone_number=#{phoneNumber} WHERE id_patient=#{id}\")\n void updatePatient(Patient patient);", "@Override\n\tpublic void executeUpdateDinamicQuery(String s) throws Exception {\n\t\t\n\t}", "public void executeUpdate (String sql) throws SQLException {\n // creates a statement object\n Statement stmt = this._connection.createStatement ();\n\n // issues the update instruction\n stmt.executeUpdate (sql);\n\n // close the instruction\n stmt.close ();\n }", "@Override\r\n\tpublic void updateForHql(String hql, Object[] params) throws Exception {\n\r\n\t\ttry {\r\n\t\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\t\tif (params != null && params.length > 0) {\r\n\t\t\t\tfor (int i = 0; i < params.length; i++) {\r\n\t\t\t\t\tq.setParameter(i, params[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tq.executeUpdate();\r\n\t\t} catch (DataAccessException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tthrow new Exception(\"update error for updateForHql\", e);\r\n\t\t}\r\n\t}", "public void updates(String hql, Object... param) {\n\t\tthis.rsDAO.updates(hql, param) ;\n\t}", "@Update(\"UPDATE student SET name = #{name}, gpa = #{gpa} WHERE npm = #{npm}\")\n\tvoid updateStudent(StudentModel student);", "public void update(Triplet t) throws DAOException;", "@Override\n\tpublic void updateEntityByHql(String hql, Object... param) {\n\t\tgetQuery(hql,param).executeUpdate();\n\t}", "public void updateSales(String date, String des, String rate, String qua,\n\t\t\tString amit, String id) {\n ContentValues up=new ContentValues();\n\t up.put(Sales_Date, date);\n\t up.put(Sales_Des, des);\n\t up.put(Sales_Rate, rate);\n\t up.put(Sales_Quan, qua);\n\t up.put(Sales_Amt, amit);\n\t \n\t\tourDatabase.update(DATABASE_TABLE2, up, Sales_Id+\" = \"+id, null);\n\t\t\n\t\t\n\t}", "public void update(TdiaryArticle obj) throws SQLException {\n\r\n\t}", "@Override\r\n\tpublic void update(Connection connection, Long id, Salary salary) throws SQLException {\n\r\n\t}", "@Override\n\tpublic void updateApartment(ApartmentDetailsBean aptUpdated) {\n\t\tString query = \"update Apartments set depositAmt=?,rent=?,utilities=?,area=?,street=?,city=?,doorNo=?,no_of_rooms=?,type_bathroom=?,flooring=? where apartmentId=?\";\n\t\tResultSet rs=null;\n\t\tPreparedStatement pstmt;\n\t\ttry {\n\t\t\tpstmt = dataSource.getConnection().prepareStatement(query);\n\t\t\tpstmt.setInt(1, aptUpdated.getDepositAmt());\n\t\t\tpstmt.setInt(2, aptUpdated.getRent());\n\t\t\t//pstmt.setDate(4, aptUpdated);\n\t\t\tpstmt.setString(3, aptUpdated.getUtilities());\n\t\t\tpstmt.setString(4, aptUpdated.getArea());\n\t\t\tpstmt.setString(5, aptUpdated.getStreet());\n\t\t\tpstmt.setString(7, aptUpdated.getDoorNo());\n\t\t\tpstmt.setString(6, aptUpdated.getCity());\n\t\t\tpstmt.setInt(8, aptUpdated.getno_of_rooms());\n\t\t\tpstmt.setString(9, aptUpdated.getType_bathroom());\n\t\t\tpstmt.setString(10, aptUpdated.getFlooring());\n\t\t\tpstmt.setInt(11, aptUpdated.getApartmentId());\n\t\t\tpstmt.executeUpdate();\n\t\t\t\n\t\t}catch(SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public long insert(DcSquadDO dcSquad) throws DataAccessException;", "private void updateAccountTables(Connection conn) {\n\n\tPreparedStatement pst = null;\n\tString updateAccountQuery = \"Update Account Set phoneNumber = ? \" + \"Where name = ?;\";\n\n\ttry {\n\n\t\t\tpst = conn.prepareStatement(updateAccountQuery);\n\t\t\tpst.setInt(1, 312483991);\n\t\t\tpst.setString(2, \"Harry\");\n\t\t\n\t\t\tpst.executeUpdate();\n\t\t\tSystem.out.println(\"\\n\\nRecords updated into Account Table Successfully\\n\");\n\n\t\t//System.out.println(\"Abhinav\");\n\t} catch (SQLException e) {\n\t\tSystem.out.println(\"\\n-----Please Check Error Below for updating Account Table------\\n\");\n\t\te.printStackTrace();\n\t}\n\n}", "int updateByPrimaryKey(Drug_OutWarehouse record);", "public interface QbUpdate extends QbQuery\n{\n\t/**\n\t * Sets a field to the specified placeholder. May be called \n\t * multiple times.\n\t * @param field\n\t * @param placeholder\n\t * @return This query builder.\n\t */\n\tpublic QbUpdate set(QbField field, String placeholder);\n\t\n\t/**\n\t * Adds a where clause. Very important. Call only once\n\t * per QbUpdate object.\n\t * @return A QbWhere object that is bound to this query.\n\t */\n\tpublic QbWhere where();\n\t\n\t/**\n\t * Signals that you want to update all records. If neither\n\t * where or all is called the query builder will throw an exception.\n\t * @return This query builder.\n\t */\n\tpublic QbUpdate all();\n\t\n\t/**\n\t * Which table to update. Table name should not contain\n\t * backticks. Must be called to make a valid update query.\n\t * @param table\n\t * @return This query builder.\n\t */\n\tpublic QbUpdate inTable(String table);\n}", "public String updateEvent(Event e){\n \n \n String result = \"0\";\n Connection con = null;\n //building the sql command\n String SQLCommand = \"Update event set name=?,start_time=?,end_time=? where id=?\";\n \n try{\n //obtain the database connection by calling getConn() \n con = getConn();\n //create the PreparedStatement from the Connection object by calling prepareCall\n //method, passing it the sql , parameters are represented by ? in the sql\n PreparedStatement ps = con.prepareStatement(SQLCommand); \n \n //setting the parameters values\n ps.setString(1, e.getName()); \n ps.setDate(2, new java.sql.Date(e.getStartTime().getTime()));\n ps.setDate(3, new java.sql.Date(e.getEndTime().getTime())); \n ps.setLong(4,e.getId());\n //ps.setLong(4, sp.getSeatingPlanID());\n \n \n //exceuting the insert or update operation \n ps.executeUpdate(); \n }\n catch (SQLException ex){\n ex.printStackTrace();\n result = ex.getMessage();\n }\n return result;\n }", "public final void updateSatement() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:81:2: ( UPDATE tablename sets ( where )? )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:81:4: UPDATE tablename sets ( where )?\r\n {\r\n match(input,UPDATE,FOLLOW_UPDATE_in_updateSatement213); \r\n out(\"update \"); \r\n pushFollow(FOLLOW_tablename_in_updateSatement220);\r\n tablename();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_sets_in_updateSatement224);\r\n sets();\r\n\r\n state._fsp--;\r\n\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:84:3: ( where )?\r\n int alt9=2;\r\n int LA9_0 = input.LA(1);\r\n\r\n if ( (LA9_0==WHERE) ) {\r\n alt9=1;\r\n }\r\n switch (alt9) {\r\n case 1 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:84:4: where\r\n {\r\n pushFollow(FOLLOW_where_in_updateSatement229);\r\n where();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public void updateStaff(String name, String dob, String email, String number, String address, String password) throws SQLException {\n st.executeUpdate(\"UPDATE IOTBAY.STAFF SET \"\n + \"NAME ='\" + name \n + \"DATEOFBIRTH ='\" + dob \n + \"PHONENUMBER ='\" + number \n + \"ADDRESS ='\" + address \n + \"PASSWORD ='\" + password \n + \"' WHERE EMAIL='\" + email + \"'\" );\n\n }", "@Override\n public void update(Seq s, String[] param) {\n // TODO Auto-generated method stub\n \tConnection conn = null;\n\t\tString url = \"jdbc:sqlite:src\\\\database\\\\AT2_Mobile.db\";\n\t\t\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(url);\n\t\t\tPreparedStatement myStmt; \n\t\t\tString query = \"update seq set identifier=?, seq_number=? where id = ?\";\n\t\t\tmyStmt = conn.prepareStatement(query);\n\t\t\t\n\t\t\t// Set Parameters\n\t\t\t\n\t myStmt.setString(1, param[0]);\n\t myStmt.setInt(2, Integer.parseInt(param[1]));\n\t myStmt.setInt(3, s.getId());\n\t\t\t// Execute SQL query\n\t int res = myStmt.executeUpdate();\n\t \n\t // Display the record inserted\n\t System.out.println(res + \" Seq updated\");\n\t \n\t // Close the connection\n\t conn.close();\n\t\t}catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());}\n\t\t\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif (conn != null) {\n\t\t\t\t\tconn.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tSystem.out.println(ex.getMessage());\n\t\t\t}\n\t\t\t}\n }", "@Update({\n \"update dept\",\n \"set dept_name = #{deptName,jdbcType=VARCHAR}\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n int updateByPrimaryKey(Dept record);", "public static void editDatabase(String sql){\n Connection connection = dbConnection();\n\n try{\n PreparedStatement pst = connection.prepareStatement(sql);\n pst.executeUpdate();\n pst.close();\n connection.close();\n }catch (Exception e){\n e.printStackTrace();\n }\n }", "public int updShare(Long cid, Long shareamt, String datee, Long noShare,Long sindex) throws Exception{\n\tint i=DbConnect.getStatement().executeUpdate(\"insert into share_details values(\"+cid+\",\"+noShare+\",\"+shareamt+\",'\"+datee+\"',\"+sindex+\")\");\r\n\treturn i;\r\n}", "public void editar(String update){\n try {\n Statement stm = Conexion.getInstancia().createStatement();\n stm.executeUpdate(update);\n }\n catch (Exception ex){\n ex.printStackTrace();\n }\n }", "@Override\n\tpublic void updateSeatTable(seatTable st) {\n\t\t userdao.updateSeatTable(st);\n\t}", "@Override\n\tpublic void update(String query) {\n\t\ttry {\n\t\t\tStatement st = Database.getInstance().getDBConn().createStatement();\n\t\t\tst.executeUpdate(query);\n\t\t\t\n\t\t\tst.close();\n\t\t} catch(Exception err) {\n\t\t\terr.printStackTrace();\n\t\t}\n\t}", "private static void updateRecordToTable() throws SQLException {\n\n\t\tConnection dbConnection = null;\n\t\tPreparedStatement preparedStatement = null;\n \n Scanner scanner = new Scanner(System.in);\n \n System.out.print(\"Hoeveel punten: \");\n int punten = scanner.nextInt(); \n\n\t\tString updateTableSQL = \"UPDATE spelers SET punten = punten + ? \"\n\t\t\t\t + \" WHERE ID = ?\";\n\n\t\ttry {\n\t\t\tdbConnection = getDBConnection();\n\t\t\tpreparedStatement = dbConnection.prepareStatement(updateTableSQL);\n\n\t\t\t\n preparedStatement.setInt(1, punten);\n\t\t\tpreparedStatement.setInt(2, 1);\n\n\t\t\t// execute update SQL stetement\n\t\t\tpreparedStatement.executeUpdate();\n\n\t\t\tSystem.out.println(\"Record is updated to spelers table!\");\n\n\t\t} catch (SQLException e) {\n\n\t\t\tSystem.out.println(e.getMessage());\n\n\t\t} finally {\n\n\t\t\tif (preparedStatement != null) {\n\t\t\t\tpreparedStatement.close();\n\t\t\t}\n\n\t\t\t\n\n\t\t}\n\n\t}", "private void update() {\n\n\t\tfloat shopping = Float.parseFloat(label_2.getText());\n\t\tfloat giveing = Float.parseFloat(label_5.getText());\n\t\tfloat companyDemand = Float.parseFloat(label_7.getText());\n\n\t\ttry {\n\t\t\tPreparedStatement statement = DBConnection.connection\n\t\t\t\t\t.prepareStatement(\"update customer_list set Shopping_Account = \"\n\t\t\t\t\t\t\t+ shopping\n\t\t\t\t\t\t\t+ \" , Giving_Money_Account = \"\n\t\t\t\t\t\t\t+ giveing\n\t\t\t\t\t\t\t+ \", Company_demand = \"\n\t\t\t\t\t\t\t+ companyDemand\n\t\t\t\t\t\t\t+ \" where Name = '\"\n\t\t\t\t\t\t\t+ name\n\t\t\t\t\t\t\t+ \"' And Last_Name = '\"\n\t\t\t\t\t\t\t+ lastName + \"' \");\n\t\t\tstatement.execute();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\n\t\t}\n\n\t}", "private static String buildUpdateQuery(final String aTableName,\r\n final String aColumnName,\r\n final String aColumnValue,\r\n final boolean aIsQuoted,\r\n final String aWhere) {\r\n assertArg(!StringUtility.isBlank(aTableName), pTABLE_NAME, aTableName);\r\n assertArg(!StringUtility.isBlank(aColumnName), pCOLUMN_NAME, aColumnName);\r\n SqlWrite q= new SqlWrite();\r\n q.setQueryType(SqlWrite.UPDATE);\r\n q.setTableName(aTableName);\r\n q.setWhere(aWhere);\r\n q.addColumn(aColumnName, aColumnValue, aIsQuoted);\r\n return q.getSql();\r\n }", "@Update({\n \"update generalcourseinformation\",\n \"set code = #{code,jdbcType=VARCHAR},\",\n \"name = #{name,jdbcType=VARCHAR},\",\n \"teacher = #{teacher,jdbcType=VARCHAR},\",\n \"credit = #{credit,jdbcType=INTEGER},\",\n \"week = #{week,jdbcType=VARCHAR},\",\n \"day_detail1 = #{day_detail1,jdbcType=VARCHAR},\",\n \"day_detail2 = #{day_detail2,jdbcType=VARCHAR},\",\n \"location = #{location,jdbcType=VARCHAR},\",\n \"remaining = #{remaining,jdbcType=INTEGER},\",\n \"total = #{total,jdbcType=INTEGER},\",\n \"extra = #{extra,jdbcType=VARCHAR},\",\n \"index = #{index,jdbcType=INTEGER}\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n int updateByPrimaryKey(GeneralCourse record);", "public void updateCustomer(String name, String dob, String gender, String number, String email, String address, String password, Boolean promo, Integer reward) throws SQLException {\n st.executeUpdate(\"UPDATE IOTBAY.CUSTOMER SET \"\n + \"NAME ='\" + name \n + \"DATEOFBIRTH ='\" + dob \n + \"GENDER ='\" + gender \n + \"CONTACTNUMBER ='\" + number \n + \"BILLINGADDRESS ='\" + address \n + \"PASSWORD ='\" + password \n + \"PROMOTIONALNEWSLETTER ='\" + promo \n + \"', REWARDPOINTS='\" + reward \n + \"' WHERE EMAIL='\" + email + \"'\" );\n\n }", "public static void updateStaffInformation(int staffID, String name, Date dob, String gender, String jobTitle,\n String professionalTitle, String department, String phone,\n String address) throws SQLException {\n\n try (Connection conn = ConnectionFactory.getConnection()) {\n\n PreparedStatement get = conn.prepareStatement(GET_STAFF_INFORMATION);\n get.setInt(1, staffID);\n ResultSet staff = get.executeQuery();\n\n if (staff.next()) {\n\n PreparedStatement st = conn.prepareStatement(UPDATE_STAFF_INFORMATION);\n st.setString(1, (name != null) ? name : staff.getString(\"Name\"));\n st.setDate( 2, (dob != null) ? dob : staff.getDate( \"DOB\"));\n st.setString(3, (gender != null) ? gender : staff.getString(\"Gender\"));\n st.setString(4, (jobTitle != null) ? jobTitle : staff.getString(\"JobTitle\"));\n st.setString(5, (professionalTitle != null) ? professionalTitle : staff.getString(\"ProfessionalTitle\"));\n st.setString(6, (department != null) ? department : staff.getString(\"Department\"));\n st.setString(7, (phone != null) ? phone : staff.getString(\"PhoneNumber\"));\n st.setString(8, (address != null) ? address : staff.getString(\"Address\"));\n st.setInt( 9, staffID);\n st.executeUpdate();\n\n }\n else {\n\n throw new SQLException(String.format(\"No staff member with ID %d.\", staffID));\n\n }\n\n }\n\n }", "public void updateSQL(String SQL) {\r\n\t\ttry { \r\n\t statement.executeUpdate(SQL); \r\n\t }\r\n\t\tcatch (Exception e){\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public static void updateTableAnswers(int qid, String username, String a) {\n \ttry {\n \t\t\tint rs = Messages.connect().executeUpdate(\"UPDATE Answers SET Q_id = '\" + qid + \"', B_Username = '\" + username + \"', Answer = '\" \n \t\t\t\t\t+ a +\"' WHERE Q_id = '\" + qid + \"' AND B_Username = '\" + username + \"'\");\n \tMessages.connect().close();\n \t} catch (Exception e) {\n \te.printStackTrace();\n \t}\n\t\t}", "public static void UpdateFlight(Flight flight){\n \n //java.sql.Date sqlDate = new java.sql.Date(flight.getDatetime());\n \n try (Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM flight WHERE FlightNumber = '\" + flight.getFlightNumber() + \"'\")){\n \n resultSet.absolute(1);\n resultSet.updateString(\"FlightNumber\", flight.getFlightNumber());\n resultSet.updateString(\"DepartureAirport\", flight.getDepartureAirport());\n resultSet.updateString(\"DestinationAirport\", flight.getDestinationAirport());\n resultSet.updateDouble(\"Price\", flight.getPrice());\n\n //Ask Andrew\n// java.sql.Date sqlDate = new java.sql.Date();\n// resultSet.updateDate(\"datetime\", flight.getDatetime());\n resultSet.updateString(\"Plane\", flight.getPlane());\n resultSet.updateInt(\"SeatsTaken\", flight.getSeatsTaken());\n \n resultSet.updateRow();\n \n \n \n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n \n \n }", "int updateByPrimaryKey(R_dept_trade record);", "@Override\n\tpublic void updateQA(QA qa) {\n\t\tqaDao.updateQAPost(qa);\n\t}", "void updateStation() {\n\n // only do this if the station did not exist ????\n if ((!stationExists || stationUpdated)\n && !\"\".equals(station.getStationId(\"\")) &&\n station.getMaxSpldep()!= Tables.FLOATNULL) { // for sediments\n\n MrnStation updStation = new MrnStation();\n updStation.setMaxSpldep(station.getMaxSpldep());\n\n MrnStation whereStation =\n new MrnStation(station.getStationId());\n\n try {\n whereStation.upd(updStation);\n } catch(Exception e) {\n System.err.println(\"updateStation: upd whereStation = \" + whereStation);\n System.err.println(\"updateStation: upd updStation = \" + updStation);\n System.err.println(\"updateStation: upd sql = \" + whereStation.getUpdStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>updateStation: upd whereStation = \" + whereStation);\n if (dbg3) System.out.println(\"<br>updateStation: upd updStation = \" + updStation);\n //if (dbg3) System.out.println(\"<br>updateStation: sql = \" + whereStation.getUpdStr());\n\n } // if (!stationExists)\n\n // commit this station's data - for stations with many depths\n common2.DbAccessC.commit(); //ub04\n\n }", "public void updateinfo(String name) throws BaseException {\n\t\tConnection conn = null;\n\t String ygno = BeanControl.currentLoginControl.getygno();\n\t try {\n\t \tconn = DBUtil.getConnection();\n\t \tString sql = \"update gly_info set yg_name=? where yg_no=?\";\n\t \tjava.sql.PreparedStatement pst = conn.prepareStatement(sql);\n\t \tpst.setString(1, name);\n\t \tpst.setString(2, ygno);\n\t \tpst.execute();\n\t \tpst.close();\n\t \t} catch (SQLException e) {\n\t \t\te.printStackTrace();\n\t \t\tthrow new DbException(e);\n\t \t} finally {\n\t \t\tif (conn != null)\n\t \t\t\ttry {\n\t \t\t\t\tconn.close();\n\t \t\t\t} catch (SQLException e) {\n\t \t\t\t\te.printStackTrace();\n\t \t\t\t}\n\t \t}\n\t}", "public void executeUpdateQuery(String hql) throws RepositoryException {\n\t\tDatanucleusCRUDUtils.executeUpdateQuery(hql);\n\t}", "public interface DcSquadDAO {\n /**\n * Insert one <tt>DcSquadDO</tt> object to DB table <tt>dc_squad</tt>, return primary key\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>insert into dc_squad(squad_name,squad_desc,axiser,cubers,followers,investors,status,gmt_create,gmt_modify,attention) values (?, ?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?)</tt>\n *\n *\t@param dcSquad\n *\t@return long\n *\t@throws DataAccessException\n */\n public long insert(DcSquadDO dcSquad) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad</tt>\n *\n *\t@return List<DcSquadDO>\n *\t@throws DataAccessException\n */\n public List<DcSquadDO> load() throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where (id = ?)</tt>\n *\n *\t@param id\n *\t@return DcSquadDO\n *\t@throws DataAccessException\n */\n public DcSquadDO loadById(long id) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where (squad_name = ?)</tt>\n *\n *\t@param squadName\n *\t@return DcSquadDO\n *\t@throws DataAccessException\n */\n public DcSquadDO loadByName(String squadName) throws DataAccessException;\n\n /**\n * Update DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>update dc_squad set squad_name=?, squad_desc=?, axiser=?, cubers=?, followers=?, investors=?, status=?, gmt_modify=CURRENT_TIMESTAMP where (id = ?)</tt>\n *\n *\t@param dcSquad\n *\t@return int\n *\t@throws DataAccessException\n */\n public int update(DcSquadDO dcSquad) throws DataAccessException;\n\n /**\n * Delete records from DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>delete from dc_squad where (id = ?)</tt>\n *\n *\t@param id\n *\t@return int\n *\t@throws DataAccessException\n */\n public int deleteById(long id) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where ((squad_name = ?) AND (axiser = ?) AND (cubers = ?) AND (followers = ?) AND (investors = ?) AND (status = ?) AND (gmt_create = ?) AND (gmt_modify = ?))</tt>\n *\n *\t@param squadName\n *\t@param axiser\n *\t@param cubers\n *\t@param followers\n *\t@param investors\n *\t@param status\n *\t@param gmtCreate\n *\t@param gmtModify\n *\t@param pageSize\n *\t@param pageNum\n *\t@return PageList\n *\t@throws DataAccessException\n */\n public PageList query(String squadName, String axiser, String cubers, String followers,\n String investors, String status, Date gmtCreate, Date gmtModify,\n int pageSize, int pageNum) throws DataAccessException;\n\n /**\n * Update DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>update dc_squad set attention=? where (id = ?)</tt>\n *\n *\t@param attention\n *\t@param id\n *\t@return int\n *\t@throws DataAccessException\n */\n public int updateAttention(long attention, long id) throws DataAccessException;\n\n}", "public int req(Long req_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update requested set status='processed',remark='bought fail' where reqid=\"+req_id+\"\");\t\r\n\treturn i;\r\n}", "public void updateCita(int id, Citas cita) {\n try {\n PreparedStatement preparedStatement = con.prepareStatement(\"UPDATE paciente SET name=?,doctor=?,fecha=?,hora=?,tel=?,correo=?,genero=?,motivo=?,sintomas=? WHERE id_paciente=?;\");\n preparedStatement.setString(1,cita.getName());\n preparedStatement.setString(2,cita.getDoctor());\n preparedStatement.setString(3, cita.getFecha());\n preparedStatement.setString(4,cita.getHora());\n preparedStatement.setString(5,cita.getTel());\n preparedStatement.setString(6,cita.getCorreo());\n preparedStatement.setString(7,cita.getGenero());\n preparedStatement.setString(8,cita.getMotivo());\n preparedStatement.setString(9,cita.getSintomas());\n preparedStatement.setInt(10,id);\n preparedStatement.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void updateInformation(String firstname, String lastname, String email, int id) {\t\t\n\t\ttry {\n\t\t\tString sql = \"update employees set first_name = '\"+firstname+\"', last_name='\"+lastname+\"',email = '\"+email+\"' where employee_id=\"+id; \n\t\t\tConnection connection = DBConnectionUtil.getConnection();\n\t\t\tStatement statement = connection.createStatement();\t\t\n\t\t\tstatement.executeUpdate(sql);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void update(PreparedStatement preparedStatement) throws SQLException\n {\n preparedStatement.executeUpdate();\n }", "@Override\n\tpublic void update(Join j) {\n\t\tString sql = \"update Join set pwd = ?, name = ?, email = ? where id = ?\";\n\t\tPreparedStatement pstmt = null;\n\t\tSystem.out.println(\"dao\"+j.getId());\n\t\tSystem.out.println(\"dao\"+j.getPwd());\n\t\tSystem.out.println(\"dao\"+j.getName());\n\t\tSystem.out.println(\"dao\"+j.getEmail());\n\t\ttry {\n\t\t\tconn = dataSource.getConnection();\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tpstmt.setString(1, j.getPwd());\n\t\t\tpstmt.setString(2, j.getName());\n\t\t\tpstmt.setString(3, j.getEmail()); \n\t\t\tpstmt.setString(4, j.getId());\n\t\t\tpstmt.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tJdbcUtils.closeConnection(conn);\n\t\t} \n\t}", "@Override\n\tpublic void updateTeachers(Professor ud) {\n\t\ttry{ \n\t\t\t\n\t\t\tstmt = conn.prepareStatement(\"UPDATE Professor set name=?,department=? where ssn=?\");\n\t\t\tstmt.setString(1, ud.getName());\n\t\t\tstmt.setString(2, ud.getDepartment());\n\t\t\tstmt.setString(3, ud.getSsn());\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t}catch(SQLException e){\n\t\t\tex=e;\n\t\t}finally{\n\t\t\tif(conn!=null){\n\t\t\t\ttry{\n\t\t\t\t\tconn.close();\n\t\t\t\t}catch(SQLException e){\n\t\t\t\t\tif(ex==null){\n\t\t\t\t\t\tex=e;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tif(ex!=null){\n\t\t\tthrow new RuntimeException(ex);\n\t\t}\n\t\t}\n\t}", "public void executeUpdate(String query) {\n \ttry {\n\t\t\tst.executeUpdate(query);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n }", "Update withSku(SnapshotSku sku);", "public static void Update(String query) throws SQLException{\r\n\t\ttry {\r\n\t\t\tinitConnection();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tdbCon.createStatement().executeUpdate(query);\t\t\t\r\n\t}", "@Override\n\tpublic void update(FlashCardEntity flCardDetail) {\n\t\tString sql=\"UPDATE tbl_flashcard SET flcard_name=?,flcard_img=?,flctopic_id=?,flcard_question1=?,flcard_question2=? where flcard_id=?\";\t\t\n\t\t Update(sql, flCardDetail.getFlcard_name(),flCardDetail.getFlcard_img(),flCardDetail.getFlcard_question1(),flCardDetail.getFlcard_question2(),flCardDetail.getFlcard_id());\n\t\t\n\t}", "public void insertIntoFinalFaculty(int row,String sid) throws SQLException, ClassNotFoundException {\r\n\t\tFetcher fetch= new Fetcher();\r\n\t\tResultSet rs=fetch.getSpecificRowFinalFaculty(row);\t\r\n\t\tString sapid=rs.getString(\"sapid\");\r\n\t\tint column= fetch.getColumnIndexFinalFaculty(row);\r\n\t\t\r\n\t\tResultSetMetaData rsmd=rs.getMetaData();\r\n\t\tString columnName= rsmd.getColumnName(column);\r\n\t\t\t\t\r\n\t\tStatement stmt=this.conn.createStatement();\r\n\t\tString q=\"update \"+Faculty.FINALFACULTY_INFO_TABLE_NAME+\" set \"+columnName+\"='\"+sid+\"' where \"+Faculty.SAPID+\"='\"+sapid+\"'\"; \r\n\t\tstmt.executeUpdate(q);\r\n\t\tstmt.close();\r\n\t}", "public void onUpdate(Statement update, Connection cx, SimpleFeatureType featureType) throws SQLException {\r\n }", "Integer update(final String sql);", "@Override\n\tpublic void update(Student student) {\n\t\tString query=\"update student set name='\"+student.getName()+\"',age='\"+student.getAge()+\"' where id='\"+student.getId()+\"'\";\n\t\tint result=jdbcTemplate.update(query);\n\t\tSystem.out.println(result+\" updated successfully\");\n\t}", "@Override\n\tpublic void update(String sql, Object... parameters) {\n\t\tConnection conn = null;\n\t PreparedStatement stm = null;\n\t try {\n\t\t\tconn = getConnection();\n\t\t conn.setAutoCommit(false);\n\t\t stm = conn.prepareStatement(sql);\n\t\t setParameter(stm, parameters);\n\t\t stm.executeUpdate();\n\t\t conn.commit();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO: handle exception\n\t\t\ttry {\n\t\t\t\tconn.rollback();\n\t\t\t} catch (SQLException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t e.printStackTrace();\n\t\t \n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (conn != null) {\n\t\t\t\t\tconn.close();\n\t\t\t\t}\n\n\t\t\t\tif (stm != null) {\n\t\t\t\t\tstm.close();\n\t\t\t\t}\n\n\t\t\t} catch (Exception e2) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t}" ]
[ "0.6027098", "0.59058946", "0.589412", "0.58663833", "0.5795685", "0.57351226", "0.5723715", "0.5644874", "0.5612323", "0.56035227", "0.55795014", "0.55755025", "0.5563148", "0.5538686", "0.55234325", "0.55033666", "0.5501086", "0.5473851", "0.5463669", "0.5417924", "0.5415712", "0.5394246", "0.5375295", "0.5367162", "0.5351919", "0.5345761", "0.534329", "0.5340795", "0.5330301", "0.53170764", "0.53158796", "0.53148097", "0.53047335", "0.5296796", "0.5295009", "0.52889466", "0.52800685", "0.5258138", "0.52576965", "0.5255208", "0.5251942", "0.52513695", "0.52508646", "0.5241668", "0.52370244", "0.52364516", "0.52331024", "0.5232384", "0.52303284", "0.5224645", "0.5214917", "0.5213118", "0.5211077", "0.5210094", "0.5204277", "0.51959056", "0.51941955", "0.5181155", "0.5180192", "0.5179804", "0.51764244", "0.51759195", "0.51706356", "0.51698256", "0.5160189", "0.5160037", "0.5157964", "0.5157677", "0.5154953", "0.5152372", "0.5148166", "0.5141203", "0.5140562", "0.51364714", "0.5134549", "0.5134156", "0.513054", "0.51283574", "0.5125417", "0.5121957", "0.5111698", "0.51098406", "0.5107551", "0.51011485", "0.5097406", "0.50952315", "0.5091465", "0.50836945", "0.50829816", "0.50802284", "0.5078021", "0.5072675", "0.50720197", "0.5065625", "0.5061554", "0.5059614", "0.50529563", "0.5050955", "0.5039909", "0.50373834" ]
0.70798343
0
Delete records from DB table dc_squad. The sql statement for this operation is delete from dc_squad where (id = ?)
public int deleteById(long id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }", "public void deleteSurvey(int sid);", "@Override\r\n\tpublic void delete(TQssql sql) {\n\r\n\t}", "@Override\n\tpublic void delete(String id) {\n\t\tString sql = \"delete Join where id = ?\";\n\t\tPreparedStatement pstmt = null;\n\t\ttry {\n\t\t\tconn = dataSource.getConnection();\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tpstmt.setString(1, id);\n\t\t\tpstmt.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tJdbcUtils.closeConnection(conn);\n\t\t} \n\t}", "@Delete({\n \"delete from SWMS_stock_out_record_detail\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n int deleteByPrimaryKey(Long id);", "public void deleteQuestion(int sid);", "public void del(String id) throws SQLException {\n JiaqishenqingDao dao = new JiaqishenqingDao();\n dao.delete(id);\n }", "@Delete({\n \"delete from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n int deleteByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@Override\n\tpublic boolean delete() {\n\t\tString sql=\"DELETE FROM tc_student where id=\"+id;\n\t\t//`\n\t\t\n\t\tSystem.out.println(sql);\n\t\treturn mysql.execute(sql);\n\t}", "@Override\n public void deleteSighting(int sightingId) {\n jdbcTemplate.update(SQL_DELETE_HVSIGHTING,\n sightingId);\n // delete sighting\n jdbcTemplate.update(SQL_DELETE_SIGHTING,\n sightingId);\n }", "@Override\n public void delete(Seq s) {\n // TODO Auto-generated method stub\n \t//Establish cnx\n\t\tConnection conn = null;\n\t\tString url = \"jdbc:sqlite:src\\\\database\\\\AT2_Mobile.db\";\n\t\t\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(url);\n\t\t\tPreparedStatement myStmt; \n\t\t\tString query = \"delete from seq where id = ?\";\n\t\t\tmyStmt = conn.prepareStatement(query);\n\t\t\t\n\t\t\t// Set Parameters\n\t myStmt.setInt(1, s.getId());\n\t\t\t// Execute SQL query\n\t int res = myStmt.executeUpdate();\n\t \n\t // Display the record inserted\n\t System.out.println(res + \" seq deleted\");\n\t \n\t // Close the connection\n\t conn.close();\n\t\t}catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());}\n\t\t\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif (conn != null) {\n\t\t\t\t\tconn.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tSystem.out.println(ex.getMessage());\n\t\t\t}\n\t\t\t}\n \t \n }", "public void deleteDrinkBills(Bill deleteDrink) {\n\tString sql =\"DELETE FROM bills WHERE Id_drink = ?\";\n\t\n\ttry {\n\t\tPreparedStatement preparedStatement = ConnectionToTheBase.getConnectionToTheBase().getConnection().prepareStatement(sql);\n\t\tpreparedStatement.setInt(1, deleteDrink.getId());\n\t\tpreparedStatement.execute();\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\n}", "public void del(String id) throws SQLException {\n\t\tTiaoxiushenqingDao dao = new TiaoxiushenqingDao();\n\t\tdao.delete(id);\n\t}", "@Override\n\tpublic int deleteById(int said) {\n\t\tConnection conn=connectionManager.openConnection();\n\t\t//锟斤拷锟斤拷锟斤拷锟斤拷\n\t\tTransactionManager.conn=conn;\n\t\tTransactionManager.beginTransaction();\n\t\t//锟斤拷锟斤拷SQL锟斤拷锟�\n\t\tString strSQL=\"delete from sptasts where said=?\";\n\t\t\n\t\tObject[] params=new Object[]{said};\n\t\t\n\t\tint affectRows=this.dbUtils.execOthers(conn, strSQL, params);\n\t\t\n\t\tif(affectRows>0){\n\t\t\tTransactionManager.commit();//锟结交\n\t\t}else{\n\t\t\tTransactionManager.rollback();//锟截癸拷\n\t\t} \n\t\t\t\t\t\n\t\treturn affectRows;\n\t\t\n\t}", "public void delete() throws SQLException {\n Statement stmtIn = DatabaseConnector.getInstance().getStatementIn();\n int safeCheck = BusinessFacade.getInstance().checkIDinDB(this.goodID,\n \"orders\", \"goods_id\");\n if (safeCheck == -1) {\n stmtIn.executeUpdate(\"DELETE FROM ngaccount.goods WHERE goods.goods_id = \" +\n this.goodID + \" LIMIT 1;\");\n }\n }", "public void delete(int id) throws SQLException {\n\t\t\r\n\t}", "public void delete() throws SQLException {\r\n\t\t//SQL Statement\r\n\r\n\t\tString sql = \"DELETE FROM \" + table+ \" WHERE \" + col_genreID + \" = ?\";\r\n\t\tPreparedStatement stmt = DBConnection.getConnection().prepareStatement(sql);\r\n\t\tstmt.setInt(1, this.getGenreID());\r\n\r\n\t\tint rowsDeleted = stmt.executeUpdate();\r\n\t\tSystem.out.println(\"Es wurden \"+rowsDeleted+ \"Zeilen gelöscht\");\r\n\t\tstmt.close();\r\n\t}", "public static boolean removeSeg(double id) {\n\n String sql = \"DELETE FROM corpus1 WHERE id = ?\";\n\n try (Connection conn = DatabaseOperations.connect();\n PreparedStatement pstmt = conn.prepareStatement(sql)) {\n\n // set the corresponding param\n pstmt.setDouble(1, id);\n // execute the delete statement\n pstmt.executeUpdate();\n return true;\n\n } catch (SQLException e) {\n System.out.println(\"removeSeg: \" + e.getMessage());\n return false;\n }\n }", "public void delete(String id) {\n\t\t warehouseDAO.delete(id);\r\n\t\t\r\n\t}", "@Override\n\tpublic void delete(int id, String sql) {\n\t\tcommonDao.delete(id, sql);\n\t}", "@Override\n public void delete(Question q) {\n try {\n c = DBConncetion.getConnection();\n String sql = \"Delete From mainquestion where id = ?\";\n PreparedStatement pstmt = c.prepareStatement(sql);\n pstmt.setString(1,String.valueOf(q.getId()));\n pstmt.executeUpdate();\n if (q.getType() == FillBlank) {\n pstmt = c.prepareStatement(\"Delete From fill_blank \\n\" +\n \"Where id = ? \");\n } else {\n pstmt = c.prepareStatement(\"Delete From multiplechoice \\n\" +\n \"Where id = ? \");\n }\n pstmt.setString(1,String.valueOf(q.getId()));\n pstmt.executeUpdate();\n } catch (Exception e) {\n throw new LoadSaveException(\"Delete: \" + e.getMessage());\n }\n }", "public void Delete(){\n String whereClause2 = PostDatabase.ID + \" = ?\";\n // Specify arguments in placeholder order.\n String[] whereArgs2 = { \"6\" };\n // Issue SQL statement.\n sqlDB.delete(PostDatabase.TABLE_POSTS, whereClause2, whereArgs2);\n\n }", "@Override\n\tpublic void deleteById(int id) throws SQLException {\n\n\t}", "@Override\n\t//删除数据\n\tpublic void deleteStudent(String id) {\n\t\tConnection conn = null;\n\t\tPreparedStatement pStatment = null;\n\t\t\t\t\n\t\ttry {\n\t\t\tconn = MySQLConnectUtil.getMySQLConnection();\n\t\t\tpStatment = conn.prepareStatement(DELETE);\n\t\t\tpStatment.setString(1, id);\n\t\t\tint i = pStatment.executeUpdate();\n\t\t\tSystem.out.println(\"删除影响行数:\" +i);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tMySQLConnectUtil.closePreparestatement(pStatment);\n\t\t\tMySQLConnectUtil.closeConnection(conn);\n\t\t}\n\t}", "int delete(Long id) throws SQLException, DAOException;", "@Delete({\n \"delete from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n int deleteByPrimaryKey(Long idSoggetto);", "@DeleteMapping(\"/{id}\")\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public boolean delete(@PathVariable(\"id\") int Quad) {\n return servicios.deleteQuadbike(Quad);\n }", "public void deleteEntry(int id) {\n\t\tString sql=\"delete from suppplierpayments where supplierpayId=\"+id+\"\"; \n\t template.update(sql); \n\t\t\n\t}", "void delete( Long id );", "void deleteById(Long id);", "void deleteById(Long id);", "void deleteById(Long id);", "void deleteById(Long id);", "public void deleteByIdP(int id) {\n\t\tConnection connection = null;\n\t\tPreparedStatement st = null;\n\t\tString query = deleteQuery(\"id_produs\");\n\t\ttry {\n\t\t\tconnection = ConnectionFactory.createCon();\n\t\t\tst = connection.prepareStatement(query);\n\t\t\tst.setInt(1, id);\n\t\t\tst.executeUpdate();\n\t\t}catch(SQLException e) {\n\t\t\tLOGGER.fine(type.getName() + \"DAO:deleteByIdP\" + e.getMessage());\n\t\t}\n\t}", "@LogExceptions\n @Override\n public void delete(int id) throws SQLException {\n Connection conn = DatabaseConnection.getConnection();\n \n try(PreparedStatement stmt = \n conn.prepareStatement(getMembers().getDeleteFormat())) \n {\n stmt.setInt(1, id);\n stmt.executeUpdate();\n }\n }", "@Override\n\tpublic void delete(Integer id) throws SQLException {\n\t\t\n\t}", "public synchronized static void deleteStore(int idShop, Connection c) throws SQLException {\r\n\r\n// PreparedStatement myStmt = null;\r\n// //The query deletes type of the shop we are going to delete from the database.\r\n// myStmt = c.prepareStatement(\"delete From magasin_has_type where magasin_idMagasin=?\");\r\n// myStmt.setInt(1, idShop);\r\n// myStmt.executeUpdate();\r\n PreparedStatement myStmt2 = null;\r\n\r\n //The query deletes a shop from the database.\r\n myStmt2 = c.prepareStatement(\"delete From magasin where idMagasin=?\");\r\n myStmt2.setInt(1, idShop);\r\n myStmt2.executeUpdate();\r\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete MarketingQrcode : {}\", id);\n marketingQrcodeRepository.delete(id);\n }", "public void deleteAllQuad(Long quad) {\n\n Integer q = (int)(long) quad; \n List<OfertaDisciplina> all = listarTodasQuad(q);\n \n for (OfertaDisciplina t : all) {\n t = ofertaDisciplinaFacade.inicializarColecaoDisponibilidades(t);\n Set<Disponibilidade> ds = t.getDisponibilidades();\n Pessoa atual;\n ofertaDisciplinaFacade.remove(t);\n }\n if(q == 1){\n ofertas1LazyModel = null; \n }\n else{\n if(q == 2){\n ofertas2LazyModel = null;\n }\n else{\n ofertas3LazyModel = null;\n }\n }\n }", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void deleteAnswerStatistics(int sid);", "@Query(\"DELETE FROM lyrics WHERE id = :lyricId\")\n void deleteLyricById(int lyricId);", "public void delete(String id) {\n\t\t\n\t\tString sql = \"delete from test_jdbc where id=\"+id;\n\t\ttemplate.update(sql);\n\t\t\n//\t\ttry {\n//\t\t\tcon = DriverManager.getConnection(url, user, pw);\n//\t\t\tps = con.prepareStatement(sql);\n//\t\t\tps.setString(1, id);\n//\t\t\tps.executeUpdate();\n//\t\t} catch (Exception e) {\n//\t\t\te.printStackTrace();\n//\t\t}\n\t\t\n\t}", "int deleteById(ID id) throws SQLException, DaoException;", "@Delete({\n \"delete from PURCHASE\",\n \"where ID = #{id,jdbcType=DECIMAL}\"\n })\n int deleteByPrimaryKey(BigDecimal id);", "public static void delete() throws SQLException{\n\t \n\t\n\t\t String sid = new String();\n\t\t try{\n \t\tSystem.out.println(\"Please enter the sid(Starting with 'B')\\n\"); \n\t\t \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in )); \n\t\t\tsid = br.readLine();\n //Connection to Oracle server\n OracleDataSource ds = new oracle.jdbc.pool.OracleDataSource();\n ds.setURL(\"jdbc:oracle:thin:@grouchoIII.cc.binghamton.edu:1521:ACAD111\");\nConnection conn = ds.getConnection(\"vbobhat1\", \"BingData\");\nCallableStatement cs = conn.prepareCall (\"begin StudRegSys.delete_student(:1); end;\");\n\t \t \n\t \t\tcs.setString(1,sid);\n\t \t\tcs.executeQuery();\n\t \t\tSystem.out.println(\"Student Successfully deleted from student table!\");\n\t\t\tSystem.out.println(\"\\n\\n\");\n\t\t \n\t\t }\n\tcatch (SQLException ex) { System.out.println (\"\\n*** SQLException caught ***\\n\" + ex.getMessage());}\n catch (Exception e) {System.out.println (\"\\n*** other Exception caught ***\\n\");}\n }", "void delete(final Long id);", "void delete ( int id ) throws DAOException;", "@Override\n\tpublic void deleteById(int bid) {\n\t\tString hql=\"delete from basesalary where bid='\"+bid+\"'\";\n\t\tgetSession().createQuery(hql).executeUpdate();\n\t}", "public void deleteById(Long id);", "@Override\n\tpublic int delete(Subordination entity) throws DBOperationException {\n\t\tPreparedStatement statement = null;\n\t\tint result;\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(SUBORDINATION_DELETE_ID);\n\t\t\tstatement.setInt(1, entity.getId());\n\t\t\tresult = statement.executeUpdate();\n\t\t\tstatement.close();\n\t\t} catch (SQLException e) {\n\t\t\tthrow new DBOperationException(\"Subordination not deleted. DB error.\", e);\n\t\t} \n\t\treturn result;\n\t}", "public void delFor(String idi) {\n\t\tourDatabase.delete(DATABASE_TABLE5, Sales_Id + \"=\" +idi, null);\n\t\t\n\t}", "public void DeleteCust(String id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);" ]
[ "0.70969206", "0.6675216", "0.6357016", "0.6353002", "0.62844425", "0.62647766", "0.6232448", "0.6229193", "0.6201063", "0.61560136", "0.61115974", "0.60974216", "0.6050489", "0.6003876", "0.59584844", "0.5945864", "0.59229106", "0.59128773", "0.59119195", "0.5899104", "0.5880525", "0.5879899", "0.5871142", "0.5858704", "0.5856829", "0.5829818", "0.58225447", "0.5813743", "0.5812244", "0.581001", "0.581001", "0.581001", "0.581001", "0.58095866", "0.5803655", "0.57894236", "0.5788297", "0.57848674", "0.5782281", "0.57710385", "0.57710385", "0.57710385", "0.57710385", "0.57710385", "0.57611614", "0.57538265", "0.57473004", "0.57461244", "0.5745683", "0.5739249", "0.5737708", "0.5721964", "0.57104", "0.57101804", "0.5681933", "0.5681095", "0.568104", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774", "0.5680774" ]
0.0
-1
Query DB table dc_squad for records. The sql statement for this operation is select from dc_squad where ((squad_name = ?) AND (axiser = ?) AND (cubers = ?) AND (followers = ?) AND (investors = ?) AND (status = ?) AND (gmt_create = ?) AND (gmt_modify = ?))
public PageList query(String squadName, String axiser, String cubers, String followers, String investors, String status, Date gmtCreate, Date gmtModify, int pageSize, int pageNum) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DcSquadDO loadByName(String squadName) throws DataAccessException;", "public void displaySquad(Squad squad);", "public ResultSet getRecordingsByTune(int tune_id) throws SQLException {\n\t\tquery = \"SELECT r.*, dt.name as type, mt.description as medleytype, p.name as phrasing, pn.name as artist \"\n\t\t\t\t+ \"FROM recording r LEFT OUTER JOIN dancetype dt ON r.type_id=dt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON r.medleytype_id=mt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN phrasing p ON r.phrasing_id=p.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN person pn ON r.artist_id=pn.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN tunesrecordingsmap trm ON r.id=trm.recording_id \"\n\t\t\t\t+ \"WHERE trm.tune_id=\" + tune_id + \" ORDER BY r.name\";\n\t\treturn stmt.executeQuery(query);\n\t}", "private List<OfertaDisciplina> listarTodasQuad(int quad){\n return ofertaDisciplinaFacade.findAllQuad(quad);\n }", "public int update(DcSquadDO dcSquad) throws DataAccessException;", "public ResultSet getRecordingsByDance(int dance_id) throws SQLException {\n\t\tquery = \"SELECT r.*, dt.name as type, mt.description as medleytype, p.name as phrasing, pn.name as artist \"\n\t\t\t\t+ \"FROM recording r LEFT OUTER JOIN dancetype dt ON r.type_id=dt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON r.medleytype_id=mt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN phrasing p ON r.phrasing_id=p.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN person pn ON r.artist_id=pn.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN dancesrecordingsmap drm ON r.id=drm.recording_id \"\n\t\t\t\t+ \"WHERE drm.dance_id=\" + dance_id + \" ORDER BY r.name\";\n\t\treturn stmt.executeQuery(query);\n\t}", "public ResultSet getRecordingsByAlbum(int album_id) throws SQLException {\n\t\tquery = \"SELECT r.*, dt.name as type, mt.description as medleytype, p.name as phrasing, pn.name as artist, tracknumber \"\n\t\t\t\t+ \"FROM recording r LEFT OUTER JOIN dancetype dt ON r.type_id=dt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON r.medleytype_id=mt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN phrasing p ON r.phrasing_id=p.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN albumsrecordingsmap arm ON r.id=arm.recording_id \"\n\t\t\t\t+ \"LEFT OUTER JOIN person pn ON r.artist_id=pn.id \"\n\t\t\t\t+ \"WHERE arm.album_id=\" + album_id + \" ORDER BY tracknumber\";\n\t\treturn stmt.executeQuery(query);\n\t}", "Query query();", "public static void main(String[] args) {\n\t\tSession s2=util.getSession();\r\n\t\tQuery qry=s2.getNamedQuery(\"q2\");\r\n\t\t//Query qry=s2.getNamedQuery(\"q3\");\r\n\t\t//qry.setInteger(0, 50);\r\n\t\tList<Object[]> lust=qry.list();\r\n\t\tfor(Object[] row:lust) {\r\n\t\t\tSystem.out.println(Arrays.toString(row));\r\n\t\t}\r\n\t\tSystem.out.println(\"Completed\");\r\n\t}", "void runQueries();", "QueryResponse query(SolrParams solrParams) throws SolrServerException;", "private List<Object[]> executeDayQuery(\n List<Object> segments, List<Object> workplaces,\n String Eq1startTime, String Eq1endTime,\n String Eq2startTime, String Eq2endTime,\n String Eq3startTime, String Eq3endTime) {\n try {\n //Clear all tables\n //################# Declared Harness Data #################### \n Helper.startSession();\n\n String query_str_1 = \"(SELECT 'Matin' as shift,'%s' As start_time, '%s' as end_time, \"\n + \"bh.segment AS segment, \"\n + \"bh.workplace AS workplace, \"\n + \"bh.harness_part AS harness_part, \"\n + \"bh.std_time AS std_time, \"\n + \"COUNT(bh.harness_part) AS produced_qty, \"\n + \"SUM(bh.std_time) AS produced_hours \"\n + \"FROM base_harness bh, base_container bc \"\n + \"WHERE bc.id = bh.container_id \"\n + \"AND bh.create_time BETWEEN '%s' AND '%s' \"\n + \"AND bh.segment IN (:segments) \"\n + \"AND bh.workplace IN (:workplaces) \"\n + \"GROUP BY bh.segment, bh.workplace, bh.harness_part, bh.std_time)\";\n\n query_str_1 = String.format(query_str_1, Eq1startTime, Eq1endTime, Eq1startTime, Eq1endTime);\n\n String query_str_2 = \"(SELECT 'Soir' as shift,'%s' As start_time, '%s' as end_time, \"\n + \"bh.segment AS segment, \"\n + \"bh.workplace AS workplace, \"\n + \"bh.harness_part AS harness_part, \"\n + \"bh.std_time AS std_time, \"\n + \"COUNT(bh.harness_part) AS produced_qty, \"\n + \"SUM(bh.std_time) AS produced_hours \"\n + \"FROM base_harness bh, base_container bc \"\n + \"WHERE bc.id = bh.container_id \"\n + \"AND bh.create_time BETWEEN '%s' AND '%s' \"\n + \"AND bh.segment IN (:segments) \"\n + \"AND bh.workplace IN (:workplaces) \"\n + \"GROUP BY bh.segment, bh.workplace, bh.harness_part, bh.std_time)\";\n\n query_str_2 = String.format(query_str_2, Eq2startTime, Eq2endTime, Eq2startTime, Eq2endTime);\n\n String query_str_3 = \"(SELECT 'Nuit' as shift,'%s' As start_time, '%s' as end_time, \"\n + \"bh.segment AS segment, \"\n + \"bh.workplace AS workplace, \"\n + \"bh.harness_part AS harness_part, \"\n + \"bh.std_time AS std_time, \"\n + \"COUNT(bh.harness_part) AS produced_qty, \"\n + \"SUM(bh.std_time) AS produced_hours \"\n + \"FROM base_harness bh, base_container bc \"\n + \"WHERE bc.id = bh.container_id \"\n + \"AND bh.create_time BETWEEN '%s' AND '%s' \"\n + \"AND bh.segment IN (:segments) \"\n + \"AND bh.workplace IN (:workplaces)\"\n + \"GROUP BY bh.segment, bh.workplace, bh.harness_part, bh.std_time) \";\n\n query_str_3 = String.format(query_str_3, Eq3startTime, Eq3endTime, Eq3startTime, Eq3endTime);\n\n String query_str = \"SELECT * FROM (\"\n + query_str_1 + \" UNION \"\n + query_str_2 + \" UNION \"\n + query_str_3\n + \") results ORDER BY start_time ASC, segment ASC, workplace ASC, harness_part ASC\";\n\n SQLQuery query = Helper.sess.createSQLQuery(query_str);\n\n query.addScalar(\"shift\", StandardBasicTypes.STRING)\n .addScalar(\"start_time\", StandardBasicTypes.STRING)\n .addScalar(\"end_time\", StandardBasicTypes.STRING)\n .addScalar(\"segment\", StandardBasicTypes.STRING)\n .addScalar(\"workplace\", StandardBasicTypes.STRING)\n .addScalar(\"harness_part\", StandardBasicTypes.STRING)\n .addScalar(\"std_time\", StandardBasicTypes.DOUBLE)\n .addScalar(\"produced_qty\", StandardBasicTypes.INTEGER)\n .addScalar(\"produced_hours\", StandardBasicTypes.DOUBLE)\n .setParameterList(\"segments\", segments)\n .setParameterList(\"workplaces\", workplaces);\n\n this.dataResultList = query.list();\n\n Helper.sess.getTransaction().commit();\n\n return this.dataResultList;\n\n } catch (HibernateException e) {\n if (Helper.sess.getTransaction() != null) {\n Helper.sess.getTransaction().rollback();\n }\n }\n\n return this.dataResultList;\n }", "public static ru.terralink.mvideo.sap.Orders findByPrimaryKey(java.lang.String IV_FO_TOR_ID\n ,java.lang.String IV_FU_TOR_ID)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.findByPrimaryKey\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n \n \n String _selectSQL = \"SELECT x.\\\"a\\\",x.\\\"b\\\",x.\\\"c\\\",x.\\\"d\\\",x.\\\"e\\\",x.\\\"f\\\",x.\\\"g\\\",x.\\\"h\\\",x.\\\"i\\\",x.\\\"j\\\",x.\\\"l\\\",x.\\\"m\\\",x.\\\"n\\\",x.\\\"o\\\",x.\\\"p\\\",x.\\\"q\\\",x.\\\"r\\\",x.\\\"s\\\",x.\\\"t\\\",x.\\\"u\\\",x.\\\"v\\\",x.\\\"w\\\",x.\\\"x\\\",x.\\\"y\\\",x.\\\"z\\\",x.\\\"ba\\\",x.\\\"bb\\\",x.\\\"bc\\\",x.\\\"bd\\\",x.\\\"be\\\",x.\\\"bf\\\",x.\\\"bg\\\",x.\\\"bh\\\",x.\\\"bi\\\",x.\\\"bj\\\",x.\\\"bl\\\",x.\\\"bm\\\",x.\\\"pending\\\",x.\\\"_pc\\\",x.\\\"_rp\\\",x\"\n + \".\\\"_rf\\\",x.\\\"relationsFK\\\",x.\\\"bn\\\",x.\\\"_rc\\\",x.\\\"_ds\\\",x.\\\"cvpOperation_length\\\",x.\\\"cvpOperationLobs_length\\\" FROM \\\"mvideo5_1_0_orders\\\" x WHERE (((x.\\\"pending\\\" = 1 or not exists (select x_os.\\\"bn\\\" from \\\"mvideo5_1_0_orders_os\\\" x_os where x_os.\\\"bn\\\" = x.\\\"bn\\\")))) and ( x.\\\"bl\\\" = ? AND x.\\\"bm\\\" = ?)\";\n String[] ids = new String[0];\n com.sybase.reflection.DataType[] dts = new com.sybase.reflection.DataType[]{ \n com.sybase.reflection.DataType.forName(\"string\"),\n com.sybase.reflection.DataType.forName(\"string\"),\n };\n Object[] values = new Object[] { \n IV_FO_TOR_ID,\n IV_FU_TOR_ID,\n };\n Object res = DELEGATE.findWithSQL(_selectSQL, dts, values, ids, ru.terralink.mvideo.sap.Orders.class);\n return (ru.terralink.mvideo.sap.Orders)res;\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }", "public abstract Statement queryToRetrieveData();", "private void executeQuery()\n {\n ResultSet rs = null;\n try\n { \n String author = (String) authors.getSelectedItem();\n String publisher = (String) publishers.getSelectedItem();\n if (!author.equals(\"Any\") && !publisher.equals(\"Any\"))\n { \n if (authorPublisherQueryStmt == null)\n authorPublisherQueryStmt = conn.prepareStatement(authorPublisherQuery);\n authorPublisherQueryStmt.setString(1, author);\n authorPublisherQueryStmt.setString(2, publisher);\n rs = authorPublisherQueryStmt.executeQuery();\n }\n else if (!author.equals(\"Any\") && publisher.equals(\"Any\"))\n { \n if (authorQueryStmt == null)\n authorQueryStmt = conn.prepareStatement(authorQuery);\n authorQueryStmt.setString(1, author);\n rs = authorQueryStmt.executeQuery();\n }\n else if (author.equals(\"Any\") && !publisher.equals(\"Any\"))\n { \n if (publisherQueryStmt == null)\n publisherQueryStmt = conn.prepareStatement(publisherQuery);\n publisherQueryStmt.setString(1, publisher);\n rs = publisherQueryStmt.executeQuery();\n }\n else\n { \n if (allQueryStmt == null)\n allQueryStmt = conn.prepareStatement(allQuery);\n rs = allQueryStmt.executeQuery();\n }\n\n result.setText(\"\");\n while (rs.next())\n {\n result.append(rs.getString(1));\n result.append(\", \");\n result.append(rs.getString(2));\n result.append(\"\\n\");\n }\n rs.close();\n }\n catch (SQLException e)\n {\n result.setText(\"\");\n while (e != null)\n {\n result.append(\"\" + e);\n e = e.getNextException();\n }\n }\n }", "static ResultSet dataOphalen(String querry) {\n //declaratie anders kan er niks worden gereturnt\n ResultSet rs = null;\n try {\n Statement stmt = connectieMaken().createStatement(); //\n rs = stmt.executeQuery(querry);\n } catch (SQLException se) {\n se.printStackTrace();\n }\n return rs;\n }", "public List<DcSquadDO> load() throws DataAccessException;", "public List<T> query(QueryObject qo) {\n\t\treturn null;\n\t}", "@Override\r\n public void query(String strSQL)\r\n {\r\n try\r\n {\r\n dbRecordset = dbCmdText.executeQuery(strSQL);\r\n status(\"epic wonder \"+ strSQL);\r\n }\r\n catch (Exception ex)\r\n {status(\"Query fail\");\r\n }\r\n }", "public ResultSet getRecordingsByPerson(int person_id) throws SQLException {\n\t\tquery = \"SELECT r.*, dt.name as type, mt.description as medleytype, p.name as phrasing, pn.name as artist \"\n\t\t\t\t+ \"FROM recording r LEFT OUTER JOIN dancetype dt ON r.type_id=dt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN medleytype mt ON r.medleytype_id=mt.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN phrasing p ON r.phrasing_id=p.id \"\n\t\t\t\t+ \"LEFT OUTER JOIN person pn ON r.artist_id=pn.id \"\n\t\t\t\t+ \"WHERE pn.id=\" + person_id + \" ORDER BY r.name\";\n\t\treturn stmt.executeQuery(query);\n\t}", "List<Quarter> getQuarterList(Integer cityId)throws EOTException;", "private void runQuery(QueryTerm qt, String name) {\n\t\tqt.setInferred(false);\n\t\tRDFQuery q = new RDFQuery(qt);\n\t\tSystem.out.println(\"=== \"+name+\" ===\\n* OBD Query:\\n \"+qt);\n\t\tSystem.out.println(\"\\n* Autogenerated SPARQL:\\n \"+q.toSPARQL()+\"\\n\\n\");\n\t\tfor (Node n : this.shard.getNodesByQuery(qt)){\n\t\t\tSystem.out.println(\"Node: \" + n.toString());\n\t\t}\n\t\n\t}", "@Test\n public void testQuery() {\n DataSetArgument lArgs = new DataSetArgument();\n lArgs.add( \"aMsgId\", \"100\" );\n\n QuerySet lQs = QuerySetFactory.getInstance()\n .executeQuery( \"com.mxi.mx.integration.query.process.LookupQueueId\", lArgs );\n\n Assert.assertEquals( \"Row Count\", 1, lQs.getRowCount() );\n\n lQs.next();\n\n Assert.assertEquals( \"Queue Id\", 1000, lQs.getInt( \"queue_id\" ) );\n }", "public void getSingleTransQuery(HashMap<String, String> params) {\n\t\tID = params.get(\"transactionID\");\n\t\tREPORT_START = params.get(\"reportStart\");\n\t\tREPORT_END = params.get(\"reportEnd\");\n\t\tEXCLUDE_ERRORS = params.get(\"excludeErrors\");\n\t\tAPI = \"stq\";\n\t}", "public String getSquadName() {\n\n return m_squadName;\n }", "SparqlResultObject callSelectQuery(String name, Map<String, String> params);", "public void queryTransactions(){\n System.out.println(\"-----find transaction by condition-----\");\n System.out.println(\"--press enter to skip the input--\");\n //for every query input, do not format it into sql if it is null\n String sql = \"select * from transactionrecords join ClubMembers on transactionrecords.CustomerID = ClubMembers.CustomerID where 1=1\";\n System.out.print(\"TransactionID: \");\n String unuse=scanner.nextLine();\n String id=scanner.nextLine();\n\n //if id is given, no need for other information\n if(!StringUtils.isNullOrEmpty(id)){\n sql+=(\" and TransactionID=\"+id);\n }else{\n System.out.print(\"cashier id: \");\n String cashierid=scanner.nextLine();\n if(!StringUtils.isNullOrEmpty(cashierid)){\n sql+=(\" and CashierID=\"+cashierid);\n }\n System.out.print(\"store id: \");\n String storeid=scanner.nextLine();\n if(!StringUtils.isNullOrEmpty(storeid)){\n sql+=(\" and StoreID=\"+storeid);\n }\n System.out.print(\"customer id: \");\n String customerid=scanner.nextLine();\n if(!StringUtils.isNullOrEmpty(customerid)){\n sql+=(\" and CustomerID=\"+customerid);\n }\n }\n try {\n //System.out.println(sql);\n result = statement.executeQuery(sql);\n int cnt=0;\n\n //print all qualified result one by one\n while (result.next()) {\n cnt++;\n System.out.println(\"\\n=== No.\"+cnt+\" ===\");\n System.out.println(\"transaction id: \"+result.getInt(\"TransactionID\"));\n System.out.println(\"cashier id: \"+result.getInt(\"CashierID\"));\n System.out.println(\"store id: \"+result.getInt(\"StoreID\"));\n System.out.println(\"customer id: \"+result.getInt(\"CustomerID\"));\n System.out.println(\"customer first name: \"+result.getString(\"FirstName\"));\n System.out.println(\"customer last name: \"+result.getString(\"LastName\"));\n System.out.println(\"total price: \"+result.getDouble(\"TotalPrice\"));\n }\n System.out.println(\"Total rows: \"+cnt);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "private static void runQuery(Statement stmt, String sqlQuery) throws SQLException {\n\t\tResultSet rs;\n\t\tResultSetMetaData rsMetaData;\n\t\tString toShow;\n\t\trs = stmt.executeQuery(sqlQuery);\n\t\trsMetaData = rs.getMetaData();\n\t\tSystem.out.println(sqlQuery);\n\t\ttoShow = \"\";\n\t\twhile (rs.next()) {\n\t\t\tfor (int i = 0; i < rsMetaData.getColumnCount(); i++) {\n\t\t\t\ttoShow += rs.getString(i + 1) + \", \";\n\t\t\t}\n\t\t\ttoShow += \"\\n\";\n\t\t}\n\t\tif (toShow == \"\" ) {\n\t\t\ttoShow = \"No results found matching your criteria.\";\n\t\t}\n\t\tJOptionPane.showMessageDialog(null, toShow);\n\t}", "public DcSquadDO loadById(long id) throws DataAccessException;", "public Query getQuery(Map points, boolean forMapping, boolean[] geokosher) {\n Query query;\n if (chkUseRawName.isChecked()) {\n query = QueryUtil.get(autoComplete.getFacetField(), ((Comboitem)autoComplete.getSelection()).getAnnotatedProperties().get(0), forMapping, geokosher);\n } else {\n query = QueryUtil.get(((Comboitem)autoComplete.getSelection()).getAnnotatedProperties().get(0), points, forMapping, geokosher);\n }\n return query;\n }", "@Query(\"select sh from Sponsorship sh where sh.sponsor.id=?1\")\n\tCollection<Sponsorship> sponsorshipsFromSponsor(int sponsorId);", "Object executeQuery(String sparqlQuery);", "private String getUnionQuery(TaxChallan taxChallan,Object[][] tdsParameter, String ledgerCode) {\r\n\t\t\r\n\t\tString salaryQuery = \"\";\r\n\t\tString arrearstQuery = \"\";\r\n\t\tString settlementQuery = \"\";\r\n\t\t//String allowanceQuery = \"\";\r\n\t\tString challanQuery = \"\";\r\n\t\tString bonusQuery = \"\";\r\n\t\tString leaveEncashmentQuery = \"\";\r\n\t\tString OverTimeQuery = \"\";\r\n\t\t//-------------------------Start of query---------------------------------------\r\n\t\ttry{\r\n\t\tchallanQuery = \"SELECT EMPID, ETOKEN, ENAME, TO_CHAR(SUM(AMT),9999999990.99) FROM ( \";\r\n\t\t\r\n\t\t\tif(ledgerCode != null && ledgerCode.length() > 0){\r\n\t\t\t\t/**\r\n\t\t\t\t * Query for Salary\r\n\t\t\t\t */\r\n\t\t\t\tsalaryQuery=\"SELECT DISTINCT HRMS_SAL_DEBITS_\"+taxChallan.getYear()+\".EMP_ID AS EMPID,EMP_TOKEN AS ETOKEN,EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME AS ENAME \"\r\n\t\t\t\t+\" ,TO_CHAR(SUM(NVL(SAL_AMOUNT,0)),9999999990.99) AS AMT \"\r\n\t\t\t\t+\" FROM HRMS_SAL_DEBITS_\"+taxChallan.getYear()+\" \"\r\n\t\t\t\t+\" INNER JOIN HRMS_EMP_OFFC ON HRMS_SAL_DEBITS_\"+taxChallan.getYear()+\".EMP_ID = HRMS_EMP_OFFC.EMP_ID \" \r\n\t\t\t\t+\" INNER JOIN HRMS_SALARY_\"+taxChallan.getYear()+\" ON (HRMS_SALARY_\"+taxChallan.getYear()+\".EMP_ID = HRMS_SAL_DEBITS_\"+taxChallan.getYear()+\".EMP_ID \" \r\n\t\t\t\t+\" and HRMS_SALARY_\"+taxChallan.getYear()+\".SAL_LEDGER_CODE = HRMS_SAL_DEBITS_\"+taxChallan.getYear()+\".SAL_LEDGER_CODE) \"\r\n\t\t\t\t+\" WHERE HRMS_SALARY_\"+taxChallan.getYear()+\".SAL_DIVISION=\"+taxChallan.getDivId()+\" AND SAL_DEBIT_CODE=\"+String.valueOf(tdsParameter[0][0])+\" AND SAL_LEDGER_CODE IN(\"+ledgerCode+\") \" +\r\n\t\t\t\t \" AND HRMS_SAL_DEBITS_\"+taxChallan.getYear()+\".EMP_ID NOT IN(SELECT EMP_ID FROM HRMS_TAX_CHALLAN_DTL \"\r\n\t\t\t\t+\" INNER JOIN HRMS_TAX_CHALLAN ON (HRMS_TAX_CHALLAN.CHALLAN_CODE = HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE ) \"\r\n\t\t\t\t+\" WHERE CHALLAN_MONTH = \"+taxChallan.getMonth()+\" AND CHALLAN_YEAR=\"+taxChallan.getYear()+\" AND CHALLAN_DIVISION_ID=\"+taxChallan.getDivId()+\")\";\r\n\t\t\t\tlogger.info(\"taxChallan.getOnHold()======\"+taxChallan.getOnHold());\r\n\t\t\t\tif(taxChallan.getOnHold().equals(\"Yes\")){\r\n\t\t\t\t\tsalaryQuery += \" AND SAL_ONHOLD='Y' \";\r\n\t\t\t\t} //end of if\r\n\t\t\t\telse if(taxChallan.getOnHold().equals(\"No\")){\r\n\t\t\t\t\tsalaryQuery += \" AND SAL_ONHOLD='N' \";\r\n\t\t\t\t} //end of else if\r\n\t\t\t\tsalaryQuery+=\" GROUP BY HRMS_SAL_DEBITS_\"+taxChallan.getYear()+\".EMP_ID,EMP_TOKEN,EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME \";\r\n\t\t\t\t\r\n\t\t\t} //end of ledgerCode if\r\n\t\t\t\r\n\t\t\tchallanQuery +=salaryQuery;\r\n\t\t\tif(taxChallan.getIncludeArrears().equals(\"true\")){\r\n\t\t\t\tif(taxChallan.getIncludeSalary().equals(\"true\")){\r\n\t\t\t\t\tarrearstQuery +=\" UNION \";\r\n\t\t\t\t} //end of if\r\n\t\t\t\r\n\t\t\t/**\r\n\t\t\t * Query for Arrears \r\n\t\t\t */\r\n\t\t\tarrearstQuery +=\" SELECT ARREARS_EMP_ID AS EMPID,EMP_TOKEN AS ETOKEN,EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME AS ENAME, \"\r\n\t\t\t\t+\" TO_CHAR(SUM(NVL(ARREARS_AMT,0)),9999999990.99) AS AMT \"\r\n\t\t\t\t+\" FROM HRMS_ARREARS_DEBIT_\"+taxChallan.getYear()+\" \"\r\n\t\t\t\t+\" INNER JOIN HRMS_DEBIT_HEAD ON HRMS_DEBIT_HEAD.DEBIT_CODE = HRMS_ARREARS_DEBIT_\"+taxChallan.getYear()+\".ARREARS_DEBIT_CODE \" \r\n\t\t\t\t+\" INNER JOIN HRMS_EMP_OFFC ON HRMS_ARREARS_DEBIT_\"+taxChallan.getYear()+\".ARREARS_EMP_ID = HRMS_EMP_OFFC.EMP_ID \"\r\n\t\t\t\t+\" WHERE ARREARS_CODE IN (SELECT ARREARS_CODE FROM HRMS_ARREARS_LEDGER WHERE ARREARS_PAID_MONTH = \"+taxChallan.getMonth()+\" \" \r\n\t\t\t\t+\" AND ARREARS_PAID_YEAR = \"+taxChallan.getYear()+\" AND ARREARS_DIVISION = \"+taxChallan.getDivId()+\") AND ARREARS_DEBIT_CODE = \"+String.valueOf(tdsParameter[0][0])+\" \" +\r\n\t\t\t\t \" AND ARREARS_EMP_ID NOT IN (SELECT EMP_ID FROM HRMS_TAX_CHALLAN_DTL \"\r\n\t\t\t\t+\" INNER JOIN HRMS_TAX_CHALLAN ON (HRMS_TAX_CHALLAN.CHALLAN_CODE = HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE AND CHALLAN_ARREARS_FLAG='Y') \"\r\n\t\t\t\t+\" WHERE CHALLAN_MONTH = \"+taxChallan.getMonth()+\" AND CHALLAN_YEAR=\"+taxChallan.getYear()+\" AND CHALLAN_DIVISION_ID=\"+taxChallan.getDivId()+\") \"\r\n\t\t\t\t+\" GROUP BY ARREARS_EMP_ID,EMP_TOKEN,EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME \";\r\n\t\t\t\r\n\t\t} //end of includeArrears if\r\n\t\t\t\r\n\t\t\tchallanQuery +=arrearstQuery;\r\n\t\t\tif(taxChallan.getIncludeSettlement().equals(\"true\")){\r\n\t\t\t\tif(taxChallan.getIncludeSalary().equals(\"true\")){\r\n\t\t\t\t\tsettlementQuery +=\" UNION \";\r\n\t\t\t\t} //end of if\r\n\t\t\t\tsettlementQuery += \" SELECT SETTL_ECODE AS EMPID,EMP_TOKEN AS ETOKEN,EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME AS ENAME, \"\r\n\t\t\t\t+\" TO_CHAR(SUM(NVL(SETTL_AMT,0)),9999999990.99)+TO_CHAR(nvl((SETTL_TAX_AMT),0),9999999990.99) AS AMT FROM HRMS_SETTL_DEBITS \"\r\n\t\t\t\t+\" INNER JOIN HRMS_SETTL_HDR ON (HRMS_SETTL_HDR.SETTL_CODE = HRMS_SETTL_DEBITS.SETTL_CODE) \"\r\n\t\t\t\t+\" INNER JOIN HRMS_EMP_OFFC ON (HRMS_EMP_OFFC.EMP_ID = HRMS_SETTL_HDR.SETTL_ECODE) \"\r\n\t\t\t\t+\" INNER JOIN HRMS_RESIGN ON (HRMS_RESIGN.RESIGN_CODE = HRMS_SETTL_HDR.SETTL_RESGNO) \" \r\n\t\t\t\t+\" WHERE (SETTL_MTH_TYPE IN ('OH','CO')) AND RESIGN_WITHDRAWN = 'N' AND EMP_DIV = \"+taxChallan.getDivId()+\" \"\r\n\t\t\t\t+\" AND TO_CHAR(SETTL_SETTLDT,'MM')=\"+taxChallan.getMonth()+\" AND TO_CHAR(SETTL_SETTLDT,'YYYY')=\"+taxChallan.getYear()+\" \"\r\n\t\t\t\t+\" AND SETTL_DEBIT_CODE=\"+String.valueOf(tdsParameter[0][0])+\" \" +\r\n\t\t\t\t \" AND SETTL_ECODE NOT IN (SELECT EMP_ID FROM HRMS_TAX_CHALLAN_DTL \"\r\n\t\t\t\t+\" INNER JOIN HRMS_TAX_CHALLAN ON (HRMS_TAX_CHALLAN.CHALLAN_CODE = HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE) \"\r\n\t\t\t\t+\" WHERE CHALLAN_MONTH = \"+taxChallan.getMonth()+\" AND CHALLAN_YEAR=\"+taxChallan.getYear()+\" AND CHALLAN_DIVISION_ID=\"+taxChallan.getDivId()+\") \" \r\n\t\t\t\t+\" GROUP BY SETTL_ECODE,EMP_TOKEN,EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,SETTL_TAX_AMT \";\r\n\t\t\t\t\r\n\t\t\t} //end of includeSettlement if\r\n\t\t\t\r\n\t\t\tchallanQuery +=settlementQuery;\r\n\t\t\t\r\n\t\t\t/*if(taxChallan.getIncludeAllowance().equals(\"true\")){\r\n\t\t\t\ttaxChallan.setHidIncludeAllow(\"true\");\r\n\t\t\t\tif(taxChallan.getIncludeSalary().equals(\"true\") || taxChallan.getIncludeSettlement().equals(\"true\")){\r\n\t\t\t\t\tallowanceQuery +=\" UNION \";\r\n\t\t\t\t} //end of if\r\n\t\t\t\tallowanceQuery += \" SELECT HRMS_ALLOWANCE_EMP_DTL.ALLW_EMP_ID AS EMPID,EMP_TOKEN AS ETOKEN,EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME AS ENAME, \"\r\n\t\t\t\t+\" NVL(SUM(ALLW_TAX_AMT),0) AS AMT \"\r\n\t\t\t\t+\" FROM HRMS_ALLOWANCE_HDR \"\r\n\t\t\t\t+\" INNER JOIN HRMS_ALLOWANCE_EMP_DTL ON (HRMS_ALLOWANCE_EMP_DTL.ALLW_ID = HRMS_ALLOWANCE_HDR.ALLW_ID) \"\r\n\t\t\t\t+\" INNER JOIN HRMS_EMP_OFFC ON (HRMS_EMP_OFFC.EMP_ID = HRMS_ALLOWANCE_EMP_DTL.ALLW_EMP_ID) \"\r\n\t\t\t\t+\" INNER JOIN HRMS_CREDIT_HEAD ON (HRMS_CREDIT_HEAD.CREDIT_CODE = HRMS_ALLOWANCE_HDR.ALLW_CREDIT_HEAD) \"\r\n\t\t\t\t+\" AND TO_CHAR(ALLW_PROCESS_DATE,'MM')=\"+taxChallan.getMonth()+\" \"\r\n\t\t\t\t+\" AND TO_CHAR(ALLW_PROCESS_DATE,'YYYY')=\"+taxChallan.getYear()+\" \" \r\n\t\t\t\t+\" AND HRMS_ALLOWANCE_HDR.ALLW_DIVISION = \"+taxChallan.getDivId()+\" \" +\r\n\t\t\t\t \" AND HRMS_ALLOWANCE_EMP_DTL.ALLW_EMP_ID NOT IN (SELECT EMP_ID FROM HRMS_TAX_CHALLAN_DTL \"\r\n\t\t\t\t+\" INNER JOIN HRMS_TAX_CHALLAN ON (HRMS_TAX_CHALLAN.CHALLAN_CODE = HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE) \"\r\n\t\t\t\t+\" WHERE CHALLAN_MONTH = \"+taxChallan.getMonth()+\" AND CHALLAN_YEAR=\"+taxChallan.getYear()+\" AND CHALLAN_DIVISION_ID=\"+taxChallan.getDivId()+\") \"\r\n\t\t\t\t+\" GROUP BY HRMS_ALLOWANCE_EMP_DTL.ALLW_EMP_ID,EMP_TOKEN,EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME \";\r\n\t\t\t\t\r\n\t\t\t} //end of includeAllowance if\r\n\t\t\t\r\n\t\t\tchallanQuery +=allowanceQuery;*/\r\n\t\t\tif(taxChallan.getIncludeBonus().equals(\"true\")){\r\n\t\t\t\tif(taxChallan.getIncludeSalary().equals(\"true\")){\r\n\t\t\t\t\tbonusQuery +=\" UNION \";\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tbonusQuery += \" SELECT HRMS_BONUS_EMP.EMP_ID AS EMPID, NVL(EMP_TOKEN,' ') AS ETOKEN, NVL(EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,' ') AS ENAME, TO_CHAR(SUM(NVL(HRMS_BONUS_EMP.BONUS_TAX_AMT,0)),9999999990.99) AS AMT\" \r\n\t\t\t\t\t+ \" FROM HRMS_BONUS_EMP \"\r\n\t\t\t\t\t+ \" INNER JOIN HRMS_BONUS_HDR ON (HRMS_BONUS_HDR.BONUS_CODE = HRMS_BONUS_EMP.BONUS_CODE)\"\r\n\t\t\t\t\t+ \" INNER JOIN HRMS_EMP_OFFC ON (HRMS_EMP_OFFC.EMP_ID = HRMS_BONUS_EMP.EMP_ID)\"\r\n\t\t\t\t\t+ \" WHERE HRMS_BONUS_HDR.DIV_CODE=\"+taxChallan.getDivId()+\" AND HRMS_BONUS_HDR.PAY_MONTH=\"+taxChallan.getMonth()+\" AND HRMS_BONUS_HDR.PAY_YEAR = \"+taxChallan.getYear()\r\n\t\t\t\t\t+ \" AND HRMS_BONUS_HDR.PAY_IN_SAL='N' AND HRMS_BONUS_HDR.DEDUCT_TAX='Y'\"\r\n\t\t\t\t\t+ \" GROUP BY HRMS_BONUS_EMP.EMP_ID, NVL(EMP_TOKEN,' '), NVL(EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,' ')\";\r\n\t\t\t\t\r\n\t\t\t} \r\n\t\t\tchallanQuery +=bonusQuery;\r\n\t\t\t\r\n\t\t\tif(taxChallan.getIncludeLeaveEncashment().equals(\"true\")){\r\n\t\t\t\tif(taxChallan.getIncludeSalary().equals(\"true\")){\r\n\t\t\t\t\tleaveEncashmentQuery +=\" UNION \";\r\n\t\t\t\t}\r\n\t\t\t\tleaveEncashmentQuery += \" SELECT HRMS_ENCASHMENT_PROCESS_DTL.EMP_ID AS EMPID, NVL(EMP_TOKEN,' ') AS ETOKEN, NVL(EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,' ') AS ENAME, TO_CHAR(SUM(NVL(ENCASHMENT_TDS_AMOUNT,0)),9999999990.99) AS AMT\"\r\n\t\t\t\t\t+ \" FROM HRMS_ENCASHMENT_PROCESS_DTL \"\r\n\t\t\t\t\t+ \" INNER JOIN HRMS_EMP_OFFC ON (HRMS_EMP_OFFC.EMP_ID = HRMS_ENCASHMENT_PROCESS_DTL.EMP_ID) \"\r\n\t\t\t\t\t+ \" INNER JOIN HRMS_ENCASHMENT_PROCESS_HDR ON (HRMS_ENCASHMENT_PROCESS_HDR.ENCASHMENT_PROCESS_CODE = HRMS_ENCASHMENT_PROCESS_DTL.ENCASHMENT_PROCESS_CODE)\"\r\n\t\t\t\t\t+ \" WHERE HRMS_ENCASHMENT_PROCESS_HDR.ENCASHMENT_PROCESS_DIVISION =\"+taxChallan.getDivId()+\" AND HRMS_ENCASHMENT_PROCESS_HDR.ENCASHMENT_INCLUDE_SAL_MONTH = \"+taxChallan.getMonth()\r\n\t\t\t\t\t+ \" AND HRMS_ENCASHMENT_PROCESS_HDR.ENCASHMENT_INCLUDE_SAL_YEAR= \"+taxChallan.getYear()+\" AND HRMS_ENCASHMENT_PROCESS_HDR.ENCASHMENT_INCLUDE_SAL_FLAG = 'N'\"\r\n\t\t\t\t\t+ \" GROUP BY HRMS_ENCASHMENT_PROCESS_DTL.EMP_ID, NVL(EMP_TOKEN,' '), NVL(EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,' ')\";\r\n\r\n\t\t\t} \r\n\t\t\tchallanQuery +=leaveEncashmentQuery;\r\n\t\t\t\r\n\t\t\tif(taxChallan.getIncludeOverTime().equals(\"true\")){\r\n\t\t\t\tif(taxChallan.getIncludeSalary().equals(\"true\")){\r\n\t\t\t\t\tOverTimeQuery +=\" UNION \";\r\n\t\t\t\t}\r\n\t\t\t\tOverTimeQuery += \"\";\r\n\t\t\t} \r\n\t\t\tchallanQuery +=OverTimeQuery;\r\n\t\t\t\r\n\t\t\tchallanQuery +=\" ) GROUP BY EMPID, ETOKEN, ENAME\";\r\n\t\t}catch(Exception e){\r\n\t\t\tlogger.error(\"exception in union challan query\",e);\r\n\t\t} //end of catch\r\n\t\treturn challanQuery;\r\n\t}", "void queryTimeSeries(final Message<JsonObject> msg) {\n\n final JsonObject query = msg.body();\n LOG.debug(\"{}\\n{}\", address, query.encodePrettily());\n\n // get the paramsters from the query\n final Range range = rangeParser.parse(query.getJsonObject(\"range\").getString(\"from\"),\n query.getJsonObject(\"range\").getString(\"to\"));\n final long interval = intervalParser.parseToLong(query.getString(\"interval\"));\n final JsonArray targets = query.getJsonArray(\"targets\")\n .stream()\n .map(o -> ((JsonObject) o).getString(\"target\"))\n .collect(toJsonArray());\n\n //build the query and options\n final JsonObject tsQuery = $and(obj(\"n.begin\", $gte(range.getStart())),\n obj(\"n.begin\", $lte(range.getEnd())),\n obj(\"t.name\", $in(targets)));\n\n final FindOptions findOptions = new FindOptions().setFields(obj().put(\"t.name\", 1)\n .put(\"n.begin\", 1)\n .put(\"n.value\", 1)\n .put(\"_id\", 0)).setSort(obj(\"n.begin\", 1));\n\n long start = System.currentTimeMillis();\n //execute search and process response\n client.findWithOptions(collectionName, tsQuery, findOptions, result -> {\n\n if (result.succeeded()) {\n JsonArray resp = processResponse(range, r -> range.splitEvery(interval), targets, result);\n long end = System.currentTimeMillis();\n LOG.debug(\n \"Sending response with {} timeseries and {} datapoints (after {} ms)\",\n resp.size(),\n resp.stream()\n .map(o -> ((JsonObject) o).getJsonArray(\"datapoints\"))\n .collect(Collectors.summingInt(JsonArray::size)),\n (end - start));\n msg.reply(resp);\n\n } else {\n LOG.error(\"Annotation query failed\", result.cause());\n msg.reply(arr());\n }\n\n });\n }", "@WebMethod(\"borqsids\")\n public void queryContactBorqsIDMapping(QueryParams qp,ResponseWriter writer) throws AccountException{\n \tString ownerid = qp.checkGetString(\"oid\");\n\t\tString formated = qp.getString(\"formated\",null);\n\t\tString cols = qp.getString(\"cols\",null);\n\t\t\n\t\tif(null == ownerid) {\n\t\t\tWebLog.getLogger(mContext).info(\"lose 'oid' parameter!\");\n\t\t\ttry {\n\t\t\t\tResponseWriterUtil.writeStringJson(\"result\", \"{\\\"success\\\":\\\"false\\\", \\\"message\\\":\\\"lose oid parameter\\\"}\", writer);\n\t\t\t} catch (IOException e) {\n\t\t\t\tWebLog.getLogger(mContext).info(e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new AccountException(AccountErrorCode.UNKNOWN_ERROR, e);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// fetch mappings by owner\n\t\tConnection conn = mContext.getSqlConnection();\n\t\t\n\t\tIContactsMappingService service = null;\n\t\tList<ContactMapping> mappings = null;\n\t\ttry {\n\t\t\tIContactsMappingDao dao = new ContactsMappingDao(conn);\n\t\t\tservice = new ContactsMappingService(mContext, dao);\n\t\t\tmappings = service.fetchMappingByOID(ownerid);\n\t\t\t\n\t\t\t// convert to JSON\n\t\t\tString content = service.convertToJson(mappings, cols);\n\t\t\tif(\"false\".equals(formated)) {\n\t\t\t\tCharSequence newline = System.getProperty(\"line.separator\");\n\t\t\t\tcontent = content.replace(\" \", \"\").replace(newline, \"\");\n\t\t\t}\n\t\t\t\n\t\t\tResponseWriterUtil.writeObjectJson(content,writer);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tWebLog.getLogger(mContext).info(e.getMessage());\n\t\t\tthrow new AccountException(AccountErrorCode.UNKNOWN_ERROR, e);\n\t\t} finally {\n\t\t\tDBUtility.close(conn, null, null);\n\t\t}\n }", "public long insert(DcSquadDO dcSquad) throws DataAccessException;", "public SolrQueryResult query(Map<String, String> params) {\n SolrQuery query = new SolrQuery();\n\n /* enable facetting */\n query.setFacet(true);\n\n /* list of all filters; key: name to display, value: entity parameter */\n List<SolrQueryParameter> filter = new ArrayList<SolrQueryParameter>();\n\n /* list of partition filter */\n List<SolrQueryParameter> partitionFilter = new ArrayList<SolrQueryParameter>();\n\n /*\n * list of filter which have been set by the user (key = filtername, value =\n * list of selections)\n */\n Map<String, List<String>> activeFilterValues = new HashMap<String, List<String>>();\n\n /*\n * determine on which type is searched for (either 'Table' or 'Partition')\n */\n String typeFilterValue = params.get(TYPE);\n filter.add(new SolrQueryParameter(FILTER_TYPE, TYPE, FilterType.EXCLUSIVE, FacetSort.COUNT));\n if (typeFilterValue != null && typeFilterValue.equalsIgnoreCase(TYPE_PARTITION)) {\n typeFilterValue = TYPE_PARTITION;\n for (String parameter : metascopeParameterService.findDistinctParameters()) {\n partitionFilter.add(new SolrQueryParameter(\"Parameter: \" + parameter, parameter + \"_s\", FilterType.AND,\n FacetSort.INDEX));\n }\n for (SolrQueryParameter pFilter : partitionFilter) {\n query.addFacetField(pFilter.getName());\n query.add(\"f.\" + pFilter.getName() + \".facet.sort\", \"index\");\n String filterValue = params.get(pFilter.getName());\n if (filterValue != null && !filterValue.isEmpty()) {\n query.addFilterQuery(pFilter.getName() + \":\" + \"(\" + filterValue.replace(\",\", \" AND \") + \")\");\n }\n\n }\n } else {\n typeFilterValue = TYPE_TABLE;\n }\n query.addFilterQuery(\"{!tag=\" + TYPE + \"}\" + TYPE + \":\" + typeFilterValue);\n query.addFacetField(\"{!ex=\" + TYPE + \"}\" + TYPE);\n\n /* set solr search query parameter 'q' */\n String searchQueryValue = params.get(URLUtil.SEARCH_QUERY_PARAM);\n if (searchQueryValue == null || searchQueryValue.isEmpty()) {\n searchQueryValue = \"*\";\n query.setQuery(searchQueryValue);\n } else {\n String[] queryTerms = searchQueryValue.trim().split(\" \");\n String queryTerm = \"\";\n for (String term : queryTerms) {\n if (term.isEmpty()) {\n continue;\n }\n\n if (!queryTerm.isEmpty()) {\n queryTerm += \" AND \";\n }\n queryTerm += \"*\" + term + \"*\";\n }\n query.setQuery(queryTerm);\n query.setHighlight(true);\n query.setHighlightSimplePre(\"<b>\");\n query.setHighlightSimplePost(\"</b>\");\n query.setHighlightSnippets(100);\n query.set(\"hl.fl\", \"*\");\n }\n\n /* set the remaining filters */\n for (SolrQueryParameter queryFilter : facetFields) {\n filter.add(queryFilter);\n String value = params.get(queryFilter.getName());\n\n String filterQuery = \"\";\n String facetField = \"\";\n if (queryFilter.isExcludeFromFacet()) {\n if (value != null) {\n String[] multipleFilter = value.split(\",\");\n value = \"(\";\n for (int i = 0; i < multipleFilter.length; i++) {\n String filterValue = cleanseValue(multipleFilter[i]).replace(\" \", \"*\");\n value += \"(\" + filterValue + \")\";\n if (i < multipleFilter.length - 1) {\n value += \" \" + getOperator(queryFilter.getFilterType()) + \" \";\n }\n }\n value += \")\";\n }\n filterQuery = \"{!tag=\" + queryFilter.getName() + \"}\" + queryFilter.getName() + \":\" + value;\n facetField = \"{!ex=\" + queryFilter.getName() + \"}\" + queryFilter.getName();\n } else {\n if (value != null) {\n String[] multipleFilter = value.split(\",\");\n value = \"(\";\n for (int i = 0; i < multipleFilter.length; i++) {\n String filterValue = cleanseValue(multipleFilter[i]).replace(\" \", \"*\");\n value += \"(\" + filterValue + \")\";\n if (i < multipleFilter.length - 1) {\n value += \" \" + getOperator(queryFilter.getFilterType()) + \" \";\n }\n }\n value += \")\";\n }\n filterQuery = queryFilter.getName() + \":\" + value;\n facetField = queryFilter.getName();\n }\n\n if (value != null && !value.isEmpty()) {\n query.addFilterQuery(filterQuery);\n }\n query.addFacetField(facetField);\n\n if (queryFilter.getFacetSort().equals(FacetSort.INDEX)) {\n query.add(\"f.\" + queryFilter.getName() + \".facet.sort\", \"index\");\n }\n query.add(\"f.\" + queryFilter.getName() + \".facet.limit\", \"-1\");\n }\n\n /* set facet queries */\n Map<String, String> facetQueryMap = new HashMap<String, String>();\n long now = System.currentTimeMillis() / 1000;\n for (SolrFacetQuery solrFacetQuery : facetQueries) {\n for (SolrHourRange range : solrFacetQuery.getRanges()) {\n long from = range.getFrom() == Long.MAX_VALUE ? 0 : now - (range.getFrom() * 3600);\n String facetQueryString = solrFacetQuery.getName() + \":[\" + from + \" TO \" + now + \"]\";\n query.addFacetQuery(\"{!ex=\" + solrFacetQuery.getName() + \"}\" + facetQueryString);\n facetQueryMap.put(solrFacetQuery.getName() + range.getName(), facetQueryString);\n }\n String value = params.get(solrFacetQuery.getName());\n if (value != null) {\n String fq = \"{!tag=\" + solrFacetQuery.getName() + \"}\" + facetQueryMap.get(solrFacetQuery.getName() + value);\n query.addFilterQuery(fq);\n }\n }\n\n /* always sort the entities (for a deterministic view) */\n query.setSort(ID, ORDER.asc);\n\n /* set pagination information */\n int page = getPageParameter(params);\n int elements = getElementsParameter(params);\n query.setRows(elements);\n query.setStart((page - 1) * elements);\n\n /* execute the query */\n QueryResponse queryResponse = null;\n try {\n queryResponse = solrClient.query(query);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n SolrDocumentList list = queryResponse.getResults();\n\n /* get table / view entities from local repository */\n List<SolrQueryResultEntity> resultEntities = new LinkedList<SolrQueryResultEntity>();\n String resultType = \"\";\n for (SolrDocument solrDocument : list) {\n String id = (String) solrDocument.get(ID);\n\n if (typeFilterValue.equalsIgnoreCase(TYPE_PARTITION)) {\n if (!searchQueryValue.equals(\"*\")) {\n resultEntities.add(new SolrQueryResultEntity(metascopeViewService.findByViewId(id), queryResponse\n .getHighlighting().get(id)));\n } else {\n resultEntities.add(new SolrQueryResultEntity(metascopeViewService.findByViewId(id)));\n }\n resultType = TYPE_PARTITION;\n } else if (typeFilterValue.equalsIgnoreCase(TYPE_TABLE)) {\n if (!searchQueryValue.equals(\"*\")) {\n resultEntities.add(new SolrQueryResultEntity(metascopeTableService.findByFqdn(id), queryResponse\n .getHighlighting().get(id)));\n } else {\n resultEntities.add(new SolrQueryResultEntity(metascopeTableService.findByFqdn(id)));\n }\n }\n }\n if (resultType.isEmpty()) {\n resultType = TYPE_TABLE;\n }\n\n filter.addAll(partitionFilter);\n\n /* get the facet values and counts */\n Map<String, List<SolrFacet>> facetValues = new HashMap<String, List<SolrFacet>>();\n for (SolrQueryParameter f : filter) {\n if (!f.getName().equals(URLUtil.SEARCH_QUERY_PARAM)) {\n List<SolrFacet> values = new ArrayList<SolrFacet>();\n FacetField facet = queryResponse.getFacetField(f.getName());\n for (Count count : facet.getValues()) {\n values.add(new SolrFacet(count.getName(), count.getCount()));\n }\n facetValues.put(f.getName(), values);\n }\n }\n\n /* remove the type filter */\n filter.remove(0);\n\n for (SolrFacetQuery solrFacetQuery : facetQueries) {\n filter\n .add(new SolrQueryParameter(solrFacetQuery.getDisplayName(), solrFacetQuery.getName(), FilterType.EXCLUSIVE));\n List<SolrFacet> values = new ArrayList<SolrFacet>();\n for (SolrHourRange range : solrFacetQuery.getRanges()) {\n long facetQueryCount = getFacetQueryCount(queryResponse, \"{!ex=\" + solrFacetQuery.getName() + \"}\"\n + facetQueryMap.get(solrFacetQuery.getName() + range.getName()));\n values.add(new SolrFacet(range.getName(), facetQueryCount));\n }\n facetValues.put(solrFacetQuery.getName(), values);\n }\n\n /* get the active filter values which have been selected by the user */\n addToActiveFilterValues(activeFilterValues, params, filter);\n\n /* is a search query */\n boolean isSearchQuery = (searchQueryValue != null && !searchQueryValue.isEmpty() && !searchQueryValue.equals(\"*\"))\n || hasActiveFilters(activeFilterValues);\n\n\n /* build and return the result */\n SolrQueryResult result = new SolrQueryResult().withResultEntities(resultEntities).withResultType(resultType)\n .withFilters(filter).withFacetValues(facetValues).withActiveFilterValues(activeFilterValues)\n .withSearchQuery(searchQueryValue).withPage(page).withElements(elements)\n .withTotalPages((int) Math.ceil(((double) list.getNumFound()) / elements)).withTotalResults(list.getNumFound())\n .withIsSearchRequest(isSearchQuery);\n return result;\n }", "@Override\n\tpublic QueryResult<BookType> list(String start, String limit, String[] ands) {\n\t\treturn list(start, limit, ands, null, null);\n\t}", "private static SolrQuery getSolrQuery(OrganizationSearch4Solr request, int start, int end) {\n\t\tSolrQuery query = new SolrQuery();\r\n\t\tquery.setHighlight(true).setStart(start);\r\n query.setTermsLimit(500);\r\n query.setRows(20000);\r\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"wt\", \"json\");\r\n map.put(\"indent\", \"true\");\r\n StringBuilder queryPrams = new StringBuilder();\r\n queryPrams.append(\"{!q.op=OR}+isOutOfBusiness:false AND \");\r\n if (!StringUtils.isEmpty(request.getOrgId())) {\r\n \tqueryPrams.append(\"organizationId:\" + request.getOrgId() + \" AND \");\r\n }\r\n if (!StringUtils.isEmpty(request.getSiteinstanceId())) {\r\n \tqueryPrams.append(\"siteInstanceId:\" + request.getSiteinstanceId() + \" AND \");\r\n }\r\n List<String> orgIdList = request.getOrgIdList();\r\n if (orgIdList != null && orgIdList.size() > 0) {\r\n \tString idsString = \"+organizationId:(\";\r\n \tfor (String orgId : orgIdList) {\r\n \tidsString += orgId + \" \";\r\n\t\t\t}\r\n \tidsString = idsString.substring(0, idsString.length()-1) + \")\";\r\n \tqueryPrams.append(idsString + \" AND \");\r\n }\r\n if (!StringUtils.isEmpty(request.getTaxID())) {\r\n \tqueryPrams.append(\"taxIds:(\\\"\" + request.getTaxID() + \"\\\") AND \");\r\n }\r\n String orgName = request.getOrgName();\r\n if (!StringUtils.isEmpty(orgName)) {\r\n \torgName = \"(\"+ orgName +\")\";\r\n \t\t// LATIN\r\n \t\tqueryPrams.append(\"(+(organizationExtendedName:\" + orgName + \" \");\r\n \t\t// NOLATIN\r\n \t\tqueryPrams.append(\"organizationNonLatinExtendedName:\" + orgName + \" \");\r\n \t\t// ReportingName\r\n \t\tqueryPrams.append(\"organizationReportingName:\" + orgName + \" \");\r\n \t\t// LegalName\r\n \t\tqueryPrams.append(\"organizationLegalName:\" + orgName + \" \");\r\n \t\t// tradeName\r\n \t\tqueryPrams.append(\"tradeStyleNames:\" + orgName + \")) AND \");\r\n }\r\n String cityName = request.getCityName();\r\n if (!StringUtils.isEmpty(cityName)) {\r\n \t\t// LATIN\r\n \t\tqueryPrams.append(\"(+(latinCity:(\\\"\" + cityName + \"\\\") \");\r\n \t\t// NOLATIN\r\n \t\tqueryPrams.append(\"nonlatinCity:(\\\"\" + cityName + \"\\\"))) AND \");\r\n }\r\n if (!StringUtils.isEmpty(request.getPostalCode())) {\r\n queryPrams.append(\"postalCode:(\" + request.getPostalCode() + \"*) AND \");\r\n }\r\n if (!StringUtils.isEmpty(request.getCountryCode())) {\r\n queryPrams.append(\"countryCode:(\" + request.getCountryCode() + \") AND \");\r\n }\r\n String state = request.getStateProvinceName();\r\n if (!StringUtils.isEmpty(state)) {\r\n \tif(state.matches(\"\\\\p{ASCII}+\")){\r\n \t\t// LATIN\r\n queryPrams.append(\"state:(\\\"\" + state + \"\\\") AND \");\r\n \t}else{\r\n \t\t// NOLATIN\r\n queryPrams.append(\"state:(\\\"\" + state + \"\\\") AND \");\r\n \t}\r\n }\r\n\r\n queryPrams.append(\" *:* \");\r\n \r\n SolrParams params = new MapSolrParams(map);\r\n \r\n query.add(params);\r\n query.setQuery(queryPrams.toString());\r\n\t\treturn query;\r\n\t}", "CampusSearchQuery generateQuery();", "public void queryData() throws SolrServerException {\n\t\tfinal SolrQuery query = new SolrQuery(\"*:*\");\r\n\t\tquery.setRows(2000);\r\n\t\t// 5. Executes the query\r\n\t\tfinal QueryResponse response = client.query(query);\r\n\r\n\t\t/*\t\tassertEquals(1, response.getResults().getNumFound());*/\r\n\r\n\t\t// 6. Gets the (output) Data Transfer Object.\r\n\t\t\r\n\t\t\r\n\t\r\n\t\tif (response.getResults().iterator().hasNext())\r\n\t\t{\r\n\t\t\tfinal SolrDocument output = response.getResults().iterator().next();\r\n\t\t\tfinal String from = (String) output.getFieldValue(\"from\");\r\n\t\t\tfinal String to = (String) output.getFieldValue(\"to\");\r\n\t\t\tfinal String body = (String) output.getFieldValue(\"body\");\r\n\t\t\t// 7.1 In case we are running as a Java application print out the query results.\r\n\t\t\tSystem.out.println(\"It works! I found the following book: \");\r\n\t\t\tSystem.out.println(\"--------------------------------------\");\r\n\t\t\tSystem.out.println(\"ID: \" + from);\r\n\t\t\tSystem.out.println(\"Title: \" + to);\r\n\t\t\tSystem.out.println(\"Author: \" + body);\r\n\t\t}\r\n\t\t\r\n\t\tSolrDocumentList list = response.getResults();\r\n\t\tSystem.out.println(\"list size is: \" + list.size());\r\n\r\n\r\n\r\n\t\t/*\t\t// 7. Otherwise asserts the query results using standard JUnit procedures.\r\n\t\tassertEquals(\"1\", id);\r\n\t\tassertEquals(\"Apache SOLR Essentials\", title);\r\n\t\tassertEquals(\"Andrea Gazzarini\", author);\r\n\t\tassertEquals(\"972-2-5A619-12A-X\", isbn);*/\r\n\t}", "private String queryFormerFromStudent(String firstName, String lastName, String bcsYear) {\n String query = \"SELECT * FROM student WHERE \";\n\n if (firstName != null) {\n query = query + \"firstName = \\\"\" + firstName + \"\\\" AND \";\n }\n\n if (lastName != null) {\n query = query + \"lastName = \\\"\" + lastName + \"\\\" AND \";\n }\n\n if (bcsYear != null) {\n query = query + \"bcsYear = \\\"\" + bcsYear + \"\\\";\";\n }\n\n return query;\n }", "public void createQuery(String s) throws HibException;", "public String assembleGetObservationsQuery(Set<DataStream> dataStreams, Date minTimestamp, Date maxTimestamp) {\n\t\tString sqlQuery = null;\r\n\t\t\r\n\t\tString queryPrefix = \"SELECT * FROM observation\";\r\n\t\tString whereStr = \"\";\r\n\t\t\r\n\t\tSet<DataStream> localDataStreams = new HashSet<DataStream>();\r\n\t\tlocalDataStreams.addAll(dataStreams);\r\n\t\t\r\n\t\t// ~~~ sensorIds and phenomenon constraint ~~~\r\n\t\tIterator<DataStream> iterator = localDataStreams.iterator();\r\n\t\t\r\n\t\tif(iterator.hasNext()) { \r\n\t\t\t\r\n\t\t\twhereStr = \" WHERE \";\r\n\t\t\t\r\n\t\t\tDataStream ds = iterator.next();\r\n\t\t\t\r\n\t\t\twhereStr = whereStr + \"((procedure_id = '\" + ds.getSensorId() + \"'\";\r\n\t\t\t\r\n\t\t\tif(ds.getPhenomenon() != null)\r\n\t\t\t\twhereStr = whereStr + \" AND phenomenon_id='\" + ds.getPhenomenon() + \"')\";\r\n\t\t\t\r\n\t\t\twhile(iterator.hasNext()) {\r\n\t\t\t\t\r\n\t\t\t\tds = iterator.next();\r\n\t\t\t\t\r\n\t\t\t\twhereStr = whereStr + \" OR \" ;\r\n\t\t\t\t\r\n\t\t\t\twhereStr = whereStr + \"(procedure_id = '\" + ds.getSensorId() + \"'\";\r\n\t\t\t\t\r\n\t\t\t\tif(ds.getPhenomenon() != null)\r\n\t\t\t\t\twhereStr = whereStr + \" AND phenomenon_id='\" + ds.getPhenomenon() + \"')\";\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\twhereStr = whereStr + \")\";\r\n\t\t}\r\n\t\t\r\n\t\t// TODO: Supports only the same phenomenon for all sid. Do we want to support sensor streams with different phneomenon? \r\n\t\t// Phenomenon restriction\r\n\t\t//if (sensorStreamSet.size() > 0) {\r\n\t\t//\twhereStr = whereStr + \" AND phenomenon_id='\" + sensorStreamSet.iterator().next().getPhenomenon() + \"'\";\r\n\t\t//}\r\n\t\t\r\n\t\t// time constraint\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(DateTimeUtils.DATE_FORMAT);\r\n\t\t\t\r\n\t\tif(maxTimestamp != null)\r\n\t\t\twhereStr = whereStr + \" AND time_stamp <= TIMESTAMP WITH TIME ZONE '\" + sdf.format(maxTimestamp) + \"'\";\r\n\t\t\r\n\t\tif(minTimestamp != null) {\r\n\t\t\twhereStr = whereStr + \" AND time_stamp > TIMESTAMP WITH TIME ZONE '\" + sdf.format(minTimestamp) + \"'\"; \r\n\t\t}\r\n\t\t\r\n\t\tString querySuffix = \" ORDER BY time_stamp ASC\";\r\n\t\t\r\n\t\tsqlQuery = queryPrefix + whereStr + querySuffix;\r\n\t\t\r\n\t\treturn sqlQuery;\r\n\t}", "public static void query(String q) throws TwitterException, SQLException, ClassNotFoundException {\n\n\t\t//the search object returns a list of all the tweets from the query string q\n\t\tSearch newQuery = new Search(q);\n\t\t\n\t\tClass.forName(\"org.h2.Driver\");\n\t\tConnection conn = DriverManager.getConnection(DB, user, pass);\n\t\t\n\t\t//authentication allows a user to have up to 350 requests per hour over the normal 150\n\t\tTwitter a = OAuth.authenticate();\n\n\t\ttry {\n\t\t\tArrayList<Long> sid = new ArrayList<Long>();\n\t\t\tfor (Tweet tweets : newQuery.statusList) {\n\t\t\t\tlong statusID = tweets.getId();\n\t\t\t\t//this checks for redudant statuses then inserts new ones into the DB\n\t\t\t\tif (!(DB_Interface.exist_Status(statusID, conn))) {\n\t\t\t\t\tSystem.out.println(\"Preparin new insert of status \"\n\t\t\t\t\t\t\t+ statusID);\n\t\t\t\t\tsid.add(statusID);\n\t\t\t\t\t\n\t\t\t\t\t/* a.showStatus transforms a query tweet into a normal status this takes up a rate limit\n\t\t\t\t\t * this is a difficult problem to address because scraped tweets and streamed tweets are\n\t\t\t\t\t * formatted as a normal status, but only queried tweets are structured this way\n\t\t\t\t\t */\n\t\t\t\t\tDB_Interface.insertTweet(conn, a.showStatus(statusID));\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Status Already exists!!!!\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (JdbcSQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tconn.close();\n\n\t}", "private SeqIter query(final int db, final int qu) throws Exception {\r\n final int size = qressizes[db * nqueries + qu];\r\n final double qtime = qt[db * nqueries + qu];\r\n \r\n if(size == 0) return new SeqIter();\r\n \r\n // query and cache result\r\n final String que = XQM + \"for $i score $s in \" +\r\n queries.get(qu) + \" order by $s descending \" +\r\n \"return (basex:sum-path($i), $s, base-uri($i))\";\r\n \r\n final Process proc = new XQuery(que);\r\n final CachedOutput res = new CachedOutput();\r\n if(session.execute(proc)) session.output(res);\r\n \r\n final SeqIter sq = new SeqIter();\r\n final StringTokenizer st = new StringTokenizer(res.toString(), \" \");\r\n String lp = \"\";\r\n int z = 0;\r\n while(st.hasMoreTokens() && z < size) {\r\n qtimes[qu] += qtime;\r\n final String p = st.nextToken();\r\n if(!st.hasMoreTokens()) break;\r\n final String s = st.nextToken();\r\n if(!st.hasMoreTokens()) break;\r\n String uri = st.nextToken();\r\n //while(uri.indexOf(\".xml\") == -1) uri = st.nextToken();\r\n uri = uri.substring(uri.lastIndexOf('/') + 1);\r\n final String tmp = uri + \";\" + p;\r\n if(!lp.equals(tmp)) {\r\n final Str str = Str.get(token(uri + \";\" + p));\r\n str.score(Double.parseDouble(s));\r\n sq.add(str);\r\n lp = tmp;\r\n }\r\n z++;\r\n }\r\n \r\n Main.outln(\"Query % on %: %\", qu + 1, databases.get(db), qtime);\r\n return sq;\r\n }", "ZZW queryByHql(String hql,Map<String,Object> param);", "public static void queryTable(DynamoDbClient ddb) {\r\n String sqlStatement = \"SELECT * FROM MoviesPartiQ where year = ? ORDER BY year\";\r\n try {\r\n\r\n List<AttributeValue> parameters = new ArrayList<>();\r\n AttributeValue att1 = AttributeValue.builder()\r\n .n(String.valueOf(\"2013\"))\r\n .build();\r\n parameters.add(att1);\r\n\r\n // Get items in the table and write out the ID value.\r\n ExecuteStatementResponse response = executeStatementRequest(ddb, sqlStatement, parameters);\r\n System.out.println(\"ExecuteStatement successful: \"+ response.toString());\r\n\r\n } catch (DynamoDbException e) {\r\n System.err.println(e.getMessage());\r\n System.exit(1);\r\n }\r\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate CompoundQuery handleQuery() throws Exception{\n\t\tif (this.resultant != null && this.resultant.getResultsContainer() != null){\n\t\t\t//compoundQuery = (CompoundQuery) resultant.getAssociatedQuery();\n\t\t\tViewable view = newCompoundQuery.getAssociatedView();\n\t\t\tResultsContainer resultsContainer = this.resultant.getResultsContainer();\n\t\t\tsampleCrit = null;\n\t Collection sampleIDs = new ArrayList(); \n\t\t\t//Get the samples from the resultset object\n\t\t\tif(resultsContainer!= null){\n\t\t\t\tCollection samples = null;\n\t\t\t\tif(resultsContainer != null &&resultsContainer instanceof DimensionalViewContainer){\t\t\t\t\n\t\t\t\t\tDimensionalViewContainer dimensionalViewContainer = (DimensionalViewContainer)resultsContainer;\n\t\t\t\t\t\tCopyNumberSingleViewResultsContainer copyNumberSingleViewContainer = dimensionalViewContainer.getCopyNumberSingleViewContainer();\n\t\t\t\t\t\tGeneExprSingleViewResultsContainer geneExprSingleViewContainer = dimensionalViewContainer.getGeneExprSingleViewContainer();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(copyNumberSingleViewContainer!= null){\n\t\t\t\t\t\t\tSet<BioSpecimenIdentifierDE> biospecimenIDs = copyNumberSingleViewContainer.getAllBiospecimenLabels();\n\t\t\t\t \t\tfor (BioSpecimenIdentifierDE bioSpecimen: biospecimenIDs) {\n\t\t\t\t \t\t\tif(bioSpecimen.getSpecimenName()!= null){\n\t\t\t\t \t\t\t\tsampleIDs.add(new SampleIDDE(bioSpecimen.getSpecimenName()));\n\t\t\t\t \t\t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(geneExprSingleViewContainer!= null){\n\t\t\t\t\t\t\tSet<BioSpecimenIdentifierDE> biospecimenIDs = geneExprSingleViewContainer.getAllBiospecimenLabels();\n\t\t\t\t \t\tfor (BioSpecimenIdentifierDE bioSpecimen: biospecimenIDs) {\n\t\t\t\t \t\t\tif(bioSpecimen.getSpecimenName()!= null){\n\t\t\t\t \t\t\t\t\tsampleIDs.add(new SampleIDDE(bioSpecimen.getSpecimenName()));\n\t\t\t\t \t\t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t \t\tsampleCrit = new SampleCriteria();\n\t\t \t\t\tsampleCrit.setSampleIDs(sampleIDs);\n\n AddConstrainsToQueriesHelper constrainedSamplesHandler= new AddConstrainsToQueriesHelper();\n constrainedSamplesHandler.constrainQueryWithSamples(newCompoundQuery,sampleCrit);\n\t\t\t\tnewCompoundQuery = getShowAllValuesQuery(newCompoundQuery);\n\t\t\t\tnewCompoundQuery.setAssociatedView(view);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn newCompoundQuery;\n\t\t}", "WorldUps.UQuery getQueries(int index);", "public void query(String sql) throws SQLException {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(sql);\r\n\r\n while (rs.next()){\r\n System.out.println(rs.getInt(\"id\")+\" \"+rs.getString(\"name\")+\" \"+rs.getString(\"surname\")+\" \"+rs.getFloat(\"grade\"));\r\n }\r\n\r\n }", "@Override\n\t\tpublic String queryStudent(int no) throws RemoteException {\n\t\t\treturn queryString(no);\n\t\t}", "protected String buildQueryFromSelectAndQ(\n NewRelicCanaryScope canaryScope,\n NewRelicCanaryMetricSetQueryConfig queryConfig,\n NewRelicScopeConfiguration scopeConfiguration) {\n\n String select =\n queryConfig.getSelect().startsWith(\"SELECT\")\n ? queryConfig.getSelect()\n : \"SELECT \" + queryConfig.getSelect().trim();\n\n StringBuilder query = new StringBuilder(select);\n query.append(\" TIMESERIES \");\n\n if (canaryScope.getStep() == 0) {\n query.append(\"MAX\");\n } else {\n query.append(canaryScope.getStep());\n query.append(\" seconds\");\n }\n\n query.append(\" SINCE \");\n query.append(canaryScope.getStart().getEpochSecond());\n query.append(\" UNTIL \");\n query.append(canaryScope.getEnd().getEpochSecond());\n query.append(\" WHERE \");\n if (!StringUtils.isEmpty(queryConfig.getQ())) {\n query.append(queryConfig.getQ());\n query.append(\" AND \");\n }\n\n for (Map.Entry<String, String> extendedParam :\n canaryScope.getExtendedScopeParams().entrySet()) {\n if (extendedParam.getKey().startsWith(\"_\")) {\n continue;\n }\n query.append(extendedParam.getKey());\n query.append(\" LIKE \");\n query.append('\\'');\n query.append(extendedParam.getValue());\n query.append('\\'');\n query.append(\" AND \");\n }\n\n query.append(getScopeKey(canaryScope, scopeConfiguration));\n query.append(\" LIKE '\");\n query.append(canaryScope.getScope());\n query.append('\\'');\n\n getLocationKey(canaryScope, scopeConfiguration)\n .ifPresent(\n locationKey -> {\n query.append(\" AND \");\n query.append(locationKey);\n query.append(\" LIKE \");\n query.append('\\'');\n query.append(canaryScope.getLocation());\n query.append('\\'');\n });\n\n return query.toString();\n }", "public Collection<URI> searchWithSPARQL(final String queryString)\n {\n if (DEBUG.SEARCH) Log.debug(\"searchWithSPARQL; queryString:\\n\" + Util.tags(queryString));\n \n final Collection<URI> resultSet = new ArrayList<URI>();\n final com.hp.hpl.jena.query.Query query = QueryFactory.create(queryString);\n \n if (DEBUG.SEARCH) Log.debug(\"QF created \" + Util.tag(query)\n + \"; memory=\" + Runtime.getRuntime().freeMemory()\n + \"\\n\" + query.toString().trim().replaceAll(\"\\n\\n\", \"\\n\"));\n\n final QueryExecution qe = QueryExecutionFactory.create(query, this); // 2nd arg is for Model or for FileManager?\n if (DEBUG.SEARCH) Log.debug(\"created QEF \" + qe + \"; memory=\" + Runtime.getRuntime().freeMemory());\n\n final ResultSet results = qe.execSelect();\n if (DEBUG.SEARCH) Log.debug(\"execSelect returned; memory=\" + Runtime.getRuntime().freeMemory());\n \n while (results.hasNext()) {\n final QuerySolution qs = results.nextSolution();\n if (DEBUG.SEARCH) {\n final String qss = qs.toString().replaceAll(\"<http://vue.tufts.edu\", \"...\"); // shorten debug output\n Log.debug(\"qSol \" + String.format(\"%.190s%s\", qss, qss.length() > 190 ? (\"...x\"+qss.length()) : \"\"));\n }\n if (false) {\n // debug debug all vars from query\n //Util.dumpIterator(qs.varNames());\n Iterator<String> vn = qs.varNames(); \n while (vn.hasNext()) {\n String v = vn.next();\n Log.debug(\"\\t\" + Util.tags(v) + \"=\" + Util.tags(qs.get(v)));\n }\n }\n try {\n resultSet.add(new URI(qs.getResource(\"rid\").getURI()));\n } catch (Throwable t) {\n Log.warn(\"handling QuerySolution \" + qs, t);\n }\n }\n qe.close();\n return resultSet;\n }", "public List sqlQuery(String sql,Object... params);", "public interface DcSquadDAO {\n /**\n * Insert one <tt>DcSquadDO</tt> object to DB table <tt>dc_squad</tt>, return primary key\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>insert into dc_squad(squad_name,squad_desc,axiser,cubers,followers,investors,status,gmt_create,gmt_modify,attention) values (?, ?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?)</tt>\n *\n *\t@param dcSquad\n *\t@return long\n *\t@throws DataAccessException\n */\n public long insert(DcSquadDO dcSquad) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad</tt>\n *\n *\t@return List<DcSquadDO>\n *\t@throws DataAccessException\n */\n public List<DcSquadDO> load() throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where (id = ?)</tt>\n *\n *\t@param id\n *\t@return DcSquadDO\n *\t@throws DataAccessException\n */\n public DcSquadDO loadById(long id) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where (squad_name = ?)</tt>\n *\n *\t@param squadName\n *\t@return DcSquadDO\n *\t@throws DataAccessException\n */\n public DcSquadDO loadByName(String squadName) throws DataAccessException;\n\n /**\n * Update DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>update dc_squad set squad_name=?, squad_desc=?, axiser=?, cubers=?, followers=?, investors=?, status=?, gmt_modify=CURRENT_TIMESTAMP where (id = ?)</tt>\n *\n *\t@param dcSquad\n *\t@return int\n *\t@throws DataAccessException\n */\n public int update(DcSquadDO dcSquad) throws DataAccessException;\n\n /**\n * Delete records from DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>delete from dc_squad where (id = ?)</tt>\n *\n *\t@param id\n *\t@return int\n *\t@throws DataAccessException\n */\n public int deleteById(long id) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where ((squad_name = ?) AND (axiser = ?) AND (cubers = ?) AND (followers = ?) AND (investors = ?) AND (status = ?) AND (gmt_create = ?) AND (gmt_modify = ?))</tt>\n *\n *\t@param squadName\n *\t@param axiser\n *\t@param cubers\n *\t@param followers\n *\t@param investors\n *\t@param status\n *\t@param gmtCreate\n *\t@param gmtModify\n *\t@param pageSize\n *\t@param pageNum\n *\t@return PageList\n *\t@throws DataAccessException\n */\n public PageList query(String squadName, String axiser, String cubers, String followers,\n String investors, String status, Date gmtCreate, Date gmtModify,\n int pageSize, int pageNum) throws DataAccessException;\n\n /**\n * Update DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>update dc_squad set attention=? where (id = ?)</tt>\n *\n *\t@param attention\n *\t@param id\n *\t@return int\n *\t@throws DataAccessException\n */\n public int updateAttention(long attention, long id) throws DataAccessException;\n\n}", "private void getScholsFromDatabase() {\n schols = new Select().all().from(Scholarship.class).execute();\n }", "public PreparedQuery getQuery() {\n Query query = new Query(\"TrackedLocation\").addSort(\"cityName\", SortDirection.ASCENDING);\n return datastore.prepare(query);\n }", "private void buildQueryFilterTemporal(String dateField,\n String startDate,\n String endDate,\n boolean isDatesContainedChecked,\n String namedTimescale, \n String namedTimescaleQueryType,\n TermsList termsList\n ) \n \t\tthrows UnsupportedEncodingException {\n\t boolean endDateSpecified = false;\n\t boolean startDateSpecified = false;\n\t \n /* If the user specified a named time-scale query, search for it\n * in the \"timescale\" field.\n */\n if ((namedTimescale != null) && (!(namedTimescale.equals(\"\")))) {\n termsList.addTerm(namedTimescale);\n String parenthesizedValue = parenthesizeQueryValue(namedTimescale);\n String escapedValue = Search.escapeQueryChars(parenthesizedValue);\n String encodedValue = URLEncoder.encode(escapedValue, \"UTF-8\");\n String timescaleQuery = String.format(\"timescale:%s\", encodedValue);\n updateQString(timescaleQuery);\n }\n \n if ((startDate == null) || (startDate.equals(\"\"))) {\n \tstartDate = \"*\";\n }\n else {\n startDate = ISO8601Utility.formatTimestamp(startDate, \"DAY\");\n if (startDate != null) startDateSpecified = true;\n }\n\n if ((endDate == null) || (endDate.equals(\"\"))) {\n \tendDate = \"NOW\";\n }\n else {\n \tendDate = ISO8601Utility.formatTimestamp(endDate, \"DAY\");\n \tif (endDate != null) endDateSpecified = true;\n }\n\n validateDateRange(startDate, endDate);\n \n // If a start date or an end date was specified, search temporal coverage\n //\n if (startDateSpecified || endDateSpecified) {\n \tString temporalFilter = null;\n \tString collectionFilter = null;\n \tString pubDateFilter = null;\n \tString LEFT_BRACKET = \"%5B\";\n \tString RIGHT_BRACKET = \"%5D\";\n\n if (dateField.equals(\"ALL\") || dateField.equals(\"COLLECTION\")) {\n \t String singleDateQuery = String.format(\"singledate:%s%s+TO+%s%s\", LEFT_BRACKET, startDate, endDate, RIGHT_BRACKET);\n \t String startDateQuery = String.format(\"begindate:%s*+TO+%s%s\", LEFT_BRACKET, endDate, RIGHT_BRACKET);\n \t String endDateQuery = String.format(\"enddate:%s%s+TO+NOW%s\", LEFT_BRACKET, startDate, RIGHT_BRACKET);\n \t collectionFilter = String.format(\"(%s+OR+(%s+AND+%s))\", singleDateQuery, startDateQuery, endDateQuery);\n }\n \n if (dateField.equals(\"ALL\") || dateField.equals(\"PUBLICATION\")) {\n \t pubDateFilter = String.format(\"pubdate:%s%s+TO+%s%s\", LEFT_BRACKET, startDate, endDate, RIGHT_BRACKET);\n }\n \n if (dateField.equals(\"ALL\")) {\n \t temporalFilter = String.format(\"(%s+OR+%s)\", pubDateFilter, collectionFilter);\n }\n else if (dateField.equals(\"COLLECTION\")) {\n \t temporalFilter = collectionFilter;\n }\n else if (dateField.equals(\"PUBLICATION\")) {\n \t temporalFilter = pubDateFilter;\n }\n \n updateFQString(temporalFilter); \n }\n\n }", "private void querys() {\n\t try {\r\n\t\tBoxYieldRptFactory.getRemoteInstance().SteDate();\r\n\t } catch (EASBizException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t } catch (BOSException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}", "public void createSQLQuery(String s, String returnAlias, Class<?> returnClass)\n throws HibException;", "public ResultSet query(String sQLQuery) throws SQLException {\n\t Statement stmt = c.createStatement();\n\t ResultSet ret = stmt.executeQuery(sQLQuery);\n\t stmt.close();\n\t return ret;\n\t}", "@Override\n\tpublic void runRead(SolrDocument option, String time_field, long start, long end, Statistic stat, String... fq) {\n\t\tSystem.out.println(\"SolrReaderSingle\");\n\t\t\n\t\tSolrClient solr = new HttpSolrClient.Builder((String) option.get(\"solr_reader_url_s\")).build();\n\t\t\n\t\tString[] var_list = option.get(\"indexList_s\").toString().split(\"\\\\^\");\n\t\tSystem.out.println(option.get(\"indexList_s\").toString());\n\t\tSystem.out.println(var_list.length);\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t\t\n\t\tString query_field = option.get(\"query_field_s\").toString(); // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\tString value_field = option.get(\"value_field_s\").toString(); // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\tSystem.out.println(query_field + \" \" + value_field);\n\t\t\n\t\tlong interval = (long) option.get(\"interval_l\");\n\t\tlong gap = (long) option.get(\"gap_l\");\n\t\tint group_num = (int) (gap/interval);\n\t\t\n\t\tHashMap<String, ArrayList<ArrayList<Double>>> resource = new HashMap<String, ArrayList<ArrayList<Double>>>();\n\t\tfor (int i = 0; i < var_list.length; i++) {\n\t\t\tresource.put(var_list[i], new ArrayList<ArrayList<Double>>());\n\t\t\tfor (int j = 0; j < group_num; j++) {\n\t\t\t\tresource.get(var_list[i]).add(new ArrayList<Double>()); //+++++++++++++++++++++++++++++++++++++++++\n\t\t\t}\n\t\t}\n\t\t\n\t\tSolrQuery solrQuery = new SolrQuery();\n\t\tsolrQuery.setQuery(\"*:*\");\n\t\tString[] fq_list = new String[fq.length+1];\n\t\tfor (int j = 0; j < fq.length; j++) {\n\t\t\tfq_list[j] = fq[j];\n\t\t}\n\t\tfq_list[fq.length] = \"timestamp_l:[\" + start + \" TO \" + end + \"]\";\n\t\tsolrQuery.setFilterQueries(fq_list);\n\t\tsolrQuery.setRows(100000);\n\t\tsolrQuery.setSort(\"timestamp_l\", ORDER.asc);\n\t\tsolrQuery.setFields(query_field, value_field, \"timestamp_l\");\n\t\t\n\t\tqueryList = new ArrayList<String>();\n\t\tqueryMap = new HashMap<String, Integer>();\n\t\tqueryArray = new ArrayList<ArrayList<Double>>();\n\t\tfor (int i = 0; i < var_list.length; i++) {\n\t\t\tqueryList.add(var_list[i]);\n\t\t\tqueryMap.put(var_list[i], i);\n\t\t\tqueryArray.add(new ArrayList<Double>());\n\t\t}\n\t\t\n\t\tQueryResponse response = new QueryResponse();\n\t\tSolrDocumentList docs = new SolrDocumentList();\n\t\t\n\t\t\n\t\t\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tresponse = solr.query(solrQuery);\n\t\t\t\tbreak;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.print(\"ÍøÂçreadÒì³£\");\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tsolr.close();\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tdocs = response.getResults();\n\t\t\n\t\tSystem.out.println(\"Êý¾ÝÁ¿£º\"+docs.size());\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < docs.size(); i++) {\n\t\t\tString var = docs.get(i).get(query_field).toString();\n\t\t\tif (!queryMap.keySet().contains(var)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tlong timestamp_tmp = (long) docs.get(i).get(\"timestamp_l\");\n\t\t\tint x = (int) ((timestamp_tmp-start)/interval);\n\t\t\tdouble tmp_double = 0;\n\t\t\tif (docs.get(i).get(value_field) instanceof Double) {\n\t\t\t\ttmp_double = (Double) docs.get(i).get(value_field);\n\t\t\t} else if (docs.get(i).get(value_field) instanceof Float) {\n\t\t\t\ttmp_double = (Float) docs.get(i).get(value_field);\n\t\t\t} else if (docs.get(i).get(value_field) instanceof Integer) {\n\t\t\t\ttmp_double = (Integer) docs.get(i).get(value_field);\n\t\t\t} else if (docs.get(i).get(value_field) instanceof Long) {\n\t\t\t\ttmp_double = (Long) docs.get(i).get(value_field);\n\t\t\t} else if (docs.get(i).get(value_field) instanceof String){\n\t\t\t\ttry {\n\t\t\t\t\ttmp_double = Double.parseDouble((String) docs.get(i).get(value_field));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (x >= group_num) continue;\n\t\t\tresource.get(var).get(x).add(tmp_double);\n\t\t}\n\t\t\n\t\tfor (String it : queryMap.keySet()) {\n\t\t\tfor (int i = 0; i < group_num; i++) {\n\t\t\t\tqueryArray.get(queryMap.get(it)).add(stat.run(resource.get(it).get(i)));\n\t\t\t}\n\t\t}\n\t\t\n\t\tattrList = new String[var_list.length];\n\t\tfor (int i = 0; i < var_list.length; i++) {\n\t\t\tattrList[i] = \"_\" + (new Integer(i)).toString();\n\t\t}\n\t\t\n//\t\tWriteCSV writer = new WriteCSV();\n//\t\ttry {\n//\t\t\twriter.writeArrayCSV(queryArray, attrList, \".\", \"data.csv\");\n//\t\t} catch (IOException e) {\n//\t\t\t// TODO Auto-generated catch block\n//\t\t\te.printStackTrace();\n//\t\t}\n\t}", "private void queryForSelectedSession(String sessionId) {\r\n GetSessionQuery getSessionQuery = GetSessionQuery.builder().id(sessionId).build();\r\n awsAppSyncClient.query(getSessionQuery)\r\n .responseFetcher(AppSyncResponseFetchers.NETWORK_ONLY)\r\n .enqueue(getSessionCallBack);\r\n }", "public List findRecords(String informationType, String queryString) throws DatabaseException;", "protected StringBuilder generateQuery() {\n StringBuilder sb = new StringBuilder();\n sb.append(\" FROM \") \n .append(dao.getParameterClass(0).getName())\n .append(\" d WHERE (:incorrectEvent = '' OR d.incorrectEvent.id = :incorrectEvent) \")\n .append(\"AND (d.createDate BETWEEN :dateFrom AND :dateTo ) \")\n .append(\"AND ( ((:incorrectEvent ='' AND :incorrectEventName!='' AND UPPER(d.incorrectEvent.name) LIKE :incorrectEventName) \")\n .append(\" OR (:incorrectEvent ='' AND :incorrectEventName!='' AND UPPER(d.incorrectEvent.name) LIKE :incorrectEventName)) \")\n .append(\" OR (:search='' OR d.searchField LIKE :search) ) \");\n return sb;\n }", "public void executeQuery(String q) throws HiveQueryExecutionException;", "protected String buildDataQuery() {\n StringBuilder sql = new StringBuilder(\"select\");\n String delim = \" \";\n for (String vname : getColumnNames()) {\n sql.append(delim).append(vname);\n delim = \", \";\n }\n \n Element ncElement = getNetcdfElement();\n \n String table = ncElement.getAttributeValue(\"dbTable\");\n if (table == null) {\n String msg = \"No database table defined. Must set 'dbTable' attribute.\";\n _logger.error(msg);\n throw new TSSException(msg);\n }\n sql.append(\" from \" + table);\n \n String predicate = ncElement.getAttributeValue(\"predicate\");\n if (predicate != null) sql.append(\" where \" + predicate);\n \n //Order by time.\n String tname = getTimeVarName();\n sql.append(\" order by \"+tname+\" ASC\");\n \n return sql.toString();\n }", "public ResultSet getAlbumByRecording(int recording_id) throws SQLException {\n\t\tquery = \"SELECT a.*, p.name as artist FROM album a LEFT OUTER JOIN albumsrecordingsmap arm ON a.id=arm.album_id \"\n\t\t\t\t+ \"LEFT OUTER JOIN person p ON a.artist_id=p.id WHERE arm.recording_id=\" + recording_id + \" ORDER BY a.name\";\n\t\treturn stmt.executeQuery(query);\n\t}", "Query queryOn(Connection connection);", "public ResultSet query(String cql, Object ... values) {\n\t\tLog.v(LOG_TAG, \" Query: \" + cql);\n\t\tList<Object> cqlSafeValues = this.getCqlSafeValues(values);\n\t\ttry {\t\t\t\n\t\t\tPreparedStatement prepared = this.getSession().prepare(cql);\n\t\t\tBoundStatement boundStatement = new BoundStatement(prepared);\n\t\t\tResultSet results;\n\t\t\tif (cqlSafeValues.size() > 0) {\n\t\t\t\tresults = this.getSession().execute(boundStatement.bind(cqlSafeValues.toArray()));\n\t\t\t} else {\n\t\t\t\tresults = this.getSession().execute(boundStatement);\n\t\t\t}\n\t\t\treturn results;\n\t\t} catch (Exception e) {\n\t\t\tLog.e(LOG_TAG, e);\n\t\t\tthrow new DatastoreServiceException(e);\t\t\t\n\t\t}\t\t\n\t}", "private String buildSoqlQuery(String entityName, String selectQueryFragment, Date startDate, Date endDate) {\r\n\t\tStringBuilder completeQuery = new StringBuilder(\"\");\r\n\t\tcompleteQuery.append(selectQueryFragment);\r\n\t\tcompleteQuery.append(ConstantesBulkApi.ALL_ENTITIES_FROM_CLAUSE);\r\n\t\tcompleteQuery.append(entityName);\r\n\t\t\r\n\t\tswitch (entityName) {\r\n\t\t\tcase ConstantesBulkApi.ENTITY_ADDRESS:\r\n\t\t\t\tcompleteQuery.append(ConstantesBulkApi.ADDRESS_ENTITY_WHERE_CLAUSE);\r\n\t\t\t\tbreak;\r\n\t\t\tcase ConstantesBulkApi.ENTITY_REPEATED_CASES:\r\n\t\t\t\tcompleteQuery.append(ConstantesBulkApi.WITHOUT_COUNTRY_ENTITIES_WHERE_CLAUSE);\r\n\t\t\t\tbreak;\r\n\t\t\tcase ConstantesBulkApi.ENTITY_GROUP:\r\n\t\t\t\tcompleteQuery.append(ConstantesBulkApi.WITHOUT_COUNTRY_ENTITIES_WHERE_CLAUSE);\r\n\t\t\t\tbreak;\r\n\t\t\tcase ConstantesBulkApi.ENTITY_CASE_COMMENT:\r\n\t\t\t\tcompleteQuery.append(ConstantesBulkApi.CASE_COMMENT_ENTITY_WHERE_CLAUSE);\r\n\t\t\t\tbreak;\r\n\t\t\tcase ConstantesBulkApi.ENTITY_CASE_HISTORY:\r\n\t\t\t\tcompleteQuery.append(ConstantesBulkApi.CASE_HISTORY_ENTITY_WHERE_CLAUSE);\r\n\t\t\t\tbreak;\r\n\t\t\tcase ConstantesBulkApi.ENTITY_TASK:\r\n\t\t\t\tcompleteQuery.append(ConstantesBulkApi.TASK_ENTITY_WHERE_CLAUSE);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tcompleteQuery.append(ConstantesBulkApi.ALL_ENTITIES_BASIC_WHERE_CLAUSE);\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\tif (ConstantesBulkApi.ENTITY_CASE_HISTORY.equals(entityName)) {\r\n\t\t\tcompleteQuery.append(\"AND (\").append(ConstantesBulkApi.OBJECT_CREATED_DATE_WHERE_CLAUSE);\r\n\t\t} else if (ConstantesBulkApi.ENTITY_REPEATED_CASES.equals(entityName) || ConstantesBulkApi.ENTITY_GROUP.equals(entityName)) {\r\n\t\t\tcompleteQuery.append(\" (\").append(ConstantesBulkApi.OBJECT_LAST_MODIFIED_DATE_WHERE_CLAUSE);\r\n\t\t} else {\r\n\t\t\tcompleteQuery.append(\"AND (\").append(ConstantesBulkApi.OBJECT_LAST_MODIFIED_DATE_WHERE_CLAUSE);\r\n\t\t}\r\n \t\tcompleteQuery.append(\" >= \").append(Utils.parseDateToString(startDate));\r\n\t\tif (ConstantesBulkApi.ENTITY_CASE_HISTORY.equals(entityName)) {\r\n\t\t\tcompleteQuery.append(\" AND \").append(ConstantesBulkApi.OBJECT_CREATED_DATE_WHERE_CLAUSE);\r\n\t\t} else {\r\n\t\t\tcompleteQuery.append(\" AND \").append(ConstantesBulkApi.OBJECT_LAST_MODIFIED_DATE_WHERE_CLAUSE);\r\n\t\t}\r\n\t\tcompleteQuery.append(\" <= \").append(Utils.parseDateToString(endDate)).append(\")\");\r\n\t\tLOGGER.debug(\"Consulta a realizar: \" + completeQuery);\r\n\t\treturn completeQuery.toString();\r\n\t}", "private void searchSponsor() {\r\n String sponsorCode=null;\r\n try {\r\n CoeusSearch coeusSearch =\r\n new CoeusSearch(mdiForm, \"SPONSORSEARCH\",\r\n CoeusSearch.TWO_TABS_WITH_MULTIPLE_SELECTION );\r\n coeusSearch.showSearchWindow();\r\n javax.swing.JTable tblResultsTable = coeusSearch.getSearchResTable();\r\n if(tblResultsTable == null) return;\r\n int row = tblResultsTable.getSelectedRow();\r\n if(row!=-1){\r\n sponsorCode = (String)tblResultsTable.getValueAt(row, 0);\r\n sponsorCode = sponsorCode+\":\"+(String)tblResultsTable.getValueAt(row, 1);\r\n }else{\r\n CoeusOptionPane.showErrorDialog(\"Please select a Sponsor\");\r\n }\r\n } catch (Exception exception) {\r\n exception.printStackTrace();\r\n }\r\n int startRow = 0;\r\n TreePath root = new TreePath(sponsorHierarchyTree.getModel().getRoot());\r\n // Find the path (regardless of visibility) that matches the\r\n // specified sequence of names\r\n TreePath path = findByName(sponsorHierarchyTree, sponsorCode);\r\n if(path == null) {\r\n CoeusOptionPane.showInfoDialog(\"The sponsor:\"+sponsorCode.substring(0,sponsorCode.indexOf(\":\"))+\" is not found in this hierarchy.\");\r\n sponsorHierarchyTree.collapsePath(root);\r\n sponsorHierarchyTree.setSelectionPath(root);\r\n return;\r\n }\r\n sponsorHierarchyTree.expandPath(root);\r\n sponsorHierarchyTree.expandPath(path);\r\n sponsorHierarchyTree.setSelectionPath(path);\r\n sponsorHierarchyTree.scrollRowToVisible(sponsorHierarchyTree.getRowForPath(path));\r\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic List<ASScoredDocument> query(String indexName, String queryString, Map<String, String> additionalFields)\n\t\t\tthrows ASException {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic ArrayList<ArrayList<Value>> getResults(Value[] quad) throws IOException {\n\t\treturn null;\r\n\t}", "protected void runQuery()\n throws DavException {\n if (info.getDepth() == DEPTH_0)\n return;\n \n doQuery(resource, info.getDepth() == DEPTH_INFINITY);\n }", "@Override\n public ResultSet getResultsForAll(String onyen, String assignment, String type, String course, String section, String year, String season) throws SQLException {\n StringBuilder statement = new StringBuilder();\n int count = 0;\n statement.append(\"SELECT * FROM (\\n\");\n if (onyen != null && !onyen.isEmpty()) {\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE user_uid IN (SELECT uid FROM user WHERE onyen = ?))\");\n }\n if (assignment != null && !assignment.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE name = ?))\");\n }\n if (type != null && !type.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE assignment_type_id IN (SELECT id FROM assignment_type WHERE name = ?)))\");\n }\n if (course != null && !course.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE course_id IN (SELECT id FROM course WHERE name = ?)))\");\n }\n if (section != null && !section.isEmpty()) {\n count++;\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE course_id IN (SELECT id FROM course WHERE section = ?)))\");\n }\n if (year != null && !year.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE course_id IN (SELECT id FROM course WHERE term_id IN (SELECT id FROM term WHERE year = ?))))\");\n }\n if (season != null && !season.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE course_id IN (SELECT id FROM course WHERE term_id IN (SELECT id FROM term WHERE season = ?))))\");\n }\n if (count > 0) {\n statement.append(\")\\n AS result GROUP BY id HAVING count(*) = \").append(count);\n } else {\n statement.setLength(0);\n statement.append(\"SELECT * FROM result\");\n }\n statement.append(\"\\nORDER BY date DESC;\");\n //System.out.println(statement.toString());\n PreparedStatement pstmt = connection.prepareStatement(statement.toString());\n int i = 1;\n if (onyen != null && !onyen.isEmpty()) {\n pstmt.setString(i++, onyen);\n }\n if (assignment != null && !assignment.isEmpty()) {\n pstmt.setString(i++, assignment);\n }\n if (type != null && !type.isEmpty()) {\n pstmt.setString(i++, type);\n }\n if (course != null && !course.isEmpty()) {\n pstmt.setString(i++, course);\n }\n if (section != null && !section.isEmpty()) {\n pstmt.setInt(i++, Integer.parseInt(section));\n }\n if (year != null && !year.isEmpty()) {\n pstmt.setInt(i++, Integer.parseInt(year));\n }\n if (season != null && !season.isEmpty()) {\n pstmt.setString(i, season);\n }\n return pstmt.executeQuery();\n }", "@Override\n\tpublic List<Student> queryAll() {\n\t\treturn sDao.queryAll();\n\t}", "public void retriveSearchSaleDataFromDB(String search1,String search2, String selection) throws SQLException {\r\n\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n\r\n\r\n Character x = '\\'';\r\n String y = \"%\";\r\n ResultSet rs = null;\r\n ResultSet rs2 = null;\r\n\r\n String searchWord = x + y + search1 + y + x;\r\n String searchWord1 = x + search1 + x;\r\n String searchWord2 = x + search2 + x;\r\n\r\n\r\n try (Connection con = DBConnection.getconnection(); Statement stmt = con.createStatement()) {\r\n\r\n // selction of the SQL statment depending on RadioButton clicked by the user\r\n if (selection.equals(\"SaleNumber\")) {\r\n\r\n String SQL = \"SELECT * FROM Sales where Sales.SaleNumber>=\" + search1 + \" AND \" + \"Sales.SaleNumber<=\" + search2; // filters rows by Sale Number\r\n rs = stmt.executeQuery(SQL);\r\n\r\n\r\n } else if (selection.equals(\"dateSelected\")) {\r\n\r\n String SQL = \"SELECT * FROM Sales where Sales.Date between \" + searchWord1 + \" AND \" + searchWord2; // filters rows by selected date\r\n rs = stmt.executeQuery(SQL);\r\n\r\n\r\n } else if (selection.equals(\"customerName\")) {\r\n\r\n String SQL = \"SELECT * FROM Sales where Sales.Customer like \" + searchWord; // filters rows by typed Customer Name\r\n rs = stmt.executeQuery(SQL);\r\n } else if (selection.equals(\"productName\")) {\r\n\r\n String SQL = \"SELECT * FROM Sales where Sales.Product like \" + searchWord; // filters rows by typed Product Name\r\n rs = stmt.executeQuery(SQL);\r\n } else if (selection.equals(\"category\")) {\r\n\r\n String SQL = \"SELECT * FROM Sales where Sales.Category like \" + searchWord; // filters rows by typed Category\r\n rs = stmt.executeQuery(SQL);\r\n }\r\n\r\n while (rs.next()) {\r\n addSaleToTableList(new Sales(rs.getInt(\"SaleNumber\"), simpleDateFormat.format(rs.getDate(\"Date\")), rs.getString(\"Time\"), rs.getString(\"Customer\"),\r\n rs.getString(\"Product\"), rs.getString(\"Code\"), rs.getString(\"Size\"),\r\n rs.getString(\"Units\"), rs.getString(\"Category\"), rs.getString(\"Quantity\"), rs.getString(\"UnitPrice\"), rs.getString(\"SalePrice\")));\r\n\r\n }\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public void testUsingQueriesFromQueryManger(){\n\t\tSet<String> names = testDataMap.keySet();\n\t\tUtils.prtObMess(this.getClass(), \"atm query\");\n\t\tDseInputQuery<BigDecimal> atmq = \n\t\t\t\tqm.getQuery(new AtmDiot());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> bdResult = \n\t\t\t\tatmq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(bdResult);\n\n\t\tUtils.prtObMess(this.getClass(), \"vol query\");\n\t\tDseInputQuery<BigDecimal> volq = \n\t\t\t\tqm.getQuery(new VolDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> dbResult = \n\t\t\t\tvolq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(dbResult);\n\t\n\t\tUtils.prtObMess(this.getClass(), \"integer query\");\n\t\tDseInputQuery<BigDecimal> strikeq = \n\t\t\t\tqm.getQuery(new StrikeDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> strikeResult = \n\t\t\t\tstrikeq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(strikeResult);\n\t\n\t}", "private void spellSQL(SQLHelper sh,PosPrice posPrice)\n {\n if(posPrice != null){\n \tif(posPrice.getId()!= null){\n sh.appendSql(\" AND obj.id = ? \");\n sh.insertValue(posPrice.getId());\n }\n if(posPrice.getHotelGroupId()!= null){\n sh.appendSql(\" AND obj.hotelGroupId = ? \");\n sh.insertValue(posPrice.getHotelGroupId());\n }\n if(posPrice.getHotelId()!= null){\n sh.appendSql(\" AND obj.hotelId = ? \");\n sh.insertValue(posPrice.getHotelId());\n }\n if(posPrice.getPluCode()!= null){\n sh.appendSql(\" AND obj.pluCode = ? \");\n sh.insertValue(posPrice.getPluCode());\n }\n if(isNotNull(posPrice.getPccode())){\n sh.appendSql(\" AND obj.pccode = ? \");\n sh.insertValue(posPrice.getPccode().trim());\n }\n if(posPrice.getInumber()!= null){\n sh.appendSql(\" AND obj.inumber = ? \");\n sh.insertValue(posPrice.getInumber());\n }\n if(isNotNull(posPrice.getUnit())){\n sh.appendSql(\" AND obj.unit = ? \");\n sh.insertValue(posPrice.getUnit().trim());\n }\n if(posPrice.getPrice()!= null){\n sh.appendSql(\" AND obj.price = ? \");\n sh.insertValue(posPrice.getPrice());\n }\n if(posPrice.getCost()!= null){\n sh.appendSql(\" AND obj.cost = ? \");\n sh.insertValue(posPrice.getCost());\n }\n if(posPrice.getCostF()!= null){\n sh.appendSql(\" AND obj.costF = ? \");\n sh.insertValue(posPrice.getCostF());\n }\n if(isNotNull(posPrice.getBaseunit())){\n sh.appendSql(\" AND obj.baseunit = ? \");\n sh.insertValue(posPrice.getBaseunit().trim());\n }\n if(posPrice.getBasenumb()!= null){\n sh.appendSql(\" AND obj.basenumb = ? \");\n sh.insertValue(posPrice.getBasenumb());\n }\n if(isNotNull(posPrice.getFlag())){\n sh.appendSql(\" AND obj.flag = ? \");\n sh.insertValue(posPrice.getFlag().trim());\n }\n if(isNotNull(posPrice.getIsHalt())){\n sh.appendSql(\" AND obj.isHalt = ? \");\n sh.insertValue(posPrice.getIsHalt().trim());\n }\n if(posPrice.getListOrder()!= null){\n sh.appendSql(\" AND obj.listOrder = ? \");\n sh.insertValue(posPrice.getListOrder());\n }\n if(isNotNull(posPrice.getCodeType())){\n sh.appendSql(\" AND obj.codeType = ? \");\n sh.insertValue(posPrice.getCodeType().trim());\n }\n if(isNotNull(posPrice.getGroupCode())){\n sh.appendSql(\" AND obj.groupCode = ? \");\n sh.insertValue(posPrice.getGroupCode().trim());\n }\n if(isNotNull(posPrice.getIsGroup())){\n sh.appendSql(\" AND obj.isGroup = ? \");\n sh.insertValue(posPrice.getIsGroup().trim());\n }\n if(isNotNull(posPrice.getCreateUser())){\n sh.appendSql(\" AND obj.createUser = ? \");\n sh.insertValue(posPrice.getCreateUser().trim());\n }\n if(posPrice.getCreateDatetime()!= null){\n sh.appendSql(\" AND obj.createDatetime = ? \");\n sh.insertValue(posPrice.getCreateDatetime());\n }\n if(isNotNull(posPrice.getModifyUser())){\n sh.appendSql(\" AND obj.modifyUser = ? \");\n sh.insertValue(posPrice.getModifyUser().trim());\n }\n if(posPrice.getModifyDatetime()!= null){\n sh.appendSql(\" AND obj.modifyDatetime = ? \");\n sh.insertValue(posPrice.getModifyDatetime());\n }\n }\n }", "@Test\n public void test_singleRetrieve_withParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError unexpectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n recordMap = record.getRecord();\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertNotNull(recordMap);\n }", "private List<Object[]> executeWeekQuery(String week, String year) {\n try {\n //Clear all tables\n //################# Declared Harness Data #################### \n Helper.startSession();\n\n String query_str_1 = \"(SELECT \"\n + year + \" as year, \" + week + \" as week, 'Matin' as SHIFT, segment, workplace, harness_part, harness_index, supplier_part_number, harness_type, SUM(qty_read) as total_qty \"\n + \"FROM base_container bc \"\n + \"WHERE EXTRACT(HOUR FROM bc.closed_time) in (6,7,8,9,10,11,12,13) \"\n + \"AND EXTRACT(WEEK FROM bc.closed_time) = \" + week\n + \"AND EXTRACT(YEAR FROM bc.closed_time) = \" + year\n + \"GROUP BY segment, workplace, harness_part, harness_index, supplier_part_number, harness_type)\";\n\n String query_str_2 = \"(SELECT \"\n + year + \" as year, \" + week + \" as week, 'Soir' as SHIFT, segment, workplace, harness_part, harness_index, supplier_part_number, harness_type, SUM(qty_read) as total_qty \"\n + \"FROM base_container bc \"\n + \"WHERE EXTRACT(HOUR FROM bc.closed_time) in (14,15,16,17,18,19,20,21) \"\n + \"AND EXTRACT(WEEK FROM bc.closed_time) = \" + week\n + \"AND EXTRACT(YEAR FROM bc.closed_time) = \" + year\n + \"GROUP BY segment, workplace, harness_part, harness_index, supplier_part_number, harness_type)\";\n\n String query_str_3 = \"(SELECT \"\n + year + \" as year, \" + week + \" as week, 'Nuit' as SHIFT, segment, workplace, harness_part, harness_index, supplier_part_number, harness_type, SUM(qty_read) as total_qty \"\n + \"FROM base_container bc \"\n + \"WHERE EXTRACT(HOUR FROM bc.closed_time) in (22,23,0,1,2,3,4,5) \"\n + \"AND EXTRACT(WEEK FROM bc.closed_time) = \" + week\n + \"AND EXTRACT(YEAR FROM bc.closed_time) = \" + year\n + \"GROUP BY segment, workplace, harness_part, harness_index, supplier_part_number, harness_type)\";\n\n String query_str = \"SELECT * FROM (\"\n + query_str_1 + \" UNION \"\n + query_str_2 + \" UNION \"\n + query_str_3\n + \") results ORDER BY shift, segment, workplace;\";\n\n SQLQuery query = Helper.sess.createSQLQuery(query_str);\n\n this.dataResultList = query.list();\n\n Helper.sess.getTransaction().commit();\n\n return this.dataResultList;\n\n } catch (HibernateException e) {\n if (Helper.sess.getTransaction() != null) {\n Helper.sess.getTransaction().rollback();\n }\n }\n\n return this.dataResultList;\n }", "public abstract ResultList executeSQL(RawQuery rawQuery);", "public List<SubQueryDef> getSubQueries();", "private static StringBuilder generateSqlForSeries(IndexParams params) {\n \n StringBuilder sbSQL = new StringBuilder(\"SELECT ser.id\");\n sbSQL.append(SQL_COMMA_SPACE_QUOTE).append(SERIES).append(SQL_AS_VIDEO_TYPE);\n sbSQL.append(\", ser.title, ser.title_original AS originalTitle, ser.title_sort AS sortTitle\");\n sbSQL.append(\", ser.start_year AS videoYear, null as releaseDate\");\n sbSQL.append(\", ser.id AS seriesId, null AS seasonId, null AS season, -1 AS episode\");\n\t\tif (!params.getLibrary_item()) { sbSQL.append(\", null AS library_base \");}\n sbSQL.append(\", (SELECT min(vid.watched) from videodata vid,season sea where vid.season_id=sea.id and sea.series_id=ser.id) as watched\");\n sbSQL.append(\", ser.create_timestamp as createTimestamp \");\n sbSQL.append(DataItemTools.addSqlDataItems(params.getDataItems(), \"ser\"));\n\n if (params.checkNewest()) {\n String source = params.getNewestSource();\n if (LITERAL_CREATION.equalsIgnoreCase(source)) {\n sbSQL.append(\", ser.create_timestamp AS newest\");\n } else if (LITERAL_LASTSCAN.equalsIgnoreCase(source)) {\n sbSQL.append(\", ser.last_scanned AS newest\");\n } else {\n params.addParameter(LITERAL_EXTRA, Boolean.FALSE);\n\n sbSQL.append(\", (SELECT MAX(sf.file_date) FROM stage_file sf \");\n sbSQL.append(\"JOIN mediafile mf ON mf.id=sf.mediafile_id JOIN mediafile_videodata mv ON mv.mediafile_id=mf.id \");\n sbSQL.append(\"JOIN videodata vd ON mv.videodata_id=vd.id JOIN season sea ON sea.id=vd.season_id \");\n sbSQL.append(\"WHERE sea.series_id=ser.id AND sf.file_type\");\n sbSQL.append(SQL_SELECTABLE_VIDEOS);\n sbSQL.append(\"AND sf.status\");\n sbSQL.append(SQL_IGNORE_STATUS_SET);\n sbSQL.append(\"AND mf.extra=:extra) as newest \");\n }\n }\n\t\tif (params.getLibrary_item()) {\n\t\t\tsbSQL.append(\" ,l.base_directory as library_base from series_libraries sl join library l on l.id = sl.library_id join series ser on ser.id = sl.series_id WHERE 1=1\");\n }\n\t\telse {sbSQL.append(\" FROM series ser WHERE 1=1\");}\n \n\n if (params.getId() > 0L) {\n sbSQL.append(\" AND ser.id=\").append(params.getId());\n }\n\n if (params.includeYear()) {\n sbSQL.append(\" AND ser.start_year=\").append(params.getYear());\n } else if (params.excludeYear()) {\n sbSQL.append(\" AND ser.start_year!=\").append(params.getYear());\n }\n if (params.getYearStart() > 0) {\n sbSQL.append(\" AND ser.start_year>=\").append(params.getYearStart());\n }\n if (params.getYearEnd() > 0) {\n sbSQL.append(\" AND ser.start_year<=\").append(params.getYearEnd());\n }\n\n if (params.getWatched() != null) {\n sbSQL.append(\" AND exists\");\n sbSQL.append(\" (SELECT 1 FROM videodata v,season sea WHERE v.watched=\" );\n sbSQL.append(params.getWatched().booleanValue() ? \"1\" : \"0\");\n sbSQL.append(\" AND v.season_id=sea.id and sea.series_id=ser.id)\");\n }\n\n // check genre inclusion/exclusion\n includeOrExcludeGenre(SERIES, params, sbSQL);\n\n // check studio inclusion/exclusion\n includeOrExcludeStudio(SERIES, params, sbSQL);\n\t\t\n\t\t// check library inclusion/exclusion\n includeOrExcludeLibrary(SERIES, params, sbSQL);\n\n // check country inclusion/exclusion\n includeOrExcludeCountry(SERIES, params, sbSQL);\n\n // check certification inclusion/exclusion\n includeOrExcludeCertification(SERIES, params, sbSQL);\n\n // check award inclusion/exclusion\n includeOrExcludeAward(SERIES, params, sbSQL);\n\n // check video source inclusion/exclusion\n includeOrExcludeVideoSource(SERIES, params, sbSQL);\n\n // check resolution inclusion/exclusion\n includeOrExcludeResolution(SERIES, params, sbSQL);\n\n // check rating inclusion/exclusion\n includeOrExcludeRating(SERIES, params, sbSQL);\n\n // check boxed set inclusion/exclusion\n includeOrExcludeBoxedSet(SERIES, params, sbSQL);\n\n // check newest\n final String newestSource = params.getNewestSource();\n if (newestSource != null) {\n Date newestDate = params.getNewestDate();\n params.addParameter(LITERAL_NEWEST_DATE, newestDate);\n\n if (LITERAL_CREATION.equalsIgnoreCase(newestSource)) {\n if (params.includeNewest()) {\n sbSQL.append(\" AND ser.create_timestamp >= :newestDate\");\n } else {\n sbSQL.append(\" AND ser.create_timestamp < :newestDate\");\n }\n } else if (LITERAL_LASTSCAN.equalsIgnoreCase(newestSource)) {\n if (params.includeNewest()) {\n sbSQL.append(\" AND (ser.last_scanned is null or ser.last_scanned >= :newestDate)\");\n } else {\n sbSQL.append(\" AND ser.last_scanned is not null AND ser.last_scanned < :newestDate\");\n }\n } else {\n params.addParameter(LITERAL_EXTRA, Boolean.FALSE);\n \n addExistsOrNot(params.includeNewest(), sbSQL);\n sbSQL.append(\"SELECT 1 FROM stage_file sf JOIN mediafile mf ON mf.id=sf.mediafile_id \");\n sbSQL.append(\"JOIN mediafile_videodata mv ON mv.mediafile_id=mf.id JOIN videodata vd ON mv.videodata_id=vd.id \");\n sbSQL.append(\"JOIN season sea ON sea.id=vd.season_id WHERE sea.series_id=ser.id \");\n sbSQL.append(\"AND sf.file_type\");\n sbSQL.append(SQL_SELECTABLE_VIDEOS);\n sbSQL.append(\"AND sf.status\");\n sbSQL.append(SQL_IGNORE_STATUS_SET);\n sbSQL.append(\"AND mf.extra=:extra \");\n sbSQL.append(\"AND sf.file_date >= :newestDate)\");\n }\n }\n\n // add the search string, this will be empty if there is no search required\n return sbSQL.append(params.getSearchString(false));\n }", "java.util.List<WorldUps.UQuery> \n getQueriesList();", "public void customerQuery(){\n }", "private RunQueriesEx setupQueries() {\n RunQueriesEx queries = new RunQueriesEx();\n \n //for each column in our table, update one of our lists\n for(int i = 0; i < this.dataTable.getColumnCount(); i++) {\n this.updateList(i);\n }\n \n updateEmptyLists(); //pads any lists that didn't get updates with empty strings\n \n //add a new query for each row in the table\n for(int i = 0; i < this.dataTable.getRowCount(); i++) {\n queries.add(this.createQueryFromRow(i));\n }\n \n return queries;\n }", "public void generalSearch(Connection connection, LocalDate check_in, LocalDate check_out, int party_size, String city) throws SQLException {\n\n String sql = \"SELECT I.hotel_name, I.branch_ID, I.type, I.price FROM INFORMATION I, ROOM R, HOTEL_ADDRESS HA WHERE R.capacity >= ? AND HA.city = ? AND I.date_from >= to_date(?, 'YYYY-MM-DD') AND I.date_from <= to_date(?,'YYYY-MM-DD') GROUP BY I.date_from, I.date_to HAVING I.num_avail > 0\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setPartySize(party_size);\n pStmt.setInt(1, getPartySize());\n setCity(city);\n pStmt.setString(2, getCity());\n pStmt.setString(3, check_in.toString());\n pStmt.setString(4, check_out.toString());\n\n ResultSet rs = null;\n\n try {\n\n System.out.printf(\" Hotels available: \");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(rs.getString(1) + \" \" + rs.getInt(2) + \" \" + rs.getString(3) + \" \" + rs.getInt(4));\n }\n }\n catch (SQLException e) { e.printStackTrace(); }\n finally {\n pStmt.close();\n if (rs != null){\n rs.close();\n }\n }\n }", "public List<Record> _queryWholePatrolCard_Records(Long fid) {\n synchronized (this) {\n if (wholePatrolCard_RecordsQuery == null) {\n QueryBuilder<Record> queryBuilder = queryBuilder();\n queryBuilder.where(Properties.Fid.eq(null));\n wholePatrolCard_RecordsQuery = queryBuilder.build();\n }\n }\n Query<Record> query = wholePatrolCard_RecordsQuery.forCurrentThread();\n query.setParameter(0, fid);\n return query.list();\n }", "public ResultSet Brus(Long broker_id) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from broker where broker_id=\"+broker_id+\" \");\r\n\treturn rs;\r\n\t\r\n}", "protected void generateFromClause( WrqInfo wrqInfo, SQLStatementWithParams sqlStatement ) throws BindingException\n {\n sqlStatement.append(\" FROM \");\n WrqBindingSet bs = wrqInfo.getResultingBindingSet();\n resolvedBindingSets.addAll(bs.getResolvedBindingSets());\n sqlStatement.append(wrqInfo.getSQLSelectWithParams()); \n }", "public final void querySAX(String statementName, ContentHandler handler,\n\t\t\tAttributes atts, Object[] args) throws SQLException, SAXException {\n\t\tSQLStatement ss = this.getStatement(statementName);\n\t\tfinal Connection con = getConnection();\n\t\tPreparedStatement stmt = null;\n\t\ttry {\n\t\t\tstmt = ss.prepareStatement(con, args);\n\t\t\tDOMUtils.resultSet2ContentHandler(stmt.executeQuery(), handler,\n\t\t\t\t\tatts);\n\t\t} finally {\n\t\t\tif (stmt != null)\n\t\t\t\tstmt.close();\n\t\t\tif (con != null)\n\t\t\t\tcon.close();\n\t\t}\n\t}", "public int queryByOnsale(String shelfid,String goodsid) throws SQLException {\n\t\tint result = 0;\n\t\tif (shelfid == null||goodsid==null) {\n\t\t\treturn result;\n\t\t}\n\t\tString checkSql = \"select * from onsale where shelfid=? and goodsid=?\";\n\t\tString [] checkParam = { shelfid,goodsid };\n\t\trs = db.executeQuery(checkSql, checkParam);\n\t\tif (rs.next()) {\n\t\t\tresult = 1;\n\t\t}\n\t\treturn result;\n\t\t}", "public static ResultSet getSensor(String sensorName) {\n ResultSet rs = null;\n\n try (\n PreparedStatement stmt = conn.prepareStatement(SENSORSQL, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);) {\n stmt.setString(1, sensorName);\n\n rs = stmt.executeQuery();\n\n } catch (SQLException e) {\n System.err.println(e);\n System.out.println(\"Query 2 Issue!!\");\n }\n return rs;\n\n }", "@Override\n public List<BaseLog> query(String realname) {\n BaseLogExample example = new BaseLogExample();\n if(realname!=null){\n example.createCriteria().andRealnameLike(\"%\"+realname+\"%\");\n }\n List<BaseLog> list = baseLogMapper.selectByExample(example);\n return list;\n }", "public abstract DbQuery getQuery(String queryName);", "protected String generateSQL() {\n String fields = generateFieldsJSON();\n return String.format(QUERY_PATTERN, fields, esQuery.generateQuerySQL(), from, size);\n }" ]
[ "0.5621656", "0.56206053", "0.5186865", "0.512419", "0.51003045", "0.5048937", "0.50399095", "0.503568", "0.5017036", "0.50109655", "0.4992614", "0.49502835", "0.49199557", "0.49126667", "0.49050766", "0.48598242", "0.48537746", "0.4828967", "0.4824527", "0.48233896", "0.48101246", "0.47982213", "0.47859308", "0.47693062", "0.47576272", "0.47563708", "0.47449172", "0.47222036", "0.46936613", "0.46862242", "0.46815765", "0.46763337", "0.4674258", "0.4662948", "0.4660406", "0.4656949", "0.4652111", "0.46321538", "0.46308976", "0.4618471", "0.46172482", "0.46156922", "0.46074572", "0.46048227", "0.46005234", "0.45987898", "0.4597684", "0.45962372", "0.45946413", "0.45693555", "0.4567931", "0.4566884", "0.45645636", "0.4553744", "0.45496118", "0.4548371", "0.45476025", "0.4521369", "0.45115334", "0.45101348", "0.45071167", "0.45065007", "0.45051563", "0.45013082", "0.44973904", "0.44923744", "0.4475164", "0.4468821", "0.44679657", "0.44667682", "0.4450995", "0.44476113", "0.4432105", "0.44317603", "0.442503", "0.44208577", "0.4413629", "0.44109207", "0.44059297", "0.4402766", "0.43976223", "0.4397278", "0.43940458", "0.43931603", "0.43906835", "0.4374429", "0.43707597", "0.43694928", "0.4350819", "0.43460804", "0.43458903", "0.4341359", "0.43410987", "0.43377155", "0.43361813", "0.43309128", "0.4329438", "0.4325362", "0.43248335", "0.4323331" ]
0.6337679
0
Update DB table dc_squad. The sql statement for this operation is update dc_squad set attention=? where (id = ?)
public int updateAttention(long attention, long id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int update(DcSquadDO dcSquad) throws DataAccessException;", "void updateQuestion(String questionId, Question question) throws SQLException;", "public static void updateTableAnswers(int qid, String username, String a) {\n \ttry {\n \t\t\tint rs = Messages.connect().executeUpdate(\"UPDATE Answers SET Q_id = '\" + qid + \"', B_Username = '\" + username + \"', Answer = '\" \n \t\t\t\t\t+ a +\"' WHERE Q_id = '\" + qid + \"' AND B_Username = '\" + username + \"'\");\n \tMessages.connect().close();\n \t} catch (Exception e) {\n \te.printStackTrace();\n \t}\n\t\t}", "@Query(\"UPDATE wellbeing_questions SET question = :question, positive_message = :positiveMessage , negative_message = :negativeMessage WHERE wellbeing_questions.wellbeing_question_id = :id\")\n void updateQuestion(long id, String question, String positiveMessage, String negativeMessage);", "public void update(TdiaryArticle obj) throws SQLException {\n\r\n\t}", "int updateByPrimaryKey(ac_teacher_instrument record);", "int updateByPrimaryKey(RepStuLearning record);", "int updateByPrimaryKey(Nutrition record);", "public void update() {\n\t\tPreparedStatement stmt;\n\t\ttry {\n\t\t\tstmt = cn.prepareStatement(\n\t\t\t\t\t\"UPDATE Metal SET metalDissolvedBy = ?, molesOfAcidToDissolve = ? WHERE metalID = ?\");\n\t\t\tstmt.setInt(1, dissolvedBy);\n\t\t\tstmt.setDouble(2, molesOfAcidToDissolve);\n\t\t\tstmt.setInt(3, ID);\n\t\t\tstmt.execute();\n\t\t} catch (Exception e) {\n\t\t\tDatabaseException.detectError(e);\n\t\t}\n\t}", "void updateSkill(Skill skill);", "@Update(\"UPDATE patients SET first_name=#{firstName}, last_name=#{lastName}, PESEL=#{pesel}, \" +\n \"email=#{email}, phone_number=#{phoneNumber} WHERE id_patient=#{id}\")\n void updatePatient(Patient patient);", "Update withSku(Sku sku);", "public void updateAnswerStatistics(int sid,int qid,int a,int b,int c,int d);", "void update(int id, int teacherid, int noteid );", "@Override\n\tpublic void update(DomainEntity entity) throws SQLException {\n\t\t\n\t}", "@Update({\n \"update kd_user_medal\",\n \"set userid = #{userid,jdbcType=BIGINT},\",\n \"medalId = #{medalid,jdbcType=BIGINT},\",\n \"bindUserid = #{binduserid,jdbcType=BIGINT},\",\n \"remark = #{remark,jdbcType=VARCHAR},\",\n \"createTime = #{createtime,jdbcType=TIMESTAMP}\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n int updateByPrimaryKey(KDUserMedal record);", "public void updateSales(String date, String des, String rate, String qua,\n\t\t\tString amit, String id) {\n ContentValues up=new ContentValues();\n\t up.put(Sales_Date, date);\n\t up.put(Sales_Des, des);\n\t up.put(Sales_Rate, rate);\n\t up.put(Sales_Quan, qua);\n\t up.put(Sales_Amt, amit);\n\t \n\t\tourDatabase.update(DATABASE_TABLE2, up, Sales_Id+\" = \"+id, null);\n\t\t\n\t\t\n\t}", "public void updateStudent(int id,Student student) {\n\t\tQuery q=session.createQuery(\"update Student set name=:stname ,city=:stcity where id=:stid\"); \n\t\tq.setParameter(\"stname\",student.getName()); \n\t\tq.setParameter(\"stcity\",student.getCity()); \n\t\tq.setParameter(\"stid\",id); \n\t\t \n\t\tq.executeUpdate(); \n\t\t\n\t}", "public void update(Jiaqishenqing j) throws SQLException {\n JiaqishenqingDao dao = new JiaqishenqingDao();\n dao.update(j);\n }", "@Override\r\n\tpublic void update(AssesmentQuestion assesmentQuestion) {\r\n\r\n\t\tSession session = this.sessionFactory.getCurrentSession();\r\n\t\tTransaction trans = session.beginTransaction();\r\n\r\n\t\ttry {\r\n\t\t\tsession.update(assesmentQuestion);\r\n\t\t\ttrans.commit();\r\n\t\t} catch (HibernateException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic void updateSeatTable(seatTable st) {\n\t\t userdao.updateSeatTable(st);\n\t}", "int updateByPrimaryKeySelective(Nutrition record);", "public void update (int ID, String frist_name, String lastName, String nationality, \n int age, Date commingDate, Date checkOutDate){\n String qury = \"update customer\\n\" +\n \"set First_name = '\"+frist_name+\"', Last_name = '\"+lastName+\"', nationality = '\"+\n nationality+\"', age = \"+age+\", coming_date = '\"\n +commingDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate().plusDays(2)+\n \"', check_out_date = '\"+checkOutDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate().plusDays(2)+\"'\\n\" +\n \"where customer_id = \"+ID;\n try {\n statement.executeUpdate(qury);\n }catch (SQLException e)\n {\n e.printStackTrace();\n }finally{\n setQuery(DEFUALT_QUERY);\n }\n }", "public String updateContactStatement() {\n\t\treturn \"UPDATE CONTACTS SET (name, surname, title, address, city, \"\n\t\t\t\t+ \"province, postal_Code, region, country , company_Name, \"\n\t\t\t\t+ \"workstation, work_Phone, work_Extension, mobile_Phone, \"\n\t\t\t\t+ \"fax_Number, email, contact_type_id, notes) = (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) \" + \"WHERE id=?\";\n\n\t}", "@Override\r\n\tpublic void update() throws SQLException {\n\r\n\t}", "int updateByPrimaryKey(Drug_OutWarehouse record);", "public void update(Tiaoxiushenqing t) throws SQLException {\n\t\tTiaoxiushenqingDao dao = new TiaoxiushenqingDao();\n\t\tdao.update(t);\n\t}", "public void update(Triplet t) throws DAOException;", "int updateByPrimaryKey(Terms record);", "public void update(Teacher o) throws SQLException {\n\t\t\r\n\t}", "int updateByPrimaryKey(Dish record);", "public void updateforwadentry(String amit, String id) {\n\t\tContentValues up=new ContentValues();\n\t \n\t up.put(Sales_Amt, amit);\n\t \n\t\tourDatabase.update(DATABASE_TABLE5, up, Sales_Id+\" = \"+id, null);\n\t\t\t\n\t\t\n\t}", "@Override\n\tpublic void update(StockDataRecord bo) throws SQLException {\n\t\t\n\t}", "public void update(Expence expence)\r\n/* 169: */ {\r\n/* 170:174 */ this.expenceDao.update(expence);\r\n/* 171: */ }", "@Update(\"UPDATE student SET name = #{name}, gpa = #{gpa} WHERE npm = #{npm}\")\n\tvoid updateStudent(StudentModel student);", "int updateByPrimaryKey(Question record);", "int updateByPrimaryKey(Question record);", "int updateByPrimaryKey(Question record);", "int updateByPrimaryKey(Question record);", "int updateByPrimaryKey(Question record);", "DetalleMedicamentoSucursal update(DetalleMedicamentoSucursal update);", "int updateByPrimaryKeySelective(ac_teacher_instrument record);", "int updateByPrimaryKey(TCpySpouse record);", "@Override\n\tpublic void updateQA(QA qa) {\n\t\tqaDao.updateQAPost(qa);\n\t}", "@Override\n public void update(Seq s, String[] param) {\n // TODO Auto-generated method stub\n \tConnection conn = null;\n\t\tString url = \"jdbc:sqlite:src\\\\database\\\\AT2_Mobile.db\";\n\t\t\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(url);\n\t\t\tPreparedStatement myStmt; \n\t\t\tString query = \"update seq set identifier=?, seq_number=? where id = ?\";\n\t\t\tmyStmt = conn.prepareStatement(query);\n\t\t\t\n\t\t\t// Set Parameters\n\t\t\t\n\t myStmt.setString(1, param[0]);\n\t myStmt.setInt(2, Integer.parseInt(param[1]));\n\t myStmt.setInt(3, s.getId());\n\t\t\t// Execute SQL query\n\t int res = myStmt.executeUpdate();\n\t \n\t // Display the record inserted\n\t System.out.println(res + \" Seq updated\");\n\t \n\t // Close the connection\n\t conn.close();\n\t\t}catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());}\n\t\t\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif (conn != null) {\n\t\t\t\t\tconn.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tSystem.out.println(ex.getMessage());\n\t\t\t}\n\t\t\t}\n }", "private static void updateRecordToTable() throws SQLException {\n\n\t\tConnection dbConnection = null;\n\t\tPreparedStatement preparedStatement = null;\n \n Scanner scanner = new Scanner(System.in);\n \n System.out.print(\"Hoeveel punten: \");\n int punten = scanner.nextInt(); \n\n\t\tString updateTableSQL = \"UPDATE spelers SET punten = punten + ? \"\n\t\t\t\t + \" WHERE ID = ?\";\n\n\t\ttry {\n\t\t\tdbConnection = getDBConnection();\n\t\t\tpreparedStatement = dbConnection.prepareStatement(updateTableSQL);\n\n\t\t\t\n preparedStatement.setInt(1, punten);\n\t\t\tpreparedStatement.setInt(2, 1);\n\n\t\t\t// execute update SQL stetement\n\t\t\tpreparedStatement.executeUpdate();\n\n\t\t\tSystem.out.println(\"Record is updated to spelers table!\");\n\n\t\t} catch (SQLException e) {\n\n\t\t\tSystem.out.println(e.getMessage());\n\n\t\t} finally {\n\n\t\t\tif (preparedStatement != null) {\n\t\t\t\tpreparedStatement.close();\n\t\t\t}\n\n\t\t\t\n\n\t\t}\n\n\t}", "int updateByPrimaryKey(Assist_table record);", "int updateByPrimaryKey(R_dept_trade record);", "@Update(\"UPDATE patients SET id_firstcontact_doctor=#{newDoctorId} WHERE id_patient=#{patient.id}\")\n void updatePatientFirstcontactDoctor(@Param(\"patient\") Patient patient,\n @Param(\"newDoctorId\") int newDoctorId);", "int updateByPrimaryKey(SpecialCircumstance record);", "public int req(Long req_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update requested set status='processed',remark='bought fail' where reqid=\"+req_id+\"\");\t\r\n\treturn i;\r\n}", "public int Edbroker(Long broker_id, String firstname, String lastname,\r\n\t\tString address, String gender, String eMail, Long phone,\r\n\t\tString experience) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update broker set first_name='\"+firstname+\"',last_name='\"+lastname+\"',address='\"+address+\"',gender='\"+gender+\"',e_mail='\"+eMail+\"',phone=\"+phone+\",experience='\"+experience+\"' where broker_id=\"+broker_id+\"\");\r\n\treturn i;\r\n}", "CustomUpdateQuery update(String table);", "int updateByPrimaryKey(SPerms record);", "int updateByPrimaryKey(Depart record);", "int updateByPrimaryKeySelective(RepStuLearning record);", "int updateByPrimaryKey(QuestionOne record);", "public void updateCustomer(String name, String dob, String gender, String number, String email, String address, String password, Boolean promo, Integer reward) throws SQLException {\n st.executeUpdate(\"UPDATE IOTBAY.CUSTOMER SET \"\n + \"NAME ='\" + name \n + \"DATEOFBIRTH ='\" + dob \n + \"GENDER ='\" + gender \n + \"CONTACTNUMBER ='\" + number \n + \"BILLINGADDRESS ='\" + address \n + \"PASSWORD ='\" + password \n + \"PROMOTIONALNEWSLETTER ='\" + promo \n + \"', REWARDPOINTS='\" + reward \n + \"' WHERE EMAIL='\" + email + \"'\" );\n\n }", "int updateSellMediaByExample(SellMedia record, SellMediaExample example) throws SQLException;", "int updateSellMediaByPrimaryKey(SellMedia record) throws SQLException;", "int updateByPrimaryKey(Disease record);", "@Override\r\n\tpublic void update(Connection connection, Long id, Salary salary) throws SQLException {\n\r\n\t}", "public static void modifyPatient(String id,String title, String fname,String sname,String bd,String ph,String pl){\r\n\t\ttry{\r\n\t\t\t// this is how you connect\r\n\t\t\tconnection = DriverManager.getConnection(connectionString);\r\n\t\t\tstmt = connection.prepareStatement(\"UPDATE Patient SET Title =?, Forename=?,Surname=?,Birthdate=?,Phone=?, Plan=? WHERE ID=?;\");\r\n\t\t\tstmt.setString(1, title);\r\n\t\t\tstmt.setString(2, fname);\r\n\t\t\tstmt.setString(3, sname);\r\n\t\t\tstmt.setString(4, bd);\r\n\t\t\tstmt.setString(5, ph);\r\n\t\t\tstmt.setString(5, pl);\r\n\t\t\tstmt.setString(5, id);\r\n\t\t\tstmt.executeUpdate();\r\n\t\t}\r\n\t\tcatch (SQLException ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "public void update(Speaker speaker) {\n\t\tdao.update(speaker);\r\n\t}", "@Override\n\tpublic void update(FlashCardEntity flCardDetail) {\n\t\tString sql=\"UPDATE tbl_flashcard SET flcard_name=?,flcard_img=?,flctopic_id=?,flcard_question1=?,flcard_question2=? where flcard_id=?\";\t\t\n\t\t Update(sql, flCardDetail.getFlcard_name(),flCardDetail.getFlcard_img(),flCardDetail.getFlcard_question1(),flCardDetail.getFlcard_question2(),flCardDetail.getFlcard_id());\n\t\t\n\t}", "@Override\n\tpublic void updateTeachers(Professor ud) {\n\t\ttry{ \n\t\t\t\n\t\t\tstmt = conn.prepareStatement(\"UPDATE Professor set name=?,department=? where ssn=?\");\n\t\t\tstmt.setString(1, ud.getName());\n\t\t\tstmt.setString(2, ud.getDepartment());\n\t\t\tstmt.setString(3, ud.getSsn());\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t}catch(SQLException e){\n\t\t\tex=e;\n\t\t}finally{\n\t\t\tif(conn!=null){\n\t\t\t\ttry{\n\t\t\t\t\tconn.close();\n\t\t\t\t}catch(SQLException e){\n\t\t\t\t\tif(ex==null){\n\t\t\t\t\t\tex=e;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tif(ex!=null){\n\t\t\tthrow new RuntimeException(ex);\n\t\t}\n\t\t}\n\t}", "default void update(String catalogAlias, QuerySession querySession)\r\n {\r\n }", "AdPartner updateAdPartner(AdPartner adPartner);", "int updateByPrimaryKey(County record);", "int updateByPrimaryKey(Dress record);", "public PtJJdwcy update(PtJJdwcy entity);", "@Override\n\tpublic void update(Join j) {\n\t\tString sql = \"update Join set pwd = ?, name = ?, email = ? where id = ?\";\n\t\tPreparedStatement pstmt = null;\n\t\tSystem.out.println(\"dao\"+j.getId());\n\t\tSystem.out.println(\"dao\"+j.getPwd());\n\t\tSystem.out.println(\"dao\"+j.getName());\n\t\tSystem.out.println(\"dao\"+j.getEmail());\n\t\ttry {\n\t\t\tconn = dataSource.getConnection();\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tpstmt.setString(1, j.getPwd());\n\t\t\tpstmt.setString(2, j.getName());\n\t\t\tpstmt.setString(3, j.getEmail()); \n\t\t\tpstmt.setString(4, j.getId());\n\t\t\tpstmt.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tJdbcUtils.closeConnection(conn);\n\t\t} \n\t}", "public int updShare(Long cid, Long shareamt, String datee, Long noShare,Long sindex) throws Exception{\n\tint i=DbConnect.getStatement().executeUpdate(\"insert into share_details values(\"+cid+\",\"+noShare+\",\"+shareamt+\",'\"+datee+\"',\"+sindex+\")\");\r\n\treturn i;\r\n}", "int updateByPrimaryKey(Teacher record);", "int updateByPrimaryKey(CommonQuestionStrategyType record);", "@Override\n\tpublic void executeUpdateDinamicSQL(String s) throws Exception {\n\t\t\n\t}", "int updateByPrimaryKey(PcQualificationInfo record);", "@Update({\n \"update PURCHASE\",\n \"set SDATE = #{sdate,jdbcType=TIMESTAMP},\",\n \"STYPE = #{stype,jdbcType=VARCHAR},\",\n \"SMONEY = #{smoney,jdbcType=DECIMAL},\",\n \"TOUCHING = #{touching,jdbcType=VARCHAR},\",\n \"ACCOUNT = #{account,jdbcType=VARCHAR},\",\n \"CHECKSTATUS = #{checkstatus,jdbcType=DECIMAL},\",\n \"DEMO1 = #{demo1,jdbcType=DECIMAL},\",\n \"DEMO2 = #{demo2,jdbcType=VARCHAR},\",\n \"DEMO3 = #{demo3,jdbcType=DECIMAL}\",\n \"where ID = #{id,jdbcType=DECIMAL}\"\n })\n int updateByPrimaryKey(Purchase record);", "@Update({\n \"update SALEORDERDETAIL\",\n \"set MID = #{mid,jdbcType=VARCHAR},\",\n \"MNAME = #{mname,jdbcType=VARCHAR},\",\n \"STANDARD = #{standard,jdbcType=VARCHAR},\",\n \"UNITID = #{unitid,jdbcType=VARCHAR},\",\n \"UNITNAME = #{unitname,jdbcType=VARCHAR},\",\n \"NUM = #{num,jdbcType=DECIMAL},\",\n \"BEFOREDISCOUNT = #{beforediscount,jdbcType=DECIMAL},\",\n \"DISCOUNT = #{discount,jdbcType=DECIMAL},\",\n \"PRICE = #{price,jdbcType=DECIMAL},\",\n \"TOTALPRICE = #{totalprice,jdbcType=DECIMAL},\",\n \"TAXRATE = #{taxrate,jdbcType=DECIMAL},\",\n \"TOTALTAX = #{totaltax,jdbcType=DECIMAL},\",\n \"TOTALMONEY = #{totalmoney,jdbcType=DECIMAL},\",\n \"BEFOREOUT = #{beforeout,jdbcType=DECIMAL},\",\n \"ESTIMATEDATE = #{estimatedate,jdbcType=TIMESTAMP},\",\n \"LEFTNUM = #{leftnum,jdbcType=DECIMAL},\",\n \"ISGIFT = #{isgift,jdbcType=DECIMAL},\",\n \"FROMBILLTYPE = #{frombilltype,jdbcType=DECIMAL},\",\n \"FROMBILLID = #{frombillid,jdbcType=VARCHAR}\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n int updateByPrimaryKey(Saleorderdetail record);", "int updateByPrimaryKey(ScPartyMember record);", "int updateByPrimaryKeySelective(Drug_OutWarehouse record);", "int updateByPrimaryKey(AutoAssessDetail record);", "public void update(IEntity entity) throws SQLException;", "int updateByPrimaryKey(NjProductTaticsRelation record);", "private void updateEventAtCount(String postid,int newAttend){\n final String DB_NAME = \"testDB\";\n final String TABLE_NAME = \"EVENT\";\n try (Connection con = ConnectionTest.getConnection(DB_NAME);\n Statement stmt = con.createStatement();\n ) {\n String query = \"UPDATE \" + TABLE_NAME + \" SET eventAttendCount = \" +newAttend+ \" WHERE postID LIKE '\"+postid+\"'\";\n int r = stmt.executeUpdate(query);\n System.out.println(\"Update table \" + TABLE_NAME + \" executed successfully\");\n System.out.println(r + \" row(s) affected\");\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }", "@Override\n\tpublic void update(Feedback feedback) throws SQLException {\n\n\t\tPreparedStatement ps=conn.prepareStatement(\"UPDATE feedback\"\n\t\t\t\t+ \" SET descrizione=?, voto=? where id_feedback=?\");\n\t\tps.setString(1, feedback.getDescrizione());\n\t\tps.setInt(2, feedback.getVoto());\n\t\tps.setInt(3, feedback.getIdFeedback());\n\t\tint n = ps.executeUpdate();\n\t\tif(n==0)\n\t\t\tthrow new SQLException(\"feedback: \" + feedback.getIdFeedback()+ \" non presente\");\n\n\t}", "public int Edshare(Long cid, Long shareamt,String datee, Long shareno, Long sindex) throws SQLException,ClassNotFoundException{\n\tint i=DbConnect.getStatement().executeUpdate(\"update share_details set no_share=\"+shareno+\",shareprice=\"+shareamt+\",shareindex=\"+sindex+\" where comp_id=\"+cid+\" and DATEOFTRANS='\"+datee+\"'\");\r\n\treturn i;\r\n\t\r\n}", "int updateByPrimaryKey(TerminalInfo record);", "int updateByExample(BnesBrowsingHis record, BnesBrowsingHisExample example) throws SQLException;", "@Override\r\n\tpublic void updateCourse(Course c) {\n\t\t\r\n\t\tint cid1 = c.getCid();\r\n\t\ttry\r\n\t\t{\r\n\t\tConnection connection=DBConnection.getConnection();\r\n\t\tString sqlQuery=\"update \"+TABLECourse+\" set \"+COLcname+\" = ?, \"+COLduration+\" = ?, \"+COLfees+\"=? where \"+COLcid+\" =\"+cid1;\r\n\t\t\r\n\t\tPreparedStatement pst = connection.prepareStatement(sqlQuery);\r\n\t\tpst.setString(1, c.getCname());\r\n\t\tpst.setInt(2, c.getCduration());\r\n\t\tpst.setInt(3, c.getCfees());\r\n\t\t\r\n\t\tpst.executeUpdate();\r\n\r\n\t\t\r\n\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "int updateByPrimaryKey(HrMscChaAssig record);", "int updateByPrimaryKey(TResearchTeach record);", "public void updateStudentCOOP(StudentCOOP toUpdate) {\n openConnection();\n try {\n updateStudent = conn.prepareStatement(\"update app.studentcoop set firstname=?, lastname=?, gender=?, address=?,\"\n + \" contact=?, email=?, workemail=?, notes=?, subject=?, semestercompleted=?, mark=?, wam=?\");\n \n updateStudent.setString(1, toUpdate.getZID());\n updateStudent.setString(1, toUpdate.getFName());\n updateStudent.setString(2, toUpdate.getLName());\n updateStudent.setString(3, toUpdate.getGEnder());\n updateStudent.setString(4, toUpdate.getADdress());\n updateStudent.setInt(5, toUpdate.getCOntact());\n updateStudent.setString(6, toUpdate.getEMail());\n updateStudent.setString(7, toUpdate.getWOrkemail());\n updateStudent.setString(8, toUpdate.getNOtes());\n updateStudent.setString(9, toUpdate.getSUbject());\n updateStudent.setInt(10, toUpdate.getSEmestercompleted());\n updateStudent.setDouble(11, toUpdate.getMArk());\n updateStudent.setDouble(12, toUpdate.getWAm());\n\n updateStudent.executeUpdate();\n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n closeConnection();\n }", "int updateByPrimaryKey(PublicDoctorNotice record);", "public void update(RelacionConceptoEmbalajePk pk, RelacionConceptoEmbalaje dto) throws RelacionConceptoEmbalajeDaoException;", "public void update(RutaPk pk, Ruta dto) throws RutaDaoException;", "@Update({\n \"update cost_accounting_statistic_by_line_detail\",\n \"set statistic_code = #{statisticCode,jdbcType=BIGINT},\",\n \"periods = #{periods,jdbcType=INTEGER},\",\n \"line_code = #{lineCode,jdbcType=INTEGER},\",\n \"material_type = #{materialType,jdbcType=TINYINT},\",\n \"element_type = #{elementType,jdbcType=TINYINT},\",\n \"material_requisitions = #{materialRequisitions,jdbcType=REAL},\",\n \"current_goods_in_process = #{currentGoodsInProcess,jdbcType=REAL},\",\n \"last_goods_in_process = #{lastGoodsInProcess,jdbcType=REAL},\",\n \"product_storage = #{productStorage,jdbcType=REAL},\",\n \"intermediate_products_variation = #{intermediateProductsVariation,jdbcType=REAL},\",\n \"unit_consumption = #{unitConsumption,jdbcType=REAL}\",\n \"where code = #{code,jdbcType=BIGINT}\"\n })\n int updateByPrimaryKey(CostAccountingStatisticByLineDetail record);", "public static void update(Transcription t) throws IOException, SQLException\r\n {\r\n IndexWriter writer = null;\r\n Analyzer analyser;\r\n Directory directory;\r\n /**@TODO parameterize this location*/\r\n String dest = \"/usr/indexTranscriptions\";\r\n\r\n directory = FSDirectory.getDirectory(dest, true);\r\n analyser = new StandardAnalyzer();\r\n writer = new IndexWriter(directory, analyser, true);\r\n Term j=new Term(\"id\",\"\"+t.getLineID());\r\n writer.deleteDocuments(j);\r\n Document doc=new Document();\r\n Field field;\r\n field = new Field(\"text\", t.getText(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"comment\", t.getComment(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"creator\", \"\" + t.UID, Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"security\", \"\" + \"private\", Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"line\", \"\" + t.getLine(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"page\", \"\" + t.getFolio(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"id\", \"\" + t.getLineID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"manuscript\", \"\" + new Manuscript(t.getFolio()).getID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"projectID\", \"\" + t.getProjectID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n writer.addDocument(doc);\r\n writer.commit();\r\n \twriter.close();\r\n\r\n }", "@Override\r\n\tpublic void updateEncore(Encore encore) {\n\t\tint i = sqlSession.update(ns3+\".updateEncore\", encore);\r\n\t\tif(i>0) System.out.println(\"update encore table completed\");\r\n\t}", "public void update(long id, String name, String discipline, String grade) {\n SQLiteDatabase db = _openHelper.getWritableDatabase();\n if (db == null) {\n return;\n }\n ContentValues row = new ContentValues();\n row.put(\"name\", name);\n row.put(\"discipline\", discipline);\n row.put(\"grade\", grade);\n db.update(\"Exams\", row, \"_id = ?\", new String[] { String.valueOf(id) } );\n db.close();\n }" ]
[ "0.6741485", "0.6122585", "0.58718973", "0.57495236", "0.5747248", "0.57286775", "0.5719823", "0.56985545", "0.56827635", "0.56645155", "0.5651212", "0.56454206", "0.56236964", "0.56126195", "0.5601696", "0.5596061", "0.55810606", "0.55573", "0.5553123", "0.55368984", "0.5533179", "0.55177176", "0.5510587", "0.54992557", "0.5483121", "0.54799867", "0.5470708", "0.5465245", "0.54376245", "0.54339916", "0.5428098", "0.5423907", "0.5422909", "0.5420992", "0.5402673", "0.5391366", "0.5391366", "0.5391366", "0.5391366", "0.5391366", "0.53913003", "0.5390975", "0.5386824", "0.5383829", "0.5356393", "0.5356289", "0.5356204", "0.5352198", "0.53485376", "0.53439546", "0.5337666", "0.53364825", "0.5334429", "0.5330645", "0.5328471", "0.5316342", "0.53119874", "0.5302389", "0.52877676", "0.5287065", "0.5276997", "0.5271377", "0.52602315", "0.52592736", "0.52538604", "0.52500147", "0.52399397", "0.5239498", "0.52369535", "0.5235436", "0.52353853", "0.5234156", "0.52319354", "0.5229282", "0.5226447", "0.52199787", "0.52182704", "0.52179104", "0.5217569", "0.5205543", "0.52018625", "0.5196377", "0.51942873", "0.51920074", "0.51890934", "0.5183464", "0.5182956", "0.5181826", "0.5180995", "0.5178843", "0.5176186", "0.51759183", "0.5173937", "0.51704836", "0.51661015", "0.5165433", "0.51652086", "0.5156223", "0.51542056", "0.51522607" ]
0.6023868
2
/ access modifiers changed from: protected
public void onCreate(Bundle bundle) { super.onCreate(bundle); setContentView((int) R.layout.activity_webview); this.mWebView = (WebView) findViewById(R.id.web_view); this.mProgressBar = (ProgressBar) findViewById(R.id.progress_bar); this.mNoNetworkView = findViewById(R.id.no_network_view); this.mPdfUrl = getIntent().getStringExtra("pdf_url"); this.mWebView.getSettings().setJavaScriptEnabled(true); this.mWebView.loadUrl(String.format(GOOGLE_DOCS_PDF_VIEWER_BASE_URL, new Object[]{this.mPdfUrl})); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private abstract void privateabstract();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "protected void h() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected Doodler() {\n\t}", "public abstract void mo27386d();", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo27385c();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo30696a();", "abstract int pregnancy();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "private TMCourse() {\n\t}", "public abstract void mo35054b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected FanisamBato(){\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "public void gored() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Get() {}", "private Get() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo27464a();", "public abstract String mo41079d();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void mo102899a();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void method_4270() {}", "public abstract void mo6549b();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "protected void init() {\n // to override and use this method\n }" ]
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.6406691", "0.6402136", "0.6400287", "0.63977665", "0.63784796", "0.6373787", "0.63716805", "0.63680965", "0.6353791", "0.63344383", "0.6327005", "0.6327005", "0.63259363", "0.63079315", "0.6279023", "0.6271251", "0.62518364", "0.62254924", "0.62218183", "0.6213994", "0.6204108", "0.6195944", "0.61826825", "0.617686", "0.6158371", "0.6138765", "0.61224854", "0.6119267", "0.6119013", "0.61006695", "0.60922325", "0.60922325", "0.6086324", "0.6083917", "0.607071", "0.6070383", "0.6067458", "0.60568124", "0.6047576", "0.6047091", "0.60342956", "0.6031699", "0.6026248", "0.6019563", "0.60169774", "0.6014913", "0.6011912", "0.59969044", "0.59951806", "0.5994921", "0.599172", "0.59913194", "0.5985337", "0.59844744", "0.59678656", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.59647757", "0.59647757", "0.59616375", "0.5956373", "0.5952514", "0.59497356", "0.59454703", "0.5941018", "0.5934147", "0.5933801", "0.59318185", "0.5931161", "0.5929297", "0.5926942", "0.5925829", "0.5924853", "0.5923296", "0.5922199", "0.59202504", "0.5918595" ]
0.0
-1
/ Noargs constructor required by implementation.
public BackupFSArchiveCopy() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public Constructor(){\n\t\t\n\t}", "defaultConstructor(){}", "private Instantiation(){}", "protected abstract void construct();", "void DefaultConstructor(){}", "Constructor() {\r\n\t\t \r\n\t }", "public Implementor(){}", "public Method() {\n }", "Reproducible newInstance();", "public lo() {}", "public SgaexpedbultoImpl()\n {\n }", "private SingleObject()\r\n {\r\n }", "public Generic(){\n\t\tthis(null);\n\t}", "public Orbiter() {\n }", "MyEncodeableWithoutPublicNoArgConstructor() {}", "O() { super(null); }", "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "public Parser()\n {\n //nothing to do\n }", "public Self__1() {\n }", "public SpeakerSerivceImpl() {\n\t\tSystem.out.println(\"No args in constructor\");\n\t}", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private void __sep__Constructors__() {}", "public MethodEx2() {\n \n }", "@SuppressWarnings(\"unused\")\n public Item() {\n }", "public Clade() {}", "private SingleObject(){}", "public CyanSus() {\n\n }", "public AbstractCache() {\n }", "public Parser()\n{\n //nothing to do\n}", "private R() {\n\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "private Item(){}", "public AbstractRetriever() {\n }", "public CSSTidier() {\n\t}", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "public Component() {\n }", "public PSRelation()\n {\n }", "public Cable() {\r\n }", "public Instance() {\n }", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "public native void constructor();", "public AbstractT153()\n {\n }", "public Member() {}", "private Ex() {\n }", "public AbstractBinaryInteraction() {\n\n\t}", "public D() {}", "private Rekenhulp()\n\t{\n\t}", "public Chick() {\n\t}", "public PipelineImpl() {\n }", "public Basic() {}", "public static void copyConstructor(){\n\t}", "private Solution() {\n //constructor\n }", "public Pleasure() {\r\n\t\t}", "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "public XCanopusFactoryImpl()\r\n {\r\n super();\r\n }", "public Data() {}", "public Item(){}", "public Employee()\n\t{\n\t\tthis(\"(2)Invoke Employee's overload constructor\");\n\t\tSystem.out.println(\"(3)Employee's no-arg constructor is invoked\");\n\t}", "public Item() {}", "private ChainingMethods() {\n // private constructor\n\n }", "protected AbstractReadablePacket() {\n this.constructor = createConstructor();\n }", "private Connection() {\n \n }", "private Node() {\n\n }", "public Item() {\n\t}", "public Item() {\n\t}", "public Connection() {\n\t\t\n\t}", "private Converter()\n\t{\n\t\tsuper();\n\t}", "public Data() {\n }", "public Data() {\n }", "public AbstractT602()\n {\n }", "public Data() {\n \n }", "private Message(){\n // default constructor\n }", "protected Item() {\n }", "public Pitonyak_09_02() {\r\n }", "private SystemInfo() {\r\n // forbid object construction \r\n }", "@SuppressWarnings(\"unused\")\r\n private Rental() {\r\n }", "public Person() {\n\t\t\n\t}", "private ObjectFactory() { }", "public StackImpl() {\r\n\t\t\r\n\t}", "public Person() {}", "public StudentChoresAMImpl() {\n }", "public MystFactoryImpl()\r\n {\r\n super();\r\n }", "private CommonMethods() {\n }", "public Spec__1() {\n }", "private Composite() {\n }", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "private Utils()\n {\n // Private constructor to prevent instantiation\n }", "public StubPrivateConstructorPair() {\r\n this(null, null);\r\n }", "private MApi() {}", "DefaultConstructor(int a){}", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "public no() {}", "private NullSafe()\n {\n super();\n }", "protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }", "public ItsNatImpl()\r\n {\r\n }", "public Identity()\n {\n super( Fields.ARGS );\n }", "public Vector() {\n construct();\n }", "_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }" ]
[ "0.7720779", "0.75744766", "0.75275964", "0.7455605", "0.7404582", "0.73411703", "0.7330473", "0.73170227", "0.7253859", "0.71797395", "0.70438874", "0.7025639", "0.6958113", "0.6934802", "0.69342786", "0.69264615", "0.6925845", "0.68964326", "0.689057", "0.6885759", "0.6855664", "0.68549824", "0.6847686", "0.68392634", "0.6835937", "0.68290263", "0.682371", "0.6803996", "0.68003386", "0.67958486", "0.6791318", "0.67797077", "0.6773908", "0.6768673", "0.6762748", "0.6749229", "0.67477363", "0.6719967", "0.67184424", "0.67184", "0.67182624", "0.67145604", "0.6711676", "0.67083585", "0.67031527", "0.6702528", "0.66946536", "0.6692061", "0.66833913", "0.6681855", "0.66797876", "0.66714776", "0.66714245", "0.6667567", "0.66651756", "0.6659425", "0.6658376", "0.6656585", "0.66505593", "0.6648156", "0.6641563", "0.6627464", "0.6622022", "0.6611779", "0.6598802", "0.6592855", "0.6592855", "0.65904015", "0.6587111", "0.6583185", "0.6583185", "0.6572502", "0.65719837", "0.6570084", "0.65699226", "0.65651923", "0.65643704", "0.6558502", "0.6555553", "0.6551462", "0.65468216", "0.6544917", "0.6543759", "0.6543356", "0.6540644", "0.653699", "0.65364224", "0.65341014", "0.65313333", "0.6529792", "0.6529073", "0.6527391", "0.6527382", "0.6527343", "0.6526473", "0.6521356", "0.65200424", "0.6518346", "0.6518144", "0.65169054", "0.6516601" ]
0.0
-1
Note that the copy implementation can afford to be simple and not clean up on failure since a partially copied archiveURL file can never be part of the manifest. Such a partially copied file will typically be overwritten as the backup manager retries the copy and if it succeeds, it becomes part of the manifest. If the copy is abandoned, the archive pruning utility will eventually delete it and reclaim its storage.
@Override public byte[] copy(File localFile, URL archiveURL) throws InterruptedException, IOException { requireInitialized(); Objects.requireNonNull(localFile, "localFile arg must not be null"); Objects.requireNonNull(archiveURL, "archiveFile arg must not be null"); final MessageDigest messageDigest; try { messageDigest = MessageDigest.getInstance(checksumAlg); } catch (NoSuchAlgorithmException e) { /* Should not happen, already checked during initialization. */ throw new IllegalArgumentException("Bad checksum algorithm", e); } long length = localFile.length(); final File archiveFile = getFileFromURL(archiveURL); try (final FileInputStream inputStream = new FileInputStream(localFile); final FileOutputStream outputStream = new FileOutputStream(archiveFile, false)) { final ByteBuffer buffer = ByteBuffer.allocate(TRANSFER_BYTES); for (long bytes = length; bytes > 0;) { int readSize = (int)Math.min(TRANSFER_BYTES, bytes); int readBytes = inputStream.read(buffer.array(), 0, readSize); if (readBytes == -1) { throw new IOException("Premature EOF. Was expecting: " + readSize); } outputStream.write(buffer.array(), 0, readSize); messageDigest.update(buffer.array(), 0, readBytes); bytes -= readBytes; } } /* Ensure that the copy is persistent in the file system. */ /* Persist the file itself. */ BackupManager.forceFile(archiveFile.toPath()); /* Persist its directory entry. */ BackupManager.forceFile(archiveFile.getParentFile().toPath()); return messageDigest.digest(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BackupFSArchiveCopy() {\n super();\n }", "static FilePath copyJar( PrintStream log, FilePath dst, Class<?> representative, String seedName )\n {\n try\n {\n // in normal execution environment, the master should be loading 'representative' from this jar, so\n // in that way we can find it.\n File jar = Which.jarFile( representative );\n FilePath copiedJar = dst.child( seedName + \".jar\" );\n\n if ( jar.isDirectory() )\n {\n // but during the development and unit test environment, we may be picking the class up from the classes dir\n Zip zip = new Zip();\n zip.setBasedir( jar );\n File t = File.createTempFile( seedName, \"jar\" );\n t.delete();\n zip.setDestFile( t );\n zip.setProject( new Project() );\n zip.execute();\n jar = t;\n }\n else if ( copiedJar.exists() //\n && copiedJar.digest().equals( Util.getDigestOf( jar ) ) ) //\n // && copiedJar.lastModified() == jar.lastModified() )\n {\n log.println( seedName + \".jar already up to date\" );\n return copiedJar;\n }\n\n // Theoretically could be a race condition on a multi-executor Windows slave; symptom would be an IOException during the build.\n // Could perhaps be solved by synchronizing on dst.getChannel() or similar.\n new FilePath( jar ).copyTo( copiedJar );\n log.println( \"Copied \" + seedName + \".jar\" );\n return copiedJar;\n }\n catch ( IOException | InterruptedException e )\n {\n throw new RuntimeException( e.getMessage(), e);\n }\n }", "public boolean backupResource(File src) {\n File backup = new File(src.getParent() + \"/deleted/\" + src.getName());\r\n\r\n try {\r\n if (backup.exists()) {\r\n return true;\r\n }\r\n Files.copy(src.toPath(), backup.toPath());\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n\r\n return true;\r\n }", "public void copy(){\n\t\tFileInputStream is = null;\n\t\tFileOutputStream os = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(source);\n\t\t\tos = new FileOutputStream(dest);\n\t\t\tif(dest.exists())\n\t\t\t\tdest.delete();\n\t\t\tint i = -1;\n\t\t\twhile((i = is.read()) != -1)\n\t\t\t\tos.write(i);\n\t\t\tsource.deleteOnExit();\n\t\t} catch (IOException e) {\n\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t} finally {\n\t\t\tif(is != null)\n\t\t\t\ttry {\n\t\t\t\t\tis.close();\n\t\t\t\t} catch (IOException ignored) {}\n\t\t\tif(os != null)\n\t\t\t\ttry {\n\t\t\t\t\tos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t\t\t}\n\t\t}\n\t}", "@Override\r\n public void extractArchive(ArchiveExtractor decompressor) throws ArcException {\r\n\r\n\tString fileName = ManipString.substringAfterFirst(this.idSource, \"_\");\r\n\r\n\tboolean uncompressInProgress=false;\r\n\tFile dir = new File(this.archiveChargement + \".dir\");\r\n\tif (!dir.exists()) {\r\n\t\ttry {\r\n\t\t if (dir.mkdir())\r\n\t\t {\r\n\t\t \tStaticLoggerDispatcher.debug(LOGGER,\"$$\"+Thread.currentThread().getId()+\" is decompressing \"+dir.getAbsolutePath());\r\n\t\t \tdecompressor.extract(this.archiveChargement);\r\n\t\t \tuncompressInProgress=true;\r\n\t\t }\r\n\t\t}\r\n\t\t catch (Exception ex)\r\n\t\t{\r\n\t\t\t throw new ArcException(ex, ArcExceptionMessage.FILE_EXTRACT_FAILED, this.archiveChargement).logFullException();\r\n\t\t}\r\n\t}\r\n\t\r\n\tif (!uncompressInProgress) {\r\n\t\t\t// check if file exists\r\n\t File toRead = new File(dir + File.separator + ManipString.redoEntryName(fileName));\r\n\t while (!toRead.exists()) {\r\n\t \ttry {\r\n\t\t\t\tThread.sleep(MILLISECOND_UNCOMPRESSION_CHECK_INTERVAL);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tThread.currentThread().interrupt();\r\n\t\t\t StaticLoggerDispatcher.error(LOGGER, \"Error in thread sleep extractArchive()\");\r\n\t\t\t}\r\n\t \ttoRead = new File(dir + File.separator + ManipString.redoEntryName(fileName));\r\n\t }\r\n\t}\r\n\r\n\r\n\t\r\n }", "Permanent copyPermanent(Permanent copyFromPermanent, UUID copyToPermanentId, Ability source, CopyApplier applier);", "private static boolean backupAndCopyFile(File templateDir, File toDir, String filename) {\n File to = new File(toDir, filename);\n boolean rv = backupFile(to);\n File from = new File(templateDir, filename);\n boolean rv2 = WorkingDir.copyFile(from, to);\n return rv && rv2;\n }", "public com.amazon.s3.CopyObjectResponse copyObject(com.amazon.s3.CopyObject copyObject) throws AxisFault;", "private static void extractArchive(Path sourcePath, Path targetPath) throws IOException {\n\n // TODO: janv_capgemini check if sourcePath is an archive and throw exception if not\n FileSystem fs = FileSystems.newFileSystem(sourcePath, null);\n\n Path path = fs.getPath(\"/\");\n Files.walkFileTree(path, new SimpleFileVisitor<Path>() {\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n\n Path relativePath = path.relativize(file);\n Path targetPathResolved = targetPath.resolve(relativePath.toString());\n Files.deleteIfExists(targetPathResolved);\n Files.createDirectories(targetPathResolved.getParent());\n Files.copy(file, targetPathResolved);\n return FileVisitResult.CONTINUE;\n }\n\n @Override\n public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {\n\n // Log errors but do not throw an exception\n LOG.warn(\"An IOException occurred while reading a file on path {} with message: {}\", file, exc.getMessage());\n LOG.debug(\"An IOException occurred while reading a file on path {} with message: {}\", file,\n LOG.isDebugEnabled() ? exc : null);\n return FileVisitResult.CONTINUE;\n }\n });\n\n }", "public File extract (Path archivePath, File destination) throws IOException\n\t{\n\t\tif (!Files.isRegularFile (archivePath))\n\t\t\tthrow new IOException (archivePath + \" is not a regular file\");\n\t\t\n\t\tif (destination.isDirectory ())\n\t\t\tdestination = destination.toPath ()\n\t\t\t\t.resolve (\"./\" + archivePath.normalize ().toString ()).normalize ()\n\t\t\t\t.toFile ();\n\t\t\n\t\tFiles.createDirectories (destination.toPath ().getParent ());\n\t\tFiles.copy (archivePath, destination.toPath (), Utils.COPY_OPTION);\n\t\t\n\t\treturn destination;\n\t}", "@Override\n public void copyMetadata(URI destination) throws IOException {\n getFileIoProvider().nativeCopyFileUnbuffered(\n getVolume(), getMetaFile(), new File(destination), true);\n }", "public static synchronized void initializeArchiveFiles() {\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.initializeArchiveFiles\");\n File sourceFile = new File(System.getProperty(USER_DIR) + File.separator + \"QVCSEnterpriseServer.kbwb\");\n String firstDestinationDirName = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_PROJECTS_DIRECTORY\n + File.separator\n + getTestProjectName();\n File firstDestinationDirectory = new File(firstDestinationDirName);\n firstDestinationDirectory.mkdirs();\n File firstDestinationFile = new File(firstDestinationDirName + File.separator + \"QVCSEnterpriseServer.kbwb\");\n\n String secondDestinationDirName = firstDestinationDirName + File.separator + SUBPROJECT_DIR_NAME;\n File secondDestinationDirectory = new File(secondDestinationDirName);\n secondDestinationDirectory.mkdirs();\n File secondDestinationFile = new File(secondDestinationDirName + File.separator + \"QVCSEnterpriseServer.kbwb\");\n\n String thirdDestinationDirName = secondDestinationDirName + File.separator + SUBPROJECT2_DIR_NAME;\n File thirdDestinationDirectory = new File(thirdDestinationDirName);\n thirdDestinationDirectory.mkdirs();\n File thirdDestinationFile = new File(thirdDestinationDirName + File.separator + \"ThirdDirectoryFile.kbwb\");\n\n File fourthDestinationFile = new File(firstDestinationDirName + File.separator + \"Server.kbwb\");\n File fifthDestinationFile = new File(firstDestinationDirName + File.separator + \"AnotherServer.kbwb\");\n File sixthDestinationFile = new File(firstDestinationDirName + File.separator + \"ServerB.kbwb\");\n File seventhDestinationFile = new File(firstDestinationDirName + File.separator + \"ServerC.kbwb\");\n try {\n ServerUtility.copyFile(sourceFile, firstDestinationFile);\n ServerUtility.copyFile(sourceFile, secondDestinationFile);\n ServerUtility.copyFile(sourceFile, thirdDestinationFile);\n ServerUtility.copyFile(sourceFile, fourthDestinationFile);\n ServerUtility.copyFile(sourceFile, fifthDestinationFile);\n ServerUtility.copyFile(sourceFile, sixthDestinationFile);\n ServerUtility.copyFile(sourceFile, seventhDestinationFile);\n } catch (IOException ex) {\n Logger.getLogger(TestHelper.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "protected File copyURLToFile(String filename) throws IOException {\r\n\t\tURL deltaFileUrl = getClass().getResource(filename);\t\t\r\n\t\tFile tempFile = File.createTempFile(\"test\", \".dlt\");\r\n\t\t_tempFiles.add(tempFile);\r\n\t\tFileUtils.copyURLToFile(deltaFileUrl, tempFile);\t\t\r\n\t\treturn tempFile;\t\r\n\t}", "public void backup(String filename) throws IOException, RemoteException, Error;", "protected void copyArtifact(Artifact artifact, boolean removeVersion, boolean prependGroupId,\r\n\t\t\tboolean useBaseVersion, boolean removeClassifier) throws MojoExecutionException {\r\n\r\n\t\tString destFileName = DependencyUtil.getFormattedFileName(artifact, removeVersion, prependGroupId,\r\n\t\t\t\tuseBaseVersion, removeClassifier);\r\n\r\n\t\tFile destDir;\r\n\t\tdestDir = DependencyUtil.getFormattedOutputDirectory(useSubDirectoryPerScope, useSubDirectoryPerType,\r\n\t\t\t\tuseSubDirectoryPerArtifact, useRepositoryLayout, stripVersion, outputDirectory, artifact);\r\n\t\tFile destFile = new File(destDir, destFileName);\r\n\r\n\t\tcopyFile(artifact.getFile(), destFile);\r\n\t}", "protected void getJar(String urlString, File destination) throws BuildException {\n InputStream input = null;\n OutputStream output = null;\n try {\n URL url = new URL(urlString);\n input = new BufferedInputStream(url.openStream());\n output = new BufferedOutputStream(new FileOutputStream(destination));\n byte buffer[] = new byte[1024];\n int readCount;\n while ((readCount = input.read(buffer, 0, buffer.length)) != -1) {\n output.write(buffer, 0, readCount);\n }\n } catch (IOException e) {\n throw new BuildException(\"error getJar \\\"\" + urlString + \"\\\" into \\\"\" + destination.getName() + \"\\\"\", e);\n } finally {\n if (input != null) {try {input.close();} catch (IOException e) {}};\n input = null;\n if (output != null) {try {output.close();} catch (IOException e) {}};\n output = null;\n }\n }", "private boolean unarchive(String osSdkRoot, File archiveFile, SdkManager sdkManager, ITaskMonitor monitor) {\n boolean success = false;\n Package pkg = getParentPackage();\n String pkgName = pkg.getShortDescription();\n String pkgDesc = String.format(\"Installing %1$s\", pkgName);\n monitor.setDescription(pkgDesc);\n monitor.setResult(pkgDesc);\n String pkgKind = pkg.getClass().getSimpleName();\n File destFolder = null;\n File unzipDestFolder = null;\n File oldDestFolder = null;\n try {\n unzipDestFolder = createTempFolder(osSdkRoot, pkgKind, \"new\");\n if (unzipDestFolder == null) {\n monitor.setResult(\"Failed to find a temp directory in %1$s.\", osSdkRoot);\n return false;\n }\n if (!unzipDestFolder.mkdirs()) {\n monitor.setResult(\"Failed to create directory %1$s\", unzipDestFolder.getPath());\n return false;\n }\n String[] zipRootFolder = new String[] { null };\n if (!unzipFolder(archiveFile, getSize(), unzipDestFolder, pkgDesc, zipRootFolder, monitor)) {\n return false;\n }\n if (!generateSourceProperties(unzipDestFolder)) {\n return false;\n }\n destFolder = pkg.getInstallFolder(osSdkRoot, zipRootFolder[0], sdkManager);\n if (destFolder == null) {\n monitor.setResult(\"Failed to compute installation directory for %1$s.\", pkgName);\n return false;\n }\n if (!pkg.preInstallHook(this, monitor, osSdkRoot, destFolder)) {\n monitor.setResult(\"Skipping archive: %1$s\", pkgName);\n return false;\n }\n boolean move1done = false;\n boolean move2done = false;\n while (!move1done || !move2done) {\n File renameFailedForDir = null;\n if (!move1done) {\n if (destFolder.isDirectory()) {\n if (oldDestFolder == null) {\n oldDestFolder = createTempFolder(osSdkRoot, pkgKind, \"old\");\n }\n if (oldDestFolder == null) {\n monitor.setResult(\"Failed to find a temp directory in %1$s.\", osSdkRoot);\n return false;\n }\n if (!destFolder.renameTo(oldDestFolder)) {\n monitor.setResult(\"Failed to rename directory %1$s to %2$s.\", destFolder.getPath(), oldDestFolder.getPath());\n renameFailedForDir = destFolder;\n }\n }\n move1done = (renameFailedForDir == null);\n }\n if (move1done && !move2done) {\n if (renameFailedForDir == null && !unzipDestFolder.renameTo(destFolder)) {\n monitor.setResult(\"Failed to rename directory %1$s to %2$s\", unzipDestFolder.getPath(), destFolder.getPath());\n renameFailedForDir = unzipDestFolder;\n }\n move2done = (renameFailedForDir == null);\n }\n if (renameFailedForDir != null) {\n if (SdkConstants.CURRENT_PLATFORM == SdkConstants.PLATFORM_WINDOWS) {\n String msg = String.format(\"-= Warning ! =-\\n\" + \"A folder failed to be renamed or moved. On Windows this \" + \"typically means that a program is using that folder (for example \" + \"Windows Explorer or your anti-virus software.)\\n\" + \"Please momentarily deactivate your anti-virus software.\\n\" + \"Please also close any running programs that may be accessing \" + \"the directory '%1$s'.\\n\" + \"When ready, press YES to try again.\", renameFailedForDir.getPath());\n if (monitor.displayPrompt(\"SDK Manager: failed to install\", msg)) {\n continue;\n }\n }\n return false;\n }\n break;\n }\n unzipDestFolder = null;\n success = true;\n pkg.postInstallHook(this, monitor, destFolder);\n return true;\n } finally {\n deleteFileOrFolder(oldDestFolder);\n deleteFileOrFolder(unzipDestFolder);\n if (!success) {\n pkg.postInstallHook(this, monitor, null);\n }\n }\n }", "public void ExtractFileFromJar()\n\t{\n\t\tString thisDir = getClass().getResource(\"\").getPath();\n\t\t\n\t\tif(thisDir.contains(\"file:\")) //Mac system path\n\t\t\tthisDir= thisDir.replace(\"file:\", \"\");\n\t\telse //Windows system path \"/C:/\", we need to get rid of the first '/'\n\t\t\tthisDir= thisDir.substring(1);\n\t\t\n\t\t//System.out.println(\"thisDir is \"+thisDir);\n\t\tString jarPath = thisDir.replace(\"!/data/\", \"\"); //Get path of jar file\n\t\tint lastSlashIndex = jarPath.lastIndexOf(\"/\");\n\t\tjarFileName = new String(jarPath.substring(lastSlashIndex+1));\n\t\tdestDir = thisDir.replace(jarFileName+\"!/data/\", \"\"); //Set destDir as the current folder in which jar file sits\n\n\t\t//Find Jar file\n\t\ttry {\n\t\t\tFile jarFile = new File(jarPath);\n\t\t\tif (jarFile.isDirectory() || !jarFile.exists()) { //If we cant find jar File in this jarPath\n\t\t\t\t//In windows it is like this \"C:/Users/Esheen/Desktop/ConnChem_1.1.0/Simulation/data/\" \n\t\t\t\tFile newJarfile = new File(jarPath);\n\t\t\t\tString parent = newJarfile.getParentFile().getParent();\n\t\t\t\tparent = parent.concat(new String(\"\\\\\"+jarFileName));\n\t\t\t\t\n\t\t\t\tjarPath= new String(parent);\n\t\t\t\t\n\t\t\t} \n\t\t\tjava.util.jar.JarFile jar = new java.util.jar.JarFile(jarPath);\n\t\t\t\n\t\t\t//Unzip database from jar file\n\t\t\tZipEntry entry = jar.getEntry(\"data/chemdb\");\n\t\t\tFile outputFile = new File(destDir, dbFileName);\n\t\t\t\n\t\t\t\tif (entry.isDirectory()) { // if its a directory, create it\n\t\t\t\t\toutputFile.mkdir();\n\t\t\t\t}\n\t\t\t\tInputStream in = jar.getInputStream(entry);\n\t\t\t\tFileOutputStream fos = new java.io.FileOutputStream(outputFile);\n\t\t\t\twhile (in.available() > 0) { // write contents of 'is' to 'fos'\n\t\t\t\t\tfos.write(in.read());\n\t\t\t\t}\n\t\t\t\tfos.close();\n\t\t\t\tin.close();\n\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private boolean copyFile(File dest) {\n\t\tboolean result = false;\n\n\t\ttry {\n\t\t\tif (this.exists()) {\n\t\t\t\tif (!dest.exists()) dest.mkdirs();\n\t\t\t\t\n\t\t\t\tif (this.isDirectory() && dest.isDirectory()) {\n\t\t\t\t\tdest = new File(dest.getAbsolutePath().replace(\"\\\\\", \"/\") + \"/\" + this.getName());\n\t\t\t\t\tdest.mkdirs();\n\t\t\t\t\t\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (this.isFile() && dest.isDirectory()) {\n\t\t\t\t\tdest = new File(dest.getAbsolutePath().replace(\"\\\\\", \"/\") + \"/\" + this.getName());\n\t\t\t\t\tdest.createNewFile();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (this.isDirectory() && dest.isFile()) {\n\t\t\t\t\tdest = new File(dest.getParent().replace(\"\\\\\", \"/\") + \"/\" + this.getName());\n\t\t\t\t\tdest.mkdirs();\n\t\t\t\t\t\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (this.isFile() && dest.isFile()) {\n\t\t\t\t\tif (dest.exists()) {\n\t\t\t\t\t\tdest = new File(dest.getParent().replace(\"\\\\\", \"/\") + \"/\" + this.getName());\n\t\t\t\t\t\tdest.createNewFile();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (this.getName().equals(dest.getName())) {\n\t\t\t\t\t\t//targetFile.deleteOnExit();\n\t\t\t\t\t\t//targetFile = new File(targetFile.getAbsolutePath());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tBufferedInputStream inBuff = null;\n\t\t\t\tBufferedOutputStream outBuff = null;\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tinBuff = new BufferedInputStream(new FileInputStream(this));\n\t\t\t\t\toutBuff = new BufferedOutputStream(new FileOutputStream(dest));\n\n\t\t\t\t\tbyte[] b = new byte[1024 * 5];\n\t\t\t\t\tint length;\n\t\t\t\t\twhile ((length = inBuff.read(b)) != -1) {\n\t\t\t\t\t\toutBuff.write(b, 0, length);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\toutBuff.flush();\n\t\t\t\t\t\n\t\t\t\t\tresult = true;\n\t\t\t\t} catch(Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}finally{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (inBuff != null) inBuff.close();\n\t\t\t\t\t\tif (outBuff != null) outBuff.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public void unZip(String apkFile) throws Exception \r\n\t{\r\n\t\tLog.p(tag, apkFile);\r\n\t\tFile file = new File(apkFile);\r\n\t\r\n\t\t/*\r\n\t\t * Create the Base Directory, whose name should be same as Zip file name.\r\n\t\t * All decompressed contents will be placed under this folder.\r\n\t\t */\r\n\t\tString apkFileName = file.getName();\r\n\t\t\r\n\t\tif(apkFileName.indexOf('.') != -1)\r\n\t\t\tapkFileName = apkFileName.substring(0, apkFileName.indexOf('.'));\r\n\t\t\r\n\t\tLog.d(tag, \"Folder name: \"+ apkFileName);\r\n\t\t\r\n\t\tFile extractFolder = new File((file.getParent() == null ? \"\" : file.getParent() + File.separator) + apkFileName);\r\n\t\tif(!extractFolder.exists())\r\n\t\t\textractFolder.mkdir();\r\n\t\t\r\n\t\t/*\r\n\t\t * Read zip entries.\r\n\t\t */\r\n\t\tFileInputStream fin = new FileInputStream(apkFile);\r\n\t\tZipInputStream zin = new ZipInputStream(new BufferedInputStream(fin));\r\n\t\t\r\n\t\t/*\r\n\t\t * Zip InputStream shifts its index to every Zip entry when getNextEntry() is called.\r\n\t\t * If this method returns null, Zip InputStream reaches EOF.\r\n\t\t */\r\n\t\tZipEntry ze = null;\r\n\t\tBufferedOutputStream dest;\r\n\t\t\r\n\t\twhile((ze = zin.getNextEntry()) != null)\r\n\t\t{\r\n\t\t\tLog.d(tag, \"Zip entry: \" + ze.getName() + \" Size: \"+ ze.getSize());\r\n\t\t\t/*\r\n\t\t\t * Create decompressed file for each Zip entry. A Zip entry can be a file or directory.\r\n\t\t\t * ASSUMPTION: APK Zip entry uses Unix style File seperator- \"/\"\r\n\t\t\t * \r\n\t\t\t * 1. Create the prefix Zip Entry folder, if it is not yet available\r\n\t\t\t * 2. Create the individual Zip Entry file.\r\n\t\t\t */\r\n\t\t\tString zeName = ze.getName();\r\n\t\t\tString zeFolder = zeName;\r\n\t\t\t\r\n\t\t\tif(ze.isDirectory())\r\n\t\t\t{\r\n\t\t\t\tzeName = null; // Don't create Zip Entry file\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tif(zeName.indexOf(\"/\") == -1) // Zip entry uses \"/\"\r\n\t\t\t\t\tzeFolder = null; // It is File. don't create Zip entry Folder\r\n\t\t\t\telse {\r\n\t\t\t\t\tzeFolder = zeName.substring(0, zeName.lastIndexOf(\"/\"));\r\n\t\t\t\t\tzeName = zeName.substring( zeName.lastIndexOf(\"/\") + 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tLog.d(tag, \"zeFolder: \"+ zeFolder +\" zeName: \"+ zeName);\r\n\t\t\t\r\n\t\t\t// Create Zip Entry Folder\r\n\t\t\tFile zeFile = extractFolder;\r\n\t\t\tif(zeFolder != null)\r\n\t\t\t{\r\n\t\t\t\tzeFile = new File(extractFolder.getPath() + File.separator + zeFolder);\r\n\t\t\t\tif(!zeFile.exists())\r\n\t\t\t\t\tzeFile.mkdirs();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Create Zip Entry File\r\n\t\t\tif(zeName == null)\r\n\t\t\t\tcontinue;\r\n\t\t\t\r\n\t\t\t// Keep track of XML files, they are in Android Binary XML format\r\n\t\t\tif(zeName.endsWith(\".xml\"))\r\n\t\t\t\txmlFiles.add(zeFile.getPath() + File.separator + zeName);\r\n\t\t\t\r\n\t\t\t// Keep track of the Dex/ODex file. Need to convert to Jar\r\n\t\t\tif(zeName.endsWith(\".dex\") || zeName.endsWith(\".odex\"))\r\n\t\t\t\tdexFile = zeFile.getPath() + File.separator + zeName;\r\n\t\t\t\r\n\t\t\t// Keep track of Resources.arsc file- resources.arsc\r\n\t\t\tif(zeName.endsWith(\".arsc\"))\r\n\t\t\t\tresFile = zeFile.getPath() + File.separator + zeName;\r\n\t\t\t\r\n\t\t\t// Write Zip entry File to the disk\r\n\t\t\tint count;\r\n\t\t\tbyte data[] = new byte[BUFFER];\r\n\t\t\t\r\n\t\t\tFileOutputStream fos = new FileOutputStream(zeFile.getPath() + File.separator + zeName);\r\n\t\t\tdest = new BufferedOutputStream(fos, BUFFER);\r\n\r\n\t\t\twhile ((count = zin.read(data, 0, BUFFER)) != -1) \r\n\t\t\t{\r\n\t\t\t\tdest.write(data, 0, count);\r\n\t\t\t}\r\n\t\t\tdest.flush();\r\n\t\t\tdest.close();\r\n\t\t}\r\n\r\n\t\t// Close Zip InputStream\r\n\t\tzin.close();\r\n\t\tfin.close();\r\n\t}", "public URL extractArchiveURL( URL jarUrl ) throws MalformedURLException {\n\n\t\tString urlFile = jarUrl.getFile();\n\n\t\tint endIndex = urlFile.indexOf( URL_SEPARATOR_WAR );\n\t\tif( endIndex != -1 ) {\n\t\t\t// Tomcat's \"war:file:...mywar.war*/WEB-INF/lib/myjar.jar!/myentry.txt\"\n\t\t\tString warFile = urlFile.substring(0, endIndex);\n\t\t\tif (URL_PROTOCOL_WAR.equals(jarUrl.getProtocol())) {\n\t\t\t\treturn new URL(warFile);\n\t\t\t}\n\t\t\tint startIndex = warFile.indexOf( URL_PREFIX_WAR );\n\t\t\tif (startIndex != -1) {\n\t\t\t\treturn new URL(warFile.substring(startIndex + URL_PREFIX_WAR.length()));\n\t\t\t}\n\t\t}\n\n\t\t// Regular \"jar:file:...myjar.jar!/myentry.txt\"\n\t\treturn extractJarFileURL(jarUrl);\n\n\t}", "protected abstract boolean copyCheckedFiles();", "private boolean extractSettingsZip(File fSettingsZip, String destDir, int index)\n {\n boolean result = false;\n try\n {\n //m_logWriter.write(\"Unzipping to destination: \"+destDir+\"\\n\");\n //m_logWriter.flush();\n \tboolean backFavFile = false;\n \tFile dest = new File(destDir);\n \tif (dest.exists()) {\n \t\tString userPath = destDir + \"/userdata/\";\n \t\tFile userFile = new File(userPath);\n \t\tString favDir = userPath + Update.FavouriteFile;\n \t\tFile favFile = new File(favDir);\n \t\tif (userFile.exists() && favFile.exists()) {\n \t\t\tCopyFile(userPath, Update.FavouriteFile, Update.pathSD);\n \t\t\tbackFavFile = true;\n \t\t}\n \t\t\n \t\tDeleteDir(destDir);\n \t}\n \telse\n \t\tdest.mkdirs();\n \t\n publishProgress(PROGRESS_EXTRACT, (int)(0.5 * index));\n // open the zip\n ZipFile zip = new ZipFile(fSettingsZip);\n int count=0;\n int zipSize = zip.size();\n Enumeration<? extends ZipEntry> entries = zip.entries();\n //while(entries.hasMoreElements())\n while (true)\n {\n if (isCancelled()) {\n \tresult = false;\n \tm_ErrorCode = 4;\n break;\n }\n\n if (m_DownloadStop)\n \tcontinue;\n \n if (!entries.hasMoreElements())\n \tbreak;\n \n // todo: update progress\n ZipEntry ze = (ZipEntry)entries.nextElement();\n count++;\n String entryName = ze.getName();\n String destFullpath = destDir+\"/\"+entryName;\n //m_logWriter.write(\"Extracting: \"+destFullpath+\"\\n\");\n File fDestPath = new File(destFullpath);\n if (ze.isDirectory())\n {\n fDestPath.mkdirs();\n publishProgress(PROGRESS_EXTRACT, (int)(0.5 * (index + count*100/zipSize)));\n continue;\n }\n fDestPath.getParentFile().mkdirs();\n\n // write file\n try {\n InputStream is = zip.getInputStream(ze);\n BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(destFullpath));\n int n=0;\n byte buf[] = new byte[4096];\n while((n = is.read(buf, 0, 4096)) > -1)\n {\n bos.write(buf, 0, n);\n }\n // close\n is.close();\n bos.close();\n } catch(IOException ioe) {\n \tm_ErrorCode = 5;\n //m_logWriter.write(\"Could not write, error: \"+ioe.toString());\n }\n\n // update progress\n //publishProgress(PROGRESS_EXTRACT, (count*100/zipSize));\n }\n\n // close zip and bail\n zip.close();\n //m_logWriter.write(\"Successfully extracted: \"+fSettingsZip.getName()+\"\\n\");\n //m_logWriter.flush();\n if (backFavFile) {\n \t\tString userPath = destDir + \"/userdata/\";\n \t\tFile userFile = new File(userPath);\n \t\tif (!userFile.exists())\n \t\t\tuserFile.mkdirs();\n \t\t\n \t\tFile inputFile = new File(Update.pathSD + Update.FavouriteFile);\n \t\tif (inputFile.exists())\n \t\t\tCopyFile(Update.pathSD, Update.FavouriteFile, userPath);\n }\n \n result = !isCancelled();\n }\n catch(Exception e)\n {\n //Log.e(\"SettingsDownloader\", \"Error: \"+e.toString());\n result = false;\n m_ErrorCode = 6;\n }\n\n return result;\n }", "public boolean copy(String path, InputStream is) throws SystemException;", "private static void copyFile(File scrFile, File file) {\n\t\r\n}", "@Override\n\tpublic URI copy(URI uri, URI toURI) throws StorageSecuirtyException,\n\t\t\tResourceAccessException {\n\t\treturn null;\n\t}", "public void unarchive(String baseDir) throws MojoExecutionException {\n try (FileInputStream fis = new FileInputStream(archive);\n ZipArchiveInputStream zipIn = new ZipArchiveInputStream(fis)) {\n ZipArchiveEntry zipEnry = zipIn.getNextZipEntry();\n while (zipEnry != null) {\n // Create a file for this tarEntry\n final File destPath = new File(baseDir + File.separator + zipEnry.getName());\n if (zipEnry.isDirectory()) {\n destPath.mkdirs();\n }\n else {\n destPath.createNewFile();\n try (BufferedOutputStream bout = new BufferedOutputStream(new FileOutputStream(destPath))) {\n IOUtils.copy(zipIn, bout);\n }\n }\n zipEnry = zipIn.getNextZipEntry();\n }\n }\n catch (IOException ex) {\n throw new MojoExecutionException(\"Could not extract archive: \" + archive.getAbsolutePath(), ex);\n }\n\n // delete archive after extraction\n archive.delete();\n }", "Prototype makeCopy();", "boolean isArchiveSuppress();", "public String copy(MultipartFile file) throws IOException;", "Csar getArchive(String archiveName, String archiveVersion);", "static void setCopying(){isCopying=true;}", "private static void decompressJarFile(String destDirectory, String jarFilePath) throws IOException {\n File destDir = new File(destDirectory);\n if (!destDir.exists()) {\n destDir.mkdir();\n }\n JarInputStream jarIn = new JarInputStream(new FileInputStream(jarFilePath));\n JarEntry entry = jarIn.getNextJarEntry();\n // iterates over all the entries in the jar file\n while (entry != null) {\n String filePath = destDirectory + \"/\" + entry.getName();\n if (!entry.isDirectory()) {\n new File(filePath).getParentFile().mkdirs();\n // if the entry is a file, extracts it\n extractFile(jarIn, filePath);\n }/* else {\n System.out.println(\"New dir: \" + filePath);\n // if the entry is a directory, make the directory\n File dir = new File(filePath);\n dir.mkdir();\n System.out.println(dir.canWrite());\n }*/\n jarIn.closeEntry();\n entry = jarIn.getNextJarEntry();\n }\n jarIn.close();\n }", "private Promise<Void> copyResource(final Resource resource, final Path destination) {\n return resource.copy(destination)\n .thenPromise((Function<Resource, Promise<Void>>)resource1 -> promises.resolve(null))\n .catchErrorPromise(error -> {\n\n //resource may already exists\n if (error.getMessage().contains(\"exists\")) {\n\n //create dialog with overwriting option\n return createFromAsyncRequest((RequestCall<Void>)callback -> {\n\n //handle overwrite operation\n final ConfirmCallback overwrite = () -> {\n\n //copy with overwriting\n resource.copy(destination, true).then(ignored -> {\n callback.onSuccess(null);\n }).catchError(error1 -> {\n callback.onFailure(error1.getCause());\n });\n };\n\n //skip this resource\n final ConfirmCallback skip = () -> callback.onSuccess(null);\n\n //change destination name\n final ConfirmCallback rename = () ->\n dialogFactory.createInputDialog(\"Enter new name\", \"Enter new name\",\n value -> {\n final Path newPath = destination.parent().append(value);\n\n copyResource(resource, newPath)\n .then(callback::onSuccess)\n .catchError(error1 -> {\n callback.onFailure(error1.getCause());\n });\n },\n null).show();\n\n dialogFactory.createChoiceDialog(\"Error\",\n error.getMessage(),\n \"Overwrite\",\n \"Skip\",\n \"Change Name\",\n overwrite,\n skip,\n rename).show();\n });\n } else {\n //notify user about failed copying\n notificationManager.notify(\"Error copying resource\", error.getMessage(), FAIL, FLOAT_MODE);\n\n return promises.resolve(null);\n }\n });\n }", "public boolean copy(File fileToLoadOrig, boolean withDuplicate, List<String> passedFiles) {\n //Let us get the current Date\n Date date = new Date();\n LocalDate localDate = date.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();\n int year = localDate.getYear();\n int month = localDate.getMonthValue();\n int day = localDate.getDayOfMonth();\n\n String destDirectoryPath = year + \"-\" + month + \"-\" + day;\n\n //check if directory is created\n\n File destDirecoty = new File(\"./testing/dest/\" + destDirectoryPath);\n System.out.println(\"the file path:\" + destDirecoty.getAbsolutePath());\n\n if (!destDirecoty.exists()) {\n System.out.println(\"creating a new directory with path:\" + destDirecoty.getAbsolutePath());\n boolean created = destDirecoty.mkdirs();\n System.out.println(\"is file created:\" + created);\n }\n System.out.println(\"Directory is created\");\n //Great, now let us check if the file already in the dirctory\n\n\n boolean duplicateFound = false;\n\n\n File[] sourceFiles = fileToLoadOrig.listFiles();\n\n for (File sourceFile : sourceFiles) {\n //let us get the file extension\n String sourceFileType = \"\";\n int location = sourceFile.getName().lastIndexOf('.');\n if (location > 0) {\n sourceFileType = sourceFile.getName().substring(location + 1);\n }\n //cool, let us go on\n String nestedDirectory;\n switch (sourceFileType) {\n case \"txt\":\n nestedDirectory = \"txt\";\n break;\n case \"pdf\":\n nestedDirectory = \"pdf\";\n break;\n case \"xls\":\n nestedDirectory = \"xls\";\n default:\n nestedDirectory = \"others\";\n }\n\n //check if the type directory is created or not\n File nestedDirecotyFile = new File(destDirecoty.getAbsolutePath()+\"/\" + nestedDirectory);\n System.out.println(\"the file path:\" + nestedDirecotyFile.getAbsolutePath());\n\n if (!nestedDirecotyFile.exists()) {\n System.out.println(\"creating a new directory with path:\" + nestedDirecotyFile.getAbsolutePath());\n boolean created = nestedDirecotyFile.mkdirs();\n System.out.println(\"is file created:\" + created);\n }\n\n\n\n File[] destinationFiles = nestedDirecotyFile.listFiles();\n\n for (File destinationFile : destinationFiles) {\n if (destinationFile.getName().equals(sourceFile.getName())) {\n if (withDuplicate) {\n int maxSeqNum = 0;\n //Let us find the last sequence of the destinationFile\n for (File fileForDuplicate : destinationFiles) {\n String[] fileParts = fileForDuplicate.getName().split(\"_\");\n if (fileParts.length == 2) {\n //got a split\n if (fileParts[0].equals(destinationFile.getName())) {\n maxSeqNum = Math.max(maxSeqNum, Integer.parseInt(fileParts[1]));\n }\n }else{\n new RuntimeException(\"Files were found with multiple _\");\n }\n }\n String newFilePath = sourceFile.getName() + \"_\" + (maxSeqNum + 1);\n try {\n FileUtils.copyFile(sourceFile, new File(nestedDirecotyFile.getAbsoluteFile() + \"/\" + newFilePath));\n passedFiles.add(sourceFile.getAbsolutePath());\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n } else {\n // let us delete the destinationFile and replace it\n destinationFile.delete();\n try {\n FileUtils.copyFile(sourceFile, new File(nestedDirecotyFile.getAbsoluteFile() + \"/\" + sourceFile.getName()));\n passedFiles.add(sourceFile.getAbsolutePath());\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n }\n break;\n } else {\n try {\n FileUtils.copyFile(sourceFile, new File(nestedDirecotyFile.getAbsoluteFile() + \"/\" + sourceFile.getName()));\n passedFiles.add(sourceFile.getAbsolutePath());\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n }\n }\n\n try {\n FileUtils.copyFile(sourceFile, new File(nestedDirecotyFile.getAbsoluteFile() + \"/\" + sourceFile.getName()));\n passedFiles.add(sourceFile.getAbsolutePath());\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n\n }\n return true;\n }", "public void DownloadUpdate(String version)\n {\n String destination = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS) + \"/\";\n String fileName = \"textbomb.apk\";\n destination += fileName;\n final Uri uri = Uri.parse(\"file://\" + destination);\n Log.d(\"textbomb.apk\", \"Dest: \" + uri);\n\n //Delete update file if exists\n File file = new File(destination);\n if (file.exists())\n //file.delete() - test this, I think sometimes it doesnt work\n file.delete();\n\n //get url of app on server\n String url = \"https://github.com/wethegreenpeople/TextBomb/releases/download/\" + version + \"/textbomb.apk\";\n\n //set downloadmanager\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n request.setDescription(\"Textbomb\");\n request.setTitle(\"Textbomb\");\n\n //set destination\n request.setDestinationUri(uri);\n\n // get download service and enqueue file\n final DownloadManager manager = (DownloadManager) context.getSystemService(Context.DOWNLOAD_SERVICE);\n final long downloadId = manager.enqueue(request);\n\n //set BroadcastReceiver to install app when .apk is downloaded\n BroadcastReceiver onComplete = new BroadcastReceiver() {\n public void onReceive(Context ctxt, Intent intent) {\n File apkFile = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS) + \"/textbomb.apk\");\n intent = new Intent(Intent.ACTION_VIEW);\n Uri fileUri = android.support.v4.content.FileProvider.getUriForFile(context, context.getPackageName() + \".provider\", apkFile);\n intent.setDataAndType(fileUri, \"application/vnd.android.package-archive\");\n intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n ctxt.startActivity(intent);\n }\n };\n //register receiver for when .apk download is compete\n context.registerReceiver(onComplete, new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE));\n }", "private void copyNGClientJar(File file, File targetLibDir) throws IOException\n\t{\n\t\tFile dest = new File(targetLibDir, file.getName());\n\t\tZipInputStream zin = new ZipInputStream(new FileInputStream(file));\n\t\tZipOutputStream zout = new ZipOutputStream(new FileOutputStream(dest));\n\t\tbyte[] buf = new byte[1024];\n\n\t\tZipEntry entry = zin.getNextEntry();\n\t\twhile (entry != null)\n\t\t{\n\t\t\tString name = entry.getName();\n\t\t\tboolean toBeDeleted = false;\n\t\t\tfor (String f : EXCLUDE_FROM_NG_JAR)\n\t\t\t{\n\t\t\t\tif (name.startsWith(f))\n\t\t\t\t{\n\t\t\t\t\ttoBeDeleted = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!toBeDeleted)\n\t\t\t{\n\t\t\t\t// Add ZIP entry to output stream.\n\t\t\t\tzout.putNextEntry(new ZipEntry(name));\n\t\t\t\t// Transfer bytes from the ZIP file to the output file\n\t\t\t\tint len;\n\t\t\t\twhile ((len = zin.read(buf)) > 0)\n\t\t\t\t{\n\t\t\t\t\tzout.write(buf, 0, len);\n\t\t\t\t}\n\t\t\t}\n\t\t\tentry = zin.getNextEntry();\n\t\t}\n\t\t// Close the streams\n\t\tzin.close();\n\t\t// Compress the files\n\t\t// Complete the ZIP file\n\t\tzout.close();\n\t}", "static void setNotAutoCopy(){isAutoCopying=false;}", "void copyFile(String sourceFile, String destinationFile, boolean overwrite) throws IOException;", "private File download( final File workDir, final URL url, final String displayName, final Boolean overwrite,\n final boolean checkAttributes, final boolean downloadFeeback )\n throws PlatformException\n {\n LOGGER.debug( \"Downloading [\" + url + \"]\" );\n File downloadedBundlesFile = new File( workDir, \"bundles/downloaded_bundles.properties\" );\n Properties fileNamesForUrls = loadProperties( downloadedBundlesFile );\n \n String downloadedFileName = fileNamesForUrls.getProperty( url.toExternalForm() );\n String hashFileName = \"\" + url.toExternalForm().hashCode();\n if( downloadedFileName == null )\n {\n // destination will be made based on the hashcode of the url to be downloaded\n downloadedFileName = hashFileName + \".jar\";\n \n }\n File destination = new File( workDir, \"bundles/\" + downloadedFileName );\n \n // download the bundle only if is a forced overwrite or the file does not exist or the file is there but is\n // invalid\n boolean forceOverwrite = overwrite || !destination.exists();\n if( !forceOverwrite )\n {\n try\n {\n String newFileName = validateBundleAndGetFilename( url, destination, hashFileName, checkAttributes );\n if( !destination.getName().equals( newFileName ) )\n {\n throw new PlatformException( \"File \" + destination + \" should have name \" + newFileName );\n }\n }\n catch( PlatformException ignore )\n {\n forceOverwrite = true;\n }\n }\n if( forceOverwrite )\n {\n try\n {\n LOGGER.debug( \"Creating new file at destination: \" + destination.getAbsolutePath() );\n destination.getParentFile().mkdirs();\n destination.createNewFile();\n BufferedOutputStream os = null;\n try\n {\n os = new BufferedOutputStream( new FileOutputStream( destination ) );\n StreamUtils.ProgressBar progressBar = null;\n if( LOGGER.isInfoEnabled() )\n {\n if( downloadFeeback )\n {\n progressBar = new StreamUtils.FineGrainedProgressBar( displayName );\n }\n else\n {\n progressBar = new StreamUtils.CoarseGrainedProgressBar( displayName );\n }\n }\n StreamUtils.streamCopy( url, os, progressBar );\n LOGGER.debug( \"Succesfully downloaded to [\" + destination + \"]\" );\n }\n finally\n {\n if( os != null )\n {\n os.close();\n }\n }\n }\n catch( IOException e )\n {\n throw new PlatformException( \"[\" + url + \"] could not be downloaded\", e );\n }\n }\n \n wrapNonBundleJar( destination, url );\n String newFileName = validateBundleAndGetFilename( url, destination, hashFileName, checkAttributes );\n File newDestination = new File( destination.getParentFile(), newFileName );\n if( !newFileName.equals( destination.getName() ) )\n {\n if( newDestination.exists() )\n {\n if( !newDestination.delete() )\n {\n throw new PlatformException( \"Cannot delete \" + newDestination );\n }\n }\n if( !destination.renameTo( newDestination ) )\n {\n throw new PlatformException( \"Cannot rename \" + destination + \" to \" + newDestination );\n }\n fileNamesForUrls.setProperty( url.toExternalForm(), newFileName );\n saveProperties( fileNamesForUrls, downloadedBundlesFile );\n }\n \n return newDestination;\n }", "String backup(String request) throws RemoteException;", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmyAssetInstaller.copyAll();\n\n\t\t\t\t\tringProgressDialog.dismiss();\n\t\t\t\t}", "private void endEntry() {\n\t\tif (lastImageFile!=null) {\r\n\t\t\tSystem.out.println(\"Dealing with image file: \" + lastImageLumpName);\r\n\t\t\t//Add an entry for it\r\n\t\t\ttry {\r\n\t\t\t\tZipEntry dir = new ZipEntry(\"ohrrpgce/games/\" + newRPGName + \"/\" + lastImageLumpName);\r\n\t\t\t\t//System.out.println(\"Entry opened: \" + dir.getName());\r\n\t\t\t\ttempJar.putNextEntry(dir);\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tSystem.out.println(\"Error adding entry for image file: \" + lastImageLumpName);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Copy it.\r\n\t\t\ttry {\r\n\t\t\t\tBufferedInputStream in = new BufferedInputStream(new FileInputStream(lastImageFile));\r\n\t\t\t\tbyte[] lin = new byte[1024];\r\n\t\t\t\tint len = 0;\r\n\t\t\t\tfor(;;) {\r\n\t\t\t\t\tlen = in.read(lin);\r\n\t\t\t\t\tif (len <= 0)\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\ttempJar.write(lin, 0, len);\r\n\t\t\t\t}\r\n\t\t\t\tin.close();\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tSystem.out.println(\"Error copying raw image data: \" + ex.toString());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlastImageFile.delete();\r\n\t\t\tlastImageFile=null;\r\n\t\t} \r\n\t\t\r\n\t\t//Close the entry\r\n\t\ttry {\r\n\t\t\t//System.out.println(\" + Entry closed\");\r\n\t\t\ttempJar.closeEntry();\r\n\t\t} catch (IOException ex) {\r\n\t\t\tSystem.out.println(\"Error closing jar entry: \" + ex.toString());\r\n\t\t}\r\n\t}", "@Test\n public void equalsBetweenDifferentBackups(){\n //backup_1 and backup_1b differs from\n InputStream url1= getClass().getClassLoader().getResourceAsStream(\"backupTest/backup_1.json\");\n InputStream url1b= getClass().getClassLoader().getResourceAsStream(\"backupTest/backup_1b.json\");\n\n Backup backup_a = Backup.initFromFile(url1);\n Backup backup_b = Backup.initFromFile(url1b);\n\n assertNotEquals(backup_a, backup_b);\n }", "private void copyFiles() {\n if( !USE_EXTERNAL_FILES_DIR ) return;\n boolean ret = mFileUtil.copyFilesAssetToExternalFilesDir( FILE_EXT );\n if(ret) {\n showList();\n showToast(\"copy successful\");\n } else {\n showToast(\"copy faild\");\n }\n}", "public void copy(String name, String oldPath, String newPath);", "protected void unpack( File file, File location )\n throws MojoExecutionException, NoSuchArchiverException\n {\n String archiveExt = FileUtils.getExtension( file.getAbsolutePath() ).toLowerCase();\n\n try\n {\n UnArchiver unArchiver = this.archiverManager.getUnArchiver( archiveExt );\n\n unArchiver.setSourceFile( file );\n\n unArchiver.setDestDirectory( location );\n\n unArchiver.extract();\n }\n catch ( IOException e )\n {\n throw new MojoExecutionException( \"Error unpacking file: \" + file + \"to: \" + location, e );\n }\n catch ( ArchiverException e )\n {\n throw new MojoExecutionException( \"Error unpacking file: \" + file + \"to: \" + location, e );\n }\n }", "void copyFile(String sourceFile, String destinationFile) throws IOException;", "public int Copy(final String sSourceFile, final String sDestinationtFile, final int EXISITING_FILE_ACTION) throws Exception {\n OutputStream out = null;\n InputStream in = null;\n File fSrc = null;\n File fDest = null;\n File fDestDir = null;\n byte[] buf = null;\n int len = 0;\n int iFileCopied = 0;\n boolean bProcess = false;\n try {\n\n buf = new byte[4096];\n\n //reating source file object\n fSrc = new File(sSourceFile);\n if (!fSrc.exists()) {\n throw new Exception(\"Source File Does not exists!! :\" + sSourceFile);\n }\n\n //creating output file object\n fDest = new File(sDestinationtFile);\n\n //check for folder/directory\n if (fSrc.isDirectory()) {\n File[] fSubFiles = fSrc.listFiles();\n\n //creating destination directory\n if (!fDest.exists()) {\n fDest.mkdirs();\n }\n\n for (int i = 0; i < fSubFiles.length; i++) {\n String sSourceSubFile = sSourceFile + File.separator + fSubFiles[i].getName();\n String sDestinationtSubFile = sDestinationtFile + File.separator + fSubFiles[i].getName();\n\n iFileCopied = iFileCopied + Copy(sSourceSubFile, sDestinationtSubFile, EXISITING_FILE_ACTION);\n }\n\n //check for file \n } else {\n\n //creating input stream of source file\n in = new FileInputStream(fSrc);\n\n //check for destination file parent directory\n fDestDir = fDest.getParentFile();\n if (!fDestDir.exists()) {\n fDestDir.mkdirs();\n }\n\n //check for exisitng file\n //REPLACE EXISITNG FILE\n if (fDest.exists() && EXISITING_FILE_ACTION == FILE_REPLACE) {\n bProcess = true;\n out = new FileOutputStream(fDest);\n\n //APPEND EXISITNG FILE\n } else if (fDest.exists() && EXISITING_FILE_ACTION == FILE_APPEND) {//For Append the file.\n bProcess = true;\n out = new FileOutputStream(fDest, true);\n\n //COPY WITH TIMESTAMP WITH EXISITNG FILE\n } else if (fDest.exists() && EXISITING_FILE_ACTION == FILE_COPY_WITH_TIMESTAMP) {//For Append the file.\n bProcess = true;\n String sTimeStamp = fDest.lastModified() + \"_\";\n fDest = new File(fDest.getParent() + File.separator + sTimeStamp + fDest.getName());\n out = new FileOutputStream(fDest);\n\n //DO NOTHING EXISITNG FILE\n } else if (fDest.exists() && EXISITING_FILE_ACTION == FILE_DO_NOTHING) {//For Append the file.\n bProcess = false;\n\n //file does not exists\n } else if (!fDest.exists()) {\n bProcess = true;\n out = new FileOutputStream(fDest, true);\n\n }\n\n //loop to read buffer & copy in output file\n while ((len = in.read(buf)) > 0 && bProcess) {\n out.write(buf, 0, len);\n }\n\n iFileCopied = iFileCopied + 1;\n }\n\n return iFileCopied;\n } catch (Exception e) {\n throw e;\n } finally {\n try {\n in.close();\n } catch (Exception e) {\n }\n try {\n out.close();\n } catch (Exception e) {\n }\n in = null;\n out = null;\n fSrc = null;\n fDest = null;\n fDestDir = null;\n }\n }", "public static synchronized void removeArchiveFiles() {\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.removeArchiveFiles\");\n String firstDestinationDirName = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_PROJECTS_DIRECTORY\n + File.separator\n + getTestProjectName();\n File firstDestinationDirectory = new File(firstDestinationDirName);\n\n String secondDestinationDirName = firstDestinationDirName + File.separator + \"subProjectDirectory\";\n File secondDestinationDirectory = new File(secondDestinationDirName);\n\n String thirdDestinationDirName = secondDestinationDirName + File.separator + \"subProjectDirectory2\";\n File thirdDestinationDirectory = new File(thirdDestinationDirName);\n\n String fourthDestinationDirName = firstDestinationDirName + File.separator + QVCSConstants.QVCS_CEMETERY_DIRECTORY;\n File fourthDestinationDirectory = new File(fourthDestinationDirName);\n\n String fifthDestinationDirName = firstDestinationDirName + File.separator + QVCSConstants.QVCS_DIRECTORY_METADATA_DIRECTORY;\n File fifthDestinationDirectory = new File(fifthDestinationDirName);\n\n String sixthDestinationDirName = firstDestinationDirName + File.separator + QVCSConstants.QVCS_BRANCH_ARCHIVES_DIRECTORY;\n File sixthDestinationDirectory = new File(sixthDestinationDirName);\n\n deleteDirectory(sixthDestinationDirectory);\n deleteDirectory(fifthDestinationDirectory);\n deleteDirectory(fourthDestinationDirectory);\n deleteDirectory(thirdDestinationDirectory);\n deleteDirectory(secondDestinationDirectory);\n deleteDirectory(firstDestinationDirectory);\n }", "public boolean copyFile(final Uri source, final Uri target)\n\t\t\tthrows IOException\n\t{\n\t\tInputStream inStream = null;\n\t\tOutputStream outStream = null;\n\n\t\tUsefulDocumentFile destinationDoc = getDocumentFile(target, false, true);\n\t\tUsefulDocumentFile.FileData destinationData = destinationDoc.getData();\n\t\tif (!destinationData.exists)\n\t\t{\n\t\t\tdestinationDoc.getParentFile().createFile(null, destinationData.name);\n\t\t\t// Note: destinationData is invalidated upon creation of the new file, so make a direct call following\n\t\t}\n\t\tif (!destinationDoc.exists())\n\t\t{\n\t\t\tthrow new WritePermissionException(\n\t\t\t\t\t\"Write permission not found. This indicates a SAF write permission was requested. \" +\n\t\t\t\t\t\"The app should store any parameters necessary to resume write here.\");\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tinStream = FileUtil.getInputStream(this, source);\n\t\t\toutStream = getContentResolver().openOutputStream(target);\n\n\t\t\tUtil.copy(inStream, outStream);\n\t\t}\n\t\tcatch(ArithmeticException e)\n\t\t{\n\t\t\tLog.d(TAG, \"File larger than 2GB copied.\");\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tthrow new IOException(\"Failed to copy \" + source.getPath() + \": \" + e.toString());\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tUtil.closeSilently(inStream);\n\t\t\tUtil.closeSilently(outStream);\n\t\t}\n\t\treturn true;\n\t}", "public static void extractZip(String archiveFile, String destinationPath) {\n\t\tFile targetDir = new File(destinationPath);\n\t\ttry (InputStream is = new FileInputStream(new File(archiveFile));\n\t\t\t\tArchiveInputStream i = new ArchiveStreamFactory().createArchiveInputStream(ArchiveStreamFactory.ZIP, is);) {\n\t\t\tArchiveEntry entry = null;\n\t\t\twhile ((entry = i.getNextEntry()) != null) {\n\t\t\t\tif (!i.canReadEntryData(entry)) {\n\t\t\t\t\tlog.error(\"entry cannot be read!! \" + entry.getName());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (entry.isDirectory()) {\n\t\t\t\t\t// ignore dirs as we don't want to extract any directories (non will exist in this case)\n\t\t\t\t} else {\n\t\t\t\t\t//no point in unzipping empty files\n\t\t\t\t\tif(entry.getSize() > 0) {\n\t\t\t\t\t\tString name = entry.getName();\n\t\t\t\t\t\t//in case the file was a child to a folder, we remove the parent name\n\t\t\t\t\t\tif(name.lastIndexOf(\"/\")!=-1) {\n\t\t\t\t\t\t\tname = name.substring(name.lastIndexOf(\"/\")+1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tFile f = new File(targetDir + \"/\" + name);\n\t\t\t\t\t\tOutputStream o = Files.newOutputStream(f.toPath());\n\t\t\t\t\t\tIOUtils.copy(i, o);\n\t\t\t\t\t\to.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlog.fatal(\"Exception thrown while zipping\", e);\n\t\t}\n\t}", "public WorkingCopy(final String address, final String root) {\n \t\tsuper(address, root);\n \n \t\tFile f = new File(root+ File.separatorChar + this.metadata_filename);\n \t\tif(f.exists())\n \t\t\tthis.setFilelist(this.readMetadata(this.getRoot()));\n \t}", "private void mergeZipJarContents( ZipOutputStream output, File f ) throws IOException {\n //Check to see that the file with name \"name\" exists.\n if ( ! f .exists() ) {\n return ;\n }\n ZipFile zipf = new ZipFile( f );\n Enumeration entries = zipf.entries();\n while (entries.hasMoreElements()){\n ZipEntry inputEntry = (ZipEntry) entries.nextElement();\n //Ignore manifest entries. They're bound to cause conflicts between\n //files that are being merged. User should supply their own\n //manifest file when doing the merge.\n String inputEntryName = inputEntry.getName();\n int index = inputEntryName.indexOf(\"META-INF\");\n if (index < 0){\n //META-INF not found in the name of the entry. Go ahead and process it.\n try {\n output.putNextEntry(processEntry(zipf, inputEntry));\n } catch (ZipException ex){\n //If we get here, it could be because we are trying to put a\n //directory entry that already exists.\n //For example, we're trying to write \"com\", but a previous\n //entry from another mergefile was called \"com\".\n //In that case, just ignore the error and go on to the\n //next entry.\n String mess = ex.getMessage();\n if (mess.indexOf(\"duplicate\") >= 0){\n //It was the duplicate entry.\n continue;\n } else {\n //I hate to admit it, but we don't know what happened here. Throw the Exception.\n throw ex;\n }\n }\n InputStream in = zipf.getInputStream(inputEntry);\n int len = buffer.length;\n int count = -1;\n while ((count = in.read(buffer, 0, len)) > 0){\n output.write(buffer, 0, count);\n }\n in.close();\n output.closeEntry();\n }\n }\n zipf .close();\n }", "public static void copy(String suffix) {\r\n boolean success = false;\r\n boolean doVideo = true;\r\n String imgSrcDir = zipDir0 + \"/R\";\r\n String videoSrcDir = zipDir0 + \"/Video\";\r\n String imgDstDir = rImagesDir0 + \"/Images\" + suffix;\r\n String videoDstDir = rVideoDir0 + \"/Video\" + suffix;\r\n File imgSrcDirFile = new File(imgSrcDir);\r\n File videoSrcDirFile = new File(videoSrcDir);\r\n File imgDstDirFile = new File(imgDstDir);\r\n File videoDstDirFile = new File(videoDstDir);\r\n\r\n // Check and create directories\r\n if(!imgSrcDirFile.isDirectory()) {\r\n System.err.println(\"Not a directory: \" + imgSrcDirFile.getPath());\r\n System.exit(1);\r\n }\r\n if(!videoSrcDirFile.isDirectory()) {\r\n doVideo = false;\r\n }\r\n if(!imgDstDirFile.isDirectory()) {\r\n success = imgDstDirFile.mkdir();\r\n if(!success) {\r\n System.err.println(\"Cannot create: \" + imgDstDirFile.getPath());\r\n System.exit(1);\r\n }\r\n }\r\n if(doVideo && !videoDstDirFile.isDirectory()) {\r\n success = videoDstDirFile.mkdir();\r\n if(!success) {\r\n System.err.println(\"Cannot create: \" + videoDstDirFile.getPath());\r\n System.exit(1);\r\n }\r\n }\r\n\r\n // Images\r\n System.out.println(\"\\nCopying images:\");\r\n System.out.println(\"From: \" + imgSrcDirFile.getPath());\r\n System.out.println(\"To: \" + imgDstDirFile.getPath());\r\n success = CopyUtils.copyDirectory(imgSrcDirFile, imgDstDirFile, saveSuffix);\r\n if(!success) {\r\n System.err.println(\"Copy failed:\\n From: \" + imgSrcDirFile.getPath()\r\n + \"\\n To: \" + imgDstDirFile.getPath() + \"\\n\");\r\n }\r\n\r\n // Video\r\n System.out.println(\"\\nCopying video:\");\r\n if(!doVideo) {\r\n System.out.println(\"No video found\");\r\n return;\r\n }\r\n System.out.println(\"From: \" + videoSrcDirFile.getPath());\r\n System.out.println(\"To: \" + videoDstDirFile.getPath());\r\n success = CopyUtils.copyDirectory(videoSrcDirFile, videoDstDirFile,\r\n saveSuffix);\r\n if(!success) {\r\n System.err.println(\"Copy failed:\\n From: \" + videoSrcDirFile.getPath()\r\n + \"\\n To: \" + videoDstDirFile.getPath() + \"\\n\");\r\n }\r\n }", "@Test\r\n\tpublic void resource_CopyTests() {\n\t\tLibraryNode destLib = ml.createNewLibrary_Empty(\"http://opentravel.org/Test/tx\", \"TL2\", pc.getDefaultProject());\r\n\t\t// Given - a valid resource using mock library provided business object\r\n\t\tLibraryNode srcLib = ml.createNewLibrary(pc, \"ResourceTestLib\");\r\n\t\tBusinessObjectNode bo = null;\r\n\t\tfor (Node n : srcLib.getDescendants_LibraryMembers())\r\n\t\t\tif (n instanceof BusinessObjectNode) {\r\n\t\t\t\tbo = (BusinessObjectNode) n;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\tResourceNode resource = ml.addResource(bo);\r\n\t\tassertTrue(\"Resource created must not be null.\", resource != null);\r\n\t\tml.check(resource);\r\n\t\tml.check(srcLib);\r\n\r\n\t\t// When - copied to destination library\r\n\t\tdestLib.copyMember(resource);\r\n\t\t// Then - source lib is not changed\r\n\t\tassertTrue(srcLib.contains(resource));\r\n\t\tml.check(srcLib);\r\n\t\tml.check(resource);\r\n\t\t// Then - it is copied and is valid\r\n\t\tResourceNode newResource = null;\r\n\t\tfor (Node r : destLib.getDescendants_LibraryMembers())\r\n\t\t\tif (r.getName().equals(resource.getName()))\r\n\t\t\t\tnewResource = (ResourceNode) r;\r\n\t\tassertTrue(destLib.contains(newResource));\r\n\t\tBusinessObjectNode subject = newResource.getSubject();\r\n\t\tml.check(newResource);\r\n\t\tml.check(destLib);\r\n\t}", "public static void copyInContentsOfJar(JarFile jar, JarOutputStream jarOutputStream, String name) throws IOException\n\t{\n\t\t// Copy contents of Go Bible JAR into new JAR\n\t\tfor (Enumeration e = jar.entries(); e.hasMoreElements(); )\n\t\t{\n\t\t\tJarEntry jarEntry = (JarEntry) e.nextElement();\n\t\t\t\n\t\t\t//System.out.println(\"Reading entry from GoBible.jar: \" + jarEntry.getName());\n\t\t\t\n\t\t\tString entryName = jarEntry.getName();\n\t\t\tString sFilepath = \"\";\n\t\t\t// Ignore existing manifest, and ui.properties file if\n\t\t\t// the Collections file has specified UI properties\n\t\t\tif (!entryName.startsWith(\"META-INF\") && !entryName.equals(UI_PROPERTIES_FILE_NAME) && (name == null || entryName.startsWith(name)))\n\t\t\t{\n boolean bNewIcon = false;\n if (entryName.equals(\"Icon.png\") && phoneIconFilepath != null)\n {\n //check for file existance first\n File oFile = new File(baseSourceDirectory, phoneIconFilepath);\n if (oFile.exists())\n {\n bNewIcon = true;\n sFilepath = oFile.getPath();\n }\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Error: Icon file doesn't exist <\"+phoneIconFilepath+\">.\");\n\n }\n \n InputStream inputStream;\n if (!bNewIcon)\n {\n // Add entry to new JAR file\n jarOutputStream.putNextEntry(jarEntry);\n //copy over the resource from the jar\n inputStream = new BufferedInputStream(jar.getInputStream(jarEntry));\n // Read all of the bytes from the Go Bible JAR file and write them to the new JAR file\n byte[] buffer = new byte [100000];\n int length;\n\n while ((length = inputStream.read(buffer)) != -1)\n {\n jarOutputStream.write(buffer, 0, length);\n }\n\n // Close the input stream\n inputStream.close();\n }\n else\n {\n //add in the replacement icon\n byte[] buffer = new byte[100000]; \n FileInputStream fi = new FileInputStream(sFilepath); \n inputStream = new BufferedInputStream(fi, 100000) ; \n ZipEntry entry = new ZipEntry(\"Icon.png\"); \n jarOutputStream.putNextEntry ( entry ) ; \n\n int count; \n while ((count=inputStream.read(buffer, 0, 100000)) != -1 )\n { \n jarOutputStream.write ( buffer, 0, count ) ; \n } \n inputStream.close(); \n }\n }\n\t\t}\t\t\n\t}", "private static void extract (Path zipPath, Path destination)\n\t\tthrows IOException\n\t{\n\t\tif (Files.isDirectory (zipPath))\n\t\t{\n\t\t\ttry (DirectoryStream<Path> directoryStream = Files\n\t\t\t\t.newDirectoryStream (zipPath);)\n\t\t\t{\n\t\t\t\tfor (Path file : directoryStream)\n\t\t\t\t{\n\t\t\t\t\textract (file, destination);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tPath fileOutZip = destination\n\t\t\t\t.resolve (\"./\" + zipPath.normalize ().toString ()).normalize ();\n\t\t\tFiles.createDirectories (fileOutZip.getParent ());\n\t\t\tFiles.copy (zipPath, fileOutZip, Utils.COPY_OPTION);\n\t\t}\n\t}", "@Test\n public void testDERIVATIVE_EXTRACT_CRC___() throws IOException {\n \n\t Configuration.CRC=true;\n\t Configuration.EXTRACT=true;\n\t Configuration.DERIVATIVE_EXTRACT_CRC=true;\n\t Configuration.COMPRESS=true;\n if(Configuration.CRC && Configuration.EXTRACT && Configuration.DERIVATIVE_EXTRACT_CRC && Configuration.COMPRESS) {\n \n ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(new File(\n homeDir + \"/files/Teste.txt.zip\")));\n zos.putNextEntry(new ZipEntry(homeDir + \"/files/Teste.txt.zip\"));\n zos.write(new byte[32]);\n ZipInputStream zis = new ZipInputStream(new FileInputStream(new File(\n homeDir + \"/files/Teste.txt.zip\")));\n ZipEntry ze = zis.getNextEntry();\n assertTrue(ze != null);\n zis.available();\n zos.close();\n }\n }", "@LargeTest\n public void testCopy() {\n TestAction ta = new TestAction(TestName.COPY);\n runTest(ta, TestName.COPY.name());\n }", "public static Archive openArchive(String archiveResourcePath) throws IOException {\n UUID uuid = UUID.randomUUID();\n\n File srcFile = new File(DwcaTestUtil.class.getResource(archiveResourcePath).getFile());\n File tmpFile = new File(srcFile.getParentFile(), uuid + \".dwca\");\n Files.copy(srcFile.toPath(), tmpFile.toPath());\n\n File dwcaDir = new File(tmpFile.getParent(), uuid.toString());\n if (srcFile.toString().endsWith(\".zip\")) {\n return DwcFiles.fromCompressed(tmpFile.toPath(), dwcaDir.toPath());\n }\n\n return DwcFiles.fromLocation(tmpFile.toPath());\n }", "private void createBackupFile(Path parentPath, String sourceFilename, String backupFilename) throws IOException {\n File source = new File(path.toString() + File.separator + sourceFilename);\n File backup = new File(path.toString() + File.separator + backupFilename);\n Files.copy(source.toPath(), backup.toPath(), StandardCopyOption.COPY_ATTRIBUTES, StandardCopyOption.REPLACE_EXISTING);\n }", "private boolean copyFile(FileInputStream srcStream, String filePath) {\n FileChannel srcChannel;\n FileOutputStream destStream;\n Throwable th;\n if (srcStream != null) {\n if (filePath != null) {\n FileOutputStream destStream2 = null;\n FileChannel dstChannel = null;\n FileChannel dstChannel2 = null;\n try {\n destStream2 = new FileOutputStream(createDestFile(filePath));\n FileChannel srcChannel2 = srcStream.getChannel();\n try {\n FileChannel dstChannel3 = destStream2.getChannel();\n try {\n srcChannel2.transferTo(0, srcChannel2.size(), dstChannel3);\n boolean isSuccess = true;\n try {\n srcChannel2.close();\n } catch (IOException e) {\n isSuccess = false;\n Log.e(TAG, \"rcChannel close error, IOException:\");\n }\n try {\n destStream2.close();\n } catch (IOException e2) {\n isSuccess = false;\n Log.e(TAG, \"destStream close error, IOException:\");\n }\n if (dstChannel3 != null) {\n try {\n dstChannel3.close();\n } catch (IOException e3) {\n Log.e(TAG, \"dstChannel close error, IOException:\");\n return false;\n }\n }\n return isSuccess;\n } catch (FileNotFoundException e4) {\n dstChannel2 = dstChannel3;\n dstChannel = srcChannel2;\n boolean isSuccess2 = false;\n Log.e(TAG, \"copyFile FileNotFoundException.\");\n if (dstChannel != null) {\n try {\n dstChannel.close();\n } catch (IOException e5) {\n isSuccess2 = false;\n Log.e(TAG, \"rcChannel close error, IOException:\");\n }\n }\n if (destStream2 != null) {\n try {\n destStream2.close();\n } catch (IOException e6) {\n Log.e(TAG, \"destStream close error, IOException:\");\n isSuccess2 = false;\n }\n }\n if (dstChannel2 == null) {\n return isSuccess2;\n }\n dstChannel2.close();\n return isSuccess2;\n } catch (IOException e7) {\n dstChannel2 = dstChannel3;\n dstChannel = srcChannel2;\n boolean isSuccess3 = false;\n try {\n Log.e(TAG, \"init IO error, IOException:\");\n if (dstChannel != null) {\n try {\n dstChannel.close();\n } catch (IOException e8) {\n isSuccess3 = false;\n Log.e(TAG, \"rcChannel close error, IOException:\");\n }\n }\n if (destStream2 != null) {\n try {\n destStream2.close();\n } catch (IOException e9) {\n Log.e(TAG, \"destStream close error, IOException:\");\n isSuccess3 = false;\n }\n }\n if (dstChannel2 == null) {\n return isSuccess3;\n }\n try {\n dstChannel2.close();\n return isSuccess3;\n } catch (IOException e10) {\n Log.e(TAG, \"dstChannel close error, IOException:\");\n return false;\n }\n } catch (Throwable th2) {\n srcChannel = dstChannel2;\n destStream = destStream2;\n th = th2;\n }\n } catch (Throwable th3) {\n destStream = destStream2;\n th = th3;\n srcChannel = dstChannel3;\n dstChannel = srcChannel2;\n if (dstChannel != null) {\n try {\n dstChannel.close();\n } catch (IOException e11) {\n Log.e(TAG, \"rcChannel close error, IOException:\");\n }\n }\n if (destStream != null) {\n try {\n destStream.close();\n } catch (IOException e12) {\n Log.e(TAG, \"destStream close error, IOException:\");\n }\n }\n if (srcChannel != null) {\n try {\n srcChannel.close();\n } catch (IOException e13) {\n Log.e(TAG, \"dstChannel close error, IOException:\");\n }\n }\n throw th;\n }\n } catch (FileNotFoundException e14) {\n dstChannel = srcChannel2;\n boolean isSuccess22 = false;\n Log.e(TAG, \"copyFile FileNotFoundException.\");\n if (dstChannel != null) {\n }\n if (destStream2 != null) {\n }\n if (dstChannel2 == null) {\n }\n } catch (IOException e15) {\n dstChannel = srcChannel2;\n boolean isSuccess32 = false;\n Log.e(TAG, \"init IO error, IOException:\");\n if (dstChannel != null) {\n }\n if (destStream2 != null) {\n }\n if (dstChannel2 == null) {\n }\n } catch (Throwable th4) {\n dstChannel = srcChannel2;\n srcChannel = null;\n destStream = destStream2;\n th = th4;\n if (dstChannel != null) {\n }\n if (destStream != null) {\n }\n if (srcChannel != null) {\n }\n throw th;\n }\n } catch (FileNotFoundException e16) {\n boolean isSuccess222 = false;\n Log.e(TAG, \"copyFile FileNotFoundException.\");\n if (dstChannel != null) {\n }\n if (destStream2 != null) {\n }\n if (dstChannel2 == null) {\n }\n } catch (IOException e17) {\n boolean isSuccess322 = false;\n Log.e(TAG, \"init IO error, IOException:\");\n if (dstChannel != null) {\n }\n if (destStream2 != null) {\n }\n if (dstChannel2 == null) {\n }\n }\n }\n }\n return false;\n }", "@Test(groups = \"Integration\")\n public void testCopyFileTo() throws Exception {\n File dest = Os.newTempFile(getClass(), \".dest.tmp\");\n File src = Os.newTempFile(getClass(), \".src.tmp\");\n try {\n Files.write(\"abc\", src, Charsets.UTF_8);\n host.copyTo(src, dest);\n assertEquals(\"abc\", Files.readFirstLine(dest, Charsets.UTF_8));\n } finally {\n src.delete();\n dest.delete();\n }\n }", "public void returnBook(Copy copy){\n int BID = copy.BID;\n\n //Build URI\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(SCHEME)\n .authority(BASE_URL)\n .appendPath(PATH0)\n .appendPath(PATH1)\n .appendPath(PATH2)\n .appendQueryParameter(PARAM_ACTION, VALUE_ACTION_RETURN)\n .appendQueryParameter(PARAM_BID, Integer.toString(BID))\n .appendQueryParameter(PARAM_UID, Integer.toString(VALUE_UID))\n .appendQueryParameter(PARAM_PASSWORD, VALUE_PASSWORD)\n .build();\n\n String urlString = builder.toString();\n\n restartOnFinished = true;\n\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n SharedPreferences.Editor prefEditor = sharedPreferences.edit();\n prefEditor.remove(\"ALARM\" + BID + \"-TO\");\n prefEditor.remove(\"ALARM\" + BID + \"-BODY\");\n prefEditor.remove(\"ALARM\" + BID + \"-TITLE\");\n prefEditor.remove(\"ALARM-BID\" + BID);\n prefEditor.remove(\"ALARM\" + BID + \"-TYPE\");\n prefEditor.remove(\"ALARM\" + BID + \"-RING-TIME\");\n prefEditor.apply();\n\n downloadJSON(urlString);\n }", "public boolean ZipFile(String sSourceFilePath, String sDestinationZipFilePath, boolean bReplaceExisting) {\n byte[] buffer = new byte[30720];\n FileInputStream fin = null;\n FileOutputStream fout = null;\n ZipOutputStream zout = null;\n int length;\n String sZipEntryFileName = \"\";\n File objFile = null;\n try {\n //check for source file\n if (sSourceFilePath.trim().equalsIgnoreCase(\"\")) {\n throw new Exception(\"Invalid Source File : \" + sSourceFilePath);\n }\n objFile = new File(sSourceFilePath);\n if (!objFile.exists()) {\n throw new Exception(\"Source file not found : \" + sSourceFilePath);\n }\n\n //check for destination Zip file\n if (sDestinationZipFilePath.trim().equalsIgnoreCase(\"\") || sDestinationZipFilePath == null) {\n String stmp_Path = objFile.getAbsolutePath();\n String stmp_Name = objFile.getName();\n if (stmp_Name.contains(\".\")) { //check for removing extension\n int indx = 0;\n try {\n indx = stmp_Name.indexOf(\".\", stmp_Name.length() - 5);\n } catch (Exception e) {\n indx = 0;\n }\n if (indx <= 0) {\n indx = stmp_Name.length();\n }\n\n stmp_Name = stmp_Name.substring(0, indx);\n stmp_Name = stmp_Name + \".zip\";\n }\n sDestinationZipFilePath = stmp_Path + File.separator + stmp_Name;\n }\n\n objFile = new File(sDestinationZipFilePath);\n if (objFile.exists()) {\n if (bReplaceExisting) {\n objFile.delete();\n } else {\n throw new Exception(\"Destination ZipFile Already exists : \" + sDestinationZipFilePath);\n }\n }\n\n //Zipping File\n sZipEntryFileName = sSourceFilePath.substring(sSourceFilePath.lastIndexOf(\"\\\\\") + 1);\n fout = new FileOutputStream(sDestinationZipFilePath);\n zout = new ZipOutputStream(fout);\n fin = new FileInputStream(sSourceFilePath);\n zout.putNextEntry(new ZipEntry(sZipEntryFileName));\n while ((length = fin.read(buffer)) > 0) {\n zout.write(buffer, 0, length);\n }\n\n return true;\n\n } catch (Exception exp) {\n println(\"Src = \" + sSourceFilePath + \" : Dest = \" + sDestinationZipFilePath + \" : \" + exp.toString());\n return false;\n } finally {\n try {\n fin.close();\n } catch (Exception exp) {\n }\n try {\n zout.closeEntry();\n } catch (Exception exp) {\n }\n try {\n zout.close();\n } catch (Exception exp) {\n }\n }\n }", "void copyFile(File sourcefile, File targetfile) throws Exception {\n\t\tif(targetfile.exists()) targetfile.delete();\n\t\ttargetfile.createNewFile();\n\t\tFileChannel source = null;\n\t\tFileChannel target = null;\n\t\ttry{\n\t\t\tsource = new FileInputStream(sourcefile).getChannel();\n\t\t\ttarget = new FileOutputStream(targetfile).getChannel();\n\t\t\ttarget.transferFrom(source, 0, source.size());\n\t\t}\n\t\tfinally{\n\t\t\tif(source!=null) source.close();\n\t\t\tif(target!=null) target.close();\n\t\t}\n\t\ttargetfile.setLastModified(sourcefile.lastModified());\n\t}", "@Override\n public void copyBlockdata(URI destination) throws IOException {\n getFileIoProvider().nativeCopyFileUnbuffered(\n getVolume(), getBlockFile(), new File(destination), true);\n }", "public abstract void doBackup();", "private static Path copyFileFromJar(String path) {\n try {\n Path file = Files.createTempFile(\"configme-\", \"-democonfig.yml\");\n Files.copy(TestUtils.class.getResourceAsStream(path), file, REPLACE_EXISTING);\n return file;\n } catch (IOException e) {\n throw new IllegalStateException(e);\n }\n }", "private void copyOrMoveFile(File file, File dir,boolean isCopy) throws IOException {\n File newFile = new File(dir, file.getName());\n FileChannel outChannel = null;\n FileChannel inputChannel = null;\n try {\n outChannel = new FileOutputStream(newFile).getChannel();\n inputChannel = new FileInputStream(file).getChannel();\n inputChannel.transferTo(0, inputChannel.size(), outChannel);\n inputChannel.close();\n if(!isCopy)\n file.delete();\n } finally {\n if (inputChannel != null) inputChannel.close();\n if (outChannel != null) outChannel.close();\n }\n }", "public interface AdditionalDestination {\n\n public void copy(FileObject fo, String path);\n\n public void delete(FileObject fo, String path);\n\n}", "@Test\n public void testDERIVATIVE_COMPRESS_CRC() throws IOException {\n// ZipMeVariables.getSINGLETON().setCRC___(true);\n// ZipMeVariables.getSINGLETON().setCOMPRESS___(true);\n// ZipMeVariables.getSINGLETON().setDERIVATIVE_COMPRESS_CRC___(true);\n\t Configuration.CRC=true;\n\t Configuration.COMPRESS=true;\n\t Configuration.DERIVATIVE_COMPRESS_CRC=true;\n if(Configuration.CRC && Configuration.COMPRESS && Configuration.DERIVATIVE_COMPRESS_CRC) { \n ZipOutputStream zout = new ZipOutputStream(new FileOutputStream(new File(\n homeDir + \"/files/src.zip\")));\n zout.crc.update(1);\n ZipEntry ze = new ZipEntry(\"C://\");\n zout.putNextEntry(ze);\n zout.hook41();\n assertTrue(zout.crc.crc == 0);\n\n zout.write(new byte[32], 0, 31);\n assertTrue(zout.size == 31);\n zout.closeEntry();\n assertTrue(ze.getCrc() == zout.crc.crc);\n }\n }", "@Test\n public void testPreserveTimeWithDeleteMiss() throws IOException {\n TaskAttemptContext taskAttemptContext = getTaskAttemptContext(config);\n JobContext jobContext = new JobContextImpl(\n taskAttemptContext.getConfiguration(),\n taskAttemptContext.getTaskAttemptID().getJobID());\n Configuration conf = jobContext.getConfiguration();\n\n FileSystem fs = null;\n try {\n OutputCommitter committer = new CopyCommitter(null, taskAttemptContext);\n fs = FileSystem.get(conf);\n String sourceBase = TestDistCpUtils.createTestSetup(\n fs, FsPermission.getDefault());\n String targetBase = TestDistCpUtils.createTestSetup(\n fs, FsPermission.getDefault());\n String targetBaseAdd = TestDistCpUtils.createTestSetup(\n fs, FsPermission.getDefault());\n fs.rename(new Path(targetBaseAdd), new Path(targetBase));\n\n final DistCpOptions options = new DistCpOptions.Builder(\n Collections.singletonList(new Path(sourceBase)), new Path(\"/out\"))\n .withSyncFolder(true).withDeleteMissing(true)\n .preserve(FileAttribute.TIMES).build();\n options.appendToConf(conf);\n final DistCpContext context = new DistCpContext(options);\n\n CopyListing listing = new GlobbedCopyListing(conf, CREDENTIALS);\n Path listingFile = new Path(\"/tmp1/\" + String.valueOf(rand.nextLong()));\n listing.buildListing(listingFile, context);\n\n conf.set(CONF_LABEL_TARGET_WORK_PATH, targetBase);\n conf.set(CONF_LABEL_TARGET_FINAL_PATH, targetBase);\n\n Path sourceListing = new Path(\n conf.get(DistCpConstants.CONF_LABEL_LISTING_FILE_PATH));\n SequenceFile.Reader sourceReader = new SequenceFile.Reader(conf,\n SequenceFile.Reader.file(sourceListing));\n Path targetRoot = new Path(targetBase);\n\n committer.commitJob(jobContext);\n checkDirectoryTimes(fs, sourceReader, targetRoot);\n\n //Test for idempotent commit\n committer.commitJob(jobContext);\n checkDirectoryTimes(fs, sourceReader, targetRoot);\n } finally {\n TestDistCpUtils.delete(fs, \"/tmp1\");\n conf.unset(DistCpConstants.CONF_LABEL_PRESERVE_STATUS);\n conf.set(DistCpConstants.CONF_LABEL_DELETE_MISSING, \"false\");\n }\n }", "public void copy() {\n\n\t}", "public static void backupToFile(String filePath) throws DatabaseWrapperOperationException {\r\n \t\t// create temporary directory which includes backup files\r\n \t\tString tempDirName = java.util.UUID.randomUUID().toString();\r\n \t\tFile tempDir = new File(System.getProperty(\"user.home\") + File.separator, tempDirName);\r\n \t\tif (!tempDir.exists() && !tempDir.mkdir()) {\r\n \t\t\tLOGGER.error(\"Could not create temp directory\");\r\n \t\t}\r\n \t\r\n \t\t// backup home directory\r\n \t\tFile tempAppDataDir = new File(tempDir.getPath());\r\n \t\tFile sourceAppDataDir = new File(FileSystemLocations.getActiveHomeDir());\r\n \t\ttry {\r\n \t\t\tString excludeRegex = LOCK_FILE_REGEX + REGEX_OR + DATABASE_FILE_REGEX; \r\n \t\t\tFileSystemAccessWrapper.copyDirectory(sourceAppDataDir, tempAppDataDir, excludeRegex);\r\n \t\t} catch (IOException e) {\r\n \t\t\tthrow new DatabaseWrapperOperationException(DBErrorState.ERROR_DIRTY_STATE,e);\r\n \t\t}\r\n \t\r\n \t\t// backup database to file\r\n \t\ttry (Statement statement = ConnectionManager.getConnection().createStatement()){\t\t\t\t\r\n \t\t\tstatement.executeUpdate(BACKUP_TO + \"'\" + tempDir.getPath() + File.separatorChar + FileSystemLocations.DATABASE_TO_RESTORE_NAME + \"'\");\r\n \t\t} catch (SQLException e) {\r\n \t\t\tthrow new DatabaseWrapperOperationException(DBErrorState.ERROR_DIRTY_STATE,e);\r\n \t\t}\r\n \t\r\n \t\t// zip the whole temp folder\r\n \t\tFileSystemAccessWrapper.zipFolderToFile(tempDir.getPath(), filePath);\r\n \t\r\n \t\t// delete temp folder\r\n \t\tFileSystemAccessWrapper.deleteDirectoryRecursively(tempDir);\r\n \t}", "private static void backupSafely(File file) throws IOException {\n File parent = file.getParentFile();\n String name = file.getName();\n\n File backup = new File(parent, name + \".bak\");\n for (int i = 2; backup.exists(); i++) {\n backup = new File(parent, name + \".\" + i + \".bak\");\n }\n\n log.info(\"Backing up \" + file + \" to \" + backup.getName());\n if (!file.renameTo(backup)) {\n log.warn(\"Renaming failed, so using copy to backup {}\", file);\n FileUtils.copyFile(file, backup);\n if (!file.delete()) {\n throw new IOException(\n \"Could not remove broken tar file \" + file);\n }\n }\n }", "static void setNotCopying(){isCopying=false;}", "private static URL createTempJar(Artifact artifact, Contribution contribution) throws IOException {\n FileOutputStream fileOutputStream = null;\n ZipInputStream zipInputStream = new ZipInputStream(new FileInputStream(new File(URI.create(contribution.getLocation()))));\n try {\n ZipEntry zipEntry = zipInputStream.getNextEntry();\n while (zipEntry != null) {\n if (artifact.getLocation().endsWith(zipEntry.getName())) {\n\n String tempName = (\"tmp.\" + artifact.getURI().substring(0, artifact.getURI().length() - 3)).replace('/', '.');\n File tempFile = File.createTempFile(tempName, \".jar\");\n tempFile.deleteOnExit();\n fileOutputStream = new FileOutputStream(tempFile);\n\n byte[] buf = new byte[2048];\n int n;\n while ((n = zipInputStream.read(buf, 0, buf.length)) > -1) {\n fileOutputStream.write(buf, 0, n);\n }\n\n fileOutputStream.close();\n zipInputStream.closeEntry();\n\n return tempFile.toURI().toURL();\n\n }\n zipEntry = zipInputStream.getNextEntry();\n }\n } finally {\n zipInputStream.close();\n if (fileOutputStream != null) {\n fileOutputStream.close();\n }\n }\n \n throw new IllegalStateException();\n }", "public void moveFile(String url) throws IOException {\n\n\t\tSystem.out.println(\"folder_temp : \" + folder_temp);\n\t\tPath Source = Paths.get(folder_temp + url);\n\t\tPath Destination = Paths.get(folder_photo + url);\n\t\tSystem.out.println(\"folder_photo : \" + folder_photo);\n\n\t\tif (Files.exists(Source)) {\n\t\t\t// Files.move(Source, Destination,\n\t\t\t// StandardCopyOption.REPLACE_EXISTING);\n\t\t\t// cpie du fichiet au lieu de deplaacer car il est enn coiurs\n\t\t\t// d'utilisation\n\t\t\tFiles.copy(Source, Destination, StandardCopyOption.REPLACE_EXISTING);\n\t\t}\n\n\t}", "@VisibleForTesting\n static File copyJavaResourcesOnly(File destinationFolder, File zip64File) throws IOException {\n File cacheDir = new File(destinationFolder, ZIP_64_COPY_DIR);\n File copiedZip = new File(cacheDir, zip64File.getName());\n FileUtils.mkdirs(copiedZip.getParentFile());\n\n try (ZipFile inFile = new ZipFile(zip64File);\n ZipOutputStream outFile =\n new ZipOutputStream(\n new BufferedOutputStream(new FileOutputStream(copiedZip)))) {\n\n Enumeration<? extends ZipEntry> entries = inFile.entries();\n while (entries.hasMoreElements()) {\n ZipEntry zipEntry = entries.nextElement();\n if (!zipEntry.getName().endsWith(SdkConstants.DOT_CLASS)\n && ZipEntryUtils.isValidZipEntryName(zipEntry)) {\n outFile.putNextEntry(new ZipEntry(zipEntry.getName()));\n try {\n ByteStreams.copy(\n new BufferedInputStream(inFile.getInputStream(zipEntry)), outFile);\n } finally {\n outFile.closeEntry();\n }\n }\n }\n }\n return copiedZip;\n }", "private static Path copyAvroFile(Path pathToCopy) throws IOException {\n Path targetPath = getTempFile().toPath();\n\n try (AvroReader<TestAvroSchema> reader = new AvroReader<>(TestAvroSchema.class, pathToCopy)) {\n AvroWriter.toAvroFile(reader, targetPath);\n }\n\n return targetPath;\n }", "private void cleanUpDestination(DownloadRequest request) {\n DownLoadLog.d(\"cleanupDestination() deleting \" + request.getUrl());\n File destinationFile = new File(request.getFileFullName());\n if (destinationFile.exists()) {\n destinationFile.delete();\n }\n }", "void backupFile(File targetfile, File backupdir) throws Exception{\n\t\tFile backupfile = new File(backupdir, targetfile.getName());\n\t\tcopyFile(targetfile, backupfile);\n\t\tbackups.put(targetfile, backupfile);\n\t\tbackupFiles++;\n\t}", "Decompress() {\r\n // this.destinationLocation = null ; //destinationLocation;\r\n }", "@Test\n void testRetryOnMissingManifest() throws Exception {\n Mockito\n .when(this.persistenceService.getJobArchiveLocation(JOB_ID))\n .thenReturn(Optional.of(ARCHIVE_LOCATION));\n\n try {\n this.archivedJobService.getArchivedJobMetadata(JOB_ID);\n } catch (final JobDirectoryManifestNotFoundException ignored) {\n Mockito\n .verify(this.persistenceService, Mockito.times(NUM_GET_RETRIES))\n .getJobArchiveLocation(JOB_ID);\n }\n }", "private static boolean copy(JFrame parent, String sourcename, String destname) {\n File destfileobj = new File(destname);\n if (destfileobj.isFile() && destfileobj.length() > 0)\n return false;\n boolean result = true;\n InputStream in = null;\n FileOutputStream out = null;\n try {\n in = Util.class.getClassLoader().getResourceAsStream(sourcename);\n if (in == null)\n return false; // This means the file is not relevant for this\n // setup, so we don't pop up a fatal dialog\n out = new FileOutputStream(destname);\n byte[] b = new byte[16384];\n while (true) {\n int numRead = in.read(b);\n if (numRead < 0)\n break;\n if (numRead > 0)\n out.write(b, 0, numRead);\n }\n } catch (IOException e) {\n result = false;\n }\n if (!close(out))\n result = false;\n if (!close(in))\n result = false;\n if (!result)\n OurDialog.fatal(parent, \"Error occurred in creating the file \\\"\" + destname + \"\\\"\");\n return true;\n }", "private static void copyFile(File in, File out)\n\t{\n\t\ttry\n\t\t{\n\t\t\tFileChannel inChannel = new\tFileInputStream(in).getChannel();\n\t\t\tFileChannel outChannel = new FileOutputStream(out).getChannel();\n\t\t\tinChannel.transferTo(0, inChannel.size(), outChannel);\n\t\t\tinChannel.close();\n\t\t\toutChannel.close();\t\t\t\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.copyFile(): \" + e);\n\t\t}\n\n\t}", "@Test\n public void testCopyToTempDir() throws IOException {\n File fileA = null;\n\n try {\n fileA = File.createTempFile(\"fileA\", \"fileA\");\n System.out.println(fileA.getAbsolutePath());\n FileOutputStream fos = new FileOutputStream(fileA);\n InputStream sis = new StringInputStream(\"some content\");\n StreamUtil.copy(sis, fos);\n sis.close();\n fos.close();\n\n copyToTempDir(fileA);\n\n File fileACopy = new File(new File(getTempDirPath()), fileA.getName());\n assertTrue(fileACopy.exists());\n assertTrue(fileACopy.isFile());\n } finally {\n boolean deleted = fileA.delete();\n assertTrue(deleted);\n }\n\n File dirB = null;\n\n try {\n dirB = Files.createTempDirectory(\"dirB\").toFile();\n System.out.println(dirB.getAbsolutePath());\n\n copyToTempDir(dirB);\n\n File dirBCopy = new File(new File(getTempDirPath()), dirB.getName());\n assertTrue(dirBCopy.exists());\n assertTrue(dirBCopy.isDirectory());\n } finally {\n boolean deleted = dirB.delete();\n assertTrue(deleted);\n }\n }", "public static void copyURLToFile(String urlPath, String distFilePath) {\n\t\tFile distFile = new File(distFilePath);\n\t\ttry {\n\t\t\tURL url = new URL(urlPath);\n\t\t\tif (!distFile.getParentFile().exists()) {\n\t\t\t\tdistFile.getParentFile().mkdirs();\n\t\t\t}\n\t\t\tFileUtils.copyURLToFile(url, distFile);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static void extractFile(ZipInputStream inStreamZip, FSDataOutputStream destDirectory) throws IOException {\n BufferedOutputStream bos = new BufferedOutputStream(destDirectory);\n byte[] bytesIn = new byte[BUFFER_SIZE];\n int read = 0;\n while ((read = inStreamZip.read(bytesIn)) != -1) {\n bos.write(bytesIn, 0, read);\n }\n bos.close();\n }", "private File copyResources(String srcFileName, File sourceDir, File destinationDir) throws MojoExecutionException {\n File srcFile = new File(sourceDir.getAbsolutePath()+File.separator+srcFileName);\n if (srcFile.exists()) {\n getLog().info(\"Copying \"+srcFile.getName()+\"...\");\n try {\n File destFile = new File(destinationDir.getAbsolutePath()+File.separator+srcFile.getName());\n if (srcFile.isDirectory()) {\n FileUtils.copyDirectory(srcFile, destFile, false);\n } else {\n FileUtils.copyFile(srcFile, destFile, false);\n }\n return destFile;\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Error copying resource '\"+srcFile.getName()+\"'\", ex);\n }\n } else {\n getLog().warn(\"No source file '\"+srcFile.getName()+\"' to copy\");\n return null;\n }\n }", "@SuppressWarnings(\"unchecked\")\n private boolean unzipFolder(File archiveFile, long compressedSize, File unzipDestFolder, String description, String[] outZipRootFolder, ITaskMonitor monitor) {\n description += \" (%1$d%%)\";\n ZipFile zipFile = null;\n try {\n zipFile = new ZipFile(archiveFile);\n boolean usingUnixPerm = SdkConstants.CURRENT_PLATFORM == SdkConstants.PLATFORM_DARWIN || SdkConstants.CURRENT_PLATFORM == SdkConstants.PLATFORM_LINUX;\n long incStep = compressedSize / NUM_MONITOR_INC;\n long incTotal = 0;\n long incCurr = 0;\n int lastPercent = 0;\n byte[] buf = new byte[65536];\n Enumeration<ZipArchiveEntry> entries = zipFile.getEntries();\n while (entries.hasMoreElements()) {\n ZipArchiveEntry entry = entries.nextElement();\n String name = entry.getName();\n name = name.replace('\\\\', '/');\n int pos = name.indexOf('/');\n if (pos < 0 || pos == name.length() - 1) {\n continue;\n } else {\n if (outZipRootFolder[0] == null && pos > 0) {\n outZipRootFolder[0] = name.substring(0, pos);\n }\n name = name.substring(pos + 1);\n }\n File destFile = new File(unzipDestFolder, name);\n if (name.endsWith(\"/\")) {\n if (!destFile.isDirectory() && !destFile.mkdirs()) {\n monitor.setResult(\"Failed to create temp directory %1$s\", destFile.getPath());\n return false;\n }\n continue;\n } else if (name.indexOf('/') != -1) {\n File parentDir = destFile.getParentFile();\n if (!parentDir.isDirectory()) {\n if (!parentDir.mkdirs()) {\n monitor.setResult(\"Failed to create temp directory %1$s\", parentDir.getPath());\n return false;\n }\n }\n }\n FileOutputStream fos = null;\n try {\n fos = new FileOutputStream(destFile);\n int n;\n InputStream entryContent = zipFile.getInputStream(entry);\n while ((n = entryContent.read(buf)) != -1) {\n if (n > 0) {\n fos.write(buf, 0, n);\n }\n }\n } finally {\n if (fos != null) {\n fos.close();\n }\n }\n if (usingUnixPerm && destFile.isFile()) {\n int mode = entry.getUnixMode();\n if ((mode & 0111) != 0) {\n setExecutablePermission(destFile);\n }\n }\n for (incTotal += entry.getCompressedSize(); incCurr < incTotal; incCurr += incStep) {\n monitor.incProgress(1);\n }\n int percent = (int) (100 * incTotal / compressedSize);\n if (percent != lastPercent) {\n monitor.setDescription(description, percent);\n lastPercent = percent;\n }\n if (monitor.isCancelRequested()) {\n return false;\n }\n }\n return true;\n } catch (IOException e) {\n monitor.setResult(\"Unzip failed: %1$s\", e.getMessage());\n } finally {\n if (zipFile != null) {\n try {\n zipFile.close();\n } catch (IOException e) {\n }\n }\n }\n return false;\n }", "public void extractPackage(String zipPath, String destPath) throws IOException {\n File destDir = new File(destPath);\n if(!destDir.exists()) {\n destDir.mkdir();\n }\n ZipInputStream zipIn = new ZipInputStream(new FileInputStream((zipPath)));\n ZipEntry entry = zipIn.getNextEntry();\n while(entry != null) {\n String filePath = destPath+File.separator+entry.getName();\n //filePath = filePath.replaceAll(\" \",\"_\");\n if(!entry.isDirectory()) {\n Log.i(\"extract\",\"Package Name: \"+entry.getName());\n Log.i(\"extract\",filePath);\n String[] temp = entry.getName().split(\"\\\\.\");\n if(validExtension(temp[temp.length-1].toLowerCase())) {\n extractFile(zipIn,filePath);\n }\n //extractFile(zipIn,filePath);\n } else {\n File dir = new File(filePath);\n dir.mkdirs();\n }\n zipIn.closeEntry();;\n entry = zipIn.getNextEntry();\n }\n zipIn.close();\n }", "@Test\n public void equalsBetweenBackupsFromIdenticalFiles(){\n //backup_1 and backup_1b contain exactly the same text\n InputStream url= getClass().getClassLoader().getResourceAsStream(\"backupTest/backup_1.json\");\n\n Backup backup_a = Backup.initFromFile(url);\n Backup backup_b = Backup.initFromFile(getClass().getClassLoader().getResourceAsStream(\"backupTest/backup_1.json\"));\n\n assertEquals(backup_a, backup_b);\n assertTrue(backup_a.equals(backup_b));\n }", "public String referenceDownloadedArchiveFolder() {\n if (tomcatArchive == null) {\n throw new IllegalStateException(\"No Tomcat Archive has been Selected!\");\n }\n return getDestinationFolder().getAbsolutePath() + File.separator + this.tomcatArchive.getName();\n }", "public File extractTo (File destination) throws IOException\n\t{\n\t\ttry (DirectoryStream<Path> directoryStream = Files\n\t\t\t.newDirectoryStream (zipfs.getPath (\"/\"));)\n\t\t{\n\t\t\tfor (Path file : directoryStream)\n\t\t\t{\n\t\t\t\textract (file, destination.toPath ());\n\t\t\t}\n\t\t}\n\t\treturn destination;\n\t}", "public String getArchiver();", "public static File unpackArchive(File theFile, File targetDir)\n\t\t\tthrows IOException {\n\t\tif (!theFile.exists()) {\n\t\t\tthrow new IOException(theFile.getAbsolutePath() + \" does not exist\");\n\t\t}\n\t\tif (!buildDirectory(targetDir)) {\n\t\t\tthrow new IOException(\"Could not create directory: \" + targetDir);\n\t\t}\n\t\tZipFile zipFile = new ZipFile(theFile);\n\t\tfor (Enumeration<? extends ZipEntry> entries = zipFile.entries(); entries.hasMoreElements();) {\n\t\t\tZipEntry entry = (ZipEntry) entries.nextElement();\n\t\t\tFile file = new File(targetDir, File.separator + entry.getName());\n\t\t\tif (!buildDirectory(file.getParentFile())) {\n\t\t\t\tthrow new IOException(\"Could not create directory: \"\n\t\t\t\t\t\t+ file.getParentFile());\n\t\t\t}\n\t\t\tif (!entry.isDirectory()) {\n\t\t\t\tcopyInputStream(zipFile.getInputStream(entry),\n\t\t\t\t\t\tnew BufferedOutputStream(new FileOutputStream(file)));\n\t\t\t} else {\n\t\t\t\tif (!buildDirectory(file)) {\n\t\t\t\t\tthrow new IOException(\"Could not create directory: \" + file);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tzipFile.close();\n\t\treturn theFile;\n\t}", "@Test\n public void shouldBeAbleToCloneFile() {\n graph.useWorkspace(\"otherWorkspace\");\n graph.create(\"/testFile\").with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FILE).orReplace().and();\n graph.create(\"/testFile/jcr:content\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.RESOURCE)\n .and(JcrLexicon.DATA, TEST_CONTENT.getBytes())\n .orReplace()\n .and();\n\n File newFile = new File(otherWorkspaceRoot, \"testFile\");\n assertContents(newFile, TEST_CONTENT);\n\n graph.useWorkspace(\"test\");\n graph.clone(\"/testFile\").fromWorkspace(\"otherWorkspace\").as(\"clonedFile\").into(\"/\").failingIfAnyUuidsMatch();\n File copiedFile = new File(testWorkspaceRoot, \"clonedFile\");\n assertContents(copiedFile, TEST_CONTENT);\n }" ]
[ "0.57536614", "0.5474218", "0.5432786", "0.5257477", "0.5249613", "0.5235603", "0.5229245", "0.5220978", "0.5141479", "0.51387036", "0.51138526", "0.5073541", "0.50217915", "0.50172573", "0.49674222", "0.49543032", "0.49470952", "0.49282664", "0.48943636", "0.48899457", "0.48779798", "0.48630127", "0.48613155", "0.4858105", "0.4843393", "0.48330355", "0.48276314", "0.4809845", "0.4806086", "0.48021543", "0.4797571", "0.47939017", "0.47908494", "0.47847018", "0.47833413", "0.47816154", "0.47748178", "0.47712505", "0.4769317", "0.4764154", "0.47597036", "0.4753591", "0.47464478", "0.47463286", "0.47420892", "0.47332135", "0.47051716", "0.47038412", "0.47035047", "0.469396", "0.46782944", "0.4674963", "0.4670826", "0.46677357", "0.46660382", "0.46643233", "0.46564433", "0.46525317", "0.46464205", "0.46459785", "0.46438432", "0.46436423", "0.4633909", "0.46271193", "0.46207806", "0.46173152", "0.46120742", "0.4601809", "0.45964587", "0.4591409", "0.4589622", "0.4588852", "0.45833045", "0.45806292", "0.45782226", "0.45682228", "0.4568209", "0.4567424", "0.45664018", "0.45623794", "0.45490363", "0.4536913", "0.4536351", "0.45252553", "0.45209414", "0.45204538", "0.45193225", "0.45107508", "0.4507765", "0.45049527", "0.4501556", "0.45007536", "0.4498664", "0.44976953", "0.44936603", "0.44917837", "0.44908252", "0.4488104", "0.44811502", "0.44769958" ]
0.57532716
1
Builds the transaction request.
public InitializationTransactionRequest(TransactionReference classpath, StorageReference manifest) { if (classpath == null) throw new IllegalArgumentException("classpath cannot be null"); if (manifest == null) throw new IllegalArgumentException("manifest cannot be null"); this.classpath = classpath; this.manifest = manifest; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private TransactionRequest initTransactionRequest() {\n TransactionRequest transactionRequestNew = new\n TransactionRequest(System.currentTimeMillis() + \"\", 20000);\n\n //set customer details\n transactionRequestNew.setCustomerDetails(initCustomerDetails());\n\n\n // set item details\n ItemDetails itemDetails = new ItemDetails(\"1\", 20000, 1, \"Trekking Shoes\");\n\n // Add item details into item detail list.\n ArrayList<ItemDetails> itemDetailsArrayList = new ArrayList<>();\n itemDetailsArrayList.add(itemDetails);\n transactionRequestNew.setItemDetails(itemDetailsArrayList);\n\n\n // Create creditcard options for payment\n CreditCard creditCard = new CreditCard();\n\n creditCard.setSaveCard(false); // when using one/two click set to true and if normal set to false\n\n// this methode deprecated use setAuthentication instead\n// creditCard.setSecure(true); // when using one click must be true, for normal and two click (optional)\n\n creditCard.setAuthentication(CreditCard.AUTHENTICATION_TYPE_3DS);\n\n // noted !! : channel migs is needed if bank type is BCA, BRI or MyBank\n// creditCard.setChannel(CreditCard.MIGS); //set channel migs\n creditCard.setBank(BankType.BCA); //set spesific acquiring bank\n\n transactionRequestNew.setCreditCard(creditCard);\n\n return transactionRequestNew;\n }", "public TxnRequestProto.TxnRequest.Builder getTxnrequestBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getTxnrequestFieldBuilder().getBuilder();\n }", "private OrderRequest buildRequestBody(OriginalOrder originalOrder) {\n String currency = \"MXN\";\n\n OrderRequest orderRequest = new OrderRequest();\n orderRequest.intent(originalOrder.getIntent());\n\n ApplicationContext applicationContext = new ApplicationContext()\n .brandName(originalOrder.getBrandName())\n .landingPage(originalOrder.getLandingPage())\n .shippingPreference(originalOrder.getShippingPreference());\n orderRequest.applicationContext(applicationContext);\n System.out.println(\"item Category: \"+ originalOrder.getItems().get(0).getCategory());\n List<PurchaseUnitRequest> purchaseUnitRequests = new ArrayList<PurchaseUnitRequest>();\n PurchaseUnitRequest purchaseUnitRequest = new PurchaseUnitRequest()\n .referenceId(originalOrder.getReferenceId())\n .description(originalOrder.getDescription())\n .customId(originalOrder.getCustomId())\n .softDescriptor(originalOrder.getSoftDescriptor())\n .amount(new AmountWithBreakdown().currencyCode(currency).value(originalOrder.getTotal())\n .breakdown(\n new AmountBreakdown().itemTotal(new Money().currencyCode(currency).value(originalOrder.getTotal()))\n .shipping(new Money().currencyCode(currency).value(originalOrder.getShipping()))\n .handling(new Money().currencyCode(currency).value(originalOrder.getHandling()))\n .taxTotal(new Money().currencyCode(currency).value(originalOrder.getTaxTotal()))\n .shippingDiscount(new Money().currencyCode(currency).value(originalOrder.getShippingDiscount()))))\n .items(new ArrayList<Item>() {\n {\n add(new Item()\n .name(originalOrder.getItems().get(0).getName())\n .description(originalOrder.getItems().get(0).getDescription())\n .sku(originalOrder.getItems().get(0).getSku())\n .unitAmount(new Money().currencyCode(currency).value(originalOrder.getItems().get(0).getUnitAmount()))\n .tax(new Money().currencyCode(currency).value(originalOrder.getItems().get(0).getTax()))\n .quantity(originalOrder.getItems().get(0).getQuantity())\n .category(originalOrder.getItems().get(0).getCategory()));\n }\n })\n .shipping(new ShippingDetails().name(new Name().fullName(originalOrder.getAddress().getName()))\n .addressPortable(new AddressPortable()\n .addressLine1(originalOrder.getAddress().getAddressLine1())\n .addressLine2(originalOrder.getAddress().getAddressLine2())\n .adminArea2(originalOrder.getAddress().getAdminArea2())\n .adminArea1(originalOrder.getAddress().getAdminArea1())\n .postalCode(originalOrder.getAddress().getPostalCode())\n .countryCode(originalOrder.getAddress().getCountryCode())));\n System.out.println(\"purchaseUnitRequest: \\n\" +\n \"\\ndescription \"+ purchaseUnitRequest.description() +\n \"\\nreferenceId \"+ purchaseUnitRequest.referenceId() +\n \"\\nsoftDescriptor \"+ purchaseUnitRequest.softDescriptor() +\n \"\\namount currencyCode \"+ purchaseUnitRequest.amount().currencyCode() +\n \"\\namount value\"+ purchaseUnitRequest.amount().value() +\n \"\\namount taxTotal \"+ purchaseUnitRequest.amount().breakdown().taxTotal().value() +\n \"\\namount handling \"+ purchaseUnitRequest.amount().breakdown().handling().value() +\n \"\\namount shipping \"+ purchaseUnitRequest.amount().breakdown().shipping().value() +\n \"\\namount shippingDiscount \"+ purchaseUnitRequest.amount().breakdown().shippingDiscount().value() +\n \"\\namount itemTotal \"+ purchaseUnitRequest.amount().breakdown().itemTotal().value()\n );\n purchaseUnitRequests.add(purchaseUnitRequest);\n orderRequest.purchaseUnits(purchaseUnitRequests);\n System.out.println(\"Request: \" + orderRequest.toString());\n return orderRequest;\n }", "@Override\n public ByteBuffer buildRequestPacket() {\n\n ByteBuffer sendData = ByteBuffer.allocate(128);\n sendData.putLong(this.connectionId); // connection_id - can't change (64 bits)\n sendData.putInt(getActionNumber()); // action we want to perform - connecting with the server (32 bits)\n sendData.putInt(getTransactionId()); // transaction_id - random int we make (32 bits)\n\n return sendData;\n }", "public void build() {\n\t\t\tRequest request = new Request();\n request.context = context;\n\t\t\trequest.requestType = requestType;\n\t\t\trequest.url = url;\n\t\t\trequest.envelope = envelope;\n\t\t\trequest.headers = headers;\n\n\t\t\trequest.responseListener = responseListener;\n\t\t\trequest.onValidateResponseListener = validateResponseListener;\n\n\t\t\trequest.isDebug = isDebug;\n\n\t\t\trequest.start();\n\t\t}", "public GetBulkStateRequest build() {\n GetBulkStateRequest request = new GetBulkStateRequest();\n request.setStoreName(this.storeName);\n request.setKeys(this.keys);\n request.setMetadata(this.metadata);\n request.setParallelism(this.parallelism);\n return request;\n }", "private Request build() {\n Request.Builder builder =\n new Request.Builder().cacheControl(new CacheControl.Builder().noCache().build());\n\n HttpUrl.Builder urlBuilder = HttpUrl.parse(url).newBuilder();\n for (Map.Entry<String, String> entry : queryParams.entrySet()) {\n urlBuilder = urlBuilder.addEncodedQueryParameter(entry.getKey(), entry.getValue());\n }\n builder = builder.url(urlBuilder.build());\n\n for (Map.Entry<String, String> entry : headers.entrySet()) {\n builder = builder.header(entry.getKey(), entry.getValue());\n }\n\n RequestBody body = (bodyBuilder == null) ? null : bodyBuilder.build();\n builder = builder.method(method.name(), body);\n\n return builder.build();\n }", "TxnRequestProto.TxnRequestOrBuilder getTxnrequestOrBuilder();", "TxnRequestProto.TxnRequest getTxnrequest();", "private void getTransactionListRequest() {\r\n\t\tBasicXmlDocument document = new BasicXmlDocument();\r\n\t\tdocument.parseString(\"<\" + TransactionType.GET_TRANSACTION_LIST.getValue()\r\n\t\t\t\t+ \" xmlns = \\\"\" + XML_NAMESPACE + \"\\\" />\");\r\n\r\n\t\taddAuthentication(document);\r\n\t\taddReportingBatchId(document);\r\n\r\n\t\tcurrentRequest = document;\r\n\t}", "private void getTransactionDetailsRequest() {\r\n\t\tBasicXmlDocument document = new BasicXmlDocument();\r\n\t\tdocument.parseString(\"<\" + TransactionType.GET_TRANSACTION_DETAILS.getValue()\r\n\t\t\t\t+ \" xmlns = \\\"\" + XML_NAMESPACE + \"\\\" />\");\r\n\r\n\t\taddAuthentication(document);\r\n\t\taddReportingTransactionId(document);\r\n\r\n\t\tcurrentRequest = document;\r\n\t}", "private static CheckoutRequest buildCheckoutRequest(\n MasterpassCheckoutRequest masterpassCheckoutRequest) {\n Amount amount = masterpassCheckoutRequest.getAmount();\n\n return new CheckoutRequest.Builder().amount(getAmount(amount))\n .currency(amount.getCurrencyCode())\n .cartId(masterpassCheckoutRequest.getCartId())\n .cvc2Support(masterpassCheckoutRequest.isCvc2support())\n .shippingLocationProfile(masterpassCheckoutRequest.getShippingProfileId())\n .suppress3ds(masterpassCheckoutRequest.isSuppress3Ds())\n .suppressShippingAddress(!masterpassCheckoutRequest.isShippingRequired())\n .validityPeriodMinutes(masterpassCheckoutRequest.getValidityPeriodMinutes())\n .unpredictableNumber(masterpassCheckoutRequest.getTokenization() != null\n ? masterpassCheckoutRequest.getTokenization().getUnpredictableNumber() : null)\n .cryptoOptions(buildCryptoOptions(masterpassCheckoutRequest.getTokenization()))\n .build();\n }", "private MarketDataRequest generateRequestFromAtom(MarketDataRequestAtom inAtom,\n MarketDataRequest inCompleteRequest)\n {\n return MarketDataRequestBuilder.newRequest().withAssetClass(inCompleteRequest.getAssetClass()).withSymbols(inAtom.getSymbol()).withContent(inAtom.getContent()).withExchange(inAtom.getExchange()).create();\n }", "public Request <String, ArrayList<Connection>> buildHttpContactRequest ()\n\t{\n\t\tHttpBuilder<String, ArrayList<Connection>> builder = new HttpBuilder<String, ArrayList<Connection>>(null, getApiKey());\n\t\t\n\t\tif (this.getAuthInfo() != null)\n\t\t\tbuilder.setAuthInfo(this.getAuthInfo().getBytes());\n\t\t\n\t\tif (this.getPath() != null)\n\t\t\tbuilder.setPath(this.getPath());\n\t\t\n\t\treturn new HttpContactRequest(builder);\n\t}", "private CartReceiptRequest buildRequestFromParameters(String[] requestParameters) throws ParseException {\n CartReceiptRequest receiptRequest = new CartReceiptRequest();\n LOGGER.debug(\"localeParam =\" + requestParameters[2] + \" \\t applicationId =\" + requestParameters[1]);\n /* Building request for the Reprint API */\n receiptRequest.setUserId(Long.valueOf(requestParameters[0]));\n receiptRequest.setApplicationId(Long.valueOf(requestParameters[1]));\n receiptRequest.setLocale(requestParameters[2]);\n receiptRequest.setCartId(Long.valueOf(requestParameters[3]));\n Long milliSeconds = Long.parseLong(requestParameters[4]);\n Date date = new Date(milliSeconds);\n receiptRequest.setCartDate(date);\n /* Returning constructed API request*/\n return receiptRequest;\n }", "public Builder setTxnrequest(\n TxnRequestProto.TxnRequest.Builder builderForValue) {\n if (txnrequestBuilder_ == null) {\n txnrequest_ = builderForValue.build();\n onChanged();\n } else {\n txnrequestBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "@Override\n\tpublic WebApiRequest getRequest() {\n\t\tString category = \"\";\n\t\tString destination = \"\";\n\t\tJSONObject para = new JSONObject();\n\t\tif (taskFlag == GET_BALANCE_DETAIL_FLAG) {\n\t\t\tcategory = CATEGORY_NAME;\n\t\t\tdestination = GET_BALANCE_Detail;\n\t\t\ttry {\n\t\t\t\tpara.put(\"ID\", getIntent().getIntExtra(\"BalanceID\", 0));\n\t\t\t\tpara.put(\"CardType\", getIntent().getIntExtra(\"CardType\", 1));\n\t\t\t\tpara.put(\"ChangeType\", getIntent().getIntExtra(\"ChangeType\", 0));\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tWebApiHttpHead header = mApp.createNeededCheckingWebConnectHead(category, destination, para.toString());\n\t\tWebApiRequest request = new WebApiRequest(category, destination,para.toString(), header);\n\t\treturn request;\n\t}", "public com.vodafone.global.er.decoupling.binding.request.SelfcareTransactionsRequest createSelfcareTransactionsRequest()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.SelfcareTransactionsRequestImpl();\n }", "public CreateOrderRequest() {\n\t\t_pcs = new PropertyChangeSupport(this);\n\t}", "protected void buildLocationSettingsRequest() {\n LocationSettingsRequest.Builder builder = new LocationSettingsRequest.Builder();\n builder.addLocationRequest(mLocationRequest);\n mLocationSettingsRequest = builder.build();\n\n }", "private static byte[] createRequest(String name, String requestType) {\n\n // Creates the header for the request\n byte[] header = createHeader();\n\n // Creates the query for the request\n byte[] query = createQuery(name, requestType);\n\n // Final Packet.\n byte[] request = new byte[header.length + query.length];\n\n // Byte Buffers provide useful utilities.\n ByteBuffer rqBuf = ByteBuffer.wrap(request);\n\n // Combine header and query\n rqBuf.put(header);\n rqBuf.put(query);\n\n return request;\n }", "public SveaRequest<SveaCloseOrder> prepareRequest() {\n String errors = validateRequest();\n \n if (!errors.equals(\"\")) {\n throw new SveaWebPayException(\"Validation failed\", new ValidationException(errors));\n }\n \n // build inspectable request object and insert into order builder\n SveaCloseOrder sveaCloseOrder = new SveaCloseOrder();\n sveaCloseOrder.Auth = getStoreAuthorization();\n SveaCloseOrderInformation orderInfo = new SveaCloseOrderInformation();\n orderInfo.SveaOrderId = order.getOrderId();\n sveaCloseOrder.CloseOrderInformation = orderInfo;\n \n SveaRequest<SveaCloseOrder> object = new SveaRequest<SveaCloseOrder>();\n object.request = sveaCloseOrder;\n \n return object;\n }", "public com.vodafone.global.er.decoupling.binding.request.SelfcareLiteTransactionsRequest createSelfcareLiteTransactionsRequest()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.SelfcareLiteTransactionsRequestImpl();\n }", "public Builder clearTxnrequest() {\n if (txnrequestBuilder_ == null) {\n txnrequest_ = TxnRequestProto.TxnRequest.getDefaultInstance();\n onChanged();\n } else {\n txnrequestBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000001);\n return this;\n }", "@Nonnull\n public static UBL23WriterBuilder <RequestForQuotationType> requestForQuotation ()\n {\n return UBL23WriterBuilder.create (RequestForQuotationType.class);\n }", "public TxnRequestProto.TxnRequestOrBuilder getTxnrequestOrBuilder() {\n if (txnrequestBuilder_ != null) {\n return txnrequestBuilder_.getMessageOrBuilder();\n } else {\n return txnrequest_;\n }\n }", "public String toXMLString() {\r\n\t\tswitch (this.transactionType) {\r\n\t\tcase GET_SETTLED_BATCH_LIST :\r\n\t\t\tgetSettledBatchListRequest();\r\n\t\t\tbreak;\r\n\t\tcase GET_TRANSACTION_DETAILS :\r\n\t\t\tgetTransactionDetailsRequest();\r\n\t\t\tbreak;\r\n\t\tcase GET_TRANSACTION_LIST :\r\n\t\t\tgetTransactionListRequest();\r\n\t\t\tbreak;\r\n\t\tcase GET_BATCH_STATISTICS :\r\n\t\t\tgetBatchStatisticsRequest();\r\n\t\t\tbreak;\r\n\t\tcase GET_UNSETTLED_TRANSACTION_LIST :\r\n\t\t\tgetUnsettledTransactionListRequest();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn currentRequest.dump();\r\n\t}", "public NewMemberRequest build() {\r\n return newMemberRequest;\r\n }", "private static CreditRequest getRequestDataFromCustomer() {\n\t\treturn new CreditRequest(0, new Vector<Warrantor>(), null, null, null, null);\n\t}", "public abstract DankSubmissionRequest build();", "@Override\n\tpublic String buildRequest(String timestamp) {\n\t\tMap<String, String> sParaTemp = new LinkedHashMap<String, String>();\n\t\tsParaTemp.put(\"userid\",userid);\n\t\tsParaTemp.put(\"serverid\",serverid+\"\");\n\t\tsParaTemp.put(\"ptime\",timestamp);\n\t\tsParaTemp.put(\"isadult\",isAdult+\"\");\n\t\tString prestr = MapToParam.createRequestParams(sParaTemp,\"&\"+KEY);\n\t\treturn LOGIN_PATH+\"&\"+prestr;\n\t}", "public Builder mergeTxnrequest(TxnRequestProto.TxnRequest value) {\n if (txnrequestBuilder_ == null) {\n if (((bitField0_ & 0x00000001) == 0x00000001) &&\n txnrequest_ != TxnRequestProto.TxnRequest.getDefaultInstance()) {\n txnrequest_ =\n TxnRequestProto.TxnRequest.newBuilder(txnrequest_).mergeFrom(value).buildPartial();\n } else {\n txnrequest_ = value;\n }\n onChanged();\n } else {\n txnrequestBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "public Builder setTxnrequest(TxnRequestProto.TxnRequest value) {\n if (txnrequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n txnrequest_ = value;\n onChanged();\n } else {\n txnrequestBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "public TxnRequestProto.TxnRequest getTxnrequest() {\n if (txnrequestBuilder_ == null) {\n return txnrequest_;\n } else {\n return txnrequestBuilder_.getMessage();\n }\n }", "private JsonObject getNewRequestBody(String[] arguments, int tickets, String uuid) throws NumberFormatException {\n JsonObject obj = new JsonObject();\n obj.addProperty(\"userid\", Integer.parseInt(arguments[2]));\n obj.addProperty(\"eventid\", Integer.parseInt(arguments[0]));\n obj.addProperty(\"tickets\", tickets);\n obj.addProperty(\"uuid\", uuid);\n\n return obj;\n }", "private ListTransactionsByFilterRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public RequestOperationBase.Request buildRequest(Account account, RequestCloudItem requestCloudItem) throws Exception {\n List<DBImage> subUbiImages;\n DBImage dBImage = requestCloudItem.dbCloud;\n String editUrl = CloudUrlProvider.getUrlProvider(dBImage.isShareItem(), dBImage.isVideoType()).getEditUrl(account.name, dBImage.getRequestId());\n new JSONObject();\n JSONObject jSONObject = dBImage.toJSONObject();\n if (dBImage.isUbiFocus() && (subUbiImages = UbiFocusUtils.getSubUbiImages(dBImage.isShareItem(), dBImage.getRequestId(), dBImage.getId())) != null) {\n JSONObject jSONObject2 = new JSONObject();\n for (DBImage next : subUbiImages) {\n jSONObject2.putOpt(String.valueOf(next.getSubUbiIndex()), next.toJsonObjectForSubUbi());\n }\n jSONObject2.putOpt(String.valueOf(dBImage.getSubUbiIndex()), dBImage.toJsonObjectForSubUbi());\n jSONObject.putOpt(\"ubiSubImageContentMap\", jSONObject2);\n }\n return new RequestOperationBase.Request.Builder().setUrl(editUrl).setMethod(2).setPostData(new JSONObject().put(\"content\", jSONObject)).setRetryTimes(requestCloudItem.otherRetryTimes).setNeedReRequest(false).build();\n }", "private MaskedWalletRequest createStripeMaskedWalletRequest() {\n List<LineItem> lineItems = ((HomeActivity)getActivity()).buildLineItems();\n\n // Calculate the cart total by iterating over the line items.\n String cartTotal = ((HomeActivity)getActivity()).calculateCartTotal(lineItems);\n\n MaskedWalletRequest.Builder builder = MaskedWalletRequest.newBuilder()\n .setMerchantName(\"Merchant Name\")\n .setPhoneNumberRequired(true)\n .setShippingAddressRequired(true)\n .setCurrencyCode(\"USD\")\n .setEstimatedTotalPrice(cartTotal)\n .setCart(Cart.newBuilder()\n .setCurrencyCode(\"USD\")\n .setTotalPrice(cartTotal)\n .setLineItems(lineItems)\n .build());\n\n builder.setPaymentMethodTokenizationParameters(mPaymentMethodParameters);\n\n return builder.build();\n }", "@Override\r\n\tpublic void buildSettlement() {\n\t\t\r\n\t}", "private com.google.protobuf.SingleFieldBuilder<\n TxnRequestProto.TxnRequest, TxnRequestProto.TxnRequest.Builder, TxnRequestProto.TxnRequestOrBuilder>\n getTxnrequestFieldBuilder() {\n if (txnrequestBuilder_ == null) {\n txnrequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n TxnRequestProto.TxnRequest, TxnRequestProto.TxnRequest.Builder, TxnRequestProto.TxnRequestOrBuilder>(\n txnrequest_,\n getParentForChildren(),\n isClean());\n txnrequest_ = null;\n }\n return txnrequestBuilder_;\n }", "private TradeMsgRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public static InitializationTransactionRequest from(UnmarshallingContext context) throws IOException {\n\t\tTransactionReference classpath = TransactionReference.from(context);\n\t\tStorageReference manifest = StorageReference.from(context);\n\n\t\treturn new InitializationTransactionRequest(classpath, manifest);\n\t}", "public void makeRequest() {\n Request newRequest = new Request();\n\n if (mProduct == null) {\n Toast.makeText(getContext(), \"BAD\", Toast.LENGTH_LONG).show();\n return;\n }\n\n newRequest.setClient(ParseUser.getCurrentUser());\n newRequest.setProduct(mProduct);\n newRequest.setBeaut(mBeaut);\n\n Date dateTime = new Date(selectedAppointmet.appDate.getTimeInMillis());\n newRequest.setDateTime(dateTime);\n // TODO: uncomment below line when dataset is clean and products have lengths\n// newRequest.setLength(mProduct.getLength());\n newRequest.setLength(1);\n newRequest.setSeat(selectedAppointmet.seatId);\n newRequest.setDescription(rComments.getText().toString());\n\n sendRequest(newRequest);\n }", "public Request<E, T> buildHttpPost ()\n\t{\n\t\treturn new HttpPostRequest<E, T>(this);\n\t}", "private void buildSettlement() {\r\n\t\t// client.setCurrentPhase(Constants.PHASE_3);\r\n\t\tlastSettlementNode = clickedNode;\r\n\t\tMessage message = new Message(clickedNode, true, null);\r\n\t\tsendMessage(message);\r\n\t}", "private TokenTransaction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public TransmissionProtocol.Request.Builder addRequestBuilder() {\n return getRequestFieldBuilder().addBuilder(\n TransmissionProtocol.Request.getDefaultInstance());\n }", "public TxnRequestProto.TxnRequestOrBuilder getTxnrequestOrBuilder() {\n return txnrequest_;\n }", "public Request() {\n this.setRequestId(newRequestId());\n this.setRequestValue(0.0);\n this.date = new Date();\n }", "private OffchainWithdrawalRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "public ServiceRequest() {\n super();\n this.addNamespaceToRequest = true;\n }", "private Builder(io.confluent.developer.InterceptTest.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.req_custid)) {\n this.req_custid = data().deepCopy(fields()[0].schema(), other.req_custid);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.req_message)) {\n this.req_message = data().deepCopy(fields()[1].schema(), other.req_message);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.req_json)) {\n this.req_json = data().deepCopy(fields()[2].schema(), other.req_json);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.req_remote_addr)) {\n this.req_remote_addr = data().deepCopy(fields()[3].schema(), other.req_remote_addr);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.req_uri)) {\n this.req_uri = data().deepCopy(fields()[4].schema(), other.req_uri);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.req_headers)) {\n this.req_headers = data().deepCopy(fields()[5].schema(), other.req_headers);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.req_method)) {\n this.req_method = data().deepCopy(fields()[6].schema(), other.req_method);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.result_json)) {\n this.result_json = data().deepCopy(fields()[7].schema(), other.result_json);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.result_post)) {\n this.result_post = data().deepCopy(fields()[8].schema(), other.result_post);\n fieldSetFlags()[8] = true;\n }\n }", "com.google.protobuf.ByteString\n getRequestBytes();", "private TeledonRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private WebSearchRequest createNextRequest() {\n\t\tWebSearchRequest _request = new WebSearchRequest(query);\n\t\t_request.setStart(BigInteger.valueOf(cacheStatus+1));\t\t\t\t\t//Yahoo API starts index with 1, not with 0\n\t\t_request.setResults(getFetchBlockSize());\n\t\treturn _request;\n\t}", "private RequestEnvelop(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private void buildRequestParameters(final Oauth2Client oauth2Client) {\n oauth2Client.addHeader(OauthConstants.OauthHeader.CORRELATION_ID,\n mRequestContext.getCorrelationId().toString());\n\n // add body parameters\n oauth2Client.addBodyParameter(OauthConstants.Oauth2Parameters.CLIENT_ID, mAuthRequestParameters.getClientId());\n final String scope = MsalUtils.convertSetToString(getDecoratedScope(mAuthRequestParameters.getScope()), \" \");\n oauth2Client.addBodyParameter(OauthConstants.Oauth2Parameters.SCOPE, scope);\n oauth2Client.addBodyParameter(OauthConstants.Oauth2Parameters.CLIENT_INFO, \"1\");\n setAdditionalOauthParameters(oauth2Client);\n\n // add slice parameters\n if (!MsalUtils.isEmpty(mAuthRequestParameters.getSliceParameters())) {\n final Map<String, String> sliceParameters = MsalUtils.decodeUrlToMap(mAuthRequestParameters.getSliceParameters(), \"&\");\n final Set<Map.Entry<String, String>> sliceParameterEntries = sliceParameters.entrySet();\n for (final Map.Entry<String, String> sliceParameterEntry : sliceParameterEntries) {\n oauth2Client.addQueryParameter(sliceParameterEntry.getKey(), sliceParameterEntry.getValue());\n }\n }\n }", "@Override\r\n\tprotected String requestText() {\n\t\tGuardarSustentoRequest guardarSustentoRequest = new GuardarSustentoRequest();\r\n\t\tguardarSustentoRequest.setCodigoActvidad(codigoActvidad);\r\n\t\tguardarSustentoRequest.setCodigoCliente(codigoCliente);\r\n\t\tguardarSustentoRequest.setCodigoPLan(codigoPLan);\r\n\t\tguardarSustentoRequest.setDescripcionActividad(descripcionActividad);\r\n\t\tguardarSustentoRequest.setFechaVisita(fechaVisita);\r\n\t\tguardarSustentoRequest.setTipoActividad(tipoActividad);\r\n\t\tguardarSustentoRequest.setUsuario(usuario);\r\n\t\tString request = JSONHelper.serializar(guardarSustentoRequest);\r\n\t\treturn request;\r\n\t}", "public Message build() {\n Objects.requireNonNull(transactionIdBytes);\n\n byte[] messageBytes = new byte[MESSAGE_LEN_HEADER + length];\n\n byte[] messageTypeBytes = createMessageType();\n System.arraycopy(messageTypeBytes, 0, messageBytes, MESSAGE_POS_TYPE, MESSAGE_LEN_TYPE);\n\n byte[] lengthBytes = Bytes.intToBytes(length);\n System.arraycopy(lengthBytes, 2, messageBytes, MESSAGE_POS_LENGTH, MESSAGE_LEN_LENGTH);\n\n byte[] magicCookieBytes = Bytes.intToBytes(MAGIC_COOKIE_FIXED_VALUE);\n System.arraycopy(\n magicCookieBytes, 0, messageBytes, MESSAGE_POS_MAGIC_COOKIE, MESSAGE_LEN_MAGIC_COOKIE);\n\n System.arraycopy(\n transactionIdBytes, 0, messageBytes, MESSAGE_POS_TRANSACTION_ID,\n MESSAGE_LEN_TRANSACTION_ID);\n transactionIdBytes = null;\n\n if (attributeBytes != null && attributeBytes.length > 0) {\n System.arraycopy(\n attributeBytes, 0, messageBytes, MESSAGE_LEN_HEADER, attributeBytes.length);\n attributeBytes = null;\n }\n\n return new Message(messageBytes);\n }", "public ContractRequest() {\n\t\tsuper(PREFERENCES_NAMES);\n\t}", "private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private void getSettledBatchListRequest() {\r\n\t\tBasicXmlDocument document = new BasicXmlDocument();\r\n\t\tdocument.parseString(\"<\" + TransactionType.GET_SETTLED_BATCH_LIST.getValue()\r\n\t\t\t\t+ \" xmlns = \\\"\" + XML_NAMESPACE + \"\\\" />\");\r\n\r\n\t\taddAuthentication(document);\r\n\t\taddReportingBatchListOptions(document);\r\n\r\n\t\tcurrentRequest = document;\r\n\t}", "public CTransaction( PointDBDataStore parent, OGCWebServiceRequest request ) {\r\n super( parent, request );\r\n config = parent.getConfiguration();\r\n pool = parent.getConnectionPool();\r\n }", "private String buildTransaction(final String type) {\n\t\treturn (type == null) ? String.valueOf(System.currentTimeMillis()) : type + System.currentTimeMillis();\n\t}", "private SendRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Nonnull\n public static UBL23WriterBuilder <TransportationStatusRequestType> transportationStatusRequest ()\n {\n return UBL23WriterBuilder.create (TransportationStatusRequestType.class);\n }", "public IAgreementRequest buildRequest(final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {\n return new com.microsoft.graph.requests.extensions.AgreementRequest(getRequestUrl(), getClient(), requestOptions);\n }", "private void initRequest()\n\t{\n\t\tthis.request = new RestClientReportRequest();\n\t\tRequestHelper.copyConfigsToRequest(this.getConfigs(), this.request);\n\t\tRequestHelper.copyParamsToRequest(this.getParams(), this.request);\n\t\t\n\t\tthis.performQuery();\n\t}", "public AccountKitGraphRequest buildGraphRequest(String graphPath, String unitID) {\n Bundle parameters = new Bundle();\n Utility.putNonNullString(parameters, \"unit_id\", unitID);\n return new AccountKitGraphRequest(null, graphPath, parameters, false, HttpMethod.GET);\n }", "@Override\n\tpublic ContentValues BuildParams() {\n\t\tContentValues nContentValues = new ContentValues();\n\t\tnContentValues.put(\"cpn_ident\", mCouponNumber);\n\t\tif (mIsFastBy) {\n\t\t\tnContentValues.put(\"is_fastbuy\", \"1\");\n\t\t}\n\t\treturn nContentValues;\n\t}", "public static TemplatePushRequest newRequest() {\n return new TemplatePushRequest();\n }", "public static com.networknt.taiji.token.TokenTransactions.Builder newBuilder() {\n return new com.networknt.taiji.token.TokenTransactions.Builder();\n }", "TransmissionProtocol.RequestOrBuilder getRequestOrBuilder(\n int index);", "private AdRequest getAdRequest()\n\t{\n\t\tAdRequest.Builder adBuilder = new AdRequest.Builder();\n\t\tAdRequest adRequest;\n\t\tif (!this.isForChildDirectedTreatment && extras != null)\n\t\t{\n\t\t\tadBuilder.addNetworkExtrasBundle(AdMobAdapter.class, extras);\n\t\t}\n\t\tif (this.isForChildDirectedTreatment)\n\t\t{\n\t\t\tadBuilder.tagForChildDirectedTreatment(true);\n\t\t}\n\t\tif (!isReal) {\n\t\t\tadBuilder.addTestDevice(AdRequest.DEVICE_ID_EMULATOR);\n\t\t\tadBuilder.addTestDevice(getAdmobDeviceId());\n\t\t}\n\t\tadRequest = adBuilder.build();\n\t\treturn adRequest;\n\t}", "private static SOAPMessage createSOAPRequest(String soapAction, int type, String orderId, JSONObject orderInfo)\n\t\t\tthrows Exception {\n\t\tSystem.out.println(\"createSOAPRequest\");\n\t\tMessageFactory messageFactory = MessageFactory.newInstance();\n\t\tSOAPMessage soapMessage = messageFactory.createMessage();\n\t\tsoapMessage.getSOAPHeader().detachNode();\n\t\tsoapMessage.getSOAPPart().getEnvelope().setPrefix(\"s\");\n\t\tsoapMessage.getSOAPPart().getEnvelope().removeNamespaceDeclaration(\"SOAP-ENV\");\n\t\t// soapMessage.getSOAPHeader().setPrefix(\"s\");\n\t\tsoapMessage.getSOAPBody().setPrefix(\"s\");\n\n\t\t// String authorization = new\n\t\t// sun.misc.BASE64Encoder().encode((userName+\":\"+password).getBytes());\n\n\t\tcreateSoapEnvelope(soapMessage, type, orderId, orderInfo);\n\n\t\tMimeHeaders headers = soapMessage.getMimeHeaders();\n\t\t// headers.addHeader(\"Authorization\", \"Basic \" + authorization);\n\t\theaders.addHeader(\"SOAPAction\", soapAction);\n\n\t\tsoapMessage.saveChanges();\n\n\t\t/* Print the request message, just for debugging purposes */\n\t\tSystem.out.println(\"Request SOAP Message:\");\n\t\tsoapMessage.writeTo(System.out);\n\t\tSystem.out.println(\"\\n\");\n\n\t\treturn soapMessage;\n\t}", "public com.vodafone.global.er.decoupling.binding.request.GetParentTransactionRequest createGetParentTransactionRequest()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.GetParentTransactionRequestImpl();\n }", "public Request<E, T> buildHttpGet ()\n\t{\n\t\treturn new HttpGetRequest<E,T>(this);\n\t}", "private static SOAPMessage createRequest(JobPosting jobPosting) throws SOAPException, ServerException {\n\n\t\tMessageFactory factory = MessageFactory.newInstance();\n\t\tSOAPMessage request = factory.createMessage();\n\t\tSOAPPart soapPart = request.getSOAPPart();\n\n\t\tSOAPEnvelope envelope = soapPart.getEnvelope();\n\t\tenvelope.addNamespaceDeclaration(SOAP_NAMESPACE_NAME,\n\t\t\t\tdestinationProperties.get(WEB_NAMESPACE_URL_DESTINATION_PROPERTY));\n\n\t\tSOAPBody soapBody = envelope.getBody();\n\t\tSOAPElement upload = soapBody.addChildElement(UPLOAD_SOAP_ELEMENT, SOAP_NAMESPACE_NAME);\n\t\tSOAPElement username = upload.addChildElement(USERNAME_SOAP_ELEMENT, SOAP_NAMESPACE_NAME);\n\t\tSOAPElement password = upload.addChildElement(PASSWORD_SOAP_ELEMENT, SOAP_NAMESPACE_NAME);\n\t\tSOAPElement data = upload.addChildElement(DATA_SOAP_ELEMENT, SOAP_NAMESPACE_NAME);\n\n\t\tusername.addTextNode(destinationProperties.get(USER_DESTINATION_PROPERTY));\n\t\tpassword.addTextNode(destinationProperties.get(PASSWORD_DESTINATION_PROPERTY));\n\n\t\tdata.addTextNode(jobPosting.toString());\n\n\t\trequest.saveChanges();\n\t\treturn request;\n\t}", "public List<RequestorTransactionDto> findAllRequest() throws ServiceException {\r\n\t\tList<RequestorTransaction> list = requestorTransactionRepo.findAll();\r\n\t\tList<RequestorTransactionDto> listDto = new ArrayList<>();\r\n\t\tfor (RequestorTransaction requestorTransaction : list) {\r\n\t\t\tRequestorTransactionDto dto = new RequestorTransactionDto();\r\n\t\t\tdto.setCategoryId(requestorTransaction.getCategoryId());\r\n\t\t\tdto.setFundNeeded(requestorTransaction.getFundNeeded());\r\n\t\t\tdto.setCreatedDate(requestorTransaction.getCreatedDate());\r\n\t\t\tdto.setModifiedDate(requestorTransaction.getModifiedDate());\r\n\t\t\tdto.setActive(true);\r\n\t\t\tdto.setRequestedBy(requestorTransaction.getRequestedBy());\r\n\t\t\tdto.setId(requestorTransaction.getId());\r\n\t\t\tlistDto.add(dto);\r\n\r\n\t\t\tif (listDto.isEmpty()) {\r\n\t\t\t\tthrow new ServiceException(MessageConstant.FUND_REQUEST);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn listDto;\r\n\t}", "public Request buildHttpRequest(Method method, Object args) {\n return post(method, args);\n }", "private CreateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private QuestRedeemRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public Transaction getDummyTransaction(String action) {\n\n\t\t// Long payerAccountNum = 111l;\n\t\tLong payerRealmNum = 0l;\n\t\tLong payerShardNum = 0l;\n\t\t// Long nodeAccountNum=123l;\n\t\tLong nodeRealmNum = 0l;\n\t\tLong nodeShardNum = 0l;\n\t\tlong transactionFee = 0l;\n\t\tTimestamp startTime =\n\t\t\t\tRequestBuilder.getTimestamp(Instant.now(Clock.systemUTC()).minusSeconds(13));\n\t\tDuration transactionDuration = RequestBuilder.getDuration(100);\n\t\tboolean generateRecord = false;\n\t\tString memo = \"UnitTesting\";\n\t\tint thresholdValue = 10;\n\t\tList<Key> keyList = new ArrayList<>();\n\t\tKeyPair pair = new KeyPairGenerator().generateKeyPair();\n\t\tbyte[] pubKey = ((EdDSAPublicKey) pair.getPublic()).getAbyte();\n\t\tKey akey =\n\t\t\t\tKey.newBuilder().setEd25519(ByteString.copyFromUtf8((MiscUtils.commonsBytesToHex(pubKey)))).build();\n\t\tPrivateKey priv = pair.getPrivate();\n\t\tkeyList.add(akey);\n\t\tlong initBal = 100;\n\t\tlong sendRecordThreshold = 5;\n\t\tlong receiveRecordThreshold = 5;\n\t\tboolean receiverSign = false;\n\t\tDuration autoRenew = RequestBuilder.getDuration(100);\n\t\t;\n\t\tlong proxyAccountNum = 12345l;\n\t\tlong proxyRealmNum = 0l;\n\t\tlong proxyShardNum = 0l;\n\t\tint proxyFraction = 10;\n\t\tint maxReceiveProxyFraction = 10;\n\t\tlong shardID = 0l;\n\t\tlong realmID = 0l;\n\n\t\tTransaction trx = null;\n\t\tSignatureList sigList = SignatureList.getDefaultInstance();\n\t\tTimestamp timestamp = TestHelper.getDefaultCurrentTimestampUTC();\n\n\t\t/**\n\t\t * SignatureList sigList = SignatureList.getDefaultInstance(); Transaction transferTx =\n\t\t * RequestBuilder.getCryptoTransferRequest( payer.getAccountNum(), payer.getRealmNum(),\n\t\t * payer.getShardNum(), nodeAccount.getAccountNum(), nodeAccount.getRealmNum(),\n\t\t * nodeAccount.getShardNum(), 800, timestamp, transactionDuration, false, \"test\", sigList,\n\t\t * payer.getAccountNum(), -100l, nodeAccount.getAccountNum(), 100l); transferTx =\n\t\t * TransactionSigner.signTransaction(transferTx, accountKeys.get(payer));\n\t\t */\n\n\t\tif (\"SolidityIDQuery\".equalsIgnoreCase(action)) {\n\t\t\ttrx = RequestBuilder.getCryptoTransferRequest(payerAccountId.getAccountNum(),\n\t\t\t\t\tpayerAccountId.getRealmNum(), payerAccountId.getShardNum(), nodeAccountId.getAccountNum(),\n\t\t\t\t\tnodeAccountId.getRealmNum(), nodeAccountId.getShardNum(), 800, timestamp,\n\t\t\t\t\ttransactionDuration, false, \"test\", sigList, payerAccountId.getAccountNum(), -100l,\n\t\t\t\t\tnodeAccountId.getAccountNum(), 100l);\n\t\t\t// trx = TransactionSigner.signTransaction(trx, account2keyMap.get(payerAccountId));\n\t\t}\n\n\t\tif (\"createContract\".equalsIgnoreCase(action)) {\n\t\t\tFileID fileID = FileID.newBuilder().setFileNum(9999l).setRealmNum(1l).setShardNum(2l).build();\n\n\t\t\ttrx = RequestBuilder.getCreateContractRequest(payerAccountId.getAccountNum(),\n\t\t\t\t\tpayerAccountId.getRealmNum(), payerAccountId.getShardNum(), nodeAccountId.getAccountNum(),\n\t\t\t\t\tnodeAccountId.getRealmNum(), nodeAccountId.getShardNum(), 50000000000l, timestamp,\n\t\t\t\t\ttransactionDuration, true, \"createContract\", DEFAULT_CONTRACT_OP_GAS, fileID,\n\t\t\t\t\tByteString.EMPTY, 0, transactionDuration,\n\t\t\t\t\tSignatureList.newBuilder().addSigs(\n\t\t\t\t\t\t\tSignature.newBuilder().setEd25519(ByteString.copyFrom(\"testsignature\".getBytes())))\n\t\t\t\t\t\t\t.build(),\n\t\t\t\t\t\"\");\n\t\t}\n\n\t\t// if(\"SolidityIDQuery\".equalsIgnoreCase(action)) {\n\t\t// long durationInSeconds = DAY_SEC * 30;\n\t\t// * Duration contractAutoRenew = Duration.newBuilder().setSeconds(durationInSeconds).build();\n\t\t// * Timestamp timestamp = TestHelper.getDefaultCurrentTimestampUTC();\n\t\t// * Duration transactionDuration = RequestBuilder.getDuration(30, 0);\n\t\t// * Transaction createContractRequest =\n\t\t// RequestBuilder.getCreateContractRequest(payerAccountId.getAccountNum(),\n\t\t// * payerAccountId.getRealmNum(), payerAccountId.getShardNum(), nodeAccountId.getAccountNum(),\n\t\t// * nodeAccountId.getRealmNum(), nodeAccountId.getShardNum(), 100l, timestamp,\n\t\t// transactionDuration, true, \"createContract\",\n\t\t// * DEFAULT_CONTRACT_OP_GAS, contractFile, ByteString.EMPTY, 0, contractAutoRenew,\n\t\t// * SignatureList.newBuilder()\n\t\t// *\n\t\t// .addSigs(Signature.newBuilder().setEd25519(ByteString.copyFrom(\"testsignature\".getBytes())))\n\t\t// * .build());\n\t\t// }\n\n\t\treturn trx;\n\n\t}", "private final static HttpRequest createRequest() {\r\n\r\n HttpRequest req = new BasicHttpRequest\r\n (\"GET\", \"/\", HttpVersion.HTTP_1_1);\r\n //(\"OPTIONS\", \"*\", HttpVersion.HTTP_1_1);\r\n\r\n return req;\r\n }", "private byte[] buildBytes() {\n byte[] message = new byte[4 + 2 + 2 + 1 + data.getLength()];\n System.arraycopy(id.getBytes(), 0, message, 0, 4);\n System.arraycopy(sq.getBytes(), 0, message, 4, 2);\n System.arraycopy(ack.getBytes(), 0, message, 6, 2);\n message[8] = flag.getBytes();\n System.arraycopy(data.getBytes(), 0, message, 9, data.getBytes().length);\n return message;\n }", "private ApplicationAddressReqType buildUpdateApplicationAddressChangeRequest(\n UpdateApplicationAddressForm updateApplicationAddressForm) {\n System.out.println(\"inside buildUpdateApplicationAddressChangeRequest\");\n ApplicationAddressReqType applicationAddressReqType = new ApplicationAddressReqType();\n AuditAdmin audit = new AuditAdmin();\n audit.setLastModifiedUser(\"erinkklein FQT Attor\");\n applicationAddressReqType.setAudit(audit);\n System.out.println(audit.getLastModifiedUser());\n \n LifecycleAdmin lifecycle= new LifecycleAdmin();\n lifecycle.setBeginDate(\"1595704744\");\n lifecycle.setEndDate(\"1595704744\");\n applicationAddressReqType.setLifeCycle(lifecycle);\n applicationAddressReqType.setChangeCustomerNumber(updateApplicationAddressForm.getCustomerNumber());\n applicationAddressReqType.setNoticeActionCd(\"addressChange\");\n applicationAddressReqType.setRegistrationNumber(updateApplicationAddressForm.getRegistrationNumber());\n applicationAddressReqType.setRequestIdentifier(updateApplicationAddressForm.getPairId());\n \n List<AddressChangeSupportData> addressSupportingDataArray = new ArrayList<AddressChangeSupportData>();\n \n AddressChangeSupportData addressSupportingData = new AddressChangeSupportData();\n addressSupportingData.setNameLineText(updateApplicationAddressForm.getCommonName());\n \n addressSupportingData.setSignature(updateApplicationAddressForm.getSubmitterSignature());\n addressSupportingDataArray.add(addressSupportingData);\n applicationAddressReqType.setSupportData(addressSupportingDataArray);\n System.out.println(applicationAddressReqType.getChangeCustomerNumber());\n \n return applicationAddressReqType;\n }", "private CalRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public StandardTransactionConfig build() {\n Preconditions.checkArgument(null != timestamp || null != timestampProvider);\n\n return new StandardTransactionConfig(metricsPrefix,\n timestampProvider, timestamp, customOptions);\n }", "private void buildOtherParams() {\n\t\tmClient.putRequestParam(\"attrType\", \"1\");\r\n\t}", "private exchange_key_rq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public CreateOrderRequest(CreateOrderRequest source) {\n if (source.ChannelCode != null) {\n this.ChannelCode = new String(source.ChannelCode);\n }\n if (source.MerchantAppId != null) {\n this.MerchantAppId = new String(source.MerchantAppId);\n }\n if (source.Amount != null) {\n this.Amount = new String(source.Amount);\n }\n if (source.TraceNo != null) {\n this.TraceNo = new String(source.TraceNo);\n }\n if (source.NotifyUrl != null) {\n this.NotifyUrl = new String(source.NotifyUrl);\n }\n if (source.ReturnUrl != null) {\n this.ReturnUrl = new String(source.ReturnUrl);\n }\n }", "Request(Request otherRequest) {\n this.reqNum = otherRequest.reqNum;\n this.reqText = otherRequest.reqText;\n this.reqExampleDocs = new ArrayList<ExampleDocument>(otherRequest.reqExampleDocs);\n }", "private CalRequest(\r\n\t\t\t\tcom.google.protobuf.GeneratedMessage.Builder<?> builder) {\r\n\t\t\tsuper(builder);\r\n\t\t\tthis.unknownFields = builder.getUnknownFields();\r\n\t\t}", "public UBERequest() {\r\n }", "public BoletoPaymentRequest() {\n\n }", "public Builder addAllRequest(\n java.lang.Iterable<? extends TransmissionProtocol.Request> values) {\n if (requestBuilder_ == null) {\n ensureRequestIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, request_);\n onChanged();\n } else {\n requestBuilder_.addAllMessages(values);\n }\n return this;\n }", "private AppoinmentCompleteRequest appoinmentCompleteRequest() {\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy hh:mm aa\", Locale.getDefault());\n String currentDateandTime = sdf.format(new Date());\n\n AppoinmentCompleteRequest appoinmentCompleteRequest = new AppoinmentCompleteRequest();\n appoinmentCompleteRequest.set_id(appoinmentid);\n appoinmentCompleteRequest.setCompleted_at(currentDateandTime);\n appoinmentCompleteRequest.setAppoinment_status(\"Completed\");\n appoinmentCompleteRequest.setDiagnosis(DiagnosisType);\n appoinmentCompleteRequest.setSub_diagnosis(SubDiagnosisType);\n appoinmentCompleteRequest.setDoctor_comment(Doctor_Comments);\n Log.w(TAG,\"appoinmentCompleteRequest\"+ \"--->\" + new Gson().toJson(appoinmentCompleteRequest));\n return appoinmentCompleteRequest;\n }", "protected void createLocationRequest() {\n\t\tmLocationRequest = new LocationRequest();\n\t\tmLocationRequest.setInterval(UPDATE_INTERVAL);\n\t\tmLocationRequest.setFastestInterval(FATEST_INTERVAL);\n\t\tmLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n\t\tmLocationRequest.setSmallestDisplacement(DISPLACEMENT);\n\t}" ]
[ "0.6566026", "0.65301883", "0.63475025", "0.6283832", "0.6240226", "0.6148443", "0.612176", "0.60446763", "0.60420424", "0.59780115", "0.58728445", "0.5801644", "0.576344", "0.57570136", "0.57535017", "0.57248", "0.5699934", "0.5689413", "0.56893265", "0.5684174", "0.5665516", "0.5654725", "0.56150603", "0.55998313", "0.5573617", "0.5572018", "0.55502975", "0.5545411", "0.5522455", "0.5500311", "0.54996175", "0.548571", "0.5480959", "0.5480272", "0.54764044", "0.54611725", "0.54542613", "0.5449918", "0.54427373", "0.54314274", "0.54290324", "0.54263735", "0.5398385", "0.53854996", "0.53826976", "0.5377913", "0.53587925", "0.5358592", "0.53569895", "0.5344233", "0.53264475", "0.5302827", "0.530008", "0.52915406", "0.52865523", "0.5286478", "0.52844685", "0.5280938", "0.52554923", "0.525453", "0.5248409", "0.5248409", "0.5248409", "0.5248409", "0.52415067", "0.52384615", "0.5232525", "0.5232424", "0.523061", "0.5217843", "0.52144754", "0.52098596", "0.5203123", "0.5200589", "0.51710814", "0.51624924", "0.51547235", "0.51472175", "0.5143097", "0.5140425", "0.51319635", "0.51307255", "0.51183164", "0.5114305", "0.51077425", "0.5101971", "0.50966364", "0.50749683", "0.5068474", "0.50652295", "0.5058851", "0.5050614", "0.50443566", "0.50421166", "0.5038239", "0.50311846", "0.5023409", "0.5023372", "0.502251", "0.5016325", "0.5012694" ]
0.0
-1
Factory method that unmarshals a request from the given stream. The selector has been already unmarshalled.
public static InitializationTransactionRequest from(UnmarshallingContext context) throws IOException { TransactionReference classpath = TransactionReference.from(context); StorageReference manifest = StorageReference.from(context); return new InitializationTransactionRequest(classpath, manifest); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TargetType deserialize(InputStream stream) throws IOException {\n ReaderType builder = newBuilder();\n deserialize(stream, builder);\n return builder.build();\n }", "T deserialize(InputStream stream) throws IOException;", "static Request parseRequest(InputStream in) throws IOException {\n\t\tRequestLine request = readRequestLine(in);\n\t\tHeaders headers = readHeaders(in);\n\t\tlong length = -1;\n\t\tInputStream body;\n\t\tif (HeaderValue.CHUNKED.equals(headers.get(HeaderName.TRANSFER_ENCODING))) {\n\t\t\tbody = new ChunkedInputStream(in);\n\t\t} else {\n\t\t\tString header = headers.get(HeaderName.CONTENT_LENGTH);\n\t\t\tlength = header == null ? 0 : Long.parseLong(header);\n\t\t\tbody = new LimitedInputStream(in, length);\n\t\t}\n\t\treturn new Request(request.method(), request.target(), request.path(), request.query(), headers, length, body);\n\t}", "InputStream deserialize(InputStream toDeserialize);", "private Object deserializeObjectFromRequest(String mimeInputFormat,\n\t\tIWebSerialDeserial serialDeserial)\n\t{\n\t\tWebRequest servletRequest = AbstractRestResource.getCurrentWebRequest();\n\n\t\treturn serialDeserial.requestToObject(servletRequest, parameterClass, mimeInputFormat);\n\t}", "@Override\n public DependencyGraphRequest readFrom(Class<DependencyGraphRequest> type,\n Type genericType,\n Annotation[] annotations,\n MediaType mediaType,\n MultivaluedMap<String, String> httpHeaders,\n InputStream entityStream) throws IOException, WebApplicationException {\n return new DependencyGraphRequest(0, 0);\n }", "Object deserialize(Class objClass, InputStream stream) throws IOException;", "private static Object unmarshal(Class<?> klass, InputSource is) {\r\n\t\ttry {\r\n\t\t\tUnmarshaller unmarshaller = createUnmarshaller(klass);\r\n\t\t\tObject o = unmarshaller.unmarshal(is);\r\n\t\t\treturn o;\r\n\t\t} catch (JAXBException e) {\r\n\t\t\t//\r\n\t\t}\r\n\t\treturn is;\r\n\t}", "public static Request parse(javax.xml.stream.XMLStreamReader reader)\r\n throws java.lang.Exception {\r\n Request object = new Request();\r\n\r\n int event;\r\n javax.xml.namespace.QName currentQName = null;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n\r\n try {\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n currentQName = reader.getName();\r\n\r\n if (reader.getAttributeValue(\r\n \"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0,\r\n fullTypeName.indexOf(\":\"));\r\n }\r\n\r\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\r\n \":\") + 1);\r\n\r\n if (!\"Request\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext()\r\n .getNamespaceURI(nsPrefix);\r\n\r\n return (Request) ExtensionMapper.getTypeObject(nsUri,\r\n type, reader);\r\n }\r\n }\r\n }\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n\r\n reader.next();\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"CardNo\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"CardNo\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"CardNo\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setCardNo(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"PatientName\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"PatientName\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"PatientName\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setPatientName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"Sex\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"Sex\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"Sex\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setSex(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"Birthday\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"Birthday\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"Birthday\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setBirthday(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"Age\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"Age\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"Age\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setAge(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"IDCardNo\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"IDCardNo\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"IDCardNo\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setIDCardNo(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"SecrityNo\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"SecrityNo\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"SecrityNo\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setSecrityNo(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"CardSerNo\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"CardSerNo\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"CardSerNo\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setCardSerNo(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"Blh\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"Blh\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"Blh\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setBlh(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"Amt\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"Amt\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"Amt\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setAmt(org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n // 1 - A start element we are not expecting indicates an invalid parameter was passed\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"Unexpected subelement \" + reader.getName());\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"CardMoney\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"CardMoney\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"CardMoney\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setCardMoney(org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n // 1 - A start element we are not expecting indicates an invalid parameter was passed\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"Unexpected subelement \" + reader.getName());\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"Address\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"Address\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"Address\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setAddress(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"Tel\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"Tel\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"Tel\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setTel(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"UserId\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"UserId\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"UserId\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setUserId(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"ActDate\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"ActDate\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"ActDate\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setActDate(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"ActTime\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"ActTime\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"ActTime\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setActTime(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"Notes\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"Notes\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"Notes\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setNotes(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"Vid\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"Vid\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"Vid\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setVid(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"Password\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"Password\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"Password\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setPassword(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"Delb\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"Delb\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"Delb\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setDelb(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"BGKSMC\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"BGKSMC\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"BGKSMC\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setBGKSMC(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"zjhm\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"zjhm\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"zjhm\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setZjhm(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"zjlx\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"zjlx\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"zjlx\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setZjlx(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"Dm\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"Dm\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"Dm\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setDm(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"PatSum\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"PatSum\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"PatSum\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setPatSum(org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n // 1 - A start element we are not expecting indicates an invalid parameter was passed\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"Unexpected subelement \" + reader.getName());\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"OperTime\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"OperTime\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"OperTime\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setOperTime(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"StartDay\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"StartDay\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"StartDay\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setStartDay(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"EndDay\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"EndDay\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"EndDay\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setEndDay(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"BankNo\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"BankNo\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"BankNo\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setBankNo(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"Bankaccount\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"Bankaccount\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"Bankaccount\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setBankaccount(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"Tranlist\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"Tranlist\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"Tranlist\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setTranlist(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"Transocode\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"Transocode\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"Transocode\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setTransocode(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"dylb\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"dylb\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"dylb\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setDylb(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"zxdhm\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"zxdhm\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"zxdhm\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setZxdhm(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"xmlx\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"xmlx\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"xmlx\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setXmlx(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"dyf\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"dyf\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"dyf\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setDyf(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"dysj\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"dysj\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"dysj\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setDysj(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"Mu_ddh\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"Mu_ddh\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"Mu_ddh\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setMu_ddh(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"Mu_zhh\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"Mu_zhh\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"Mu_zhh\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setMu_zhh(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"Mu_ddly\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"Mu_ddly\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"Mu_ddly\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setMu_ddly(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"DYPT\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"DYPT\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"DYPT\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setDYPT(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"operator_lx\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"operator_lx\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"operator_lx\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setOperator_lx(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"sfqm\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"sfqm\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"sfqm\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setSfqm(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"ks\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"ks\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"ks\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setKs(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"bed\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"bed\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"bed\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setBed(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement()) {\r\n // 2 - A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"Unexpected subelement \" + reader.getName());\r\n }\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "Object deserialize(InputStream input, Class type, String format,\r\n String contentEncoding);", "public void deserialize(InputStream stream, ReaderType target) throws IOException {\n processHeader(stream);\n deserializeContents(stream, target);\n }", "public NotificationBo parseNotificationRequestMessage(InputStream stream) throws IOException, XmlException;", "TargetType deserializeContents(InputStream stream) throws IOException {\n ReaderType builder = newBuilder();\n super.deserializeContents(stream, builder);\n return builder.build();\n }", "public static Request readFromParcel(Parcel in) {\n String callingPackageName = in.readString();\n int userId = in.readInt();\n Request request = new Request(in.readCharSequence(), in.readInt(), in.readInt(), (LocaleList) in.readParcelable(null), false, in.readBundle());\n request.setCallingPackageName(callingPackageName);\n request.setUserId(userId);\n return request;\n }", "void deserialize(@NotNull InputStream in) throws IOException;", "public abstract Object decode(InputStream is) ;", "Object create(InputStream in) throws IOException, SAXException, ParserConfigurationException;", "GeneratedMessage deserialize(InputStream in) throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException;", "public JsonParser createParser(InputStream in)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 809 */ IOContext ctxt = _createContext(in, false);\n/* 810 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "public static Getsfzy parse(javax.xml.stream.XMLStreamReader reader)\r\n throws java.lang.Exception {\r\n Getsfzy object = new Getsfzy();\r\n\r\n int event;\r\n javax.xml.namespace.QName currentQName = null;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n\r\n try {\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n currentQName = reader.getName();\r\n\r\n if (reader.getAttributeValue(\r\n \"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0,\r\n fullTypeName.indexOf(\":\"));\r\n }\r\n\r\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\r\n \":\") + 1);\r\n\r\n if (!\"Getsfzy\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext()\r\n .getNamespaceURI(nsPrefix);\r\n\r\n return (Getsfzy) ExtensionMapper.getTypeObject(nsUri,\r\n type, reader);\r\n }\r\n }\r\n }\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n\r\n reader.next();\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"request\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"request\").equals(\r\n reader.getName())) {\r\n object.setRequest(Request.Factory.parse(reader));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement()) {\r\n // 2 - A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"Unexpected subelement \" + reader.getName());\r\n }\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "protected JsonParser _createParser(InputStream in, IOContext ctxt)\n/* */ throws IOException\n/* */ {\n/* 1271 */ return new ByteSourceJsonBootstrapper(ctxt, in).constructParser(this._parserFeatures, this._objectCodec, this._byteSymbolCanonicalizer, this._rootCharSymbols, this._factoryFeatures);\n/* */ }", "public static IOR makeIOR(InputStream paramInputStream) {\n/* 98 */ return (IOR)new IORImpl(paramInputStream);\n/* */ }", "SAPL parse(InputStream saplInputStream);", "TypedRequest createTypedRequest();", "void addRequestExtension(Class fromClass, UnmarshalledExtension extension);", "static Bitmap decodeStream(InputStream p1, Request p2) throws IOException {\n }", "public static Object parse(Payload payload) {\n Class classType = PayloadRegistry.getClassByType(payload.getMetadata().getType());\n if (classType != null) {\n ByteString byteString = payload.getBody().getValue();\n ByteBuffer byteBuffer = byteString.asReadOnlyByteBuffer();\n Object obj = JacksonUtils.toObj(new ByteBufferBackedInputStream(byteBuffer), classType);\n if (obj instanceof Request) {\n ((Request) obj).putAllHeader(payload.getMetadata().getHeadersMap());\n }\n return obj;\n } else {\n throw new RemoteException(NacosException.SERVER_ERROR,\n \"Unknown payload type:\" + payload.getMetadata().getType());\n }\n \n }", "public <T> T deserialize(Class<T> type, InputStream is) throws SerializationException;", "Observable<SubscribeRequest> getSubscribeRequestStream();", "public static Payload convert(Request request) {\n \n Metadata newMeta = Metadata.newBuilder().setType(request.getClass().getSimpleName())\n .setClientIp(NetUtils.localIP()).putAllHeaders(request.getHeaders()).build();\n \n byte[] jsonBytes = convertRequestToByte(request);\n \n Payload.Builder builder = Payload.newBuilder();\n \n return builder\n .setBody(Any.newBuilder().setValue(UnsafeByteOperations.unsafeWrap(jsonBytes)))\n .setMetadata(newMeta).build();\n \n }", "public static SPARQLResult make(InputStream in, Model model)\n {\n return new XMLInputSAX(in, model) ;\n }", "@Override\n public final Object readFrom(final Class<Object> type,\n final Type genericType, final Annotation[] annotations,\n final MediaType mediaType,\n final MultivaluedMap<String, String> httpHeaders,\n final InputStream entityStream) throws IOException {\n InputStreamReader streamReader = new InputStreamReader(entityStream,\n \"UTF-8\");\n try {\n Type jsonType;\n if (type.equals(genericType)) {\n jsonType = type;\n } else {\n jsonType = genericType;\n }\n return getGson().fromJson(streamReader, jsonType);\n } finally {\n try {\n if (streamReader != null) {\n streamReader.close();\n }\n } catch (IOException e) {\n // ignore, nothing to be done here anyway\n }\n }\n }", "@Override\n public Model decode(InputStream inStream) throws CoderException, IOException {\n long length = VarInt.decodeLong(inStream);\n if (length < 0) {\n throw new IOException(\"Invalid length \" + length);\n }\n\n InputStream limited = new CloseShieldInputStream(ByteStreams.limit(inStream, length));\n\n return Rio.parse(limited, \"\", RDF_FORMAT);\n }", "private void streamSubMessageTypeSelector(RawMessage rawMessage) {\n switch (MESSAGE_TYPE_STREAM.get(rawMessage.getSubType())) {\n case ST_FIRMWARE_CONFIG_REQUEST:\n SensorLogUtils.setSensorStreamData(MESSAGE_TYPE_STREAM.get(rawMessage.getSubType()), rawMessage, null);\n this.processFirmwareConfigRequest(rawMessage);\n break;\n case ST_FIRMWARE_REQUEST:\n this.procressFirmwareRequest(rawMessage);\n break;\n case ST_FIRMWARE_CONFIG_RESPONSE:\n SensorLogUtils.setSensorStreamData(MESSAGE_TYPE_STREAM.get(rawMessage.getSubType()), rawMessage, null);\n break;\n case ST_FIRMWARE_RESPONSE:\n break;\n case ST_IMAGE:\n break;\n case ST_SOUND:\n break;\n default:\n _logger.debug(\"Stream Message[type:{},payload:{}], This type not be implemented yet\",\n MESSAGE_TYPE_STREAM.get(rawMessage.getSubType()),\n rawMessage.getPayload());\n break;\n }\n }", "private Request() {}", "private Request() {}", "MockRequest.Filter requestFilter() {\n String className = get(REQUEST_FILTER);\n if (isEmpty(className))\n return null;\n\n try {\n return (MockRequest.Filter) Class.forName(className).newInstance();\n } catch (Exception e) {\n info(e, \"Couldn't deserialize request filter\");\n return null;\n }\n }", "public static LoginMessageRequest parse(\n javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n LoginMessageRequest object = new LoginMessageRequest();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n if (reader.getAttributeValue(\n \"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\") != null) {\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n\n if (fullTypeName != null) {\n java.lang.String nsPrefix = null;\n\n if (fullTypeName.indexOf(\":\") > -1) {\n nsPrefix = fullTypeName.substring(0,\n fullTypeName.indexOf(\":\"));\n }\n\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\n \":\") + 1);\n\n if (!\"LoginMessageRequest\".equals(type)) {\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext()\n .getNamespaceURI(nsPrefix);\n\n return (LoginMessageRequest) ExtensionMapper.getTypeObject(nsUri,\n type, reader);\n }\n }\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n reader.next();\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Messages\",\n \"Login\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n object.setLogin(null);\n reader.next();\n\n reader.next();\n } else {\n object.setLogin(LoginModel.Factory.parse(reader));\n\n reader.next();\n }\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Messages\",\n \"Name\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (!\"true\".equals(nillableValue) &&\n !\"1\".equals(nillableValue)) {\n java.lang.String content = reader.getElementText();\n\n object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\n content));\n } else {\n reader.getElementText(); // throw away text nodes if any.\n }\n\n reader.next();\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement()) {\n // 2 - A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" + reader.getName());\n }\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static TerminalDownloadQueryForDay parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n TerminalDownloadQueryForDay object =\n new TerminalDownloadQueryForDay();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"terminalDownloadQueryForDay\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (TerminalDownloadQueryForDay)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setRequestXml(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setRequestXml(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "MovilizerRequest getRequestFromString(String requestString);", "@SuppressWarnings(\"unchecked\")\n public BaseType deserialize(InputStream stream) throws IOException {\n processHeader(stream);\n\n // Decode the object type and look up its serializer.\n byte type = (byte) stream.read();\n if (type < 0) {\n throw new EOFException();\n }\n\n val si = this.serializersById.get(type);\n ensureCondition(si != null, \"No serializer found for object type %s.\", type);\n\n // Deserialize contents.\n return (BaseType) si.serializer.deserializeContents(stream);\n }", "public static final RFCMessageStructure parseInputStream (InputStream in, StructureParserOutputStream out, int bufSize) throws IOException\n {\n return parseInputStream(in, out, bufSize, (-1L));\n }", "public XMLDecoder xmlDecoder(InputStream in) {\n return configure(new XMLDecoder(in));\n }", "public static Request parseRequest(BufferedReader input) throws IOException, IllegalStateException, SocketException\n {\n Request request = new Request();\n String line;\n Matcher matcher;\n\n // Parsing request method & uri\n if ((line = input.readLine()) == null) throw new SocketException(\"Client disconnected\");\n\n matcher = regexMethod.matcher(line);\n if (matcher.find()) {\n request.method = RtspMethod.valueOf(matcher.group(1));\n request.uri = matcher.group(2);\n LogHelper.e(TAG, \"Line: \" + line);\n LogHelper.e(TAG, \"Parsing request method & uri: \" + request.method + \" --> \" + request.uri);\n\n // Parsing headers of the request\n while ((line = input.readLine()) != null && line.length() > 3) {\n matcher = regexHeader.matcher(line);\n if (matcher.find()) {\n request.headers.put(matcher.group(1).toLowerCase(Locale.US), matcher.group(2));\n LogHelper.e(TAG, \"Parsing headers of the request: \" + line + \" | \" +\n matcher.group(1).toLowerCase(Locale.US) + \" --> \" + matcher.group(2));\n }\n }\n if (line == null) throw new SocketException(\"Client disconnected\");\n\n // It's not an error, it's just easier to follow what's happening in logcat with the request in red\n LogHelper.e(TAG, request.method + \" \" + request.uri);\n }\n\n return request;\n }", "private SIFPreprocessorSpringStreamInput(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public AdvancedDeserializer6_0(\r\n\t\t\tInputStream inputStream,\r\n\t\t\tboolean isCurlStyle, Class<?> cls\r\n\t) throws IOException, SerializeException {\r\n\t\tsuper(inputStream, isCurlStyle, cls);\r\n\t}", "public UUDecoder(InputStream in) {\n super(in);\n headerPending = true;\n }", "public Object build( URI uri ) throws DecodingException, IOException\r\n {\r\n Document document = DOCUMENT_BUILDER.parse( uri );\r\n Element root = document.getDocumentElement();\r\n Resolver resolver = new SimpleResolver();\r\n return decode( root , resolver );\r\n }", "public static TerminalDownloadQueryForMonth parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n TerminalDownloadQueryForMonth object =\n new TerminalDownloadQueryForMonth();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"terminalDownloadQueryForMonth\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (TerminalDownloadQueryForMonth)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setRequestXml(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setRequestXml(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static final RFCMessageStructure parseInputStream (InputStream in, StructureParserOutputStream out, byte[] workBuf, int offset, int bufSize) throws IOException\n {\n return parseInputStream(in, out, workBuf, offset, bufSize, (-1L));\n }", "public static gestionVoeu.EtudiantFactory read(org.omg.CORBA.portable.InputStream istream)\n {\n return(gestionVoeu.EtudiantFactory)istream.read_Object(gestionVoeu._EtudiantFactoryStub.class);\n }", "public <T> MockHttpServletRequestBuilder feed(\n MockHttpServletRequestBuilder request,\n final T payload,\n final MediaType mediaType) {\n if (payload == null) {\n return request;\n }\n\n final SerializationHelper.ByteArrayHttpOutputMessage msg = conv.outputMessage(payload, mediaType);\n return request\n .headers(msg.headers)\n .content(msg.out.toByteArray());\n }", "public FormReader(Logger logger, String query) {\r\n this.decode = false;\r\n this.logger = logger;\r\n this.stream = new ByteArrayInputStream(query.getBytes());\r\n }", "Stream<ErrorMessage> select(ErrorSelector selector);", "public <T, U> U newRequest(final String action, final String body, final Class<T> clazz,\n\t\t\tfinal Function<T, U> mapper) {\n\t\tfinal var request = newRequest(action, body);\n\t\ttry (var curl = new CurlProcessor()) {\n\t\t\tif (curl.process(request)) {\n\t\t\t\treturn mapper.apply(objectMapper.readValue(request.getResponse(), clazz));\n\t\t\t}\n\t\t} catch (final IOException e) {\n\t\t\tlog.info(\"Unable to parse Cognito response {}\", request.getResponse(), e);\n\t\t}\n\t\treturn null;\n\t}", "public static LoginMessageRequestE parse(\n javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n LoginMessageRequestE object = new LoginMessageRequestE();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n\n return object;\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n while (!reader.isEndElement()) {\n if (reader.isStartElement()) {\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Messages\",\n \"LoginMessageRequest\").equals(\n reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n object.setLoginMessageRequest(null);\n reader.next();\n } else {\n object.setLoginMessageRequest(LoginMessageRequest.Factory.parse(\n reader));\n }\n } // End of if for expected property start element\n\n else {\n // 3 - A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" +\n reader.getName());\n }\n } else {\n reader.next();\n }\n } // end of while loop\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public void handleRequest(ExtractionRequest request);", "public static <F> F fieldSetFromByteStream(Supplier<F> supplier, Map<String,Field<?>> fieldByPrefixedName,\n\t\t\tInputStream is) throws IOException{\n\t\tint databeanLength = VarInt.fromInputStream(is).getValue();\n\t\treturn fieldSetFromByteStreamKnownLength(supplier, fieldByPrefixedName, is, databeanLength);\n\t}", "protected abstract void populateBeanFromRequest(BeanType bean, Request request);", "public static Input parse(javax.xml.stream.XMLStreamReader reader)\r\n throws java.lang.Exception {\r\n Input object = new Input();\r\n\r\n int event;\r\n javax.xml.namespace.QName currentQName = null;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n\r\n try {\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n currentQName = reader.getName();\r\n\r\n if (reader.getAttributeValue(\r\n \"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0,\r\n fullTypeName.indexOf(\":\"));\r\n }\r\n\r\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\r\n \":\") + 1);\r\n\r\n if (!\"Input\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext()\r\n .getNamespaceURI(nsPrefix);\r\n\r\n return (Input) ExtensionMapper.getTypeObject(nsUri,\r\n type, reader);\r\n }\r\n }\r\n }\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n\r\n reader.next();\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"SourceName\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"SourceName\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"SourceName\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setSourceName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"OpNum\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"OpNum\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"OpNum\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setOpNum(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"OpControl\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"OpControl\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"OpControl\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setOpControl(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"OpData\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"OpData\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"OpData\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setOpData(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"Picture\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"Picture\").equals(\r\n reader.getName())) {\r\n object.setPicture(org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement(\r\n reader));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement()) {\r\n // 2 - A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"Unexpected subelement \" + reader.getName());\r\n }\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "public void parse(InputStream stream, HandlerBase handler, String systemId)\n throws SAXException, IOException {\n if (stream == null) {\n throw new IllegalArgumentException(\"stream must not be null\");\n }\n InputSource source = new InputSource(stream);\n if (systemId != null) {\n source.setSystemId(systemId);\n }\n parse(source, handler);\n }", "public interface Request {\n public String toXml();\n\n\n public String getHandlerId();\n\n\n public String getRequestId();\n}", "public com.vodafone.global.er.decoupling.binding.request.SelfcareMicroServicesRequest createSelfcareMicroServicesRequest()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.SelfcareMicroServicesRequestImpl();\n }", "public static Document GetDocumentFromInputStream(InputStream stream) {\n\t\tDocument doc;\n\n\t\ttry {\n\t\t\tDocumentBuilderFactory xmlFactory = DocumentBuilderFactory\n\t\t\t\t\t.newInstance();\n\t\t\txmlFactory.setNamespaceAware(true);\n\t\t\tDocumentBuilder builder = xmlFactory.newDocumentBuilder();\n\t\t\tdoc = builder.parse(stream);\n\t\t} catch (Exception e) {\n\t\t\tdoc = null;\n\t\t}\n\n\t\treturn doc;\n\t}", "public static final RFCMessageStructure parseInputStream (InputStream in, StructureParserOutputStream out, int bufSize, long copySize) throws IOException\n {\n return parseInputStream(in, out, new byte[bufSize], 0, bufSize, copySize);\n }", "Holder deser(String s) throws Exception {\n return (Holder)(new XStreamSerializer().deserialize(new StringReader(s)));\n }", "@Override\n public StreamInitiation parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment)\n throws IOException, XmlPullParserException, SmackParsingException\n {\n boolean done = false;\n\n // si\n String id = parser.getAttributeValue(\"\", \"id\");\n String mimeType = parser.getAttributeValue(\"\", \"mime-type\");\n StreamInitiation initiation = new StreamInitiation();\n\n // file\n String name = null;\n String size = null;\n String hash = null;\n String date = null;\n String desc = null;\n Thumbnail thumbnail = null;\n boolean isRanged = false;\n\n // feature\n DataForm form = null;\n DataFormProvider dataFormProvider = new DataFormProvider();\n\n XmlPullParser.Event eventType;\n String elementName;\n String namespace;\n while (!done) {\n eventType = parser.next();\n elementName = parser.getName();\n namespace = parser.getNamespace();\n if (eventType == XmlPullParser.Event.START_ELEMENT) {\n if (elementName.equals(\"file\")) {\n name = parser.getAttributeValue(\"\", \"name\");\n size = parser.getAttributeValue(\"\", \"size\");\n hash = parser.getAttributeValue(\"\", \"hash\");\n date = parser.getAttributeValue(\"\", \"date\");\n }\n else if (elementName.equals(\"desc\")) {\n desc = parser.nextText();\n }\n else if (elementName.equals(\"range\")) {\n isRanged = true;\n }\n else if (elementName.equals(\"x\") && namespace.equals(\"jabber:x:data\")) {\n form = dataFormProvider.parse(parser);\n }\n else if (elementName.equals(\"thumbnail\")) {\n thumbnail = new Thumbnail(parser);\n }\n }\n else if (eventType == XmlPullParser.Event.END_ELEMENT) {\n if (elementName.equals(\"si\")) {\n done = true;\n }\n // The name-attribute is required per XEP-0096, so ignore the IQ if the name is not\n // set to avoid exceptions. Particularly,\n // the SI response of Empathy contains an invalid, empty file-tag.\n else if (elementName.equals(\"file\") && (name != null)) {\n long fileSize = 0;\n size = StringUtils.returnIfNotEmptyTrimmed(size);\n if (size != null) {\n try {\n fileSize = Long.parseLong(size);\n } catch (NumberFormatException e) {\n Timber.w(e, \"Received an invalid file size, continuing with fileSize set to 0\");\n }\n }\n ThumbnailFile file = new ThumbnailFile(name, fileSize);\n file.setHash(hash);\n\n if (date != null) {\n try {\n file.setDate(XmppDateTime.parseDate(date));\n } catch (ParseException e) {\n Timber.w(\"Unknown dateformat on incoming file transfer: %s\", date);\n }\n }\n else {\n file.setDate(new Date());\n }\n\n if (thumbnail != null)\n file.setThumbnail(thumbnail);\n\n file.setDesc(desc);\n file.setRanged(isRanged);\n initiation.setFile(file);\n }\n }\n }\n initiation.setSessionID(id);\n initiation.setMimeType(mimeType);\n initiation.setFeatureNegotiationForm(form);\n return initiation;\n }", "Request _request(String operation);", "public CreateLivePullStreamTaskRequest(CreateLivePullStreamTaskRequest source) {\n if (source.SourceType != null) {\n this.SourceType = new String(source.SourceType);\n }\n if (source.SourceUrls != null) {\n this.SourceUrls = new String[source.SourceUrls.length];\n for (int i = 0; i < source.SourceUrls.length; i++) {\n this.SourceUrls[i] = new String(source.SourceUrls[i]);\n }\n }\n if (source.DomainName != null) {\n this.DomainName = new String(source.DomainName);\n }\n if (source.AppName != null) {\n this.AppName = new String(source.AppName);\n }\n if (source.StreamName != null) {\n this.StreamName = new String(source.StreamName);\n }\n if (source.StartTime != null) {\n this.StartTime = new String(source.StartTime);\n }\n if (source.EndTime != null) {\n this.EndTime = new String(source.EndTime);\n }\n if (source.Operator != null) {\n this.Operator = new String(source.Operator);\n }\n if (source.PushArgs != null) {\n this.PushArgs = new String(source.PushArgs);\n }\n if (source.CallbackEvents != null) {\n this.CallbackEvents = new String[source.CallbackEvents.length];\n for (int i = 0; i < source.CallbackEvents.length; i++) {\n this.CallbackEvents[i] = new String(source.CallbackEvents[i]);\n }\n }\n if (source.VodLoopTimes != null) {\n this.VodLoopTimes = new String(source.VodLoopTimes);\n }\n if (source.VodRefreshType != null) {\n this.VodRefreshType = new String(source.VodRefreshType);\n }\n if (source.CallbackUrl != null) {\n this.CallbackUrl = new String(source.CallbackUrl);\n }\n if (source.ExtraCmd != null) {\n this.ExtraCmd = new String(source.ExtraCmd);\n }\n if (source.Comment != null) {\n this.Comment = new String(source.Comment);\n }\n if (source.ToUrl != null) {\n this.ToUrl = new String(source.ToUrl);\n }\n if (source.BackupSourceType != null) {\n this.BackupSourceType = new String(source.BackupSourceType);\n }\n if (source.BackupSourceUrl != null) {\n this.BackupSourceUrl = new String(source.BackupSourceUrl);\n }\n if (source.WatermarkList != null) {\n this.WatermarkList = new PullPushWatermarkInfo[source.WatermarkList.length];\n for (int i = 0; i < source.WatermarkList.length; i++) {\n this.WatermarkList[i] = new PullPushWatermarkInfo(source.WatermarkList[i]);\n }\n }\n if (source.VodLocalMode != null) {\n this.VodLocalMode = new Long(source.VodLocalMode);\n }\n if (source.RecordTemplateId != null) {\n this.RecordTemplateId = new String(source.RecordTemplateId);\n }\n }", "Stream<In> getInputStream();", "public static final RFCMessageStructure parseInputStream (InputStream in, byte[] workBuf, int offset, int bufSize, long copySize) throws IOException\n {\n return parseInputStream(in, new StructureParserOutputStream(), workBuf, offset, bufSize, copySize);\n }", "Object create(InputSource is) throws IOException, SAXException, ParserConfigurationException;", "public static ServletInputStream extractRequestContent(final SubLocatorParameter param) throws ODataException {\n try {\n return param.getServletRequest().getInputStream();\n } catch (final IOException e) {\n throw new ODataException(\"Error getting request content as ServletInputStream.\", e);\n }\n }", "public static final RFCMessageStructure parseInputStream (InputStream in, byte[] workBuf, int offset, int bufSize) throws IOException\n {\n return parseInputStream(in, workBuf, offset, bufSize, (-1L));\n }", "public static AsonValue CreateFrom(InputStream inputStream) throws java.io.IOException {\n class MIS extends InputStream {\n InputStream is;\n int firstByte;\n boolean firstRead = true;\n MIS(InputStream is) throws java.io.IOException { this.is = is; firstByte=is.read(); }\n @Override\n public int read() throws IOException { if(firstRead){firstRead=false;return firstByte;} return is.read(); }\n public byte getFirstByte() { return (byte)(firstByte&0xFF); }\n }\n MIS is = new MIS(inputStream);\n if((is.getFirstByte()&0x80)!=0) return new AsonParser().parse(is);\n return new JsonParser().parse(is);\n }", "public void deserialize(final InputStream stream) throws IOException {\r\n Collection<? extends String> empty = Collections.emptySet();\r\n deserialize(stream, empty);\r\n }", "public StreamResponseRequestBuilder<akka.stream.javadsl.Source<io.cloudstate.protocol.CrdtProto.CrdtStreamIn, akka.NotUsed>, io.cloudstate.protocol.CrdtProto.CrdtStreamOut> handle()\n \n {\n throw new UnsupportedOperationException();\n }", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "private RequestReceiver(BufferedReader reader, ObjectMapper mapper) {\n this.reader = reader;\n this.mapper = mapper;\n }", "private static BufferedReader newReader(InputStream stream) {\n return new BufferedReader(new InputStreamReader(stream));\n }", "G unmarshall(final M metadata,\n final InputStream input) throws IOException;", "@Deprecated\n/* */ public JsonParser createJsonParser(InputStream in)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 1002 */ return createParser(in);\n/* */ }", "public static final RFCMessageStructure parseInputStream (InputStream in, int bufSize) throws IOException\n {\n return parseInputStream(in, bufSize, (-1L));\n }", "private void genericUnsubscribeFactory(String request, BandInfo band) {\n if (bandStreams.containsKey(band) && bandStreams.get(band).contains(request)) {\n if (bandStreams.get(band).size() == 1) {\n // Only stream open for this band, remove from bandStreams\n bandStreams.remove(band);\n } else {\n // Other streams open, remove from list\n bandStreams.get(band).remove(request);\n }\n\n // Remove stream from preferences\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n Set<String> streams = prefs.getStringSet(Preferences.getDeviceKey(band.getMacAddress()), new HashSet<String>());\n if (streams.contains(request)) {\n Log.v(TAG, \"Removing stream \" + request);\n streams.remove(request);\n Log.v(TAG, \"Streams after removing \" + request + \": \" + streams);\n prefs.edit().putStringSet(Preferences.getDeviceKey(band.getMacAddress()), streams).apply();\n }\n\n // Unsubscribe from the appropriate stream\n switch (request) {\n case ACCEL_REQ_EXTRA:\n if (accManager != null)\n accManager.unSubscribe(band);\n break;\n case ALT_REQ_EXTRA:\n if (altManager != null)\n altManager.unSubscribe(band);\n break;\n case AMBIENT_REQ_EXTRA:\n if (ambManager != null)\n ambManager.unSubscribe(band);\n break;\n case BAROMETER_REQ_EXTRA:\n if (barometerManager != null)\n barometerManager.unSubscribe(band);\n break;\n case CALORIES_REQ_EXTRA:\n if (calManager != null)\n calManager.unSubscribe(band);\n break;\n case CONTACT_REQ_EXTRA:\n if (conManager != null)\n conManager.unSubscribe(band);\n break;\n case DISTANCE_REQ_EXTRA:\n if (distManager != null)\n distManager.unSubscribe(band);\n break;\n case GSR_REQ_EXTRA:\n if (gsrManager != null)\n gsrManager.unSubscribe(band);\n break;\n case GYRO_REQ_EXTRA:\n if (gyroManager != null)\n gyroManager.unSubscribe(band);\n break;\n case HEART_RATE_REQ_EXTRA:\n if (heartManager != null)\n heartManager.unSubscribe(band);\n break;\n case PEDOMETER_REQ_EXTRA:\n if (pedoManager != null)\n pedoManager.unSubscribe(band);\n break;\n case SKIN_TEMP_REQ_EXTRA:\n if (skinTempManager != null)\n skinTempManager.unSubscribe(band);\n break;\n case UV_REQ_EXTRA:\n if (uvManager != null)\n uvManager.unSubscribe(band);\n break;\n default:\n Log.e(TAG, \"Unknown subscription requested \" + request);\n }\n } else {\n if (!bandStreams.containsKey(band)) {\n Log.e(TAG, \"Error: unsubscribe request for a band that isnt stored\");\n Log.v(TAG, \"Band: \" + band.toString());\n for (BandInfo info :\n bandStreams.keySet()) {\n Log.v(TAG, \"Key: \" + info.toString());\n }\n } else {\n if (!bandStreams.get(band).contains(request)) {\n Log.e(TAG, \"Error: unsubscribe request for unregistered request\");\n }\n }\n }\n }", "protected RemoteInvocation readRemoteInvocation(HttpExchange exchange, InputStream is)\r\n/* 44: */ throws IOException, ClassNotFoundException\r\n/* 45: */ {\r\n/* 46:110 */ ObjectInputStream ois = createObjectInputStream(decorateInputStream(exchange, is));\r\n/* 47:111 */ return doReadRemoteInvocation(ois);\r\n/* 48: */ }", "protected RemoteInvocation readRemoteInvocation(HttpExchange exchange, InputStream is)\n/* */ throws IOException, ClassNotFoundException\n/* */ {\n/* 116 */ ObjectInputStream ois = createObjectInputStream(decorateInputStream(exchange, is));\n/* 117 */ return doReadRemoteInvocation(ois);\n/* */ }", "@Override\n public Mono<Response<ServiceInstance>> choose(Request request) {\n ServiceInstanceListSupplier supplier = serviceInstanceListSupplierProvider\n .getIfAvailable(NoopServiceInstanceListSupplier::new);\n return supplier.get(request).next()\n .map(serviceInstances -> processInstanceResponse(supplier, serviceInstances));\n }", "T from(Source source);", "public void parse(InputStream stream, DefaultHandler handler,\n String systemId) throws SAXException, IOException {\n if (stream == null) {\n throw new IllegalArgumentException(\"stream must not be null\");\n }\n InputSource source = new InputSource(stream);\n if (systemId != null) {\n source.setSystemId(systemId);\n }\n parse(source, handler);\n }", "public static final RFCMessageStructure parseInputStream (InputStream in, StructureParserOutputStream out, long copySize) throws IOException\n {\n return StructureParserOutputStream.parseInputStream(in, out, IOCopier.DEFAULT_COPY_SIZE, copySize);\n }", "public AdvancedDeserializer6_0(\r\n\t\t\tInputStream inputStream, \r\n\t\t\tboolean isCurlStyle, \r\n\t\t\tClass<?> cls,\r\n\t\t\tboolean isSerializableCheck\r\n\t) throws IOException, SerializeException {\r\n\t\tsuper(inputStream, isCurlStyle, cls, isSerializableCheck);\r\n\t}", "public UBERequest() {\r\n }", "public static XmlConsumer newConsumerAndClose(InputStream inputStream) throws Exception {\n return XmlStreamSpec.with(inputStream).closeOnFinish().consumer();\n }", "private static Document parseXML(InputStream stream) throws Exception {\n DocumentBuilderFactory objDocumentBuilderFactory = null;\n DocumentBuilder objDocumentBuilder = null;\n Document doc = null;\n try {\n objDocumentBuilderFactory = DocumentBuilderFactory.newInstance();\n objDocumentBuilder = objDocumentBuilderFactory.newDocumentBuilder();\n doc = objDocumentBuilder.parse(stream);\n } catch (Exception ex) {\n throw ex;\n }\n return doc;\n }", "@Test\n\tpublic void testDecodeFromStream() throws Exception {\n\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\t\tString msg = \"POST /AppName HTTP/1.1\\r\\n\" + \"Content-Type: application/hl7-v2; charset=ISO-8859-2\\r\\n\" + \"Content-Length: \" + ourSampleMessage.getBytes(StandardCharsets.ISO_8859_1).length + \"\\r\\n\" + \"Authorization: Basic aGVsbG86d29ybGQ=\\r\\n\" + \"\\r\\n\";\n\t\tbos.write(msg.getBytes(StandardCharsets.ISO_8859_1));\n\t\tbos.write(ourSampleMessage.getBytes(\"ISO-8859-2\"));\n\t\tAbstractHl7OverHttpDecoder d = new Hl7OverHttpRequestDecoder();\n\t\tByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bos.toByteArray());\n\t\td.readHeadersAndContentsFromInputStreamAndDecode(byteArrayInputStream);\n\n\t\tassertEquals(0, byteArrayInputStream.available());\n\t\tassertTrue(d.getConformanceProblems().toString(), d.getConformanceProblems().isEmpty());\n\t\tassertEquals(Charset.forName(\"ISO-8859-2\"), d.getCharset());\n\t\tassertTrue(d.isCharsetExplicitlySet());\n\t\tassertEquals(\"application/hl7-v2\", d.getContentType());\n\t\tassertEquals(ourSampleMessage, d.getMessage());\n\t\tassertEquals(\"hello\", d.getUsername());\n\t\tassertEquals(\"world\", d.getPassword());\n\t\tassertEquals(\"/AppName\", d.getPath());\n\n\t}", "<R> Streamlet<R> newSource(SerializableSupplier<R> supplier);", "public static final RFCMessageStructure parseInputStream (InputStream in, int bufSize, long copySize) throws IOException\n {\n return parseInputStream(in, new byte[bufSize], copySize);\n }", "public abstract TreeUnmarshaller createUnmarshallingContext(Object obj, HierarchicalStreamReader hierarchicalStreamReader, ConverterLookup converterLookup, Mapper mapper);", "public Object handleRequest(P request) throws Exception;", "Object handle(Object request);", "@Autowired\n public RequestDeserializer(@Lazy RequestService requestService, ConversionService conversionService) {\n this.requestService = requestService;\n this.conversionService = conversionService;\n }" ]
[ "0.51513046", "0.5099567", "0.49791807", "0.4958359", "0.48847583", "0.48515338", "0.48208246", "0.47130266", "0.46993136", "0.46987006", "0.46228233", "0.46075833", "0.456045", "0.45339352", "0.45242918", "0.44330132", "0.44224003", "0.4419129", "0.44099116", "0.43693182", "0.4362741", "0.4349116", "0.4345297", "0.4339192", "0.43314916", "0.4325359", "0.432488", "0.4306015", "0.4304312", "0.42782292", "0.4278008", "0.42731547", "0.4241487", "0.42412156", "0.42281586", "0.42281586", "0.42214924", "0.42184258", "0.41997424", "0.41614786", "0.4142365", "0.4125128", "0.41243047", "0.41049704", "0.41012362", "0.409579", "0.40947756", "0.40825805", "0.40793994", "0.40789953", "0.4065191", "0.4046769", "0.4039697", "0.40313193", "0.40259558", "0.40194312", "0.4018739", "0.4016064", "0.40140206", "0.40071306", "0.40064007", "0.40007097", "0.39977333", "0.39945754", "0.39914706", "0.3984507", "0.39758515", "0.39656398", "0.39631048", "0.3962676", "0.39592946", "0.3957202", "0.395707", "0.39485195", "0.39475933", "0.39449295", "0.3944608", "0.39392084", "0.3935974", "0.3933343", "0.39318365", "0.3929102", "0.39284313", "0.39227986", "0.39224213", "0.39141342", "0.39123094", "0.3910089", "0.39100832", "0.39072224", "0.390189", "0.38976964", "0.38976678", "0.38950282", "0.38920718", "0.38902712", "0.38883153", "0.3888033", "0.38856357", "0.38820857", "0.3881989" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Gsm phone1 = new Gsm(); phone1.insertSimCard("0887142213"); Gsm phone2 = new Gsm(); phone2.insertSimCard("0887132357"); phone1.call(phone2, 4); phone1.printInfoForTheLastIncomingCall(); System.out.println(); phone1.printInfoForTheLastOutgoingCall(); System.out.println(); phone2.printInfoForTheLastIncomingCall(); System.out.println(); phone2.printInfoForTheLastOutgoingCall(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { viewModel = new ViewModelProvider.AndroidViewModelFactory(getActivity().getApplication()).create(TodosViewModel.class); root = inflater.inflate(R.layout.fragment_todos, container, false); todoLists = root.findViewById(R.id.todosRV); todoLists.hasFixedSize(); todoLists.setLayoutManager(new LinearLayoutManager(root.getContext())); viewModel.getTodoLists().observe(getViewLifecycleOwner(), todolists -> { todoListAdapter = new TodoListAdapter(todolists, this); todoLists.setAdapter(todoListAdapter); }); FloatingActionButton fab = root.findViewById(R.id.FABadd); fab.setOnClickListener(v -> { addNewEmptyList(); }); return root; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
All params are optional!
@Override public Set<String> getMissedConfigurationItems(Map<String, String> configuration) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic RequestParams onParams(int paramFlag) {\n\t\treturn null;\n\t}", "@Override\n\tprotected void initParams() {\n\t\t\n\t}", "private Params()\n {\n }", "protected void missingParams() {\r\n throw new IllegalStateException(\r\n \"Function is missing parameters: \" + getName());\r\n }", "public void checkParameters() {\n }", "@Override\n\tprotected boolean validateRequiredParameters() throws Exception {\n\t\treturn true;\n\t}", "protected boolean isOptional()\n {\n return false;\n }", "@Override\n\tpublic boolean isParam() {\n\t\treturn false;\n\t}", "private void validateOptionalParams(StringBuilder errors) throws Exception {\n // Validate RECON_PARTIAL_TRIGGER Option configuration.\n String paramValue = inputParams.getProperty(\"RECON_PARTIAL_TRIGGER\");\n if(paramValue!=null && !paramValue.trim().isEmpty()){\n StringTokenizer tokens = new StringTokenizer(paramValue, Constants.TOKEN_SEPARATOR);\n while(tokens.hasMoreElements()){\n try{\n PartialTriggerOptions.valueOf(tokens.nextToken());\n }catch(Exception ex){\n errors.append(\"Invalid Parameter Configuration for RECON_PARTIAL_TRIGGER. Please correct.\"\n + System.getProperty(\"line.separator\"));\n }\n }\n }\n // Validate TARGET_SHARED_IDSTORE_SEARCHBASE\n paramValue = inputParams.getProperty(\"TARGET_SHARED_IDSTORE_SEARCHBASE\");\n if(paramValue==null || paramValue.trim().isEmpty()){\n Logger.getLogger(IdentityReconciliationProcessor.class.getName()).log(Level.INFO, \n \"Parameter [Optional] TARGET_SHARED_IDSTORE_SEARCHBASE not configured. \" +\n \"Highly recommended to configure this parameter. Note that - This may result in performance issue.\");\n }\n paramValue = inputParams.getProperty(Constants.BATCH_SIZE_ATTR);\n if(paramValue!=null && !paramValue.trim().isEmpty()){\n try{\n getBatchSize(paramValue);\n }catch(Exception ex){\n errors.append(\"Invalid Parameter Configuration for Batch Size. Please correct.\"\n + System.getProperty(\"line.separator\"));\n }\n }\n }", "@Override\n\tpublic boolean isHaveParam() {\n\t\treturn param !=null;\n\t}", "@Override\n\tpublic String[] getParameterValues(String arg0) {\n\t\treturn null;\n\t}", "public int[] getParams()\n\t{\n\t\treturn null;\n\t}", "@Implementation\n protected String getParameters(String keys) {\n return null;\n }", "private void buildOtherParams() {\n\t\tmClient.putRequestParam(\"attrType\", \"1\");\r\n\t}", "private boolean isParamsEmpty(String... params){\n for (String param : params) {\n if (param.isEmpty())\n return true;\n }\n return false;\n }", "@Override\n\t\tpublic Object[] getParameters() {\n\t\t\treturn null;\n\t\t}", "private boolean checkParams(String[] params){\r\n\t\tfor(String param:params){\r\n\t\t\tif(param == \"\" || param == null || param.isEmpty()){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Test\n void noRequestParamForOptionalBook() throws Exception {\n this.mvc.perform(get(\"/rp/optional_book\"))\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$\").doesNotExist());\n }", "@Override\n\tpublic int parametersCount() {\n\t\treturn 0;\n\t}", "private void checkForEmptyLine() throws OutmatchingParametersToMethodCall {\n if (this.params.isEmpty() && method.getParamAmount() != 0) {\n throw new OutmatchingParametersToMethodCall();\n } else if (method.getParamAmount() == 0 && !this.params.isEmpty()) {\n throw new OutmatchingParametersToMethodCall();\n }\n }", "public void clearParams() {\n setParams((String[]) null);\n }", "private void validateInputParameters(){\n\n }", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "private void checkParameters()\n\t\tthrows DiameterMissingAVPException {\n\t\tDiameterClientRequest request = getRequest();\n\t\tDiameterAVPDefinition def = ShUtils.getUserIdentityAvpDefinition(getVersion());\n\t\tif (request.getDiameterAVP(def) == null) {\n\t\t\tthrow new DiameterMissingAVPException(def.getAVPCode());\n\t\t}\n\t\tdef = ShUtils.getDataReferenceAvpDefinition(getVersion());\n\t\tif (request.getDiameterAVP(def) == null) {\n\t\t\tthrow new DiameterMissingAVPException(def.getAVPCode());\n\t\t}\n\t}", "public boolean isSetParams() {\n return this.params != null;\n }", "@Override\n\tpublic LinkedHashMap<String,?> getRequiredParams() {\n\t\tLinkedHashMap<String,String> requiredParams = new LinkedHashMap<>();\n\t\trequiredParams.put(\"crv\", crv.toString());\n\t\trequiredParams.put(\"kty\", getKeyType().getValue());\n\t\trequiredParams.put(\"x\", x.toString());\n\t\trequiredParams.put(\"y\", y.toString());\n\t\treturn requiredParams;\n\t}", "private void fillMandatoryFields() {\n\n }", "@Override\n\tpublic String getJsonParams() {\n\t\treturn null;\n\t}", "protected void validateParameter(String... param) throws NavigationException {\r\n\t\tif (param.length > 0){\r\n\t\t\tfor(int i = 0; i < param.length; i++){\r\n\t\t\t\tif (param[i] != null && param[i].isEmpty()) {\r\n\t\t\t\t\tthrow new NavigationException(\"parametro no enviado\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void initParameters() {\n Annotation[][] paramsAnnotations = method.getParameterAnnotations();\n for (int i = 0; i < paramsAnnotations.length; i++) {\n if (paramsAnnotations[i].length == 0) {\n contentBuilder.addUnnamedParam(i);\n } else {\n for (Annotation annotation : paramsAnnotations[i]) {\n Class<?> annotationType = annotation.annotationType();\n if (annotationType.equals(PathParam.class)\n && pathBuilder != null) {\n PathParam param = (PathParam) annotation;\n pathBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(QueryParam.class)) {\n QueryParam param = (QueryParam) annotation;\n queryBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(HeaderParam.class)) {\n HeaderParam param = (HeaderParam) annotation;\n headerBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(NamedParam.class)) {\n NamedParam param = (NamedParam) annotation;\n contentBuilder.addNamedParam(param.value(), i);\n } else {\n contentBuilder.addUnnamedParam(i);\n }\n }\n }\n }\n }", "@Override\n protected Map<String, String> getParams() {\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n// params.put(\"ead_tokan\", AppConfig.EAD_TOKEN);\n// params.put(\"ead_email\", email);\n params.put(\"npl_token\", \"a\");\n params.put(\"npl_aid\", mediaId);\n params.put(\"npl_id\", userId);\n return params;\n }", "@Override\n public Map<String, Object> getConfigParams() {\n return null;\n }", "private boolean validateParams(int amount) {\n\t\tString paramArray[] = {param1,param2,param3,param4,param5,param6};\r\n\t\tfor(int i = 0; i < amount; i++) {\r\n\t\t\tif(paramArray[i] == null) {\r\n\t\t\t\t//Error\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "boolean hasParameters();", "@Ignore\n\t@Test\n\tpublic void testParamNull() {\n\t\tregisterParamException(null, keyString, valueString);\n\t\tregisterParamException(groupString, null, valueString);\n\t\tregisterParamException(groupString, keyString, null);\n\t}", "boolean optional();", "@Override\n\tpublic Map<String, String[]> getParameterMap() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Collection<Parameter<?>> getParameters() {\n\t\treturn null;\n\t}", "public boolean isSetParams() {\n return this.params != null;\n }", "public boolean isSetParams() {\n return this.params != null;\n }", "public boolean isSetParams() {\n return this.params != null;\n }", "public boolean isSetParams() {\n return this.params != null;\n }", "public boolean isSetParams() {\n return this.params != null;\n }", "@Override\n\t\t\t\tprotected Map<String, String> getParams()\n\t\t\t\t\t\tthrows AuthFailureError {\n\t\t\t\t\treturn super.getParams();\n\t\t\t\t}", "@Override\n\tpublic String getParameter(String name) {\n\t\treturn null;\n\t}", "private void validateInitialParams() throws IllegalArgumentException {\n if (StringUtils.isBlank(this.apiKey)) {\n throw new IllegalArgumentException(\"API key is not specified!\");\n }\n if (StringUtils.isBlank(this.baseUrl)) {\n throw new IllegalArgumentException(\"The Comet base URL is not specified!\");\n }\n }", "@Override\n public Class<?>[] getParameterTypes() {\n return null;\n }", "@Override\n\tpublic void setMandatory(boolean mandatory) {\n\t\t\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"title\", name);\n params.put(\"ean\", ean);\n params.put(\"supplier\", supplier);\n params.put(\"offer\", offer);\n params.put(\"price\", price);\n\n return params;\n }", "@Override\n\tpublic Map getParameterMap() {\n\t\treturn null;\n\t}", "default List<Parameter<?>> getMethodParameters()\n {\n return Collections.unmodifiableList(Collections.emptyList());\n }", "@Override\n\tpublic String[] getParameterValues(String name) {\n\t\treturn null;\n\t}", "@Override\n protected Map<String, String> getParams() {\n return params;\n }", "protected void setupParameters() {\n \n \n\n }", "@Override\n\t\tpublic String getParameter(String name) {\n\t\t\treturn null;\n\t\t}", "public boolean isRequiredParam() {\n return this.isRequiredParam;\n }", "@Test\n void noRequestParamForNullableBook() throws Exception {\n this.mvc.perform(get(\"/rp/nullable_book\"))\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$\").doesNotExist());\n }", "@Override\n\tprotected void validateParameterValues() {\n\t\t\n\t}", "@Override\n\tprotected void initParamsForFragment() {\n\n\t}", "private boolean validateMandatoryParameters(QuotationDetailsDTO detail) {\t\n\n\t\tif(detail.getArticleName() == null || detail.getArticleName().equals(EMPTYSTRING)){\t\t\t\n\t\t\tAdminComposite.display(\"Please Enter Article Name\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Override\r\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\r\n\r\n // Adding All values to Params.\r\n params.put(\"name\", Name);\r\n params.put(\"age\", Age);\r\n params.put(\"phone_no\", Phoneno);\r\n params.put(\"h_lic_no\", Hospitallic);\r\n params.put(\"appoinment_date\", Appointment1);\r\n params.put(\"address\", Address);\r\n params.put(\"permision\", Permission);\r\n\r\n return params;\r\n }", "static boolean optionalPositionalFormalParameters(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"optionalPositionalFormalParameters\")) return false;\n if (!nextTokenIs(b, LBRACKET)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, LBRACKET);\n r = r && defaultFormalNamedParameter(b, l + 1);\n r = r && optionalPositionalFormalParameters_2(b, l + 1);\n r = r && optionalPositionalFormalParameters_3(b, l + 1);\n r = r && consumeToken(b, RBRACKET);\n exit_section_(b, m, null, r);\n return r;\n }", "@Override\n\tpublic Annotation[] getParameterAnnotations() {\n\t\treturn new Annotation[]{};\n\t}", "public boolean isParameterProvided();", "@Override\n\t\tpublic String[] getParameterValues(String name) {\n\t\t\treturn null;\n\t\t}", "@Override\n\t\tpublic Map getParameterMap() {\n\t\t\treturn null;\n\t\t}", "public abstract ImmutableSet<String> getExplicitlyPassedParameters();", "public void setInitialParameters() {\n /** DO NOTHING */\n }", "@Override\r\n public MultivaluedMap<String, String> getPathParameters(boolean arg0) {\n return null;\r\n }", "private static boolean paramValid(String paramName,String paramValue){\n return paramName!=null&&paramName.length()>0&&paramValue!=null&&paramValue.length()>0;\n }", "public void sum(){ //np param\n System.out.println(\"SUM method with no params\");\n\n }", "@Test\n public void noUpdateWhenNotValidParams() {\n }", "@Override\n\t\tpublic Object getTypedParams(Object params) {\n\t\t\treturn null;\n\t\t}", "@Override\n\t\tpublic Object getTypedParams(Object params) {\n\t\t\treturn null;\n\t\t}", "@Override \n\t\tprotected int getNumParam() {\n\t\t\treturn 1;\n\t\t}", "public int getNumOfParams() { return params.length; }", "private static String printOptionalArgs() {\n String output = \"\";\n for (int i = 0; i < MAX_OPTIONAL_ARGS; i++)\n output += \" [-\" + VALID_OPTIONAL_ARGS[i] + \"]\";\n return output + \" \";\n }", "@Override\n\tpublic ParameterSet requiredParameters()\n\t{\n\t\t// Parameter p0 = new\n\t\t// Parameter(\"Dummy Parameter\",\"Lets user know that the function has been selected.\",FormLine.DROPDOWN,new\n\t\t// String[] {\"true\"},0);\n\t\tParameter p0 = getNumThreadsParameter(10, 4);\n\t\tParameter p1 = new Parameter(\"Old Min\", \"Image Intensity Value\", \"0.0\");\n\t\tParameter p2 = new Parameter(\"Old Max\", \"Image Intensity Value\", \"4095.0\");\n\t\tParameter p3 = new Parameter(\"New Min\", \"Image Intensity Value\", \"0.0\");\n\t\tParameter p4 = new Parameter(\"New Max\", \"Image Intensity Value\", \"65535.0\");\n\t\tParameter p5 = new Parameter(\"Gamma\", \"0.1-5.0, value of 1 results in no change\", \"1.0\");\n\t\tParameter p6 = new Parameter(\"Output Bit Depth\", \"Depth of the outputted image\", Parameter.DROPDOWN, new String[] { \"8\", \"16\", \"32\" }, 1);\n\t\t\n\t\t// Make an array of the parameters and return it\n\t\tParameterSet parameterArray = new ParameterSet();\n\t\tparameterArray.addParameter(p0);\n\t\tparameterArray.addParameter(p1);\n\t\tparameterArray.addParameter(p2);\n\t\tparameterArray.addParameter(p3);\n\t\tparameterArray.addParameter(p4);\n\t\tparameterArray.addParameter(p5);\n\t\tparameterArray.addParameter(p6);\n\t\treturn parameterArray;\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"nosambungan\", nosambungan);\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"user_id\", userIdInput);\n params.put(\"date\", selectedDate);\n params.put(\"type\", typeInput);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id\", _phoneNo);\n params.put(\"token\", token);\n params.put(\"role\", String.valueOf(pref.getResposibility()));\n return params;\n }", "private void validateBuildParameters() {\n if (TextUtils.isEmpty(consumerKey)) {\n throw new IllegalArgumentException(\"CONSUMER_KEY not set\");\n }\n if (TextUtils.isEmpty(consumerSecret)) {\n throw new IllegalArgumentException(\"CONSUMER_SECRET not set\");\n }\n if (TextUtils.isEmpty(token)) {\n throw new IllegalArgumentException(\"TOKEN not set, the user must be logged it\");\n }\n if (TextUtils.isEmpty(tokenSecret)) {\n throw new IllegalArgumentException(\"TOKEN_SECRET not set, the user must be logged it\");\n }\n }", "public boolean getSendsParametersAfterNonMergeParse()\n {\n return false;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n @SuppressWarnings(\"Convert2Diamond\") Map<String,String> params = new HashMap<String, String>();\n params.put(\"meal_id\",meal_id);\n params.put(\"recipe_id\",recipe_id);\n return params;\n }", "private String buildParams(){\n HashMap<String,String> items = new HashMap<>();\n if(paramValid(param1name,param1value))\n items.put(param1name,param1value);\n if(paramValid(param2name,param2value))\n items.put(param2name,param2value);\n if(paramValid(param3name,param3value))\n items.put(param3name,param3value);\n return JsonOutput.toJson(items);\n }", "private void parseOptionalArguments(DataSet edges, Value[] values,\n int argIndex) {\n if (values.length > argIndex) {\n while (values.length > argIndex) {\n parseStringArguments(edges, values[argIndex++]);\n }\n }\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"email\", leaderboardEntry.getEmail());\n params.put(\"level_num\", String.valueOf(leaderboardEntry.getLevel_num()));\n params.put(\"score\", String.valueOf(leaderboardEntry.getScore()));\n params.put(\"moves\", String.valueOf(leaderboardEntry.getMoves()));\n params.put(\"time\", leaderboardEntry.getTime());\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n int noofstudent = 2*Integer.parseInt(noofconflicts);\n String checkconflicts = \"jbscjas\";//send anything part\n String uid = AppController.getString(WingForm.this,\"Student_id\");\n Map<String, String> params = new LinkedHashMap<String, String>();\n //using LinkedHashmap because backend does not check key value and sees order of variables\n params.put(\"checkconflicts\", checkconflicts);\n params.put(\"noofstudent\", String.valueOf(noofstudent));\n for(int m=0;m<noofstudent;m++){\n params.put(\"sid[\"+m+\"]\",sid[m]);\n }\n\n\n return params;\n }", "private boolean validParams(String name, String company) {\n\t\treturn (name != null && !name.trim().equals(\"\")) \n\t\t\t\t&& (company != null && !company.trim().equals(\"\"));\n\t}", "void setParameters() {\n\t\t\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"tag\", \"privacy\");\n params.put(\"flag\", switch_value);\n params.put(\"email\", email);\n return params;\n }", "protected void initOtherParams() {\n\n\t\t// init other params defined in parent class\n\t\tsuper.initOtherParams();\n\n\t\t// the Component Parameter\n\t\t// first is default, the rest are all options (including default)\n\t\tcomponentParam = new ComponentParam(Component.AVE_HORZ, Component.AVE_HORZ,\n\t\t\t\tComponent.RANDOM_HORZ, Component.GREATER_OF_TWO_HORZ);\n\n\t\t// the stdDevType Parameter\n\t\tStringConstraint stdDevTypeConstraint = new StringConstraint();\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_TOTAL);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_INTER);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_INTRA);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_NONE);\n\t\tstdDevTypeConstraint.setNonEditable();\n\t\tstdDevTypeParam = new StdDevTypeParam(stdDevTypeConstraint);\n\n\t\t// add these to the list\n\t\totherParams.addParameter(componentParam);\n\t\totherParams.addParameter(stdDevTypeParam);\n\n\t}", "@Override\r\n public boolean isValidParameterCount(int parameterCount) {\n return parameterCount> 0;\r\n }", "protected int checkParam(Object o, String name)\n {\n if (o == null) {\n System.err.println(format(\"Parameter %s is not set\", name));\n return 1;\n }\n return 0;\n }", "ParameterList getParameters();", "Optional<String[]> arguments();", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n /*params.put(\"userIdPelayan\",new SessionManager(getContext()).getIdUser());\n params.put(\"stats\",\"0\");*/\n return params;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n /*params.put(\"userIdPelayan\",new SessionManager(getContext()).getIdUser());\n params.put(\"stats\",\"0\");*/\n return params;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"businessId\", businessId);\n params.put(\"phone\", phone);\n return params;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String,String> params=new HashMap<String, String>() ;\n params.put(\"name\",n);\n params.put(\"rollno\",r);\n params.put(\"admno\",a);\n params.put(\"branch\",b);\n return params;\n }" ]
[ "0.665965", "0.6645322", "0.6411543", "0.6383415", "0.6370215", "0.6368859", "0.631817", "0.62966764", "0.6272782", "0.62206745", "0.6178835", "0.6173208", "0.6168702", "0.6165063", "0.61258924", "0.61144364", "0.6093303", "0.60896116", "0.6087611", "0.60512304", "0.6038732", "0.6000587", "0.5991591", "0.5959092", "0.59584403", "0.595378", "0.5951328", "0.59497255", "0.5938479", "0.5934229", "0.59133047", "0.5905571", "0.5899805", "0.58949786", "0.5888271", "0.5874222", "0.5863695", "0.58604753", "0.58555484", "0.58517516", "0.58517516", "0.58517516", "0.58517516", "0.58517516", "0.58453614", "0.5834806", "0.5834191", "0.58283657", "0.5820644", "0.5814409", "0.58129174", "0.5812883", "0.5802745", "0.57994705", "0.5798997", "0.57836765", "0.5781522", "0.5781116", "0.57769406", "0.5762985", "0.5761944", "0.57572937", "0.5753478", "0.5735083", "0.5734759", "0.57231534", "0.5723085", "0.5719767", "0.5717799", "0.5703906", "0.56997293", "0.569911", "0.56954855", "0.56911206", "0.56911206", "0.5682175", "0.5679733", "0.5677412", "0.5651637", "0.5649052", "0.5647413", "0.5630926", "0.56191796", "0.5618469", "0.5617712", "0.56163967", "0.56163657", "0.56039757", "0.5592347", "0.55873394", "0.5576801", "0.5572863", "0.55720884", "0.55687743", "0.55618864", "0.5555776", "0.55434936", "0.5535377", "0.5535377", "0.5531851", "0.5524799" ]
0.0
-1
Create the DDS Domain participant on domain ID 0
public static final void main(String args[]) { DomainParticipant participant = DomainParticipantFactory.get_instance().create_participant( 0, // Domain ID = 0 DomainParticipantFactory.PARTICIPANT_QOS_DEFAULT, null, // listener StatusKind.STATUS_MASK_NONE); if (participant == null) { System.err.println("Unable to create domain participant"); return; } // Create the topic "MovieNews" for the String type Topic topic = participant.create_topic( "TechNews", StringTypeSupport.get_type_name(), DomainParticipant.TOPIC_QOS_DEFAULT, null, // listener StatusKind.STATUS_MASK_NONE); if (topic == null) { System.err.println("Unable to create topic."); return; } // Create the data writer using the default publisher StringDataWriter dataWriter = (StringDataWriter) participant.create_datawriter( topic, Publisher.DATAWRITER_QOS_DEFAULT, null, // listener StatusKind.STATUS_MASK_NONE); if (dataWriter == null) { System.err.println("Unable to create data writer\n"); return; } System.out.println("TechNewsPublisher up and running."); System.out.println("TechNewsPublisher will now start publishing."); try { ArrayList<String> newsArray = getNewsArray(); int newsCount = newsArray.size(); while (newsCount != 0) { newsCount--; String toPublish = newsArray.get(newsCount); dataWriter.write(toPublish, InstanceHandle_t.HANDLE_NIL); System.out.println("TechNewsPublisher published: " + toPublish); try { Thread.sleep(2000); } catch (InterruptedException e) { // Mute exception } } } catch (RETCODE_ERROR e) { // This exception can be thrown from DDS write operation e.printStackTrace(); } System.out.println("Shutting down..."); participant.delete_contained_entities(); DomainParticipantFactory.get_instance().delete_participant(participant); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DomainParticipant createDomainParticipant(\n final int domainId,\n final String participantName\n ) {\n // create default participant qos marked as routing service entity\n DomainParticipantQos domainParticipantQos = new DomainParticipantQos();\n DomainParticipantFactory.get_instance().get_default_participant_qos(domainParticipantQos);\n domainParticipantQos.service.kind = ServiceQosPolicyKind.ROUTING_SERVICE_QOS;\n domainParticipantQos.participant_name.name = participantName;\n\n // create domain participant for administration interface\n return DomainParticipantFactory.get_instance().create_participant(\n domainId,\n domainParticipantQos,\n null,\n StatusKind.STATUS_MASK_NONE\n );\n }", "private DomainParticipant createDiscoveryDomainParticipant(\n final int domainId\n ) {\n // get current state\n boolean wasEnabled = AutoEnableCreatedEntitiesHelper.isEnabled();\n\n // disable auto-enable -> THIS IS CRUCIAL TO WORK CORRECTLY\n AutoEnableCreatedEntitiesHelper.disable();\n\n // create discovery participant\n DomainParticipant domainParticipant = createDomainParticipant(domainId, \"RTI Routing Service: discovery\");\n\n // enable auto-enable if it was enabled previously\n if (wasEnabled) {\n AutoEnableCreatedEntitiesHelper.enable();\n }\n\n return domainParticipant;\n }", "DomainNumber createDomainNumber();", "private DomainParticipant createRemoteAdministrationDomainParticipant(\n final int domainId\n ) {\n return createDomainParticipant(domainId, \"RTI Routing Service: remote administration\");\n }", "DomainElement createDomainElement();", "DD createDD();", "public void testDomainCreate() {\n\t\tEPPDomainCreateCmd theCommand;\n\t\tEPPEncodeDecodeStats commandStats;\n\n\t\tEPPCodecTst.printStart(\"testDomainCreate\");\n\n\t\t// Create Command\n\t\ttheCommand = new EPPDomainCreateCmd(\"ABC-12345\", \"example.com\",\n\t\t\t\tnew EPPAuthInfo(\"2fooBAR\"));\n\n\t\tEPPFeeCreate theCreateExt = new EPPFeeCreate(new EPPFeeValue(\n\t\t\t\tnew BigDecimal(\"5.00\")));\n\t\ttheCreateExt.setCurrency(\"USD\");\n\n\t\ttheCommand.addExtension(theCreateExt);\n\n\t\tcommandStats = EPPCodecTst.testEncodeDecode(theCommand);\n\t\tSystem.out.println(commandStats);\n\n\t\t// Create Response\n\t\tEPPDomainCreateResp theResponse;\n\n\t\tEPPTransId respTransId = new EPPTransId(theCommand.getTransId(),\n\t\t\t\t\"54321-XYZ\");\n\n\t\ttheResponse = new EPPDomainCreateResp(respTransId, \"example.com\",\n\t\t\t\tnew GregorianCalendar(1999, 4, 3).getTime(),\n\t\t\t\tnew GregorianCalendar(2001, 4, 3).getTime());\n\t\ttheResponse.setResult(EPPResult.SUCCESS);\n\n\t\tEPPFeeCreData theRespExt = new EPPFeeCreData(\"USD\", new EPPFeeValue(\n\t\t\t\tnew BigDecimal(\"5.00\")));\n\n\t\ttheCommand.addExtension(theRespExt);\n\n\t\tcommandStats = EPPCodecTst.testEncodeDecode(theCommand);\n\t\tSystem.out.println(commandStats);\n\n\t\trespTransId = new EPPTransId(theCommand.getTransId(), \"54321-XYZ\");\n\n\t\ttheResponse = new EPPDomainCreateResp(respTransId, \"example.com\",\n\t\t\t\tnew GregorianCalendar(1999, 4, 3).getTime(),\n\t\t\t\tnew GregorianCalendar(2001, 4, 3).getTime());\n\t\ttheResponse.setResult(EPPResult.SUCCESS);\n\n\t\ttheRespExt = new EPPFeeCreData(\"USD\", new EPPFeeValue(new BigDecimal(\n\t\t\t\t\"5.00\")));\n\t\ttheRespExt.setBalance(new BigDecimal(\"-5.00\"));\n\t\ttheRespExt.setCreditLimit(new BigDecimal(\"1000.00\"));\n\n\t\ttheCommand.addExtension(theRespExt);\n\n\t\tcommandStats = EPPCodecTst.testEncodeDecode(theCommand);\n\t\tSystem.out.println(commandStats);\n\n\t\tEPPCodecTst.printEnd(\"testDomainCreate\");\n\n\t}", "public PresencePerson createPresencePerson(String id);", "private void doCreateNewPartner() {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"***Hors Management System:: System Administration:: Create new partner\");\n Partner partner = new Partner();\n System.out.print(\"Enter partner username:\");\n partner.setName(sc.nextLine().trim());\n System.out.print(\"Enter partner password;\");\n partner.setPassword(sc.nextLine().trim());\n\n Set<ConstraintViolation<Partner>> constraintViolations = validator.validate(partner);\n\n if (constraintViolations.isEmpty()) {\n partner = partnerControllerRemote.createNewPartner(partner);\n System.out.println(\"New partner created successfully\");\n } else {\n showInputDataValidationErrorsForPartner(constraintViolations);\n }\n\n }", "@Override\n public boolean createPartnership(AuthContext context) throws DSException {\n\n isContextValidFor(context, roleId -> { if(roleId == -1) throw new DSAuthException(\"Invalid Context\"); }, 1,3);\n try {\n insert(\"TblPartnerships\", new Partnership(null,new Date()));\n return true;\n } catch (SQLException e) {\n throw new DSFormatException(e.getMessage());\n }\n }", "DomainConcept createDomainConcept();", "DomainModel createDomainModel();", "public CreateDomainResult createDomain(CreateDomainRequest createDomainRequest) {\n ExecutionContext executionContext = createExecutionContext(createDomainRequest);\n AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();\n Request<CreateDomainRequest> request = null;\n Response<CreateDomainResult> response = null;\n awsRequestMetrics.startEvent(Field.ClientExecuteTime);\n try {\n request = new CreateDomainRequestMarshaller().marshall(createDomainRequest);\n // Binds the request metrics to the current request.\n request.setAWSRequestMetrics(awsRequestMetrics);\n response = invoke(request, new CreateDomainResultStaxUnmarshaller(), executionContext);\n return response.getAwsResponse();\n } finally {\n endClientExecution(awsRequestMetrics, request, response);\n }\n }", "public void createSurvey(int tid);", "public static String regParticipantsTest() {\n\t\t\t\n\t\t\tlogger.info(\"ParticipantRegistrationPlus:regParticipantsTest\");\t\n\t\t\t\n\t\t\tClientSession cs = ClientSession.getInstance();\n\t\t\t\t\t\t\n\t\t\ttry {\n\t\t\t\tcs.startSession(userName, password);\n\t\t\t} catch (ApplicationException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tboolean isError=false;\n\t\t\tString errorMsg=\"\";\n\t\t\tProperties prop = new Properties();\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\tParticipant p = new Participant();\n\t\t\t\t\tp.setLastName(\"patientElement\");\n\t\t\t\t\tp.setFirstName(\"\");\n\t\t\t\t\tp.setMiddleName(\"cpElement\");\n\t\t\t\t\tp.setActivityStatus(\"Active\");\n\t\t\t\t\tp.setBirthDate(dateFormat(\"0000-00-00\"));\n\t\t\t\t\tString gender=\"Male Gender\";\n\t\t\t\t\tp.setGender(gender);\n\t\t\t\t\tp.setVitalStatus(\"Unknown\");\n\t\t\t\t\t\t\n\t\t\t\t\ttry{\n\t\t\t\t\t\tp = (Participant) appService.createObject(p);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\tlogger.info(\"while creating participant\");\n\t\t\t\t \te.printStackTrace();\n\t\t\t \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\tlogger.info(\"Participant created successfully\");\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tisError = true;\n\t\t\t\terrorMsg=e.getMessage();\n\t\t\t}\n\t\t\tif(isError)\n\t\t\t\treturn \"Participant registration failed because of an error [\"+errorMsg+\"]\";\n\t\t\telse\n\t\t\t\treturn \"success\";\n\t\t}", "void addParticipant(Participant participant);", "public static void main(String[] args) throws Exception {\n // Create an authorized API client\n PlusDomains service = authenticate();\n File file = new java.io.File(SERVICE_ACCOUNT_PKCS12_FILE_PATH);\n System.out.println(\"file Can Read :: \"+ file.canRead());\n \n System.out.println(\"service :: \"+service);\n System.out.println(\"service Activity :: \"+ service.activities());\n // Set the user's ID to 'me': requires the plus.me scope\n String userId = \"me\";\n String msg = \"Happy Monday! #caseofthemondays\";\n\n System.out.println(\"Inserting activity\");\n\n // Create the audience of the post\n PlusDomainsAclentryResource res = new PlusDomainsAclentryResource();\n // Share to the domain\n res.setType(\"domain\");\n\n List<PlusDomainsAclentryResource> aclEntries = new ArrayList<PlusDomainsAclentryResource>();\n aclEntries.add(res);\n\n Acl acl = new Acl();\n acl.setItems(aclEntries);\n // Required, this does the domain restriction\n acl.setDomainRestricted(true);\n\n Activity activity = new Activity()\n .setObject(new Activity.PlusDomainsObject().setOriginalContent(msg))\n .setAccess(acl);\n\n activity = service.activities().insert(userId, activity).execute();\n\n System.out.println(activity);\n }", "public void CreatePerson(Person p){\n\t\tWeddingConnectionPoolManager con = new WeddingConnectionPoolManager(); \n\t\t Person p1 = new Person(p.getId(), p.getFirstName(), p.getLastName(), p.getRelationship(),\n\t\t\t\t p.getAddress(), p.getPhone(), p.getEmail(), p.getComment(), user.getId());\n\t\t System.out.println(\"p1 : \" + p1);\n\t\t System.out.println(\"p : \" + p);\n\t\t// TODO - should to iterate on the results that returns when calling to \"getpersons\" method.\n\t\tPersonDBManager.getInstance().CreateNewPerson(con.getConnectionFromPool(), p1);\t\n\t}", "DL createDL();", "public void createNoSubject() {\n\n }", "DomainType createDomainType();", "public void testCreateDomain_NullDomain() throws Exception {\n try {\n dao.createDomain(null);\n fail(\"IllegalArgumentException expeced\");\n } catch (IllegalArgumentException e) {\n // should land here\n }\n }", "@Override\n public int insert(PWsdTaskdataDomain pWsdTaskdataDomain) {\n return getPersistanceManager().insert(getNamespace() + \".insert\", pWsdTaskdataDomain);\n }", "public PID createPID(String data) throws IllegalArgumentException {\n byte[] d = DataHelper.getASCII(data);\n if (d.length != PID.LENGTH)\n throw new IllegalArgumentException(\"bad peer id length \" + d.length);\n return _pidCache.get(d);\n }", "int insert(TawRoleDomain record);", "public Domain() {\n\n }", "@Test(enabled = true)\n public void createPerson() {\n List <Account> accounts = new ArrayList<>();\n List<Subscription> sub = new ArrayList<>();\n \n Contact contact = new Contact.Builder().emailaddress(\"[email protected]\").phoneNumber(\"021345685\").build();\n Address address = new Address.Builder().location(\"Daveyton\").streetName(\"Phaswane Street\").houseNumber(45).build();\n \n repo = ctx.getBean(PersonsRepository.class);\n Person p = new Person.Builder()\n .firstname(\"Nobu\")\n .lastname(\"Tyokz\")\n .age(25)\n .account(accounts)\n .sub(sub)\n .contact(contact)\n .address(address)\n .build();\n repo.save(p);\n id = p.getId();\n Assert.assertNotNull(p);\n\n }", "public void create(Person p) {\n\t\t\n\t}", "@ServiceMethod(returns = ReturnType.SINGLE)\n AfdDomainInner create(\n String resourceGroupName, String profileName, String customDomainName, AfdDomainInner customDomain);", "ID create(NewRoamingGroup group);", "private Pdu makePdu(String name)\n {\n Pdu pdu = this.channel.makePdu();\n pdu.putString(\"tkn\", \"PEER-\" + TKN_CPT++);\n pdu.putString(\"name\", name);\n return pdu;\n }", "public String createProcessInstance(DataRecord data)\r\n throws ProcessManagerException {\r\n try {\r\n Action creation = processModel.getCreateAction();\r\n TaskDoneEvent event = getCreationTask().buildTaskDoneEvent(\r\n creation.getName(), data);\r\n Workflow.getWorkflowEngine().process(event);\r\n return event.getProcessInstance().getInstanceId();\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.CREATION_PROCESSING_FAILED\", e);\r\n }\r\n }", "private static RdvAdvertisement createRdvAdvertisement(PeerID pid, PeerGroupID gid, String addr) {\r\n\r\n try {\r\n // FIX ME: 10/19/2002 [email protected]. We need to properly set up the service ID. Unfortunately\r\n // this current implementation of the PeerView takes a String as a service name and not its ID.\r\n // Since currently, there is only PeerView per group (all peerviews share the same \"service\", this\r\n // is not a problem, but that will have to be fixed eventually.\r\n\r\n // create a new RdvAdvertisement\r\n RdvAdvertisement rdv = (RdvAdvertisement) AdvertisementFactory.newAdvertisement(RdvAdvertisement.getAdvertisementType());\r\n\r\n rdv.setPeerID(pid);\r\n rdv.setGroupID(gid); \r\n rdv.setName(\"RDV seed\");\r\n\r\n RouteAdvertisement ra = (RouteAdvertisement) \r\n AdvertisementFactory.newAdvertisement(RouteAdvertisement.getAdvertisementType());\r\n ra.setDestPeerID(pid);\r\n AccessPointAdvertisement ap = (AccessPointAdvertisement) \r\n AdvertisementFactory.newAdvertisement(AccessPointAdvertisement.getAdvertisementType());\r\n ap.addEndpointAddress(addr);\r\n ra.setDest(ap);\r\n // Insert it into the RdvAdvertisement.\r\n rdv.setRouteAdv(ra);\r\n\r\n return rdv;\r\n } catch (Exception ez) {\r\n if (LOG.isEnabledFor(Priority.WARN)) {\r\n LOG.warn(\"Cannot create Local RdvAdvertisement: \", ez);\r\n }\r\n return null;\r\n }\r\n }", "AdPartner insertAdPartner(AdPartner adPartner);", "T createOrUpdate(final T domain) throws RequiredValueException, NoEntityFoundException;", "@Transactional\n\tpublic Participant createParticipant(String name,Integer isDriver) {\n\t\tParticipant participant = new Participant();\n\t\tparticipant.setName(name);\n\t\tparticipant.setIsDriver(isDriver);\n\t\tentityManager.persist(participant);\n\t\treturn participant;\n\t}", "DomainAction createDomainAction();", "@ServiceMethod(returns = ReturnType.SINGLE)\n AfdDomainInner create(\n String resourceGroupName,\n String profileName,\n String customDomainName,\n AfdDomainInner customDomain,\n Context context);", "protected DPP createDPP() {\n\t\tDPP dpp = new DPP();\n\t\tdpp.add(null, OP_CREATE, ST_CREATED);\n\t\t// dpp.add(ST_CREATED, ..., ...);\n\t\treturn dpp;\n\t}", "public DomainPK()\n {\n }", "public ServiceGroup create(String shortName, String title, int cid) throws Exception;", "public boolean createPersonalDetails(Integer staffID, String surname, String name, Date dob, String address, String town, String county,\n String postCode, String telNo, String mobileNo, String emergencyContact, String emergencyContactNo){\n\n\n hrDB.addPDRecord(staffID, surname, name, dob, address, town, county,\n postCode, telNo, mobileNo, emergencyContact, emergencyContactNo);\n return true;\n\n\n }", "void insertDepartment(String depName, Date creationDate, long idParentDepartment);", "@Override\n\tpublic int insert(EMpEngyDayYyyyDomain eMpEngyDayYyyyDomain) {\n\t\treturn getPersistanceManager().insert(getNamespace() + \".insert\", eMpEngyDayYyyyDomain);\n\t}", "public static synchronized ServiceDomain createDomain(final String name) {\n if (!isInitialized()) {\n init();\n }\n\n if (domains.containsKey(name)) {\n throw new RuntimeException(\"Domain already exists: \" + name);\n }\n\n ServiceDomain domain = new DomainImpl(\n name, registry, endpointProvider, transformers);\n domains.put(name, domain);\n return domain;\n }", "@Test\n public void createSubjectTest() throws Exception {\n SubjectKey userKey = getUserKey(\"jdoe\");\n IPSubject ip = new IPSubject();\n \n Subject localhost = newSubject(\"localhost\", \"IP\", \"localhost\", \"127.0.0.1/24\", \"[email protected]\");\n SubjectKey ipKey = ip.createSubject(localhost, userKey);\n \n EntityManagerContext.open(factory);\n try {\n org.ebayopensource.turmeric.policyservice.model.Subject savedSubject =\n EntityManagerContext.get().find(\n org.ebayopensource.turmeric.policyservice.model.Subject.class, \n ipKey.getSubjectId());\n assertNotNull(savedSubject);\n } finally {\n EntityManagerContext.close();\n }\n }", "private String createPID() {\n return \"7777\";\n }", "public GameDomain createGame(String gameDomainName) {\r\n\t\t//get gameDomain in O(1) time\r\n\t\tgameDomainCreator creator = CreateGameDomain.get(gameDomainName);\r\n\t\tGameDomain game = null;\r\n\t\tif(creator != null )\r\n\t\t\tgame = creator.create();\r\n\t\treturn game;\r\n\t}", "public void postDomain(Domain domain) throws SQLException{\n if(connection != null){\n String domainHash = domain.getdomainHash();\n String domainUrl = domain.getdomainUrl();\n int activated = 1;\n String insertion = \"INSERT IGNORE `domain` (`id`,`domainHash`,`domainUrl`,`activated`) VALUES (NULL, '\" + domainHash + \"','\"+domainUrl+\"','\"+activated+\"')\";\n PreparedStatement insert = connection.prepareStatement(insertion);\n insert.execute();\n }else{\n System.out.println(\"Not connected to a database!\");\n }\n }", "@Override\r\n\tpublic int createAdvertisement(AdvertisementDto dto) {\n\t\treturn session.insert(\"kdc.advertisement.createAdvertisement\", dto);\r\n\t}", "private DomainMessageData makeDomainMessageData() {\n return new DomainMessageData(\n new ObjectName(\n String.format(\n \"%sDomainMessageData\", TextConverter.toUpperCamel(contextName.getText()))),\n new PackageName(String.format(\"%s\", rootPackageName.getText())));\n }", "public void createDepartament(int id, String denumire, int numarRaioane) {\n\t\tif (departamentOperations.checkDepartament(id) == true)\n\t\t\tSystem.out.println(\"Departament existent!\");\n\t\tDepartament newDepartament = new Departament(id, denumire, numarRaioane);\n\t\tList<Departament> list = departamentOperations.getAllDepartamente();\n\t\tdepartamentOperations.addDepartament(newDepartament);\n\t\tdepartamentOperations.printListOfDepartamente(list);\n\t}", "public final com.francetelecom.admindm.model.Parameter createPID()\n\t\t\tthrows Fault {\n\t\tcom.francetelecom.admindm.model.Parameter param;\n\t\tparam = data.createOrRetrieveParameter(basePath + \"PID\");\n\t\tparam.setNotification(0);\n\t\tparam.setStorageMode(StorageMode.DM_ONLY);\n\t\tparam.setType(ParameterType.UINT);\n\t\tparam.addCheck(new CheckMinimum(0));\n\t\tparam.addCheck(new CheckMaximum(4294967295L));\n\t\tparam.setValue(new Long(0));\n\t\tparam.setWritable(false);\n\t\treturn param;\n\t}", "public void setDomain(Concept _domain) { domain = _domain; }", "int insert(DrpCommissionRule record);", "Xid createXid();", "void crearAuditoria(String emailUsuario, String observacion, String dirIP, String hostName);", "ParticipantId getId();", "@Override\r\n\tpublic void create(Person p) \r\n\t{\n\t\t\r\n\t}", "public ResponseEntity<ApiMessageResponse> createDepartment(DepartmentRequest departmentRequest) {\n //Creating a new object of department model to save on database\n DepartmentModel departmentModel = new DepartmentModel(0L, departmentRequest.getName(), departmentRequest.getActive());\n\n departmentRepository.save(departmentModel); //Saving in database\n\n return new ResponseEntity<>(new ApiMessageResponse(201, \"Department Created\"), HttpStatus.CREATED);\n }", "public void CreatePeriod(int id, String initDate, String name, String periodState, String programID) throws SQLException {\n\t\ttry {\n\t\t\tString query = \"INSERT INTO jp_period(`ID`, `INITIALDATE`, `NAME`, `PERIODSTATE`, `PROGRAM_ID`) VALUES (\" + id + \", '\" + initDate + \"', '\" + name + \"', '\" + periodState + \"', \" + programID + \");\";\n\t\t\tstatement.execute(query); \n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (conex != null) {\n\t\t\t\tconex.close();\n\t\t\t}\n\t\t}\n\t}", "public void createNewPatient(String firstName, String lastName, String tz, String diagnosis, final Context context){\n final DocumentReference myDocPatient = db.collection(Constants.PATIENTS_COLLECTION_FIELD).document();\n final Patient patientToAdd = new Patient(firstName, lastName, myDocPatient.getId(), diagnosis, tz, localUser.getId());\n myDocPatient.set(patientToAdd);\n localUser.addPatientId(patientToAdd.getId());\n updateUserInDatabase(localUser);\n }", "public void createPartition(int nPid);", "public Campus create(long campusId);", "public void addDvd(DVDDetails details) throws InvalidDvdIdException;", "ProjetoRN createProjetoRN();", "@Test\r\n public void testCreateValid() throws PAException {\r\n StudyProtocol studyProtocol = TestSchema.createStudyProtocolObj();\r\n Ii spIi = IiConverter.convertToStudyProtocolIi(studyProtocol.getId());\r\n StudyDiseaseDTO studyDiseaseDTO = new StudyDiseaseDTO();\r\n studyDiseaseDTO.setStudyProtocolIdentifier(spIi);\r\n Ii diseaseIi = IiConverter.convertToIi(TestSchema.pdqDiseaseIds.get(0));\r\n studyDiseaseDTO.setDiseaseIdentifier(diseaseIi);\r\n studyDiseaseDTO.setCtGovXmlIndicator(BlConverter.convertToBl(true));\r\n StudyDiseaseDTO result = bean.create(studyDiseaseDTO);\r\n assertStudyDiseaseDTO(studyDiseaseDTO, result);\r\n List<StudyDiseaseDTO> dtoList = bean.getByStudyProtocol(spIi);\r\n assertNotNull(\"No result returned\", dtoList);\r\n assertEquals(\"Wrong number of StudyDisease found\", 1, dtoList.size());\r\n assertStudyDiseaseDTO(studyDiseaseDTO, dtoList.get(0));\r\n }", "public void createResident(Resident resident);", "private void saveNewPerson() {\r\n\r\n\t\tSystem.out.println(\"Start Save new Patient...\");\r\n\r\n\t\ttry {\r\n\t\t\tIPerson p1 = new Person(\"admin\", new Role(Roles.ADMINISTRATOR,\r\n\t\t\t\t\t\"Hauptadministrator\"), \"Passwort\", \"[email protected]\", \"Vorname\",\r\n\t\t\t\t\t\"Nachname\", \"Organisation\", \"Abteilung\", \"Fachrichtung\",\r\n\t\t\t\t\t\"Strasse\", \"3e\", \"54321\", \"Ort\");\r\n\r\n\t\t\tp1.save();\r\n\t\t} catch (BusinesslogicException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t} catch (DatabaseException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"New Patient saved!!\");\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString str_personname = personname.getText().toString();\n\t\t\t\tList<String> faceIds = new ArrayList<String>();\n\t\t\t\tfaceIds.add(faceid);\n\t\t\t\tList<String> groupid = new ArrayList<String>();\n\t\t\t\tgroupid.add(groupid_long);\n\t\t\t\tResult result = mFacePlus.createPerson(str_personname, faceIds, str_personname, groupid );\n\t\t\t\tDebug.debug(TAG, \"result=\" + result.type.name());\n\t\t\t\tif(result.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + result.data);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tfinal Person person = (Person)result.data;\n\t\t\t\tpersonid = person.getId();\n\t\t\t\tLog.e(TAG,personid);\n\t\t\t\tDebug.debug(TAG, person.toString());\n\t\t\t\t\n\t\t\t}", "PlayerGroup createPlayerGroup();", "@Override\r\n\tpublic void create(Person person) {\n\r\n\t}", "@Test\n public void createComaPatients() {\n \n Assert.assertEquals(service.createComa().get(0).getBedNumber(), \"45\");\n }", "int insertPerson(UUID id, Person person);", "public static String createPID()\r\n\t{\r\n\t\tunique_count++;\r\n\t\tif(unique_count >= 100) unique_count = 0;\r\n\t\tString str_num = String.format(\"%02d\", unique_count);\r\n\t\t\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyMMddHHmmss\");\r\n\t\tString pid = dateFormat.format(new Date()) + str_num;\r\n\t\treturn pid;\r\n\t}", "@Before\n public void before() {\n Study studyToCreate = TestUtils.getValidStudy(this.getClass());\n studyToCreate.setExternalIdRequiredOnSignup(false);\n studyToCreate.setExternalIdValidationEnabled(false);\n studyToCreate.setTaskIdentifiers(Sets.newHashSet(\"taskId\"));\n study = studyService.createStudy(studyToCreate);\n\n Schedule schedule = new Schedule();\n schedule.setLabel(\"Schedule Label\");\n schedule.setScheduleType(ScheduleType.RECURRING);\n schedule.setInterval(\"P1D\");\n schedule.setExpires(\"P1D\");\n schedule.addTimes(\"10:00\");\n schedule.addActivity(new Activity.Builder().withLabel(\"label\").withTask(\"taskId\").build());\n \n SimpleScheduleStrategy strategy = new SimpleScheduleStrategy(); \n strategy.setSchedule(schedule);\n \n schedulePlan = new DynamoSchedulePlan();\n schedulePlan.setLabel(\"Label\");\n schedulePlan.setStudyKey(study.getIdentifier());\n schedulePlan.setStrategy(strategy);\n schedulePlan = schedulePlanService.createSchedulePlan(study, schedulePlan);\n }", "public de.fraunhofer.fokus.movepla.model.Entitlement create(\n long entitlementId);", "public Dynamics createDynamics() throws APIException {\n\t\tDynamicsBuilder db = new DynamicsBuilder();\n\t\tDynamics ret = db.newDynamics(this);\n\t\tdynamicsSingle.setValue(ret);\n\t\treturn ret;\n\t}", "public static Long createPregnancy(Connection conn, Map queries, EncounterData vo, Long patientId, Date dateVisit, String userName, Long siteId) throws ServletException, SQLException {\r\n Long pregnancyId;\r\n String sqlCreatePregnancy = (String) queries.get(\"SQL_CREATE_PREGNANCY\");\r\n Pregnancy pregnancy = vo.getPregnancy();\r\n String pregnancyUuid = null;\r\n if (pregnancy != null) {\r\n pregnancyUuid = pregnancy.getUuid();\r\n } else {\r\n \tUUID uuid = UUID.randomUUID();\r\n pregnancyUuid = uuid.toString();\r\n }\r\n ArrayList pregnancyValues = new ArrayList();\r\n // add patient_id to pregnancyValues\r\n pregnancyValues.add(patientId);\r\n // add date_visit to pregnancyValues\r\n pregnancyValues.add(dateVisit);\r\n FormDAO.AddAuditInfo(vo, pregnancyValues, userName, siteId);\r\n // adds uuid\r\n pregnancyValues.add(pregnancyUuid);\r\n pregnancyId = (Long) DatabaseUtils.create(conn, sqlCreatePregnancy, pregnancyValues.toArray());\r\n return pregnancyId;\r\n }", "public void setDomain(Domain domain) {\n this.domain = domain;\n }", "public void setDomain(Domain domain) {\n this.domain = domain;\n }", "@RequestMapping(value = \"/groupps\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> create(@Valid @RequestBody GrouppDTO grouppDTO) throws URISyntaxException {\n log.debug(\"REST request to save Groupp : {}\", grouppDTO);\n if (grouppDTO.getId() != null) {\n return ResponseEntity.badRequest().header(\"Failure\", \"A new groupp cannot already have an ID\").build();\n }\n Groupp groupp = grouppMapper.grouppDTOToGroupp(grouppDTO);\n grouppRepository.save(groupp);\n grouppSearchRepository.save(groupp);\n return ResponseEntity.created(new URI(\"/api/groupps/\" + grouppDTO.getId())).build();\n }", "int insertDptTask(DptTaskInfo dptTaskInfo);", "public Long addPatient(long pid, String name, Date dob, int age) throws PatientExn;", "@Test(expected = IllegalArgumentException.class)\r\n public final void testCreateNewVersionForDesignDevContestFailureContestIDZero() throws Exception {\r\n directServiceFacadeBean.createNewVersionForDesignDevContest(new TCSubject(999), 0);\r\n }", "@Override\n public void run() {\n LOG.info(\"ready to create a new topic model for domain: \" + domainUri);\n Optional<Resource> result = helper.getUdm().read(Resource.Type.DOMAIN).byUri(domainUri);\n\n if (!result.isPresent()){\n LOG.warn(\"Unknown domain from uri: \" + domainUri);\n return;\n }\n\n // Load domain info\n domain = result.get().asDomain();\n\n // Delete previous Topics\n helper.getUdm().find(Resource.Type.TOPIC).in(Resource.Type.DOMAIN,domain.getUri()).stream().forEach(topic -> helper.getUdm().delete(Resource.Type.TOPIC).byUri(topic));\n\n // Documents\n buildModelfor(Resource.Type.DOCUMENT);\n\n // Items\n buildModelfor(Resource.Type.ITEM);\n\n // Parts\n buildModelfor(Resource.Type.PART);\n\n }", "@PostMapping(\"/company-departments\")\n @Timed\n public ResponseEntity<CompanyDepartment> createCompanyDepartment(@RequestBody CompanyDepartment companyDepartment) throws URISyntaxException {\n log.debug(\"REST request to save CompanyDepartment : {}\", companyDepartment);\n if (companyDepartment.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"companyDepartment\", \"idexists\", \"A new companyDepartment cannot already have an ID\")).body(null);\n }\n CompanyDepartment result = companyDepartmentRepository.save(companyDepartment);\n return ResponseEntity.created(new URI(\"/api/company-departments/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"companyDepartment\", result.getId().toString()))\n .body(result);\n }", "public abstract AbstractDataChannel createDataChannel(int channelId);", "public String getDomainId() {\n return domain;\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @Test\n public void registerParticipantFailure() throws IntegrationException, SOAPFaultException, MalformedURLException,\n JAXBException {\n final Date stTime = new Date(new java.util.Date().getTime()); \n\n xsltTransformer.transform(null, null, null);\n EasyMock.expectLastCall().andAnswer(new IAnswer() {\n\n public Object answer() {\n return getParticipantXMLString();\n }\n }).anyTimes();\n\n final CaaersServiceResponse caaersServiceResponse = getRegisterParticipantResponse(FAILURE);\n EasyMock.expect(wsClient.createParticipant((String) EasyMock.anyObject())).andReturn(caaersServiceResponse);\n EasyMock.replay(wsClient);\n\n final ServiceInvocationMessage serviceInvocationMessage = prepareServiceInvocationMessage(REFMSGID,\n getParticipantInterimMessage(), stTime,\n caAERSRegistrationServiceInvocationStrategy.getStrategyIdentifier());\n\n final ServiceInvocationResult result = caAERSRegistrationServiceInvocationStrategy\n .invoke(serviceInvocationMessage);\n\n Assert.assertNotNull(result);\n }", "@Test\n public void createSubjectGroupTest() throws Exception\n {\n SubjectKey userKey = getUserKey(\"jdoe\");\n IPSubject ip = new IPSubject();\n \n SubjectGroup subjectGroup = new SubjectGroup();\n subjectGroup.setSubjectGroupName(\"network\");\n subjectGroup.setSubjectType(\"IP\");\n subjectGroup.setApplyToAll(Boolean.valueOf(true));\n subjectGroup.setApplyToEach(Boolean.valueOf(true));\n \n SubjectGroupEditObject sgEditObj = new SubjectGroupEditObject();\n List<Long> addList = sgEditObj.getAddSubjectList();\n addList.add(ip.getSubjectByName(\"workstation\").keySet().toArray(new Long[1])[0]);\n addList.add(ip.getSubjectByName(\"gateway\").keySet().toArray(new Long[1])[0]);\n \n SubjectGroupKey groupKey = ip.createSubjectGroup(subjectGroup, sgEditObj, userKey);\n \n EntityManagerContext.open(factory);\n try {\n org.ebayopensource.turmeric.policyservice.model.SubjectGroup savedSubjectGroup =\n EntityManagerContext.get().find(\n org.ebayopensource.turmeric.policyservice.model.SubjectGroup.class, \n groupKey.getSubjectGroupId());\n assertNotNull(savedSubjectGroup);\n } finally {\n EntityManagerContext.close();\n }\n }", "public void create(){}", "void validateCreate(ClaudiaData claudiaData, EnvironmentDto environmentDto, String vdc) throws \r\n AlreadyExistEntityException, InvalidEntityException;", "public DomicilioDTO createDomicilio(DomicilioDTO nDomicilio) throws LogicaRestauranteException \r\n {\r\n \tlogger.info(\"recibiendo solicitud de agregar un domicilio \" + nDomicilio);\r\n \t\r\n \tif ( nDomicilio.getId() != null ) \r\n {\r\n\t \tfor (DomicilioDTO domi : domicilios) \r\n {\r\n\t if (Objects.equals(domi.getId(), nDomicilio.getId()))\r\n {\r\n\t \tlogger.severe(\"Ya existe una domicilio con ese id\");\r\n\t throw new LogicaRestauranteException(\"Ya existe una domicilio con ese id\");\r\n\t }\r\n\t }\r\n\t \r\n \t} else \r\n {\r\n \t\tlogger.info(\"Generando id para un nuevo domicilio\");\r\n \t\tlong newId = 1;\r\n\t for (DomicilioDTO domi : domicilios) \r\n {\r\n\t if (newId <= domi.getId()){\r\n\t newId = domi.getId() + 1;\r\n\t }\r\n\t }\r\n\t nDomicilio.setId(newId);\r\n \t}\r\n \t\r\n \tlogger.info(\"agregando domicilio \" + nDomicilio);\r\n domicilios.add(nDomicilio);\r\n return nDomicilio;\r\n }", "Drone createDrone();", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @Test\n public void registerParticipantSuccess() throws IntegrationException, SOAPFaultException, MalformedURLException,\n JAXBException {\n final Date stTime = new Date(new java.util.Date().getTime());\n\n xsltTransformer.transform(null, null, null);\n EasyMock.expectLastCall().andAnswer(new IAnswer() {\n\n public Object answer() {\n // return the value to be returned by the method (null for void)\n return getParticipantXMLString();\n }\n }).anyTimes();\n\n final CaaersServiceResponse caaersServiceResponse = getRegisterParticipantResponse(SUCCESS);\n EasyMock.expect(wsClient.createParticipant((String) EasyMock.anyObject())).andReturn(caaersServiceResponse);\n EasyMock.replay(wsClient);\n\n final ServiceInvocationMessage serviceInvocationMessage = prepareServiceInvocationMessage(REFMSGID,\n getParticipantInterimMessage(), stTime,\n caAERSRegistrationServiceInvocationStrategy.getStrategyIdentifier());\n\n final ServiceInvocationResult result = caAERSRegistrationServiceInvocationStrategy\n .invoke(serviceInvocationMessage);\n\n Assert.assertNotNull(result);\n }", "@Test\n @Ignore\n public void testDomainCatalogueService() {\n //Domain A objects\n final String DOMAIN_A_ID=\"DomainAid\";\n DomainInterface domainAinterface = new DomainInterface(\"url.url.rul\", 8080, true, InterfaceType.HTTP);\n VerticalDomainLayer verticalDomainLayer = new VerticalDomainLayer(\"verticalDomainLayerID\",DspType.VERTICAL_EXPERIMENT);\n ArrayList<DomainLayer> listOwnedLayerDomainA = new ArrayList<DomainLayer>();\n listOwnedLayerDomainA.add(verticalDomainLayer);\n Domain domainA = new Domain(DOMAIN_A_ID,\"domainNameA\",\"domainDescriptionA\",\"domainOwnerA\",\"Domain adminA\", DomainStatus.ACTIVE, listOwnedLayerDomainA,new HashSet<>(),domainAinterface);\n\n //Domain B objects\n final String DOMAIN_B_ID=\"DomainBid\";\n NspDomainLayer nspDomainLayer = new NHNspDomainLayer(\"nspDomainLayerID\",\"test\", \"test\");\n NfvoDomainLayer nfvoDomainLayer = new OsmNfvoDomainLayer(\"nfvoDomainLayerId\",\"username\", \"password\", \"project\");\n ArrayList<DomainLayer> listOwnedLayerDomainB = new ArrayList<DomainLayer>();\n listOwnedLayerDomainB.add(nspDomainLayer);\n listOwnedLayerDomainB.add(nfvoDomainLayer);\n DomainInterface domainBinterface = new DomainInterface(\"url2.url2.rul2\", 8081, true, InterfaceType.HTTP);\n Domain domainB = new Domain(DOMAIN_B_ID,\"domainNameB\",\"domainDescriptionB\",\"domainOwnerB\",\"Domain adminB\", DomainStatus.ACTIVE, listOwnedLayerDomainB,new HashSet<>(),domainBinterface);\n\n\n //Test on board Domain B and A\n log.info(\"Testing on boarding Domain B\");\n onBoardDomainTest(domainB);\n\n //An agreement between domain A and two domains layer owned by domain B is performed. Eventually, the domain A is on boarded with such info.\n ArrayList<String> idDomainLayers = new ArrayList<String>();\n idDomainLayers.add(domainB.getOwnedLayers().get(0).getDomainLayerId());\n idDomainLayers.add(domainB.getOwnedLayers().get(1).getDomainLayerId());\n\n DomainAgreement domainAgreement = new DomainAgreement(domainB.getDomainId(),idDomainLayers);\n HashSet<DomainAgreement> domainAgreements = new HashSet<DomainAgreement>();\n domainAgreements.add(domainAgreement);\n domainA.setDomainsAgreement(domainAgreements);\n log.info(\"Testing on boarding domain A\");\n onBoardDomainTest(domainA);\n try {\n domainCatalogueService.deleteDomain(domainA.getDomainId());\n } catch (NotExistingEntityException e) {\n e.printStackTrace();\n }\n boolean notFound=false;\n try {\n domainCatalogueService.getDomain(domainA.getDomainId());\n\n } catch (NotExistingEntityException e) {\n notFound=true;\n log.info(\"Element not found as expected\");\n }\n assertTrue(notFound);\n assertTrue(domainCatalogueService.getAllDomains().size()==1);\n }", "public static void setPeerId(){\n Random ran = new Random();\n int rand_id = ran.nextInt(5555555 - 1000000 + 1) + 1000000;\n String peer_id_string = \"GROUP4AREL33t\" + rand_id;\n PEER_ID = peer_id_string.getBytes();\n }", "public DataEntry create(long dataEntryId);", "UMLDomainConcept createUMLDomainConcept();" ]
[ "0.74548566", "0.6611748", "0.62300366", "0.59774786", "0.582235", "0.56396437", "0.5639387", "0.5567028", "0.552042", "0.54824126", "0.5439446", "0.52919763", "0.52722853", "0.5146768", "0.51341605", "0.5124975", "0.5122511", "0.51174384", "0.5114001", "0.51125777", "0.51116335", "0.5097025", "0.5086603", "0.5079693", "0.5064017", "0.50461674", "0.50264394", "0.5012366", "0.49986035", "0.49975985", "0.49906754", "0.4969902", "0.4968461", "0.49654803", "0.4959458", "0.4948162", "0.4908755", "0.490618", "0.48994136", "0.48965663", "0.48902914", "0.48808193", "0.48508516", "0.4850338", "0.48441988", "0.48415086", "0.48405823", "0.4839624", "0.48315793", "0.48273823", "0.48200858", "0.48143694", "0.48140025", "0.48138583", "0.48033914", "0.47943997", "0.47930905", "0.47916827", "0.47722694", "0.47707495", "0.4766049", "0.4765544", "0.4765007", "0.47577426", "0.47560638", "0.4747049", "0.47456187", "0.47445977", "0.47401744", "0.47227126", "0.470299", "0.47025424", "0.4700398", "0.46992224", "0.46945795", "0.4687418", "0.46710762", "0.4668453", "0.46660343", "0.4665451", "0.4665451", "0.46593866", "0.4656673", "0.465391", "0.46486", "0.46452704", "0.46272537", "0.4618287", "0.4613801", "0.46133167", "0.4612882", "0.4610888", "0.4608752", "0.46057683", "0.46030736", "0.4597869", "0.45972335", "0.4595837", "0.45930472", "0.4590816" ]
0.49394992
36
FILE METHODS get a file based on class path (e.g. /com/myorg/myproj/myfile.txt)
public static File getFile(String name) { return getFile(name, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Path getFilePath();", "java.lang.String getFilePath();", "public File getFile();", "public File getFile();", "private File getClassFile(String name) {\n File file = new File(\"/Users/dingchenchen/Downloads/Test.class\");\n return file;\n }", "String getFilePath();", "File getFile();", "File getFile();", "FileObject getFile();", "FileObject getFile();", "public File getFile() {\n\t\treturn new File(filepath);\n\t}", "public static File toClassPathFile(URL classPathURL) throws IOException {\n String urlPath = classPathURL.getFile();\n\n urlPath = URLDecoder.decode(urlPath, \"UTF-8\");\n if (urlPath.startsWith(\"file:\")) {\n urlPath = urlPath.substring(5);\n }\n\n if (urlPath.indexOf('!') > 0) {\n urlPath = urlPath.substring(0, urlPath.indexOf('!'));\n }\n\n return new File(urlPath);\n }", "public File getFile ();", "String getFile();", "String getFile();", "String getFile();", "@Override\n \tprotected File deriveLocalFileCodeBase(Class<?> baseClass)\n \t{\n \t\t// setup codeBase\n \t\tif (baseClass == null)\n \t\t\tbaseClass = this.getClass();\n \n \t\tPackage basePackage = baseClass.getPackage();\n \t\tString packageName = basePackage.getName();\n \t\tString packageNameAsPath = packageName.replace('.', Files.sep);\n \n \t\tString pathName = System.getProperty(\"user.dir\") + Files.sep;\n \t\tFile path = new File(pathName);\n \t\tString pathString = path.getAbsolutePath();\n \n \t\t// println(\"looking for \" + packageNameAsPath +\" in \" + pathString);\n \n \t\tint packageIndex = pathString.lastIndexOf(packageNameAsPath);\n \t\tif (packageIndex != -1)\n \t\t{\n \t\t\tpathString = pathString.substring(0, packageIndex);\n \t\t\tpath = new File(pathString + Files.sep);\n \t\t}\n \n \t\tcodeBase = new ParsedURL(path);\n \t\tprintln(\"codeBase=\" + codeBase);\n \t\treturn path;\n \t}", "public File getFile() {\n return new File(this.filePath);\n }", "File retrieveFile(String absolutePath);", "String getFilepath();", "public File toJavaFile() {\n return filesystem().toJavaFile(path);\n }", "private File getFile(String fileName) {\n\t\tClassLoader classLoader = getClass().getClassLoader();\n\t\tFile file = new File(classLoader.getResource(fileName).getFile());\n\t\treturn file;\n\t}", "public static File getFile(String resourceOrFile, Class<?> cls,\n boolean deleteTmpOnExit) throws FileNotFoundException {\n try {\n\n // jar:file:/home/.../blue.jar!/path/to/file.xml\n URI uri = getURL(resourceOrFile, cls).toURI();\n String uriStr = uri.toString();\n if (uriStr.startsWith(\"jar\")) {\n\n if (uriStr.endsWith(\"/\")) {\n throw new UnsupportedOperationException(\n \"cannot unjar directories, only files\");\n }\n\n String jarPath = uriStr.substring(4, uriStr.indexOf(\"!\"))\n .replace(\"file:\", \"\");\n String filePath = uriStr.substring(uriStr.indexOf(\"!\") + 2);\n\n JarFile jarFile = new JarFile(jarPath);\n assert (jarFile.size() > 0) : \"no jarFile at \" + jarPath;\n\n Enumeration<JarEntry> entries = jarFile.entries();\n\n while (entries.hasMoreElements()) {\n\n JarEntry jarEntry = entries.nextElement();\n if (jarEntry.toString().equals(filePath)) {\n InputStream input = jarFile.getInputStream(jarEntry);\n assert (input != null) : \"empty is for \" + jarEntry;\n return tmpFileFromStream(input, filePath,\n deleteTmpOnExit);\n }\n }\n assert (false) : \"file\" + filePath + \" not found in \" + jarPath;\n return null;\n } else {\n return new File(uri);\n }\n\n } catch (URISyntaxException e) {\n throw new FileNotFoundException(resourceOrFile);\n } catch (IOException e) {\n throw new FileNotFoundException(resourceOrFile);\n }\n }", "Path getContent(String filename);", "public ClassFile getClassFile(String name) throws IOException {\n if (name.indexOf('.') > 0) {\n int i = name.lastIndexOf('.');\n String pathname = name.replace('.', File.separatorChar) + \".class\";\n if (baseFileName.equals(pathname) ||\n baseFileName.equals(pathname.substring(0, i) + \"$\" +\n pathname.substring(i+1, pathname.length()))) {\n return readClassFile(path);\n }\n } else {\n if (baseFileName.equals(name.replace('/', File.separatorChar) + \".class\")) {\n return readClassFile(path);\n }\n }\n return null;\n }", "private File getFile(String path, String name)\r\n {\r\n File file = null;\r\n boolean found = false;\r\n String ext = \"\";\r\n\r\n for (int i = 0; i < name.length(); i++)\r\n ext += \"\" + ( (name.charAt(i) == '.') ? '\\\\' : name.charAt(i));\r\n\r\n while(ext.length() > 0 && !found)\r\n {\r\n file = new File(path + \"\\\\\" + ext + \".java\");\r\n found = file != null && file.exists() && file.isFile();\r\n ext = ext.substring(0, Math.max(0, ext.lastIndexOf('\\\\')));\r\n }\r\n\r\n return (found)?file:null;\r\n }", "public static File getFile(String property) {\n\t\tFile file = null;\n\t\t// lookup the property\n\t\tString fileString = get(property);\n\t\tif (!fileString.equals(\"\")) {\n\t\t\t// lets see if this file exists if it does not then try and get a resource\n\t\t\tfile = new File(fileString);\n\t\t\tif (!file.exists()) {\n\t\t\t\t// in order to get a resource for a class we need to have a class\n\t\t\t\tif (singleton == null) {\n\t\t\t\t\tgetInstance();\n\t\t\t\t}\n\t\t\t\t// we only want to look for the name of the file as a resource, remove any path information\n\t\t\t\tURL url = singleton.getClass().getResource(file.getName());\n\t\t\t\tif (url != null) {\n\t\t\t\t\tfile = new File(url.getFile());\n\t\t\t\t\tif (!file.exists()) {\n\t\t\t\t\t\tfile = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn file;\n\t}", "File openFile();", "public File getFile( Project project )\n {\n // If we've implemented FileIndex correctly, the the\n // project root + full path is all we should need.\n // File will do the rest\n return( new File( project.getProjectFile().getParentFile(), fullPath ) );\n }", "public static File getFile(String path) {\n\n StringBuilder sb = new StringBuilder();\n\n sb.append(ROOT_PATH_TYPE.getSystemProperty()).append(File.separator);\n\n path = ROOTPATH + path;\n\n if (!path.startsWith(File.separator)) {\n path = File.separator + path;\n }\n sb.append(path);\n return new File(sb.toString());\n }", "public abstract String getFileLocation();", "public String getClassName(String path);", "public File getFile()\r\n \t{\r\n \t\tFile result = null;\r\n \t\t\r\n \t\tString hostName = getAuthority();\r\n \t\t\r\n \t\tif((hostName == null) || hostName.equals(\"\") || hostName.equalsIgnoreCase(\"localhost\"))\r\n \t\t{\r\n \t\t\tString filePath = getPath();\r\n \t\t\tresult = new File(filePath);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tthrow new RuntimeException(\"Can't resolve files on remote host machines\");\r\n \t\t}\r\n \t\t\r\n \t\treturn result;\r\n \t}", "SourceFilePath getFilePath();", "private static File getFile(String pathFile) {\n\t\tif(!pathFile.isEmpty()){\n\t\t\treturn new File(pathFile);\n\t\t}\n\t\treturn null;\n\t}", "public interface ClasspathFileInterface \r\n{\r\n \r\n public boolean exists ();\r\n public String getName ();\r\n public String getAbsolutePath ();\r\n public InputStream openInputStream () throws IOException;\r\n \r\n}", "public String getClassPath();", "public String getPath (Class<?> cn) {\n return PATH + cn.getSimpleName().toLowerCase() + FILE_EXTENSION;\n }", "public static Path getFile(final String path) throws URISyntaxException {\n final URL resource = classLoader.getResource(path);\n checkIfFound(resource, path);\n final URI uri = resource.toURI();\n checkIfFound(uri, path);\n File file = new File(uri);\n checkIfFound(file, path);\n return file.toPath();\n }", "File getWorkfile();", "public File getFile() {\n return this.path != null ? this.path.toFile() : null;\n }", "protected String retrieveRbFile() {\r\n\t\tString className = this.getClass().getName();\r\n\t\tString packageName = this.getClass().getPackage().getName() + \".\";\r\n\t\treturn className.replaceFirst(packageName, \"\");\r\n\t}", "public static File getTestFile( String path )\r\n {\r\n return new File( getBasedir(), path );\r\n }", "protected abstract InputStream getFile(final String path);", "private File getIOFile() {\n \t\tIPath location = resource.getLocation();\n \t\tif(location!=null) {\n \t\t\treturn location.toFile();\n \t\t}\n \t\treturn null;\n \t}", "public static File getFile(String fileName){\n \tString basedir = System.getProperty(\"user.dir\");\n \tString dir = basedir+\"/src/test/resources/\" + fileName;\n \treturn new File(dir);\n }", "private Object getFile(String path) throws Exception {\t\t\t\n\t\t \n\t\t FileInputStream fileIn = new FileInputStream(path);\n ObjectInputStream objectIn = new ObjectInputStream(fileIn);\n\n Object obj = objectIn.readObject();\n objectIn.close();\n \n return obj;\t\t\n\t}", "public File getFileValue();", "public abstract String getFullPath();", "public static File getResourceAsFile(String fileEntry) {\n\t\tFile file = null;\n \ttry {\n \t\tURL url \t= Activator.getDefault().getBundle().getEntry(fileEntry);\n \t\tURL fileURL = FileLocator.toFileURL(url);\n \t\tURL resolve = FileLocator.resolve(fileURL);\n \t\tfile \t\t= new File(resolve.getFile());\n \t} catch(Exception e){\n Activator.getDefault().log(e.getMessage(), e);\n \t}\n \treturn file;\n\t\t\n\t}", "public IFile getIFile ();", "public String getPath();", "public String getPath();", "public String getPath();", "protected File getFile(HttpServletRequest request) {\n String path = request.getPathInfo();\n\n // we want to extract everything after /spa/spaResources/ from the path info. This should cater for sub-directories\n String extractedFile = path.substring(path.indexOf('/', BASE_URL.length() - 1) + 1);\n File folder = SpaModuleUtils.getSpaStaticFilesDir();\n\n //Resolve default index.html\n if (extractedFile.endsWith(\"index.htm\") || !extractedFile.contains(\".\")) {\n extractedFile = \"index.html\";\n }\n\n File file = folder.toPath().resolve(extractedFile).toFile();\n if (!file.exists()) {\n log.warn(\"File with path '{}' doesn't exist\", file.toString());\n return null;\n }\n return file;\n }", "public File getTemplateFile();", "public static File loadFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(Main.class);\n String filePath = prefs.get(\"filePath\", null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n return null;\n }\n }", "public URL getResourceFile(String path){\n\n ClassLoader classLoader = getClass().getClassLoader();\n return classLoader.getResource(path);\n }", "@SuppressWarnings(\"unused\")\r\n\tprivate static File createFile(String path) {\r\n\t\t\r\n\t\t// open the file\r\n\t\tFile currentFile = new File(path);\r\n\t\t\r\n\t\t\r\n\t\t// check if it is a valid file\r\n\t\tif (currentFile == null) {\r\n\t\t\tSystem.out.println(\"Could not create the file\");\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\r\n\t\t// hopefully things went perfect\r\n\t\treturn currentFile;\r\n\r\n\t}", "public File getFile() {\n // some code goes here\n return f;\n }", "private static TYPE getFileType(final String path, final ServiceContext context) {\n return PROJECT_FILE;\n }", "public interface FileRepository {\n /**\n * Create a file and write the object in the given format (json or xml)\n * @param data The data that will be written to the file\n * @param fileName The name of the file without any path or extension\n * @param fileFormat The file format enum (json or xml)\n * @return The file's absolute path\n */\n String saveToFile(Object data, String fileName, FileFormat fileFormat) throws IOException;\n\n /**\n * Retrieve a file from its absolute path\n * @param absolutePath The file's location (absolute path returned by the saveToFile method)\n * @return The actual file\n */\n File retrieveFile(String absolutePath);\n}", "@Override\n public Class getJavaClass() throws IOException, ClassNotFoundException {\n open();\n URL url;\n int p = path.lastIndexOf('/');\n int p2 = path.substring(0,p-1).lastIndexOf('/');\n\n File f = new File(path.substring(0,p2));\n url = f.toURI().toURL();\n URL[] urls = new URL[1];\n urls[0] = url;\n ClassLoader loader = new URLClassLoader(urls);\n\n String cls = path.substring(p2 + 1, path.lastIndexOf('.')).replace('/', '.');\n\n if (cfile.getParentFile().getParentFile().getName().equals(\"production\")) {\n cls = cls.substring(cls.lastIndexOf('.') + 1);\n }\n\n\n\n return loader.loadClass(cls);\n }", "public File getFileForKey(String key) {\n\t\treturn new File(mRootDirectory, getFilenameForKey(key));\n\t}", "FileReference getFile(String fileName);", "public abstract String getPath();", "public abstract String getPath();", "@Override\n public String getAbsolutePathImpl() {\n return file.getAbsolutePath();\n }", "private FileUtil() {}", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "public String getFile() {\n \n // return it\n return theFile;\n }", "public File getFile(final String fileName) {\r\n return IOUtil.getFile(fileName, getClass());\r\n }", "private String filePathToClassname(File file) {\n return file.getPath().replace(\".class\", \"\")\n .replace(\"/\", \".\")\n .replace(\"\\\\\", \".\");\n }", "public static String get(String file) throws IOException {\n\n\t\tClassLoader classLoader = FileIO.class.getClassLoader();\n\t\tInputStream inputStream = new FileInputStream(classLoader.getResource(\n\t\t\t\tfile).getFile());\n\t\treturn IOUtils.toString(inputStream);\n\n\t}", "File getDefaultFile();", "abstract File getResourceDirectory();", "@java.lang.Override\n public java.lang.String getFilePath() {\n return instance.getFilePath();\n }", "public File getFile() {\n // some code goes here\n return m_f;\n }", "public static File getFile(String key) {\n\t\tArgumentNotValid.checkNotNullOrEmpty(key, \"String key\");\n\t\treturn new File(get(key));\n\t}", "private static <T> InputStream getPropertiesFile(Class<T> clazz, ULocale locale) {\r\n String localeStr = \"\";\r\n if(locale != null) {\r\n localeStr = '_' + locale.getName();\r\n }\r\n String filePath = clazz.getName().replace(DOT, SLASH) + localeStr + PROPERTIES_EXT;\r\n return clazz.getClassLoader().getResourceAsStream(filePath);\r\n }", "File(String path, String type)\n {\n this.path=path;\n this.type=type;\n }", "protected File getFile(String sPathTempl)\n {\n try\n {\n String sFileTempl = m_sFileTempl;\n String sFileName = replaceMacros(\n getFileTemplate(sFileTempl, sPathTempl), null);\n\n if (sFileName.length() == 0)\n {\n log(\"Report writer:No output file specified. Report terminated\");\n return null;\n }\n\n File fOut = new File(sFileName);\n if (!fOut.exists())\n {\n fOut.createNewFile();\n }\n\n return fOut;\n }\n catch (IOException e) // FileNoteFoundException\n {\n throw ensureRuntimeException(e, \"Invalid or unable to create output file.\");\n }\n }", "File getFilePath()\r\n\t{\r\n\t\treturn fFilePath;\r\n\t}", "public interface IOFactory {\n\n public FileIO newFile(String path);\n\n}", "public File getFile() {\n // some code goes here\n return this.f;\n }", "private static String getClassNameForClassFile(WebFile aFile)\n {\n String filePath = aFile.getPath();\n String filePathNoExtension = filePath.substring(1, filePath.length() - 6);\n String className = filePathNoExtension.replace('/', '.');\n return className;\n }", "void getFile(String path, OutputStream stream) throws NotFoundException, IOException;", "public File getFile() { return file; }", "@Get\r\n\tpublic Representation getFile() throws Exception {\n\r\n\t\tString remainPart = StringUtil.split(getRequest().getResourceRef().getRemainingPart(), \"?\")[0];\r\n\t\tFile file = getAradon().getGlobalConfig().plugin().findPlugInFile(MyConstants.PLUGIN_ID, \"jminix/js/\" + remainPart ) ;\r\n\t\t\r\n\t\tif (! file.exists()) throw new ResourceException(Status.CLIENT_ERROR_NOT_FOUND, getRequest().getResourceRef().getPath()) ; \r\n\r\n\t\tMediaType mtype = getMetadataService().getMediaType(StringUtil.substringAfterLast(file.getName(), \".\")) ;\r\n\t\tif (mtype == null) mtype = MediaType.ALL ; \r\n\t\t\r\n\t\tfinal FileRepresentation result = new FileRepresentation(file, mtype);\r\n\t\treturn result;\r\n\t}", "private File getFile(String filename) throws Exception {\n\t\tFile file = new File(filename);\n\t\tif (file.exists()) {\n\t\t\treturn file;\n\t\t} else if (!file.isAbsolute()) {\n\t\t\tfinal Resource r = context.getThisInstance().eResource();\n\t\t\tfinal Path p = new Path(r.getURI().segment(1) + File.separator + filename);\n\t\t\tfinal IFile f = ResourcesPlugin.getWorkspace().getRoot().getFile(p);\n\t\t\tif (f.exists()) {\n\t\t\t\treturn f.getRawLocation().makeAbsolute().toFile();\n\t\t\t}\n\t\t}\n\n\t\tthrow new Exception(\"Filename \" + filename + \" not found\");\n\n\t}", "public abstract String getResourcePath(Method method);", "protected File getFile(Bitstream bitstream) throws IOException {\n // Check that bitstream is not null\n if (bitstream == null) {\n return null;\n }\n\n // turn the internal_id into a file path relative to the assetstore\n // directory\n String sInternalId = bitstream.getInternalId();\n\n // there are 4 cases:\n // -conventional bitstream, conventional storage\n // -conventional bitstream, srb storage\n // -registered bitstream, conventional storage\n // -registered bitstream, srb storage\n // conventional bitstream - dspace ingested, dspace random name/path\n // registered bitstream - registered to dspace, any name/path\n String sIntermediatePath = null;\n if (isRegisteredBitstream(sInternalId)) {\n sInternalId = sInternalId.substring(REGISTERED_FLAG.length());\n sIntermediatePath = \"\";\n } else {\n\n // Sanity Check: If the internal ID contains a\n // pathname separator, it's probably an attempt to\n // make a path traversal attack, so ignore the path\n // prefix. The internal-ID is supposed to be just a\n // filename, so this will not affect normal operation.\n sInternalId = this.sanitizeIdentifier(sInternalId);\n sIntermediatePath = getIntermediatePath(sInternalId);\n }\n\n StringBuilder bufFilename = new StringBuilder();\n bufFilename.append(baseDir.getCanonicalFile());\n bufFilename.append(File.separator);\n bufFilename.append(sIntermediatePath);\n bufFilename.append(sInternalId);\n if (log.isDebugEnabled()) {\n log.debug(\"Local filename for \" + sInternalId + \" is \"\n + bufFilename.toString());\n }\n return new File(bufFilename.toString());\n }", "@Produces\n\tpublic Path produceFile() throws IOException{\n\t\tlogger.info(\"The path (generated by PathProducer) will be injected here - # Path : \"+path);\n\t\tif(Files.notExists(path)){\n\t\t\tFiles.createDirectory(path);\n\t\t\tlogger.info(\" Directory Created :: \" +path);\n\t\t}\n\t\t/*\n\t\t * currentTimeMillis will be injected by NumberPrefixProducer and has a seperate qualifier\n\t\t */\n\t\tPath file = path.resolve(\"myFile_\" + currentTimeMillis + \".txt\");\n\t\tlogger.info(\"FileName : \"+file);\n\t\tif(Files.notExists(file)){\n\t\t\tFiles.createFile(file);\n\t\t}\n\t\tlogger.info(\" File Created :: \" +file);\n\t\treturn file;\n\t}", "public Files files();", "public File getLibraryFile() {\n return ((FilePath) this.getClasses().iterator().next()).getFile();\n }", "public static File getFile(String resourceOrFile)\n throws FileNotFoundException {\n\n try {\n File file = new File(resourceOrFile);\n if (file.exists()) {\n return file;\n }\n } catch (Exception e) {// nope\n }\n\n return getFile(resourceOrFile, Thread.class, false);\n }", "public static File getFileToLoad() {\n\t\treturn new File(System.getProperty(\"user.home\") + File.separatorChar + \"Documents\" + File.separatorChar + \"main.css\");\n\t\t//return null;\n\t}" ]
[ "0.6886672", "0.6759677", "0.6700129", "0.6700129", "0.66799605", "0.66630465", "0.659993", "0.659993", "0.6534137", "0.6534137", "0.6462379", "0.64436007", "0.64391005", "0.64309454", "0.64309454", "0.64309454", "0.6412997", "0.6381963", "0.6380371", "0.6369962", "0.63441", "0.6292838", "0.6278575", "0.6214221", "0.62109417", "0.6181944", "0.61739254", "0.6156589", "0.6146328", "0.6138616", "0.61271286", "0.61153924", "0.6097359", "0.6091312", "0.6089112", "0.6064631", "0.6050266", "0.6039673", "0.60139674", "0.60139066", "0.60123026", "0.60117984", "0.60073936", "0.5960092", "0.5953374", "0.5939929", "0.592309", "0.5920853", "0.5911472", "0.5896643", "0.5871465", "0.58546984", "0.58546984", "0.58546984", "0.58269656", "0.5810841", "0.5803245", "0.579663", "0.57941794", "0.57937473", "0.5778776", "0.57724047", "0.5770334", "0.57693666", "0.57659245", "0.5762096", "0.5762096", "0.57573754", "0.57456034", "0.57448244", "0.57448244", "0.57448244", "0.57448244", "0.57448244", "0.57412606", "0.57398224", "0.5732822", "0.5714813", "0.5708781", "0.5702685", "0.57010436", "0.5696987", "0.56902385", "0.5684833", "0.5683611", "0.56561613", "0.56527764", "0.5650624", "0.5649849", "0.56410223", "0.56325585", "0.5621958", "0.5607231", "0.5600641", "0.559858", "0.55963963", "0.55950415", "0.5577476", "0.5569141", "0.55661607", "0.5564569" ]
0.0
-1
get file from project root (based on mvn project)
public static File getProjectRoot() { String filePath = "/"; String rootDirName = FileUtil.class.getResource(filePath).getPath(); File rtn = new File(rootDirName, "../../"); return rtn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public File getFile( Project project )\n {\n // If we've implemented FileIndex correctly, the the\n // project root + full path is all we should need.\n // File will do the rest\n return( new File( project.getProjectFile().getParentFile(), fullPath ) );\n }", "@Override\r\n public String getProjectPath() {\r\n \treturn String.format(\":%s\", getArtifactId());\r\n }", "@NotNull\n protected Document getDocumentFileInProject(String filename) {\n VirtualFile sourceFile = searchForVirtualFileInProject(filename);\n Document doc = FileDocumentManager.getInstance().getDocument(sourceFile);\n assertNotNull(String.format(\"%s not found.\", filename), doc);\n return doc;\n }", "String getRepositoryPath();", "private static File getAspectWorkspace() {\n try {\n URL url = Platform.getBundle(Activator.PLUGIN_ID).getEntry(\"resources\");\n URL resolved = FileLocator.resolve(url);\n return new File(resolved.getPath());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "default Optional<Path> getProjectDir() {\n Optional<Path> projectDir = get(MICRONAUT_PROCESSING_PROJECT_DIR, Path.class);\n if (projectDir.isPresent()) {\n return projectDir;\n }\n // let's find the projectDir\n Optional<GeneratedFile> dummyFile = visitGeneratedFile(\"dummy\" + System.nanoTime());\n if (dummyFile.isPresent()) {\n URI uri = dummyFile.get().toURI();\n // happens in tests 'mem:///CLASS_OUTPUT/dummy'\n if (uri.getScheme() != null && !uri.getScheme().equals(\"mem\")) {\n // assume files are generated in 'build' or 'target' directories\n Path dummy = Paths.get(uri).normalize();\n while (dummy != null) {\n Path dummyFileName = dummy.getFileName();\n if (dummyFileName != null && (\"build\".equals(dummyFileName.toString()) || \"target\".equals(dummyFileName.toString()))) {\n projectDir = Optional.ofNullable(dummy.getParent());\n put(MICRONAUT_PROCESSING_PROJECT_DIR, dummy.getParent());\n break;\n }\n dummy = dummy.getParent();\n }\n }\n }\n\n return projectDir;\n }", "public static File getFileToLoad() {\n\t\treturn new File(System.getProperty(\"user.home\") + File.separatorChar + \"Documents\" + File.separatorChar + \"main.css\");\n\t\t//return null;\n\t}", "public Path getRepositoryBaseDir();", "private static File getProjectsPath() {\n File projectsPath = loadFilePath();\n if (projectsPath == null) {\n JFileChooser fc = createFileChooser();\n if (fc.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {\n return fc.getSelectedFile();\n }\n }\n return projectsPath;\n }", "Project getProject();", "public String getProjectFilePath() {\n\t\tif (projectFileIO != null) {\n\t\t\treturn projectFileIO.getFilePath();\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}", "public static File getFile(String fileName){\n \tString basedir = System.getProperty(\"user.dir\");\n \tString dir = basedir+\"/src/test/resources/\" + fileName;\n \treturn new File(dir);\n }", "@Override\n public InputStream findResource(String filename)\n {\n InputStream resource = null;\n try\n {\n Path scriptRootPath = Files.createDirectories(getScriptRootPath(side));\n Path scriptPath = scriptRootPath.resolve(filename).toAbsolutePath();\n resource = Files.newInputStream(scriptPath, StandardOpenOption.READ);\n } catch (IOException e)\n {\n resource = super.findResource(filename);\n }\n return resource;\n }", "private File getFile(String filename) throws Exception {\n\t\tFile file = new File(filename);\n\t\tif (file.exists()) {\n\t\t\treturn file;\n\t\t} else if (!file.isAbsolute()) {\n\t\t\tfinal Resource r = context.getThisInstance().eResource();\n\t\t\tfinal Path p = new Path(r.getURI().segment(1) + File.separator + filename);\n\t\t\tfinal IFile f = ResourcesPlugin.getWorkspace().getRoot().getFile(p);\n\t\t\tif (f.exists()) {\n\t\t\t\treturn f.getRawLocation().makeAbsolute().toFile();\n\t\t\t}\n\t\t}\n\n\t\tthrow new Exception(\"Filename \" + filename + \" not found\");\n\n\t}", "public static String getProjectPath() {\n\t\tif (!projectPath.isEmpty()) {\n\t\t\treturn projectPath;\n\t\t} else {\n\t\t\treturn \"No file yet\";\n\t\t}\n\t}", "public File getProjectFile() {\r\n\t\treturn projectFile;\r\n\t}", "String getRepositoryPath(String name);", "public Path getRemoteRepositoryBaseDir();", "public static IFile getConfigLocalFile(IProject proj) {\n return proj.getFile(SLOEBER_PROJECT);\n }", "public IFile getBundleFile(String uri){\r\n \t\tif(project == null || !project.isOpen()) {\r\n \t\t\treturn null;\r\n \t\t}\r\n \t\ttry {\r\n \t\t\tif(!project.hasNature(JavaCore.NATURE_ID)) {\r\n \t\t\t\treturn null;\r\n \t\t\t}\r\n \t\t\tIJavaProject javaProject = JavaCore.create(project);\t\t\r\n \t\t\tIClasspathEntry[] es = javaProject.getResolvedClasspath(true);\r\n \t\t\tfor (int i = 0; i < es.length; i++) {\r\n \t\t\t\tif(es[i].getEntryKind() != IClasspathEntry.CPE_SOURCE) {\r\n \t\t\t\t\tcontinue;\r\n \t\t\t\t}\r\n \t\t\t\tIFile file = (IFile) project.getWorkspace().getRoot()\r\n \t\t\t\t\t.getFolder(es[i].getPath()).findMember(\"/\" + getBundleFileName(uri)); //$NON-NLS-1$\r\n \t\t\t\tif(file != null && file.exists()) {\r\n \t\t\t\t\treturn file;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} catch (CoreException e) {\r\n \t\t\tJspEditorPlugin.getPluginLog().logError(e);\r\n \t\t\treturn null;\r\n \t\t}\r\n \t\treturn null;\r\n \t}", "private File getCurrentArtifact() {\n\t\treturn new File(target, jarName.concat(EXTENSION));\n\t}", "public static File getFileInPlugin(IPath path) {\r\n\t\ttry {\r\n\t\t\tURL installURL = getDefault().getBundle().getEntry(path.toString());\r\n\t\t\tURL localURL = FileLocator.toFileURL(installURL);\r\n\t\t\treturn new File(localURL.getFile());\r\n\t\t} catch (IOException ioe) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "java.io.File getBaseDir();", "private File getFile(final String relativePathToFile, final String versionSubDirectory) {\n\n final URL urlToFile = TestBase.class.getResource(TEST_DATA_DIR + versionSubDirectory + relativePathToFile);\n File destFile = new File(WORKING_DIR + versionSubDirectory + relativePathToFile);\n\n try {\n FileUtils.copyURLToFile(urlToFile, destFile);\n } catch (IOException e) {\n System.out.println(\"File specified in URL cannot be found\"+ e.getMessage());\n }\n\n return destFile;\n }", "@NotNull\n public File repositoryFileFromVirtualFile(VirtualFile file)\n {\n String pathRelativeToRepository = file.getPath().substring(this.root().getPath().length());\n\n return new File(pathRelativeToRepository, file.getName());\n }", "Path getFilePath();", "public FileObject getProjectDirectory() {\n return helper.getProjectDirectory();\n }", "Object getRelativeToChangelogFile();", "public static File getFile(String path) {\n\n StringBuilder sb = new StringBuilder();\n\n sb.append(ROOT_PATH_TYPE.getSystemProperty()).append(File.separator);\n\n path = ROOTPATH + path;\n\n if (!path.startsWith(File.separator)) {\n path = File.separator + path;\n }\n sb.append(path);\n return new File(sb.toString());\n }", "private File getArtifactFile(Artifact artifactQuery)\n\t\t\tthrows MojoExecutionException {\n\n\t\tArtifactRequest request = new ArtifactRequest(artifactQuery,\n\t\t\t\tprojectRepos, null);\n\t\tList<ArtifactRequest> arts = new ArrayList<ArtifactRequest>();\n\t\tarts.add(request);\n\t\ttry {\n\t\t\tArtifactResult a = repoSystem.resolveArtifact(repoSession, request);\n\t\t\treturn a.getArtifact().getFile();\n\t\t} catch (ArtifactResolutionException e) {\n\t\t\tthrow new MojoExecutionException(\n\t\t\t\t\t\"could not resolve artifact to compare with\", e);\n\t\t}\n\n\t}", "Path getContent(String filename);", "public File getProjectDir() {\r\n\t\treturn projectDir;\r\n\t}", "private File getFile(String relativePath) { \n StringBuffer path = new StringBuffer();\n path.append(rootDir.getAbsolutePath());\n path.append(File.separator);\n path.append(relativePath);\n return new File(path.toString());\n }", "java.lang.String getSrcPath();", "@Test\n void findSourceJar() {\n Class<?> klass = org.apache.commons.io.FileUtils.class;\n var codeSource = klass.getProtectionDomain().getCodeSource();\n if (codeSource != null) {\n System.out.println(codeSource.getLocation());\n }\n }", "public IProject getProject();", "String getFilePath();", "public static File loadFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(Main.class);\n String filePath = prefs.get(\"filePath\", null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n return null;\n }\n }", "java.lang.String getFilePath();", "public String resolvePath();", "private String getProjectName(String configFilePath) {\r\n\t\t// get the project name i.e the first directory name relative to the projects root\r\n\t\tFile projectsRoot = new File(RuntimeVariables.getProjectsRoot());\r\n\t\tString relativePath = configFilePath.substring(projectsRoot.getAbsolutePath().length());\r\n\t\treturn new StringTokenizer(relativePath, File.separator).nextToken();\t\t\r\n\t}", "Path getRootPath();", "@Nullable\n public static VirtualFile getSelectedFile(@Nonnull Project project) {\n StatusBar statusBar = WindowManager.getInstance().getStatusBar(project);\n final FileEditor fileEditor = StatusBarUtil.getCurrentFileEditor(statusBar);\n VirtualFile result = null;\n if (fileEditor != null) {\n if (fileEditor instanceof TextEditor) {\n Document document = ((TextEditor)fileEditor).getEditor().getDocument();\n result = FileDocumentManager.getInstance().getFile(document);\n }\n else {\n result = fileEditor.getFile();\n }\n }\n\n if (result == null) {\n final FileEditorManager manager = FileEditorManager.getInstance(project);\n if (manager != null) {\n Editor editor = manager.getSelectedTextEditor();\n if (editor != null) {\n result = FileDocumentManager.getInstance().getFile(editor.getDocument());\n }\n }\n }\n return result;\n }", "public ProjectFile getProject()\r\n {\r\n return m_project;\r\n }", "Builder forProjectDirectory(File projectDir);", "@NotNull // or exception\r\n public static VirtualFile get_project_base_dir(final Project project) throws Exception {\n String project_path = project.getBasePath();\r\n if (project_path == null) {\r\n throw new Exception(\"Cannot detect the project base path\");\r\n }\r\n /*\r\n// boolean found = false;\r\n// String content_root_list = \"\";\r\n// // https://jetbrains.org/intellij/sdk/docs/reference_guide/project_model/project.html\r\n// List<String> content_roots = ProjectRootManager.getInstance(project).getContentRootUrls();\r\n// for (String content_root_path : content_roots) {\r\n// if (content_root_path.endsWith(project_path)) {\r\n// found = true;\r\n// }\r\n// content_root_list += \"[\" + content_root_path + \"]\";\r\n// }\r\n// if (!found) {\r\n// throw new Exception(\"Something is wrong with project structure.\\r\\nProject base path '\" + project_path + \"' not found among content roots:\\r\\n\" + content_root_list);\r\n// }\r\n */\r\n File file = new File(project_path);\r\n // https://intellij-support.jetbrains.com/hc/en-us/community/posts/360001957360-Get-file-from-path-to-have-a-virtual-file\r\n VirtualFile res = VfsUtil.findFileByIoFile(file, true);\r\n if (res == null) {\r\n throw new Exception(\"Cannot find project directory in virtual file system\");\r\n }\r\n return res;\r\n }", "public String getProjectRelativeFileName(URI resourceURI, IFileSystemAccess fsa) {\r\n\t\t// @see http://www.eclipse.org/forums/index.php/m/1230878/#msg_1230878\r\n\t\tif (!resourceURI.isPlatformResource())\r\n\t\t\tthrow new IllegalArgumentException(\"Not a Platform Resource URI: \" + resourceURI.toString());\r\n\t\t// This is bit of a hack, but it works...\r\n\t\tString sURI = resourceURI.toPlatformString(true);\r\n\t\tString withoutProject = sURI.substring(sURI.indexOf('/', 1) + 1);\r\n\t\treturn withoutProject;\r\n\t\t// Something like this may be a better use of the API, but is much more difficult to unit test in EFactoryJSONGeneratorTest, so not pursued: \r\n\t\t// URI projectRootURI = ((IFileSystemAccessExtension2)fsa).getURI(\".\");\r\n\t\t// URI resourceWithoutProjectURI = resourceURI.deresolve(projectRootURI);\r\n\t\t// return resourceWithoutProjectURI.toString();\r\n\t}", "private static File getFileFromConfigDirectory(String file) {\n File f = new File(configDirectory, file);\n if (configDirectory != null && f.exists()) {\n return f;\n }\n return null;\n }", "private void findCvsRoot()\n{\n File f = new File(for_project.getSourceDirectory());\n for ( ; ; ) {\n File fp = f.getParentFile();\n File fp1 = new File(fp,\"CVS\");\n if (!fp1.exists()) break;\n f = fp;\n }\n cvs_root = f;\n}", "private static String getVersionFromPom() {\n\n final String absolutePath = new File(BuildVersion.class.getResource(BuildVersion.class\n .getSimpleName() + \".class\").getPath())\n .getParentFile().getParentFile().getParentFile().getParentFile().getParentFile()\n .getParentFile().getParentFile().getAbsolutePath();\n\n final File file = new File(absolutePath + \"/pom.xml\");\n\n try (InputStreamReader reader = new InputStreamReader(new FileInputStream(file), StandardCharsets.UTF_8)) {\n\n final MavenXpp3Reader xpp3Reader = new MavenXpp3Reader();\n Model model = xpp3Reader.read(reader);\n return model.getVersion();\n\n } catch (NoClassDefFoundError e) {\n // if you want to get the version possibly in development add in to your pom\n // pax-url-aether.jar\n return null;\n } catch (Exception e) {\n return null;\n }\n }", "public Artifact getDotdFile() {\n return compileCommandLine.getDotdFile();\n }", "File getTargetDirectory();", "public static String get(String file) throws IOException {\n\n\t\tClassLoader classLoader = FileIO.class.getClassLoader();\n\t\tInputStream inputStream = new FileInputStream(classLoader.getResource(\n\t\t\t\tfile).getFile());\n\t\treturn IOUtils.toString(inputStream);\n\n\t}", "public static final String getProject() { return project; }", "public static final String getProject() { return project; }", "private static String getFileRoot(String file) {\r\n \treturn file.substring(0, file.indexOf('.'));\r\n }", "@objid (\"d1a8268b-dff5-4398-936a-ef1cb1e69102\")\n public static File getBundleFile(final String relPath) throws IOException {\n try {\n URL url = FileLocator.find(Audit.context.getBundle(), new Path(relPath), null);\n URL fileUrl = FileLocator.toFileURL(url);\n return new File(URIUtil.toURI(fileUrl));\n } catch (IOException | URISyntaxException | RuntimeException e) {\n throw new IOException(\"'\" + relPath + \"' not found in plugin.\", e);\n }\n }", "private static Path getTargetPath() {\r\n return Paths.get(getBaseDir(), \"target\");\r\n }", "Path getMainCatalogueFilePath();", "abstract File getResourceDirectory();", "private ProjectMgr getPmNameTrueLoadActualProject() {\n ProjectMgr pm = null;\n try {\n pm = new ProjectMgr(\"Example\", true);\n\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (SAXException e) {\n e.printStackTrace();\n }\n\n IOException e;\n return pm;\n }", "String rootPath();", "@NotNull\n protected VirtualFile firstMatchingVirtualFileInProject(String filename) {\n Collection<VirtualFile> files = FilenameIndex.getVirtualFilesByName(myProject, filename, GlobalSearchScope.allScope(myProject));\n assertTrue(String.format(\"Filename %s not found in project\", filename), files.size() > 0);\n return files.iterator().next();\n }", "String getAbsolutePathWithinSlingHome(String relativePath);", "public static File whoAmI() throws IOException, URISyntaxException {\n // JNLP returns the URL where the jar was originally placed (like http://hudson.dev.java.net/...)\n // not the local cached file. So we need a rather round about approach to get to\n // the local file name.\n // There is no portable way to find where the locally cached copy\n // of hudson.war/jar is; JDK 6 is too smart. (See HUDSON-2326.)\n try {\n\t URL classFile = Main.class.getClassLoader().getResource(mainClassAsResourceString());\n JarFile jf = ((JarURLConnection) classFile.openConnection()).getJarFile();\n Field f = ZipFile.class.getDeclaredField(\"name\");\n f.setAccessible(true);\n return new File((String) f.get(jf));\n } catch (Exception x) {\n System.err.println(\"ZipFile.name trick did not work, using fallback: \" + x);\n }\n File myself = File.createTempFile(\"hudson\", \".jar\");\n myself.deleteOnExit();\n InputStream is = Main.class.getProtectionDomain().getCodeSource().getLocation().openStream();\n try {\n OutputStream os = new FileOutputStream(myself);\n try {\n copyStream(is, os);\n } finally {\n os.close();\n }\n } finally {\n is.close();\n }\n return myself;\n }", "@NotNull\n protected VirtualFile searchForVirtualFileInProject(String filename) {\n Collection<VirtualFile> files = FilenameIndex.getVirtualFilesByName(myProject, filename, GlobalSearchScope.allScope(myProject));\n assertEquals(String.format(\"%s not found.\", filename), 1, files.size());\n return files.iterator().next();\n }", "protected File getFile(HttpServletRequest request) {\n String path = request.getPathInfo();\n\n // we want to extract everything after /spa/spaResources/ from the path info. This should cater for sub-directories\n String extractedFile = path.substring(path.indexOf('/', BASE_URL.length() - 1) + 1);\n File folder = SpaModuleUtils.getSpaStaticFilesDir();\n\n //Resolve default index.html\n if (extractedFile.endsWith(\"index.htm\") || !extractedFile.contains(\".\")) {\n extractedFile = \"index.html\";\n }\n\n File file = folder.toPath().resolve(extractedFile).toFile();\n if (!file.exists()) {\n log.warn(\"File with path '{}' doesn't exist\", file.toString());\n return null;\n }\n return file;\n }", "FsPath baseDir();", "String getFilepath();", "public String getRelativePath();", "private File getFile(String fileName) {\n String path = \"\";\n if (fileName.equals(PREV_DIRECTORY)) {\n if (getCurrentDir().lastIndexOf(\"/\") >= 0) {\n path = getCurrentDir().substring(0, getCurrentDir().lastIndexOf(\"/\"));\n if (fileName.length() > PREV_DIRECTORY.length()) {\n path += fileName.substring(2, fileName.length());\n }\n }\n else {\n path += fileName.substring(2, fileName.length());\n }\n }\n else if (fileName.equals(CURRENT_DIRECTORY)) {\n path = getCurrentDir();\n }\n else {\n path = getCurrentDir()+\"/\"+fileName;\n }\n\n // Datei laden\n return getFile(path, getCredentials());\n }", "protected String retrieveRbFile() {\r\n\t\tString className = this.getClass().getName();\r\n\t\tString packageName = this.getClass().getPackage().getName() + \".\";\r\n\t\treturn className.replaceFirst(packageName, \"\");\r\n\t}", "public final Artifact getSourceFile() {\n return compileCommandLine.getSourceFile();\n }", "public String getProjectPath() {\n return projectPath;\n }", "private static Path getFilePath(Path testSuitePath, Path testCasePath, Path relativeFilePath) {\n Path filePath = testCasePath.resolve(relativeFilePath);\n if (Files.exists(filePath)) {\n return filePath;\n } else {\n // If not try to get from the test suite directory\n filePath = testSuitePath.resolve(relativeFilePath);\n }\n\n return Files.exists(filePath) ? filePath : null;\n }", "public String getResourcePath();", "private File getLastArtifact() throws MojoExecutionException {\n\t\torg.eclipse.aether.version.Version v = getLastVersion();\n\t\tif (v == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tArtifact artifactQuery = new DefaultArtifact(groupId.concat(\":\")\n\t\t\t\t.concat(name).concat(\":\").concat(v.toString()));\n\t\tgetLog().debug(\n\t\t\t\tString.format(\"looking for artifact %s\",\n\t\t\t\t\t\tartifactQuery.toString()));\n\t\treturn getArtifactFile(artifactQuery);\n\n\t}", "File retrieveFile(String absolutePath);", "public static File getResourceAsFile(String fileEntry) {\n\t\tFile file = null;\n \ttry {\n \t\tURL url \t= Activator.getDefault().getBundle().getEntry(fileEntry);\n \t\tURL fileURL = FileLocator.toFileURL(url);\n \t\tURL resolve = FileLocator.resolve(fileURL);\n \t\tfile \t\t= new File(resolve.getFile());\n \t} catch(Exception e){\n Activator.getDefault().log(e.getMessage(), e);\n \t}\n \treturn file;\n\t\t\n\t}", "public abstract KenaiProject getKenaiProjectForRepository(String repositoryUrl) throws IOException;", "private String retrieveWorkSpaceFileLoc(String fileName) {\n ArrayList<String> regResourceProjects = loadRegistryResourceProjects();\n boolean fileExists = false;\n IWorkspace workspace = ResourcesPlugin.getWorkspace();\n String folder = workspace.getRoot().getLocation().toFile().getPath().toString();\n String resourceFilePath = null;\n for (String regResourceProject : regResourceProjects) {\n resourceFilePath = folder + File.separator + regResourceProject + File.separator +\n fileName;\n File resourceFile = new File(resourceFilePath);\n if (resourceFile.exists()) {\n fileExists = true;\n break;\n }\n }\n if (!fileExists) {\n displayUserError(RESGISTRY_RESOURCE_RETRIVING_ERROR, NO_SUCH_RESOURCE_EXISTS);\n }\n return resourceFilePath;\n }", "public String getAbsPath();", "protected Artifact getProjectArtifact(String projectName, Version dbVersion) {\n ProjectContext pCtx = new ProjectContext(projectName, new Version(\"1.1\"), dbVersion);\n pCtx.setAlterDir(new File(\"test/\" + projectName + \"/db/alter\"));\n pCtx.setBaseDir(new File(\"test/\" + projectName + \"/db/base\"));\n pCtx.setSeedDir(new File(\"test/\" + projectName + \"/db/seed\"));\n\n ArtifactService as = new ProjectArtifactService(pCtx);\n\n return as.getArtifact();\n }", "private static String getProjectVersion() {\n\t\tString version;\n\n\t\ttry {\n\t\t\tfinal Properties pomProperties = new Properties();\n\t\t\tpomProperties.load(Main.class.getResourceAsStream(\n \"/META-INF/MediaPlayer/pom.properties\"));\n\t\t\tversion = pomProperties.getProperty(\"version\");\n\t\t} catch(Exception e) {\n\t\t\tversion = \"RUNNING.IN.IDE.FULL\";\n\t\t}\n\n\t\treturn version;\n\t}", "static File getDistributionInstallationFolder() {\n return ProcessRunnerImpl.getDistRootPath();\n }", "abstract public String getTopResourcesDir();", "SourceFilePath getFilePath();", "public File getBuildFile()\n {\n return buildFile;\n }", "String getFile();", "String getFile();", "String getFile();", "private FileInputStream loadFile(String file)\n\t{\n\t\tlogger.info(\"Fetching File : \"+System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\resources\\\\\"+file);\n\t\ttry \n\t\t{\n\t\t\treturn(new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\resources\\\\\"+file));\n\t\t} catch (FileNotFoundException e) {\t\t\t\t\n\t\t\tAssert.assertTrue(file+\" file is missing\", false);\n\t\t\treturn null;\n\t\t}\n\t}", "private String locateFile(String fileName) {\n\t\tString file = null;\n\t\tURL fileURL = ClassLoader.getSystemResource(fileName);\n\t\tif (fileURL != null) {\n\t\t\tfile = fileURL.getFile();\n\t\t} else\n\t\t\tSystem.err.println(\"Unable to locate file \" + fileName);\n\t\treturn file;\n\t}", "public File getNarFile(Artifact dependency) throws MojoFailureException {\n \t\tif (dependency.isSnapshot())\n \t\t\t;\n \t\treturn new File(repository.getBasedir(), NarUtil.replace(\"${aol}\",\n \t\t\t\tdefaultAOL, repository.pathOf(dependency)));\n \t}", "@Override\n public GEMFile getFileByAbsolutePath(String absolutePath) {\n return (GEMFile) gemFileDb.get(absolutePath);\n }", "public File getFile()\r\n \t{\r\n \t\tFile result = null;\r\n \t\t\r\n \t\tString hostName = getAuthority();\r\n \t\t\r\n \t\tif((hostName == null) || hostName.equals(\"\") || hostName.equalsIgnoreCase(\"localhost\"))\r\n \t\t{\r\n \t\t\tString filePath = getPath();\r\n \t\t\tresult = new File(filePath);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tthrow new RuntimeException(\"Can't resolve files on remote host machines\");\r\n \t\t}\r\n \t\t\r\n \t\treturn result;\r\n \t}", "public static String readHTML(String path){\r\n String htmlStr = \"\";\r\n String root = \"\";\r\n try { \r\n root = System.getProperty(\"user.dir\") + \"\\\\src\\\\\";\r\n htmlStr = FileUtils.readFileToString(new File(root+path), \"UTF-8\");\r\n System.out.println(EchoServer_HTTP.getDate() + \" - File '\" + root+path + \"' was requested from the server.\");\r\n } catch(IOException e){ \r\n System.out.println(EchoServer_HTTP.getDate() + \" - ERROR: File '\" + root+path + \"' not found.\");\r\n }\r\n return htmlStr;\r\n }", "public File getCachedBuildFile(String platform) {\n return new File(cacheDir + File.separator + platform + File.separator + \"build.zip\" );\n }", "private String getRepositoryPath() {\n if (repoPath != null) {\n return repoPath;\n }\n\n final String pathProp = System.getProperty(SYSTEM_PATH_PROPERTY);\n\n if (pathProp == null || pathProp.isEmpty()) {\n repoPath = getWorkingDirectory();\n } else if (pathProp.charAt(0) == '.') {\n // relative path\n repoPath = getWorkingDirectory() + System.getProperty(\"file.separator\") + pathProp;\n } else {\n repoPath = RepoUtils.stripFileProtocol(pathProp);\n }\n\n log.info(\"Using repository path: \" + repoPath);\n return repoPath;\n }", "public static String GetElementRepoData(String filename, String key) throws IOException, ConfigurationException {\r\n\r\n PropertiesConfiguration properties = new PropertiesConfiguration(\r\n System.getProperty(\"user.dir\") + \"//src//test//resource//elementRepo//\" + filename + \".properties\");\r\n return properties.getString(key);\r\n }" ]
[ "0.6425194", "0.62860596", "0.61045647", "0.59387267", "0.59226024", "0.5825167", "0.58155626", "0.5764578", "0.57323176", "0.5731179", "0.5727665", "0.5706644", "0.5689764", "0.5678135", "0.5677712", "0.5657456", "0.564974", "0.5631711", "0.5620866", "0.5617002", "0.5613816", "0.5608815", "0.5587119", "0.554935", "0.5547773", "0.55466354", "0.55461407", "0.5523876", "0.55067647", "0.5488265", "0.5480696", "0.54552627", "0.5451659", "0.54431176", "0.5439022", "0.5432752", "0.5418401", "0.5415828", "0.54136914", "0.54072505", "0.5405256", "0.5401436", "0.53992313", "0.53948134", "0.5391075", "0.53882784", "0.5380537", "0.53746027", "0.5371203", "0.5368138", "0.5366832", "0.53634614", "0.5362967", "0.536272", "0.536272", "0.5352646", "0.5339132", "0.53384984", "0.5335534", "0.5334103", "0.5320032", "0.5319519", "0.5311267", "0.5308933", "0.5308288", "0.53006816", "0.52991635", "0.52959496", "0.52788407", "0.5276024", "0.52724826", "0.5268753", "0.5266476", "0.5265726", "0.52646816", "0.5256391", "0.52361023", "0.5232422", "0.5228936", "0.52204907", "0.5217113", "0.520934", "0.5209179", "0.5206597", "0.52046144", "0.51947004", "0.51901746", "0.5186157", "0.51845783", "0.51845783", "0.51845783", "0.51808506", "0.5179", "0.5178044", "0.51773566", "0.5172978", "0.51691085", "0.5165746", "0.5157344", "0.5157256" ]
0.6570547
0
get file contents as a string Returns contents of a file as a string for a given filePath. The fileName parameters is a file in the application path. For example "/com/mypackage/myinfo.props".
public static String getAsString(String filePath) { InputStream is = FileUtil.class.getResourceAsStream(filePath); return getAsString(is); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String readFileAsString(String fileName) {\n String text = \"\";\n\n try {\n text = new String(Files.readAllBytes(Paths.get(fileName)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return text;\n }", "public static String readFromFile(String fileName) {\n\n StringBuilder output = new StringBuilder();\n boolean presente = new File(fileName).exists();\n\n if (!presente) {\n return \"\";\n }\n try {\n FileReader reader = new FileReader(fileName);\n BufferedReader bufferedReader = new BufferedReader(reader);\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n output.append(line).append(\"\\n\");\n }\n bufferedReader.close();\n reader.close();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n return output.toString();\n }", "public static String getStringFromFile(Context context, String filePath) throws IOException {\n final InputStream stream = context.getResources().getAssets().open(filePath);\n String ret = convertStreamToString(stream);\n stream.close();\n return ret;\n }", "public String getFileContent(String filePath) {\n\t\tString content = \"\";\n\t\t// get the path\n\t\tString path = filePath.substring(0, filePath.lastIndexOf(\"/\"));\n\t\t// get the file's name\n\t\tString name = filePath.substring(filePath.lastIndexOf(\"/\") + 1);\n\t\t// iterate through all the files to see if we can find it...\n\t\tfor (FileObjects t : getDirectory(path, directory).getFiles()) {\n\t\t\tif (name.equals(t.getName())) {\n\t\t\t\tcontent = t.getContent();\n\t\t\t}\n\t\t}\n\t\t// return the content of the file, or just an empty string if it's\n\t\t// empty.\n\t\treturn content;\n\n\t}", "public String read(String filePath) throws IOException {\r\n\t\t//read file into stream\r\n\t\t\treturn new String(Files.readAllBytes(Paths.get(filePath)));\r\n\t}", "public static String readFileContent(String fileName){\r\n String str=null;\r\n BufferedReader reader=null;\r\n try {\r\n reader=new BufferedReader(new FileReader(fileName));\r\n str=reader.readLine();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }finally{\r\n if(reader!=null){\r\n try {\r\n reader.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n return str;\r\n }", "public static String getFileContentsAsString(String filename) {\n\n // Java uses Paths as an operating system-independent specification of the location of files.\n // In this case, we're looking for files that are in a directory called 'data' located in the\n // root directory of the project, which is the 'current working directory'.\n final Path path = FileSystems.getDefault().getPath(\"Resources\", filename);\n\n try {\n // Read all of the bytes out of the file specified by 'path' and then convert those bytes\n // into a Java String. Because this operation can fail if the file doesn't exist, we\n // include this in a try/catch block\n return new String(Files.readAllBytes(path));\n } catch (IOException e) {\n // Since we couldn't find the file, there is no point in trying to continue. Let the\n // user know what happened and exit the run of the program. Note: we're only exiting\n // in this way because we haven't talked about exceptions and throwing them in CS 126 yet.\n System.out.println(\"Couldn't find file: \" + filename);\n System.exit(-1);\n return null; // note that this return will never execute, but Java wants it there.\n }\n }", "public static String sourceFileToString(String fileName)\n\t{\n\t\t// http://stackoverflow.com/a/15161665/1106708\n\t\tStringBuilder builder = new StringBuilder();\n\t\tInputStream is = Settings.class.getResourceAsStream(fileName);\n\t\tint ch;\n\t\ttry\n\t\t{\n\t\t\twhile((ch = is.read()) != -1)\n\t\t\t{\n\t\t\t builder.append((char)ch);\n\t\t\t}\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn builder.toString();\n\t}", "private static String readFile(String fileName) throws IOException {\n\t\tReader reader = new FileReader(fileName);\n\n\t\ttry {\n\t\t\t// Create a StringBuilder instance\n\t\t\tStringBuilder sb = new StringBuilder();\n\n\t\t\t// Buffer for reading\n\t\t\tchar[] buffer = new char[1024];\n\n\t\t\t// Number of read chars\n\t\t\tint k = 0;\n\n\t\t\t// Read characters and append to string builder\n\t\t\twhile ((k = reader.read(buffer)) != -1) {\n\t\t\t\tsb.append(buffer, 0, k);\n\t\t\t}\n\n\t\t\t// Return read content\n\t\t\treturn sb.toString();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\treader.close();\n\t\t\t} catch (IOException ioe) {\n\t\t\t\t// Ignore\n\t\t\t}\n\t\t}\n\t}", "public static String readFileAsString(Context context, String fileName) {\n\t\tInputStream in;\n\t\tStringBuilder sb = new StringBuilder();\n \t\tboolean result = false;\n\t\t// wykonaj jako jeden nieprzerwany blok czynnosci na plikach - zaloz blokade na statyczny obiekt DATA_LOCK\n \t\tsynchronized (FileUtil.DATA_LOCK) {\n \t\t\ttry{\n\t\t\t\tin = context.getAssets().open(fileName);\n\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in), 8*1024);\n\t\t\t String line = null;\n\t\t\t while ((line = reader.readLine()) != null) {\n\t\t\t sb.append(line).append(FileUtil.LINE_SEP);\n\t\t\t }\n\t\t\t in.close();\n\t\t\t result = true;\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tLog.e(LOG_TAG, \"Nie odnaleziono pliku: '\"+fileName+\"'\");\n\t\t\t} catch (IOException e) {\n\t\t\t\tLog.e(LOG_TAG, \"Blad odczytu pliku: '\"+fileName+\"'\");\n\t\t\t}\n \t\t}\n \t\tif(result) return sb.toString();\n \t\treturn null;\n\t}", "public static String localFileToString(String fileName) throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new FileReader(fileName));\n\t\ttry\n\t {\n\t StringBuilder sb = new StringBuilder();\n\t String line = br.readLine();\n\n\t while (line != null)\n\t {\n\t sb.append(line);\n\t sb.append(\"\\n\");\n\t line = br.readLine();\n\t }\n\t \n\t return sb.toString();\n\t }\n\t finally\n\t {\n\t br.close();\n\t }\n\t}", "public static String getFileFromAssets(Context context, String fileName) {\n if (context == null || fileName == null || fileName.isEmpty()) {\n return null;\n }\n\n StringBuilder s = new StringBuilder(\"\");\n try {\n InputStreamReader in = new InputStreamReader(context.getResources().getAssets().open(fileName));\n BufferedReader br = new BufferedReader(in);\n String line;\n while ((line = br.readLine()) != null) {\n s.append(line);\n }\n return s.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }", "public static String loadFileAsString(String filePath) throws java.io.IOException{\n\t StringBuffer fileData = new StringBuffer(1000);\n\t BufferedReader reader = new BufferedReader(new FileReader(filePath));\n\t char[] buf = new char[1024];\n\t int numRead=0;\n\t while((numRead=reader.read(buf)) != -1){\n\t String readData = String.valueOf(buf, 0, numRead);\n\t fileData.append(readData);\n\t }\n\t reader.close();\n\t return fileData.toString();\n\t}", "public String readFile(String fileName) throws IOException {\n BufferedReader br = new BufferedReader(new FileReader(fileName));\n try {\n StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n\n while (line != null) {\n sb.append(line);\n sb.append(\"\\n\");\n line = br.readLine();\n }\n return sb.toString();\n } finally {\n br.close();\n }\n }", "private static String readFile(String filePath) {\n\t\tFile file = new File(filePath);\n\t\tString fileElements;\n\t\tFileInputStream in = null;\n\t\t\n\t\tif(file.exists()){\n\t\t\ttry {\n\t\t\t\tin = new FileInputStream(file);\n\t\t\t\tbyte[] fileBytes = new byte[(int)file.length()];\n\t\t\t\tin.read(fileBytes);\n\t\t\t\tfileElements = new String(fileBytes);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tfileElements = \"\";\n\t\t\t} catch(IOException io){\n\t\t\t\tio.printStackTrace();\n\t\t\t\tfileElements = \"\";\n\t\t\t}\n\t\t}else{\n\t\t\tfileElements=\"\";\n\t\t}\n\t\treturn fileElements;\n\t}", "public String readFile(final String fileName) throws IOException {\n final URL inputFile = getClass().getClassLoader().getResource(\"mockResponses/\" + fileName);\n return IOUtils.toString(inputFile, Charsets.UTF_8);\n }", "public static String readFileAsString(String filePath) {\n\t\tbyte[] buffer = new byte[(int) new File(filePath).length()];\n\t\tBufferedInputStream f = null;\n\t\ttry {\n\t\t\tFile file = new File(filePath);\n\t\t\tfor (int attempt = 0; attempt < 3; attempt++) {\n\t\t\t\tif (file.exists()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tThread.sleep(2);\n\t\t\t}\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tSystem.err.println(\"\\nfile not found: \" + filePath);\n\t\t\t\tthrow new FileNotFoundException(\"Could not find file: \" + filePath);\n\t\t\t}\n\n\t\t\tf = new BufferedInputStream(new FileInputStream(filePath));\n\t\t\tf.read(buffer);\n\t\t} catch (IOException e) {\n\t\t\tthrow new UncheckedExecutionException(e);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (f != null)\n\t\t\t\ttry {\n\t\t\t\t\tf.close();\n\t\t\t\t} catch (IOException ignored) {\n\t\t\t\t}\n\t\t}\n\t\treturn new String(buffer);\n\t}", "public static String stringFromFileNamed(String fileName) \n\tthrows java.io.IOException {\n\t\t\n\tfinal int BUFLEN = 1024;\n\tchar buf[] = new char[BUFLEN];\n\t\n\tFileReader in = new FileReader(fileName);\n\tStringWriter out = new StringWriter();\n\t\n\ttry {\n\t\twhile (true) {\n\t\t\tint len = in.read(buf, 0, BUFLEN);\n\t\t\tif (len == -1) {\n\t\t\t\tbreak;\n\t\t\t}\t\n\t\t\tout.write(buf, 0, len);\n\t\t}\t\n\t}\n\tfinally {\n\t\tout.close();\n\t\tin.close();\n\t}\t\n\treturn out.toString();\n}", "public String textExtractor(String filePath) {\n\n StringBuilder textBuilder = new StringBuilder();\n try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(getClass().getResourceAsStream(\"/\" + filePath), \"UTF-8\"))) {\n while (bufferedReader.ready()) {\n textBuilder.append(bufferedReader.readLine()).append(\"/n\");\n }\n\n } catch (IOException exc) {\n exc.printStackTrace();\n }\n return textBuilder.toString();\n }", "public static String fileToString(String fileName) throws FileNotFoundException {\n Scanner in = new Scanner(new File(fileName));\n String result = \"\";\n\n while(in.hasNextLine()){\n result += in.nextLine();\n }\n\n return result;\n }", "public String readJsonFile(String fileName)\n {\n FileInputStream fileInputStream = null;\n String text;\n StringBuilder stringBuilder = new StringBuilder();\n\n try\n {\n fileInputStream = mainContext.openFileInput(fileName);\n InputStreamReader inputStreamReader = new InputStreamReader(fileInputStream);\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n\n while((text = bufferedReader.readLine()) != null)\n {\n stringBuilder.append(text).append(\"\\n\");\n }\n }\n catch (IOException e)\n {\n System.out.println(e.getMessage());\n }\n\n return stringBuilder.toString();\n }", "private String getFileContent(String filePath) {\r\n\r\n\t\ttry {\r\n\t\t\tString text = new String(Files.readAllBytes(Paths.get(filePath)), StandardCharsets.UTF_8);\r\n\t\t\treturn text;\r\n\t\t} catch (Exception ex) {\r\n\t\t\treturn \"-1\";\r\n\t\t}\r\n\t}", "private static String ReadFile(String filePath) {\n StringBuilder sb = new StringBuilder();\n try {\n BufferedReader r = new BufferedReader(new FileReader(filePath));\n String line;\n while ((line = r.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n System.out.println(e.getStackTrace());\n }\n return sb.toString();\n\n }", "public static String readFile(File fileName) throws IOException {\n return readFile(fileName, \"UTF-8\");\n }", "public static String readFile(String fileName) throws IOException {\n return readFile(fileName, \"UTF-8\");\n }", "private String getStringFromFile() throws FileNotFoundException {\n String contents;\n FileInputStream fis = new FileInputStream(f);\n StringBuilder stringBuilder = new StringBuilder();\n try {\n InputStreamReader inputStreamReader = new InputStreamReader(fis, \"UTF-8\");\n BufferedReader reader = new BufferedReader(inputStreamReader);\n String line = reader.readLine();\n while (line != null) {\n stringBuilder.append(line).append('\\n');\n line = reader.readLine();\n }\n } catch (IOException e) {\n // Error occurred when opening raw file for reading.\n } finally {\n contents = stringBuilder.toString();\n }\n return contents;\n }", "public String getData(String fileName) {\n StringBuffer sb = new StringBuffer();\n try {\n BufferedReader br = new BufferedReader(new FileReader(fileName));\n String line = br.readLine();\n while (line != null) {\n sb.append(line).append(\"\\n\");\n line = br.readLine();\n }\n br.close();\n } catch (IOException e) {\n System.out.println(\"NO SE\");\n }\n return sb.toString();\n }", "public String readFromFile(String filePath){\n String fileData = \"\";\n try{\n File myFile = new File(filePath);\n Scanner myReader = new Scanner(myFile);\n while (myReader.hasNextLine()){\n String data = myReader.nextLine();\n fileData += data+\"\\n\";\n }\n myReader.close();\n } catch(FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n return fileData;\n }", "public String getFileText(String filePath) {\n String fileText = \"\"; \n \n File myFile = new File(filePath);\n Scanner myReader; \n \n try {\n myReader = new Scanner(myFile);\n \n while(myReader.hasNext()) {\n fileText+= myReader.nextLine() + \"\\n\"; \n }\n \n } catch (FileNotFoundException ex) {\n logger.log(Level.SEVERE, \"Error getting text from text file\", ex.getMessage()); \n }\n \n return fileText; \n }", "public String readFile(String filePath)\n {\n String result = \"\";\n try {\n\n FileReader reader = new FileReader(filePath);\n Scanner scanner = new Scanner(reader);\n\n while(scanner.hasNextLine())\n {\n result += scanner.nextLine();\n }\n reader.close();\n }\n catch(FileNotFoundException ex)\n {\n System.out.println(\"File not found. Please contact the administrator.\");\n }\n catch (Exception ex)\n {\n System.out.println(\"Some error occurred. Please contact the administrator.\");\n }\n return result;\n }", "public static String readOneString(String fileName)throws FileNotFoundException{\r\n StringBuilder sb=new StringBuilder();\r\n fileExists(fileName);\r\n log.fine(\"Reading one string from file: \"+fileName);\r\n try {\r\n BufferedReader in=new BufferedReader(new FileReader(fileName));\r\n try {\r\n String s;\r\n s=in.readLine();\r\n if(s==null){\r\n return null;\r\n }\r\n sb.append(s);\r\n }finally {\r\n in.close();\r\n }\r\n }catch (IOException e){\r\n throw new RuntimeException(e);\r\n }\r\n return sb.toString();\r\n }", "public String getJSONString(String fileName){\n\n String line = \"\";\n String jsonString = \"\";\n\n try {\n FileReader fileReader = new FileReader(fileName);\n\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n while ((line = bufferedReader.readLine()) != null) {\n jsonString+=line+'\\n';\n }\n bufferedReader.close();\n }\n catch (FileNotFoundException ex){\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n }\n catch (IOException ex) {\n System.out.println( \"Error reading file '\" + fileName +\"'\");\n }\n\n return jsonString;\n }", "public static String readFileAsString(String filePath, String encoding) {\n\t\tbyte[] buffer = new byte[(int) new File(filePath).length()];\n\t\tBufferedInputStream f = null;\n\t\ttry {\n\t\t\tFile file = new File(filePath);\n\t\t\tfor (int attempt = 0; attempt < 3; attempt++) {\n\t\t\t\tif (file.exists()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tThread.sleep(2);\n\t\t\t}\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tSystem.err.println(\"\\nfile not found: \" + filePath);\n\t\t\t\tthrow new FileNotFoundException(\"Could not find file: \" + filePath);\n\t\t\t}\n\n\t\t\tf = new BufferedInputStream(new FileInputStream(filePath));\n\t\t\tf.read(buffer);\n\t\t} catch (IOException e) {\n\t\t\tthrow new UncheckedExecutionException(e);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (f != null)\n\t\t\t\ttry {\n\t\t\t\t\tf.close();\n\t\t\t\t} catch (IOException ignored) {\n\t\t\t\t}\n\t\t}\n\t\tString contents = null;\n\t\ttry {\n\t\t\tcontents = new String(buffer, encoding);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn contents;\n\t}", "public String getContent() {\n String s = null;\n try {\n s = new String(Files.readAllBytes(Paths.get(filename)), StandardCharsets.UTF_8);\n }\n catch (IOException e) {\n message = \"Problem reading a file: \" + filename;\n }\n return s;\n }", "public static String readFile() {\n\t\tFileReader file;\n\t\tString textFile = \"\";\n\n\t\ttry {\n\t\t\tfile = new FileReader(path);\n\n\t\t\t// Output string.\n\t\t\ttextFile = new String();\n\n\t\t\tBufferedReader bfr = new BufferedReader(file);\n\n\t\t\ttextFile= bfr.readLine();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error reading the file\");\n\t\t}\n\t\treturn textFile;\n\n\t}", "public static String readFile(String filePath) {\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(filePath));\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString line = br.readLine();\n\n\t\t\twhile (line != null) {\n\t\t\t\tsb.append(line);\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\tline = br.readLine();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(br);\n\t\t}\n\n\t\treturn null;\n\t}", "public static String getStringFromFile(String filename) {\r\n try {\r\n FileInputStream fis = new FileInputStream(filename);\r\n int available = fis.available();\r\n byte buffer[] = new byte[available];\r\n fis.read(buffer);\r\n fis.close();\r\n\r\n String tmp = new String(buffer);\r\n //System.out.println(\"\\nfrom file:\"+filename+\":\\n\"+tmp);\r\n return tmp;\r\n\r\n } catch (Exception ex) {\r\n // System.out.println(ex);\r\n // ex.printStackTrace();\r\n return \"\";\r\n } // endtry\r\n }", "private static String readJsonFile (String fileName) {\n if (!fileName.endsWith(\".json\")){\n throw new IllegalArgumentException(\"Invalid file name\");\n }\n String jsonStr = \"\";\n try{\n isFileExistOrCreatIt(fileName);\n File jsonFile = new File(\"src//main//resources\"+\"//\"+fileName);\n Reader reader = new InputStreamReader(new FileInputStream(jsonFile),\"utf-8\");\n int ch = 0;\n StringBuffer sb = new StringBuffer();\n while((ch = reader.read())!=-1){\n sb.append((char) ch);\n }\n reader.close();\n jsonStr = sb.toString();\n return jsonStr;\n\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }", "public static String readFile(String filePath) throws java.io.IOException {\r\n\t\tStringBuffer fileData = new StringBuffer(1000);\r\n\t\tBufferedReader reader = new BufferedReader(new FileReader(filePath));\r\n\t\tchar[] buf = new char[1024];\r\n\t\tint numRead = 0;\r\n\t\twhile ((numRead = reader.read(buf)) != -1) {\r\n\t\t\tString readData = String.valueOf(buf, 0, numRead);\r\n\t\t\tfileData.append(readData);\r\n\t\t\tbuf = new char[1024];\r\n\t\t}\r\n\t\treader.close();\r\n\t\treturn fileData.toString();\r\n\t}", "public static String getStringFromFile(String filename) {\r\n BufferedReader br = null;\r\n StringBuilder sb = new StringBuilder();\r\n try {\r\n br = new BufferedReader(new FileReader(filename));\r\n try {\r\n String s;\r\n while ((s = br.readLine()) != null) {\r\n sb.append(s);\r\n sb.append(\"\\n\");\r\n }\r\n } finally {\r\n br.close();\r\n }\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n\r\n return sb.toString();\r\n }", "public static String readFile(String filePath) throws IOException {\n\t\tString text = \"\";\n\t\tBufferedReader br = new BufferedReader(new FileReader(filePath));\n\t\ttry {\n\n\t\t\tint intch;\n\t\t\twhile ((intch = br.read()) != -1) {\n\t\t\t\ttext += (char) intch;\n\t\t\t}\n\t\t} finally {\n\t\t\tbr.close();\n\t\t}\n\t\treturn text;\n\t}", "public static String readFile(String filePath) throws IOException {\n\t\tString readString = \"\";\n\t\tRandomAccessFile file = new RandomAccessFile(filePath, \"r\");\n\t\tFileChannel channel = file.getChannel();\n\t\tByteBuffer buffer = ByteBuffer.allocate(1024);\n\t\twhile (channel.read(buffer) > 0) {\n\t\t\tbuffer.flip();\n\t\t\tfor (int i = 0; i < buffer.limit(); i++)\n\t\t\t\treadString += (char) buffer.get();\n\t\t\tbuffer.clear();\n\t\t}\n\t\tchannel.close();\n\t\tfile.close();\n\t\treturn readString;\n\t}", "public String loadFromLocalFile(String fileName, Activity activity) {\n FileInputStream fis = null;\n String output = null;\n\n try {\n fis = activity.openFileInput(fileName);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new BufferedReader(isr);\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n\n output = sb.toString();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (fis != null) {\n try {\n fis.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n return output;\n }", "private static String readFileToString(String filePath) throws IOException {\n\t\tStringBuilder fileData = new StringBuilder(1000);\n\t\tBufferedReader reader = new BufferedReader(new FileReader(filePath));\n\t\tchar[] buf = new char[10];\n\t\tint numRead = 0;\n\t\twhile ((numRead = reader.read(buf)) != -1) {\n\t\t\tString readData = String.valueOf(buf, 0, numRead);\n\t\t\tfileData.append(readData);\n\t\t\tbuf = new char[1024];\n\t\t}\n\t\treader.close();\n\t\treturn fileData.toString();\t\n\t}", "private String loadTemplate(String fileName)\n throws IOException, URISyntaxException\n {\n File file = new File(resolveResourcePath(this.TEMPLATE_PATH + fileName));\n BufferedReader reader = new BufferedReader(new FileReader(file));\n \n StringBuilder builder = new StringBuilder();\n String str = reader.readLine();\n while (str != null)\n {\n builder.append(str);\n str = reader.readLine();\n }\n return builder.toString();\n }", "public String readFileContents(String filename) {\n return null;\n\n }", "public String getFileContents(String myFile) {\n\n\t\t// Creates a new StringBuilder object.\n\t\tthis.fileContents = new StringBuilder();\n\n\t\t// Creates a new File object.\n\t\tthis.file = new File(myFile);\n\n\t\ttry {\n\t\t\t// Creates a FileReader object.\n\t\t\tthis.fileReader = new FileReader(file);\n\n\t\t\t// Wraps the FileReader in a BufferedReader.\n\t\t\tthis.bufferedReader = new BufferedReader(fileReader);\n\n\t\t\t// Reads from the FileReader via the BufferedReader and appends to the String.\n\t\t\twhile ((this.line = bufferedReader.readLine()) != null) {\n\t\t\t\tfileContents.append(line + \"\\n\");\n\t\t\t}\n\t\t\t// If file cannot be located.\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"[ERROR] File not found: \" + file.toString());\n\t\t\t// If file cannot be read.\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[ERROR] Unable to read file: \" + file.toString());\n\t\t}\n\n\t\ttry {\n\t\t\tbufferedReader.close();\n\t\t\t// If file cannot be closed.\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[ERROR] Unable to close file: \" + file.toString());\n\t\t\t// If file contains a null value.\n\t\t} catch (NullPointerException ex) {\n\t\t\tSystem.out.println(\"[ERROR] \" + file.toString() + \"contains no information.\");\n\t\t}\n\t\treturn fileContents.toString();\n\t}", "@Nullable\n public String readFile(String fileName) throws IOException {\n ObjectId objectId = findFile(fileName);\n if (objectId == null) {\n return null;\n }\n\n ObjectLoader obj = reader.open(objectId, Constants.OBJ_BLOB);\n byte[] raw = obj.getCachedBytes(Integer.MAX_VALUE);\n\n if (raw.length == 0) {\n return null;\n }\n return RawParseUtils.decode(raw);\n }", "Path getContent(String filename);", "public String getLocalText(String fileName){\n\t\t\tString r = \"\";\n\t\t\tint BUFFER_SIZE = 2000;\n\t \tif(fileName.length() > 1){\n\t \t\ttry{\n\t \t \tFileInputStream fin = openFileInput(fileName);\n\t \t \tif(fin != null){\n \t \t \t\tInputStreamReader isr = new InputStreamReader(fin);\n \t \t \tint charRead;\n\t \t \tchar[] inputBuffer = new char[BUFFER_SIZE]; \n\t \t \ttry{\n\t \t \twhile ((charRead = isr.read(inputBuffer))>0){ \n\t \t \t\tString readString = String.copyValueOf(inputBuffer, 0, charRead); \n\t \t \tr += readString;\n\t \t \tinputBuffer = new char[BUFFER_SIZE];\n\t \t \t}\n\t \t \tfin.close();\n\t \t \t}catch(IOException e){\n\t \t \t\tr = \"\";\n\t \t\tLog.i(\"ZZ\", \"AppDelegate:getLocalText: ERROR - 1: \" + e.getMessage()); \n\t \t \t} \t \t \t\n\t \t \t}\n\t \t}catch (Exception je){\n\t \t\tr = \"\";\n \t\t//Log.i(\"ZZ\", \"AppDelegate:getLocalText: ERROR - 2: \" + je.getMessage()); \n\t \t}\n\t \t}else{\n\t \t\tr = \"\";\n\t \t}\n \t\t//Log.i(\"ZZ\", \"AppDelegate:getLocalText: \" + fileName); \n\t return r;\n\t\t}", "public String loadFromFile() {\n StringBuilder sb = new StringBuilder();\n try {\n Log.d(\"DEBUG\", this.context.getPackageName());\n Log.d(\"DEBUG\", this.file);\n FileInputStream fis = context.openFileInput(file);\n BufferedReader br = new BufferedReader(new InputStreamReader(fis, this.encoding));\n String line;\n while(( line = br.readLine()) != null ) {\n sb.append( line );\n sb.append( '\\n' );\n }\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n return sb.toString();\n }", "public String getFileContent(String filename){\n\t\tString output = \"\";\n\t\tfor(String s : files.keySet()){\n\t\t\tif(s.equals(filename.trim())){\n\t\t\t\toutput = files.get(s);\n\t\t\t\treturn output;\n\t\t\t}\n\t\t}\n\t\treturn \"File does not exist\";\n\t}", "public static String readTextStream(String filename) throws IOException {\n StringBuffer sb = new StringBuffer();\n BufferedReader fileReader = new BufferedReader(new InputStreamReader(FileHelper.class.getClassLoader().getResourceAsStream(filename)));\n FileHelper.read(sb, fileReader);\n return sb.toString();\n }", "public String readFileIntoString(String filepath) throws IOException;", "public String ReadFile() throws IOException {\n File file = context.getFilesDir();\n File textfile = new File(file + \"/\" + this.fileName);\n\n FileInputStream input = context.openFileInput(this.fileName);\n byte[] buffer = new byte[(int)textfile.length()];\n\n input.read(buffer);\n\n return new String(buffer);\n }", "public File getFile(final String fileName) {\r\n return IOUtil.getFile(fileName, getClass());\r\n }", "java.lang.String getFilePath();", "public String read(String filename) {\n StringBuilder stringBuilder = new StringBuilder();\n try (BufferedReader bufferedReader = new BufferedReader(new FileReader(filename))) {\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n stringBuilder.append(line).append(\"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n return stringBuilder.toString();\n }", "public static String readFile(File fileName, String charset) throws IOException {\n if (fileName == null || !fileName.isFile()) {\n return null;\n }\n StringBuilder sb = new StringBuilder(\"\");\n BufferedReader reader = null;\n try {\n InputStreamReader is = new InputStreamReader(new FileInputStream(fileName), charset);\n reader = new BufferedReader(is);\n String line = null;\n while ((line = reader.readLine()) != null) {\n if (!sb.toString().equals(\"\")) {\n sb.append(\"\\r\\n\");\n }\n sb.append(line);\n }\n reader.close();\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n throw e;\n } finally {\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n throw e;\n }\n }\n }\n }", "public static String getFullFilePath(String filePath) {\n\t\treturn getCurrentDir() + getJMEFilePath(filePath);\n\t}", "private String getFileContent(){\n\t\tString employeesJsonString=\"\";\n\t\ttry {\n\t\t\tScanner sc = new Scanner(file);\n\t\t\twhile(sc.hasNextLine()){\n\t\t\t\temployeesJsonString += sc.nextLine();\n\t\t\t}\n\t\t\t\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t\tSystem.out.println(\"file error\");\n\t\t}\n\t\treturn employeesJsonString;\n\t}", "public static String getFile(String fileName) throws FileNotFoundException{\n URL url = ConfigParser.class.getClassLoader().getResource(fileName);\n if (url == null)\n url = ConfigParser.class.getClassLoader().getResource(\"/\" + fileName);\n if (url == null) {\n throw new FileNotFoundException(String.format(ERR_FILE_NOT_FOUND, fileName));\n }\n return url.getFile();\n }", "public String getStringFile(){\n return fileView(file);\n }", "public static String readAllStrings(String fileName) throws FileNotFoundException{\r\n StringBuilder sb=new StringBuilder();\r\n fileExists(fileName);\r\n log.fine(\"Reading of all strings from file: \"+fileName);\r\n try {\r\n BufferedReader in=new BufferedReader(new FileReader(fileName));\r\n try {\r\n String s;\r\n while ((s=in.readLine())!=null){\r\n sb.append(s);\r\n sb.append(\"\\n\");\r\n }\r\n }finally {\r\n in.close();\r\n }\r\n }catch (IOException e){\r\n throw new RuntimeException(e);\r\n }\r\n return sb.toString();\r\n }", "public String readFile(){\r\n StringBuffer str = new StringBuffer(); //StringBuffer is a mutable string\r\n Charset charset = Charset.forName(\"UTF-8\"); //UTF-8 character encoding\r\n Path file = Paths.get(filename + \".txt\");\r\n try (BufferedReader reader = Files.newBufferedReader(file, charset)) { // Buffer: a memory area that buffered streams read\r\n String line = null;\r\n while ((line = reader.readLine()) != null) { //Readers and writers are on top of streams and converts bytes to characters and back, using a character encoding\r\n str.append(line + \"\\n\");\r\n }\r\n }\r\n catch (IOException x) {\r\n System.err.format(\"IOException: %s%n\", x);\r\n }\r\n return str.toString();\r\n }", "public static String readFromFile(String filename) {\n InputStream is = ResourceUtils.class.getClassLoader().getResourceAsStream(filename);\n return convertStreamToString(is);\n\n }", "public String getContentsOfFile(IDirectory parentDir, String filePath) {\r\n // Check if the file with the given name does not exist\r\n if (this.getItemGivenPath(parentDir, filePath) == null\r\n || !this.isFile((Directory) parentDir, filePath)) {\r\n return \"Error: File \" + filePath + \" does not exist in this directory!\";\r\n // If the file exists\r\n } else {\r\n // Get and return the file contents\r\n IFile file = (IFile) this.getItemGivenPath(parentDir, filePath);\r\n return file.getData();\r\n }\r\n }", "public static String read(String filename) {\n StringBuilder sb = new StringBuilder();\n try {\n FileReader fr = new FileReader(new File(filename));\n BufferedReader br = new BufferedReader(fr);\n String s;\n while ((s = br.readLine()) != null) {\n sb.append(s).append(\"\\n\");\n }\n br.close();\n fr.close();\n } catch (FileNotFoundException ex) {\n } catch (IOException ex) {\n }\n return sb.toString();\n }", "public static String getAsString(File file) {\n\t\tInputStream is = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(file);\n\t\t\tString rtn = getAsString(is);\n\t\t\treturn rtn;\n\t\t} catch (Exception exp) {\n\t\t\tthrow new RuntimeException(exp);\n\t\t} finally {\n\t\t\tif (is != null) {\n\t\t\t\ttry {\n\t\t\t\t\tis.close();\n\t\t\t\t} catch (Exception exp) {\n\t\t\t\t\tthrow new RuntimeException(exp);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public String readFileIntoString(String sourceFilepath) throws IOException {\n StringBuilder sb = new StringBuilder();\n URL url = new URL(sourceFilepath);\n BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));\n String line = null;\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n reader.close();\n return sb.toString();\n }", "String Reader(String FileName, Context context){\n FileInputStream inputStream = null;\n String Text = \"\";\n StringBuilder sb = null;\n try{\n //inputStream = context.openFileInput(FileName);\n inputStream = new FileInputStream(new File(FileName));\n InputStreamReader reader = new InputStreamReader(inputStream);\n BufferedReader buffRead = new BufferedReader(reader);\n sb = new StringBuilder();\n\n while ((Text = buffRead.readLine())!= null){\n sb.append(Text);\n sb.append(\"\\n\");\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return sb.toString();\n }", "public static File getFile(String fileName){\n \tString basedir = System.getProperty(\"user.dir\");\n \tString dir = basedir+\"/src/test/resources/\" + fileName;\n \treturn new File(dir);\n }", "private String readAndReplaceString(String fileName, String packageName, String className) {\n String baseFilePath = \"com.bgn.baseframe.base\";\n\n String time = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\").format(new Date());\n String path = (codeType == 0 ? \"kotlin/\" : \"java/\");\n return readFile(path + fileName + \".txt\")\n .replace(\"&time&\", time)\n .replace(\"&package&\", packageName)\n .replace(\"&mvp&\", baseFilePath)\n .replace(\"&className&\", className);\n }", "protected String openReadFile(Path filePath) throws IOException{\n\t\tString line;\n\t\tStringBuilder sb = new StringBuilder();\n\t\t// Read the document\n\t\tBufferedReader reader = Files.newBufferedReader(filePath, ENCODING);\n\t\t// Append each line in the document to our string\n\t\twhile ((line = reader.readLine()) != null) {\n\t\t\tsb.append(line);\n\t\t\tsb.append(\"\\n\"); // readLine discards new-row characters, re-append them.\n\t\t}\n\t\tif(sb.length() != 0){\n\t\t\tsb.deleteCharAt(sb.length()-1); // However last line doesn't contain one, remove it.\n\t\t}\n\t\treader.close();\n\t\treturn new String(sb.toString());\n\t}", "public String ReadFile(String sFilePath) throws Exception {\n File f = null;\n FileInputStream fstream = null;\n String stemp = \"\";\n try {\n //getting file oject\n f = new File(sFilePath);\n //get object for fileinputstream\n fstream = new FileInputStream(f);\n //getting byte array length\n byte data[] = new byte[fstream.available()];\n //getting file stream data into byte array\n fstream.read(data);\n //storing byte array data into String\n stemp = new String(data);\n return stemp;\n } catch (Exception e) {\n throw new Exception(\"ReadFile : \" + e.toString());\n } finally {\n try {\n fstream.close();\n } catch (Exception e) {\n }\n }\n }", "public String readFile(){\n\t\tString res = \"\";\n\t\t\n\t\tFile log = new File(filePath);\n\t\tBufferedReader bf = null;\n\t\t\n\t\ttry{\n\t\t\tbf = new BufferedReader(new FileReader(log));\n\t\t\tString line = bf.readLine();\n\t\t\n\t\t\n\t\t\twhile (line != null){\n\t\t\t\tres += line+\"\\n\";\n\t\t\t\tline = bf.readLine();\n\t\t\t}\n\t\t\n\t\t\treturn res;\n\t\t}\n\t\tcatch(Exception oops){\n\t\t\tSystem.err.println(\"There was an error reading the file \"+oops.getStackTrace());\n\t\t\treturn \"\";\n\t\t}\n\t\tfinally{\n\t\t\ttry {\n\t\t\t\tbf.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"There was an error closing the read Buffer \"+e.getStackTrace());\n\t\t\t}\n\t\t}\n\t}", "public static String readFile(String pFilePath) {\n\t\tBufferedReader bufferedReader = null;\n\t StringBuilder stringBuilder = new StringBuilder();\n\t\ttry {\n\t\t\tbufferedReader = new BufferedReader(new FileReader(pFilePath));\n\t\t\tbufferedReader.lines().forEach((s) -> { stringBuilder.append(s + \"\\n\"); });\t\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t} finally {\n\t\t\tif (bufferedReader != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbufferedReader.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (stringBuilder != null && stringBuilder.toString().equals(\"\")) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn stringBuilder.toString();\n\t\t}\n\t}", "public static String getStringFromFile(String filename) {\n if (Logger.get().isDebug()) {\n Logger.debug(\"Reading file {}\", filename);\n }\n List<String> read = FileKit.readLines(filename);\n if (!read.isEmpty()) {\n if (Logger.get().isTrace()) {\n Logger.trace(\"Read {}\", read.get(0));\n }\n return read.get(0);\n }\n return Normal.EMPTY;\n }", "public static String textToString( String fileName )\n { \n String temp = \"\";\n try {\n Scanner input = new Scanner(new File(fileName));\n \n //add 'words' in the file to the string, separated by a single space\n while(input.hasNext()){\n temp = temp + input.next() + \" \";\n }\n input.close();\n \n }\n catch(Exception e){\n System.out.println(\"Unable to locate \" + fileName);\n }\n //make sure to remove any additional space that may have been added at the end of the string.\n return temp.trim();\n }", "@NonNull\n public static File getFile(@NonNull Context context, @NonNull String fileName) {\n return new File(context.getFilesDir(), fileName);\n }", "public String readFromFile(String path) {\n BufferedReader br = null;\n String returnString =\"\";\n try {\n String sCurrentLine;\n br = new BufferedReader(new FileReader(path));\n while ((sCurrentLine = br.readLine()) != null) {\n returnString+=sCurrentLine;\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (br != null)br.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n return returnString;\n }", "private String readStringFromFile(final File file) {\n try {\n FileInputStream fin = new FileInputStream(file);\n BufferedReader reader = new BufferedReader(new InputStreamReader(fin));\n StringBuilder sb = new StringBuilder();\n String line = null;\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n reader.close();\n String result = sb.toString();\n fin.close();\n return result;\n } catch (IOException ioEx) {\n Log.e(TAG, \"Error reading String from a file: \" + ioEx.getLocalizedMessage());\n }\n return null;\n }", "private File getFile(String fileName) {\n\t\tClassLoader classLoader = getClass().getClassLoader();\n\t\tFile file = new File(classLoader.getResource(fileName).getFile());\n\t\treturn file;\n\t}", "public static String readLine(String filePath) {\r\n\r\n try {\r\n BufferedReader bufferedReader = Files.newBufferedReader(Paths.get(filePath), Charset.defaultCharset());\r\n return bufferedReader.readLine();\r\n\r\n } catch (IOException ex) {\r\n Logger.getLogger(FileUtility.class.getName()).log(Level.SEVERE, \"Error in readLine\", ex);\r\n }\r\n return null;\r\n }", "private String locateFile(String fileName) {\n\t\tString file = null;\n\t\tURL fileURL = ClassLoader.getSystemResource(fileName);\n\t\tif (fileURL != null) {\n\t\t\tfile = fileURL.getFile();\n\t\t} else\n\t\t\tSystem.err.println(\"Unable to locate file \" + fileName);\n\t\treturn file;\n\t}", "public static String readFile(final String name) {\n FileReader fileReader = null;\n final StringBuilder contents = new StringBuilder();\n try {\n final File file = new File(name);\n if (!file.exists()) {\n throw new IllegalArgumentException(\"File \" + name + \" does not exist\");\n }\n fileReader = new FileReader(file);\n final BufferedReader reader = new BufferedReader(fileReader);\n String inputLine = reader.readLine();\n while (inputLine != null) {\n contents.append(inputLine).append(\"\\n\");\n inputLine = reader.readLine();\n }\n reader.close();\n } catch (final IOException i1) {\n LOG.severe(\"Can't open file:\" + name);\n }\n return contents.toString();\n }", "String getFilePath();", "public List<String> readFileByLine(String filePath, String fileName) {\n\t\tList<String> contents = new ArrayList<String>();\n\t\t\n\t\t//filePath가 url이냐 local dir이냐에 따라 로직 달라짐\n\t\tboolean isUrlPath;\n\t\tif (filePath.contains(\"://\")) {\n\t\t\tisUrlPath = true;\n\t\t} else {\n\t\t\tisUrlPath = false;\n\t\t}\n\t\t\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\tif (isUrlPath) {\n\t\t\t\t\n\t\t\t\tURL url = new URL(filePath+fileName);\n\t\t\t\tURLConnection connection = url.openConnection();\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tFile targetFile = new File(filePath, fileName);\n\t\t\t\tif(!targetFile.exists()) {\n\t\t\t\t\treturn contents;\n\t\t\t\t} else {\n\t\t\t\t\tbr = new BufferedReader(new FileReader(targetFile));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tString line = null;\n\t\t\tdo {\n\t\t\t\tline = br.readLine();\n\t\t\t\tif (line != null) {\n\t\t\t\t\tline = new String( line.getBytes(\"utf-8\"));\n\t\t\t\t\tcontents.add(line);\n\t\t\t\t}\n\t\t\t} while (line != null);\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\t\n\t\t} finally {\n\t\t\tif (br != null)\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t\treturn contents;\n\t}", "private static String file2string(String file) {\n StringBuilder sb = new StringBuilder();\n try {\n BufferedReader br = new BufferedReader(new FileReader(new File(file)));\n String line;\n\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return (sb != null) ? sb.toString() : \"\";\n }", "String getFile();", "String getFile();", "String getFile();", "String readFile( String filename ) {\n try {\n FileReader fileReader = new FileReader( filename );\n BufferedReader bufferedReader = new BufferedReader( fileReader );\n StringBuilder stringBuilder = new StringBuilder();\n String line = bufferedReader.readLine();\n while( line != null ) {\n stringBuilder.append( line );\n stringBuilder.append( \"\\n\" );\n line = bufferedReader.readLine();\n }\n bufferedReader.close();\n fileReader.close();\n return stringBuilder.toString();\n } catch( Exception e ) {\n playerObjects.getLogFile().WriteLine( Formatting.exceptionToStackTrace( e ) );\n return null;\n }\n }", "public static String read(String path) {\r\n\t\t\r\n\t\t// open the file\r\n\t\tFile file = new File(path);\r\n\t\t\r\n\t\t\r\n\t\t// if the file does not exist return null\r\n\t\tif (!file.exists())\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString content = \"\";\r\n\t\t\r\n\t\t// write to the file\r\n\t\ttry {\r\n\t\t\t// open stream\r\n\t\t\tFileReader fReader = new FileReader(file);\r\n\t\t\tBufferedReader bufferedReader = new BufferedReader(fReader);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// read all the content of the file\r\n\t\t\tString current = bufferedReader.readLine();\r\n\t\t\twhile (current != null) {\r\n\t\t\t\tcontent = content.concat(current + \"\\n\");\r\n\t\t\t\tcurrent = bufferedReader.readLine();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// close anything was opened\r\n\t\t\tbufferedReader.close();\r\n\t\t\tfReader.close();\r\n\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t\t\r\n\t\treturn content;\r\n\t}", "public static String read(String filename) throws IOException {\n // Reading input by lines:\n BufferedReader in = new BufferedReader(new FileReader(filename));\n// BufferedInputStream in2 = new BufferedInputStream(new FileInputStream(filename));\n String s;\n int s2;\n StringBuilder sb = new StringBuilder();\n while((s = in.readLine())!= null)\n sb.append( s + \"\\n\");\n// sb.append((char) s2);\n in.close();\n return sb.toString();\n }", "public static File getFile(Context context, String fileName) {\n return new File(context.getFilesDir(), fileName);\n }", "public String getSpectrumFilePath(String fileName) {\n\n \n return spectrumFiles.get(fileName);\n\n }", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();" ]
[ "0.7417203", "0.72568625", "0.7217658", "0.7148025", "0.70144534", "0.6960205", "0.6957529", "0.69467473", "0.69075775", "0.6875864", "0.68684894", "0.68577915", "0.6832047", "0.6797599", "0.6789384", "0.67715186", "0.67610186", "0.6716973", "0.6706957", "0.67053986", "0.6692875", "0.66800773", "0.665062", "0.66375", "0.6576993", "0.65165406", "0.6512489", "0.63838124", "0.6382811", "0.6375252", "0.6374041", "0.63720626", "0.63495904", "0.63410014", "0.6332981", "0.6327459", "0.6322131", "0.63151824", "0.6272241", "0.62221086", "0.62187666", "0.6204681", "0.6202521", "0.61912763", "0.61837566", "0.6176418", "0.6173542", "0.6167318", "0.6164944", "0.6160913", "0.6159349", "0.6116645", "0.61117464", "0.6109375", "0.61011225", "0.6090131", "0.6072029", "0.606318", "0.6049744", "0.6042416", "0.6038809", "0.6018574", "0.6018354", "0.60149115", "0.60053945", "0.59996456", "0.59912133", "0.59650266", "0.59611595", "0.59439105", "0.59137076", "0.5890266", "0.5884353", "0.5876112", "0.58711004", "0.58568215", "0.5853443", "0.58220035", "0.5819265", "0.58180326", "0.5808808", "0.580373", "0.5792072", "0.5791416", "0.57779604", "0.5749116", "0.5747116", "0.5745849", "0.5733117", "0.57266486", "0.57266486", "0.57266486", "0.5719213", "0.57113534", "0.5692768", "0.56852245", "0.5678464", "0.56770825", "0.56770825", "0.56770825" ]
0.7425051
0
Returns contents of a file as a string for a given InputStream. The fileName parameters is a file in the application path. For example "/com/mypackage/myinfo.props".
public static String getAsString(InputStream is) { return head(is, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String readFileFromInputStream(final InputStream is) throws IOException\n\t{\n\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(\n\t\t\t\tis, FILE_CHARSET_NAME));\n\t\ttry\n\t\t{\n\t\t\tfinal StringBuilder contents = new StringBuilder(BUFFER_SIZE);\n\n\t\t\t// copy from input stream\n\t\t\tfinal char[] charBuffer = new char[BUFFER_SIZE];\n\t\t\tint len;\n\t\t\twhile ((len = input.read(charBuffer)) > 0)\n\t\t\t{\n\t\t\t\tcontents.append(charBuffer, 0, len);\n\t\t\t}\n\n\t\t\treturn contents.toString().replaceAll(\"\\r\\n\", \"\\n\");\n\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tinput.close();\n\t\t}\n\t}", "public static String readFileAsString(String fileName) {\n String text = \"\";\n\n try {\n text = new String(Files.readAllBytes(Paths.get(fileName)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return text;\n }", "public InputStream getFileFromResourceAsStream(String fileName) {\n var classLoader = getClass().getClassLoader();\n var inputStream = classLoader.getResourceAsStream(fileName);\n\n // the stream holding the file content\n if (inputStream == null) {\n throw new IllegalArgumentException(\"file not found! \" + fileName);\n } else {\n return inputStream;\n }\n }", "public static String readFileAsString(Context context, String fileName) {\n\t\tInputStream in;\n\t\tStringBuilder sb = new StringBuilder();\n \t\tboolean result = false;\n\t\t// wykonaj jako jeden nieprzerwany blok czynnosci na plikach - zaloz blokade na statyczny obiekt DATA_LOCK\n \t\tsynchronized (FileUtil.DATA_LOCK) {\n \t\t\ttry{\n\t\t\t\tin = context.getAssets().open(fileName);\n\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in), 8*1024);\n\t\t\t String line = null;\n\t\t\t while ((line = reader.readLine()) != null) {\n\t\t\t sb.append(line).append(FileUtil.LINE_SEP);\n\t\t\t }\n\t\t\t in.close();\n\t\t\t result = true;\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tLog.e(LOG_TAG, \"Nie odnaleziono pliku: '\"+fileName+\"'\");\n\t\t\t} catch (IOException e) {\n\t\t\t\tLog.e(LOG_TAG, \"Blad odczytu pliku: '\"+fileName+\"'\");\n\t\t\t}\n \t\t}\n \t\tif(result) return sb.toString();\n \t\treturn null;\n\t}", "private InputStream getFileFromResourceAsStream(String fileName) {\n ClassLoader classLoader = getClass().getClassLoader();\n InputStream inputStream = classLoader.getResourceAsStream(fileName);\n\n // the stream holding the file content\n if (inputStream == null) {\n throw new IllegalArgumentException(\"file not found! \" + fileName);\n } else {\n return inputStream;\n }\n }", "public String readFile(final String fileName) throws IOException {\n final URL inputFile = getClass().getClassLoader().getResource(\"mockResponses/\" + fileName);\n return IOUtils.toString(inputFile, Charsets.UTF_8);\n }", "private InputStream getFileFromResourceAsStream(String fileName) {\n\n // The class loader that loaded the class\n ClassLoader classLoader = getClass().getClassLoader();\n InputStream inputStream = classLoader.getResourceAsStream(fileName);\n\n // the stream holding the file content\n if (inputStream == null) {\n throw new IllegalArgumentException(\"file not found! \" + fileName);\n } else {\n return inputStream;\n }\n\n }", "public static String sourceFileToString(String fileName)\n\t{\n\t\t// http://stackoverflow.com/a/15161665/1106708\n\t\tStringBuilder builder = new StringBuilder();\n\t\tInputStream is = Settings.class.getResourceAsStream(fileName);\n\t\tint ch;\n\t\ttry\n\t\t{\n\t\t\twhile((ch = is.read()) != -1)\n\t\t\t{\n\t\t\t builder.append((char)ch);\n\t\t\t}\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn builder.toString();\n\t}", "public static String readFromFile(String fileName) {\n\n StringBuilder output = new StringBuilder();\n boolean presente = new File(fileName).exists();\n\n if (!presente) {\n return \"\";\n }\n try {\n FileReader reader = new FileReader(fileName);\n BufferedReader bufferedReader = new BufferedReader(reader);\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n output.append(line).append(\"\\n\");\n }\n bufferedReader.close();\n reader.close();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n return output.toString();\n }", "private static String readFile(String fileName) throws IOException {\n\t\tReader reader = new FileReader(fileName);\n\n\t\ttry {\n\t\t\t// Create a StringBuilder instance\n\t\t\tStringBuilder sb = new StringBuilder();\n\n\t\t\t// Buffer for reading\n\t\t\tchar[] buffer = new char[1024];\n\n\t\t\t// Number of read chars\n\t\t\tint k = 0;\n\n\t\t\t// Read characters and append to string builder\n\t\t\twhile ((k = reader.read(buffer)) != -1) {\n\t\t\t\tsb.append(buffer, 0, k);\n\t\t\t}\n\n\t\t\t// Return read content\n\t\t\treturn sb.toString();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\treader.close();\n\t\t\t} catch (IOException ioe) {\n\t\t\t\t// Ignore\n\t\t\t}\n\t\t}\n\t}", "public static String localFileToString(String fileName) throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new FileReader(fileName));\n\t\ttry\n\t {\n\t StringBuilder sb = new StringBuilder();\n\t String line = br.readLine();\n\n\t while (line != null)\n\t {\n\t sb.append(line);\n\t sb.append(\"\\n\");\n\t line = br.readLine();\n\t }\n\t \n\t return sb.toString();\n\t }\n\t finally\n\t {\n\t br.close();\n\t }\n\t}", "public static String getFileContentsAsString(String filename) {\n\n // Java uses Paths as an operating system-independent specification of the location of files.\n // In this case, we're looking for files that are in a directory called 'data' located in the\n // root directory of the project, which is the 'current working directory'.\n final Path path = FileSystems.getDefault().getPath(\"Resources\", filename);\n\n try {\n // Read all of the bytes out of the file specified by 'path' and then convert those bytes\n // into a Java String. Because this operation can fail if the file doesn't exist, we\n // include this in a try/catch block\n return new String(Files.readAllBytes(path));\n } catch (IOException e) {\n // Since we couldn't find the file, there is no point in trying to continue. Let the\n // user know what happened and exit the run of the program. Note: we're only exiting\n // in this way because we haven't talked about exceptions and throwing them in CS 126 yet.\n System.out.println(\"Couldn't find file: \" + filename);\n System.exit(-1);\n return null; // note that this return will never execute, but Java wants it there.\n }\n }", "public static String getFileFromAssets(Context context, String fileName) {\n if (context == null || fileName == null || fileName.isEmpty()) {\n return null;\n }\n\n StringBuilder s = new StringBuilder(\"\");\n try {\n InputStreamReader in = new InputStreamReader(context.getResources().getAssets().open(fileName));\n BufferedReader br = new BufferedReader(in);\n String line;\n while ((line = br.readLine()) != null) {\n s.append(line);\n }\n return s.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }", "public static String readTextStream(String filename) throws IOException {\n StringBuffer sb = new StringBuffer();\n BufferedReader fileReader = new BufferedReader(new InputStreamReader(FileHelper.class.getClassLoader().getResourceAsStream(filename)));\n FileHelper.read(sb, fileReader);\n return sb.toString();\n }", "public static String fileToString(String fileName) throws FileNotFoundException {\n Scanner in = new Scanner(new File(fileName));\n String result = \"\";\n\n while(in.hasNextLine()){\n result += in.nextLine();\n }\n\n return result;\n }", "public static String readFileContent(String fileName){\r\n String str=null;\r\n BufferedReader reader=null;\r\n try {\r\n reader=new BufferedReader(new FileReader(fileName));\r\n str=reader.readLine();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }finally{\r\n if(reader!=null){\r\n try {\r\n reader.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n return str;\r\n }", "public static String stringFromFileNamed(String fileName) \n\tthrows java.io.IOException {\n\t\t\n\tfinal int BUFLEN = 1024;\n\tchar buf[] = new char[BUFLEN];\n\t\n\tFileReader in = new FileReader(fileName);\n\tStringWriter out = new StringWriter();\n\t\n\ttry {\n\t\twhile (true) {\n\t\t\tint len = in.read(buf, 0, BUFLEN);\n\t\t\tif (len == -1) {\n\t\t\t\tbreak;\n\t\t\t}\t\n\t\t\tout.write(buf, 0, len);\n\t\t}\t\n\t}\n\tfinally {\n\t\tout.close();\n\t\tin.close();\n\t}\t\n\treturn out.toString();\n}", "public static InputStream getInputStream(String fileName) {\n\t\ttry {\n\t\t\tInputStream in = FileUtil.class.getResourceAsStream(fileName);\n\t\t\treturn in;\n\t\t} catch (Exception exp) {\n\t\t\tthrow new RuntimeException(exp);\n\t\t}\n\t}", "public String readJsonFile(String fileName)\n {\n FileInputStream fileInputStream = null;\n String text;\n StringBuilder stringBuilder = new StringBuilder();\n\n try\n {\n fileInputStream = mainContext.openFileInput(fileName);\n InputStreamReader inputStreamReader = new InputStreamReader(fileInputStream);\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n\n while((text = bufferedReader.readLine()) != null)\n {\n stringBuilder.append(text).append(\"\\n\");\n }\n }\n catch (IOException e)\n {\n System.out.println(e.getMessage());\n }\n\n return stringBuilder.toString();\n }", "public String readFile(String fileName) throws IOException {\n BufferedReader br = new BufferedReader(new FileReader(fileName));\n try {\n StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n\n while (line != null) {\n sb.append(line);\n sb.append(\"\\n\");\n line = br.readLine();\n }\n return sb.toString();\n } finally {\n br.close();\n }\n }", "public static String readFile(String fileName) throws IOException {\n return readFile(fileName, \"UTF-8\");\n }", "@SuppressWarnings(\"resource\")\n\tpublic static InputStream getStream(String fileName){\n\t\tInputStream fileInputStream = null;\n\t\ttry{\n\t\t\tfileInputStream = new FileInputStream(new File(fileName));\n\t\t\tLOGGER.info(\"Property File:\" + fileName);\n\t\t}catch(Exception e){\n\t\t\tLOGGER.debug(\"Attempting to grab resource as stream.\"+e.getMessage());\n\t\t}\n\n\t\t//Just in case file doesn't exist.\n\t\tif(null == fileInputStream){\t\t\t\n\t\t\tfileInputStream = PropertyUtil.class.getClassLoader().getResourceAsStream(fileName);\n\t\t\tLOGGER.info(\"Property File:\" + fileName);\n\t\t}\t\t\n\t\treturn fileInputStream;\n\t}", "public static String readFile(File fileName) throws IOException {\n return readFile(fileName, \"UTF-8\");\n }", "private String getStringFromFile() throws FileNotFoundException {\n String contents;\n FileInputStream fis = new FileInputStream(f);\n StringBuilder stringBuilder = new StringBuilder();\n try {\n InputStreamReader inputStreamReader = new InputStreamReader(fis, \"UTF-8\");\n BufferedReader reader = new BufferedReader(inputStreamReader);\n String line = reader.readLine();\n while (line != null) {\n stringBuilder.append(line).append('\\n');\n line = reader.readLine();\n }\n } catch (IOException e) {\n // Error occurred when opening raw file for reading.\n } finally {\n contents = stringBuilder.toString();\n }\n return contents;\n }", "public static InputStream openStream(String fileName) throws IOException {\r\n\t\treturn MarkLogicUtils.class.getClassLoader().getResourceAsStream(fileName);\r\n\t}", "private FileInputStream getStreamFromPath(Context context, String fileName) {\n ParcelFileDescriptor parcelFileDesc = null;\n FileInputStream inputStream = null;\n try {\n inputStream = new FileInputStream(new File(fileName));\n if (0 != 0) {\n try {\n parcelFileDesc.close();\n } catch (IOException e) {\n Log.e(TAG, \"parcelFileDesc error!\");\n }\n }\n } catch (FileNotFoundException e2) {\n Log.e(TAG, \"getStreamFromPath FileNotFoundException.\");\n if (0 != 0) {\n parcelFileDesc.close();\n }\n } catch (Throwable th) {\n if (0 != 0) {\n try {\n parcelFileDesc.close();\n } catch (IOException e3) {\n Log.e(TAG, \"parcelFileDesc error!\");\n }\n }\n throw th;\n }\n return inputStream;\n }", "public InputStream readFile( String fileName, FileType type );", "public static String getAsString(String filePath) {\n\t\tInputStream is = FileUtil.class.getResourceAsStream(filePath);\n\t\treturn getAsString(is);\n\t}", "public static String loadStream(InputStream in) throws IOException {\r\n\t\tInputStream is = in;\r\n\t\tint ptr = 0;\r\n\t\tis = new BufferedInputStream(is);\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\ttry {\r\n\t\t\twhile ((ptr = is.read()) != -1) {\r\n\t\t\t\tbuffer.append((char) ptr);\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tis.close();\r\n\t\t}\r\n\t\treturn buffer.toString();\r\n\t}", "public String getStringFromInputStream(InputStream is) {\n\n BufferedReader br = null;\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n\n br = new BufferedReader(new InputStreamReader(is));\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n } finally {\n try {\n br.close();\n } catch (Exception e) {\n }\n br = null;\n return sb.toString();\n }\n }", "String Reader(String FileName, Context context){\n FileInputStream inputStream = null;\n String Text = \"\";\n StringBuilder sb = null;\n try{\n //inputStream = context.openFileInput(FileName);\n inputStream = new FileInputStream(new File(FileName));\n InputStreamReader reader = new InputStreamReader(inputStream);\n BufferedReader buffRead = new BufferedReader(reader);\n sb = new StringBuilder();\n\n while ((Text = buffRead.readLine())!= null){\n sb.append(Text);\n sb.append(\"\\n\");\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return sb.toString();\n }", "public static String readFile(InputStream in) throws IOException {\n final StringBuffer sBuffer = new StringBuffer();\n final BufferedReader br = new BufferedReader(new InputStreamReader(in));\n final char[] buffer = new char[1024];\n\n int cnt;\n while ((cnt = br.read(buffer, 0, buffer.length)) > -1) {\n sBuffer.append(buffer, 0, cnt);\n }\n br.close();\n in.close();\n return sBuffer.toString();\n }", "public static String getStringFromFile(Context context, String filePath) throws IOException {\n final InputStream stream = context.getResources().getAssets().open(filePath);\n String ret = convertStreamToString(stream);\n stream.close();\n return ret;\n }", "public static InputStream openFileInputStream(final String fileName) throws IOException {\n\n return FileSystem.getInstance(fileName).openFileInputStream(fileName);\n }", "public static String getStringFromInputStream(InputStream is) {\n\n BufferedReader br = null;\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n\n br = new BufferedReader(new InputStreamReader(is));\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return sb.toString();\n }", "public String getContent() {\n String s = null;\n try {\n s = new String(Files.readAllBytes(Paths.get(filename)), StandardCharsets.UTF_8);\n }\n catch (IOException e) {\n message = \"Problem reading a file: \" + filename;\n }\n return s;\n }", "InputStream getInputStreamForMockFile(String fileName)\n\t\t\tthrows FileNotFoundException {\n\t\tif (!hasFile(fileName)) {\n\t\t\tthrow new FileNotFoundException(\"Could not find file \\\"\" + fileName\n\t\t\t\t\t+ \"\\\" in current directory \\\"\" + this.directory.toString()\n\t\t\t\t\t+ \"\\\"\");\n\t\t}\n\n\t\tif (this.returnFailingReaders) {\n\t\t\treturn MockStringContentFactory.getFailingInputStream();\n\t\t} else {\n\t\t\tPath filePath = this.directory.resolve(fileName);\n\t\t\treturn MockStringContentFactory.newMockInputStream(files\n\t\t\t\t\t.get(filePath));\n\t\t}\n\t}", "public String loadFromLocalFile(String fileName, Activity activity) {\n FileInputStream fis = null;\n String output = null;\n\n try {\n fis = activity.openFileInput(fileName);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new BufferedReader(isr);\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n\n output = sb.toString();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (fis != null) {\n try {\n fis.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n return output;\n }", "public static InputStream loadFileAsStream(String fileName) throws FileNotFoundException {\n\n if (fileName == null || fileName.trim().equals(\"\")) { //$NON-NLS-1$\n throw new NullPointerException(Messages.getMessage(\"variableIsNull\", \"fileName\")); //$NON-NLS-1$ //$NON-NLS-2$\n }\n\n logger.trace(\"Searching for {} in file system.\", fileName); //$NON-NLS-1$\n\n File file = new File(fileName);\n if (file.isFile()) {\n // since file is a normal file, return it\n logger.trace(\"File {} found in file system.\", fileName); //$NON-NLS-1$\n return new FileInputStream(file);\n }\n\n // file is not a normal file, try to find it using classloaders\n Enumeration<URL> resources;\n try {\n resources = loadFileUsingClassLoaders(fileName);\n } catch (IOException e) {\n logger.error(e.getMessage(), e);\n throw new FileNotFoundException(fileName);\n }\n if (!resources.hasMoreElements()) {\n throw new FileNotFoundException(fileName);\n }\n URL url = resources.nextElement();\n try {\n return url.openStream();\n } catch (IOException e) {\n logger.error(e.getMessage(), e);\n throw new FileNotFoundException(fileName);\n }\n }", "public static String readFromFile(String filename) {\n InputStream is = ResourceUtils.class.getClassLoader().getResourceAsStream(filename);\n return convertStreamToString(is);\n\n }", "@Nullable\n public String readFile(String fileName) throws IOException {\n ObjectId objectId = findFile(fileName);\n if (objectId == null) {\n return null;\n }\n\n ObjectLoader obj = reader.open(objectId, Constants.OBJ_BLOB);\n byte[] raw = obj.getCachedBytes(Integer.MAX_VALUE);\n\n if (raw.length == 0) {\n return null;\n }\n return RawParseUtils.decode(raw);\n }", "private static String getStringFromInputStream(InputStream is) {\r\n\r\n BufferedReader br = null;\r\n StringBuilder sb = new StringBuilder();\r\n\r\n String line;\r\n try {\r\n\r\n br = new BufferedReader(new InputStreamReader(is));\r\n while ((line = br.readLine()) != null) {\r\n sb.append(line);\r\n }\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n finally {\r\n if (br != null) {\r\n try {\r\n br.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n\r\n return sb.toString();\r\n\r\n }", "public static String readFile(File fileName, String charset) throws IOException {\n if (fileName == null || !fileName.isFile()) {\n return null;\n }\n StringBuilder sb = new StringBuilder(\"\");\n BufferedReader reader = null;\n try {\n InputStreamReader is = new InputStreamReader(new FileInputStream(fileName), charset);\n reader = new BufferedReader(is);\n String line = null;\n while ((line = reader.readLine()) != null) {\n if (!sb.toString().equals(\"\")) {\n sb.append(\"\\r\\n\");\n }\n sb.append(line);\n }\n reader.close();\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n throw e;\n } finally {\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n throw e;\n }\n }\n }\n }", "static String loadStream(InputStream in) throws IOException {\n int ptr = 0;\n in = new BufferedInputStream(in);\n StringBuffer buffer = new StringBuffer();\n while( (ptr = in.read()) != -1 ) {\n buffer.append((char)ptr);\n }\n return buffer.toString();\n }", "public String read(String filePath) throws IOException {\r\n\t\t//read file into stream\r\n\t\t\treturn new String(Files.readAllBytes(Paths.get(filePath)));\r\n\t}", "public String getData(String fileName) {\n StringBuffer sb = new StringBuffer();\n try {\n BufferedReader br = new BufferedReader(new FileReader(fileName));\n String line = br.readLine();\n while (line != null) {\n sb.append(line).append(\"\\n\");\n line = br.readLine();\n }\n br.close();\n } catch (IOException e) {\n System.out.println(\"NO SE\");\n }\n return sb.toString();\n }", "public static String GetStringFromInputStream(InputStream is) {\n\t\tString line;\n\t\tStringBuilder total = new StringBuilder();\n\n\t\t// Wrap a BufferedReader around the InputStream\n\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(is));\n\n\t\t// Read response until the end\n\t\ttry {\n\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t\ttotal.append(line);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tis.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tUtilities\n\t\t\t\t\t\t.LogWarning(\"GetStringFromInputStream - could not close stream\");\n\t\t\t}\n\t\t}\n\n\t\t// Return full string\n\t\treturn total.toString();\n\t}", "private String getFileContent(){\n\t\tString employeesJsonString=\"\";\n\t\ttry {\n\t\t\tScanner sc = new Scanner(file);\n\t\t\twhile(sc.hasNextLine()){\n\t\t\t\temployeesJsonString += sc.nextLine();\n\t\t\t}\n\t\t\t\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t\tSystem.out.println(\"file error\");\n\t\t}\n\t\treturn employeesJsonString;\n\t}", "@NonNull\n public static String getStringFrom(InputStream inputStream) {\n StringBuffer dataStringBuffer = new StringBuffer(\"\");\n try {\n InputStreamReader isr = new InputStreamReader(inputStream);\n BufferedReader bufferedReader = new BufferedReader(isr);\n String readString = bufferedReader.readLine();\n while (readString != null) {\n dataStringBuffer.append(readString);\n readString = bufferedReader.readLine();\n }\n isr.close();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n return dataStringBuffer.toString();\n }", "public InputStream getStream(String base, String fileName){\n return getClass().getClassLoader().getResourceAsStream(base + fileName);\n }", "public static String readOneString(String fileName)throws FileNotFoundException{\r\n StringBuilder sb=new StringBuilder();\r\n fileExists(fileName);\r\n log.fine(\"Reading one string from file: \"+fileName);\r\n try {\r\n BufferedReader in=new BufferedReader(new FileReader(fileName));\r\n try {\r\n String s;\r\n s=in.readLine();\r\n if(s==null){\r\n return null;\r\n }\r\n sb.append(s);\r\n }finally {\r\n in.close();\r\n }\r\n }catch (IOException e){\r\n throw new RuntimeException(e);\r\n }\r\n return sb.toString();\r\n }", "public String ReadFile() throws IOException {\n File file = context.getFilesDir();\n File textfile = new File(file + \"/\" + this.fileName);\n\n FileInputStream input = context.openFileInput(this.fileName);\n byte[] buffer = new byte[(int)textfile.length()];\n\n input.read(buffer);\n\n return new String(buffer);\n }", "public static String inputStreamToString(InputStream is) {\n\n BufferedReader br = null;\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n\n br = new BufferedReader(new InputStreamReader(is));\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n\n } catch (IOException e) {\n\n return null;\n\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n return sb.toString();\n\n }", "@Override\n public InputStream readFileInternal(String _fileName) throws IOException\n { // Reads a file from the devices internal storage. Takes a filename as a parameter and throws an IOException if failed.\n return context.openFileInput(_fileName);\n }", "private String readJsonFile(InputStream inputStream) {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n\n byte bufferByte[] = new byte[1024];\n int length;\n try {\n while ((length = inputStream.read(bufferByte)) != -1) {\n outputStream.write(bufferByte, 0, length);\n }\n outputStream.close();\n inputStream.close();\n } catch (IOException e) {\n\n }\n return outputStream.toString();\n }", "public String getJSONString(String fileName){\n\n String line = \"\";\n String jsonString = \"\";\n\n try {\n FileReader fileReader = new FileReader(fileName);\n\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n while ((line = bufferedReader.readLine()) != null) {\n jsonString+=line+'\\n';\n }\n bufferedReader.close();\n }\n catch (FileNotFoundException ex){\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n }\n catch (IOException ex) {\n System.out.println( \"Error reading file '\" + fileName +\"'\");\n }\n\n return jsonString;\n }", "private static String readJsonFile (String fileName) {\n if (!fileName.endsWith(\".json\")){\n throw new IllegalArgumentException(\"Invalid file name\");\n }\n String jsonStr = \"\";\n try{\n isFileExistOrCreatIt(fileName);\n File jsonFile = new File(\"src//main//resources\"+\"//\"+fileName);\n Reader reader = new InputStreamReader(new FileInputStream(jsonFile),\"utf-8\");\n int ch = 0;\n StringBuffer sb = new StringBuffer();\n while((ch = reader.read())!=-1){\n sb.append((char) ch);\n }\n reader.close();\n jsonStr = sb.toString();\n return jsonStr;\n\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }", "private String loadTemplate(String fileName)\n throws IOException, URISyntaxException\n {\n File file = new File(resolveResourcePath(this.TEMPLATE_PATH + fileName));\n BufferedReader reader = new BufferedReader(new FileReader(file));\n \n StringBuilder builder = new StringBuilder();\n String str = reader.readLine();\n while (str != null)\n {\n builder.append(str);\n str = reader.readLine();\n }\n return builder.toString();\n }", "@Override\n public InputStream readFileExternal(String _fileName) throws IOException \n { // Reads a file saved to external storage. Takes the filename as a parameter and throws an IOException if failed.\n return new FileInputStream(externalStoragePath + _fileName);\n }", "private String readStream(InputStream in) {\n try {\n ByteArrayOutputStream bo = new ByteArrayOutputStream();\n int i = in.read();\n while(i != -1) {\n bo.write(i);\n i = in.read();\n }\n return bo.toString();\n } catch (IOException e) {\n return \"\";\n }\n }", "public String loadFromFile() {\n StringBuilder sb = new StringBuilder();\n try {\n Log.d(\"DEBUG\", this.context.getPackageName());\n Log.d(\"DEBUG\", this.file);\n FileInputStream fis = context.openFileInput(file);\n BufferedReader br = new BufferedReader(new InputStreamReader(fis, this.encoding));\n String line;\n while(( line = br.readLine()) != null ) {\n sb.append( line );\n sb.append( '\\n' );\n }\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n return sb.toString();\n }", "private static InputStream getInputStream(final String filename) throws IOException, FileNotFoundException {\r\n final ResourcePatternResolver applicationContext = new ClassPathXmlApplicationContext(new String[] {});\r\n final Resource[] resource = applicationContext.getResources(\"classpath*:\" + filename);\r\n if (resource.length == 0) {\r\n throw new FileNotFoundException(\"Unable to find file '\" + filename + \"' in classpath.\");\r\n }\r\n return resource[0].getInputStream();\r\n }", "protected abstract InputStream getInStreamImpl(String filename) throws IOException;", "static String loadStream(InputStream in) throws IOException { \n\t\tint ptr = 0; \n\t\tin = new BufferedInputStream(in); \n\t\tStringBuffer buffer = new StringBuffer(); \n\t\twhile( (ptr = in.read()) != -1 ) { \n\t\t\tbuffer.append((char)ptr); \n\t\t} \n\t\treturn buffer.toString(); \n\t}", "public static String getAsString(File file) {\n\t\tInputStream is = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(file);\n\t\t\tString rtn = getAsString(is);\n\t\t\treturn rtn;\n\t\t} catch (Exception exp) {\n\t\t\tthrow new RuntimeException(exp);\n\t\t} finally {\n\t\t\tif (is != null) {\n\t\t\t\ttry {\n\t\t\t\t\tis.close();\n\t\t\t\t} catch (Exception exp) {\n\t\t\t\t\tthrow new RuntimeException(exp);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public String textExtractor(String filePath) {\n\n StringBuilder textBuilder = new StringBuilder();\n try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(getClass().getResourceAsStream(\"/\" + filePath), \"UTF-8\"))) {\n while (bufferedReader.ready()) {\n textBuilder.append(bufferedReader.readLine()).append(\"/n\");\n }\n\n } catch (IOException exc) {\n exc.printStackTrace();\n }\n return textBuilder.toString();\n }", "public static String inputStreamToString(InputStream in) {\r\n StringBuffer buffer = new StringBuffer();\r\n try {\r\n BufferedReader br = new BufferedReader(new InputStreamReader(in,\r\n \"UTF-8\"), 1024);\r\n String line;\r\n while ((line = br.readLine()) != null) {\r\n buffer.append(line);\r\n }\r\n } catch (IOException iox) {\r\n LOGR.warning(iox.getMessage());\r\n }\r\n return buffer.toString();\r\n }", "public String readFileIntoString(String sourceFilepath) throws IOException {\n StringBuilder sb = new StringBuilder();\n URL url = new URL(sourceFilepath);\n BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));\n String line = null;\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n reader.close();\n return sb.toString();\n }", "private String readStream(InputStream in) throws IOException {\n BufferedReader r = new BufferedReader(new InputStreamReader(in));\n\n StringBuilder sb = new StringBuilder();\n String line;\n\n // Reads every line and stores them in sb.\n while((line = r.readLine()) != null) {\n sb.append(line);\n }\n\n // Closes the input stream.\n in.close();\n\n return sb.toString();\n }", "public static String getStringFromFile(String filename) {\r\n try {\r\n FileInputStream fis = new FileInputStream(filename);\r\n int available = fis.available();\r\n byte buffer[] = new byte[available];\r\n fis.read(buffer);\r\n fis.close();\r\n\r\n String tmp = new String(buffer);\r\n //System.out.println(\"\\nfrom file:\"+filename+\":\\n\"+tmp);\r\n return tmp;\r\n\r\n } catch (Exception ex) {\r\n // System.out.println(ex);\r\n // ex.printStackTrace();\r\n return \"\";\r\n } // endtry\r\n }", "private static String stringFromInputStream(InputStream inIS) {\n\n if (inIS == null) {\n return null;\n }\n StringBuffer outBuffer = new StringBuffer();\n InputStreamReader isr = null;\n BufferedReader input = null;\n try {\n String line = null;\n isr = new InputStreamReader(inIS);\n input = new BufferedReader(isr);\n while ((line = input.readLine()) != null) {\n if (line.indexOf(\"//\") == -1) {\n outBuffer.append(line);\n outBuffer.append(System.getProperty(\"line.separator\"));\n }\n }\n } catch (IOException ioe) {\n log.error(\"Unable to read from InputStream or write to output buffer\");\n ioe.printStackTrace();\n outBuffer = null;\n }\n try {\n isr.close();\n input.close();\n inIS.close();\n } catch (IOException ioe) {\n log.error(\"InputStream could not be closed\");\n ioe.printStackTrace();\n }\n if (outBuffer == null) {\n return null;\n } else {\n return outBuffer.toString();\n }\n\n }", "public static BufferedInputStream getInput(String fileName) throws IOException {\n return getInput(getPath(fileName));\n }", "public static String readAllStrings(String fileName) throws FileNotFoundException{\r\n StringBuilder sb=new StringBuilder();\r\n fileExists(fileName);\r\n log.fine(\"Reading of all strings from file: \"+fileName);\r\n try {\r\n BufferedReader in=new BufferedReader(new FileReader(fileName));\r\n try {\r\n String s;\r\n while ((s=in.readLine())!=null){\r\n sb.append(s);\r\n sb.append(\"\\n\");\r\n }\r\n }finally {\r\n in.close();\r\n }\r\n }catch (IOException e){\r\n throw new RuntimeException(e);\r\n }\r\n return sb.toString();\r\n }", "public String readFileContents(String filename) {\n return null;\n\n }", "public static String InputStreamToString(InputStream is) throws IOException {\r\n\t\treturn InputStreamToString(is, false, true);\r\n\t}", "public static String read(String filename) throws IOException {\n // Reading input by lines:\n BufferedReader in = new BufferedReader(new FileReader(filename));\n// BufferedInputStream in2 = new BufferedInputStream(new FileInputStream(filename));\n String s;\n int s2;\n StringBuilder sb = new StringBuilder();\n while((s = in.readLine())!= null)\n sb.append( s + \"\\n\");\n// sb.append((char) s2);\n in.close();\n return sb.toString();\n }", "public static String convertInputStreamToString(InputStream in) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<String> lines = null;\n\t\ttry {\n\t\t\tlines = IOUtils.readLines(in);\n\t\t} catch (IOException e) {\n\t\t\te.toString();\n\t\t}\n\t\tif (lines != null) {\n\t\t\tfor (String line : lines) {\n\t\t\t\tsb.append(line + \"\\n\");\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}", "private String readStream(InputStream is) {\n try {\n ByteArrayOutputStream bo = new ByteArrayOutputStream();\n int i = is.read();\n while(i != -1) {\n bo.write(i);\n i = is.read();\n }\n return bo.toString();\n } catch (IOException e) {\n return \"\";\n }\n }", "public String getLocalText(String fileName){\n\t\t\tString r = \"\";\n\t\t\tint BUFFER_SIZE = 2000;\n\t \tif(fileName.length() > 1){\n\t \t\ttry{\n\t \t \tFileInputStream fin = openFileInput(fileName);\n\t \t \tif(fin != null){\n \t \t \t\tInputStreamReader isr = new InputStreamReader(fin);\n \t \t \tint charRead;\n\t \t \tchar[] inputBuffer = new char[BUFFER_SIZE]; \n\t \t \ttry{\n\t \t \twhile ((charRead = isr.read(inputBuffer))>0){ \n\t \t \t\tString readString = String.copyValueOf(inputBuffer, 0, charRead); \n\t \t \tr += readString;\n\t \t \tinputBuffer = new char[BUFFER_SIZE];\n\t \t \t}\n\t \t \tfin.close();\n\t \t \t}catch(IOException e){\n\t \t \t\tr = \"\";\n\t \t\tLog.i(\"ZZ\", \"AppDelegate:getLocalText: ERROR - 1: \" + e.getMessage()); \n\t \t \t} \t \t \t\n\t \t \t}\n\t \t}catch (Exception je){\n\t \t\tr = \"\";\n \t\t//Log.i(\"ZZ\", \"AppDelegate:getLocalText: ERROR - 2: \" + je.getMessage()); \n\t \t}\n\t \t}else{\n\t \t\tr = \"\";\n\t \t}\n \t\t//Log.i(\"ZZ\", \"AppDelegate:getLocalText: \" + fileName); \n\t return r;\n\t\t}", "public static String readFile(final String name) {\n FileReader fileReader = null;\n final StringBuilder contents = new StringBuilder();\n try {\n final File file = new File(name);\n if (!file.exists()) {\n throw new IllegalArgumentException(\"File \" + name + \" does not exist\");\n }\n fileReader = new FileReader(file);\n final BufferedReader reader = new BufferedReader(fileReader);\n String inputLine = reader.readLine();\n while (inputLine != null) {\n contents.append(inputLine).append(\"\\n\");\n inputLine = reader.readLine();\n }\n reader.close();\n } catch (final IOException i1) {\n LOG.severe(\"Can't open file:\" + name);\n }\n return contents.toString();\n }", "private String readResource(String name) throws IOException {\n ClassLoader cl = Thread.currentThread().getContextClassLoader();\n try (InputStream in = cl.getResourceAsStream(name)) {\n return new String(EncodingUtils.readAll(in), StandardCharsets.US_ASCII);\n }\n }", "public File getFile(final String fileName) {\r\n return IOUtil.getFile(fileName, getClass());\r\n }", "public static String read(InputStream in) throws IOException {\n\t\tStringBuilder result = new StringBuilder();\n\t try {\n\t byte[] buf = new byte[1024]; int r = 0;\n\t while ((r = in.read(buf)) != -1) {result.append(new String(buf, 0, r));}\n\t } finally { in.close();}\n\t\tString text=result.toString();\n\t\treturn text;\n\t}", "public static String getStringFromFile(String filename) {\r\n BufferedReader br = null;\r\n StringBuilder sb = new StringBuilder();\r\n try {\r\n br = new BufferedReader(new FileReader(filename));\r\n try {\r\n String s;\r\n while ((s = br.readLine()) != null) {\r\n sb.append(s);\r\n sb.append(\"\\n\");\r\n }\r\n } finally {\r\n br.close();\r\n }\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n\r\n return sb.toString();\r\n }", "public static String convertInputStreamToString(InputStream is)\n throws IOException {\n if (is != null) {\n StringBuilder sb = new StringBuilder();\n String line;\n try {\n BufferedReader reader = new BufferedReader(\n new InputStreamReader(is, UtilsConstants.UTF_8));\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(UtilsConstants.LINE_SEPARATOR);\n }\n } finally {\n is.close();\n }\n return sb.toString();\n } else {\n return \"\";\n }\n }", "public static String loadFileAsString(String filename) throws java.io.IOException {\r\n final int BUFLEN=1024;\r\n BufferedInputStream is = new BufferedInputStream(new FileInputStream(filename), BUFLEN);\r\n try {\r\n ByteArrayOutputStream baos = new ByteArrayOutputStream(BUFLEN);\r\n byte[] bytes = new byte[BUFLEN];\r\n boolean isUTF8=false;\r\n int read,count=0;\r\n while((read=is.read(bytes)) != -1) {\r\n if (count==0 && bytes[0]==(byte)0xEF && bytes[1]==(byte)0xBB && bytes[2]==(byte)0xBF ) {\r\n isUTF8=true;\r\n baos.write(bytes, 3, read-3); // drop UTF8 bom marker\r\n } else {\r\n baos.write(bytes, 0, read);\r\n }\r\n count+=read;\r\n }\r\n return isUTF8 ? new String(baos.toByteArray(), \"UTF-8\") : new String(baos.toByteArray());\r\n } finally {\r\n try{ is.close(); } catch(Exception ex){}\r\n }\r\n }", "public static String get(String file) throws IOException {\n\n\t\tClassLoader classLoader = FileIO.class.getClassLoader();\n\t\tInputStream inputStream = new FileInputStream(classLoader.getResource(\n\t\t\t\tfile).getFile());\n\t\treturn IOUtils.toString(inputStream);\n\n\t}", "@Override\n public InputStream getInputStream(String templateName) throws IOException {\n if (templateName.contains(\"..\")) {\n throw new RuntimeException(\"templateName must not contain '..' characters\");\n }\n String templateFile = WELL_KNOWN_CONTAINER + \"/\" + templateName.replaceAll(\"^/+\", \"\"); // remove heading separator\n log.trace(\"locating template file: \" + templateFile + \"; requested template name: \" + templateName);\n try {\n Resource res = StaticResourceServlet.StaticResourceProvider.getInstance().getResource(getServletContext(), templateFile);\n if (res.notFound()) {\n throw new IOException(\"Template file not found: \" + templateName);\n }\n return new ByteArrayInputStream(res.getData());\n } catch (Exception e) {\n throw new IOException(\"Failed open template: \" + templateName, e);\n }\n }", "public String getFileContent(String filename){\n\t\tString output = \"\";\n\t\tfor(String s : files.keySet()){\n\t\t\tif(s.equals(filename.trim())){\n\t\t\t\toutput = files.get(s);\n\t\t\t\treturn output;\n\t\t\t}\n\t\t}\n\t\treturn \"File does not exist\";\n\t}", "public String read(String filename) {\n StringBuilder stringBuilder = new StringBuilder();\n try (BufferedReader bufferedReader = new BufferedReader(new FileReader(filename))) {\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n stringBuilder.append(line).append(\"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n return stringBuilder.toString();\n }", "private String getContent(InputStream inputStream) throws AspireException{\n\n BufferedReader bufferReader = null;\n StringBuilder stringBuilder = new StringBuilder();\n String line;\n \n try {\n \n bufferReader = new BufferedReader(new InputStreamReader(inputStream));\n \n while ((line = bufferReader.readLine()) != null) {\n stringBuilder.append(line);\n stringBuilder.append(\"\\n\");\n }\n \n } catch (IOException e) {\n throw new AspireException(\"SubversionJavaParser.getContent\", e);\n } finally {\n if (bufferReader != null) {\n try {\n bufferReader.close();\n } catch (IOException e) {\n throw new AspireException(\"SubversionJavaParser.getContent\", e);\n }\n }\n }\n \n return stringBuilder.toString();\n }", "private String InputStreamToString(InputStream in) {\n BufferedReader reader = null;\n try {\n reader = new BufferedReader(new InputStreamReader(in, IConstants.UTF8_ENCODING));\n } catch (UnsupportedEncodingException e1) {\n LogUtil.logError(EntropyPlugin.PLUGIN_ID, e1);\n }\n\n StringBuffer myStrBuf = new StringBuffer();\n int charOut = 0;\n String output = \"\"; //$NON-NLS-1$\n try {\n while ((charOut = reader.read()) != -1) {\n myStrBuf.append(String.valueOf((char) charOut));\n }\n } catch (IOException e) {\n LogUtil.logError(EntropyPlugin.PLUGIN_ID, e);\n }\n output = myStrBuf.toString();\n return output;\n }", "public static File getFile(String fileName){\n \tString basedir = System.getProperty(\"user.dir\");\n \tString dir = basedir+\"/src/test/resources/\" + fileName;\n \treturn new File(dir);\n }", "protected String readFile(InputStream inStream) throws IOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(inStream));\r\n\t\tString text = \"\";\r\n\t\tString line = \"\";\r\n\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\tif (line.matches(\"\\\\s\")) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\ttext = text + \" \" + line;\r\n\t\t}\r\n\t\treader.close();\r\n\t\treturn text;\r\n\t}", "public static String readFile(String fileName, String charset) throws IOException {\n File file = new File(fileName);\n return readFile(file, charset);\n }", "public String loadFileAsString(String filename) throws java.io.IOException {\n\t final int BUFLEN=1024;\n\t BufferedInputStream is = new BufferedInputStream(new FileInputStream(filename), BUFLEN);\n\t try {\n\t ByteArrayOutputStream baos = new ByteArrayOutputStream(BUFLEN);\n\t byte[] bytes = new byte[BUFLEN];\n\t boolean isUTF8=false;\n\t int read,count=0; \n\t while((read=is.read(bytes)) != -1) {\n\t if (count==0 && bytes[0]==(byte)0xEF && bytes[1]==(byte)0xBB && bytes[2]==(byte)0xBF ) {\n\t isUTF8=true;\n\t baos.write(bytes, 3, read-3); // drop UTF8 bom marker\n\t } else {\n\t baos.write(bytes, 0, read);\n\t }\n\t count+=read;\n\t }\n\t return isUTF8 ? new String(baos.toByteArray(), \"UTF-8\") : new String(baos.toByteArray());\n\t } finally {\n\t try{ is.close(); } catch(Exception ex){} \n\t }\n\t }", "private String streamToString(InputStream is) throws IOException {\n String str = \"\";\n \n if (is != null) {\n StringBuilder sb = new StringBuilder();\n String line;\n \n try {\n BufferedReader reader = new BufferedReader(\n new InputStreamReader(is));\n \n while ((line = reader.readLine()) != null) {\n sb.append(line);\n }\n \n reader.close();\n } finally {\n is.close();\n }\n \n str = sb.toString();\n }\n \n return str;\n }", "public String ReadFile_FromClassPath(String sFileName) {\n String stemp = null;\n\n try {\n InputStream is = getClass().getClassLoader().getResourceAsStream(sFileName);\n stemp = getStringFromInputStream(is);\n\n } catch (Exception e) {\n stemp = null;\n throw new Exception(\"ReadFile_FromClassPath : \" + e.toString());\n } finally {\n return stemp;\n }\n }", "public String getFileContent(String filePath) {\n\t\tString content = \"\";\n\t\t// get the path\n\t\tString path = filePath.substring(0, filePath.lastIndexOf(\"/\"));\n\t\t// get the file's name\n\t\tString name = filePath.substring(filePath.lastIndexOf(\"/\") + 1);\n\t\t// iterate through all the files to see if we can find it...\n\t\tfor (FileObjects t : getDirectory(path, directory).getFiles()) {\n\t\t\tif (name.equals(t.getName())) {\n\t\t\t\tcontent = t.getContent();\n\t\t\t}\n\t\t}\n\t\t// return the content of the file, or just an empty string if it's\n\t\t// empty.\n\t\treturn content;\n\n\t}", "private static String convertInputStreamToString(InputStream inputStream) throws IOException{\n BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(inputStream));\n String line = \"\";\n String result = \"\";\n while((line = bufferedReader.readLine()) != null)\n result += line;\n\n inputStream.close();\n return result;\n\n }", "protected String readFullyAsString(InputStream inputStream)\n\t\t\tthrows IOException {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tbyte[] buffer = new byte[1024];\n\t\tint length;\n\t\twhile ((length = inputStream.read(buffer)) != -1) {\n\t\t\tbaos.write(buffer, 0, length);\n\t\t}\n\t\treturn baos.toString(StandardCharsets.UTF_8.name());\n\t}" ]
[ "0.66731054", "0.661185", "0.65955555", "0.65038574", "0.64858377", "0.6445607", "0.6428542", "0.63908917", "0.6347535", "0.62945455", "0.6285766", "0.6284157", "0.6282468", "0.6259307", "0.6176151", "0.61704654", "0.613374", "0.6124541", "0.6100062", "0.6079547", "0.60765046", "0.60545105", "0.60275894", "0.5983503", "0.5960307", "0.595552", "0.5936855", "0.5930698", "0.59139067", "0.5892602", "0.58796304", "0.5850215", "0.5827377", "0.5771906", "0.57714915", "0.5747955", "0.5721812", "0.57144934", "0.57070243", "0.5690267", "0.56879884", "0.56860983", "0.56809694", "0.56789297", "0.56506777", "0.5627462", "0.56226444", "0.56129354", "0.55777436", "0.55771923", "0.556881", "0.55584705", "0.5555659", "0.5552512", "0.55428183", "0.55384034", "0.5534826", "0.5534109", "0.55326337", "0.54963005", "0.54933053", "0.5485721", "0.5482946", "0.54824024", "0.5480858", "0.54722244", "0.5471319", "0.5452698", "0.54523647", "0.5451488", "0.5450743", "0.54318726", "0.5426826", "0.54207236", "0.5409893", "0.53994954", "0.5373086", "0.5365872", "0.53570294", "0.53453046", "0.5344045", "0.5335519", "0.5306783", "0.53038394", "0.530002", "0.5283511", "0.52832764", "0.52830476", "0.52810925", "0.5279334", "0.5278088", "0.5274082", "0.52739215", "0.52613014", "0.5258822", "0.52552325", "0.5254992", "0.5252627", "0.52516526", "0.5242603", "0.5242556" ]
0.0
-1
Returns contents of a file as a string for a given File.
public static String getAsString(File file) { InputStream is = null; try { is = new FileInputStream(file); String rtn = getAsString(is); return rtn; } catch (Exception exp) { throw new RuntimeException(exp); } finally { if (is != null) { try { is.close(); } catch (Exception exp) { throw new RuntimeException(exp); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public String getContents(File aFile) {\n\t\tStringBuilder contents = new StringBuilder();\r\n\r\n\t\ttry {\r\n\t\t\t// use buffering, reading one line at a time\r\n\t\t\t// FileReader always assumes default encoding is OK!\r\n\t\t\tBufferedReader input = new BufferedReader(new FileReader(aFile));\r\n\t\t\ttry {\r\n\t\t\t\tString line = null; // not declared within while loop\r\n\t\t\t\t/*\r\n\t\t\t\t * readLine is a bit quirky : it returns the content of a line\r\n\t\t\t\t * MINUS the newline. it returns null only for the END of the\r\n\t\t\t\t * stream. it returns an empty String if two newlines appear in\r\n\t\t\t\t * a row.\r\n\t\t\t\t */\r\n\t\t\t\twhile ((line = input.readLine()) != null) {\r\n\t\t\t\t\tcontents.append(line);\r\n\t\t\t\t\tcontents.append(System.getProperty(\"line.separator\"));\r\n\t\t\t\t}\r\n\t\t\t} finally {\r\n\t\t\t\tinput.close();\r\n\t\t\t}\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn contents.toString();\r\n\t}", "public static String fileToString(File file) throws IOException{\n\t\tBufferedInputStream inputStream = new BufferedInputStream(new FileInputStream(file));\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(inputStream));\n\t\tStringBuilder file_content = new StringBuilder();\n\t\tString line;\n\t\twhile ((line = r.readLine()) != null) {\n\t\t file_content.append(line);\n\t\t}\n\t\t\n\t\treturn file_content.toString();\n\t}", "public static String readFileToString(File file) throws IOException {\n return readFileToString(file, null);\n }", "public static String readFile(final File file) throws IOException\n\t{\n\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(\n\t\t\t\tnew FileInputStream(file), FILE_CHARSET_NAME));\n\t\ttry\n\t\t{\n\t\t\tfinal StringBuilder contents = new StringBuilder(BUFFER_SIZE);\n\n\t\t\t// copy from input stream\n\t\t\tfinal char[] charBuffer = new char[BUFFER_SIZE];\n\t\t\tint len;\n\t\t\twhile ((len = input.read(charBuffer)) > 0)\n\t\t\t{\n\t\t\t\tcontents.append(charBuffer, 0, len);\n\t\t\t}\n\n\t\t\treturn contents.toString();\n\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tinput.close();\n\t\t}\n\t}", "public String readFileContent(File file) {\n StringBuilder fileContentBuilder = new StringBuilder();\n if (file.exists()) {\n String stringLine;\n try {\n FileReader fileReader = new FileReader(file);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n while ((stringLine = bufferedReader.readLine()) != null) {\n fileContentBuilder.append(stringLine + \"\\n\");\n }\n bufferedReader.close();\n fileReader.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return fileContentBuilder.toString();\n }", "public String getContents(File file) {\n\t //...checks on file are elided\n\t StringBuilder contents = new StringBuilder();\n\t \n\t try {\n\t //use buffering, reading one line at a time\n\t //FileReader always assumes default encoding is OK!\n\t BufferedReader input = new BufferedReader(new FileReader(file));\n\t try {\n\t String line = null; \n\n\t while (( line = input.readLine()) != null){\n\t contents.append(line);\n\t contents.append(\"\\r\\n\");\t }\n\t }\n\t finally {\n\t input.close();\n\t }\n\t }\n\t catch (IOException ex){\n\t log.error(\"Greska prilikom citanja iz fajla: \"+ex);\n\t }\n\t \n\t return contents.toString();\n\t}", "public String getFileContents(String myFile) {\n\n\t\t// Creates a new StringBuilder object.\n\t\tthis.fileContents = new StringBuilder();\n\n\t\t// Creates a new File object.\n\t\tthis.file = new File(myFile);\n\n\t\ttry {\n\t\t\t// Creates a FileReader object.\n\t\t\tthis.fileReader = new FileReader(file);\n\n\t\t\t// Wraps the FileReader in a BufferedReader.\n\t\t\tthis.bufferedReader = new BufferedReader(fileReader);\n\n\t\t\t// Reads from the FileReader via the BufferedReader and appends to the String.\n\t\t\twhile ((this.line = bufferedReader.readLine()) != null) {\n\t\t\t\tfileContents.append(line + \"\\n\");\n\t\t\t}\n\t\t\t// If file cannot be located.\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"[ERROR] File not found: \" + file.toString());\n\t\t\t// If file cannot be read.\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[ERROR] Unable to read file: \" + file.toString());\n\t\t}\n\n\t\ttry {\n\t\t\tbufferedReader.close();\n\t\t\t// If file cannot be closed.\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[ERROR] Unable to close file: \" + file.toString());\n\t\t\t// If file contains a null value.\n\t\t} catch (NullPointerException ex) {\n\t\t\tSystem.out.println(\"[ERROR] \" + file.toString() + \"contains no information.\");\n\t\t}\n\t\treturn fileContents.toString();\n\t}", "public static String getContent(IFile file) throws Exception {\n return getContent(file.getContents(true));\n }", "private String getStringFromFile() throws FileNotFoundException {\n String contents;\n FileInputStream fis = new FileInputStream(f);\n StringBuilder stringBuilder = new StringBuilder();\n try {\n InputStreamReader inputStreamReader = new InputStreamReader(fis, \"UTF-8\");\n BufferedReader reader = new BufferedReader(inputStreamReader);\n String line = reader.readLine();\n while (line != null) {\n stringBuilder.append(line).append('\\n');\n line = reader.readLine();\n }\n } catch (IOException e) {\n // Error occurred when opening raw file for reading.\n } finally {\n contents = stringBuilder.toString();\n }\n return contents;\n }", "public static String getTextFromFile(File file) {\n InputStream fis = null;\n InputStreamReader isr = null;\n BufferedReader bufferedReader = null;\n StringBuilder sb = new StringBuilder(\"\");\n try {\n fis = new FileInputStream(file);\n isr = new InputStreamReader(fis);\n bufferedReader = new BufferedReader(isr);\n String line;\n while ((line = bufferedReader.readLine()) != null) sb.append(line);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (fis != null && isr != null && bufferedReader != null) {\n try {\n fis.close();\n isr.close();\n bufferedReader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return sb.toString();\n }", "private static String readFile(File file) {\n String result = \"\";\n\n try (BufferedReader bufferedReader = new BufferedReader(\n new FileReader(file))) {\n result = bufferedReader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return result;\n }", "public String getContent() {\n String s = null;\n try {\n s = new String(Files.readAllBytes(Paths.get(filename)), StandardCharsets.UTF_8);\n }\n catch (IOException e) {\n message = \"Problem reading a file: \" + filename;\n }\n return s;\n }", "public static String read(File file) throws CWLException {\r\n StringBuilder contents = new StringBuilder();\r\n try (FileInputStream in = new FileInputStream(file)) {\r\n byte[] buffer = new byte[1024];\r\n int read = 0;\r\n while ((read = in.read(buffer)) > 0) {\r\n contents.append(new String(buffer, 0, read, StandardCharsets.UTF_8.name()));\r\n }\r\n } catch (IOException e) {\r\n throw new CWLException(\r\n ResourceLoader.getMessage(READ_FILE_FAILED_MSG, file.getAbsolutePath(), e.getMessage()),\r\n 255);\r\n }\r\n return contents.toString();\r\n }", "public String readFile(File file) {\r\n\t\tString line;\r\n\t\tString allText = \"\";\r\n\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(file))) {\r\n\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\r\n\t\t\t\tallText += line + \"\\n\";\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn allText;\r\n\t}", "public static String readFile(File file) {\n FileInputStream fis = null;\n try {\n fis = new FileInputStream(file);\n byte[] b = Utils.readBytes(fis);\n return new String(b, StandardCharsets.UTF_8);\n } catch (IOException e) {\n e.printStackTrace();\n }finally {\n if(fis != null) {\n try {\n fis.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return null;\n }", "public static String getText(File file) {\n\t try {\n\t StringBuilder builder = new StringBuilder();\n\t BufferedReader input = new BufferedReader(new FileReader(file));\n\t try {\n\t String lineSeparator = System.getProperty(\"line.separator\");\n\t if (lineSeparator == null) {\n\t lineSeparator = \"\\n\";\n\t }\n\t for (String line; (line = input.readLine()) != null; ) {\n\t builder.append(line);\n\t builder.append(lineSeparator);\n\t }\n\t return builder.toString();\n\t } finally {\n\t input.close();\n\t }\n\t } catch (Exception e) {\n\t throw new RuntimeException(e.getMessage(), e);\n\t }\n\t }", "private static String file2string(String file) {\n StringBuilder sb = new StringBuilder();\n try {\n BufferedReader br = new BufferedReader(new FileReader(new File(file)));\n String line;\n\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return (sb != null) ? sb.toString() : \"\";\n }", "public static String readFileToString(File file, String encoding) throws IOException {\n InputStream in = null;\n try {\n in = openInputStream(file);\n return IOUtils.toString(in, encoding);\n } finally {\n IOUtils.closeQuietly(in);\n }\n }", "public static String readString(File file) throws IOException {\n return readString(file, DEFAULT_ENCODING);\n }", "public static String readTextFile(File file) {\n\n\t\tBufferedInputStream bis = null;\n\t\tFileInputStream fis = null;\n\t\tStringBuffer sb = new StringBuffer();\n\t\ttry {\n\t\t\t// FileInputStream to read the file\n\t\t\tfis = new FileInputStream(file);\n\n\t\t\t/*\n\t\t\t * Passed the FileInputStream to BufferedInputStream For Fast read\n\t\t\t * using the buffer array.\n\t\t\t */\n\t\t\tbis = new BufferedInputStream(fis);\n\n\t\t\t/*\n\t\t\t * available() method of BufferedInputStream returns 0 when there\n\t\t\t * are no more bytes present in the file to be read\n\t\t\t */\n\t\t\twhile (bis.available() > 0) {\n\t\t\t\tsb.append((char) bis.read());\n\t\t\t}\n\n\t\t} catch (FileNotFoundException fnfe) {\n\t\t\tSystem.out.println(\"The specified file not found\" + fnfe);\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"I/O Exception: \" + ioe);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (bis != null && fis != null) {\n\t\t\t\t\tfis.close();\n\t\t\t\t\tbis.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tSystem.out.println(\"Error in InputStream close(): \" + ioe);\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\n\t}", "private static String getText(IFile file) throws CoreException, IOException {\n\t\tInputStream in = file.getContents();\n\t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n\t\tbyte[] buf = new byte[1024];\n\t\tint read = in.read(buf);\n\t\twhile (read > 0) {\n\t\t\tout.write(buf, 0, read);\n\t\t\tread = in.read(buf);\n\t\t}\n\t\treturn out.toString();\n\t}", "private static String readFileContents(File file) throws FileNotFoundException {\n StringBuilder fileContents = new StringBuilder((int) file.length());\n\n try (Scanner scanner = new Scanner(file)) {\n while (scanner.hasNext()) {\n fileContents.append(scanner.next());\n }\n return fileContents.toString();\n }\n }", "public static String readFileToString (File file) {\n try {\n final var END_OF_FILE = \"\\\\z\";\n var input = new Scanner(file);\n input.useDelimiter(END_OF_FILE);\n var result = input.next();\n input.close();\n return result;\n }\n catch(IOException e){\n return \"\";\n }\n }", "@SuppressWarnings(\"unused\")\n private String readFile(File f) throws IOException {\n BufferedReader reader = new BufferedReader(new FileReader(f));\n String line = reader.readLine();\n StringBuilder builder = new StringBuilder();\n while (line != null) {\n builder.append(line).append('\\n');\n line = reader.readLine();\n }\n reader.close();\n return builder.toString();\n }", "public String getStringFile(){\n return fileView(file);\n }", "public static String read(File file) throws FileNotFoundException, IOException {\n char[] cbuf = new char[1024];\n StringBuilder builder = new StringBuilder();\n try (BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(file)))) {\n int numRead;\n while ((numRead = reader.read(cbuf)) != -1) {\n builder.append(cbuf, 0, numRead);\n }\n }\n return builder.toString();\n }", "public static String getFileContentsAsString(String filename) {\n\n // Java uses Paths as an operating system-independent specification of the location of files.\n // In this case, we're looking for files that are in a directory called 'data' located in the\n // root directory of the project, which is the 'current working directory'.\n final Path path = FileSystems.getDefault().getPath(\"Resources\", filename);\n\n try {\n // Read all of the bytes out of the file specified by 'path' and then convert those bytes\n // into a Java String. Because this operation can fail if the file doesn't exist, we\n // include this in a try/catch block\n return new String(Files.readAllBytes(path));\n } catch (IOException e) {\n // Since we couldn't find the file, there is no point in trying to continue. Let the\n // user know what happened and exit the run of the program. Note: we're only exiting\n // in this way because we haven't talked about exceptions and throwing them in CS 126 yet.\n System.out.println(\"Couldn't find file: \" + filename);\n System.exit(-1);\n return null; // note that this return will never execute, but Java wants it there.\n }\n }", "public static String readTextFile(File file) throws IOException {\n StringBuffer sb = new StringBuffer();\n BufferedReader fileReader = new BufferedReader(new FileReader(file));\n FileHelper.read(sb, fileReader);\n return sb.toString();\n }", "private String readFile(String file) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(file), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n\n return contentBuilder.toString();\n\n }", "public static String readFile(File file) {\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString line = br.readLine();\n\n\t\t\twhile (line != null) {\n\t\t\t\tsb.append(line);\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\tline = br.readLine();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(br);\n\t\t}\n\n\t\treturn null;\n\t}", "public static String readFileAsString(String file) throws IOException {\n \t\tStringBuilder contents = new StringBuilder();\n \t\tBufferedReader input = new BufferedReader(new FileReader(file));\n \t\tString line = null;\n \t\twhile ((line = input.readLine()) != null) {\n \t\t\tcontents.append(line);\n \t\t\tcontents.append(System.getProperty(\"line.separator\"));\n \t\t}\n \t\tinput.close();\n \t\treturn contents.toString();\n \t}", "public String read() {\n\t\tStringBuffer text = new StringBuffer((int)file.length());\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader b = new BufferedReader(fr);\n\t\t\tboolean eof = false;\n\t\t\tString line;\n\t\t\tString ret = \"\\n\";\n\t\t\twhile (!eof) {\n\t\t\t\tline = b.readLine();\n\t\t\t\tif (line == null) {\n\t\t\t\t\teof = true;\n\t\t\t\t} else {\n\t\t\t\t\ttext.append(line);\n\t\t\t\t\ttext.append(ret);\n\t\t\t\t}\n\t\t\t}\n\t\t\tb.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalArgumentException(\"File \" + file.getName() +\n\t\t\t\t\" is unreadable : \" + e.toString());\n\t\t}\n\t\treturn text.toString();\n\t}", "private String getFileContent(java.io.File fileObj) {\n String returned = \"\";\n try {\n java.io.BufferedReader reader = new java.io.BufferedReader(new java.io.FileReader(fileObj));\n while (reader.ready()) {\n returned = returned + reader.readLine() + lineSeparator;\n }\n } catch (FileNotFoundException ex) {\n JTVProg.logPrint(this, 0, \"файл [\" + fileObj.getName() + \"] не найден\");\n } catch (IOException ex) {\n JTVProg.logPrint(this, 0, \"[\" + fileObj.getName() + \"]: ошибка ввода/вывода\");\n }\n return returned;\n }", "public String readFileToString(String file) throws IOException {\n BufferedReader reader = new BufferedReader( new FileReader(file));\n String line = null;\n StringBuilder stringBuilder = new StringBuilder();\n String ls = System.getProperty(\"line.separator\");\n\n while( ( line = reader.readLine() ) != null ) {\n stringBuilder.append( line );\n stringBuilder.append( ls );\n }\n return stringBuilder.toString();\n }", "private String readStringFromFile(final File file) {\n try {\n FileInputStream fin = new FileInputStream(file);\n BufferedReader reader = new BufferedReader(new InputStreamReader(fin));\n StringBuilder sb = new StringBuilder();\n String line = null;\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n reader.close();\n String result = sb.toString();\n fin.close();\n return result;\n } catch (IOException ioEx) {\n Log.e(TAG, \"Error reading String from a file: \" + ioEx.getLocalizedMessage());\n }\n return null;\n }", "public static String read(File file) throws Exception {\r\n\t\treader.setFile(file);\r\n\t\treader.setCharset(\"UTF-8\");\r\n\t\treturn reader.read();\r\n\t}", "public String readFile(){\r\n StringBuffer str = new StringBuffer(); //StringBuffer is a mutable string\r\n Charset charset = Charset.forName(\"UTF-8\"); //UTF-8 character encoding\r\n Path file = Paths.get(filename + \".txt\");\r\n try (BufferedReader reader = Files.newBufferedReader(file, charset)) { // Buffer: a memory area that buffered streams read\r\n String line = null;\r\n while ((line = reader.readLine()) != null) { //Readers and writers are on top of streams and converts bytes to characters and back, using a character encoding\r\n str.append(line + \"\\n\");\r\n }\r\n }\r\n catch (IOException x) {\r\n System.err.format(\"IOException: %s%n\", x);\r\n }\r\n return str.toString();\r\n }", "public String readFile(String fName) {\n String msg=\"\";\n try {\n File theFile = new File(fName);\n InputStreamReader iStream = new InputStreamReader(new FileInputStream(theFile));\n int length = (int)theFile.length();\n char input[] = new char[length];\n iStream.read(input);\n msg = new String(input);\n } catch (IOException e) {\n e.printStackTrace();\n } // catch\n return msg;\n }", "public static String readFile() {\n\t\tFileReader file;\n\t\tString textFile = \"\";\n\n\t\ttry {\n\t\t\tfile = new FileReader(path);\n\n\t\t\t// Output string.\n\t\t\ttextFile = new String();\n\n\t\t\tBufferedReader bfr = new BufferedReader(file);\n\n\t\t\ttextFile= bfr.readLine();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error reading the file\");\n\t\t}\n\t\treturn textFile;\n\n\t}", "public String read(File file) throws IOException {\n\t\t\tInputStream is = null;\r\n\t\t\tis = new FileInputStream(file);\r\n\t\t\t\r\n\t\t\tAccessTextFile test = new AccessTextFile();\r\n//\t\t\tInputStream is = new FileInputStream(\"E:\\\\test.txt\");\r\n\t\t\tStringBuffer buffer = new StringBuffer();\r\n\t\t\ttest.readToBuffer(buffer, is);\r\n\t\t\tSystem.out.println(buffer); // 将读到 buffer 中的内容写出来\r\n\t\t\tis.close();\t\t\r\n\t\t\treturn buffer.toString();\r\n\t\t }", "public String loadFromFile() {\n StringBuilder sb = new StringBuilder();\n try {\n Log.d(\"DEBUG\", this.context.getPackageName());\n Log.d(\"DEBUG\", this.file);\n FileInputStream fis = context.openFileInput(file);\n BufferedReader br = new BufferedReader(new InputStreamReader(fis, this.encoding));\n String line;\n while(( line = br.readLine()) != null ) {\n sb.append( line );\n sb.append( '\\n' );\n }\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n return sb.toString();\n }", "public static String readFileAsString(String fileName) {\n String text = \"\";\n\n try {\n text = new String(Files.readAllBytes(Paths.get(fileName)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return text;\n }", "public String getFormattedFileContents ();", "public static String getContentForFileFromDisk(IFile file) {\n\t\treturn getContentForFileFromDisk(file, 0);\n\t}", "public static char[] getFileContents(File file) {\n // char array to store the file contents in\n char[] contents = null;\n try {\n BufferedReader br = new BufferedReader(new FileReader(file));\n StringBuffer sb = new StringBuffer();\n String line = \"\";\n while ((line = br.readLine()) != null) {\n // append the content and the lost new line.\n sb.append(line + \"\\n\");\n }\n contents = new char[sb.length()];\n sb.getChars(0, sb.length() - 1, contents, 0);\n\n assert (contents.length > 0);\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n\n return contents;\n }", "public static String get(String file) throws IOException {\n\n\t\tClassLoader classLoader = FileIO.class.getClassLoader();\n\t\tInputStream inputStream = new FileInputStream(classLoader.getResource(\n\t\t\t\tfile).getFile());\n\t\treturn IOUtils.toString(inputStream);\n\n\t}", "public String readFileContents(String filename) {\n return null;\n\n }", "public String FetchDataFromFile(File file) {\r\n\t\tStringBuilder sb=new StringBuilder();\r\n\t\ttry {\r\n\t\t\tScanner sc=new Scanner(file);\r\n\t\t\twhile(sc.hasNextLine()){\r\n\t\t\t\tsb.append(sc.nextLine());\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public static String loadAFileToStringDE1(File f) throws IOException {\n InputStream is = null;\n String ret = null;\n try {\n is = new BufferedInputStream( new FileInputStream(f) );\n long contentLength = f.length();\n ByteArrayOutputStream outstream = new ByteArrayOutputStream( contentLength > 0 ? (int) contentLength : 1024);\n byte[] buffer = new byte[4096];\n int len;\n while ((len = is.read(buffer)) > 0) {\n outstream.write(buffer, 0, len);\n } \n outstream.close();\n ret = outstream.toString();\n //byte[] ba = outstream.toByteArray();\n //ret = new String(ba);\n } finally {\n if(is!=null) {try{is.close();} catch(Exception e){} }\n }\n// long endTime = System.currentTimeMillis();\n// System.out.println(\"方法1用时\"+ (endTime-beginTime) + \"ms\");\n return ret; \n }", "private static String loadFile(File file) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\treturn br.readLine();\n\t}", "private static String readTextFile(File file) throws IOException {\n return Files.lines(file.toPath()).collect(Collectors.joining(\"\\n\"));\n }", "String getFile();", "String getFile();", "String getFile();", "public static String getStringFromFile(String filename) {\r\n try {\r\n FileInputStream fis = new FileInputStream(filename);\r\n int available = fis.available();\r\n byte buffer[] = new byte[available];\r\n fis.read(buffer);\r\n fis.close();\r\n\r\n String tmp = new String(buffer);\r\n //System.out.println(\"\\nfrom file:\"+filename+\":\\n\"+tmp);\r\n return tmp;\r\n\r\n } catch (Exception ex) {\r\n // System.out.println(ex);\r\n // ex.printStackTrace();\r\n return \"\";\r\n } // endtry\r\n }", "public static String readFile(File file) throws IOException {\n\t\tString lineSep = \"\\n\";\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\tString nextLine = \"\";\n\t\tStringBuffer sb = new StringBuffer();\n\t\tnextLine = br.readLine();\n\t\t// skip shebang line\n\t\tif (nextLine.indexOf(\"#!\") < 0) {\n\t\t\tsb.append(nextLine);\n\t\t\tsb.append(lineSep);\n\t\t}\n\t\twhile ((nextLine = br.readLine()) != null) {\n\t\t\tsb.append(nextLine);\n\t\t\tsb.append(lineSep);\n\t\t}\n\t\treturn sb.toString();\n\t}", "public static String getEncodedFile(File file) {\n InputStream fis = null;\n StringBuilder sb = new StringBuilder(\"\");\n try {\n fis = new FileInputStream(file);\n byte[] buffer = new byte[fis.available()];\n final int readLength = fis.read(buffer);\n Log.i(TAG, \"getEncodedFile: Read Length: \" + readLength);\n sb.append(Base64.encodeToString(buffer, Base64.DEFAULT));\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (fis != null) {\n try {\n fis.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return sb.toString();\n }", "public static String getStringFromFile(String filename) {\r\n BufferedReader br = null;\r\n StringBuilder sb = new StringBuilder();\r\n try {\r\n br = new BufferedReader(new FileReader(filename));\r\n try {\r\n String s;\r\n while ((s = br.readLine()) != null) {\r\n sb.append(s);\r\n sb.append(\"\\n\");\r\n }\r\n } finally {\r\n br.close();\r\n }\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n\r\n return sb.toString();\r\n }", "public static String readString(File file, String encoding) throws IOException {\n return readString(new FileInputStream(file), encoding);\n }", "public static String loadAFileToStringDE2(File f) throws IOException {\n InputStream is = null;\n String ret = null;\n try {\n is = new FileInputStream(f) ;\n long contentLength = f.length();\n byte[] ba = new byte[(int)contentLength];\n is.read(ba);\n ret = new String(ba);\n } finally {\n if(is!=null) {try{is.close();} catch(Exception e){} }\n }\n// long endTime = System.currentTimeMillis();\n// System.out.println(\"方法2用时\"+ (endTime-beginTime) + \"ms\");\n return ret; \n }", "public String ReadFile() throws IOException {\n File file = context.getFilesDir();\n File textfile = new File(file + \"/\" + this.fileName);\n\n FileInputStream input = context.openFileInput(this.fileName);\n byte[] buffer = new byte[(int)textfile.length()];\n\n input.read(buffer);\n\n return new String(buffer);\n }", "public static String readString(String file) throws IOException\n {\n try(InputStream in = getInputStream(file); BufferedReader reader = new BufferedReader(new InputStreamReader(in)))\n {\n StringBuilder builder = new StringBuilder();\n String line;\n while((line = reader.readLine()) != null)\n builder.append(line).append(\"\\n\");\n\n return builder.toString();\n }\n }", "private String getFileContents ()\n {\n final String s = m_buffers.values ()//\n .stream ()//\n .flatMap (List::stream)//\n .collect (Collectors.joining ());\n\n return s;\n }", "@Override\n public String getData(File file) throws Exception {\n String data;\n FileInputStream fis = null;\n try {\n if (file == null) {\n // ex. if site root url returns something else than 200 (ex. 403)\n return \"\"; // else cleaner.clean(siteRootFile) throws NullPointerException\n }\n fis = new FileInputStream(file);\n StringBuilder dataBuffer = new StringBuilder();\n int c;\n while ((c = fis.read()) != -1) {\n dataBuffer.append((char) c);\n }\n data = dataBuffer.toString();\n }\n catch (Exception e) {\n data = null;\n }\n finally {\n if (fis != null) {\n fis.close();\n }\n }\n return data;\n }", "public static String readFile(String pFilePath) {\n\t\tBufferedReader bufferedReader = null;\n\t StringBuilder stringBuilder = new StringBuilder();\n\t\ttry {\n\t\t\tbufferedReader = new BufferedReader(new FileReader(pFilePath));\n\t\t\tbufferedReader.lines().forEach((s) -> { stringBuilder.append(s + \"\\n\"); });\t\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t} finally {\n\t\t\tif (bufferedReader != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbufferedReader.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (stringBuilder != null && stringBuilder.toString().equals(\"\")) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn stringBuilder.toString();\n\t\t}\n\t}", "public String read() throws Exception {\r\n\t\tBufferedReader reader = null;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tif (input==null) input = new FileInputStream(file);\r\n\t\t\treader = new BufferedReader(new InputStreamReader(input,charset));\r\n\t\t\tchar[] c= null;\r\n\t\t\twhile (reader.read(c=new char[8192])!=-1) {\r\n\t\t\t\tsb.append(c);\r\n\t\t\t}\r\n\t\t\tc=null;\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow e;\r\n\t\t} finally {\r\n\t\t\treader.close();\r\n\t\t}\r\n\t\treturn sb.toString().trim();\r\n\t}", "@Override\n public String getContent() throws FileNotFound, CannotReadFile\n {\n Reader input = null;\n try\n {\n input = new InputStreamReader(resource.openStream());\n String content = IOUtils.toString(input).replace(\"\\r\\n\", \"\\n\");\n\n return content;\n } catch (FileNotFoundException ex)\n {\n throw new FileNotFound();\n } catch (IOException ex)\n {\n throw new CannotReadFile();\n } finally\n {\n InternalUtils.close(input);\n }\n }", "private String readFile(File file){\n StringBuilder stringBuffer = new StringBuilder();\n BufferedReader bufferedReader = null;\n\n try {\n\n bufferedReader = new BufferedReader(new FileReader(file));\n\n String text;\n while ((text = bufferedReader.readLine()) != null) {\n stringBuffer.append(text.replaceAll(\"\\t\", miTab) + \"\\n\");\n }\n\n } catch (FileNotFoundException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n try {\n bufferedReader.close();\n } catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n return stringBuffer.toString();\n }", "public static String readFile(File fileName) throws IOException {\n return readFile(fileName, \"UTF-8\");\n }", "public String readFileIntoString(String sourceFilepath) throws IOException {\n StringBuilder sb = new StringBuilder();\n URL url = new URL(sourceFilepath);\n BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));\n String line = null;\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n reader.close();\n return sb.toString();\n }", "protected String readFile(int resourceFile) {\n Context context = getContext();\n if (context != null) {\n try {\n InputStream is = context.getResources().openRawResource(resourceFile);\n return Okio.buffer(Okio.source(is)).readString(Charset.defaultCharset());\n } catch (IOException e) {\n Log.e(TAG, \"Failed to read config\", e);\n }\n }\n return \"\";\n }", "private static String readFileToString(File fileToRead) {\n\t\tString out = null;\n\t\ttry {\n\t\t\tout = FileUtils.readFileToString(fileToRead);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn out;\n\t}", "public String getTextInfo(File logFile) {\n\t\tBufferedReader bReader = null;\n\t\tStringBuilder sbr = new StringBuilder();\n\t\tString line;\n\t\ttry {\n\t\t\tbReader = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tnew FileInputStream(logFile)));\n\t\t\twhile (null != (line = bReader.readLine())) {\n\t\t\t\tsbr.append(line).append(\"\\n\");\n\t\t\t}\n\t\t\tbReader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tLog.e(TAG,\n\t\t\t\t\te.getMessage() == null ? e.getClass().getName() : e\n\t\t\t\t\t\t\t.getMessage(), e);\n\t\t} catch (IOException e) {\n\t\t\tLog.e(TAG,\n\t\t\t\t\te.getMessage() == null ? e.getClass().getName() : e\n\t\t\t\t\t\t\t.getMessage(), e);\n\t\t}\n\t\treturn sbr.toString();\n\t}", "private String convertXMLFileToString(File file)\n {\n try{\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n InputStream inputStream = new FileInputStream(file);\n org.w3c.dom.Document doc = documentBuilderFactory.newDocumentBuilder().parse(inputStream);\n StringWriter stw = new StringWriter();\n Transformer serializer = TransformerFactory.newInstance().newTransformer();\n serializer.transform(new DOMSource(doc), new StreamResult(stw));\n return stw.toString();\n }\n catch (Exception e) {\n \tnew ErrorBox(\"Error Deserializing\", \"XML file could not be deserialized\");\n }\n return null;\n }", "public static String fileToString(String fileName) throws FileNotFoundException {\n Scanner in = new Scanner(new File(fileName));\n String result = \"\";\n\n while(in.hasNextLine()){\n result += in.nextLine();\n }\n\n return result;\n }", "public String getFileContent(String filePath) {\n\t\tString content = \"\";\n\t\t// get the path\n\t\tString path = filePath.substring(0, filePath.lastIndexOf(\"/\"));\n\t\t// get the file's name\n\t\tString name = filePath.substring(filePath.lastIndexOf(\"/\") + 1);\n\t\t// iterate through all the files to see if we can find it...\n\t\tfor (FileObjects t : getDirectory(path, directory).getFiles()) {\n\t\t\tif (name.equals(t.getName())) {\n\t\t\t\tcontent = t.getContent();\n\t\t\t}\n\t\t}\n\t\t// return the content of the file, or just an empty string if it's\n\t\t// empty.\n\t\treturn content;\n\n\t}", "public static String loadFileAsString(String filePath) throws java.io.IOException{\n\t StringBuffer fileData = new StringBuffer(1000);\n\t BufferedReader reader = new BufferedReader(new FileReader(filePath));\n\t char[] buf = new char[1024];\n\t int numRead=0;\n\t while((numRead=reader.read(buf)) != -1){\n\t String readData = String.valueOf(buf, 0, numRead);\n\t fileData.append(readData);\n\t }\n\t reader.close();\n\t return fileData.toString();\n\t}", "private static String fileToString(String path) throws IOException {\n\n\t\tbyte[] encoded = Files.readAllBytes(Paths.get(path));\n\t\treturn new String(encoded, StandardCharsets.UTF_8);\n\t}", "public String textExtractor(File file) {\n StringBuilder textBuilder = new StringBuilder();\n\n try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(file), \"UTF-8\"))) {\n while (bufferedReader.ready()) {\n textBuilder.append(bufferedReader.readLine()).append(\"\\n\");\n }\n } catch (IOException exc) {\n exc.printStackTrace();\n }\n\n return textBuilder.toString();\n }", "private static String readFile(String file) throws IOException {\n\n\t\tString line = null;\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tString ls = System.getProperty(\"line.separator\");\n\n\t\ttry (BufferedReader reader = new BufferedReader(new FileReader(file))) {\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tstringBuilder.append(line);\n\t\t\t\tstringBuilder.append(ls);\n\t\t\t}\n\t\t}\n\n\t\treturn stringBuilder.toString();\n\t}", "public String read(String filename) {\n StringBuilder stringBuilder = new StringBuilder();\n try (BufferedReader bufferedReader = new BufferedReader(new FileReader(filename))) {\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n stringBuilder.append(line).append(\"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n return stringBuilder.toString();\n }", "public String readFileIntoString(String filepath) throws IOException;", "public static String localFileToString(String fileName) throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new FileReader(fileName));\n\t\ttry\n\t {\n\t StringBuilder sb = new StringBuilder();\n\t String line = br.readLine();\n\n\t while (line != null)\n\t {\n\t sb.append(line);\n\t sb.append(\"\\n\");\n\t line = br.readLine();\n\t }\n\t \n\t return sb.toString();\n\t }\n\t finally\n\t {\n\t br.close();\n\t }\n\t}", "private String getFileContent(String filePath) {\r\n\r\n\t\ttry {\r\n\t\t\tString text = new String(Files.readAllBytes(Paths.get(filePath)), StandardCharsets.UTF_8);\r\n\t\t\treturn text;\r\n\t\t} catch (Exception ex) {\r\n\t\t\treturn \"-1\";\r\n\t\t}\r\n\t}", "public String readFile(){\n\t\tString res = \"\";\n\t\t\n\t\tFile log = new File(filePath);\n\t\tBufferedReader bf = null;\n\t\t\n\t\ttry{\n\t\t\tbf = new BufferedReader(new FileReader(log));\n\t\t\tString line = bf.readLine();\n\t\t\n\t\t\n\t\t\twhile (line != null){\n\t\t\t\tres += line+\"\\n\";\n\t\t\t\tline = bf.readLine();\n\t\t\t}\n\t\t\n\t\t\treturn res;\n\t\t}\n\t\tcatch(Exception oops){\n\t\t\tSystem.err.println(\"There was an error reading the file \"+oops.getStackTrace());\n\t\t\treturn \"\";\n\t\t}\n\t\tfinally{\n\t\t\ttry {\n\t\t\t\tbf.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"There was an error closing the read Buffer \"+e.getStackTrace());\n\t\t\t}\n\t\t}\n\t}", "public static String getAsString(String filePath) {\n\t\tInputStream is = FileUtil.class.getResourceAsStream(filePath);\n\t\treturn getAsString(is);\n\t}", "public String ReadContent(File fileToRead) {\n StringBuilder spamFilterContent = new StringBuilder();\n String fileContent = \"\";\n try {\n BufferedReader bufferedReader = new BufferedReader(new FileReader(fileToRead));\n String line;\n\n while ((line = bufferedReader.readLine()) != null) {\n spamFilterContent.append(line);\n }\n bufferedReader.close();\n fileContent = spamFilterContent.toString();\n } catch (IOException e) {\n //You'll need to add proper error handling here\n }\n\n return fileContent;\n }", "public String getFileContent(String filename){\n\t\tString output = \"\";\n\t\tfor(String s : files.keySet()){\n\t\t\tif(s.equals(filename.trim())){\n\t\t\t\toutput = files.get(s);\n\t\t\t\treturn output;\n\t\t\t}\n\t\t}\n\t\treturn \"File does not exist\";\n\t}", "public static String read(String filename) {\n StringBuilder sb = new StringBuilder();\n try {\n FileReader fr = new FileReader(new File(filename));\n BufferedReader br = new BufferedReader(fr);\n String s;\n while ((s = br.readLine()) != null) {\n sb.append(s).append(\"\\n\");\n }\n br.close();\n fr.close();\n } catch (FileNotFoundException ex) {\n } catch (IOException ex) {\n }\n return sb.toString();\n }", "private byte[] getContent(File f) {\n byte[] content = null;\n\n try {\n FileInputStream fis = new FileInputStream(f);\n byte[] temp = new byte[fis.available()];\n fis.read(temp);\n fis.close();\n content = temp;\n } catch (IOException e) {\n System.err.println(e.getMessage());\n }\n\n return content;\n }", "@NonNull\n public String getSourceContents() {\n if (mSourceContents == null) {\n File sourceFile = getSourceFile();\n if (sourceFile != null) {\n mSourceContents = getClient().readFile(mSourceFile);\n }\n\n if (mSourceContents == null) {\n mSourceContents = \"\";\n }\n }\n\n return mSourceContents;\n }", "public String readFile(String Path, String File_name) {\n\t\tFile f1 = new File( Path + \"/\" + File_name);\n\t\t String str = \"\";\n\t\t String res = \"\";\n\t try {\n\t // открываем поток для чтения\n\t BufferedReader br = new BufferedReader(new FileReader(f1));\n\t \n\t // читаем содержимое\n\t while ((str = br.readLine()) != null) {\n\t Log.d(LOG_TAG, str);\n\t res+=str;\n\t }\n\t //res=str;\n\t \n\t } catch (FileNotFoundException e) {\n\t e.printStackTrace();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return res;\n\t }", "public static String readFileAsString(String filePath, String encoding) {\n\t\tbyte[] buffer = new byte[(int) new File(filePath).length()];\n\t\tBufferedInputStream f = null;\n\t\ttry {\n\t\t\tFile file = new File(filePath);\n\t\t\tfor (int attempt = 0; attempt < 3; attempt++) {\n\t\t\t\tif (file.exists()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tThread.sleep(2);\n\t\t\t}\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tSystem.err.println(\"\\nfile not found: \" + filePath);\n\t\t\t\tthrow new FileNotFoundException(\"Could not find file: \" + filePath);\n\t\t\t}\n\n\t\t\tf = new BufferedInputStream(new FileInputStream(filePath));\n\t\t\tf.read(buffer);\n\t\t} catch (IOException e) {\n\t\t\tthrow new UncheckedExecutionException(e);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (f != null)\n\t\t\t\ttry {\n\t\t\t\t\tf.close();\n\t\t\t\t} catch (IOException ignored) {\n\t\t\t\t}\n\t\t}\n\t\tString contents = null;\n\t\ttry {\n\t\t\tcontents = new String(buffer, encoding);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn contents;\n\t}", "public String read(String filePath) throws IOException {\r\n\t\t//read file into stream\r\n\t\t\treturn new String(Files.readAllBytes(Paths.get(filePath)));\r\n\t}", "public String getConteudoArquivo() {\n\t\tfinal StringBuilder builder = new StringBuilder();\n\t\tFileReader leitor = null;\n\t\tBufferedReader buffer = null;\n\t\ttry {\n\n\t\t\tleitor = new FileReader(this.arquivo);\n\t\t\tbuffer = new BufferedReader(leitor);\n\n\t\t\twhile (buffer.ready()) {\n\t\t\t\tbuilder.append(buffer.readLine() + \"\\n\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalArgumentException(\"Imposivel de ler o arquivo \"\n\t\t\t\t\t+ this.arquivo.getName());\n\t\t} finally {\n\t\t\tRessourcesUtils.closeRessources(buffer);\n\t\t}\n\n\t\treturn builder.toString();\n\t}", "public String getFile() {\n \n // return it\n return theFile;\n }", "public String parse(File file);", "public String readFromFile() throws IOException {\n return br.readLine();\n }", "private static String readFile(String fileName) throws IOException {\n\t\tReader reader = new FileReader(fileName);\n\n\t\ttry {\n\t\t\t// Create a StringBuilder instance\n\t\t\tStringBuilder sb = new StringBuilder();\n\n\t\t\t// Buffer for reading\n\t\t\tchar[] buffer = new char[1024];\n\n\t\t\t// Number of read chars\n\t\t\tint k = 0;\n\n\t\t\t// Read characters and append to string builder\n\t\t\twhile ((k = reader.read(buffer)) != -1) {\n\t\t\t\tsb.append(buffer, 0, k);\n\t\t\t}\n\n\t\t\t// Return read content\n\t\t\treturn sb.toString();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\treader.close();\n\t\t\t} catch (IOException ioe) {\n\t\t\t\t// Ignore\n\t\t\t}\n\t\t}\n\t}", "private String getFileContent(){\n\t\tString employeesJsonString=\"\";\n\t\ttry {\n\t\t\tScanner sc = new Scanner(file);\n\t\t\twhile(sc.hasNextLine()){\n\t\t\t\temployeesJsonString += sc.nextLine();\n\t\t\t}\n\t\t\t\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t\tSystem.out.println(\"file error\");\n\t\t}\n\t\treturn employeesJsonString;\n\t}" ]
[ "0.8066169", "0.78610015", "0.771025", "0.75874734", "0.7504727", "0.7419556", "0.73919326", "0.7336155", "0.7303966", "0.7303157", "0.7261866", "0.7259344", "0.7213371", "0.721292", "0.7212728", "0.7179739", "0.71734536", "0.7171474", "0.712735", "0.70975727", "0.7086268", "0.70792174", "0.70648", "0.70590997", "0.70328015", "0.7011245", "0.6994265", "0.6957972", "0.6955235", "0.6955113", "0.69498694", "0.6925887", "0.6917569", "0.68803084", "0.68573797", "0.68032146", "0.67853254", "0.67827046", "0.67780566", "0.6776078", "0.67625743", "0.67517513", "0.67333174", "0.6720549", "0.6712352", "0.668946", "0.66677433", "0.6641952", "0.6624074", "0.6604948", "0.65921414", "0.658829", "0.658829", "0.658829", "0.65769106", "0.6543131", "0.6534573", "0.6533194", "0.65282726", "0.65136456", "0.6512509", "0.6505987", "0.64944464", "0.64800096", "0.64682263", "0.6460822", "0.64112496", "0.63938165", "0.6392645", "0.6391875", "0.63662577", "0.63641727", "0.634701", "0.6344853", "0.6329674", "0.63286775", "0.6328295", "0.6305417", "0.62964743", "0.6281199", "0.62765884", "0.6270701", "0.6262302", "0.6254906", "0.6251377", "0.6241897", "0.6241871", "0.6190577", "0.6187432", "0.618655", "0.61811906", "0.61776775", "0.6176229", "0.6140857", "0.6138281", "0.6128866", "0.6124159", "0.610666", "0.6100174", "0.6097822" ]
0.7794182
2
get file as input stream Returns an input stream for the file. The fileName parameters is a file in the application path. For example "/com/mypackage/myinfo.props".
public static InputStream getInputStream(String fileName) { try { InputStream in = FileUtil.class.getResourceAsStream(fileName); return in; } catch (Exception exp) { throw new RuntimeException(exp); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public InputStream getFileFromResourceAsStream(String fileName) {\n var classLoader = getClass().getClassLoader();\n var inputStream = classLoader.getResourceAsStream(fileName);\n\n // the stream holding the file content\n if (inputStream == null) {\n throw new IllegalArgumentException(\"file not found! \" + fileName);\n } else {\n return inputStream;\n }\n }", "private InputStream getFileFromResourceAsStream(String fileName) {\n ClassLoader classLoader = getClass().getClassLoader();\n InputStream inputStream = classLoader.getResourceAsStream(fileName);\n\n // the stream holding the file content\n if (inputStream == null) {\n throw new IllegalArgumentException(\"file not found! \" + fileName);\n } else {\n return inputStream;\n }\n }", "@SuppressWarnings(\"resource\")\n\tpublic static InputStream getStream(String fileName){\n\t\tInputStream fileInputStream = null;\n\t\ttry{\n\t\t\tfileInputStream = new FileInputStream(new File(fileName));\n\t\t\tLOGGER.info(\"Property File:\" + fileName);\n\t\t}catch(Exception e){\n\t\t\tLOGGER.debug(\"Attempting to grab resource as stream.\"+e.getMessage());\n\t\t}\n\n\t\t//Just in case file doesn't exist.\n\t\tif(null == fileInputStream){\t\t\t\n\t\t\tfileInputStream = PropertyUtil.class.getClassLoader().getResourceAsStream(fileName);\n\t\t\tLOGGER.info(\"Property File:\" + fileName);\n\t\t}\t\t\n\t\treturn fileInputStream;\n\t}", "private InputStream getFileFromResourceAsStream(String fileName) {\n\n // The class loader that loaded the class\n ClassLoader classLoader = getClass().getClassLoader();\n InputStream inputStream = classLoader.getResourceAsStream(fileName);\n\n // the stream holding the file content\n if (inputStream == null) {\n throw new IllegalArgumentException(\"file not found! \" + fileName);\n } else {\n return inputStream;\n }\n\n }", "public static InputStream openFileInputStream(final String fileName) throws IOException {\n\n return FileSystem.getInstance(fileName).openFileInputStream(fileName);\n }", "public static BufferedInputStream getInput(String fileName) throws IOException {\n return getInput(getPath(fileName));\n }", "private FileInputStream getStreamFromPath(Context context, String fileName) {\n ParcelFileDescriptor parcelFileDesc = null;\n FileInputStream inputStream = null;\n try {\n inputStream = new FileInputStream(new File(fileName));\n if (0 != 0) {\n try {\n parcelFileDesc.close();\n } catch (IOException e) {\n Log.e(TAG, \"parcelFileDesc error!\");\n }\n }\n } catch (FileNotFoundException e2) {\n Log.e(TAG, \"getStreamFromPath FileNotFoundException.\");\n if (0 != 0) {\n parcelFileDesc.close();\n }\n } catch (Throwable th) {\n if (0 != 0) {\n try {\n parcelFileDesc.close();\n } catch (IOException e3) {\n Log.e(TAG, \"parcelFileDesc error!\");\n }\n }\n throw th;\n }\n return inputStream;\n }", "InputStream getInputStreamForMockFile(String fileName)\n\t\t\tthrows FileNotFoundException {\n\t\tif (!hasFile(fileName)) {\n\t\t\tthrow new FileNotFoundException(\"Could not find file \\\"\" + fileName\n\t\t\t\t\t+ \"\\\" in current directory \\\"\" + this.directory.toString()\n\t\t\t\t\t+ \"\\\"\");\n\t\t}\n\n\t\tif (this.returnFailingReaders) {\n\t\t\treturn MockStringContentFactory.getFailingInputStream();\n\t\t} else {\n\t\t\tPath filePath = this.directory.resolve(fileName);\n\t\t\treturn MockStringContentFactory.newMockInputStream(files\n\t\t\t\t\t.get(filePath));\n\t\t}\n\t}", "public static InputStream openStream(String fileName) throws IOException {\r\n\t\treturn MarkLogicUtils.class.getClassLoader().getResourceAsStream(fileName);\r\n\t}", "protected abstract InputStream getInStreamImpl(String filename) throws IOException;", "public static InputStream loadFileAsStream(String fileName) throws FileNotFoundException {\n\n if (fileName == null || fileName.trim().equals(\"\")) { //$NON-NLS-1$\n throw new NullPointerException(Messages.getMessage(\"variableIsNull\", \"fileName\")); //$NON-NLS-1$ //$NON-NLS-2$\n }\n\n logger.trace(\"Searching for {} in file system.\", fileName); //$NON-NLS-1$\n\n File file = new File(fileName);\n if (file.isFile()) {\n // since file is a normal file, return it\n logger.trace(\"File {} found in file system.\", fileName); //$NON-NLS-1$\n return new FileInputStream(file);\n }\n\n // file is not a normal file, try to find it using classloaders\n Enumeration<URL> resources;\n try {\n resources = loadFileUsingClassLoaders(fileName);\n } catch (IOException e) {\n logger.error(e.getMessage(), e);\n throw new FileNotFoundException(fileName);\n }\n if (!resources.hasMoreElements()) {\n throw new FileNotFoundException(fileName);\n }\n URL url = resources.nextElement();\n try {\n return url.openStream();\n } catch (IOException e) {\n logger.error(e.getMessage(), e);\n throw new FileNotFoundException(fileName);\n }\n }", "@Override\n public InputStream openInputFile(String pathname) throws IOException {\n return new FileInputStream(pathname);\n }", "public static DataInputStream getDataInput(String fileName) throws IOException {\n return getDataInput(getPath(fileName));\n }", "@Override\n public InputStream openInternalInputFile(String pathname) throws IOException {\n return new FileInputStream(pathname);\n }", "public InputStream getStream(String base, String fileName){\n return getClass().getClassLoader().getResourceAsStream(base + fileName);\n }", "private static InputStream getInputStream(final String filename) throws IOException, FileNotFoundException {\r\n final ResourcePatternResolver applicationContext = new ClassPathXmlApplicationContext(new String[] {});\r\n final Resource[] resource = applicationContext.getResources(\"classpath*:\" + filename);\r\n if (resource.length == 0) {\r\n throw new FileNotFoundException(\"Unable to find file '\" + filename + \"' in classpath.\");\r\n }\r\n return resource[0].getInputStream();\r\n }", "public InputStream readFile( String fileName, FileType type );", "public static InputStream getInputStream(String file) throws IOException\n {\n InputStream in = null;\n if(Files.isReadable(Paths.get(file)))\n in = new FileInputStream(file);\n else\n {\n URL url = Thread.currentThread().getContextClassLoader().getResource(file);\n if(url != null)\n in = url.openStream();\n }\n if(in == null)\n throw new IOException();\n\n return in;\n }", "public final InputStream getInStream(String filename) throws IOException {\n\t\tint pos = filename.indexOf(\".bin\");\n\t\tsendMessage((pos > -1) ? filename.substring(0, pos) : filename);\n\t\treturn getInStreamImpl(filename);\n\t}", "public InputStream getInputStream() throws IOException {\n return new FileInputStream(_file);\n }", "@Override\n public InputStream readFileInternal(String _fileName) throws IOException\n { // Reads a file from the devices internal storage. Takes a filename as a parameter and throws an IOException if failed.\n return context.openFileInput(_fileName);\n }", "public MyInputStream(String fileName)\n {\n try\n {\n in = new BufferedReader\n (new FileReader(fileName));\n }\n catch (FileNotFoundException e)\n {throw new MyInputException(e.getMessage());}\n }", "public static InputStream getInputStream(String[] args) throws FileNotFoundException {\r\n if (args.length > 0 && args[0].equals(\"-f\")) {\r\n return new FileInputStream(new File(args[1]));\r\n } else {\r\n return System.in;\r\n }\r\n }", "protected abstract InputStream getFile(final String path);", "private static InputStream loadFile(String[] args) throws Exception {\n\t\tString fileName = args[1];\n\t\t\n\t\tInputStream fileStream = KMP.class.getResourceAsStream(fileName);\n\t\tif(fileStream == null) {\n\t\t\tthrow new FileNotAvailableException(\"File could not be found nor open.\");\n\t\t}\n\n\t\treturn fileStream;\n\t}", "@Override\n public InputStream readFileExternal(String _fileName) throws IOException \n { // Reads a file saved to external storage. Takes the filename as a parameter and throws an IOException if failed.\n return new FileInputStream(externalStoragePath + _fileName);\n }", "public InputStream open(File file) {\n return new FileInputStream(file);\n }", "private InputStream getInstream() {\r\n\t\tif (instream == null) try {\r\n\t\t\tinstream = new FileInputStream(file);\r\n\t\t} catch(IOException ioe) {\r\n\t\t\tthrow new RuntimeException(\"Couldn't create instream for test\", ioe);\r\n\t\t}\r\n\t\treturn instream;\r\n\t}", "public InputStream getInputStream() throws IOException {\r\n return mFile.getInputStream();\r\n }", "public FileInputStream openFileInput(final String path)\n throws java.io.FileNotFoundException {\n return GDFileSystem.openFileInput(path);\n }", "private static Optional<InputStream> openFile(Path name) {\n try {\n return Optional.of(Files.newInputStream(name, StandardOpenOption.READ));\n } catch (IOException e) {\n System.err.printf(\"Unable to open file %s for reading: %s\\n\", name, e.toString());\n }\n\n return Optional.empty();\n }", "public File getFile(final String fileName) {\r\n return IOUtil.getFile(fileName, getClass());\r\n }", "public FileInputStream getFileInputStream(){\n\t\t//String filePath=System.getProperty((\"user.dir\")+\"\\\\src\\\\test\\\\java\\\\data\\\\userData.xlsx\");\n\t\tString filePath=System.getProperty(\"user.dir\")+\"/src/test/java/data/userData.xlsx\";\n\t\t//String filePath=System.getProperty((\"user.dir\")+\"src/test/java/data/userData.xlsx\");\n\t\tFile srcFile=new File(filePath);\n\t\ttry {\n\t\t\tfis=new FileInputStream(srcFile);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Test Data file not found.terminating process!! :Check file path of test data file\");\n\t\t}\n\n\t\treturn fis;\n\t}", "public static InputStream asStream(String name) throws IOException {\n ClassLoader classLoader = Reflection.getCallerClass(3).getClassLoader();\n return asStream(name, classLoader);\n }", "RandomAccessFile openInputFile(String fileName) {\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"fileName = \" + fileName);\n RandomAccessFile file = null;\n try {\n file = new RandomAccessFile(fileName, \"r\");\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"success: file opened for read\");\n } catch (Exception e) {\n ec.processError(e, thisClass, \"openInputFile\", \"\");\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"error: file opened for read\");\n } // try-catch\n return file;\n }", "public InputStream openInputStream(String path) throws SystemException;", "public static InputStream getInputStreamFromFile(File file)\n\t\t\tthrows IOException {\n\t\treturn new FileInputStream(file);\n\t}", "InputStream getInputStream() throws FileSystemException;", "private static InputStream getStream(String inResName) {\n\n ClassLoader loader = Thread.currentThread().getContextClassLoader();\n InputStream is = loader.getResourceAsStream(inResName);\n if (is == null) {\n log.error(\"Resource '\" + inResName + \"' not found in classpath\");\n }\n return is;\n\n }", "private File getFile(String fileName) {\n\t\tClassLoader classLoader = getClass().getClassLoader();\n\t\tFile file = new File(classLoader.getResource(fileName).getFile());\n\t\treturn file;\n\t}", "public synchronized InputStream getInputStream(String hash) throws IOException {\n\t\tif (null == hash) {\n\t\t\treturn null;\n\t\t}\n\t\t// RkLog.i(\"getInputStream\",\n\t\t// \"target file exist-->\"+getFile(hash).exists());\n\n\t\tInputStream is = new FileInputStream(getFile(hash));\n\n\t\treturn is;\n\t}", "public InputStream getInputStream()\n/* */ {\n/* 105 */ InputStream in = ResourceUtils.getResourceAsStream(this, this);\n/* */ \n/* 107 */ return in;\n/* */ }", "protected InputStream getInputStream() throws IOException\n\t {\n\t FileInputStream fin = new FileInputStream(fFilename);\n\t BufferedInputStream bin = new BufferedInputStream(fin);\n\t return bin;\n\t }", "public static File getFile(String fileName){\n \tString basedir = System.getProperty(\"user.dir\");\n \tString dir = basedir+\"/src/test/resources/\" + fileName;\n \treturn new File(dir);\n }", "public static InputStream createInputStream(String filename) throws FileReadingException {\n File file = new File(filename);\n if (!file.exists()) {\n throw new FileReadingException(\"File Not Found: \" + filename + \"\\n\");\n }\n if (!file.isFile()) {\n throw new FileReadingException(filename + \" is not a file.\\n\");\n }\n if (!file.canRead()) {\n throw new FileReadingException(\"Reading file \" + filename + \" is not permitted.\\n\");\n }\n\n try {\n return new FileInputStream(file);\n } catch (FileNotFoundException e) {\n throw new FileReadingException(\"File Not Found: \" + filename + \"\\n\");\n }\n }", "public InputStream getInputStream();", "public InputStream getInputStream();", "@Override\n public InputStream getInputStream(String templateName) throws IOException {\n if (templateName.contains(\"..\")) {\n throw new RuntimeException(\"templateName must not contain '..' characters\");\n }\n String templateFile = WELL_KNOWN_CONTAINER + \"/\" + templateName.replaceAll(\"^/+\", \"\"); // remove heading separator\n log.trace(\"locating template file: \" + templateFile + \"; requested template name: \" + templateName);\n try {\n Resource res = StaticResourceServlet.StaticResourceProvider.getInstance().getResource(getServletContext(), templateFile);\n if (res.notFound()) {\n throw new IOException(\"Template file not found: \" + templateName);\n }\n return new ByteArrayInputStream(res.getData());\n } catch (Exception e) {\n throw new IOException(\"Failed open template: \" + templateName, e);\n }\n }", "@NonNull\n public static File getFile(@NonNull Context context, @NonNull String fileName) {\n return new File(context.getFilesDir(), fileName);\n }", "public static Object getObjFromInternalFile(Context context, String fileName) {\n\t\ttry {\n\t\t\tInputStream fis = context.openFileInput(fileName);\n\t\t\tObjectInputStream is = new ObjectInputStream(fis);\n\t\t\tObject result = is.readObject();\n\t\t\tis.close();\n\t\t\treturn result;\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public static InputStream getStream(String fileOrResourceName) {\n\t\t/*\n\t\t * in production, it is a resource, and hence we try that first\n\t\t */\n\t\tInputStream stream = IoUtil.class.getClassLoader().getResourceAsStream(fileOrResourceName);\n\t\tif (stream != null) {\n\t\t\treturn stream;\n\t\t}\n\t\tFile file = new File(fileOrResourceName);\n\t\tif (file.exists()) {\n\t\t\ttry {\n\t\t\t\treturn new FileInputStream(file);\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.error(\n\t\t\t\t\t\t\"Resource {} is intepreted as a file that was located on the file system, but error while creating stream from that file. Error: {}\",\n\t\t\t\t\t\tfileOrResourceName, e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public synchronized InputStream getApplicationInputStream(String appName) {\n try {\n File appFile = appFile(appName, appName + OAR);\n if (!appFile.exists()) {\n appFile = appFile(appName, appName + JAR);\n }\n return new FileInputStream(appFile.exists() ? appFile : appFile(appName, APP_XML));\n } catch (FileNotFoundException e) {\n throw new ApplicationException(\"Application \" + appName + \" not found\");\n }\n }", "InputStream getInputStream(String path) throws CruiseControlException;", "InputStream getInputStream() {\r\n\r\n\t\tif (inputStream != null) {\r\n\t\t\treturn inputStream;\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\treturn new FileInputStream(path);\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\tthrow new RuntimeException(\"Configuration file could not be loaded from \" + getPath());\r\n\t\t\t} // catch\r\n\t\t} // else\r\n\t}", "@Override\n public InputStream openStream() throws IOException\n {\n return new FileInputStream(temp);\n }", "public InputStream getInputStream()\n throws ProcessingException, IOException {\n try {\n return this.source.getInputStream();\n } catch (SourceException e) {\n throw SourceUtil.handle(e);\n }\n }", "@Override\n\tpublic InputStream getResourceAsStream(String name) {\n\t\tlog.debug(\"getResourceAsStream({})\", name);\n\t\tbyte[] bytes = resources.get(name);\n\t\t\n\t\tif (bytes != null) {\n\t\t\treturn new ByteArrayInputStream(bytes);\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public static FileInputStream readFile(String aFileName) throws FileNotFoundException {\n File file = new File(aFileName);\n return new FileInputStream(file);\n }", "public InputStream open() {\n return demoResourceLoader.getResourceAsStream(\n MessageFormat.format(\"{0}/{1}.groovy\",\n scenario.getName().toLowerCase(), name));\n }", "@Override\n public InputStream open() throws IOException {\n return getClass().getClassLoader().getResourceAsStream(name);\n }", "public static File getFile(Context context, String fileName) {\n return new File(context.getFilesDir(), fileName);\n }", "public abstract InputStream getInputStream();", "public abstract InputStream getInputStream();", "private File getFile(String fileName, HttpServletRequest request){\n\t\tString fileSite = request.getSession().getServletContext().getRealPath(\"resources/upload\"); // 배포폴더\n\t\treturn new File(fileSite, fileName);\n\t}", "Stream<In> getInputStream();", "@Override\n public InputStream findResource(String filename)\n {\n InputStream resource = null;\n try\n {\n Path scriptRootPath = Files.createDirectories(getScriptRootPath(side));\n Path scriptPath = scriptRootPath.resolve(filename).toAbsolutePath();\n resource = Files.newInputStream(scriptPath, StandardOpenOption.READ);\n } catch (IOException e)\n {\n resource = super.findResource(filename);\n }\n return resource;\n }", "public static BufferedInputStream getInput(File file) throws IOException {\n return getInput(file.toPath());\n }", "public static String getFileFromAssets(Context context, String fileName) {\n if (context == null || fileName == null || fileName.isEmpty()) {\n return null;\n }\n\n StringBuilder s = new StringBuilder(\"\");\n try {\n InputStreamReader in = new InputStreamReader(context.getResources().getAssets().open(fileName));\n BufferedReader br = new BufferedReader(in);\n String line;\n while ((line = br.readLine()) != null) {\n s.append(line);\n }\n return s.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }", "public InputStream openStream(String str) {\n try {\n return new FileInputStream(str);\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n }\n }", "@NotNull InputStream openInputStream() throws IOException;", "public InputStream getInputStream() throws IOException {\r\n if (!connected)\r\n connect();\r\n\r\n return zipFile.getInputStream(zipEntry);\r\n }", "protected final ByteSource getInput(String name) {\n try {\n if (name.equals(\"-\")) {\n return new StandardInputSource();\n } else {\n File file = new File(name);\n if (!file.exists()) {\n throw new FileNotFoundException(name);\n } else if (file.isDirectory()) {\n throw new IOException(name); // TODO Message? Exception?\n } else if (!file.canRead()) {\n throw new IOException(name); // TODO Message? Exception?\n } else {\n return Files.asByteSource(file);\n }\n }\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }", "public InputStream getInputStream() throws IOException {\n return this.mContext.getAssets().open(this.mAssetName);\n }", "private StreamSource getFileSource(final File requestedFile) {\n StreamSource fileSource = new StreamSource() {\n private static final long serialVersionUID = 3275933556191707490L;\n public InputStream getStream() {\n try {\n return new org.xtreemfs.portlet.util.BufferedFileInputStream(requestedFile);\n } catch (IOException e) {\n showNotification(\"Error\", e.getMessage(), Notification.TYPE_ERROR_MESSAGE, e);\n }\n return null;\n }\n };\n return fileSource;\n }", "String Reader(String FileName, Context context){\n FileInputStream inputStream = null;\n String Text = \"\";\n StringBuilder sb = null;\n try{\n //inputStream = context.openFileInput(FileName);\n inputStream = new FileInputStream(new File(FileName));\n InputStreamReader reader = new InputStreamReader(inputStream);\n BufferedReader buffRead = new BufferedReader(reader);\n sb = new StringBuilder();\n\n while ((Text = buffRead.readLine())!= null){\n sb.append(Text);\n sb.append(\"\\n\");\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return sb.toString();\n }", "private InputStream openContentStream(String selectedTableName, String fileName, Template template) {\n\t\t\n\t\tProjectUtils projectUtils = new ProjectUtils();\n\t\tIProject proj = projectUtils.getProject(selection);\n\t\t\n\t\t\n\t\tUtils utils = new Utils();\n\t\t\n\t\tutils.getSourceFolder(proj);\n\t\t\n\t\t\n\t\t\n Map<String, Object> mapRoot = new HashMap<String, Object>();\n mapRoot.put(\"package\", \"br.pacote.kkk\");\n mapRoot.put(\"classname\", fileName);\n mapRoot.put(\"tablename\", selectedTableName.substring(0, 1).toUpperCase() + selectedTableName.substring(1).toLowerCase());\n \n \n\t\t\n\t\t\n\t\tParseTemplate parseTemplate = new ParseTemplate();\n\t\tString sourceCode = null;\n\t\ttry {\n\t\t\tsourceCode = parseTemplate.loadTemplateFromFile(utils.PluginPath()+\"/templates\", template.getTemplatefile(), mapRoot);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn new ByteArrayInputStream(sourceCode.getBytes());\n\t}", "public GridFSInputFile createFile(InputStream in, String filename) {\n\treturn new GridFSInputFile(this, in, filename);\n }", "protected abstract InputStream getStream(String resource);", "public static InputStream openResourceStream(String resourceName) {\n InputStream stream = null;\n ClassLoader classLoader = Utils.class.getClassLoader();\n if (classLoader != null) {\n stream = classLoader.getResourceAsStream(resourceName);\n }\n\n if (stream == null) {\n stream = ClassLoader.getSystemResourceAsStream(resourceName);\n }\n return stream;\n }", "public static Stream<String> createStreamFromPath(String pathOrFileName) throws IOException {\n logger.info(\"creating a file object with path or file name : \" + pathOrFileName);\n return Files.lines(Paths.get(pathOrFileName), StandardCharsets.ISO_8859_1);\n }", "public final SMBInputStream asInputStream()\n\t\tthrows SMBException {\n\n\t\t// Check if the file is a directory\n\n\t\tif ( isDirectory())\n\t\t\tthrow new SMBException(SMBStatus.DOSInvalidFunc, SMBStatus.ErrDos);\n\n\t\t// Create the input stream\n\n\t\treturn new SMBInputStream(this);\n\t}", "void openInput(String file)\r\n\t{\n\t\ttry{\r\n\t\t\tfstream = new FileInputStream(file);\r\n\t\t\tin = new DataInputStream(fstream);\r\n\t\t\tis = new BufferedReader(new InputStreamReader(in));\r\n\t\t}catch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.err.println(e);\r\n\t\t}\r\n\r\n\t}", "public GridFSInputFile createFile(InputStream in) {\n\treturn createFile(in, null);\n }", "protected InputStream openFileStream(ResourceType type, String path) {\n // Create full path\n String fullPath = type.makePath(path);\n\n // Check overrided\n if (!ResourceOverrides.isResourceOverrided(fullPath)) {\n // =null: failed to load resource pack file\n this.handleLoad(true, false);\n if (this.archive != null) {\n try {\n InputStream stream = this.archive.openFileStream(fullPath);\n if (stream == null) {\n stream = this.archive.openFileStream(fullPath.toLowerCase(Locale.ENGLISH));\n }\n if (stream != null) {\n return stream;\n }\n } catch (IOException ex) {\n }\n }\n\n // Fallback: try the underlying resource pack (usually Vanilla)\n if (this.baseResourcePack != null) {\n InputStream stream = this.baseResourcePack.openFileStream(type, path);\n if (stream != null) {\n return stream;\n }\n }\n\n // Fallback: ask provider (if available)\n if (this.currProvider != null) {\n try {\n return this.currProvider.openResource(type, path);\n } catch (IOException ex) {\n }\n }\n }\n\n // Fallback: load from BKCommonLib built-in resources\n // This handles many block models such as signs\n InputStream bkc_stream = Common.class.getResourceAsStream(type.makeBKCPath(path));\n if (bkc_stream != null) {\n return bkc_stream;\n }\n\n // FAILED\n return null;\n }", "public InputStream getIn() {\n\t\treturn proc.getInputStream();\n\t}", "InputStream getInputStream() throws IOException;", "InputStream getInputStream() throws IOException;", "InputStream getInputStream() throws IOException;", "public Resource loadFileAsResource(String fileName) {\n try {\n Path filePath = this.fileStorageLocation.resolve(fileName).normalize();\n Resource resource = new UrlResource(filePath.toUri());\n if(resource.exists()) {\n return resource;\n } else {\n throw new HubFileNotFoundException(\"File not found \" + fileName);\n }\n } catch (MalformedURLException ex) {\n throw new HubFileNotFoundException(\"File not found \" + fileName, ex);\n }\n }", "@Override\n public InputStream getInputStream() throws IOException\n {\n/**/\n/**/\n/**/\n if (Files.isDirectory(path))\n throw new IOException(path + \" is a directory\");\n\n return Files.newInputStream(path,StandardOpenOption.READ);\n }", "public File asFile(String fileName) {\n File file = new File(fileName);\n try (FileOutputStream bos = new FileOutputStream(file)) {\n bos.write(data);\n } catch (IOException e) {\n throw new RuntimeException(\"unexpected error\", e);\n }\n return file;\n }", "public static BufferedInputStream getInput(Path path) throws IOException {\n return get(Files.newInputStream(path));\n }", "private static InputStream getResourceAsStream(final String filename) throws IOException {\n\t\t// Try to load resource from jar\n\t\tInputStream stream = TextureLoader.class.getResourceAsStream(filename);\n\t\t// If not found in jar, then load from disk\n\t\tif (stream == null) {\n\t\t\treturn new BufferedInputStream( new FileInputStream(filename) );\n\t\t} else {\n\t\t\treturn stream;\n\t\t}\n\t}", "@Override\n public StorageInputStream open(File file) throws FileNotFoundException {\n\treturn null;\n }", "public InputStream getInputStream() throws IOException;", "public InputStream getInputStream() throws IOException;", "public static void reading(String fileName)\n {\n\n }", "public void start(InputStream in, String path);", "public static FileInputStream getMavenRessourcesInputStream(Object object, String filename)\r\n {\r\n\treturn FilesURLs.getRessourcesFileInputStream(object, MAVEN_RESSOURCES, filename);\r\n }", "public InputStream openStream(String str) {\n return Thread.currentThread().getContextClassLoader().getResourceAsStream(str);\n }" ]
[ "0.73885167", "0.72826236", "0.72473454", "0.7240342", "0.71599966", "0.71435696", "0.6972959", "0.69409835", "0.68377125", "0.6757108", "0.66347253", "0.6584847", "0.6537337", "0.64706403", "0.64607215", "0.6426785", "0.63766325", "0.6296172", "0.6274001", "0.6236181", "0.6210379", "0.61429536", "0.60983306", "0.6055953", "0.602198", "0.60131794", "0.60016286", "0.59969014", "0.58909917", "0.5857178", "0.5851509", "0.5840274", "0.58112127", "0.57846385", "0.577993", "0.57743347", "0.57526505", "0.57495683", "0.5747379", "0.5735187", "0.5714259", "0.56864065", "0.56805134", "0.567723", "0.5659224", "0.5645786", "0.5645786", "0.56457573", "0.5634757", "0.5621908", "0.56058806", "0.558404", "0.5572774", "0.55714464", "0.5509743", "0.55085754", "0.5495979", "0.54895395", "0.5482085", "0.54699993", "0.54658943", "0.5448582", "0.5448582", "0.5435415", "0.54326284", "0.54290605", "0.538789", "0.5372333", "0.53717685", "0.53675026", "0.5365221", "0.53538936", "0.53397214", "0.53339386", "0.5324296", "0.53213215", "0.5315024", "0.53055346", "0.5300191", "0.52978665", "0.52884394", "0.52882785", "0.52724975", "0.5264454", "0.526104", "0.52551967", "0.52551967", "0.52551967", "0.5240904", "0.52161163", "0.52139276", "0.52116024", "0.52056164", "0.51893497", "0.518886", "0.518886", "0.5180879", "0.5180464", "0.5172859", "0.5171306" ]
0.7289989
1
Method that returns the first n rows of a file as a string.
public static String head(File file, Integer n) { try { InputStream is = new FileInputStream(file); return head(is, n); } catch (Exception exp) { throw new RuntimeException(exp); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String firstRow(String filePath) {\n\t\tString firstRow = new String();\n\t\ttry { // to catch IOException from readLine\n\t\t\tBufferedReader input = new BufferedReader(new FileReader(filePath));\n\t\t\tfirstRow = input.readLine();\n\t\t} catch (IOException e) {\n\t\t\tMain.debug.LOGWarning(e.toString());\n\t\t}\n\t\t\n\t\treturn firstRow;\n\t\t// 15 Feb 2018 06:33:12,083 22966346 [GxFileTransferThread - Thread 0]...\n\t}", "String getRows(int index);", "public static String allRows(String filePath) {\n\t\tArrayList<String> allRows = new ArrayList<String>();\n\t\ttry { // to catch IOException from read\n\t\t\tBufferedReader input = new BufferedReader(new FileReader(filePath));\n\t\t\tfor (int i = 0; i < LineCount.lineCount(filePath); i++) {\n\t\t\t\tallRows.add(input.readLine());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tMain.debug.LOGWarning(e.toString());\n\t\t}\n\t\t\n\t\treturn allRows.toString();\n\t}", "public String readLine(int i) {\n\t\tString line = new String(\"\");\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader b = new BufferedReader(fr);\n\t\t\tboolean eof = false;\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (eof) {\n\t\t\t\t\tthrow new IllegalArgumentException(\"Line \" + i +\n\t\t\t\t\t\t\" is not found in the file \" +\n\t\t\t\t\t\tfile.getName() + \".\");\n\t\t\t\t}\n\t\t\t\tb.readLine();\n\t\t\t\tif (line == null) {\n\t\t\t\t\teof = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tline = b.readLine();\n\t\t\tb.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalArgumentException(\"File \" + file.getName() +\n\t\t\t\t\" is unreadable : \" + e.toString());\n\t\t}\n\t\treturn line;\n\t}", "private static String readFileToString(String filePath) throws IOException {\n\t\tStringBuilder fileData = new StringBuilder(1000);\n\t\tBufferedReader reader = new BufferedReader(new FileReader(filePath));\n\t\tchar[] buf = new char[10];\n\t\tint numRead = 0;\n\t\twhile ((numRead = reader.read(buf)) != -1) {\n\t\t\tString readData = String.valueOf(buf, 0, numRead);\n\t\t\tfileData.append(readData);\n\t\t\tbuf = new char[1024];\n\t\t}\n\t\treader.close();\n\t\treturn fileData.toString();\t\n\t}", "public String readLines() {\n\n String fileAsString;\n fileAsString = read();\n StringBuilder newString = new StringBuilder();\n if (fileAsString != null) {\n if (fromLine == toLine) {\n\n newString = new StringBuilder(fileAsString.split(\"\\n\")[fromLine - 1]);\n return newString.toString();\n } else {\n if (toLine > fileAsString.split(\"\\n\").length) {\n toLine = fileAsString.split(\"\\n\").length;\n }\n ;\n for (int i = fromLine - 1; i < toLine; i++) {\n\n newString.append(fileAsString.split(\"\\n\")[i]).append(\"\\n\");\n\n\n }\n }\n\n }\n\n\n return newString.toString();\n }", "public final String getStringFromFile(final int length) throws IOException {\r\n\r\n if (length <= 0) {\r\n return new String(\"\");\r\n }\r\n\r\n byte[] b = new byte[length];\r\n raFile.readFully(b);\r\n final String s = new String(b);\r\n b = null;\r\n return s;\r\n }", "public String fileView(RandomAccessFile file){\n StringBuilder out = new StringBuilder(\"\");\n try{\n file.seek(0);\n while(true){\n out.append(file.readInt() + \"\\n\");\n }\n }catch (IOException e){\n\n }\n return out.toString();\n }", "private String readFully(String filename) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new FileReader(filename));\n\t\tStringBuilder buf=new StringBuilder();\n\t\tchar[] data=new char[8192];\n\t\tint num=reader.read(data);\n\t\twhile(num>-1){\n\t\t\tbuf.append(data,0,num);\n\t\t\tnum=reader.read(data);\n\t\t}\n\t\treturn buf.toString();\n\t}", "private static String readFileContents(File file) throws FileNotFoundException {\n StringBuilder fileContents = new StringBuilder((int) file.length());\n\n try (Scanner scanner = new Scanner(file)) {\n while (scanner.hasNext()) {\n fileContents.append(scanner.next());\n }\n return fileContents.toString();\n }\n }", "public String readLine() {\n BufferedReader input;\n String str = null;\n \n if (file == null || line < 0) {\n return null;\n }\n try {\n input = new BufferedReader(new FileReader(file));\n for (int i = 0; i < line; i++) {\n str = input.readLine();\n }\n input.close();\n } catch (IOException e) {\n return null;\n }\n return str;\n }", "public String read() {\n\t\tStringBuffer text = new StringBuffer((int)file.length());\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader b = new BufferedReader(fr);\n\t\t\tboolean eof = false;\n\t\t\tString line;\n\t\t\tString ret = \"\\n\";\n\t\t\twhile (!eof) {\n\t\t\t\tline = b.readLine();\n\t\t\t\tif (line == null) {\n\t\t\t\t\teof = true;\n\t\t\t\t} else {\n\t\t\t\t\ttext.append(line);\n\t\t\t\t\ttext.append(ret);\n\t\t\t\t}\n\t\t\t}\n\t\t\tb.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalArgumentException(\"File \" + file.getName() +\n\t\t\t\t\" is unreadable : \" + e.toString());\n\t\t}\n\t\treturn text.toString();\n\t}", "public String getFirst(int n) {\n return \"\";\n }", "public abstract String getFirstLine();", "public static String read(String filename) throws IOException {\n // Reading input by lines:\n BufferedReader in = new BufferedReader(new FileReader(filename));\n// BufferedInputStream in2 = new BufferedInputStream(new FileInputStream(filename));\n String s;\n int s2;\n StringBuilder sb = new StringBuilder();\n while((s = in.readLine())!= null)\n sb.append( s + \"\\n\");\n// sb.append((char) s2);\n in.close();\n return sb.toString();\n }", "private String getStringFromFile() throws FileNotFoundException {\n String contents;\n FileInputStream fis = new FileInputStream(f);\n StringBuilder stringBuilder = new StringBuilder();\n try {\n InputStreamReader inputStreamReader = new InputStreamReader(fis, \"UTF-8\");\n BufferedReader reader = new BufferedReader(inputStreamReader);\n String line = reader.readLine();\n while (line != null) {\n stringBuilder.append(line).append('\\n');\n line = reader.readLine();\n }\n } catch (IOException e) {\n // Error occurred when opening raw file for reading.\n } finally {\n contents = stringBuilder.toString();\n }\n return contents;\n }", "public String readFile(){\r\n StringBuffer str = new StringBuffer(); //StringBuffer is a mutable string\r\n Charset charset = Charset.forName(\"UTF-8\"); //UTF-8 character encoding\r\n Path file = Paths.get(filename + \".txt\");\r\n try (BufferedReader reader = Files.newBufferedReader(file, charset)) { // Buffer: a memory area that buffered streams read\r\n String line = null;\r\n while ((line = reader.readLine()) != null) { //Readers and writers are on top of streams and converts bytes to characters and back, using a character encoding\r\n str.append(line + \"\\n\");\r\n }\r\n }\r\n catch (IOException x) {\r\n System.err.format(\"IOException: %s%n\", x);\r\n }\r\n return str.toString();\r\n }", "public static String randomAccessRead() {\n String s = \"\";\n try {\n RandomAccessFile f = new RandomAccessFile(FILES_TEST_PATH, \"r\");\n f.skipBytes(14);\n s = f.readLine();\n f.close();\n } catch(Exception e) {\n e.printStackTrace();\n }\n return s;\n }", "public String getRows(int index) {\n return rows_.get(index);\n }", "public static String getAllLinesButFirst(File file) {\n StringBuilder out = new StringBuilder();\n try {\n Scanner myReader = new Scanner(file);\n myReader.nextLine(); //skipping first line\n while (myReader.hasNextLine()) {\n out.append(myReader.nextLine());\n }\n myReader.close();\n } catch (FileNotFoundException e) {\n ZmdbLogger.log(\"An error occurred while reading file \" + file + \".\");\n e.printStackTrace();\n }\n\n return out.toString();\n }", "public String readMultipleFromFiles()\n {\n String result = \"\";\n try\n {\n FileReader fileReader = new FileReader(filename);\n try\n {\n StringBuffer stringBuffer = new StringBuffer();\n Scanner scanner = new Scanner(fileReader);\n while (scanner.hasNextLine())\n {\n stringBuffer.append(scanner.nextLine()).append(\"\\n\");\n }\n stringBuffer.delete(stringBuffer.length() - 1, stringBuffer.length());\n result = stringBuffer.toString();\n } finally\n {\n fileReader.close();\n }\n } catch (FileNotFoundException e)\n {\n System.out.println(\"There is no such file called \" + filename);\n } catch (IOException e)\n {\n System.out.println(\"read \" + filename + \" error!!!\");\n } catch (NumberFormatException e)\n {\n System.out.println(\"content in file \" + filename + \" is error\");\n }\n return result;\n }", "protected String openReadFile(Path filePath) throws IOException{\n\t\tString line;\n\t\tStringBuilder sb = new StringBuilder();\n\t\t// Read the document\n\t\tBufferedReader reader = Files.newBufferedReader(filePath, ENCODING);\n\t\t// Append each line in the document to our string\n\t\twhile ((line = reader.readLine()) != null) {\n\t\t\tsb.append(line);\n\t\t\tsb.append(\"\\n\"); // readLine discards new-row characters, re-append them.\n\t\t}\n\t\tif(sb.length() != 0){\n\t\t\tsb.deleteCharAt(sb.length()-1); // However last line doesn't contain one, remove it.\n\t\t}\n\t\treader.close();\n\t\treturn new String(sb.toString());\n\t}", "public static String readFile(String filePath) throws java.io.IOException {\r\n\t\tStringBuffer fileData = new StringBuffer(1000);\r\n\t\tBufferedReader reader = new BufferedReader(new FileReader(filePath));\r\n\t\tchar[] buf = new char[1024];\r\n\t\tint numRead = 0;\r\n\t\twhile ((numRead = reader.read(buf)) != -1) {\r\n\t\t\tString readData = String.valueOf(buf, 0, numRead);\r\n\t\t\tfileData.append(readData);\r\n\t\t\tbuf = new char[1024];\r\n\t\t}\r\n\t\treader.close();\r\n\t\treturn fileData.toString();\r\n\t}", "public String readLine(int index, String filePath){\n String lineData = \"\";\n try{\n File myFile = new File(filePath);\n Scanner myReader = new Scanner(myFile);\n for(int i = 0; i < index; i++){\n myReader.nextLine();\n }\n lineData = myReader.nextLine();\n myReader.close();\n } catch(FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n return lineData;\n }", "public static String loadFileAsString(String filePath) throws java.io.IOException{\n\t StringBuffer fileData = new StringBuffer(1000);\n\t BufferedReader reader = new BufferedReader(new FileReader(filePath));\n\t char[] buf = new char[1024];\n\t int numRead=0;\n\t while((numRead=reader.read(buf)) != -1){\n\t String readData = String.valueOf(buf, 0, numRead);\n\t fileData.append(readData);\n\t }\n\t reader.close();\n\t return fileData.toString();\n\t}", "public String getRows(int index) {\n return rows_.get(index);\n }", "static int[] getFirstResultString(int[] array){\n int from = (n * (lineNumber-1));\n int[] rezultColumn = Arrays.copyOfRange(array, from, from + n);\n return rezultColumn;\n }", "String getFirst(int n);", "public String getFirst(int n) {\n if (n > 0) {\n return this.first.concat(this.rest.getFirst(n - 1)); \n }\n \n else {\n return \"\"; \n }\n }", "@SuppressWarnings(\"unused\")\n private String readFile(File f) throws IOException {\n BufferedReader reader = new BufferedReader(new FileReader(f));\n String line = reader.readLine();\n StringBuilder builder = new StringBuilder();\n while (line != null) {\n builder.append(line).append('\\n');\n line = reader.readLine();\n }\n reader.close();\n return builder.toString();\n }", "public static String readFileToString (File file) {\n try {\n final var END_OF_FILE = \"\\\\z\";\n var input = new Scanner(file);\n input.useDelimiter(END_OF_FILE);\n var result = input.next();\n input.close();\n return result;\n }\n catch(IOException e){\n return \"\";\n }\n }", "public static String getStringFromFile(String filename) {\r\n BufferedReader br = null;\r\n StringBuilder sb = new StringBuilder();\r\n try {\r\n br = new BufferedReader(new FileReader(filename));\r\n try {\r\n String s;\r\n while ((s = br.readLine()) != null) {\r\n sb.append(s);\r\n sb.append(\"\\n\");\r\n }\r\n } finally {\r\n br.close();\r\n }\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n\r\n return sb.toString();\r\n }", "static public String getContents(File aFile) {\n\t\tStringBuilder contents = new StringBuilder();\r\n\r\n\t\ttry {\r\n\t\t\t// use buffering, reading one line at a time\r\n\t\t\t// FileReader always assumes default encoding is OK!\r\n\t\t\tBufferedReader input = new BufferedReader(new FileReader(aFile));\r\n\t\t\ttry {\r\n\t\t\t\tString line = null; // not declared within while loop\r\n\t\t\t\t/*\r\n\t\t\t\t * readLine is a bit quirky : it returns the content of a line\r\n\t\t\t\t * MINUS the newline. it returns null only for the END of the\r\n\t\t\t\t * stream. it returns an empty String if two newlines appear in\r\n\t\t\t\t * a row.\r\n\t\t\t\t */\r\n\t\t\t\twhile ((line = input.readLine()) != null) {\r\n\t\t\t\t\tcontents.append(line);\r\n\t\t\t\t\tcontents.append(System.getProperty(\"line.separator\"));\r\n\t\t\t\t}\r\n\t\t\t} finally {\r\n\t\t\t\tinput.close();\r\n\t\t\t}\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn contents.toString();\r\n\t}", "public static String readFileAsString(String filePath) {\n\t\tbyte[] buffer = new byte[(int) new File(filePath).length()];\n\t\tBufferedInputStream f = null;\n\t\ttry {\n\t\t\tFile file = new File(filePath);\n\t\t\tfor (int attempt = 0; attempt < 3; attempt++) {\n\t\t\t\tif (file.exists()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tThread.sleep(2);\n\t\t\t}\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tSystem.err.println(\"\\nfile not found: \" + filePath);\n\t\t\t\tthrow new FileNotFoundException(\"Could not find file: \" + filePath);\n\t\t\t}\n\n\t\t\tf = new BufferedInputStream(new FileInputStream(filePath));\n\t\t\tf.read(buffer);\n\t\t} catch (IOException e) {\n\t\t\tthrow new UncheckedExecutionException(e);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (f != null)\n\t\t\t\ttry {\n\t\t\t\t\tf.close();\n\t\t\t\t} catch (IOException ignored) {\n\t\t\t\t}\n\t\t}\n\t\treturn new String(buffer);\n\t}", "public String readLine() throws IOException {\n/* 176 */ String line = this.currentFilePart.readLine();\n/* 177 */ while (line == null) {\n/* 178 */ this.currentFilePart = this.currentFilePart.rollOver();\n/* 179 */ if (this.currentFilePart != null) {\n/* 180 */ line = this.currentFilePart.readLine();\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 188 */ if (\"\".equals(line) && !this.trailingNewlineOfFileSkipped) {\n/* 189 */ this.trailingNewlineOfFileSkipped = true;\n/* 190 */ line = readLine();\n/* */ } \n/* */ \n/* 193 */ return line;\n/* */ }", "public String readFileBufferedReader() {\n String result = \"\";\n BufferedReader in = null;\n try {\n in = new BufferedReader(new FileReader(new File(ALICE_PATH)));\n\n for (String x = in.readLine(); x != null; x = in.readLine()) {\n result = result + x + '\\n';\n }\n\n } catch (IOException e) {\n }\n\n if(in != null)try {\n in.close();\n } catch (IOException e) {\n }\n\n return result;\n }", "private String readFile() {\n try {\n BufferedReader in = new BufferedReader(new FileReader(\"C:\\\\Users\"\n + \"\\\\MohammadLoqman\\\\cs61b\\\\sp19-s1547\"\n + \"\\\\proj3\\\\byow\\\\Core\\\\previousGame.txt\"));\n StringBuilder sb = new StringBuilder();\n String toLoad;\n try {\n toLoad = in.readLine();\n while (toLoad != null) {\n sb.append(toLoad);\n sb.append(System.lineSeparator());\n toLoad = in.readLine();\n }\n String everything = sb.toString();\n return everything;\n } catch (IOException E) {\n System.out.println(\"do nothin\");\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"file not found\");\n }\n return null;\n\n }", "public String FetchDataFromFile(File file) {\r\n\t\tStringBuilder sb=new StringBuilder();\r\n\t\ttry {\r\n\t\t\tScanner sc=new Scanner(file);\r\n\t\t\twhile(sc.hasNextLine()){\r\n\t\t\t\tsb.append(sc.nextLine());\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "private StringBuffer readFileStart(Reader pReader, int pMinimumLength) {\n\t\tBufferedReader in = null;\n\t\tStringBuffer buffer = new StringBuffer();\n\t\ttry {\n\t\t\t// get the file start into the memory:\n\t\t\tin = new BufferedReader(pReader);\n\t\t\tString str;\n\t\t\twhile ((str = in.readLine()) != null) {\n\t\t\t\tbuffer.append(str);\n\t\t\t\tif (buffer.length() >= pMinimumLength)\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (Exception e) {\n\t\t\tfreemind.main.Resources.getInstance().logException(e);\n\t\t\treturn new StringBuffer();\n\t\t}\n\t\treturn buffer;\n\t}", "public String readFileIntoString(String sourceFilepath) throws IOException {\n StringBuilder sb = new StringBuilder();\n URL url = new URL(sourceFilepath);\n BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));\n String line = null;\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n reader.close();\n return sb.toString();\n }", "public static void read_Top_N_line(String inputFile, String outputFile, int N){\n\t\tSystem.out.println(\"readTopNline.1\");\n\t\ttry{\n\t\t\t//FileWriter writer = new FileWriter(outputFile);\n\t\t\tString line=\"\";\n\t\t\tSystem.out.println(\"readTopNline\");\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(inputFile));\n\t\t\t\n\t\t\tSystem.out.println(\"input:\"+inputFile+\"\\noutput:\"+outputFile);\n\t\t\t\tint cnt=0;\n\t\t\t\t//read each line of given file\n\t while ((line = reader.readLine()) != null) {\n\t \tcnt++;\n\t \tif(cnt<=N){\n\t \t\tSystem.out.println(line);\n\t \t}\n\t \n\t }\n\t System.out.println(\"readTopNline.end\");\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"readTopNline.catch\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"readTopNline.2\");\n\t}", "public String read(String filename) {\n StringBuilder stringBuilder = new StringBuilder();\n try (BufferedReader bufferedReader = new BufferedReader(new FileReader(filename))) {\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n stringBuilder.append(line).append(\"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n return stringBuilder.toString();\n }", "public String getString(int index) throws IOException {\n\t\t\tInputStream in = newInputStream(index);\n\t\t\treturn in != null ? inputStreamToString(in) : null;\n\t\t}", "public static String getStringFromFile(String filename) {\r\n try {\r\n FileInputStream fis = new FileInputStream(filename);\r\n int available = fis.available();\r\n byte buffer[] = new byte[available];\r\n fis.read(buffer);\r\n fis.close();\r\n\r\n String tmp = new String(buffer);\r\n //System.out.println(\"\\nfrom file:\"+filename+\":\\n\"+tmp);\r\n return tmp;\r\n\r\n } catch (Exception ex) {\r\n // System.out.println(ex);\r\n // ex.printStackTrace();\r\n return \"\";\r\n } // endtry\r\n }", "java.lang.String getContents(int index);", "private String readFile(String file) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(file), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n\n return contentBuilder.toString();\n\n }", "public String getRecord(int index) {\r\n\t\tString record = \"\";\r\n\t\tif (index<fileRecords.size() && index>-1) {\r\n\t\t\trecord = fileRecords.get(index);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t/*\r\n\t\t\t * TODO\r\n\t\t\t * Error: index out of bounds\r\n\t\t\t */\r\n\t\t}\r\n\t\treturn record;\r\n\t}", "public static String read(String filename) {\n StringBuilder sb = new StringBuilder();\n try {\n FileReader fr = new FileReader(new File(filename));\n BufferedReader br = new BufferedReader(fr);\n String s;\n while ((s = br.readLine()) != null) {\n sb.append(s).append(\"\\n\");\n }\n br.close();\n fr.close();\n } catch (FileNotFoundException ex) {\n } catch (IOException ex) {\n }\n return sb.toString();\n }", "public String[] getFile() throws IOException {\n\t\n\t\n\ttry {\n\tFileReader reader = new FileReader(path);\n\tBufferedReader textReader = new BufferedReader(reader); // creates buffered file reader again\n\t\n\tint numberOfLines = getLines(); // calls the method above to know how many lines there are\n\tString[ ] textData = new String[numberOfLines]; //creates an array the size of the amount of lines the file has\n\t\n\tfor (int i=0; i < numberOfLines; i++) {\n\t\ttextData[ i ] = textReader.readLine(); // go through file and read each line into its own array space\n\t\t}\n\t\n\ttextReader.close( ); //reader is done\n\treturn textData; // return array\n\t} catch (IOException e) {\n\t\tString[] exceptionString = new String[1];\n\t\texceptionString[0] = \"nothing\";\n\t\treturn exceptionString;\n\t}\n}", "public static String readWholeFile(String filename) {\n\t\t \n\t\t \n\t\t \n\t\ttry {\n\t\t\tScanner scanner = new Scanner(new File(filename));\n\t\t\t //scanner.useDelimiter(\"\\\\Z\");\n\t\t\t String returnString = \"\";\n\t\t\t while (scanner.hasNextLine()) {\n\t\t\t\t returnString += scanner.nextLine();\n\t\t\t\t returnString += System.lineSeparator();\n\t\t\t }\n\t\t\t \n\t\t\t return returnString;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\t \n\t\t \n\t\t }", "public String next(int n)\n {\n StringBuffer buffer = new StringBuffer();\n\n for (int x = 0; x < n; x++)\n {\n buffer.append(next());\n }\n\n return buffer.toString();\n }", "public static String readFileAsString(String filePath, String encoding) {\n\t\tbyte[] buffer = new byte[(int) new File(filePath).length()];\n\t\tBufferedInputStream f = null;\n\t\ttry {\n\t\t\tFile file = new File(filePath);\n\t\t\tfor (int attempt = 0; attempt < 3; attempt++) {\n\t\t\t\tif (file.exists()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tThread.sleep(2);\n\t\t\t}\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tSystem.err.println(\"\\nfile not found: \" + filePath);\n\t\t\t\tthrow new FileNotFoundException(\"Could not find file: \" + filePath);\n\t\t\t}\n\n\t\t\tf = new BufferedInputStream(new FileInputStream(filePath));\n\t\t\tf.read(buffer);\n\t\t} catch (IOException e) {\n\t\t\tthrow new UncheckedExecutionException(e);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (f != null)\n\t\t\t\ttry {\n\t\t\t\t\tf.close();\n\t\t\t\t} catch (IOException ignored) {\n\t\t\t\t}\n\t\t}\n\t\tString contents = null;\n\t\ttry {\n\t\t\tcontents = new String(buffer, encoding);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn contents;\n\t}", "public String getFullString(int n) {\n\t\treturn strings.get(n);\n\t\n\t}", "public String readFile(String filename)\n {\n StringBuilder texts = new StringBuilder();\n \n try \n {\n FileReader inputFile = new FileReader(filename);\n Scanner parser = new Scanner(inputFile);\n \n while (parser.hasNextLine())\n {\n String line = parser.nextLine();\n texts.append(line + \";\");\n }\n \n inputFile.close();\n parser.close();\n return texts.toString();\n \n }\n \n catch(FileNotFoundException exception) \n {\n String error = filename + \" not found\";\n System.out.println(error);\n return error;\n }\n \n catch(IOException exception) \n {\n String error = \"Unexpected I/O error occured\";\n System.out.println(error); \n return error;\n } \n }", "public static List head(int nrows, String path) throws IOException {\n\n List<HashMap> rows=new ArrayList<HashMap>();\n\n Configuration conf = NutchConfiguration.create();\n FileSystem fs = FileSystem.get(conf);\n\n Path file = new Path(path);\n\n SequenceFile.Reader reader = new SequenceFile.Reader(conf, SequenceFile.Reader.file(file));\n\n Writable key = (Writable)\n ReflectionUtils.newInstance(reader.getKeyClass(), conf);\n Node value = new Node();\n\n int i = 0;\n while(reader.next(key, value)) {\n\n if (i == nrows) {\n break;\n }\n i += 1;\n try {\n HashMap<String, String> t_row = getNodeRow(key,value);\n rows.add(t_row);\n }\n catch (Exception e) {\n }\n }\n\n return rows;\n }", "public String readFileToString(String file) throws IOException {\n BufferedReader reader = new BufferedReader( new FileReader(file));\n String line = null;\n StringBuilder stringBuilder = new StringBuilder();\n String ls = System.getProperty(\"line.separator\");\n\n while( ( line = reader.readLine() ) != null ) {\n stringBuilder.append( line );\n stringBuilder.append( ls );\n }\n return stringBuilder.toString();\n }", "public String readFileIntoString(String filepath) throws IOException;", "public static String readFully(Reader reader) throws IOException {\n\t\ttry {\n\t\t\tStringWriter writer = new StringWriter();\n\t\t\tchar[] buffer = new char[1024];\n\t\t\tint count;\n\t\t\twhile ((count = reader.read(buffer)) != -1) {\n\t\t\t\twriter.write(buffer, 0, count);\n\t\t\t}\n\t\t\treturn writer.toString();\n\t\t} finally {\n\t\t\treader.close();\n\t\t}\n\t}", "public static StringBuilder getFileContent(String filename)\n\t\t\tthrows FileNotFoundException {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tScanner input = new Scanner(new File(filename));\n\t\twhile (input.hasNextLine()) {\n\t\t\tsb.append(input.nextLine());\n\t\t}\n\t\tinput.close();\n\n\t\treturn sb;\n\t}", "String getLine (int line);", "private static String readFile(String file) throws IOException { //Doesn't work - possible error with FileReader\n //BufferedReader reader = new BufferedReader(new FileReader(file));\n //FileReader reader=new FileReader(file);\n\n\n FileReader file2 = new FileReader(file);\n System.out.println(\"Inside readFile\");\n BufferedReader buffer = new BufferedReader(file2);\n\n\n\n //String line = null;\n String line=\"\";\n\n StringBuilder stringBuilder = new StringBuilder();\n String ls = System.getProperty(\"line.separator\");\n try {\n while ((line = buffer.readLine()) != null) {\n System.out.println(line);\n stringBuilder.append(line);\n stringBuilder.append(ls);\n }\n return stringBuilder.toString();\n\n }finally{\n buffer.close();//https://stackoverflow.com/questions/326390/how-do-i-create-a-java-string-from-the-contents-of-a-file\n }\n /*Scanner scanner = null;\n scanner = new Scanner(file);\n StringBuilder stringBuilder = new StringBuilder();\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n stringBuilder.append(line);\n\n System.out.println(\"line: \"+line);\n }\n return stringBuilder.toString();*/\n\n }", "public String getData(String fileName) {\n StringBuffer sb = new StringBuffer();\n try {\n BufferedReader br = new BufferedReader(new FileReader(fileName));\n String line = br.readLine();\n while (line != null) {\n sb.append(line).append(\"\\n\");\n line = br.readLine();\n }\n br.close();\n } catch (IOException e) {\n System.out.println(\"NO SE\");\n }\n return sb.toString();\n }", "public String readFromFile(String filePath){\n String fileData = \"\";\n try{\n File myFile = new File(filePath);\n Scanner myReader = new Scanner(myFile);\n while (myReader.hasNextLine()){\n String data = myReader.nextLine();\n fileData += data+\"\\n\";\n }\n myReader.close();\n } catch(FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n return fileData;\n }", "public void customCharReader(File file, int n) {\n\t\tchar[] buffer = new char[n];\n\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\t\t\t\n\t\t\ttry {\n\t\t\t\treader.read(buffer,0,n);\n\t\t\t\t}\n\t\t\tfinally {\n\t\t\t\treader.close();\n\t\t\t\t}\n\t\t}\n\t\tcatch(RuntimeException e) {\n\t\t\tthrow e;\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Something went wrong\");\n\t\t}\n\t\t\t\t\n\t\tfor(int i=1;i<=buffer.length-1;i++) {\n\t\t\tint swap = i % 2;\n\t\t\tif (Integer.toString(swap).equals(Integer.toString(1))) { \n\t\t\t\tbuffer[i] = ' ';\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(buffer);\n\t}", "public String read() {\n\t\tString Line = \"\";\n\t\tInteger[] byteCodes = compressFileReader();\n\t\tif (byteCodes == null)\n\t\t\treturn null;\n\t\tint index = 0;\n\t\tint nextCode = byteCodes[index++];\n\t\tString val = readingMap[nextCode];\n\n\t\twhile (index < byteCodes.length - 1) {\n\t\t\tLine += val;\n\t\t\tnextCode = byteCodes[index++];\n\t\t\tString s = readingMap[nextCode];\n\t\t\tif (s == null) {\n\t\t\t\t@SuppressWarnings(\"unused\")\n\t\t\t\tint i = 0;\n\t\t\t}\n\t\t\tif (readingkeysCount == nextCode)\n\t\t\t\ts = val + val.charAt(0);\n\t\t\tif (readingkeysCount < 256 + keysPossible)\n\t\t\t\treadingMap[readingkeysCount++] = val + s.charAt(0);\n\t\t\tval = s;\n\t\t}\n\t\tLine += val;\n\t\treturn Line + '\\n';\n\t}", "private String readLine() throws IOException {\n/* 276 */ String line = null;\n/* */ \n/* */ \n/* 279 */ boolean isLastFilePart = (this.no == 1L);\n/* */ \n/* 281 */ int i = this.currentLastBytePos;\n/* 282 */ while (i > -1) {\n/* */ \n/* 284 */ if (!isLastFilePart && i < ReversedLinesFileReader.this.avoidNewlineSplitBufferSize) {\n/* */ \n/* */ \n/* 287 */ createLeftOver();\n/* */ \n/* */ break;\n/* */ } \n/* */ int newLineMatchByteCount;\n/* 292 */ if ((newLineMatchByteCount = getNewLineMatchByteCount(this.data, i)) > 0) {\n/* 293 */ int lineStart = i + 1;\n/* 294 */ int lineLengthBytes = this.currentLastBytePos - lineStart + 1;\n/* */ \n/* 296 */ if (lineLengthBytes < 0) {\n/* 297 */ throw new IllegalStateException(\"Unexpected negative line length=\" + lineLengthBytes);\n/* */ }\n/* 299 */ byte[] lineData = new byte[lineLengthBytes];\n/* 300 */ System.arraycopy(this.data, lineStart, lineData, 0, lineLengthBytes);\n/* */ \n/* 302 */ line = new String(lineData, ReversedLinesFileReader.this.encoding);\n/* */ \n/* 304 */ this.currentLastBytePos = i - newLineMatchByteCount;\n/* */ \n/* */ break;\n/* */ } \n/* */ \n/* 309 */ i -= ReversedLinesFileReader.this.byteDecrement;\n/* */ \n/* */ \n/* 312 */ if (i < 0) {\n/* 313 */ createLeftOver();\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* */ \n/* 319 */ if (isLastFilePart && this.leftOver != null) {\n/* */ \n/* 321 */ line = new String(this.leftOver, ReversedLinesFileReader.this.encoding);\n/* 322 */ this.leftOver = null;\n/* */ } \n/* */ \n/* 325 */ return line;\n/* */ }", "private static String readFile(String file) throws IOException {\n\n\t\tString line = null;\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tString ls = System.getProperty(\"line.separator\");\n\n\t\ttry (BufferedReader reader = new BufferedReader(new FileReader(file))) {\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tstringBuilder.append(line);\n\t\t\t\tstringBuilder.append(ls);\n\t\t\t}\n\t\t}\n\n\t\treturn stringBuilder.toString();\n\t}", "private static String file2string(String file) {\n StringBuilder sb = new StringBuilder();\n try {\n BufferedReader br = new BufferedReader(new FileReader(new File(file)));\n String line;\n\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return (sb != null) ? sb.toString() : \"\";\n }", "public abstract String getLine(int lineNumber);", "private String readFdocaString(int length, Charset encoding) {\n if (length == 0) {\n return null;\n }\n\n checkForSplitRowAndComplete(length);\n\n return dataBuffer_.readCharSequence(length, encoding).toString();\n// String s = new String(dataBuffer_, position_, length, encoding);\n// position_ += length;\n// return s;\n }", "private static String readLine(String filename) throws IOException {\n\t\ttry (BufferedReader reader = new BufferedReader(\n\t\t\t\tnew FileReader(filename), 256)) {\n\t\t\treturn reader.readLine();\n\t\t}\n\t}", "String readFile( String filename ) {\n try {\n FileReader fileReader = new FileReader( filename );\n BufferedReader bufferedReader = new BufferedReader( fileReader );\n StringBuilder stringBuilder = new StringBuilder();\n String line = bufferedReader.readLine();\n while( line != null ) {\n stringBuilder.append( line );\n stringBuilder.append( \"\\n\" );\n line = bufferedReader.readLine();\n }\n bufferedReader.close();\n fileReader.close();\n return stringBuilder.toString();\n } catch( Exception e ) {\n playerObjects.getLogFile().WriteLine( Formatting.exceptionToStackTrace( e ) );\n return null;\n }\n }", "public String readFileContent(File file) {\n StringBuilder fileContentBuilder = new StringBuilder();\n if (file.exists()) {\n String stringLine;\n try {\n FileReader fileReader = new FileReader(file);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n while ((stringLine = bufferedReader.readLine()) != null) {\n fileContentBuilder.append(stringLine + \"\\n\");\n }\n bufferedReader.close();\n fileReader.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return fileContentBuilder.toString();\n }", "public String readFile(){\n\t\tString res = \"\";\n\t\t\n\t\tFile log = new File(filePath);\n\t\tBufferedReader bf = null;\n\t\t\n\t\ttry{\n\t\t\tbf = new BufferedReader(new FileReader(log));\n\t\t\tString line = bf.readLine();\n\t\t\n\t\t\n\t\t\twhile (line != null){\n\t\t\t\tres += line+\"\\n\";\n\t\t\t\tline = bf.readLine();\n\t\t\t}\n\t\t\n\t\t\treturn res;\n\t\t}\n\t\tcatch(Exception oops){\n\t\t\tSystem.err.println(\"There was an error reading the file \"+oops.getStackTrace());\n\t\t\treturn \"\";\n\t\t}\n\t\tfinally{\n\t\t\ttry {\n\t\t\t\tbf.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"There was an error closing the read Buffer \"+e.getStackTrace());\n\t\t\t}\n\t\t}\n\t}", "public static String getStringFromFile(String filename) {\n if (Logger.get().isDebug()) {\n Logger.debug(\"Reading file {}\", filename);\n }\n List<String> read = FileKit.readLines(filename);\n if (!read.isEmpty()) {\n if (Logger.get().isTrace()) {\n Logger.trace(\"Read {}\", read.get(0));\n }\n return read.get(0);\n }\n return Normal.EMPTY;\n }", "private String fileReadOneLine(String fname) {\n BufferedReader br;\n String line = null;\n\n try {\n br = new BufferedReader(new FileReader(fname), 512);\n try {\n line = br.readLine();\n } finally {\n br.close();\n }\n } catch (Exception e) {\n Log.e(TAG, \"Exception when reading /sys/* file\", e);\n }\n return line;\n }", "public String next(int n) throws JSONException {\n if(n == 0) {\n return \"\";\n }\n\n char[] chars = new char[n];\n int pos = 0;\n while(pos < n) {\n chars[pos] = this.next();\n if(this.end()) {\n throw this.syntaxError(\"Substring bounds error\");\n }\n pos += 1;\n }\n\n return new String(chars);\n }", "com.google.protobuf.ByteString\n getRowsBytes(int index);", "public int getRows();", "public int getRows();", "public String read() throws Exception {\r\n\t\tBufferedReader reader = null;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tif (input==null) input = new FileInputStream(file);\r\n\t\t\treader = new BufferedReader(new InputStreamReader(input,charset));\r\n\t\t\tchar[] c= null;\r\n\t\t\twhile (reader.read(c=new char[8192])!=-1) {\r\n\t\t\t\tsb.append(c);\r\n\t\t\t}\r\n\t\t\tc=null;\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow e;\r\n\t\t} finally {\r\n\t\t\treader.close();\r\n\t\t}\r\n\t\treturn sb.toString().trim();\r\n\t}", "public static String csvToString(String fname) throws IOException{\n\t\tString contents = new String(Files.readAllBytes(Paths.get(fname)));\n\t\treturn contents;\n\t}", "private String getLine(final int index) {\n Element elem = TextUtils.getParagraphElement(document, index);\n if (elem == null) {\n return null;\n }\n int start = elem.getStartOffset();\n int length = elem.getEndOffset() - start;\n String result = null;\n try {\n result = document.getText(start, length);\n } catch (final BadLocationException e) {\n }\n return result;\n }", "public String row(int i)\n throws Exception\n {\n if (i < 0 || i > height)\n throw new Exception(\"Invalid row \" + i);\n\n String result = tb.row(i);\n result = result.substring(0, width);\n return result;\n }", "int getLinesLimit();", "private String read(InputStream in) throws IOException {\n StringBuilder sb = new StringBuilder();\n BufferedReader r = new BufferedReader(new InputStreamReader(in), 1000);\n for (String line = r.readLine(); line != null; line = r.readLine()) {\n sb.append(line);\n }\n in.close();\n return sb.toString();\n }", "public static String read(File file) throws FileNotFoundException, IOException {\n char[] cbuf = new char[1024];\n StringBuilder builder = new StringBuilder();\n try (BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(file)))) {\n int numRead;\n while ((numRead = reader.read(cbuf)) != -1) {\n builder.append(cbuf, 0, numRead);\n }\n }\n return builder.toString();\n }", "public static String readFile() {\n\t\tFileReader file;\n\t\tString textFile = \"\";\n\n\t\ttry {\n\t\t\tfile = new FileReader(path);\n\n\t\t\t// Output string.\n\t\t\ttextFile = new String();\n\n\t\t\tBufferedReader bfr = new BufferedReader(file);\n\n\t\t\ttextFile= bfr.readLine();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error reading the file\");\n\t\t}\n\t\treturn textFile;\n\n\t}", "private String getFileContent(){\n\t\tString employeesJsonString=\"\";\n\t\ttry {\n\t\t\tScanner sc = new Scanner(file);\n\t\t\twhile(sc.hasNextLine()){\n\t\t\t\temployeesJsonString += sc.nextLine();\n\t\t\t}\n\t\t\t\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t\tSystem.out.println(\"file error\");\n\t\t}\n\t\treturn employeesJsonString;\n\t}", "int getRows();", "int getRows();", "private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(contentBuilder::append);\n }\n return contentBuilder.toString();\n }", "public String getLineContent(int lineNumber) {\n return lines.get(lineNumber-1).getContent();\n }", "private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n return contentBuilder.toString();\n }", "private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n\n return contentBuilder.toString();\n }", "java.lang.String getSourceFile(int index);", "public String getContents()\n\t{\n\t\treturn getRawColumn(OFF_LINE_NO, lineLength);\n\t}", "public static String readFileAsString(String file) throws IOException {\n \t\tStringBuilder contents = new StringBuilder();\n \t\tBufferedReader input = new BufferedReader(new FileReader(file));\n \t\tString line = null;\n \t\twhile ((line = input.readLine()) != null) {\n \t\t\tcontents.append(line);\n \t\t\tcontents.append(System.getProperty(\"line.separator\"));\n \t\t}\n \t\tinput.close();\n \t\treturn contents.toString();\n \t}", "public static void readFile_Top_N2M_line(String inputFile, String outputFile\n\t\t\t\t\t\t\t\t\t\t\t , int N, int M){\n\t\ttry{\n\t\t\t//FileWriter writer = new FileWriter(outputFile);\n\t\t\tString line=\"\";\n\t\t\tSystem.out.println(\"readTopN2Mline\");\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(inputFile));\n\t\t\tSystem.out.println(\"input:\"+inputFile+\"\\noutput:\"+outputFile);\n\t\t\t\t int lineNo=0;\n\t\t\t\t//read each line of given file\n\t while ((line = reader.readLine()) != null) {\n\t \tlineNo++;\n\t \tif(lineNo>=N && lineNo<=M){\n\t \t\tSystem.out.println(line);\n\t \t}\n\t \n\t }\n\t\t\t\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void getNextLine()\n\t\t\tthrows IOException, FileNotFoundException {\n String nextLine = \"\";\n if (reader == null) {\n nextLine = textLineReader.readLine();\n } else {\n nextLine = reader.readLine();\n }\n if (nextLine == null) {\n atEnd = true;\n line = new StringBuffer();\n } else {\n\t\t line = new StringBuffer (nextLine);\n }\n if (context.isTextile()) {\n textilize ();\n }\n\t\tlineLength = line.length();\n\t\tlineIndex = 0;\n\t}" ]
[ "0.5939491", "0.5914795", "0.5841735", "0.5808719", "0.57689583", "0.56844896", "0.5680556", "0.5670754", "0.5552234", "0.5541279", "0.55069363", "0.54959166", "0.5407346", "0.53600055", "0.53516495", "0.53484327", "0.53357553", "0.5299322", "0.529674", "0.5287079", "0.5273953", "0.52735704", "0.5272718", "0.52688086", "0.5223932", "0.5212711", "0.51877964", "0.51741576", "0.51731807", "0.51426536", "0.5128512", "0.51268125", "0.51170284", "0.51040876", "0.50946873", "0.5087622", "0.50851655", "0.5080858", "0.50806224", "0.5065439", "0.5063812", "0.506288", "0.505858", "0.5047139", "0.5042279", "0.5035104", "0.5027", "0.5019162", "0.49846697", "0.4982578", "0.49657494", "0.49623188", "0.49622947", "0.4962049", "0.49602926", "0.49514884", "0.49402395", "0.49317592", "0.4922144", "0.49209213", "0.4918942", "0.4910741", "0.48942712", "0.48922265", "0.48809022", "0.48721385", "0.48712", "0.48705286", "0.48630607", "0.48600158", "0.48547745", "0.48536357", "0.48520654", "0.48456636", "0.4831133", "0.48310232", "0.48259896", "0.48239496", "0.4816059", "0.4816059", "0.48153308", "0.48119286", "0.48096597", "0.48080066", "0.4792804", "0.4771541", "0.4769301", "0.47608113", "0.47607133", "0.47563213", "0.47563213", "0.47553706", "0.4754315", "0.47520685", "0.47509423", "0.47444072", "0.47401857", "0.47396836", "0.4732853", "0.47294584" ]
0.6144333
0
Doesn't Change the suffix. Just Returns a string with new file name.
public static String changeSuffix(File file, String suffix) { String fileName = getPrefix(file); String rtn = fileName + "." + suffix; return rtn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFinalFileName()\r\n\t{\r\n\t\treturn this.getFileName() + this.getFileFormat();\r\n\t}", "private String generateComponentFileName (String suffix) {\n return FileBroker.generateTemporaryFileName(hashCode(),\n clientSite,\n saveId,\n suffix);\n }", "public String createUniqueSuffix(String filename) {\n \t\tint fileTypeIdx = filename.lastIndexOf('.');\n \t\tString fileType = filename.substring(fileTypeIdx); // Let the fileType include the leading '.'\n \n \t\tfilename = filename.substring(0, fileTypeIdx); // Strip off the leading '/' from the filename\n \n \tSimpleDateFormat timestampFormatter = new SimpleDateFormat(\"yyyyMMddHHmmssSSS\");\n \t\tString timstampStr = '_' + timestampFormatter.format(new Date());\n \n \t\treturn filename + timstampStr + fileType;\n \t}", "public String toFileSuffix() {\n if ( release ) return majlow;\n else return majlow + '-' + commitNumber();\n }", "protected String getFileName()\n {\n return new StringBuilder()\n .append(getInfoAnno().filePrefix())\n .append(getName())\n .append(getInfoAnno().fileSuffix())\n .toString();\n }", "public String generateFileName(String midName)\r\n {\r\n return dir + nameBase + midName + nameSuffix;\r\n }", "private String retrieveFileNameWithOutExt(String targetFile)\r\n\t{\r\n\t\tfor (int index = targetFile.length(); index > 0; index--)\r\n\t\t{\r\n\t\t\tif (targetFile.charAt(index - 1) == '.')\r\n\t\t\t{\r\n\t\t\t\ttargetFile = targetFile.substring(0, index - 1);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn targetFile;\r\n\t}", "public final String getSuffix() {\n/* 62 */ return \".jpg\";\n/* */ }", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "public String getFileName() {\n return String.format(\"%s%o\", this.fileNamePrefix, getIndex());\n }", "public static String getNewSaveName() {\n if (!new File(DIRECTORY_NAME).exists()) {\n boolean success = (new File(DIRECTORY_NAME)).mkdirs();\n if (!success) {\n JOptionPane.showMessageDialog(null, \"Failed to create directory '\" + DIRECTORY_NAME + \"'\");\n return null;\n }\n }\n\n File f;\n String firstPart = DIRECTORY_NAME + \"/\" + SERIALIZED_NAME;\n String s;\n\n // Keep running until an unused name is found\n while (true) {\n // Construct another file name\n s = firstPart + ++count + NAME_EXTENSION;\n\n // Check if file exist\n f = new File(s);\n if (!f.exists()) {\n return s; // return the name if exist\n }\n }\n\n }", "public static String getLastFileName()\r\n\t{\r\n\t\treturn _outputFileName;\r\n\t}", "String getSuffix();", "public static String getFileName()\r\n\t{\r\n\t\tString name = \"d3_\";\r\n\t\tjava.util.Date tNow = new java.util.Date();\r\n\r\n\t\tjava.text.SimpleDateFormat df = new java.text.SimpleDateFormat(\"mm_ss\");\r\n\r\n\t\tname = name + \"_\" + df.format(tNow) + \".wmf\";\r\n\r\n\t\treturn name;\r\n\t}", "public void updateFileName()\n {\n\n String fn= presenter.getCurrentTrack().getFileName();\n if(fn!=null && !fn.isEmpty()) {\n File file = new File(fn);\n fn=file.getName();\n }\n if(fn==null || fn.isEmpty())\n fn=\"*\";\n fileNameTextView.setText(fn);\n }", "public String generateFileName()\r\n {\r\n for (;;)\r\n {\r\n String name = generateFileName(\"_\" + Math.abs(random.nextInt()));\r\n if (!(new File(name)).exists())\r\n return name;\r\n }\r\n }", "private String generateFileName(MultipartFile multiPart) {\n return new Date().getTime() + \"-\" + multiPart.getOriginalFilename().replace(\" \", \"_\");\n }", "private String getSaveName(String filepath) {\r\n String newname = \"\";\r\n for (char c : filepath.toCharArray()) {\r\n if (c == '/' || c == '\\\\' || c == ':') newname+=\"_\";\r\n else newname+=c;\r\n }\r\n newname+=EXTENSION;\r\n return newname;\r\n }", "private String generateFilename() {\n UUID uuid = UUID.randomUUID();\n return uuid.toString();\n }", "protected String getFilename(String prefix) {\n return prefix + mFileNameDelimiter + UUID.randomUUID();\n }", "public String getFileName() {\n if (url.endsWith(\"/\")) {\n url = url.substring(0, url.length() - 1);\n }\n\n //Replace illegal characters\n String urlFileName = url.replace(\"http://\", \"\");\n urlFileName = urlFileName.replace(\"https://\", \"\");\n urlFileName = urlFileName.replace(\"/\", \"\");\n urlFileName += \".txt\";\n\n return urlFileName;\n }", "private String nakedFileName() {\n return f.getName().split(\"\\\\.\")[0];\n }", "java.lang.String getFilename();", "java.lang.String getFilename();", "public static String getFileName(String urlFileGenerated) {\r\n\r\n\t\tString result = \"\";\r\n\r\n\t\tif (urlFileGenerated != null) {\r\n\t\t\tresult = urlFileGenerated.substring(urlFileGenerated.lastIndexOf(\"/\") + 1);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "private String getNextFileName() {\n\n File fileDir = new File(Environment.getExternalStorageDirectory()\n + File.separator + mTestFolderName\n + File.separator);\n\n if (!fileDir.exists()) {\n fileDir.mkdirs();\n }\n //build filename\n GregorianCalendar gregorianCalendar = new GregorianCalendar();\n gregorianCalendar.setTime(new Date(System.currentTimeMillis()));\n String date = new SimpleDateFormat(\"dd-MM-yy_HH-mm\").format(gregorianCalendar.getTime());\n MainActivity.sTestFileDate = date;\n return Environment.getExternalStorageDirectory()\n + File.separator + mTestFolderName\n + File.separator + \"merge_T1_\" + date\n + \".mp4\";\n }", "private String newName(Folder targetFolder) {\n HashSet<String> nameSet = targetFolder.hashSet();\n String currName = this.getName();\n while (nameSet.contains(currName)) {\n currName = \"(copy)\" + currName;\n }\n return currName;\n }", "void setSuffix(String suffix);", "private String removeNamePrefix(String sFileName){\n int iDateScoreIndex = 0;\n String sOriginalFileName = \"\";\n\n iDateScoreIndex = sFileName.indexOf(\"_attempt_\");\n sOriginalFileName = sFileName.substring(iDateScoreIndex + 29);\n\n return sOriginalFileName;\n }", "public String getFileName() {\r\n \t\tif (isFileOpened()) {\r\n \t\t\treturn curFile.getName();\r\n \t\t} else {\r\n \t\t\treturn \"\";\r\n \t\t}\r\n \t}", "String getShortName() {\n final int lastSlash = name.lastIndexOf('/');\n final String fileName = name.substring(lastSlash + 1);\n final int lastDot = fileName.lastIndexOf('.');\n return fileName.substring(0, lastDot);\n }", "public String filename() {\n int dot = fullPath.lastIndexOf(extensionSeparator);\n int sep = fullPath.lastIndexOf(pathSeparator);\n return fullPath.substring(sep + 1, dot);\n }", "public String getSuffixName() {\n return suffixName;\n }", "public String getSuffix() {\n return suffix;\n }", "public String fullFileName () {\n\t\tif (directory == null || directory.equals(\"\"))\n\t\t\treturn fileName;\n\t\telse\n\t\t\treturn directory + File.separator + fileName;\t//add a '\\' in the path\n\t}", "private String getOptimizedSuffix(final String baseName) {\n\t\tif (\"index\".equals(baseName) || \"login\".equals(baseName)) {\n\t\t\t// Use environment code suffix\n\t\t\treturn suffix;\n\t\t}\n\t\t// No suffix\n\t\treturn \"\";\n\t}", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "public final String getSuffix() {\n\t\treturn suffix;\n\t}", "public String getSuffix() {\n\t\treturn suffix;\n\t}", "private static synchronized java.lang.String getUniqueSuffix(){\n if (counter > 99999){\n counter = 0;\n }\n counter = counter + 1; \n return java.lang.Long.toString(System.currentTimeMillis()) + \"_\" + counter;\n }", "private String generateFileName() {\n\t\t\n\t\treturn \"/tmp/logger.java_log\" + new Random().nextInt();\n\t}", "private static synchronized java.lang.String getUniqueSuffix() {\n if (counter > 99999) {\r\n counter = 0;\r\n }\r\n\r\n counter = counter + 1;\r\n\r\n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) +\r\n \"_\" + counter;\r\n }", "private static synchronized java.lang.String getUniqueSuffix() {\n if (counter > 99999) {\r\n counter = 0;\r\n }\r\n counter = counter + 1;\r\n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + \"_\" + counter;\r\n }", "public java.lang.String getSuffix() {\r\n return suffix;\r\n }", "private static synchronized java.lang.String getUniqueSuffix() {\n if (counter > 99999) {\n counter = 0;\n }\n\n counter = counter + 1;\n\n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) +\n \"_\" + counter;\n }", "public String filename() {\n\t int sep = fullPath.lastIndexOf(pathSeparator);\n\t return fullPath.substring(sep + 1);\n\t }", "private static synchronized java.lang.String getUniqueSuffix(){\n if (counter > 99999){\n counter = 0;\n }\n counter = counter + 1; \n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + \"_\" + counter;\n }", "private static synchronized java.lang.String getUniqueSuffix(){\n if (counter > 99999){\n counter = 0;\n }\n counter = counter + 1; \n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + \"_\" + counter;\n }", "private static synchronized java.lang.String getUniqueSuffix(){\n if (counter > 99999){\n counter = 0;\n }\n counter = counter + 1; \n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + \"_\" + counter;\n }", "public String getName() {\n if (filename != null) {\n int index = filename.lastIndexOf(separatorChar);\n\n if (index >= 0) {\n return filename.substring(index + 1);\n } else {\n if (filename == null) {\n return \"\";\n } else {\n return filename;\n }\n }\n } else {\n return \"\";\n }\n }", "private static String buildFileName(int exportMode, String currentTimestamp)\n {\n String fileNamePrefix;\n\n if(exportMode != -1)\n {\n fileNamePrefix = ExportModeHandler.getFilePrefix(exportMode);\n }\n else\n {\n fileNamePrefix = \"RAW_\";\n }\n\n return fileNamePrefix + Utilities.getDeviceName() + \"_\" + currentTimestamp + \".txt\";\n }", "private String getFileName()\r\n {\r\n DateFormat format = new SimpleDateFormat(\"yyyy-MM-dd__HH_mm\");\r\n \r\n String ret = new String();\r\n ret += preferences.getPreference(UserPreferences.SAVE_LOCATION_PROP);\r\n ret += format.format(new Date());\r\n \r\n String notationStr = notation.getText().trim();\r\n if (!notationStr.isEmpty()) \r\n {\r\n ret += \"__\" + notationStr.replaceAll(\" \\t/\\\\:\", \"_\");\r\n }\r\n \r\n ret += \".csv\";\r\n \r\n return ret;\r\n }", "public java.lang.String getSuffix() {\n return suffix;\n }", "protected String getSuffix() {\n return this.suffix;\n }", "private static String filename(String longFileName) {\n try {\n return Util.computeStrongName(longFileName.getBytes(Util.DEFAULT_ENCODING));\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }", "private static synchronized java.lang.String getUniqueSuffix(){\n if (counter > 99999){\r\n counter = 0;\r\n }\r\n counter = counter + 1; \r\n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + \"_\" + counter;\r\n }", "public String getSuffixName() {\n return null;\n }", "private synchronized void updateFilename()\n\t{\n\t\tCalendar cal = Calendar.getInstance();\n\t\tDate date = cal.getTime();\n\n\t\tcal.add(Calendar.DATE, 1);\n\t\tcal.set(Calendar.HOUR_OF_DAY, 0);\n\t\tcal.set(Calendar.MINUTE , 0);\n\t\tcal.set(Calendar.SECOND, 0);\n\n\t\tfilename = prefix + dateFormat.format(date);\n\t\tnextRotate = cal.getTimeInMillis();\n\t}", "String getFilename();", "public String getFileName(int index) {\n\t\tFile f = openFiles.get(index);\n\t\tString nom = f.getName().substring(0,f.getName().length()-5);\n\t\treturn nom;\n\t}", "public String getOriginalFileName();", "public static String renameFileName(String fileName) {\n String formatDate = new SimpleDateFormat(\"yyMMddHHmmss\").format(new Date()); // 当前时间字符串\n String prefix = \"image\";\n// String serialNum = String.format(\"%03d\", fileNum);\n String extension = fileName.substring(fileName.lastIndexOf(\".\")); // 文件后缀\n\n return prefix + formatDate + extension;\n }", "public String getFileName() {\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif(this.exists() && !this.isDirectory())\n\t\t\tresult = this.get(this.lenght - 1);\n\t\t\n\t\treturn result;\n\t}", "public static String fileNameWithoutExt(String file) {\n\t\tint lastIndexDot = file.lastIndexOf('.');\n\t\treturn file.substring(0, lastIndexDot); \n\t}", "public static String getFilenameSuffix(String filename) {\n String suffix = \"\";\n \n if(!StringUtil.isNullOrBlank(filename)) {\n if(filename.indexOf(File.pathSeparatorChar) > -1) {\n throw new IllegalArgumentException(\"Invalid filename.\");\n }\n List<String> segement = StringUtil.asList(filename, '.');\n int size = segement.size();\n if(size > 1) {\n suffix = segement.get(size - 1);\n }\n }\n \n return suffix;\n }", "public void setSuffix(String suffix) {\n this.suffix = suffix;\n }", "public static String getFileName() {\n File base = new File(\"C:/Users/Steve/IdeaProjects/MiniJavaCompiler/samples/clean/\");\n File file = new File(inputFile);\n String relativePath = base.toURI().relativize(file.toURI()).getPath();\n return relativePath;\n }", "private String getEditedFilename(File f) {\n \tString name = \"$Corrupted$\";\n \tString s = \"$Corrupted$\";\n \t\n \ttry {\n \t\tBufferedReader br = new BufferedReader( new FileReader(f) );\n \t\ts = br.readLine();\n \t\tbr.close();\n \t\n \t}catch (IOException e) {\n \t\te.printStackTrace();\n \t}\n \t\n\n \tif ( s.substring(0,6).equals(\"title\"+dataSep) ) {\n \t\tname = s.substring(6,s.length());\n \t\t\n \t}\n \t\n \treturn name;\n \t\n }", "public void setSuffix(java.lang.String suffix) {\r\n this.suffix = suffix;\r\n }", "private static String getFileNameWithoutExtension(File file) {\n String fileName = \"\";\n \n try {\n if (file != null && file.exists()) {\n String name = file.getName();\n fileName = name.replaceFirst(\"[.][^.]+$\", \"\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n fileName = \"\";\n }\n return fileName;\n }", "public void setPathSuffix(String pathSuffix);", "private String getFileName(String path)\n\t{\n\t\tFile file = new File(path);\n\t\tString name = file.getName();\n\t\treturn name.replace(\".\", \"_\");\n\t}", "String getFileName(String filePath) {\n\t\tint lastSlash = savedFilePath.lastIndexOf(\"\\\\\");\n\t\tint dotPos = savedFilePath.lastIndexOf(\".\");\n\t\tString fileName = savedFilePath.substring(lastSlash+1,dotPos);\n\t\treturn fileName;\n\t}", "public String getFileName(File f) {\n String[] list = f.toString().split(Pattern.quote(\"\\\\\"));\n return \"...\\\\\" + list[list.length - 1];\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String filename(File f) {\r\n int dot = f.toString().lastIndexOf(\".\");\r\n int sep = f.toString().lastIndexOf(\"\\\\\");\r\n return f.toString().substring(sep + 1, dot);\r\n }", "public String suffix() {\n return string.substring(1);\n }", "private String retrieveFileExtension(String targetFile)\r\n\t{\r\n\t\tString result = \"\";\r\n\t\tfor (int index = targetFile.length(); index > 0; index--)\r\n\t\t{\r\n\t\t\tif (targetFile.charAt(index - 1) == '.')\r\n\t\t\t{\r\n\t\t\t\tresult = targetFile.substring(index, targetFile.length());\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (result.equals(targetFile))\r\n\t\t\treturn \"\";\r\n\t\treturn result;\r\n\t}", "@Override\r\n public String getExtension() {\r\n if (extension == null) {\r\n getBaseName();\r\n final int pos = baseName.lastIndexOf('.');\r\n // if ((pos == -1) || (pos == baseName.length() - 1))\r\n // [email protected]: Review of patch from [email protected]\r\n // do not treat file names like\r\n // .bashrc c:\\windows\\.java c:\\windows\\.javaws c:\\windows\\.jedit c:\\windows\\.appletviewer\r\n // as extension\r\n if (pos < 1 || pos == baseName.length() - 1) {\r\n // No extension\r\n extension = \"\";\r\n } else {\r\n extension = baseName.substring(pos + 1).intern();\r\n }\r\n }\r\n return extension;\r\n }", "public String getName() { return FilePathUtils.getFileName(getPath()); }", "String noExt(String name) {\r\n int last=name.lastIndexOf(\".\");\r\n if(last>0)\r\n return name.substring(0, last);\r\n\r\n return name;\r\n }", "public void setSuffix(java.lang.String suffix) {\n this.suffix = suffix;\n }", "public String getFileName();" ]
[ "0.7450514", "0.7381353", "0.7252896", "0.7174887", "0.7151047", "0.70118916", "0.6922313", "0.69074136", "0.6853666", "0.6853666", "0.6853666", "0.6853666", "0.6853666", "0.6853666", "0.6853666", "0.6853666", "0.6853666", "0.6844329", "0.68227214", "0.680506", "0.6791478", "0.6773679", "0.6724157", "0.6715572", "0.67041713", "0.6565108", "0.65565956", "0.65533817", "0.6547628", "0.6547622", "0.6544301", "0.6544301", "0.64951116", "0.64685804", "0.644583", "0.6418684", "0.64167166", "0.6383704", "0.6351755", "0.6351724", "0.634581", "0.6341213", "0.6332496", "0.6328257", "0.6326729", "0.6326729", "0.6326729", "0.6326729", "0.6326729", "0.63183486", "0.6314224", "0.6287435", "0.6268216", "0.62627006", "0.62555945", "0.6248811", "0.6242959", "0.6235824", "0.6227681", "0.6227681", "0.6227681", "0.6221304", "0.6213845", "0.6213706", "0.6212586", "0.6210286", "0.6196273", "0.6195647", "0.6194416", "0.6181052", "0.6179778", "0.6169462", "0.61650085", "0.61617893", "0.6157376", "0.61533535", "0.61488724", "0.61479336", "0.6133146", "0.612837", "0.61242765", "0.6113544", "0.61068344", "0.6102313", "0.6098547", "0.6097602", "0.6089785", "0.6089785", "0.6089785", "0.6089785", "0.6089785", "0.6089785", "0.6089027", "0.60867715", "0.6068607", "0.60678387", "0.6060047", "0.60582656", "0.60560626", "0.6055087" ]
0.72575337
2
DIRECTORY METHODS list files
public static List<File> list(File dir) { File[] fileArray = dir.listFiles(); List<File> files = Arrays.asList(fileArray); ArrayList<File> rtn = new ArrayList<File>(); files = sortByName(files); rtn.addAll(files); return rtn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List listFiles(String path);", "List<File> list(String directory) throws FindException;", "List<Path> getFiles();", "public abstract List<File> listFiles() throws AccessException;", "public abstract List<String> getFiles( );", "public List<File> getFiles();", "public List<String> getFiles();", "public abstract List<LocalFile> getAllFiles();", "java.util.List<entities.Torrent.FileInfo>\n getFilesList();", "List<String> getFiles(String path) throws IOException;", "AntiIterator<FsPath> listFilesAndDirectories(FsPath dir);", "public void getFiles()\n\t{\n\t\tif(fileList.size() == 0)\n\t\t{\n\t\t\tSystem.out.println(\"There is no file or file not found\");\n\t\t}\n\t\tfor(int i = 0; i < fileList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(\"File is at: \" + fileList.get(i));\n\t\t}\n\t}", "@Test\n public void listFilesTest() throws ApiException {\n Integer devid = null;\n String path = null;\n List<FileOnDevice> response = api.listFiles(devid, path);\n\n // TODO: test validations\n }", "public String[] listDirectory( String directory, FileType type );", "static void viewFiles()\r\n\t {\n\t\t File directoryPath = new File(\"D:\\\\java_project\");\r\n\t File filesList[] = directoryPath.listFiles();\r\n System.out.println(\"List of files and directories in the specified directory:\");\r\n\t for(File file : filesList) \r\n\t {\r\n\t System.out.println(\"File name: \"+file.getName());\r\n\t System.out.println(\"File path: \"+file.getAbsolutePath());\r\n\t System.out.println(\"Size :\"+file.getTotalSpace());\r\n\t System.out.println(\"last time file is modified :\"+new Date(file.lastModified()));\r\n System.out.println(\" \");\r\n\t }\r\n }", "@Override\n public Iterable<File> list(File storageDirectory, FilenameFilter filter) {\n\treturn null;\n }", "void listingFiles(String remoteFolder);", "private void listFiles(JSONArray parameter) {\n String response = \"Files and Directorys to list: \";\n if (parameter.size() == 1) {\n File file = new File((String) parameter.get(0));\n for (String s : file.list()) {\n response = response + \"\\n\" + s;\n }\n clientResponse(response);\n } else {\n failedClientResponse(\"Wrong Parameters! -400\");\n }\n }", "@GetMapping(\"/all\")\r\n\tpublic List<FileModel> getListFiles() {\r\n\t\treturn fileRepository.findAll();\r\n\t}", "public List<File> getListing(){\n\t return getFileList(new File(defaultPath));\n }", "public File[] listFiles() {\n\n\t\tFileFilter Ff = f -> true;\n\t\treturn this.listFiles(Ff);\n\t}", "@GetMapping(\"/files\")\n public ResponseEntity<List<FileInfo>> getListFiles() {\n List<FileInfo> fileInfos = storageService.loadAll().map(path -> {\n String filename = path.getFileName().toString();\n String url = MvcUriComponentsBuilder\n .fromMethodName(FilesController.class, \"getFile\", path.getFileName().toString()).build().toString();\n\n return new FileInfo(filename, url);\n }).collect(Collectors.toList());\n\n return ResponseEntity.status(HttpStatus.OK).body(fileInfos);\n }", "java.util.List<ds.hdfs.generated.FileMetadata> \n getFilesList();", "public static void getAllFiles()\n\t{\n\t\t//Getting the File Name\n\n\t\tList<String> fileNames = FileManager.getAllFiles(folderpath);\n\t\n\t\tfor(String f:fileNames)\n\t\tSystem.out.println(f);\n\t\n\t}", "private static List<File> listChildFiles(File dir) throws IOException {\n\t\t List<File> allFiles = new ArrayList<File>();\n\t\t \n\t\t File[] childFiles = dir.listFiles();\n\t\t for (File file : childFiles) {\n\t\t if (file.isFile()) {\n\t\t allFiles.add(file);\n\t\t } else {\n\t\t List<File> files = listChildFiles(file);\n\t\t allFiles.addAll(files);\n\t\t }\n\t\t }\n\t\t return allFiles;\n\t\t }", "private void getDirectoryContents() {\n\t File directory = Utilities.prepareDirectory(\"Filtering\");\n\t if(directory.exists()) {\n\t FilenameFilter filter = new FilenameFilter() {\n\t public boolean accept(File dir, String filename) {\n\t return filename.contains(\".pcm\") || filename.contains(\".wav\");\n\t }\n\t };\n\t fileList = directory.list(filter);\n\t }\n\t else {\n\t fileList = new String[0];\n\t }\n\t}", "private void get_file_List() {\n\tString file_name=null;\r\n\tfor (int i = 0; i < listOfFiles.length; i++) \r\n\t {\r\n\t \r\n\t if (listOfFiles[i].isFile()) \r\n\t {\r\n\t\t file_name = listOfFiles[i].getName();\r\n\t if (file_name.endsWith(\".xml\") || file_name.endsWith(\".XML\"))\r\n\t {\r\n\t file_list.add(file_name) ;\r\n\t }\r\n\t }\r\n\t }\r\n\t\r\n}", "List<String> getFiles(String path, String searchPattern, String searchOption) throws IOException;", "public Vector<String> listFiles()\n {\n Vector<String> fileNames = new Vector<String>();\n\n File[] files = fileLocation.listFiles();\n\n for (File file : files)\n {\n fileNames.add(file.getName());\n }\n\n return fileNames;\n }", "List<File> getSystemDescriptionFiles();", "@Override\n public Iterable<File> list(File storageDirectory) {\n\treturn null;\n }", "public static File[] listFiles(File f) {\n return f.listFiles();\n }", "List<String> getFiles(String path, String searchPattern) throws IOException;", "public void displayDirectoryList() {\r\n //-----------------------------------\r\n String appDirecotry = APP_INSTANCE.getAppDirectory();\r\n\r\n //-----------------------------------\r\n\r\n System.out.println(\"/// FILE LIST OF DIRECTORY: \"+appDirecotry);\r\n System.out.println(\"/// ------------------ START OF DIRECTORY FILES LIST -------------------\");\r\n\r\n //-----------------------------------\r\n getCurrentDirectoryFiles(appDirecotry).forEach(listItemFile-> {\r\n intProperty = (intProperty +1 );\r\n System.out.println(\"/// [\"+intProperty+\"] \"+listItemFile.getName());\r\n });\r\n\r\n //-----------------------------------\r\n System.out.println(\"/// ------------------- END OF DIRECTORY FILES LIST --------------------\");\r\n }", "public void listFiles(String directoryName) throws IOException{\n File directory = new File(directoryName);\n //get all the files from a directory\n System.out.println(\"List of Files in: \" + directory.getCanonicalPath());\n File[] fList = directory.listFiles();\n for (File file : fList){\n if (file.isFile()){\n System.out.println(file.getName());\n }\n }\n }", "@Override\n public String getFileList() {\n StringBuilder string = null;\n //if (parentFile.isDirectory()) {\n File parentFile = currentDir;\n string = new StringBuilder();\n for (File childFile : parentFile.listFiles()) {\n try {\n //TODO: Verify that Paths.get() is retrieving a valid path relative to the project's location.\n Path file = Paths.get(childFile.getPath());\n\n BasicFileAttributes attr = Files.readAttributes(file, BasicFileAttributes.class);\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"M\");\n String month = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"d\");\n String dayOfMonth = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"y\");\n String year = dateFormat.format(attr.creationTime().toMillis());\n\n char fileType = childFile.isDirectory() ? 'd' : '-'; //'-' represents a file.\n string.append(String.format(\"%srw-r--r--\", fileType)); //Linux style permissions\n string.append(\"\\t\");\n string.append(\"1\"); //?\n string.append(\" \");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(childFile.length()); //Length\n string.append(\" \");\n string.append(month); //Month\n string.append(\" \");\n string.append(dayOfMonth); //Day\n string.append(\" \");\n string.append(\" \");\n string.append(year); //Year\n string.append(\" \");\n string.append(childFile.getName());\n string.append(System.getProperty(\"line.separator\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n //}\n\n String format = \"%S\\t%d %d\\t%d\\t%d %S %d %d %S\";\n //return \"-rw-r--r-- 1 0 0 1073741824000 Feb 19 2016 1000GB.zip\";\n if (!string.equals(null)) {\n return string.toString();\n } else {\n return \"Error when creating file list.\";\n }\n }", "public List<File> findAll() {\n\t\treturn files;\n\t}", "java.util.List<java.lang.String>\n getFileNamesList();", "public Files files();", "private String[] nlstHelper(String args) {\n // Construct the name of the directory to list.\n String filename = currDirectory;\n if (args != null) {\n filename = filename + fileSeparator + args;\n }\n\n // Now get a File object, and see if the name we got exists and is a\n // directory.\n File f = new File(filename);\n\n if (f.exists() && f.isDirectory()) {\n return f.list();\n } else if (f.exists() && f.isFile()) {\n String[] allFiles = new String[1];\n allFiles[0] = f.getName();\n return allFiles;\n } else {\n return null;\n }\n }", "java.util.List<java.lang.String>\n getFileNamesList();", "java.util.List<entities.Torrent.FileInfo>\n getFileInfoList();", "@Override\n\tpublic List<File> getAll() {\n\t\t return getSession().\n\t createQuery(\"from File f\", File.class).\n\t getResultList();\n\t}", "public List getAll() throws FileNotFoundException, IOException;", "private static String files()\n\t{\n\t\tString path = dirpath + \"\\\\Server\\\\\";\n\t\tFile folder = new File(path);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tString msg1 = \"\";\n\n\t\tfor (int i = 0; i < listOfFiles.length; i++)\n\t\t{\n\t\t\tif (listOfFiles[i].isFile())\n\t\t\t{\n\t\t\t\tmsg1 = msg1 + \"&\" + listOfFiles[i].getName();\n\t\t\t}\n\t\t}\n\t\tmsg1 = msg1 + \"#\" + path + \"\\\\\";\n\t\treturn msg1;\n\t}", "public static void Java_ls(File dir, String display_method, String sort_method) {\n // TODO: list files\n File[] list = dir.listFiles();\n if (display_method==null&&sort_method==null){\n for (File file:list){\n System.out.println(file.getName());\n }\n }\n // list file properties\n else if (display_method.equalsIgnoreCase(\"property\")){\n if (sort_method!=null){\n list = sortFileList(list, sort_method);\n }\n for (File file:list){\n System.out.println(file.getName()+\" Size: \"+file.length()+\" Last Modified: \"+(new Date(file.lastModified())).toString());\n }\n }\n }", "public String[] listFiles() throws FileSystemUtilException \r\n\t{\r\n\t\tString remoteDir = null;\r\n\t\tString remoteFileName = null;\r\n\t\tString command = null;\r\n\t\tint signal = -1;\r\n\t\tlogger.debug(\"Begin: \"+getClass().getName()+\":listFiles()\");\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tconnect(); \r\n\t\t\t\r\n\t\t\tint lastSeperatorIndex = -1;\r\n\t\r\n\t\t\tif(remoteFilePath.lastIndexOf(\"/\") != -1){\r\n\t\t\t\tlastSeperatorIndex = remoteFilePath.lastIndexOf(\"/\");\r\n\t\t\t}else if(remoteFilePath.lastIndexOf(\"\\\\\") != -1){\r\n\t\t\t\tlastSeperatorIndex = remoteFilePath.lastIndexOf(\"\\\\\");\r\n\t\t\t}\r\n\t\t\tif(lastSeperatorIndex == remoteFilePath.length()-1)\r\n\t\t\t{\r\n\t\t\t\tremoteDir = remoteFilePath;\r\n\t\t\t\tremoteFileName = \"\";\r\n\t\t\t\tlogger.debug(\"file path ends with / - directory is \"+remoteDir+\" , filename is \"+remoteFileName);\r\n\t\t\t\tcommand = \"cd \"+remoteDir;\t\t\t\r\n\t\t\t\tsignal = executeSimpleCommand(command);\r\n\t\r\n\t\t\t\tif(signal != 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t//invlid directory/file\r\n\t\t\t\t\tthrow new FileSystemUtilException(\"ET0017\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tremoteDir = remoteFilePath.substring(0,lastSeperatorIndex+1);\r\n\t\t\t\tremoteFileName = remoteFilePath.substring(lastSeperatorIndex+1,remoteFilePath.length());\r\n\t\t\t\tlogger.debug(\"file path not ends with / - directory is \"+remoteDir+\" , filename is \"+remoteFileName);\r\n\t\t\t\tcommand = \"cd \"+remoteDir;\r\n\t\t\t\tsignal = executeSimpleCommand(command);\r\n\t\t\t\tif(signal != 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t//invlid directory/file\r\n\t\t\t\t\tthrow new FileSystemUtilException(\"ET0017\");\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\tif(!remoteFileName.startsWith(\"*.\") && !remoteFileName.endsWith(\".*\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tlogger.debug(\"file/directory name \"+remoteFileName+\" not started with *. or ends wirh .*\");\r\n\t\t\t\t\tcommand = \"cd \"+remoteDir+remoteFileName;\r\n\t\t\t\t\tsignal = executeSimpleCommand(command);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\tif(signal != 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tboolean isFile = false;\r\n\t\t\t\t\t\tcommand = \"ls \"+remoteDir;\r\n\t\t\t\t\t\texecuteSimpleCommand(command);\r\n\t\t\t\t\t\tString[] tempFileNames = getFileNamesArray(output);\r\n\t\t\t\t\t\tfor(int j = 0; j < tempFileNames.length; j++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(remoteFileName.equals(tempFileNames[j]))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tisFile = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(!isFile)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//invlid directory/file\r\n\t\t\t\t\t\t\tthrow new FileSystemUtilException(\"ET0017\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tlogger.debug(remoteFileName+\" is a file\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlogger.debug(remoteFileName+\" is a directory\");\r\n\t\t\t\t\t\tremoteDir = remoteDir+remoteFileName;\r\n\t\t\t\t\t\tremoteFileName = \"\";\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlogger.debug(\"Before getting list of files : current dir \"+remoteDir+\" getting files list for \"+remoteFileName);\r\n\t\t\tcommand = \"cd \"+remoteDir+\";ls -F \"+remoteFileName;\r\n\t\t\tsignal = executeSimpleCommand(command);\r\n\t\t\tdisconnect();\r\n\t\t\tif(signal != 0)\r\n\t\t\t{\t\t\t \r\n\t\t\t\tthrow new FileSystemUtilException(\"ET0017\");\r\n\t\t\t}\r\n\t\t\tString[] filesList = getFileNamesArray(output);\t\t\r\n\t\t\tlogger.debug(\"End: \"+getClass().getName()+\":listFiles()\");\r\n\t\t\treturn filesList;\r\n\t\t}\r\n\t\t\r\n\t\tcatch(FileSystemUtilException e)\r\n\t\t{\r\n\t\t disconnect();\r\n\t\t if(e.getMessage() != null && e.getMessage().equals(\"FL0071\")){\r\n\t\t \tthrow new FileSystemUtilException(\"FL0071\");\r\n\t\t }\r\n\t\t\tthrow new FileSystemUtilException(e.getErrorCode(),e.getException());\r\n\t\t}\r\n\t\t\r\n\t}", "entities.Torrent.FileInfo getFiles(int index);", "public void listMyFiles(){\n\t\tpeer.removeFiles();\n\t\tint count = localModel.getRowCount();\n\t\tif (count > 0){\n\t\t\tfor (int i = count-1; i >= 0; i--){\n\t\t\t\tlocalModel.removeRow(i);\n\t\t\t}\n\t\t}\n\t\tFile folder = fileChooser.getSelectedFile();\n\t\tpeer.setFolder(folder.getAbsolutePath());\n shareFolder = folder.getAbsolutePath();\n\t\tconsole(\"\\\"\" + folder.getAbsolutePath() + \"\\\" set as Shared Directory.\");\n\t\tmyFiles = folder.listFiles();\n\t\tfor(File file : myFiles){\n\t\t\tlocalModel.addRow(new Object[]{file.getName(),file.length()});\n\t\t\ttry {\n\t\t\t\tpeer.addFile(file.getName(),file.length());\n\t\t\t} catch (UnknownHostException e1) {e1.printStackTrace();}\n\t\t}\n\t}", "private File[] getFilesInDirectory() {\n\t\t//Show Directory Dialog\n\t\tDirectoryChooser dc = new DirectoryChooser();\n\t\tdc.setTitle(\"Select Menu File Directory\");\n\t\tString folderPath = dc.showDialog(menuItemImport.getParentPopup().getScene().getWindow()).toString();\n\t\t\n\t\t//Update Folder location text\n\t\ttxtFolderLocation.setText(\"Import Folder: \" + folderPath);\n\t\t//Now return a list of all the files in the directory\n\t\tFile targetFolder = new File(folderPath);\n\t\t\n\t\treturn targetFolder.listFiles(); //TODO: This returns the names of ALL files in a dir, including subfolders\n\t}", "public File[] showFiles(String filePath) throws FileNotFoundException {\r\n File folder = new File(filePath);\r\n File[] listOfFiles = folder.listFiles();\r\n if (listOfFiles == null) {\r\n throw new FileNotFoundException(\"No files found in directory\");\r\n }\r\n for (int i = 0; i < listOfFiles.length; i++) {\r\n if (listOfFiles[i].isFile()) {\r\n System.out.println(\"(\"+i+\") \" + listOfFiles[i].getName());\r\n }\r\n }\r\n return listOfFiles;\r\n }", "private static void listar(Path a){\n File dir = new File(a.toString());\n if(dir.isDirectory()){\n String[] dirContents = dir.list();\n for(int i =0; i < dirContents.length; i++){\n System.out.println(dirContents[i]);\n }\n }\n }", "private static void retrieveFiles(File fileDir) {\n List<String> files = Arrays.asList(fileDir.list());\n if (files.isEmpty()) {\n System.out.println(\"There are no files under current directory.\");\n return;\n }\n Collections.sort(files);\n int numOfFiles = files.size();\n System.out.println(\"There are \" + numOfFiles + \" files under current directory.\");\n for (int i = 1; i <= numOfFiles; i++) {\n System.out.println(i + \" - \" + files.get(i - 1));\n }\n }", "public List<Resource> getFileLocations() throws IOException;", "@Override\n\tpublic List<File> getListing(File directory, FileFilter filter) {\n\t\tfileIconMap = new HashMap<>();\n\n\t\tif (directory == null) {\n\t\t\treturn List.of();\n\t\t}\n\t\tFile[] files = directory.listFiles(filter);\n\t\treturn (files == null) ? List.of() : List.of(files);\n\t}", "public List<File> getFiles(String dir)\r\n\t{\r\n\t\tList<File> result = null;\r\n\t\tFile folder = new File(dir);\r\n\t\tif (folder.exists() && folder.isDirectory())\r\n\t\t{\r\n\t\t\tFile[] listOfFiles = folder.listFiles(); \r\n\t\t\t \r\n\t\t\tresult = new ArrayList<File>();\r\n\t\t\tfor (File file : listOfFiles)\r\n\t\t\t{\r\n\t\t\t\tif (file.isFile())\r\n\t\t\t\t\tresult.add(file);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tlogger.error(\"check to make sure that \" + dir + \" exists and you have permission to read its contents\");\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public String[] list() {\n String[] list = _file.list();\n if (list == null) {\n return null;\n }\n for (int i = list.length; i-- > 0; ) {\n if (new File(_file, list[i]).isDirectory() && !list[i].endsWith(\"/\")) {\n list[i] += \"/\";\n }\n }\n return list;\n }", "public void listFiles(String path) {\r\n String files;\r\n File folder = new File(path);\r\n File[] listOfFiles = folder.listFiles();\r\n\r\n for (int i = 0; i < listOfFiles.length; i++) {\r\n\r\n if (listOfFiles[i].isFile()) {\r\n files = listOfFiles[i].getName();\r\n if (files.endsWith(\".png\") || files.endsWith(\".PNG\")\r\n || files.endsWith(\".gif\") || files.endsWith(\".GIF\")) {\r\n //System.out.println(files);\r\n pathList.add(path+\"\\\\\");\r\n fileList.add(files);\r\n }\r\n }\r\n \r\n else {\r\n listFiles(path+\"\\\\\"+listOfFiles[i].getName());\r\n }\r\n }\r\n }", "private List<Path> listSourceFiles(Path dir) throws IOException {\n\t\tList<Path> result = new ArrayList<>();\n\t\ttry (DirectoryStream<Path> stream = Files.newDirectoryStream(dir, \"*.json\")) {\n\t\t\tfor (Path entry: stream) {\n\t\t\t\tresult.add(entry);\n\t\t\t}\n\t\t} catch (DirectoryIteratorException ex) {\n\t\t\t// I/O error encounted during the iteration, the cause is an IOException\n\t\t\tthrow ex.getCause();\n\t\t}\n\t\treturn result;\n\t}", "private List<File> getFiles() {\n\t\tList<File> mFileLists = new ArrayList<File>();\n\t\tfor (Category category : mFiles) {\n\t\t\tif (category.getName() == null) {\n\t\t\t\tLog.i(TAG, \"no file seleted=\" + category.tag);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmFileLists.add(new File(category.getName()));\n\t\t}\n\t\treturn mFileLists;\n\t}", "public interface IReadDirectory {\n\n /**\n * List all files existing in the given directory.\n * \n * @param directory\n * @return file list\n * @throws FindException\n */\n List<File> list(String directory) throws FindException;\n\n}", "public String [] listContents(File directory) throws IOException{\n\t\tFile [] dirContents = directory.listFiles();\n\t\tString [] arrOfFileNames = new String[dirContents.length];\n\t\tint i = 0;\n\t\tfor(File file: dirContents) {\n\t\t\tarrOfFileNames[i++] = file.getName();\n }\n return arrOfFileNames;\n }", "public ArrayList<FileDesc> getAllFiles() {\n\n\t\tArrayList<FileDesc> result = new ArrayList<FileDesc>();\n\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement ps = ((org.inria.jdbc.Connection) db).prepareStatement(TCell_QEP_IDs.QEP.EP_getAllFiles);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\n\t\t\tString query = \"SELECT FILEGID, TYPE, DESCRIPTION FROM FILE\";\n\t\t\tSystem.out.println(\"Executing query : \" + query);\t\t\t\n\n\t\t\t\n\t\t\twhile (rs.next() == true) {\n\t\t\t\tString fileGID = rs.getString(1);\n\t\t\t\tString type = rs.getString(2);\n\t\t\t\tString Description = rs.getString(3);\n\t\t\t\tresult.add(new FileDesc(fileGID, \"\", \"\", \"\", type, Description));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// Uncomment when the close function will be implemented\n\t\t\t// attemptToClose(ps);\n\t\t\t\n\t\t}\n\n\t\treturn result;\n\t}", "@GetMapping(\"/getallfiles\")\n public String getListFiles(Model model) {\n model.addAttribute(\"files\",\n files.stream()\n .map(fileName -> MvcUriComponentsBuilder\n .fromMethodName(FileUploadController.class, \"getFile\", fileName).build().toString())\n .collect(Collectors.toList()));\n model.addAttribute(\"totalFiles\", \"TotalFiles: \" + files.size());\n return \"listFiles\";\n }", "public List <WebFile> getChildFiles()\n{\n if(_type==FileType.SOURCE_DIR) return getSourceDirChildFiles();\n return _file.getFiles();\n}", "ds.hdfs.generated.FileMetadata getFiles(int index);", "public List<LsFileEntry> lsFiles() \n \tthrows CorruptObjectException, IOException {\n \t\tMap<String, LsFileEntry> cachedEntries = new TreeMap<String, LsFileEntry>(); \n \t\t\n \t\t//first read all the files which are the Index\n \t\tfinal DirCache cache = DirCache.read(db);\n \t\tfor (int i = 0; i < cache.getEntryCount(); i++) {\n \t\t\tfinal DirCacheEntry ent = cache.getEntry(i);\n \t\t\t\n \t\t\t//X TODO this is surely not enough ;)\n \t\t\tLsFileStatus fs = LsFileStatus.CACHED;\n \t\t\tLsFileEntry fileEntry = new LsFileEntry(ent.getPathString(), fs, ent.getObjectId());\n \t\t\tcachedEntries.put(ent.getPathString(), fileEntry);\n \t\t}\n \n \t\t// now read all the files on the disk\n \t\tSet<String> filesOnDisk = new TreeSet<String>(); \n \t\tFile workDir = db.getWorkDir();\n \t\taddFiles(filesOnDisk, \"\", workDir);\n \t\t\n \t\t// and now compare them. since both are already sorted because we used TreeMap and TreeSort\n \t\t// we can simply crawl over them end compare them. kind of a merge sort though...\n \t\tArrayList<LsFileEntry> fileEntries = new ArrayList<LsFileEntry>();\n \n \t\tIterator<String> cacheIt = cachedEntries.keySet().iterator();\n \t\tIterator<String> fileIt = filesOnDisk.iterator();\n \t\t\n \t\tString cachedPath = null;\n \t\tString fsPath = null;\n \t\twhile (cacheIt.hasNext() || fileIt.hasNext()) {\n \t\t\t\n \t\t\tif (cachedPath == null && cacheIt.hasNext()) {\n \t\t\t\tcachedPath = cacheIt.next();\n \t\t\t}\n \t\t\t\n \t\t\tif (fsPath == null && fileIt.hasNext()) {\n \t\t\t\tfsPath = fileIt.next();\n \t\t\t}\n \t\t\t\n \t\t\tif (cachedPath != null && cachedPath.equals(fsPath)) {\n \t\t\t\t// oh found in both systems\n \t\t\t\tfileEntries.add(cachedEntries.get(cachedPath));\n \t\t\t\tcachedPath = null;\n \t\t\t\tfsPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tif (cachedPath != null && !fileEntries.contains(cachedPath)) {\n \t\t\t\tfileEntries.add(new LsFileEntry(cachedPath, LsFileStatus.REMOVED, null));\n \t\t\t\tcachedPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tif (fsPath != null && !cachedEntries.keySet().contains(fsPath)) {\n \t\t\t\tfileEntries.add(new LsFileEntry(fsPath, LsFileStatus.OTHER, null));\n \t\t\t\tfsPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tcachedPath = null;\n \t\t\tfsPath = null;\n \t\t\t\n \t\t}\n \t\t\n \t\treturn fileEntries;\n \t}", "public String[] getListOfFiles() {\n\t\treturn listOfFiles;\n\t}", "public static void main(String args[]) throws IOException {\n File file = new File(\"D:\\\\ExampleDirectory\");\r\n //List of all files and directories\r\n listOfFiles(file);\r\n }", "@Test\n public void filesGetTest() throws ApiException {\n Integer limit = null;\n Integer offset = null;\n List<FileInfo> response = api.filesGet(limit, offset);\n\n // TODO: test validations\n }", "public ArrayList<String> getFiles() {\n\n\t\tif (m_db == null)\n\t\t\treturn new ArrayList<String>();\n\n\t\t//\n\t\t// query database\n\t\t//\n\t\tCursor cursor = m_db.query(FILE_TABLE_NAME,\n\t\t\t\tnew String[] { FILE_FIELD_PATH }, null, null, null, null, null);\n\n\t\t//\n\t\t// construct array list\n\t\t//\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\t//\n\t\t// collect result set\n\t\t//\n\t\tcollectResultSet(cursor, list);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// done\n\t\t//\n\t\treturn list;\n\t}", "private static Collection<File> listFiles(File directory, FilenameFilter filter, boolean recurse) {\n\t\tVector<File> files = new Vector<File>();\n\t\tFile[] entries = directory.listFiles();\n\n\t\tfor (File entry : entries) {\n\t\t\tif (filter == null || filter.accept(directory, entry.getName()))\n\t\t\t\tfiles.add(entry);\n\t\t\tif (recurse && entry.isDirectory())\n\t\t\t\tfiles.addAll(listFiles(entry, filter, recurse));\n\t\t}\n\t\treturn files;\n\t}", "private List<DMTFile> listFilesRecursive(String path) {\n\t\tList<DMTFile> list = new ArrayList<DMTFile>();\n\t\tDMTFile file = getFile(path); //Get the real file\n\t\t\n\t\tif (null != file ){ //It checks if the file exists\n\t\t\tif (! file.isDirectory()){\n\t\t\t\tlist.add(file);\n\t\t\t} else {\n\t\t\t\tDMTFile[] files = listFilesWithoutConsoleMessage(file.getPath());\n\t\t\t\tfor (int x = 0; x < files.length; x++) {\n\t\t\t\t\tDMTFile childFile = files[x];\t\t \n\t\t\t\t\tif (childFile.isDirectory()){\n\t\t\t\t\t\tlist.addAll(listFilesRecursive(childFile.getPath()));\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlist.add(childFile);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "protected File[] getFiles() {\r\n DirectoryScanner scanner = new DirectoryScanner(rootDir,true,\"*.xml\");\r\n List<File> files = scanner.list();\r\n return files.toArray(new File[files.size()]);\r\n }", "protected abstract String[] getFolderList() throws IOException;", "public void getListaArchivos() {\n\n File rutaAudio = new File(Environment.getExternalStorageDirectory() + \"/RecordedAudio/\");\n File[] archivosAudio = rutaAudio.listFiles();\n\n for (int i = 0; i < archivosAudio.length; i++) {\n File file = archivosAudio[i];\n listadoArchivos.add(new Archivo(file.getName()));\n }\n\n File rutaVideos = new File(Environment.getExternalStorageDirectory() + \"/RecordedVideo/\");\n File[] archivosVideo = rutaVideos.listFiles();\n\n for (int i = 0; i < archivosVideo.length; i++) {\n File file = archivosVideo[i];\n listadoArchivos.add(new Archivo(file.getName()));\n }\n }", "public static void Java_ls(File dir, String display_method, String sort_method) {\n // TODO: list files\n File[] fileList = dir.listFiles();\n if (display_method == null) {\n for (File file : fileList) {\n System.out.println(file.getName());\n }\n } else if (sort_method == null) {\n for (File file : fileList) {\n System.out.format(\"%-15s Size: %-10s Last Modified: %-40s\", file.getName(), file.length(), new Date(file.lastModified()));\n System.out.println();\n }\n } else {\n File[] sorted = sortFileList(fileList, sort_method);\n for (File file : sorted) {\n System.out.format(\"%-15s Size: %-10s Last Modified: %-40s\", file.getName(), file.length(), new Date(file.lastModified()));\n System.out.println();\n }\n }\n }", "public String[] listFilesString() {\n\t\tFile[] FL = listFiles();\n\t\treturn FU.listFilesString(FL);\n\t}", "public void listFilesAndFolders(String directoryName) throws IOException{\n File directory = new File(directoryName);\n System.out.println(\"List of Files and folders in: \" + directory.getCanonicalPath());\n //get all the files from a directory\n File[] fList = directory.listFiles();\n for (File file : fList){\n System.out.println(file.getName());\n }\n }", "private Vector getDirectoryEntries(File directory) {\n Vector files = new Vector();\n\n // File[] filesInDir = directory.listFiles();\n String[] filesInDir = directory.list();\n\n if (filesInDir != null) {\n int length = filesInDir.length;\n\n for (int i = 0; i < length; ++i) {\n files.addElement(new File(directory, filesInDir[i]));\n }\n }\n\n return files;\n }", "public ArrayList<File> getFileList(File file){\r\n\t\tFile dir = new File(file.getParent());\r\n\t\r\n\t\tString filename = file.getName();\r\n\t\t//get all files with the same beginning and end\r\n\t\tint index = filename.indexOf(\"Version\");\r\n\t\tString stringStart = filename.substring(0, index-1);\r\n\t\t\r\n\t\tArrayList<File> files = new ArrayList<File>();\r\n\t\t\r\n\t\tfor(File f:dir.listFiles()){\r\n\t\t\tif(f.getName().contains(stringStart))files.add(f);\r\n\t\t}\r\n\t\t\r\n\t\treturn files;\t\r\n\t}", "public static List<String> getFilesFromDirectory(){\n File wordTextFolder = new File(FOLDER_OF_TEXT_FILES.toString());\n File[] filesInsideFolder = wordTextFolder.listFiles();\n List<String> paths = new ArrayList<>();\n String name;\n\n for (File txtFile : filesInsideFolder){\n paths.add( txtFile.getPath() );\n name = txtFile.getName();\n name = name.substring(0, name.lastIndexOf('.'));\n\n if(name.length() > Table.maxFileNameLength){\n Table.setMaxFileNameLength(name.length());\n }\n }\n return paths;\n }", "public void getPeerFiles(){\n\t\t\n\t\tFile[] files = new File(path).listFiles();\n\t\tfor (File file : files) {\n\t\t\tfileNames.add(file.getName());\n\t\t}\n\t\tSystem.out.println(\"Number of Files Registerd to the server - \"+fileNames.size());\n\t\tSystem.out.println(\"To search for file give command: get <Filename>\");\n\t\tSystem.out.println(\"To refresh type command: refresh\");\n\t\tSystem.out.println(\"To disconnect type command: disconnect\");\n\t}", "@java.lang.Override\n public java.util.List<entities.Torrent.FileInfo> getFilesList() {\n return files_;\n }", "private List<File> getFileList(File root){\n\t List<File> returnable = new ArrayList<File>();\n\t if(root.exists()){\n\t\t for(File currentSubFile : root.listFiles()){\n\t\t\t if(currentSubFile.isDirectory()){\n\t\t\t\t returnable.addAll(getFileList(currentSubFile));\n\t\t\t } else {\n\t\t\t\t returnable.add(currentSubFile);\n\t\t\t }\n\t\t }\n\t }\n\t return returnable;\n }", "public static void listOfFiles(File dirPath){\n\t\tFile filesList[] = dirPath.listFiles();\r\n \r\n\t\t// For loop on each item in array \r\n for(File file : filesList) {\r\n if(file.isFile()) {\r\n System.out.println(file.getName());\r\n } else {\r\n \t // Run the method on each nested folder\r\n \t listOfFiles(file);\r\n }\r\n }\r\n }", "private static ArrayList<String> getImagesInFileSystem() {\n\t\t// get file list in database\n\t\tArrayList<String> fileNameList = new ArrayList<String>();\n\t\t\n\t\tFile folder = new File(IMAGE_DIRECTORY);\n\t File[] listOfFiles = folder.listFiles();\n\t \n\t for (File currFile : listOfFiles) {\n\t if (currFile.isFile() && !currFile.getName().startsWith(\".\")) {\n\t \t fileNameList.add(currFile.getName());\n\t }\n\t }\n\t \n\t return fileNameList;\n\t}", "public static void main(String[] args) {\nFile files=new File(\"C:\\\\Users\\\\k74\");\nString filenames[]=files.list();\nfor(String filename :filenames)\n\tSystem.out.println(filename);\n\t}", "public synchronized int load()\n {\n int cb = (maxFiles * maxChars * SysLib.CBCHAR) + \n (maxFiles * SysLib.CBINT);\n byte b[] = new byte[cb];\n files.clear();\n int fileNameOffset = maxFiles * SysLib.CBINT;\n int offset = 0;\n\n // Read the entire potential directory listing\n if (inode.read(0, b) < 0)\n {\n return -1;\n }\n\n for (int i = 0; i < maxFiles; i++)\n {\n // Read the file name length\n int strLen = SysLib.bytes2int(b, offset);\n offset += SysLib.CBINT;\n\n // Read the file name, if one is stored\n if (strLen > 0)\n {\n byte strBytes[] = new byte[strLen * SysLib.CBCHAR];\n\n System.arraycopy(b, fileNameOffset, strBytes, 0,\n strBytes.length);\n\n files.add(new String(strBytes));\n\n fileNameOffset += strLen;\n }\n // Add a zero-length placeholder for this listing\n else\n {\n files.add(new String(\"\"));\n }\n }\n\n return 0;\n }", "protected void handleLs() {\r\n\t\tSystem.out.printf(\"Listing available files.%n\");\r\n\r\n\t\tFile[] availableFiles = new File(fileBase).listFiles();\r\n\r\n\t\tif (availableFiles == null) {\r\n\t\t\tSystem.err.printf(\"%s is not a directory.%n\", fileBase);\r\n\t\t\tsendMessage(String.valueOf(ERROR));\r\n\t\t} else {\r\n\t\t\tsendMessage(String.valueOf(availableFiles.length));\r\n\r\n\t\t\t/* send each file name */\r\n\t\t\tfor (File file : availableFiles) {\r\n\t\t\t\tsendMessage(file.getName());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private ArrayList<String> listFilesForFolder(File folder, TaskListener listener) {\n \tArrayList<String> lista = new ArrayList<String>();\n \tif(folder.exists()){\n\t \tFile[] listOfFiles = folder.listFiles();\n\t\t\t if(listOfFiles != null){\t\n\t\t\t\tfor (File file : listOfFiles) {\n\t\t\t\t\t if (file.isDirectory()) {\t\n\t\t\t\t \tlista.add(file.getName());\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t }\n\t\t}\n\t\treturn lista;\n\t}", "private static void listFiles(File rootFile, String filename, List<File> fileList) {\n File[] files_ = rootFile.listFiles();\n if(files_ != null) {\n for(File file : files_) {\n if(file.isFile() && file.getName().equalsIgnoreCase(filename))\n \t fileList.add(file);\n else\n listFiles(file, filename, fileList);\n }\n }\n }", "java.lang.String getFileNames(int index);", "java.lang.String getFileNames(int index);", "public File[] CreateListFiles() {\n\t\tif (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {\n\t\t\tToast.makeText(this, \"Error! No SDCARD Found!\", Toast.LENGTH_LONG).show();\n\t\t} else {\n\t\t\tfile = new File(Environment.getExternalStorageDirectory(), File.separator + \"/MelanomaPics/\" + File.separator + MelanomaActivity.pacientSelected);\n\t\t\tfile.mkdirs();\n\t\t}\n\t\t// pega todas as imagens do diretorio MelanomaPics e coloca dentro de\n\t\t// uma lista\n\t\tif (file.isDirectory()) {\n\t\t\tlistFile = file.listFiles();\n\t\t}\n\t\treturn listFile;\n\t}", "public ArrayList<String> getList(String path) throws Exception {\n\t\t\t\n\t\t\tSmbFile file = new SmbFile(path, new NtlmPasswordAuthentication(null, user, pass));\n\t\t\tArrayList<String> fileList = new ArrayList<String>();\n\t\t\t\n\t\t\tSmbFile[] fArr = file.listFiles();\n\t\t\t\n\t\t\tfor(int a=0;a<fArr.length;a++) {\n\t\t\t\tif(accept(fArr[a]) == true) {\n\t\t\t\t\tfileList.add(fArr[a].getName());\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn fileList;\n\t\t}", "public static List<String> dummyListFiles(String startDir) {\n String[] array;\n List<String> list = new ArrayList<>();\n\n File f = new File(startDir);\n\n array = f.list();\n\n for (String item : array) {\n list.add(item);\n }\n\n return list;\n }", "public String[] GetAllFileNames() {\n \tFile dir = new File(fileStorageLocation.toString());\n \tString[] matchingFiles = dir.list(new FilenameFilter() {\n \t public boolean accept(File dir, String name) {\n \t return name.startsWith(\"1_\");\n \t }\n \t});\n \t\n \tfor (int i=0; i < matchingFiles.length; i++)\n \t{\n \t\tmatchingFiles[i] = matchingFiles[i].replaceFirst(\"1_\", \"\");\n \t}\n \t\n return matchingFiles;\n }", "public java.util.List<entities.Torrent.FileInfo> getFilesList() {\n if (filesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(files_);\n } else {\n return filesBuilder_.getMessageList();\n }\n }", "public static void main(String[] args) {\n File directoryPath = new File(\"C:\\\\Users\\\\jarek\\\\Downloads\");\n //List of all files and directories\n String[] contents = directoryPath.list();\n\n Pattern p= Pattern.compile(\"zip$\");\n Matcher m;\n Vector<String> lis = new Vector<>();\n for(int i = 0; i< Objects.requireNonNull(contents).length; i++){\n m=p.matcher(contents[i]);\n if(m.find()) lis.addElement(contents[i]);\n }\n System.out.println(\"List of files and directories in the specified directory:\");\n for (String content : contents) {\n System.out.println(content);\n }\n }" ]
[ "0.83478725", "0.8122581", "0.79644424", "0.78222", "0.7811662", "0.7796", "0.7720558", "0.7715556", "0.7487695", "0.74523413", "0.7381689", "0.7298556", "0.7249194", "0.72157615", "0.7197994", "0.71633995", "0.71295094", "0.7117376", "0.70788085", "0.7065956", "0.7060289", "0.7024329", "0.69992876", "0.69755054", "0.69444996", "0.6919642", "0.68710965", "0.6870224", "0.685722", "0.68548614", "0.683762", "0.68035346", "0.67991436", "0.67902285", "0.67319435", "0.670177", "0.66941124", "0.6689429", "0.66844255", "0.66544574", "0.66541296", "0.66518754", "0.66211736", "0.66170245", "0.66137844", "0.6604083", "0.6582483", "0.6580359", "0.65738004", "0.6565181", "0.6554645", "0.65445274", "0.653221", "0.65069866", "0.6505777", "0.65024173", "0.6500806", "0.6475937", "0.6470537", "0.64700204", "0.6468186", "0.6455602", "0.6450179", "0.64414775", "0.6435183", "0.6430722", "0.6419047", "0.63991475", "0.6395051", "0.63864815", "0.6382446", "0.6374522", "0.6365121", "0.63553554", "0.6355292", "0.63516635", "0.6340097", "0.63356465", "0.6335192", "0.6325776", "0.63253504", "0.6325307", "0.6317693", "0.63110983", "0.63100123", "0.6307363", "0.6305237", "0.6298598", "0.6293706", "0.6290767", "0.62880623", "0.627614", "0.62744087", "0.62744087", "0.62639767", "0.6237791", "0.623656", "0.6231401", "0.62313944", "0.6227485" ]
0.64623123
61
sort a list of files by name
public static List<File> sortByName(List<File> files) { Comparator<File> comp = new Comparator<File>() { @Override public int compare(File file1, File file2) { return file1.getName().compareTo(file2.getName()); } }; Collections.sort(files, comp); return files; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static File[] sortFileList(File[] list, String sort_method) {\n // sort the file list based on sort_method\n // if sort based on name\n if (sort_method.equalsIgnoreCase(\"name\")) {\n Arrays.sort(list, new Comparator<File>() {\n public int compare(File f1, File f2) {\n return (f1.getName()).compareTo(f2.getName());\n }\n });\n }\n else if (sort_method.equalsIgnoreCase(\"size\")) {\n Arrays.sort(list, new Comparator<File>() {\n public int compare(File f1, File f2) {\n return Long.valueOf(f1.length()).compareTo(f2.length());\n }\n });\n }\n else if (sort_method.equalsIgnoreCase(\"time\")) {\n Arrays.sort(list, new Comparator<File>() {\n public int compare(File f1, File f2) {\n return Long.valueOf(f1.lastModified()).compareTo(f2.lastModified());\n }\n });\n }\n return list;\n }", "private static File[] sortFileList(File[] list, String sort_method) {\n // sort the file list based on sort_method\n // if sort based on name\n if (sort_method.equalsIgnoreCase(\"name\")) {\n Arrays.sort(list, new Comparator<File>() {\n public int compare(File f1, File f2) {\n return (f1.getName()).compareTo(f2.getName());\n }\n });\n } else if (sort_method.equalsIgnoreCase(\"size\")) {\n Arrays.sort(list, new Comparator<File>() {\n public int compare(File f1, File f2) {\n return Long.valueOf(f1.length()).compareTo(f2.length());\n }\n });\n } else if (sort_method.equalsIgnoreCase(\"time\")) {\n Arrays.sort(list, new Comparator<File>() {\n public int compare(File f1, File f2) {\n return Long.valueOf(f1.lastModified()).compareTo(f2.lastModified());\n }\n });\n }\n return list;\n }", "public static File[] getSortedFiles(File[] files){\n Arrays.sort(files, new Comparator<File>() {\t\n \tpublic int compare(File o1, File o2){\n \t\tint n1 = getPageSequenceNumber(o1.getName());\n \t\tint n2 = getPageSequenceNumber(o2.getName());\n \t\treturn n1 - n2;\n \t}\n });\n \n return files;\n\t}", "public static void sortFiles(List<File> files)\r\n\t{\r\n\t\t/*\r\n\t\t * bubblesort algorithm\r\n\t\t */\r\n\t\tboolean changesMade = true;\r\n\t\t\r\n\t\twhile (changesMade)\r\n\t\t{\r\n\t\t\tchangesMade = false;\r\n\t\t\t\r\n\t\t\tfor(int x=1; x<files.size(); x++)\r\n\t\t\t{\r\n\t\t\t\t/*\r\n\t\t\t\t * if file at index x has a lower number than the file\r\n\t\t\t\t * at index x-1\r\n\t\t\t\t */\r\n\t\t\t\tif(getFileNum(files.get(x)) < getFileNum(files.get(x-1)))\r\n\t\t\t\t{\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * put this file in the previous index\r\n\t\t\t\t\t */\r\n\t\t\t\t\tFile tempFile = files.get(x);\r\n\t\t\t\t\tfiles.remove(x);\r\n\t\t\t\t\tfiles.add(x-1, tempFile);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//indicate changes were made\r\n\t\t\t\t\tchangesMade = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public void sortPaths(List<String> paths){\n //System.out.println(\"Received LIST: \"+Arrays.toString(paths.toArray()));\n Collections.sort(paths, new Comparator<String>() {\n\n @Override\n public int compare(String o1, String o2) {\n int s1 = Integer.valueOf(o1.substring(1));\n int s2 = Integer.valueOf(o2.substring(1));\n return s2-s1;\n }\n\n });\n //System.out.println(\"AFTER SORTING LIST: \"+Arrays.toString(paths.toArray()));\n }", "public void sortByName(String file) throws FileNotFoundException, IOException, ParseException {\n\t\tarrayList = pareseFile(file);\n\t\tFile file1 = new File(file);\n\t\t/*\n\t\t * for (int i = 0; i < arrayList.size(); i++) { JSONObject\n\t\t * person1=(JSONObject)arrayList.get(i); //person1.get(\"lastName\");\n\t\t * arrayList.sort((Person.CompareByName)person1); }\n\t\t */\n\t\t// mapper.writeValue(file1, arrayList);\n\t\tfor (int i = 0; i < arrayList.size() - 1; i++) {\n\t\t\tfor (int j = 0; j < arrayList.size() - i - 1; j++) {\n\n\t\t\t\tJSONObject person1 = (JSONObject) arrayList.get(j);\n\t\t\t\tJSONObject person2 = (JSONObject) arrayList.get(j + 1);\n\t\t\t\tif ((person1.get(\"lastName\").toString()).compareToIgnoreCase(person2.get(\"lastName\").toString()) > 0) {\n\t\t\t\t\tJSONObject temp = person1;\n\t\t\t\t\tarrayList.set(j, person2);\n\t\t\t\t\tarrayList.set(j + 1, temp);\n\t\t\t\t}\n\t\t\t}\n\t\t\tmapper.writeValue(file1, arrayList);\n\n\t\t}\n\t}", "public List<String> sortFilesByExtensions(String[] listOfFileNames) throws DirectoryException{\r\n\t\tList<String> orginalList = new CopyOnWriteArrayList<>(Arrays.asList(listOfFileNames));\r\n\t\tSet<String> setOfuniqueExtension = new TreeSet<>();\r\n\r\n\t\tfor (String item : listOfFileNames) {\r\n\t\t\tif (item.contains(\".\")) {\r\n\t\t\t\tString[] split = item.split(HelperContstants.DELIMETER);\r\n\t\t\t\tString temp = \".\" + split[split.length - 1];\r\n\t\t\t\tsetOfuniqueExtension.add(temp);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tList<String> finalListOfAllFiles = new LinkedList<>();\r\n\t\tsetOfuniqueExtension.stream().forEach((s1) -> {\r\n\t\t\tfor (int i = 0; i < orginalList.size(); i++) {\r\n\t\t\t\tif (orginalList.get(i).contains(s1)) {\r\n\t\t\t\t\tfinalListOfAllFiles.add(orginalList.get(i));\r\n\t\t\t\t\torginalList.remove(orginalList.get(i));\r\n\t\t\t\t\ti--;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\torginalList.stream().filter((s1) -> (!finalListOfAllFiles.contains(s1))).forEach((s1) -> {\r\n\t\t\tfinalListOfAllFiles.add(s1);\r\n\t\t});\r\n\r\n\t\treturn finalListOfAllFiles;\r\n\t}", "public ArrayList<String> sort (ArrayList<String> names) {\n Collections.sort(names);\n // return Arraylist\n return names;\n }", "public File[] SortFilesByName(final File[] Files, final boolean bCaseSensitive, final boolean bSortDesecnding) {\n\n File[] faFiles = null;\n Comparator<File> comparator = null;\n\n try {\n faFiles = Files.clone();\n if (faFiles == null) {\n throw new Exception(\"Null File Array Object\");\n }\n\n //check if array consists of more than 1 file\n if (faFiles.length > 1) {\n\n //creating Comparator\n comparator = new Comparator<File>() {\n\n @Override\n protected Object clone() throws CloneNotSupportedException {\n return super.clone(); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public int compare(File objFile1, File objFile2) {\n String Str1 = objFile1.getName();\n String Str2 = objFile2.getName();\n\n if (bCaseSensitive) {\n int iRetVal = objFile1.getName().compareTo(objFile2.getName());\n return iRetVal;\n } else {\n int iRetVal = objFile1.getName().compareToIgnoreCase(objFile2.getName());\n return iRetVal;\n }\n }\n };\n\n //Sorting Array\n if (bSortDesecnding) {//Descending\n\n } else {//Ascending\n Arrays.sort(faFiles, comparator);\n }\n }\n\n } catch (Exception e) {\n faFiles = null;\n } finally {\n return faFiles;\n }\n\n }", "private void sort() {\n setFiles(getFileStreamFromView());\n }", "public static <T extends FileData> void sortFileDataByOrder(List<T> fileDataToSort) {\n Collections.sort(fileDataToSort, new Comparator<T>() {\n public int compare(T o1, T o2) {\n int ret = Integer.valueOf(o1.getOrder()).compareTo(o2.getOrder());\n if (ret != 0) {\n return ret;\n }\n return OID.compareOids(o1.getUniqueOid(), o2.getUniqueOid());\n }\n });\n }", "ArrayList<String> sortFiles(String[] allFiles){\n\n ArrayList<String> tempArrayList = new ArrayList<String>();\n ArrayList<String> returnArrayList = new ArrayList<String>();\n String[] tempArray = allFiles;\n String[] returnArray;\n\n int numOfFiles = tempArray.length;\n\n //delete nonneeded files\n for(int k = 0; k < numOfFiles; k++){\n if (tempArray[k].startsWith(\"G-\") || tempArray[k].startsWith(\"M-\") || tempArray[k].startsWith(\"I-\")){\n tempArrayList.add(tempArray[k]);\n }\n }\n\n returnArray = new String[tempArrayList.size()];\n for(int i = 0; i < tempArrayList.size(); i++){\n returnArray[i] = tempArrayList.get(i);\n }\n\n //if 0 return empty array\n if (returnArray.length < 2){\n return returnArrayList;\n }\n\n //bubble sort\n for (int i = 0; i < returnArray.length-1; i++){\n for (int j = 0; j < returnArray.length-i-1; j++){\n //get string of full number from file\n String tempFirst = returnArray[j].split(\"_\")[2] + returnArray[j].split(\"_\")[3];\n String tempSecond = returnArray[j+1].split(\"_\")[2] + returnArray[j+1].split(\"_\")[3];\n //take out csv if it is not a subgraph\n if (!tempFirst.contains(\"_subgraph_\")){\n tempFirst = tempFirst.substring(0,14);\n }\n if (!tempSecond.contains(\"_subgraph_\")){\n tempSecond = tempSecond.substring(0,14);\n }\n //get int of string\n long tempFirstNum = Long.parseLong(tempFirst);\n long tempSecondNum = Long.parseLong(tempSecond);\n //compare and swap if bigger\n if (tempFirstNum >= tempSecondNum)\n {\n String temp = returnArray[j];\n returnArray[j] = returnArray[j+1];\n returnArray[j+1] = temp;\n }\n }\n }\n\n //add elements to arraylist with newest date being first\n for(int k = returnArray.length-1; k >= 0; k--){\n returnArrayList.add(returnArray[k]);\n System.out.println(allFiles[k]);\n }\n\n return returnArrayList;\n }", "@Override\n\tpublic int compare(File f1, File f2) {\n\t\treturn f1.compareTo(f2);\n\t}", "@Override\n public int compare(File o1, File o2) {\n if (desc) {\n return -o1.getFileName().compareTo(o2.getFileName());\n }\n return o1.getFileName().compareTo(o2.getFileName());\n }", "public static void userSort(ArrayList<String>list) throws FileNotFoundException{\r\n\t\tCollections.sort(list, new Comparator<String>(){\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(String o1, String o2) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t//Take the first string, split according to \";\", and store in an arraylist\r\n\t\t\t\tString[] values = o1.split(\";\");\r\n\t\t\t\t//Take the second string and do the same thing\r\n\t\t\t\tString[] values2 = o2.split(\";\");\r\n\t\t\t\t//Compare strings according to their integer values\r\n\t\t\t\treturn Integer.valueOf(values[0].replace(\"\\\"\", \"\")).compareTo(Integer.valueOf(values2[0].replace(\"\\\"\", \"\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\t//Output sorted ArrayList to a text file\r\n\t\t@SuppressWarnings(\"resource\")\r\n\t\tPrintStream out = new PrintStream(new FileOutputStream(\"SortedUsers.txt\"));\r\n\t\t\tfor(int i = 0; i < list.size(); i++){\r\n\t\t\t\tout.println(list.get(i));\r\n\t\t\t}\r\n\t}", "public static void ascendingOrder(File folder) {\n try {\n\n folder.exists();\n File[] listOfFiles = folder.listFiles();\n Arrays.sort(listOfFiles);\n if (listOfFiles.length > 0) {\n for(int i = 0; i < listOfFiles.length; i++) {\n\n System.out.println(\"File :\" + listOfFiles[i].getName());\n }\n } else {\n System.out.println(\"No Files in the folder\");\n }\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }", "public static ArrayList<File> sortOsmFiles(Set<File> files) {\n File[] sortingArray = files.toArray(new File[0]);\n Arrays.sort(sortingArray, LastModifiedFileComparator.LASTMODIFIED_COMPARATOR);\n ArrayList<File> sortedList = new ArrayList<>();\n for(int i = 0; i < sortingArray.length; i++) {\n sortedList.add(sortingArray[i]);\n }\n\n return sortedList;\n }", "public void testCompareViaSort() throws Exception {\n\n String correctlySortedNames[] = {\n \"0000_aaa\",\n \"0000_bbb\",\n \"1111DC_U_022107_L99_Sum.lsm\",\n \"6325DC_U_022107_L0_Sum.lsm\",\n \"6325DC_U_022107_L1_Sum.lsm\",\n \"6325DC_U_022107_L2_Sum.lsm\",\n \"6325DC_U_022107_L8_Sum.lsm\",\n \"6325DC_U_022107_L9_Sum.lsm\",\n \"6325DC_U_022107_L10_Sum.lsm\",\n \"6325DC_U_022107_L11_Sum.lsm\",\n \"6325DC_U_022107_L20_Sul.lsm\",\n \"6325DC_U_022107_L20_Sum.lsm\",\n \"6325DC_U_022107_L20_Sun.lsm\",\n \"6325DC_U_022107_L21_Sum.lsm\",\n \"6325DC_U_022107_L22_Sum.lsm\",\n \"6325DC_U_022107_L99_Sum.lsm\",\n \"6325DC_U_022107_L111_Sum.lsm\",\n \"6325DC_U_022107_L222_Sum.lsm\",\n \"7777DC_U_022107_L22_Sum.lsm\",\n \"9999_aaa\",\n \"9999_bbb\" \n };\n\n FileTarget[] targets = new FileTarget[correctlySortedNames.length];\n\n int index = 0;\n for (String name : correctlySortedNames) {\n int reverseOrder = targets.length - 1 - index;\n File file = new File(name);\n targets[reverseOrder] = new FileTarget(file);\n index++;\n }\n\n Arrays.sort(targets, new LNumberComparator());\n\n index = 0;\n for (FileTarget target : targets) {\n assertEquals(\"name \" + index + \" of \" + targets.length +\n \" was not sorted correctly\",\n correctlySortedNames[index], target.getName());\n index++;\n }\n }", "@Override\n public void sortCurrentList(FileSortHelper sort) {\n }", "private void sortItems(List<Transaction> theList) {\n\t\tloadList(theList);\r\n\t\tCollections.sort(theList, new Comparator<Transaction>() {\r\n\t\t\tpublic int compare(Transaction lhs, Transaction rhs) {\r\n\t\t\t\t// String lhsName = lhs.getName();\r\n\t\t\t\t// String rhsName = rhs.getName();\r\n\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "public static void sort(File input, File output) throws IOException {\n ExternalSort.mergeSortedFiles(ExternalSort.sortInBatch(input), output);\n }", "public void step3(){\n\n Collections.sort(names,(String a, String b) -> a.compareTo(b));\n }", "public static List<File> list(File dir) {\n\t\tFile[] fileArray = dir.listFiles();\n\t\tList<File> files = Arrays.asList(fileArray);\n\t\tArrayList<File> rtn = new ArrayList<File>();\n\t\tfiles = sortByName(files);\n\t\trtn.addAll(files);\n\t\treturn rtn;\n\t}", "public ArrayList<String> getSortedNames() throws Exception {\n FileReader fileReader = new FileReader();\n // Tell FileReader the file path\n fileReader.setFilePath(\"src/main/java/ex41/base/exercise41_input.txt\");\n // use FileReader to get an Arraylist and store it\n ArrayList<String> names = fileReader.getStrings();\n // call sort method to sort arraylist and return that\n return sort(names);\n }", "public File[] SortFilesByDate(final File[] Files, final boolean bSortDesecnding) {\n\n File[] faFiles = null;\n Comparator<File> comparator = null;\n\n try {\n faFiles = Files.clone();\n if (faFiles == null) {\n throw new Exception(\"Null File Array Object\");\n }\n\n //check if array consists of more than 1 file\n if (faFiles.length > 1) {\n\n //creating Comparator\n comparator = new Comparator<File>() {\n\n @Override\n protected Object clone() throws CloneNotSupportedException {\n return super.clone(); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public int compare(File objFile1, File objFile2) {\n String Str1 = objFile1.getName();\n String Str2 = objFile2.getName();\n if (bSortDesecnding) {\n int iRetVal = objFile1.getName().compareTo(objFile2.getName());\n return iRetVal;\n } else {\n int iRetVal = objFile1.getName().compareToIgnoreCase(objFile2.getName());\n return iRetVal;\n }\n }\n };\n\n //Sorting Array\n Arrays.sort(faFiles, comparator);\n }\n\n } catch (Exception e) {\n faFiles = null;\n } finally {\n return faFiles;\n }\n\n }", "public void f4(List<Book> a) {\r\n Collections.sort(a, new Comparator<Book>() {\r\n @Override\r\n public int compare(Book o1, Book o2) {\r\n String txt1[] = o1.getName().split(\" \");\r\n String txt2[] = o2.getName().split(\" \");\r\n String lastName1 = txt1[txt1.length - 1];\r\n String lastName2 = txt2[txt2.length - 1];\r\n return lastName1.compareToIgnoreCase(lastName2);\r\n }\r\n });\r\n\r\n }", "public static void main(String[] args) {\n\n File folder = new File(\"D:\\\\UNSORTED TBW\\\\\");\n File[] listOfFiles = folder.listFiles();\n String defaultPath = \"D:\\\\UNSORTED TBW\\\\\";\n\n\n //for loop for each file in the list\n for (int i = 0; i < listOfFiles.length; i++) {\n if (listOfFiles[i].isFile()) {\n\n //splits file name with - Only want the name before - so we call for 0.\n //This is the deafult way of show my shows are sorted.\n // also adds a - in the string in case there is no - in file\n String fileName = listOfFiles[i].getName() + \"-\";\n String[] names = fileName.split(\"-\");\n //System.out.print(names[0]+\"\\n\");\n Path folderPath = Paths.get(defaultPath + names[0].trim() + \"\\\\\");\n System.out.print(folderPath + \"\\n\");\n File directory = new File(String.valueOf(folderPath));\n\n //checks if directory exists. if does not exist, make new directory.\n if (!directory.exists()) {\n //makes a directory if not exists\n directory.mkdir();\n }\n //sets initial file directory\n File dirA = listOfFiles[i];\n //renames the file path of the file i nthe if loop\n //returns a user response if successful or not\n if (dirA.renameTo(new File(String.valueOf(folderPath) + \"\\\\\" + dirA.getName()))) {\n System.out.print(\"Move success\");\n } else {\n System.out.print(\"Failed\");\n }\n }\n }\n }", "static List sort(String[] file){\n\t\tList main = new List();\n\t\t// appends the first item to the new list\n\t\tif(file.length > 0){\n\t\t\tmain.append(0);\t\n\t\t}\n\t\t// loops through input array\n\t\tfor(int i = 1; i<file.length; i++){\n\t\t\tString word = file[i];\n\t\t\tint cursor = i-1;\n\t\t\tmain.moveTo(cursor);\n\t\t\t// loops through each list and checks to see if the value is similar\n\t\t\twhile(cursor>-1 && word.compareTo(file[main.getElement()])<1){\n\t\t\t\tcursor--;\n\t\t\t\tmain.movePrev();\n\t\t\t}\n\t\t\t// if it makes it to the end of the list prepend it to the list, \n\t\t\t// but if it isn't insert it after the current element\n\t\t\tif(main.getIndex() == -1){\n\t\t\t\tmain.prepend(i);\n\t\t\t}else {\n\t\t\t\tmain.insertAfter(i);\n\t\t\t}\n\t\t}\n\t\t// returns the finished list\n\t\treturn main;\n\t}", "public String sortBy();", "public void sort(List<String> list) {\n\t\tlist.sort(new Comparator<String>(){\n\t\t\t@Override\n\t\t\tpublic int compare(String s1, String s2) {\n\t\t\t\treturn s1.compareTo(s2);\n\t\t\t}\n\t\t});\n\t}", "public void step4(){\n\n Collections.sort(names,(a,b)->b.compareTo(a));\n\n\n System.out.println(\"names sorted are :\"+names);\n }", "public void sortGivenArray_name(){\n movieList = quickSort(movieList);\n }", "private void sortAlphabet()\n {\n for(int i = 0; i < movieList.size(); i++){\n for(int j = 1; j < movieList.size() - i; j++)\n {\n Movie a = movieList.get(j-1);\n Movie b = movieList.get(j);\n int result = a.getTitle().compareTo(b.getTitle());\n if(result > 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n }\n }\n }", "private void sortFileToScreen() throws FileNotFoundException {\n Scanner file = new Scanner(new File(FILE_NAME));\n while (file.hasNext()) {\n addToOrderedList(file.nextInt());\n }\n file.close();\n printList();\n }", "public void setPriorityFiles(List<String> files);", "public String doSort();", "public void sortManlist(){\r\n\t\tCollections.sort(Manlist, new MySort());\r\n\t}", "public void step1(){\n\n Collections.sort(names, new Comparator<String>() {\n @Override\n public int compare(String a, String b) {\n return b.compareTo(a);\n }\n });\n }", "static void mergeSortedFiles() throws IOException {\n\n\t\tBufferedReader[] bufReaderArray = new BufferedReader[noOfFiles];\n\t\tList<String> intermediateList = new ArrayList<String>();\n\t\tList<String> lineDataList = new ArrayList<String>();\n\n\t\tfor (int file = 0; file < noOfFiles; file++) {\n\t\t\tbufReaderArray[file] = new BufferedReader(new FileReader(DividedfileList.get(file)));\n\n\t\t\tString fileLine = bufReaderArray[file].readLine();\n\n\t\t\tif (fileLine != null) {\n\t\t\t\tintermediateList.add(fileLine.substring(0, 10));\n\t\t\t\tlineDataList.add(fileLine);\n\t\t\t}\n\t\t}\n\n\t\tBufferedWriter bufw = new BufferedWriter(new FileWriter(Outputfilepath));\n\n\t\t// Merge files into one file\n\n\t\tfor (long lineNumber = 0; lineNumber < totalLinesInMainFile; lineNumber++) {\n\t\t\tString sortString = intermediateList.get(0);\n\t\t\tint sortFile = 0;\n\n\t\t\tfor (int iter = 0; iter < noOfFiles; iter++) {\n\t\t\t\tif (sortString.compareTo(intermediateList.get(iter)) > 0) {\n\t\t\t\t\tsortString = intermediateList.get(iter);\n\t\t\t\t\tsortFile = iter;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tbufw.write(lineDataList.get(sortFile) + \"\\r\\n\");\n\t\t\tintermediateList.set(sortFile, \"-1\");\n\t\t\tlineDataList.set(sortFile, \"-1\");\n\n\t\t\tString nextString = bufReaderArray[sortFile].readLine();\n\n\t\t\tif (nextString != null) {\n\t\t\t\tintermediateList.set(sortFile, nextString.substring(0, 10));\n\t\t\t\tlineDataList.set(sortFile, nextString);\n\t\t\t} else {\n\t\t\t\tlineNumber = totalLinesInMainFile;\n\n\t\t\t\tList<String> ListToWrite = new ArrayList<String>();\n\n\t\t\t\tfor (int file = 0; file < intermediateList.size(); file++) {\n\t\t\t\t\tif (lineDataList.get(file) != \"-1\")\n\t\t\t\t\t\tListToWrite.add(lineDataList.get(file));\n\n\t\t\t\t\twhile ((sortString = bufReaderArray[file].readLine()) != null) {\n\t\t\t\t\t\tListToWrite.add(sortString);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tCollections.sort(ListToWrite);\n\t\t\t\tint index = 0;\n\t\t\t\twhile (index < ListToWrite.size()) {\n\t\t\t\t\tbufw.write(ListToWrite.get(index) + \"\\r\\n\");\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tbufw.close();\n\t\tfor (int file = 0; file < noOfFiles; file++)\n\t\t\tbufReaderArray[file].close();\n\t}", "static void qSort(ArrayList<String> names) {\n\t\tqs(names, 0, names.size()-1);\n\t}", "public static List<File> sortInBatch(File file, Comparator<String> cmp)\n throws IOException {\n return sortInBatch(file, cmp, DEFAULTMAXTEMPFILES, DEFAULT_MAX_MEM_BYTES,\n Charset.defaultCharset(), null, false);\n }", "protected void createFileList()\n {\n // get a sorted array of files\n File f = new File(appManagementDir);\n String[] files = f.list(new FileFilter(AppSettings.getFilter()));\n \n // get the adapter for this file list\n ArrayAdapter<String> a = (ArrayAdapter<String>)fileList.getAdapter();\n a.clear();\n \n // clear the check boxes\n fileList.clearChoices();\n \n if (files != null && files.length > 0)\n {\n Arrays.sort(files, 0, files.length, new Comparator<Object>() {\n \n @Override\n public int compare(Object object1, Object object2)\n {\n int comp = 0;\n if (object1 instanceof String \n && object2 instanceof String)\n {\n String str1 = (String)object1;\n String str2 = (String)object2;\n \n comp = str1.compareToIgnoreCase(str2);\n }\n \n return comp;\n }});\n \n \n // add all the files\n for (String fileName : files)\n {\n a.add(fileName);\n }\n \n fileList.invalidate();\n }\n }", "public static int mergeSortedFiles(List<File> files, File outputfile,\n final Comparator<String> cmp) throws IOException {\n return mergeSortedFiles(files, outputfile, cmp,\n Charset.defaultCharset());\n }", "private void sortChannelsName(List<Channel> channels) {\n Collections.sort(channels, new Comparator<Channel>() {\n public int compare(Channel c1, Channel c2) {\n return c1.getName().compareToIgnoreCase(c2.getName());\n }\n });\n }", "protected void sortResources()\n {\n PriorityComparator priorityComparator = new PriorityComparator();\n List<Resource> resources = getResources();\n Collections.sort(resources, priorityComparator);\n }", "public File sort(String path){\n try {\r\n File file = new File(path);\r\n BufferedReader readStream = new BufferedReader(new FileReader(file));\r\n String currentLine;\r\n int index = 0;\r\n int fileNumber = 1;\r\n while((currentLine = readStream.readLine()) != null){\r\n tempArray[index++] = currentLine;//read next line into the temporary array\r\n if(index >= limit){//check whether the number of lines stored in the temp has reached the maximum allowed\r\n Arrays.sort(tempArray);//sort tempArray\r\n Writer writeStream = null;//create a writer\r\n String currentFileName = \"temp\" + fileNumber + \".txt\";//this name is passed to the buffered writer\r\n writeStream = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(currentFileName)));//create a new temporary file to be written to\r\n fileArrayList.add(new File(currentFileName));//add file to list\r\n for(String line : tempArray){// write the lines currently stored in the array into the newly created file\r\n writeStream.write(line);\r\n writeStream.write(\"\\n\");\r\n }\r\n writeStream.close();//close the output stream\r\n index = 0;//reset\r\n ++fileNumber;//increment the file number so that the next block of lines is written to a different file name\r\n }\r\n\r\n\r\n }\r\n readStream.close();\r\n }catch(Exception e){\r\n System.out.println(e.getMessage() + \" occurred during split\");\r\n }\r\n\r\n //merge temporary files and write to output file\r\n try {\r\n System.out.println(Arrays.toString(fileArrayList.toArray()));\r\n fileArrayList.trimToSize();\r\n int sortedFileID = 0;//used to differentiate between temporary files while merging\r\n int head = 0;//used to access file names stored in array list from the start\r\n int tail = fileArrayList.size() - 1;//used to access file names stored in array list from the end\r\n while(fileArrayList.size() > 1) {\r\n sortedFileID++;//increment to create a unique file name\r\n String mergedFileName = \"sorted\"+sortedFileID+\".txt\";\r\n File firstFile = fileArrayList.get(head);\r\n File secondFile = fileArrayList.get(tail);\r\n System.out.println(head + \" + \" + tail);\r\n //merge first and second\r\n File combinedFile = mergeFiles(firstFile, secondFile, mergedFileName);\r\n //delete both temporary files once they are merged\r\n\r\n if(!secondFile.delete()){\r\n System.out.println(\"warning file could not be deleted\");\r\n }\r\n if(!firstFile.delete()){\r\n System.out.println(\"warning file could not be deleted\");\r\n }\r\n fileArrayList.set(head, combinedFile);//replace the first of the two merged files with the new combined file\r\n fileArrayList.remove(tail);//remove the second of the two merged files\r\n head++;//increment both indexes one position closer towards the center of the array list\r\n tail--;\r\n if(head >= tail){//check if there are no remaining files between the head and the tail\r\n head = 0;//reset to the beginning of the array list\r\n fileArrayList.trimToSize();\r\n tail = fileArrayList.size() - 1;//reset to the end of the array list\r\n }\r\n }\r\n }catch(Exception e){\r\n System.out.println(e.getMessage() + \" occurred during merge\");\r\n }\r\n //after iteratively merging head and tail, and storing the result at the head index\r\n //the final resulting file that combines all temporary files will be stored at index (0)\r\n return fileArrayList.get(0);//return the final combined file\r\n }", "public static final List<String> readFilelist(final String name) throws IOException {\n LOGGER.info(\"Reading file list from {}\", name);\n List<String> names = new ArrayList<String>();\n BufferedReader lineReader = new BufferedReader(new FileReader(name));\n try {\n String line = lineReader.readLine();\n while (line != null) {\n line = line.trim();\n if (!new File(line).isFile()) {\n throw new FileNotFoundException(line + \" is not a file\");\n }\n names.add(line);\n line = lineReader.readLine();\n }\n Collections.sort(names);\n return names;\n } finally {\n lineReader.close();\n }\n }", "public void sortTagNamesAsc(List tags) {\r\n\t\tCollections.sort(tags, new Comparator() {\r\n\t\t\tpublic int compare(Object o1, Object o2) {\r\n\t\t\t\tString s1 = ((Tag) o1).getName();\r\n\t\t\t\tString s2 = ((Tag) o2).getName();\r\n\t\t\t\treturn s1.compareToIgnoreCase(s2);\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t}", "protected void sortCode() {\n for (int i = 1; i < codeCount; i++) {\n int who = i;\n for (int j = i + 1; j < codeCount; j++) {\n if (code[j].getFileName().compareTo(code[who].getFileName()) < 0) {\n who = j; // this guy is earlier in the alphabet\n }\n }\n if (who != i) { // swap with someone if changes made\n SketchCode temp = code[who];\n code[who] = code[i];\n code[i] = temp;\n }\n }\n }", "public void listSort() {\n\t\tCollections.sort(cd);\n\t}", "public int compareTo (Object o) {\n return getFileName ().compareTo (((Page)o).getFileName());\n }", "public static LinkedList<String> sortFilesByDate(LinkedList<String> mainDirectories, String subDirectory, Text text) {\n\t\t// Read the directories and sort the files\n\t\tLinkedList<String> sortedFileNames = new LinkedList<String>();\n\t\tComparator<File> comparator = new FileComparator();\n\t\tPriorityQueue<File> files = new PriorityQueue<File>(20, comparator);\n\t\twhile (!mainDirectories.isEmpty()) {\n\t\t\treadAndSortDirectoryFilesByDate(mainDirectories.removeFirst(), text,\n\t\t\t\t\tfiles, subDirectory);\n\t\t}\n\t\t// Transform Files priority queues list into String list\n\t\twhile (!files.isEmpty()) {\n\t\t\tsortedFileNames.addLast(files.remove().toString());\n\t\t}\n\t\treturn sortedFileNames;\n\t}", "public static void main(String[] args) {\n\r\n\t\tList<Library> list=new ArrayList<Library>();\r\n\t\tlist.add(new Library(100, \"bhagyesh\"));\r\n\t\tlist.add(new Library(4, \"patel\"));\r\n\t\tlist.add(new Library(5, \"sid\"));\r\n\t\tlist.add(new Library(78, \"naitik\"));\r\n\t\tlist.add(new Library(39, \"amit\"));\r\n\t\t\r\n \tlist.stream().forEach(p -> System.out.println(p.getName()));\r\n \tlist.sort(Comparator.comparing(Library::getName));\r\n \tlist.stream().forEach(p -> System.out.println(p.getName()));\r\n \r\n \t\r\n \t\r\n \t\r\n\t}", "private void get_file_List() {\n\tString file_name=null;\r\n\tfor (int i = 0; i < listOfFiles.length; i++) \r\n\t {\r\n\t \r\n\t if (listOfFiles[i].isFile()) \r\n\t {\r\n\t\t file_name = listOfFiles[i].getName();\r\n\t if (file_name.endsWith(\".xml\") || file_name.endsWith(\".XML\"))\r\n\t {\r\n\t file_list.add(file_name) ;\r\n\t }\r\n\t }\r\n\t }\r\n\t\r\n}", "public void sort(){\n Collections.sort(list, new SortBySpecies());\n }", "private void sortDate()\n {\n for(int i = 0; i < movieList.size(); i++){\n for(int j = 1; j < movieList.size() - i; j++)\n {\n Movie a = movieList.get(j-1);\n Movie b = movieList.get(j);\n int result = a.getReleaseDate().compareTo(b.getReleaseDate());\n if( result < 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n else if(result == 0)\n {\n result = a.getTitle().compareTo(b.getTitle());\n if(result > 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n }\n }\n }\n }", "@Override\n public int compare(FileNameExtensionFilter ext1, FileNameExtensionFilter ext2)\n {\n return ext1.getDescription().toLowerCase().compareTo(ext2.getDescription().toLowerCase());\n }", "public void step2(){\n\n Collections.sort(names,(String a,String b) -> {\n return a.compareTo(b);\n });\n }", "public static List<File> sortInBatch(File file, Comparator<String> cmp) throws IOException \r\n\t{\r\n\t\tList<File> files = new ArrayList<File>();\r\n\t\tBufferedReader fbr = new BufferedReader(new FileReader(file));\r\n\t\tlong blocksize = estimateBestSizeOfBlocks(file);// in bytes\r\n\t\ttry{\r\n\t\t\tList<String> tmplist = new ArrayList<String>();\r\n\t\t\tString line = \"\";\r\n\t\t\ttry {\r\n\t\t\t\twhile(line != null) {\r\n\t\t\t\t\tlong currentblocksize = 0; //in bytes\r\n\t\t\t\t\twhile((currentblocksize < blocksize) &&((line = fbr.readLine()) != null) )//as long as you have 2MB\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\ttmplist.add(line);\r\n\t\t\t\t\t\tcurrentblocksize += line.length(); //2+40; //java uses 16 bits per character + 40 bytes of overhead (estimated)\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfiles.add(sortAndSave(tmplist,cmp));\r\n\t\t\t\t\ttmplist.clear();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(EOFException oef) {\r\n\t\t\t\tif(tmplist.size()>0) {\r\n\t\t\t\t\tfiles.add(sortAndSave(tmplist,cmp));\r\n\t\t\t\t\ttmplist.clear();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} \r\n\t\tfinally {\r\n\t\t\tfbr.close();\r\n\t\t}\r\n\t\treturn files;\r\n\t}", "public static List<File> sortInBatch(File file)\n throws IOException {\n return sortInBatch(file, defaultcomparator, DEFAULTMAXTEMPFILES, DEFAULT_MAX_MEM_BYTES,\n Charset.defaultCharset(), null, false);\n }", "void sort();", "void sort();", "java.util.List<java.lang.String>\n getFileNamesList();", "private void testZipfileOrder(Path out) throws IOException {\n ZipFile outZip = new ZipFile(out.toFile());\n Enumeration<? extends ZipEntry> entries = outZip.entries();\n int index = 0;\n LinkedList<String> entryNames = new LinkedList<>();\n // We expect classes*.dex files first, in order, then the rest of the files, in order.\n while(entries.hasMoreElements()) {\n ZipEntry entry = entries.nextElement();\n if (!entry.getName().startsWith(\"classes\") || !entry.getName().endsWith(\".dex\")) {\n entryNames.add(entry.getName());\n continue;\n }\n if (index == 0) {\n Assert.assertEquals(\"classes.dex\", entry.getName());\n } else {\n Assert.assertEquals(\"classes\" + (index + 1) + \".dex\", entry.getName());\n }\n index++;\n }\n // Everything else should be sorted according to name.\n String[] entriesUnsorted = entryNames.toArray(StringUtils.EMPTY_ARRAY);\n String[] entriesSorted = entryNames.toArray(StringUtils.EMPTY_ARRAY);\n Arrays.sort(entriesSorted);\n Assert.assertArrayEquals(entriesUnsorted, entriesSorted);\n }", "public ArrayList<File> mergeSortFiles(ArrayList<File> sortedList, Comparator<File> usedComparison,\r\n boolean inverse) {\r\n ArrayList<File> usedArray = new ArrayList<>(sortedList);\r\n mergeSort(usedArray, usedComparison);\r\n if (inverse) {\r\n Collections.reverse(usedArray);\r\n }\r\n return usedArray;\r\n }", "private void sortTravelContactsByName() {\n Collections.sort(this.contacts, new Comparator<User>(){\n public int compare(User obj1, User obj2) {\n // ## Ascending order\n return obj1.getSortingStringName().compareToIgnoreCase(obj2.getSortingStringName());\n }\n });\n }", "private void sortResults(List<String> results) {\r\n\t\tif (comparator == null) {\r\n\t\t\tCollections.sort(results);\r\n\t\t} else {\r\n\t\t\tCollections.sort(results, comparator);\r\n\t\t}\r\n\t}", "public static int mergeSortedFiles(List<File> files, File outputfile,\n final Comparator<String> cmp, Charset cs) throws IOException {\n return mergeSortedFiles(files, outputfile, cmp, cs, false);\n }", "public static void sort(java.util.List arg0)\n { return; }", "@Override\n public void execute() {\n itemList.sort_names();\n }", "public String[] GetAllFileNames(String sfileName) {\n \tFile dir = new File(fileStorageLocation.toString());\n \tString[] matchingFiles = dir.list(new FilenameFilter() {\n \t public boolean accept(File dir, String name) {\n \t return name.endsWith(\"_\" + sfileName);\n \t }\n \t});\n \t\n \tArrays.sort(matchingFiles);\n return matchingFiles;\n }", "public static List<File> sortInBatch(File file, Comparator<String> cmp,\n boolean distinct) throws IOException {\n return sortInBatch(file, cmp, DEFAULTMAXTEMPFILES, DEFAULT_MAX_MEM_BYTES,\n Charset.defaultCharset(), null, distinct);\n }", "public static void main(String[] args) {\n\t\tList<String> alist = new ArrayList<>();\n\t\talist.add(\"Virat\");\n\t\talist.add(\"ganesh\");\n\t\talist.add(\"Amol\");\n\t\talist.add(\"Ritesh\");\n\t\talist.add(\"deva\");\n\t\talist.add(\"sachin\");\n\t\talist.add(\"Xavier\");\n\t\t\n\t\tSystem.out.println(\"Arraylist before sorting: \");\n\t\tSystem.out.println(alist);\n\t\t\n\t\t//Collections.sort(alist);\n\t\tCollections.sort(alist,String.CASE_INSENSITIVE_ORDER);\n\t\t\n\t\tSystem.out.println(\"Arraylist after sorting: \");\n\t\tSystem.out.println(alist);\n\t\t\n\t\t\t\t\n\n\t}", "default List<Event> sort(List<Event> events, Comparator<Event> cmp) {\n\t\tCollections.sort(events, cmp);\n\t\treturn events;\n\t}", "public void sortLambda(List<String> list) {\n\t\tlist.sort((s1, s2) -> s1.compareTo(s2));\n\t}", "public static ArrayList<Member> sortByName(ArrayList<Member> s){\r\n\t\tArrayList<Member> output = new ArrayList<Member>();\r\n\t\twhile(s.size()>0) {\r\n\t\t\tint minNo=0;\r\n\t\t\tString min=s.get(0).getName();\r\n\t\t\tfor(int i=0;i<s.size();i++) {\r\n\t\t\t\tif(Member.nameSmaller(s.get(i).getName(), min)) {\t\t\t\t\t\r\n\t\t\t\t\tmin=s.get(i).getName();\r\n\t\t\t\t\tminNo=i;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\toutput.add(s.get(minNo));\r\n\t\t\ts.remove(s.get(minNo));\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "public static void main(String[] args) throws FileNotFoundException, IOException {\n BufferedReader br = new BufferedReader(new FileReader(\"D:\\\\name-sorter\\\\unsorted-names-list.txt\"));\n \n // Step 5: Create an ArrayList to hold the Person objects.\n ArrayList<Person> listPersonNames = new ArrayList<Person>();\n \n // Step 6 : Read every person record from input text file. For each person record, \n // create one person object and add that person object into listPersonNames.\n String line = br.readLine();\n \n while(line != null){\n String[] names = line.split(\" \");\n\n String givenNames = \"\";\n for(int a=0; a < names.length-1; a++){\n givenNames += names[a];\n givenNames += \" \";\n }\n \n String lastName = names[names.length-1];\n \n listPersonNames.add(new Person(givenNames, lastName));\n \n line = br.readLine();\n }\n \n // Step 7 : Sort the ArrayList listPersonNames using Collections.sort() method by passing \n // NamesCompare object to sort the text file.\n Collections.sort(listPersonNames, new NamesCompare());\n \n // Step 8 : Create BufferedWriter object to write the records into output text file.\n BufferedWriter writer = new BufferedWriter(new FileWriter(\"D:\\\\name-sorter\\\\sorted-names-list.txt\"));\n \n // Step 9 : Write each listPersonNames into output text file.\n for (Person person : listPersonNames){\n writer.write(person.givenNames);\n writer.write(\" \"+person.lastName);\n writer.newLine();\n \n System.out.println(person.givenNames+\" \"+person.lastName);\n }\n \n // Step 10 : Close the resources.\n br.close();\n writer.close();\n }", "static List<String> plainFilenamesIn(File dir) {\n String[] files = dir.list(PLAIN_FILES);\n if (files == null) {\n return null;\n } else {\n Arrays.sort(files);\n return Arrays.asList(files);\n }\n }", "public void sort() {\n documents.sort();\n }", "public static void sort(java.util.List arg0, java.util.Comparator arg1)\n { return; }", "java.util.List<java.lang.String>\n getFileNamesList();", "public static List<File> sortInBatch(File file, Comparator<String> cmp,\n int maxtmpfiles, long maxMemory, Charset cs, File tmpdirectory,\n boolean distinct, int numHeader, boolean usegzip)\n throws IOException {\n return sortInBatch(file, cmp, maxtmpfiles, maxMemory, cs, tmpdirectory, distinct,\n numHeader, usegzip ? Compression.GZIP : Compression.NONE, identity(), identity());\n }", "public static void sortInputExternalMerge() {\r\n\t\tExternalMultiwayMerge merge = new ExternalMultiwayMerge();\r\n\t\tmerge.sort(inputFile, M, d);\r\n\t}", "public void sort(Comparator<? super AudioFile> comparator) {\n Collections.sort(mObjects, comparator);\n if (mNotifyOnChange) notifyDataSetChanged();\n }", "public void sort() {\r\n for (int i = 0; i < namesOfApp.length && i < runTimeOfApp.length; i++) {\r\n for (int j = 0; j < i; j++) {\r\n if (runTimeOfApp[j] < runTimeOfApp[i]) {\r\n String tempName = namesOfApp[i];\r\n long tempRunTime = runTimeOfApp[i];\r\n namesOfApp[i] = namesOfApp[j];\r\n runTimeOfApp[i] = runTimeOfApp[j];\r\n namesOfApp[j] = tempName;\r\n runTimeOfApp[j] = tempRunTime;\r\n }\r\n }\r\n }\r\n\r\n }", "public List<User> sortNameLength(List<User> list) {\n Collections.sort(list, (user1, user2) -> user1.getName().length() - user2.getName().length());\n\n return list;\n\n }", "private void sort()\n {\n pd = new ProgressDialog(this);\n pd.setMessage(\"Sorting movies...\");\n pd.setCancelable(false);\n pd.show();\n\n movieList.clear();\n if(show.equals(\"notWatched\"))\n watched(false);\n else if(show.equals(\"watched\"))\n watched(true);\n else movieList.addAll(baseMovieList);\n\n if(orderBy.equals(\"alphabet\"))\n sortAlphabet();\n else if(orderBy.equals(\"date\"))\n sortDate();\n else sortRating();\n\n if(orderType)\n Collections.reverse(movieList);\n\n recyclerView.setAdapter(movieAdapter);\n pd.dismiss();\n }", "private void sortDateList(List<Date> dateList) {\n Collections.sort(dateList);\n }", "public void sort() {\r\n\t\tCollections.sort(parts);\r\n\t}", "public ArrayList<SongInfo> alphabetizeSongs(ArrayList<SongInfo> unorderedList)\n {\n ArrayList<SongInfo> orderedList = unorderedList; // holds the newly organized song ArrayList.\n\n // sorts the orderedList by songname\n Collections.sort(orderedList, new Comparator<SongInfo>() {\n\n // controls the behavior for how the list is organized which is based upon song name.\n @Override\n public int compare(SongInfo o1, SongInfo o2) {\n return o1.getSongName().compareTo(o2.getSongName());\n }\n });\n\n return orderedList; // return the alphabetized songinfo list.\n }", "void sortName()\r\n\t{\r\n\t\tCollections.sort(this, this.ContactNameComparator);\r\n\t}", "public List listFiles(String path);", "private void mergeSort(ArrayList<File> listToSort, Comparator<File> fileComparator) {\r\n int size = listToSort.size();\r\n if (size < 2) {\r\n return;\r\n }\r\n int half = size / 2;\r\n ArrayList<File> firstList = new ArrayList<File>(listToSort.subList(0, half));\r\n ArrayList<File> secondList = new ArrayList<File>(listToSort.subList(half, size));\r\n\r\n mergeSort(firstList, fileComparator);\r\n mergeSort(secondList, fileComparator);\r\n\r\n merge(firstList, secondList, listToSort, fileComparator);\r\n }", "protected void sort() {\n\n\t\tCollections.sort(this.myRRList);\n\t}", "public void listSortedByName(ArrayList<Pet> petList){\n System.out.println(\"Pets sorted by Name: \");\n for (Pet each: mySort.sortByName(petList)){\n System.out.println(each.getName());\n }\n System.out.println();\n }", "protected void sort(@NotNull ArrayList<Event<?>> events) {\n\t\tevents.sort(new Comparator<Event<?>>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Event<?> e1, Event<?> e2) {\n\t\t\t\tif (e1.getEnd() < e2.getStart())\n\t\t\t\t\treturn -1;\n\t\t\t\telse\n\t\t\t\t\treturn 1;\n\t\t\t}\n\t\t});\n\t\tsnap(this.events);\n\t}", "public static int mergeSortedFiles(List<File> files, File outputfile,\n final Comparator<String> cmp, boolean distinct)\n throws IOException {\n return mergeSortedFiles(files, outputfile, cmp,\n Charset.defaultCharset(), distinct);\n }", "private void sortIntoCars(ArrayList<FileEntry> batch) {\n ArrayList<FileEntry> res = new ArrayList<>(); // prevents ConcurrentModificationException\n for (FileEntry dir : batch) {\n try {\n res.addAll(CarSorterImpl.getInstance().sortIntoCars(dir));\n } catch (IOException e) {\n LOGGER.error(\"Failed to load images in FileEntry at \" + dir.getCarImages().get(0).getFilepath());\n e.printStackTrace();\n }\n }\n\n batch.clear();\n batch.addAll(res); // puts the new entries back to original ArrayList\n }", "@Override\n public void sort(List<T> items) {\n }", "private static void sortByVerified( ArrayList<Volunteer> list)\n {\n // Find the string reference that should go in each cell of\n // the array, from cell 0 to the end\n for ( int j = 0; j < list.size();j++ )\n {\n // Find min: the index of the string reference that should go into cell j.\n // Look through the unsorted strings (those at j or higher) for the one that is first in lexicographic order\n int min = j;\n for ( int k=j+1; k < list.size(); k++ ) {\n if (list.get(k).compareTo(list.get(min)) > 0) {\n min = k;\n }\n\n }\n\n // Swap the reference at j with the reference at min\n Collections.swap(list, j, min);\n }\n }" ]
[ "0.7211853", "0.72113", "0.6934349", "0.68298626", "0.66738605", "0.65875363", "0.65728134", "0.6572695", "0.64169466", "0.63812363", "0.6350002", "0.63121235", "0.6256207", "0.6197595", "0.618845", "0.6186636", "0.61514056", "0.61344457", "0.6120903", "0.60957897", "0.6083855", "0.60804975", "0.60626256", "0.60437036", "0.59789366", "0.59744686", "0.59707826", "0.59427446", "0.5925218", "0.59222174", "0.59169495", "0.5900587", "0.5887649", "0.58674383", "0.58508575", "0.58354", "0.58231884", "0.5822409", "0.58016574", "0.57889646", "0.5787358", "0.5784893", "0.5781574", "0.5779733", "0.5769346", "0.57657325", "0.5757377", "0.57184", "0.57058686", "0.56752294", "0.5672851", "0.56642896", "0.5660822", "0.56587166", "0.56462896", "0.5643945", "0.56266713", "0.5624076", "0.56232417", "0.5582535", "0.5572223", "0.5572223", "0.55643517", "0.5536039", "0.55279946", "0.551618", "0.5513063", "0.5502293", "0.5495879", "0.5488177", "0.5484863", "0.5484113", "0.54839104", "0.5481619", "0.5480394", "0.5474702", "0.54724383", "0.54617584", "0.5458498", "0.5457146", "0.54516983", "0.5432159", "0.5413183", "0.54112494", "0.5401607", "0.53996676", "0.539757", "0.53874457", "0.538394", "0.53835166", "0.53805995", "0.5374067", "0.53705376", "0.53698", "0.5362012", "0.53589517", "0.5351703", "0.53515196", "0.53488016", "0.53349364" ]
0.7659801
0
get the size of a file (in BYTES)
public static long size(File file) { return file.length(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getSize()\n\t{\n\t\treturn file.length() ;\n\t}", "public long getFileSize();", "public long getFileSize();", "long getFileSize();", "public long getFileSize()\n throws IOException\n {\n return file.length();\n }", "long sizeInBytes() throws IOException;", "public long size() {\n return file.length();\n }", "long getFileLength(String path) throws IOException;", "public long getSizeFromFile(File file) {\n\t\tlong size = 0;\n\t\tif (file != null) {\n\t\t\tsize = file.length();\n\t\t}\n\t\treturn size;\n\t}", "public long getSize() {\r\n return mFile.getSize();\r\n }", "public final long getFileSize() {\n\t\treturn m_info.getSize();\n\t}", "private Long getFileSize() {\n\t\t// retornamos el tamano del fichero\n\t\treturn this.fileSize;\n\t}", "public long size() {\n return this.filePage.getSizeInfile();\n }", "private int getFileSize(File file) {\r\n\t\tFileInputStream fis = null;\r\n\t\ttry {\r\n\t\t\tfis = new FileInputStream(file);\r\n\t\t\tint size = fis.available();\r\n\t\t\tfis.close();\r\n\t\t\treturn size;\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}", "public long getFileSize(){\n\t return new File(outputFileName).length();\n }", "long getSize() throws IOException;", "public long getFileSize(String filename) {\n\t\treturn 0;\n\t}", "public long getFileSize(String fileName)\n {\n long size = -1;\n\n File file = new File(fileLocation.getAbsolutePath() + File.separatorChar\n + fileName);\n\n if (file.isFile())\n {\n size = file.length();\n }\n\n return size;\n }", "public static long getFileSize(String fileName) {\n return new File(fileName).length();\n }", "public long size(String path);", "public static long getFileSize(String filePath) {\n\t\treturn new File(filePath).length();\n\t}", "long getSize() throws FileSystemException;", "public int getFileSize (String filePath) throws RemoteException {\r\n\t\tint size;\r\n\t\tFile myFile = new File(filePath);\r\n\t\tsize = (int)myFile.length();\r\n\t\treturn size;\r\n\r\n\t\t\t\t\r\n\t}", "public void determineFileSize() {\n \t//Creating scanner object\n \tScanner scan = new Scanner(System.in);\n \tSystem.out.println(\"Please enter the path of the file you'd like to determint the size of\");\n \t\n \t//Capturing file path as filePath variable\n \tString filePath = scan.next();\n \t//using Java Nio\n \tPath path = Paths.get(filePath);\n\t\t\n \ttry {\n\t\t\tLong fileSize = Files.size(path);\n\t\t\tSystem.out.println(String.format(\"%s, bytes\", fileSize));\n\t\t\tSystem.out.println(String.format(\"%s, kilobytes\", fileSize/1024));\n\n\t\t\t\n\t\t}catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \tscan.close();\n \t\n }", "public long getFileSize() {\n return fileSize_;\n }", "public long length() {\n return _file.length();\n }", "public int getFileSize(){\n\t\treturn fileSize;\n\t}", "public final long getFileLength()\n\t\tthrows IOException {\n\t\t\n\t\t//\tGet the file length\n\t\t\n\t\tFile tempFile = new File(getTemporaryFile());\n\t\treturn tempFile.length();\n\t}", "public long getFileSize() {\n return fileSize_;\n }", "public double fileSizeMB(String filePath) throws NumberFormatException, IOException {\n \tFile file = new File(filePath.replace(\"\\\\\", \"/\"));\n if(file.exists()) {\n // fileWriterPrinter(\"FILE SIZE: \" + file.length() + \" Bit\");\n // fileWriterPrinter(\"FILE SIZE: \" + file.length()/1024 + \" Kb\");\n fileWriterPrinter(\"FILE SIZE: \" + ((double) file.length()/(1024*1024)) + \" Mb\");\n return (double) file.length()/(1024*1024);\n } else { fileWriterPrinter(\"File doesn't exist\"); return 0; }\n \n }", "public long getFileSize() {\r\n return fileSize;\r\n }", "public long getFileSize() {\r\n\t\treturn dFileSize;\r\n\t}", "public long getFileSize() {\n\t\treturn mFileSize;\n\t}", "public Integer getFileSize(Long key) {\n File file = new File(MUSIC_FILE_PATH + File.separator + key + \".mp3\");\n return (int)file.length();\n }", "long getMaxFileSizeBytes();", "public abstract long size() throws IOException;", "public long getFileSize()\r\n {\r\n return lFileSize;\r\n }", "public static long getFileSize(String path) {\n if (path == null || path.isEmpty()) {\n return -1;\n }\n File file = new File(path);\n return (file.exists() && file.isFile() ? file.length() : -1);\n }", "long getFileSize(String path) throws NotFoundException;", "private Long computeSize(InputStreamWrapper stream) throws IOException {\n long size = 0;\n try (InputStream inStream = stream.getStream()) {\n byte[] buffer = new byte[1024 * 1024]; // 1MB\n int chunkBytesRead;\n while ((chunkBytesRead = inStream.read(buffer)) != -1) {\n size += chunkBytesRead;\n }\n }\n\n return size;\n }", "public int getSize()\n\t{\n\t\treturn bytes.length;\n\t}", "public long getFileLength() {\n\n return fileLength;\n\n }", "public long getFileSize() {\n return this.originalFileSize;\n }", "public String getFileSize() {\n return fileSize;\n }", "public float getFileSize() {\n return fileSize_;\n }", "public long getSize();", "long getSize();", "int getFileCount();", "public float getFileSize() {\n return fileSize_;\n }", "Long diskSizeBytes();", "public final long length() throws IOException {\r\n\t\treturn f.length();\r\n\t}", "@Override\n\tpublic long getSize()\n\t{\n\t\tif (size >= 0)\n\t\t{\n\t\t\treturn size;\n\t\t}\n\t\telse if (cachedContent != null)\n\t\t{\n\t\t\treturn cachedContent.length;\n\t\t}\n\t\telse if (dfos.isInMemory())\n\t\t{\n\t\t\treturn dfos.getData().length;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn dfos.getFile().length();\n\t\t}\n\t}", "@Override\n public long size() {\n if (!isRegularFile()) {\n throw new IllegalStateException(\"not a regular file!\");\n }\n return this.fileSize;\n }", "@ManagedAttribute(description = \"Size in bytes\")\n\tpublic long getSizeInBytes() {\n\t\ttry {\n\t\t\treturn store.estimateSize().bytes();\n\t\t} catch (IOException e) {\n\t\t\treturn -1;\n\t\t}\n\t}", "protected long getDataFileSize() throws IOException\r\n {\r\n long size = 0;\r\n\r\n storageLock.readLock().lock();\r\n\r\n try\r\n {\r\n if (dataFile != null)\r\n {\r\n size = dataFile.length();\r\n }\r\n }\r\n finally\r\n {\r\n storageLock.readLock().unlock();\r\n }\r\n\r\n return size;\r\n }", "@Override\n public synchronized long size(Path file) throws FileNotFoundException\n {\n File f = file.toFile(root);\n if (!f.exists() || f.isDirectory())\n throw new FileNotFoundException(\"File not found or is a directory\");\n return f.length(); \n }", "long getSize() throws IOException {\n return fileRWAccessSize.get();\n }", "public long getSizeOfImage()\n throws IOException, EndOfStreamException\n {\n return peFile_.readUInt32(relpos(Offsets.SIZE_OF_IMAGE.position));\n }", "public native long getReceivedByteCount()\n throws IOException, IllegalArgumentException;", "public Long sizeInKB() {\n return this.sizeInKB;\n }", "public int getFileSize(Uri uri) {\n\t\tContentResolver cr = getContentResolver();\n\t\tInputStream is = null;\n\t\tint size = 0;\n\t\ttry {\n\t\t\tis = cr.openInputStream(uri);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tsize = is.available();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString fileSize = android.text.format.Formatter.formatShortFileSize(\n\t\t\t\tthis, size);\n\n\t\tint sizef = (int) Float.parseFloat(fileSize.substring(0,\n\t\t\t\tfileSize.length() - 2));\n\t\treturn sizef;\n\t}", "public long getDbFileSize() {\r\n\tlong result = -1;\r\n\r\n\ttry {\r\n\t File dbFile = new File(fileName);\r\n\t if (dbFile.exists()) {\r\n\t\tresult = dbFile.length();\r\n\t }\r\n\t} catch (Exception e) {\r\n\t // nothing todo here\r\n\t}\r\n\r\n\treturn result;\r\n }", "@Override\n\tpublic long contentLength() throws IOException {\n\t\treturn Files.size(this.path);\n\t}", "public long getSize()\n {\n return getLong(\"Size\");\n }", "@XmlElement\n public long getFileSize() {\n return this.fileSize;\n }", "long getWorkfileSize();", "public int size() {\n return bytes.length;\n }", "public long picoSize() throws IOException {\n return _backing.length();\n }", "@Schema(example = \"2186\", description = \"Size of the image in bytes.\")\n public Long getSize() {\n return size;\n }", "public Long sizeInBytes() {\n return this.sizeInBytes;\n }", "public long getFileCompressedSize()\r\n {\r\n return lFileCompressedSize;\r\n }", "public long getSize() {\n\t\treturn size;\n\t}", "public final long getSize() { return size; }", "public int getTotalSize();", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\r\n\t\treturn size;\r\n\t}", "public static long getDownloadingFileSize() {\n\t\treturn downloadingFileSize;\n\t}", "int getSize ();", "public long getSize() {\r\n return size;\r\n }", "public static byte getSize() {\n return SIZE;\n }", "public int sizeInBytes() {\n\t\treturn this.actualsizeinwords * 8;\n\t}", "private int getSize(File f) {\n int lines = 0;\n try {\n Scanner s = new Scanner(f);\n while (s.hasNextLine()) {\n s.nextLine();\n lines++;\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return lines;\n }", "public abstract long getSize();", "public long getSize() {\n return size.get();\n }", "public TSizeInBytes getSize() {\n\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn smilFiles.size();\n\t}", "int getTotalSize();", "public long size() {\n try {\n return Files.size(path);\n } catch (final IOException e) {\n throw new StageAccessException(\"Unable to get the size of staged document!\", e);\n }\n }", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();" ]
[ "0.825989", "0.8161956", "0.8161956", "0.8083534", "0.8068098", "0.7879172", "0.7854919", "0.78232086", "0.77728426", "0.77426356", "0.7669862", "0.76460165", "0.76308626", "0.76299894", "0.76215553", "0.7613113", "0.7580875", "0.7444882", "0.7370972", "0.73263144", "0.73248786", "0.7287028", "0.7277552", "0.72613335", "0.72525644", "0.7229564", "0.7220397", "0.719574", "0.7194332", "0.71911865", "0.7187817", "0.7173883", "0.71648353", "0.7134064", "0.7128617", "0.71248686", "0.7101293", "0.7085753", "0.7080614", "0.70798624", "0.7074008", "0.703459", "0.70114464", "0.700467", "0.6986971", "0.6977009", "0.6960062", "0.69578403", "0.69406575", "0.6939964", "0.69378185", "0.6896581", "0.6858979", "0.68479425", "0.6840594", "0.6810944", "0.67914224", "0.6735929", "0.6730071", "0.67182195", "0.6676065", "0.6662621", "0.6659811", "0.66570127", "0.6646448", "0.66399163", "0.6639651", "0.6634561", "0.65887827", "0.6572256", "0.65701425", "0.6566143", "0.65651095", "0.6557737", "0.65564746", "0.65456754", "0.65456754", "0.65456754", "0.65456754", "0.65362424", "0.6523044", "0.650253", "0.64934105", "0.6478605", "0.64684963", "0.6468214", "0.6460762", "0.6449137", "0.6447019", "0.64453375", "0.64339036", "0.64183533", "0.6406128", "0.6406128", "0.6406128", "0.6406128", "0.6406128", "0.6406128", "0.6406128", "0.6406128" ]
0.80577457
5
get the path of a file (wrap checked exception)
public static String getCanonicalPath(File file) { try { if (file == null) { return null; } else { return file.getCanonicalPath(); } } catch (Exception exp) { throw new RuntimeException(exp); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getFilePath();", "Path getFilePath();", "String getFilePath();", "String getFilepath();", "public String getFilePath() \n\t\tthrows ConnectException, UnexpectedReplyException, InvocationError,\n\t\t\tCompilerInstantiationException\n\t{\n\t\treturn null;\n\t}", "public String getPath () throws java.io.IOException, com.linar.jintegra.AutomationException;", "java.lang.String getFileLoc();", "SourceFilePath getFilePath();", "public FileWithFaultLocations getFile(final String file);", "public String getFilePath(int fileidx) {\n return null;\r\n }", "File getFile();", "File getFile();", "private File getFile(String filename) throws Exception {\n\t\tFile file = new File(filename);\n\t\tif (file.exists()) {\n\t\t\treturn file;\n\t\t} else if (!file.isAbsolute()) {\n\t\t\tfinal Resource r = context.getThisInstance().eResource();\n\t\t\tfinal Path p = new Path(r.getURI().segment(1) + File.separator + filename);\n\t\t\tfinal IFile f = ResourcesPlugin.getWorkspace().getRoot().getFile(p);\n\t\t\tif (f.exists()) {\n\t\t\t\treturn f.getRawLocation().makeAbsolute().toFile();\n\t\t\t}\n\t\t}\n\n\t\tthrow new Exception(\"Filename \" + filename + \" not found\");\n\n\t}", "String getFile();", "String getFile();", "String getFile();", "static String getFilePath(URI uri) throws Exception {\n\n\t\tString uriPath = uri.getPath();\n\t\tif (uriPath == null || uriPath.length() == 0) {\n\t\t\tthrow new Exception(\"getFilePath error: provided uri (\" + uri.toString() + \") contains no path component\");\n\t\t}\n\n\t\tString path = uri.toString();\n\t\tif (path.length() > 4 && path.substring(0, 5).equals(\"file:\"))\n\t\t\tpath = path.substring(5);\n\t\t/*\n\t\t * Pattern filePat = Pattern.compile(\"file:/[/]*(.*)\"); Matcher m =\n\t\t * filePat.matcher(uri.toString()); if (m.find()) { // prtln (\"pattern found: \"\n\t\t * + m.group(1)); path = \"/\" + m.group(1); } else { prtln(\"pattern not found\");\n\t\t * }\n\t\t */\n\t\treturn path;\n\t}", "public abstract String getFileLocation();", "@Override\n public String getAbsolutePathImpl() {\n return file.getAbsolutePath();\n }", "@Nullable String getPath();", "@Override\r\n\tpublic InputStream getFile(String filepath) throws FileSystemUtilException {\r\n\t\t\r\n\t\tthrow new FileSystemUtilException(\"000000\",null,Level.ERROR,null);\t\r\n\r\n\t}", "private String get_FilePath(String put, int ind) {\n\n File file = new File(put);\n File[] files = file.listFiles();\n\n try {\n if (files[ind].isFile()) {\n return files[ind].getAbsolutePath();\n }\n } catch (Exception e) {\n Log.d(TAG, \"Exception error : \" + e.getMessage());\n }\n return null;\n }", "public static String getFilePath(Resource resource) {\n\t\treturn getFilePath(resource.getResourceSet(), resource.getURI());\n\t}", "public File getFile();", "public File getFile();", "private File getIOFile() {\n \t\tIPath location = resource.getLocation();\n \t\tif(location!=null) {\n \t\t\treturn location.toFile();\n \t\t}\n \t\treturn null;\n \t}", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "public File getFile() {\n return this.path != null ? this.path.toFile() : null;\n }", "public String getPath() {\n\t\treturn file.getPath();\n\t}", "byte[] getFile(String filename) throws NoSuchFileException;", "public String getPath();", "public String getPath();", "public String getPath();", "public static File fileFromPathOrThrow(String path) {\n File propFile = new File(path);\n if (!propFile.exists()) {\n throw new IllegalArgumentException(\"Message file '\" + path + \"' does not exist.\");\n }\n return propFile;\n }", "public abstract String getFullPath();", "String getRealPath(String path);", "File getFilePath()\r\n\t{\r\n\t\treturn fFilePath;\r\n\t}", "public String getRelPath () throws java.io.IOException, com.linar.jintegra.AutomationException;", "String getException();", "String getException();", "public abstract String getPath();", "public abstract String getPath();", "String getExternalPath(String path);", "Path getPath(String name) throws IOException;", "public File getFile ();", "FileObject getFile();", "FileObject getFile();", "public String path(File f) {\r\n int sep = f.toString().lastIndexOf(\"\\\\\");\r\n return f.toString().substring(0, sep);\r\n }", "@Override\r\n\tpublic String getErrorPath() {\n\t\treturn PATH;\r\n\t}", "String getCauseException();", "public static File checkAndGetFile( final String file ) {\n if( file == null ) {\n throw new IllegalArgumentException( \"The parameter is empty.\\n parameter = \" + file );\n }\n final File fileObject = new File( file );\n\n if( !fileObject.exists() ) {\n throw new IllegalArgumentException( \"The file didn't exist.\\n parameter = \" + file );\n }\n if( fileObject.isDirectory() ) {\n throw new IllegalArgumentException( \"The file is a folder and not a PDF file.\\n parameter = \" + file );\n }\n\n return fileObject;\n }", "public String getAbsPath();", "public final String getFilePath() {\n\t\treturn m_info.getPath();\n\t}", "public File getFileValue();", "public String getFilePath() {\n return null;\n }", "java.lang.String getFilename();", "java.lang.String getFilename();", "public File getFile( Project project )\n {\n // If we've implemented FileIndex correctly, the the\n // project root + full path is all we should need.\n // File will do the rest\n return( new File( project.getProjectFile().getParentFile(), fullPath ) );\n }", "public static String getPath(String file_path)\n {\n String file_separator = System.getProperty(\"file.separator\"); //Bug Id 81741\n if (file_path == null)\n return null;\n else if (file_path.substring(file_path.length() - 1).equals(file_separator))//Bug Id 81741, substitute file_separator to System.getProperty(\"file.separator\")\n return file_path;\n else\n {\n \t //Bug Id 81741, Start \n\t if (\"/\".equals(file_separator) && (file_path.indexOf(file_separator) == -1))\n\t {\n\t file_path = file_path.replaceAll(\"\\\\\\\\\", \"/\");\n\t return ((new File(file_path)).getParent()).replaceAll(\"/\",\"\\\\\\\\\");\n\t }\n\t //Bug Id 81741, End\n\t else\n return (new File(file_path)).getParent();\n }\n }", "public java.lang.String getFilepath()\n {\n return filepath;\n }", "public String resolvePath();", "public static String getPathCache()\r\n/* 43: */ throws IOException\r\n/* 44: */ {\r\n/* 45: 44 */ log.finest(\"OSHandler.getPathCache\");\r\n/* 46: 45 */ return getProperty(\"path\");\r\n/* 47: */ }", "File getWorkfile();", "@Override\n protected String handleGetExceptionPath()\n {\n\n final StateVertexFacade target = this.getTarget();\n\n if (target instanceof GuiForward)\n {\n\n return (target).getFullyQualifiedNamePath() + \".gui\";\n\n } else if (target instanceof GuiFinalState)\n {\n\n return ((GuiFinalState) target).getFullyQualifiedNamePath();\n\n } else\n {\n\n return \"\";\n\n }\n\n }", "Path getPath();", "public static Path getFile(final String path) throws URISyntaxException {\n final URL resource = classLoader.getResource(path);\n checkIfFound(resource, path);\n final URI uri = resource.toURI();\n checkIfFound(uri, path);\n File file = new File(uri);\n checkIfFound(file, path);\n return file.toPath();\n }", "@Override\n\tpublic String getErrorPath() {\n\t\treturn null;\n\t}", "edu.usfca.cs.dfs.StorageMessages.FileLocation getFileLocation();", "@Test\n public void getPath() throws Exception {\n ReadConfig conf = new ReadConfig();\n try {\n conf.getPath(0);\n } catch (Exception e) {\n assertTrue(e.getMessage().equals(\"Try to access config file before reading it.\") );\n }\n try {\n conf.readFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n assertNotNull(conf.getPath(0));\n String total = conf.getFileLocation() + \"/\" + conf.getFileName().get(0);\n assertEquals(total, conf.getPath(0));\n }", "public String open() throws Exception {\n\t\tFile d = new File(dir);\n\n\t\tif (d.mkdirs()) {\n\t\t\t// all OK, return.\n\t\t\treturn path;\n\t\t}\n\n\t\tif (d.exists()) {\n\t\t\t// already exists, return.\n\t\t\treturn path;\n\t\t}\n\n\t\t// try and fix the path\n\t\tlogger.warn(\"Cannot create directory: \" + d.getPath());\n\t\tfixPath(d);\n\n\t\tif (d.mkdirs()) {\n\t\t\t// all OK, return.\n\t\t\treturn path;\n\t\t}\n\n\t\tif (d.exists()) {\n\t\t\t// already exists, return.\n\t\t\treturn path;\n\t\t}\n\n\t\tthrow new ConverterException(\"Unable to fix path: \" + d.getPath());\n\t}", "public final File getLocalFile() throws IllegalArgumentException\n {\n if (hostOrNull != null)\n {\n throw new IllegalArgumentException(\"getLocalFile can only be called on local paths.\");\n }\n return new File(path);\n }", "public static String getCanonicalPath(File f) throws IOException {\n try {\n return f.getCanonicalPath();\n } catch(IOException ioe) {\n String msg = ioe.getMessage();\n throw ioe;\n }\n }", "public String getFile() {\n return \"null\"; // getFileTopic().getCompositeValue().getTopic(FILE_PATH);\n }", "public String getFilePath(Extension extension) {\n\t\treturn extension.eResource().getURI().toString();\n\t}", "private static Path getFilePath(Path testSuitePath, Path testCasePath, Path relativeFilePath) {\n Path filePath = testCasePath.resolve(relativeFilePath);\n if (Files.exists(filePath)) {\n return filePath;\n } else {\n // If not try to get from the test suite directory\n filePath = testSuitePath.resolve(relativeFilePath);\n }\n\n return Files.exists(filePath) ? filePath : null;\n }", "public String getOpenFilePath() {\n\t\treturn filePath.getText();\n\t}", "@Override\n public Path getPath() {\n throw new RuntimeException( \"Not yet implemented.\" );\n }", "FileReference getFile(String fileName);", "@java.lang.Override\n public java.lang.String getFilePath() {\n return instance.getFilePath();\n }", "abstract String getFileRoute() throws IOException;", "private static File getFile(String pathFile) {\n\t\tif(!pathFile.isEmpty()){\n\t\t\treturn new File(pathFile);\n\t\t}\n\t\treturn null;\n\t}", "protected abstract E readFile() throws Exception;", "public String getFilePath() {\n return getSourceLocation().getFilePath();\n }", "public String getSuggestPath() {\n/* 105 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String getErrorPath() {\n\t\treturn null;\n\t}", "protected File getFile( final String filename )\n throws AntException, IOException\n {\n final File file = (new File( filename )).getCanonicalFile();\n \n if( !file.exists() )\n {\n throw new AntException( \"File \" + file + \" does not exist.\" );\n }\n \n if( file.isDirectory() )\n {\n throw new AntException( \"File \" + file + \" is a directory.\" );\n }\n\n return file;\n }", "public String getTemporaryFilePath()\n {\n return callString(\"GetTemporaryFilePath\");\n }", "public Path getFilePath() {\n return filePath;\n }", "public static Path accessFile(String filename) throws IOException {\n LOGGER.log(Level.INFO, \"Accessing File \" + filename);\n\n // find resource location\n URL resource = ResourceLoader.class.getResource(filename);\n if (resource == null) {\n LOGGER.log(Level.WARNING, \"Failed to find resource \" + filename);\n throw new FileNotFoundException();\n }\n\n // get resource path\n Path path = null;\n try {\n path = Paths.get(resource.toURI());\n } catch (URISyntaxException e) {\n LOGGER.log(Level.WARNING, \"Failed to access resource location\", e);\n throw new IOException();\n }\n\n // check the file\n if (!Files.exists(path)) {\n LOGGER.log(Level.WARNING, \"File doesn't exist\");\n throw new IOException();\n }\n\n if (!Files.isReadable(path)) {\n LOGGER.log(Level.WARNING, \"File is not accessible for reading\");\n throw new IOException();\n }\n\n return path;\n }", "File retrieveFile(String absolutePath);", "String getFilename();", "public void myMethod() throws FileNotFoundException {\n\t\ttry {\n\t\tsoccer = new FileInputStream(\"soccer.txt\");\n\t\t} catch (FileNotFoundException f) {//checked exception handled here\n//\t\t\tf.printStackTrace();\n\t\tSystem.out.println(\"file not found\");//throw fnfe; //this needs to be handled or declared\n\t\t}\n\t\t}", "@Override\r\n protected String getFilePath(String code) {\n return null;\r\n }", "public static String getPath(String fn) {\n\t\tif (fn == null) {\n\t\t\treturn null;\n\t\t}\n\t\tint i = fn.lastIndexOf(File.separator);\n\t\treturn (i > -1) ? fn.substring(0, i) : fn;\n\t}", "public String getFileNoPath() {\n if (fileType == HTTP) {\n return fileName.substring(fileName.lastIndexOf(\"/\") + 1);\n } else {\n return fileName.substring(fileName.lastIndexOf(File.separator) + 1);\n }\n }", "public static UriSchemaUtils.UtilFile getFile(Context param0, Uri param1, String param2) throws IOException {\n }", "protected File getFile(HttpServletRequest request) {\n String path = request.getPathInfo();\n\n // we want to extract everything after /spa/spaResources/ from the path info. This should cater for sub-directories\n String extractedFile = path.substring(path.indexOf('/', BASE_URL.length() - 1) + 1);\n File folder = SpaModuleUtils.getSpaStaticFilesDir();\n\n //Resolve default index.html\n if (extractedFile.endsWith(\"index.htm\") || !extractedFile.contains(\".\")) {\n extractedFile = \"index.html\";\n }\n\n File file = folder.toPath().resolve(extractedFile).toFile();\n if (!file.exists()) {\n log.warn(\"File with path '{}' doesn't exist\", file.toString());\n return null;\n }\n return file;\n }" ]
[ "0.6809943", "0.65690356", "0.6425698", "0.62777627", "0.62725306", "0.6173079", "0.6030031", "0.5988617", "0.59781516", "0.5955371", "0.5941363", "0.5941363", "0.5915277", "0.58939344", "0.58939344", "0.58939344", "0.582015", "0.582004", "0.57831794", "0.576722", "0.5738995", "0.5731214", "0.57172513", "0.57008386", "0.57008386", "0.5674669", "0.5664907", "0.5664907", "0.5664907", "0.5664907", "0.5664907", "0.56645626", "0.5644433", "0.56393325", "0.5637589", "0.5637589", "0.5637589", "0.5635596", "0.56219745", "0.5618935", "0.56130195", "0.5604347", "0.560135", "0.560135", "0.5599585", "0.5599585", "0.5587536", "0.5579076", "0.55613494", "0.5552101", "0.5552101", "0.5533557", "0.5524495", "0.55171317", "0.5511283", "0.5502974", "0.5497552", "0.54862696", "0.54818773", "0.5481355", "0.5481355", "0.54673564", "0.54634464", "0.5435015", "0.5430909", "0.54095876", "0.53953415", "0.53908473", "0.53820837", "0.5371954", "0.5364327", "0.5363049", "0.53620625", "0.5357704", "0.5339612", "0.53303784", "0.53281134", "0.53229964", "0.53226787", "0.5321795", "0.5321686", "0.53170073", "0.5310487", "0.530301", "0.53004575", "0.5300334", "0.5296473", "0.52946067", "0.5287061", "0.5275345", "0.52720886", "0.52568775", "0.52526635", "0.5250234", "0.5249941", "0.5232403", "0.52230215", "0.5222462", "0.52190584", "0.5215833", "0.5211702" ]
0.0
-1
create a file (wrap checked exception)
public static void createNewFile(File file) { try { file.createNewFile(); } catch (Exception exp) { throw new RuntimeException(exp); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static File writeObjectToTempFileNoExceptions(Serializable o, String filename)\n/* */ {\n/* */ try\n/* */ {\n/* 93 */ return writeObjectToTempFile(o, filename);\n/* */ } catch (Exception e) {\n/* 95 */ System.err.println(\"Error writing object to file \" + filename);\n/* 96 */ e.printStackTrace(); }\n/* 97 */ return null;\n/* */ }", "Object create(File file) throws IOException, SAXException, ParserConfigurationException;", "public void testCreateFileFilePersistenceException() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n try {\r\n filePersistence.createFile(VALID_FILELOCATION, DIRNAME);\r\n fail(\"if an exception occurs while performing the operation, throw FilePersistenceException\");\r\n } catch (FilePersistenceException e) {\r\n // good\r\n }\r\n try {\r\n filePersistence.createFile(VALID_FILELOCATION, READONLYFILENAME);\r\n fail(\"if an exception occurs while performing the operation, throw FilePersistenceException\");\r\n } catch (FilePersistenceException e) {\r\n // good\r\n }\r\n }", "@SuppressWarnings(\"unused\")\r\n\tprivate static File createFile(String path) {\r\n\t\t\r\n\t\t// open the file\r\n\t\tFile currentFile = new File(path);\r\n\t\t\r\n\t\t\r\n\t\t// check if it is a valid file\r\n\t\tif (currentFile == null) {\r\n\t\t\tSystem.out.println(\"Could not create the file\");\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\r\n\t\t// hopefully things went perfect\r\n\t\treturn currentFile;\r\n\r\n\t}", "public File toFile() throws WoodException\n {\n if(!exists()) {\n throw new WoodException(\"Attempt to use not existing file path |%s|.\", value);\n }\n return file;\n }", "@Override\n public File createFile(String path) throws IOException {\n String pathStr=path+fileSeparator+\"Mail.json\";\n File file = new File(pathStr);\n file.createNewFile();\n return file;\n }", "FileContent createFileContent();", "public static void createFile(File source) {\n try {\n if (!source.createNewFile()) {\n throw new IOException();\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to create file: \" + source.getAbsolutePath(), e);\n }\n }", "public static File writeObjectToFileNoExceptions(Serializable o, String filename)\n/* */ {\n/* 47 */ file = null;\n/* 48 */ ObjectOutputStream oos = null;\n/* */ try {\n/* 50 */ file = new File(filename);\n/* */ \n/* 52 */ oos = new ObjectOutputStream(new BufferedOutputStream(new GZIPOutputStream(new FileOutputStream(file))));\n/* 53 */ oos.writeObject(o);\n/* 54 */ oos.close();\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 65 */ return file;\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 56 */ e.printStackTrace();\n/* */ } finally {\n/* 58 */ if (oos != null) {\n/* */ try {\n/* 60 */ oos.close();\n/* */ }\n/* */ catch (Exception ioe) {}\n/* */ }\n/* */ }\n/* */ }", "void createFile()\n {\n //Check if file already exists\n try {\n File myObj = new File(\"src/main/java/ex45/exercise45_output.txt\");\n if (myObj.createNewFile()) {\n System.out.println(\"File created: \" + myObj.getName());// created\n } else {\n System.out.println(\"File already exists.\"); //exists\n }\n //Error check\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n }", "private void createValidationExceptionFile(final Class Class_, final String simpleName) throws Exception {\n final SessionFactory SessionFactory = HibernateUtil.getSingleton().getSessionFactoryLocal();\n final ClassMetadata classMetadata = SessionFactory.getClassMetadata(Class_);\n final String[] propertyNames = classMetadata.getPropertyNames();\n \n //Create the path\n final String className = simpleName + \"sValidatorsExceptions\";\n final String path = \"../era_easyretail/src/main/java/com/era/easyretail/validators/exceptions\";\n final String finalClassPath = path + \"/\" + className + \".java\"; \n \n //Get file content\n final String fileContent = this.getValidationExceptionContent(Class_,simpleName,propertyNames);\n \n //If the file exists delete it\n final File File = new File(finalClassPath); \n if(File.exists()){\n File.delete();\n }\n \n //Create the file\n File.createNewFile();\n \n //Write to the file\n try ( //Write the class\n FileWriter writer = new FileWriter(File)) { \n writer.write(fileContent);\n }\n }", "private FSDataOutputStream createNewFile() throws Exception {\n\t\tlogger.traceEntry();\n\t\tPath newFile = new Path(rootDirectory, \"dim_\" + System.currentTimeMillis() + \".json\");\n\t\tlogger.debug(\"Creating file \" + newFile.getName());\n\t\tFSDataOutputStream dataOutputStream = null;\n\n\t\tif (!hadoopFileSystem.exists(newFile)) {\n\t\t\tdataOutputStream = hadoopFileSystem.create(newFile);\n\t\t} else {\n\t\t\tdataOutputStream = hadoopFileSystem.append(newFile);\n\t\t}\n\n\t\tdataOutputStreams.clear();\n\t\tdataOutputStreams.add(dataOutputStream);\n\t\tlogger.traceExit();\n\t\treturn dataOutputStream;\n\t}", "public static File createTempFile() throws Exception {\n File dir = tempFileDirectory();\n dir.mkdirs();\n File tempFile = File.createTempFile(\"tst\", null, dir);\n dir.deleteOnExit(); // Not fail-safe on android )¬;\n return tempFile;\n }", "public void testCreateFileIllegalArgumentException() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n try {\r\n filePersistence.createFile(\" \", \"valid\");\r\n fail(\"if fileLocation is empty, throw IllegalArgumentException\");\r\n } catch (IllegalArgumentException e) {\r\n // good\r\n }\r\n try {\r\n filePersistence.createFile(\"valid\", \" \");\r\n fail(\"if persistenceName is empty, throw IllegalArgumentException\");\r\n } catch (IllegalArgumentException e) {\r\n // good\r\n }\r\n }", "public void createStorageFile() throws IoDukeException {\n PrintWriter writer = null;\n try {\n writer = getStorageFile();\n } catch (IOException e) {\n throw new IoDukeException(\"Error opening task file for reading\");\n } finally {\n if (writer != null) {\n writer.close();\n }\n }\n }", "private void createFile(String outputData, File file) {\n try {\n FileWriter writer = new FileWriter(file);\n writer.write(outputData);\n writer.close();\n } catch (IOException e) {\n e.getSuppressed();\n }\n }", "@Test\n public void throwsIOExceptionWhenCannotHash() throws IOException {\n File nonExistent = new File(\"nonExistent.gb\");\n\n thrown.expect(IOException.class);\n // Can not use message due to FileNotFoundException containing localized text on some OS:es\n\n // Throws\n new GameFile(nonExistent);\n }", "public void testAppendBytesFilePersistenceException() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n try {\r\n filePersistence.appendBytes(\"NotExist\", new byte[10]);\r\n fail(\"if no open output stream associate with the fileCreationId, throw FilePersistenceException\");\r\n } catch (FilePersistenceException e) {\r\n // good\r\n }\r\n }", "private static void writeToFile(final String message, final File toFile) {\n toFile.getParentFile().mkdirs();\n BufferedWriter writer = null;\n try {\n writer = new BufferedWriter(new FileWriter(toFile));\n writer.write(message);\n } \n catch (IOException e) {\n log.error(\"Error writing file=\"+toFile, e);\n } \n finally {\n if (writer != null) {\n try {\n writer.close();\n } \n catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }", "private void createFile() {\n if (mDriveServiceHelper != null) {\n Log.d(\"error\", \"Creating a file.\");\n\n mDriveServiceHelper.createFile()\n .addOnSuccessListener(fileId -> readFile(fileId))\n .addOnFailureListener(exception ->\n Log.e(\"error\", \"Couldn't create file.\", exception));\n }\n }", "public abstract T create(T file, boolean doPersist) throws IOException;", "private static File safeOpenFile() throws IOException {\n\t\tPath path = Paths.get(PropertyUtil.getConfigPath() + \"/config\");\n\n\t\tif (!Files.exists(path)) {\n\t\t\tFiles.createDirectories(path.getParent());\n\t\t\tFiles.createFile(path);\n\t\t\tlogger.debug(\"Creating {}\", path.toAbsolutePath());\n\t\t}\n\n\t\treturn path.toFile();\n\t}", "@Override\n public StorageOutputStream create(File file) throws IOException {\n\treturn null;\n }", "@Test\n public void testMakeFile() {\n FileTree myTree = new FileTree();\n String file = \"file1\";\n try {\n myTree.makeFile(file);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 already exists or the path is invalid.\");\n }\n try {\n assertEquals(myTree.getFile(file).getName(), \"file1\");\n } catch (NotFileException e) {\n fail(\"file could not be found\");\n }\n }", "private static boolean writeStringToFile(java.io.File r6, java.lang.String r7) {\n /*\n if (r7 != 0) goto L_0x0004\n java.lang.String r7 = \"\"\n L_0x0004:\n r1 = 0\n r2 = 0\n java.io.File r4 = r6.getParentFile() // Catch:{ IOException -> 0x0020 }\n ensureDirectory(r4) // Catch:{ IOException -> 0x0020 }\n java.io.FileWriter r3 = new java.io.FileWriter // Catch:{ IOException -> 0x0020 }\n r3.<init>(r6) // Catch:{ IOException -> 0x0020 }\n r3.write(r7) // Catch:{ IOException -> 0x003c, all -> 0x0039 }\n r1 = 1\n if (r3 == 0) goto L_0x003f\n r3.close() // Catch:{ IOException -> 0x001d }\n r2 = r3\n L_0x001c:\n return r1\n L_0x001d:\n r4 = move-exception\n r2 = r3\n goto L_0x001c\n L_0x0020:\n r0 = move-exception\n L_0x0021:\n java.lang.String r4 = \"PluginNativeHelper\"\n java.lang.String r5 = \"error occurs while writing file\"\n com.tencent.component.utils.log.LogUtil.d(r4, r5, r0) // Catch:{ all -> 0x0030 }\n if (r2 == 0) goto L_0x001c\n r2.close() // Catch:{ IOException -> 0x002e }\n goto L_0x001c\n L_0x002e:\n r4 = move-exception\n goto L_0x001c\n L_0x0030:\n r4 = move-exception\n L_0x0031:\n if (r2 == 0) goto L_0x0036\n r2.close() // Catch:{ IOException -> 0x0037 }\n L_0x0036:\n throw r4\n L_0x0037:\n r5 = move-exception\n goto L_0x0036\n L_0x0039:\n r4 = move-exception\n r2 = r3\n goto L_0x0031\n L_0x003c:\n r0 = move-exception\n r2 = r3\n goto L_0x0021\n L_0x003f:\n r2 = r3\n goto L_0x001c\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.component.plugin.PluginNativeHelper.writeStringToFile(java.io.File, java.lang.String):boolean\");\n }", "@Override\n public MethodOutcome fileAlreadyExistsOutcome() {\n return new MethodOutcome(MethodOutcome.Type.THROWS_EXCEPTION, IOException.class);\n }", "@Test\n\tpublic final void testWriteException() {\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our test assertion exception\"), \"Unit Tests\",\n\t\t\t\t\"Test of logging exception attachment.\", null);\n\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our top exception\",\n\t\t\t\t\t\tnew RuntimeException(\"This is our middle exception\",\n\t\t\t\t\t\t\t\tnew RuntimeException(\"This is our bottom exception\"))),\n\t\t\t\t\"Unit Tests\", \"Test of logging exception attachment with nested exceptions.\", null);\n\t}", "@SuppressWarnings(\"TailRecursion\")\n // As long as the specified path does not contain files with names matching a random UUID value,\n // recursive calls should not happen.\n private static File createFileUnderPath(Path path) {\n var fileName = UUID.randomUUID().toString();\n var result = new File(path.toFile(), fileName);\n if (result.exists()) {\n return createFileUnderPath(path);\n }\n try {\n result.createNewFile();\n return result;\n } catch (IOException e) {\n throw Exceptions.newIllegalStateException(e,\n \"Could not create a temporary file in %s.\",\n path.toAbsolutePath());\n }\n }", "@Test\n public void CreateFile() throws Exception {\n createFile(\"src\\\\TestSuite\\\\SampleFiles\\\\supervisor.xlsx\",\n readTemplateXLSX(\"src\\\\TestSuite\\\\SampleFiles\\\\template_supervisor.xlsx\"));\n File file = new File(\"src\\\\TestSuite\\\\SampleFiles\\\\supervisor.xlsx\");\n Assert.assertTrue(file.exists());\n }", "public static boolean createFile() throws IOException {\n String bytes = \"\";\n byte[] write = bytes.getBytes(); //Salva i bytes della stringa nel byte array\n if(!fileName.exists()){\n Path filePath = Paths.get(fileName.toString()); //Converte il percorso in stringa\n Files.write(filePath, write); // Creare il File\n Main.log(\"File \\\"parametri\\\" creato con successo in \" + fileName.toString());\n return true;\n }\n return false;\n }", "File createFile(String name) throws IOException {\n File storageFile = File.createTempFile(FILE_PREFIX + name + \"_\", null, this.subDirectories[fileCounter.getAndIncrement()&(this.subDirectories.length-1)]); //$NON-NLS-1$\n if (LogManager.isMessageToBeRecorded(org.teiid.logging.LogConstants.CTX_BUFFER_MGR, MessageLevel.DETAIL)) {\n LogManager.logDetail(org.teiid.logging.LogConstants.CTX_BUFFER_MGR, \"Created temporary storage area file \" + storageFile.getAbsoluteFile()); //$NON-NLS-1$\n }\n return storageFile;\n }", "public DLException(Exception e, String... data){\r\n try{\r\n bw = new BufferedWriter(new FileWriter(\"ErrorLog.txt\", true));\r\n }\r\n catch(IOException ioe){\r\n System.out.println(\"Error creating file in DLException.java\\nError: \" + ioe);\r\n }\r\n writeLog(e, data);\r\n }", "@Override\n public FSDataOutputStream create(Path f) throws IOException {\n return super.create(f);\n }", "public File newLogFile() {\n File flog = null;\n try {\n this.logFileName = getTimestamp() + \".xml\";\n this.pathToLogFile = logFileFolder + logFileName;\n URL logURL = new URL(this.pathToLogFile);\n flog = new File(logURL.toURI());\n if (!flog.exists()) {\n flog.createNewFile();\n }\n } catch (Exception ex) {\n log.error(\"newLogFile :\"+ ex.getMessage());\n } finally{\n this.fLogFile = flog;\n return flog;\n }\n }", "protected abstract void writeFile();", "public void testCreateFileNullPointerException() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n try {\r\n filePersistence.createFile(null, \"valid\");\r\n fail(\"if fileLocation is null, throw NullPointerException\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n try {\r\n filePersistence.createFile(\"valid\", null);\r\n fail(\"if persistenceName is null, throw NullPointerException\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n }", "private static void createFile(String fileType) throws Exception {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy-MM-dd-HH-mm-ss\");\n LocalDateTime now = LocalDateTime.now();\n File xmlFile = new File(System.getProperty(\"user.dir\")+\"/data/saved/\"+dtf.format(now) + fileType + \".xml\");\n OutputFormat out = new OutputFormat();\n out.setIndent(5);\n FileOutputStream fos = new FileOutputStream(xmlFile);\n XML11Serializer serializer = new XML11Serializer(fos, out);\n serializer.serialize(xmlDoc);\n\n }", "@Test\n public void testGetFile() {\n FileTree myTree = new FileTree();\n String file = \"file1\";\n try {\n myTree.makeFile(file);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 already exists or the path is invalid.\");\n }\n try {\n assertEquals(myTree.getFile(file).getName(), \"file1\");\n } catch (NotFileException e) {\n fail(\"file could not be found\");\n }\n }", "public void testCloseFileFilePersistenceException() {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n try {\r\n filePersistence.closeFile(\"NotExist\");\r\n fail(\"if no open output stream associate with the fileCreationId, throw FilePersistenceException\");\r\n } catch (FilePersistenceException e) {\r\n // good\r\n }\r\n }", "@Override\n\tpublic void demoCheckedException() throws IOException {\n\n\t}", "int createFile(String pFileNamePath, String pContent, String pPath, String pRoot, boolean pOverride) throws RemoteException;", "public void createFile(File file) {\n\t\tif (file.exists())\n\t\t\treturn;\n\t\ttry {\n\t\t\tfile.createNewFile();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "OutputStream getOutputStream() throws FileSystemException;", "@Override\n\tpublic void write(Object obj, File file) throws IJunitException {\n\t\t\n\t}", "public CustomExceptionHandler()\n {\n this.defaultUEH = Thread.getDefaultUncaughtExceptionHandler();\n Thread.setDefaultUncaughtExceptionHandler(this);\n this.fileName = Environment.getExternalStorageDirectory() + \"/imtv\";\n\n File f = new File(fileName);\n f.mkdirs();\n this.fileName = f.getAbsolutePath() + \"/error.log\";\n this.MB = 1024*1024;\n\n try\n {\n bos = new BufferedWriter(new FileWriter(fileName, true));\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n\n Log(TLogLevel.DebugVerbose, \"Свободной памяти: \" + getAvailableSizeSD() + \"byte\");\n }", "private void createFile(String fileName, String content) throws IOException {\n File file = new File(fileName);\n if (!file.exists()) {\n file.createNewFile();\n }\n FileWriter fileWriter = new FileWriter(fileName, false);\n fileWriter.append(content);\n fileWriter.close();\n }", "private File createNewRotationFile(String clearName, String extension, Path parent){\n\n Path newPath = getPathRotationFile(clearName, lastCountRotation+1, extension, parent);\n try{\n File ret = Files.createFile(newPath).toFile();\n return ret;\n } catch (IOException ex){\n System.out.println(\"Ошибка в создании файла: \"+ex.getMessage());\n }\n System.out.println(\"Ошибка в создании файла: \"+newPath);\n return file;\n }", "public static void touch(File f) throws IOException {\n if(f.exists())\n return;\n \n File parent = f.getParentFile();\n if(parent != null)\n parent.mkdirs();\n\n try {\n f.createNewFile();\n } catch(IOException failed) {\n // Okay, createNewFile failed. Let's try the old way.\n FileOutputStream fos = null;\n try {\n fos = new FileOutputStream(f);\n } catch(IOException ioe) {\n ioe.initCause(failed);\n throw ioe;\n } finally {\n if(fos != null) {\n try {\n fos.close();\n } catch(IOException ignored) {}\n }\n }\n }\n }", "FileReference createFile(String fileName, String toolId);", "private static IOException createIOException(String message, Exception cause) {\n final IOException exception = new IOException(message);\n exception.initCause(cause);\n return exception;\n }", "public static void makeNewFile(File root, String name) {\n File directory = new File(root, name);\n try {\n if (!directory.createNewFile()) {\n throw new IOException(\"Could not create \" + name + \", file already exists\");\n }\n } catch (IOException e) {\n throw new UncheckedIOException(\"Failed to create file: \" + name, e);\n }\n }", "public abstract void writeToFile( );", "public void createFile(File file) throws IOException {\n if (!file.exists()) {\n file.createNewFile();\n }\n }", "private static File createTempFile(final byte[] data) throws IOException {\r\n \t// Genera el archivo zip temporal a partir del InputStream de entrada\r\n final File zipFile = File.createTempFile(\"sign\", \".zip\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n final FileOutputStream fos = new FileOutputStream(zipFile);\r\n\r\n fos.write(data);\r\n fos.flush();\r\n fos.close();\r\n\r\n return zipFile;\r\n }", "private File createTempFile(TransferSongMessage message)\n throws IOException {\n File outputDir = MessagingService.this.getCacheDir(); // context being the Activity pointer\n String filePrefix = UUID.randomUUID().toString().replace(\"-\", \"\");\n int inx = message.getSongFileName().lastIndexOf(\".\");\n String extension = message.getSongFileName().substring(inx + 1);\n File outputFile = File.createTempFile(filePrefix, extension, outputDir);\n return outputFile;\n }", "File a(File file) {\n if (file != null) {\n if (file.exists() || file.mkdirs()) {\n return file;\n }\n akx.h().d(\"Fabric\", \"Couldn't create file\");\n do {\n return null;\n break;\n } while (true);\n }\n akx.h().a(\"Fabric\", \"Null File\");\n return null;\n }", "@Override\n public String createFile(String date, String todaysDate) throws FlooringMasteryPersistenceException{\n \n return \"You are in Training mode, cannot create file\";\n }", "public File createFile(final String path) {\n return new com.good.gd.file.File(path);\n }", "public void testCloseFileIllegalArgumentException() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n try {\r\n filePersistence.closeFile(\" \");\r\n fail(\"if fileCreationId is empty, throw IllegalArgumentException\");\r\n } catch (IllegalArgumentException e) {\r\n // good\r\n }\r\n }", "private static void createFile() throws Exception {\n\t\t // retrieve an instance of H4File\n\t\t FileFormat fileFormat = FileFormat.getFileFormat(FileFormat.FILE_TYPE_HDF4);\n\n\t\t if (fileFormat == null) {\n\t\t System.err.println(\"Cannot find HDF4 FileFormat.\");\n\t\t return;\n\t\t }\n\n\t\t // create a new file with a given file name.\n\t\t @SuppressWarnings(\"deprecation\")\n\t\t\t\tH4File testFile = (H4File) fileFormat.create(fname);\n\n\t\t if (testFile == null) {\n\t\t System.err.println(\"Failed to create file:\" + fname);\n\t\t return;\n\t\t }\n\n\t\t // open the file and retrieve the root group\n\t\t testFile.open();\n\t\t Group root = (Group) ((javax.swing.tree.DefaultMutableTreeNode) testFile.getRootNode()).getUserObject();\n\n\t\t // set the data values\n\t\t int[] dataIn = new int[20 * 10];\n\t\t for (int i = 0; i < 20; i++) {\n\t\t for (int j = 0; j < 10; j++) {\n\t\t dataIn[i * 10 + j] = 1000 + i * 100 + j;\n\t\t }\n\t\t }\n\n\t\t // create 2D 32-bit (4 bytes) integer dataset of 20 by 10\n\t\t Datatype dtype = testFile.createDatatype(Datatype.CLASS_INTEGER, 4, Datatype.NATIVE, Datatype.NATIVE);\n\t\t @SuppressWarnings(\"unused\")\n\t\t\t\tDataset dataset = testFile\n\t\t .createScalarDS(\"2D 32-bit integer 20x10\", root, dtype, dims2D, null, null, 0, dataIn);\n\n\t\t // close file resource\n\t\t //testFile.close();\n\t\t }", "private File createTestSpecificPropFile(String errorLibName) throws Exception {\n\t\tFile testProp = testingdir.getFile(ERRORLIBPROPS);\n\t\tAssert.assertTrue(\"Creating empty file: \" + testProp, testProp.createNewFile());\n\t\t\n\t\treturn testProp;\n\t}", "@Test\n\tpublic void testFileWritingExceptionsShowErrorDialog() throws Exception {\n\t\tfinal File exceptionsThrowingFile = mock(File.class);\n\t\t// Directory path throws an exception\n\t\twhen(exceptionsThrowingFile.getAbsolutePath()).thenReturn(\"/.stl/\");\n\n\t\t// Create a test image\n\t\tfinal DefaultLinearAxis xAxis = new DefaultLinearAxis(Axes.X, \"mm\");\n\t\tfinal DefaultLinearAxis yAxis = new DefaultLinearAxis(Axes.Y, \"mm\");\n\t\tfinal DefaultLinearAxis zAxis = new DefaultLinearAxis(Axes.Z, \"mm\");\n\t\tfinal Img<BitType> img = ArrayImgs.bits(1, 1, 1);\n\t\tfinal ImgPlus<BitType> imgPlus = new ImgPlus<>(img, \"Test image\", xAxis,\n\t\t\tyAxis, zAxis);\n\n\t\t// Mock UI\n\t\tfinal UserInterface mockUI = mock(UserInterface.class);\n\t\tfinal SwingDialogPrompt mockPrompt = mock(SwingDialogPrompt.class);\n\t\twhen(mockUI.chooseFile(any(File.class), anyString())).thenReturn(\n\t\t\texceptionsThrowingFile);\n\t\twhen(mockUI.dialogPrompt(startsWith(STL_WRITE_ERROR), anyString(), eq(\n\t\t\tERROR_MESSAGE), any())).thenReturn(mockPrompt);\n\t\tIMAGE_J.ui().setDefaultUI(mockUI);\n\n\t\t// Run plugin\n\t\tIMAGE_J.command().run(IsosurfaceWrapper.class, true, \"inputImage\", imgPlus,\n\t\t\t\"exportSTL\", true).get();\n\n\t\t// Verify that write error dialog got shown\n\t\tverify(mockUI, after(100).times(1)).dialogPrompt(startsWith(\n\t\t\tSTL_WRITE_ERROR), anyString(), eq(ERROR_MESSAGE), any());\n\t}", "private BufferedWriter abrirArquivoEscrita() {\n\t\ttry{\n\t\t\tBufferedWriter file = null;\n\t\t\tfile = new BufferedWriter(new FileWriter(caminho));\n\t\t\treturn file;\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public static void main(String[] args) {\n\n\t\tFile fi = new File(\"C:/test_io\");\n\t\tif(fi.exists()) {\n\t\t\t\n\t\t\tSystem.out.println(\"exists!\");\n\t\t}else {\n\t\t\tSystem.out.println(\"new\");\n\t\t\tfi.mkdir();\n\t\t}\n\t\t\n\t\tFile fic1 = new File(fi, \"AA\");\n\t\tfic1.mkdir();\n\t\t\n\t\tFile fic2 = new File(\"C:/test_io\", \"BB\");\n\t\tfic2.mkdir();\n\t\t\n\t\tFile fitxt = new File(fic1,\"a.txt\");\n\t\t\n\t\ttry {//checked exception\n\t\t\tfitxt.createNewFile();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void CreateFile(){\n try{\n new File(\"wipimages\").mkdir();\n logscommissions.createNewFile();\n }catch(Exception e){\n e.printStackTrace();\n System.out.println(\"CreateFile Failed\\n\");\n }\n }", "File createFile(String name, Properties properties) throws IOException {\n File file = new File(directory, name);\n try (FileOutputStream fos = new FileOutputStream(file)) {\n properties.store(fos, \"Property file '\" + name + \"'\");\n }\n return (file);\n }", "boolean c(ol.a a) {\n FileOutputStream fileOutputStream;\n File file = this.oS();\n try {\n fileOutputStream = new FileOutputStream(file);\n }\n catch (FileNotFoundException var1_2) {\n bh.T(\"Error opening resource file for writing\");\n return false;\n }\n fileOutputStream.write(pn.f(a));\n try {\n fileOutputStream.close();\n return true;\n }\n catch (IOException var1_3) {\n bh.W(\"error closing stream for writing resource to disk\");\n return true;\n }\n catch (IOException iOException) {\n try {\n bh.W(\"Error writing resource to disk. Removing resource from disk.\");\n file.delete();\n }\n catch (Throwable var1_6) {\n try {\n fileOutputStream.close();\n }\n catch (IOException var2_9) {\n bh.W(\"error closing stream for writing resource to disk\");\n throw var1_6;\n }\n throw var1_6;\n }\n try {\n fileOutputStream.close();\n return false;\n }\n catch (IOException var1_5) {\n bh.W(\"error closing stream for writing resource to disk\");\n return false;\n }\n }\n }", "public static void main(String[] args) {\n\t\tFile file = new File(\"test/a.txt\");\r\n\t\tFileUtil.createFile(file);\r\n\t\t/*if(! file.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tSystem.out.println(file.getAbsolutePath());\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t*/\r\n\t}", "public static LogFile createLogFile(Path p) throws StructureException {\n if (!Files.isRegularFile(p))\n throw new StructureException(StructureException.Type.NOT_FILE);\n\n return new LogFile(p);\n }", "public boolean create() {\n boolean operation = false;\n try {\n File file = new File( fileName );\n file.createNewFile();\n\n if ( this.open() == false ) {\n throw new Exception(\"File created but still has issues opening the file\");\n } else {\n writeFirstLine(\"\");\n }\n\n operation = true;\n } catch( Exception error ) {\n System.out.println(error.toString());\n operation = false;\n }\n\n return operation;\n }", "void putFile(String filename, byte[] file) throws FileAlreadyExistsException;", "@Test\n public void createFile(){\n try\n {\n URI uri = new URI(\"http://www.yu.edu/documents/doc390\");//given the complete uri\n String path = uri.getAuthority() + this.disectURI(uri);//get the Path which is www.yu.edu\\documents\n File file = new File(baseDir.getAbsolutePath() + File.separator + path);//make a File with the full class path and with the \"URI Path\"\n Files.createDirectories(file.toPath());//create the directories we didn't have before, ie not apart of the baseDir\n\n File theFile = new File(file.getAbsolutePath() + File.separator + \"doc390.txt\");//create a new File with the document as the last piece\n //wrap in a try because if the file is already there than we don't need to create a file\n if(!theFile.exists())Files.createFile(theFile.toPath());//create this file in the computer\n\n //write to the file -- in the real application this is the writing of the json\n FileWriter fileWriter = new FileWriter(theFile);\n fileWriter.write(\"HaYom sishi BShabbos\");\n fileWriter.flush();\n fileWriter.close();\n\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }", "private String saveCrashInfo2File(Throwable throwable) {\n StringBuffer stringBuffer = new StringBuffer();\n Iterator iterator = this.infos.entrySet().iterator();\n do {\n if (!iterator.hasNext()) break;\n Map.Entry entry = (Map.Entry)iterator.next();\n String string2 = (String)entry.getKey();\n String string3 = (String)entry.getValue();\n stringBuffer.append(String.valueOf((Object)string2) + \"=\" + string3 + \"\\n\");\n } while (true);\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter((Writer)stringWriter);\n throwable.printStackTrace(printWriter);\n Throwable throwable2 = throwable.getCause();\n do {\n if (throwable2 == null) {\n printWriter.close();\n stringBuffer.append(stringWriter.toString());\n long l = System.currentTimeMillis();\n String string4 = this.formatter.format(new Date());\n String string5 = \"crash-\" + string4 + \"-\" + l + \".log\";\n if (!Environment.getExternalStorageState().equals((Object)\"mounted\")) return string5;\n File file = new File(\"/sdcard/crash/\");\n if (!file.exists()) {\n file.mkdirs();\n }\n FileOutputStream fileOutputStream = new FileOutputStream(String.valueOf((Object)\"/sdcard/crash/\") + string5);\n fileOutputStream.write(stringBuffer.toString().getBytes());\n fileOutputStream.close();\n return string5;\n }\n throwable2.printStackTrace(printWriter);\n throwable2 = throwable2.getCause();\n } while (true);\n catch (Exception exception) {\n Log.e((String)\"CrashHandler\", (String)\"an error occured while writing file...\", (Throwable)exception);\n return null;\n }\n }", "@Nonnull\r\n @Override\r\n public FileSystem produce() throws IOException {\r\n return newInstance();\r\n }", "public WriteException(String message)\n {\n super(message);\n }", "private void createResource(IResource resource) throws CoreException {\n \t\tif (resource.exists()) {\n \t\t\treturn;\n \t\t}\n \n \t\tcreateResource(resource.getParent());\n \n \t\tint type = resource.getType();\n \n \t\tif (type == IResource.FOLDER) {\n \t\t\t((IFolder) resource).create(true, true, null);\n \t\t} else if (type == IResource.FILE) {\n \t\t\t((IFile) resource).create(null, true, null);\n \t\t} else {\n \t\t\tthrow new ResourceException(IResourceStatus.RESOURCE_WRONG_TYPE, null, \"Wrong resource type\", null);\n \t\t}\n \t}", "@Test\n public void testMakeFileFileExists() {\n FileTree myTree = new FileTree();\n String file = \"file1\";\n boolean result = false;\n try {\n myTree.makeFile(file);\n myTree.makeFile(file);\n } catch (NotDirectoryException | AlreadyExistException e) {\n result = true;\n }\n assertTrue(result);\n\n }", "public ThingToWriteFile(String filename) { \n\t\ttry { \t\n\t\t\tout = new BufferedWriter(new FileWriter(filename));\n\t\t}\n\t\tcatch (FileNotFoundException ee){\n\t\t\tSystem.out.println(\"File \" + filename + \" not found.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tcatch (IOException e){\n\t\t\tSystem.out.println(\"File \" + filename + \" cannot be read.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "void create(T instance) throws IOException;", "@Test (expected=LogHandlerException.class)\n\t\t\tpublic void filedoesntExistException() throws PizzaException, LogHandlerException{\n\t\t\t\tLogHandler.populatePizzaDataset(\"invalidFilePath\");\n\t\t\t}", "private void checkFileCreation(String name) throws IOException {\n byte[] buff = \"some bytes\".getBytes();\n writeFile(name, buff);\n assertTrue(Arrays.equals(buff, readFile(name, buff.length)));\n }", "private void logException(Exception e)\n throws Exception {\n\n FileWriter write = null;\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n Date date = new Date();\n\n try {\n write = new FileWriter(\"c:\\\\temp\\\\CaseOperationException.log\", true);\n PrintWriter print_line = new PrintWriter(write);\n print_line.printf(dateFormat.format(date) + \"\\n\");\n e.printStackTrace(print_line);\n print_line.close();\n } catch (IOException exc) {\n }\n\n throw e;\n }", "public static final void writeBytes(@org.jetbrains.annotations.NotNull java.io.File r2, @org.jetbrains.annotations.NotNull byte[] r3) {\n /*\n java.lang.String r0 = \"$this$writeBytes\"\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r2, r0)\n java.lang.String r0 = \"array\"\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r3, r0)\n java.io.FileOutputStream r0 = new java.io.FileOutputStream\n r0.<init>(r2)\n java.io.Closeable r0 = (java.io.Closeable) r0\n r2 = 0\n r1 = r0\n java.io.FileOutputStream r1 = (java.io.FileOutputStream) r1 // Catch:{ Throwable -> 0x001e }\n r1.write(r3) // Catch:{ Throwable -> 0x001e }\n kotlin.io.CloseableKt.closeFinally(r0, r2)\n return\n L_0x001c:\n r3 = move-exception\n goto L_0x0020\n L_0x001e:\n r2 = move-exception\n throw r2 // Catch:{ all -> 0x001c }\n L_0x0020:\n kotlin.io.CloseableKt.closeFinally(r0, r2)\n throw r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.io.i.writeBytes(java.io.File, byte[]):void\");\n }", "private static void createLogFile() {\n try {\n String date = new Date().toString().replaceAll(\":\", \"-\");\n logFile = new FileWriter(\"bio-formats-test-\" + date + \".log\");\n TestLogger log = new TestLogger(logFile);\n LogTools.setLog(log);\n }\n catch (IOException e) { }\n }", "protected abstract File download(Exception previousException) throws Exception;", "public static File writeObjectToTempFile(Serializable o, String filename)\n/* */ throws IOException\n/* */ {\n/* 76 */ File file = File.createTempFile(filename, \".tmp\");\n/* 77 */ file.deleteOnExit();\n/* 78 */ ObjectOutputStream oos = new ObjectOutputStream(new BufferedOutputStream(new GZIPOutputStream(new FileOutputStream(file))));\n/* 79 */ oos.writeObject(o);\n/* 80 */ oos.close();\n/* 81 */ return file;\n/* */ }", "private static void createTestFile(String path) throws IOException {\n\t\tFile file = new File(path);\n\t\tFileWriter writer = new FileWriter(file);\n\t\twriter.write(\"Jenkins Test : \"+new Date() + \" ==> Writing : \" + Math.random());\n\t\twriter.flush();\n\t\twriter.close();\n\t}", "private static BufferedWriter createFileWriter(String filePath) {\n String[] pathComponents = filePath.split(\"/data/\");\n //to avoid heavy nesting in output, replace nested directory with filenames\n\n String output = pathComponents[0] + \"/out/rule_comparisons/\" + pathComponents[1].replace(\"/\",\"-\");\n\n File file = new File(output);\n try {\n //create file in this location if one does not exist\n if (!file.exists()) {\n file.createNewFile();\n }\n return new BufferedWriter(new FileWriter(file));\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public EnigmaFile() throws Exception\n {\n\n String path = Main.class.getClassLoader().getResource(\"filein.txt\").getPath();\n File currentDirectory=new File(path);\n finstream = new FileInputStream(currentDirectory);\n\n\n String pathToWrite = path.replaceFirst(\"filein.txt\",\"fileout.txt\");\n File outputFile = new File(pathToWrite);\n br = new BufferedReader(new InputStreamReader(finstream));\n outputFile.createNewFile();\n FileWriter fileWrite = new FileWriter(outputFile.getAbsoluteFile());\n writer = new BufferedWriter(fileWrite);\n\n\n }", "public DataAccessException() {\n super(\"File cannot be opened or read. Please check!\");\n }", "DukeFileWriteException(String displayMsg) {\n super(\"Error encountered while writing task data to disk\", displayMsg);\n }", "void getFile(String path, OutputStream stream) throws NotFoundException, IOException;", "public static boolean saveFile(java.lang.String r4, java.lang.String r5) {\n /*\n r0 = 0\n r1 = 0\n java.io.FileWriter r2 = new java.io.FileWriter // Catch:{ Exception -> 0x003c, all -> 0x0039 }\n java.io.File r3 = new java.io.File // Catch:{ Exception -> 0x003c, all -> 0x0039 }\n r3.<init>(r4) // Catch:{ Exception -> 0x003c, all -> 0x0039 }\n r2.<init>(r3) // Catch:{ Exception -> 0x003c, all -> 0x0039 }\n java.io.BufferedWriter r4 = new java.io.BufferedWriter // Catch:{ Exception -> 0x0037 }\n r4.<init>(r2) // Catch:{ Exception -> 0x0037 }\n r4.write(r5) // Catch:{ Exception -> 0x0034, all -> 0x0031 }\n r4.flush() // Catch:{ Exception -> 0x0034, all -> 0x0031 }\n r5 = 1\n r4.close() // Catch:{ Exception -> 0x001c }\n goto L_0x0024\n L_0x001c:\n r4 = move-exception\n java.lang.String r0 = \"\"\n java.lang.Object[] r3 = new java.lang.Object[r1]\n com.ta.audid.utils.UtdidLogger.se(r0, r4, r3)\n L_0x0024:\n r2.close() // Catch:{ Exception -> 0x0028 }\n goto L_0x0030\n L_0x0028:\n r4 = move-exception\n java.lang.String r0 = \"\"\n java.lang.Object[] r1 = new java.lang.Object[r1]\n com.ta.audid.utils.UtdidLogger.se(r0, r4, r1)\n L_0x0030:\n return r5\n L_0x0031:\n r5 = move-exception\n r0 = r4\n goto L_0x0063\n L_0x0034:\n r5 = move-exception\n r0 = r4\n goto L_0x003e\n L_0x0037:\n r5 = move-exception\n goto L_0x003e\n L_0x0039:\n r5 = move-exception\n r2 = r0\n goto L_0x0063\n L_0x003c:\n r5 = move-exception\n r2 = r0\n L_0x003e:\n java.lang.String r4 = \"\"\n java.lang.Object[] r3 = new java.lang.Object[r1] // Catch:{ all -> 0x0062 }\n com.ta.audid.utils.UtdidLogger.se(r4, r5, r3) // Catch:{ all -> 0x0062 }\n if (r0 == 0) goto L_0x0053\n r0.close() // Catch:{ Exception -> 0x004b }\n goto L_0x0053\n L_0x004b:\n r4 = move-exception\n java.lang.String r5 = \"\"\n java.lang.Object[] r0 = new java.lang.Object[r1]\n com.ta.audid.utils.UtdidLogger.se(r5, r4, r0)\n L_0x0053:\n if (r2 == 0) goto L_0x0061\n r2.close() // Catch:{ Exception -> 0x0059 }\n goto L_0x0061\n L_0x0059:\n r4 = move-exception\n java.lang.String r5 = \"\"\n java.lang.Object[] r0 = new java.lang.Object[r1]\n com.ta.audid.utils.UtdidLogger.se(r5, r4, r0)\n L_0x0061:\n return r1\n L_0x0062:\n r5 = move-exception\n L_0x0063:\n if (r0 == 0) goto L_0x0071\n r0.close() // Catch:{ Exception -> 0x0069 }\n goto L_0x0071\n L_0x0069:\n r4 = move-exception\n java.lang.String r0 = \"\"\n java.lang.Object[] r3 = new java.lang.Object[r1]\n com.ta.audid.utils.UtdidLogger.se(r0, r4, r3)\n L_0x0071:\n if (r2 == 0) goto L_0x007f\n r2.close() // Catch:{ Exception -> 0x0077 }\n goto L_0x007f\n L_0x0077:\n r4 = move-exception\n java.lang.Object[] r0 = new java.lang.Object[r1]\n java.lang.String r1 = \"\"\n com.ta.audid.utils.UtdidLogger.se(r1, r4, r0)\n L_0x007f:\n throw r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ta.audid.utils.FileUtils.saveFile(java.lang.String, java.lang.String):boolean\");\n }", "public static void createFile(String file) throws FileNotFoundException {\n\t\tif(!file.contains(\".txt\")) {\n\t\t\tthrow new IllegalArgumentException(\"Wrong format\"); \n\t\t}\n\t\tPrintWriter pw = new PrintWriter(file);\n\t\tpw.close();\n\n\t}", "private FileUtil() {}", "Write createWrite();", "public File generateFile()\r\n {\r\n return generateFile(null);\r\n }", "public static synchronized Result makeOutputFile(URI absoluteURI) throws XPathException {\n File newFile = new File(absoluteURI);\n try {\n if (!newFile.exists()) {\n File directory = newFile.getParentFile();\n if (directory != null && !directory.exists()) {\n directory.mkdirs();\n }\n newFile.createNewFile();\n }\n return new StreamResult(newFile);\n } catch (IOException err) {\n throw new XPathException(\"Failed to create output file \" + absoluteURI, err);\n }\n }", "public void testDisposeSuccess() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n String fileCreationId = filePersistence.createFile(VALID_FILELOCATION, FILENAME);\r\n filePersistence.dispose();\r\n try {\r\n filePersistence.appendBytes(fileCreationId, new byte[10]);\r\n fail(\"all open output stream should closed\");\r\n } catch (FilePersistenceException e) {\r\n // good\r\n }\r\n }", "public OutputStream openOutputStream(String path) throws SystemException;" ]
[ "0.6332698", "0.60209924", "0.6018523", "0.6010521", "0.59910655", "0.5965638", "0.59628195", "0.59406143", "0.58998275", "0.58656615", "0.5831596", "0.5802075", "0.580132", "0.57257384", "0.5694388", "0.5687452", "0.5680445", "0.5677639", "0.56738245", "0.5660324", "0.5645726", "0.56448215", "0.56344754", "0.56240267", "0.560573", "0.5600347", "0.5580944", "0.5570801", "0.556692", "0.5547643", "0.5534203", "0.553188", "0.5520351", "0.55187017", "0.5507761", "0.54880774", "0.54854184", "0.547313", "0.5457334", "0.54324114", "0.54306835", "0.5428702", "0.5423987", "0.5417694", "0.54123604", "0.540506", "0.5386682", "0.5385433", "0.53783065", "0.5375906", "0.5370975", "0.53576916", "0.53332484", "0.53297925", "0.5328165", "0.5325886", "0.5325487", "0.5318379", "0.5308225", "0.52896523", "0.5283256", "0.5279714", "0.52704346", "0.52644795", "0.5263513", "0.52597636", "0.5250018", "0.5232415", "0.5230083", "0.52279854", "0.5210182", "0.5205719", "0.51606756", "0.5154758", "0.51366633", "0.5134337", "0.5131421", "0.5126002", "0.51232135", "0.51203823", "0.51116574", "0.51053077", "0.5103409", "0.5100749", "0.5098799", "0.5089834", "0.50843227", "0.50826", "0.50785285", "0.5077651", "0.5076733", "0.5073075", "0.5071581", "0.5065624", "0.5061773", "0.50609434", "0.50603634", "0.50593734", "0.50568527", "0.50511324" ]
0.56408805
22
close (wrap checked exception)
public static void close(OutputStream out) { try { out.close(); } catch (Exception exp) { throw new RuntimeException(exp); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void close() throws Exception;", "void close() throws Exception;", "void close() throws Exception;", "@Override\n void close() throws Exception;", "public void closed(Throwable t);", "Throwable getCloseException();", "@Override\n public void close() throws Exception {\n }", "@Override\n\t\tpublic void close() throws Exception {\n\t\t}", "@Override\n public void close() throws Exception {\n }", "@Override\n\tpublic void close() throws Exception {\n\t\t\n\t}", "void close() throws IOException;", "void close() throws IOException;", "void close() throws IOException;", "void close() throws IOException;", "void close() throws IOException;", "void close() throws IOException;", "void close() throws IOException;", "void close() throws IOException;", "void close() throws IOException;", "void close() throws IOException;", "void close() throws IOException;", "@Override\r\n\tpublic void close() throws Exception {\n\r\n\t}", "public void close() throws java.io.IOException { throw new RuntimeException(\"Stub!\"); }", "public void close() throws IOException;", "public void close() throws IOException;", "public void close() throws IOException;", "public void close() throws IOException;", "public void close() throws IOException;", "public void close() throws IOException;", "public void close() throws IOException;", "public void close() throws IOException;", "@Override\r\n\tprotected void doClose() throws Exception {\n\t\t\r\n\t}", "void close() throws EDIStreamException;", "abstract void close();", "abstract void close();", "public synchronized void close() {}", "public abstract void close() throws IOException;", "public abstract void close() throws IOException;", "public void close() throws Exception {\n System.out.println(\"Closing\");\n \n throw new Exception(\"oh no\"); // The great thing in Java 7 is that, even though this line will throw an exception, but the \"Closing\" would still be executed.\n }", "void close() throws FileSystemException;", "public void close() {\n wrapped.close();\n }", "abstract public void close() throws IOException;", "@Override\n void close();", "@Override\n void close();", "@Override\n void close();", "@Override\n void close();", "void close() throws ContentStoreException;", "@Override public abstract void close();", "@Override\n void close() throws IOException;", "public void close() {}", "@Override\n void close() throws IOException;", "@Override\r\n\tpublic void close() throws Exception {\r\n\t\tSystem.out.println(\"Cerrado\");\r\n\t}", "@Override\n public void close() { }", "public abstract void close();", "public abstract void close();", "public abstract void close();", "public abstract void close();", "public abstract void close();", "public native int close() throws IOException,IllegalArgumentException;", "@Override\n void close();", "@Override\n void close();", "public\n void close() throws ResourceException;", "public void close() throws CoreException;", "@Override\n public void close() throws IOException {\n }", "@Override\n public void close() throws IOException {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n\tpublic void close() throws IOException {\n\t\t\n\t}", "@Override\n\tpublic void close() throws IOException {\n\t\t\n\t}", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "public void close() {\n/* */ try {\n/* 42 */ this.dat.close();\n/* */ }\n/* 44 */ catch (Exception e) {\n/* 45 */ Utilidades.writeError(\"CalPlanMetasFactory:close\", e);\n/* */ } \n/* */ }", "public abstract void close() throws TrippiException;", "public void close() throws IOException {\n\t}", "public void close() throws IOException {\n\t}", "@Override\n void close() throws IOException;", "@Override\n\tpublic void close() {\n\t}", "@Override\n\tpublic void close() {\n\t}", "@Override\n\tpublic void close() {\n\t}", "@Override\n\tpublic void close() {\n\t}", "@Override\n\tpublic void close() {\n\t}", "public void close() throws Exception{\r\n\tout.close();\r\n}", "@Override\n public void close() throws IOException {\n\n }", "@Override\n\t\tpublic void close() throws IOException {\n\t\t\t\n\t\t}", "public void close() throws OBException;", "@Override\n\tpublic void close() {\n\t\t\n\t}", "@Override\n\tpublic void close() {\n\t\t\n\t}", "@Override\n\tpublic void close() {\n\t\t\n\t}", "@Override\n\tpublic void close() {\n\t\t\n\t}", "@Override\n public void close() {\n //no-op\n }" ]
[ "0.7969488", "0.7969488", "0.7804124", "0.7468261", "0.746326", "0.742005", "0.7352113", "0.72957516", "0.7280146", "0.72784317", "0.711237", "0.711237", "0.711237", "0.711237", "0.711237", "0.711237", "0.711237", "0.711237", "0.711237", "0.711237", "0.711237", "0.7070125", "0.6897001", "0.6870603", "0.6870603", "0.6870603", "0.6870603", "0.6870603", "0.6870603", "0.6870603", "0.6870603", "0.684476", "0.6803529", "0.6704444", "0.6704444", "0.67016363", "0.6698312", "0.6698312", "0.66899544", "0.6679463", "0.66670233", "0.66584307", "0.66493833", "0.66493833", "0.66493833", "0.66493833", "0.6632932", "0.66189927", "0.6615439", "0.6602272", "0.660111", "0.6593615", "0.6567736", "0.65624946", "0.65624946", "0.65624946", "0.65624946", "0.65624946", "0.6556253", "0.65406173", "0.65406173", "0.6536266", "0.6513123", "0.65109986", "0.65109986", "0.6498874", "0.6498874", "0.6476879", "0.6476879", "0.64658755", "0.64658755", "0.64658755", "0.64658755", "0.64658755", "0.64658755", "0.64658755", "0.64658755", "0.64658755", "0.64658755", "0.64658755", "0.64658755", "0.6447012", "0.644575", "0.64337516", "0.6426594", "0.6426594", "0.6411026", "0.6408911", "0.6408911", "0.6408911", "0.6408911", "0.6408911", "0.6397643", "0.6390176", "0.6388502", "0.63825685", "0.6360456", "0.6360456", "0.6360456", "0.6360456", "0.63545877" ]
0.0
-1
The method is used to search for books whose name begins with a vowel
public static void bookNameSearch(Set<Book> books) { Pattern pattern = Pattern.compile(SEARCH_PARAMETER); for (Book book : books) { Matcher matcher = pattern.matcher(book.getBookName()); if (matcher.find()) { System.out.println(book); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String searchVowel();", "public List<Ve> searchVe(String maSearch);", "PersonFinder whereNameContains(String fragment);", "@In String search();", "@Override\n public List<FoodItem> filterByName(String substring) {\n if (foodItemList == null || foodItemList.size() == 0)\n return foodItemList;\n List<FoodItem> foodCandidate = new ArrayList<>();\n \tfor (FoodItem food : foodItemList) {\n if (food.getName().equals(substring)) {\n foodCandidate.add(food);\n }\n \t}\n return foodCandidate;\n \n }", "@Override\n public List<FoodItem> filterByName(String substring) {\n //turn foodItemList into a stream to filter the list and check if any food item matched \n return foodItemList.stream().filter(x -> x.getName().toLowerCase() \n .contains(substring.toLowerCase())).collect(Collectors.toList());\n }", "@Override\n public boolean test(Ingredient ingredient) {\n if (ingredient.getName().toUpperCase().contains(searchText.toUpperCase())){\n return true;\n } else {\n return false;\n }\n }", "@Override\n public boolean test(Ingredient ingredient) {\n if (ingredient.getName().toUpperCase().contains(searchText.toUpperCase())){\n return true;\n } else {\n return false;\n }\n }", "@Query(\"select i from Item i where lower(i.name) like lower(:namePart)\")\n List<Item> searchInNames(@Param(\"namePart\") String namePart);", "List<AlbumVO> searchAlbum(String searchText) throws Exception;", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "List<Student> findByNameContainingIgnoringCase(String name);", "@Query(\"select i from Item i where lower(i.name) like lower(?1)\")\n Page<Item> searchInNames(String namePart, Pageable pageable);", "public List<Product> search(String searchString);", "List<SongVO> searchSong(String searchText) throws Exception;", "public List<Book> readByBookName(String searchString) throws Exception{\n\t\tsearchString = \"%\"+searchString+\"%\";\n\t\treturn (List<Book>) template.query(\"select * from tbl_book where title like ?\", new Object[] {searchString}, this);\n\t}", "List<Item> findByNameContainingIgnoreCase(String name);", "public static boolean beginsWithVowel(String w){\n return isAVowel(w.substring(0,1)); //is the first letter a vowel?\n }", "public void findBookTitle(String title) {\n\t\tboolean match = false;\n\t\tfor (int i = 0; i < bookList.size(); i++) {\n\t\t\t// Find text with Contains OR find text with the full title\n\t\t\tif (bookList.get(i).getTitle().toLowerCase().contains(title.toLowerCase())\n\t\t\t\t\t|| bookList.get(i).getTitle().toLowerCase().equals(title.toLowerCase())) {\n\t\t\t\tmatch = true;\n\t\t\t\tSystem.out.println(bookList.get(i));\n\t\t\t}\n\t\t}\n\t\tif (!match) {\n\t\t\tSystem.out.println(\"Could not find the book Title\");\n\t\t}\n\t}", "public static boolean beginsWithVowel( String w ) {\r\n\treturn isAVowel(w.substring(0,1));\r\n }", "public List<Produit> searchProduitsByVendeur(String theVendeur);", "public String advancedSearchBooks() {\r\n List<Books> books = new ArrayList<Books>();\r\n keywords = keywords.trim();\r\n \r\n switch (searchBy) {\r\n case \"all\":\r\n return searchBooks();\r\n case \"title\":\r\n books = findBooksByTitle(keywords);\r\n break;\r\n case \"identifier\":\r\n books = findBooksByIdentifier(keywords);\r\n break;\r\n case \"contributor\":\r\n books = findBooksByContributor(keywords);\r\n break;\r\n case \"publisher\":\r\n books = findBooksByPublisher(keywords);\r\n break;\r\n case \"year\":\r\n books = findBooksByYear(keywords);\r\n break;\r\n case \"genre\":\r\n books = findBooksByGenre(keywords);\r\n break;\r\n case \"format\":\r\n books = findBooksByFormat(keywords);\r\n break;\r\n }\r\n clearFields();\r\n\r\n if (books == null || books.isEmpty()) {\r\n books = new ArrayList<Books>();\r\n }\r\n\r\n return displayBooks(books);\r\n }", "private void search(String product) {\n // ..\n }", "private void search(String[] searchItem)\n {\n }", "List<Book> findBooksByName(String name);", "@Override\n public List<Client> filterByName(String searchString){\n log.trace(\"filterByName -- method entered\");\n Iterable<Client> clients = clientRepository.findAll();\n List<Client> result = StreamSupport.stream(clients.spliterator(),false).filter((c)->c.getName().contains(searchString)).collect(Collectors.toList());\n log.trace(\"filterByName: result = {}\", result);\n return result;\n\n }", "static void test_containsVowel() {\n\n String park = new String( \"I went to the park\" );\n String capConsonants = new String( \"QWRTYPLKJHGFDSZXCVBNM\" );\n String lowerConsonants = new String( \"qwrtyplkjhgfdszxcvbnm\" );\n\n\n System.out.println( \"\\nTESTS FOR containsVowel() :\" );\n\n System.out.print( \"Test for string 'I went to the park' : \" );\n try { System.out.println( StringStuff.containsVowel( park ) ? \"true\" : \"false\" ); }\n catch( Exception e ) { System.out.println ( false ); }\n\n System.out.print( \"Test for string 'QWRTYPLKJHGFDSZXCVBNM' : \" );\n try { System.out.println( StringStuff.containsVowel( capConsonants ) ? \"true\" : \"false\" ); }\n catch( Exception e ) { System.out.println ( false ); }\n\n System.out.print( \"Test for string 'qwrtyplkjhgfdszxcvbnm' : \" );\n try { System.out.println( StringStuff.containsVowel( lowerConsonants ) ? \"true\" : \"false\" ); }\n catch( Exception e ) { System.out.println ( false ); }\n\n\n }", "PersonFinder whereNameStartsWith(String prefix);", "@And(\"I enter the book name in the search field\")\n\tpublic void i_enter_the_book_name_in_the_search_field() {\n\t\tdriver.findElement(By.xpath(campobusca)).sendKeys(searchTerm);\n\t}", "public static boolean containsVowel( String s ) {\n String s2 = s.toLowerCase();\n //s2 = s.toLowerCase(); -- dont fuck with the original param\n\n for (int i = 0; i < s2.length(); i++) {\n if (s2.charAt(i) == 'a' || s2.charAt(i) == 'e' || s2.charAt(i) == 'i' ||\n s2.charAt(i) == 'o' || s2.charAt(i) == 'u' || s2.charAt(i) == 'y') {\n return true;\n }\n }\n return false;\n//use the s2 so you dont have to check the cap letters\n\n // return !(s.indexOf('a') < 0 && s.indexOf('e') && s.indexOf('i') < 0 && s.indexOf('o') < 0 && s.indexOf('u') < 0 && s.indexOf('y') < 0);\n }", "public void doSearch(String searchText){\n }", "public List<Book> getByAuthor(String name );", "public void search() {\r\n \t\r\n }", "abstract public void search();", "public ArrayList<Book> search(String part){ \n this.searchBooks = new ArrayList<Book>();\n this.numberedListOfSearch = new HashMap<Integer, Book>();\n if (part.length()>=4){\n //Adding all the searching books into an ArrayList<Book>\n //No duplicating for books having the same title\n boolean bookExist = false;\n for (Book book : this.libraryBooks){\n if ((book.getTitle().toLowerCase().contains(part.toLowerCase())) || (book.getAuthor().toLowerCase().contains(part.toLowerCase()))){\n //Check whether any books having the same title in the list\n for (Book bookSearch : this.searchBooks){\n if (bookSearch.getTitle().equals(book.getTitle())){\n bookExist = true;\n break;\n }\n }\n //If none!\n if(!bookExist){\n this.searchBooks.add(book);\n }\n }\n bookExist = false;\n }\n //To put into a numbered list for printing\n //No duplicating for books having the same title\n for (int i =0; i < (this.searchBooks.size());i++){\n // put the book in the HashMap for printing \n this.numberedListOfSearch.put(i+1, this.searchBooks.get(i));\n }\n\n //To print out\n this.println(\"The searching process has finished!\");\n String researchBooks=\"\";\n //check whether the numbered list is empty or not\n if(this.numberedListOfSearch.size() >0){\n researchBooks += \"{\";\n for (int i = 0; i < this.numberedListOfSearch.size();i++){\n researchBooks += (i+1);\n researchBooks += \": \";\n researchBooks += this.numberedListOfSearch.get(i+1).toString();\n researchBooks += \"; \";\n }\n researchBooks = researchBooks.substring(0, researchBooks.length()-2);\n researchBooks += \"}\"; \n }\n //if the numbered list is empty\n else if ( this.numberedListOfSearch.size() == 0){\n researchBooks += \"Nothing found!\";\n }\n this.println(researchBooks);\n }\n\n //If not enough input key words!\n else{\n this.println(\"Please enter more key words! At least four!!\");\n }\n return this.searchBooks;\n }", "@Repository\npublic interface BookRepository extends JpaRepository<Book, Long> {\n\n List<BookNoContent> findAllByOrderByNameAsc();\n List<BookNoContent> findByNameLikeIgnoreCaseOrderByNameAsc(String name);\n List<BookNoContent> findByAuthorOrderByNameAsc(Author author);\n List<BookNoContent> findByGenreOrderByNameAsc(Genre genre);\n List<BookNoContent> findByNameStartingWithIgnoreCaseOrderByNameAsc(Character letter);\n\n}", "private void searchBook(String query) {\n String filter = this.bookFilter.getValue();\n String sort = this.sort.getValue();\n \n // Get the user defined comparator\n Comparator<Book> c = getBookComparator(filter, sort);\n\n // Create a book used for comparison\n Book book = createBookForQuery(filter, query);\n \n // Find all matches\n GenericList<Book> results = DashboardController.library.getBookTable().findAll(book, c);\n\n // Cast results to an array\n Book[] bookResults = bookResultsToArray(results, c);\n\n // Load the results in a new scene\n this.loadBookResultsView(bookResults);\n }", "public static void main(String[] args) throws FileNotFoundException {\n\n ArrayList<String> names = new ArrayList<>();\n Scanner scanner = new Scanner(new File(\"People.csv\"));\n scanner.nextLine();\n while (scanner.hasNext()) {\n String line = scanner.nextLine();\n String[] columns = line.split(\",\");\n String name = columns[1] + \" \" + columns[2];\n names.add(name);\n }\n\n Scanner consoleScanner = new Scanner(System.in);\n System.out.println(\"Type Search Term\");\n String searchTerm = consoleScanner.nextLine();\n\n// String searchTerm = \"mur\";\n\n //solve for via loop\n for (String name: names) {\n if (name.toLowerCase().contains(searchTerm)) {\n System.out.println(name);\n }\n }\n System.out.println();\n\n //solve via stream\n names.stream()\n .map(name -> name.toLowerCase())\n .filter(name -> name.toLowerCase().contains(searchTerm.toLowerCase()))\n// .forEach(System.out::println);\n .collect(Collectors.toCollection(ArrayList<String>::new));\n System.out.println();\n }", "public void searchByAlbum()\n {\n String input = JOptionPane.showInputDialog(null,\"Enter the album you'd like to search for:\");\n input = input.replaceAll(\" \", \"_\").toUpperCase();\n \n Collections.sort(catalog);\n int index = Collections.binarySearch(catalog, new Album(\"\",input,null), null);\n if(index >= 0)\n System.out.println(\"Album:\\t\" + catalog.get(index).getAlbum()\n + \"\\nArtist: \" + catalog.get(index).getArtist()+\"\\n\");\n else System.err.println(\"Album '\" + input + \"' not found!\\n\"); \n }", "private void searchFunction() {\n\t\t\r\n\t}", "@Query(\"select o from Ordine o \" +\n \"where lower(o.cliente.nomeCliente) like lower(concat('%', :searchTerm, '%')) \" )\n List<Ordine> searchForCliente(@Param(\"searchTerm\") String searchTerm);", "private Employee searchEmployee(String empName)\n {\n empName = empName.toLowerCase();\n Employee found = null;\n // Find the employee in the array list\n Iterator<Employee> emp = employees.iterator();\n while(emp.hasNext() && found == null)\n {\n myEmployee = emp.next(); //get employee from array list\n String fullName = myEmployee.getName().toLowerCase();\n String[] FirstLast = fullName.split(\" \");\n \n if (\n matchString(fullName,empName) ||\n matchString(FirstLast[0],empName) ||\n matchString(FirstLast[1],empName)\n )\n found = myEmployee;\n } \n return found;\n }", "public void searchFor(View view) {\n // Get a handle for the editable text view holding the user's search text\n EditText userInput = findViewById(R.id.user_input_edit_text);\n // Get the characters from the {@link EditText} view and convert it to string value\n String input = userInput.getText().toString();\n\n // Search filter for search text matching book titles\n RadioButton mTitleChecked = findViewById(R.id.title_radio);\n // Search filter for search text matching authors\n RadioButton mAuthorChecked = findViewById(R.id.author_radio);\n // Search filter for search text matching ISBN numbers\n RadioButton mIsbnChecked = findViewById(R.id.isbn_radio);\n\n if (!input.isEmpty()) {\n // On click display list of books matching search criteria\n // Build intent to go to the {@link QueryResultsActivity} activity\n Intent results = new Intent(MainActivity.this, QueryListOfBookActivity.class);\n\n // Get the user search text to {@link QueryResultsActivity}\n // to be used while creating the url\n results.putExtra(\"topic\", mUserSearch.getText().toString().toLowerCase());\n\n // Pass search filter, if any\n if (mTitleChecked.isChecked()) {\n // User is searching for book titles that match the search text\n results.putExtra(\"title\", \"intitle=\");\n } else if (mAuthorChecked.isChecked()) {\n // User is searching for authors that match the search text\n results.putExtra(\"author\", \"inauthor=\");\n } else if (mIsbnChecked.isChecked()) {\n // User is specifically looking for the book with the provided isbn number\n results.putExtra(\"isbn\", \"isbn=\");\n }\n\n // Pass on the control to the new activity and start the activity\n startActivity(results);\n\n } else {\n // User has not entered any search text\n // Notify user to enter text via toast\n\n Toast.makeText(\n MainActivity.this,\n getString(R.string.enter_text),\n Toast.LENGTH_SHORT)\n .show();\n }\n }", "public String searchBooks() {\r\n if (keywords.isEmpty()) {\r\n return \"advanced-search\";\r\n }\r\n\r\n keywords = keywords.trim();\r\n \r\n //Get list of all the queries\r\n List<List<Books>> listOfLists = new ArrayList<List<Books>>();\r\n listOfLists.add(findBooksByGenre(keywords));\r\n listOfLists.add(findBooksByIdentifier(keywords));\r\n listOfLists.add(findBooksByContributor(keywords));\r\n listOfLists.add(findBooksByFormat(keywords));\r\n listOfLists.add(findBooksByPublisher(keywords));\r\n listOfLists.add(findBooksByTitle(keywords));\r\n listOfLists.add(findBooksByYear(keywords));\r\n\r\n clearFields();\r\n\r\n List<Books> books = new ArrayList<Books>();\r\n\r\n //Filter out useless data\r\n List<Books> tempBookList;\r\n for (int cntr = 0; cntr < listOfLists.size(); cntr++) {\r\n tempBookList = listOfLists.get(cntr);\r\n\r\n if (tempBookList == null) {\r\n continue;\r\n }\r\n\r\n if (tempBookList.isEmpty()) {\r\n continue;\r\n }\r\n\r\n books.addAll(tempBookList);\r\n }\r\n\r\n //Remove duplicates\r\n Set<Books> bookSet = new HashSet<Books>();\r\n bookSet.addAll(books);\r\n books.clear();\r\n books.addAll(bookSet);\r\n\r\n return displayBooks(books);\r\n }", "public List<Books> searchBook(String keywords,String author,double low_price,double high_price){\n /*\n * search books by keywords of book_name\n * */\n List<Books> books=null;\n ResultSet resultSet=null;\n if(keywords!=\"\"&&author==\"\"&&low_price<0&&high_price<0){\n String sql=\"select * from Book where book_name like '%\"+keywords+\"%'\";\n BaseDao baseDao=dao.executeQuery(sql,new Object[]{});\n books=resultSetToBook(baseDao);\n return books;\n }//search books by keywords and author\n else if(keywords!=\"\"&&author!=\"\"&&low_price<0&&high_price<0){\n String sql=\"select * from Book b where b.book_name like '%keywords=?%' and book_author=?\";\n BaseDao baseDao=dao.executeQuery(sql,new Object[]{keywords,author});\n books=resultSetToBook(baseDao);\n return books;\n }//search books by author\n else if(keywords==\"\"&&author!=\"\"&&low_price<0&&high_price<0){\n String sql=\"select * from Book b where book_author=?\";\n BaseDao baseDaot=dao.executeQuery(sql,new Object[]{author});\n books=resultSetToBook(baseDaot);\n return books;\n }\n else if(keywords==\"\"&&author==\"\"&&low_price>0&&high_price>0){\n String sql=\"select * from Book b where book_price>? and book_price<?\";\n BaseDao baseDao=dao.executeQuery(sql,new Object[]{low_price,high_price});\n books=resultSetToBook(baseDao);\n return books;\n }\n //search books by keywords and price\n else if(keywords!=\"\"&&author!=\"\"&&low_price>0&&high_price>0){\n String sql=\"select * from Book b where b.book_name like '%\"+keywords+\"%' \" +\n \"and book_author=? and book_price>? and book_price<?\";\n BaseDao baseDao=dao.executeQuery(sql,new Object[]{author,low_price,high_price});\n books=resultSetToBook(baseDao);\n return books;\n }\n return null;\n }", "@Override\n protected List<Book> doInBackground(String... params) {\n\n String importedQuery[] = params[0].split(\"#\");\n String fullQuery = \"\";\n\n for (int i = 0; i < importedQuery.length; i++) {\n if (!fullQuery.equals(\"\")) fullQuery+='&';\n //vanaf hier moet de lus komen voor meerdere gekoppelde queries\n String prefix = \"\";\n String searchWord = \"\";\n\n int tmp = 0;\n for (String s : importedQuery) Log.d(TAG, \"params[]\" + tmp++ + s);\n\n String args[] = importedQuery[i].split(\"\\\\|\"); //todo params[i]\n prefix = args[0].trim();\n searchWord = args[1].trim();\n searchWord = searchWord.replace(\" \", \"+\");\n\n\n Log.d(TAG, \"searchWord:\" + searchWord);\n Log.d(TAG, \"Prefix\" + prefix);\n\n String[] options = SearchMethodGoogleApi.getPrefixesForQuery();\n// for (String s:options)Log.v(TAG+\"options\",s);\n if (!isStringInArray(prefix, options)) {\n //een ongeldige parameter mee gestuurd\n throw new IllegalArgumentException(\"invalid parameters\");\n }\n fullQuery += prefix + searchWord;\n\n //tot hier moet de lus komen voor meerdere gekoppelde queries\n\n }\n\n\n\n\n List<Book> bookList = new ArrayList<>();\n Volume volume = null;\n Volumes volumes = null;\n Books books = QueryGoogleBooksHelper.setUpClient();\n\n\n Books.Volumes.List volumesList = null;\n try {\n volumesList = books.volumes().list(fullQuery).setMaxResults(40L);\n\n Log.d(App.getTAG(), \"queryFullString:\" + fullQuery);\n\n\n // Execute the searchWord.\n volumes = volumesList.execute();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (volumes != null && volumes.getItems() != null) {\n //vanaf hier halen we de details op:\n for (Volume vol : volumes.getItems()) {\n Log.v(TAG + \"Book (genAll)\", vol != null ? vol.toString() : \"\");\n\n Volume.VolumeInfo volInfo = vol.getVolumeInfo();\n Volume.SaleInfo salesInfo = vol.getSaleInfo();\n Volume.SearchInfo searchInfo = vol.getSearchInfo();\n\n\n //get authors in List\n List<String> authorStringList = volInfo.getAuthors();\n ArrayList<Author> authorArrayList = new ArrayList<>();\n //copy contents of list to array\n if (volInfo.getAuthors() != null) {\n for (String author : authorStringList)\n authorArrayList.add(new Author(author));\n } else {\n authorArrayList.add(new Author(App.getContext().getString(R.string.no_returned_authors_google)));\n }\n\n //getGoogleID\n String googleID = vol.getId();\n\n //get ISBN:\n String ISBN = \"\";\n if (volInfo.getIndustryIdentifiers() != null) {\n if (volInfo.getIndustryIdentifiers().size() > 1)\n ISBN = volInfo.getIndustryIdentifiers().get(1).getIdentifier();\n }\n\n //get Title:\n String title = \"\";\n if (volInfo.getTitle() != null) {\n title = volInfo.getTitle();\n }\n //get description\n String description = \"\";\n if (volInfo.getDescription() != null) {\n description = volInfo.getDescription();\n }\n\n //get ImageLinks:\n Volume.VolumeInfo.ImageLinks imageLinks = null;\n if (volInfo.getImageLinks() != null) {\n imageLinks = volInfo.getImageLinks();\n }\n\n //get links to book (pre)views:\n String previewLink = \"\";\n if (volInfo.getPreviewLink() != null) {\n previewLink = volInfo.getPreviewLink();\n }\n\n //String shortDescription=searchInfo.getTextSnippet()+App.getContext().getString(R.string.etc_after_book_description);\n Double averageRating = volInfo.getAverageRating();\n\n //TODO:etc verder doen\n\n //create new Book and edit its info with the info from Google\n Book book = new Book(ISBN, googleID, title, authorArrayList, description, imageLinks, previewLink);\n bookList.add(book);\n Log.v(TAG, bookList.size() + \"Book added\");\n }\n }\n\n\n return bookList;\n\n\n }", "@Override\n public boolean onQueryTextSubmit(String query) {\n if (AfterLoginActivity.this.latestBookList != null) {\n searchBookList = new ArrayList<>();\n\n for (Book book : AfterLoginActivity.this.latestBookList) {\n //str1.toLowerCase().contains(str2.toLowerCase())\n if (book.getName().toLowerCase().contains(query.toLowerCase())) {\n //add to search book list\n searchBookList.add(book);\n }\n }\n //set books to book list view\n AfterLoginActivity.this.bookListFragment.setBooks(searchBookList);\n }\n return true;\n }", "@Override\r\n\tpublic void onSearchSelected(String book, int chapter, int verse) {\r\n\t\t\tBibleReaderFragment viewer = (BibleReaderFragment) getSupportFragmentManager()\r\n\t\t .findFragmentById(R.id.reader_fragment);\r\n\t\r\n\t\t \tIntent i = new Intent();\r\n\t\t \ti.putExtra(LiteralWord.VERSES_BOOK_ROWID,book);\r\n\t\t i.putExtra(LiteralWord.VERSES_CHAPTERS_ROWID, chapter);\r\n\t\t i.putExtra(LiteralWord.VERSES_NUM_ROWID, verse);\r\n\t\t i.putExtra(SEARCH_TAG, true);\r\n\t\t viewer.handleIntent(i);\r\n\t\t\r\n\t}", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n String text = searchBar.getText().toString().toLowerCase();\n // voer displayArray uit\n filteredUsers.clear();\n int length = users.size();\n for (int i = 0; i < length; i++) {\n final String name = users.get(i).first.toLowerCase();\n if (name.startsWith(text)) {\n filteredUsers.add(users.get(i));\n }\n }\n displayArray(filteredUsers);\n //Log.d(TAG, \"text changed\");\n }", "List<DataTerm> search(String searchTerm);", "public void search() {\n }", "public static List<Book> searchEBookByName(String name) throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n\r\n Query query = session.getNamedQuery(\"INVENTORY_searchBookByName\").setString(\"name\", name);\r\n\r\n List<Book> resultList = query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return resultList;\r\n \r\n }", "boolean contains(Book title){\n return false;\n }", "public Bible findFullVerse(String bookName, int chapterNo, int verseNo);", "public String searchByFilter() {\n if (selectedFilter.size() != 0) {\n for (Genre filterOption : selectedFilter) {\n searchTerm = searchResultTerm;\n searchBook();\n\n System.out.println(\"CURRENT NUMBER OF BOOKS: \" + books.size());\n\n BookCollection temp = this.db.getCollectionByGenre(filterOption);\n System.out.println(\"GETTING COLLECTION FOR FILTERING: \" + temp.getCollectionName() + \" NUM OF BOOKS: \"\n + temp.getCollectionBooks().size());\n filterBookList(temp.getCollectionBooks());\n System.out.println(\"UPDATED NUMBER OF BOOKS: \" + books.size());\n }\n } else {\n searchTerm = searchResultTerm;\n searchBook();\n }\n\n return \"list.xhtml?faces-redirect=true\";\n }", "public static String allVowels( String w ) \n {\n String rtrnStr = \"\";\n String currLetter = \"\";\n int origLength = w.length();\n for (int i = 0; i < origLength; i++){\n currLetter = w.substring(i,i+1);\n if (isAVowel(currLetter)){\n rtrnStr += currLetter; //if it is a vowel, add the letter to the string of vowels \n }\n }\n return rtrnStr;\n }", "public List<BookData> searchBookbyTitle (String name) throws SQLException{\n\t\tList<BookData> list = new ArrayList<>();\n\t\t\n\t\tPreparedStatement myStmt = null;\n\t\tResultSet myRs = null;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tmyStmt = myConn.prepareStatement(\"select title, author_name, publisher_name, book_id from books natural join book_authors where title = ?\");\n\t\t\tmyStmt.setString(1, name);\n\t\t\tmyRs = myStmt.executeQuery();\n\t\t\t\n\t\t\twhile (myRs.next()) {\n\t\t\t\tBookData tempbook = convertRowToBook(myRs);\n\t\t\t\tlist.add(tempbook);\n\t\t\t}\n\t\t\t\n\t\t\treturn list;\n\t\t}\n\t\tfinally {\n\t\t\tmyRs.close();\n\t\t\tmyStmt.close();\n\t\t\n\t\t}\n\t\t\n\t}", "void search();", "void search();", "public static List<Book> searchBookByNameOfSeller(String nameOfSeller) throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n\r\n Query query = session.getNamedQuery(\"INVENTORY_searchBookByNameOfTheSeller\").setString(\"nameOfTheSeller\", nameOfSeller);\r\n\r\n List<Book> resultList = query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return resultList;\r\n \r\n }", "@Query(\"SELECT i FROM Item i WHERE \"+\n \"upper(i.name) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.number) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.waybill) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.factory) LIKE concat('%',upper(?1),'%')\")\n Page<Item> filterAll(String substring, Pageable pageable);", "public final void testAeLigature() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException, SolrServerException \n\t{\n\t\tcloseSolrProxy();\n\t\tcreateFreshIx(\"aeoeLigatureTests.mrc\");\n\t\tString fldName = \"title_245a_search\";\n\n\t\t// upper case\n\t\tSet<String> docIds = new HashSet<String>();\n\t\tdocIds.add(\"Ae1\");\n\t\tdocIds.add(\"Ae2\");\n\t\tassertSearchResults(fldName, \"Æon\", docIds);\n\t\tassertSearchResults(fldName, \"Aeon\", docIds);\n\n\t\t// lower case\n\t\tdocIds.clear();\n\t\tdocIds.add(\"ae1\");\n\t\tdocIds.add(\"ae2\");\n\t\tassertSearchResults(fldName, \"Encyclopædia\", docIds);\n\t\tassertSearchResults(fldName, \"Encyclopaedia\", docIds);\n\t}", "@Override\n public List<Event> searchByTitleStartWith(String filter) {\n TypedQuery<EventAdapter> query = em.createQuery(\n \"SELECT e FROM EventAdapter e \"\n + \"WHERE e.title LIKE :filter \"\n + \"ORDER BY e.id\", EventAdapter.class)\n .setParameter(\"filter\", filter + \"%\");\n\n return query.getResultList()\n .parallelStream()\n .map(EventAdapter::getEvent)\n .collect(Collectors.toList());\n }", "public abstract int search(String[] words, String wordToFind) throws ItemNotFoundException;", "public List<BookData> searchBookbyAuthor (String author) throws SQLException{\n\t\tList<BookData> list = new ArrayList<>();\n\t\t\n\t\tPreparedStatement myStmt = null;\n\t\tResultSet myRs = null;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tmyStmt = myConn.prepareStatement(\"select title, author_name, publisher_name, book_id from books natural join book_authors where author_name = ?\");\n\t\t\tmyStmt.setString(1, author);\n\t\t\tmyRs = myStmt.executeQuery();\n\t\t\t\n\t\t\twhile (myRs.next()) {\n\t\t\t\tBookData tempbook = convertRowToBook(myRs);\n\t\t\t\tlist.add(tempbook);\n\t\t\t}\n\t\t\t\n\t\t\treturn list;\n\t\t}\n\t\tfinally {\n\t\t\tmyRs.close();\n\t\t\tmyStmt.close();\n\t\t\n\t\t}\n\t\t\n\t}", "public void searchFunction() {\n textField_Search.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n tableView.setPredicate(new Predicate<TreeItem<EntryProperty>>() {\n @Override\n public boolean test(TreeItem<EntryProperty> entryTreeItem) {\n Boolean flag = entryTreeItem.getValue().titleProperty().getValue().toLowerCase().contains(newValue.toLowerCase()) ||\n entryTreeItem.getValue().usernameProperty().getValue().toLowerCase().contains(newValue.toLowerCase());\n return flag;\n }\n });\n }\n });\n }", "private void filterPerName(EntityManager em) {\n System.out.println(\"Please enter the name: \");\n Scanner sc = new Scanner(System.in);\n //Debug : String name = \"Sel\";\n\n String name = sc.nextLine();\n\n TypedQuery<Permesso> query = em.createQuery(\"select p from com.hamid.entity.Permesso p where p.nome like '%\"+ name\n + \"%'\" , Permesso.class);\n\n List<Permesso> perList = query.getResultList();\n\n for (Permesso p : perList) {\n System.out.println(p.getNome());\n }\n }", "@GetMapping(\"/search-author/{titleString}\")\n public List<Author> getAllAuthorsByConsistTitleString(@PathVariable(\"titleString\") String titleString){\n System.out.println(\"Query: \" + titleString);\n return authorService.getAuthorsByBookTitle(titleString);\n }", "@GetMapping(value = \"/search\")\n\tpublic String searchName(@RequestParam(name = \"fname\") String fname, Model model) {\n\t\tmodel.addAttribute(\"employees\", employeerepository.findByFnameIgnoreCaseContaining(fname));\n\t\treturn \"employeelist\";\n\t}", "PersonFinder whereFirstNameStartsWith(String prefix);", "public static String allVowels( String w ) \r\n {String vowels = \"\";\r\n\tfor (int x = 0; x < w.length(); x +=1) {\r\n\t if (isAVowel(w.substring(x,x+1))) {//if the letter is a vowel...\r\n\t\tvowels += w.substring(x,x+1); //add that vowel to the string\r\n\t }//end if\r\n\t}//end for\r\n\treturn vowels;\r\n }", "public static void main(String[] args) {\n\n WebDriver driver= WebDriverFactory.getDriver(\"chrome\");\n\n driver.get(\"https://amazon.com\");\n driver.get(\"https://ebay.com\");\n\n WebElement searchBox=driver.findElement(By.xpath(\"//input[@type='text']\"));\n searchBox.sendKeys(\"books\");\n\n WebElement search=driver.findElement(By.xpath(\"//input[@type='submit']\"));\n search.click();\n\n String actualWord=driver.getTitle();\n\n System.out.println(\"title is: \"+ actualWord);\n\n String expectedWord=\"books\";\n\n if(actualWord.contains(expectedWord)){\n System.out.println(\"Pass\");\n }else{\n System.out.println(\"Fail\");\n System.out.println(\"actualWord = \" + actualWord);\n System.out.println(\"expectedWord = \" + expectedWord);\n }\n\n }", "private void searchBooks(final String userQuery){\n mTTS = new TextToSpeech(this, this);\n\n //When the search Button is pressed, a query is run\n searchButton = findViewById(R.id.searchButton);\n searchButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.listLayout, LoadingFragment.newInstance()).commit();\n// query = searchEditText.getText().toString();\n new FetchData(MainActivity.this).execute(userQuery);\n speakText(userQuery);\n }\n });\n }", "public static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tString str=in.nextLine();\n\t\tContainsVowels cv=new ContainsVowels();\n\t\tSystem.out.println(cv.ifContainsVowels(str));\n\t\tin.close();\n\t}", "public boolean search(E e){\n boolean blResult = false;\n\n /** TODO: INSERT YOUR CODE HERE\n *\n * SEARCH FOR THE ITEM PASSED AS PARAMETER AND RETURN TRUE IF FOUND\n * ELSE RETURN FALSE\n *\n *\n */\n return blResult;\n }", "@Test\n public void findsByKeyword() throws Exception {\n final Base base = new DyBase(\n this.dynamo.region(), new MkSttc().counters().get(\"ttt\")\n );\n final Book book = base.books().add(\n \"@book{best2014, author=\\\"Walter\\\"}\"\n );\n final Quotes quotes = base.quotes();\n quotes.add(\n book, \"never give up and never think about bad things, Bobby\",\n \"99-101, 256-257, 315\"\n );\n MatcherAssert.assertThat(\n quotes.refine(\"bobby\").iterate(),\n Matchers.<Quote>iterableWithSize(1)\n );\n MatcherAssert.assertThat(\n quotes.refine(\"another-something\").iterate(),\n Matchers.<Quote>iterableWithSize(0)\n );\n }", "Book getBookByTitle(String title);", "public void search() {\n listTbagendamentos\n = agendamentoLogic.findAllTbagendamentoByDataAndPacienteAndFuncionario(dataSearch, tbcliente, tbfuncionario);\n }", "public void searchBooks(String searchKeyword) {\n\n\n books = new ArrayList<>();\n Call<BooksObject> call = NetworkUtils.booksAPI.findBooks(searchKeyword, NetworkUtils.apiKey, 5);\n call.enqueue(new Callback<BooksObject>() {\n @Override\n public void onResponse(Call<BooksObject> call, Response<BooksObject> response) {\n if (!response.isSuccessful()) {\n Log.i(TAG, \"\" + response.code());\n return;\n }\n\n BooksObject booksObject = response.body();\n ArrayList<Book> bookList = booksObject.getItems();\n for (Book b : bookList) {\n String id = b.getId();\n boolean exists = false;\n for (Book bo : library) {\n if (id.equals(bo.getId())) {\n exists = true;\n break;\n }\n }\n if (!exists) {\n books.add(b);\n }\n }\n\n customSearchAdapter = new CustomSearchAdapter(getContext(), books);\n acLibrary.setAdapter(customSearchAdapter);\n customSearchAdapter.notifyDataSetChanged();\n }\n\n @Override\n public void onFailure(Call<BooksObject> call, Throwable t) {\n Log.i(TAG, t.getMessage());\n }\n });\n\n }", "List<Card> search(String searchString) throws PersistenceCoreException;", "public SearchResult search(String text, String subText);", "public List search(String str) {\n List searchList = new ArrayList();\n try {\n //set the scanner to the entire bible file\n scan = new Scanner(new File(\"kjvdat.txt\"));\n //set the regex pattern with the search string\n Pattern p = Pattern.compile(\"(\" + str + \")\");\n //scan through the entire verses for the search parameter\n while (scan.hasNext()) {\n String txt = scan.nextLine();\n Matcher m = p.matcher(txt);\n if (m.find()) {\n //insert verses that are found into the searchlist\n searchList.add(txt.substring(0, txt.length() - 1));\n }\n }\n\n } catch (FileNotFoundException ex) {\n Logger.getLogger(Finder.class.getName()).log(Level.SEVERE, null, ex);\n }\n //return list of all verses found containing the search parameter\n scan.close();\n return searchList;\n }", "public ArrayList<Chapter> search(String keyword) throws Exception{\n\t\tControl control = new Control();\n\t\treturn control.search(keyword);\n\t}", "@Override\n\t\t\tpublic void afterTextChanged(Editable arg0) {\n\t\t\t\tString items = searchItem.getText().toString().toLowerCase(Locale.getDefault());\n\t\t\t\tadapterVenue.filter(items);\n\t\t\t}", "public List<Recipe> search(String queryText, Category category, CookingMethod cookingMethod);", "List<User> findByfnameContaining(String search);", "private static void queryBooksByAuthor(){\n\t\tSystem.out.println(\"===Query Books By Author===\");\n\t\tScanner string_input = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter First Name of Author to Query Books by: \");\n\t\tString author_firstname = string_input.next();\n\t\t\n\t\tSystem.out.println(\"Enter Middle Name of Author to Query Books by (Type 'null' if Author has no middlename): \");\n\t\tString author_middlename = string_input.next();\n\t\tif(author_middlename.equalsIgnoreCase(\"null\"))\n\t\t\tauthor_middlename = \"\";\n\t\t\n\t\tSystem.out.println(\"Enter Last Name of Author to Query Books by: \");\n\t\tString author_lastname = string_input.next();\n\t\t\n\t\tString author_fullname = author_firstname + \" \" + author_middlename + \" \" + author_lastname;\n\t\t\n\t\tif(ALL_AUTHORS.containsKey(author_fullname)){//if author_full_name exists in the Hashtable then print out all of the author's book titles\n\t\t\tSystem.out.println(\"Author found!\");\n\t\t\tSystem.out.println(author_fullname + \"'s list of book titles are: \"); \n\t\t\tIterator<String> iter = ALL_AUTHORS.get(author_fullname).iterator();\n\t\t\tprintAllElements(iter);\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"Sorry Author name entered does not exist in our records\");\n\t}", "public static List<Book> searchBookByNameAndNameOfTheSeller(String name,String nameOfTheSeller) throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n\r\n Query query = session.getNamedQuery(\"INVENTORY_searchBookByNameAndNameOfTheSeller\").setString(\"name\", name).setString(\"nameOfTheSeller\", nameOfTheSeller);\r\n\r\n List<Book> resultList = query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return resultList;\r\n \r\n }", "List<City> findByNameIgnoringCase(String cityName);", "@Override\n\tpublic List<Applicant> getAllApplicantUsingRegex() {\n\t\tSystem.out.println(\"Fname Ending with a \");\n\t\tQuery query = new Query().addCriteria(Criteria.where(\"fname\").regex(\"a$\"));\n\t\treturn applicantMongoTemplate.find(query, Applicant.class);\n\t}", "List<Employee> findByNameContaining(String keyword, Sort sort);", "public void search(String searchTerm)\r\n\t{\r\n\t\tpalicoWeapons = FXCollections.observableArrayList();\r\n\t\tselect(\"SELECT * FROM Palico_Weapon WHERE name LIKE '%\" + searchTerm + \"%'\");\r\n\t}", "public ArrayList<Book> getBookByPart(String titlePart) {\n titlePart = this.sanitizeString(titlePart);\n ArrayList<Book> bookList = new ArrayList<>();\n\n for (String bookTitle: this.books.keySet()) {\n if (bookTitle.contains(titlePart)) {\n bookList.add(this.books.get(bookTitle));\n }\n }\n return bookList;\n }", "public String searchByName(String searchString) {\n boolean foundBook = false;\n String searchResult = \"\";\n \n for(Literature literature:literatureRegister) {\n if(literature.getTitle().contains(searchString) || literature.getAuthor().contains(searchString)) {\n searchResult += \"The literature title is: \" + literature.getTitle() + \".\\n\"\n + \"The literature author is: \" + literature.getAuthor() + \".\\n\";\n if(literature instanceof Book) {\n searchResult += \"The book genre is: \" + ((Book) literature).getGenre() + \".\\n\";\n }\n if(literature instanceof Magazine) {\n searchResult += \"The magazine brand is: \" + ((Magazine) literature).getBrand() + \".\\n\";\n }\n if(literature instanceof NewsPaper) {\n searchResult += \"The new's paper brand is: \" + ((NewsPaper) literature).getBrand() + \".\\n\";\n }\n if(literature instanceof BookSeries) {\n searchResult += \"The literature brand is: \" + ((BookSeries) literature).getGenre() + \".\\n\" + \"The books in this series is: \" + \"\\n\" + (((BookSeries) literature).listAllBooks());\n }\n foundBook = true;\n }\n }\n \n if(!foundBook){\n searchResult = (\"No literature with the name: \" + searchString + \" found.\");\n }\n return searchResult;\n }", "public void searchFunction1() {\n textField_Search.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n tableView_recylce.setPredicate(new Predicate<TreeItem<EntryProperty>>() {\n @Override\n public boolean test(TreeItem<EntryProperty> entryTreeItem) {\n Boolean flag = entryTreeItem.getValue().titleProperty().getValue().toLowerCase().contains(newValue.toLowerCase()) ||\n entryTreeItem.getValue().usernameProperty().getValue().toLowerCase().contains(newValue.toLowerCase());\n return flag;\n }\n });\n }\n });\n }", "Search getSearch();", "public List<BookData> searchBookbyPublisher (String publisher) throws SQLException{\n\t\tList<BookData> list = new ArrayList<>();\n\t\t\n\t\tPreparedStatement myStmt = null;\n\t\tResultSet myRs = null;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tmyStmt = myConn.prepareStatement(\"select title, author_name, publisher_name, book_id from books natural join book_authors where publisher_name = ?\");\n\t\t\tmyStmt.setString(1, publisher);\n\t\t\tmyRs = myStmt.executeQuery();\n\t\t\t\n\t\t\twhile (myRs.next()) {\n\t\t\t\tBookData tempbook = convertRowToBook(myRs);\n\t\t\t\tlist.add(tempbook);\n\t\t\t}\n\t\t\t\n\t\t\treturn list;\n\t\t}\n\t\tfinally {\n\t\t\tmyRs.close();\n\t\t\tmyStmt.close();\n\t\t\n\t\t}\n\t\t\n\t}", "public ArrayList<NameRecord> getMatches(String partialName){\n\t\tpartialName=partialName.toLowerCase();\n\t\tArrayList<NameRecord> result = new ArrayList<NameRecord>();\n\t\tfor (int i = 0;i<names.size();i++){\n\t\t\tString s = names.get(i).toLowerCase();\n\t\t\tif (s.contains(partialName)){\n\t\t\t\tresult.add(list.get(i));\n\t\t\t}\n\t\t}\t\n\t\treturn result;\n\t}", "public interface OrdineRepository extends JpaRepository<Ordine,Long> {\n\n //Ricerca ordini associati ad un determinato cliente\n @Query(\"select o from Ordine o \" +\n \"where lower(o.cliente.nomeCliente) like lower(concat('%', :searchTerm, '%')) \" )\n List<Ordine> searchForCliente(@Param(\"searchTerm\") String searchTerm);\n}", "public List<Chef_favorito> findByNomeChefContainingIgnoreCase(String nomePesquisa);" ]
[ "0.72949606", "0.640802", "0.6071778", "0.60425514", "0.5983943", "0.59629065", "0.5949634", "0.5949634", "0.591215", "0.5909428", "0.58936715", "0.5871236", "0.5869997", "0.58316004", "0.5818191", "0.5812106", "0.5795578", "0.57853836", "0.5722016", "0.5704181", "0.5661807", "0.5637507", "0.56366414", "0.5586764", "0.558375", "0.5581629", "0.55756336", "0.5549381", "0.5539783", "0.553294", "0.5518862", "0.5518484", "0.55099225", "0.54575294", "0.5455974", "0.5451547", "0.54414314", "0.5436642", "0.5434275", "0.54272074", "0.5417497", "0.54167384", "0.53979474", "0.5381693", "0.5373622", "0.5359411", "0.53540677", "0.5352254", "0.53309566", "0.5329335", "0.5325333", "0.5323575", "0.5322141", "0.53217816", "0.53215265", "0.53174657", "0.53110516", "0.5307708", "0.5307708", "0.5300584", "0.5288405", "0.5269174", "0.5268652", "0.5268043", "0.5257134", "0.52565354", "0.5250555", "0.52282274", "0.52240574", "0.5223025", "0.52177304", "0.5216129", "0.5213982", "0.52092797", "0.5203381", "0.52032495", "0.5202519", "0.51994157", "0.51962465", "0.5186512", "0.5163524", "0.51592183", "0.5158545", "0.515687", "0.5153481", "0.51496613", "0.51489323", "0.5147091", "0.51468146", "0.5142101", "0.5141776", "0.5140631", "0.51372516", "0.51262003", "0.51240027", "0.5114752", "0.5102439", "0.5101509", "0.5101153", "0.5099113" ]
0.59386045
8
Created by Lijianhao on 2015/12/7.
public interface HttpCallbackListener { void onFinish(String response); void onError(Exception e); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private void strin() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "public void mo38117a() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo4359a() {\n }", "protected boolean func_70814_o() { return true; }", "private void init() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private void m50366E() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n protected void getExras() {\n }", "@Override\n public void init() {\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void init() {}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void init() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "private void init() {\n\n\n\n }", "public void mo6081a() {\n }", "public void mo21877s() {\n }", "public void method_4270() {}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "static void feladat4() {\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}" ]
[ "0.6012489", "0.5891623", "0.58568764", "0.5839863", "0.57877004", "0.5777923", "0.5777923", "0.5754041", "0.57282096", "0.5704193", "0.5665555", "0.5661082", "0.5644596", "0.56436896", "0.5635605", "0.5631526", "0.563145", "0.56134", "0.560853", "0.55921054", "0.5581897", "0.556649", "0.55634665", "0.55523944", "0.555117", "0.55483496", "0.55483496", "0.55483496", "0.55483496", "0.55483496", "0.55417055", "0.5539595", "0.5507667", "0.5498393", "0.5496236", "0.5488153", "0.54790014", "0.5477336", "0.5474095", "0.5461381", "0.545952", "0.54584897", "0.54584897", "0.54551727", "0.5445774", "0.5439493", "0.5436782", "0.542133", "0.54208344", "0.54208344", "0.54208344", "0.54178494", "0.54178494", "0.54178494", "0.5405584", "0.5405584", "0.5405584", "0.5405584", "0.5405584", "0.5405584", "0.5405584", "0.54033524", "0.54033524", "0.53971213", "0.5391284", "0.5391284", "0.53869987", "0.53869987", "0.53869987", "0.5360269", "0.535343", "0.5345486", "0.5343074", "0.5342823", "0.5342823", "0.5342823", "0.5342823", "0.5342823", "0.5342823", "0.5342372", "0.5341416", "0.5340513", "0.53386635", "0.533501", "0.5334476", "0.53309625", "0.5325524", "0.5323008", "0.53173804", "0.5307721", "0.5302534", "0.5300213", "0.5291705", "0.5289102", "0.5283508", "0.528114", "0.5276083", "0.52603996", "0.52584964", "0.5256467", "0.5256233" ]
0.0
-1
System.out.println("own check:" + x + "," + y);
private boolean isOwnOccupied(int x, int y) { for (int i = 0; i < player.own.length; i++) { if (player.own[i].x == x && player.own[i].y == y) { //System.out.println("own occupied:" + i); return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void print(){\n\t\tSystem.out.println(\"[\"+x+\",\"+y+\"]\");\n\t}", "void printCheck();", "public void printInfo(){\n System.out.println(\" this is my y \"+(y+1)+\" this is my x \"+ X.valueOfInt(x));\n System.out.println(\"i am full: \"+ isFull);\n }", "public static void printXY(int x, int y) {\n\t\tSystem.out.println(\"x = \" + x + \", y = \" + y);\n\t}", "public void print() {\r\n System.out.println(c() + \"(\" + x + \", \" + y + \")\");\r\n }", "public static void main(String[] args) {\n\n\t\tint[]x= {1,2};\n\t\tint[]y= {1,2};\n\t\tSystem.out.println(Arrays.toString(checkNum(x,y)));\n\t\t\n\t}", "private void printSquareAroundPoint(int x, int y)\n {\n // System.out.println();\n }", "public static void main(String[] args) {\n\t\tint x = 5;\n\t\tint y = 6;\n\t\tif(x++==y && ++y > x) {\n\t\t\treturn;\n\t\t}\n\t\telse if(++x == y \n\t\t\t\t|| ++y>x) {\n\t\t\tSystem.out.println(\"java sucks\");\n\t\t}\n\t\tSystem.out.println(x+\":\"+y);\n\t}", "@NonNull\n @Override\n public String toString() {\n return y + \",\" + x;\n }", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"(%d, %d)\", x, y);\n\t}", "@Override\n public String toString() {\n return String.format(\"(%d,%d)\", x, y);\n }", "@Override\r\n\tpublic String toString() {\n\t\tString rtn=this.x+\".\"+this.y;\r\n\t\treturn rtn;\r\n\t}", "public static void main(String[] args) {\n int x=20;\r\n \r\n int y=30;\r\n if (x<\r\n y) {\r\n System.out.println(x);\r\n System.out.println(y);\r\n System.out.println(\"hi\");\r\n\t}\r\n else {\r\n \t System.out.println(\"xequaly\");\r\n }\r\n \r\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x1 = sc.nextInt();\n\t\tint y1 = sc.nextInt();\n\t\tint x2 = sc.nextInt();\n\t\tint y2 = sc.nextInt();\n\t\tint x3 = sc.nextInt();\n\t\tint y3 = sc.nextInt();\n\t\tint resultX = 0;\n\t\tint resultY = 0;\n\t\tif (x1 == x2) {\n\t\t\tresultX = x3;\n\t\t} else if (x1 == x3) {\n\t\t\tresultX = x2;\n\t\t} else {\n\t\t\tresultX = x1;\n\t\t}\n\t\tif (y1 == y2) {\n\n\t\t\tresultY = y3;\n\t\t} else if (y1 == y3) {\n\n\t\t\tresultY = y2;\n\t\t} else {\n\t\t\tresultY = y1;\n\t\t}\n\t\tSystem.out.println(resultX+\" \"+resultY);\n\t}", "boolean checked(int x, int y);", "public static void main(String[] args) {\n\t\tint x =5;\n\t\tint y =7;\n\t\tif(x==5 | ++y ==8){\n\t\t\tSystem.out.println(\"inside the if block and executed the logical &\");\n\t\t\tSystem.out.println(y);\n\t\t}\n\t\t\n\t\tif(x==5 || y ==8){\n\t\t\tSystem.out.println(\"inside the if block\");\n\t\t\tSystem.out.println(y);\n\t\t\tSystem.out.println(x);\n\t\t}\n\t\t\n\t\t\n\t}", "public String toString(){\n return \"{\"+this.x+\", \"+this.y+\"}\";\n }", "@Test\n\tvoid testCheckCoordinates2() {\n\t\tassertTrue(DataChecker.checkCoordinate(-1));\n\t}", "public String toString() {\r\n \treturn new String(\"x: \" + x + \" y: \" + y);\r\n }", "public void printCurrentState() {\n\t\t//getX() and getY() are methods from the Point class\n\t\tSystem.out.println(\"Avatar location: \" + avatar.getLocation().getX() + \",\" + avatar.getLocation().getY());\n\t\tSystem.out.println(\"Points: \" + avatar.getScore());\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"(\" + x + \", \" + y + \")\";\n\t}", "public static void main(String[] args) {\n\t\tint x, y;\n\t\tx=175; y=225;\n\t\tSystem.out.println(\" X = 175 \\n Y = 225\");\n\t\tSystem.out.println(\"\\n Addition : X + Y = \"+(x+y));\n\t\tSystem.out.println(\"\\n Subtraction : X - Y = \"+(x-y));\n\t\tSystem.out.println(\"\\n Multiplication : X * Y = \"+(x*y));\n\t\tSystem.out.println(\"\\n Division : X / Y = \"+(x/y));\n\t\tif (x>y) {\n\t\t\tSystem.out.println(\"\\n\"+x+\" is greater than \"+y+\" : True\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"\\n\"+x+\" is greater than \"+y+\" : False\");\n\t\t}\n\t\t\n\n\t}", "@Test\n\tpublic void testGetX() {\n\t\t//String verify = \"Returns the correct X value for a Coordinate\";\n\t assertEquals(\"Returns the correct X value for a Coordinate\", \n\t \t\torigin.getX(), 0.0, 0.0);\n\t assertEquals(\"Returns the correct X value for a Coordinate\", \n\t \t\tbasic.getX(), 5.0, 0.0);\n\t assertEquals(\"Returns the correct X value for a Coordinate\", \n\t \t\tbasic2.getX(), 4.0, 0.0);\n\t}", "public void print()\r\n\t{\r\n\r\n\t\t for(int i = 0; i < 20; i++)\r\n\t\t {\r\n\t\t\t for(int j = 0; j < 20; j++)\r\n\t\t\t {\r\n\t\t\t\t if(sTalker.getY() == randomer.getY() && sTalker.getX() == randomer.getX() && sTalker.getY() == i && sTalker.getX() == j)\r\n\t\t\t\t \tSystem.out.print(\"x\");\r\n\r\n\t\t\t\t else if (i == randomer.getY() && j == randomer.getX())\r\n\t\t\t\t \tSystem.out.print(\"o\");\r\n\r\n\t\t\t\t else if (i == sTalker.getY() && j == sTalker.getX())\r\n\t\t\t\t \tSystem.out.print(\"*\");\r\n\r\n\t\t\t\t else\r\n\t\t\t\t \tSystem.out.print(\"-\");\r\n\t\t\t }\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t\tif(sTalker.getY() == randomer.getY() && sTalker.getX() == randomer.getX())\r\n\t\t{\r\n\t\t \tSystem.out.println(\"The stalker has caught the walker!\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\r\n\t\trandomer.move();\r\n\t\tsTalker.move(randomer);\r\n\t}", "public static void main (String[] args) \n\t{\n\t\tint x = 5;\n\t\tint y = 10;\n \n\t\tSystem.out.println(\"value x + y * 2 - \" + ( x + y * 2));\n\t\tSystem.out.println(\"value x - y * 2 - \" + ( x - y * 2));\n\t\tSystem.out.println(\"value (x + y) * 2 - \" + ( (x + y) * 2));\n\t\tSystem.out.println(\"value y % 2 - \" + ( y % 2));\n\t}", "public String toString(){\n return \"(\" + this.x + \",\" + this.y + \")\";\n }", "static void calc(int x, int y) {\n System.out.println(x + y);\n System.out.println(x - y);\n System.out.println(x / y);\n System.out.println(x * y);\n System.out.println(\"Fim!\");\n }", "static void print() {\n\t\tSystem.out.println(\"Value of x1 = \" +x1);\n\t}", "public String getDetails()\n\t{\n\t return \"Point (\"+x+\",\"+y+\")\";\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Point x=\"+x+\" y=\"+y;\n\t}", "void show() {\n System.out.println(\"i and j : \" + i + \" \" + j);\n }", "void show() {\n System.out.println(\"i and j : \" + i + \" \" + j);\n }", "boolean testCoords(Tester t) {\n return t.checkExpect(this.p3.xCoord(), 50) && t.checkExpect(this.p4.yCoord(), 600);\n }", "public static void hint(int[][] map, int x, int y) {\n\t\t// show neighbor of this shot\n\t\tfor (int i = -1; i < 2; i++) {\n\t\t\tfor (int j = -1; j < 2; j++) {\n\n\t\t\t\tif (x + i < 0 || y + j < 0 || x + i > 9 || y + j > 9) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (map[x + i][y + j] == 0) {\n\t\t\t\t\tmap[x + i][y + j] = 3;\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\"x axis is \" + (x + i) + \" and y axis is \" + (y + j) + \"\" + \", it is not the target!\");\n\t\t\t\t} else if (map[x + i][y + j] == 1) {\n\t\t\t\t\t// map[x + i][y + j] = MINE_FOUND;\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"x axis is \" + (x + i) + \" and y axis is \" + (y + j) + \"\" + \", this is a target!\");\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"-------------------------------------\");\n\t\t// print all the previous shots.\n\t\tfor (int i = 0; i < map.length; i++) {\n\t\t\tfor (int j = 0; j < map[i].length; j++) {\n\t\t\t\tif (map[i][j] == 3) {\n\t\t\t\t\tSystem.out.println(\"x axis is \" + i + \" and y axis is \" + j + \"\" + \", it is not the target!\");\n\t\t\t\t} else if (map[i][j] == 2) {\n\t\t\t\t\tSystem.out.println(\"x axis is \" + i + \" and y axis is \" + j + \"\" + \", it is a found target!\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public String toString()\n {\n return TAG + \"[x:\" + x + \",y:\" + y + \"]\";\n }", "public String toString() {\n return \"(\"+this.x + \", \" + this.y+\")\";\n }", "boolean isDone(){\n\t\t\n\t\treturn (x0==x1 && y0==y1);\n\t}", "private void drawCheck(Graphics2D g2, boolean enabled, int x, int y, int width, int height)\r\n/* 97: */ {\r\n/* 98:140 */ g2.setColor(enabled ? UIManager.getColor(\"CheckBox.check\") : MetalLookAndFeel.getControlDisabled());\r\n/* 99: */ \r\n/* 100: */ \r\n/* 101:143 */ int right = x + width;\r\n/* 102:144 */ int bottom = y + height;\r\n/* 103:145 */ int startY = y + height / 3;\r\n/* 104:146 */ int turnX = x + width / 2 - 2;\r\n/* 105:147 */ g2.drawLine(x, startY, turnX, bottom - 3);\r\n/* 106:148 */ g2.drawLine(x, startY + 1, turnX, bottom - 2);\r\n/* 107:149 */ g2.drawLine(x, startY + 2, turnX, bottom - 1);\r\n/* 108:150 */ g2.drawLine(turnX + 1, bottom - 2, right, y);\r\n/* 109:151 */ g2.drawLine(turnX + 1, bottom - 1, right, y + 1);\r\n/* 110:152 */ g2.drawLine(turnX + 1, bottom, right, y + 2);\r\n/* 111: */ }", "public final void inCheck() {\n\t\tout.println(\"You have been placed in check!\");\n\t}", "public String toString()\n\t{\n\t\treturn getX()+\" \"+getY();\n\t}", "void printWinner() {\n }", "public static void main(String[] args) {\n \r\n int x;\r\n int y;\r\n x= 40;\r\n y= 60;\r\n if(x<y) {\r\n\t System.out.println(\"y is bigger\");\t\r\n\t\r\n\t} \r\n\t}", "public static void main(String[] args) {\n\t\tReader reader = new Reader();\r\n\t\tint tests = reader.nextInt();\r\n\t\tfor(int i =0;i<tests;i++) {\r\n\t\t\tint x = reader.nextInt();\r\n\t\t\tint y = reader.nextInt();\t\t\r\n\t\t\t//if x==y and equal to two we could build a square puzzle.\r\n\t\t\t//if x or y is 1 we could just build a straight line.\r\n\t\t\tif(x==y && x==2 || x==1 || y==1) {\r\n\t\t\t\tSystem.out.println(\"YES\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"NO\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void display() {\n\t\t\t\t\tSystem.out.println(\"display: outer_x = \" + outer_x);\n\t\t\t\t}", "public static void main(String[] args) {\r\n\t\tint x[] = { 1, 2, 5, 8, 10, 7 };\r\n\t\tint y[] = { 3, 5, 9, 10, 9 };\r\n\t\tfor (int i = 0; i < x.length; i++) {\r\n\t\t\tfor (int j = 0; j < y.length; j++) {\r\n\t\t\t\tif (x[i] == y[j]) {\r\n\t\t\t\t\tSystem.out.println(x[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public String toString()\n {\n return (\"x,y\" + x + y);\n }", "static void line() {\n int x1, x2, y1, y2;\n String m = \"\";\n \n System.out.print(\"Enter point 1: \");\n y1 = scan.nextInt(); x1 = scan.nextInt(); scan.nextLine();\n\n System.out.print(\"Enter point 2: \");\n y2 = scan.nextInt(); x2 = scan.nextInt(); scan.nextLine();\n\n if ( ! lineBetween(x1, y1, x2, y2) ) m = \" not\";\n\n System.out.printf(\"Point 2 is%s visible from point 1.\\n\", m);\n }", "public static void main(String[] args) {\n\t\tint x, y;\r\n\t\tx = 10;\r\n\t\ty = -10;\r\n\t\tif(x > 0 && y > 0) {\r\n\t\t\tSystem.out.println(\"both numbers are positive\");\r\n\t\t}else if(x > 0 || y > 0 ) {\r\n\t\t\tSystem.out.println(\"atleast one number is positive\");\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\"both numbers are negative\");\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n Point point = new Point(2,3);\n test2(point);\n System.out.println(point.getX());\n System.out.println(point.getY());\n }", "private void captureCheck(int x, int y, char checkNot, char[][] captureBoard)\n\t{\n\t\t// it is possible to capture 4 different groups of pieces with one piece\n\t\t// placement\n\t\tArrayList<Point> up = new ArrayList<>();\n\t\tArrayList<Point> down = new ArrayList<>();\n\t\tArrayList<Point> left = new ArrayList<>();\n\t\tArrayList<Point> right = new ArrayList<>();\n\t\tif (right(y, x, checkNot, captureBoard, right) != -1)\n\t\t{\n\t\t\tif (captureBoard[x + 1][y] == checkNot)\n\t\t\t{\n\t\t\t\tright = hasLiberties(x + 1, y, checkNot, captureBoard);\n\t\t\t\tif (right != null)\n\t\t\t\t{\n\t\t\t\t\twhile (!right.isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\tPoint remove = right.remove(0);\n\t\t\t\t\t\tcaptureBoard[remove.x][remove.y] = ' ';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (left(y, x, checkNot, captureBoard, left) != -1)\n\t\t{\n\t\t\tif (captureBoard[x - 1][y] == checkNot)\n\t\t\t{\n\t\t\t\tleft = hasLiberties(x - 1, y, checkNot, captureBoard);\n\t\t\t\tif (left != null)\n\t\t\t\t{\n\t\t\t\t\twhile (!left.isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\tPoint remove = left.remove(0);\n\t\t\t\t\t\tcaptureBoard[remove.x][remove.y] = ' ';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (up(y, x, checkNot, captureBoard, up) != -1)\n\t\t{\n\t\t\tif (captureBoard[x][y - 1] == checkNot)\n\t\t\t{\n\t\t\t\tup = hasLiberties(x, y - 1, checkNot, captureBoard);\n\t\t\t\tif (up != null)\n\t\t\t\t{\n\t\t\t\t\twhile (!up.isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\tPoint remove = up.remove(0);\n\t\t\t\t\t\tcaptureBoard[remove.x][remove.y] = ' ';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (down(y, x, checkNot, captureBoard, down) != -1)\n\t\t{\n\t\t\tif (captureBoard[x][y + 1] == checkNot)\n\t\t\t{\n\t\t\t\tdown = hasLiberties(x, y + 1, checkNot, captureBoard);\n\t\t\t\tif (down != null)\n\t\t\t\t{\n\t\t\t\t\twhile (!down.isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\tPoint remove = down.remove(0);\n\t\t\t\t\t\tcaptureBoard[remove.x][remove.y] = ' ';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Test\n\tvoid testCheckCoordinates1() {\n\t\tassertTrue(DataChecker.checkCoordinate(1));\n\t}", "public String toString() {\n\t\treturn (\"The value of \\\"x\\\" is: \" + x + \"\\n\"\n\t\t\t + \"The value of \\\"y\\\" is: \" + y);\n\t}", "boolean outOfSight();", "public void printResults(){\n\t\tSystem.out.println(\"The area of the triangle is \" + findArea());\n\t\tSystem.out.println(\"The perimeter of the triangle is \"+ findPerimeter());}", "public static void main(String[] args) {\n\t\tint target = 3;\r\n\t\tSystem.out.println(RectCover(target));\r\n\t}", "void display() {\n\t\t\tSystem.out.println(\"display: outer_x = \" + outer_x);\n\t\t}", "public void suma(){\r\n\t\tSystem.out.println(this.getX() + this.getY());\r\n\t}", "public String toString() {\n\t return \"(\" + this.x + \",\" + this.y + \")\";\n\t }", "public void verificaCoordenada() {\r\n\t\tif (X < 0) {\r\n\t\t\tX = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tX = X % Const.TAMANHO;\r\n\t\t}\r\n\r\n\t\tif (Y < 0) {\r\n\t\t\tY = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tY = Y % Const.TAMANHO;\r\n\t\t}\r\n\t}", "@Test\n\tvoid testCheckCoordinates4() {\n\t\tassertFalse(DataChecker.checkCoordinate(-100));\n\t}", "public String toString(){\n\t\treturn topleft.x + \",\"+topleft.y+\",\"+bottomright.x+\",\"+bottomright.y;\n\t}", "int getNeedPoints();", "public void showIsInside(boolean b){\n\t\tif (b){\n\t\t\tSystem.out.println(\"This point inside this figure\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"This point outside this figure\");\n\t\t}\n\t}", "public int human(int x, int y)\n\t{\n\t\tSystem.out.println(\"type 1 method\");\n\t\t\n\t\treturn x;\n\t}", "public void showHeuristics() {\n for (int row = 0; row < BOARD_SIZE; row++) {\n for (int col = 0; col < BOARD_SIZE; col++) {\n System.out.printf(\"%3d\", getSquareAccessibility(row, col));\n if (col == BOARD_SIZE - 1) {\n System.out.println();\n }\n }\n }\n }", "@Test\n\tvoid testCheckCoordinates5() {\n\t\tassertFalse(DataChecker.checkCoordinate(100));\n\t}", "public static void main(String[] args) {\n\n\t\tfor(int x=1; x<=4; x++){\n\t\t\t\n\t\t\tfor(int y=1; y<=4; y++){\n\t\t\t\tif(((x==2) && (y==2)) || ((x==2) && (y==3)) || ((x==3)&&(y==2)) || ((x==3)&&(y==3))) {\n\t\t\t\t\tSystem.out.print(\" \");\t\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(\"$\");\t\n\t\t\t\t}\n\t\t }System.out.println();\n\t\t\t\t\n\t}\n\t}", "@Test\n\tpublic void leftRighBlackCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(19,38);\n\t\td.set(20,40);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(40);\n\t\tassertTrue(5==test_arr.get(0).getX() && 3==test_arr.get(0).getY());\n\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"(\" + X + \",\" + Y + \")\";\n\t}", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n \n // Prompt the user to enter the coordinates of a point\n System.out.print(\"Enter a point with two coordinates: \");\n float x = input.nextFloat(), y = input.nextFloat();\n \n // Declare the constants for the width and height of the rectangle\n final float WIDTH_OF_RECTANGLE = 10;\n final float HEIGHT_OF_RECTANGLE = 5;\n \n // Compute the distance from the center to the end of the +x-axis of the shape\n float xToCenterDistance = WIDTH_OF_RECTANGLE / 2;\n \n // Compute the distance from the center to the end of the +y-axis of the shape\n float yToCenterDistance = HEIGHT_OF_RECTANGLE / 2;\n \n // Declare a boolean variable and assign with a boolean expression of \n // if point is within rectangle\n boolean isWithinRectangle = \n (x > -xToCenterDistance && x < xToCenterDistance) &&\n (y > -yToCenterDistance && y < yToCenterDistance);\n \n // Display the result of if the point is in the rectangle\n System.out.println(\"Point (\" + x + \", \" + y + \") is \" +\n (isWithinRectangle ? \"\" : \"not \") + \"in the rectangle\");\n }", "@Test\n\tpublic void twoPieceWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(36,107);\n\t\td.set(11,106);\n\t\td.set(30,109);\n\t\td.set(12,110);\n\t\td.set(10,108);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(108);\n\t\tassertTrue(9==test_arr.get(0).getX() && 9==test_arr.get(0).getY()\n\t\t\t&& 7==test_arr.get(1).getX() && 9==test_arr.get(1).getY());\n\n\t}", "public String toString() {\n\t\treturn \"x1 = \" + x1 + \" y1 = \" + y1 + \" x2 = \" + x2 + \" y2 = \" + y2;\n\t}", "public String toString() {\n\t\treturn \"(\" + x + \",\" + y + \")\";\n\t}", "public static void main(String[] args) {\n Point a = new Point(46, 65);\n Point b = new Point(40, 265);\n// Point c = new Point(20, 20);\n// Point d = new Point(21, 211);\n// Point e = new Point(2, 221);\n// Point f = new Point(23, 21);\n// Point g = new Point(-2, 21);\n// Point h = new Point(212, 22);\n//// StdDraw.setPenRadius(0.05);\n//// StdDraw.setPenColor(StdDraw.BLUE);\n//// StdDraw.point(1.0, 2.0);\n//// StdDraw.setCanvasSize(720, 720);\n//// StdDraw.setScale(-10, 10);\n//\n System.out.println(\"Compare : \"+ a.slopeTo(b));\n//\n//// a.draw();\n//// b.draw();\n//// c.draw();\n//// d.draw();\n//// e.draw();\n//// f.draw();\n//// g.draw();\n//// h.draw();\n//// a.drawTo(b);\n//\n//// a.draw();\n\n }", "void checkWinner() {\n\t}", "public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tScanner sa=new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the vertices 1:\");\n\t\tint x1=sa.nextInt();\n\t\tint y1=sa.nextInt();\n\t\tSystem.out.println(\"Enter the vertices 2:\");\n\t\tint x2=sa.nextInt();\n\t\tint y2=sa.nextInt();\n\t\tSystem.out.println(\"Enter the vertices 1 for second rectangle:\");\n\t\tint a1=sa.nextInt();\n\t\tint b1=sa.nextInt();\n\t\tSystem.out.println(\"Enter the vertices 2 for second rectangle:\");\n\t\tint a2=sa.nextInt();\n\t\tint b2=sa.nextInt();\n\t\tif((x1>=a1)&&(y1>=b1)||(a2<=x2)&&(b2<=y2))\n\t\t\tSystem.out.println(\"true\");\n\t\telse if((x1<=a1)&&(y1<=b1)||(a2>=x2)&&(b2>=y2))\n\t\t\tSystem.out.println(\"true\");\n\t\telse \n\t\t\tSystem.out.println(\"false\");\n\t}", "private String coords(int x, int y) {\n return String.format(\"%d,%d\", x, y);\n }", "void display()\r\n\t {\n\t System.out.println(\"a = \" + a + \" b = \" + b);\r\n\t }", "@Test\n\tpublic void bottomLeftVertWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(31,100);\n\t\td.set(1,89);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(89);\n\t\tassertTrue(0==test_arr.get(0).getX() && 9==test_arr.get(0).getY());\n\n\t}", "public void printX()\r\n {\r\n System.out.println(_x);\r\n }", "public static void main(String[] args) {\n\t\tint x = 10;\n\t\tint y = 20;\n\n\t\tx = y + x;//30\n\t\ty = x - y;//10\n\t\tx = x - y;//20\n\t\t\n\t\tSystem.out.println(\"Value of x =\" + x);\n\t\tSystem.out.println(\"Value of y =\" + y);\n\t}", "@Test\n\tpublic void topRightVertWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(20,22);\n\t\td.set(8,33);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(33);\n\t\tassertTrue(10==test_arr.get(0).getX() && 1==test_arr.get(0).getY());\n\n\t}", "public String toString() {\n\t\treturn \"(\" + x + \", \" + y + \")\";\n\t}", "@Test\n\tpublic void upDownBlackCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(21,48);\n\t\td.set(27,70);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(70);\n\t\tassertTrue(3==test_arr.get(0).getX() && 5==test_arr.get(0).getY());\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint x=5, y=10;\n\t\t\n\t\tx=x+y;\n\t\ty=x-y;\n\t\tx=x-y;\n\t\t\n\t\tSystem.out.println(\"x = \"+x+\" and y = \"+y);\n\t\t\n\t\t\n\t\tString a=\"Sabeen\", b=\"Sadiq\";\n\t\t\n\t\t\n\t\t\n\n\t}", "private void print(RShape p, String msg) {\n RPoint p1 = p.getTopLeft();\n RPoint p2 = p.getBottomRight();\n System.out.println(msg + \" (\" + p1.x + \", \" + p1.y + \"), (\" + p2.x\n + \", \" + p2.y + \")\");\n }", "void check();", "void check();", "@Test\n\tpublic void twoPieceBlackCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(35,95);\n\t\td.set(11,74);\n\t\td.set(30,99);\n\t\td.set(11,96);\n\t\td.set(4,98);\n\t\td.set(36,97);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(97);\n\t\tassertTrue(9==test_arr.get(0).getX() && 8==test_arr.get(0).getY()\n\t\t\t&& 7==test_arr.get(1).getX() && 8==test_arr.get(1).getY());\n\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Unesite koordinatu prve tacke x1: \");\r\n\t\tdouble x1=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu prve tacke y1: \");\r\n\t\tdouble y1=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu druge tacke x2: \");\r\n\t\tdouble x2=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu druge tacke y2: \");\r\n\t\tdouble y2=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu trece tacke x3: \");\r\n\t\tdouble x3=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu trece tacke y3: \");\r\n\t\tdouble y3=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu cetvrte tacke x4: \");\r\n\t\tdouble x4=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu cetvrte tacke x4: \");\r\n\t\tdouble y4=provjera();\r\n\t\t\r\n\t\t//kreiranje objekata\r\n\t\tLinearEquation linear= LinearEquation.getIntersectingPoint(x1, y1, x2, y2, x3, y3, x4, y4);\r\n\t\t\r\n\t\t//ispis rezultata\r\n\t\tif(linear.isSolvable()){\r\n\t\t\tSystem.out.print(\"Presjek dvije prave je u tacki sa koordinatama x=\" + linear.getX()+ \" i y=\" + linear.getY());\r\n\t\t}else{\r\n\t\t\tSystem.out.print(\"Prave su paralelne!!!\");\r\n\t\t}\r\n\t\t\r\n\t\tunos.close();\r\n\t}", "@Test\n\tpublic void upDownWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(21,48);\n\t\td.set(8,37);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(37);\n\t\tassertTrue(3==test_arr.get(0).getX() && 4==test_arr.get(0).getY());\n\t}", "public static void main(String[] args) {\n\t\tPoint p = new Point();\r\n\t\t//Ne mozemo pristupiti x zato sto je privatna promenljiva\r\n\t\t//System.out.println(p.x);\r\n\t\t//Isto tako posto je metoda instance (nema static), mora biti pozvana nad objektom\r\n\t\t//Znaci ne mozemo napisati Point.getX();\r\n\t\tSystem.out.println(p.getX() + \" \" + p.getY() + \" \" + p.isSelected());\r\n\t\t\r\n\t\tp.setX(10);\r\n\t\tp.setY(10);\r\n\t\tp.setSelected(true);\r\n\t\t\r\n\t\tSystem.out.println(p.getX() + \" \" + p.getY() + \" \" + p.isSelected());\r\n\t\t\r\n\t\tSystem.out.println(p.distance(40, 50));\r\n\t}", "@Test\n\tpublic void kingOnThroneBlackPieceDownWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(12,86);\n\t\td.set(9,82);\n\t\td.set(11,75);\n\t\td.set(10,70);\n\t\td.set(34,72);\n\t\td.set(9,83);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(83);\n\t\tassertTrue(5==test_arr.get(0).getX() && 6==test_arr.get(0).getY());\n\t}", "@Test\n\tpublic void statePrint_test1()\n\t{\n\t\tb.set(0,0, 'x');\n\t\tb.set(1,2, 'o');\n\t\tb.set(0,2, 'x');\n\t\tb.set(1,0, 'o');\n\t\tb.set(1,1, 'x');\n\t\tb.statePrint();\n\t\tassertTrue(out.toString().contains(\"x| |x\\n------\\no|x|o\\n------\\n | | \\n\"));\n\t}", "public void printCoordinates ()\n\t{\n\t\tfor (int a = 0; a < object.size(); a++)\n\t\t{\n\t\t\tSystem.out.println(\"Polygon \" + (a+1) + \":\");\n\t\t\tobject.get(a).detailedPrint();\n\t\t\tSystem.out.println(\"**********\");\n\t\t}\n\t}", "public String toString()\r\n {\r\n return \"(\" + this.x() + \", \" + this.y() + \")\";\r\n }", "static void printMove(Position princessPos, int x, int y) {\r\n\t\tint diffX = princessPos.x - x;\r\n\t\tint diffY = princessPos.y - y;\r\n\t\t\r\n\t\tif (diffX < 0) {\r\n\t\t\tSystem.out.println(LEFT);\r\n\t\t}\r\n\t\telse if (diffX > 0) {\r\n\t\t\tSystem.out.println(RIGHT);\r\n\t\t}\r\n\t\telse if (diffY < 0) {\r\n\t\t\tSystem.out.println(UP);\r\n\t\t}\r\n\t\telse if (diffY > 0) {\r\n\t\t\tSystem.out.println(DOWN);\r\n\t\t}\r\n\t}", "@Override\n public String toString() {\n return \"<\" + this.x + \",\" + this.y + \">\";\n }", "@Override\n public String toString() {\n return String.format(\"position X is='%s' ,position Y is='%s'\" , positionX , positionY);\n }", "@Test\n\tpublic void kingNoOnThroneWhitePieceDownBlackCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(12,79);\n\t\td.set(11,76);\n\t\td.set(9,70);\n\t\td.set(10,85);\n\t\td.set(0,91);\n\t\td.set(24,58);\n\t\td.set(10,72);\n\t\td.set(31,83);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(83);\n\t\tassertTrue(5==test_arr.get(0).getX() && 6==test_arr.get(0).getY());\n\t}" ]
[ "0.70984167", "0.70329314", "0.6441336", "0.6313546", "0.63026035", "0.62103987", "0.61653125", "0.6074762", "0.6056198", "0.6033916", "0.6031554", "0.6026756", "0.6019271", "0.6012286", "0.5998122", "0.59306014", "0.5921119", "0.5867382", "0.5846373", "0.5838609", "0.5834166", "0.58281314", "0.57971436", "0.5792396", "0.57864285", "0.5785321", "0.57796985", "0.576937", "0.5741857", "0.57177603", "0.57140106", "0.57140106", "0.5705895", "0.5702296", "0.570098", "0.5700423", "0.5693022", "0.56903124", "0.56846803", "0.5677706", "0.5675004", "0.5663195", "0.5658086", "0.5649272", "0.5648825", "0.5647419", "0.56436646", "0.5637903", "0.5635278", "0.5629654", "0.5609514", "0.5601306", "0.5592484", "0.55854917", "0.55838853", "0.5579887", "0.5573965", "0.5570877", "0.5565281", "0.55622286", "0.5561828", "0.556092", "0.55427253", "0.5541083", "0.55400294", "0.5537232", "0.5536333", "0.5534755", "0.55237186", "0.5523636", "0.55228305", "0.55200505", "0.5519859", "0.5515077", "0.55110186", "0.55019706", "0.5498731", "0.5492739", "0.549148", "0.5489861", "0.5487306", "0.5487171", "0.5486593", "0.5470427", "0.5463493", "0.54634225", "0.54532075", "0.54532075", "0.54516584", "0.5450915", "0.5447904", "0.5447674", "0.544449", "0.54420316", "0.5440664", "0.54358274", "0.5431418", "0.5427387", "0.5420588", "0.54161793" ]
0.5679977
39
System.out.println("enemy check:" + x + "," + y);
private boolean isEnemyOccupied(int x, int y) { for (int i = 0; i < player.own.length; i++) { if (player.enemy[i].x == x && player.enemy[i].y == y) { System.out.println("enemy occupied:" + i); return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkEnemy() {\n\t\tif (enemy != null)\n\t\tif (Integer.parseInt(getCurrentPositionX()) == enemy.getCurrentPositionX() && Integer.parseInt(getCurrentPositionY()) == enemy.getCurrentPositionY()) {\n\t\t\tx = spawnX;\n\t\t\ty = spawnY;\n\t\t}\n\t}", "void print(){\n\t\tSystem.out.println(\"[\"+x+\",\"+y+\"]\");\n\t}", "public void checkHits() {\n\t\t// your code here\n\t\tfor (int i = 0; i < enemyX.length; i++) {\n\t\t\tif (distance((int)xI, (int)yI, enemyX[i], enemyY[i]) <= DIAM_ENEMY/2 + DIAM_LAUNCHER/2) {\n\t\t\t}\n\t\t}\n\t}", "private void enemyEncounter()\n {\n currentEnemies = currentRoom.getEnemies();\n \n if(currentEnemies.size() > 0)\n {\n for(Enemy e : currentEnemies)\n {\n System.out.println(\"\\n\" + \"A \" + e.getName() + \" stares menacingly!\" + \"\\n\");\n enemyName = e.getName();\n \n }\n enemyPresent = true;\n clearExits();\n }\n else{\n setExits(); \n }\n }", "private boolean checkSeesPlayer(int x, int y) {\r\n\t\tint enemy;\r\n\t\tif (creature.getCreature().team == 1) {\r\n\t\t\tenemy = 2;\r\n\t\t} else if (creature.getCreature().team == 2) {\r\n\t\t\tenemy = 1;\r\n\t\t} else {\r\n\t\t\tenemy = 0; //No enemy\r\n\t\t}\r\n\t\tRectangle r = new Rectangle(); // Location Rectangle\r\n\t\tr.width = Tile.TILEWIDTH;\r\n\t\tr.height = Tile.TILEHEIGHT;\r\n\t\tr.x = x * Tile.TILEWIDTH;\r\n\t\tr.y = y * Tile.TILEHEIGHT;\r\n\t\tfor(Creature c : handler.getWorld().getEntityManager().getCreatures()) {\r\n\t\t\tif (c.getCreature().team == enemy) {\r\n\t\t\t\tif(c.getCollisionBounds(0, 0).intersects(r)) {\r\n\t\t\t\t\tseenEnemy = c;\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private void enemyMove() {\n\n\t\tboolean goAgain = false;\n\n\t\tint x = (int) (Math.random() * 10);\n\t\tint y = (int) (Math.random() * 10);\n\n\t\t// Make sure the enemy hits in a checkerboard pattern.\n\t\tif (x % 2 == 0) { // if x is even, y should be odd\n\t\t\tif (y % 2 == 0) {\n\t\t\t\tif (y + 1 < 10)\n\t\t\t\t\ty++;\n\t\t\t\telse\n\t\t\t\t\ty--;\n\t\t\t}\n\t\t} else { // if x is odd, y should be even\n\t\t\tif (y % 2 == 1)\n\t\t\t\tif (y + 1 < 10)\n\t\t\t\t\ty++;\n\t\t\t\telse\n\t\t\t\t\ty--;\n\t\t}\n\n\t\tif (enemyLastShotHit && getDifficulty() > 0) { // /if last shot was a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// hit, enemy\n\t\t\t// will try to\n\t\t\t// check around it only run if difficulty is\n\t\t\t// normal or above\n\t\t\tx = enemyLastHitX;\n\t\t\ty = enemyLastHitY;\n\n\t\t\tif (getDifficulty() != 2) {\n\n\t\t\t\tif (conflictX == 4) {\n\t\t\t\t\tconflictX = 0;\n\t\t\t\t} else if (conflictY == 4) {\n\t\t\t\t\tconflictY = 0;\n\t\t\t\t\t// System.out.println(\"conflict has been reset \");\n\t\t\t\t}\n\n\t\t\t\tif (conflictX != 0) {\n\t\t\t\t\tif (conflictX == 1)\n\t\t\t\t\t\tx++;\n\t\t\t\t\telse {\n\t\t\t\t\t\tx--;\n\t\t\t\t\t}\n\t\t\t\t\tenemyLastHitX = x;\n\t\t\t\t\tenemyLastHitY = y;\n\t\t\t\t\tconflictX = 4;\n\t\t\t\t} else if (conflictY == 1) {\n\t\t\t\t\t// System.out.println(\"checking down\");\n\t\t\t\t\tconflictY = 4;\n\t\t\t\t\ty++;\n\t\t\t\t}\n\n\t\t\t\tif (x + 1 < 10 && x - 1 >= 0) {// branch for multiple hits\n\t\t\t\t\tif (egrid[x + 1][y] == 1 && egrid[x - 1][y] == 1) {\n\t\t\t\t\t\t// System.out.println(\"conflict at \"+ex+\",\"+ey);\n\t\t\t\t\t\tenemyLastHitX = x;\n\t\t\t\t\t\tenemyLastHitY = y;\n\t\t\t\t\t\tif (x + 2 < 10) {\n\t\t\t\t\t\t\tif (egrid[x + 2][y] == 1) {\n\t\t\t\t\t\t\t\tconflictX = 1;\n\t\t\t\t\t\t\t\tx--;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconflictX = 2;\n\t\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tconflictX = 2;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (y + 1 < 10 && y - 1 >= 0) {// branch for multiple vertical\n\t\t\t\t\t\t\t\t\t\t\t\t// hits\n\t\t\t\t\tif (egrid[x][y + 1] == 1 && egrid[x][y - 1] == 1) {\n\t\t\t\t\t\t// System.out.println(\"conflict at \"+ex+\",\"+ey);\n\t\t\t\t\t\tenemyLastHitX = x;\n\t\t\t\t\t\tenemyLastHitY = y;\n\t\t\t\t\t\tconflictY = 1;\n\t\t\t\t\t\ty--;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (conflictX == 0 && conflictY == 0) {\n\n\t\t\t\t\tif (checkDirection == 0) // checks in each direction\n\t\t\t\t\t\tx++;\n\t\t\t\t\telse if (checkDirection == 1)\n\t\t\t\t\t\tx--;\n\t\t\t\t\telse if (checkDirection == 2)\n\t\t\t\t\t\ty++;\n\t\t\t\t\telse if (checkDirection == 3) {\n\t\t\t\t\t\ty--;\n\t\t\t\t\t\tenemyLastShotHit = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (x < 0) // making sure coordinates stay within bounds\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\telse if (x > 9)\n\t\t\t\t\t\tx = 9;\n\t\t\t\t\tif (y < 0)\n\t\t\t\t\t\ty = 0;\n\t\t\t\t\telse if (y > 9)\n\t\t\t\t\t\ty = 9;\n\t\t\t\t}\n\t\t\t} // medium diff\n\n\t\t\telse if (getDifficulty() == 2) {// hard difficulty\n\t\t\t\t// gives enemy unfair advantage\n\n\t\t\t\tif (conflictX == 4)\n\t\t\t\t\tconflictX = 0;\n\t\t\t\tif (conflictY == 4)\n\t\t\t\t\tconflictY = 0;\n\n\t\t\t\tif (conflictX != 0) {\n\t\t\t\t\tif (conflictX == 1)\n\t\t\t\t\t\tx++;\n\t\t\t\t\telse {\n\t\t\t\t\t\tx--;\n\t\t\t\t\t}\n\t\t\t\t\tenemyLastHitX = x;\n\t\t\t\t\tenemyLastHitY = y;\n\t\t\t\t\tconflictX = 4;\n\t\t\t\t} else if (conflictY == 1) {\n\t\t\t\t\tconflictY = 4;\n\t\t\t\t\ty++;\n\t\t\t\t}\n\n\t\t\t\tif (x + 1 < 10 && x - 1 >= 0) {// branch for multiple hits\n\t\t\t\t\tif (egrid[x + 1][y] == 1 && egrid[x - 1][y] == 1) {\n\t\t\t\t\t\t// System.out.println(\"conflict at \"+ex+\",\"+ey);\n\t\t\t\t\t\tenemyLastHitX = x;\n\t\t\t\t\t\tenemyLastHitY = y;\n\t\t\t\t\t\tif (x + 2 < 10) {\n\t\t\t\t\t\t\tif (egrid[x + 2][y] == 1) {\n\t\t\t\t\t\t\t\tconflictX = 1;\n\t\t\t\t\t\t\t\tx--;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconflictX = 2;\n\t\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tconflictX = 2;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (y + 1 < 10 && y - 1 >= 0) {// branch for multiple vertical\n\t\t\t\t\t\t\t\t\t\t\t\t// hits\n\t\t\t\t\tif (egrid[x][y + 1] == 1 && egrid[x][y - 1] == 1) {\n\t\t\t\t\t\t// System.out.println(\"conflict at \"+ex+\",\"+ey);\n\t\t\t\t\t\tenemyLastHitX = x;\n\t\t\t\t\t\tenemyLastHitY = y;\n\t\t\t\t\t\tconflictY = 1;\n\t\t\t\t\t\ty--;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (conflictX == 0 && conflictY == 0) {\n\t\t\t\t\tif (y + 1 < 10) {\n\t\t\t\t\t\tif (egrid[x][y + 1] == 1)// if y+1 is a hit and it is\n\t\t\t\t\t\t\t\t\t\t\t\t\t// within bounds, it will go\n\t\t\t\t\t\t\t\t\t\t\t\t\t// there\n\t\t\t\t\t\t\ty++;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (y - 1 >= 0) {\n\t\t\t\t\t\tif (egrid[x][y - 1] == 1)\n\t\t\t\t\t\t\ty--;\n\t\t\t\t\t}\n\t\t\t\t\tif (x + 1 < 10) {\n\t\t\t\t\t\tif (egrid[x + 1][y] == 1)\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t}\n\t\t\t\t\tif (x - 1 >= 0) {\n\t\t\t\t\t\tif (egrid[x - 1][y] == 1) {\n\t\t\t\t\t\t\tx--;\n\t\t\t\t\t\t\tenemyLastShotHit = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} // hard diff\n\t\t\tcheckDirection++;\n\t\t} // lasthit\n\n\t\tint tryCount = 0;\n\t\twhile (egrid[x][y] == 3) { // makes sure enemy doesn't hit same spot\n\t\t\t\t\t\t\t\t\t// twice\n\t\t\tx = (int) (Math.random() * 10);\n\t\t\ty = (int) (Math.random() * 10);\n\t\t\tif (tryCount < 20 && getDifficulty() > 0) {\n\t\t\t\tif (x % 2 == 0) { // if x is even, y should be odd\n\t\t\t\t\tif (y % 2 == 0) { // for checkerboard pattern\n\t\t\t\t\t\tif (y + 1 < 10)\n\t\t\t\t\t\t\ty++;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ty--;\n\t\t\t\t\t}\n\t\t\t\t} else { // if x is odd, y should be even\n\t\t\t\t\tif (y % 2 == 1)\n\t\t\t\t\t\tif (y + 1 < 10)\n\t\t\t\t\t\t\ty++;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ty--;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttryCount++;\n\t\t}\n\n\t\tif (egrid[x][y] == 1) { // hit branch\n\t\t\tenemyBoard[x][y].setIcon(createImageIcon(\"tilehit.jpg\"));\n\t\t\tstatus.setText(\" Enemy got a hit\");\n\t\t\tenemyLastShotHit = true; // starts ai\n\t\t\tcheckDirection = 0;\n\t\t\tif (conflictX == 0 && conflictY == 0) {\n\t\t\t\tenemyLastHitX = x; // stores x and y values\n\t\t\t\tenemyLastHitY = y;\n\t\t\t}\n\t\t\tehits--; // keeps score\n\t\t}\n\n\t\telse if (egrid[x][y] == 2) { // poweup branch\n\t\t\tenemyBoard[x][y].setIcon(createImageIcon(\"tilepower.jpg\"));\n\t\t\tstatus.setText(\" Enemy got a PowerUp\");\n\t\t\tgoAgain = true;\n\t\t}\n\n\t\telse\n\t\t\t// miss branch\n\t\t\tenemyBoard[x][y].setIcon(createImageIcon(\"tilemiss.jpg\"));\n\n\t\tegrid[x][y] = 3;\n\n\t\tcheckEnemyWin();\n\n\t\tif (goAgain)\n\t\t\tenemyMove();\n\n\t}", "void setEnemyPos(Point2D pos);", "public void displayEnemyBoard() {\n System.out.printf(\"%20s\",\"\");\n for(int i = 0; i < space[0].length; i++)\n {\n System.out.printf(\"%4d\",i+1);\n }\n System.out.println(); \n for(int row = 0; row < this.space.length; row++) {\n System.out.print(\" \" + (char)(row+'A') + \"|\");\n for (String emblem: this.space[row]) {\n if (!(emblem.equals(\"[ ]\") || emblem.equals(\"[X]\") || emblem.equals(\"[*]\"))) //Hide the enemy ships\n System.out.print(\"[ ]\"+ \" \");\n else\n System.out.print(emblem + \" \");\n } \n System.out.println();\n }\n }", "public boolean check(double xDelt,double yDelt) {\r\n \tBounds pBound= player1.player.getBoundsInParent();\r\n \t\r\n \tfor( Node object: enemy1.hostileG.getChildren()) {\r\n \t\t\r\n \t\tif(object.getBoundsInParent().intersects(pBound.getMinX()+xDelt, pBound.getMinY()+yDelt, pBound.getWidth(), pBound.getHeight())){\r\n \t\t\teHealth -= inventory.getpDamage();\r\n \t\t\tpHealth -= 1;\r\n\r\n \t\t\tSystem.out.println(\"eHealth \"+ eHealth);\r\n \t\t\tSystem.out.println(\"pHealth \"+ pHealth);\r\n \t\t\t\r\n \t\t\t//\"Deaths of the sprites\"\r\n \t\t\tif(pHealth <=0) {\r\n \t\t\t\tlayout.getChildren().remove(player1.player);\r\n \t\t\t\tSystem.out.println(\"You died!\");\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif(eHealth <=0) {\r\n \t\t\t\tlayout.getChildren().remove(enemy1.enemy);\r\n \t\t\t\tenemy1.enemy.setLayoutX(-10000);\r\n \t\t\t\tenemy1.enemy.setLayoutY(-10000);\r\n \t\t\t}\r\n \t\treturn false;\r\n \t\t}\r\n }\r\n \t\r\n \tfor( Node object: map1.walls.getChildren()) {\r\n \t\tif(object.getBoundsInParent().intersects(pBound.getMinX()+xDelt, pBound.getMinY()+yDelt, pBound.getWidth(), pBound.getHeight())) return false;\r\n \t}\r\n \t\r\n \tfor( Node chest: map1.chests.getChildren()) {\r\n \tif(chest.getBoundsInParent().intersects(pBound.getMinX()+xDelt, pBound.getMinY()+yDelt, pBound.getWidth(), pBound.getHeight())){\r\n \t\tmap1.chests.getChildren().remove(chest);\r\n \t chestchose=inventory.getchestchose();\r\n \t \r\n \t if(chestchose==1) {\r\n \t \tinventory.sworda.setVisible(true);\r\n \t \tinventory.setpDamage(3);\r\n \t }\r\n \t if(chestchose==2) {\r\n \t \tinventory.healthbag.setVisible(true);\r\n \t }\r\n \t \r\n \t return false;\r\n \t} \r\n }\t\r\n \t\r\n return true;\r\n }", "public void enemyTurnStart() {\n\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn \"TankMsg:\"+x+\",\"+y;\r\n\t}", "public static void spawnEnemy(){\n RNG.D100();\n if(PlayerStats.LVL <= 2){\n if(RNG.num <= 90){\n enemy = \"imp\";\n }else{\n enemy = \"IMP LORD\";\n }\n }else if(PlayerStats.LVL > 2 && PlayerStats.LVL <= 3){\n if(RNG.num <= 20){\n enemy = \"imp\";\n }else if(RNG.num > 20 && RNG.num <= 90){\n enemy = \"toadman\";\n }else{\n enemy = \"IMP LORD\";\n }\n }else if(PlayerStats.LVL > 3 && PlayerStats.LVL <= 5){\n if(RNG.num <= 10){\n enemy = \"toadman\";\n }else if(RNG.num > 10 && RNG.num <= 90){\n enemy = \"giant spider\";\n }else{\n enemy = \"BROODMOTHER\";\n }\n }else if (PlayerStats.LVL > 5 && PlayerStats.LVL <= 8){\n if(RNG.num <= 30){\n enemy = \"goblin sorceror\";\n }else if(RNG.num > 30 && RNG.num <= 60){\n enemy = \"goblin warrior\";\n }else if(RNG.num >60 && RNG.num <= 90){\n enemy = \"goblin archer\";\n }else if(RNG.num > 90 && RNG.num <= 100){\n enemy = \"GOBLIN CHIEFTAN\"; \n }\n } \n }", "@Override\n public void enterRoom(Person x) {\n\n occupant = x;\n x.setxLoc(this.xLoc);\n x.setyLoc(this.yLoc);\n System.out.println(\"Aliens abduct you. You lose!\");\n System.out.println(\" .-\\\"\\\"\\\"\\\"-. .-\\\"\\\"\\\"\\\"-.\\n\" +\n \" / \\\\ / \\\\\\n\" +\n \" /_ _\\\\ /_ _\\\\\\n\" +\n \" // \\\\ / \\\\\\\\ // \\\\ / \\\\\\\\\\n\" +\n \" |\\\\__\\\\ /__/| |\\\\__\\\\ /__/|\\n\" +\n \" \\\\ || / \\\\ || /\\n\" +\n \" \\\\ / \\\\ /\\n\" +\n \" \\\\ __ / \\\\ __ /\\n\" +\n \" .-\\\"\\\"\\\"\\\"-. '.__.'.-\\\"\\\"\\\"\\\"-. '.__.'.-\\\"\\\"\\\"\\\"-.\\n\" +\n \" / \\\\ | |/ \\\\ | |/ \\\\\\n\" +\n \" /_ _\\\\| /_ _\\\\| /_ _\\\\\\n\" +\n \"// \\\\ / \\\\\\\\ // \\\\ / \\\\\\\\ // \\\\ / \\\\\\\\\\n\" +\n \"|\\\\__\\\\ /__/| |\\\\__\\\\ /__/| |\\\\__\\\\ /__/|\\n\" +\n \" \\\\ || / \\\\ || / \\\\ || /\\n\" +\n \" \\\\ / \\\\ / \\\\ /\\n\" +\n \" \\\\ __ / \\\\ __ / \\\\ __ /\\n\" +\n \" '.__.' '.__.' '.__.'\\n\" +\n \"jgs | | | | | |\\n\" +\n \" | | | | | |\");\n Runner.gameOff();\n }", "public void drawEnemies(){\n for (Object e : world.getEnemies()) {\n Enemy enemy = (Enemy) e;\n if (enemy instanceof EnemyPistol) {\n spriteBatch.draw(enemyPistolTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }else if (enemy instanceof EnemyAwp){\n spriteBatch.draw(enemyAWPTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }else if (enemy instanceof EnemyStalker){\n spriteBatch.draw(enemyStalkerTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }else if (enemy instanceof EnemyBoss){\n spriteBatch.draw(enemyBossTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }\n }\n }", "public void print()\r\n\t{\r\n\r\n\t\t for(int i = 0; i < 20; i++)\r\n\t\t {\r\n\t\t\t for(int j = 0; j < 20; j++)\r\n\t\t\t {\r\n\t\t\t\t if(sTalker.getY() == randomer.getY() && sTalker.getX() == randomer.getX() && sTalker.getY() == i && sTalker.getX() == j)\r\n\t\t\t\t \tSystem.out.print(\"x\");\r\n\r\n\t\t\t\t else if (i == randomer.getY() && j == randomer.getX())\r\n\t\t\t\t \tSystem.out.print(\"o\");\r\n\r\n\t\t\t\t else if (i == sTalker.getY() && j == sTalker.getX())\r\n\t\t\t\t \tSystem.out.print(\"*\");\r\n\r\n\t\t\t\t else\r\n\t\t\t\t \tSystem.out.print(\"-\");\r\n\t\t\t }\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t\tif(sTalker.getY() == randomer.getY() && sTalker.getX() == randomer.getX())\r\n\t\t{\r\n\t\t \tSystem.out.println(\"The stalker has caught the walker!\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\r\n\t\trandomer.move();\r\n\t\tsTalker.move(randomer);\r\n\t}", "public static void printXY(int x, int y) {\n\t\tSystem.out.println(\"x = \" + x + \", y = \" + y);\n\t}", "private void death(int x, int y) {\n // TODO Auto-generated method stub\n fieldInerface.setSadSmile();\n fieldInerface.timestop();\n gamestart = true;\n for (int j = 0; j < heightOfField; j++)\n for (int i = 0; i < widthOfField; i++)\n if ((i != x) || (j != y)) {\n if (fieldManager.isCellMined(i, j))\n if (!fieldManager.isCellMarked(i, j))\n fieldInerface.putMineToButton(i, j);\n else\n ;\n else if (fieldManager.isCellMarked(i, j))\n fieldInerface.putMistakeToButton(i, j);\n }\n gameover = true;\n }", "private void checkVictory()\n {\n if(throne.getEnemyHealth() <= 0)\n {\n System.out.println(\"Congrats! The land is now free from all chaos and destruction. You are now very rich and wealthy. Yay\");\n alive = false;\n }\n }", "private boolean isOwnOccupied(int x, int y) {\n for (int i = 0; i < player.own.length; i++) {\n if (player.own[i].x == x && player.own[i].y == y) {\n //System.out.println(\"own occupied:\" + i);\n return true;\n }\n }\n return false;\n }", "private void checkPlayerCollisions(int x, int y){\n\t\tint wHitBoxX = 100;\n\t\tint wHitBoxY = 150;\n\t\t\n\t\tfor(int i = 0; i<enemy_num; i++){\n\t\t\tfor(int j = 0; j<enemy_arrow_num[i]; j++){\n\t\t\t\tif(enemy_arrows[i][j][0] > x && enemy_arrows[i][j][0] < (x+wHitBoxX)){\n\t\t\t\tif(enemy_arrows[i][j][1] > y && enemy_arrows[i][j][1] < (y+wHitBoxY)){\n\t\t\t\t \tremove_arrow(i,j);\n\t\t\t\t}}\n\t\t\t}\n\t\t}\n\t\t\n\t\n\t}", "public void drawHit(){\n image(explode[5],posX,posY,10,10);\n }", "private void printSquareAroundPoint(int x, int y)\n {\n // System.out.println();\n }", "public void enemyAttack() {\n Log.i(\"enemyAttack\", \"Begins\");\n AIisAttacking = true;\n setHit(false);\n\n // Loop until A.I. selects a cell it has not chosen before.\n int counter = 0;\n int myRow = 0, myCol = 0;\n boolean selectionFound = false;\n String aiSelectedHit = \"Empty\";\n Random newRow, newCol;\n\n while (selectionFound || counter < aiAttacks.size()) {\n selectionFound = false;\n // Select random row and col\n newRow = new Random();\n myRow = newRow.nextInt(maxN);\n newCol = new Random();\n myCol = newCol.nextInt(maxN);\n\n aiSelectedHit = myRow + \", \" + myCol;\n\n while (counter < aiAttacks.size()) {\n // Check if grid has been selected before\n if (aiAttacks.get(counter).equals(aiSelectedHit)) {\n selectionFound = true;\n counter = 0;\n break;\n }\n counter++;\n }\n }\n aiAttacks.add(aiSelectedHit);\n\n checkIfOccupied(myRow, myCol);\n\n if (getHit()) {\n ivCell[myRow][myCol].setImageResource(R.drawable.mushroom);\n Log.i(\"AI getHit\", \"\" + getHit() + \", (\" + myRow + \", \" + myCol + \")\");\n } else {\n ivCell[myRow][myCol].setImageResource(R.drawable.crater);\n Log.i(\"AI getHit\", \"\" + getHit() + \", (\" + myRow + \", \" + myCol + \")\");\n }\n AIisAttacking = false;\n Log.i(\"enemyAttack\", \"Ends\");\n }", "public boolean checkHit(int x, int y) {\n\t\t\n\t\t//Check if the guard caught the hero\n\t\tint[][] adjacent = new int[][] {\n\t\t\t{ getY() + 1, getX()},\n\t\t\t{ getY() - 1, getX()},\n\t\t\t{ getY(), getX() + 1},\n\t\t\t{ getY(), getX() - 1}\n\t\t\t};\n\n\t\tfor (int[] spot : adjacent) {\n\t\t\tif (spot[1] == x && spot[0] == y) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\t\t\n\t}", "private boolean onBoard(int x, int y){\n if((x<WIDTH&&y<HEIGHT)){\n if(0<=x&&0<=y){\n return true;\n }\n return false;\n }else{\n return false;\n }\n\t}", "boolean outOfSight();", "@Override\n public void tick() {\n x += dirX * speed;\n y += dirY * speed;\n \n //Enemy berjalan sendiri (memantul)\n if(x >= Game.WIDTH - 60){\n dirX = -1;\n } else if(y >= Game.HEIGHT - 80){\n dirY = -1;\n } else if(x <= 5){\n dirX = 1;\n } else if(y <= 5){\n dirY = 1;\n }\n\n }", "public void printInfo(){\n System.out.println(\" this is my y \"+(y+1)+\" this is my x \"+ X.valueOfInt(x));\n System.out.println(\"i am full: \"+ isFull);\n }", "public int gotShot(int x, int y) throws InvalidShotException {\n int hit = 0; //miss \n// System.out.println(\"didMyShipSink: grid[\" + indexX + \"][\" + indexY + \"]'s current shotAt state is: (true)\"\n// + grid[indexX][indexY].getShotAt());\n\n int gridX = x - 1; //0-indexing\n int gridY = y - 1;\n System.out.println(\"Before: \" + grid[gridX][gridY]);\n if (!grid[gridX][gridY].getShotAt()) { //look at your grid, check that cell. hit or miss?\n grid[gridX][gridY].setShotAt(true);\n hit = (grid[gridX][gridY].getHasBoat()) ? HIT_NOT_SUNK : MISS; //if it has a boat, then hit = true.\n if (hit == HIT_NOT_SUNK) {\n hit = didMyShipSink(x, y) ? HIT_AND_SUNK : hit;\n } \n } else {\n throw new InvalidShotException(\"You've already shot this coordinate!\");\n }\n System.out.println(\"After: \" + grid[gridX][gridY]);\n \n switch (hit) {\n case -1: \n System.out.println(\"hit: \" + hit + \" Already been shot!\");\n break;\n case 1: \n System.out.println(\"hit: \" + hit + \" Hit!\");\n break;\n case 2: \n System.out.println(\"hit: \" + hit + \" Hit and sunk!\");\n break;\n default:\n System.out.println(\"hit: \" + hit + \" Miss!\");\n }\n return hit;\n }", "public static int getEnemyLives(){\n return 1 + currentLvl * 2;\n\n }", "int attack(Unit unit, Unit enemy);", "@Test\n public void testSetLivePoint() {\n System.out.println(\"setLivePoint\");\n int i = 1;\n Enemy instance = new SuperEnemy(new Coordinates(90,90));\n instance.setLivePoint(i);\n int result = instance.getLivePoint();\n int expResult =1;\n assertEquals(expResult, result);\n }", "public void print() {\r\n System.out.println(c() + \"(\" + x + \", \" + y + \")\");\r\n }", "private void enemyturn() {\n if (enemy.getHealth() == 0) { // check if the enemy is still alive\n enemy.setAlive(false);\n }\n\n if (enemy.getAlive()) { // if he is alive\n // time to fuck the players day up\n System.out.println(\"\");//formatting\n System.out.println(enemy.getName() + \" attacks you!\");\n\n // calculate the damage this enemy will do\n int differenceHit = enemy.getMaxHit() - enemy.getMinHit(); // difference will be 0-3. But plus 1 (as the result will ALWAYS be +1 in the randomizer so a \"0\" will not happen.\n int minimumDamage = randomize.getRandomDamage(differenceHit); // for example, will return 0-4 if the min and max hit was 4-7. Then do a -1. Making it a 0-3 chance.\n int damage = differenceHit + minimumDamage; // add the minimum damage, to random hit damage.\n\n // calculate the players armor\n damage = damage - player.getPlayerArmorRating();\n if (damage <= 0){\n System.out.println(\"... but you dont take any damage because of your armor!\");\n } else {\n\n System.out.println(\"You take \" + damage + \" damage!\");\n player.removeHealth(damage);\n }\n\n } else { // when ded\n System.out.println(\"The enemy has no chance to fight back. As your final blow killed the enemy.\");\n }\n }", "@Override\n public String toString()\n {\n return TAG + \"[x:\" + x + \",y:\" + y + \"]\";\n }", "public void showMessage(int x, int y, String message) {\n }", "public void turnOn(int x, int y);", "public int getSpawnY()\n {\n return spawnY;\n }", "public Enemy getEnemy(int whichEnemy);", "@Override\n public String toString() {\n return String.format(\"position X is='%s' ,position Y is='%s'\" , positionX , positionY);\n }", "public void tick() {\n\t\tif (Math.abs(disToPlayerX()) > Math.abs(disToPlayerY())) {\r\n\t\t\tif (disToPlayerX()<0) {\r\n\t\t\t\tx -= speed;\t//moves enemy to the left\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tx += speed; //moves enemy to the right\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (disToPlayerY()<0) {\r\n\t\t\t\ty-=speed; //moves enemy up\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ty+=speed; //moves enemy down\r\n\t\t\t}\r\n\t\t}\r\n\t\tenemyRectangle.setLocation((int)x,(int) y); //updates hitbox of enemy\r\n\r\n\t\t//checks all enemies and see if they run into player\r\n\t\tfor (int i=0;i<c.getEnemys().size();i++) {\r\n\t\t\tif (enemyRectangle.getBounds().intersects(player.getRectangle().getBounds())) {\r\n\t\t\t\tkillEnemy(); //removes the enemy\r\n\t\t\t\tPlayer.health -=10; //removes 10 health\r\n\t\t\t\tbreak; //doesn't work without this BREAK. DO NOT REMOVE\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//checks all bullets if they hit an enemy\r\n\t\tfor (int i = 0;i<c.getBullets().size();i++) {\r\n\t\t\tif (enemyRectangle.getBounds().intersects(c.getBullets().get(i).getRect().getBounds())) {\r\n\t\t\t\tkillEnemy(); //removes enemy\r\n\t\t\t\tc.removeBullet(c.getBullets().get(i)); //removes the bullet\r\n\t\t\t\tPlayer.score += 50; //adds 50 to the score\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void basicEnemyAI(){\n if(enemyMana == enemyManaMax){\n applyCard(enemyPlayCard(), \"enemy\");\n }\n }", "public void draw() {\r\n\r\n if (this.z == 2) {\r\n //--- Shooting//---\r\n for (Enemy e: this.td.getEnemies()) {\r\n if (e.getX() < this.x + this.size / 2\r\n && e.getX() + e.getSize() > this.x - this.size / 2) {\r\n if (e.getY() < this.y + this.size / 2\r\n && e.getY() + e.getSize() > this.y - this.size / 2) {\r\n if (!this.firing) {\r\n this.firing = true;\r\n this.target = e;\r\n }\r\n } else {\r\n this.firing = false;\r\n }\r\n }\r\n this.firing();\r\n }\r\n }\r\n this.update();\r\n\r\n }", "public abstract boolean isAlive(int x, int y);", "public String toString()\n {\n return \"I am the nice \" + NAME + \", I am now standing on square \" + x + \" , \" + y + \".\";\n }", "public void spawnEnemy(){\n\t\tint initTile = 0;\n\t\n\t\tfor(int i=0; i<screen.maps[screen.currentMap].path.getHeight(); i++){\n\t\t\tif(screen.maps[screen.currentMap].path.getCell(0, i).getTile().getProperties().containsKey(\"ground\") == true){\n\t\t\t\tinitTile = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\txCoor = 2;\n\t\tyCoor = (initTile)*64 + 2;\n\t\tbound = new Circle(xCoor+30, yCoor+30, 30);\n\t\tinGame = true;\n\t}", "public void checkCollision() {}", "public enemybullet(int x, int y, int xtank, int ytank) {\n\t\tthis.x=x; \n\t\tthis.y=y; \n\t\txspeed = speed; \n\t\tyspeed = (y-ytank)*speed/(x-xtank); \n\t\tSystem.out.println(xspeed+\" \"+yspeed);\n\t}", "@Override\n public void run() {\n// handler.addObject(new Enemy(rnd.nextInt(Game.WIDTH), rnd.nextInt(200), ID.Trump));\n// handler.addObject(new Enemy(rnd.nextInt(Game.WIDTH), rnd.nextInt(200), ID.Trump));\n int rnd_x = rnd.nextInt(Game.WIDTH);\n handler.addObject(new Enemy(getX() + 30, y, ID.Trump, 0));\n handler.addObject(new Enemy(getX() -30, y, ID.Trump, 0));\n handler.addObject(new Enemy(getX() , y+30, ID.Trump, 0));\n handler.addObject(new Enemy(getX() , y-30, ID.Trump, 0));\n\n\n }", "public void nonphysinteractor(int x, int y){\n \t//System.out.println(NextMoveX+ \" \" + NextMoveY + \" \" + getX() + \" \" + getY());\n \tNextMoveY = y;\n \tNextMoveX =x;\n \t\n \tList<Entity> entities = new ArrayList<Entity>();\n \tentities = dungeon.checkEntity(x, y);\n \tfor(Entity c : entities) {\n \t\tif(!(c instanceof Player)) {\n \t\t\t//System.out.println(c.getName());\n \t\t\t//if(c.getName().equals(\"enemy\")) {\n \t\t\t//\tSystem.out.println(\"bakslnasjdhb\");\n \t\t//}\n\t \t\t\t((NonPhysEnt) c).interaction(this);\n\t \t\t\n \t\t}\n \t}\n }", "public static void enemy(){\n\t\tenemy = null;\n\t\twhile(enemy == null){\n\t\t spawnEnemy();\n\t\t}\n\t}", "public MenuInfoEnemigo(final int xValue, final int yValue,\n final PaqueteEnemigo enemy) {\n this.x = xValue;\n this.y = yValue;\n this.enemigo = enemy;\n }", "@Override\n public void enterRoom(Person x) {\n\n occupant = x;\n x.setxLoc(this.xLoc);\n x.setyLoc(this.yLoc);\n System.out.println(\"Edmund is too good at coding! You faint from his greatness!\");\n System.out.println(\" | _______________ |\\n\" +\n \" | |XXXXXXXXXXXXX| |\\n\" +\n \" | |XXXXXXXXXXXXX| |\\n\" +\n \" | |XXXXXXXXXXXXX| |\\n\" +\n \" | |XXXXXXXXXXXXX| |\\n\" +\n \" | |XXXXXXXXXXXXX| |\\n\" +\n \" |_________________|\\n\" +\n \" _[_______]_\\n\" +\n \" ___[___________]___\\n\" +\n \"| [_____] []|__\\n\" +\n \"| [_____] []| \\\\__\\n\" +\n \"L___________________J \\\\ \\\\___\\\\/\\n\" +\n \" ___________________ /\\\\\\n\" +\n \"/###################\\\\ (__)\");\n Runner.gameOff();\n }", "private void enemyAttack() {\n\t\t\n\t\tRandom rand = new Random();\t\n\t\t\n\t\tint roll = rand.nextInt(101);\n\t\t\n\t\tint sroll = rand.nextInt(101);\n\t\t\n\t\tevents.appendText(e.getName() + \" attacks!\\n\");\n\t\t\n\t\tif(roll <= p.getEV()) { // Player evades\n\t\t\t\n\t\t\tevents.appendText(\"You evaded \"+e.getName()+\"\\'s Attack!\\n\");\n\t\t\t\n\t\t}else if(roll > p.getEV()) { // Player is hit and dies if HP is 0 or less\n\t\t\t\n\t\t\tp.setHP(p.getHP() - e.getDMG());\n\t\t\t\n\t\t\tString newHp = p.getHP()+\"/\"+p.getMaxHP();\n\t\t\t\n\t\t\tString effect = e.getSpecial(); // Stats are afflicted\n\t\t\t\n\t\t\tif(sroll < 51){\n\t\t\t\t\n\t\t\tif(effect == \"Bleed\") { // Bleed Special\n\t\t\t\t\n\t\t\t\tp.setHP(p.getHP() - 100);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"You bleed profusely. - 100 HP\\n\");\n\t\t\t\t\n\t\t\t\tnewHp = String.valueOf(p.getHP()+\"/\"+p.getMaxHP());\n\t\t\t}\n\t\t\tif(effect == \"Break\") { // Break Special \n\t\t\t\t\n\t\t\t\tif(p.getEV()-5>0)\n\t\t\t\t\tp.setEV(p.getEV() - 5);\n\t\t\t\telse\n\t\t\t\t\tp.setEV(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"You feel a bone break restricting movement. - 5 EV\\n\");\n\t\t\t\t\n\t\t\t\tString newEV = String.valueOf(p.getEV());\n\t\t\t\t\n\t\t\t\tgev.setText(newEV);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(effect == \"Fear\") { // Fear Special \n\t\t\t\t\n\t\t\t\tif(p.getDMG()-40>0)\n\t\t\t\t\tp.setDMG(p.getDMG() - 40);\n\t\t\t\telse\n\t\t\t\t\tp.setDMG(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"A crippling fear rattles your resolve. - 40 DMG\\n\");\n\t\t\t\t\n\t\t\t\tString newDMG = String.valueOf(p.getDMG());\n\t\t\t\t\n\t\t\t\tgdmg.setText(newDMG);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(effect == \"Rend\") { // Rend Special \n\t\t\t\t\n\t\t\t\tif(p.getDMG()-30>0)\n\t\t\t\t\tp.setDMG(p.getDMG() - 30);\n\t\t\t\telse\n\t\t\t\t\tp.setDMG(0);\n\t\t\t\t\n\t\t\t\tif(p.getEV()-5>0)\n\t\t\t\t\tp.setEV(p.getEV() - 5);\n\t\t\t\telse\n\t\t\t\t\tp.setEV(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"Morthar unleashes a pillar of flame! - 30 DMG and - 5 EV\\n\");\n\t\t\t\t\n\t\t\t\tString newDMG = String.valueOf(p.getDMG());\n\t\t\t\t\n\t\t\t\tString newEV = String.valueOf(p.getEV());\n\t\t\t\t\n\t\t\t\tgdmg.setText(newDMG);\n\t\t\t\t\n\t\t\t\tgev.setText(newEV);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\n\t\t\tif(p.getHP() <= 0) {\n\t\t\t\t\n\t\t\t\tp.setDead(true);\n\t\t\t\t\n\t\t\t\tcurrentHp.setText(0+\"/\"+e.getMaxHP());\n\t\t\t\tplayerHPBar.setProgress((double)0);\n\t\t\t}else {\n\t\t\t\t\n\t\t\t\tcurrentHp.setText(newHp);\n\t\t\t\tplayerHPBar.setProgress((double)p.getHP()/p.getMaxHP());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tif(p.isDead()) { // Game over if player dies\n\t\t\t\n\t\t\ttry {\n\t\t\t\tLoadGO();\n\t\t\t} catch (IOException e1) {\n\t\t\t\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tcombat = false;\n\t\t}\n\t}", "public boolean isMine(int x, int y);", "public Player(Game game, float x, float y, Enemy enemy) {\n\t\tsuper(game,x,y);\n\t\tthis.enemy = enemy;\n\t\tthis.spawnX = (int) x;\n\t\tthis.spawnY = (int) y;\n\t}", "public abstract boolean isHit(int x, int y);", "public void act() \n {\n moveEnemy();\n checkHealth();\n attacked();\n }", "void checkCol() {\n Player player = gm.getP();\n int widthPlayer = (int) player.getImg().getWidth();\n int heightPlayer = (int) player.getImg().getHeight();\n Bullet dummyBuullet = new Bullet();\n int widthBullet = (int) dummyBuullet.getImg().getWidth();\n int heightBullet = (int) dummyBuullet.getImg().getHeight();\n for (Bullet bullet : gm.getBulletList()) {\n // the bullet must be an enemy bullet\n if (bullet.isEnemyBullet() && bullet.isActive()) {\n // the condition when the bullet location is inside the rectangle of player\n if ( Math.abs( bullet.getX() - player.getX() ) < widthPlayer / 2\n && Math.abs( bullet.getY() - player.getY() ) < heightPlayer / 2 ) {\n // 1) destroy the bullet\n // 2) decrease the life of a player\n gm.getP().setHasShield(false);\n if(gm.getP().getCurDirection() == 0){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipLeft4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(gm.getP().getCurDirection() == 1){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipRight4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n bullet.setActive(false);\n if(gm.getP().getHasShield() == false)player.decreaseLife();\n break;\n }\n }\n }\n // 2'nd case\n // the enemy is hit with player bullet\n for (Enemy enemy : gm.getEnemyList()) {\n if (enemy.isActive()) {\n int widthEnemy = (int) enemy.getImg().getWidth();\n int heightEnemy = (int) enemy.getImg().getHeight();\n for (Bullet bullet : gm.getBulletList()) {\n if (!bullet.isEnemyBullet() && bullet.isActive()) {\n // the condition when the player bullet location is inside the rectangle of enemy\n if (Math.abs(enemy.getX() - bullet.getX()) < (widthBullet / 2 + widthEnemy / 2)\n && Math.abs(enemy.getY() - bullet.getY()) < (heightBullet / 2 + heightEnemy / 2)) {\n // 1) destroy the player bullet\n // 2) destroy the enemy\n if (destroyedEnemy % 3 == 0 && destroyedEnemy != 0) onlyOnce = 0;\n destroyedEnemy++;\n gm.increaseScore();\n enemy.setActive(false);\n\n\n if(enemy.hTitanium()) {\n gm.getTitaniumList()[gm.getTitaniumIndex()].setX(enemy.getX());\n gm.getTitaniumList()[gm.getTitaniumIndex()].setY(enemy.getY());\n gm.getTitaniumList()[gm.getTitaniumIndex()].setActive(true);\n gm.increaseTitaniumIndex();\n }\n\n if(enemy.hBonus()) {\n \tgm.getBonusList()[gm.getBonusIndex()].setX(enemy.getX());\n \tgm.getBonusList()[gm.getBonusIndex()].setY(enemy.getY());\n \tgm.getBonusList()[gm.getBonusIndex()].setActive(true);\n \tgm.increaseBonusIndex();\n }\n bullet.setActive(false);\n break;\n }\n }\n }\n }\n }\n\n // 3'rd case\n // the player collided with enemy ship\n for (Enemy enemy : gm.getEnemyList()) {\n if (enemy.isActive()) {\n int widthEnemy = (int) enemy.getImg().getWidth();\n int heightEnemy = (int) enemy.getImg().getHeight();\n // the condition when the enemy rectangle is inside the rectangle of player\n if (Math.abs(enemy.getX() - player.getX()) < (widthPlayer / 2 + widthEnemy / 2)\n && Math.abs(enemy.getY() - player.getY()) < (heightPlayer / 2 + heightEnemy / 2)) {\n // 1) destroy the enemy\n // 2) decrease the player's life\n if(gm.getP().getHasShield() == false)player.decreaseLife();\n gm.getP().setHasShield(false);\n if(gm.getP().getCurDirection() == 0){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipLeft4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(gm.getP().getCurDirection() == 1){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipRight4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n enemy.setActive(false);\n\n break;\n }\n }\n }\n\n for (Bonus bonus : gm.getBonusList()) {\n if (bonus.isActive()) {\n int widthBonus = (int) bonus.getImg().getWidth();\n int heightBonus = (int) bonus.getImg().getHeight();\n if (Math.abs(bonus.getX() - player.getX()) < (widthPlayer / 2 + widthBonus / 2)\n && Math.abs(bonus.getY() - player.getY()) < (heightPlayer / 2 + heightBonus / 2)) {\n bonus.setActive(false);\n if (bonus.getType() == 1) {\n if (player.getLives() < player.getMaxLives()) {\n player.setLives(player.getLives() + 1);\n }\n }\n else{\n superAttack = 1;\n }\n }\n }\n }\n\n for (Titanium titanium : gm.getTitaniumList()) {\n if (titanium.isActive()) {\n int widthBonus = (int) titanium.getImg().getWidth();\n int heightBonus = (int) titanium.getImg().getHeight();\n if (Math.abs(titanium.getX() - player.getX()) < (widthPlayer / 2 + widthBonus / 2)\n && Math.abs(titanium.getY() - player.getY()) < (heightPlayer / 2 + heightBonus / 2)) {\n titanium.setActive(false);\n gm.getP().increaseTitanium();\n }\n }\n }\n\n }", "@Test\n public void testGetLivePointSuper() {\n System.out.println(\"getLivePoint\");\n Enemy instance = new SuperEnemy(new Coordinates(90,90));\n int expResult = 2;\n int result = instance.getLivePoint();\n assertEquals(expResult, result);\n }", "@Override\r\n\tpublic String toString() {\n\t\tString rtn=this.x+\".\"+this.y;\r\n\t\treturn rtn;\r\n\t}", "private static void checkForEnemies() throws GameActionException {\n //No need to hijack code for structure\n if (rc.isWeaponReady()) {\n // basicAttack(enemies);\n HQPriorityAttack(enemies, attackPriorities);\n }\n \n //Old splash damage code\n //Preserve because can use to improve current splash damage code\n //But not so simple like just checking directions, since there are many more \n //locations to consider hitting.\n /*if (numberOfTowers > 4) {\n //can do splash damage\n RobotInfo[] enemiesInSplashRange = rc.senseNearbyRobots(37, enemyTeam);\n if (enemiesInSplashRange.length > 0) {\n int[] enemiesInDir = new int[8];\n for (RobotInfo info: enemiesInSplashRange) {\n enemiesInDir[myLocation.directionTo(info.location).ordinal()]++;\n }\n int maxDirScore = 0;\n int maxIndex = 0;\n for (int i = 0; i < 8; i++) {\n if (enemiesInDir[i] >= maxDirScore) {\n maxDirScore = enemiesInDir[i];\n maxIndex = i;\n }\n }\n MapLocation attackLoc = myLocation.add(directions[maxIndex],5);\n if (rc.isWeaponReady() && rc.canAttackLocation(attackLoc)) {\n rc.attackLocation(attackLoc);\n }\n }\n }//*/\n \n }", "public static void main(String[] args) {\n \r\n int x;\r\n int y;\r\n x= 40;\r\n y= 60;\r\n if(x<y) {\r\n\t System.out.println(\"y is bigger\");\t\r\n\t\r\n\t} \r\n\t}", "private String coords(int x, int y) {\n return String.format(\"%d,%d\", x, y);\n }", "public void printAssistants(Player player);", "public String toString(){\n return \"(\" + this.x + \",\" + this.y + \")\";\n }", "public Battle(Player player, Enemy enemy) {\n\n this.player = player;\n this.enemy = enemy;\n System.out.println(\"While walking into the room, you encounter \" + enemy.getName() + \". He looks angry! Get ready to fight.\");\n System.out.println(\"Your options are: Attack, Eat, Inspect, Run\");\n }", "public static void main(String[] args) {\n\t\tint x, y;\n\t\tx=175; y=225;\n\t\tSystem.out.println(\" X = 175 \\n Y = 225\");\n\t\tSystem.out.println(\"\\n Addition : X + Y = \"+(x+y));\n\t\tSystem.out.println(\"\\n Subtraction : X - Y = \"+(x-y));\n\t\tSystem.out.println(\"\\n Multiplication : X * Y = \"+(x*y));\n\t\tSystem.out.println(\"\\n Division : X / Y = \"+(x/y));\n\t\tif (x>y) {\n\t\t\tSystem.out.println(\"\\n\"+x+\" is greater than \"+y+\" : True\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"\\n\"+x+\" is greater than \"+y+\" : False\");\n\t\t}\n\t\t\n\n\t}", "public void printCurrentState() {\n\t\t//getX() and getY() are methods from the Point class\n\t\tSystem.out.println(\"Avatar location: \" + avatar.getLocation().getX() + \",\" + avatar.getLocation().getY());\n\t\tSystem.out.println(\"Points: \" + avatar.getScore());\n\t}", "public static void hint(int[][] map, int x, int y) {\n\t\t// show neighbor of this shot\n\t\tfor (int i = -1; i < 2; i++) {\n\t\t\tfor (int j = -1; j < 2; j++) {\n\n\t\t\t\tif (x + i < 0 || y + j < 0 || x + i > 9 || y + j > 9) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (map[x + i][y + j] == 0) {\n\t\t\t\t\tmap[x + i][y + j] = 3;\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\"x axis is \" + (x + i) + \" and y axis is \" + (y + j) + \"\" + \", it is not the target!\");\n\t\t\t\t} else if (map[x + i][y + j] == 1) {\n\t\t\t\t\t// map[x + i][y + j] = MINE_FOUND;\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"x axis is \" + (x + i) + \" and y axis is \" + (y + j) + \"\" + \", this is a target!\");\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"-------------------------------------\");\n\t\t// print all the previous shots.\n\t\tfor (int i = 0; i < map.length; i++) {\n\t\t\tfor (int j = 0; j < map[i].length; j++) {\n\t\t\t\tif (map[i][j] == 3) {\n\t\t\t\t\tSystem.out.println(\"x axis is \" + i + \" and y axis is \" + j + \"\" + \", it is not the target!\");\n\t\t\t\t} else if (map[i][j] == 2) {\n\t\t\t\t\tSystem.out.println(\"x axis is \" + i + \" and y axis is \" + j + \"\" + \", it is a found target!\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "int hitGfx();", "public String toString() {\r\n \treturn new String(\"x: \" + x + \" y: \" + y);\r\n }", "public void enemySpawner(){\n\t\tif (spawnFrame >= spawnTime){\n\t\t\tfor(int i =0;i<enemies.size();i++){\n\t\t\t\tif (!enemies.get(i).getInGame()){\n\t\t\t\t\tenemies.get(i).spawnEnemy(Map.enemy);\n\t\t\t\t\tbreak;\n\t\t\t\t\t/*if (enemies.get(i).getNum()==1){\n\t\t\t\t\t\tenemies.get(i).spawnEnemy(Map.enemy1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (enemies.get(i).getNum()==2){\n\t\t\t\t\t\tenemies.get(i).spawnEnemy(Map.enemy2);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (enemies.get(i).getNum()==3){\n\t\t\t\t\t\tenemies.get(i).spawnEnemy(Map.enemy3);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}*/\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tspawnFrame=0;\n\t\t} else{\n\t\t\tspawnFrame+=1;\n\t\t}\n\t}", "@Override\n public String getEntLS() {\n return \"Enemies\";\n }", "public int verifyPlayerMovement(int x1, int y1, int x2, int y2){\n int deltaX = abs(x2-x1);\n int deltaY = abs(y2-y1);\n \n // already chosen position\n if ((deltaX == 0 && deltaY == 0) && (matrixUserChoices[x1][y1] == 1 || matrixUserChoices[x1][y1] == -1)){\n return -1;\n }\n else if (deltaX == 0 && deltaY == 0){\n return POSITIONATTACK;\n }\n else if (deltaX == 1 && deltaY == 1){\n return AREAATTACK;\n }\n else if (deltaX == 0 && deltaY == canvasNumberOfColumns-1){\n return LINEATTACK;\n }\n else if (deltaY == 0 && deltaX == canvasNumberOfLines-1){\n return COLUMNATTACK;\n }\n if ((deltaX == 0 && deltaY == 0) && (gameMatrix[x1][y1] == 1)){\n return -1;\n }\n else{\n return -1;\n }\n \n // the -1 value means an invalid movement \n }", "public void draw(){\n hit();\n hit();\n }", "public int getSpawnX()\n {\n return spawnX;\n }", "public String toString()\n\t{\n\t\treturn getX()+\" \"+getY();\n\t}", "@Override\r\n\tpublic void recieveHit() {\n\t\tif(armour <= 0) {\r\n\t\t\tSystem.out.println(\"Enemy Destroyed\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdouble calculateHitDamage = shot * basicDamage;\r\n\t\t\tif(calculateHitDamage == armour) {\r\n\t\t\t\tarmour = armour - calculateHitDamage;\r\n\t\t\t\tSystem.out.println(\"Enemy Armour Destroyed!!!\");\r\n\t\t\t}\r\n\t\t\telse if(calculateHitDamage > armour) {\r\n\t\t\t\tarmour = armour - calculateHitDamage;\r\n\t\t\t\tSystem.out.println(\"Enemy is Dead!!\");\r\n\t\t\t}\r\n\t\t\telse if(calculateHitDamage < armour) {\r\n\t\t\t\tarmour = armour - calculateHitDamage;\r\n\t\t\t\tSystem.out.println(\"Enemy not detroyed!! \\n\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Current Enemy life: \"+ armour);\r\n\t\t}\r\n\t}", "@Override\n public String toString() {\n return \"Ship X:\" + position.x\n + \"\\nShip Y:\" + position.y;\n }", "public void checkCollision(Enemy enemy){\r\n if(collidingEntity!=null && collidingEntity!=enemy){\r\n return;\r\n }\r\n FloatRect x = enemy.getRect ();\r\n\r\n if (rect1==null || x==null){\r\n return;\r\n }\r\n\r\n FloatRect ins = rect1.intersection (x);\r\n\r\n if(ins!=null) {\r\n this.collidingEntity= enemy;\r\n collide=true;\r\n checkRightCollision (x);\r\n checkLeftCollision (x);\r\n bounce(enemy);\r\n } else {\r\n noCollision ();\r\n }\r\n }", "public void tellNearby(int x, int y)\r\n {\r\n // checks for nearby bombs\r\n for (int row = y - 1; row <= y + 1; row++)\r\n {\r\n for (int col = x - 1; col <= x + 1; col++)\r\n {\r\n try\r\n {\r\n gameBoard.gameCells[row][col].addBombNearby();\r\n } catch (ArrayIndexOutOfBoundsException e)\r\n {\r\n }\r\n }\r\n }\r\n }", "public void His_Turn(String opponent_coord){\r\n\r\n\t\t/*\r\n\t\t * will get xcoor and ycoor\r\n\t\t * NOTE: We don't need to validate, it should be already validate\r\n\t\t * we only need this function to parse the xcoor and ycoor\r\n\t\t */\r\n\t\tValidate_Input(opponent_coord);\r\n\t\t\r\n\t\t/*\r\n\t\t * update hit_history\r\n\t\t */\r\n\t\tmyBoard.hit_history[xcoor][ycoor]=1; \r\n\r\n\t\tboolean hit=false;\r\n\t\t\r\n\t\tdisplay.putStaticLine(\"\");\r\n\t\tif(myBoard.hit_or_miss(xcoor, ycoor)){\r\n\t\t\tSound.playSound(\"res/explosion.wav\");\r\n\t\t\thit=true;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSound.playSound(\"res/Missile_Incoming_FlyBy.wav\");\r\n\t\t}\r\n\r\n\t\t\r\n\t\t// Check if a ship was sunk and update the board accordingly\r\n\t\tString sunk=myBoard.check_sunk();\r\n\t\tif(sunk!=\"nothing\"){\r\n\t\t\tSound.playSound(\"res/bubbles.wav\");\r\n\t\t\tif(myBoard.check_all_sunk()){\r\n\t\t\t\topponent_victory=true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\t// Handle all the output/display after all the calculation...\r\n\t\tdisplay.clearScreen();\r\n\t\tthis.Display_Boards();\r\n\t\tdisplay.putStaticLine(\"\");\r\n\t\tif(hit)\r\n\t\t\tdisplay.putStaticLine(\"Opponent attacked \" + opponent_coord+\"... \" + \"Hit!\");\r\n\t\telse\r\n\t\t\tdisplay.putStaticLine(\"Opponent attacked \" + opponent_coord+\"... \" + \"Miss\");\r\n\t\tif(sunk!=\"nothing\"){\r\n\t\t\tdisplay.putStaticLine(\"\");\r\n\t\t\tdisplay.putStaticLine(\"He sunk your \" + sunk); \r\n\t\t}\r\n\t\tif(opponent_victory){\r\n\t\t\tdisplay.putStaticLine(\"\");\r\n\t\t\tdisplay.putStaticLine(\"You LOSE!!!!!!\");\r\n\t\t}\r\n\t\t\r\n\t\tdisplay.putStaticLine(\"\");\r\n\t\tdisplay.putStaticLine(\"Press Enter to continue with you turn...\");\r\n\t\tdisplay.printScreen();\r\n\t\tdisplay.printPrompt(\"user> \");\r\n\t\t\r\n\t\thit=false;\r\n\t\tturn_change=true;\r\n\t\t// now it's my turn again\r\n\t\tthis.isTurn=true;\r\n\t}", "boolean testCoords(Tester t) {\n return t.checkExpect(this.p3.xCoord(), 50) && t.checkExpect(this.p4.yCoord(), 600);\n }", "static void printMove(Position princessPos, int x, int y) {\r\n\t\tint diffX = princessPos.x - x;\r\n\t\tint diffY = princessPos.y - y;\r\n\t\t\r\n\t\tif (diffX < 0) {\r\n\t\t\tSystem.out.println(LEFT);\r\n\t\t}\r\n\t\telse if (diffX > 0) {\r\n\t\t\tSystem.out.println(RIGHT);\r\n\t\t}\r\n\t\telse if (diffY < 0) {\r\n\t\t\tSystem.out.println(UP);\r\n\t\t}\r\n\t\telse if (diffY > 0) {\r\n\t\t\tSystem.out.println(DOWN);\r\n\t\t}\r\n\t}", "private boolean spawn(int x, int y) {\n\t\treturn false;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"(%d, %d)\", x, y);\n\t}", "@Override\n\tpublic String toString(){\n\t\treturn \"\" + lives + \", \" + score + \", \" + brainX + \", \" + brainY + \", \" + zombieX;\n\t}", "public static void main(String[] args) {\n\t\tint myHp = 100;\r\n\t\tint bossHp = 100;\r\n\t\t\r\n\t\tmyHp = myHp - 99;\r\n\t\tbossHp = bossHp - 100;\r\n\t\t\r\n\t\tif(myHp > 0 && bossHp <= 0) {\r\n\t\t\tSystem.out.println(\"my win\");\r\n\t\t}else if(myHp <= 0 && bossHp<= 0) {\r\n\t\t\tSystem.out.println(\"draw\");\r\n\t\t}else if(myHp <= 0 && bossHp > 0) {\r\n\t\t\tSystem.out.println(\"boss win\");\r\n\t\t}\r\nSystem.out.println(!true);\r\nSystem.out.println(!false);\r\n\t}", "public boolean enemyOutOfBounds() {\n return (position.x < 0\n || position.x + TYPE_A_WIDTH > World.WORLD_WIDTH\n || position.y < 0\n || position.y + TYPE_A_HEIGHT > World.WORLD_HEIGHT);\n }", "public static void main(String[] args) {\n\t\t\n\t\tEnemy e1 = new Enemy(10); // Initialize a new enemy. It will call the constructor in the class enemy.\n\t\tEnemy e2 = new Enemy();\n\t\tEnemy e3 = new Enemy(3);\n\t\t\n\t\te1.SetHealth(100);\n\t\te2.SetHealth(50);\n\t\te3.SetHealth(25);\n\t\t\n\t\t// e1.lives = 10; Since now there is a constructor called Enemy that needs a value of lives it will be not necessary declare here the parameters.\n\t\t\n\t\tSystem.out.println(e1.lives);\n\t\tSystem.out.println(e2.lives); // Since I didn't declare the lives it will take the default value in the class Enemy.\n\t\tSystem.out.println(e3.lives);\n\t\t\n\t\te2.ReduceHealth(9); // It access the method ReduceHealth in the class enemy.\n\t\t\n\t\tSystem.out.println(e1.GetHealth());\n\t\tSystem.out.println(e2.GetHealth());\n\t\tSystem.out.println(e3.GetHealth());\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"(\" + x + \", \" + y + \")\";\n\t}", "public String toString(){\n return \"{\"+this.x+\", \"+this.y+\"}\";\n }", "public String toString() {\n return \"(\"+this.x + \", \" + this.y+\")\";\n }", "private boolean checkCollisions(int X, int Y){\n\t\tint hitBoxSizeX = 105;\n\t\tint hitBoxSizeY = 80;\n\t\tfor(int i=0;i<enemy_num;i++){\n\t\t\tif(X<enemy[i][0]+hitBoxSizeX && X>enemy[i][0]){\n\t\t\t\tif(Y<enemy[i][1]+hitBoxSizeY && Y>enemy[i][1]){\n\t\t\t\t\tremoveEnemy(i);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn(false);\n\t}", "private void findGrid(int x, int y) {\n\tgx = (int) Math.floor(x / gs);\n\tgy = (int) Math.floor(y / gs);\n\n\tif (debug){\n\tSystem.out.print(\"Actual: (\" + x + \",\" + y + \")\");\n\tSystem.out.println(\" Grid square: (\" + gx + \",\" + gy + \")\");\n\t}\n }", "protected abstract void defineEnemy();", "void generateEnemy(){\n\t\tEnemy e = new Enemy((int)(Math.random()*\n\t\t\t(cp.getWidthScreen() - (ss.getWidth()/2)))\n\t\t\t,ss.getHeight(), cp.getHieghtScreen());\t\t\t\t//Enemy (int x, int y, int heightScreen)\n\t\tcp.shapes.add(e);\n\t\tenemies.add(e);\n\t}", "@Override\n\t\t\tpublic void handle(long now) {\n\t\t\t\tif (850 < distanceX && distanceX < 950 && 400 < distanceY && distanceY < 500) {\n\t\t\t\t\tif (AllCharacter.getCharacters().get(5).isAlive()) {\n\t\t\t\t\t\tgc.drawImage(exclamation, x + 22, y - 60, 62, 62);\n\t\t\t\t\t\tisEnemyFound = true;\n\t\t\t\t\t\tGameScene.enermyID = 5;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tisEnemyFound = false;\n\t\t\t\t\t}\n\t\t\t\t} else if (200 < distanceX && distanceX < 280 && 600 < distanceY && distanceY < 680) {\n\t\t\t\t\tif (AllCharacter.getCharacters().get(6).isAlive()) {\n\t\t\t\t\t\tgc.drawImage(exclamation, x + 22, y - 60, 62, 62);\n\t\t\t\t\t\tisEnemyFound = true;\n\t\t\t\t\t\tGameScene.enermyID = 6;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tisEnemyFound = false;\n\t\t\t\t\t}\n\t\t\t\t} else if (310 < distanceX && distanceX < 450 && 200 < distanceY && distanceY < 340) {\n\t\t\t\t\tif (AllCharacter.getCharacters().get(7).isAlive()) {\n\t\t\t\t\t\tgc.drawImage(exclamation, x + 22, y - 60, 62, 62);\n\t\t\t\t\t\tisEnemyFound = true;\n\t\t\t\t\t\tGameScene.enermyID = 7;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tisEnemyFound = false;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tisEnemyFound = false;\n\t\t\t\t\tGameScene.enermyID = 0;\n\t\t\t\t\tanimate.stop();\n\t\t\t\t}\n\t\t\t}", "public Enemy getEnemy(){\n return enemy;\n }" ]
[ "0.70853484", "0.6450707", "0.6224686", "0.61007947", "0.60159177", "0.5987411", "0.59409505", "0.58980393", "0.5884036", "0.58645934", "0.58008367", "0.578216", "0.5780145", "0.5762456", "0.57356566", "0.57324433", "0.57319206", "0.5715296", "0.5694523", "0.5684936", "0.5679887", "0.56533563", "0.56342316", "0.5622428", "0.55992234", "0.559201", "0.5590011", "0.5588873", "0.5582087", "0.5578562", "0.55721855", "0.5568567", "0.55629426", "0.5561766", "0.5549712", "0.554834", "0.55461293", "0.5530966", "0.5530515", "0.55282134", "0.55273926", "0.5522123", "0.5514192", "0.54983157", "0.54826456", "0.5482278", "0.54683053", "0.54641336", "0.5463722", "0.54620844", "0.5458544", "0.54553115", "0.5454259", "0.5450319", "0.5441236", "0.5439956", "0.5439941", "0.54354113", "0.5432806", "0.5430494", "0.5428526", "0.54281867", "0.5421704", "0.54215276", "0.54190856", "0.5418276", "0.5413963", "0.5410272", "0.5409903", "0.540471", "0.5403957", "0.5399269", "0.5393732", "0.5385489", "0.5382823", "0.53755945", "0.5373342", "0.5366197", "0.5355266", "0.5353041", "0.53528214", "0.5350447", "0.53462225", "0.53457534", "0.53409755", "0.5340385", "0.5339881", "0.53384036", "0.53377914", "0.53273916", "0.5318438", "0.5313554", "0.5312096", "0.5310728", "0.5307718", "0.5307316", "0.5303951", "0.5300979", "0.5300293", "0.52991563" ]
0.70024335
1
TODO Autogenerated method stub
@Override public void onFailurePC(HttpException arg0, String arg1) { CustomDialog.closeProgressDialog(); CustomToast.showNetErrorToast(context); findViewById(R.id.txt_comm_head_right).setOnClickListener( new RightListener()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub setContentView(R.layout.ac_taskevent_select_progress);
@Override public void baseSetContentView() { View.inflate(this, R.layout.ac_taskevent_select_progress,mContentLayout); x.view().inject(this); Intent intent = getIntent(); if (intent.hasExtra("id")) { taskid = intent.getStringExtra("id"); } if (intent.hasExtra("schedule")) { schedule = intent.getStringExtra("schedule"); } if (intent.hasExtra("type")) { type = intent.getIntExtra("type", 0); } percentValue = Integer.valueOf(schedule); i = percentValue / 10; basei = percentValue / 10; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tshowDialog(progress_bar_type);\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tshowDialog(progress_bar_type);\n\t\t}", "@Override\n public void onClick(View v) {\n mProgressBar.setVisibility(View.VISIBLE);\n getJokeFromTask();\n }", "public void startSelect(View v){\n isStart = true;\n isCancel = false;\n mySave.setVisibility(View.VISIBLE);\n myCancel.setVisibility(View.VISIBLE);\n myEdit.setVisibility(View.INVISIBLE);\n myCancel.bringToFront();\n myViewFilter.setVisibility(View.INVISIBLE);\n adapter.notifyDataSetChanged();\n }", "@Override\n\t protected void onPreExecute() {\n\t super.onPreExecute();\n\t \n\t progressDialog= new Dialog(ListKotaActivity.this);\n\t progressDialog.getWindow().setBackgroundDrawableResource(android.R.color.transparent);\n\t progressDialog.setContentView(R.layout.progress);\n\t progressDialog.setCancelable(false);\n\t progressDialog.show();\t \n\t }", "@Override\n\t\tprotected void onPreExecute()\n\t\t{\n\t\t\t//Initialize the ViewSwitcher object\n\t viewSwitcher = new ViewSwitcher(LoadingScreenActivity.this);\n\t \n\t\t\tviewSwitcher.addView(ViewSwitcher.inflate(LoadingScreenActivity.this, R.layout.loadingscreen, null));\n\n\t\t\tpb_progressBar = (ProgressBar) viewSwitcher.findViewById(R.id.progressBar1);\n\t\t\t\n\t\t\tpb_progressBar.setMax(100);\n\n\t\t\tsetContentView(viewSwitcher);\n\t\t}", "@Override\n public void onClick(View v) {\n setTaskShowType();\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tprogressDialog = ProgressDialog.show(SearchView.this, \"Espere...\", \"Recebendo dados\", true, true);\n\t\t\tprogressDialog.setOnCancelListener(new CancelTaskOnCancelListener(this));\n\t\t}", "@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n mButton1 =(Button) findViewById(R.id.myButton1);\n mTextView1 = (TextView) findViewById(R.id.myTextView1);\n mButton1.setOnClickListener(myShowProgressBar);\n }", "@Override\n protected void onPreExecute() {\n pd = ProgressDialog.show(Events_and_Festivals.this, \"One Moment\", \"Loading Events and Festivals in the Toronto Area ...\", true, false);\n }", "@Override\n public void setContentView(final int layoutResID) {\n\n super.setContentView(layoutResID);\n\n progressWheel = (ProgressWheel) this.findViewById(R.id.progress_wheel);\n\n Logger.log(Logger.LogState.D, \"progressWheel setContentView: \" + progressWheel);\n // here you can get your drawer buttons and define how they\n // should behave and what must they do, so you won't be\n // needing to repeat it in every activity class\n }", "@Override\r\n\t\tprotected void onPreExecute() {\r\n\t\t\tsuper.onPreExecute();\r\n\t\t\t// set the progress bar view\r\n\t\t\trefreshMenuItem.setActionView(R.layout.action_progressbar);\r\n\t\t\trefreshMenuItem.expandActionView();\r\n\t\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_search_result);\n\n mSqLiteManager = new SQLiteManager(this);\n\n mListResults = (ListView) findViewById(R.id.listTVShows);\n mProgressBar = (ProgressBar) findViewById(R.id.research_progress_bar);\n\n\n mAdapter = new SearchResultAdapter(this,mResults);\n mListResults.setAdapter(mAdapter);\n mListResults.setOnItemClickListener(this);\n\n }", "@Override\n protected void onPreExecute() {\n\n\n dialog = new ProgressDialog(MainArea.this);\n dialog.setTitle(\"Loading Results\");\n dialog.setMessage(\"Please Wait Results Are Loading For You....\");\n dialog.setCanceledOnTouchOutside(false);\n dialog.show();\n super.onPreExecute();\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\r\n\t\t\t\tShowTimePickerDialog();\r\n\r\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsetContentView(R.layout.mba_and_msm_result);\n\t\t\t\t//Intent intent = new Intent(getApplicationContext(),ResultSpinner.class);\n\t\t\t\t//intent.putExtra(\"dept\",\"bba\");\n\t\t\t\t//startActivity(intent);\n\t\t\t}", "@Override\r\n\t\tprotected void onPreExecute() {\n\t\t\trefreshMenuItem.setActionView(R.layout.action_progressbar);\r\n\r\n\t\t\trefreshMenuItem.expandActionView();\r\n\t\t}", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.ab_complete:\n\t\t\tsendMessage(SHOW_PROGRESSBAR);\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tfor (int i = 0; i < listSelectPath.size(); i++) {\n\t\t\t\t\t\tFile file = new File(listSelectPath.get(i));\n\t\t\t\t\t\tmImageFilePath = FeatureFunction.saveTempBitmap(\n\t\t\t\t\t\t\t\tFeatureFunction.scalePicture(listSelectPath.get(i)), file.getName());\n\t\t\t\t\t\tlistGuirenPath.add(mImageFilePath);\n\t\t\t\t\t}\n\t\t\t\t\tsendMessage(HIDE_PROGRESSBAR);\n\t\t\t\t}\n\t\t\t}).start();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\t\t \tprotected void onPreExecute() {\n\t\t try {\n\t\t\t \tpd=new ProgressDialog(Styles_Dialog.this);\n\t\t\t \tpd.setMessage(\"Loading\");\n\t\t\t \tpd.show();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}\n\t\t \t\n\t\t \t}", "@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t\t\n\t\t\tdialog = new ProgressDialog(AddFoodAdvActivity.this);\n\t\t\tdialog.setMessage(\"Loading...\");\n\t\t\tdialog.show();\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\n\r\n\t\t\t\t\t\talert_dialog.dismiss();\r\n\t\t\t\t\t\tet_select_time.setText(\"Set Time\");\r\n\t\t\t\t\t\tselect_time = \"\";\r\n\r\n\t\t\t\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tprogressDialog = ProgressDialog.show(MainActivity.this, \"\",\n\t\t\t\t\t\"Loading...\");\n\t\t}", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n showProgressDialog(R.string.please_wait);\n //showDialog(progress_bar_type);\n }", "@Override\r\n public void onStartTrackingTouch(SeekBar seekBar) {\r\n resultsTextView.setText(\"Range: 0-\" + seekBar.getProgress());\r\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tpd = ProgressDialog.show(Evento.this, \"ENVIAR\", \"ESPERE UN MOMENTO\");\n\t\t\tpd.setCancelable(false);\n\t\t}", "void onShowProgress();", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tprogressDialog = ProgressDialog.show(SlyThemesActivity.this, \"\",Constants.PROCESSING_REQUEST);\n\t\t}", "@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tString dbsize = com.esri.android.viewer.tools.sysTools.getFileSize(taskinfolist.get(position).filepath);\r\n\t \tString filepic = taskinfolist.get(position).filepath+\"/\" +SystemVariables.PicturesDirectory;\r\n\t \tString filevideo = taskinfolist.get(position).filepath+\"/\" +SystemVariables.VideosDirectory;\r\n\t \tString filevoice = taskinfolist.get(position).filepath+\"/\" +SystemVariables.VoicesDirectory;\r\n\t \tString filedraft = taskinfolist.get(position).filepath+\"/\" +SystemVariables.DraftsDirectory;\t\r\n\t \tString info = \t\r\n\t \t\t\t //\"任务ID:\" + taskinfolist.get(position).id\r\n\t \t\t\t //+\"\\n任务名称:\" + taskinfolist.get(position).name\r\n\t \t\t\t //+\"\\n任务说明:\" + taskinfolist.get(position).desc\r\n\t \t\t\t //+\"\\n预计完成时间:\" + taskinfolist.get(position).deadline\r\n\t \t\t //\t\"要素采集: 168 \\n属性编辑: 97 \\n\"+\r\n\t \t\t\t \"图片采集: \" +com.esri.android.viewer.tools.fileTools.getFilesNum(filepic)\r\n\t \t\t\t +\"\\n视频采集: \" +com.esri.android.viewer.tools.fileTools.getFilesNum(filevideo)\r\n\t \t\t\t +\"\\n录音采集: \" +com.esri.android.viewer.tools.fileTools.getFilesNum(filevoice)\r\n\t \t\t\t +\"\\n草图采集: \"+com.esri.android.viewer.tools.fileTools.getFilesNum(filedraft);\t \t\r\n\t \tAlertDialog.Builder builder = new AlertDialog.Builder(v.getContext());\r\n\t \t\t//builder.setIcon(R.drawable.ic_launcher);\r\n\t \t\tbuilder.setTitle(\"状态\");\r\n\t \t\tbuilder.setMessage(info);\r\n\t \t\tbuilder.setPositiveButton(\"确定\",\r\n\t \t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t \t\t\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\r\n\t \t\t\t\t\t\r\n\t \t\t\t\t\t\t\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t});\r\n//\t \t\tbuilder.setNegativeButton(\"取消\",\r\n//\t \t\t\t\tnew DialogInterface.OnClickListener() {\r\n//\t \t\t\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\r\n//\t \t\t\t\t\r\n//\t \t\t\t\t\t}\r\n//\t \t\t\t\t});\r\n\t \t\tbuilder.show();\t \t\r\n\t\t\t\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tsuper.onPreExecute();\n\t\t\tpd = ProgressDialogUtil.createDialogNoTitle(context, \"loading...\");\n\t\t\tpd.show();\n\t\t}", "@Override\n public boolean onLongClick(View view) {\n mDialog.showTextViewId(getId());\n //show width in dialog\n mDialog.showTextViewWidth(getWidth());\n //show height in dialog\n mDialog.showTextViewHeight(getHeight());\n //show bind view id in dialog\n mDialog.showBindViewId(mBindViewId);\n //set position of color spinner\n mDialog.showSpinnerColor(mColorPos);\n //show dialog\n mDialog.show();\n return false;\n }", "@Override\n\tpublic void onItemSelected(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tquestionType = position+3;\n\n\t\tLinearLayout questionLayout = (LinearLayout) findViewById(R.id.question_type_layout);\n\t\tif (position == 0) {\n\t\t\tanswerView = getLayoutInflater()\n\t\t\t\t\t.inflate(R.layout.create_question_text_new_layout,\n\t\t\t\t\t\t\tquestionLayout, false);\n\t\t\tquestionLayout.removeAllViews();\n\t\t\tquestionLayout.addView(answerView);\n\t\t\tImageView add_answer = (ImageView) questionLayout\n\t\t\t\t\t.findViewById(R.id.add_text_answer);\n\t\t\tadd_answer.setOnClickListener(this);\n\t\t}\n\t\tif (position == 1) {\n\t\t\tanswerView = getLayoutInflater().inflate(\n\t\t\t\t\tR.layout.create_question_progress_layout, questionLayout,\n\t\t\t\t\tfalse);\n\t\t\tquestionLayout.removeAllViews();\n\t\t\tquestionLayout.addView(answerView);\n\t\t\t// RatingBar ratingBar = (RatingBar)\n\t\t\t// answerView.findViewById(R.id.ratingBar1);\n\t\t\tRadioGroup progressRadioGroup = (RadioGroup) answerView\n\t\t\t\t\t.findViewById(R.id.progress_radio_group);\n\t\t\tRadioButton fiveStar = (RadioButton) answerView\n\t\t\t\t\t.findViewById(R.id.five_star_button);\n\t\t\tRadioButton tenStar = (RadioButton) answerView\n\t\t\t\t\t.findViewById(R.id.ten_star_button);\n\t\t\tprogressRadioGroup.setOnCheckedChangeListener(this);\n\t\t\tprogressValue = (TextView) answerView\n\t\t\t\t\t.findViewById(R.id.selected_progress_value);\n\t\t\tCheckBox allowHalfRating = (CheckBox) answerView\n\t\t\t\t\t.findViewById(R.id.half_rating_chkbox);\n\t\t\tallowHalfRating.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tif (((CheckBox) v).isChecked()) {\n\t\t\t\t\t\tratingBar.setStepSize((float) 0.5);\n\t\t\t\t\t\tisHalfRating = 1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tratingBar.setStepSize((float) 1.0);\n\t\t\t\t\t\tisHalfRating = 0;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t});\n\t\t\tif (fiveStar.isChecked()) {\n\t\t\t\tanswerView.findViewById(R.id.ratingBar2).setVisibility(\n\t\t\t\t\t\tView.GONE);\n\t\t\t\tratingBar = (RatingBar) answerView\n\t\t\t\t\t\t.findViewById(R.id.ratingBar1);\n\t\t\t\tratingBar.setVisibility(View.VISIBLE);\n\t\t\t\tmaxValue = 5;\n\t\t\t} else if (tenStar.isChecked()) {\n\t\t\t\tratingBar = (RatingBar) answerView\n\t\t\t\t\t\t.findViewById(R.id.ratingBar2);\n\t\t\t\tanswerView.findViewById(R.id.ratingBar1).setVisibility(\n\t\t\t\t\t\tView.GONE);\n\t\t\t\tratingBar.setVisibility(View.VISIBLE);\n\t\t\t\tmaxValue = 10;\n\t\t\t}\n\t\t\t// if (allowHalfRating.isChecked()) {\n\t\t\tratingBar.setStepSize((float) 1.0);\n\t\t\t// } else {\n\t\t\t// ratingBar.setStepSize((float) 0.5);\n\t\t\t// }\n\n\t\t\tratingBar.setOnRatingBarChangeListener(this);\n\t\t}\n\t\tif (position == 2) {\n\t\t\tanswerView = getLayoutInflater()\n\t\t\t\t\t.inflate(R.layout.create_question_seek_layout,\n\t\t\t\t\t\t\tquestionLayout, false);\n\t\t\tquestionLayout.removeAllViews();\n\t\t\tquestionLayout.addView(answerView);\n\t\t\tSeekBar answerSeek = (SeekBar) answerView\n\t\t\t\t\t.findViewById(R.id.answer_seek);\n\t\t\tanswerSeek.setOnSeekBarChangeListener(this);\n\t\t\tEditText seekMaxValue = (EditText) findViewById(R.id.max_value);\n\t\t\tseekValueText = (TextView) findViewById(R.id.selected_value_text);\n\t\t}\n\t\tif (position == 3) {\n\t\t\tanswerView = getLayoutInflater().inflate(\n\t\t\t\t\tR.layout.create_question_smiley_layout, questionLayout,\n\t\t\t\t\tfalse);\n\t\t\tRadioGroup progressRadioGroup = (RadioGroup) answerView\n\t\t\t\t\t.findViewById(R.id.smily_radio_group);\n\t\t\tRadioButton fiveStar = (RadioButton) answerView.findViewById(R.id.type1_smiley);\n\t\t\tRadioButton tenStar = (RadioButton) answerView\t.findViewById(R.id.type2_smiley);\n\t\t\tif (fiveStar.isChecked()) {\n\t\t\t\tmaxValue = 5;\n\t\t\t}else if(tenStar.isChecked()){\n\t\t\t\tmaxValue = 10;\n\t\t\t}\n\t\t\tprogressRadioGroup.setOnCheckedChangeListener(this);\n\t\t\tquestionLayout.removeAllViews();\n\t\t\tquestionLayout.addView(answerView);\n\t\t}\n\t}", "@Override\n\t\tprotected void onPreExecute() {\n\n\t\t\tsuper.onPreExecute();\n\t\t\td = new ProgressDialog(SensorActivity.this);\n\t\t\td.setTitle(\"Loading\");\n\t\t\td.show();\n\t\t}", "protected void onPreExecute() {\r\n \tdialog = new ProgressDialog(context);\r\n \t\tdialog.setMessage(\"Loading...\");\r\n \t\tdialog.show();\r\n }", "private void setOnClickListeners() {\n progressBar = (ProgressBar) findViewById(R.id.progressBar);\n progressBar.setMax(100);\n progressBar.setIndeterminate(false);\n\n }", "@Override\r\n\t\tprotected void onPreExecute() {\r\n\t\t\tsuper.onPreExecute();\r\n\t\t\tpDialog = new ProgressDialog(EventDetailActivity.this);\r\n\t\t\tpDialog.setMessage(\"Loading event details. Please wait...\");\r\n\t\t\tpDialog.setIndeterminate(false);\r\n\t\t\tpDialog.setCancelable(true);\r\n\t\t\tpDialog.show();\r\n\t\t}", "@Override\n\tprotected void onPreExecute() {\n\t\tprogressBar.setVisibility(View.VISIBLE);\n\t\ttv.setVisibility(View.VISIBLE);\n\t\tsuper.onPreExecute();\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.acti);\n\n\t\t\n\t\tskb = (SeekBar) findViewById(R.id.timeChooser);\n\t\tmv = (MainView) findViewById(R.id.mainView);\n\t\ttvBirth = (TextView) findViewById(R.id.birth);\n\t\ttvBirth.setText(mv.getRoot().getBirthdate());\n\t\ttvDeath = (TextView) findViewById(R.id.death);\n\t\ttvDeath.setText(mv.getRoot().getDeathdate());\n\t\ttvYear = (TextView) findViewById(R.id.year);\n\t\ttvYear.setText(mv.getRoot().getBirthdate());\n\t\t\n\t\tskb.setMax(Integer.parseInt(mv.getRoot().getDeathdate())-Integer.parseInt(mv.getRoot().getBirthdate()));\n\t\tskb.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {\n\t\t\t@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\tmv.setTimePoint(progress);\n\t\t\t\ttvYear.setText(Integer.parseInt(mv.getRoot().getBirthdate())+ skb.getProgress() + \"\");\n\t\t\t\tmv.invalidate();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * Need to implement rotation feature later\n\t\t * Display display = ((WindowManager) mv.getContext().getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();\n\t\t */\n\t}", "@Override\n public void onClick(View v) {\n showDialog(TIME_DIALOG_ID);\n }", "@Override\n public void onCompletedClick(int position) {\n }", "@Override\n protected void onPreExecute() {\n\n dialog = new ProgressDialog(AddFoodAdvActivity.this);\n dialog.setMessage(\"Please Wait...!\");\n dialog.show();\n super.onPreExecute();\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n AlertDialog.Builder b = new AlertDialog.Builder(MainOfflineActivity.this);\n b.setTitle(\"Set your own color\");\n b.setIcon(imgpen.getDrawable());\n View seekBarView = getLayoutInflater().inflate(R.layout.color_seekbar, null);\n b.setView(seekBarView);\n\n final TextView colorBlock = seekBarView.findViewById(R.id.color_block);\n SeekBar seekRed = seekBarView.findViewById(R.id.seekbar_red);\n SeekBar seekGreen = seekBarView.findViewById(R.id.seekbar_green);\n SeekBar seekBlue = seekBarView.findViewById(R.id.seekbar_blue);\n SeekBar seekAlpha = seekBarView.findViewById(R.id.seekbar_alpha);\n\n seekRed.setMax(255);\n seekRed.setProgress(RED);\n seekGreen.setMax(255);\n seekGreen.setProgress(GREEN);\n seekBlue.setMax(255);\n seekBlue.setProgress(BLUE);\n seekAlpha.setMax(255);\n seekAlpha.setProgress(ALPHA);\n\n colorHexCode = Color.argb(ALPHA, RED, GREEN, BLUE);\n colorBlock.setBackgroundColor(colorHexCode);\n\n seekRed.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean b) {\n RED = i;\n colorHexCode = Color.argb(ALPHA, RED, GREEN, BLUE);\n colorBlock.setBackgroundColor(colorHexCode);\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }\n });\n\n seekGreen.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean b) {\n GREEN = i;\n colorHexCode = Color.argb(ALPHA, RED, GREEN, BLUE);\n colorBlock.setBackgroundColor(colorHexCode);\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }\n });\n\n seekBlue.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean b) {\n BLUE = i;\n colorHexCode = Color.argb(ALPHA, RED, GREEN, BLUE);\n colorBlock.setBackgroundColor(colorHexCode);\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }\n });\n\n seekAlpha.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean b) {\n ALPHA = i;\n colorHexCode = Color.argb(ALPHA, RED, GREEN, BLUE);\n colorBlock.setBackgroundColor(colorHexCode);\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }\n });\n\n b.setPositiveButton(\"Done\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n imgpen.setColorFilter(colorHexCode);\n Objects.requireNonNull(getDrawable(stroke)).setTint(colorHexCode);\n finalColor = colorHexCode;\n initColorForPalette = finalColor;\n }\n });\n b.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n b.setNeutralButton(\"Default\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ALPHA = 255;\n RED = 39;\n GREEN = 41;\n BLUE = 41;\n colorHexCode = Color.argb(ALPHA, RED, GREEN, BLUE);\n imgpen.setColorFilter(colorHexCode);\n Objects.requireNonNull(getDrawable(stroke)).setTint(colorHexCode);\n finalColor = colorHexCode;\n initColorForPalette = finalColor;\n }\n });\n\n AlertDialog d = b.create();\n d.show();\n }", "@Override\n public void onClick(View v) {\n \tToast.makeText(TaskActivity.this, \"Setting dates!\", Toast.LENGTH_SHORT).show();\n \tshowDatePickerDialog(mSelectedYear, mSelectedMonth, mSelectedDay, mOnDateSetListener);\n }", "@Override\n protected void onPreExecute()\n {\n // Create a new progress dialog\n progressDialog = new ProgressDialog(MainActivity.this);\n // Set the progress dialog spinner progress bar\n progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n // Set the dialog title to 'Loading...'\n progressDialog.setTitle(\"Loading...\");\n // Set the dialog message to 'Loading application View, please wait...'\n progressDialog.setMessage(\"Loading application, please wait...\");\n // This dialog can't be canceled by pressing the back key\n progressDialog.setCancelable(false);\n // This dialog isn't indeterminate\n progressDialog.setIndeterminate(false);\n // The maximum number of items is 100\n progressDialog.setMax(100);\n // Set the current progress to zero\n progressDialog.setProgress(0);\n // Display the progress dialog\n progressDialog.show();\n }", "private void progressLayoutHandler() {\n layoutProgress = (LinearLayout) findViewById(R.id.layoutProgress);\n\n layoutProgress.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n final BottomSheetDialog bottomSheetDialog = new BottomSheetDialog(context);\n bottomSheetDialog.setCancelable(true);\n bottomSheetDialog.setCanceledOnTouchOutside(true);\n bottomSheetDialog.setContentView(getProgressView(bottomSheetDialog));\n bottomSheetDialog.show();\n }\n });\n }", "@Override\r\n \tprotected void onPreExecute() {\n \t\tsuper.onPreExecute();\r\n \t\tpdia = new ProgressDialog(Regmember.this);\r\n \t\tpdia.setCanceledOnTouchOutside(false);\r\n pdia.setMessage(\"Dhiraj rakh..........\");\r\n pdia.show(); \r\n \t}", "@Override\n public void onClick(View v) {\n ListViewActivity.actionStart(SelectActivity.this);\n finish();\n }", "@Override\n\t\tprotected void onPreExecute()\n\t\t{\n\t\t\tsuper.onPreExecute();\n\t\t\tpDialog = new ProgressDialog(MainActivity.this);\n\t\t\tpDialog.setMessage(\"Loading....\");\n\t\t\tpDialog.setCancelable(true);\n\t\t\tpDialog.show();\n\t\t}", "@Override\n\t\tprotected void onPostExecute(Object result) {\n\t\t\tView rootView =(View)result;\n\t\t\ttry {\n\t\t\t\tThread.sleep(400);\n\t\t\t} catch (InterruptedException e) {\t\t\t\t\n\t\t\t}\n\t\t\tsetContentView(rootView);\t\t\t\n\t\t\tgetProgressDialog().hide();\n\t\t}", "@Override\n \tpublic void onClick(View arg0) {\n \t\ttry{\n \t\t\tSeriesSelection selectedPoint = lineGraph.getCurrentSeriesAndPoint();\n \n \t\t\tif(selectedPoint!=null)\n \t\t\t{\n \t\t\t\tString time = xAxisLabelsFinal[(int)selectedPoint.getXValue()];\n \n \t\t\t\tdouble amount=(double)selectedPoint.getValue();\n \t\t\t\t\n \t\t\t\tToast.makeText(caller.getBaseContext(), \"Crowdedness at \" + time + \": \" + amount + \"%\", Properties.TOAST_DEFAULT_DURATION).show();\n \t\t\t}\n \t\t} catch(Exception e){\n \t\t\t\n \t\t}\n \t}", "@Override\n protected void onPreExecute() {\n\n super.onPreExecute();\n // Show progress overlay (with animation):\n// AndroidUtils.animateView(progressOverlay, View.VISIBLE, 0.4f, 200);\n\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\t//progreso.setVisibility(View.VISIBLE);\n\t\t\tsetProgressBarIndeterminateVisibility(true);\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t progressDialog = new AutoTuningInitDialog(mChannelActivity, R.style.dialog);\n\t\t\tprogressDialog.show();\t\t\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\t//\t\t\tmProgress.setVisibility(View.VISIBLE);\n\t\t}", "@Override\n public void onClick(View arg0) {\n final Dialog dialog = new Dialog(SpinnerAcitivity.this);\n // Include dialog.xml file\n dialog.setContentView(R.layout.dialog);\n // Set dialog title\n //dialog.setTitle(\"Custom Dialog\");\n\n // set values for custom dialog components - text, image and button\n TextView text = (TextView) dialog.findViewById(R.id.textDialog);\n// text.setText(\"Thank you for yor response!\");\n ImageView image = (ImageView) dialog.findViewById(R.id.imageDialog);\n// image.setImageResource(R.drawable.icon);\n\n dialog.show();\n\n Button declineButton = (Button) dialog.findViewById(R.id.declineButton);\n // if decline button is clicked, close the custom dialog\n declineButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // Close dialog\n dialog.dismiss();\n }\n });\n\n\n }", "@Override\n \tpublic void onCreate(Bundle savedInstanceState) {\n \t\tsuper.onCreate(savedInstanceState);\n \t\tsetContentView(R.layout.main);\n \t\tprogress = (ProgressBar) findViewById(R.id.progressBar1);\n \t\thandler = new Handler();\n \n \t\tfinal ArrayList<String> al = new ArrayList<String>();\n \n \t\tal.add(\"penile\");\n \t\tal.add(\"vagenda\");\n \n \t\tlv = (ListView)\tfindViewById(R.id.listView1);\n \t\tads = new ArrayAdapter<String>(this, R.layout.rowlayout, R.id.labelo, al);\n \t\tlv.setAdapter(ads);\n \n \t}", "public void clickNext(View view) {\n Intent viewResultsActivityIntent = new Intent(this, ViewResultsActivity.class);\n Spinner select_transport = findViewById(R.id.select_transport);\n ElectricTransport selectedElectricTransport = (ElectricTransport) select_transport.getSelectedItem();\n // Send time, distance, and selected transport to next intent\n viewResultsActivityIntent.putExtra(DISTANCE, this.distance);\n viewResultsActivityIntent.putExtra(TIME, this.time);\n viewResultsActivityIntent.putExtra(SELECTED_TRANSPORT, selectedElectricTransport);\n viewResultsActivityIntent.putExtra(RESULTS_DESCRIPTION, this.results_description);\n\n startActivity(viewResultsActivityIntent); // Go to next screen\n }", "@Override\n protected void onPreExecute() {\n\n dialog = new ProgressDialog(context);\n dialog.setTitle(\"Loading Contents\");\n dialog.setMessage(\"Doing something interesting ...\");\n dialog.setIndeterminate(true);\n dialog.setCancelable(false);\n dialog.show();\n }", "@Override\n \t\tprotected void onPreExecute() \n \t\t{\n \t\t\t//Create a new progress dialog\n \t\t\tprogressDialog = new ProgressDialog(MainActivity.this);\n \t\t\t//Set the progress dialog to display a horizontal progress bar \n \t\t\tprogressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n \t\t\t//Set the dialog title to 'Loading...'\n \t\t\tprogressDialog.setTitle(\"Loading Game...\");\n \t\t\t//Set the dialog message to 'Loading application View, please wait...'\n \t\t\tprogressDialog.setMessage(\"Please wait...\");\n \t\t\t//This dialog can't be canceled by pressing the back key\n \t\t\tprogressDialog.setCancelable(false);\n \t\t\t//This dialog isn't indeterminate\n \t\t\tprogressDialog.setIndeterminate(false);\n \t\t\t//The maximum number of items is 100\n \t\t\tprogressDialog.setMax(100);\n \t\t\t//Set the current progress to zero\n \t\t\tprogressDialog.setProgress(0);\n \t\t\t//Display the progress dialog\n \t\t\tprogressDialog.show();\n \t\t}", "@Override\n\t protected void onPostExecute(Object result) {\n\t super.onPostExecute(result);\n\t ListKotaActivity.this.setContentView(R.layout.activity_listkota);\n\t\t\tsetLayout();\n\t progressDialog.dismiss();\n\t }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowProgress();\n\t\t\t\tgetVedioMainInfo(vedioMainUrl);\n\t\t\t}", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pDialog = new ProgressDialog(MainActivity.this);\n pDialog.setMessage(\"Getting Trees...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n }", "private void initialView(){\n // 进度条还有二级进度条的那种形式,这里就不演示了\n final ProgressDialog dialog = new ProgressDialog(this);\n dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);// 设置水平进度条\n dialog.setCancelable(true);// 设置是否可以通过点击Back键取消\n dialog.setCanceledOnTouchOutside(false);// 设置在点击Dialog外是否取消Dialog进度条\n\n dialog.setTitle(\"正在下载\");\n dialog.setMax(100);\n dialog.setMessage(\"请等待\");\n dialog.show();\n\n\n /*ThreadA t1 = new ThreadA(\"t1\");\n\n synchronized (t1){\n t1.start();\n while(!isExists()){\n try{\n t1.wait();\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n }*/\n\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n // TODO Auto-generated method stub\n try {\n Thread.sleep(25000);\n dialog.cancel();\n Intent intent=new Intent(ProgressActivity.this,SudokuActivity.class);\n startActivity(intent);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }).start();\n }", "@Override\n\t\tprotected void onProgressUpdate(Integer... values) {\n\t\t\tloadingView.setProgress(values[0]);\n\t\t}", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\n\t\t\t\tdialog = new Dialog(Calendario.this);\n\t\t\t\tdialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t\t\tdialog.setContentView(R.layout.dialog_wait);\n\t\t\t\tdialog.getWindow().setBackgroundDrawableResource(\n\t\t\t\t\t\tR.drawable.dialog_rounded_corner_light_black);\n\t\t\t\tdialog.show();\n\t\t\t\tdialog.setCancelable(true);\n\t\t\t\tdialog.setOnCancelListener(new OnCancelListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tcancel(true);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\taProgressDialog = new ProgressDialog(TargetProducts.this);\n\t\t\taProgressDialog.setMessage(\"Loading Report...\");\n\t\t\taProgressDialog.setIndeterminate(true);\n\t\t\taProgressDialog.setCanceledOnTouchOutside(true);\n\t\t\taProgressDialog.show();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\taProgressDialog = new ProgressDialog(TargetProducts.this);\n\t\t\taProgressDialog.setMessage(\"Loading Report...\");\n\t\t\taProgressDialog.setIndeterminate(true);\n\t\t\taProgressDialog.setCanceledOnTouchOutside(true);\n\t\t\taProgressDialog.show();\n\t\t}", "private void Initview() {\n\t\tbackimage=((ImageView) findViewById(R.id.main_info_backimage));\n\t\tbackimage.setImageResource(strbackimage);\n\t\tday=((TextView) findViewById(R.id.main_info_day));\n\t\tday.setText(strday);\n\t\tmonth=((TextView) findViewById(R.id.main_info_month));\n\t\tmonth.setText(strmonth);\n\t\tweek=((TextView) findViewById(R.id.main_info_week));\n\t\tweek.setText(strweek);\n\t\ttitle=((TextView) findViewById(R.id.main_info_title));\n\t\ttitle.setText(strtitle);\n\t\tprogress1=((TextView) findViewById(R.id.main_info_progress1));\n\t\tprogress2=((TextView) findViewById(R.id.main_info_progress2));\n\t\tprogress3=((TextView) findViewById(R.id.main_info_progress3));\n\t\tif(markid==0)\n\t\t{\n\t\t\tprogress1.setBackgroundResource(R.drawable.progress_white);\n\t\t\tprogress2.setBackgroundResource(R.drawable.progress_grey);\n\t\t\tprogress3.setBackgroundResource(R.drawable.progress_grey);\n\t\t}\n\t\telse if(markid==1)\n\t\t{\n\t\t\tprogress2.setBackgroundResource(R.drawable.progress_white);\n\t\t\tprogress1.setBackgroundResource(R.drawable.progress_grey);\n\t\t\tprogress3.setBackgroundResource(R.drawable.progress_grey);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprogress3.setBackgroundResource(R.drawable.progress_white);\n\t\t\tprogress2.setBackgroundResource(R.drawable.progress_grey);\n\t\t\tprogress1.setBackgroundResource(R.drawable.progress_grey);\n\t\t}\n\t\t\t\t\n\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tpdia = new ProgressDialog(mContext);\n\t\t\tpdia.setMessage(\"Loading...\");\n\t\t\tpdia.show();\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\tif(completeChoose!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcompleteChoose.finalfile(rootnow);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t\tprogressDialog1 = ProgressDialogTripg.show(HotelOrderYuDingMain.this, null, null);\n\t\t\t}", "@SuppressLint(\"SetTextI18n\")\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n schermataRicercaFragment.distanzaProgresso.setText(\"Distanza : \" + progressoAggiornato);\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\toptionsDialog();\r\n\t\t\t}", "protected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\n\t\t\t// Assign the progress dialog values\n\t\t\tprogressDialogEvent = new ProgressDialog(CreateEventActivity.this);\n\t\t\tprogressDialogEvent.setMessage(\"Creating Event\");\n\t\t\tprogressDialogEvent.setIndeterminate(false);\n\t\t\tprogressDialogEvent.setCancelable(true);\n\t\t\tprogressDialogEvent.show();\n\t\t}", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n this.dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n this.dialog.setCancelable(false);\n this.dialog.show();\n }", "@Override\n public void onClick(View view) {\n timeDialog.show(getFragmentManager(), \"timePicker\");\n }", "@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\n\t\tprogress = ProgressDialog.show(act, \"\", \"Please wait ...\", true);\n\t\talert = new AlertDialog.Builder(act);\n\n\t}", "@Override\n protected void onPreExecute() {\n pd = ProgressDialog. show(Evento.this, \"Eliminar Evento\", \"ESPERE UN MOMENTO\");\n pd.setCancelable( false);\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n progressDialog = new ProgressDialog(AiutaGliAltri.this);\n progressDialog.setMessage(\"Sto Cercando!\");\n progressDialog.setIndeterminate(true);\n progressDialog.setCanceledOnTouchOutside(false);\n progressDialog.show();\n }", "@Override\n public void onPageSelected(int position) {\n// Toast.makeText(AlarmSettingActivity.this,\n// \"Selected page position: \" + position, Toast.LENGTH_SHORT).show();\n setIndicator(position);\n play(position);\n }", "@Override\r\n\tprotected void onPreExecute()\r\n\t{\r\n\t\tprogress = new ProgressDialog(ctx);\r\n\t\tprogress.setTitle(\"Retrieving Parking Information\");\r\n\t\tprogress.setMessage(\"Please wait.\");\r\n\t\tprogress.setProgressStyle(ProgressDialog.STYLE_SPINNER);\r\n\t\tprogress.show();\r\n\t\tsuper.onPreExecute();\r\n\t}", "public void onNothingSelected(AdapterView<?> parent) {\n // Toast.makeText(getApplicationContext(), \"nada en el spinner\", Toast.LENGTH_LONG).show();\n }", "private void initView() {\n \t textDate = (TextView) findViewById(R.id.nextInspectionDate);\n \t textTime = (TextView) findViewById(R.id.nextInspectionTime);\n \t textAddress = (TextView) findViewById(R.id.textAddressInspection);\n \t textPermitType = (TextView) findViewById(R.id.textPermitType);\n \t buttonScheduleInspection = (Button) findViewById(R.id.buttonScheduleInspection);\n \t buttonViewInspections = (Button) findViewById(R.id.buttonViewInspections);\n \t loadingProgress = (ProgressBar) findViewById(R.id.spinnerInpsection);\n \t LinearLayout landingNextInspectionId = (LinearLayout) findViewById(R.id.landingNextInspectionId);\n \t landingNextInspectionId.setOnClickListener(new View.OnClickListener(){\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif(projectsLoader.getNextInspection()!=null){\n\t\t\t\t\tString recordId = projectsLoader.getNextInspection().getRecordId_id();\n\t\t\t\t\tif(recordId==null)\n\t\t\t\t\t\treturn;\n\t\t\t\t\tActivityUtils.startScheduleInspectionActivity(LandingPageActivity.this, projectsLoader.getParentProject(recordId).getProjectId(), recordId, projectsLoader.getNextInspection(), AppConstants.CANCEL_INSPECTION_SOURCE_OTHER);\n\t\t\t\t}\n\t\t\t}\t\n\t\t});\n\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tpDialog = new ProgressDialog(Tracking.this);\n\t\t\tpDialog.setMessage(\"Mencari History Proses ... !\");\n\t\t\tpDialog.setIndeterminate(false);\n\t\t\tpDialog.setCancelable(true);\n\t\t\tpDialog.show();\n\t\t}", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n progressDialog = new ProgressDialog(AiutaGliAltri.this);\n progressDialog.setMessage(\"Attendi...\");\n progressDialog.setIndeterminate(true);\n progressDialog.setCanceledOnTouchOutside(false);\n progressDialog.show();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tProfile.this.infolay.setVisibility(View.INVISIBLE);\n\t\t\t\tProfile.this.otherlay.setVisibility(View.VISIBLE);\n\t\t\t\tpd = ProgressDialog.show(Profile.this, \"dowloading\", \"dowloading,please wait……\");\n\n\t\t\t\t new Thread(runnableloadportf).start();\n\n\t\t\t\tsm.toggle();\n\t\t\t\t\n\t\t\t}", "public void CameToSelectActivity (View view) {\n Intent CameToSelectIntent = new Intent(getApplicationContext(), SelectActivity.class);\n startActivity(CameToSelectIntent);\n }", "@Override\n\tprotected void onPreExecute() {\n\t\t\n\t\t pDialog = new ProgressDialog(context);\n\t\t\ttry{\n\t\t\t\tthis.pDialog.setMessage(\"Please wait ...\");\n\t\t this.pDialog.setIndeterminateDrawable(context.getResources().getDrawable(R.drawable.red_progress));\n\t\t this.pDialog.setIndeterminate(false);\n\t\t this.pDialog.setCancelable(false);\n\t\t this.pDialog.show();\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t}", "@Override\r\n\t protected void onPreExecute() {\n\t super.onPreExecute();\r\n\t progressDialog = new ProgressDialog(UDMap.this);\r\n\t progressDialog.setMessage(\"Loading the best way...\");\r\n\t progressDialog.setIndeterminate(true);\r\n\t progressDialog.show();\r\n\t }", "@Override\r\n\tpublic void onClick(View v) {\r\n\t\tIntent intent;\r\n\t\tswitch (v.getId()) {\r\n\r\n\t\tcase R.id.left_ib:\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\tcase R.id.right_tv:\r\n\t\t\tselectedList = homePageAdapter.getList();\r\n\t\t\tStringBuffer buffer = new StringBuffer();\r\n\t\t\tfor (SelectionList selectionList : selectedList) {\r\n\t\t\t\tif (selectionList.getIsSelected() == 1) {\r\n\t\t\t\t\tbuffer.append(selectionList.getmTime() + \" : \");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tUtility.showToast(this, buffer.toString());\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n loadingText.setText(loadingHints[random.nextInt(loadingHints.length)]);\n // [... Обновите индикатор хода выполнения, уведомления или другой\n // элемент пользовательского интерфейса ...]\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.suggestions);\r\n\r\n\t\tSuggestionsNote = (TextView)findViewById(R.id.SuggestionsNote);\r\n\t\tSuggestionsContent = (TextView)findViewById(R.id.SuggestionsContent);\r\n\t\tbutony = (LinearLayout)findViewById(R.id.butony);\r\n\t\t\r\n\t\tstart = (Button) findViewById(R.id.start);\r\n\t\tstart.setOnClickListener(new View.OnClickListener() {\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tbutony.setVisibility(View.GONE);\r\n\t\t\t\tSuggestionsNote.setVisibility(View.GONE);\r\n showDialog(PROGRESS_DIALOG);\r\n\t\t\t}\r\n\t\t});\r\n\t\tButton back = (Button) findViewById(R.id.back);\r\n\t\tback.setOnClickListener(new View.OnClickListener() {\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tsetResult(RESULT_OK);\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\n public void onClick(View v) {\n new DatePickerDialog(select_time_date.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n protected void onPreExecute() {\n Log.e(TAG, \"onPreExecute\");\n\n // showing the ProgressBar \n //simpleWaitDialog = ProgressDialog.show(settingslistactivity.this, \"loading records from datastore...\", \"excecuting task...\");\n //simpleWaitDialog.setCancelable(true);\n\n super.onPreExecute();\n }", "@Override\n protected void onPreExecute() {\n Log.e(TAG, \"onPreExecute\");\n\n // showing the ProgressBar \n //simpleWaitDialog = ProgressDialog.show(settingslistactivity.this, \"loading records from datastore...\", \"excecuting task...\");\n //simpleWaitDialog.setCancelable(true);\n\n super.onPreExecute();\n }", "@Override\n\t\t\t\t\tpublic void onLoadingCancelled(String arg0, View arg1) {\n\n\t\t\t\t\t}", "@Override\n protected void onPreExecute() {\n showLoadingProgressDialog();\n }", "@Override\n protected void onPreExecute() {\n showLoadingProgressDialog();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n String option = String.valueOf(buffKey);\n progressDialog = new ProgressDialog(SetWalletActivity.this,\n R.style.AppTheme_White_Dialog);\n progressDialog.setIndeterminate(true);\n progressDialog.setMessage(\"loading...\");\n progressDialog.getWindow().setLayout(400, ViewGroup.LayoutParams.WRAP_CONTENT);\n progressDialog.show();\n setWalletStatus(option,walletRowID,phoneNumber);\n\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tcancel = true;\n\t\t\tcancelButton.setVisibility(View.GONE);\n\t\t\texitButton.setVisibility(View.VISIBLE);\n\t\t\tstartButton.setVisibility(View.VISIBLE);\n\t\t\tbar.setVisibility(View.GONE);\n\t\t\ttextView.setVisibility(View.GONE);\n\t\t}", "public void initView() {\n ((TextView) _$_findCachedViewById(R.id.tvCancelResv)).setOnClickListener(new MyResvDetailActivity$initView$1(this));\n getResvDetail();\n }" ]
[ "0.5829942", "0.5829942", "0.5721361", "0.5707853", "0.5612802", "0.5584706", "0.555511", "0.5545432", "0.55376154", "0.5537336", "0.5496537", "0.54942364", "0.54681474", "0.54523325", "0.5452041", "0.5450143", "0.54491967", "0.5440403", "0.5432776", "0.542334", "0.542319", "0.5416493", "0.54105455", "0.54006416", "0.5400063", "0.53697664", "0.5356976", "0.53567725", "0.53465885", "0.53435206", "0.5339866", "0.53390396", "0.53361017", "0.5314291", "0.5305868", "0.53021055", "0.5290359", "0.528633", "0.528564", "0.52813876", "0.52806085", "0.5270788", "0.5264714", "0.5264526", "0.52643806", "0.526033", "0.5255829", "0.5250926", "0.5249693", "0.52496535", "0.52439344", "0.52394444", "0.52350897", "0.52346694", "0.52274674", "0.5227328", "0.5226876", "0.5226206", "0.5224674", "0.52171284", "0.5215852", "0.5212895", "0.52110964", "0.5207022", "0.52032053", "0.52032053", "0.5201874", "0.51957244", "0.5184591", "0.51835436", "0.51785225", "0.51770467", "0.51757973", "0.5175588", "0.51752806", "0.51706535", "0.5169326", "0.5164985", "0.5163181", "0.516067", "0.5156678", "0.51531273", "0.51451755", "0.514331", "0.51414293", "0.51376015", "0.51342094", "0.5129961", "0.51295805", "0.5128497", "0.5124748", "0.51236004", "0.51232815", "0.51232815", "0.5121905", "0.5119323", "0.5119323", "0.5118681", "0.5118485", "0.5115832" ]
0.6300512
0
TODO Autogenerated method stub
@Override public boolean getDataResult() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void updateUi() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void bindViewsListener() { seekbar.setOnSeekBarChangeListener(mOnSeekBarChangeListener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onStopTrackingTouch(SeekBar arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onStartTrackingTouch(SeekBar arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void init(ServletConfig config) throws ServletException { super.init(config); seasonList=config.getInitParameter("season-list"); seasonArr=seasonList.split(","); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
protected void doProcess(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out=response.getWriter(); List<String> l=(List<String>)request.getAttribute("ERROR"); if(l!=null) { out.println("<font color='red'>please correct the errors</font><br/>"); for(String str:l) { out.println("<font color='red'>"+str+"</font><br/>"); } } out.println(" <form action='add_league.do' method='post' > "); out.println(" year<input type='text' name='year'><br/> "); out.println("Season<select name='season'>"); for(String s:seasonArr) { out.println("<option value= '"+s+"'>"+s+"</option>"); } out.println(" </select><br/> "); out.println("Title<input type='text' name='title'> "); out.println(" <input type='submit' value='Add League'></form> "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
private boolean mFromExchange = false;
@Override public void onAttach(Activity activity) { Log.d(TAG, "onAttach"); super.onAttach(activity); mActivity = activity; try{ CallBackLocalUserListFragmentListener listener = (CallBackLocalUserListFragmentListener)activity; listener.getLocalUserListFragment(this); }catch (ClassCastException e) { Log.d(TAG, activity.toString() + "must implement CallBackLocalUserListFragmentListener"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isSetExchange();", "boolean isSending();", "public abstract boolean isDelivered();", "boolean isReceiving();", "public boolean isAmDelivery() {\r\n return amDelivery;\r\n }", "boolean isTransmitting();", "Observable<Boolean> messageBodyRecipientCardViewIsGone();", "public void setTransferExchange(boolean transferExchange) {\n this.transferExchange = transferExchange;\n }", "boolean hasPlainTransferFrom();", "@Override\n protected ExchangeUse getExchangeUse() {return ExchangeUse.DEAD;}", "public interface IExchange {\r\n}", "public void setAmDelivery(boolean value) {\r\n this.amDelivery = value;\r\n }", "boolean hasUnReceived();", "@Override\n\tpublic void receive(boolean value) {\n\t\t\n\t}", "boolean hasSender();", "boolean hasSender();", "boolean hasSender();", "boolean hasSender();", "boolean hasSender();", "boolean hasSender();", "boolean hasReceived();", "Observable<Boolean> messageBodySenderCardViewIsGone();", "public boolean isSent(){\t\n\t\treturn sent;\n\t}", "boolean isForwarding();", "public boolean SendingMessage() {\n \t\t\treturn false;\n \t\t}", "public boolean is_set_msg() {\n return this.msg != null;\n }", "public boolean isAccept(){\n return isAccept; \n }", "private\n boolean\n allowEvents()\n {\n return itsAllowEvents;\n }", "public boolean getHIPPAWaiver(){return this.HIPPAWaiver;}", "private Boolean getWantIntent() {\n return false;\n }", "public boolean isReceived() {\n\t\treturn isReceived;\n\t}", "public boolean isSetSender() {\n return this.sender != null;\n }", "public boolean isReceived() {\n\t\treturn _received;\n\t}", "@Override\n\tpublic boolean isDeliverable() {\n\t\treturn true;\n\t}", "boolean hasExchangeTime();", "@Override\r\n\tpublic boolean handleMessage(Message msg) {\n\t\treturn false;\r\n\t}", "boolean isPendingToRead();", "public boolean hasExchangeTime() {\n return exchangeTime_ != null;\n }", "@Override\n public boolean messagePending() {\n return commReceiver.messagePending();\n }", "public boolean isOnReceiveCalled() {\n return this.f49;\n }", "@Override\n\tpublic boolean canReceive() {\n\t\treturn false;\n\t}", "public boolean isStuckCall(){\n return this.stuckCall;\n }", "public boolean isGuaranteedDelivery() {\r\n return guaranteedDelivery;\r\n }", "boolean getAccepted();", "public boolean getIsMessage()\n {\n return isMessage;\n }", "boolean hasSubscribe();", "boolean shouldAutoSubscribe();", "public boolean getShared(){\n return this.shared;\n }", "@Override\n\tpublic boolean isPending();", "public boolean getIsFlow() {\r\n return !isFlow.get();\r\n }", "void unsetExchange();", "public boolean isInbound() {\n return inbound;\n }", "public boolean isSetStateMsg() {\n return this.stateMsg != null;\n }", "public Exchange getExchange() {\r\n return exchange;\r\n }", "public boolean getTrigger(){\n \treturn !trigger.get();\n }", "@Override\n\tpublic void editExchange() {\n\t\t\n\t}", "boolean isSetCurrentrun();", "public Boolean allowGatewayTransit() {\n return this.innerProperties() == null ? null : this.innerProperties().allowGatewayTransit();\n }", "public boolean isSwitchedOn(){\r\n return _switchedOn;\r\n }", "public boolean isOn(){\n return state;\n }", "boolean hasRemsg();", "public boolean isIncomingInvitePending();", "public void setSendingReferrersAsNotSent() {\n }", "public boolean onForwardingStopped() {\n ActivityChooserView.this.dismissPopup();\n return true;\n }", "public boolean isSelfMessageProcessingEvent();", "@Override\n protected String getExchangeName() {return _exchangeName;}", "public boolean isDelivered() {\n return !getMode().isCollection() && !isCarried();\n }", "boolean isRepliable();", "public boolean hasExchangeTime() {\n return exchangeTimeBuilder_ != null || exchangeTime_ != null;\n }", "boolean isAccepting();", "public boolean isSetAutoForwardTriggeredSend()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(AUTOFORWARDTRIGGEREDSEND$16) != 0;\n }\n }", "private boolean sendIfOnline(String client, Exchange exchange) {\n\t\tif (data.isConnected(client)) {\n\t\t\tconnection.send(client, exchange);\n\t\t\treturn true;\n\t\t}\n\t\tdata.addPendingClientMessage(client, exchange);\n\t\treturn false;\n\t}", "public boolean isRequest(){\n return false;\n }", "boolean hasSendReading();", "boolean isDisplayMessageOnRedeem();", "boolean getLockstepAck();", "boolean getAck();", "@Override\r\n\tpublic void makeDeliveryFree() {\n\t\t\r\n\t}", "public void setMsg(boolean status){\r\n\t\tthis.send = status;\r\n\t}", "public void beforeReceive() {\n\t}", "boolean isConfirmed(){\n\t\treturn confirmed;\n\t}", "public boolean isSetExchangeID() {\n return this.exchangeID != null;\n }", "boolean isAlreadyTriggered();", "public boolean GetMove();", "@Override\n public Boolean skip(final ServerWebExchange exchange) {\n return false;\n }", "boolean needsAck() { return true; }", "public void setIsFromMassUpdate (boolean IsFromMassUpdate);", "public boolean moveOn() {\n\t\t\n\t}", "public boolean isEnabled() { return _enabled; }", "public boolean get_destination() {\r\n return (final_destination);\r\n }", "private boolean poleSwitchEngaged(){\n return true; //poleSwitch.get();\n }", "public final boolean isAutoConsume()\n {\n return myAutoConsumeProperty.get();\n }", "String getDisableRedelivery();", "public Boolean getInplay(){\n return inplay;\n }", "public void setExchange(Exchange exchange) {\r\n this.exchange = exchange;\r\n }", "public void setOnReceiveCalled() {\n this.f49 = true;\n }", "@ApiModelProperty(value = \"Indicates whether or not the refund is associated with an exchange. If is_exchange is true, the refund reflects the value of goods returned in the exchange not the total money refunded.\")\n public Boolean getIsExchange() {\n return isExchange;\n }", "public boolean getRingDuringIncomingEarlyMedia();", "public void clearReceived() {\n\t\t_received = false;\n\t}", "private boolean allowsInstantMessage()\n {\n for(ChatTransport tr : transportMenuItems.keySet())\n {\n if(tr.allowsInstantMessage())\n {\n return true;\n }\n }\n\n return false;\n }", "private Globals() {\n\t\treadyToSend=false;\n\t}" ]
[ "0.7178909", "0.65800786", "0.6564828", "0.65574443", "0.64433426", "0.6227964", "0.62225527", "0.6220075", "0.6175699", "0.6137349", "0.61329544", "0.6117425", "0.6081714", "0.6033336", "0.60167754", "0.60167754", "0.60167754", "0.60167754", "0.60167754", "0.60167754", "0.5998273", "0.59829414", "0.59167176", "0.58989376", "0.5896848", "0.58586466", "0.58502346", "0.583665", "0.5831121", "0.5828005", "0.58027625", "0.579326", "0.57928675", "0.57902986", "0.5786763", "0.57569927", "0.57343936", "0.57266635", "0.5712891", "0.57030654", "0.56829774", "0.567543", "0.5666678", "0.5661408", "0.564926", "0.56415904", "0.5634828", "0.5628298", "0.56260395", "0.5616995", "0.56159365", "0.56140983", "0.56138706", "0.5612826", "0.56094337", "0.5605198", "0.55896926", "0.5587723", "0.5587651", "0.5585384", "0.5577572", "0.5576795", "0.557046", "0.5566153", "0.5561391", "0.55588496", "0.5555753", "0.5552826", "0.5552249", "0.5541329", "0.5539749", "0.55396545", "0.5534279", "0.55339074", "0.5532078", "0.55312276", "0.55291915", "0.55289495", "0.55245554", "0.55227566", "0.55226046", "0.5522424", "0.5520084", "0.5516181", "0.55065006", "0.5505055", "0.5500829", "0.54991806", "0.5494716", "0.5493857", "0.5493568", "0.5493551", "0.5488692", "0.5481622", "0.5480929", "0.5473733", "0.54731005", "0.54694283", "0.5460286", "0.5457173", "0.545696" ]
0.0
-1
adicionando um limite a conta
public String getTitular() { return this.titular; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getLimit();", "int getLimit();", "Limits limits();", "Limit createLimit();", "Range controlLimits();", "public long limit();", "public double getLimit() {return limit;}", "WebPage limit(int limit);", "public int limitesX(){\n int v=0;\n if (fila==0 && columna>0 && columna<15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else if (fila==15 && columna>0 && columna<15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else{v=limitesY();}\n return v;\n }", "public int getLimit(){\r\n return limit;\r\n\r\n }", "public int getLimit() {\n\treturn Limit;\n }", "protected Limit getLimit() {\n return new Limit(skip, limit);\n }", "public void pagaConta(int valorCentavos) {\n\t\tthis.contaPagar -= valorCentavos;\n\t}", "private static int gravidadeTempo(int[] limites, int valor) {\n\t\tint result = -1;\n\t\tfor(int i = 0 ; i < limites.length && result == -1 ; i++) {\n\t\t\tif(valor <= limites[i]) {\n\t\t\t\tresult = i;\n\t\t\t}\n\t\t}\n\n\t\treturn result == -1 ? limites.length : result;\n\t}", "void setLimit(int limit);", "@Override\n public void subida(){\n // si es mayor a la eperiencia maxima sube de lo contrario no\n if (experiencia>(100*nivel)){\n System.out.println(\"Acabas de subir de nivel\");\n nivel++;\n System.out.println(\"Nievel: \"+nivel);\n }else {\n\n }\n }", "public int limitesY(){\n int v=0;\n if (columna==0 && fila>0 && fila<15){\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n }\n else if (columna==15 && fila>0 && fila<15){\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n }\n else{v=esquinas();}\n return v;\n }", "public String getLimit_Base();", "public void limitarCantidad(int cantidad) {\n int cantidadAnterior = nodos.size();\n \n nodos = nodos.subList(0, cantidad);\n \n fireIntervalRemoved(this, cantidad, cantidadAnterior);\n }", "public int getLimit() {\r\n return limit;\r\n }", "private int cap(long n) {\n\t\t\treturn (int) Math.min(RandomAccessDataFile.this.length - this.position, n);\n\t\t}", "public void setMiterLimit(float limit);", "public int getLimit() {\n return limit;\n }", "public int getLimit() {\n return limit;\n }", "public int getLimit() {\n return limit;\n }", "public void subirNivelAtaque(){\n\tif(contadorNivel==5){\n\t nivelAtaque++;\n\t System.out.println(\"El ataque \"+obtenerNombreAtaque()+\" ha subido de nivel\");\n\t contadorNivel=0;\n\t dano+=5;\n\t} else {\n\t nivelAtaque=nivelAtaque;\n\t}\n }", "GridEnvelope getLimits();", "public int getLimit() {\n return limit;\n }", "int getLinesLimit();", "public void setLimit(int limit) {\n\tLimit = limit;\n }", "private static long getLimit(QueryModelNode node) {\n long offset = 0;\n if (node instanceof Slice) {\n Slice slice = (Slice) node;\n if (slice.hasOffset() && slice.hasLimit()) {\n return slice.getOffset() + slice.getLimit();\n } else if (slice.hasLimit()) {\n return slice.getLimit();\n } else if (slice.hasOffset()) {\n offset = slice.getOffset();\n }\n }\n QueryModelNode parent = node.getParentNode();\n if (parent instanceof Distinct || parent instanceof Reduced || parent instanceof Slice) {\n long limit = getLimit(parent);\n if (offset > 0L && limit < Long.MAX_VALUE) {\n return offset + limit;\n } else {\n return limit;\n }\n }\n return Long.MAX_VALUE;\n }", "public Long getLimit() {\n return this.Limit;\n }", "public Long getLimit() {\n return this.Limit;\n }", "String limitSubquery();", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}", "private int getCurrentLimit(){\n\t\treturn this.LIMIT;\n\t}", "@Override\n\tprotected void setUpperBound() {\n\t\t\n\t}", "public void pagar(int precio){\r\n this.dinero -=precio;\r\n }", "public Integer getLimit() {\n return limit;\n }", "private void limitRows()\n {\n paginate(currentPage, getResultsPerPage());\n }", "public void setLimitStart(Integer limitStart) {\r\n this.limitStart=limitStart;\r\n }", "public void setLimit(Long Limit) {\n this.Limit = Limit;\n }", "public void setLimit(Long Limit) {\n this.Limit = Limit;\n }", "public Contenedor getContenedorMaximo()\n {\n Contenedor maxCont = null;\n int maxPeso ;\n\n maxPeso = 0;\n\n for (Contenedor c : this.losContenedores){\n if (c.peso > maxPeso)\n {\n maxPeso = c.peso;\n maxCont = c;\n }\n }\n\n return maxCont;\n }", "public void setLimit(int limit) {\n this.limit=limit;\n }", "public void setLimit(Integer limit) {\n this.limit = limit;\n }", "boolean isLimited();", "public Long getLimit() {\n return this.limit;\n }", "public float getLimit() {\n return limit;\n }", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "public void checkCameraLimits()\n {\n //Daca camera ar vrea sa mearga prea in stanga sau prea in dreapta (Analog si pe verticala) ea e oprita (practic cand se intampla acest lucru Itemul asupra caruia se incearca centrarea nu mai e in centrul camerei )\n\n if(xOffset < 0 )\n xOffset = 0;\n else if( xOffset > refLinks.GetMap().getWidth()* Tile.TILE_WIDTH - refLinks.GetWidth())\n xOffset =refLinks.GetMap().getWidth()* Tile.TILE_WIDTH - refLinks.GetWidth();\n if(yOffset<0)\n yOffset = 0;\n if(yOffset > refLinks.GetMap().getHeight()*Tile.TILE_HEIGHT - refLinks.GetHeight())\n {\n yOffset = refLinks.GetMap().getHeight()*Tile.TILE_HEIGHT - refLinks.GetHeight();\n }\n }", "public List<Pregunta> getPreguntasMasVotadas(int limit);", "public int getLimit() {\n\t\treturn limit;\n\t}", "public int getLimit() {\n\t\treturn limit;\n\t}", "public double getLimiteCorrente () {\r\n\t\treturn limiteCorrente;\r\n\t}", "public LimiteDisponibilidadeResponse limiteMaximo(BigDecimal limiteMaximo) {\n this.limiteMaximo = limiteMaximo;\n return this;\n }", "private void setMax(int max) { this.max = new SimplePosition(false,false,max); }", "private static void afisareSubsecventaMaxima() {\n afisareSir(citireSir().SecvMax());\n }", "public int getLimitEnd() {\n return limitEnd;\n }", "public int getLimitEnd() {\n return limitEnd;\n }", "public int getLimitStart() {\n return limitStart;\n }", "public int getLimitStart() {\n return limitStart;\n }", "public int getLimitStart() {\n return limitStart;\n }", "public void setLimitStart(int limitStart) {\n this.limitStart=limitStart;\n }", "public void setLimitStart(int limitStart) {\n this.limitStart=limitStart;\n }", "public void setLimitStart(int limitStart) {\n this.limitStart=limitStart;\n }", "public void setLimit(int start, int limit) {\n this.start = start;\n this.limit = limit;\n }", "private int getPageEnd() {\n if(itemrow==0)\n return 1;\n if(itemrow%displaylimit!=0)\n return itemrow / displaylimit + 1;\n else\n return itemrow / displaylimit;\n }", "public void setLimit(int limit) {\n this.limit = limit;\n }", "public void setLimitEnd(Integer limitEnd) {\r\n this.limitEnd=limitEnd;\r\n }", "public Double getLimit() {\n return limit;\n }", "public List<Limit> list();", "protected abstract boolean reachedContractLimit(int size);", "protected void subirDeNivel(int n) //A cada 100 de xp, sobe de nivel\n {\n this.nivel = nivel + n;\n }", "public int getPageBreakMax() { return _parent!=null? _parent.getPageBreakMax() : 0; }", "public void setLimit(int limit) {\n this.limit = limit;\n }", "private double getMarginFromBounds(int lowerBound, int upperBound) {\n return (upperBound - lowerBound) / 2.0;\n }", "public int paragraphLimit(int pos) {\r\n checkPos(pos, NOT_GREATER_THAN_LENGTH);\r\n return fParagraphBuffer.paragraphLimit(pos);\r\n }", "public synchronized int getLowerSizeLimit() {\n \t\treturn lower;\n \t}", "void setLimit( Token t, int limit) {\r\n \tMExprToken tok = (MExprToken)t;\r\n \ttok.charEnd = limit;\r\n \ttok.charStart = limit;\r\n }", "int getLevelLimit(int start) {\n byte l = levels[start];\n while (++start < levels.length && levels[start] == l) {}\n return start;\n }", "public static double calculateLimit() {\n return 500;\n }", "public Integer getLimitStart() {\r\n return limitStart;\r\n }", "public void setLimitEnd(int limitEnd) {\n this.limitEnd=limitEnd;\n }", "public void setLimitEnd(int limitEnd) {\n this.limitEnd=limitEnd;\n }", "public void limitarCaracteres(JTextField l, int nmax){\r\n l.addKeyListener(new KeyAdapter(){\r\n @Override\r\n public void keyTyped(KeyEvent e){\r\n if (l.getText().length()==nmax){\r\n e.consume();}\r\n } \r\n });\r\n }", "static int Limit(int val, int max, int min) {\n if (val > max) {\n val = max;\n } else if (val < min) {\n val = min;\n }\n\n return val;\n }", "long getMaxItemFindings();", "private int proximo_sequencia(int atual){\n if (atual + Utils.tamanho_util_pacote > Utils.numero_max_seq) return (atual + Utils.tamanho_util_pacote) - Utils.numero_max_seq;\n else return atual + Utils.tamanho_util_pacote;\n\n }", "public int getLimit (CallZone zone){//method of returning how many minutes a card can call based on it's balance\r\n double maxMin = balance/costPerMin(zone);//equation of determining how many minutes remain per zone\r\n \r\n return (int)maxMin;\r\n }", "public ListInfrastructure limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }", "public int masVendido(int cantidad){\r\n \r\n return cantidad;\r\n }", "@Name(\"creditoDisponivel\")\n public Integer limiteCredito(@Source Usuario u) {\n return u.nome.length();\n }", "public void setLimit(float value) {\n this.limit = value;\n }", "private double limit(double num) {\n if (num > 1.0) {\n return 1.0;\n }\n if (num < 0) {\n return 0;\n }\n return num;\n }", "public String getLimit() {\r\n\t\treturn this.limit;\r\n\t}", "void setMaxResults(int limit);", "public int getLimit() {\n\t\t\treturn limit;\n\t\t}", "public int vecinos(){\n int v=0;\n if(fila<15 && columna<15 && fila>0 && columna>0){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;} \n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n }\n else{v=limitesX();}\n return v;\n }", "public void aumentaInSitu(){\n if(quantidade_in_situ<quantidade_disponivel)\n quantidade_in_situ++;\n else\n return;\n }", "public void setLimit(int limit) {\n\t\tthis.limit = limit;\n\t}" ]
[ "0.67721874", "0.67721874", "0.6661923", "0.6460749", "0.62461513", "0.60854846", "0.6070477", "0.59355336", "0.59333307", "0.58145237", "0.5773863", "0.5771037", "0.5769063", "0.57481885", "0.57478625", "0.573681", "0.5694775", "0.56905675", "0.5636251", "0.5632249", "0.55895793", "0.5586841", "0.55636394", "0.55636394", "0.55636394", "0.5558857", "0.55571747", "0.5539545", "0.5534035", "0.5524683", "0.55135375", "0.5510724", "0.5510724", "0.54999864", "0.54679966", "0.54674894", "0.5456927", "0.5444419", "0.5441228", "0.5437815", "0.5435696", "0.5414267", "0.5414267", "0.54134697", "0.54042506", "0.5403733", "0.53948313", "0.53828514", "0.5378963", "0.5373082", "0.53606546", "0.53520393", "0.5345181", "0.5345181", "0.5318892", "0.5317829", "0.5315393", "0.53109163", "0.5310819", "0.5310819", "0.5300705", "0.5300705", "0.5300705", "0.5296098", "0.5296098", "0.5296098", "0.52952826", "0.52940094", "0.5286201", "0.527891", "0.5271356", "0.52668", "0.5249816", "0.5246434", "0.52240014", "0.5220212", "0.5217345", "0.5214767", "0.52117175", "0.52101135", "0.52097195", "0.5207853", "0.51969206", "0.5190903", "0.5190903", "0.51873684", "0.51854277", "0.5184361", "0.5182777", "0.5172917", "0.5164002", "0.5155976", "0.5152945", "0.51515204", "0.5150145", "0.51477", "0.5145332", "0.51447356", "0.5143605", "0.5142047", "0.5141179" ]
0.0
-1
Private Constructor to ensure Singleton
private MovieFacade() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Singleton(){}", "private Singleton()\n\t\t{\n\t\t}", "private Singleton() {\n\t}", "private Singleton() { }", "private SingletonObject() {\n\n\t}", "private Singleton(){\n }", "private SingletonSigar(){}", "private SingletonSample() {}", "private LazySingleton(){}", "private Singleton() {\n if (instance != null){\n throw new RuntimeException(\"Use getInstance() to create Singleton\");\n }\n }", "private SparkeyServiceSingleton(){}", "private LazySingleton() {\n if (null != INSTANCE) {\n throw new InstantiationError(\"Instance creation not allowed\");\n }\n }", "private SingletonDoubleCheck() {}", "private J2_Singleton() {}", "private SingletonEager(){\n \n }", "private EagerInitializedSingleton() {\n\t}", "private EagerInitializedSingleton() {\n\t}", "private LoggerSingleton() {\n\n }", "private Instantiation(){}", "private EagerlySinleton()\n\t{\n\t}", "private InstanceUtil() {\n }", "private MySingleton() {\r\n\t\tSystem.out.println(\"Only 1 object will be created\");\r\n\t}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "public SingletonVerifier() {\n }", "private InnerClassSingleton(){}", "private SingletonAR() {\n System.out.println(Thread.currentThread().getName()\n + \": creating SingletonAR\");\n }", "private EagerInitializationSingleton() {\n\t}", "private Util()\n {\n // Empty default ctor, defined to override access scope.\n }", "private Utils()\n {\n // Private constructor to prevent instantiation\n }", "private MApi() {}", "private Singleton2A(){\n\t\tif(instance != null){\n\t\t\tthrow new RuntimeException(\"One instance already created cant create other\");\n\t\t}\t\t\n\t\tSystem.out.println(\"I am private constructor\");\n\t}", "private SingleTon() {\n\t}", "private LOCFacade() {\r\n\r\n\t}", "private TagCacheManager(){\n //AssertionError不是必须的. 但它可以避免不小心在类的内部调用构造器. 保证该类在任何情况下都不会被实例化.\n //see 《Effective Java》 2nd\n throw new AssertionError(\"No \" + getClass().getName() + \" instances for you!\");\n }", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "private SingleObject()\r\n {\r\n }", "private Singleton()\r\n\t{\r\n\t\tSystem.out.println(\"1st instance of class Singleton created\");\r\n\t\tstr = \"Constructor init\";\r\n\t}", "private SingletonH() {\n System.out.println(Thread.currentThread().getName()\n + \": creating SingletonH\");\n }", "private ObjectFactory() { }", "private SingletonLectorPropiedades() {\n\t}", "private SingletonClass() {\n objects = new ArrayList<>();\n }", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private SingletonClass() {\n x = 10;\n }", "private PermissionUtil() {\n throw new IllegalStateException(\"you can't instantiate PermissionUtil!\");\n }", "Reproducible newInstance();", "private SnapshotUtils() {\r\n\t}", "private Utils() {\n\t}", "private Utils() {\n\t}", "private BusquedaMaker() {\n\t\tinit();\n\t}", "private SingletonSyncBlock() {}", "private PropertySingleton(){}", "private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}", "private StreamFactory()\n {\n /*\n * nothing to do\n */\n }", "public SharedObject() {}", "private ResourceFactory() {\r\n\t}", "private Service() {}", "private Util() {\n }", "private Utility() {\n\t}", "private Util() {\n }", "private Util() {\n }", "private ModuleSyncHelper() {\n //Private constructor to avoid instances for this helper.\n }", "private ScriptInstanceManager() {\n\t\tsuper();\n\t}", "private RequestManager() {\n\t // no instances\n\t}", "private SingleObject(){}", "private FixtureCache() {\n\t}", "private QcTestRunner()\n\t{\n\t\t// To prevent external instantiation of this class\n\t}", "private ArticleMgr() {\r\n\r\n\t}", "private SingleObject(){\n }", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private GmpLibInstance() {\n }", "private Util() { }", "private WolUtil() {\n }", "private FeedRegistry() {\n // no-op for singleton pattern\n }", "private UtilsCache() {\n\t\tsuper();\n\t}", "private Supervisor() {\r\n\t}", "private LocatorFactory() {\n }", "private DPSingletonLazyLoading(){\r\n\t\tthrow new RuntimeException();//You can still access private constructor by reflection and calling setAccessible(true)\r\n\t}", "private StaticData() {\n\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private DataManager() {\n }", "private Rekenhulp()\n\t{\n\t}", "public Instance() {\n }", "public LibraryCache() {\n\t }", "private PerksFactory() {\n\n\t}", "private TSLManager() {\n\t\tsuper();\n\t}", "private FlowExecutorUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private FactoryCacheValet() {\n\t\tsuper();\n\t}", "private HttpClient() {\n\t}", "private SerializationUtils() {\n\t\tthrow new AssertionError();\n\t}", "private HabitTrackerUtils() {\n // Required empty private constructor (to prevent instantiation).\n }", "private SharedPreferencesUtils() {\n }", "private void initInstance() {\n init$Instance(true);\n }", "private OMUtil() { }" ]
[ "0.87969863", "0.87961644", "0.87283206", "0.8665476", "0.8535576", "0.8402946", "0.827173", "0.8182788", "0.81696206", "0.8071351", "0.79498494", "0.79409987", "0.7878587", "0.7862135", "0.7840997", "0.77403593", "0.77403593", "0.7700436", "0.76197237", "0.75681293", "0.7563083", "0.75225306", "0.7515714", "0.7499579", "0.7479587", "0.7414386", "0.7410071", "0.7404892", "0.7315128", "0.72615147", "0.7252527", "0.72071034", "0.71942014", "0.71666145", "0.7155366", "0.7139418", "0.71250767", "0.71127117", "0.71105546", "0.71015936", "0.70896614", "0.70836985", "0.70791364", "0.70724684", "0.7071134", "0.70441324", "0.7027497", "0.7027497", "0.7013463", "0.7004987", "0.70039946", "0.6997512", "0.69951624", "0.6972143", "0.69658756", "0.6946938", "0.69401526", "0.69366735", "0.6920681", "0.6920681", "0.69203883", "0.6913596", "0.69130474", "0.6910665", "0.69065446", "0.68991196", "0.68935454", "0.6893105", "0.6891557", "0.6855224", "0.6855224", "0.6855224", "0.6855224", "0.6855224", "0.6845353", "0.6837895", "0.6837332", "0.68353647", "0.68256", "0.68237597", "0.6823252", "0.68196326", "0.6812719", "0.6804853", "0.6804853", "0.6804853", "0.6804853", "0.679794", "0.6791928", "0.67905176", "0.67872316", "0.67871577", "0.67843693", "0.67814016", "0.67787457", "0.67718965", "0.67695165", "0.6768722", "0.6768455", "0.6761487", "0.6758748" ]
0.0
-1
Constructor. When the constructor completes successfully, the navigator is positioned at position 0.
public LinelandNavigation(final int g, final int m) { // fill me in! }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Navigator() {\n landmarks = new Landmarks();\n\n currentLocation = new Location(6, 0, 'D');\n home = new Location(6, 0, 'D');\n\n currentDestination = home;\n currentDestinationName = \"\";\n\n readLandmarks();\n readConfig();\n noteManager = new NoteManager();\n eventManager = new EventManager();\n\n }", "private Navigator() {\n }", "public NavigatorPane() {\n _initNewLayer(_symbolLayer);\n _rebuildLayerArray();\n }", "public Screen() {\n super();\n controller = null;\n }", "public NavigationPanel()\n\t{\n\t\tmakeContent();\n\t}", "public NavigationController( BrowserFieldScreen widgetScreen ) {\r\n _browserField = widgetScreen.getWidgetBrowserField();\r\n _navigationNamespace = widgetScreen.getNavigationExtension();\r\n _widgetFieldManager = widgetScreen.getWidgetFieldManager();\r\n _currentNodeHovered = true;\r\n _defaultHoverEffect = true;\r\n _iframeHashtable = new Hashtable();\r\n }", "public Home() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public NavStack() {\n super();\n }", "public Screen() {\n\t\tobjects = new ArrayList<>();\n\t\tsetVisible(false);\n\t}", "public void init() {\n position.print();\n }", "public MenuPrincipal() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "@Override\n\tpublic NavigationIndicator initialize() {\n\t\treturn null;\n\t}", "public Navigator(NavigationRule navigationRule) {\r\n\t\tthis.navigationRule = navigationRule;\r\n\t\tthis.checkpointChangeThreshold = navigationRule.getStepDistance() / 2;\r\n\t\t\r\n\t\tthis.navigationPointList = new ArrayList<>();\r\n\t\t\r\n\t\t//this.elevationScraper = new MapCoordinatesDotNetScraper();\r\n\t}", "private void Myinits() {\n \n \n \n setLocationRelativeTo(this);\n }", "private NavDebug() {\r\n }", "public IView() {\n initComponents();\n setLocationRelativeTo(null); //Center form on screen\n }", "public MainUI() {\r\n initComponents();\r\n this.setLocationRelativeTo(null);\r\n /**/\r\n }", "public HomeFrame() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public homeScreen() throws Exception {\n\t\tinitialize();\n\t}", "public Libros() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public menu() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public MainScreen() {\n initComponents();\n \n }", "public AStationPane() {\n }", "public NavigationView(NavigationController parentNavigationController) \n {\n this.parentNavigationController = parentNavigationController;\n initComponents();\n }", "public StartScreen() {\n initComponents();\n }", "@Override \n protected void startup() {\n GretellaView view = new GretellaView(this);\n show( view );\n view.initView(); \n }", "public TriangleNavStart() {\n initComponents();\n }", "public VechicleLoanRequiredDoc() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public NavigatorAStar(){\n makeGraph();\n //randomStart();\n }", "public MainView() {\r\n\t\tinitialize();\r\n\t}", "public MainScreen(GproToolController controller) {\n this.baseController = controller;\n \n initComponents();\n centerFrame();\n }", "private void launchNavigation() {\n // get navigation settings object\n SKNavigationSettings navigationSettings = new SKNavigationSettings();\n // set the desired navigation settings\n navigationSettings.setNavigationType(SKNavigationSettings.NAVIGATION_TYPE_SIMULATION);\n navigationSettings.setPositionerVerticalAlignment(-0.25f);\n navigationSettings.setShowRealGPSPositions(false);\n // get the navigation manager object\n SKNavigationManager navigationManager = SKNavigationManager.getInstance();\n navigationManager.setMapView(mapView);\n // set listener for navigation events\n navigationManager.setNavigationListener(this);\n // start navigating using the settings\n navigationManager.startNavigation(navigationSettings);\n navigationInProgress = true;\n }", "@Override\n protected void init() {\n REQUEST_PERMISSION_FOR_ACTIVITY = false;\n viewModel.setNavigator(this);\n viewModel.onStart(this);\n binding.welcomePager.setAdapter(adapter);\n\n addDots(0);\n binding.welcomePager.addOnPageChangeListener(viewListener);\n\n// handlingBackground();\n }", "private UI()\n {\n this(null, null);\n }", "public Home() {\n initComponents();\n ShowLauncher();\n }", "public Main() {\n\t\tsuper();\n\t\tInitScreen screen = new InitScreen();\n\t\tpushScreen(screen);\n\t\tUiApplication.getUiApplication().repaint();\n\t}", "@Override public void begin() {\n horizontalCorner = new Location( 0, 200 );\n verticalCorner = new Location( 200, 0 );\n }", "public Creacion() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public HomeScreen() {\n initComponents();\n }", "protected void initialize() {\n \tSystem.out.println(\"initialize ReturnToStart\");\n \tRobot.claw.goRetract();\n \tRobot.claw.goUp();\n \tRobot.claw.goOpen();\n \tRobot.claw.spinStop();\n }", "public LoadingScreen2()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1280, 720, 1); \n tracker = new Tracker();\n }", "@Override\n protected void initLocation() {\n }", "public GuiController()\n {\n\n DefaultTerminalFactory terminalFactory = new DefaultTerminalFactory();\n PageStack = new ArrayDeque<>(); // Gives us a screen stack\n window = new BasicWindow(\"Just put anything, I don't even care\");\n try\n {\n screen = terminalFactory.createScreen(); //Populates screen\n screen.startScreen(); //Runs screen\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n textGUI = new MultiWindowTextGUI(screen);\n\n }", "@Override\n protected void init() {\n viewModel.setNavigator(this);\n setUp();\n subscribeToLiveData();\n\n setUpNotificationUi();\n setUpNotification();\n\n setUpAds();\n\n viewModel.start(getCurrentVersionOfApp());\n }", "public Builder() {\n mParams = new NavigateParams();\n }", "@Override\n public void establish() {\n logger.info(\"Opening page {}...\", pageObject);\n initializePage();\n pageObject.open();\n }", "void init() {\n setVisible(true);\n\n }", "public ClientMainView() {\n initComponents();\n setLocationRelativeTo(null);\n }", "protected void initialize() {\n Constants.frontClimbPlatformPositionSetpoint = SmartDashboard.getNumber(\"Front Climb Platform Setpoint\", Constants.frontClimbPlatformPositionSetpoint);\n\n Constants.frontClimbCommandTimeout = SmartDashboard.getNumber(\"Front Climb Command Timeout\", Constants.frontClimbCommandTimeout);\n\n \tsetTimeout(Constants.frontClimbCommandTimeout);\n\n \tFrontClimb._legState = FrontClimb.LegState.LEGS_MOVING; \t\t\n Robot._frontClimber.moveToPosition(Constants.frontClimbPlatformPositionSetpoint);\n }", "public FINALROOM() {\n initComponents();\n this.setLocationRelativeTo(null);\n\n }", "public Location()\n\t{\n\t\tline = -1;\n\t\tcolumn = -1;\n\t}", "public Menu() {\n initComponents();\n setSize(822, 539);\n setLocationRelativeTo(this);\n setVisible(true);\n }", "public Main() {\n initComponents();\n this.setLocationRelativeTo(null);\n \n \n }", "public JdbNavTree() {\r\n super(new Object [] {});\r\n commonInit();\r\n }", "public NuevoViaje() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MainScreen()\n {\n initComponents();\n \n //Load the tables of the application with data from database\n loadClientTable();\n loadSupplierTable();\n loadStorageTable();\n loadPurchaseTable();\n loadSellTable();\n loadDeskPane();\n \n // Set window's location to the center of the screen\n setLocationRelativeTo(null);\n }", "public Principal() {\n initComponents();\n this.setLocationRelativeTo(this);\n }", "private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}", "private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}", "public rol() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public ViewGuaranterWindow() {\n initComponents();\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n }", "private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}", "private void initLocation() {\n setLocationRelativeTo(null);\n }", "private void startingScreen() {\n screenWithGivenValues(-1,-2,1,2,3,-1,0);\n }", "private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}", "public FaultGenerateFrame() {\n initComponents();\n super.setLocation(700, 700);\n }", "public PorController() {\n window = utils.getWindow();\n storageLocation = null;\n }", "public void iniciar(){\r\n \r\n view.setTitle(\"MVC Proyecto\");\r\n //Indica posicion, null -> posicion 0 = centro\r\n view.setLocationRelativeTo(null);\r\n \r\n }", "public Registrarse() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Menu() {\n mainMenuScene = createMainMenuScene();\n mainMenu();\n }", "public DashboardFrame() {\n WebLookAndFeel.install ();\n Controller = new Controller();\n initComponents();\n }", "public BreukFrame() {\n super();\n initialize();\n }", "private void initialScreen() {\r\n\t\t// Clear the screen\r\n\t\tclear();\r\n\r\n\t\t// Place four asteroids\r\n\t\tplaceAsteroids();\r\n\r\n\t\t// Place the ship\r\n\t\tplaceShip();\r\n\r\n\t\t// Reset statistics\r\n\t\tlives = 3;\r\n\t\tdisplay.setLives(lives);\r\n\t\tnumLevel = 1;\r\n\t\tdisplay.setLevel(numLevel);\r\n\t\tdisplay.setScore(0);\r\n\t\tspeed = 3;\r\n\r\n\t\t// Start listening to events\r\n\t\tdisplay.removeKeyListener(this);\r\n\t\tdisplay.addKeyListener(this);\r\n\r\n\t\t// Give focus to the game screen\r\n\t\tdisplay.requestFocusInWindow();\r\n\t}", "public MiFrame() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public MenuKullanimi()\n {\n initComponents();\n setLocationRelativeTo(null);\n }", "@Override\n public void initialize() {\n arm.setPosition(degrees);\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", "private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public void moveStart(\n )\n {\n index = StartIndex;\n if(state == null)\n {\n if(parentLevel == null)\n {state = new GraphicsState(this);}\n else\n {state = parentLevel.state.clone(this);}\n }\n else\n {\n if(parentLevel == null)\n {state.initialize();}\n else\n {parentLevel.state.copyTo(state);}\n }\n\n notifyStart();\n\n refresh();\n }", "public Menu_Ingreso() {\n initComponents();\n setLocationRelativeTo(null);\n }", "private void initialize()\n\t{\n\t\tthis.setModal(true);\t\t\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(450,400);\n\t\tScreenResolution.centerComponent(this);\n\t}", "protected void creaNavigatori() {\n /* variabili e costanti locali di lavoro */\n Navigatore nav;\n\n try { // prova ad eseguire il codice\n nav = new NavigatoreRisultati(this);\n this.addNavigatore(nav);\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public WorkingOutScreenV1() {\n initComponents();\n }", "@Override\r\n\tpublic void initSD() {\n\t\trobotPositionChooser.addDefault(\"Unknown\", Position.Unknown);\r\n\t\trobotPositionChooser.addObject(\"Left\", Position.Left);\r\n\t\trobotPositionChooser.addObject(\"Middle\", Position.Middle);\r\n\t\trobotPositionChooser.addObject(\"Right\", Position.Right);\r\n\t\tSmartDashboard.putData(robotPositionChooser);\r\n\t}", "@Override\n public void start() {\n this.mob.getNavigation().startMovingTo(\n this.mob.getPositionTarget().getX(),\n this.mob.getPositionTarget().getY(),\n this.mob.getPositionTarget().getZ(),\n this.speed\n );\n }", "public Cadastro() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "protected abstract Controller initialScreen();", "public GUI() {\n \n \n initComponents();\n this.setLocationRelativeTo(null);\n \n \n }", "private void initialize() {\n\t\tframe = new JFrame(\"View Report\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.setBounds(176, 227, 89, 23);\n\t\tframe.getContentPane().add(backButton);\n\t\tbackButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(50, 30, 298, 173);\n\t\tframe.getContentPane().add(textArea);\n\t\ttextArea.append(control.seeReport());\n\t\tframe.setVisible(true);\n\t}", "public Position() {\n\n\t}", "private void initView() {\n\n }", "public ShowView() {\n\t\tsuper(null);\n\t\tcreateActions();\n\t\taddToolBar(SWT.FLAT | SWT.WRAP);\n\t\taddMenuBar();\n\t\taddStatusLine();\n\t}", "public ViewInvoicesGUI() {\n initComponents();\n updateDatabase();\n this.setLocationRelativeTo(null);\n \n }", "public PetitionViewScreen() {\n initComponents();\n thisObj = this;\n commentScrollPane.getVerticalScrollBar().setValue(0);\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public Interogari() {\n initComponents();\n this.setLocationRelativeTo(null); //centrul ecranului\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}", "public vistaMenu() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public HomePage() {\n Container c = getContentPane();\n c.setBackground(new Color(0,153,204));\n initComponents();\n }", "@Override\n\tprotected void init() {\n\t\tsuper.init();\n\t\tisAnchorPointForPosition = true;\n\t\tsetContentSize(Screen.GAME_W, Screen.GAME_H);\n\t\tsetAnchor(Graphics.HCENTER | Graphics.VCENTER);\n\t}" ]
[ "0.7460371", "0.65921646", "0.65090936", "0.6252887", "0.62396526", "0.6153798", "0.6101689", "0.61000323", "0.6057913", "0.6033276", "0.6013033", "0.5996794", "0.598226", "0.5901573", "0.5889855", "0.5875994", "0.58751714", "0.58717704", "0.58364284", "0.58289784", "0.58133084", "0.5779217", "0.5756399", "0.57406694", "0.5738668", "0.57383144", "0.57370925", "0.5733293", "0.5722877", "0.56943184", "0.56936693", "0.56808573", "0.5671695", "0.56715375", "0.5670581", "0.5667775", "0.56666666", "0.56598175", "0.56559366", "0.56543714", "0.5648203", "0.5644168", "0.56431276", "0.5641867", "0.5640132", "0.56328136", "0.5632582", "0.5622091", "0.56195354", "0.56175274", "0.5616689", "0.5614093", "0.5612266", "0.56092095", "0.56037116", "0.5601576", "0.55984116", "0.5596555", "0.5596372", "0.5594547", "0.5593426", "0.55930847", "0.55920136", "0.5588963", "0.55734247", "0.5569438", "0.556745", "0.5562915", "0.55608636", "0.55511343", "0.5548587", "0.55384356", "0.5535978", "0.55351985", "0.55348206", "0.55323195", "0.5528594", "0.552643", "0.5525739", "0.55174017", "0.5514836", "0.5514009", "0.5513049", "0.55114335", "0.5510911", "0.55091405", "0.55025226", "0.5496281", "0.5492739", "0.5486845", "0.5480639", "0.54776657", "0.5473371", "0.5472742", "0.54718745", "0.54695165", "0.54682565", "0.5466285", "0.54581034", "0.54579365", "0.54576373" ]
0.0
-1
Adds a mined line segment to Lineland (an optional operation). NOTE: to simplify computation, assume that no two mined line segments can overlap with one another, even at their endpoints. You need not test for this (although if it's easy to do so, consider sprinkling asserts in your code).
public void addMinedLineSegment(final int start, final int end) { // fill me in! }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addLine(int index, Coordinate start, Coordinate end);", "private void addSegment(Point p0, Point p1) {\n resize(nOfSegs + 1);\n segments[nOfSegs++] = new LineSegment(p0, p1);\n }", "public LineRelation lineSegmentRelation(Coordinates linePointA, Coordinates linePointB,\n Coordinates segmExtremityA, Coordinates segmExtremityB);", "private void addLineToSegments(Pair newPair){\n\t\tfor(int i =0; i < npairs;i++){\n\t\t\tint result = slopeCompare(mypairs[i],newPair);\n\t\t\tif(result == -1) continue;\n\t\t\tif(result == 1) mypairs[i] = newPair;\n\t\t\treturn;\n\t\t}\n\t\t//Add to segment\n\t\tresize();\n\t\tmypairs[npairs] = newPair;\n\t\tnpairs++;\n\t}", "public void addLine(Line l) {\n\t\tlines.add(l);\n\t\t// vypocitaj bounding rect\n\t\tfloat x, y, w, h;\n\t\tif (l.getX1() < l.getX2()) {\n\t\t\tx = l.getX1();\n\t\t\tw = l.getX2() - l.getX1();\n\t\t} else {\n\t\t\tx = l.getX2();\n\t\t\tw = l.getX1() - l.getX2();\n\t\t}\n\t\tif (l.getY1() < l.getY2()) {\n\t\t\ty = l.getY1();\n\t\t\th = l.getY2() - l.getY1();\n\t\t} else {\n\t\t\ty = l.getY2();\n\t\t\th = l.getY1() - l.getY2();\n\t\t}\n\t\tif (boundingRect==null) {\n\t\t\tboundingRect = new Rectangle(x, y, w, h);\n\t\t} else {\n\t\t\tif (x < boundingRect.getX()) {\n\t\t\t\tboundingRect.setX(x);\n\t\t\t}\n\t\t\tif (y < boundingRect.getY()) {\n\t\t\t\tboundingRect.setY(y);\n\t\t\t}\n\t\t\tif (w > boundingRect.getW()) {\n\t\t\t\tboundingRect.setW(w);\n\t\t\t}\n\t\t\tif (h > boundingRect.getH()) {\n\t\t\t\tboundingRect.setH(h);\n\t\t\t}\n\t\t}\n\t}", "private void addLine(int textStart, int textEnd, boolean isDisjoin, LayoutContext lc, boolean glue) {\n //String s = new String(text, textStart,textEnd-textStart);\n int xx = style.getControlAlignment(true); //flsobral@tc126: use the new method to get the line's alignment.\n if (xx == 0 || xx == Control.LEFT) {\n xx = lc.nextX; //flsobral@tc126: always use nextX when left aligned.\n }\n int yy = lc.nextY;\n if (glue) {\n yy -= Edit.prefH;\n }\n if (lc.atStart()) {\n yy += style.topMargin;\n }\n TextLine l = new TextLine(textStart, textEnd);\n parent.add(l);\n l.setFont(font);\n if (style.alignment == Style.ALIGN_LEFT) {\n lc.verify(l.getPreferredWidth());\n }\n l.setRect(xx, yy, PREFERRED, PREFERRED);\n if (style.alignment == Style.ALIGN_CENTER || style.alignment == Style.ALIGN_RIGHT) {\n l.setRect(xx, KEEP, KEEP, KEEP, lc.parentContainer); //flsobral@tc126: make line relative to the layout context parent container when aligned with center or right.\n }\n if (isDisjoin) {\n lc.disjoin();\n } else {\n lc.update(l.getWidth());\n }\n lc.lastControl = l;\n }", "private Line addLine() {\n\t\t// Create a new line\n\t\tLine line = new Line(doily.settings.getPenScale(), \n\t\t\t\tdoily.settings.getPenColor(), doily.settings.isReflect());\n\t\tdoily.lines.add(line);\n\t\treturn line;\n\t}", "public LineRelation segmentSegmentRelation(Coordinates segm1PointA, Coordinates segm1PointB,\n Coordinates segm2PointA, Coordinates segm2PointB);", "public PointRelation pointLineRelation(Coordinates point, Coordinates linePointA, Coordinates linePointB);", "public void addPolyLine() {\n abstractEditor.drawNewShape(new ELineDT());\n }", "public void addLine(Vector vector1, Vector vector2) {\n if (isDiagonalLine(vector1, vector2)) {\n throw new IllegalArgumentException(\"Cannot add diagonal lines only vertical or horizontal\");\n }\n\n char character = 'x';\n\n Vector directionVector = vector2.subtract(vector1).simplify();\n\n Vector vector = vector1;\n addVectorPointInsideCanvas(vector, character);\n while (!vector.equals(vector2)) {\n vector = vector.add(directionVector);\n addVectorPointInsideCanvas(vector, character);\n }\n }", "public void makeLine() {\n \t\tList<Pellet> last_two = new LinkedList<Pellet>();\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 2));\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 1));\n \n \t\tPrimitive line = new Primitive(GL_LINES, last_two);\n \t\tMain.geometry.add(line);\n \n \t\tActionTracker.newPolygonLine(line);\n \t}", "public void paintLine(Point2D pt1, Point2D pt2, Graphics graphics) {\n Graphics2D g = (Graphics2D) graphics;\n g.setXORMode(java.awt.Color.lightGray);\n g.setColor(java.awt.Color.darkGray);\n if (pt1 != null && pt2 != null) {\n // the line connecting the segments\n OMLine cLine = new OMLine((float) pt1.getY(), (float) pt1.getX(), (float) pt2.getY(), (float) pt2.getX(), lineType);\n // get the map projection\n Projection proj = theMap.getProjection();\n // prepare the line for rendering\n cLine.generate(proj);\n // render the line graphic\n cLine.render(g);\n }\n }", "public LineSegment( CartesianCoordinate start , CartesianCoordinate end)\n\t{\n\t\tthis.startPoint = start;\n\t\tthis.endPoint = end;\n\t}", "public LineRelation lineLineRelation(Coordinates line1PointA, Coordinates line1PointB,\n Coordinates line2PointA, Coordinates line2PointB);", "private void addLine()\n\t{\n\t\tlines.add(printerFormatter.markEOL());\n\t}", "public void addLine(String line) {\n if (methodMode) {\n methodCode.add(new AsmLine(line));\n } else {\n program.add(new AsmLine(line));\n }\n }", "public void addLine(String startNode, String endNode) {\n int startIndex =Integer.parseInt(startNode);\n int endIndex = Integer.parseInt(endNode);\n\n if (startIndex >= 0 && endIndex >= 0) {\n// visited[startIndex]=-1;\n// visited[endIndex]=-1;\n adjacencyMatrix[startIndex][endIndex] = 1;\n }\n }", "public synchronized void addLine(Line line)\r\n\t{\r\n\t\tlines.add(line);\r\n\t}", "public void addLine(LabelLine labelLine) {\n\n\t\tfloat fLineHeight = labelLine.getHeight();\n\t\tfloat fLineWidth = labelLine.getWidth();\n\n\t\tif ((fLineWidth + 2.0f * CONTAINER_BOUNDARY_SPACING) > fWidth) {\n\t\t\tfWidth = fLineWidth + 2.0f * CONTAINER_BOUNDARY_SPACING;\n\t\t}\n\n\t\tfloat fXLinePosition = fXContainerLeft + CONTAINER_BOUNDARY_SPACING;\n\t\tfloat fYLinePosition;\n\n\t\tif (alLabelLines.size() == 0) {\n\t\t\tfHeight += 2.0f * CONTAINER_BOUNDARY_SPACING + fLineHeight;\n\t\t\tfYLinePosition = fYContainerCenter + (fHeight / 2.0f)\n\t\t\t\t\t- CONTAINER_BOUNDARY_SPACING - fLineHeight;\n\t\t} else {\n\t\t\tfHeight += CONTAINER_LINE_SPACING + fLineHeight;\n\t\t\tupdateLinePositions();\n\t\t\tLabelLine lastLine = alLabelLines.get(alLabelLines.size() - 1);\n\t\t\tfYLinePosition = lastLine.getPosition().y() - CONTAINER_LINE_SPACING\n\t\t\t\t\t- fLineHeight;\n\t\t}\n\n\t\tlabelLine.setPosition(fXLinePosition, fYLinePosition);\n\t\talLabelLines.add(labelLine);\n\t}", "private static boolean isPointOnLine(LineSegment a, Point2D b) {\r\n\t // Move the image, so that a.first is on (0|0)\r\n\t LineSegment aTmp = new LineSegment(new PointDouble(0, 0), new PointDouble(\r\n\t a.endPoint.getX() - a.startPoint.getX(), a.endPoint.getY() - a.startPoint.getY()));\r\n\t PointDouble bTmp = new PointDouble(b.getX() - a.startPoint.getX(), b.getY() - a.startPoint.getY());\r\n\t double r = crossProduct(aTmp.endPoint, bTmp);\r\n\t return Math.abs(r) < 0.000001;\r\n\t}", "protected abstract void lineTo(final float x, final float y);", "public LineSeg ( Vector A, Vector B ) {\n\t\tthis.A = A.clone();\n\t\tthis.D = B.subt(A);\n\t}", "public abstract void lineTo(double x, double y);", "public void renderLine (Graphics g)\r\n {\r\n if (glyph.getContourBox()\r\n .intersects(g.getClipBounds())) {\r\n getLine(); // To make sure the line has been computed\r\n\r\n Point start = glyph.getLag()\r\n .switchRef(\r\n new Point(\r\n getStart(),\r\n (int) Math.rint(line.yAt((double) getStart()))),\r\n null);\r\n Point stop = glyph.getLag()\r\n .switchRef(\r\n new Point(\r\n getStop() + 1,\r\n (int) Math.rint(line.yAt((double) getStop() + 1))),\r\n null);\r\n g.drawLine(start.x, start.y, stop.x, stop.y);\r\n }\r\n }", "public boolean isPointInLine(Coordinates point, Coordinates linePointA, Coordinates linePointB);", "private static void addLine(String[] input) throws NumberFormatException, IncorrectParametersException{\n if (input.length == 5){\n try{\n int x1 = Integer.parseInt(input[1]); \n int y1 = Integer.parseInt(input[2]);\n int x2 = Integer.parseInt(input[3]); \n int y2 = Integer.parseInt(input[4]);\n try{\n canvas.createLine(x1, y1, x2, y2);\n System.out.println(canvas.render());\n } catch (NullPointerException ex) {\n System.out.println(\"Initialise a new canvas first!\");\n }\n } catch (NumberFormatException ex) {\n System.out.println(\"HELP: to create a new line enter `L x1 y1 x2 y2`\");\n }\n } else {\n System.out.println(\"HELP: to create a new line enter `L x1 y1 x2 y2`\");\n throw new IncorrectParametersException(\"\");\n }\n }", "private static void testAndAddLine(int x1, int y1, int x2, int y2,\n GridGraph gridGraph, GridLineSet gridLineSet) {\n \n if (gridGraph.lineOfSight(x1, y1, x2, y2)) {\n gridLineSet.addLine(x1, y1, x2, y2, Color.GREEN);\n } else {\n gridLineSet.addLine(x1, y1, x2, y2, Color.RED);\n }\n }", "public boolean line(float x0, float y0, float x1, float y1)\r\n/* 355: */ {\r\n/* 356:412 */ float dx = Math.abs(x1 - x0);\r\n/* 357:413 */ float dy = Math.abs(y1 - y0);\r\n/* 358: */ int sx;\r\n/* 359: */ int sx;\r\n/* 360:416 */ if (x0 < x1) {\r\n/* 361:418 */ sx = 1;\r\n/* 362: */ } else {\r\n/* 363:421 */ sx = -1;\r\n/* 364: */ }\r\n/* 365: */ int sy;\r\n/* 366: */ int sy;\r\n/* 367:423 */ if (y0 < y1) {\r\n/* 368:425 */ sy = 1;\r\n/* 369: */ } else {\r\n/* 370:429 */ sy = -1;\r\n/* 371: */ }\r\n/* 372:431 */ float err = dx - dy;\r\n/* 373:432 */ boolean line = true;\r\n/* 374:433 */ while (line)\r\n/* 375: */ {\r\n/* 376:435 */ float e2 = 2.0F * err;\r\n/* 377:437 */ if (e2 > -dy)\r\n/* 378: */ {\r\n/* 379:439 */ err -= dy;\r\n/* 380:440 */ x0 += sx;\r\n/* 381: */ }\r\n/* 382:442 */ if (e2 < dx)\r\n/* 383: */ {\r\n/* 384:444 */ err += dx;\r\n/* 385:445 */ y0 += sy;\r\n/* 386: */ }\r\n/* 387:448 */ line = tileWalkable(x0, y0);\r\n/* 388:451 */ if ((x0 == x1) && (y0 == y1)) {\r\n/* 389: */ break;\r\n/* 390: */ }\r\n/* 391:457 */ if (getAgentOnTile(x0, y0) != null) {\r\n/* 392:459 */ line = false;\r\n/* 393: */ }\r\n/* 394: */ }\r\n/* 395:465 */ return line;\r\n/* 396: */ }", "public void addPoint(Point p) {\r\n line.add(p);\r\n }", "public boolean intersects(GLineSegment lineSegment) {\n if(this.equals(lineSegment)) return(true);\n else if(this.slope()==lineSegment.slope()) return(false);\n else {\n //complicated stuff here.\n return(false);\n }\n }", "public Point intersectionWith(Line other) {\r\n double m1 = this.lineSlope();\r\n double m2 = other.lineSlope();\r\n double b1 = this.intercept();\r\n double b2 = other.intercept();\r\n double interX, interY;\r\n if (m1 == m2) {\r\n return null;\r\n // this line is vertical\r\n } else if (m1 == Double.POSITIVE_INFINITY || m1 == Double.NEGATIVE_INFINITY) {\r\n interX = this.start.getX();\r\n if ((Math.min(other.start().getX(), other.end().getX()) <= interX\r\n && interX <= Math.max(other.end().getX(), other.start().getX()))) {\r\n // y value of intersection point\r\n interY = interX * m2 + b2;\r\n if (Math.min(this.start().getY(), this.end().getY()) <= interY\r\n && interY <= Math.max(this.start().getY(), this.end().getY())) {\r\n Point interPoint = new Point(Math.round(interX), Math.round(interY));\r\n return interPoint;\r\n }\r\n }\r\n return null;\r\n // other line is vertical\r\n } else if (m2 == Double.POSITIVE_INFINITY || m2 == Double.NEGATIVE_INFINITY) {\r\n interX = other.start.getX();\r\n if ((Math.min(this.start().getX(), this.end().getX()) <= interX\r\n && interX <= Math.max(this.end().getX(), this.start().getX()))) {\r\n // y value of intersection point\r\n interY = interX * m1 + b1;\r\n if (Math.min(other.start().getY(), other.end().getY()) <= interY\r\n && interY <= Math.max(other.start().getY(), other.end().getY())) {\r\n Point interPoint = new Point(Math.round(interX), Math.round(interY));\r\n return interPoint;\r\n }\r\n }\r\n return null;\r\n // this line is horizontal\r\n } else if (m1 == 0) {\r\n // y value of potential intersection point\r\n interY = this.start.getY();\r\n if ((Math.min(other.start().getY(), other.end().getY()) <= interY\r\n && interY <= Math.max(other.end().getY(), other.start().getY()))) {\r\n interX = ((interY - other.start.getY()) / other.lineSlope()) + other.start.getX();\r\n Point interPoint = new Point(Math.round(interX), Math.round(interY));\r\n if (Math.min(this.start().getX(), this.end().getX()) <= interX\r\n && interX <= Math.max(this.start().getX(), this.end().getX())) {\r\n return interPoint;\r\n }\r\n }\r\n return null;\r\n // other line is horizontal\r\n } else if (m2 == 0) {\r\n // y value of potential intersection point\r\n interY = this.start.getY();\r\n if ((Math.min(this.start().getY(), this.end().getY()) <= interY\r\n && interY <= Math.max(this.end().getY(), this.start().getY()))) {\r\n interX = ((interY - this.start.getY()) / this.lineSlope()) + this.start.getX();\r\n Point interPoint = new Point(Math.round(interX), Math.round(interY));\r\n if (Math.min(other.start().getX(), other.end().getX()) <= interX\r\n && interX <= Math.max(other.start().getX(), other.end().getX())) {\r\n return interPoint;\r\n }\r\n }\r\n return null;\r\n // lines are not horizontal or vertical\r\n } else {\r\n interX = (b1 - b2) / (m2 - m1);\r\n interY = (m1 * (interX - this.start.getX())) + this.start.getY();\r\n Point interPoint = new Point(Math.round(interX), Math.round(interY));\r\n if (Math.min(other.start().getX(), other.end().getX()) <= interX\r\n && interX <= Math.max(other.start().getX(), other.end().getX())\r\n || (Math.min(this.start().getX(), this.end().getX()) <= interX\r\n && interX <= Math.max(this.start().getX(), this.end().getX()))) {\r\n return interPoint;\r\n }\r\n }\r\n return null;\r\n }", "boolean addSegment(S segment);", "public void modifyIntrogressionLine(IntrogressionLine il)\n\t{\n\t\tList<SegmentExt> segments = il.getSegments();\n//\t not checking right now, just update segment info directly\n\t\tif (segments != null && !segments.isEmpty())\n\t\t{\n\t\t\tSegmentManagerImpl sManagerImpl = new SegmentManagerImpl();\n\t\t\tIntrogressionLine temp = this.getIntrogressionLineByName(il\n\t\t\t .getGermplasmname());\n\t\t\tGermplasmSegmentManagerImpl gsManagerImpl = new GermplasmSegmentManagerImpl();\n\t\t\tif (il.getId() == null)\n\t\t\t\til.setId(temp.getId());\n\t\t\tList<SegmentExt> lstSegmentExt = new ArrayList<SegmentExt>(); // used to store the segment info for batching update segment and germplasm_segment table info\n\t\t\t\n\t\t\tfor (SegmentExt segmentExt : segments)\n\t\t\t{\n\t\t\t\tSegment segment = sManagerImpl\n\t\t\t\t .getSegmentBySegmentExtWithoutConsiderId(segmentExt);\n\t\t\t\tif (segment != null)\n\t\t\t\t{\n\t\t\t\t\tsegmentExt.setSegmentExtFromSegment(segment);\n\t\t\t\t\tlstSegmentExt.add(segmentExt);\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tsManagerImpl.addSegmentNoRepeat(segmentExt);\n\t\t\t\t\tsegment = sManagerImpl\n\t\t\t\t\t .getSegmentBySegmentExtWithoutConsiderId(segmentExt);\n\t\t\t\t\tsegmentExt.setSegmentExtFromSegment(segment);\n\t\t\t\t\tlstSegmentExt.add(segmentExt);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (lstSegmentExt.size() != 0)\n\t\t\t{\n\t\t\t\tgsManagerImpl.deleteGermplasmSegmentByGermplasmId(il.getId());\n\t\t\t\t\n\t\t\t\tfor (SegmentExt segmentExt : lstSegmentExt)\n\t\t\t\t{\n\t\t\t\t\tGermplasmSegment gs = new GermplasmSegment();\n\t\t\t\t\tgs.setGermplasmId(il.getId());\n\t\t\t\t\tgs.setSegmentId(segmentExt.getSegmentId());\n\t\t\t\t\tgs.setGermplasmSegmentNumber(segments.size());\n\t\t\t\t\tgs.setIshomogenous(segmentExt.getIsHomogenous().toString());\n\t\t\t\t\t\n\t\t\t\t\tgsManagerImpl.addGermplasmSegment(gs);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Deprecated\r\n public LineIntersect intersectionOLD(Line2D line, Vector2f pIntersectPoint) {\r\n float Ay_minus_Cy = pointA.y - line.getPointA().y;\r\n float Dx_minus_Cx = line.getPointB().x - line.getPointA().x;\r\n float Ax_minus_Cx = pointA.x - line.getPointA().x;\r\n float Dy_minus_Cy = line.getPointB().y - line.getPointA().y;\r\n float Bx_minus_Ax = pointB.x - pointA.x;\r\n float By_minus_Ay = pointB.y - pointA.y;\r\n\r\n java.awt.geom.Line2D l1 = new java.awt.geom.Line2D.Float(this.pointA.x, this.pointA.y, this.pointB.x, this.pointB.y);\r\n if (l1.intersectsLine(line.getPointA().x, line.getPointA().y, line.getPointB().x, line.getPointB().y)) //return LINE_CLASSIFICATION.LINES_INTERSECT;\r\n {\r\n System.out.println(\"They intersect\");\r\n } else //return LINE_CLASSIFICATION.COLLINEAR;\r\n {\r\n System.out.println(\"They DO NOT intersect\");\r\n }\r\n\r\n float Numerator = (Ay_minus_Cy * Dx_minus_Cx) - (Ax_minus_Cx * Dy_minus_Cy);\r\n float Denominator = (Bx_minus_Ax * Dy_minus_Cy) - (By_minus_Ay * Dx_minus_Cx);\r\n\r\n // if lines do not intersect, return now\r\n if (Denominator != 0.0f) {\r\n if (Numerator != 0.0f) {\r\n System.out.println(\"App says They DO NOT intersect\");\r\n return LineIntersect.CoLinear;\r\n }\r\n System.out.println(\"App says They DO NOT intersect\");\r\n return LineIntersect.Parallel;\r\n }\r\n\r\n float FactorAB = Numerator / Denominator;\r\n float FactorCD = ((Ay_minus_Cy * Bx_minus_Ax) - (Ax_minus_Cx * By_minus_Ay)) / Denominator;\r\n\r\n // posting (hitting a vertex exactly) is not allowed, shift the results\r\n // if they are within a minute range of the end vertices\r\n// if (fabs(FactorCD) < 1.0e-6f) {\r\n// FactorCD = 1.0e-6f;\r\n// }\r\n// if (fabs(FactorCD - 1.0f) < 1.0e-6f) {\r\n// FactorCD = 1.0f - 1.0e-6f;\r\n// }\r\n\r\n // if an intersection point was provided, fill it in now\r\n if (pIntersectPoint != null) {\r\n pIntersectPoint.x = (pointA.x + (FactorAB * Bx_minus_Ax));\r\n pIntersectPoint.y = (pointA.y + (FactorAB * By_minus_Ay));\r\n }\r\n\r\n System.out.println(\"App says They DO intersect\");\r\n // now determine the type of intersection\r\n if ((FactorAB >= 0.0f) && (FactorAB <= 1.0f) && (FactorCD >= 0.0f) && (FactorCD <= 1.0f)) {\r\n return LineIntersect.SegmentsIntersect;\r\n } else if ((FactorCD >= 0.0f) && (FactorCD <= 1.0f)) {\r\n return (LineIntersect.ABisectsB);\r\n } else if ((FactorAB >= 0.0f) && (FactorAB <= 1.0f)) {\r\n return (LineIntersect.BBisectsA);\r\n }\r\n\r\n return LineIntersect.LinesIntersect;\r\n }", "private static void lineTo(float x, float y) {\n setPenDown();\n mPivotX = mPenX = x;\n mPivotY = mPenY = y;\n mPath.lineTo(x * mScale, y * mScale);\n elements.add(\n new PathElement(ElementType.kCGPathElementAddLineToPoint, new Point[] {new Point(x, y)}));\n }", "public static void writeLine(Model model, int x1, int y1, int x2, int y2, char colour) {\n int xLength = model.getWidth();\n int yLength = model.getHeight();\n\n if (x1 > xLength || x2 > xLength || y1 > yLength || y2 > yLength) {\n System.out.println(String.format(\"Couldn't create line inside current simpleCanvas width: %d, height: %d\", xLength, yLength));\n return;\n }\n\n // Simple optimization if the line are orthogonal x or y.\n if (x1 == x2 || y1 == y2) {\n for (int i = Math.min(x1, x2); i <= Math.max(x1, x2); i++)\n for (int j = Math.min(y1, y2); j <= Math.max(y1, y2); j++)\n model.set(i, j, colour);\n } else {\n // try to draw line from left to write\n // To do this we should find min x coordinate\n int startx, starty, endx, endy;\n if (x1 < x2) {\n startx = x1;\n starty = y1;\n endx = x2;\n endy = y2;\n } else {\n startx = x2;\n starty = y2;\n endx = x1;\n endy = y1;\n }\n\n model.set(startx, starty, colour);\n model.set(endx, endy, colour);\n\n if (y1 < y2) {\n // Find line equation of the line\n // (y - y1)/(y2-y1) = (x - x1)/(x2 - x1)\n // y - y1 = (x - x1)(y2-y1)/(x2 - x1)\n // y = y1 + (x - x1)(y2-y1)/(x2 - x1)\n int newX = startx;\n int newY = starty;\n while (newX < endx && newY <= endy) {\n //TODO optimize coefficient\n double newYcompare = findY(newX + 1, startx, starty, endx, endy);\n\n if (newYcompare == newY + 1) {\n newY++;\n newX++;\n model.set(newX, newY, colour);\n model.set(newX, newY - 1, colour);\n } else if (newYcompare < newY + 1) {\n newX++;\n model.set(newX, newY, colour);\n } else {\n newY++;\n model.set(newX, newY, colour);\n }\n }\n } else {\n // Find line equation of the line\n // (x - x1)/(x2 - x1) = (y - y1)/(y2-y1)\n // (x - x1) = (y - y1)(x2 - x1)/(y2-y1)\n // x = x1 + (y - y1)(x2 - x1)/(y2-y1)\n int newX = startx;\n int newY = starty;\n while (newX <= endx && newY > endy) {\n //TODO optimize coefficient\n double newXcompare = findX(newY - 1, startx, starty, endx, endy);\n\n if (newXcompare == newX + 1) {\n newY--;\n newX++;\n model.set(newX, newY, colour);\n // array[newX - 2][newY - 1] = colour;\n model.set(newX, newY + 1, colour);\n } else if (newXcompare < newX + 1) {\n newY--;\n model.set(newX, newY, colour);\n } else {\n newX++;\n model.set(newX, newY, colour);\n }\n }\n }\n }\n }", "public Line(Point startingPoint, Point endingPoint) {\n this.startingPoint = startingPoint;\n this.endingPoint = endingPoint;\n }", "public void addSegment()\n { \n Location tail = new Location();\n \n if(up)\n {\n tail.setA(list.get(0).getA());\n tail.setB(list.get(0).getB()+15);\n }\n else if(down)\n {\n tail.setA(list.get(0).getA());\n tail.setB(list.get(0).getB()-15);\n }\n else if(left)\n {\n tail.setA(list.get(0).getA()+15);\n tail.setB(list.get(0).getB());\n }\n else if(right)\n {\n tail.setA(list.get(0).getA()-15);\n tail.setB(list.get(0).getB());\n } \n \n ArrayList<Location> temp = new ArrayList<Location>();\n \n \n temp.add(tail);\n \n for(int i=0 ; i<list.size() ; i++)\n {\n temp.add(list.get(i));\n }\n list = temp; \n }", "static int clipSegmentToLine(ClipVertex vOut[], ClipVertex vIn[],\n Vec2 normal, float offset) {\n int numOut = 0;\n\n // Calculate the distance of end points to the line\n float distance0 = Vec2.dot(normal, vIn[0].v) - offset;\n float distance1 = Vec2.dot(normal, vIn[1].v) - offset;\n\n // If the points are behind the plane\n if (distance0 <= 0.0f) {\n vOut[numOut] = new ClipVertex();\n vOut[numOut].id = new ContactID(vIn[0].id);\n vOut[numOut++].v = vIn[0].v.clone();\n }\n if (distance1 <= 0.0f) {\n vOut[numOut] = new ClipVertex();\n vOut[numOut].id = new ContactID(vIn[1].id);\n vOut[numOut++].v = vIn[1].v.clone();\n }\n\n // If the points are on different sides of the plane\n if (distance0 * distance1 < 0.0f) {\n // Find intersection point of edge and plane\n float interp = distance0 / (distance0 - distance1);\n vOut[numOut] = new ClipVertex();\n vOut[numOut].v.x = vIn[0].v.x + interp * (vIn[1].v.x - vIn[0].v.x);\n vOut[numOut].v.y = vIn[0].v.y + interp * (vIn[1].v.y - vIn[0].v.y);\n\n if (distance0 > 0.0f) {\n vOut[numOut].id = new ContactID(vIn[0].id);\n }\n else {\n vOut[numOut].id = new ContactID(vIn[1].id);\n }\n ++numOut;\n }\n\n return numOut;\n }", "private void drawLineSeg(int entryNum, GPoint from, GPoint to) {\n\t\tGLine line = new GLine(from.getX(), from.getY(),\n\t\t\t\t\t\t\t to.getX(), to.getY());\n\t\tline.setColor(getColor(entryNum));\n\t\tadd(line);\n\t}", "public void lineDraw(GraphNodeAL<MapPoint> l1, GraphNodeAL<MapPoint> l2) {\n Line l = new Line((int) l1.data.xCo, (int) l1.data.yCo, (int) l2.data.xCo, (int) l2.data.yCo);\n l.setTranslateX(mapImage.getLayoutX());\n l.setTranslateY(mapImage.getLayoutY());\n ((Pane) mapImage.getParent()).getChildren().add(l);\n }", "public SplitLine(\n Relationship inConnector, Segment inSegment, double x, double y, Controller inController) {\n relationship = (Relationship) inConnector;\n controller = inController;\n splitSegment = inSegment;\n pivot = new Pivot(relationship, x, y);\n if (relationship instanceof Dependency) {\n newSegment = new Segment(splitSegment.getStart(), pivot, true);\n } else {\n newSegment = new Segment(splitSegment.getStart(), pivot);\n }\n doInitialAction();\n }", "public void addLine(String line){\n if (line != null && line.trim().length() > 0){\n fileLines.add(line);\n parsed = false;\n }\n }", "public void addLine(String sCode) {\n\t\tif (sCode != null) {\n\t\t\tvecLines.add(sCode);\n\t\t}\n\t}", "public void addEdge(Integer x1, Integer y1, Integer x2, Integer y2, boolean added){\n\t\tif(!added){\n\t\t\toutput += \"<line x1=\\\"\" + x1*scale + \"\\\" y1=\\\"\" + y1*scale + \"\\\" x2=\\\"\" \n\t\t\t\t\t\t+ x2*scale + \"\\\" y2=\\\"\" + y2*scale + \"\\\" style=\\\"stroke:black; stroke-width:1;\\\"/>\\n\";\n\t\t}else{\n\t\t\toutput += \"<line x1=\\\"\" + x1*scale + \"\\\" y1=\\\"\" + y1*scale + \"\\\" x2=\\\"\" \n\t\t\t\t\t\t+ x2*scale + \"\\\" y2=\\\"\" + y2*scale + \"\\\" style=\\\"stroke:#d7d7d7; stroke-width:1;\\\"/>\\n\";\n\t\t}\n\t}", "public void computeLine ()\r\n {\r\n line = new BasicLine();\r\n\r\n for (GlyphSection section : glyph.getMembers()) {\r\n StickSection ss = (StickSection) section;\r\n line.includeLine(ss.getLine());\r\n }\r\n\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\r\n line + \" pointNb=\" + line.getNumberOfPoints() +\r\n \" meanDistance=\" + (float) line.getMeanDistance());\r\n }\r\n }", "public boolean isIntersectLineInMiddle(Line line) {\n\t\tdouble a = subFloat(firstPoint.y, secondPoint.y); // a = firstPoint.y - secondPoint.y\n\t\tdouble b = subFloat(secondPoint.x, firstPoint.x); // b = secondPoint.x - firstPoint.x\n\t\tdouble c = subFloat(multiFloat(-a, firstPoint.x), multiFloat(b, firstPoint.y));\n\t\t// c = -a * firstPoint.x - b * firstPoint.y\n\n\t\tdouble aLine = subFloat(line.firstPoint.y, line.secondPoint.y); // aLine = line.firstPoint.y -\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// line.secondPoint.y\n\t\tdouble bLine = subFloat(line.secondPoint.x, line.firstPoint.x); // bLine = line.secondPoint.x -\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// line.firstPoint.x\n\t\tdouble cLine = subFloat(multiFloat(-aLine, line.firstPoint.x), multiFloat(bLine, line.firstPoint.y));\n\t\t// cLine = -aLine * line.firstPoint.x - bLine * line.firstPoint.y\n\n\t\t// 4 points on same line\n\t\t// (a * line.firstPoint.x + b * line.firstPoint.y + c == 0) &&\n\t\t// (a * line.secondPoint.x + b * line.secondPoint.y + c == 0)\n\t\tif ((addFloat(multiFloat(a, line.firstPoint.x), multiFloat(b, line.firstPoint.y), c) == 0)\n\t\t\t\t&& (addFloat(multiFloat(a, line.secondPoint.x), multiFloat(b, line.secondPoint.y), c) == 0)) {\n\t\t\tif ((firstPoint.distanceFrom(line.firstPoint) >= getLength()\n\t\t\t\t\t&& firstPoint.distanceFrom(line.secondPoint) >= this.getLength())\n\t\t\t\t\t|| (secondPoint.distanceFrom(line.firstPoint) >= this.getLength()\n\t\t\t\t\t\t\t&& secondPoint.distanceFrom(line.secondPoint) >= this.getLength()))\n\t\t\t\treturn false;\n\t\t\treturn true;\n\t\t}\n\n\t\t// ((a * line.firstPoint.x + b * line.firstPoint.y + c) * (a *\n\t\t// line.secondPoint.x + b * line.secondPoint.y + c) < 0) &&\n\t\t// ((aLine * firstPoint.x + bLine * firstPoint.y + cLine) * (aLine *\n\t\t// secondPoint.x + bLine * secondPoint.y + cLine) < 0)\n\t\tif ((multiFloat(addFloat(multiFloat(a, line.firstPoint.x), multiFloat(b, line.firstPoint.y), c),\n\t\t\t\taddFloat(multiFloat(a, line.secondPoint.x), multiFloat(b, line.secondPoint.y), c)) < 0)\n\t\t\t\t&& (multiFloat(addFloat(multiFloat(aLine, firstPoint.x), multiFloat(bLine, firstPoint.y), cLine),\n\t\t\t\t\t\taddFloat(multiFloat(aLine, secondPoint.x), multiFloat(bLine, secondPoint.y), cLine)) < 0))\n\t\t\treturn true;\n\n\t\treturn false;\n\t}", "public void addCompositeLine(CompositeLine col) {\n\t\tcl.add(col);\n\t}", "public void processAddLine() {\n AppTextColorEnterDialogSingleton dialog = AppTextColorEnterDialogSingleton.getSingleton();\n\n // POP UP THE DIALOG\n dialog.show(\"Add Metro Line\", \"Enter Name and Color of the Metro Line:\", Color.web(\"#cccc33\"));\n\n // IF THE USER SAID YES\n if (dialog.getSelection()) {\n // CHANGE THE CURSOR\n Scene scene = app.getGUI().getPrimaryScene();\n scene.setCursor(Cursor.CROSSHAIR);\n \n // CHANGE THE STATE\n dataManager.setState(mmmState.ADD_LINE_MODE);\n }\n }", "public OMAbstractLine() {\n super();\n }", "org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine addNewExternalOrderLine();", "private void checkAndAddMidPoints(DoubleBinding startY, DoubleBinding endY){\n if(target.rowLocationProperty.get() - source.rowLocationProperty.get() > 1\n || target.rowLocationProperty.get() - source.rowLocationProperty.get() < 0){\n if(!addedMidPoints){\n path.addPoint(midLineX.add(0), startY.subtract(TreeLayout.V_SPACING/3.), 1);\n path.addPoint(midLineX.add(0), endY.add(TreeLayout.V_SPACING/2.), 2);\n this.addedMidPoints = true;\n }\n }else{\n if(addedMidPoints){\n path.removePoint(2);\n path.removePoint(1);\n this.addedMidPoints = false;\n }\n }\n }", "public void Mirror(Line l)\n\t{\n\t\tif (l == null) return;\n\t\tif (l.point1 == null || l.point2 == null)\n {\n return;\n }\n\t\tint rise = l.point1.y - l.point2.y;\n\t\tint run = l.point1.x - l.point2.x;\n\t\t\n\t\tif (run != 0)\n\t\t{\n\t\t\tint slope = rise/run;\n\n\t\t\tint b = l.point1.y - (slope*l.point1.x);\n\n\t\t\tint d = (l.point1.x + (l.point1.y - b)*slope) / ( 1 + slope*slope);\n\n\t\t\tthis.x = 2*d - this.x;\n\t\t\tthis.y = (2*d*slope - this.y + 2*b);\n\t\t}\n\t\t//handle undefined slope; \n\t\telse\n\t\t{\n\t\t\tthis.x = -(this.x - l.point1.x); \n\t\t}\n\t\t\n\n\t}", "default boolean isHorizontalLineSegment() {\n return false;\n }", "Line createLine();", "boolean lineLine(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) {\n\n\t // calculate the direction of the lines\n\t float uA = ((x4-x3)*(y1-y3) - (y4-y3)*(x1-x3)) / ((y4-y3)*(x2-x1) - (x4-x3)*(y2-y1));\n\t float uB = ((x2-x1)*(y1-y3) - (y2-y1)*(x1-x3)) / ((y4-y3)*(x2-x1) - (x4-x3)*(y2-y1));\n\n\t // if uA and uB are between 0-1, lines are colliding\n\t if (uA >= 0 && uA <= 1 && uB >= 0 && uB <= 1) {\n\n\t // optionally, draw a circle where the lines meet\n\t float intersectionX = x1 + (uA * (x2-x1));\n\t float intersectionY = y1 + (uA * (y2-y1));\n\t fill(255,0,0);\n\t noStroke();\n\t ellipse(intersectionX, intersectionY, 20, 20);\n\n\t return true;\n\t }\n\t return false;\n\t}", "public void line(Interval x, Interval y) {\n\t\tmoveTo(x.getHigh(), y.getLow());\n\t\tlineTo(x.getHigh(), y.getHigh());\n\t}", "void markLine() {\n lineMark = cursor;\n }", "public LineIntersect intersect(Line2D other, Vector2f intersectionPoint) {\r\n float denom = (other.pointB.y - other.pointA.y) * (this.pointB.x - this.pointA.x)\r\n - (other.pointB.x - other.pointA.x) * (this.pointB.y - this.pointA.y);\r\n float u0 = (other.pointB.x - other.pointA.x) * (this.pointA.y - other.pointA.y)\r\n - (other.pointB.y - other.pointA.y) * (this.pointA.x - other.pointA.x);\r\n float u1 = (other.pointA.x - this.pointA.x) * (this.pointB.y - this.pointA.y)\r\n - (other.pointA.y - this.pointA.y) * (this.pointB.x - this.pointA.x);\r\n\r\n //if parallel\r\n if (denom == 0.0f) {\r\n //if collinear\r\n if (u0 == 0.0f && u1 == 0.0f) {\r\n return LineIntersect.CoLinear;\r\n } else {\r\n return LineIntersect.Parallel;\r\n }\r\n } else {\r\n //check if they intersect\r\n u0 = u0 / denom;\r\n u1 = u1 / denom;\r\n\r\n float x = this.pointA.x + u0 * (this.pointB.x - this.pointA.x);\r\n float y = this.pointA.y + u0 * (this.pointB.y - this.pointA.y);\r\n\r\n if (intersectionPoint != null) {\r\n intersectionPoint.x = x; //(m_PointA.x + (FactorAB * Bx_minus_Ax));\r\n intersectionPoint.y = y; //(m_PointA.y + (FactorAB * By_minus_Ay));\r\n }\r\n\r\n // now determine the type of intersection\r\n if ((u0 >= 0.0f) && (u0 <= 1.0f) && (u1 >= 0.0f) && (u1 <= 1.0f)) {\r\n return LineIntersect.SegmentsIntersect;\r\n } else if ((u1 >= 0.0f) && (u1 <= 1.0f)) {\r\n return (LineIntersect.ABisectsB);\r\n } else if ((u0 >= 0.0f) && (u0 <= 1.0f)) {\r\n return (LineIntersect.BBisectsA);\r\n }\r\n\r\n return LineIntersect.LinesIntersect;\r\n }\r\n }", "protected void addPolyline( SimpleFeature feature, PointMergeOperations mergeOps )\n \t{\n \t\tPoint point1 = mergePoint( feature, 0 );\n \t\tPoint point2 = mergePoint( feature, -1 );\n \t\tString id1 = point1.getId().toString();\n \t\tString id2 = point2.getId().toString();\n \t\tString fid = feature.getID();\n \t\n \t\tNode node1 = graph.getNode( id1 );\n \t\tNode node2 = graph.getNode( id2 );\n \t\tEdge edge = null;\n \t\t\n \t\tif( mergeDuplicateEdge && node1 != null && node2 != null )\n \t\t{\n \t\t\tedge = node1.getEdgeToward( node2.getId() );\n \t\t\t\n \t\t\tif( edge == null )\n \t\t\t\tedge = node1.getEdgeFrom( node2.getId() );\n \t\t}\n \n \t\tif( node1 == null )\n \t\t{\n \t\t\tnode1 = graph.addNode( id1 );\n \t\t\taddNodeAttributes( node1, fid, point1 );\n \t\t}\n \n \t\tif( node2 == null )\n \t\t{\n \t\t\tnode2 = graph.addNode( id2 );\n \t\t\taddNodeAttributes( node2, fid, point2 );\n \t\t}\n \t\n \t\tif( edge == null )\n \t\t{\n \t\t\tAttributeSet attr = new AttributeSet( feature );\n \t\t\tEdgeDirecter.Direction dir = edgeDirecter.edgeDirection( point1, point2, attr );\n \t\t\tboolean isDir = true;\n \n \t\t\tif( dir == EdgeDirecter.Direction.TO_FROM )\n \t\t\t{\n \t\t\t\tString id = id2;\n \t\t\t\tid2 = id1;\n \t\t\t\tid1 = id;\n \t\t\t}\n \t\t\telse if( dir == EdgeDirecter.Direction.UNDIRECTED )\n \t\t\t{\n \t\t\t\tisDir = false;\n \t\t\t}\n \t\t\t\n \t\t\tedge = graph.addEdge( fid, id1, id2, isDir );\n \t\t\t\n \t\t\tif( addEdgeLengths ) {\n \t\t\t\tedge.addAttribute( \"length\",\n \t\t\t\t\t\t((Geometry)feature.getDefaultGeometry()).getLength() );\n \t\t\t}\n \t\t\t\n \t\t\tif( addEdgeShapeAttribute ) {\n \t\t\t\taddEdgeShape(edge, ((Geometry)feature.getDefaultGeometry()).getCoordinates());\n \t\t\t}\n \t\t\n \t\t\tmergeAttributes( edge, attr, edgeAttributeFilter, feature );\n \t\t}\n \t}", "public void addAssemblyLine(AssemblyLine line) {\n\t\tlines.add(line);\n\t}", "public void drawLine(int x1, int y1, int x2, int y2);", "default boolean isDiagonalLineSegment() {\n return false;\n }", "private static boolean isPointRightOfLine(LineSegment a, Point2D b) {\r\n\t // Move the image, so that a.first is on (0|0)\r\n\t LineSegment aTmp = new LineSegment(new PointDouble(0, 0), new PointDouble(\r\n\t a.endPoint.getX() - a.startPoint.getX(), a.endPoint.getY() - a.startPoint.getY()));\r\n\t PointDouble bTmp = new PointDouble(b.getX() - a.startPoint.getX(), b.getY() - a.startPoint.getY());\r\n\t return crossProduct(aTmp.endPoint, bTmp) < 0;\r\n\t}", "public void drawLine(Point2D startPoint, Point2D endPoint, double lineStroke, int EndType);", "public void rasterizeLine (int x0, int y0, int x1, int y1)\n {\n \tfloat dX = (x1 - x0);\n \tfloat dY = (y1 - y0);\n \tfloat m = (dY / dX);\t//slope\n \tint x = x0;\n \tfloat y = y0;\n \t\n \twhile(x < x1)\n \t{\n \t\traster.setPixel(x, Math.round(y), new int[]{255, 50, 100});\n \t\tx += 1;\n \t\ty += m;\n \t}\n }", "public void lineTo(double x, double y)\n {\n\tPoint2D pos = transformedPoint(x,y);\n\tdouble tx = pos.getX();\n\tdouble ty = pos.getY();\n\t\n\tLine line = new Line(_currentx, _currenty, tx, ty);\n\n\tSystem.out.println(\"+Line: \" + line.toString());\n\t_currentPath.add(line);\n\t_currentx = tx;\n\t_currenty = ty;\n }", "public Polyline drawLine(Star one, Star two)\r\n\t{\t\t\r\n\t\treturn lang.newPolyline(new Offset[] { getStarPosition(one.x, one.y), getStarPosition(two.x, two.y) }, \"line\" + one.toString() + two.toString(), null, connectionLines);\r\n\t}", "public abstract LinearMor add(Mor m, R r);", "public synchronized void addSeg() {\n\t\ttail = new Segment(tail); // make a new segment that has a handle on the old tail\n\t\t// make that the new tail\n\t\t\n\t\ttail.place(); // place the segment so it isn't overlapping the segment it has a handle on\n\t\t\n\t\tparts++; // add 1 to the parts\n\t}", "@VTID(10)\n @UseDefaultValues(paramIndexMapping = {0, 1, 2, 3, 4, 5, 6, 9}, optParamIndex = {7, 8}, javaType = {java.lang.Object.class, java.lang.Object.class}, nativeType = {NativeType.VARIANT, NativeType.VARIANT}, variantType = {Variant.Type.VT_ERROR, Variant.Type.VT_ERROR}, literal = {\"80020004\", \"80020004\"})\n @ReturnValue(index=9)\n com.exceljava.com4j.excel.Trendline add(\n @Optional @DefaultValue(\"-4132\") com.exceljava.com4j.excel.XlTrendlineType type,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object order,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object period,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object forward,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object backward,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object intercept,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object displayEquation);", "private boolean lineline(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4){\n float uA = ((x4-x3)*(y1-y3) - (y4-y3)*(x1-x3)) / ((y4-y3)*(x2-x1) - (x4-x3)*(y2-y1));\n float uB = ((x2-x1)*(y1-y3) - (y2-y1)*(x1-x3)) / ((y4-y3)*(x2-x1) - (x4-x3)*(y2-y1));\n\n return uA >= 0 && uA <= 1 && uB >= 0 && uB <= 1;\n }", "@Override\n public boolean drawPathLine(Location loc1, Location loc2) {\n if (loc1.distanceTo(loc2) < DRAW_LINE_THRESHOLD_METERS) {\n return false;\n }\n Polyline line = new Polyline();\n List<GeoPoint> points = Arrays.asList(MapUtils.makeGeoPoint(loc1), MapUtils.makeGeoPoint(loc2));\n line.setPoints(points);\n line.setColor(Color.RED);\n line.setWidth(2.0f);\n mMap.getOverlayManager().add(line);\n\n mPathLines.add(line);\n return true;\n }", "private void addLine (String line) {\n writer.write (line);\n writer.newLine();\n // blockOut.append (line);\n // blockOut.append (GlobalConstants.LINE_FEED);\n }", "@Test\n\t\tpublic void testIntersectAtEndPoints2(){\n\t\t\tGenericLineSegmentsIntersect v=new GenericLineSegmentsIntersect();\n\t\t\tint[][] lines={\n\t\t\t\t\t{1,5,5,1},\n\t\t\t\t\t{1,4,5,0},\n\t\t\t\t\t{2,2,6,10}\n\t\t\t};\n\n\t\t\tassertTrue(v.intersects(lines));\n\t\t}", "private void drawLine(double x1, double y1, double x2, double y2) {\r\n\t\tGLine line = new GLine(x1,y1,x2,y2);\r\n\t\tadd(line);\r\n\t}", "public void setLine(int x1, int y1, int x2, int y2){\n\t\tint slope = 0;\n\t\tboolean vert = true;\n\t\t\n\t\tif((x2 - x1) != 0){\n\t\t\tslope = (y2 - y1) / (x2 - x1);\n\t\t\tvert = false;\n\t\t}\n\t\tif(!vert){\n\t\t\tfor(int a = 0; a < Math.abs(x2 - x1) + 1; a++){\n\t\t\t\tif(a >= 1025)\n\t\t\t\t\tbreak;\n\t\t\t\tif((x2 - x1) < 0){\n\t\t\t\t\tpathX[a] = x1 - a;\n\t\t\t\t\tpathY[a] = y1 - (a * slope);\n\t\t\t\t}\n\t\t\t\telse if((x2 - x1) > 0){\n\t\t\t\t\tpathX[a] = x1 + a;\n\t\t\t\t\tpathY[a] = y1 + (a * slope);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(vert && (y2 - y1) < 0){\n\t\t\tfor(int b = 0; b < Math.abs(y2 - y1) + 1; b++){\n\t\t\t\tif(b >= 1025)\n\t\t\t\t\tbreak;\n\t\t\t\tpathX[b] = x1;\n\t\t\t\tpathY[b] = y1 - b;\n\t\t\t}\n\t\t}\n\t\telse if(vert && (y2 - y1) > 0){\n\t\t\tfor(int b = 0; b < Math.abs(y2 - y1) + 1; b++){ \n\t\t\t\tif(b >= 1025)\n\t\t\t\t\tbreak;\n\t\t\t\tpathX[b] = x1;\n\t\t\t\tpathY[b] = y1 + b;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn;\n\t\t\n\t}", "@VTID(10)\n @UseDefaultValues(paramIndexMapping = {0, 1, 2, 3, 4, 5, 6, 7, 9}, optParamIndex = {8}, javaType = {java.lang.Object.class}, nativeType = {NativeType.VARIANT}, variantType = {Variant.Type.VT_ERROR}, literal = {\"80020004\"})\n @ReturnValue(index=9)\n com.exceljava.com4j.excel.Trendline add(\n @Optional @DefaultValue(\"-4132\") com.exceljava.com4j.excel.XlTrendlineType type,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object order,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object period,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object forward,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object backward,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object intercept,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object displayEquation,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object displayRSquared);", "private void addPoint(PointF p) {\n final long t = System.currentTimeMillis();\n final int size;\n synchronized (lastSegment) {\n size = lastSegment.size();\n final PointF sheetPoint = sheet.toSheet(p);\n lastSegment.add(sheetPoint);\n lastSegmentTimes.add(t);\n lastSegmentCurve.setThickness(currentThickness);\n lastSegmentCurve.addPoint(sheetPoint);\n }\n if (size >= maxPoints - 1) {\n finishSegment();\n mode = IDLE_MODE;\n }\n }", "public UBA<Line> _toLineSegments()\n {\n UBA<Line> output = new UBA<Line>();\n\n int len = _points.size();\n for(int i = 0; i < len - 1; i++)\n {\n Line line = new Line(i, i + 1, _points);\n output.push(line);\n }\n\n // Add the last point.\n if(_isClosed)\n {\n Line line = new Line(len - 1, 0, _points);\n output.push(line);\n }\n\n return output;\n }", "private static Point2D.Double lineLineIntersection(Point2D.Double a, Point2D.Double b, Point2D.Double c, Point2D.Double d) {\n double a1 = b.y - a.y;\n double b1 = a.x - b.x;\n double c1 = a1 * (a.x) + b1 * (a.y);\n\n // Line CD represented as a2x + b2y = c2\n double a2 = d.y - c.y;\n double b2 = c.x - d.x;\n double c2 = a2 * (c.x) + b2 * (c.y);\n\n double determinant = a1 * b2 - a2 * b1;\n\n if (determinant == 0) {\n // The lines are parallel.\n return new Point2D.Double(Double.NaN, Double.NaN);\n } else {\n double x = (b2 * c1 - b1 * c2) / determinant;\n double y = (a1 * c2 - a2 * c1) / determinant;\n return new Point2D.Double(x, y);\n }\n }", "private void drawLine(GraphicsContext canvas, Point start, Point end) {\n canvas.strokeLine(\n start.X, start.Y,\n end.X, end.Y\n );\n }", "public void addEmptyLine() {\n addLine(\"\");\n }", "public void addLine(int lineno, String line)\n throws AbnormalTerminationException {\n this._lines.add(new MacroLineFactory().parseLine(line, lineno, this));\n }", "public void markLine(Line line, Player player) {\n // The logic preventing double marking of a side is handled\n // in the mark function of the Board type. CHECK THIS!\n //\n Side side = line.getSide();\n this.setSide(side, true);\n\n Color lineColor = player.getLineColor();\n BoardDisplay bd = controller.getDisplay().getBoardDisplay();\n bd.colorSelectedLine(line, lineColor);\n }", "private Vector3f linePlaneIntersection(Vector3f planePoint, Vector3f planeNormal, Vector3f linePoint,\n\t\t\tVector3f lineDirection) {\n\t\tif (planeNormal.dot(lineDirection) == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tfloat t = (planeNormal.dot(planePoint) - planeNormal.dot(linePoint)) / planeNormal.dot(lineDirection);\n\t\tVector3f ret = lineDirection.mul(t, new Vector3f());\n\t\treturn ret.add(linePoint);\n\t}", "public void lineTo(int x1, int y1, int c1) {\n\n if (lineToOrigin) {\n if (x1 == sx0 && y1 == sy0) {\n // staying in the starting point\n return;\n }\n\n // not closing the path, do the previous lineTo\n lineToImpl(sx0, sy0, scolor0, joinToOrigin);\n lineToOrigin = false;\n } else if (x1 == x0 && y1 == y0) {\n return;\n } else if (x1 == sx0 && y1 == sy0) {\n lineToOrigin = true;\n joinToOrigin = joinSegment;\n joinSegment = false;\n return;\n }\n\n lineToImpl(x1, y1, c1, joinSegment);\n joinSegment = false;\n }", "static boolean Line(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"Line\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = Word(b, l + 1);\n r = r && Line_1(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public boolean doLinesOverlap(Line2d line, Line2d otherLine)\n\t{\n\t\tdouble angle = (line.angle(otherLine));\n\t\tif(Gtk.epsilonEquals(angle, Math.PI/2)) return false;\n\t\tif (!Gtk.epsilonEquals(angle, Math.PI) \n\t\t\t\t|| !Gtk.epsilonEquals(angle, 0.0))\t\t\n\t\t{\n\t\t\tLine2d pLine = new Line2d (otherLine.getDirection(), line.getStartPoint());\n\t\t\tPoint2d pp = pLine.projectPoint(line.getEndPoint());\n\t\t\tpLine.setEndPoint(pp);\n\t\t\tline = pLine;\n\t\t}\n\t\ttry\n\t\t{\n\t\t\tLine2d line1 = \n\t\t\t\tnew Line2d(line.pointOnLine(0.001), \n\t\t\t\t\t\tline.pointOnLine(line.factorForPoint(line.getEndPoint()) - 0.001));\n\t\t\t//the above line of code ensures that two lines with exactly one\n\t\t\t//end point (and no other overlap) are not returned, e.g.\n\t\t\t//Line1[(0.0, 0.0), (1.0, 0.0)] and Line2[(1.0, 1.0),(2.0, 1.0)]\n\t\t\tPoint2d lspp = otherLine.projectPoint(line1.getStartPoint());\n\t\t\tPoint2d lepp = otherLine.projectPoint(line1.getEndPoint());\n\t\t\tPoint2d olspp = line1.projectPoint(otherLine.getStartPoint());\n\t\t\tPoint2d olepp = line1.projectPoint(otherLine.getEndPoint());\n\t\t\t\n\t\t\treturn ((line1.isPointOnCurve(olspp)) \n\t\t\t\t\t|| line1.isPointOnCurve(olepp))\t|| \n\t\t\t\t\t((otherLine.isPointOnCurve(lspp)) \n\t\t\t\t\t\t\t|| otherLine.isPointOnCurve(lepp));\n\t\t}\n\t\tcatch (GeometryException ile)\n\t\t{\n\t\t\tile.printStackTrace();\n\t\t}\t\t\n\t\treturn false;\n\t}", "private ExpandGrid addLine(Grid input_grid, int number, int x, int y, int z, int steps, int x2, int y2, int z2) {\n Grid copy_grid = new Grid(input_grid);\n copy_grid.addLine(number, x, y, z);\n int estimate = manhattanDistance(x, y, x2, y2, z, z2);\n return new ExpandGrid(copy_grid, number, x, y, z, (steps + 1), estimate);\n }", "@VTID(10)\n @UseDefaultValues(paramIndexMapping = {0, 1, 2, 3, 4, 5, 9}, optParamIndex = {6, 7, 8}, javaType = {java.lang.Object.class, java.lang.Object.class, java.lang.Object.class}, nativeType = {NativeType.VARIANT, NativeType.VARIANT, NativeType.VARIANT}, variantType = {Variant.Type.VT_ERROR, Variant.Type.VT_ERROR, Variant.Type.VT_ERROR}, literal = {\"80020004\", \"80020004\", \"80020004\"})\n @ReturnValue(index=9)\n com.exceljava.com4j.excel.Trendline add(\n @Optional @DefaultValue(\"-4132\") com.exceljava.com4j.excel.XlTrendlineType type,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object order,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object period,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object forward,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object backward,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object intercept);", "public void addLineItem (LineItem lineItem){\n if (this.orderStatus != OrderStatus.Closed && !lineItem.isOrdered() && !lineItems.contains(lineItem)){\n lineItems.add(lineItem);\n total += lineItem.getPrice();\n lineItem.setOrdered(true);\n this.getAccount().setBalance(this.getAccount().getBalance() - lineItem.getPrice());\n }\n }", "private void addPolyLines(List<LatLng> path) {\n PolylineOptions polyline = new PolylineOptions()\n .geodesic(true)\n .addAll(path)\n .color(Color.BLACK)\n .visible(true);\n\n mGoogleMap.addPolyline(polyline);\n }", "public void addSegment(PathSegment segment) {\n segments.add(segment);\n }", "private boolean extend(Line workingSet, boolean direction) {\n\n\t\tPoint next_point = get_next_point(get_next_point_guess(workingSet,\n\t\t\t\tdirection));\n\n\t\tif (next_point != null) {\n\t\t\t// Check if candidate point fits the line\n\t\t\tif (fits_the_line(next_point, workingSet, direction)) {\n\t\t\t\tworkingSet.add_point(next_point, direction);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\n\t}", "private void drawLine(Graphics g, int x1, int y1, int x2, int y2) {\n int d = 0;\n\n int dx = Math.abs(x2 - x1);\n int dy = Math.abs(y2 - y1);\n\n int dx2 = 2 * dx; // slope scaling factors to\n int dy2 = 2 * dy; // avoid floating point\n\n int ix = x1 < x2 ? 1 : -1; // increment direction\n int iy = y1 < y2 ? 1 : -1;\n\n int x = x1;\n int y = y1;\n\n if (dx >= dy) {\n while (true) {\n plot(g, x, y);\n if (x == x2)\n break;\n x += ix;\n d += dy2;\n if (d > dx) {\n y += iy;\n d -= dx2;\n }\n }\n } else {\n while (true) {\n plot(g, x, y);\n if (y == y2)\n break;\n y += iy;\n d += dx2;\n if (d > dy) {\n x += ix;\n d -= dy2;\n }\n }\n }\n }", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi addNewMedlineSi();", "public boolean onSegment(Line line) {\n\n // Define minimum and maximum for X and Y values.\n double maxX = Math.max(line.start().getX(), line.end().getX());\n double maxY = Math.max(line.start().getY(), line.end().getY());\n double minX = Math.min(line.start().getX(), line.end().getX());\n double minY = Math.min(line.start().getY(), line.end().getY());\n\n // Calculation deviation.\n double d = 0.0000000001;\n\n // Check if this point is in between minimum and maximum and return result.\n return minX - d <= this.x && this.x <= maxX + d && minY - d <= this.y && this.y <= maxY + d;\n\n }", "public static void line(GL2 gl, Vec3d start, Vec3d end)\n\t{\n\t\tgl.glBegin(GL.GL_LINES);\n\t\tgl.glVertex3d(start.x, start.y, start.z);\n\t\tgl.glVertex3d(end.x, end.y, end.z);\n\t\tgl.glEnd();\n\t}" ]
[ "0.667793", "0.64951175", "0.64361316", "0.62743515", "0.6147295", "0.61373436", "0.60897946", "0.59169537", "0.59046686", "0.5903499", "0.58688134", "0.58277637", "0.5798062", "0.57962567", "0.57688147", "0.5763616", "0.5748378", "0.5727403", "0.5705898", "0.56437486", "0.5566736", "0.5549988", "0.5532142", "0.55111486", "0.5507966", "0.5506896", "0.5506823", "0.5496368", "0.54923207", "0.548544", "0.5405907", "0.53968906", "0.5360216", "0.5358647", "0.5354761", "0.5344028", "0.5341954", "0.5333564", "0.53323764", "0.53164494", "0.5309559", "0.5287862", "0.52753454", "0.5271011", "0.52686757", "0.526828", "0.5267121", "0.5262755", "0.52454925", "0.5231156", "0.52289474", "0.5224073", "0.52238643", "0.5213245", "0.52082866", "0.5203783", "0.52014506", "0.5201273", "0.5188847", "0.5184811", "0.51634765", "0.5148627", "0.51482385", "0.51407075", "0.513825", "0.5137159", "0.513674", "0.51316446", "0.5119845", "0.5119163", "0.5106362", "0.5089526", "0.50859094", "0.508576", "0.5083081", "0.5073719", "0.5064637", "0.506408", "0.50609213", "0.5058001", "0.5049012", "0.50437456", "0.5033947", "0.5032613", "0.50248915", "0.5020721", "0.5018912", "0.5017396", "0.5011679", "0.5011311", "0.5002646", "0.49893948", "0.49858564", "0.49857882", "0.49749973", "0.49738756", "0.49685687", "0.4963463", "0.49599296", "0.49595368" ]
0.6982037
0
Determines the minimum number of moves needed to navigate from position 0 to position g or greater, where forward navigation must exactly m positions at a time and backwards navigation can be any number of positions.
public final int solveIt() { return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int numTurnsUntilMove(GameState gm, Player p) {\n\t\tint count = 0;\n\t\t\n\t\tcount = gm.getPlayers().indexOf(p)-gm.getPlayers().indexOf(this);\n\t\tif (count < 0) {\n\t\t\treturn count + gm.getPlayers().size();\n\t\t}\n\t\telse {\n\t\t\treturn count;\n\t\t}\n\t}", "public int getNumberOfMoves();", "public float calcMinRemainingMoves(GameState gm){\n\t\tfloat moves = 0;\n\t\tint smallestHand = 78;\n\n\t\t// find the player with smallest hand\n\t\tfor (Player p: gm.getPlayers()) {\n\t\t\t//System.out.println(p.getName() + \"'s hand: \" + p.getHandCount() + \" cards\");\n\t\t\tif (smallestHand > p.getHandCount()) {\n\t\t\t\tsmallestHand = p.getHandCount();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// formula: smallestHand + (decksize - smallesthand*(#players-1))/(#players-1)\n\t\t\n\t\tmoves = (float)smallestHand \n\t\t\t\t+ (((float)getDeckSize() - ((float)smallestHand*((float)gm.getPlayers().size()-1)))/((float)gm.getPlayers().size()-1));\n\t\t\n\t\treturn moves;\n\t}", "public int totalSteps() {\n return moves.size();\n }", "public int moves() {\n return moveMin;\n }", "private int movesLeft() {\n\t\treturn movesLeft.size() - 1; // don't count quit\n\t}", "public static int findMinMoves(int[] machines) {\n int sum = Arrays.stream(machines).sum();\n if (sum % machines.length > 0) {\n return -1;\n }\n\n int target = sum / machines.length;\n int steps = 0, gap = 0;\n\n for (int m : machines) {\n gap += m - target;\n steps = Math.max(steps, Math.max(Math.abs(gap), m - target));\n }\n return steps;\n }", "public static int MinJumps(int arr[], int low, int high)\n\t{\n\t if (high == low)//source and destination are same.\n\t {\n\t return 0;\n\t }\n\t if (arr[low] == 0)//cannot move forward,\n\t {\n\t return Integer.MAX_VALUE;\n\t }\n\t int MinNumOfJumps = Integer.MAX_VALUE;//initialize to INT_MAX\n\t \n\t //Recursively calling for all reacheble points. \n\t for (int i = low+1; i<= high && i <= low + arr[low]; i++)\n\t {\n\t int NumOfJumps = MinJumps(arr, i, high);\n\t if(NumOfJumps != Integer.MAX_VALUE && NumOfJumps + 1 < MinNumOfJumps)\n\t {\n\t MinNumOfJumps = NumOfJumps + 1;\n\t }\n\t }\n\t return MinNumOfJumps;\n\t}", "public int moves() {\r\n if (!isSolvable) return -1;\r\n return goal.previousMoves;\r\n }", "public int getNumMoves() {\n\t\treturn numMoves;\n\t}", "static int minJumps(int[] arr){\n int n = arr.length;\n int[] dp = new int[n];\n for(int i = 0; i < n; i++) dp[i] = Integer.MAX_VALUE;\n dp[0] = 0;\n for(int i = 1; i < n; i++){\n //checking from 0 to index i that if there is a shorter path for \n //current position to reach from any of the previous indexes\n //also previous index should not be MAX_VALUE as this will show that\n //we were not able to reach this particular index\n for(int j = 0; j < i; j++){\n if(dp[j] != Integer.MAX_VALUE && arr[j] + j >= i){\n if(dp[j] + 1 < dp[i]){\n dp[i] = dp[j] + 1;\n }\n }\n }\n }\n \n if(dp[n - 1] != Integer.MAX_VALUE){\n return dp[n - 1];\n }\n \n return -1;\n }", "public int moves() {\n return solution.size() - 1;\n }", "public int moves() {\n if (!isSolvable()) {\n return -1;\n } else {\n return minNode.getMove();\n }\n\n }", "private int minJumps(int[] arr) {\n int n = arr.length;\n if (n == 1) {\n return 0;\n }\n\n //map to hold the values in the array and the indexes where they are located in\n Map<Integer, List<Integer>> map = new HashMap<>();\n\n for (int i = 0; i < arr.length; i++) {\n /*\n method checks if arr[i] exists in the map, if so, we add the current index to the list of indexes where\n arr[i] is present, otherwise we make a new entry for arr[i]\n */\n map.computeIfAbsent(arr[i], v -> new ArrayList<>()).add(i);\n }\n\n //Queue to hold the indexes j we can jump to starting from 0\n Queue<Integer> queue = new LinkedList<>();\n queue.add(0); //add the first index into the queue\n int steps = 0;\n\n while (!queue.isEmpty()) {\n steps++;\n int size = queue.size();\n\n for (int i = 0; i < size; i++) {\n int j = queue.remove(); //the current index\n\n //jump to j + 1\n if (j + 1 < n && map.containsKey(arr[j + 1])) {\n if (j + 1 == n - 1) {\n return steps;\n }\n queue.add(j + 1);\n }\n\n //jump to j - 1\n if (j - 1 >= 0 && map.containsKey(arr[j - 1])) {\n queue.add(j - 1);\n }\n\n //jump to index k --> arr[j] == arr[k]\n if (map.containsKey(arr[j])) {\n //search through the list of indexes where arr[j] is present\n for (int k : map.get(arr[j])) {\n if (k != j) {\n //if one of the indexes is the last index, we've gotten to the end, otherwise we add the index to the queue\n if (k == n - 1) {\n return steps;\n }\n queue.add(k);\n }\n }\n }\n //remove the value of arr[j] from the map to avoid overlap\n map.remove(arr[j]);\n }\n }\n return steps;\n }", "public int moves() {\n\t\tif (goal == null)\n\t\t\treturn -1;\n\t\telse\n\t\t\treturn goal.moves;\n\t}", "private int forwardPosition() {\n\t\treturn (position + 1) % (maxPosition + 1);\n\t}", "public int moves() {\n return goal == null ? -1 : goal.numMoves;\n }", "public int moves() {\n\n return initialSolvable ? solutionNode.numberOfMovesMade : -1;\n }", "public static int minimumNumberOfGames() {\n\t\treturn 0;\n\t}", "public int moves() {\n\t\tif (!isSolvable())\n\t\t\treturn -1;\n\t\telse\n\t\t\treturn result.size() - 1;\n\t}", "public int moves()\n {\n return numberOfMoves;\n }", "public int getNumberOfMoves() {\r\n return numberOfMoves;\r\n }", "public int getNumMoving() {\n int numMoving = 0;\n for (BaseSingle single : aliveTroopsMap.keySet()) {\n if (single.getState() == SingleState.MOVING ||\n single.getState() == SingleState.CATCHING_UP ||\n single.getState() == SingleState.ROUTING) {\n numMoving += 1;\n }\n }\n return numMoving;\n }", "private static int minimum() {\n\t\tint popSize = 0;\n\t\tChromosome thisChromo = null;\n\t\tChromosome thatChromo = null;\n\t\tint winner = 0;\n\t\tboolean foundNewWinner = false;\n\t\tboolean done = false;\n\n\t\twhile (!done) {\n\t\t\tfoundNewWinner = false;\n\t\t\tpopSize = population.size();\n\t\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\t\tif (i != winner) { // Avoid self-comparison.\n\t\t\t\t\tthisChromo = population.get(i);\n\t\t\t\t\tthatChromo = population.get(winner);\n\t\t\t\t\tif (thisChromo.conflicts() < thatChromo.conflicts()) {\n\t\t\t\t\t\twinner = i;\n\t\t\t\t\t\tfoundNewWinner = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (foundNewWinner == false) {\n\t\t\t\tdone = true;\n\t\t\t}\n\t\t}\n\t\treturn winner;\n\t}", "private int totalBeginning(int row, int col) { //function that determines number of moves\n int count = 0;\n for (int i = 0; i < OPTIONS.length; i += 2) {\n int newRow = row + OPTIONS[i];\n int newCol = col + OPTIONS[i + 1];\n if (newRow >= 0 && newRow < rows && newCol >= 0 && newCol < cols) {\n count++;\n }\n }\n return count;\n }", "private int getBestMove(int[] board, int depth, boolean turn) {\n int boardCopy[];\n if (depth <= 0) {\n return 0;\n }\n if (depth > STEP_BACK_DEPTH) {\n try {\n Thread.sleep(3);\n } catch (InterruptedException e) {\n e.printStackTrace();\n if (shouldStop()) {\n Log.d(Constants.MY_TAG,\"out CalculatingBot\");\n unlock();\n return 0;\n }\n }\n }\n if (turn) {\n int minimum = MAXIMUM_POSSIPLE_SCORE_DIFFERENCE;\n for (int i = 0; i < 5; i++) {\n if (board[i] < 2) {\n continue;\n }\n boardCopy = board.clone();\n int x = playMove(boardCopy, i);\n int y = 0;\n if (!hasPlayer2Move(boardCopy)) {\n if (hasPlayer1Move(boardCopy)) {\n y = getBestMove(boardCopy, depth - 1, turn);\n } else {\n for (int j = 0; j < 5; j++) {\n y = y - boardCopy[j];\n }\n for (int j = 5; j < 10; j++) {\n y = y + boardCopy[j];\n }\n }\n } else {\n y = getBestMove(boardCopy, depth - 1, ! turn);\n }\n int z = y - x;\n if (z < minimum) {\n minimum = z;\n }\n }\n int i = 10;\n if (board[2] < 2) {\n return minimum;\n }\n boardCopy = board.clone();\n int x = playMove(boardCopy, i);\n int y = 0;\n if (!hasPlayer2Move(boardCopy)) {\n if (hasPlayer1Move(boardCopy)) {\n y = getBestMove(boardCopy, depth - 1, turn);\n } else {\n for (int j = 0; j < 5; j++) {\n y = y - boardCopy[j];\n }\n for (int j = 5; j < 10; j++) {\n y = y + boardCopy[j];\n }\n }\n } else {\n y = getBestMove(boardCopy, depth - 1, !turn);\n }\n int z = y - x;\n if (z < minimum) {\n minimum = z;\n }\n return minimum;\n } else {\n int maximum = MINIMUM_POSSIPLE_SCORE_DIFFERENCE;\n for (int i = 5; i < 10; i++) {\n if (board[i] < 2) {\n continue;\n }\n boardCopy = board.clone();\n int x = playMove(boardCopy, i);\n int y = 0;\n if (!hasPlayer1Move(boardCopy)) {\n if (hasPlayer2Move(boardCopy)) {\n y = getBestMove(boardCopy, depth - 1, turn);\n } else {\n for (int j = 0; j < 5; j++) {\n y = y - boardCopy[j];\n }\n for (int j = 5; j < 10; j++) {\n y = y + boardCopy[j];\n }\n }\n } else {\n y = getBestMove(boardCopy, depth - 1, !turn);\n }\n int z = y + x;\n if (z > maximum) {\n maximum = z;\n }\n }\n int i = 11;\n if (board[7] < 2) {\n return maximum;\n }\n boardCopy = board.clone();\n int x = playMove(boardCopy, i);\n int y = 0;\n if (!hasPlayer1Move(boardCopy)) {\n if (hasPlayer2Move(boardCopy)) {\n y = getBestMove(boardCopy, depth - 1, turn);\n } else {\n for (int j = 0; j < 5; j++) {\n y = y - boardCopy[j];\n }\n for (int j = 5; j < 10; j++) {\n y = y + boardCopy[j];\n }\n }\n } else {\n y = getBestMove(boardCopy, depth - 1, !turn);\n }\n int z = y + x;\n if (z > maximum) {\n maximum = z;\n }\n return maximum;\n }\n }", "public int moves() {\r\n if (solution != null) {\r\n return solution.size() - 1;\r\n } else {\r\n return -1;\r\n }\r\n }", "public int calculateMisplacedTiles(List<Integer> currentState, List<Integer> goalState) {\n\t\tint edgeCost = 0;\n\t\tfor (int index = 0; index < currentState.size(); index++) {\n\t\t\tif(currentState.get(index).equals(0)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (!currentState.get(index).equals(goalState.get(index))) {\n\t\t\t\tedgeCost++;\n\t\t\t}\n\t\t}\n\t\treturn edgeCost;\n\t}", "public void incrementNumMoves() {\n\t\tthis.moveMade = true;\n\t\tthis.numMoves++;\n\t}", "int movesMade() {\n return _moves.size();\n }", "public int getMoveCount() {\r\n\t\treturn moveCount;\r\n\r\n\t}", "public int moves()\n {\n\n if (goalNode!=null && goalNode.board.isGoal()){\n return goalNode.moves;\n }\n return -1;\n }", "private final int m()\n\t { int n = 0;\n\t int i = 0;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break; i++;\n\t }\n\t i++;\n\t while(true)\n\t { while(true)\n\t { if (i > j) return n;\n\t if (cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t n++;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t }\n\t }", "private int findNumOpenSpots(Point p) {\n boolean[][] visited = new boolean[17][17];\n Queue<Point> queue = new LinkedList<Point>();\n queue.add(p);\n\n int numEmpty = 0;\n while (!queue.isEmpty()) {\n Point cp = queue.poll();\n if (gameState[cp.x][cp.y] == States.EMPTY && !visited[cp.x][cp.y]) {\n numEmpty++;\n visited[cp.x][cp.y] = true;\n\n if (cp.x - 1 > 0) {\n queue.add(new Point(cp.x - 1, cp.y));\n }\n if (cp.x + 1 < 16) {\n queue.add(new Point(cp.x + 1, cp.y));\n }\n if (cp.y - 1 > 0) {\n queue.add(new Point(cp.x, cp.y - 1));\n }\n if (cp.y + 1 < 16) {\n queue.add(new Point(cp.x, cp.y + 1));\n }\n }\n }\n return numEmpty;\n }", "while (hi < s.length()) {\n if (/* maximum window - window is valid; min window - window is NOT valid */) {\n //move hi forward for one step + update count\n hi++;\n }", "public static byte getMaxMoves() {\n return MAX_MOVES;\n }", "public int getMoveCount() {\n\t\treturn moveCount;\n\t}", "private void incr() {\n Move tempMove = null;\n Piece t1, t2;\n while (_r <= M) {\n t1 = Board.this._turn;\n t2 = Board.this.get(_c, _r);\n if (t1 == t2) {\n break;\n } else {\n nextPiece();\n }\n }\n if (_r > M) {\n _move = null;\n return;\n }\n int c1, r1, count3;\n Piece temp1, temp2;\n Board tempBoard;\n _dir = _dir.succ();\n while (_dir != null) {\n count3 = pieceCountAlong(_c, _r, _dir);\n c1 = _c + _dir.dc * count3;\n r1 = _r + _dir.dr * count3;\n tempMove = Move.create(_c, _r, c1, r1, Board.this);\n if (tempMove == null) {\n _dir = _dir.succ();\n continue;\n }\n if (isLegal(tempMove)) {\n _move = tempMove;\n break;\n }\n _dir = _dir.succ();\n }\n if (_dir == null) {\n _dir = NOWHERE;\n nextPiece();\n incr();\n }\n }", "@Override\n public void calculateMove() {\n int xa = 0, ya = 0;\n if (steps <= 0) {\n direction = ep.calculateDirection();\n steps = MAX_STEPS;\n }\n if (direction == 0) {\n ya--;\n }\n if (direction == 2) {\n ya++;\n }\n if (direction == 3) {\n xa--;\n }\n if (direction == 1) {\n xa++;\n }\n if (canMove(xa, ya)) {\n steps -= 1 + rest;\n move(xa * speed, ya * speed);\n moving = true;\n } else {\n steps = 0;\n moving = false;\n }\n }", "static int numberOfPaths(int m, int n) {\n\t\tint count[][] = new int[m][n];\n\n\t\t// Count of paths to reach any cell in\n\t\t// first column is 1\n\t\tfor (int i = 0; i < m; i++)\n\t\t\tcount[i][0] = 1;\n\n\t\t// Count of paths to reach any cell in\n\t\t// first column is 1\n\t\tfor (int j = 0; j < n; j++)\n\t\t\tcount[0][j] = 1;\n\n\t\t// Calculate count of paths for other\n\t\t// cells in bottom-up manner using\n\t\t// the recursive solution\n\t\tfor (int i = 1; i < m; i++) {\n\t\t\tfor (int j = 1; j < n; j++)\n\n\t\t\t\t// By uncommenting the last part the\n\t\t\t\t// code calculatest he total possible paths\n\t\t\t\t// if the diagonal Movements are allowed\n\t\t\t\tcount[i][j] = count[i - 1][j] + count[i][j - 1]; // + count[i-1][j-1];\n\n\t\t}\n\t\tfor (int k = 0; k < count.length; k++) {\n\t\t\tfor (int k2 = 0; k2 < count.length; k2++) {\n\t\t\t\tSystem.out.print(count[k][k2] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\treturn count[m - 1][n - 1];\n\t}", "public static int minJumps(int[] arr) {\n Map<Integer, List<Integer>> map = new HashMap<>();\n int n = arr.length;\n int step = 0;\n\n for (int i = 0; i < n; i++) {\n if (!map.containsKey(arr[i])) {\n map.put(arr[i], new ArrayList<>());\n }\n\n map.get(arr[i]).add(i);\n }\n\n Queue<Integer> queue = new LinkedList<>();\n boolean[] visited = new boolean[n];\n queue.offer(0);\n\n while (!queue.isEmpty()) {\n int size = queue.size();\n for (int i = 0; i < size; i++) {\n int pos = queue.poll();\n\n if (pos == n - 1) {\n return step;\n }\n\n if (pos - 1 >= 0 && !visited[pos - 1]) {\n queue.offer(pos - 1);\n visited[pos - 1] = true;\n }\n\n if (pos + 1 < n && !visited[pos + 1]) {\n queue.offer(pos + 1);\n visited[pos + 1] = true;\n }\n\n for (int next: map.get(arr[pos])) {\n if (!visited[next]) {\n queue.offer(next);\n }\n }\n\n // 优化,对于 [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,11] 避免重复将7加入queue\n map.get(arr[pos]).clear();\n }\n step++;\n }\n\n return 0;\n }", "public int stepsUntilReturn(){\n int count = 0;\n int oldX = x;\n int oldY = y;\n move();\n count++;\n while ((oldX!=x)||(oldY!=y)){\n move();\n count++;\n if(count>=safeguard){\n break;\n }\n }\n return count;\n }", "public int getMoveCount() {\r\n return this.moveCount;\r\n }", "public int ghostMoves(List<Integer> pacmanLocaytarget, List<Integer> ghostLocay){\n int numOfmoves = 0;\n //counts the steps to get to the target\n for(int i=ghostLocay.get(0);i>pacmanLocaytarget.get(0);i--){\n numOfmoves++;\n }\n for(int i=ghostLocay.get(1);i>pacmanLocaytarget.get(1);i--){\n numOfmoves++;\n }\n return numOfmoves;\n\n }", "@Test\n public void getMaxReach() {\n assertEquals(\"Max reach for G should be 3\",\n 3,\n Shape.G.getMaxReach());\n assertEquals(\"Max reach for J should be 4\",\n 4,\n Shape.J.getMaxReach());\n assertEquals(\"Max reach for I should be 2\",\n 2,\n Shape.I.getMaxReach());\n\n // check different rotations\n assertEquals(\"Max vert reach for G facing south should be 2\",\n 2,\n Shape.G.getMaxReach(Direction.SOUTH, true));\n assertEquals(\"Max hori reach for J facing north should be 4\",\n 4,\n Shape.J.getMaxReach(Direction.NORTH, false));\n assertEquals(\"Max vert reach for I facing west should be 2\",\n 2,\n Shape.I.getMaxReach(Direction.WEST, true));\n }", "public void testNumberOfAdjacentMines()\r\n {\r\n board.loadBoardState(\"OOOO\",\r\n \"O+OO\",\r\n \"OOOO\",\r\n \"OOOO\");\r\n assertEquals(0, board.numberOfAdjacentMines(-1, -1));\r\n board.loadBoardState(\"OOOO\",\r\n \"O+OO\",\r\n \"OOOO\",\r\n \"OOOO\");\r\n assertEquals(0, board.numberOfAdjacentMines(0, 3));\r\n board.loadBoardState(\"OOOO\",\r\n \"OOOO\",\r\n \"O+OO\",\r\n \"OOOO\");\r\n assertEquals(1, board.numberOfAdjacentMines(2, 3));\r\n board.loadBoardState(\"OOOO\",\r\n \"++OO\",\r\n \"OOOO\",\r\n \"OOOO\");\r\n assertEquals(2, board.numberOfAdjacentMines(0, 0));\r\n board.loadBoardState(\"O+OO\",\r\n \"++OO\",\r\n \"OOOO\",\r\n \"OOOO\");\r\n assertEquals(3, board.numberOfAdjacentMines(0, 0));\r\n board.loadBoardState(\"OOOO\",\r\n \"O+++\",\r\n \"O+OO\",\r\n \"OOOO\");\r\n assertEquals(4, board.numberOfAdjacentMines(2, 2));\r\n board.loadBoardState(\"OOOO\",\r\n \"O+++\",\r\n \"O+O+\",\r\n \"OOOO\");\r\n assertEquals(5, board.numberOfAdjacentMines(2, 2));\r\n board.loadBoardState(\"O+++\",\r\n \"O+O+\",\r\n \"OOO+\",\r\n \"OOOO\");\r\n assertEquals(6, board.numberOfAdjacentMines(2, 1));\r\n board.loadBoardState(\"OOOO\",\r\n \"O+++\",\r\n \"O+OO\",\r\n \"O+++\");\r\n assertEquals(7, board.numberOfAdjacentMines(2, 2));\r\n board.loadBoardState(\"OOOO\",\r\n \"+++O\",\r\n \"+O+O\",\r\n \"+++O\");\r\n assertEquals(8, board.numberOfAdjacentMines(1, 2));\r\n }", "public int pacmanMoves(List<Integer> target){\n int numOfmoves = 0;\n //counts the steps to get to the target\n for(int i=target.get(0);i>0;i--){\n numOfmoves++;\n }\n for(int i=target.get(1);i>0;i--){\n numOfmoves++;\n }\n return numOfmoves;\n }", "private static int MinJumps(int array[], int n)\n\t{\n\t int[] jumps_array = new int[n];\n\t if (n == 0 || array[0] == 0)\n\t {\n\t return Integer.MAX_VALUE;\n\t }\n\t jumps_array[0] = 0;//initializing jumps_array\n\t for (int i = 1; i < n; ++i)\n\t {\n\t jumps_array[i] = Integer.MAX_VALUE;\n\t }\n\t for (int i = 1; i < n; i++)\n\t {\n\t for (int j = 0; j < i; j++)\n\t {\n\t if (i <= j + array[j] && jumps_array[j] != Integer.MAX_VALUE)//minimum number jumps to reach i \n\t {\n\t jumps_array[i] = min(jumps_array[i], jumps_array[j] + 1);//by comparing with previous points\n\t break;\n\t }\n\t }\n\t }\n\t return jumps_array[n-1];\n\t}", "public int getNearbyMines(int i, int j) {\n int numberOfMines = 0;\n\n if (i > 0) { //IF there is space above\n if (game[i-1][j].equals(mine)) { //checks top\n numberOfMines++;\n }\n if (j > 0) {\n if (game[i-1][j-1].equals(mine)) { //checks top left\n numberOfMines++;\n }\n }\n if (j < column-1) {\n if ((game[i-1][j+1].equals(mine))) { //checks top right\n numberOfMines++;\n }\n }\n }\n\n if (i < row-1) { //IF there is space below\n if (game[i+1][j].equals(mine)) { //checks bottom\n numberOfMines++;\n }\n if (j > 0) {\n if (game[i+1][j-1].equals(mine)) { //checks bottom left\n numberOfMines++;\n }\n }\n if (j < column-1) {\n if (game[i+1][j+1].equals(mine)) { //checks bottom right\n numberOfMines++;\n }\n }\n }\n\n if (j > 0) { //IF there is space to the left\n if (game[i][j-1].equals(mine)) { //checks left\n numberOfMines++;\n }\n }\n if (j < column-1) { //IF there is space to the right\n if (game[i][j+1].equals(mine)) {\n numberOfMines++; //checks right\n }\n }\n return numberOfMines;\n }", "public int moves() {\n \tif (!isSolvable) return -1;\n \treturn solutionNode.getMoves();\n }", "public int moves() {\n if (!isSolvable()) return -1;\n return realMoves;\n }", "public int getSearchSteps();", "static int minimumSwaps2(int[] arr) {\n Map<Integer, Integer> backward = new HashMap<>();\n Map<Integer, Integer> forward = new HashMap<>();\n for (int i = 0; i < arr.length; i++) {\n int move = i + 1 - arr[i];\n if (move > 0)\n forward.put(arr[i], move);\n else if (move < 0)\n backward.put(arr[i], move);\n }\n\n //count swap in pairs\n int pairs = 0;\n for (Integer bk : backward.keySet()) {\n for (Integer fk : forward.keySet()) {\n if (backward.get(bk) * (-1) == forward.get(fk)) {\n pairs = pairs + 1;\n continue;\n }\n }\n }\n //count swap others\n int swapCount = forward.size() + backward.size() - (2 * pairs);\n if (swapCount > 0) swapCount = swapCount - 1;\n\n System.out.println(String.format(\n \"forward(%d):%s\\nbackeward(%d):%s\\neach: %d, swap: %d\"\n , forward.size(), forward, backward.size(), backward,\n pairs, swapCount\n ));\n\n return swapCount + pairs;\n }", "protected void initNumOfMoves() {\n\t\tthis.numOfMoves = 0;\n\t}", "public int moves() {\n return isSolvable() ? finalMove.moves : -1;\n }", "public int AvailableMoves(int disc){\n avMoves =0;\n for (int i=0; i<8; i++){\n for (int j=0; j<8; j++){\n if (isValidMove(i,j,disc))\n avMoves++;\n }\n }\n return avMoves;\n }", "public int moves() {\n return moves;\n }", "public int moves() {\n return moves;\n }", "public int getNumMinesLeft() {\n return numMinesLeft;\n }", "public static int p413ComputeShortestPathNumber(Vertex start, Vertex end){\n\t Queue<Vertex> queue=new LinkedList<Vertex>();\n\t Map<Vertex, Status> statusMap=new HashMap<Vertex, Status>();\n\t Map<Vertex, Integer> levelMap=new HashMap<Vertex, Integer>();\n\t List<List<Vertex>> allLevelList=new LinkedList<List<Vertex>>();\n\t \n\t queue.offer(start);\n\t statusMap.put(start, Status.Queued);\n\t levelMap.put(start, 0);\n\t \n\t Vertex vertex;\n\t int lastLevel=-1;\n\t List<Vertex> levelList = null;\n\t\twhile ((vertex = queue.poll()) != null) {\n\t\t\tint currentLevel = levelMap.get(vertex);\n\n\t\t\tif (currentLevel != lastLevel) {\n\t\t\t\tlastLevel = currentLevel;\n\t\t\t\tlevelList = new LinkedList<Vertex>();\n\n\t\t\t\tallLevelList.add(levelList);\n\t\t\t}\n\n\t\t\tlevelList.add(vertex);\n\n\t\t\tif (vertex.equals(end)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tSet<Vertex> adjacentVertexes = vertex.getAdjacentVertexes();\n\t\t\tfor (Iterator iterator = adjacentVertexes.iterator(); iterator.hasNext();) {\n\t\t\t\tVertex adjacent = (Vertex) iterator.next();\n\n\t\t\t\tif (statusMap.get(adjacent) == null) {\n\t\t\t\t\tqueue.offer(adjacent);\n\t\t\t\t\tstatusMap.put(adjacent, Status.Queued);\n\t\t\t\t\tlevelMap.put(adjacent, currentLevel + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t \n\t int max=Integer.MIN_VALUE;\n\t List<Vertex> targetList=new LinkedList<Vertex>();\n\t targetList.add(end);\n\t for(int index=lastLevel-1;index>0;index--){\n\t\t List<Vertex> lastLevelList = allLevelList.get(index);\n\t\t List<Vertex> tmpList=new LinkedList<Vertex>();\n\n\t\t int count=0;\n\t\t for (Iterator iterator = lastLevelList.iterator(); iterator.hasNext();) {\n\t\t\t\tVertex lastLevelVertex = (Vertex) iterator.next();\n\t\t\t\tfor (Iterator iterator2 = targetList.iterator(); iterator2.hasNext();) {\n\t\t\t\t\tVertex vertex2 = (Vertex) iterator2.next();\n\t\t\t\t\tif(lastLevelVertex.getAdjacentVertexes().contains(vertex2)){\n\t\t\t\t\t count++;\n\t\t\t\t\t tmpList.add(lastLevelVertex);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t }\n\t\t \n\t\t targetList=tmpList;\n\t\t \n\t\t if(count>max){\n\t\t \tmax=count;\n\t\t }\n\t }\n\t \n\t return max;\n\t}", "public int moves() {\n if (isSolvable())\n return _moves;\n else\n return -1;\n }", "private boolean makeMoveByMin(Mancala mancalaGame, int choice) {\n \r\n int length = mancalaGame.boardForA.length * 2 + 1;\r\n int[] tempArray = new int[length];\r\n \r\n int j = 0;\r\n for(int i = 0; i < mancalaGame.boardForA.length; i++) {\r\n tempArray[j++] = mancalaGame.boardForA[i];\r\n }\r\n tempArray[j++] = mancalaGame.countForA;\r\n for(int i = mancalaGame.boardForB.length - 1; i >= 0; i--) {\r\n tempArray[j++] = mancalaGame.boardForB[i];\r\n }\r\n \r\n // start from the index choice-1, and distribute\r\n \r\n j = choice;\r\n int lastIndex = -1;\r\n int count = tempArray[choice - 1];\r\n tempArray[choice - 1] = 0;\r\n \r\n while(count-- != 0) {\r\n lastIndex = j;\r\n tempArray[j]++;\r\n j++;\r\n if(j == length) {\r\n j = 0;\r\n }\r\n }\r\n \r\n // copy back everything into the game\r\n \r\n j = 0;\r\n for(int i = 0; i < mancalaGame.boardForA.length; i++) {\r\n mancalaGame.boardForA[i] = tempArray[j++];\r\n }\r\n mancalaGame.countForA = tempArray[j++];\r\n for(int i = mancalaGame.boardForB.length - 1; i >= 0; i--) {\r\n mancalaGame.boardForB[i] = tempArray[j++];\r\n }\r\n \r\n // determine capture\r\n \r\n if(lastIndex < mancalaGame.boardForA.length && lastIndex >= 0 && tempArray[lastIndex] == 1 && mancalaGame.boardForA[lastIndex] != 0) {\r\n mancalaGame.countForA += mancalaGame.boardForB[lastIndex];\r\n mancalaGame.countForA++;\r\n mancalaGame.boardForB[lastIndex] = 0;\r\n mancalaGame.boardForA[lastIndex] = 0;\r\n }\r\n \r\n // determine free turn\r\n \r\n if(lastIndex == Mancala.boardLength) {\r\n mancalaGame.turn = (mancalaGame.turn + 1) % 2;\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n \r\n }", "void lowerNumberOfStonesLeftToPlace();", "private void compareMove(int next){\n moveBuffer[0] = moveBuffer[1];//moveBuffer[0]=currentLocation,1 is next;\n moveBuffer[1] = next;\n if(moveBuffer[0]==moveBuffer[1]){\n flagbuffer0=0;\n return;\n }\n int currenti=0;int currentj=0;\n for ( int i = 0; i < 3; ++i ) {\n for ( int j = 0; j < 3; ++j ) {\n if ( maze[i][j] == moveBuffer[0] ) {\n currenti=i;\n currentj=j;\n break;// Found the correct i,j - print them or return them or whatever\n }\n }\n }\n int nexti=0;int nextj=0;\n for ( int i = 0; i < 3; ++i ) {\n for ( int j = 0; j < 3; ++j ) {\n if ( maze[i][j] == moveBuffer[1] ) {\n nexti=i;\n nextj=j;\n break;// Found the correct i,j - print them or return them or whatever\n }\n }\n }\n\n if( currenti== nexti){\n if(nextj > currentj && flagbuffer0==0){\n /*uiShowToast(\"Going right\");\n System.out.println(\"Going right\");\n this.sendCarMovement(\"R\");*/\n uiShowToast(\"Going right\");\n this.sendCarMovement(\"R\");\n try {\n Thread.sleep(550);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n this.sendCarMovement(\"U\"); flagbuffer0=1;\n }\n else if(nextj < currentj && flagbuffer0==0){\n uiShowToast(\"Going left\");\n this.sendCarMovement(\"L\");\n try {\n Thread.sleep(550);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n this.sendCarMovement(\"U\"); flagbuffer0=1;\n }\n else if(flagbuffer0==1){\n this.sendCarMovement(\"U\");\n }\n }\n if( currentj== nextj){\n if(nexti > currenti){\n /*uiShowToast(\"Going down\");\n System.out.println(\"Going down\");\n this.sendCarMovement(\"D\");*/\n uiShowToast(\"Going down\");\n flagbuffer0=0;\n this.sendCarMovement(\"L\");\n try {\n Thread.sleep(1100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n this.sendCarMovement(\"U\");\n\n }\n else if(nexti < currenti){\n /*uiShowToast(\"Going up\");\n System.out.println(\"Going up\");\n this.sendCarMovement(\"U\");*/\n uiShowToast(\"Going up\");\n flagbuffer0=0;\n this.sendCarMovement(\"U\");\n try {\n Thread.sleep(550);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n this.sendCarMovement(\"U\");\n }\n }\n /*if(movebuffer[0]==mvebuffer[1]){\n uiShowToast(\"Going up\");\n this.sendCarMovement(\"U\");\n try {\n Thread.sleep(550);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n this.sendCarMovement(\"U\");\n }else{\n\n }\n\n /*\n */\n /* Damon movement code\n if(moveBuffer[1] == 100 && moveBuffer[0] == 200){\n uiShowToast(\"Going left\");\n System.out.println(\"Going left\");\n this.sendCarMovement(\"L\");\n try {\n Thread.sleep(550);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n this.sendCarMovement(\"U\");\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }else{\n uiShowToast(\"Going up\");\n //Toast.makeText(getApplicationContext(), \"Going up\", Toast.LENGTH_LONG).show();\n System.out.println(\"Going up\");\n this.sendCarMovement(\"U\");\n try {\n Thread.sleep(2000);//wait 2 sec to next command;\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n */\n return;\n }", "private int countPossibleRoutes(){\n\tint totPossRoutes =0;\n\tfor(int i=0;i<ConditionTree.length;i++){\n\t\tif(ConditionTree[i][5].equals(\"Y\")){\n\t\t\ttotPossRoutes++;\n\t\t}\n\t}\n\t\n\treturn totPossRoutes;\n}", "private int lower_num_dfs (String high, int x, int y, boolean flg) {\n int int_flg = flg?1:0;\n if (x > y)\n return int_flg;\n if (dp[x][int_flg] != -1)\n return dp[x][int_flg];\n int total = 0;\n int x_num = high.charAt(x) - '0';\n int y_num = high.charAt(y) - '0';\n int x_l = judge_l(x_num);\n int x_le = judge_le(x_num);\n if (x == y) {\n if (flg)\n return dp[x][int_flg] = x_le;\n else\n return dp[x][int_flg] = x_l;\n }\n if (x == 0) {\n --x_l;\n --x_le;\n }\n if (x_l == x_le) {\n total = total + x_l * maxn_num(x + 1, y - 1);\n }\n else {\n total = total + x_l * maxn_num(x + 1, y - 1);\n if (y_num > x_num)\n total = total + lower_num_dfs(high, x + 1, y - 1, true);\n else if (y_num == x_num) {\n total = total + lower_num_dfs(high, x + 1, y - 1, flg);\n }\n else {\n total = total + lower_num_dfs(high, x + 1, y - 1, false);\n }\n }\n if (x_num > 6)\n total = total + maxn_num(x + 1, y - 1);\n else if (x_num == 6){\n if (y_num == 9) {\n total = total + lower_num_dfs(high, x + 1, y - 1, flg);\n }\n }\n if (x_num == 9) {\n if (y_num > 6)\n total = total + lower_num_dfs(high, x + 1, y - 1, true);\n else if (y_num == 6)\n total = total + lower_num_dfs(high, x + 1, y - 1, flg);\n }\n return dp[x][int_flg] = total;\n }", "int getSequenceStepsCount();", "@Override\n public int getMovingRange() {\n return MAX_MOVE_RANGE;\n }", "private int getFastForwardPages() {\r\n\t\tint pageSize = getPageSize();\r\n\t\treturn pageSize > 0 ? fastForwardRows / pageSize : 0;\r\n\t}", "private int[] defineStartingPos() {\n\t\tint[] positions = new int[4];\n\t\tif(initPos.equals(UP)) {\n\t\t\tpositions[0] = 0;\n\t\t\tpositions[1] = (size-1)/2;\n\t\t\tpositions[2] = 1;\n\t\t}else if(initPos.equals(DOWN)) {\n\t\t\tpositions[0] = size-1;\n\t\t\tpositions[1] = (size-1)/2;\n\t\t\tpositions[2] = -1;\n\t\t}else if(initPos.equals(LEFT)) {\n\t\t\tpositions[0] = (size-1)/2;\n\t\t\tpositions[1] = 0;\n\t\t\tpositions[3] = 1;\n\t\t}else if(initPos.equals(RIGHT)) {\n\t\t\tpositions[0] = (size-1)/2;\n\t\t\tpositions[1] = size-1;\n\t\t\tpositions[3] = -1;\n\t\t}\n\t\treturn positions;\n\t}", "int moveCount() {\r\n return _moveCount;\r\n }", "int moves() {\n return moves;\n }", "@Override\r\n\tpublic int move(int lastMove, int[] takenList, int depthLimit) \r\n\t{\r\n\t\tGameState myState = new GameState(takenList, lastMove);\r\n\t\tdouble maxValue = max_value(myState, depthLimit);\r\n\t\tint myBestMove = myState.bestMove;\r\n\t\tif (myState.leaf) //why did i do this\r\n\t\t{\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\treturn myBestMove;\r\n\t}", "@Override\r\n\tpublic double min_value(GameState s, int depthLimit)\r\n\t{\r\n\t\tdouble stateEvaluationValue = stateEvaluator(s);\r\n\t\r\n\t\tif (depthLimit == 0)\r\n\t\t{\r\n\t\t\treturn -(stateEvaluationValue);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdouble currMin = Double.POSITIVE_INFINITY;\r\n\t\t\tint bestMove = 0;\r\n\t\t\tArrayList <Integer> succList = generateSuccessors(s.lastMove, s.takenList);\r\n\t\t\tif (succList.isEmpty())\r\n\t\t\t{\r\n\t\t\t\ts.leaf = true;\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\t\t\tIterator <Integer> myItr = succList.iterator();\r\n\t\t\t\r\n\t\t\twhile (myItr.hasNext())\r\n\t\t\t{\r\n\t\t\t\tint currNumber = myItr.next();\r\n\t\t\t\t\r\n\t\t\t\tdouble tempMin = currMin;\r\n\t\t\t\tint [] newList = s.takenList;\r\n\t\t\t\tnewList [currNumber] = 2;\r\n\t\t\t\tGameState newGameState = new GameState(newList, currNumber);\r\n\t\t\t\tcurrMin = Math.min(currMin, max_value(newGameState, depthLimit - 1));\r\n\r\n\t\t\t\tif (currMin < tempMin)\r\n\t\t\t\t{\r\n\t\t\t\t\tbestMove = currNumber;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ts.bestMove = bestMove;\r\n\t\t\treturn currMin;\r\n\r\n\t\t}\r\n\t}", "static int countWays(int s, int m) \n\t { \n\t return countWaysUtil(s+1, m); \n\t }", "private int minPosition(int from) throws InterruptedException{\n\t\tint minPos = from;\n\t\tfor (int i = from + 1; i < a.length; i++){\n\t\t\tsortStateLock.lock();\n\t\t\ttry{\n\t\t\t\tif (a[i] < a[minPos]) minPos = i;\n\t\t\t // For animation\n\t\t\t markedPosition = i;\n\t\t }\n\t\t\tfinally\n\t\t {\n\t\t\t\tsortStateLock.unlock();\n\t\t }\n\t\t pause(2);\n\t }\n\t return minPos;\n }", "public boolean getMoveRemainingStartsForward()\r\n {\r\n return (m_moveRemainingStartsForward);\r\n }", "public void incrementMoves()\n {\n moves ++;\n }", "private int findDepth(int m) {\n\t\t\tint number = 0;\n\t\t\tif(m > size-1) throw new IllegalArgumentException(\"Out of range.\");\n\t\t\twhile(m != array[m]) {\n\t\t\t\tm = array[m];\n\t\t\t\tnumber++;\n\t\t\t}\n\t\t\treturn number;\n\t\t}", "static int minStepToReachTarget(int knightPos[], int targetPos[], int N) {\n // x and y direction, where a knight can move\n int dx[] = {-2, -1, 1, 2, -2, -1, 1, 2};\n int dy[] = {-1, -2, -2, -1, 1, 2, 2, 1};\n\n // queue for storing states of knight in board\n Queue<Cell> q = new LinkedList<>();\n\n // push starting position of knight with 0 distance\n q.add(new Cell(knightPos[0], knightPos[1], 0));\n\n Cell t;\n int x, y;\n boolean[][] visit = new boolean[N + 1][N + 1];\n\n // loop untill we have one element in queue\n while (!q.isEmpty()) {\n t = q.poll();\n if (visit[t.x][t.y]) \n continue;\n visit[t.x][t.y] = true;\n\n // if current cell is equal to target cell,\n // return its distance\n if (t.x == targetPos[0] && t.y == targetPos[1]) {\n return t.dis;\n }\n\n // loop for all reahable states\n for (int i = 0; i < 8; i++) {\n x = t.x + dx[i];\n y = t.y + dy[i];\n\n // If rechable state is not yet visited and\n // inside board, push that state into queue\n if (isInside(x, y, N) && !visit[x][y]) {\n q.add(new Cell(x, y, t.dis + 1));\n }\n }\n }\n return 0;\n }", "public int moves()\n {\n return moves;\n }", "public String canWalkExactly(int N, int[] from, int[] to) {\n isVisited = new boolean[N];\n steps = new int[N];\n minSteps = new int[N];\n path = new Stack<>();\n adj = new ArrayList<>(N);\n allSCC = new ArrayList<>();\n for (int i = 0; i < N; i++)\n adj.add(new ArrayList<>());\n\n // populate adj based on from, to\n for (int i = 0; i < from.length; i++) {\n adj.get(from[i]).add(to[i]);\n }\n\n totalSteps = 0;\n Arrays.fill(isVisited, false);\n Arrays.fill(steps, UNVISITED);\n Arrays.fill(minSteps, UNVISITED);\n tarjanSCC(0);\n\n // check if 0 and 1 are in the same scc\n System.out.println(\"CHECKING\");\n boolean found = false;\n for (List<Integer> scc : allSCC) {\n if (scc.contains(0) && scc.contains(1)) {\n found = true;\n break;\n }\n }\n if (!found) return NO;\n// if(minSteps[0] != minSteps[1]) return NO;\n System.out.println(\"0 and 1 in the same scc\");\n /*\n Check if gcd of the length of all simple cycles is 1\n by checking if it is an aperiodic graph\n https://en.wikipedia.org/wiki/Aperiodic_graph\n */\n depths = new int[N];\n Arrays.fill(depths, UNVISITED);\n depths[0] = 0;\n findDepths(0);\n\n int res = -1;\n for (int i = 0; i < from.length; i++) {\n int s = from[i];\n int t = to[i];\n if (depths[s] == UNVISITED || depths[t] == UNVISITED) continue;\n int len = depths[t] - depths[s] - 1;\n if (len == 0) continue;\n if (len < 0) len *= -1;\n if (res == -1) res = len;\n else res = gcd(res, len);\n }\n\n return res == 1 ? YES : NO;\n }", "static int minSteps(int n, String B){\n // Complete this function\n int count=0;\n for(int i=0;i<n-2;i++){\n int j=i+1;\n int k=j+1;\n if(B.charAt(i) == '0' && B.charAt(j) == '1' && B.charAt(k) == '0'){\n count++;\n i=i+2;\n }\n }\n return count;\n }", "public int numberOfPatterns(int m, int n) {\n int[][] skips = new int[10][10];\n \n skips[1][3] = skips[3][1] = 2;\n skips[7][9] = skips[9][7] = 8;\n skips[1][7] = skips[7][1] = 4;\n skips[3][9] = skips[9][3] = 6;\n skips[1][9] = skips[9][1] = skips[3][7] = skips[7][3] = skips[2][8] = skips[8][2] = skips[4][6] = skips[6][4] = 5;\n \n //since we only have 1 - 9 buttons, we use a boolean array to record visited information\n boolean[] visited = new boolean[10];\n \n int result = 0;\n \n for(int i = m; i <= n; i++){\n //test 1, 3, 7, 9\n visited[3] = true;\n result += DFS(i - 1, 3, skips, visited) * 4;\n visited[3] = false;\n \n //test 2, 4, 6, 8\n visited[2] = true;\n result += DFS(i - 1, 2, skips, visited) * 4;\n visited[2] = false;\n \n //test 5\n visited[5] = true;\n result += DFS(i - 1, 5, skips, visited);\n visited[5] = false; \n }\n \n return result;\n }", "static int howManyGames(int p, int d, int m, int s) {\n // Return the number of games you can buy\n int res = 0;\n int cost = p;\n if(p > s){\n return 0;\n }\n if(p == s){\n return 1;\n }\n while(cost>=m && s>0 && !(s<m) && s>=cost){\n if(s>=m){\n s = s-cost;\n res++;\n\n if(cost == m)\n cost = cost-m;\n else\n cost = cost-d;\n }\n if(cost <=m){\n cost = m;\n }\n }\n return res;\n }", "public void countAdjacentMines()\n {\n adjacentMines = 0;\n for (GameSquare square : getAdjacentSquares())\n {\n if (square.mine)\n {\n adjacentMines++;\n }\n }\n }", "int stepsToGo();", "public static int getNeighborhoodNumber(Move[] moves, Move[] possibleMoves)\n\t{\n\t\tint counter = 0;\n\t\tint number = -1;\n\t\tfor (int i=0; i<possibleMoves.length-2; i++)\n\t\t{\n\t\t\tfor (int j=i+1; j<possibleMoves.length-1; j++)\n\t\t\t{\n\t\t\t\tfor (int k=j+1; k<possibleMoves.length; k++)\n\t\t\t\t{\n\t\t\t\t\tif (Arrays.asList(moves).contains(possibleMoves[i]) && Arrays.asList(moves).contains(possibleMoves[j]) && Arrays.asList(moves).contains(possibleMoves[k]))\n\t\t\t\t\t{\n\t\t\t\t\t\tnumber = counter;\n\t\t\t\t\t}\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn number;\n\t}", "private int findAcessess(int m) {\n\t\t\tint number = 0;\n\t\t\tif(m > size-1) throw new IllegalArgumentException(\"Out of range.\");\n\t\t\twhile(m != array[m]) {\n\t\t\t\tm = array[m];\n\t\t\t\tnumber+=2;\n\t\t\t}\n\t\t\treturn ++number;\n\t\t}", "private int searchNext(JmtCell prev) {\r\n \t\tRectangle boundspadre = GraphConstants.getBounds((prev).getAttributes()).getBounds();\r\n \t\tObject[] listEdges = null;\r\n \t\tGraphModel graphmodel = graph.getModel();\r\n \t\tList<Object> next = new ArrayList<Object>();\r\n \r\n \t\tif (flag1 == false && prev.seen == false) {\r\n \r\n \t\t\t// Rectangle bounds =\r\n \t\t\t// GraphConstants.getBounds(((JmtCell)prev).getAttributes()).getBounds();\r\n \t\t\tif (!flag2) {\r\n \t\t\t\tboundspadre.setLocation(x, y + ((e + 1) * (42 + heightMax)) - (int) (boundspadre.getHeight() / 2) + 30);\r\n \t\t\t} else {\r\n \t\t\t\tboundspadre.setLocation(x - (int) (boundspadre.getWidth() / 2), y + ((e + 1) * (42 + heightMax))\r\n \t\t\t\t\t\t- (int) (boundspadre.getHeight() / 2) + 30);\r\n \t\t\t}\r\n \r\n \t\t\tGraphConstants.setBounds(prev.getAttributes(), boundspadre);\r\n \t\t\tx = (int) boundspadre.getCenterX() + widthMax + 50;\r\n \t\t\tprev.seen = true;\r\n \t\t\tflag2 = true;\r\n \t\t}\r\n \r\n \t\t// inserisco tutti gli archi uscenti e entranti di min.get(j) in\r\n \t\t// listEdges\r\n \t\tlistEdges = DefaultGraphModel.getOutgoingEdges(graphmodel, prev);\r\n \t\tVector<Object> listEdgestmp = new Vector<Object>();\r\n \t\tfor (Object listEdge : listEdges) {\r\n \t\t\tJmtCell qq = (JmtCell) (graphmodel.getParent(graphmodel.getTarget(listEdge)));\r\n \t\t\tif (!(qq).seen) {\r\n \t\t\t\tlistEdgestmp.add(listEdge);\r\n \t\t\t}\r\n \t\t}\r\n \t\tlistEdges = listEdgestmp.toArray();\r\n \r\n \t\tint numTarget = listEdges.length;\r\n \t\tif (numTarget == 0) {\r\n \t\t\treturn 1;\r\n \t\t}\r\n \r\n \t\tfor (int k = 0; k < numTarget; k++) {\r\n \t\t\tnext.add((graphmodel.getParent(graphmodel.getTarget(listEdges[k]))));\r\n \t\t}\r\n \r\n \t\tint j = 1;\r\n \t\tif (inRepositionSons == false && ((JmtCell) next.get(0)).seen == false) {\r\n \t\t\tj = searchNext((JmtCell) next.get(0));\r\n \t\t} else if (inRepositionSons == true && ((JmtCell) next.get(0)).seen == false) {\r\n \r\n \t\t\tRectangle bounds = GraphConstants.getBounds(((JmtCell) next.get(0)).getAttributes()).getBounds();\r\n \t\t\tbounds.setLocation((int) (boundspadre.getCenterX()) + widthMax + 50 - (int) (bounds.getWidth() / 2), (int) boundspadre.getCenterY()\r\n \t\t\t\t\t- (int) (bounds.getHeight() / 2));\r\n \t\t\tGraphConstants.setBounds(((JmtCell) next.get(0)).getAttributes(), bounds);\r\n \r\n \t\t\t((JmtCell) next.get(0)).seen = true;\r\n \t\t\tj = searchNext((JmtCell) next.get(0));\r\n \t\t}\r\n \r\n \t\tif (numTarget > 0) {\r\n \t\t\tif (!flag) {\r\n \t\t\t\trepositionSons(prev, next, j - 1, 1);\r\n \t\t\t} else {\r\n \t\t\t\trepositionSons(prev, next, -1, 0);\r\n \t\t\t}\r\n \t\t\tflag = false;\r\n \t\t}\r\n \r\n \t\t(prev).sons = 0;\r\n \t\tfor (int w = 0; w < numTarget; w++) {\r\n \t\t\tprev.sons += ((JmtCell) next.get(w)).sons;\r\n \t\t}\r\n \r\n \t\treturn prev.sons;\r\n \t}", "public int getGuessesLeft() {\r\n return 0;\r\n }", "private int pagesLeft() {\n return this.pages - this.pagesRead;\n }", "public int longestIncreasingPath(int[][] matrix) {\n if (matrix == null || matrix.length == 0 || matrix[0] == null || matrix[0].length == 0) {\n return 0;\n }\n int m = matrix.length;\n int n = matrix[0].length;\n int[][] directions = new int[][]{{-1, 0}, {1, 0}, {0, -1}, {0, 1}};\n Map<Integer, Integer> map = new HashMap<>();\n Queue<Integer> queue = new LinkedList<>();\n //count indegree\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n int index = i * n + j;\n for (int[] dir : directions) {\n int x = i + dir[0], y = j + dir[1];\n if (x >= 0 && x < m && y >= 0 && y < n && matrix[x][y] < matrix[i][j]) {\n if (map.containsKey(index)) {\n map.put(index, map.get(index) + 1);\n } else {\n map.put(index, 1);\n }\n }\n }\n }\n }\n //find nodes whose indegree is zero\n for (int i = 0; i < m * n; i++) {\n if (!map.containsKey(i)) {\n queue.offer(i);\n }\n }\n int layers = 0;\n while (!queue.isEmpty()) {\n int size = queue.size();\n for (int k = 0; k < size; k++) {\n int index = queue.poll();\n int i = index / n, j = index % n;\n for (int[] dir : directions) {\n int x = i + dir[0], y = j + dir[1];\n if (x >= 0 && x < m && y >= 0 && y < n && matrix[x][y] > matrix[i][j]) {\n int neighbor = x * n + y;\n map.put(neighbor, map.get(neighbor) - 1);\n if (map.get(neighbor) == 0) {\n queue.offer(neighbor);\n }\n }\n }\n }\n layers++;\n }\n return layers;\n }", "void lowerNumberOfStonesOnBoard();", "private boolean isLeftWalkableG(int i, int j) {\n\tif (j == 0) {\n\t\treturn false;\n\t} else {\n\t\treturn (mapElementStringArray[i][j - 1].equals(\" \")||mapElementStringArray[i][j - 1].equals(\"P\")\n\t\t\t\t|| mapElementStringArray[i][j - 1].equals(\"S\") || mapElementStringArray[i][j - 1]\n\t\t\t\t.equals(\"U\")||mapElementStringArray[i][j - 1].equals(\"T\")||mapElementStringArray[i][j - 1].equals(\"G\")\n\t\t\t\t||mapElementStringArray[i][j - 1].equals(\"B\"));\n\t}\n}", "private static int topHelper(int [][] aggHoriz, int start, int maxm) {\r\n int h = aggHoriz.length;\r\n for (int i = start; i < h - margin / 2; i++) {\r\n if (aggHoriz[i][0] - Math.min(aggHoriz[i - 1][0], aggHoriz[i - 2][0]) > 20\r\n && aggHoriz[i][0] > maxm) {\r\n int result = i;\r\n int found = aggHoriz[i][0];\r\n for (int j = i + 1; j < h; j++) {\r\n if (aggHoriz[j][0] < aggHoriz[j - 1][0]) {\r\n return result;\r\n } else if (aggHoriz[j][0] > found) {\r\n found = aggHoriz[j][0];\r\n result = j;\r\n }\r\n }\r\n return i;\r\n }\r\n }\r\n return 0;\r\n }", "static int countWaysUtil(int n, int m) \n\t { \n\t int res[] = new int[n]; \n\t res[0] = 1; res[1] = 1; \n\t for (int i=2; i<n; i++) \n\t { \n\t res[i] = 0; \n\t for (int j=1; j<=m && j<=i; j++) \n\t res[i] += res[i-j]; \n\t } \n\t return res[n-1]; \n\t }", "public int howManyUnitsUp(){\n return undoStack.size();\n }", "public abstract Move launchMinMax();", "private static int maximum() {\n\t\tint popSize = 0;\n\t\tChromosome thisChromo = null;\n\t\tChromosome thatChromo = null;\n\t\tint winner = 0;\n\t\tboolean foundNewWinner = false;\n\t\tboolean done = false;\n\n\t\twhile (!done) {\n\t\t\tfoundNewWinner = false;\n\t\t\tpopSize = population.size();\n\t\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\t\tif (i != winner) { // Avoid self-comparison.\n\t\t\t\t\tthisChromo = population.get(i);\n\t\t\t\t\tthatChromo = population.get(winner);\n\t\t\t\t\tif (thisChromo.conflicts() > thatChromo.conflicts()) {\n\t\t\t\t\t\twinner = i;\n\t\t\t\t\t\tfoundNewWinner = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (foundNewWinner == false) {\n\t\t\t\tdone = true;\n\t\t\t}\n\t\t}\n\t\treturn winner;\n\t}", "public int getSegsLeft(){\r\n return segsLeft;\r\n }" ]
[ "0.5949617", "0.59326047", "0.5855715", "0.5849195", "0.5809205", "0.57845145", "0.5775062", "0.5736084", "0.56747365", "0.56082606", "0.5579226", "0.55245566", "0.55239", "0.55012524", "0.546307", "0.54619676", "0.54412544", "0.54217964", "0.5418754", "0.5417034", "0.5408428", "0.5380632", "0.5320413", "0.53042066", "0.5292434", "0.5277656", "0.52745825", "0.5249885", "0.52426875", "0.5222109", "0.52213675", "0.52187234", "0.52121276", "0.5208105", "0.52038664", "0.5190464", "0.51867455", "0.51604176", "0.51352507", "0.5128102", "0.5123062", "0.512", "0.51191944", "0.51138973", "0.5094995", "0.5088597", "0.5087998", "0.50870174", "0.50758064", "0.50741744", "0.50736344", "0.50625134", "0.50607365", "0.50546545", "0.50458103", "0.5043555", "0.50364256", "0.50364256", "0.50302935", "0.50188136", "0.5017515", "0.5016452", "0.5006222", "0.5003043", "0.50000006", "0.4997294", "0.4989929", "0.49895695", "0.4989018", "0.49776086", "0.4975951", "0.49753687", "0.4972835", "0.49667504", "0.4964712", "0.49530703", "0.49508414", "0.49445975", "0.49405667", "0.49400935", "0.49380016", "0.4937749", "0.49236926", "0.4917431", "0.49057445", "0.4904641", "0.49039966", "0.48945317", "0.4885994", "0.48777556", "0.4869928", "0.48646185", "0.48597664", "0.4843627", "0.48413476", "0.48337305", "0.4830161", "0.48297837", "0.48202625", "0.48196036", "0.48104185" ]
0.0
-1
Constructor with the mandatory fields, used by Spring/Jackson to create the object. Any nonmandatory fields are set as Optional.empty and later set using the setter.
@JsonCreator(mode = JsonCreator.Mode.DEFAULT) private UpdateTransaction() { this.sourceId = Optional.empty(); this.type = Optional.empty(); this.description = Optional.empty(); this.balance = Optional.empty(); this.inputDate = Optional.empty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@JsonCreator(mode = JsonCreator.Mode.DEFAULT)\n private UpdateProfile() {\n this.name = Optional.empty();\n this.balance = Optional.empty();\n this.status = Optional.empty();\n }", "public JSONBuilder() {\n\t\tthis(null, null);\n\t}", "public User() {\n username = null;\n password = null;\n email = null;\n firstName = null;\n lastName = null;\n gender = null;\n personID = null;\n }", "public Customer()\n{\n this.firstName = \"noFName\";\n this.lastName = \"noLName\";\n this.address = \"noAddress\";\n this.phoneNumber = 0;\n this.emailAddress = \"noEmail\";\n \n}", "private void fillMandatoryFields() {\n\n }", "public Person() {\r\n setPersonID(null);\r\n setAssocUserName(null);\r\n setFirstName(null);\r\n setLastName(null);\r\n setGender(null);\r\n setFatherID(null);\r\n setMotherID(null);\r\n setSpouseID(null);\r\n }", "public PickUpCasualtyRequest() {\n\n // empty\n }", "private Optional() {\r\n\t\tthis.value = null;\r\n\t}", "public NullableResponse() {\n\t}", "public Option() {\n setAutoFields();\n }", "public JsonField() {\n }", "public Person() {\n\t\tname \t= \"\";\n\t\taddress = \"\";\n\t\tcity \t= \"\";\n\t\tage \t= 0;\n\t}", "public User()\n\t{\n\t\tfirstName = \"\";\n\t\tlastName = \"\";\n\t\tusername = \"\";\n\t\tpassword = \"\";\n\t}", "@Test\n public void goalEmptyConstructorCustomSetters_isCorrect() throws Exception {\n\n int goalId = 12135;\n int userId = 1152;\n String name = \"Test Name\";\n int timePeriod = 1;\n int unit = 2;\n double amount = 1000.52;\n\n //Create goal\n Goal goal = new Goal();\n\n goal.setGoalId(goalId);\n goal.setUserId(userId);\n goal.setGoalName(name);\n goal.setTimePeriod(timePeriod);\n goal.setUnit(unit);\n goal.setAmount(amount);\n\n // Verify Values\n assertEquals(goalId, goal.getGoalId());\n assertEquals(userId, goal.getUserId());\n assertEquals(name, goal.getGoalName());\n assertEquals(timePeriod, goal.getTimePeriod());\n assertEquals(unit, goal.getUnit());\n assertEquals(amount, goal.getAmount(),0);\n }", "public Address()\n\t{\n\t\tCity = \"?\";\n\t\tState = \"?\";\n\t}", "@Test\n public void userEmptyConstructorCustomSetters_isCorrect() throws Exception {\n\n int id = 123456;\n int pin_hash = 98745;\n int pin = 9876;\n String salt = \"test salt\";\n String username = \"testUsername\";\n int firstTime = 0;\n String budget = \"test\";\n int hasPin = 1;\n\n //Create empty user\n User user = new User();\n\n //Use setters to set values\n user.setId(id);\n user.setPin_hash(pin_hash);\n user.setPin(pin);\n user.setSalt(salt);\n user.setUsername(username);\n user.setFirstTime(firstTime);\n user.setBudget(budget);\n user.setHasPin(hasPin);\n\n // Verify Values\n assertEquals(id, user.getId());\n assertEquals(pin_hash, user.getPin_hash());\n assertEquals(pin, user.getPin());\n assertEquals(salt, user.getSalt());\n assertEquals(username, user.getUsername());\n assertEquals(firstTime, user.getFirstTime());\n assertEquals(budget, user.getBudget());\n assertEquals(hasPin, user.getHasPin());\n }", "public User(){\r\n this.id = 0;\r\n this.firstName = null;\r\n this.lastName = null;\r\n }", "public ParamJson() {\n\t\n\t}", "public PropertySellerDetailDTO() {\n\n\t}", "public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }", "@Test\n public void billEmptyConstructorCustomSetters_isCorrect() throws Exception {\n\n int billId = 100;\n String billName = \"test Bill\";\n int userId = 101;\n int accountId = 202;\n double billAmount = 300.25;\n String dueDate = \"02/02/2018\";\n int occurrenceRte = 1;\n\n //Create empty bill\n Bill bill = new Bill();\n\n //Set the values\n bill.setBillId(billId);\n bill.setBillName(billName);\n bill.setUserId(userId);\n bill.setAccountId(accountId);\n bill.setBillAmount(billAmount);\n bill.setDueDate(dueDate);\n bill.setOccurrenceRte(occurrenceRte);\n\n // Verify Values\n assertEquals(billId, bill.getBillId());\n assertEquals(billName, bill.getBillName());\n assertEquals(userId, bill.getUserId());\n assertEquals(accountId, bill.getAccountId());\n assertEquals(billAmount, bill.getBillAmount(), 0);\n assertEquals(dueDate, bill.getDueDate());\n assertEquals(occurrenceRte, bill.getOccurrenceRte());\n }", "protected User(){\n this.username = null;\n this.password = null;\n this.accessLevel = null;\n this.name = DEFAULT_NAME;\n this.telephone = DEFAULT_TELEPHONE;\n this.email = DEFAULT_EMAIL;\n }", "public User() {\r\n this(\"\", \"\");\r\n }", "public User() {\r\n\t\tuName = null;\r\n\t\tpassword = null;\r\n\t\tfullName = null;\r\n\t\tphone = null;\r\n\t\temail = null;\r\n\t}", "public void initialiseValues() {\n\t\tif (validationRule == null) { // NOSONAR\n\t\t\tvalidationRule = Optional.empty();\n\t\t}\n\t}", "public void initDefaultValues() {\n setOrderActive(1);\n setProductQuantity(1);\n setBillingPhone1Blocked(0);\n setBillingPhone2Blocked(0);\n setOrderAvailabilityStatus(1);\n setDeliveryStatus(1);\n setMailedReminderToVendorStatus(0);\n setOrderCancelRequestStatus(0);\n setOrderCancellationToVendorStatus(0);\n setDisputeRaisedStatus(0);\n setOrderAcceptNewsletter(1);\n setOrderAcceptPromotionalMaterial(1);\n setBillingAdvanceAmount(0);\n setBillingBalanceAmount(0);\n setBillingGrossAmount(0f);\n setBillingMarginAmount(0f);\n setBillingNettCost(0f);\n setBillingPaymentGatewayRate(0f);\n setBillingStateId(0);\n setBillingTaxrate(0f);\n setBillingTotalAmount(0f);\n setCarYear(0);\n setCustomint1(0);\n setCustomint2(0);\n setCustPaymentMode(0);\n setCustPaymentStatus(0);\n setInvoiceId(0);\n setVendorPaymentMode(0);\n setShipmentRate(0);\n setShipmentCountryId(0);\n setShipmentCityId(0);\n setOrderType(0);\n setOrderStatus(0);\n setOrderRefundType(0);\n setOrderPriority(0);\n setOrderBulkType(0);\n setOrderCorporateType(0);\n setShipmentCityId(0);\n setShipmentCountryId(0);\n setShipmentRate(0f);\n setShipmentStateId(0);\n setOrderCancellationType(0);\n }", "public NameDTO() {\r\n this.firstName = \"\";\r\n this.lastName = \"\";\r\n }", "public Car () {\n\n Make = \"\";\n Model = \"\";\n Year = 2017;\n Price = 0.00;\n }", "public PaymentDetailPojo() {\n }", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "public Car()\n {\n \tsuper();\n bodyType = null;\n noOfDoors = 0;\n noOfSeats = 0;\n }", "public User(){\n this(null, null);\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public Book()\n {\n title = null;\n author = null;\n }", "public Person() {\r\n\t\tid = \"00000\";\r\n\t\tfName = \"unknown\";\r\n\t\tlName = \"unknown\";\r\n\t\tbirthday = LocalDate.now();\r\n\t\tphone = \"unknown\";\r\n\t\tstatus = \"unknown\";\r\n\t\tcontacts = new ArrayList<String>();\r\n\t}", "public Customer(@NotBlank(message = \"Name can't be blank\") String name, @NotBlank(message = \"Surname can't be blank\") String surname, @NotBlank(message = \"Phone can't be blank\") String phone, @NotNull(message = \"Date of birth can't be blank\") LocalDate dateOfBirth, int numberOfOffices, @NotNull(message = \"level of privilege can't be blank\") int levelOfPrivilege) {\n super(name, surname, phone, dateOfBirth);\n this.numberOfOffices = numberOfOffices;\n this.levelOfPrivilege = levelOfPrivilege;\n }", "@Test\n public void purchaseEmptyConstructorCustomSetters_isCorrect() throws Exception {\n\n int purchaseId = 41;\n int userId = 99;\n int accountId = 6541;\n double price = 99.99;\n String date = \"02/19/2019\";\n String time = \"12:12\";\n String category = \"test category\";\n String location = \"test location\";\n String comment = \"test comment\";\n\n //Create empty purchase\n Purchase purchase = new Purchase();\n\n //Use setter to set values\n purchase.setPurchaseId(purchaseId);\n purchase.setUserId(userId);\n purchase.setAccountId(accountId);\n purchase.setPrice(price);\n purchase.setDate(date);\n purchase.setTime(time);\n purchase.setCategory(category);\n purchase.setLocation(location);\n purchase.setComment(comment);\n\n // Verify Values\n assertEquals(purchaseId, purchase.getPurchaseId());\n assertEquals(userId, purchase.getUserId());\n assertEquals(accountId, purchase.getAccountId());\n assertEquals(price, purchase.getPrice(), 0);\n assertEquals(date, purchase.getDate());\n assertEquals(time, purchase.getTime());\n assertEquals(category, purchase.getCategory());\n assertEquals(location, purchase.getLocation());\n assertEquals(comment, purchase.getComment());\n }", "public void initialize() {\n\n fechaDeLaVisita.set(LocalDate.now());\n\n if (medico.get() != null) {\n medico.get().clear();\n } else {\n medico.set(new Medico());\n }\n\n turnoVisita.set(\"\");\n visitaAcompanadaSN.set(false);\n lugarVisita.set(\"\");\n if (causa.get() != null) {\n causa.get().clear();\n } else {\n causa.set(new Causa());\n }\n\n if (promocion.get() != null) {\n promocion.get().clear();\n } else {\n promocion.set(new Promocion());\n }\n\n observacion.set(\"\");\n persistida.set(false);\n persistidoGraf.set(MaterialDesignIcon.SYNC_PROBLEM.graphic());\n\n fechaCreacion.set(LocalDateTime.now());\n\n }", "public AbstractRequestParser()\n {\n super();\n \n //set flag\n this.initialized=false;\n }", "public CreateOrderRequest() {\n\t\t_pcs = new PropertyChangeSupport(this);\n\t}", "public User()\r\n\t{\r\n\t\tthis.userId = 0;\r\n\t\tthis.userName = \"\";\r\n\t\tthis.role = \"\";\r\n\t\tthis.firstName = \"\";\r\n\t\tthis.lastName = \"\";\r\n\t\tthis.emailAddress = \"\";\r\n\t\tthis.streetAddress = \"\";\r\n\t\tthis.city = \"\";\r\n\t\tthis.state = \"\";\r\n\t\tthis.zip = 0;\r\n\t\tthis.country = \"\";\r\n\t}", "private void init() {\n FieldWrapper id = new FieldWrapper();\n id.fieldDescription = new HashMap<String, Object>();\n id.fieldDescription.put(\"fullName\", \"Id\");\n id.fieldDescription.put(\"type\", \"Text\");\n\n FieldWrapper name = new FieldWrapper();\n name.fieldDescription = new HashMap<String, Object>();\n name.fieldDescription.put(\"fullName\", \"Name\");\n\n FieldWrapper createdBy = new FieldWrapper();\n createdBy.fieldDescription = new HashMap<String, Object>();\n createdBy.fieldDescription.put(\"fullName\", \"CreatedBy\");\n createdBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper lastModifiedBy = new FieldWrapper();\n lastModifiedBy.fieldDescription = new HashMap<String, Object>();\n lastModifiedBy.fieldDescription.put(\"fullName\", \"LastModifiedBy\");\n lastModifiedBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper owner = new FieldWrapper();\n owner.fieldDescription = new HashMap<String, Object>();\n owner.fieldDescription.put(\"fullName\", \"Owner\");\n owner.fieldDescription.put(\"type\", \"Lookup\");\n\n fieldDescribe = new HashMap<String, FieldWrapper>();\n\n fieldDescribe.put((String) id.fieldDescription.get(\"fullName\"), id);\n fieldDescribe.put((String) name.fieldDescription.get(\"fullName\"), name);\n fieldDescribe.put((String) createdBy.fieldDescription.get(\"fullName\"), createdBy);\n fieldDescribe.put((String) lastModifiedBy.fieldDescription.get(\"fullName\"), lastModifiedBy);\n fieldDescribe.put((String) owner.fieldDescription.get(\"fullName\"), owner);\n }", "public MyPractice()\n\t{\n\t\t//Unless we specify values all data members\n\t\t//are a zero, false, or null\n\t}", "public BaseModel initObj() {\n\t\treturn null;\n\t}", "public Builder()\n {\n this(\"\", \"\");\n }", "public Person()\n {\n this.name = \"John Doe\";\n this.address = \"1234 Somewhere Dr.\";\n this.phoneNumber = \"309-555-1234\";\n this.emailAddress = \"[email protected]\";\n }", "@Override\n\tprotected void initializeFields() {\n\n\t}", "public Person()\n {\n //intentionally left empty\n }", "public Order() {\n orderID = \"\";\n customerID = \"\";\n status = \"\";\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic UserSerializer() {\n\t\tsuper();\n\t\tmapSerializer.putAll(BeanRetriever.getBean(\"mapSerializerStrategy\", Map.class));\n\t}", "@Override\n\tpublic void setMandatory(boolean mandatory) {\n\t\t\n\t}", "public Field() {\r\n\t}", "public Customer() // default constructor to initialize data\r\n\t{\r\n\t\tthis.address = null;\r\n\t\tthis.name = null;\r\n\t\tthis.phoneNumber = null;\r\n\t\t// intializes the data\r\n\t}", "public JsonObject()\n\t{\n\t\tsuper(ParserUtil.OBJECT_OPEN, ParserUtil.OBJECT_CLOSE);\n\t\tsetup();\n\t}", "public Book() {\n\t\ttitle = null;\n\t\tauthor = null;\n\t}", "public NewDocumentRequestDto() {\n }", "public Pojo1110110(){\r\n\t}", "private void fillMandatoryFields_custom() {\n\n }", "public ProposalSpecialReviewForm() {\r\n }", "public User(){\n userOptionalInfoList = new ArrayList<>();\n workHistoryList = new ArrayList<>();\n educationHistoryList = new ArrayList<>();\n setState(AccountState.PENDING_APPROVAL);\n }", "private Request() {\n initFields();\n }", "public Builder clearRequired() {\n bitField0_ = (bitField0_ & ~0x00000002);\n required_ = false;\n onChanged();\n return this;\n }", "public DefaultObjectModel ()\n {\n this (new Schema ());\n }", "public Person()\n\t{\n\t\tthis.age = -1;\n\t\tthis.name = \"Unknown\";\n\t}", "@Test\n public void constructorSetsEmptyExtra()\n {\n //act\n ProductInfo actual = new ProductInfo();\n\n //assert\n assertEquals(\"\", Deencapsulation.getField(actual, \"extra\"));\n }", "public PromotionVoucherModel()\n\t{\n\t\tsuper();\n\t}", "public UserParameter() {\n }", "public Employee(){\n this.employeeName = new String();\n this.employeeSalary = null;\n this.employeeProjectList = new ArrayList<String>();\n this.employeeDepartmentLead = new String();\n }", "private Optional(T value) {\r\n\t\tthis.value = Objects.requireNonNull(value);\r\n\t}", "public XxGamMaPaymentReqVOImpl() {\n }", "public ProdutoDTO()\n {\n super();\n }", "@Test\n public void constructorDefault() {\n final CourseType courseType = new CourseType();\n\n assertNull(courseType.getId());\n assertNull(courseType.getName());\n assertNull(courseType.getPicture());\n assertNull(courseType.getPosition());\n assertNull(courseType.getStatus());\n assertNull(courseType.getCourses());\n assertNull(courseType.getAllowedDishes());\n }", "public ObjectSchema() {\n }", "public Property() {\n\t\tcity=\"\";\n\t\towner=\"\";\n\t\tpropertyName=\"\";\n\t\trentAmount=0;\n\t\tplot= new Plot(0,0,1,1);\n\t}", "@Before\n public void init() {\n user = new User();\n user.setId(5);\n user.setUsername(\"username\");\n user.setPassword(\"password\");\n user.setName(\"name\");\n user.setSurname(\"surname\");\n user.setCityId(1);\n user.setEmail(\"[email protected]\");\n user.setPhone(\"phone...\");\n JacksonTester.initFields(this, new ObjectMapper());\n }", "public JsonFactory() { this(null); }", "public Customer() {\n name = \"N.A.\";\n surname = \"N.A.\";\n address = \"N.A.\";\n email = \"N.A.\";\n }", "public InvoiceModel() {\n \n }", "public QBXMLRequest() {\n }", "public BoletoPaymentRequest() {\n\n }", "public void initializeDefault() {\n\t\tthis.numAuthorsAtStart = 5;\n\t\tthis.numPublicationsAtStart = 20;\n\t\tthis.numCreationAuthors = 0;\n\t\tthis.numCreationYears = 10;\n\n\t\tyearInformation = new DefaultYearInformation();\n\t\tyearInformation.initializeDefault();\n\t\tpublicationParameters = new DefaultPublicationParameters();\n\t\tpublicationParameters.initializeDefault();\n\t\tpublicationParameters.setYearInformation(yearInformation);\n\t\tauthorParameters = new DefaultAuthorParameters();\n\t\tauthorParameters.initializeDefault();\n\t\ttopicParameters = new DefaultTopicParameters();\n\t\ttopicParameters.initializeDefault();\n\t}", "public UBERequest() {\r\n }", "void initializeMandatorySectionFields();", "@Test\n public void incomeEmptyConstructorCustomSetters_isCorrect() throws Exception {\n\n int incomeId = 100;\n int userId = 502;\n int accountId = 300;\n String incomeName = \"test income name\";\n double amount = 520.35;\n String date = \"02/02/2091\";\n String payPeriod = \"Monthly\";\n int hours = 1;\n\n //Create empty Income\n Income income = new Income();\n\n income.setIncomeId(incomeId);\n income.setUserId(userId);\n income.setAccountId(accountId);\n income.setIncomeName(incomeName);\n income.setAmount(amount);\n income.setDate(date);\n income.setPayPeriod(payPeriod);\n income.setHours(hours);\n\n // Verify Values\n assertEquals(incomeId, income.getIncomeId());\n assertEquals(userId, income.getUserId());\n assertEquals(accountId, income.getAccountId());\n assertEquals(incomeName, income.getIncomeName());\n assertEquals(amount, income.getAmount(), 0);\n assertEquals(date, income.getDate());\n assertEquals(payPeriod, income.getPayPeriod());\n assertEquals(hours, income.getHours(), 0);\n }", "@Override\r\n\tpublic RequiredData requiredData() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic RequiredData requiredData() {\n\t\treturn null;\r\n\t}", "public PurchaseDto() {}", "public PartyFeedbackDTO() {\n\t}", "public PackageCarrierDetails() {\n }", "public Location()\n {\n this.store_name = null;;\n this.store_location = null;\n this.address = null;\n this.city = null;\n this.state = null;\n this.zip_code = null;\n this.latitude = Double.NaN;\n this.longitude = Double.NaN;\n this.county = null;\n }", "public CommonVO() {\r\n }", "protected void init() {\n setUUIDString();\n setNoteCreatedAt();\n setNoteUpdatedAt();\n setCreator(ParseUser.getCurrentUser());\n addAuthor(ParseUser.getCurrentUser());\n setACL(new ParseACL(ParseUser.getCurrentUser()));\n }", "public User() {\r\n\r\n\t}", "@Test\n public void accountEmptyConstructorCustomSetters_isCorrect() throws Exception {\n\n int accountId = 100;\n int userId = 101;\n String accountName = \"account Test Name\";\n double balance = 1000.00;\n\n // Create empty account\n Account account = new Account();\n\n //Set the values\n account.setAccountId(accountId);\n account.setUserId(userId);\n account.setAccountName(accountName);\n account.setBalance(balance);\n\n //Confirm values\n assertEquals(accountId, account.getAccountId());\n assertEquals(userId, account.getUserId());\n assertEquals(accountName, account.getAccountName());\n assertEquals(balance, account.getBalance(), 0);\n }", "public CustomerPolicyProperties() {\n }", "@Override\n\tpublic Response construct() {\n\t\treturn null;\n\t}", "public void initialize() {\n\t\tcompartmentName = new SimpleStringProperty(compartment.getName());\t\t\n\t\tcompartmentId = new SimpleStringProperty(compartment.getId());\n\t\tcompartmentSBOTerm = new SimpleStringProperty(compartment.getSBOTermID());\n\t}", "public RequestValues() {\n //mUserId = userId;\n }", "public JCProjectProperties() {\n this(null);\n }", "public PaymentDetails () {\n\t}" ]
[ "0.61852866", "0.60680294", "0.6051701", "0.59948903", "0.59852505", "0.5971394", "0.59658986", "0.5951319", "0.594926", "0.5932349", "0.5898462", "0.58823454", "0.5794215", "0.5785964", "0.57693523", "0.5737994", "0.57367104", "0.57228464", "0.5703303", "0.56961495", "0.56948155", "0.5688763", "0.56832707", "0.5682079", "0.56703514", "0.5666984", "0.56480366", "0.5622974", "0.56136763", "0.5606821", "0.5603354", "0.5594604", "0.55858904", "0.55721253", "0.55650276", "0.5554973", "0.55470383", "0.55386233", "0.55358964", "0.55289745", "0.5518379", "0.55073357", "0.550285", "0.55018675", "0.5498977", "0.5496801", "0.54936963", "0.5490996", "0.54895043", "0.54895", "0.5483628", "0.54779834", "0.5477005", "0.5449408", "0.54393965", "0.543506", "0.5434374", "0.5434232", "0.54281956", "0.54241484", "0.5416963", "0.541137", "0.54068166", "0.54055333", "0.5401899", "0.53962505", "0.53914666", "0.5390442", "0.5384962", "0.53825855", "0.538188", "0.53735906", "0.5362351", "0.53577596", "0.53551215", "0.53420675", "0.53399694", "0.53392863", "0.53389263", "0.5333321", "0.53288877", "0.5328618", "0.53233874", "0.5314409", "0.53141344", "0.53141344", "0.5313896", "0.5312806", "0.53122073", "0.5306414", "0.5303658", "0.53024024", "0.530133", "0.52990365", "0.5293432", "0.52876645", "0.5283944", "0.5282545", "0.5279956", "0.5278075" ]
0.6767079
0
Static form builder requiring all parameters.
public static UpdateTransaction of(Long sourceId, TransactionType type, String description, BigDecimal balance, LocalDateTime inputDate) { UpdateTransaction updateTransaction = new UpdateTransaction(); updateTransaction.setSourceId(sourceId); updateTransaction.setType(type); updateTransaction.setDescription(description); updateTransaction.setBalance(balance); updateTransaction.setInputDate(inputDate); ObjectValidator.validate(updateTransaction); return updateTransaction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Form(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "static Builder builder() {\n return new Builder();\n }", "FORM createFORM();", "private Builder() {}", "protected abstract Builder<T> valid();", "private Builder() {\n\t\t}", "private ValidatorForm(){}", "public static Builder builder(){ return new Builder(); }", "private Builder() {\n }", "private Builder() {\n }", "public static Builder builder ()\n {\n\n return new Builder ();\n\n }", "public Builder() {}", "public Builder() {}", "public Builder() {}", "private Builder()\n {\n }", "public Builder() { }", "public static StandalonePriceSetValidFromActionBuilder builder() {\n return StandalonePriceSetValidFromActionBuilder.of();\n }", "public static abstract interface Builder\n/* */ {\n/* */ public abstract Builder paths(String... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder methods(RequestMethod... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder params(String... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder headers(String... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder consumes(String... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder produces(String... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder mappingName(String paramString);\n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder customCondition(RequestCondition<?> paramRequestCondition);\n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder options(RequestMappingInfo.BuilderConfiguration paramBuilderConfiguration);\n/* */ \n/* */ \n/* */ \n/* */ public abstract RequestMappingInfo build();\n/* */ }", "public static Builder builder() {\n return new Builder().defaults();\n }", "public Form(){ \n\t\tsuper(tag(Form.class)); \n\t}", "public MechanicForm() {\n initComponents();\n }", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "public Builder(){\n }", "public Builder() {\n\t\t}", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public Builder() {\n }", "static Builder newBuilder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public Builder() {\n }", "public Builder() {\n }", "public Formulario() {\n initComponents();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "@AutoGenerated\n\tprivate FormLayout buildFormLayout() {\n\t\tformLayout = new FormLayout();\n\t\tformLayout.setImmediate(false);\n\t\tformLayout.setWidth(\"400px\");\n\t\tformLayout.setHeight(\"-1px\");\n\t\tformLayout.setMargin(false);\n\t\tformLayout.setSpacing(true);\n\t\t\n\t\t// fieldArtist\n\t\tfieldArtist = new TextField();\n\t\tfieldArtist.setCaption(\"Artist\");\n\t\tfieldArtist.setImmediate(true);\n\t\tfieldArtist.setWidth(\"100.0%\");\n\t\tfieldArtist.setHeight(\"-1px\");\n\t\tformLayout.addComponent(fieldArtist);\n\t\t\n\t\t// fieldTitle\n\t\tfieldTitle = new TextField();\n\t\tfieldTitle.setCaption(\"Title\");\n\t\tfieldTitle.setImmediate(true);\n\t\tfieldTitle.setWidth(\"100.0%\");\n\t\tfieldTitle.setHeight(\"-1px\");\n\t\tformLayout.addComponent(fieldTitle);\n\t\t\n\t\treturn formLayout;\n\t}", "public AuditFunctionForm() {\n initComponents();\n init();\n }", "public UserTypeForm() {\n\t\tthis(null);\n\t}", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}", "public form_for_bd() {\n initComponents();\n }", "private BuilderUtils() {}", "public ParametersBuilder() {\n this(Parameters.DEFAULT);\n }", "public Form() {\n initComponents();\n }", "public Builder() {\n\t\t\tsuper(Defaults.NAME);\n\t\t}", "public Builder()\n {\n this(\"\", \"\");\n }", "public abstract Builder produces(String... paramVarArgs);", "public UserForm(){ }", "public static Builder newBuilder() {\n return new Builder();\n }", "public RecipeForm(){\n\t\tFactory ingredientFactory = new Factory() {\n\t\t\tpublic Object create() {\n\t\t\t\treturn new Ingredient();\n\t\t }\n\t\t};\n\t\tFactory quantityFactory = new Factory(){\n\t\t\tpublic Object create(){\n\t\t\t\treturn new Quantity();\n\t\t\t}\n\t\t};\n\t\t\n\t\tingredientsList = LazyList.decorate(new ArrayList<Ingredient>(), ingredientFactory);\n\t\tquantities = LazyList.decorate(new ArrayList<Quantity>(), quantityFactory);\n\t}", "public static Builder newBuilder() {\n return new Builder();\n }", "public form() {\n initComponents();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "private ReflectionRequest(Builder builder) {\n super(builder);\n }", "private FrmMainForm() {\n }", "public static Builder newBuilder() {\n return Builder.createDefault();\n }", "public static Builder newBuilder() {\n return Builder.createDefault();\n }", "public Form getForm() throws IOException {\n if(form == null) {\n form = builder.getInstance();\n }\n return form;\n }", "@Inject\n public Builder() {\n }", "public quanlixe_form() {\n initComponents();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static OtaSearchForm getInstance(Ota obj) {\r\n\t\tOtaSearchForm form = new OtaSearchForm();\r\n\t\tform.setAtticantMin(obj.getAtticant());\r\n\t\tform.setAtticantMax(obj.getAtticant());\r\n\t\tform.setChanMin(obj.getChan());\r\n\t\tform.setChanMax(obj.getChan());\r\n\t\tform.setChannelname(obj.getChannelname());\r\n\t\tform.setChannelnumber(obj.getChannelnumber());\r\n\t\tform.setChannelnumberchannelnameincluded(obj.getChannelnumberchannelnameincluded());\r\n\t\tform.setComments(obj.getComments());\r\n\t\tform.setDirection(obj.getDirection());\r\n\t\tform.setEnabled(obj.getEnabled());\r\n\t\tform.setFccinfo(obj.getFccinfo());\r\n\t\tform.setFreqMin(obj.getFreq());\r\n\t\tform.setFreqMax(obj.getFreq());\r\n\t\tform.setIdMin(obj.getId());\r\n\t\tform.setIdMax(obj.getId());\r\n\t\tform.setLangfield(obj.getLangfield());\r\n\t\tform.setListed(obj.getListed());\r\n\t\tform.setMytivoavgstrengthMin(obj.getMytivoavgstrength());\r\n\t\tform.setMytivoavgstrengthMax(obj.getMytivoavgstrength());\r\n\t\tform.setNetwork(obj.getNetwork());\r\n\t\tform.setOff(obj.getOff());\r\n\t\tform.setRecommendedantenna(obj.getRecommendedantenna());\r\n\t\tform.setRez(obj.getRez());\r\n\t\tform.setStation(obj.getStation());\r\n\t\tform.setSubchanMin(obj.getSubchan());\r\n\t\tform.setSubchanMax(obj.getSubchan());\r\n\t\tform.setTvfoolchanMin(obj.getTvfoolchan());\r\n\t\tform.setTvfoolchanMax(obj.getTvfoolchan());\r\n\t\tform.setTvfoolestsignal(obj.getTvfoolestsignal());\r\n\t\tform.setAccount(AccountSearchForm.getInstance(obj.getAccount()));\r\n\t\tform.setWatchabletablo(obj.getWatchabletablo());\r\n\t\tform.setWatchabletivo(obj.getWatchabletivo());\r\n\t\treturn form;\r\n\t}", "public static ProductBuilder builder() {\n return ProductBuilder.of();\n }", "@FunctionalInterface\n public interface Builder {\n BuildingModel build(int x, int y, int angle, int floor);\n }", "public FormCadastroAutomovel() {\n initComponents();\n }", "public BtxDetailsKcFormDefinition() {\n super();\n }", "public abstract Builder params(String... paramVarArgs);", "public MainForm() {\n initComponents();\n \n }", "private FormMediator() {\n queryViews = new LinkedList<QueryView>();\n searchAction = Actions.SEARCH_ACTION;\n }", "private DataModelBuilder() {\n }", "public Form_soal() {\n initComponents();\n tampil_soal();\n }", "private Builder() {\n super(baconhep.TTau.SCHEMA$);\n }", "default T forms(Map.Entry<String, String>... parameters) {\n return body(new FormHttpBody(Arrays.asList(parameters)));\n }", "protected RespostaFormularioPreenchido() {\n // for ORM\n }", "public SettingsForm() {\n initComponents();\n }", "public FormularioP() {\n initComponents();\n }", "public static Builder create() {\n\t\treturn new Builder();\n\t}", "public static Builder create() {\n\t\treturn new Builder();\n\t}", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }" ]
[ "0.6885702", "0.6460741", "0.638481", "0.63437635", "0.6225958", "0.6208671", "0.6207515", "0.61932456", "0.61808825", "0.61808825", "0.60741544", "0.6041541", "0.6041541", "0.6041541", "0.6036144", "0.60259056", "0.6015145", "0.5996137", "0.59595954", "0.59587276", "0.59509236", "0.5947363", "0.5900307", "0.58870083", "0.58815974", "0.58815974", "0.58815974", "0.58815974", "0.5872927", "0.5858686", "0.58391136", "0.58391136", "0.58391136", "0.58391136", "0.58391136", "0.58391136", "0.58391136", "0.58391136", "0.58391136", "0.58391136", "0.58391136", "0.58247703", "0.58247703", "0.580797", "0.58051485", "0.58051485", "0.58051485", "0.5801516", "0.5791325", "0.5787748", "0.5780237", "0.57702667", "0.57600516", "0.57425356", "0.5740208", "0.5679781", "0.56662846", "0.56449467", "0.56300205", "0.5629331", "0.56224155", "0.56200105", "0.5618262", "0.5614477", "0.5614373", "0.5614373", "0.5614373", "0.5614373", "0.5588052", "0.55859154", "0.5579225", "0.5579225", "0.5575487", "0.5574945", "0.55693525", "0.55384237", "0.55384237", "0.55384237", "0.5522788", "0.5519066", "0.54980934", "0.5484694", "0.54810554", "0.5478193", "0.54746675", "0.54649913", "0.5442438", "0.54397607", "0.54351217", "0.5430503", "0.5412487", "0.5401993", "0.53986096", "0.53966874", "0.53966874", "0.5392001", "0.5392001", "0.5392001", "0.5392001", "0.5392001", "0.5392001" ]
0.0
-1
/\ |Methodes Public| \ /\ |Set| \ /\ |Get| \ /\ |Methodes Private| \
private void geometry() { // JComponent : Instanciation panel = new JPanelVideo(video); // Layout : Specification { BorderLayout borderLayout = new BorderLayout(); setLayout(borderLayout); // borderLayout.setHgap(20); // borderLayout.setVgap(20); } // JComponent : add add(panel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void myPublicMethod() {\n\t\t\n\t}", "private Get() {}", "private Get() {}", "@Override\n\t\t\tpublic void visit(MethodDeclaration arg0, Object arg1) {\n\t\t\t\tif((arg0.getModifiers() & Modifier.PUBLIC) == Modifier.PUBLIC) {\n\t\t\t\t\t\tif(arg0.getName().substring(0, 3) == \"get\" || arg0.getName().substring(0, 3) == \"set\")\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\tuses(arg0.getParameters());\n\t\t\t\t}\n\t\t\t\tsuper.visit(arg0, arg1);\n\t\t\t}", "public void get() {\n }", "private stendhal() {\n\t}", "public void checkPublic() {\n }", "protected abstract Set method_1559();", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.917 -0500\", hash_original_method = \"4F6254C867328A153FDD5BD23453E816\", hash_generated_method = \"627F9C594B5D3368AD9A21A5E43D2CB8\")\n \nprivate Extensions() {}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.514 -0500\", hash_original_method = \"E49204FD271E895B10D86A1AFEA21B04\", hash_generated_method = \"59B3C6A592AE63BEE2BC1CC1723B36DF\")\n \nprivate Settings() {}", "@Override\n protected void prot() {\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@FameProperty(name = \"accessors\", derived = true)\n public Collection<TWithAccesses> getAccessors() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "protected abstract MethodDescription accessorMethod();", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.877 -0500\", hash_original_method = \"6B80070A6DD2FB0EB3D1E45B8D1F67CF\", hash_generated_method = \"2A1ECFC7445D74F90AF7029089D02160\")\n \nprivate Organizations() {}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\n public boolean isPrivate() {\n return true;\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private ChainingMethods() {\n // private constructor\n\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.504 -0500\", hash_original_method = \"F5E3085137E37D29F0F8CB3C296F1F57\", hash_generated_method = \"47D4A76F75042B03A266F16D90E98429\")\n \nprivate Contacts() {}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.809 -0500\", hash_original_method = \"AC0A5CAC5D79A50D0A1A1A7D60109A25\", hash_generated_method = \"DDCD510819A32FF7BD9558A5CE176D29\")\n \nprivate ContactMethods() {}", "private abstract void privateabstract();", "public Set<Method> getMethods() {\r\n \t\t// We will only consider private methods in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredMethods(), source.getMethods());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getMethods());\r\n \t}", "@Override\n public void get() {}", "@Override\n\tpublic boolean isPublic() {\n\t\treturn false;\n\t}", "public abstract Member mo23408O();", "public void setPublic()\n {\n ensureLoaded();\n m_flags.setPublic();\n setModified(true);\n }", "@Override\n public void memoria() {\n \n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "public void setPrivate()\n {\n ensureLoaded();\n m_flags.setPrivate();\n setModified(true);\n }", "boolean isPrivate();", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public abstract Object mo26777y();", "public void smell() {\n\t\t\n\t}", "private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}", "@Override\n public void pub() {\n // can only be public\n }", "public Boolean getPublicAccess() {\n return publicAccess;\n }", "private String getSomePrivateInfo() {\r\n \treturn \"private information of MySubject\";\r\n }", "private Public() {\n super(\"public\", null);\n }", "private void addAccessor(ThreadContext context, String internedName, Visibility visibility, boolean readable, boolean writeable) {\n assert internedName == internedName.intern() : internedName + \" is not interned\";\n \n final Ruby runtime = context.getRuntime();\n \n if (visibility == PRIVATE) {\n //FIXME warning\n } else if (visibility == MODULE_FUNCTION) {\n visibility = PRIVATE;\n // FIXME warning\n }\n final String variableName = (\"@\" + internedName).intern();\n if (readable) {\n addMethod(internedName, new JavaMethodZero(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) {\n IRubyObject variable = (IRubyObject)verifyAccessor(self.getMetaClass().getRealClass()).get(self);\n \n return variable == null ? runtime.getNil() : variable;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForRead(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n if (writeable) {\n internedName = (internedName + \"=\").intern();\n addMethod(internedName, new JavaMethodOne(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg1) {\n verifyAccessor(self.getMetaClass().getRealClass()).set(self, arg1);\n return arg1;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForWrite(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n }", "public void GetDataBaseData() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.663 -0500\", hash_original_method = \"7BA2DC4B038FD72F399C633B1C4B5B34\", hash_generated_method = \"3D1B22AE31FE9AB2658DC3713C91A6C9\")\n \nprivate Groups() {}", "@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}", "private CommonMethods() {\n }", "public void asetaTeksti(){\n }", "public int geti(){\r\n return i;\r\n}", "private void mappingMethods() throws SecurityException, NoSuchMethodException{\n\t\tmappingMethodGet();\n\t\tmappingMethodSet();\n\t}", "protected HashSet getNoAccess(){\n return tester.noAccess;\n }", "public static void main(String[] args) {\n\t\n\tAccesingModifiers.hello();//heryerden accessable \n\tAccesingModifiers.hello1();\n\tAccesingModifiers.hello2();\n\t\n\t//AccesingModifiers.hello3(); not acceptable since permission is set to private\n\t\n}", "public void cocinar(){\n\n }", "public static void main(String[] args) {\n // since we declared the variables in access modifier class as static ==> we can call them through class name\n // here we will call the variables BUT private variable cannot be called into inherited\n System.out.println(c04_TestData2.publicVariable);\n System.out.println(c04_TestData2.protectedVariable);\n System.out.println(c04_TestData2.defaultVariable);\n\n // here we will call the method that were created in AccessModifier class into here\n // only public, protected, and default methods only can be inherited and used here\n c04_TestData2.publicMethod();\n c04_TestData2.protectedMethod();\n c04_TestData2.defaultMethod();\n\n // because they are static method we can call them like this too\n publicMethod();\n protectedMethod();\n defaultMethod();\n }", "public FuncionesSemanticas(){\r\n\t}", "public void ovr() {\n\n\t}", "@Override\n\tpublic void get() {\n\t\tSystem.out.println(\"this is get\");\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void Ordenamiento() {\n\n\t}", "public void setPublicAccess(Boolean publicAccess) {\n this.publicAccess = publicAccess;\n }", "public void setIsPublic(boolean isPublic)\n {\n this.isPublic = isPublic;\n }", "public interface AccessControlled {\r\n\r\n}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:42.000 -0500\", hash_original_method = \"46D026C452E34CB5D17D4D7413C83210\", hash_generated_method = \"78C5016E7109D19F8AD63CF42C68ACE4\")\n \n private void nativeFinalize(){\n }", "public String getAccess();", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "public interface GestionDesProfilsOperations\r\n{\r\n /**\r\n * Read accessor for numeroGDP attribute\r\n * @return the attribute value\r\n */\r\n public short numeroGDP();\r\n\r\n /**\r\n * Operation connexion\r\n */\r\n public PostLicence.GestionDesVoeux connexion(PostLicence.IEtudiant iorEtudiant, String ine, String mdp)\r\n throws PostLicence.DonneesInvalides;\r\n\r\n /**\r\n * Operation consulterProfil\r\n */\r\n public PostLicence.Etudiant consulterProfil(String ine)\r\n throws PostLicence.DonneesInvalides;\r\n\r\n /**\r\n * Operation modifierProfil\r\n */\r\n public void modifierProfil(String ine, String adr)\r\n throws PostLicence.DonneesInvalides;\r\n\r\n /**\r\n * Operation inscriptionGestionDesVoeux\r\n */\r\n public void inscriptionGestionDesVoeux(PostLicence.GestionDesVoeux GDesVx);\r\n\r\n}", "public boolean getIsPublic()\n {\n return isPublic;\n }", "final void getData() {\n\t\t//The final method can't be overriden\n\t}", "@Override\r\n\tpublic void salvar() {\n\r\n\t}", "public interface METHODS {\n public static int TIME = 0;\n public static int DISTANCE= 1;\n public static int STEPS = 2;\n public static int ACHIEVEMENTS = 3;\n }", "public void modify() {\n }", "String getAccess();", "String getAccess();", "@Override\n public boolean getAllowPrivateConstructors()\n {\n \treturn allowPrivateConstructors;\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.900 -0500\", hash_original_method = \"BDD10C58ECCC962A5941D61E3DCCB1CC\", hash_generated_method = \"CC96DF6BBA141BCD4483A4EED9B38592\")\n \nprivate Photos() {}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "abstract protected Set<Method> createMethods();", "private AccessorModels() {\n // Private constructor to prevent instantiation\n }", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.996 -0500\", hash_original_method = \"CB9D9CAF93B6F7C6AC078700B30D5B3A\", hash_generated_method = \"6EEF3712392D06942F0E7086316BBAB4\")\n \n private void nativeConstructor(){\n }", "private void ss(){\n }", "protected int somemethod2(){\n return this.data;\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public String methodBase() {\n\t\tString tmp = name;\n\t\ttmp = tmp.replaceFirst(\"^get\", \"\");\n\t\ttmp = tmp.replaceFirst(\"^is\", \"\");\n\t\treturn tmp.substring(0,1).toLowerCase()+tmp.substring(1);\n\t}", "interface Accessible {\n // All interface variables are public static final\n int SOME_CONSTANT = 100;\n // all interface methods are automatically public\n public void methodA();\n void methodB();\n boolean methodC();\n}", "@Test\n\tpublic void serializePrivateFieldsWithoutAnyGetterSetter() throws JsonProcessingException\n\t{\n\t\t// We do not have setter method in POJO class so can not set any value.\n\t\tEmployee_PrivateFieldsWithoutAnyGetterSetterMethods employee_PrivateFieldsWithoutAnyGetterSetterMethods = \n\t\t\t\tnew Employee_PrivateFieldsWithoutAnyGetterSetterMethods();\n\t\tObjectMapper objectMapper = new ObjectMapper();\n\t\tString serializedJson = objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(employee_PrivateFieldsWithoutAnyGetterSetterMethods);\n\t\tSystem.out.println(serializedJson);\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void setAccessModifier(AccessModifier modifier) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void setPrivate(Boolean isPrivate)\n {\n this.isPrivate = isPrivate;\n }", "public interface Exposable\n{\n}", "public void setdat()\n {\n }", "private Rekenhulp()\n\t{\n\t}", "private int somemethod3(){\n return this.data;\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "public boolean isAccessible() {\n return false;\n }", "public int getAge() {return age;}", "public void Usuarios() {\n\t\r\n}", "@Override\r\n\tpublic void member() {\n\t\t\r\n\t}" ]
[ "0.6922893", "0.66668934", "0.66668934", "0.64663136", "0.6294767", "0.6235212", "0.6159597", "0.6149032", "0.6091976", "0.60435814", "0.5995623", "0.59772646", "0.5967898", "0.59630364", "0.59568816", "0.59227085", "0.59141016", "0.59009826", "0.5897041", "0.5897041", "0.5896968", "0.5884524", "0.58835673", "0.58445203", "0.58413845", "0.58342576", "0.5796673", "0.579113", "0.57692504", "0.5761131", "0.5725889", "0.5708522", "0.57063186", "0.569835", "0.56811494", "0.56774944", "0.56713223", "0.5669255", "0.56573", "0.5653094", "0.56466967", "0.5633023", "0.5632907", "0.56295913", "0.56262094", "0.5622271", "0.561298", "0.5607217", "0.5601903", "0.5600717", "0.5591382", "0.55830324", "0.55788803", "0.55758554", "0.55688286", "0.5567685", "0.55672073", "0.5539679", "0.5539679", "0.55353856", "0.5532443", "0.5524457", "0.5516187", "0.55070466", "0.55005693", "0.54898524", "0.54825646", "0.5480995", "0.54709256", "0.5466892", "0.5450903", "0.54493415", "0.54484165", "0.5444769", "0.5444769", "0.5425419", "0.54216915", "0.54110956", "0.5410055", "0.5408501", "0.5407838", "0.54036707", "0.5398719", "0.5391098", "0.53897846", "0.5386278", "0.5385098", "0.53850406", "0.53843766", "0.5381941", "0.53806806", "0.5374083", "0.5371246", "0.5369843", "0.5368112", "0.5363812", "0.53624153", "0.53603417", "0.535991", "0.5359681", "0.53590685" ]
0.0
-1
TODO Autogenerated method stub
@Override public void destroy() { System.out.println("¤˙╗┘fifler"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void doFilter(ServletRequest req, ServletResponse res, FilterChain filter) throws IOException, ServletException { HttpServletRequest request=(HttpServletRequest)req; HttpServletResponse respone=(HttpServletResponse)res; request.setCharacterEncoding("utf-8"); // String path=request.getServletPath(); User user=(User) request.getSession().getAttribute("user"); if(user==null){ respone.sendRedirect("./tmall.jsp"); }else{ filter.doFilter(request, respone); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void init(FilterConfig arg0) throws ServletException { System.out.println("╔˙│╔filter"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
BL = Low values corner point, BH = High values corner point.
public BBox(final Mat4 m, final Vec3 bl, final Vec3 bh) { set(m, bl, bh); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Location getCornerB() {\n return cornerB;\n }", "public final void borderHysteresisThreshold(\r\n\t\t\tfinal int _lower,\r\n\t\t\tfinal int _upper) {\r\n\t\t\r\n\t\tBufferedImage bi_result = new BufferedImage(bi_image.getWidth(),\r\n\t\t\t\tbi_image.getHeight(), BufferedImage.TYPE_INT_RGB);\r\n\t\t\r\n\t\tdouble[][][] borderInfo1 = new double[bi_result.getWidth()][bi_result.getHeight()][2];\r\n\t\t\r\n\t\t/*\r\n\t\t * Step 1: Detection of border pixel.\r\n\t\t */\r\n\t\t\r\n\t\tfor (int x = 1; x < bi_image.getWidth() - 1; x++) {\r\n\t\t\tfor (int y = 1; y < bi_image.getHeight() - 1; y++) {\r\n\t\t\t\t\r\n\t\t\t\t//fold with \r\n\t\t\t\t//\r\n\t\t\t\t//\t-1/4\t0\t1/4\r\n\t\t\t\t//\t-2/4\t0\t2/4\r\n\t\t\t\t//\t-1/4\t0\t1/4\r\n\t\t\t\tint magnX = (\r\n\t\t\t\t\t\t-bi_image.getGrayifiedValue(x - 1, y - 1) / 3 \r\n\t\t\t\t\t\t- bi_image.getGrayifiedValue(x - 1, y) / 3 \r\n\t\t\t\t\t\t- bi_image.getGrayifiedValue(x - 1, y + 1) / 3 \r\n\r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y - 1) / 3 \r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y) / 3\r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y + 1) / 3);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\tint magnY = (\r\n\t\t\t\t\t\t-bi_image.getGrayifiedValue(x - 1, y - 1) / 3 \r\n\t\t\t\t\t\t- bi_image.getGrayifiedValue(x - 1, y) / 3 \r\n\t\t\t\t\t\t- bi_image.getGrayifiedValue(x - 1, y + 1) / 3 \r\n\r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y - 1) / 3 \r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y) / 3\r\n\t\t\t\t\t\t+ bi_image.getGrayifiedValue(x + 1, y + 1) / 3);\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//direction\r\n\t\t\t\tdouble direction;\r\n\t\t\t\tif (magnY != 0 && magnX != 0) {\r\n\t\t\t\t\tdirection = Math.atan(magnX / magnY);\r\n\t\t\t\t} else if (magnY == 0) {\r\n\t\t\t\t\tdirection = Math.atan(magnX / 0.01);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdirection = Math.atan(0);\r\n\t\t\t\t}\r\n\t\t\t\tdouble magnitude = Math.sqrt(magnX * magnX + magnY * magnY);\r\n\t\t\t\t\r\n\t\t\t\tmagnY = Math.abs(magnY);\r\n\t\t\t\tmagnX = Math.abs(magnX);\r\n\r\n\t\t\t\tborderInfo1[x][y][0] = magnitude;\r\n\t\t\t\tborderInfo1[x][y][1] = direction;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//non-maximum-suppression\r\n\r\n\t\tdouble[][][] borderInfo2 = new double[bi_result.getWidth()][bi_result.getHeight()][2];\r\n\r\n\t\tfor (int x = 1; x < bi_image.getWidth() - 1; x++) {\r\n\t\t\tfor (int y = 1; y < bi_image.getHeight() - 1; y++) {\r\n\t\t\t\t//nY\r\n\t\t\t\t// \r\n\t\t\t\t// |alpha\r\n\t\t\t\t// |\r\n\t\t\t\t// --------->nX\r\n\t\t\t\t// arctan(nX / ny) = Winkel(alpha). gegenkathete / ankathete\r\n\t\t\t\t//find neighbors of the pixel (x, y) by direction:\r\n\t\t\t\tdouble direction = borderInfo1[x][y][1];\r\n\r\n\t\t\t\tint nX = 1;\r\n\t\t\t\tint nY = 1;\r\n\t\t\t\tif (direction < 0)\r\n\t\t\t\t\tnX = -1;\r\n\t\t\t\telse if (direction > 0)\r\n\t\t\t\t\tnX = 1;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif (direction >= 0 && direction <= Math.PI / 4) {\r\n\t\t\t\t\tnX = 1;\r\n\t\t\t\t\tnY = 0;\r\n\t\t\t\t} else if (direction >= Math.PI / 4 && direction <= Math.PI * 2 / 4) {\r\n\t\t\t\t\tnX = 1;\r\n\t\t\t\t\tnY = 1;\r\n\t\t\t\t} else if (direction >= -Math.PI / 4 && direction <= 0) {\r\n\t\t\t\t\tnX = 0; \r\n\t\t\t\t\tnY = 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t// - pi / 2 ; + pi / 2\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\t\r\n\t\t\t\tif (Math.abs(borderInfo1[x][y][0]) >= Math.abs(borderInfo1[x + nX][y + nY][0])\r\n\t\t\t\t\t\t&& Math.abs(borderInfo1[x][y][0]) >= Math.abs(borderInfo1[x + nX][y + nY][0])) {\r\n\t\t\t\t\tborderInfo2[x][y][0] = borderInfo1[x][y][0];\r\n\t\t\t\t\tborderInfo2[x][y][1] = borderInfo1[x][y][1];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//hysteresis-threshold\r\n\t\tfor (int x = 1; x < bi_image.getWidth() - 1; x++) {\r\n\t\t\tfor (int y = 1; y < bi_image.getHeight() - 1; y++) {\r\n\t\t\t\tif (borderInfo1[x][y][0] >= _lower){\r\n\t\t\t\t\tbi_result.setRGB(x, y, rgb_potential);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbi_result.setRGB(x, y, rgb_noBorder);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int x = 1; x < bi_image.getWidth() - 1; x++) {\r\n\t\t\tfor (int y = 1; y < bi_image.getHeight() - 1; y++) {\r\n\t\t\t\tif (borderInfo1[x][y][0] >= _upper){\r\n\t\t\t\t\tfollowEdge(x, y, bi_result);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int x = 1; x < bi_image.getWidth() - 1; x++) {\r\n\t\t\tfor (int y = 1; y < bi_image.getHeight() - 1; y++) {\r\n\t\t\t\tif (bi_result.getRGB(x, y) == rgb_potential){\r\n\t\t\t\t\tbi_result.setRGB(x, y, rgb_noBorder);\r\n\t\t\t\t} else if (bi_result.getRGB(x, y) == rgb_border) {\r\n\t\t\t\t\tbi_result.setRGB(x, y, bi_image.getContent().getRGB(x, y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tBufferedViewer.show(bi_result);\r\n\t\tBufferedViewer.getInstance().setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t}", "public int lowerBoundary(){\r\n\t\treturn this.ypoints[0];\r\n\t}", "Point3D getLeftUpperBackCorner();", "public int upperBoundary(){\r\n\t\treturn yStart - Constants.FLOOR_HEIGHT;\r\n\t}", "@Override\n protected Double[] getCorners(){\n return new Double[]{\n //leftmost point\n getXPos(), getYPos(),\n //rightmost point\n getXPos() + getWidth(), getYPos(),\n //middle point\n getXPos() + getWidth() / 2, getYPos() + getHeight() * getThirdTriangleYPoint(pointUp)\n };\n }", "private RectHV rectLb() {\n\n if (!horizontal) {\n return new RectHV(\n rect.xmin(),\n rect.ymin(),\n p.x(),\n rect.ymax()\n );\n\n\n } else {\n return new RectHV(\n rect.xmin(),\n rect.ymin(),\n rect.xmax(),\n p.y()\n );\n }\n }", "private static double ribbonPresent(int l, int w, int h) {\n int[] sides = {l, w, h};\n Arrays.sort(sides);\n return sides[0] + sides[0] + sides[1] + sides[1];\n }", "protected Point getColorPosition(float[] hsbvals) {\r\n double angle = Math.PI / 2.0 - hsbvals[0] * 2.0 * Math.PI;\r\n int x = (int) Math.round(radius - radius * hsbvals[1] * Math.cos(angle));\r\n int y = (int) Math.round(radius - radius * hsbvals[1] * Math.sin(angle));\r\n return new Point(x, y);\r\n }", "@Override\n protected float getCurrentBottomCornerRadius() {\n return getCurrentTopCornerRadius();\n }", "public Coordinates getVerHor();", "private int getBinJ(Location l)\r\n {\r\n return (int)((l.getY()-bl.getY())/dj);\r\n }", "public ColorRgb getColorRgbBiLinear(double x, double y)\n {\n //-----------------------------------------------------------------\n double u = x - Math.floor(x);\n double v = y - Math.floor(y);\n double U = u * ((double)(getXSize()-2));\n double V = v * ((double)(getYSize()-2));\n int i = (int)Math.floor(U);\n int j = (int)Math.floor(V);\n double du = U - (double)i;\n double dv = V - (double)j;\n RGBPixel p;\n\n //-----------------------------------------------------------------\n p = getPixelRgb(i, j);\n ColorRgb F00 = new ColorRgb();\n F00.r = ((double)VSDK.signedByte2unsignedInteger(p.r)) / 255.0;\n F00.g = ((double)VSDK.signedByte2unsignedInteger(p.g)) / 255.0;\n F00.b = ((double)VSDK.signedByte2unsignedInteger(p.b)) / 255.0;\n\n p = getPixelRgb(i+1, j);\n ColorRgb F10 = new ColorRgb();\n F10.r = ((double)VSDK.signedByte2unsignedInteger(p.r)) / 255.0;\n F10.g = ((double)VSDK.signedByte2unsignedInteger(p.g)) / 255.0;\n F10.b = ((double)VSDK.signedByte2unsignedInteger(p.b)) / 255.0;\n\n p = getPixelRgb(i, j+1);\n ColorRgb F01 = new ColorRgb();\n F01.r = ((double)VSDK.signedByte2unsignedInteger(p.r)) / 255.0;\n F01.g = ((double)VSDK.signedByte2unsignedInteger(p.g)) / 255.0;\n F01.b = ((double)VSDK.signedByte2unsignedInteger(p.b)) / 255.0;\n\n p = getPixelRgb(i+1, j+1);\n ColorRgb F11 = new ColorRgb();\n F11.r = ((double)VSDK.signedByte2unsignedInteger(p.r)) / 255.0;\n F11.g = ((double)VSDK.signedByte2unsignedInteger(p.g)) / 255.0;\n F11.b = ((double)VSDK.signedByte2unsignedInteger(p.b)) / 255.0;\n\n //-----------------------------------------------------------------\n ColorRgb FU0 = new ColorRgb();\n FU0.r = F00.r + du * (F10.r-F00.r);\n FU0.g = F00.g + du * (F10.g-F00.g);\n FU0.b = F00.b + du * (F10.b-F00.b);\n\n ColorRgb FU1 = new ColorRgb();\n FU1.r = F01.r + du * (F11.r-F01.r);\n FU1.g = F01.g + du * (F11.g-F01.g);\n FU1.b = F01.b + du * (F11.b-F01.b);\n\n ColorRgb FVAL = new ColorRgb();\n FVAL.r = FU0.r + dv * (FU1.r-FU0.r);\n FVAL.g = FU0.g + dv * (FU1.g-FU0.g);\n FVAL.b = FU0.b + dv * (FU1.b-FU0.b);\n\n return FVAL;\n }", "Point3D getRightLowerFrontCorner();", "private void firstFaceEdge_fromBottomFace(int pos) {\n Algorithm algo = new Algorithm();\n Log.d(tag, \"Edge piece from bottom face\");\n\n /**\n * Piece is not aligned yet.\n * Rotate bottom face\n * */\n if (pos != EDGE_BOTTOM_NEAR) {\n Direction dir = pos == EDGE_BOTTOM_LEFT ?\n Direction.COUNTER_CLOCKWISE : Direction.CLOCKWISE;\n Rotation rot = new Rotation(Axis.Y_AXIS, dir, INNER);\n algo.addStep(rot);\n if (pos == EDGE_BOTTOM_FAR) {\n algo.addStep(rot);\n }\n }\n // Front face twice\n Rotation rot = new Rotation(Axis.Z_AXIS, Direction.COUNTER_CLOCKWISE, OUTER);\n algo.addStep(rot);\n algo.addStep(rot);\n setAlgo(algo);\n }", "public Point getupperRigth() {\n Point upperRigth = new Point(this.upperLeft.getX() + this.getWidth(), this.upperLeft.getY());\n return upperRigth;\n }", "public Point getUpperLeft() {\n return this.upperLeft;\n }", "private int getBinI(Location l)\r\n {\r\n return (int)((l.getX()-bl.getX())/di);\r\n }", "public double getSurfaceAreaB() {\n double valSB = (2*(lb*wb))+(2*(lb*hb))+(2*(wb*hb));\n return valSB;\n }", "private int findH(int currentIndex){\r\n int mapCol = _map.get_mapCol();\r\n int currentRow = currentIndex / mapCol;\r\n int currentCol = currentIndex % mapCol;\r\n\r\n int endRow = _endIndex / mapCol;\r\n int endCol = _endIndex % mapCol;\r\n\r\n return Math.abs(currentRow - endRow) + Math.abs(currentCol - endCol);\r\n }", "public Vector2f getUpperLeftCorner() {\n return upperLeftCorner;\n }", "Integer getBPos();", "@Override\n public Shape getCelkoveHranice() {\n return new Rectangle2D.Double(super.getX() + 22, super.getY() + 45, 45, 45);\n }", "public Float getBh() {\r\n return bh;\r\n }", "public double Bottom(){\n\t\tdouble fary = y + sizeY - 1;\n\t\treturn (fary);\n\t}", "Point getTopXY();", "private Point findBottomRightCornerPoint() {\n return new Point(origin.getX() + width, origin.getY());\n }", "private void firstFaceEdge_fromLowerLayer(int pos) {\n Log.d(tag, \"Edge piece from lower layer\");\n Algorithm algorithm = new Algorithm();\n\n // the white should be on one of the sides, not front or back\n if (pos == EDGE_BOTTOM_NEAR || pos == EDGE_BOTTOM_FAR) {\n algorithm.addStep(Axis.Y_AXIS, Direction.CLOCKWISE, INNER);\n }\n\n if (pos <= EDGE_BOTTOM_LEFT) {\n algorithm.addStep(Axis.X_AXIS, Direction.CLOCKWISE, INNER);\n algorithm.addStep(Axis.Z_AXIS, Direction.CLOCKWISE, OUTER);\n if (mTopSquares.get(EDGE_TOP_LEFT).getColor() == mTopColor &&\n mLeftSquares.get(FIRST_ROW_CENTER).getColor() ==\n mLeftSquares.get(CENTER).getColor()) {\n algorithm.addStep(Axis.X_AXIS, Direction.COUNTER_CLOCKWISE, INNER);\n }\n } else {\n algorithm.addStep(Axis.X_AXIS, Direction.CLOCKWISE, OUTER);\n algorithm.addStep(Axis.Z_AXIS, Direction.COUNTER_CLOCKWISE, OUTER);\n if (mTopSquares.get(EDGE_TOP_RIGHT).getColor() == mTopColor &&\n mRightSquares.get(FIRST_ROW_CENTER).getColor() ==\n mRightSquares.get(CENTER).getColor()) {\n\n algorithm.addStep(Axis.X_AXIS, Direction.COUNTER_CLOCKWISE, OUTER);\n }\n }\n setAlgo(algorithm);\n }", "private Spatial getBin(Location loc)\r\n {\r\n return loc.getX()<mid.getX() \r\n ? (loc.getY()<mid.getY() ? bins[BL] : bins[TL])\r\n : (loc.getY()<mid.getY() ? bins[BR] : bins[TR]);\r\n }", "public Coords getUpperLeft()\r\n {\r\n return new Coords(x, y);\r\n }", "public double[] getUpperLeft() {\n this.upperLeft = new double[]{minX, maxY};\n return upperLeft;\n }", "public void buildInitialBand()\r\n\t{\n\t\r\n\tint bl = boundary.size();\r\n\tfor(int i=0; i<bl; i++) \r\n\t\t{\r\n\t\tInt2d bCur = boundary.get(i);\r\n\t\t//System.out.println(bCur.x + \", \" + bCur.y + \": size = \" + heap.size());\r\n\t\t\r\n\t\ttestPointsAround(bCur.x,bCur.y);\r\n\t\t}\r\n\t\r\n\t}", "double getEndH();", "public Triangle(int h, int b){\n if(h == b){\n height = h;\n base = b;\n }\n else{\n height = h;\n base = height;\n }\n }", "public int getYLeftUpper() {\n return yLeftUpper;\n }", "public Point getUpperPoint() {\n return upper;\n }", "public Coords getLowerRight()\r\n {\r\n return new Coords(x + width, y + height);\r\n }", "public AxisScale getHScale() {\n return (_bhp!=null)?_bhp.getScale():AxisScale.LINEAR;\n }", "public double getH();", "public Point getLowerPoint() {\n return lower;\n }", "public Point getBPosition()\n\t{\n\t\treturn bPoint;\n\t}", "public Rectangle getBoundsBigger() {\n return new Rectangle(x-32,y-32,128,128);\n }", "public void findUpperAndLowerEdge() throws NoSudokuFoundException{\n int bestUpperHit = 0;\n int bestLowerHit = 0;\n double t = INTERSECT_TOLERANCE;\n for (int h=0; h<nextH; h++) {\n int upperHit = 0;\n int lowerHit = 0;\n // for every horizontal line, check if vertical edge points A and B \n // are on that line.\n double[] hline = horizontalLines[h];\n double hy1 = hline[1],\n hy2 = hline[3];\n for (int v=0; v<nextV; v++){\n double[] vec = verticalLines[v];\n double ay = vec[1],\n by = vec[3];\n // if they are, count them\n if(ay < by) { // A is above B\n if ((hy1<=ay+t && ay<=hy2+t) || (hy1+t>=ay && ay+t>=hy2)){\n // A is between the left and right edge point.\n // only count it if it is above the screen center.\n if(hy1 < centerY && hy2 < centerY) {\n upperHit++;\n }\n } else if ((hy1<=by+t && by<=hy2+t) || (hy1+t>=by && by+t>=hy2)) {\n if(hy1 > centerY && hy2 > centerY) {\n lowerHit++;\n }\n }\n } else { // B is above A\n if ((hy1<=by+t && by<=hy2+t) || (hy1+t>=by && by+t>=hy2)) {\n if(hy1 < centerY && hy2 < centerY) {\n upperHit++;\n }\n } else if ((hy1<=ay+t && ay<=hy2+t) || (hy1+t>=ay && ay+t>=hy2)) {\n if(hy1 > centerY && hy2 > centerY) {\n lowerHit++;\n }\n } \n }\n }\n // take the lines with the highest counts\n if(upperHit > bestUpperHit) {\n edges[0] = horizontalLines[h];\n bestUpperHit = upperHit;\n } else if (lowerHit > bestLowerHit){\n edges[2] = horizontalLines[h];\n bestLowerHit = lowerHit;\n }\n }\n if(bestUpperHit < LINE_THRESHOLD || bestLowerHit < LINE_THRESHOLD){\n throw new NoSudokuFoundException(\"Number of upper (\"+bestUpperHit+\") or lower (\"+bestLowerHit+\") line ends below threshold. h\");\n }\n // Log.v(TAG, \"Best upper hit: \" + bestUpperHit + \", best lower: \" + bestLowerHit);\n }", "public Point getCorner() {\r\n\t\treturn basePoly.getBounds().getLocation();\r\n\t}", "double getStartH();", "public abstract double[] getLowerBound();", "@Test\n\tpublic void bottomLeftHorizWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(32,112);\n\t\td.set(1,113);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(113);\n\t\tassertTrue(1==test_arr.get(0).getX() && 10==test_arr.get(0).getY());\n\n\t}", "public double getCornering() {\r\n return cornering;\r\n }", "public Vector2f getBottomRightCorner() {\n return bottomRightCorner;\n }", "void ompleBlocsHoritzontals() {\r\n\r\n for (int i = 0; i < N; i = i + SRN) // for diagonal box, start coordinates->i==j \r\n {\r\n ompleBloc(i, i);\r\n }\r\n }", "private int calHValue(int xNum, int oNum) {\r\n if (xNum > 0 && oNum > 0) {\r\n return GameParameters.draw;\r\n }\r\n switch (xNum + oNum) {\r\n case 1:\r\n return xNum > 0 ? onePoint : -onePoint;\r\n case 2:\r\n return xNum > 0 ? twoPoint : -twoPoint;\r\n case 3:\r\n return xNum > 0 ? threePoint : -threePoint;\r\n case 4:\r\n return xNum > 0 ? xWin : oWin;\r\n }\r\n return GameParameters.draw;\r\n }", "private Color getColor(double f_xy) {\n\t\tdouble lowerBorder = this.f_xLowest;\n\t\tdouble higherBorder = this.f_xHighest;\n\t\ttry{\n\t\t\tif(borders == null){\n\t\t\t\tSystem.err.println(\"!!!!!!!!!!!!!!!!!!! Borders null\");\n\t\t\t}\n\t\t\tfor(int i = 0 ; i< borders.length; i++) {\n\t\t\t\thigherBorder = borders[i];\n\t\t\t\tif((f_xy >= lowerBorder && f_xy < higherBorder)) {\n\t\t\t\t\treturn this.gradientColors[i];\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tlowerBorder = higherBorder;\n\t\t\t}\n\t\t} catch(NullPointerException e){\n\t\t\te.printStackTrace();\n\t\t\tSystem.err.println(\"!!!!!!!!!!!!: \" + borders.length);\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\t\n\t\treturn (f_xy < borders[0])? this.gradientColors[0] : this.gradientColors[this.gradientColors.length-1];\n\t\t\n\t}", "int getBlue(int x, int y);", "double getUpperThreshold();", "public Point getCorner() {\n\t\treturn corner;\n\t}", "boolean losCompare(double x1, double y1, double x2, double y2, CObject pHo)\r\n {\r\n double delta;\r\n int x, y;\r\n\r\n int xLeft = pHo.hoX - pHo.hoImgXSpot;\r\n int xRight = xLeft + pHo.hoImgWidth;\r\n int yTop = pHo.hoY - pHo.hoImgYSpot;\r\n int yBottom = yTop + pHo.hoImgHeight;\r\n\r\n if (x2 - x1 > y2 - y1)\r\n {\r\n delta = (double) (y2 - y1) / (double) (x2 - x1);\r\n if (x2 > x1)\r\n {\r\n if (xRight < x1 || xLeft >= x2)\r\n {\r\n return false;\r\n }\r\n }\r\n else\r\n {\r\n if (xRight < x2 || xLeft >= x1)\r\n {\r\n return false;\r\n }\r\n }\r\n y = (int) (delta * (xLeft - x1) + y1);\r\n if (y >= yTop && y < yBottom)\r\n {\r\n return true;\r\n }\r\n\r\n y = (int) (delta * (xRight - x1) + y1);\r\n if (y >= yTop && y < yBottom)\r\n {\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n else\r\n {\r\n delta = (double) (x2 - x1) / (double) (y2 - y1);\r\n if (y2 > y1)\r\n {\r\n if (yBottom < y1 || yTop >= y2)\r\n {\r\n return false;\r\n }\r\n }\r\n else\r\n {\r\n if (yBottom < y2 || yTop >= y1)\r\n {\r\n return false;\r\n }\r\n }\r\n x = (int) (delta * (yTop - y1) + x1);\r\n if (x >= xLeft && x < xRight)\r\n {\r\n return true;\r\n }\r\n\r\n x = (int) (delta * (yTop - y1) + x1);\r\n if (x >= xLeft && x < xRight)\r\n {\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n }", "public Point notValidSnakeHeadDown() {\t\t\n\t\treturn new Point(15, bottom_border);\n\t}", "@Test\n\tpublic void bottomRightHorizWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(36,120);\n\t\td.set(4,119);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(119);\n\t\tassertTrue(9==test_arr.get(0).getX() && 10==test_arr.get(0).getY());\n\n\t}", "public float getHeight()\n {\n return getUpperRightY() - getLowerLeftY();\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"BB[\" + origin.getX0() + \",\" + origin.getY0() + \",\"\n\t\t\t\t+ this.width + \",\" + this.height + \"]\";\n\t}", "public int hValue() {\r\n if (value != GameParameters.draw) {\r\n if (Math.abs(value) > xWin) {\r\n return value > 0 ? xWin : oWin;\r\n }\r\n return value;\r\n }\r\n return GameParameters.draw;\r\n }", "public Point getdownRigth() {\n Point downRigth = new Point(this.upperLeft.getX() + this.getWidth(), this.upperLeft.getY() + this.getHeight());\n return downRigth;\n }", "@Test\n\tpublic void bottomLeftVertWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(31,100);\n\t\td.set(1,89);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(89);\n\t\tassertTrue(0==test_arr.get(0).getX() && 9==test_arr.get(0).getY());\n\n\t}", "public double getSideB()\r\n\t{\r\n\t\treturn this.sideB;\r\n\t}", "public Point validSnakeHeadUp() {\t\t\n\t\treturn new Point(top_border + 2, 15);\n\t}", "protected abstract D getUpper(R range);", "@Override\n\tpublic Rectangle getBound() {\n\t\trectBound.setX(posX+20);\n\t\trectBound.setY(Y_LAND - image.getHeight() +10);\n\t\trectBound.setWidth(image.getWidth()-10);\n\t\trectBound.setHeight(image.getHeight());\n\t\treturn rectBound;\n\t}", "public Rectangle2D getBoundary()\n {\n \tRectangle2D shape = new Rectangle2D.Float();\n shape.setFrame(location.getX(),location.getY(),12,length);\n return shape;\n }", "public FPointType calculateUpperLeft() {\n fRectBound = getBounds2D();\n FPointType fptUpperLeft = new FPointType(fRectBound.x, fRectBound.y);\n calculate(fptUpperLeft);\n \n rotateRadian = 0.0f;\n \n return fptUpperLeft;\n }", "public static Coordinates getTopRightCorner() {\n\t\treturn topRightCorner;\n\t}", "public void setBh(Float bh) {\r\n this.bh = bh;\r\n }", "public float getLimit_lin_y_lower() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 40);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 32);\n\t\t}\n\t}", "public float getLimit_lin_y_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 44);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 36);\n\t\t}\n\t}", "private Point downTriangleBorder(Point p1, Point p2, int r) {\n\n double xb;\n double yb;\n double x1;\n double y1;\n double x2;\n double y2;\n\n double gamma = 0.0;\n\n double l;\n\n double pi = Math.PI;\n double pi2 = Math.PI / 2.0;\n double pi6 = Math.PI / 6.0;\n\n x1 = p1.x;\n y1 = p1.y;\n x2 = p2.x;\n y2 = p2.y;\n\n double s = p1.distance(p2);\n\n /* theta in range -PI < theta <= PI */\n double theta = Math.atan2(y2 - y1, x2 - x1);\n\n if ((-pi6 < theta) && (theta <= pi2)) {\n gamma = theta - pi6;\n } else if ((pi2 < theta) && (theta <= pi)) {\n gamma = theta - 5.0 * pi6;\n } else if ((-pi < theta) && (theta <= -5.0 * pi6)) {\n gamma = 7.0 * pi6 + theta;\n } else if ((-5.0 * pi6 < theta) && (theta <= -pi6)) {\n gamma = theta + pi2;\n }\n\n l = (r) / (2.0 * Math.cos(gamma));\n\n xb = x1 + (x2 - x1) * l / s;\n yb = y1 + (y2 - y1) * l / s;\n\n return new Point((int) xb, (int) yb);\n\n }", "public int getBx2() {\r\n return Bx2;\r\n }", "public static int Bricksolution(int[] H) {\n int i = 0;\n int index = 0;\n ArrayList indexes = new ArrayList();\n do {\n if (H[i] <= H[i + 1]) {\n i++;\n } else {\n indexes.add(i);\n i++;\n }\n } while (i < H.length);\n return 0;\n }", "private int[] determineRegion(int X, int Y ,int H){\n int[] quadrantPoint = new int[2];\n for(int y = 0; y < BITMAP_SIZE /H; y++){\n for(int x = 0; x < BITMAP_SIZE /H; x++){\n Region reg = regions[x][y];\n if (X >= reg.leftX && X <= reg.rightX && Y >= reg.topY && Y <= reg.bottomY){\n quadrantPoint[0] = x;\n quadrantPoint[1] = y;\n return quadrantPoint;\n }\n }\n }\n\n return null;\n }", "public Coordinates closestPointB() {\n return closestPointB;\n }", "public Location getCornerA() {\n return cornerA;\n }", "DAABBC getAABB ();", "public Float getBhHosucr() {\r\n return bhHosucr;\r\n }", "public Coords getUpperRight()\r\n {\r\n return new Coords(x + width, y);\r\n }", "@Test\n\tpublic void bottomRightVertWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(30,110);\n\t\td.set(12,99);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(99);\n\t\tassertTrue(10==test_arr.get(0).getX() && 9==test_arr.get(0).getY());\n\n\t}", "public PTBoat(boolean h, int numCoord, int letCoord)\r\n {\r\n horizontal = h;\r\n numA = numCoord;\r\n letA = letCoord;\r\n if(horizontal == true)\r\n {\r\n letB = letA;\r\n numB = numA + 1;\r\n }\r\n else\r\n {\r\n numB = numA;\r\n letB = letA + 1;\r\n }\r\n }", "public Integer getBh() {\r\n return bh;\r\n }", "public double getCenter() {\n return 0.5 * (lo + hi);\n }", "public void wrap(int xLow, int xHigh, int yLow, int yHigh)\n\t{\n\t\tif(x >= xHigh)\n\t\t{\n\t\t\tx = x - xHigh;\n\t\t}\n\t\t\n\t\telse if(y >= yHigh)\n\t\t{\n\t\t\ty = y - yHigh;\n\t\t}\n\t\t\n\t}", "public int getHorY() {\r\n return horY;\r\n }", "static Boolean lineBetween(int x1, int y1, int x2, int y2) {\n double m, b; // for line eqn.\n int maxV = Math.max( pgmInf.img[y1][x1], pgmInf.img[y2][x2] );\n int xmin = Math.min(x1, x2), xmax = Math.max(x1, x2);\n int ymin = Math.min(y1, y2), ymax = Math.max(y1, y2);\n\n if (x1 == x2) {\n // x = c\n for (int y=ymin ; y < ymax ; y++)\n if (pgmInf.img[y][x1] > maxV) return false;\n }\n else {\n // setup for y=mx + b form\n double top = (y1-y2), bot = (x1-x2);\n m = top / bot; \n\n if (m > -1 && m < 1) {\n // y = mx + b\n b = y1 - m * (double)x1;\n\n for (int x=xmin ; x < xmax ; x++) {\n int y = (int)Math.round( m * (double)x + b );\n if (pgmInf.img[y][x] > maxV ) return false;\n }\n }\n else {\n // x = my + b\n top = (x1-x2); bot = (y1-y2); \n m = top / bot; b = x1 - m * (double)y1;\n\n for (int y=ymin ; y < ymax ; y++) {\n int x = (int)Math.round( m* (double)y + b );\n if (pgmInf.img[y][x] > maxV) return false;\n }\n }\n }\n return true;\n }", "Long getResultMaskBoundary();", "public Point getXLower()\n {\n return (Point)xLow.clone();\n }", "@Test\n\tpublic void lowerLeft2SWCSpecial()\n\t{\n\t\tData d = new Data();\n\t\td.set(5, 112);\n\t\td.set(1, 113);\n\t\td.set(13, 101);\n\t\td.set(14, 102);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(114);\n\t\tassertTrue(2==test_arr.get(0).getX() && 10==test_arr.get(0).getY()\n\t\t\t&& 1==test_arr.get(1).getX() && 10==test_arr.get(1).getY());\n\t}", "public Vector[] getCorners() {\n\t\treturn new Vector[] { this.topLeft, this.topRight, this.botLeft, this.botRight };\n\t}", "public ColorWeight(double datum, double minimum, double lowcorner, double highcorner, double maximum, int maxweight)\n {\n if (datum > highcorner)\n {\n if (highcorner >= maximum)\n weight = 0;\n else\n weight = (int) (((maximum - datum) / (maximum - highcorner)) * maxweight);\n }\n else if (datum > lowcorner)\n {\n weight = maxweight;\n }\n else\n {\n if (lowcorner == minimum)\n weight = maxweight;\n else\n weight = (int) (((datum - minimum) / (lowcorner - minimum)) * maxweight);\n }\n\n if (weight > 255)\n weight = 255;\n else if (weight < 0)\n weight = 0;\n }", "public E3DVector2F getTextureCoordDetail0B(){\r\n return vertices[1].getTextureCoordDetail0();\r\n }", "public static java.awt.Rectangle getInteriorRectangle(java.awt.Component c, com.amazon.kindle.kindlet.ui.border.KBorder b, int x, int y, int width, int height) {\n // TODO codavaj!!\n return null;\n }", "public void wrap(int xLow, int xHigh, int yLow, int yHigh)\n\t{\n\t\tif(x >= xHigh)\n\t\t{\n\t\t\tx = x - xHigh;\n\t\t}\n\t\telse if(x <= xLow)\n\t\t{\n\t\t\tx = x + xHigh;\n\t\t}\n\t\telse if(y >= yHigh)\n\t\t{\n\t\t\ty = y - yHigh;\n\t\t}\n\t\telse if(y <= yLow)\n\t\t{\n\t\t\ty = y + yHigh;\n\t\t}\n\t}", "public double getBaseHeight();", "static public void adjustLeftBottom(Shape2D shape,float left,float bottom){\n shape(shape,left-Shape2DLimits.minXShape(shape),bottom-Shape2DLimits.minYShape(shape));\n }", "public Coords getLowerLeft()\r\n {\r\n return new Coords(x, y + height);\r\n }", "@Test\n\tpublic void upperLeft2SWCSpecial()\t\n\t{\n\t\tData d = new Data();\n\t\td.set(5, 2);\n\t\td.set(1, 3);\n\t\td.set(2, 4);\n\t\td.set(13, 13);\n\t\td.set(15, 14);\n\t\td.set(16, 15);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(5);\n\t\tassertTrue(3==test_arr.get(0).getX() && 0==test_arr.get(0).getY()\n\t\t\t&& 2==test_arr.get(1).getX() && 0==test_arr.get(1).getY()\n\t\t\t&& 1==test_arr.get(2).getX() && 0==test_arr.get(2).getY());\n\t}" ]
[ "0.6295291", "0.62569577", "0.61802435", "0.6061364", "0.58643806", "0.5776405", "0.5707643", "0.56959707", "0.565575", "0.5571414", "0.5545285", "0.5534528", "0.55247766", "0.5517846", "0.5483514", "0.54780924", "0.5476376", "0.5464477", "0.5448377", "0.5416087", "0.5411994", "0.5411385", "0.53953797", "0.5388131", "0.53734523", "0.53645337", "0.5346838", "0.5343707", "0.53143114", "0.5284832", "0.5272441", "0.5268371", "0.5263821", "0.5260158", "0.5240002", "0.52301574", "0.5216511", "0.521265", "0.5208023", "0.5200752", "0.5199684", "0.5197636", "0.51952344", "0.5194025", "0.51813793", "0.5180013", "0.51609546", "0.51577103", "0.51549244", "0.5139757", "0.5139663", "0.51314837", "0.5130838", "0.51189065", "0.5112455", "0.5092497", "0.508256", "0.5068797", "0.5068542", "0.5067043", "0.5060644", "0.50565994", "0.50531375", "0.5051714", "0.5048301", "0.5046273", "0.5045204", "0.5040265", "0.5035113", "0.50264686", "0.5015775", "0.5000974", "0.50001246", "0.49970835", "0.4995327", "0.49947235", "0.4984448", "0.49833092", "0.4977506", "0.49727073", "0.49717918", "0.49706796", "0.4966434", "0.4965237", "0.4965049", "0.49640566", "0.49558562", "0.49539247", "0.4951388", "0.49470702", "0.49447486", "0.49437124", "0.49416777", "0.49383968", "0.4937421", "0.49369946", "0.49353573", "0.49319616", "0.4930838", "0.49299064", "0.49280956" ]
0.0
-1
Check if a point is in this bounding box.
public boolean isPointInBox(final Vec3 inP) { // Rotate the point into the box's coordinates Vec4 p = m.getInverseSimple().multiply(inP.toPoint()); // Now just use an axis-aligned check if (abs(p.getX()) < extents.getX() && abs(p.getY()) < extents.getY() && abs(p.getZ()) < extents.getZ()) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean contains(final Coords point)\r\n {\r\n return toRectangle().contains(point.toPoint());\r\n }", "boolean contains(double x, double y) {\r\n\t\t//cordinate of the left edge\r\n\t\tdouble xLeftEdge = this.getX() - this.width / 2;\r\n\t\t//cordinate of the right edge\r\n\t\tdouble xRightEdge = this.getX() + this.width / 2;\r\n\t\t////cordinate of the top edge\r\n\t\tdouble yTopEdge = this.getY() + this.height / 2;\r\n\t\t//cordinate of the bottom edge\r\n\t\tdouble yBottomEdge = this.getY() - this.height / 2;\r\n\r\n\t\t//if the point is between the edges it is inside the rectangle\r\n\t\treturn (x < xRightEdge) && (x > xLeftEdge) && (y < yTopEdge)\r\n\t\t\t\t&& (y > yBottomEdge) ? true : false;\r\n\t}", "public boolean contains(Point point) {\n\t\treturn (point.x >= getX1() && point.y >= getY1() && point.x < getX2() && point.y < getY2());\n\t}", "public boolean containsPoint(Point p) {\n \treturn\n \t\tp.x >= x &&\n \t\tp.x <= x + width &&\n \t\tp.y >= y &&\n \t\tp.y <= y + height;\n }", "public boolean contains(PointF point)\n {\n return contains(point.x, point.y);\n }", "public boolean containsPoint(Point p) {\n\t\treturn (p.x >= x && p.x <= (x + WIDTH)\n\t\t\t\t&& p.y >= y && p.y <= (y + HEIGHT));\n\t}", "public abstract boolean containsPoint(int x, int y);", "public boolean contains(Point point) {\n\n\t\tif (Math.abs(center.getX() - point.getX()) <= (width / 2) && (Math.abs(center.getY() - point.getY()) <= height /2)) {\n\n\t\t\treturn true;\n\t\t\n\t\t} else {\n\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isPointInside(int x, int y) {\r\n if (Integer.compare(x, _xLeft) <= 0) {\r\n return false;\r\n }\r\n \r\n if (Integer.compare(x, _xRight) >= 0) {\r\n return false;\r\n }\r\n \r\n if (Integer.compare(y, _yTop) <= 0) {\r\n return false;\r\n }\r\n \r\n if (Integer.compare(y, _yBottom) >= 0) {\r\n return false;\r\n }\r\n \r\n return true;\r\n }", "public boolean contains(Point p);", "public boolean isInside(final Tuple3d point) {\n final double distance = this.distanceToPoint(point);\n\n return IntersectionUtils.isGreaterOrEqual(distance, 0.0);\n }", "public boolean pointInside(Point2D p) {\n AffineTransform fullTransform = this.getFullTransform();\n AffineTransform inverseTransform = null;\n try {\n inverseTransform = fullTransform.createInverse();\n } catch (NoninvertibleTransformException e) {\n e.printStackTrace();\n }\n Point2D newPoint = (Point2D)p.clone();\n inverseTransform.transform(newPoint, newPoint);\n return rect.contains(newPoint); \n }", "public boolean containsPoint( Point p ) {\r\n return (( p.x > drawx-getWidth()/2) && ( p.x < drawx+getWidth()/2) \r\n && ( p.y > drawy-getHeight()/2) && ( p.y < drawy+getHeight()/2));\r\n }", "public boolean contains(Vector pt) {\r\n final double x = pt.getX();\r\n final double y = pt.getY();\r\n final double z = pt.getZ();\r\n return x >= this.getMinimumPoint().getBlockX() && x < this.getMaximumPoint().getBlockX() + 1\r\n && y >= this.getMinimumPoint().getBlockY() && y < this.getMaximumPoint().getBlockY() + 1\r\n && z >= this.getMinimumPoint().getBlockZ() && z < this.getMaximumPoint().getBlockZ() + 1;\r\n }", "private boolean isWithinBounds(Point3D point) {\n // Check if point is above min bounds\n if (point.getX() < minBounds.getX() || point.getY() < minBounds.getY() || point.getZ() < minBounds.getZ()) {\n return false;\n }\n // Check if point is below max bounds\n if (point.getX() > maxBounds.getX() || point.getY() > maxBounds.getY() || point.getZ() > maxBounds.getZ()) {\n return false;\n }\n return true;\n }", "public boolean inside(final Point p)\n\t\t{\n\t\t\tif(obj.contains(p))\n\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t}", "public static final boolean isInside(int x, int y, Rect box) {\n return (box.x < x && x < box.x + box.w && box.y < y && y < box.y + box.h);\n }", "public boolean contains(Point point) {\n\t\treturn false;\r\n\t}", "public boolean contains(Point point) {\n return this.center.distance(point) <= this.r;\n }", "public boolean contains(int x, int y)\n\t{\n\t\treturn (boundingBox.contains(x,y));\n\t}", "boolean inBoundingBox(Coord pos) {\n\t\treturn min(from.x, to.x) <= pos.x && pos.x <= max(from.x, to.x)\n\t\t\t\t&& min(from.y, to.y) <= pos.y && pos.y <= max(from.y, to.y);\n\t}", "public boolean isIn(Point p)\n {\n \n \treturn isIn(p.x, p.y);\n \t\n //\tboolean cond1 = false;\n // boolean cond2 = false; \n // cond1 = (p.x>=rettangoloX)&&(p.x<=(rettangoloX+larghezza));\n // cond2 = (p.y>=rettangoloY)&&(p.y<=(rettangoloY+altezza));\n // return (cond1&&cond2);\n }", "public boolean contains(RMPoint aPoint)\n{\n // Get line width to be used in contain test\n float lineWidth = getStrokeWidth();\n \n // If polygon or line, make line width effectively at least 8, so users will have a better shot of selecting it\n if(this instanceof RMPolygonShape || this instanceof RMLineShape)\n lineWidth = Math.max(8, getStrokeWidth());\n \n // Get bounds, adjusted for line width\n RMRect bounds = getBoundsInside();\n bounds.inset(-lineWidth/2, -lineWidth/2);\n\n // If point isn't even in bounds rect, just return false\n if(!aPoint.inRect(bounds))\n return false;\n \n // Get shape path in bounds rect\n RMPath path = getPathInBounds();\n \n // Return whether path intersects point\n return path.intersects(aPoint, lineWidth);\n}", "@Override\n\tpublic boolean contains(Vec2f pnt) {\n\t\tboolean isIn = false;\n\t\tif (_shape != null) {\n\t\t\tisIn = _shape.contains(pnt);\n\t\t}\n\t\treturn isIn;\n\t}", "public boolean isWithinObject(int x, int y)\n {\n if( x > coX-Xsize/2 &&\n x < coX+Xsize/2 &&\n y > coY-Ysize/2 &&\n y < coY+Ysize/2 )\n return true;\n else\n return false;\n }", "public boolean contains(Point mousePt) {\r\n\t\treturn (x <= mousePt.x && mousePt.x <= (x + width + 1)\t&&\ty <= mousePt.y && mousePt.y <= (y + height + 1));\r\n\t}", "public boolean pointWhithin(Point point) {\n\t\treturn false;\n\t}", "public boolean containsPoint(Point pt)\n {\n\n // E[O(log(n))]\n if(_lineBVH != null)\n {\n throw new Error(\"Implement me Please!\");\n }\n else\n {\n // O(n).\n return _point_in_polygon_test(pt);\n }\n }", "public boolean contains(Point mousePt) {\r\n\t\treturn (p.x <= mousePt.x && mousePt.x <= (p.x + width + 1)\t&&\tp.y <= mousePt.y && mousePt.y <= (p.y + height + 1));\r\n\t}", "Boolean CheckIfInside(float xVal, float yVal) {\r\n double distance = Math.sqrt((this.x-xVal)*(this.x-xVal) + (this.y-yVal)*(this.y-yVal));\r\n return (distance <= this.radius);\r\n }", "public boolean inBounds(Rectangle bounds)\n\t{\n\t\treturn bounds.contains(mX, mY);\n\t}", "private boolean isInBounds(float x, float y) {\n\n if (x <= 0 || x >= this.getWidth() || y <= 0 || y >= this.getHeight()) {\n\n return false;\n }\n return new RectF(0, 0, this.getWidth(), this.getHeight())\n .contains(x, y);\n }", "public boolean pointIsIntersecting(PointF point, RectF other){//also checks if one contains the other\n return RectF.intersects(other,new RectF(point.x, point.y, point.x, point.y));//|| hitBox.contains(other.getHitBox())||other.getHitBox().contains(this.hitBox)\n }", "boolean isInsideScreen() {\n if (_hitbox.length == 1) {\n float r = _hitbox[0].x;\n PVector c = _getCenter();\n return 0 <= c.x + r && c.x - r < width && 0 <= c.y + r && c.y - r < height;\n }\n \n PVector[] points = this._getPoints();\n for(PVector p : points) {\n if(0 <= p.x && p.x < width && 0 <= p.y && p.y < height) {\n return true;\n }\n }\n return false;\n }", "public boolean isInRect(Point p) {\n\t\tLine AB = new Line(A1, B1);\n\t\tLine CD = new Line(C1, AB.getU());\n\t\tLine AD = new Line(A1, D1);\n\t\tLine BC = new Line(B1, AD.getU());\n\n\t\tif (Line.isBetween2Lines(AB, CD, p) && Line.isBetween2Lines(AD, BC, p)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean mouseWithinBox() {\n return (mouseX > x && mouseX < x + w && mouseY > y && mouseY < y + h);\r\n }", "public boolean boundsContains(double[] pt){\n return bounds.contains(pt);\n }", "public boolean isInRange(Point testPt){\n\t\tfor(int i = 0; i < display.size();i++){\n\t\t\tif(testPt.x >= display.get(i).x && testPt.y >= display.get(i).y && testPt.x <= (display.get(i).x + display.get(i).width()) && testPt.y <= (display.get(i).y + display.get(i).height())){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean fits(Point p) {\n\t\treturn boundary.contains(p);\n\t}", "public boolean contains(double x, double y){\t\t\n\t\t\n\t\treturn x > xCoord - getWidth()/2 &&\n\t\t\t x < xCoord + getWidth()/2 &&\n\t\t\t y > yCoord - getHeight()/2 &&\n\t\t\t y < yCoord + getHeight()/2;\n\t}", "public boolean contains(double x, double y) { \n\t\t\t\n\t\t\tif(type.get() == ShapeType.CIRCLE)\n\t\t\t\treturn (Math.pow(x - centerX.get(), 2) + Math.pow(y - centerY.get(), 2)) <= Math.pow(radius.get(), 2); \n\t\t\telse if (type.get() == ShapeType.RECTANGLE || type.get() == ShapeType.ROUNDRECT || type.get() == ShapeType.OVAL) {\n\t\t\t\treturn ((x >= getCenterX() - getWidth()/2) && (x <= getCenterX() + getWidth()/2) && (y >= getCenterY() - getHeight()/2) && (y <= getCenterY() + getHeight()/2));\n\t\t\t}\n\t\t\telse if (type.get() == ShapeType.TEXT) {\n\t\t\t\treturn ((x >= getCenterX() - getHeight()*.43*getText().length()/2) && (x <= getCenterX() + getHeight()*.43*getText().length()/2) && (y >= getCenterY() - getHeight()/2) && (y <= getCenterY() + getHeight()/2));\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn false;\n\t\t\t\n\t\t}", "public boolean contains(GJPoint2D p) {\n\t\treturn this.contains(p.x(), p.y());\n\t}", "public boolean isInShape(Point p) \n\t{\n\t\tPoint centre = new Point((int)posX + diam/2, (int)posY + diam/2);\n\t\t//If distance between two points if less than or equal to radius, true is\n\t\t//returned\n\t\treturn p.distance(centre) <= diam/2;\n\t}", "public boolean contains(Point p) {\n\t\tif ((p.y > (super.getY() - super.height/2)) && (p.x > (super.getX() - width/2)) && (p.y < (super.getY() + super.height/2 + super.height)) && (p.x < (super.getX() - width/2 + super.width))) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean inside(Point p) {\n\t\tif (p.getX() < boundingRect.getX() || p.getY() < boundingRect.getY()) return false;\n\t\tif (p.getX() > boundingRect.getX() + boundingRect.getW() || \n\t\t p.getY() > boundingRect.getY() + boundingRect.getH()) return false;\n\n\t\t// Create a line from the point to the left\n\t\tLine l = new Line(p.getX(), p.getY(), p.getX() - boundingRect.getW(), p.getY());\n\n\t\t// Count intersections\n\t\tint count= 0;\t\t\n\t\tfor(int i=0; i<lines.size(); i++ ) {\n\t\t\tif (lines.get(i).intersectsAt(l) != null) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n // We are inside if the number of intersections is odd\n\t\treturn count%2 == 1;\n\t}", "@Override\n public boolean inBounds(int x, int y) {\n return x >= 0 && y >= 0 && x < this.bounds.width\n && y < this.bounds.height;\n }", "public boolean contains( float x, float y )\n {\n float llx = getLowerLeftX();\n float urx = getUpperRightX();\n float lly = getLowerLeftY();\n float ury = getUpperRightY();\n return x >= llx && x <= urx &&\n y >= lly && y <= ury;\n }", "public static boolean pointInRectangle(int minX, int minY, int maxX, int maxY, int x, int y) {\n\t\treturn minX < x && maxX > x && minY < y && maxY > y;\n\t}", "public boolean contains(Point2D p) {\n return mPoints.contains(p);\n }", "public boolean pointInside(World world, int x, int y, int z) {\n \t\tint coords[] = getCoords();\n \t\treturn ((coords[0] <= x && coords[3] >= x) &&\n\t\t\t\t(coords[1] <= y && coords[4] >= y) &&\n\t\t\t\t(coords[2] <= z && coords[5] >= z) &&\n \t\t\t\tgetWorld().getName().equals(world.getName()));\n \t}", "public boolean isWithinBounds(int x, int y) {\n\t\tif (x < 0 || x >= this.width)\n\t\t\treturn false;\n\n\t\tif (y < 0 || y >= this.height)\n\t\t\treturn false;\n\n\t\treturn true;\n\t}", "@Override\n public boolean containsPoint(Point x) {\n return x.getX() >= center.getX() - sideLength/2 && x.getX() <= center.getX() + sideLength/2\n && x.getY() >= center.getY() -sideLength/2 && x.getY() <= center.getY() +sideLength/2;\n }", "public boolean isInside(int x, int y) {\r\n if (this.state == 0) {\r\n if ((x >= this.x && x <= (this.x +width)) &&\r\n y >= this.y && y <= (this.y +height)) {\r\n return true;\r\n }\r\n } else if (this.state == 1) {\r\n if ((x <= this.x && x >= (this.x - height)) &&\r\n y >= this.y && y <= (this.y + width)) {\r\n return true;\r\n }\r\n } else if (this.state == 2) {\r\n if ((x <= this.x && x >= (this.x - width)) &&\r\n y <= this.y && y >= (this.y - height)) {\r\n return true;\r\n }\r\n } else if (this.state == 3) {\r\n if ((x >= this.x && x <= (this.x + height)) &&\r\n y <= this.y && y >= (this.y - width)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public boolean contains(Point2D p) {\n return pointSet.contains(p);\n }", "public boolean contains(Coord c) {\n\t\treturn getAWTRectangle().contains(c.getAWTPoint());\n\t}", "boolean hasCoordinates();", "boolean hasCoordinates();", "boolean hasCoordinates();", "public boolean contains(Point2D p) {\n if (p == null) {\n throw new IllegalArgumentException();\n }\n return points.contains(p);\n }", "public boolean whithinRectangle(Point point1, Point point2) {\n\t\treturn false;\n\t}", "public boolean contains(Point2D p) {\n checkNull(p);\n if (size == 0) {\n return false;\n } else {\n Node n = root;\n while (n != null) {\n double cmp = comparePoints(p, n);\n if (cmp < 0) {\n n = n.leftOrBot;\n } else if (cmp == 0) {\n return true;\n } else {\n n = n.rightOrTop;\n }\n }\n }\n return false;\n }", "@JsMethod(name = \"containsPoint\")\n public boolean contains(double p) {\n return p >= lo && p <= hi;\n }", "public boolean contains(Point2D p) {\n if (p == null)\n throw new IllegalArgumentException(\"Input point is null\");\n if (isEmpty())\n return false;\n boolean isX = true;\n Node curr = root;\n int cmp;\n while (true) {\n if (curr.point.equals(p))\n return true;\n if (isX)\n cmp = Point2D.X_ORDER.compare(p, curr.point);\n else\n cmp = Point2D.Y_ORDER.compare(p, curr.point);\n if (cmp < 0) {\n if (curr.left == null)\n return false;\n curr = curr.left;\n }\n else {\n if (curr.right == null)\n return false;\n curr = curr.right;\n }\n isX = !isX;\n }\n }", "public boolean isInside(Rectangle boundary) {\n\t\t\n\t\t// Use TLAP to see if it is or it is not\n\t\tif (x + diameter / 2 >= boundary.getX() - boundary.getWidth() && x + diameter / 2 <= boundary.getX() + boundary.getWidth()\n\t\t\t\t&& y + diameter / 2 >= boundary.getY() - boundary.getHeight() && y + diameter / 2 <= boundary.getY() + boundary.getHeight()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean contains(Point2D.Double p) {\n if(p.x <= middle.x + length/2.0 &&\n p.x >= middle.x - length/2.0 &&\n p.y <= middle.y + length/2.0 &&\n p.y >= middle.y - length/2.0) return true;\n else return false;\n }", "public boolean contains(Point2D p)\n {\n if (p != null && !isEmpty())\n {\n Node current = root;\n while (current != null)\n {\n if (current.isVertical()) // compare by x\n {\n if (p.x() < current.getPoint().x())\n {\n current = current.getLeft();\n }\n else if (p.x() > current.getPoint().x())\n {\n current = current.getRight();\n }\n else // equal x, now compare y\n {\n if (p.y() == current.getPoint().y())\n {\n return true;\n }\n }\n }\n else // compare by y\n {\n if (p.y() < current.getPoint().y())\n {\n current = current.getLeft();\n }\n else if (p.y() > current.getPoint().y())\n {\n current = current.getRight();\n }\n else // equal y, now compare x\n {\n if (p.x() == current.getPoint().x())\n {\n return true;\n }\n }\n }\n }\n }\n return false;\n }", "public boolean situatedInside(double x, double y) {\n if(y>this.bottomleft.x && y<this.topright.x && x <this.topright.y && x > this.bottomleft.y)\n return true;\n else\n return false;\n }", "public boolean doesIntersect(Box box) {\n\n\n\t\tfor (Point point:box.getVerts()) {\n\n\t\t\tif (this.contains(point)) return true;\n\t\t}\n\n\t\tfor (Point point: this.verts) {\n\n\t\t\tif (box.contains(point)) return true;\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean contains(Point2D p) {\n if (p == null) throw new IllegalArgumentException(\"Point is null or invalid\");\n return get(p) != null;\n }", "public boolean isInside(){\n\t\tinside = true;\n\t\tif(map.contains(new Rectangle(x,y,(int)spriteSize.getHeight(), (int)spriteSize.getWidth()))==false){\n\t\t\tinside = false;\n\t\t}\n\t\treturn(inside);\n\t}", "private boolean isInBounds(int x, int y) {\r\n\t\treturn x >= 0 && y >= 0 && x < getWidth() && y < getHeight();\r\n\t}", "default boolean contains(Vector3 point) {\r\n return contains(point.getX(), point.getY(), point.getZ());\r\n }", "public boolean collidePoint(float mX, float mY){\n return super.shape.contains(mX,mY);\n }", "boolean contains(Polygon p);", "public boolean contains(Point2D p) {\n if (p == null) {\n throw new IllegalArgumentException(\"cannot query null pt\");\n }\n return pointsSet.contains(p);\n\n }", "public boolean contains(double x, double y){\n\t\treturn (x >= this.x && x <= this.x + img.getWidth(null))\n\t\t\t\t&& (y >= this.y && y <= this.y + img.getHeight(null));\n\t}", "public boolean isInGUIObject(int x, int y) {\n return (x >= this.coordX &&\n x <= this.coordX + this.width &&\n y >= this.coordY &&\n y <= this.coordY + this.height);\n }", "public static boolean pointIn(int a, int b, int point) {\n return point>a && point<b;\n }", "public boolean isInSpriteBoundingBox(double x, double y) {\n\t\tfor (Sprite s:objects) {\n\t\t\tif (s.getBoundingBox().intersects(new Point(x, y)))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isPositionValid(){\n\t\t//check overlapping with walls\n\t\tfor(Wall wall : Game.gameField.getWalls()){\n\t\t\tif(wall.overlaps(center))\n\t\t\t\treturn false;\n\t\t}\n\t\t//check overlapping with other balls\n\t\tfor(Ball ball : Game.gameField.getBalls()){\n\t\t\tif(ball == this)\n\t\t\t\tcontinue;\n\t\t\tif(ball.getCenterPoint().distance(center) < RADIUS * 2)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn GameField.FIELD.contains(center);\n\t}", "public boolean contains(int x, int y) {\n\t\treturn this.getShape().contains(x,y);\n\t}", "private boolean contains(Ball ball) {\n checkRep();\n boolean contains =\n ball.getPosition().x() > this.boundingBoxPosition.x()\n && ball.getPosition().x() < this.boundingBoxPosition.x() + this.width\n && ball.getPosition().y() > this.boundingBoxPosition.y() \n && ball.getPosition().y() < this.boundingBoxPosition.y() + this.height;\n return contains;\n }", "public boolean isInside(int x, int y){\n \tif( ( x >= xpos && x <= xpos + img.getWidth()) &&\n \t\t ( y >= ypos && y <= ypos + img.getHeight()) ){\n \t\treturn true;\n \t}else\n \t\treturn false;\n\t}", "public boolean contains(Point2D p) \r\n\t{\r\n\t\treturn get(root, p) != null;\r\n\t}", "public boolean isInsideZone(int x, int y)\r\n\t{\r\n\t\tboolean inside = false;\r\n\t\tfor (Shape sh : _shapes)\r\n\t\t{\r\n\t\t\tif (sh.contains(x, y))\r\n\t\t\t{\r\n\t\t\t\tinside = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (_exShapes != null && inside)\r\n\t\t{\r\n\t\t\tfor (Shape sh : _exShapes)\r\n\t\t\t{\r\n\t\t\t\tif (sh.contains(x, y))\r\n\t\t\t\t{\r\n\t\t\t\t\tinside = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn inside;\r\n\t}", "static boolean contains(RBox b1, RBox b2){\n\t\t\n\t\t\t\n\t\t\tboolean xContainment = false;\n\t\t\tboolean yContainment = false;\n\t\t\t\n\t\t\tif(b1.xmin<=b2.xmin && b1.xmax>=b2.xmax)\n\t\t\t\txContainment = true;\n\t\t\tif(b1.ymin<=b2.ymin && b1.ymax>=b2.ymax)\n\t\t\t\tyContainment = true;\n\t\t\t\n\t\t\tif(xContainment&&yContainment)\n\t\t\t\treturn true;\n\t\t\n\t\t\n\t return false;\n\t\t\t\n\t\t\t\n\t}", "static Boolean pointInPgm(int x, int y) {\n return (x >= 0 ) && (y >= 0) && (x <= pgmInf.width) && (y <= pgmInf.height);\n }", "public boolean containsPoint( double px, double py ) {\r\n return (( px > drawx-getWidth()/2) && ( px < drawx+getWidth()/2) \r\n && ( py > drawy-getHeight()/2) && ( py < drawy+getHeight()/2));\r\n }", "public boolean isAt(Point punto) {\r\n Point inner = toInnerPoint(punto);\r\n for (Point block : innerPiece.getPoints())\r\n \tif (block.X() == inner.X() && block.Y() == inner.Y())\r\n \t\treturn true;\r\n return false;\r\n }", "public boolean isAround(Ball ball)\n {\n int delta = 10;\n Rectangle2D rectangle = new Rectangle2D.Double(mPosition.getX() - delta, mPosition.getY() - delta, 2 * delta, 2 * delta);\n \n return rectangle.contains(ball.getPosition());\n }", "public boolean contains(Point2D p) {\n if (p == null) {\n throw new IllegalArgumentException();\n }\n return contains(this.root, p);\n }", "public boolean contains(Point2D p) {\n\n if (p == null)\n throw new IllegalArgumentException(\"Got null object in contains()\");\n\n return point2DSET.contains(p);\n }", "public boolean pointInside(Point2D p) throws NoninvertibleTransformException {\n AffineTransform fullTransform = this.getFullTransform();\n AffineTransform inverseTransform = null;\n inverseTransform = fullTransform.createInverse();\n Point2D newP = (Point2D)p.clone();\n inverseTransform.transform(newP, newP);\n return elp.contains(newP);\n }", "public boolean hitCheck(float x, float y) {\r\n if (boxX <= x && x <= boxX + boxSize &&\r\n boxY <= y && y <= frameHeight) {\r\n return true;\r\n }\r\n return false;\r\n }", "boolean touchingPoint(float x, float y) {\n if (_hitbox.length == 1) return dist(x,y,_hitboxCenter.x, _hitboxCenter.y) < _hitbox[0].x;\n return _ptPoly(new PVector(x,y), _getPoints());\n }", "public boolean contains(Point2D p) {\n if (p == null) throw new IllegalArgumentException(\"Attempted to search for null query\");\n return isItThisNode(root, p);\n }", "public boolean isPositionInBounds(Vector vector) {\n\t\tif (vector == null) {\n\t\t\tthrow new NullPointerException();\n\t\t} else {\n\t\t\treturn vector.getX() < size && vector.getY() < size && vector.getX() >=0 && vector.getY() >= 0;\n\t\t}\n\t}", "static boolean isInside(int x, int y, int N) {\n if (x >= 1 && x <= N && y >= 1 && y <= N) {\n return true;\n }\n return false;\n }", "public boolean contains(Point2D p) {\n if (p == null) {\n throw new NullPointerException();\n }\n if (bst.contains(p))\n return true;\n return false;\n }", "public boolean detectBound(){\n if(posX < 0 || posX > width || posY < 0 || posY > height){\n return true;\n }\n else{\n return false;\n }\n }" ]
[ "0.7835722", "0.735004", "0.7151711", "0.7123275", "0.71140504", "0.70986444", "0.70881724", "0.70787436", "0.70774037", "0.7075499", "0.7062098", "0.7058276", "0.6973087", "0.69672173", "0.6963064", "0.69557035", "0.6955543", "0.69287187", "0.6925431", "0.6895285", "0.68616515", "0.68263197", "0.68239236", "0.6820166", "0.68163455", "0.68043983", "0.67915386", "0.67908436", "0.67768514", "0.67759186", "0.67663306", "0.675047", "0.67470074", "0.6704177", "0.6695471", "0.6689244", "0.6680245", "0.66784227", "0.66393256", "0.6629987", "0.6612791", "0.6602519", "0.6602024", "0.65780836", "0.656996", "0.6557152", "0.65564275", "0.6543657", "0.65399647", "0.65338904", "0.65200347", "0.6514682", "0.6507199", "0.6501649", "0.64883465", "0.64800227", "0.64800227", "0.64800227", "0.6470761", "0.6466179", "0.6453813", "0.6452269", "0.6449619", "0.64470327", "0.6439965", "0.64387465", "0.6429708", "0.64156383", "0.6405496", "0.6387103", "0.6385556", "0.6385251", "0.63829434", "0.63796246", "0.6369502", "0.63680154", "0.63668597", "0.6366825", "0.63609034", "0.63602245", "0.6354288", "0.6346372", "0.63457334", "0.63447475", "0.63408345", "0.6340275", "0.6339849", "0.6338241", "0.6337821", "0.6334732", "0.6321251", "0.63075024", "0.62708616", "0.6265547", "0.6264468", "0.62642497", "0.6262578", "0.62598586", "0.62494934", "0.62460107" ]
0.76021314
1
Check if a sphere overlaps any part of this bounding box.
public boolean isSphereInBox(final Vec3 inP, float fRadius) { float fDist; float fDistSq = 0; Vec4 p = m.getInverseSimple().multiply(inP.toPoint()); // Add distance squared from sphere centerpoint to box for each axis for (int i = 0; i < 3; i++) { if (abs(p.get(i)) > extents.get(i)) { fDist = abs(p.get(i)) - extents.get(i); fDistSq += fDist * fDist; } } return (fDistSq <= fRadius * fRadius); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean intersects( Geometry gmo );", "public boolean overlapAnyEntity(){\n \treturn this.getSuperWorld().getEntities().stream().anyMatch(T ->this.overlap(T));\n }", "public boolean overlaps(Shape2D s)\r\n {\r\n if (isPhasing)\r\n return false;\r\n \r\n return super.overlaps(s);\r\n }", "public abstract boolean intersect(BoundingBox bbox);", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isIntersection();", "public boolean intersects(MeshObject object) {\r\n return intersects(this.getCurrentCollisionCenter(), this.boundingSphereRadius, object.getCurrentCollisionCenter(), object.boundingSphereRadius);\r\n }", "boolean isIncludeBounds();", "public boolean intersects(HitBox h){\n\t\treturn rect.intersects(h.getRectangle());\n\t}", "private boolean overlaps(int x1, int z1, int x2, int z2, int radius)\r\n {\r\n int var6 = x1 - x2;\r\n int var7 = z1 - z2;\r\n return var6 >= -radius && var6 <= radius ? var7 >= -radius && var7 <= radius : false;\r\n }", "public boolean areIntersecting() {\n return intersection != null;\n }", "public boolean intersects(BoundingBox other) {\r\n\t\treturn !(other.left > getRight()\r\n\t\t\t || other.getRight() < left\r\n\t\t\t || other.top > getBottom()\r\n\t\t\t || other.getBottom() < top);\r\n\t}", "public void isIntersects(WorldObject worldObject) {\n Area areaFromThisObject = new Area(this.getShape());\n Area areaFromWorldObject = new Area(worldObject.getShape());\n areaFromThisObject.intersect(areaFromWorldObject);\n this.collided = !areaFromThisObject.isEmpty();\n }", "public boolean isIntersecting(GameObject other){\n if(other.isSolid()&&this.solid){\n return RectF.intersects(other.getHitBox(),this.hitBox);//|| hitBox.contains(other.getHitBox())||other.getHitBox().contains(this.hitBox)\n }\n return false;\n }", "private boolean intersects(Circle range) {\n\t\treturn range.intersects(boundary);\n\t}", "private boolean contains(Ball ball) {\n checkRep();\n boolean contains =\n ball.getPosition().x() > this.boundingBoxPosition.x()\n && ball.getPosition().x() < this.boundingBoxPosition.x() + this.width\n && ball.getPosition().y() > this.boundingBoxPosition.y() \n && ball.getPosition().y() < this.boundingBoxPosition.y() + this.height;\n return contains;\n }", "public boolean intersects(Platform p){\n \treturn box.intersects(p.getBox());\r\n }", "boolean overlaps(MyRectangle2D r) {\r\n\t\t//cordinates of the first corner of the parametar's rectangle\r\n\t\tdouble x1 = r.getX() - (r.getWidth() / 2);\r\n\t\tdouble y1 = r.getY() + (r.getHeight() / 2);\r\n\r\n\t\t//cordinates of the second corner of the parametar's rectangle\r\n\t\tdouble x2 = r.getX() + (r.getWidth() / 2);\r\n\t\tdouble y2 = r.getY() - (r.getHeight() / 2);\r\n\r\n\t\t//cordinates of the third corner of the parametar's rectangle\r\n\t\tdouble x3 = r.getX() - (r.getWidth() / 2);\r\n\t\tdouble y3 = r.getY() - (r.getHeight() / 2);\r\n\r\n\t\t//cordinates of the fourth corner of the parametar's rectangle\r\n\t\tdouble x4 = r.getX() + (r.getWidth() / 2);\r\n\t\tdouble y4 = r.getY() + (r.getHeight() / 2);\r\n\r\n\t\t//checking if calling rectangle has any of the corners inside itself\r\n\t\tboolean corner1Overlaps = this.contains(x1, y1);\r\n\t\tboolean corner2Overlaps = this.contains(x2, y2);\r\n\t\tboolean corner3Overlaps = this.contains(x3, y3);\r\n\t\tboolean corner4Overlaps = this.contains(x4, y4);\r\n\r\n\t\t//if it does contain any of the corners they overlap\r\n\t\treturn corner1Overlaps || corner2Overlaps || corner3Overlaps\r\n\t\t\t\t|| corner4Overlaps ? true : false;\r\n\t}", "@FromAnyThread\n public static boolean isContains(@NotNull Geometry geometry, float x, float y) {\n\n var mesh = geometry.getMesh();\n var localScale = geometry.getLocalScale();\n\n if (mesh instanceof Sphere) {\n var radius = ((Sphere) mesh).getRadius() * localScale.getX();\n // return true if the distance is less than equal to the radius\n return Math.abs(CoordsUtils.length(x, y)) <= radius;\n }\n\n return false;\n }", "private static boolean doBoundingBoxesIntersect(Rectangle a, Rectangle b) {\r\n\t return a.getMinX() <= b.getMaxX() \r\n\t && a.getMaxX() >= b.getMinX() \r\n\t && a.getMinY() <= b.getMaxY()\r\n\t && a.getMaxY() >= b.getMinY();\r\n\t}", "boolean contains( Geometry gmo );", "public static boolean intersects(Geometry a, Geometry b) {\r\n GeometryFactory factory = new GeometryFactory(a.getPrecisionModel(),\r\n a.getSRID());\r\n List aComponents = components(a);\r\n List bComponents = components(b);\r\n\r\n for (Iterator i = aComponents.iterator(); i.hasNext();) {\r\n Geometry aComponent = (Geometry) i.next();\r\n Assert.isTrue(!(aComponent instanceof GeometryCollection));\r\n\r\n //Collapse to point as workaround for JTS defect: #contains doesn't work for\r\n //polygons and zero-length vectors. [Jon Aquino]\r\n aComponent = collapseToPointIfPossible(aComponent, factory);\r\n\r\n for (Iterator j = bComponents.iterator(); j.hasNext();) {\r\n Geometry bComponent = (Geometry) j.next();\r\n Assert.isTrue(!(bComponent instanceof GeometryCollection));\r\n bComponent = collapseToPointIfPossible(bComponent, factory);\r\n\r\n if (aComponent.intersects(bComponent)) {\r\n return true;\r\n }\r\n }\r\n }\r\n\r\n return false;\r\n }", "public boolean intersects(Rectangle r) {\r\n return this.getRectangle().intersects(r);\r\n }", "public boolean isColliding(){\n for(int i = 0; i < eng.getIDManager().getObjectsWithID(\"GameObject\").size(); i++){\n GameObject temp = eng.getIDManager().getObjectsWithID(\"GameObject\").get(i);\n \n if(temp.getHitBox().getBounds().intersects(rect.getBounds()) &&\n temp.getHitBox() != this){\n currentCollidingObject = temp;\n return true;\n }\n }\n \n return false;\n }", "public boolean intersects(BaseGameObject other) {\r\n return (other.getPosx() - this.getPosx())\r\n * (other.getPosx() - this.getPosx())\r\n + (other.getPosy() - this.getPosy())\r\n * (other.getPosy() - this.getPosy())\r\n < (other.bound + this.bound) * (other.bound + this.bound);\r\n }", "public boolean overlaps(Triangle2D t) {\n\t\treturn true;\n\t}", "Multimap<String, String> intersects(Circle bounds);", "public boolean overlapsWith()\r\n\t{\r\n\t\tboolean alive = false;\r\n\t\tfor (Platforms platform : platforms)\r\n\t\t{\r\n\t\t\tif (getAvatar().getX() == platform.getX() && getAvatar().getY() == platform.getY())\r\n\t\t\t{\r\n\t\t\t\talive = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn alive;\r\n\t}", "@Override\n\tpublic boolean isInside(float x, float y, float z) {\n\t\treturn false;\n\t}", "public boolean collides(Ball b)\n\t{\n\t\tdouble dx = b.xPosition - xPosition;\n\t\tdouble dy = b.yPosition - yPosition;\n\t\tdouble distance = Math.sqrt(dx*dx+dy*dy);\n\n\t\treturn distance < size/2 + b.size/2;\n\t}", "boolean insideSprite(Sprite s){\n if (s._hitbox.length == 1) {\n if (_hitbox.length == 1) {\n return PVector.dist(s._getCenter(),this._getCenter()) <\n s._hitbox[0].x - this._hitbox[0].x;\n }\n return _insideCirc(_getPoints(), s._getCenter(), s._hitbox[0].x);\n }\n if (s._hitbox.length == 1) {\n // TODO: check if center is in middle but NOT touching any side\n // (will want to adapt existing _circPoly to separate side-touching\n // code into individual method)\n return false;\n }\n return _insidePts(this._getPoints(), s._getPoints());\n }", "protected boolean isOverlapping(ArrayList<Rectangle> first, ArrayList<Rectangle> second) {\n\t\tfor (Rectangle f : first) {\n\t\t\tfor (Rectangle s : second) {\n\t\t\t\tif (f.overlaps(s)) return true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private boolean intersectsAggregate( Aggregate mprim ) throws Exception {\n boolean inter = false;\n\n int cnt = mprim.getSize();\n\n for ( int i = 0; i < cnt; i++ ) {\n if ( intersects( mprim.getObjectAt( i ) ) ) {\n inter = true;\n break;\n }\n }\n\n return inter;\n }", "public boolean collides(Ball ball) //collision detection\n {\n if( ( position.y+height ) > ball.getPosY()-8 )\n {\n if( position.y+10 < ( ball.getPosY()-8 ) )\n {\n if(\n !((\n (ball.getPosX()-12 < ( position.x)+width ) &&\n (ball.getPosX()+12 < (position.x+width) ) &&\n (ball.getPosX()-12 < position.x ) &&\n (ball.getPosX()+12 < position.x )\n )||\n (\n (ball.getPosX()-12 > ( position.x+width )) &&\n (ball.getPosX()+12 > (position.x+width) ) &&\n (ball.getPosX()-12 > ( position.x )) &&\n (ball.getPosX()+12 > position.x )\n ))\n ){return true;}\n }\n\n }\n\n return false;\n\n /*\n if(position.y > (ball.getPosY() - 77 ) ) //should be ball.getheight\n {\n\n return Intersector.overlaps(ball.getCircle(), rect);\n }\n */\n\n }", "private boolean collision1() {\n return game.racket1.getBounds1().intersects(getBounds()); // returns true if the two rectangles intersect\r\n }", "public boolean intersectsWith(AxisAlignedBB axis) {\n\t\treturn axis.maxX > this.minX && axis.minX < this.maxX ? (axis.maxY > this.minY && axis.minY < this.maxY ? axis.maxZ > this.minZ && axis.minZ < this.maxZ : false) : false;\n\t}", "private boolean colisionPalas() {\r\n\t\treturn game.racketIzq.getBounds().intersects(getBounds())\r\n\t\t\t\t|| game.racketDer.getBounds().intersects(getBounds());\r\n\t}", "private boolean intersects(int x, int y, int size){\n count++;\n return(!(\n x > this.x + this.width ||\n x + size < this.x ||\n y > this.y + this.height ||\n y + size < this.y\n ));\n }", "public boolean doesIntersect(Box box) {\n\n\n\t\tfor (Point point:box.getVerts()) {\n\n\t\t\tif (this.contains(point)) return true;\n\t\t}\n\n\t\tfor (Point point: this.verts) {\n\n\t\t\tif (box.contains(point)) return true;\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean isIntersecting(RectF other){\n return RectF.intersects(other,this.hitBox);//|| hitBox.contains(other.getHitBox())||other.getHitBox().contains(this.hitBox)\n }", "boolean isInsideScreen() {\n if (_hitbox.length == 1) {\n float r = _hitbox[0].x;\n PVector c = _getCenter();\n return 0 <= c.x + r && c.x - r < width && 0 <= c.y + r && c.y - r < height;\n }\n \n PVector[] points = this._getPoints();\n for(PVector p : points) {\n if(0 <= p.x && p.x < width && 0 <= p.y && p.y < height) {\n return true;\n }\n }\n return false;\n }", "@Override\n\tpublic boolean hasCollide(Entity e) {\n\t\treturn rect.intersects(e.getRectangle());\n\t}", "@Override\n\tpublic boolean intersects(double arg0, double arg1, double arg2, double arg3) {\n\t\treturn false;\n\t}", "public boolean isInsideZone(int x, int y)\r\n\t{\r\n\t\tboolean inside = false;\r\n\t\tfor (Shape sh : _shapes)\r\n\t\t{\r\n\t\t\tif (sh.contains(x, y))\r\n\t\t\t{\r\n\t\t\t\tinside = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (_exShapes != null && inside)\r\n\t\t{\r\n\t\t\tfor (Shape sh : _exShapes)\r\n\t\t\t{\r\n\t\t\t\tif (sh.contains(x, y))\r\n\t\t\t\t{\r\n\t\t\t\t\tinside = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn inside;\r\n\t}", "public boolean intersects( final float tx, final float ty, final float width, final float height )\r\n {\r\n if ( this.transform.tx( ) > tx + width ) return false;\r\n if ( this.transform.tx( ) + this.width( ) < tx ) return false;\r\n if ( this.transform.ty( ) > ty + height ) return false;\r\n if ( this.transform.ty( ) + this.height( ) < ty ) return false;\r\n\r\n return true;\r\n }", "@Override\n public Rectangle intersects( Rectangle boundingBox )\n {\n return null;\n }", "Multimap<String, String> intersects(RectangleLatLng bounds);", "public boolean isIntersectingWithViewport(ObjectWithPosition obj){\n if(this.bounds.intersect(obj.getBounds()))\n return true;\n else return false;\n }", "Multimap<String, String> intersects(Polygon bounds);", "private boolean collides(GameObject gameObject1, double radius) {\n synchronized (mGameObjects) {\n for (GameObject gameObject2 : mGameObjects) {\n if (gameObject1 != gameObject2) {\n if (collides(gameObject1.getLocation(), gameObject2.getLocation(), radius))\n return true;\n }\n }\n }\n return false;\n }", "public boolean collision( Point cur, ArrayList<Point> bounds ) {\n\t\t\n\t\tfor ( int i = 0; i < bounds.size(); i++ )\n\t\t\tif ( cur.equals( bounds.get(i) ) )\n\t\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}", "public boolean collides(Rectangle player) {\r\n return player.overlaps(boundsTop) || player.overlaps(boundsBot);\r\n }", "public boolean intersects( final Layer.HasSize layer )\r\n {\r\n return this.intersects( layer.transform( ).tx( ), layer.transform( ).ty( ), layer.width( ), layer.height( ) );\r\n }", "public boolean overlaps(Circle2D other) {\n return Math.abs(distance(other.getX(), other.getY())) < getRadius() + other.getRadius();\n }", "public boolean isOverlapping(Filter f);", "public boolean blocks(Point3d S, Ray3d c) {\n double A = c.getX() * c.getX() + c.getY() * c.getY() + c.getZ() * c.getZ();\n\n double bx = (this.x - S.getX()); //Account for the Sphere's position\n double by = (this.y - S.getY());\n double bz = (this.z - S.getZ());\n double B = -(c.getX() * bx + c.getY() * by + c.getZ() * bz);\n double r = this.radius * this.radius;\n double C = bx * bx + by * by + bz * bz - r;\n\n double D = (B * B - A * C);\n if (D < 0) //no intersection\n {\n return false;\n }\n\n if (D == 0) //'graze' the sphere\n {\n /****/return false;\n }\n\n double t1 = (-B - Math.sqrt(D)) / A;\n if (t1 > 0.00001 && t1 < 1.0) //The first hit\n {\n return true; //But need to check if it's less than 1, also!\n }\n\n double t2 = (-B / A) + Math.sqrt(D) / A;\n if (t2 > 0.00000001 && t2 < 1.0) {\n return true;\n }\n\n return false;\n }", "public boolean intersects(Shape other) {\n boolean result = false;\n ArrayList<Vector3D> points = getPoints();\n for (Vector3D point : points) {\n if (other.contains(point)) {\n if (other.contains(point)) {\n if (other.contains(point)) {\n System.out.println(this.part.name + \" contains \" + other.part.name + \" : \" + point);\n\n result = true;\n }\n }\n }\n }\n\n points = other.getPoints();\n for (Vector3D point : points) {\n if (this.contains(point)) {\n if (this.contains(point)) {\n if (this.contains(point)) {\n System.out.println(this.part.name + \" contains \" + other.part.name + \" : \" + point);\n\n result = true;\n }\n }\n }\n }\n\n return result;\n }", "public boolean intersect(Unit collidee) {\n if (collidee instanceof Qix) {\n Qix qix = (Qix) collidee;\n return qix.intersect(this);\n }\n Rectangle colliderR = this.toRectangle();\n // subtract one from width&height to make collisions look more real\n Rectangle collideeR = collidee.toRectangle();\n\n if (colliderR.intersects(collideeR)) {\n\n LOGGER.log(Level.WARNING, this.toString() + \" collided with \" + collidee.toString() + \" at (\" + this.getX()\n + \",\" + this.getY() + \")\", this.getClass());\n\n return true;\n }\n return false;\n }", "public boolean areOverlapping() {\n return areOverlapping;\n }", "public boolean overlapsBlock ( ) {\r\n\t\tif (current_block >= getBlockCount())\r\n\t\t\treturn true;\r\n\r\n\t\tif (circum_area == null)\r\n\t\t\treturn true;\r\n\r\n\t\tCoor start_coor = new Coor((double)ra_start[(int)current_block], -6.0);\r\n\t\tCoor end_coor = new Coor((double)ra_end[(int)current_block], 90.0);\r\n\t\tif (circum_area.overlapsArea(start_coor, end_coor))\r\n\t\t\treturn true;\r\n\r\n\t\treturn false;\r\n\t}", "public boolean collidesWith(double x, double y) {\n\t\tdouble leftBound = owner.getX() + this.offsetX - (width/2);\n\t\tdouble upBound = owner.getY() + this.offsetY - (height/2);\n\t\treturn x <= leftBound + width && x >= leftBound && y <= upBound + height && y >= upBound;\n\t}", "private void checkOverlaps() {\r\n final ArrayList<Vertex> overlaps = new ArrayList<Vertex>(3);\r\n final int count = getOutlineNumber();\r\n boolean firstpass = true;\r\n do {\r\n for (int cc = 0; cc < count; cc++) {\r\n final Outline outline = getOutline(cc);\r\n int vertexCount = outline.getVertexCount();\r\n for(int i=0; i < outline.getVertexCount(); i++) {\r\n final Vertex currentVertex = outline.getVertex(i);\r\n if ( !currentVertex.isOnCurve()) {\r\n final Vertex nextV = outline.getVertex((i+1)%vertexCount);\r\n final Vertex prevV = outline.getVertex((i+vertexCount-1)%vertexCount);\r\n final Vertex overlap;\r\n\r\n // check for overlap even if already set for subdivision\r\n // ensuring both triangular overlaps get divided\r\n // for pref. only check in first pass\r\n // second pass to clear the overlaps array(reduces precision errors)\r\n if( firstpass ) {\r\n overlap = checkTriOverlaps0(prevV, currentVertex, nextV);\r\n } else {\r\n overlap = null;\r\n }\r\n if( overlaps.contains(currentVertex) || overlap != null ) {\r\n overlaps.remove(currentVertex);\r\n\r\n subdivideTriangle(outline, prevV, currentVertex, nextV, i);\r\n i+=3;\r\n vertexCount+=2;\r\n addedVerticeCount+=2;\r\n\r\n if(overlap != null && !overlap.isOnCurve()) {\r\n if(!overlaps.contains(overlap)) {\r\n overlaps.add(overlap);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n firstpass = false;\r\n } while( !overlaps.isEmpty() );\r\n }", "public boolean overlap(Circle other) {\r\n\t\t// implementation not shown\r\n\t}", "private boolean colisionEstorbos(){\r\n\t\tif(game.estorbo1.getBounds().intersects(getBounds())){\r\n\t\t\tasignarVelocidad(game.estorbo1, rebotes1);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif(game.estorbo2.getBounds().intersects(getBounds())){\r\n\t\t\tasignarVelocidad(game.estorbo2, rebotes2);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif(game.estorbo3.getBounds().intersects(getBounds())){\r\n\t\t\tasignarVelocidad(game.estorbo3, rebotes3);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean isInBoundaries() {\n\t return Referee.playfield.isInBoundaries(this);\n }", "static boolean doTheseOverlap(RBox b1, RBox b2){\n\t\t\n\t\tif(contains(b1,b2))\n\t\t\treturn true;\n\t\t\n\t\tif(contains(b2,b1))\n\t\t\treturn true;\n\t\t\n\t\tboolean xOverlap=false ;\n\t\tboolean yOverlap=false ;\n\t\t\n\t\tif(b1.xmax==b2.xmin && b2.xmax > b1.xmax)\n\t\t\treturn false;\n\t\t\n\t\tif(b2.xmax==b1.xmin && b1.xmax > b2.xmax)\n\t\t\treturn false;\n\t\t\n\t\tif((b1.xmin<=b2.xmin&&b1.xmax>=b2.xmax)||(b2.xmin<=b1.xmin&&b2.xmax>=b1.xmax))\n\t\t\txOverlap=true;\n\t\t\n\t\tif(!xOverlap)\n\t\tif(b1.xmin >= b2.xmin && b1.xmin <= b2.xmax)\n\t\t\txOverlap=true;\n\t\t\n\t\tif(!xOverlap)\n\t\t if(b1.xmax >= b2.xmin && b1.xmax <= b2.xmax)\n\t\t \txOverlap = true;\n\t\t else{//System.out.println(\"X overlap\");\n\t\t \treturn false;}\n\t\t\n\t\t\n\t\tif((b1.ymin<=b2.ymin&&b1.ymax>=b2.ymax)||(b2.ymin<=b1.ymin&&b2.ymax>=b1.ymax))\n\t\t yOverlap=true;\n\t\t\n\t\tif(!yOverlap)\n\t\tif(b1.ymin>=b2.ymin && b1.ymin<=b2.ymax)\n\t\t\tyOverlap=true;\n\t\t\n\t\tif(!yOverlap)\n\t\t\tif(b1.ymax>=b2.ymin && b1.ymax<=b2.ymax)\n\t\t\t\tyOverlap=true;\n\t\t\telse{\n\t\t\t\t//System.out.println(\"Y overlap\");\n\t\t\t\treturn false;}\n\t\t\n\t\tif(xOverlap&&yOverlap)\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}", "public boolean intersect(BoundingBox3d b2) {\n return ((xmin <= b2.xmin && b2.xmin <= xmax) || (xmin <= b2.xmax && b2.xmax <= xmax))\n && ((ymin <= b2.ymin && b2.ymin <= ymax) || (ymin <= b2.ymax && b2.ymax <= ymax))\n && ((zmin <= b2.zmin && b2.zmin <= zmax) || (zmin <= b2.zmax && b2.zmax <= zmax));\n }", "public boolean contains(BoundingBox3d b2) {\n return xmin <= b2.xmin && b2.xmax <= xmax && ymin <= b2.ymin && b2.ymax <= ymax\n && zmin <= b2.zmin && b2.zmax <= zmax;\n }", "public boolean inBounds(Actor a)\n {\n boolean inX = Math.abs(a.getXPos()) < levelWidth/2;\n boolean inY = Math.abs(a.getYPos()) < levelHeight/2;\n return inX && inY;\n }", "public boolean intersects(Obstacle v){\n \treturn box.intersects(v.getBox()); \t\r\n }", "public boolean contains(Lover m) {\n PVector loc =m.location;\n // is Lover object is inside of mouse controlled fluid?\n // if (loc.x> mouseX && loc.x < mouseX + w && loc.y > mouseY && loc.y < mouseY+ h) { //creates flyover\n // return true;\n // } \n // is Lover object inside of stationary fluid area? Yes? then go back to if statement and apply force\n if (loc.x> x && loc.x < x + w && loc.y > y && loc.y < y+ h) {\n return true;\n } \n // No? then return fals and do not apply drag force\n else {\n return false;\n }\n }", "boolean hasIsPartOf();", "public boolean intersects(GISArea other) {\n if (this.isPoint() && other.isPoint()) {\n return this.latitudes.equals(other.latitudes) && this.longitudes.equals(other.longitudes);\n }\n // 2. We're a point, they're not.\n else if (this.isPoint() && other.isRegion()) {\n Area them = new Area(other.path);\n return them.contains(this.latitudes.get(0), this.longitudes.get(0));\n }\n // 3. We're a region, they're a point.\n else if (this.isRegion() && other.isPoint()) {\n Area us = new Area(this.path);\n return us.contains(other.latitudes.get(0), other.longitudes.get(0));\n }\n // 4. We're both regions.\n else {\n // Make the shapes for both areas.\n // Take the intersect\n // If an empty shape, no intersection.\n Area us = new Area(path);\n Area them = new Area(other.path);\n us.intersect(them);\n return !us.isEmpty();\n }\n }", "public boolean detect_intersection_with_box(Box box)\n {\n if(_boundingbox == null)\n {\n this.generateBoundingBox();\n }\n\n // No intersection if the bounding box doesn't intersect the input box.\n if(!box.intersects_box(this._boundingbox))\n {\n return false;\n }\n\n // Filled polyline and contains entire box.\n if(this.isFilled() && this.containsPoint(box.min))\n {\n return true;\n }\n\n // Filled box that contains entire polyline.\n if(box.isFilled() && box.containsPoint(this._points.get(0)))\n {\n return true;\n }\n\n // No perform a polyline <---> polyline intersection test.\n Polyline polyline = box.toPolyline();\n\n return detect_intersection_with_polyline(polyline);\n }", "public boolean intersects(PhysicsComponent p, int x, int y) {\n\t\treturn p.getBoundsRect().intersects(this.getRect(x, y));\n\t}", "public boolean contains(double x, double y) { \n\t\t\t\n\t\t\tif(type.get() == ShapeType.CIRCLE)\n\t\t\t\treturn (Math.pow(x - centerX.get(), 2) + Math.pow(y - centerY.get(), 2)) <= Math.pow(radius.get(), 2); \n\t\t\telse if (type.get() == ShapeType.RECTANGLE || type.get() == ShapeType.ROUNDRECT || type.get() == ShapeType.OVAL) {\n\t\t\t\treturn ((x >= getCenterX() - getWidth()/2) && (x <= getCenterX() + getWidth()/2) && (y >= getCenterY() - getHeight()/2) && (y <= getCenterY() + getHeight()/2));\n\t\t\t}\n\t\t\telse if (type.get() == ShapeType.TEXT) {\n\t\t\t\treturn ((x >= getCenterX() - getHeight()*.43*getText().length()/2) && (x <= getCenterX() + getHeight()*.43*getText().length()/2) && (y >= getCenterY() - getHeight()/2) && (y <= getCenterY() + getHeight()/2));\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn false;\n\t\t\t\n\t\t}", "@Override\n\tpublic boolean collidesWithRectangle(Rectangle rectangle) {\n\t\treturn false;\n\t}", "public boolean intersectsFrustum(Frustum frustum) {\n if (frustum == null) {\n throw new IllegalArgumentException(\n Logger.logMessage(Logger.ERROR, \"BoundingSphere\", \"intersectsFrustum\", \"missingFrustum\"));\n }\n\n // See if the extent's bounding sphere is within or intersects the frustum. The dot product of the extent's\n // center point with each plane's vector provides a distance to each plane. If this distance is less than\n // -radius, the extent is completely clipped by that plane and therefore does not intersect the space enclosed\n // by this Frustum.\n\n double nr = -this.radius;\n\n if (frustum.near.distanceToPoint(this.center) <= nr) {\n return false;\n }\n\n if (frustum.far.distanceToPoint(this.center) <= nr) {\n return false;\n }\n\n if (frustum.left.distanceToPoint(this.center) <= nr) {\n return false;\n }\n\n if (frustum.right.distanceToPoint(this.center) <= nr) {\n return false;\n }\n\n if (frustum.top.distanceToPoint(this.center) <= nr) {\n return false;\n }\n\n if (frustum.bottom.distanceToPoint(this.center) <= nr) {\n return false;\n }\n\n return true;\n }", "private boolean isBallInside(Ball ball) {\n Vect ballCenter = ball.getCircle().getCircle().getCenter();\n Double ballX = ballCenter.x();\n Double ballY = ballCenter.y();\n Double radius = ball.getCircle().getCircle().getRadius();\n Double centerX = this.location.x()+0.5;\n Double centerY = this.location.y()+0.5;\n assert(checkRep());\n return ((ballX-centerX)*(ballX-centerX)+(ballY-centerY)*(ballY-centerY)) < ((0.5+radius)*(0.5+radius));\n }", "private boolean hasCollided(Circle a, Polygon p) {\r\n //calculate the distance between the centers\r\n return p.getBoundsInParent().intersects(a.getBoundsInParent());\r\n\r\n }", "private boolean isInBounds(float x, float y) {\n\n if (x <= 0 || x >= this.getWidth() || y <= 0 || y >= this.getHeight()) {\n\n return false;\n }\n return new RectF(0, 0, this.getWidth(), this.getHeight())\n .contains(x, y);\n }", "public boolean collides(Player p) {\n\t\treturn (first.collides(p) || this.rest.collides(p));\n\t}", "public abstract boolean overlap(Catcher catcher, FallingObject object);", "@Override\n\tpublic boolean collidesWith(GameObject otherObject) {\n\t\tboolean result = false;\n\t\tdouble thisCenterX = this.getX();\n\t\tdouble thisCenterY = this.getY();\n\n\t\tdouble otherCenterX = (otherObject).getX();\n\t\tdouble otherCenterY = (otherObject).getY();\n\n\t\tdouble dx = thisCenterX - otherCenterX;\n\t\tdouble dy = thisCenterY - otherCenterY;\n\n\t\tdouble distBetweenCentersSqr = (dx * dx + dy * dy);\n\n\t\tint thisRadius= this.getSize() / 2;\n\t\t\n\t\tint otherRadius;\n\t\t\n\t\tif(otherObject instanceof Base) {\n\t\t\totherRadius= (otherObject).getSize();\n\t\t}else {\n\t\t\totherRadius= (otherObject).getSize() / 2;\n\t\t}\n\n\t\tint radiiSqr= (thisRadius * thisRadius + 2 * thisRadius * otherRadius + otherRadius * otherRadius);\n\n\t\tif (distBetweenCentersSqr <= radiiSqr) { result = true ; }\n\n\t\treturn result;\n\t}", "public boolean isInside(Rectangle boundary) {\n\t\t\n\t\t// Use TLAP to see if it is or it is not\n\t\tif (x + diameter / 2 >= boundary.getX() - boundary.getWidth() && x + diameter / 2 <= boundary.getX() + boundary.getWidth()\n\t\t\t\t&& y + diameter / 2 >= boundary.getY() - boundary.getHeight() && y + diameter / 2 <= boundary.getY() + boundary.getHeight()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean intersects(Shape otherShape)\n {\n if (rotation == 0.0 && otherShape.rotation == 0.0)\n {\n return RectF.intersects(getBounds(), otherShape.getBounds());\n }\n else\n {\n updateRotatedCorners();\n otherShape.updateRotatedCorners();\n if (checkOutside(rotatedCorners, otherShape.rotatedCorners))\n {\n return false;\n }\n if (checkOutside(otherShape.rotatedCorners, rotatedCorners))\n {\n return false;\n }\n return true;\n }\n }", "static boolean contains(RBox b1, RBox b2){\n\t\t\n\t\t\t\n\t\t\tboolean xContainment = false;\n\t\t\tboolean yContainment = false;\n\t\t\t\n\t\t\tif(b1.xmin<=b2.xmin && b1.xmax>=b2.xmax)\n\t\t\t\txContainment = true;\n\t\t\tif(b1.ymin<=b2.ymin && b1.ymax>=b2.ymax)\n\t\t\t\tyContainment = true;\n\t\t\t\n\t\t\tif(xContainment&&yContainment)\n\t\t\t\treturn true;\n\t\t\n\t\t\n\t return false;\n\t\t\t\n\t\t\t\n\t}", "public boolean collidePoint(float mX, float mY){\n return super.shape.contains(mX,mY);\n }", "boolean contains(Polygon p);", "public boolean isInsideZone(int x, int y, int z)\r\n\t{\r\n\t\tboolean inside = false;\r\n\t\tfor (Shape sh : _shapes)\r\n\t\t{\r\n\t\t\tif (sh.contains(x, y, z))\r\n\t\t\t{\r\n\t\t\t\tinside = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (_exShapes != null && inside)\r\n\t\t{\r\n\t\t\tfor (Shape sh : _exShapes)\r\n\t\t\t{\r\n\t\t\t\tif (sh.contains(x, y, z))\r\n\t\t\t\t{\r\n\t\t\t\t\tinside = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn inside;\r\n\t}", "public boolean overlap(float[] a, float[] b) {\r\n return ( (b[0] <= a[0] && a[0] <= b[3]) || (b[0] <= a[3] && a[3] <= b[3]) ) &&\r\n ( (b[1] <= a[1] && a[1] <= b[4]) || (b[1] <= a[4] && a[4] <= b[4]) ) &&\r\n ( (b[2] <= a[2] && a[2] <= b[5]) || (b[2] <= a[5] && a[5] <= b[5]) );\r\n }", "public boolean isInside(){\n\t\tinside = true;\n\t\tif(map.contains(new Rectangle(x,y,(int)spriteSize.getHeight(), (int)spriteSize.getWidth()))==false){\n\t\t\tinside = false;\n\t\t}\n\t\treturn(inside);\n\t}", "public boolean intersects( Geometry gmo ) {\n boolean inter = false;\n\n try {\n if ( gmo instanceof Point ) {\n inter = LinearIntersects.intersects( (Point)gmo, this );\n } else if ( gmo instanceof Curve ) {\n inter = LinearIntersects.intersects( this, (Curve)gmo );\n } else if ( gmo instanceof Surface ) {\n inter = LinearIntersects.intersects( this, (Surface)gmo );\n } else if ( gmo instanceof Aggregate ) {\n inter = intersectsAggregate( (Aggregate)gmo );\n }\n } catch ( Exception e ) {\n }\n\n return inter;\n }", "public boolean ifOverlap(Block b) {\n\t\tint thisR1 = this.getTopLeft().getRow();\n\t\tint thisR2 = this.getBotRight().getRow();\n\t\tint thisC1 = this.getTopLeft().getCol();\n\t\tint thisC2 = this.getBotRight().getCol();\n\t\tint R1 = b.getTopLeft().getRow();\n\t\tint R2 = b.getBotRight().getRow();\n\t\tint C1 = b.getTopLeft().getCol();\n\t\tint C2 = b.getBotRight().getCol();\n\t\tint maxR1 = Math.max(thisR1, R1);\n\t\tint minR2 = Math.min(thisR2, R2);\n\t\tint maxC1 = Math.max(thisC1, C1);\n\t\tint minC2 = Math.min(thisC2, C2);\n\n\t\treturn minR2 >= maxR1 && minC2 >= maxC1;\n\t}", "public boolean contains(int x, int y)\n\t{\n\t\treturn (boundingBox.contains(x,y));\n\t}", "public boolean checkCollision(Rectangle hitBox) {\n for (Ghost ghost : ghostList) {\n if (ghost.checkCollision(hitBox)) {\n return true;\n }\n }\n return false;\n }", "public void detectCollisions(){\n\t\tfor(int i = 0; i < pScene.getNumOf(); i++){\n\t\t\tEntity a = pScene.getObject(i);\n\t\t\tif (!a.isAlive())\n\t\t\t\tcontinue;\n\t\t\tfor(int j = i + 1; j < pScene.getNumOf(); j++){\n\t\t\t\tEntity b = pScene.getObject(j);\n\t\t\t\tif(a.intersects(b)&&(!(a.getStatic()&&b.getStatic()))){\n\t\t\t\t\tsManifolds.add(new Manifold(a,b)); // For regular objects\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static boolean collide(CustomAABB us, CustomBlockBox block, Vector3f pos, Vector3f inertia, float width, float height, boolean onGround){\n boolean xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n boolean yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n boolean zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //double check to stop clipping if not enough space\n if (xWithin && zWithin && yWithin &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()+1,block.getFront())) &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()+2,block.getFront()))) {\n\n //floor detection\n if (block.getTop() > us.getBottom() && inertia.y < 0 && us.getBottom() - block.getTop() > -0.15f) {\n //this is the collision debug sphere for terrain\n float oldPos = pos.y;\n pos.y = block.getTop();\n //don't move up if too high\n if (pos.y - oldPos > 1) {\n pos.y = (int)oldPos;\n }\n inertia.y = 0;\n onGround = true;\n }\n }\n\n //stop getting shot across the map\n if (xWithin && zWithin && yWithin &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()-1,block.getFront())) &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()-2,block.getFront()))) {\n //head detection\n if (block.getBottom() < us.getTop() && inertia.y >= 0 && us.getTop() - block.getBottom() < 0.15f) {\n pos.y = block.getBottom() - height;\n inertia.y = 0;\n }\n }\n\n float averageX = Math.abs(((block.getLeft() + block.getRight())/2f) - pos.x);\n float averageY = Math.abs(((block.getBottom() + block.getTop())/2f) - pos.y);\n float averageZ = Math.abs(((block.getFront() + block.getBack())/2f) - pos.z);\n if (averageX > averageZ) {\n if (!detectBlock(new Vector3f(block.getLeft()+1, block.getBottom(),block.getFront()))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //x- detection\n if (xWithin && zWithin && yWithin) {\n if (block.getRight() > us.getLeft() && inertia.x < 0) {\n pos.x = block.getRight() + width + 0.00001f;\n inertia.x = 0;\n }\n }\n }\n if (!detectBlock(new Vector3f(block.getLeft()-1, block.getBottom(),block.getFront()))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //x+ detection\n if (xWithin && zWithin && yWithin) {\n if (block.getLeft() < us.getRight() && inertia.x > 0) {\n pos.x = block.getLeft() - width - 0.00001f;\n inertia.x = 0;\n }\n }\n }\n } else {\n if (!detectBlock(new Vector3f(block.getLeft(), block.getBottom(),block.getFront()+1))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //z- detection\n if (xWithin && zWithin && yWithin) {\n if (block.getBack() > us.getFront() && inertia.z < 0) {\n pos.z = block.getBack() + width + 0.00001f;\n inertia.z = 0;\n }\n }\n }\n if (!detectBlock(new Vector3f(block.getLeft(), block.getBottom(),block.getFront()-1))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //z+ detection\n if (xWithin && zWithin && yWithin) {\n if (block.getFront() < us.getBack() && inertia.z > 0) {\n pos.z = block.getFront() - width - 0.00001f;\n inertia.z = 0;\n }\n }\n }\n }\n return onGround;\n }", "public void intersect(Shape s);", "public boolean isAround(Ball ball)\n {\n int delta = 10;\n Rectangle2D rectangle = new Rectangle2D.Double(mPosition.getX() - delta, mPosition.getY() - delta, 2 * delta, 2 * delta);\n \n return rectangle.contains(ball.getPosition());\n }", "public boolean intersects (GraphicalFigure fig) {\n\t\t\n\t\t// Check to see if there is any overlap between the 2 figures horizontally\n\t\tif (fig.getOffset().xCoord() > this.gfPos.xCoord() + this.getWidth() || this.gfPos.xCoord() > fig.getOffset().xCoord() + fig.getWidth()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Check to see if there is any overlap between the 2 figures vertically\n\t\tif (fig.getOffset().yCoord() > this.gfPos.yCoord() + this.getHeight() || this.gfPos.yCoord() > fig.getOffset().yCoord() + fig.getHeight()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}" ]
[ "0.6463065", "0.63550895", "0.6321995", "0.6274875", "0.61472374", "0.61428815", "0.6114145", "0.6113548", "0.6110856", "0.6093813", "0.60648686", "0.6064619", "0.6054079", "0.6048581", "0.6016514", "0.6013502", "0.60126024", "0.60116255", "0.60014445", "0.59448326", "0.59039026", "0.5877361", "0.5860032", "0.5838056", "0.5834308", "0.5833293", "0.58113015", "0.5802603", "0.58025235", "0.5795137", "0.579229", "0.57859045", "0.57853836", "0.5774191", "0.57519215", "0.5748792", "0.57372487", "0.57372373", "0.5721952", "0.56834024", "0.56798583", "0.56798154", "0.5661047", "0.56509566", "0.56465274", "0.5639284", "0.56387746", "0.56375647", "0.5634542", "0.56272024", "0.5617996", "0.5613523", "0.5607231", "0.56072056", "0.56053513", "0.56012183", "0.55980265", "0.55940086", "0.5582898", "0.558087", "0.55765676", "0.5575652", "0.55539805", "0.55445826", "0.5508321", "0.54995394", "0.5498667", "0.5495869", "0.54949707", "0.5488783", "0.54872835", "0.547574", "0.5465311", "0.54501694", "0.5447879", "0.5447504", "0.54448056", "0.5442653", "0.54424953", "0.5439309", "0.54392904", "0.5438349", "0.54369396", "0.54356354", "0.54346156", "0.54323405", "0.54312015", "0.5427097", "0.54253983", "0.5423326", "0.5420545", "0.5418378", "0.54138756", "0.54134697", "0.54112375", "0.541017", "0.5409229", "0.5403031", "0.54016834", "0.5395027" ]
0.61221784
6
Check if the bounding box is completely behind a plane (defined by a normal and a point).
public boolean boxOutsidePlane(final Vec3 inNorm, final Vec3 inP) { // Plane Normal in Box Space Vec3 norm = m.getInverseSimple().roatateVector(inNorm); // roatateVector only uses rotation portion of matrix norm = new Vec3(abs(norm.getX()), abs(norm.getY()), abs(norm.getZ())); float extent = norm.dot(extents); // Box Extent along the plane normal float distance = inNorm.dot(getCenterPoint().subtract(inP)); // Distance from Box Center to the Plane // If Box Centerpoint is behind the plane further than its extent, the Box is outside the plane if (distance < -extent) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasPlaneValue();", "private boolean isVecInsideYZBounds(World world, BlockPos pos, Vec3 vec) {\n double[] bounds = getBlockBounds(world, pos);\n return bounds!=null && vec!=null && vec.yCoord>=bounds[1]&& vec.yCoord<=bounds[4] &&vec.zCoord>=bounds[2] && vec.zCoord<=bounds[5];\n }", "private static boolean planeAngleWithinTolerance(Vector3f norm1, Vector3f norm2) {\n\t\tfloat angle = (float)(Math.toDegrees(norm1.angle(norm2)));\n\t\treturn (angle <= PLANE_TOLERANCE || angle >= 180 - PLANE_TOLERANCE);\n\t}", "public boolean detectBound(){\n if(posX < 0 || posX > width || posY < 0 || posY > height){\n return true;\n }\n else{\n return false;\n }\n }", "public boolean borderAhead () {\r\n if ( myDirection == NORTH ) {\r\n return getY() == 0;\r\n } else if ( myDirection == EAST ) {\r\n return getX() == getWorld().getWidth() - 1;\r\n } else if ( myDirection == SOUTH ) {\r\n return getY() == getWorld().getHeight() - 1;\r\n } else { // if ( myDirection == WEST ) {\r\n return getX() == 0;\r\n }\r\n }", "private boolean isVecInsideXZBounds(World world, BlockPos pos, Vec3 vec) {\n double[] bounds = getBlockBounds(world, pos);\n return bounds!=null && vec!=null && vec.xCoord>=bounds[0] && vec.xCoord<=bounds[3] && vec.zCoord>=bounds[2] && vec.zCoord<=bounds[5];\n }", "boolean isInsideScreen() {\n if (_hitbox.length == 1) {\n float r = _hitbox[0].x;\n PVector c = _getCenter();\n return 0 <= c.x + r && c.x - r < width && 0 <= c.y + r && c.y - r < height;\n }\n \n PVector[] points = this._getPoints();\n for(PVector p : points) {\n if(0 <= p.x && p.x < width && 0 <= p.y && p.y < height) {\n return true;\n }\n }\n return false;\n }", "public boolean detectBound(){\n if(posX < 10){\n posX = 10;\n velX = 0;\n accX = 0;\n return true;\n }\n else if(posX > width - 10){\n posX = width - 10;\n velX = 0;\n accX = 0;\n return true;\n }\n if(posY < 10){\n posY = 10;\n velY = 0;\n accY = 0;\n return true;\n }\n else if(posY > height - 10){\n posY = height - 10;\n velY = 0;\n accY = 0;\n return true;\n }\n return false;\n }", "private boolean isNothingBehind(Direction direction, Box box){\n //TODO wall detection not only boxes\n for(Box temp : boxes){\n switch (direction){\n case DOWN:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()+DISTANCE == temp.getDestinationY())\n return false;\n break;\n case UP:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()-DISTANCE == temp.getDestinationY())\n return false;\n break;\n case LEFT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()-DISTANCE == temp.getDestinationX())\n return false;\n break;\n case RIGHT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()+DISTANCE == temp.getDestinationX())\n return false;\n break;\n }\n }\n for(Wall temp : walls){\n switch (direction){\n case DOWN:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()+DISTANCE == temp.getDestinationY())\n return false;\n break;\n case UP:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()-DISTANCE == temp.getDestinationY())\n return false;\n break;\n case LEFT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()-DISTANCE == temp.getDestinationX())\n return false;\n break;\n case RIGHT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()+DISTANCE == temp.getDestinationX())\n return false;\n break;\n }\n }\n return true;\n }", "private boolean verifyBounds() {\r\n\t if((x>RobotController.BOUNDS_X || y>RobotController.BOUNDS_Y)\r\n\t || x<0 || y<0){\r\n\t return false;\r\n\t }\r\n\t return true;\r\n\t }", "public boolean contains(Vector pt) {\r\n final double x = pt.getX();\r\n final double y = pt.getY();\r\n final double z = pt.getZ();\r\n return x >= this.getMinimumPoint().getBlockX() && x < this.getMaximumPoint().getBlockX() + 1\r\n && y >= this.getMinimumPoint().getBlockY() && y < this.getMaximumPoint().getBlockY() + 1\r\n && z >= this.getMinimumPoint().getBlockZ() && z < this.getMaximumPoint().getBlockZ() + 1;\r\n }", "private boolean isVecInYZ(Vec3 vec) {\n\t\treturn vec == null ? false : vec.yCoord >= this.minY && vec.yCoord <= this.maxY && vec.zCoord >= this.minZ && vec.zCoord <= this.maxZ;\n\t}", "private boolean collisionWithVerticalWall() {\n return (yPos + dy > LOWER_BORDER || yPos + dy < 0);\n }", "public boolean isInside(Rectangle boundary) {\n\t\t\n\t\t// Use TLAP to see if it is or it is not\n\t\tif (x + diameter / 2 >= boundary.getX() - boundary.getWidth() && x + diameter / 2 <= boundary.getX() + boundary.getWidth()\n\t\t\t\t&& y + diameter / 2 >= boundary.getY() - boundary.getHeight() && y + diameter / 2 <= boundary.getY() + boundary.getHeight()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean offscreen(int top, int left, int w, int h) {\r\n return this.getPosx() + this.bound < left\r\n || this.getPosx() - this.bound > left + w\r\n || this.getPosy() + this.bound < top\r\n || this.getPosy() - this.bound > top + h;\r\n }", "public boolean isAlmostVertical() {\n \t\t// estimation heuristic: if world x and y are both small, the vector is almost vertical\n \t\tif (Math.abs(x)<vecPrecision && Math.abs(y)<vecPrecision) return true;\n \t\telse return false;\n \t}", "@Override\n\tpublic boolean isInside(float x, float y, float z) {\n\t\treturn false;\n\t}", "@Override\n public boolean isInView(Vector3d point, double radius)\n {\n if (myLeftClip.isInFront(point, radius) && myRightClip.isInFront(point, radius) && myTopClip.isInFront(point, radius)\n && myBottomClip.isInFront(point, radius))\n {\n Plane earthBisector = new Plane(Vector3d.ORIGIN, myPosition.getLocation());\n if (earthBisector.isInFront(point, radius))\n {\n return true;\n }\n }\n return false;\n }", "public boolean intersectsWith(AxisAlignedBB axis) {\n\t\treturn axis.maxX > this.minX && axis.minX < this.maxX ? (axis.maxY > this.minY && axis.minY < this.maxY ? axis.maxZ > this.minZ && axis.minZ < this.maxZ : false) : false;\n\t}", "boolean hasHasZCoordinate();", "private boolean isOutsideParameters(HudPosition hudPosition, int x, int y) {\n int width = x + hudPosition.getWidth();\n int height = y + hudPosition.getHeight();\n\n int[] dimensions = this.getScreenDimensions();\n\n if (width > dimensions[0] - 5) {\n return true;\n\n } else if (height > dimensions[1] - 5) {\n return true;\n\n } else if (hudPosition.getX() < 5) {\n return true;\n\n } else return hudPosition.getY() < 5;\n }", "public boolean isVecInside(Vec3 vec) {\n\t\treturn vec.xCoord > this.minX && vec.xCoord < this.maxX ? (vec.yCoord > this.minY && vec.yCoord < this.maxY ? vec.zCoord > this.minZ && vec.zCoord < this.maxZ : false) : false;\n\t}", "public boolean mouseWithinBox() {\n return (mouseX > x && mouseX < x + w && mouseY > y && mouseY < y + h);\r\n }", "private boolean isWithinBounds(Point3D point) {\n // Check if point is above min bounds\n if (point.getX() < minBounds.getX() || point.getY() < minBounds.getY() || point.getZ() < minBounds.getZ()) {\n return false;\n }\n // Check if point is below max bounds\n if (point.getX() > maxBounds.getX() || point.getY() > maxBounds.getY() || point.getZ() > maxBounds.getZ()) {\n return false;\n }\n return true;\n }", "public boolean isAround(Ball ball)\n {\n int delta = 10;\n Rectangle2D rectangle = new Rectangle2D.Double(mPosition.getX() - delta, mPosition.getY() - delta, 2 * delta, 2 * delta);\n \n return rectangle.contains(ball.getPosition());\n }", "public boolean isPointInBox(final Vec3 inP)\n {\n // Rotate the point into the box's coordinates\n Vec4 p = m.getInverseSimple().multiply(inP.toPoint());\n\n // Now just use an axis-aligned check\n if (abs(p.getX()) < extents.getX()\n && abs(p.getY()) < extents.getY()\n && abs(p.getZ()) < extents.getZ())\n {\n return true;\n }\n\n return false;\n }", "boolean canBeOnTop(Box b2) {\n\t\t\tif(b2 == null)\n\t\t\t\treturn true;\n\t\t\t\n\t\t\tif(this.width < b2.width && this.height < b2.height && this.depth < b2.depth)\n\t\t\t\treturn true;\n\t\t\t\n\t\t\treturn false;\n\t\t}", "private boolean hitSides() {\n if (b.numY + 60 >= BOX_HEIGHT || (b.numY - 60 <= 0)) {\n return true;\n } else {\n return false;\n }\n }", "public static boolean wouldCollide(CustomAABB us, CustomBlockBox block){\n boolean xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n boolean yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n boolean zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n return (xWithin && yWithin && zWithin);\n }", "private static boolean checkOutside(float [][] myBox, float[][] otherBox)\n {\n vloop:\n for (int v = 0; v < 4; v++)\n {\n int v1 = (v + 1) & 3; // wrap at 4 back to 0\n float edgeX = myBox[v][0] - myBox[v1][0];\n float edgeY = myBox[v][1] - myBox[v1][1];\n float reX = -edgeY;\n float reY = edgeX;\n \n if (reX == 0.0 && reY == 0.0)\n {\n continue vloop;\n }\n \n for (int e = 0; e < 4; e++)\n {\n float scalar = reX * (otherBox[e][0] - myBox[v1][0])\n + reY * (otherBox[e][1] - myBox[v1][1]);\n if (scalar < 0)\n {\n continue vloop;\n }\n }\n \n // If we got here, we have an edge with all vertexes from the\n // other rect on the outside:\n return true;\n }\n \n return false;\n }", "private boolean isOverRect(Point p) {\n Rectangle r = (Rectangle)component.rect.clone();\n r.grow(PROX_DIST, PROX_DIST);\n return r.contains(p);\n }", "public boolean inBounds(Obstacle obj) {\n\t\tboolean horiz = (bounds.x <= obj.getX() && obj.getX() <= bounds.x+bounds.width);\n\t\tboolean vert = (bounds.y <= obj.getY() && obj.getY() <= bounds.y+bounds.height);\n\t\treturn horiz && vert;\n\t}", "public boolean isInBoundaries() {\n\t return Referee.playfield.isInBoundaries(this);\n }", "private void checkBoundaries() {\n if (!isDestroyed()) {\n float upperEdge = screen.getGameCam().position.y + screen.getGameViewPort().getWorldHeight() / 2;\n float bottomEdge = screen.getGameCam().position.y - screen.getGameViewPort().getWorldHeight() / 2;\n if (bottomEdge <= getY() + getHeight() && getY() <= upperEdge) {\n b2body.setActive(true);\n currentState = b2body.getLinearVelocity().x > 0 ? State.MOVING_RIGHT : State.MOVING_LEFT;\n } else {\n if (b2body.isActive()) { // Was on camera...\n // It's outside bottom edge\n if (bottomEdge > getY() + getHeight()) {\n if(!world.isLocked()) {\n world.destroyBody(b2body);\n }\n currentState = State.FINISHED;\n }\n }\n }\n }\n }", "private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }", "private boolean hitMyPaddle() {\n if (b.numX - 60 <= 0) {\n if ((b.numY <= (this.touchedY + 260)) && (b.numY >= (this.touchedY - 260))) {\n } else {\n this.wentOffWall();\n }\n return true;\n } else {\n return false;\n }\n }", "public CheckPlane( Vector p, Vector n, Vector o )\n\t{\n\t\tsuper(p,n,new Color());\n\t\tsetOrientation(o);\n\t\tsetColor( new Color(0.01,0.01,0.01), new Color(0.99,0.99,0.99) );\n\t}", "boolean isBound();", "@Override\n public boolean intersectsAt(Point point){\n if (planeImage.getBoundingBoxAt(currPos).intersects(point)){\n return true;\n }\n else\n return false;\n }", "private boolean isVecInsideXYBounds(World world, BlockPos pos, Vec3 vec) {\n double[] bounds = getBlockBounds(world, pos);\n return bounds!=null && vec!=null && vec.xCoord>=bounds[0] && vec.xCoord<=bounds[3] && vec.yCoord>=bounds[1] && vec.yCoord<=bounds[4];\n }", "@Test\n public void testOverboundsInside() {\n Coordinate a, b, c, d;\n a = new Coordinate2D(2, 2, 0);\n b = new Coordinate2D(3, 3, 0);\n c = new Coordinate2D(2, 0, 0);\n d = new Coordinate2D(4, 2, 0);\n\n int actual, expected;\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(a);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(b);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(c);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(d);\n assertEquals(expected, actual);\n }", "public boolean isInsideZone(int x, int y, int z)\r\n\t{\r\n\t\tboolean inside = false;\r\n\t\tfor (Shape sh : _shapes)\r\n\t\t{\r\n\t\t\tif (sh.contains(x, y, z))\r\n\t\t\t{\r\n\t\t\t\tinside = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (_exShapes != null && inside)\r\n\t\t{\r\n\t\t\tfor (Shape sh : _exShapes)\r\n\t\t\t{\r\n\t\t\t\tif (sh.contains(x, y, z))\r\n\t\t\t\t{\r\n\t\t\t\t\tinside = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn inside;\r\n\t}", "private boolean isVecInXZ(Vec3 vec) {\n\t\treturn vec == null ? false : vec.xCoord >= this.minX && vec.xCoord <= this.maxX && vec.zCoord >= this.minZ && vec.zCoord <= this.maxZ;\n\t}", "public boolean isInClipSpace(Vector4f position) {\r\n\t\treturn position.x >= -position.w && position.x <= position.w && position.y >= -position.w\r\n\t\t\t\t&& position.y <= position.w && position.z >= -position.w && position.z <= position.w;\r\n\t\t// clipped z seems to be twice as it should but I can't change value here as z,\r\n\t\t// once projected is no more linear.\r\n\t}", "public void checkWallBounce(){\n // Bounce the ball back when it hits the top of screen\n if (getRect().top < 0) {\n reverseYVelocity();\n clearObstacleY(40);\n }\n\n // If the ball hits left wall bounce\n if (getRect().left < 0) {\n reverseXVelocity();\n clearObstacleX(2);\n }\n\n // If the ball hits right wall Velocity\n if (getRect().right > screenX) {\n reverseXVelocity();\n clearObstacleX(screenX - 57);\n }\n }", "@Override\n\tpublic boolean onValidSurface()\n\t{\n\t\tif (!this.worldObj.getCollidingBoundingBoxes(this, this.getEntityBoundingBox()).isEmpty())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint i = Math.max(1, this.blocksToTakeUp());\n\t\t\tint j = Math.max(1, this.blocksToTakeUp());\n\t\t\tBlockPos blockpos = this.hangingPosition.offset(this.facingDirection.getOpposite());\n\t\t\tEnumFacing enumfacing = this.facingDirection.rotateYCCW();\n\n\t\t\tfor (int k = -i / 2 + 1; k < i / 2 + 1; ++k)\n\t\t\t{\n\t\t\t\tfor (int l = -j / 2 + 1; l < j / 2 + 1; ++l)\n\t\t\t\t{\n\t\t\t\t\tBlockPos blockpos1 = blockpos.offset(enumfacing, k).up(l);\n\t\t\t\t\tBlock block = this.worldObj.getBlockState(blockpos1).getBlock();\n\n\t\t\t\t\tif (block.isSideSolid(this.worldObj, blockpos1, this.facingDirection))\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif (!block.getMaterial().isSolid() && !BlockRedstoneDiode.isRedstoneRepeaterBlockID(block))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (Entity entity : this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.getEntityBoundingBox()))\n\t\t\t{\n\t\t\t\tif (entity instanceof EntityHanging)\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\t}", "public boolean\n doIntersection(Ray inOutRay) {\n double t, min_t = Double.MAX_VALUE;\n double x2 = size.x/2; // OJO: Esto deberia venir precalculado\n double y2 = size.y/2; // OJO: Esto deberia venir precalculado\n double z2 = size.z/2; // OJO: Esto deberia venir precalculado\n Vector3D p = new Vector3D();\n GeometryIntersectionInformation info = \n new GeometryIntersectionInformation();\n\n inOutRay.direction.normalize();\n\n // (1) Plano superior: Z = size.z/2\n if ( Math.abs(inOutRay.direction.z) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano Z=size.z/2\n t = (z2-inOutRay.origin.z)/inOutRay.direction.z;\n if ( t > -VSDK.EPSILON ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.x >= -x2 && p.x <= x2 && \n p.y >= -y2 && p.y <= y2 ) {\n info.p = new Vector3D(p);\n min_t = t;\n lastPlane = 1;\n }\n }\n }\n\n // (2) Plano inferior: Z = -size.z/2\n if ( Math.abs(inOutRay.direction.z) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano Z=-size.z/2\n t = (-z2-inOutRay.origin.z)/inOutRay.direction.z;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.x >= -x2 && p.x <= x2 && \n p.y >= -y2 && p.y <= y2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 2;\n }\n }\n }\n\n // (3) Plano frontal: Y = size.y/2\n if ( Math.abs(inOutRay.direction.y) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano Y=size.y/2\n t = (y2-inOutRay.origin.y)/inOutRay.direction.y;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.x >= -x2 && p.x <= x2 && \n p.z >= -z2 && p.z <= z2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 3;\n }\n }\n }\n\n // (4) Plano posterior: Y = -size.y/2\n if ( Math.abs(inOutRay.direction.y) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano Y=-size.y/2\n t = (-y2-inOutRay.origin.y)/inOutRay.direction.y;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.x >= -x2 && p.x <= x2 && \n p.z >= -z2 && p.z <= z2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 4;\n }\n }\n }\n\n // (5) Plano X = size.x/2\n if ( Math.abs(inOutRay.direction.x) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano X=size.x/2\n t = (x2-inOutRay.origin.x)/inOutRay.direction.x;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.y >= -y2 && p.y <= y2 && \n p.z >= -z2 && p.z <= z2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 5;\n }\n }\n }\n\n // (6) Plano X = -size.x/2\n if ( Math.abs(inOutRay.direction.x) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano X=-size.x/2\n t = (-x2-inOutRay.origin.x)/inOutRay.direction.x;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.y >= -y2 && p.y <= y2 && \n p.z >= -z2 && p.z <= z2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 6;\n }\n }\n }\n\n if ( min_t < Double.MAX_VALUE ) {\n inOutRay.t = min_t;\n lastInfo.clone(info);\n return true;\n }\n return false;\n }", "public boolean hasFenceOnCorner(int floorLevel) {\n/* 665 */ if (this.fences != null)\n/* */ {\n/* 667 */ if ((getFencesForLevel(floorLevel)).length > 0)\n/* 668 */ return true; \n/* */ }\n/* 670 */ VolaTile westTile = this.zone.getTileOrNull(this.tilex - 1, this.tiley);\n/* 671 */ if (westTile != null) {\n/* */ \n/* 673 */ Fence[] westFences = westTile.getFencesForDirAndLevel(Tiles.TileBorderDirection.DIR_HORIZ, floorLevel);\n/* 674 */ if (westFences.length > 0)\n/* 675 */ return true; \n/* */ } \n/* 677 */ VolaTile northTile = this.zone.getTileOrNull(this.tilex, this.tiley - 1);\n/* 678 */ if (northTile != null) {\n/* */ \n/* 680 */ Fence[] northFences = northTile.getFencesForDirAndLevel(Tiles.TileBorderDirection.DIR_DOWN, floorLevel);\n/* 681 */ if (northFences.length > 0)\n/* 682 */ return true; \n/* */ } \n/* 684 */ return false;\n/* */ }", "boolean hasRect();", "public void checkBoundaries(Player pl) {\n\t\tPoint loc = gameMap.toGridLocation(pl.getLocation());\n\t\tint locationX = loc.x;\n\t\tint locationY = loc.y;\n\t\t\n\t\tif(gameMap.getType(loc.x, loc.y) == GameMap.WALL)\n\t\t{\n\t\t\tif(loc.x > 0)\n\t\t\t\tpl.getLocation().x -= 1f;\n\t\t\telse\n\t\t\t\tpl.getLocation().x += 1f;\n\t\t}\n\t\t\n\t\tPoint[] surrounding = gameMap.getSurrounding((int) locationX, (int) locationY);\n\t\t\n\t\tRectangle2D.Float player = pl.getLocationAsRect();\n\t\tfor(Point p : surrounding)\n\t\t{\n\t\t\tRectangle2D.Float rect = new Rectangle2D.Float(p.x * 16 + 112, p.y * 16 + 32, 16, 16);\n\t\t\tif(rect.intersects(player))\n\t\t\t{\n\t\t\t\tbyte type = gameMap.getType(p.x, p.y);\n\t\t\t\tif(isSpecial(pl, type))\n\t\t\t\t{\n\t\t\t\t\tspecialMovement(pl, type);\n//\t\t\t\t\tSystem.out.println(pl.getClass().getSimpleName() + \" hit a boundary\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(type == GameMap.ORB)\n\t\t\t\t{\n\t\t\t\t\tgameMap.setType(p.x, p.y, GameMap.EATEN_ORB);\n\t\t\t\t\t\n\t\t\t\t\tonOrbCollect(pl);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "boolean hasIsBoundaryNodeOf();", "protected static boolean outOfFrame(@NotNull Shape shape) {\n\t\tif (shape.position.x + shape.size.x / 2 < Camera.getPosition().x)\n\t\t\treturn (true);\n\t\tif (shape.position.x - shape.size.x / 2 > Display.getWidth() + Camera.getPosition().x)\n\t\t\treturn (true);\n\t\tif (shape.position.y - shape.size.y / 2 > Display.getHeight() + Camera.getPosition().y)\n\t\t\treturn (true);\n\t\treturn shape.position.y + shape.size.y / 2 < Camera.getPosition().y;\n\t}", "protected boolean positionCorrect(BoatDrawing activeBoat) {\n // Gets the active rectangle's bound\n Rectangle activeRectangle = activeBoat.getBoatRectangle();\n Bounds boundR1 = activeRectangle.getBoundsInParent();\n\n // Tries to find any intersection with the other boats.\n for (Rectangle myRectangle : boatMap.keySet()) {\n if(activeRectangle.equals(myRectangle)) {} else {\n Bounds boundR2 = myRectangle.getBoundsInParent();\n if (boundR1.intersects(boundR2)) {\n return false ;\n }\n }\n } \n // Checks the boat's position in relation to the grid.\n int index ;\n if(activeBoat.isRotation()) {\n index= activeBoat.getGridRow();\n } else {\n index= activeBoat.getGridCol();\n }\n\n return activeBoat.getBoatSize()+index <= NB_CASES_GRID ; \n }", "protected void computeBounds(List<? extends Drawable> outlines, Drawable plane) {\n this.bbox = new BoundingBox3d();\n\n if (plane.getBounds() != null && !plane.getBounds().isReset()) {\n bbox.add(plane.getBounds());\n }\n\n for (Drawable outline : outlines) {\n if (outline.getBounds() != null && !outline.getBounds().isReset()) {\n bbox.add(outline.getBounds());\n }\n }\n }", "public boolean checkBallOutTopBottom() {\n //if ball is out of top and bottom\n if (y <= -radius || y >= GameView.height + radius) {\n out = true;\n return true;\n }\n return false;\n }", "public boolean zoneStructuresAreOutside() {\n\t\tfor (Team team : this.zone.getTeams()) {\n\t\t\tfor (Volume spawnVolume : team.getSpawnVolumes().values()) {\n\t\t\t\tif (!this.isInside(spawnVolume.getCornerOne()) || !this.isInside(spawnVolume.getCornerTwo())) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (team.getTeamFlag() != null) {\n\t\t\t\tif (!this.isInside(team.getFlagVolume().getCornerOne()) || !this.isInside(team.getFlagVolume().getCornerTwo())) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// check monuments\n\t\tfor (Monument monument : this.zone.getMonuments()) {\n\t\t\tif (monument.getVolume() != null) {\n\t\t\t\tif (!this.isInside(monument.getVolume().getCornerOne()) || !this.isInside(monument.getVolume().getCornerTwo())) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private boolean verticalCrash(@NotNull Wall wallToCheck) {\n ArrayList<Coordinate> wallCoordinates = wallToCheck.getPointsArray();\n return wallCoordinates.get(1).getYCoordinate() <= coordinates.get(2).getYCoordinate() && coordinates.get(1).getYCoordinate() <= wallCoordinates.get(2).getYCoordinate();\n }", "public boolean hitCheck(float x, float y) {\r\n if (boxX <= x && x <= boxX + boxSize &&\r\n boxY <= y && y <= frameHeight) {\r\n return true;\r\n }\r\n return false;\r\n }", "boolean isIncludeBounds();", "public final boolean checkIfInZone(int x, int y) { return (getSiege(x, y) != null); }", "private boolean isVecInXY(Vec3 vec) {\n\t\treturn vec == null ? false : vec.xCoord >= this.minX && vec.xCoord <= this.maxX && vec.yCoord >= this.minY && vec.yCoord <= this.maxY;\n\t}", "public boolean situatedInside(double x, double y) {\n if(y>this.bottomleft.x && y<this.topright.x && x <this.topright.y && x > this.bottomleft.y)\n return true;\n else\n return false;\n }", "public boolean containsPoint( Point p ) {\r\n return (( p.x > drawx-getWidth()/2) && ( p.x < drawx+getWidth()/2) \r\n && ( p.y > drawy-getHeight()/2) && ( p.y < drawy+getHeight()/2));\r\n }", "public static boolean collide(CustomAABB us, CustomBlockBox block, Vector3f pos, Vector3f inertia, float width, float height, boolean onGround){\n boolean xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n boolean yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n boolean zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //double check to stop clipping if not enough space\n if (xWithin && zWithin && yWithin &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()+1,block.getFront())) &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()+2,block.getFront()))) {\n\n //floor detection\n if (block.getTop() > us.getBottom() && inertia.y < 0 && us.getBottom() - block.getTop() > -0.15f) {\n //this is the collision debug sphere for terrain\n float oldPos = pos.y;\n pos.y = block.getTop();\n //don't move up if too high\n if (pos.y - oldPos > 1) {\n pos.y = (int)oldPos;\n }\n inertia.y = 0;\n onGround = true;\n }\n }\n\n //stop getting shot across the map\n if (xWithin && zWithin && yWithin &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()-1,block.getFront())) &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()-2,block.getFront()))) {\n //head detection\n if (block.getBottom() < us.getTop() && inertia.y >= 0 && us.getTop() - block.getBottom() < 0.15f) {\n pos.y = block.getBottom() - height;\n inertia.y = 0;\n }\n }\n\n float averageX = Math.abs(((block.getLeft() + block.getRight())/2f) - pos.x);\n float averageY = Math.abs(((block.getBottom() + block.getTop())/2f) - pos.y);\n float averageZ = Math.abs(((block.getFront() + block.getBack())/2f) - pos.z);\n if (averageX > averageZ) {\n if (!detectBlock(new Vector3f(block.getLeft()+1, block.getBottom(),block.getFront()))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //x- detection\n if (xWithin && zWithin && yWithin) {\n if (block.getRight() > us.getLeft() && inertia.x < 0) {\n pos.x = block.getRight() + width + 0.00001f;\n inertia.x = 0;\n }\n }\n }\n if (!detectBlock(new Vector3f(block.getLeft()-1, block.getBottom(),block.getFront()))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //x+ detection\n if (xWithin && zWithin && yWithin) {\n if (block.getLeft() < us.getRight() && inertia.x > 0) {\n pos.x = block.getLeft() - width - 0.00001f;\n inertia.x = 0;\n }\n }\n }\n } else {\n if (!detectBlock(new Vector3f(block.getLeft(), block.getBottom(),block.getFront()+1))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //z- detection\n if (xWithin && zWithin && yWithin) {\n if (block.getBack() > us.getFront() && inertia.z < 0) {\n pos.z = block.getBack() + width + 0.00001f;\n inertia.z = 0;\n }\n }\n }\n if (!detectBlock(new Vector3f(block.getLeft(), block.getBottom(),block.getFront()-1))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //z+ detection\n if (xWithin && zWithin && yWithin) {\n if (block.getFront() < us.getBack() && inertia.z > 0) {\n pos.z = block.getFront() - width - 0.00001f;\n inertia.z = 0;\n }\n }\n }\n }\n return onGround;\n }", "public boolean isCollision(Ball ob) { // Kollisionsabfrage\r\n\t\t\r\n\t\tdX = posX - ob.getPosX();\r\n\t\tdY = posY - ob.getPosY();\r\n\t\tfloat vector = dX * dX + dY * dY;\r\n\t\tfloat hypo = radius * radius * 4;\r\n\t\tif (hypo >= vector) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Test\n\tpublic void planeCanTakeOff() {\n\t\ttry {\n\t\t\theathrow.landing(tap);\n\t\t} catch (Exception exception) {\n\n\t\t}\n\n\t\ttry {\n\t\t\theathrow.takeoff(tap);\n\t\t} catch (Exception exception) {\n\n\t\t}\n\n\t\tassertEquals(expectedPlanes, heathrow.hangar);\n\t\tassertTrue(heathrow.hangar.isEmpty());\n\t}", "private boolean seesWall() {\n\t\treturn getFilteredData() <= WALL_DIST;\n\t}", "public boolean inBound(int x, int y) {\n\n if (x < 0 || x >= boardSize.x || y < 0 || y >= boardSize.y) {\n return false;\n } else {\n return true;\n }\n }", "boolean inBoundingBox(Coord pos) {\n\t\treturn min(from.x, to.x) <= pos.x && pos.x <= max(from.x, to.x)\n\t\t\t\t&& min(from.y, to.y) <= pos.y && pos.y <= max(from.y, to.y);\n\t}", "public static final boolean isInside(int x, int y, Rect box) {\n return (box.x < x && x < box.x + box.w && box.y < y && y < box.y + box.h);\n }", "public boolean fits(Point p) {\n\t\treturn boundary.contains(p);\n\t}", "private boolean isInBounds(int x, int y) {\r\n\t\treturn x >= 0 && y >= 0 && x < getWidth() && y < getHeight();\r\n\t}", "public boolean detectBound(){\n // super.detectBound();\n if(posY > height || posY < 0){\n Main.enemies.remove(this);\n return true;\n }\n return false;\n\n }", "public boolean outside(Vector3f other){\n double[][] m = {{this.a.x, this.b.x, this.c.x, other.x},\n {this.a.y, this.b.y, this.c.y, other.y},\n {this.a.z, this.b.z, this.c.z, other.z},\n {1,1,1,1}};\n if(DeterminantTools.get4x4Determinant(m)>0){\n return true;\n } else {\n return false;\n }\n }", "public boolean withinWorld(int x, int y) {\n\t\treturn x >= 0 && x < MAX_WIDTH && y >= 0 && y < MAX_HEIGHT;\n\t}", "public boolean outOfBounds()\n {\n if((lastpowerUp.equals(\"BLUE\") || lastpowerUp.equals(\"RAINBOW\")) && powerupTimer > 0)\n {\n return false;\n }\n \n if(head.getA() < 150 || head.getA() >= 1260)\n return true;\n else if(head.getB() <150 || head.getB() >=630)\n return true;\n else \n return false;\n \n \n }", "public boolean pointInside(World world, int x, int y, int z) {\n \t\tint coords[] = getCoords();\n \t\treturn ((coords[0] <= x && coords[3] >= x) &&\n\t\t\t\t(coords[1] <= y && coords[4] >= y) &&\n\t\t\t\t(coords[2] <= z && coords[5] >= z) &&\n \t\t\t\tgetWorld().getName().equals(world.getName()));\n \t}", "public boolean inBounds(Actor a)\n {\n boolean inX = Math.abs(a.getXPos()) < levelWidth/2;\n boolean inY = Math.abs(a.getYPos()) < levelHeight/2;\n return inX && inY;\n }", "@java.lang.Override\n public boolean hasPlaneValue() {\n return typeCase_ == 10;\n }", "private boolean hasHitBoundry() {\r\n if (snake[HEAD].row < 0 || \r\n snake[HEAD].row >= maxRows ||\r\n snake[HEAD].column < 0 ||\r\n snake[HEAD].column >= maxColumns) {\r\n gameOver();\r\n return true;\r\n }\r\n return false;\r\n }", "private boolean contains(Ball ball) {\n checkRep();\n boolean contains =\n ball.getPosition().x() > this.boundingBoxPosition.x()\n && ball.getPosition().x() < this.boundingBoxPosition.x() + this.width\n && ball.getPosition().y() > this.boundingBoxPosition.y() \n && ball.getPosition().y() < this.boundingBoxPosition.y() + this.height;\n return contains;\n }", "public boolean isWithinObject(int x, int y)\n {\n if( x > coX-Xsize/2 &&\n x < coX+Xsize/2 &&\n y > coY-Ysize/2 &&\n y < coY+Ysize/2 )\n return true;\n else\n return false;\n }", "public boolean isInsideZone(int x, int y)\r\n\t{\r\n\t\tboolean inside = false;\r\n\t\tfor (Shape sh : _shapes)\r\n\t\t{\r\n\t\t\tif (sh.contains(x, y))\r\n\t\t\t{\r\n\t\t\t\tinside = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (_exShapes != null && inside)\r\n\t\t{\r\n\t\t\tfor (Shape sh : _exShapes)\r\n\t\t\t{\r\n\t\t\t\tif (sh.contains(x, y))\r\n\t\t\t\t{\r\n\t\t\t\t\tinside = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn inside;\r\n\t}", "@java.lang.Override\n public boolean hasPlaneValue() {\n return typeCase_ == 10;\n }", "private boolean didBallHitFloor() {\n \tdouble y = ball.getY();\n \t\n \treturn (y + BALL_RADIUS * 2) <= HEIGHT;\n }", "public void checkIfAtEdge() {\n\t\tif(x<=0){\n\t\t\tx=1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(y<=0){\n\t\t\ty=1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(x>=GameSystem.GAME_WIDTH-collisionWidth){\n\t\t\tx=GameSystem.GAME_WIDTH-collisionHeight-1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(y>=GameSystem.GAME_HEIGHT-collisionWidth){\n\t\t\ty=GameSystem.GAME_HEIGHT-collisionHeight-1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\telse{\n\t\t\tatEdge=false;\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic boolean outOfBounds() {\n\t\treturn this.getY() < 0;\n\t}", "public boolean isOnPlateau(int x, int y) {\n return x >= 0 && x <= xTopRight && y >= 0 && y <= yTopRight;\n }", "public Point checkBoundary(Point currentPoint){\n Boolean mightCollision;\n\n mightCollision = false;\n x_reset=currentPoint.getX();\n y_reset=currentPoint.getY();\n z_reset=currentPoint.getZ();\n if ((currentPoint.getX()-x_min)<errorRang){\n x_reset=x_min+resetDelta;\n mightCollision = true;\n }\n if ((x_max-currentPoint.getX())<errorRang){\n x_reset=x_max-resetDelta;\n mightCollision = true;\n }\n if ((currentPoint.getY()-y_min)<errorRang){\n y_reset=y_min+resetDelta;\n mightCollision = true;\n }\n if ((y_max-currentPoint.getY())<errorRang){\n y_reset=y_max-resetDelta;\n mightCollision = true;\n }\n if ((currentPoint.getZ()-z_min)<errorRang){\n z_reset=z_min+resetDelta;\n mightCollision = true;\n }\n if ((z_max-currentPoint.getZ())<errorRang){\n z_reset=z_max-resetDelta;\n mightCollision = true;\n }\n\n if (mightCollision) {\n return getresetPoint();\n }else{\n return null;\n }\n }", "private boolean isNotColliding(double x, double y, double z, double p_179926_7_) {\n\t\t\tdouble d0 = (x - this.parentEntity.posX) / p_179926_7_;\n\t\t\tdouble d1 = (y - this.parentEntity.posY) / p_179926_7_;\n\t\t\tdouble d2 = (z - this.parentEntity.posZ) / p_179926_7_;\n\t\t\tAxisAlignedBB axisalignedbb = this.parentEntity.getEntityBoundingBox();\n\n\t\t\tfor (int i = 1; (double)i < p_179926_7_; ++i) {\n\t\t\t\taxisalignedbb = axisalignedbb.offset(d0, d1, d2);\n\n\t\t\t\tif (!this.parentEntity.world.getCollisionBoxes(this.parentEntity, axisalignedbb).isEmpty()) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}", "@Test\n\tpublic void planeCanLand() {\n\t\ttry {\n\t\t\theathrow.landing(tap);\n\t\t} catch (Exception exception) {\n\n\t\t}\n\t\texpectedPlanes.add(tap);\n\n\t\tassertEquals(expectedPlanes, heathrow.hangar);\n\t\tassertSame(tap, heathrow.hangar.get(0));\n\t}", "public boolean hitsWall(Entity e, ICollisionArea box) {\n\t\t// prevent playerfish from leaving the screen\n\t\tif (e instanceof PlayerFish) {\n\t\t\treturn box.isOutside(0, 0, getWidth(), getHeight());\n\t\t} else {\n\t\t\tdouble dw = 2.0 * box.getWidth() + 1;\n\t\t\tdouble dh = 2.0 * box.getHeight() + 1;\n\t\t\treturn box.isOutside(-dw, -dh, getWidth() + dw, getHeight() + dh);\n\t\t}\n\t}", "public boolean isInsideZone(L2Object object)\r\n\t{\r\n\t\treturn isInsideZone(object.getX(), object.getY(), object.getZ());\r\n\t}", "public boolean isValidVertical(Square curB, Square preB) {\n int xdistance = curB.getRow1() - preB.getRow1();\n int ydistance = curB.getCol1() - preB.getCol1();\n int i1;\n \n if ((ydistance == 0) && (xdistance < 0)) {\n for (i1 = curB.getRow1(); i1 < preB.getRow1(); i1 += 1) {\n if (Board.squares[i1][preB.getCol1()].isOccupied()) {\n value = false;\n }\n }\n } else if ((ydistance == 0) && (xdistance > 0)) {\n for (i1 = preB.getRow1(); i1 < curB.getRow1(); i1 += 1) {\n if (Board.squares[i1 + 1][preB.getCol1()].isOccupied()) {\n value = false;\n }\n }\n }\n return value;\n }", "public boolean liesOnWall() {\n return getBaseParameters().getWorld()[this.getX()][this.getY()] == getBaseParameters().getWall();\n }", "public boolean hitObject(BasicObject obj){\n if(abs(obj.posX - posX) < obj.wid/ 2 && abs(obj.posY - posY) < obj.hei/ 2){\n return true;\n }\n else{\n return false;\n }\n }", "private boolean checkConvexity()\r\n \t{\r\n\t\tswap(0, findLowest());\r\n\t\tArrays.sort(v, new Comparator() {\r\n\t\t\tpublic int compare(Object a, Object b)\r\n\t\t\t{\r\n\t\t\t\tint as = area_sign(v[0], (Pointd)a, (Pointd)b);\r\n\t\t\t\tif ( as > 0)\t\t/* left turn */\r\n\t\t\t\t\treturn -1;\r\n\t\t\t\telse if (as < 0)\t/* right turn */\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\telse \t\t\t\t\t/* collinear */\r\n\t\t\t\t{\r\n\t\t\t\t\tdouble x = Math.abs(((Pointd)a).getx() - v[0].getx()) - Math.abs(((Pointd)b).getx() - v[0].getx());\r\n\t\t\t\t\tdouble y = Math.abs(((Pointd)a).gety() - v[0].gety()) - Math.abs(((Pointd)b).gety() - v[0].gety());\r\n\t\t\t\t\tif ( (x < 0) || (y < 0) )\r\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\telse if ( (x > 0) || (y > 0) )\r\n\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\telse\t\t// points are coincident\r\n\t\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n \t\tfor (int i=0; i < nv; i++)\r\n \t\t{\r\n \t\t\ti2 = next(i, nv);\r\n \t\t\ti3 = next(i2, nv);\r\n \t\t\tif ( !lefton(\tv[i], v[i2], v[i3]) )\r\n \t\t\t\treturn false;\r\n \t\t}\r\n \t\treturn true;\r\n\t}", "public boolean isPositionInBounds(Vector vector) {\n\t\tif (vector == null) {\n\t\t\tthrow new NullPointerException();\n\t\t} else {\n\t\t\treturn vector.getX() < size && vector.getY() < size && vector.getX() >=0 && vector.getY() >= 0;\n\t\t}\n\t}", "private boolean pInRect(Point2D p, RectHV rect) {\n if (p.x() >= rect.xmin() && p.x() <= rect.xmax() && p.y() >= rect.ymin() && p.y() <= rect.ymax()) return true;\n else return false;\n }", "boolean isTopCollision(Actor actor) {\n return this.getX() == actor.getX() && this.getY() - 1 == actor.getY();\n }" ]
[ "0.6268227", "0.6194752", "0.61883533", "0.6183796", "0.61643153", "0.60712445", "0.6032558", "0.597202", "0.5964575", "0.5878221", "0.58495295", "0.5836199", "0.58238953", "0.5773406", "0.5738042", "0.57173836", "0.57023746", "0.56858826", "0.56853974", "0.5666962", "0.56663054", "0.5654687", "0.5643291", "0.5638161", "0.56374824", "0.563282", "0.56224436", "0.5604173", "0.55995464", "0.55912274", "0.558702", "0.55852497", "0.55831337", "0.5576974", "0.55726486", "0.5524388", "0.54915404", "0.5487178", "0.54744416", "0.5469104", "0.5467135", "0.5464514", "0.54617053", "0.5437319", "0.54351014", "0.54299533", "0.5428744", "0.5426172", "0.54247373", "0.5420605", "0.54161835", "0.5412542", "0.5400599", "0.5379977", "0.5368873", "0.53607357", "0.5352064", "0.53478026", "0.53463066", "0.5344503", "0.5343779", "0.53389007", "0.53289354", "0.5326788", "0.5326517", "0.53232336", "0.53176713", "0.5310789", "0.5310426", "0.5308067", "0.5303864", "0.5291346", "0.52880865", "0.52874297", "0.5272138", "0.52701247", "0.5263208", "0.52621657", "0.5259883", "0.5256479", "0.5253137", "0.525013", "0.524447", "0.5239674", "0.52348393", "0.523215", "0.52317005", "0.5222846", "0.5212422", "0.5209041", "0.52057755", "0.5200956", "0.519842", "0.5198064", "0.5180714", "0.5179235", "0.51753414", "0.5170785", "0.5165441", "0.5164873" ]
0.6609722
0
Does the Line (l1, l2) intersect the Box?
public boolean isLineInBox(final Vec3 l1, final Vec3 l2) { // Put line in box space Mat4 mInv = m.getInverseSimple(); Vec4 lb1 = mInv.multiply(l1.toPoint()); Vec4 lb2 = mInv.multiply(l2.toPoint()); // Get line midpoint and extent Vec4 lMid = (lb1.add(lb2)).multiply(0.5f); Vec4 l = lb1.subtract(lMid); Vec3 lExt = new Vec3(abs(l.getX()), abs(l.getY()), abs(l.getZ())); // Use Separating Axis Test // Separation vector from box center to line center is LMid, since the line is in box space for (int i = 0; i < 3; i++) { if (abs(lMid.get(i)) > extents.get(i) + lExt.get(i)) { return false; } } // Crossproducts of line and each axis if ((abs(lMid.getY() * l.getZ()) - lMid.getZ() * l.getY()) > (extents.getY() * lExt.getZ() + extents.getZ() * lExt.getY())) { return false; } if (abs(lMid.getX() * l.getZ() - lMid.getZ() * l.getX()) > (extents.getX() * lExt.getZ() + extents.getZ() * lExt.getX())) { return false; } if (abs(lMid.getX() * l.getY() - lMid.getY() * l.getX()) > (extents.getX() * lExt.getY() + extents.getY() * lExt.getX())) { return false; } // No separating axis, the line intersects return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isLineCrossing(Simple2DPoint start, Simple2DPoint end) {\n\n\t\tLog.info(\"Does line:\"+start+\">\"+end+\" cross or is within box \"+this.toString());\n\n\t\t//TODO: we need to write a method that returns true or false depending if the line crosses this box\n\n\t\t//first check if either end of the line is inside\n\t\t//(in most cases this will be good enough)\n\t\tif (isPointInside(topleft.x, topleft.y)){\n\t\t\tLog.info(\"___________________contained within\");\n\t\t\treturn true;\n\t\t}\n\t\tif (isPointInside(end.x, end.y)){\n\t\t\tLog.info(\"___________________contained within\");\n\t\t\treturn true;\n\t\t}\n\n\t\t//Now we check if the line cross's the box, but doesnt end in it.\n\t\t//For collision detection this should be a lot less likely then the above, as it means a character has somehow ended up on either\n\t\t//side of a objects collision map at the same time.\n\n\t\t//We check for crossing lines by checking each side of this box as its own line against the supplied line.\n\t\t//Effectively making 4 separate \"is line crossing line\" tests\n\n\t\t//first we get the 4 corners of the box from the two we know already\n\t\tSimple2DPoint topLeft = topleft;\n\t\tSimple2DPoint topRight = new Simple2DPoint(bottomright.x,topleft.y);\n\t\tSimple2DPoint bottomLeft = new Simple2DPoint(topleft.x,bottomright.y);\n\t\tSimple2DPoint bottomRight = bottomright;\n\n\t\t//then we test each side against the supplied line\n\t\tSimple2DPoint intersectPoint = Polygon.lineIntersect2d(start, end, topLeft, topRight);\n\t\tif (intersectPoint!=null){\n\t\t\treturn true;\n\t\t}\n\n\t\tintersectPoint =Polygon.lineIntersect2d(start, end, topRight, bottomRight);\n\t\tif (intersectPoint!=null){\n\t\t\treturn true;\n\t\t}\n\n\t\tintersectPoint = Polygon.lineIntersect2d(start, end, bottomRight, bottomLeft);\n\t\tif (intersectPoint!=null){\n\t\t\treturn true;\n\t\t}\n\n\t\tintersectPoint = Polygon.lineIntersect2d(start, end, bottomLeft, topLeft);\n\t\tif (intersectPoint!=null){\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t\t\n\t}", "public static boolean linesintersect(Line l1, Line l2){\n\n return Line2D.linesIntersect(l1.getStartX(), l1.getStartY(),\n l1.getEndX(), l1.getEndY(),\n l2.getStartX(), l2.getStartY(),\n l2.getEndX(), l2.getEndY());\n }", "public static boolean lines_intersect(Line2D a, Line2D b)\n {\n return cross(subtract(a.getP2(), a.getP1()), subtract(b.getP1(), a.getP1())) *\n cross(subtract(a.getP2(), a.getP1()), subtract(b.getP2(), a.getP1())) < 0 && \n cross(subtract(b.getP2(), b.getP1()), subtract(a.getP1(), b.getP1())) *\n cross(subtract(b.getP2(), b.getP1()), subtract(a.getP2(), b.getP1())) < 0;\n }", "@Override\n public boolean contains(Line l) {\n int maxLineX = Math.max(l.p1.x, l.p2.x);\n int minLineX = Math.min(l.p1.x, l.p2.x);\n int maxLineY = Math.max(l.p1.y, l.p2.y);\n int minLineY = Math.min(l.p1.y, l.p2.y);\n\n double[] lineEq = calculateLineEquation(l.p1, l.p2);\n double leftIntersectionX = xIntersection(lineEq, topLeftCorner.y);\n // the line intersects the left side of the square within bounds\n if (topLeftCorner.x <= leftIntersectionX && leftIntersectionX <= bottomRightCorner.x\n && minLineX <= leftIntersectionX && leftIntersectionX <= maxLineX) {\n return true;\n }\n\n double rightIntersectionX = xIntersection(lineEq, bottomRightCorner.y);\n // the line intersects the right side of the square within bounds\n if (topLeftCorner.x <= rightIntersectionX && rightIntersectionX <= bottomRightCorner.x\n && minLineX <= rightIntersectionX && rightIntersectionX <= maxLineX) {\n return true;\n }\n\n double topIntersectionY = yIntersection(lineEq, topLeftCorner.x);\n // the line intersects the top side of the square within bounds\n if (topLeftCorner.y <= topIntersectionY && topIntersectionY <= bottomRightCorner.y\n && minLineY <= topIntersectionY && topIntersectionY <= maxLineY) {\n return true;\n }\n\n double bottomIntersectionY = yIntersection(lineEq, bottomRightCorner.x);\n // the line intersects the bottom side of the square within bounds\n if (topLeftCorner.y <= bottomIntersectionY && bottomIntersectionY <= bottomRightCorner.y\n && minLineY <= bottomIntersectionY && bottomIntersectionY <= maxLineY) {\n return true;\n }\n\n return false;\n\n }", "boolean intersectsProper(tLine l1)\n {\n if(l1.state == penStates.PENUP | this.state == penStates.PENUP)\n return false;\n\n //collinear doesn't count\n if (this.collinear(l1.p0) | this.collinear(l1.p1) | l1.collinear(this.p0) | l1.collinear(this.p1))\n return false;\n\n if(this.left(l1.p0) | this.left(l1.p1))\n {\n if (this.left(l1.p0) && this.left(l1.p1))\n return false;\n if (l1.left(this.p0) | l1.left(this.p1))\n {\n if (l1.left(this.p0) && l1.left(this.p1))\n return false;\n else\n return true;\n }\n }\n return false;\n }", "public boolean isIntersecting(Line other) {\r\n if (this.intersectionWith(other) != null) {\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean equals(BSPLine line) {\n return (x1 == line.x1 && x2 == line.x2 &&\n y1 == line.y1 && y2 == line.y2);\n }", "public boolean isIntersectLineInMiddle(Line line) {\n\t\tdouble a = subFloat(firstPoint.y, secondPoint.y); // a = firstPoint.y - secondPoint.y\n\t\tdouble b = subFloat(secondPoint.x, firstPoint.x); // b = secondPoint.x - firstPoint.x\n\t\tdouble c = subFloat(multiFloat(-a, firstPoint.x), multiFloat(b, firstPoint.y));\n\t\t// c = -a * firstPoint.x - b * firstPoint.y\n\n\t\tdouble aLine = subFloat(line.firstPoint.y, line.secondPoint.y); // aLine = line.firstPoint.y -\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// line.secondPoint.y\n\t\tdouble bLine = subFloat(line.secondPoint.x, line.firstPoint.x); // bLine = line.secondPoint.x -\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// line.firstPoint.x\n\t\tdouble cLine = subFloat(multiFloat(-aLine, line.firstPoint.x), multiFloat(bLine, line.firstPoint.y));\n\t\t// cLine = -aLine * line.firstPoint.x - bLine * line.firstPoint.y\n\n\t\t// 4 points on same line\n\t\t// (a * line.firstPoint.x + b * line.firstPoint.y + c == 0) &&\n\t\t// (a * line.secondPoint.x + b * line.secondPoint.y + c == 0)\n\t\tif ((addFloat(multiFloat(a, line.firstPoint.x), multiFloat(b, line.firstPoint.y), c) == 0)\n\t\t\t\t&& (addFloat(multiFloat(a, line.secondPoint.x), multiFloat(b, line.secondPoint.y), c) == 0)) {\n\t\t\tif ((firstPoint.distanceFrom(line.firstPoint) >= getLength()\n\t\t\t\t\t&& firstPoint.distanceFrom(line.secondPoint) >= this.getLength())\n\t\t\t\t\t|| (secondPoint.distanceFrom(line.firstPoint) >= this.getLength()\n\t\t\t\t\t\t\t&& secondPoint.distanceFrom(line.secondPoint) >= this.getLength()))\n\t\t\t\treturn false;\n\t\t\treturn true;\n\t\t}\n\n\t\t// ((a * line.firstPoint.x + b * line.firstPoint.y + c) * (a *\n\t\t// line.secondPoint.x + b * line.secondPoint.y + c) < 0) &&\n\t\t// ((aLine * firstPoint.x + bLine * firstPoint.y + cLine) * (aLine *\n\t\t// secondPoint.x + bLine * secondPoint.y + cLine) < 0)\n\t\tif ((multiFloat(addFloat(multiFloat(a, line.firstPoint.x), multiFloat(b, line.firstPoint.y), c),\n\t\t\t\taddFloat(multiFloat(a, line.secondPoint.x), multiFloat(b, line.secondPoint.y), c)) < 0)\n\t\t\t\t&& (multiFloat(addFloat(multiFloat(aLine, firstPoint.x), multiFloat(bLine, firstPoint.y), cLine),\n\t\t\t\t\t\taddFloat(multiFloat(aLine, secondPoint.x), multiFloat(bLine, secondPoint.y), cLine)) < 0))\n\t\t\treturn true;\n\n\t\treturn false;\n\t}", "public boolean doLinesOverlap(Line2d line, Line2d otherLine)\n\t{\n\t\tdouble angle = (line.angle(otherLine));\n\t\tif(Gtk.epsilonEquals(angle, Math.PI/2)) return false;\n\t\tif (!Gtk.epsilonEquals(angle, Math.PI) \n\t\t\t\t|| !Gtk.epsilonEquals(angle, 0.0))\t\t\n\t\t{\n\t\t\tLine2d pLine = new Line2d (otherLine.getDirection(), line.getStartPoint());\n\t\t\tPoint2d pp = pLine.projectPoint(line.getEndPoint());\n\t\t\tpLine.setEndPoint(pp);\n\t\t\tline = pLine;\n\t\t}\n\t\ttry\n\t\t{\n\t\t\tLine2d line1 = \n\t\t\t\tnew Line2d(line.pointOnLine(0.001), \n\t\t\t\t\t\tline.pointOnLine(line.factorForPoint(line.getEndPoint()) - 0.001));\n\t\t\t//the above line of code ensures that two lines with exactly one\n\t\t\t//end point (and no other overlap) are not returned, e.g.\n\t\t\t//Line1[(0.0, 0.0), (1.0, 0.0)] and Line2[(1.0, 1.0),(2.0, 1.0)]\n\t\t\tPoint2d lspp = otherLine.projectPoint(line1.getStartPoint());\n\t\t\tPoint2d lepp = otherLine.projectPoint(line1.getEndPoint());\n\t\t\tPoint2d olspp = line1.projectPoint(otherLine.getStartPoint());\n\t\t\tPoint2d olepp = line1.projectPoint(otherLine.getEndPoint());\n\t\t\t\n\t\t\treturn ((line1.isPointOnCurve(olspp)) \n\t\t\t\t\t|| line1.isPointOnCurve(olepp))\t|| \n\t\t\t\t\t((otherLine.isPointOnCurve(lspp)) \n\t\t\t\t\t\t\t|| otherLine.isPointOnCurve(lepp));\n\t\t}\n\t\tcatch (GeometryException ile)\n\t\t{\n\t\t\tile.printStackTrace();\n\t\t}\t\t\n\t\treturn false;\n\t}", "static boolean areIdentical(Line l1, Line l2) {\n return areParallel(l1, l2) && (Math.abs(l1.c - l2.c) < EPS);\n }", "public boolean linesIntersect() {\n\t\twhile (true) {\n\t\t\t// for loop for the asteroid's lines\n\t\t\tfor (int i = 0; i < NUM_LINES; i++) {\n\t\t\t\t// for loop for the ship's lines\n\t\t\t\tfor (int j = 0; j < ship.shipOutLine().length; j++) {\n\t\t\t\t\tint o1 = orientation(outLine[i].getStart(),\n\t\t\t\t\t\t\toutLine[i].getEnd(),\n\t\t\t\t\t\t\tship.shipOutLine()[j].getStart());\n\t\t\t\t\tint o2 = orientation(outLine[i].getStart(),\n\t\t\t\t\t\t\toutLine[i].getEnd(), ship.shipOutLine()[j].getEnd());\n\t\t\t\t\tint o3 = orientation(ship.shipOutLine()[j].getStart(),\n\t\t\t\t\t\t\tship.shipOutLine()[j].getEnd(),\n\t\t\t\t\t\t\toutLine[i].getStart());\n\t\t\t\t\tint o4 = orientation(ship.shipOutLine()[j].getStart(),\n\t\t\t\t\t\t\tship.shipOutLine()[j].getEnd(), outLine[i].getEnd());\n\n\t\t\t\t\tif (o1 != o2 && o3 != o4) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\n\t}", "public boolean isPointInLine(Coordinates point, Coordinates linePointA, Coordinates linePointB);", "private static boolean doBoundingBoxesIntersect(Rectangle a, Rectangle b) {\r\n\t return a.getMinX() <= b.getMaxX() \r\n\t && a.getMaxX() >= b.getMinX() \r\n\t && a.getMinY() <= b.getMaxY()\r\n\t && a.getMaxY() >= b.getMinY();\r\n\t}", "public boolean isIntersectLine(Point p1, Point p2) {\n\t\t// Find the four orientations needed for general and special cases\n\t\tint o1 = orientation(firstPoint, secondPoint, p1);\n\t\tint o2 = orientation(firstPoint, secondPoint, p2);\n\t\tint o3 = orientation(p1, p2, firstPoint);\n\t\tint o4 = orientation(p1, p2, secondPoint);\n\n\t\t// General case\n\t\tif (o1 != o2 && o3 != o4) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Special Cases\n\t\t// p1, q1 and p2 are collinear and p2 lies on segment p1q1\n\t\tif (o1 == 0 && p1.onSegment(firstPoint, secondPoint)) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// p1, q1 and p2 are collinear and q2 lies on segment p1q1\n\t\tif (o2 == 0 && p2.onSegment(firstPoint, secondPoint)) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// p2, q2 and p1 are collinear and p1 lies on segment p2q2\n\t\tif (o3 == 0 && firstPoint.onSegment(p1, p2)) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// p2, q2 and q1 are collinear and q1 lies on segment p2q2\n\t\tif (o4 == 0 && secondPoint.onSegment(p1, p2)) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Or else\n\t\treturn false;\n\t}", "public boolean intersects(GLineSegment lineSegment) {\n if(this.equals(lineSegment)) return(true);\n else if(this.slope()==lineSegment.slope()) return(false);\n else {\n //complicated stuff here.\n return(false);\n }\n }", "@InterestingAlgorithm\r\n public Object lineIntersect (Line2D l1, Line2D l2) {\r\n if (l1 == null || l2 == null)\r\n return (null);\r\n\r\n double slope1 = l1.getA();\r\n double slope2 = l2.getA();\r\n\r\n double offset1 = l1.getB();\r\n double offset2 = l2.getB();\r\n\r\n if (MathUtils.closeEnough(slope1, slope2)) {\r\n if (MathUtils.closeEnough(offset1, offset2))\r\n return (l1); // same\r\n else\r\n return (null); // parallel\r\n }\r\n\r\n Point2D point = new Point2D.Double((offset2 - offset1) / (slope1 - slope2), (slope1 * offset2 - slope2 * offset1) / (slope1 - slope2));\r\n\r\n return (point);\r\n }", "public boolean isIntersected(Line line)\n {\n float a = direction.y;\n float b = -direction.x;\n float d = line.getDirection().y;\n float e = -line.getDirection().x;\n\n return ((a * e - b * d) != 0);\n }", "public boolean isInRect2(Point p) {\n\t\tLine AB = new Line(A1, B1);\n\t\tLine CD = new Line(C1, AB.getU());\n\t\tLine AD = new Line(A1, D1);\n\t\tLine BC = new Line(B1, AD.getU());\n\n\t\t// if(Line.isBetween2Lines2(AB, CD, p))\n\t\t// System.out.println(1);\n\t\t// if(Line.isBetween2Lines2(AD, BC, p))\n\t\t// System.out.println(2);\n\n\t\tif (Line.isBetween2Lines2(AB, CD, p) && Line.isBetween2Lines2(AD, BC, p)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean detect_intersection_with_box(Box box)\n {\n if(_boundingbox == null)\n {\n this.generateBoundingBox();\n }\n\n // No intersection if the bounding box doesn't intersect the input box.\n if(!box.intersects_box(this._boundingbox))\n {\n return false;\n }\n\n // Filled polyline and contains entire box.\n if(this.isFilled() && this.containsPoint(box.min))\n {\n return true;\n }\n\n // Filled box that contains entire polyline.\n if(box.isFilled() && box.containsPoint(this._points.get(0)))\n {\n return true;\n }\n\n // No perform a polyline <---> polyline intersection test.\n Polyline polyline = box.toPolyline();\n\n return detect_intersection_with_polyline(polyline);\n }", "static boolean areParallel(Line l1, Line l2) {\n return (Math.abs(l1.a - l2.a) < EPS) && (Math.abs(l1.b-l2.b) < EPS);\n }", "private boolean doesLineHitWall (Rectangle rect, float x1, float y1, float x2, float y2) {\n\t\tfloat minY = min(y1, y2);\n\t\tif (minY >= rect.y + rect.height + fudge) return false;\n\n\t\t// Does not intersect if maximum y coordinate is above the rectangle.\n\t\tfloat maxY = max(y1, y2);\n\t\tif (maxY < rect.y - fudge) return false;\n\n\t\t// Does not intersect if minimum x coordinate is to the right of the rectangle.\n\t\tfloat minX = min(x1, x2);\n\t\tif (minX >= rect.x + rect.width + fudge) return false;\n\n\t\t// Does not intersect if maximum x coordinate is to the left of the rectangle.\n\t\tfloat maxX = max(x1, x2);\n\t\tif (maxX < rect.x - fudge) return false;\n\n\t\t// And that's good enough, because the robots need to be a bit stupid\n\t\t// when they're near the ends of walls.\n\t\treturn true;\n\t}", "public boolean isLineHit(TessSeg s1)\r\n {\r\n int side00 = \r\n Math2DUtil.getLineSide(s1.c0.x, s1.c0.y, s1.getDx(), s1.getDy(),\r\n c0.x, c0.y);\r\n int side01 = \r\n Math2DUtil.getLineSide(s1.c0.x, s1.c0.y, s1.getDx(), s1.getDy(), \r\n c1.x, c1.y);\r\n\r\n if (side00 == 0 && side01 == 0)\r\n {\r\n //Lines lie along same ray\r\n double t0 = pointOnLineT(s1.c0);\r\n double t1 = pointOnLineT(s1.c1);\r\n return ((t0 < 0 && t1 < 0) || (t0 > 1 && t1 > 1)) ? false : true;\r\n }\r\n \r\n if ((side00 < 0 && side01 < 0) || (side00 > 0 && side01 > 0))\r\n {\r\n return false;\r\n }\r\n \r\n int side10 = \r\n Math2DUtil.getLineSide(c0.x, c0.y, getDx(), getDy(),\r\n s1.c0.x, s1.c0.y);\r\n int side11 = \r\n Math2DUtil.getLineSide(c0.x, c0.y, getDx(), getDy(), \r\n s1.c1.x, s1.c1.y);\r\n\r\n if ((side10 < 0 && side11 < 0) || (side10 > 0 && side11 > 0))\r\n {\r\n return false;\r\n }\r\n\r\n return true;\r\n \r\n /*\r\n if (!isBoundingBoxOverlap(s1))\r\n {\r\n return false;\r\n }\r\n \r\n if (isParallelTo(s1))\r\n {\r\n if (!isPointOnLine(s1.c0))\r\n {\r\n return false;\r\n }\r\n \r\n double t0 = pointOnLineT(s1.c0);\r\n double t1 = pointOnLineT(s1.c1);\r\n \r\n if ((t0 <= 0 && t1 <= 0) || (t0 >= 1 && t1 >= 1))\r\n {\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n if (isPointOnLine(s1.c0))\r\n {\r\n double t = pointOnLineT(s1.c0);\r\n if (t > 0 && t < 1)\r\n {\r\n return true;\r\n }\r\n }\r\n \r\n if (isPointOnLine(s1.c1))\r\n {\r\n double t = pointOnLineT(s1.c1);\r\n if (t > 0 && t < 1)\r\n {\r\n return true;\r\n }\r\n }\r\n \r\n if (s1.isPointOnLine(c0))\r\n {\r\n double t = s1.pointOnLineT(c0);\r\n if (t > 0 && t < 1)\r\n {\r\n return true;\r\n }\r\n }\r\n \r\n if (s1.isPointOnLine(c1))\r\n {\r\n double t = s1.pointOnLineT(c1);\r\n if (t > 0 && t < 1)\r\n {\r\n return true;\r\n }\r\n }\r\n \r\n //Solve system of linear eqns\r\n double s0x0 = c0.x;\r\n double s0y0 = c0.y;\r\n double s0x1 = c1.x;\r\n double s0y1 = c1.y;\r\n double s1x0 = s1.c0.x;\r\n double s1y0 = s1.c0.y;\r\n double s1x1 = s1.c1.x;\r\n double s1y1 = s1.c1.y;\r\n\r\n double[] t = Math2DUtil.lineIsectFractions(\r\n s0x0, s0y0, s0x1 - s0x0, s0y1 - s0y0,\r\n s1x0, s1y0, s1x1 - s1x0, s1y1 - s1y0,\r\n null);\r\n\r\n if (t[0] > 0 && t[0] < 1 && t[1] > 0 && t[1] < 1)\r\n {\r\n return true;\r\n }\r\n \r\n return false;\r\n */\r\n }", "public CFWRect intersectsLine( CFWPoint poiBegI, CFWPoint poiEndI)\t{\r\n\t\t//1.rejust rect\r\n\t\t//correct: (m_poiLT.m_fX < m_poiRB.m_fX && m_poiLT.m_fY < m_poiRB.m_fY)\r\n\t\tif(m_poiLT.m_fX > m_poiRB.m_fX && m_poiLT.m_fY > m_poiRB.m_fY)\t{\r\n\t\t\t//exchange all\r\n\t\t\tCFWPoint poiTmp = m_poiLT;\r\n\t\t\tm_poiLT = m_poiRB;\r\n\t\t\tm_poiRB = poiTmp;\r\n\t\t}\r\n\t\telse if(m_poiLT.m_fX > m_poiRB.m_fX && m_poiLT.m_fY < m_poiRB.m_fY)\t{\r\n\t\t\t//exchange X\r\n\t\t\tfloat fXTmp = m_poiLT.m_fX;\r\n\t\t\tm_poiLT.m_fX = m_poiRB.m_fX;\r\n\t\t\tm_poiRB.m_fX = fXTmp;\r\n\t\t}\r\n\t\telse if(m_poiLT.m_fX < m_poiRB.m_fX && m_poiLT.m_fY > m_poiRB.m_fY)\t{\r\n\t\t\t//exchange Y\r\n\t\t\tfloat fYTmp = m_poiLT.m_fY;\r\n\t\t\tm_poiLT.m_fY = m_poiRB.m_fY;\r\n\t\t\tm_poiRB.m_fY = fYTmp;\r\n\t\t}\r\n\t\t//2.intersect test\r\n\t\tCFWPoint poiOutOfRect = new CFWPoint();\r\n\t\tboolean bPoiInsideRect = false;\r\n\t\tCFWRect rectRet = new CFWRect();\r\n\t\tif(!checkPoiInside( poiBegI, poiEndI))\t{\r\n\t\t\t//System.out.println(\"the line has no cross point with the rectangle!\");\r\n\t\t\treturn(rectRet);\r\n\t\t}\r\n\t\telse if(!checkPoiInside( poiEndI, poiBegI))\t{\r\n\t\t\t//System.out.println(\"the line has no cross point with the rectangle!\");\r\n\t\t\treturn(rectRet);\r\n\t\t}\r\n\t\telse\t{\r\n\t\t\tif(isInsideArea( 9, poiBegI))\t{\r\n\t\t\t\tif(isInsideArea( 9, poiEndI))\t{\r\n\t\t\t\t\t//System.out.println(\"the line has no cross point with the rectangle!\");\r\n\t\t\t\t\treturn(rectRet);\r\n\t\t\t\t}\r\n\t\t\t\trectRet.m_poiLT = poiBegI;\r\n\t\t\t\tpoiOutOfRect = poiEndI;\r\n\t\t\t\tbPoiInsideRect = true;\r\n\t\t\t}\r\n\t\t\tif(isInsideArea( 9, poiEndI))\t{\r\n\t\t\t\tif(isInsideArea( 9, poiBegI))\r\n\t\t\t\t\treturn(rectRet);\r\n\t\t\t\trectRet.m_poiLT = poiEndI;\r\n\t\t\t\tpoiOutOfRect = poiBegI;\r\n\t\t\t\tbPoiInsideRect = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//3.intersect\r\n\t\t//if the line is vertical to X/Y, return the line segment\r\n\t\tif(poiEndI.m_fX == poiBegI.m_fX)\t{\r\n\t\t\tif(!bPoiInsideRect)\t{\r\n\t\t\t\trectRet.m_poiLT.m_fX = poiEndI.m_fX;\r\n\t\t\t\t//less than the m_poiLT'Y, use the m_poiLT'Y\r\n\t\t\t\trectRet.m_poiLT.m_fY = Math.max( Math.min(poiBegI.m_fY, poiEndI.m_fY), m_poiLT.m_fY);\r\n\t\t\t\t//larger than m_poiRB's Y, use the m_poiRB's Y\r\n\t\t\t\trectRet.m_poiRB.m_fY = Math.min( Math.max(poiBegI.m_fY, poiEndI.m_fY), m_poiRB.m_fY);\r\n\t\t\t}\r\n\t\t\telse\t{\r\n\t\t\t\tif(poiOutOfRect.m_fY < m_poiLT.m_fY)\r\n\t\t\t\t\trectRet.m_poiRB.m_fY = m_poiLT.m_fY;\r\n\t\t\t\telse if(poiOutOfRect.m_fY > m_poiRB.m_fY)\r\n\t\t\t\t\trectRet.m_poiRB.m_fY = m_poiRB.m_fY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trectRet.m_poiRB.m_fX = poiEndI.m_fX;\r\n\t\t\t\r\n\t\t}\r\n\t\telse if(poiEndI.m_fY == poiBegI.m_fY)\t{\r\n\t\t\tif(!bPoiInsideRect)\t{\r\n\t\t\t\trectRet.m_poiLT.m_fX = Math.max( Math.min( poiBegI.m_fX, poiEndI.m_fX), m_poiLT.m_fX);\r\n\t\t\t\trectRet.m_poiLT.m_fY = poiEndI.m_fY;\r\n\t\t\t\trectRet.m_poiRB.m_fX = Math.min( Math.max( poiBegI.m_fX, poiEndI.m_fX), m_poiRB.m_fX);\r\n\t\t\t}\r\n\t\t\telse\t{\r\n\t\t\t\tif(poiOutOfRect.m_fX < m_poiLT.m_fX)\r\n\t\t\t\t\trectRet.m_poiRB.m_fX = m_poiLT.m_fX;\r\n\t\t\t\telse if(poiOutOfRect.m_fX > m_poiRB.m_fX)\r\n\t\t\t\t\trectRet.m_poiRB.m_fX = m_poiRB.m_fX;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trectRet.m_poiRB.m_fY = poiEndI.m_fY;\r\n\t\t}\r\n\t\telse\t{\r\n\t\t\t//build line function\r\n\t\t\tdouble dK = (poiEndI.m_fY - poiBegI.m_fY)/(poiEndI.m_fX - poiBegI.m_fX);\r\n\t\t\tdouble dB = poiBegI.m_fY - dK*poiBegI.m_fX;\r\n\t\t\t//find intersect points\r\n\t\t\tCFWPoint poiIntersA = new CFWPoint( m_poiLT.m_fX - 1.0f, m_poiLT.m_fY - 1.0f, 0.0f);\r\n\t\t\tCFWPoint poiIntersB = new CFWPoint( m_poiLT.m_fX - 1.0f, m_poiLT.m_fY - 1.0f, 0.0f);\r\n\t\t\tfloat fXTmpA = (float)((m_poiLT.m_fY - dB)/dK);\r\n\t\t\tfloat fXTmpB = (float)((m_poiRB.m_fY - dB)/dK);\r\n\t\t\tfloat fYTmpA = (float)(dK*m_poiLT.m_fX + dB);\r\n\t\t\tfloat fYTmpB = (float)(dK*m_poiRB.m_fX + dB);\r\n\t\t\tif(CFWMath.isBetweenTwoNum( fXTmpA, m_poiLT.m_fX, m_poiRB.m_fX, true))\t{\r\n\t\t\t\tif(poiIntersA.m_fX < m_poiLT.m_fX && poiIntersA.m_fY < m_poiLT.m_fY)\t{\r\n\t\t\t\t\tpoiIntersA.m_fX = fXTmpA;\r\n\t\t\t\t\tpoiIntersA.m_fY = m_poiLT.m_fY;\r\n\t\t\t\t}\r\n\t\t\t\telse\t{\r\n\t\t\t\t\tpoiIntersB.m_fX = fXTmpA;\r\n\t\t\t\t\tpoiIntersB.m_fY = m_poiLT.m_fY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(CFWMath.isBetweenTwoNum( fXTmpB, m_poiLT.m_fX, m_poiRB.m_fX, true))\t{\r\n\t\t\t\tif(poiIntersA.m_fX < m_poiLT.m_fX && poiIntersA.m_fY < m_poiLT.m_fY)\t{\r\n\t\t\t\t\tpoiIntersA.m_fX = fXTmpB;\r\n\t\t\t\t\tpoiIntersA.m_fY = m_poiRB.m_fY;\r\n\t\t\t\t}\r\n\t\t\t\telse\t{\r\n\t\t\t\t\tpoiIntersB.m_fX = fXTmpB;\r\n\t\t\t\t\tpoiIntersB.m_fY = m_poiRB.m_fY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(CFWMath.isBetweenTwoNum( fYTmpA, m_poiLT.m_fY, m_poiRB.m_fY, true))\t{\r\n\t\t\t\tif(poiIntersA.m_fX < m_poiLT.m_fX && poiIntersA.m_fY < m_poiLT.m_fY)\t{\r\n\t\t\t\t\tpoiIntersA.m_fX = m_poiLT.m_fX;\r\n\t\t\t\t\tpoiIntersA.m_fY = fYTmpA;\r\n\t\t\t\t}\r\n\t\t\t\telse\t{\r\n\t\t\t\t\tpoiIntersB.m_fX = m_poiLT.m_fX;\r\n\t\t\t\t\tpoiIntersB.m_fY = fYTmpA;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(CFWMath.isBetweenTwoNum( fYTmpB, m_poiLT.m_fY, m_poiRB.m_fY, true))\t{\r\n\t\t\t\tif(poiIntersA.m_fX < m_poiLT.m_fX && poiIntersA.m_fY < m_poiLT.m_fY)\t{\r\n\t\t\t\t\tpoiIntersA.m_fX = m_poiRB.m_fX;\r\n\t\t\t\t\tpoiIntersA.m_fY = fYTmpB;\r\n\t\t\t\t}\r\n\t\t\t\telse\t{\r\n\t\t\t\t\tpoiIntersB.m_fX = m_poiRB.m_fX;\r\n\t\t\t\t\tpoiIntersB.m_fY = fYTmpB;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(bPoiInsideRect)\t{\r\n\t\t\t\tCFWVector vecBE = new CFWVector(poiOutOfRect.sub(rectRet.m_poiLT));\r\n\t\t\t\tCFWVector vecBA = new CFWVector(poiIntersA.sub(rectRet.m_poiLT));\r\n\t\t\t\tCFWVector vecBB = new CFWVector(poiIntersB.sub(rectRet.m_poiLT));\r\n\t\t\t\tif(vecBE.isSameDir_VerticalIn(vecBA))\t{\r\n\t\t\t\t\trectRet.m_poiRB = poiIntersA;\r\n\t\t\t\t}\r\n\t\t\t\telse if(vecBE.isSameDir_VerticalIn(vecBB))\t{\r\n\t\t\t\t\trectRet.m_poiRB = poiIntersB;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\t{\r\n\t\t\t\trectRet.m_poiLT = poiIntersA;\r\n\t\t\t\trectRet.m_poiRB = poiIntersB;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//last check : intersected line segment whether inside rectangle\r\n\t\tif(!isInsideArea( 9, rectRet.m_poiLT) || !isInsideArea( 9, rectRet.m_poiRB))\t{\r\n\t\t\tSystem.out.println(\"generated line segment isn't inside rectangle!\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn(rectRet);\r\n\t}", "@Test\n\tpublic void testContains() {\n\t\tLine l1 = new Line(0, 0, 1, 0);\n\t\tLine l2 = new Line(0, 0, 0, 1);\n\t\tLine l3 = new Line(0, 0, 1, 1);\n\t\tLine l4 = new Line(2.65, 0.3, 2.65, 0.9);\n\n\t\tassertTrue(\"l1 does not contain point (0.5, 0)\",\n\t\t\t\tl1.contains(new Coord(0.5, 0)));\n\t\tassertTrue(\"l2 does not contain point (0, 0.5)\",\n\t\t\t\tl2.contains(new Coord(0, 0.5)));\n\t\tassertTrue(\"l3 does not contain point (0.5, 0.5)\",\n\t\t\t\tl3.contains(new Coord(0.5, 0.5)));\n\n\t\tassertTrue(\n\t\t\t\t\"l4 does not contain (2.6499999999999995, 0.46083784792155075)\",\n\t\t\t\tl4.contains(new Coord(2.6499999999999995, 0.46083784792155075)));\n\n\t\t// Check endpoints for l1\n\t\tassertTrue(\"l1 does not contain point (0, 0)\",\n\t\t\t\tl1.contains(new Coord(0, 0)));\n\t\tassertTrue(\"l1 does not contain point (1, 0)\",\n\t\t\t\tl1.contains(new Coord(1, 0)));\n\t}", "public boolean doesLineCut(Line line) {\n if (containsExclusive(line.getPoint1())) {\n return true;\n }\n if (containsExclusive(line.getPoint2())) {\n return true;\n }\n\n double x1 = Math.min(line.getPoint1().getX(), line.getPoint2().getX());\n double x2 = Math.max(line.getPoint1().getX(), line.getPoint2().getX());\n double y1 = Math.min(line.getPoint1().getY(), line.getPoint2().getY());\n double y2 = Math.max(line.getPoint1().getY(), line.getPoint2().getY());\n\n // y = mx + c\n // x = (y-c)/m\n double m = (line.getPoint2().getY() - line.getPoint1().getY()) / (line.getPoint2().getX() - line.getPoint1().getX());\n double c = line.getPoint1().getY() - (m * line.getPoint1().getX());\n\n double xNorth = Double.NaN;\n double xSouth = Double.NaN;\n double yWest = Double.NaN;\n double yEast = Double.NaN;\n if (Double.isInfinite(m)) {\n // Vertical line\n xNorth = x1;\n xSouth = x1;\n } else if (m == 0.0) {\n yWest = c;\n yEast = c;\n } else {\n xNorth = ((double) start.getY() - c) / m;\n xSouth = ((double) end.getY() - 1 - c) / m;\n yWest = m * (double) start.getX() + c;\n yEast = m * (double) end.getX() - 1 + c;\n }\n\n\n // Since both points are outside the rectangle, one crossed edged is enough.\n\n // Check north\n if (!Double.isNaN(xNorth) && start.getX() <= xNorth && xNorth < end.getX() && x1 <= xNorth && xNorth <= x2 && y2 > start.getY() && y1 < end.getY()) {\n return true;\n }\n // Check east\n if (!Double.isNaN(yWest) && start.getY() <= yWest && yWest < end.getY() && y1 <= yWest && yWest <= y2 && x2 > start.getX() && x1 < end.getX()) {\n return true;\n }\n // Check south\n if (!Double.isNaN(xSouth) && start.getX() <= xSouth && xSouth < end.getX() && x1 <= xSouth && xSouth <= x2 && y2 > start.getY() && y1 < end.getY()) {\n return true;\n }\n // Check west\n return !Double.isNaN(yEast) && start.getY() <= yEast && yEast < end.getY() && y2 <= yEast && yEast <= y2 && x2 > start.getX() && x1 < end.getX();\n }", "private static boolean isPointOnLine(LineSegment a, Point2D b) {\r\n\t // Move the image, so that a.first is on (0|0)\r\n\t LineSegment aTmp = new LineSegment(new PointDouble(0, 0), new PointDouble(\r\n\t a.endPoint.getX() - a.startPoint.getX(), a.endPoint.getY() - a.startPoint.getY()));\r\n\t PointDouble bTmp = new PointDouble(b.getX() - a.startPoint.getX(), b.getY() - a.startPoint.getY());\r\n\t double r = crossProduct(aTmp.endPoint, bTmp);\r\n\t return Math.abs(r) < 0.000001;\r\n\t}", "public static boolean intersectsRectangleLine(int rx, int ry, int rWidth, int rHeight, int lx1,int ly1, int lx2, int ly2, List<Vector2i> intersections) {\n\t\t\n\t\tint minX = rx;\n\t\tint minY = ry;\n\t\tint maxX = rx + rWidth;\n\t\tint maxY = ry + rHeight;\n\t\t\n\t\t//both points of one side of rectangle\n\t\tif(minX > lx1 && minX > lx2) { return false; }\n\t\tif(minY > ly1 && minY > ly2) { return false; }\n\t\tif(maxX < lx1 && maxX < lx2) { return false; }\n\t\tif(maxY < ly1 && maxY < ly2) { return false; }\n\n\t\t//both points of line inside rectangle\n\t\tif(\tlx1 > minX && lx1 < maxX &&\n\t\t\tlx2 > minX && lx2 < maxX &&\n\t\t\tly1 > minY && ly1 < maxY &&\n\t\t\tly2 > minY && ly2 < maxY\t) { return true; }\n\t\t\n\t\t//check line-line\n\t\tif(intersections != null) {\n\t\t\tint numIntersections = 0;\n\t\t\tVector2i v1 = new Vector2i();\n\t\t\tif(intersectsLineLine(lx1, ly1, lx2, ly2, minX, minY, maxX, minY, v1)) { numIntersections++; if(intersections!=null) intersections.add(v1); };\n\t\t\tVector2i v2 = new Vector2i();\n\t\t\tif(intersectsLineLine(lx1, ly1, lx2, ly2, maxX, minY, maxX, maxY, v2)) { numIntersections++; if(intersections!=null) intersections.add(v2); };\n\t\t\tVector2i v3 = new Vector2i();\n\t\t\tif(intersectsLineLine(lx1, ly1, lx2, ly2, minX, maxY, maxX, maxY, v3)) { numIntersections++; if(intersections!=null) intersections.add(v3); };\n\t\t\tVector2i v4 = new Vector2i();\n\t\t\tif(intersectsLineLine(lx1, ly1, lx2, ly2, minX, maxY, minX, minY, v4)) { numIntersections++; if(intersections!=null) intersections.add(v4); };\n\t\t\tif(numIntersections > 0) { return true; }\n\t\t} else {\n\t\t\tif(intersectsLineLine(lx1, ly1, lx2, ly2, minX, minY, maxX, minY, null)) { return true; };\n\t\t\tif(intersectsLineLine(lx1, ly1, lx2, ly2, maxX, minY, maxX, maxY, null)) { return true; };\n\t\t\tif(intersectsLineLine(lx1, ly1, lx2, ly2, minX, maxY, maxX, maxY, null)) { return true; };\n\t\t\tif(intersectsLineLine(lx1, ly1, lx2, ly2, minX, maxY, minX, minY, null)) { return true; };\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public boolean doesIntersect(Box box) {\n\n\n\t\tfor (Point point:box.getVerts()) {\n\n\t\t\tif (this.contains(point)) return true;\n\t\t}\n\n\t\tfor (Point point: this.verts) {\n\n\t\t\tif (box.contains(point)) return true;\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean isInRect2(Line l1, Line l2, Line l3, Line l4, Point p) {\n\t\tif (Line.isBetween2Lines2(l1, l2, p) && Line.isBetween2Lines2(l3, l4, p)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "static boolean contains(RBox b1, RBox b2){\n\t\t\n\t\t\t\n\t\t\tboolean xContainment = false;\n\t\t\tboolean yContainment = false;\n\t\t\t\n\t\t\tif(b1.xmin<=b2.xmin && b1.xmax>=b2.xmax)\n\t\t\t\txContainment = true;\n\t\t\tif(b1.ymin<=b2.ymin && b1.ymax>=b2.ymax)\n\t\t\t\tyContainment = true;\n\t\t\t\n\t\t\tif(xContainment&&yContainment)\n\t\t\t\treturn true;\n\t\t\n\t\t\n\t return false;\n\t\t\t\n\t\t\t\n\t}", "@Override\n\tpublic boolean intersectsRectangle(final int ax1, final int ax2, final int ay1, final int ay2)\n\t{\n\t\tif (isInsideZone(ax1, ay1, (zoneZ2 - 1)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (isInsideZone(ax1, ay2, (zoneZ2 - 1)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (isInsideZone(ax2, ay1, (zoneZ2 - 1)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (isInsideZone(ax2, ay2, (zoneZ2 - 1)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// Check if any point from this rectangle is inside the other one\n\t\tif (zoneX1 > ax1 && zoneX1 < ax2 && zoneY1 > ay1 && zoneY1 < ay2)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (zoneX1 > ax1 && zoneX1 < ax2 && zoneY2 > ay1 && zoneY2 < ay2)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (zoneX2 > ax1 && zoneX2 < ax2 && zoneY1 > ay1 && zoneY1 < ay2)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (zoneX2 > ax1 && zoneX2 < ax2 && zoneY2 > ay1 && zoneY2 < ay2)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// Horizontal lines may intersect vertical lines\n\t\tif (lineIntersectsLine(zoneX1, zoneY1, zoneX2, zoneY1, ax1, ay1, ax1, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX1, zoneY1, zoneX2, zoneY1, ax2, ay1, ax2, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX1, zoneY2, zoneX2, zoneY2, ax1, ay1, ax1, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX1, zoneY2, zoneX2, zoneY2, ax2, ay1, ax2, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// Vertical lines may intersect horizontal lines\n\t\tif (lineIntersectsLine(zoneX1, zoneY1, zoneX1, zoneY2, ax1, ay1, ax2, ay1))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX1, zoneY1, zoneX1, zoneY2, ax1, ay2, ax2, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX2, zoneY1, zoneX2, zoneY2, ax1, ay1, ax2, ay1))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX2, zoneY1, zoneX2, zoneY2, ax1, ay2, ax2, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "private boolean checkSharedVertex(Segment s1, Segment s2){\n\t\tdouble wp1x = s1.w1.getX();\n\t\tdouble wp1y = s1.w1.getY();\n\t\tdouble wp2x = s1.w2.getX();\n\t\tdouble wp2y = s1.w2.getY();\n\t\tdouble wp3x = s2.w1.getX();\n\t\tdouble wp3y = s2.w1.getY();\n\t\tdouble wp4x = s2.w2.getX();\n\t\tdouble wp4y = s2.w2.getY();\n\n\t\tif (((wp1x == wp3x && wp1y == wp3y) || (wp1x == wp4x && wp1y == wp4y)) \n\t\t|| ((wp2x == wp3x && wp2y == wp3y) || (wp2x == wp4x && wp2y == wp4y)))\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}", "static boolean doTheseOverlap(RBox b1, RBox b2){\n\t\t\n\t\tif(contains(b1,b2))\n\t\t\treturn true;\n\t\t\n\t\tif(contains(b2,b1))\n\t\t\treturn true;\n\t\t\n\t\tboolean xOverlap=false ;\n\t\tboolean yOverlap=false ;\n\t\t\n\t\tif(b1.xmax==b2.xmin && b2.xmax > b1.xmax)\n\t\t\treturn false;\n\t\t\n\t\tif(b2.xmax==b1.xmin && b1.xmax > b2.xmax)\n\t\t\treturn false;\n\t\t\n\t\tif((b1.xmin<=b2.xmin&&b1.xmax>=b2.xmax)||(b2.xmin<=b1.xmin&&b2.xmax>=b1.xmax))\n\t\t\txOverlap=true;\n\t\t\n\t\tif(!xOverlap)\n\t\tif(b1.xmin >= b2.xmin && b1.xmin <= b2.xmax)\n\t\t\txOverlap=true;\n\t\t\n\t\tif(!xOverlap)\n\t\t if(b1.xmax >= b2.xmin && b1.xmax <= b2.xmax)\n\t\t \txOverlap = true;\n\t\t else{//System.out.println(\"X overlap\");\n\t\t \treturn false;}\n\t\t\n\t\t\n\t\tif((b1.ymin<=b2.ymin&&b1.ymax>=b2.ymax)||(b2.ymin<=b1.ymin&&b2.ymax>=b1.ymax))\n\t\t yOverlap=true;\n\t\t\n\t\tif(!yOverlap)\n\t\tif(b1.ymin>=b2.ymin && b1.ymin<=b2.ymax)\n\t\t\tyOverlap=true;\n\t\t\n\t\tif(!yOverlap)\n\t\t\tif(b1.ymax>=b2.ymin && b1.ymax<=b2.ymax)\n\t\t\t\tyOverlap=true;\n\t\t\telse{\n\t\t\t\t//System.out.println(\"Y overlap\");\n\t\t\t\treturn false;}\n\t\t\n\t\tif(xOverlap&&yOverlap)\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}", "public abstract boolean intersect(BoundingBox bbox);", "public boolean intersects(S2Point v1) {\n boolean result = true;\n\n if ((v1.x < xmin && lastVertex.x < xmin) || (v1.x > xmax && lastVertex.x > xmax)) {\n result = false;\n } else if ((v1.y < ymin && lastVertex.y < ymin) || (v1.y > ymax && lastVertex.y > ymax)) {\n result = false;\n } else if ((v1.z < zmin && lastVertex.z < zmin) || (v1.z > zmax && lastVertex.z > zmax)) {\n result = false;\n }\n\n lastVertex = v1;\n return result;\n }", "public static boolean lineSegmentIntersectsRect(float x1, float y1, float x2, float y2, float xmin, float ymin, float xmax, float ymax) {\n\t\tshort code1 = Code(x1, y1, xmin, ymin, xmax, ymax);\n\t\tshort code2 = Code(x2, y2, xmin, ymin, xmax, ymax);\n\n\t\t//both are TOP, or both are BOTTOM , etc.\n\t\tif((code1 & code2) != 0) return false;\n\n\t\t//both are in the middle vertically or horizontally : | shape or - shape\n\t\tif( ((code1 | code2) & (RIGHT | LEFT)) == 0) return true;\n\t\tif( ((code1 | code2) & (TOP | BOTTOM)) == 0) return true;\n\n\t\t//any of them is inside\n\t\tif(code1 == 0 || code2 == 0) return true;\n\n\t\t//calculate intersections and check if they are in the middle\n\t\t//y = y1 + (x - x1) * slope\n\n\t\tfloat x, y;\n\t\ty = y1 + (xmax - x1) * (y2 - y1) /(x2 - x1);\n\t\tif(ymin <= y && y <= ymax) return true;\n\t\ty = y1 + (xmin - x1) * (y2 - y1) /(x2 - x1);\n\t\tif(ymin <= y && y <= ymax) return true;\n\t\tx = x1 + (ymax - y1) * (x2 - x1) / (y2 - y1);\n\t\tif(xmin <= x && x <= ymax) return true;\n\t\tx = x1 + (ymin - y1) * (x2 - x1) / (y2 - y1);\n\t\tif(xmin <= x && x <= ymax) return true;\n\t\treturn false;\n\t}", "boolean intersects( Geometry gmo );", "public boolean equals(Line other) {\n if(this.getStartDot().equals(other.getStartDot()) && this.getEndDot().equals(other.getEndDot()))\n \treturn true;\n else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean intersects(Shape other) {\n boolean result = false;\n ArrayList<Vector3D> points = getPoints();\n for (Vector3D point : points) {\n if (other.contains(point)) {\n if (other.contains(point)) {\n if (other.contains(point)) {\n System.out.println(this.part.name + \" contains \" + other.part.name + \" : \" + point);\n\n result = true;\n }\n }\n }\n }\n\n points = other.getPoints();\n for (Vector3D point : points) {\n if (this.contains(point)) {\n if (this.contains(point)) {\n if (this.contains(point)) {\n System.out.println(this.part.name + \" contains \" + other.part.name + \" : \" + point);\n\n result = true;\n }\n }\n }\n }\n\n return result;\n }", "public boolean whithinRectangle(Point point1, Point point2) {\n\t\treturn false;\n\t}", "@Test\n\tpublic void testDoesNotContain() {\n\t\tLine l1 = new Line(0, 0, 1, 0);\n\t\tLine l2 = new Line(0, 0, 0, 1);\n\t\tLine l3 = new Line(0, 0, 1, 1);\n\n\t\tassertFalse(\"l1 does contain point (1.5, 0)\",\n\t\t\t\tl1.contains(new Coord(1.5, 0)));\n\t\tassertFalse(\"l2 do contain point (0, 1.5)\",\n\t\t\t\tl2.contains(new Coord(0, 1.5)));\n\t\tassertFalse(\"l3 does not contain point (1.5, 0.5)\",\n\t\t\t\tl3.contains(new Coord(1.5, 0.5)));\n\n\t}", "static boolean rectanglesOverlap(Rectangle r1, Rectangle r2){\n List<int[]> pointsOfInterest = new ArrayList<int[]>();\n for (int[] i : r1.getPoints())\n for (int[] j : r2.getPoints())\n if (i[0] >= j[0] && i[1] >= j[1])\n pointsOfInterest.add(i); \n\n if (!pointsOfInterest.isEmpty())\n for (int[] i : pointsOfInterest)\n for (int[] j : r2.getPoints())\n if (i[0] <= j[0] && i[1] <= j[1])\n return true;\n\n // Check if any points in rectangle 2 fall in 1\n //List<int[]> pointsOfInterest = new ArrayList<int[]>();\n pointsOfInterest.clear();\n for (int[] i : r2.getPoints())\n for (int[] j : r1.getPoints())\n if (i[0] >= j[0] && i[1] >= j[1])\n pointsOfInterest.add(i); \n\n if (!pointsOfInterest.isEmpty())\n for (int[] i : pointsOfInterest)\n for (int[] j : r1.getPoints())\n if (i[0] <= j[0] && i[1] <= j[1])\n return true;\n \n return false;\n }", "public boolean intersects (UCSCGeneLine first, int start, int end){\n\t\tif (end < first.getTxStart() || start > first.getTxEnd()) return false;\n\t\treturn true;\n\t}", "boolean between(tPoint p2)\n {\n if (! this.collinear(p2))\n return false;\n \n //check to see if line is vertical\n if (this.p0.x != this.p1.x)\n {\n //if not vertical, check to see if point overlaps in x\n return (((this.p0.x < p2.x) && (p2.x < this.p1.x)) |\n ((this.p0.x > p2.x) && (p2.x > this.p1.x)));\n }\n else\n {\n //if vertical, check to see if point overlaps in y\n return (((this.p0.y < p2.y) && (p2.y < this.p1.y)) |\n ((this.p0.y > p2.y) && (p2.y > this.p1.y)));\n }\n }", "public boolean isInRect(Line l1, Line l2, Line l3, Line l4, Point p) {\n\t\tif (Line.isBetween2Lines(l1, l2, p) && Line.isBetween2Lines(l3, l4, p)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean intersects(final ConstRect other)\r\n {\r\n final Rectangle rect = toRectangle();\r\n if(width == 0 && height == 0 && other.width == 0 && other.height == 0)\r\n {\r\n return new Point(x, y).equals(new Point(other.x, other.y));\r\n }\r\n else if(width == 0 && height == 0)\r\n {\r\n return other.toRectangle().contains(new Point(x, y));\r\n }\r\n else if(other.width == 0 && other.height == 0)\r\n {\r\n return rect.contains(new Point(other.x, other.y));\r\n }\r\n else if(other.width == 0 || other.height == 0)\r\n {\r\n return rect.intersectsLine(new Line2D.Double(other.x, other.y, other.x + other.width,\r\n other.y + other.height));\r\n }\r\n else if(width == 0 || height == 0)\r\n {\r\n return other.toRectangle().intersectsLine(\r\n new Line2D.Double(x, y, x + width, y + height));\r\n }\r\n else\r\n {\r\n return rect.intersects(other.toRectangle());\r\n }\r\n }", "public static boolean intersects(Geometry a, Geometry b) {\r\n GeometryFactory factory = new GeometryFactory(a.getPrecisionModel(),\r\n a.getSRID());\r\n List aComponents = components(a);\r\n List bComponents = components(b);\r\n\r\n for (Iterator i = aComponents.iterator(); i.hasNext();) {\r\n Geometry aComponent = (Geometry) i.next();\r\n Assert.isTrue(!(aComponent instanceof GeometryCollection));\r\n\r\n //Collapse to point as workaround for JTS defect: #contains doesn't work for\r\n //polygons and zero-length vectors. [Jon Aquino]\r\n aComponent = collapseToPointIfPossible(aComponent, factory);\r\n\r\n for (Iterator j = bComponents.iterator(); j.hasNext();) {\r\n Geometry bComponent = (Geometry) j.next();\r\n Assert.isTrue(!(bComponent instanceof GeometryCollection));\r\n bComponent = collapseToPointIfPossible(bComponent, factory);\r\n\r\n if (aComponent.intersects(bComponent)) {\r\n return true;\r\n }\r\n }\r\n }\r\n\r\n return false;\r\n }", "public boolean inLine(int[] move1, int[] move2) {\r\n\t\tboolean valid=false;\r\n\t\tif (move1[0]==move2[0]||move1[1]==move2[1]) {\r\n\t\t\tvalid=true;\r\n\t\t}\r\n\t\treturn valid;\r\n\t}", "public boolean intersects(HitBox h){\n\t\treturn rect.intersects(h.getRectangle());\n\t}", "private boolean isColliding(Node node1, Node node2){\n\t\tfinal int offset = 2;\n\t\tBounds bounds1 = node1.getBoundsInParent();\n\t\tBounds bounds2 = node2.getBoundsInParent();\n\t\tbounds1 = new BoundingBox(bounds1.getMinX() + offset, bounds1.getMinY() + offset,\n\t\t\t\tbounds1.getWidth() - offset * 2, bounds1.getHeight() - offset * 2);\n\t\tbounds2 = new BoundingBox(bounds2.getMinX() + offset, bounds2.getMinY() + offset,\n\t\t\t\tbounds2.getWidth() - offset * 2, bounds2.getHeight() - offset * 2);\n\t\treturn bounds1.intersects(bounds2);\n\t}", "private boolean isVerticalLines2points(Point p1, Point p2) {\n if (abs(p1.x - p2.x ) < 70 && p1.y != p2.y ) {\n\n return true;\n }\n return false;\n }", "public boolean simpleCollisionCheck(Line2D link, Line2D primitive){\n\t\treturn primitive.intersectsLine(link);\n\t}", "public static boolean checkIfLinesIntersects( Point2D a, Point2D b, Point2D c, Point2D d, Point2D r )\n {\n double distAB, theCos, theSin, newX, ABpos;\n\n // Fail if either line is undefined.\n if( a.x == b.x && a.y == b.y || c.x == d.x && c.y == d.y )\n return false;\n\n // (1) Translate the system so that point A is on the origin.\n double Bx = b.x - a.x;\n double By = b.y - a.y;\n double Cx = c.x - a.x;\n double Cy = c.y - a.y;\n double Dx = d.x - a.x;\n double Dy = d.y - a.y;\n\n // Discover the length of segment A-B.\n distAB = Math.sqrt( Bx * Bx + By * By );\n\n // (2) Rotate the system so that point B is on the positive X axis.\n theCos = Bx / distAB;\n theSin = By / distAB;\n newX = Cx * theCos + Cy * theSin;\n Cy = (int) (Cy * theCos - Cx * theSin);\n Cx = newX;\n newX = Dx * theCos + Dy * theSin;\n Dy = (int) (Dy * theCos - Dx * theSin);\n Dx = newX;\n\n // Fail if the lines are parallel.\n if( Cy == Dy )\n return false;\n\n // (3) Discover the position of the intersection point along line A-B.\n ABpos = Dx + (Cx - Dx) * Dy / (Dy - Cy);\n\n // (4) Apply the discovered position to line A-B in the original coordinate system.\n if( r != null )\n {\n r.x = (int) (a.x + ABpos * theCos);\n r.y = (int) (a.y + ABpos * theSin);\n }\n\n // Success.\n return true;\n }", "public boolean isIntersecting(GameObject other){\n if(other.isSolid()&&this.solid){\n return RectF.intersects(other.getHitBox(),this.hitBox);//|| hitBox.contains(other.getHitBox())||other.getHitBox().contains(this.hitBox)\n }\n return false;\n }", "public boolean intersects(Platform p){\n \treturn box.intersects(p.getBox());\r\n }", "public boolean intersects(BoundingBox other) {\r\n\t\treturn !(other.left > getRight()\r\n\t\t\t || other.getRight() < left\r\n\t\t\t || other.top > getBottom()\r\n\t\t\t || other.getBottom() < top);\r\n\t}", "public static boolean rectIntersect(Rectangle a, Rectangle b){\n\t\treturn !(b.x > (a.x + a.width) \n\t\t\t\t|| (b.x + b.width) < a.x\n\t\t\t\t|| b.y > (a.y + a.height)\n\t\t\t\t|| (b.y + b.height) < a.y);\n\t}", "@Test\n\t\tpublic void testIntersectAtEndPoints2(){\n\t\t\tGenericLineSegmentsIntersect v=new GenericLineSegmentsIntersect();\n\t\t\tint[][] lines={\n\t\t\t\t\t{1,5,5,1},\n\t\t\t\t\t{1,4,5,0},\n\t\t\t\t\t{2,2,6,10}\n\t\t\t};\n\n\t\t\tassertTrue(v.intersects(lines));\n\t\t}", "public boolean equalsIgnoreOrder(BSPLine line) {\n return equals(line) || (\n (x1 == line.x2 && x2 == line.x1 &&\n y1 == line.y2 && y2 == line.y1));\n }", "public boolean isLineSplitBy(TessSeg s1)\r\n {\r\n if (!isLineHit(s1))\r\n {\r\n return false;\r\n }\r\n \r\n if (isPointOnLine(s1.c0)\r\n && !c0.equals(s1.c0) && !c1.equals(s1.c0))\r\n {\r\n return true;\r\n }\r\n \r\n if (isPointOnLine(s1.c1)\r\n && !c0.equals(s1.c1) && !c1.equals(s1.c1))\r\n {\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean intersects(Obstacle v){\n \treturn box.intersects(v.getBox()); \t\r\n }", "public boolean collision(Object a, Object b) {\n if (Rect.intersects(a.getRect(), b.getRect())) { //if the two objects hitboxes colide\n return true;\n }\n return false;\n }", "public boolean intersects(OnScreenObject other) {\r\n if (other == null) {\r\n return false;\r\n }\r\n Rectangle r1 = getRectangle();\r\n Rectangle r2 = other.getRectangle();\r\n\r\n return r1.intersects(r2);\r\n }", "static boolean intersectsRect(R2Vector a, R2Vector b, R2Rect rect) {\n // First check whether the bound of AB intersects \"rect\".\n R2Rect bound = R2Rect.fromPointPair(a, b);\n if (!rect.intersects(bound)) {\n return false;\n }\n\n // Otherwise AB intersects \"rect\" if and only if all four vertices of \"rect\"\n // do not lie on the same side of the extended line AB. We test this by\n // finding the two vertices of \"rect\" with minimum and maximum projections\n // onto the normal of AB, and computing their dot products with the edge\n // normal.\n R2Vector n = R2Vector.sub(b, a).ortho();\n int i = (n.x >= 0) ? 1 : 0;\n int j = (n.y >= 0) ? 1 : 0;\n double max = n.dotProd(R2Vector.sub(rect.getVertex(i, j), a));\n double min = n.dotProd(R2Vector.sub(rect.getVertex(1 - i, 1 - j), a));\n return (max >= 0) && (min <= 0);\n }", "boolean lineLine(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) {\n\n\t // calculate the direction of the lines\n\t float uA = ((x4-x3)*(y1-y3) - (y4-y3)*(x1-x3)) / ((y4-y3)*(x2-x1) - (x4-x3)*(y2-y1));\n\t float uB = ((x2-x1)*(y1-y3) - (y2-y1)*(x1-x3)) / ((y4-y3)*(x2-x1) - (x4-x3)*(y2-y1));\n\n\t // if uA and uB are between 0-1, lines are colliding\n\t if (uA >= 0 && uA <= 1 && uB >= 0 && uB <= 1) {\n\n\t // optionally, draw a circle where the lines meet\n\t float intersectionX = x1 + (uA * (x2-x1));\n\t float intersectionY = y1 + (uA * (y2-y1));\n\t fill(255,0,0);\n\t noStroke();\n\t ellipse(intersectionX, intersectionY, 20, 20);\n\n\t return true;\n\t }\n\t return false;\n\t}", "@Override\n\tpublic boolean contains(double x, double y) {\n\t\tfor (GPoint point : points) {\n\t\t\tif (point.equals(x, y)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < size() - 1; i++) {\n\t\t\tGPoint p1 = points.get(i);\n\t\t\tGPoint p2 = points.get(i + 1);\n\t\t\tif (GLine.intersects(x, y, p1.getX(), p1.getY(), p2.getX(), p2.getY(), getLineWidth())) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private boolean lineline(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4){\n float uA = ((x4-x3)*(y1-y3) - (y4-y3)*(x1-x3)) / ((y4-y3)*(x2-x1) - (x4-x3)*(y2-y1));\n float uB = ((x2-x1)*(y1-y3) - (y2-y1)*(x1-x3)) / ((y4-y3)*(x2-x1) - (x4-x3)*(y2-y1));\n\n return uA >= 0 && uA <= 1 && uB >= 0 && uB <= 1;\n }", "public boolean equals(Line other) {\r\n // exactly the same line\r\n if (this.start.equals(other.start) && this.end.equals(other.end)) {\r\n return true;\r\n }\r\n // opossite lines\r\n if (this.start().equals(other.end) && this.end().equals(other.start)) {\r\n return true;\r\n }\r\n return false;\r\n }", "public LineIntersect intersect(Line2D other, Vector2f intersectionPoint) {\r\n float denom = (other.pointB.y - other.pointA.y) * (this.pointB.x - this.pointA.x)\r\n - (other.pointB.x - other.pointA.x) * (this.pointB.y - this.pointA.y);\r\n float u0 = (other.pointB.x - other.pointA.x) * (this.pointA.y - other.pointA.y)\r\n - (other.pointB.y - other.pointA.y) * (this.pointA.x - other.pointA.x);\r\n float u1 = (other.pointA.x - this.pointA.x) * (this.pointB.y - this.pointA.y)\r\n - (other.pointA.y - this.pointA.y) * (this.pointB.x - this.pointA.x);\r\n\r\n //if parallel\r\n if (denom == 0.0f) {\r\n //if collinear\r\n if (u0 == 0.0f && u1 == 0.0f) {\r\n return LineIntersect.CoLinear;\r\n } else {\r\n return LineIntersect.Parallel;\r\n }\r\n } else {\r\n //check if they intersect\r\n u0 = u0 / denom;\r\n u1 = u1 / denom;\r\n\r\n float x = this.pointA.x + u0 * (this.pointB.x - this.pointA.x);\r\n float y = this.pointA.y + u0 * (this.pointB.y - this.pointA.y);\r\n\r\n if (intersectionPoint != null) {\r\n intersectionPoint.x = x; //(m_PointA.x + (FactorAB * Bx_minus_Ax));\r\n intersectionPoint.y = y; //(m_PointA.y + (FactorAB * By_minus_Ay));\r\n }\r\n\r\n // now determine the type of intersection\r\n if ((u0 >= 0.0f) && (u0 <= 1.0f) && (u1 >= 0.0f) && (u1 <= 1.0f)) {\r\n return LineIntersect.SegmentsIntersect;\r\n } else if ((u1 >= 0.0f) && (u1 <= 1.0f)) {\r\n return (LineIntersect.ABisectsB);\r\n } else if ((u0 >= 0.0f) && (u0 <= 1.0f)) {\r\n return (LineIntersect.BBisectsA);\r\n }\r\n\r\n return LineIntersect.LinesIntersect;\r\n }\r\n }", "public boolean equals(Object lineSegment) {\n try {\n GLineSegment temp=(GLineSegment) lineSegment;\n return(( (this.point1.equals(temp.getFirstPoint())) &&\n (this.point2.equals(temp.getSecondPoint())) ) ||\n ( (this.point1.equals(temp.getSecondPoint())) &&\n (this.point2.equals(temp.getFirstPoint())) )); \n }\n catch(Exception e) {\n return(false);\n }\n }", "public static boolean onVerticalLine(Point p1, Point p2) {\n return (p1.getX() - p2.getX()) == 0;\n }", "private boolean isHorizantalLines2Points(Point p1, Point p2) {\n\n if (abs(p1.y - p2.y ) < 70 && p1.x != p2.x) {\n return true;\n }\n return false;\n }", "public boolean passedBy(Line2D path) {\n\t\tfor (int i = 0; i < coordinates.size() - 1; i++) {\n\t\t\tvar p1 = coordinates.get(i);\n\t\t\tvar p2 = coordinates.get(i + 1);\n\t\t\tLine2D buildingEdge = new Line2D.Double(p1.getLng(), p1.getLat(), p2.getLng(), p2.getLat()); // x1, y1, x2, y2 \n\t\t\tif (buildingEdge.intersectsLine(path)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "protected boolean circlesInLine(Circle second, Circle third) {\n double slopeBetweenThisAndSecond = slopeBetweenTwoCircleOrigins(second);\n double slopeBetweenThisAndThird = second.slopeBetweenTwoCircleOrigins(third);\n return Math.abs(slopeBetweenThisAndSecond - slopeBetweenThisAndThird)\n < Constants.circleThresholdForAlignment;\n\n }", "static PointDouble intersection(Line l1, Line l2) {\n if (areParallel(l1, l2)) return null; // no intersection\n PointDouble p = new PointDouble();\n // solve system of 2 linear algebraic equations with 2 unknowns\n p.x = (l2.b * l1.c - l1.b * l2.c) / (l2.a * l1.b - l1.a * l2.b);\n // In one of the lines, the b in the equation will be 1, since if both are 0\n // the lines are parallel. We calculate y from that Line's equation\n if (Math.abs(l1.b) > EPS) {\n p.y = -(l1.a * p.x + l1.c);\n } else {\n p.y = -(l2.a * p.x + l2.c);\n }\n return p;\n }", "public boolean isIntersecting(RectF other){\n return RectF.intersects(other,this.hitBox);//|| hitBox.contains(other.getHitBox())||other.getHitBox().contains(this.hitBox)\n }", "public static boolean onHorizontalLine(Point p1, Point p2) {\n return (p1.getY() - p2.getY()) == 0;\n }", "public static boolean pointOnLine(int x1, int y1, int x2, int y2, int px, int py, int EPSILON) {\n\t\t// ..a.. ..b..\n\t\t// start |------P-----| end\t=> a+b = len\n\t\t//\t\t\t...len...\n\t\tint a = dist(x1, y1, px, py);\n\t\tint b = dist(x2, y2, px, py);\n\t\tint l = dist(x1, y1, x2, y2);\n\t\t\n\t\tint ab = a + b;\n\t\tint diff = Math.abs(l-ab);\n\t\t\n\t\treturn diff <= (EPSILON*EPSILON);\n\t}", "private boolean intersects(int x, int y, int size){\n count++;\n return(!(\n x > this.x + this.width ||\n x + size < this.x ||\n y > this.y + this.height ||\n y + size < this.y\n ));\n }", "public boolean collision(JLabel label1, JLabel label2){\r\n\t\t//top\r\n\t\tif (label1.getY() >= label2.getY()){\r\n\t\t\t//bottom\r\n\t\t\tif (label1.getY() <= label2.getY()){\r\n\t\t\t\t//left\r\n\t\t\t\tif(label1.getX() >= label2.getX()){\r\n\t\t\t\t\t//right\r\n\t\t\t\t\tif (label1.getX() <= label2.getX()){\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean isVertical() {\n return(point1.getFirst()==point2.getFirst());\n }", "protected boolean isOverlapping(ArrayList<Rectangle> first, ArrayList<Rectangle> second) {\n\t\tfor (Rectangle f : first) {\n\t\t\tfor (Rectangle s : second) {\n\t\t\t\tif (f.overlaps(s)) return true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean intersects(double Lat1, double Long1, double Lat2, double Long2){\n if(distance(Lat1, Long1, Lat2, Long2, \"M\") <= mRadius){\n return true;\n }else{\n return false;\n }\n }", "boolean lineRect(float x1, float y1, float x2, float y2, float rx, float ry, float rw, float rh) {\n\n\t // check if the line has hit any of the rectangle's sides\n\t // uses the Line/Line function below\n\t boolean left = lineLine(x1,y1,x2,y2, rx,ry,rx, ry+rh);\n\t boolean right = lineLine(x1,y1,x2,y2, rx+rw,ry, rx+rw,ry+rh);\n\t boolean top = lineLine(x1,y1,x2,y2, rx,ry, rx+rw,ry);\n\t boolean bottom = lineLine(x1,y1,x2,y2, rx,ry+rh, rx+rw,ry+rh);\n\n\t // if ANY of the above are true, the line \n\t // has hit the rectangle\n\t if (left || right || top || bottom) {\n\t return true;\n\t }\n\t return false;\n\t}", "public boolean intersects(GraphicalFigure fig) {\n\n\t\t// Get the distance between the 2 figures on the x axis\n\t\tint xDist = pos.xCoord() - fig.getOffset().xCoord();\n\n\t\t// Get the distance on the y axis\n\t\tint yDist = pos.yCoord() - fig.getOffset().xCoord();\n\n\t\t// All if's allow for if the x's are the same\n\t\t// Check to see if the figure is on the right and overlaps\n\t\tif (xDist >= 0 && xDist < fig.getWidth()) {\n\n\t\t\t// For loop variables\n\t\t\tint initial = 0;\n\t\t\tint compare = 0;\n\t\t\tBoolean loopCheck = false;\n\n\t\t\t// All if's allow for if the y's are the same\n\t\t\t// Check if it's above the object and within range\n\t\t\tif (yDist >= 0 && xDist < fig.getHeight()) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = pos.yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = pos.yCoord() + fig.getHeight() - yDist;\n\t\t\t}\n\n\t\t\t// Check if it's below the object and within range\n\t\t\telse if (yDist <= 0 && xDist < height) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = fig.getOffset().yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = fig.getOffset().yCoord() + fig.getHeight() + yDist;\n\t\t\t}\n\n\t\t\t// If the loop check is true, do a for loop\n\t\t\tif (loopCheck) {\n\n\t\t\t\t// Create a location variable\n\t\t\t\tLocation loc;\n\t\t\t\t// Loop through the intersecting rectangle\n\t\t\t\t// Loop Horizontally\n\t\t\t\tfor (int i = pos.xCoord(); i < pos.xCoord() + fig.getWidth() - xDist; i++) {\n\t\t\t\t\t// Loop through vertically\n\t\t\t\t\tfor (int j = initial; j < compare; j++) {\n\t\t\t\t\t\t// Create a location for the new pixel\n\t\t\t\t\t\tloc = new Location(i, j);\n\n\t\t\t\t\t\t// Check for overlap, return true\n\t\t\t\t\t\tif (findPixel(loc) && fig.findPixel(loc)) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// All if's allow for if the x's are the same\n\t\t// Check if the figure is on the left and overlaps\n\t\telse if (xDist >= 0 && xDist < width) {\n\t\t\t// For loop variables\n\t\t\tint initial = 0;\n\t\t\tint compare = 0;\n\t\t\tBoolean loopCheck = false;\n\n\t\t\t// All if's allow for if the y's are the same\n\t\t\t// Check if it's above the object and within range\n\t\t\tif (yDist >= 0 && xDist < fig.getHeight()) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = pos.yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = pos.yCoord() + fig.getHeight() - yDist;\n\t\t\t}\n\n\t\t\t// Check if it's below the object and within range\n\t\t\telse if (yDist <= 0 && xDist < height) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = fig.getOffset().yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = fig.getOffset().yCoord() + fig.getHeight() + yDist;\n\t\t\t}\n\n\t\t\t// If the loop check is true, do a for loop\n\t\t\tif (loopCheck) {\n\n\t\t\t\t// Create a location variable\n\t\t\t\tLocation loc;\n\t\t\t\t// Loop through the intersecting rectangle\n\t\t\t\t// Loop Horizontally\n\t\t\t\tfor (int i = fig.getOffset().xCoord(); i < fig.getOffset().xCoord() + width + xDist; i++) {\n\t\t\t\t\t// Loop through vertically\n\t\t\t\t\tfor (int j = initial; j < compare; j++) {\n\t\t\t\t\t\t// Create a location for the new pixel\n\t\t\t\t\t\tloc = new Location(i, j);\n\n\t\t\t\t\t\t// Check for overlap, return true\n\t\t\t\t\t\tif (findPixel(loc) && fig.findPixel(loc)) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// If no intersection found, return false\n\t\treturn false;\n\t}", "@Test\n void findIntersections() {\n Cuboid cuboid1 = new Cuboid(4,4,4);\n Ray ray1 = new Ray(new Point3D(-3,0,0), new Vector3D(1,0,0));\n ArrayList<GeoPoint> actual1 = cuboid1.findIntersections(ray1);\n ArrayList<GeoPoint> expected1 = new ArrayList<>();\n expected1.add(new GeoPoint(cuboid1, new Point3D(2,0,0)));\n expected1.add(new GeoPoint(cuboid1, new Point3D(-2,0,0)));\n\n assertTrue(Util.intersectionsEqual(expected1, actual1));\n\n //Aligned with Y axis but have different dimensions\n Cuboid cuboid2 = new Cuboid(2,4,3);\n Ray ray2 = new Ray(new Point3D(0,100,0), new Vector3D(0,-1,0));\n ArrayList<GeoPoint> actual2 = cuboid2.findIntersections(ray2);\n ArrayList<GeoPoint> expected2 = new ArrayList<>();\n expected2.add(new GeoPoint(cuboid1, new Point3D(0,2,0)));\n assertEquals(expected2.get(0).point, actual2.get(0).point);\n\n Cuboid cuboid3 = new Cuboid(2,4,3, new Ray(new Point3D(1,1,1), new Vector3D(0,0,1)));\n Ray ray3 = new Ray(new Point3D(0,100,0), new Vector3D(0,-1,0));\n ArrayList<GeoPoint> actual3 = cuboid3.findIntersections(ray3);\n ArrayList<GeoPoint> expected3 = new ArrayList<>();\n expected3.add(new GeoPoint(cuboid1, new Point3D(0,3,0)));\n assertEquals(expected3.get(0).point, actual3.get(0).point);\n\n Ray ray = new Ray(new Point3D(0,0,-200), Vector3D.zAxis);\n ArrayList<GeoPoint> interesections = cuboid1.findIntersections(ray);\n }", "private boolean intersects(int from1, int to1, int from2, int to2) {\n\t\treturn from1 <= from2 && to1 >= from2 // (.[..)..] or (.[...]..)\n\t\t\t\t|| from1 >= from2 && from1 <= to2; // [.(..]..) or [..(..)..\n\t}", "public static boolean theSame(LayeredComponent lc1, LayeredComponent lc2) {\n \tif (lc1.numberOfLayers() != lc2.numberOfLayers()) {\n \t\treturn false;\n \t}\n \n \tfor (int i = 0; i < lc1.numberOfLayers(); i++) {\n \t\tif (lc1.getLayer(i).size() != lc2.getLayer(i).size())\n \t\t\treturn false;\n \t}\n \t\n \treturn true;\n }", "public boolean areLinesIdentical(Field[] line1, Field[] line2) {\n\t\tif (line1.length != line2.length) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (int i=0; i<line1.length; i++) {\n\t\t\tField f1 = line1[i];\n\t\t\tField f2 = line2[i];\n\t\t\tboolean ident = f1.isEmpty() || f2.isEmpty() || f1.getSymbol() == f2.getSymbol();\n\t\t\tif (!ident) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean overlappingGateways(BpmnShape s1, BpmnShape s2) {\n\t\tdouble firstHeight = s1.getBounds().getHeight() / 2;\n\t\tdouble firstWidth = s1.getBounds().getWidth() / 2;\n\t\tdouble firstX = s1.getBounds().getX() + firstWidth;\n\t\tdouble firstY = s1.getBounds().getY() + firstHeight;\n\t\tdouble firstApothem = (s1.getBounds().getHeight() * Math.sqrt(2)) / 2;\n\n\t\tdouble secondWidth = s2.getBounds().getWidth() / 2;\n\t\tdouble secondHeight = s2.getBounds().getHeight() / 2;\n\t\tdouble secondX = s2.getBounds().getX();\n\t\tdouble secondY = s2.getBounds().getY() + secondHeight;\n\t\tdouble secondApothem = (s2.getBounds().getHeight() * Math.sqrt(2)) / 2;\n\t\t\n\t\tif (firstX > secondX && firstY > secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY - firstApothem < secondY + secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY + firstApothem > secondY - secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY > secondY){\n\t\t\tif ((firstX + firstWidth > secondX - secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX + firstApothem > secondX - secondApothem || firstY - firstApothem < secondY + secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY + firstApothem > secondY - secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY == secondY)\n\t\t\t\treturn true;\n\t\t\n\t\tif (firstX == secondX && firstY > secondY){\n\t\t\tif (firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY == secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY < secondY){\n\t\t\tif (firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY == secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasIntersection(Line3D line) {\n List<Point3D> list = new ArrayList();\n int count = 0;\n int nFaces = meshFaces.length/3;\n Triangle3D face = new Triangle3D();\n for (int f = 0; f < nFaces; f++){\n this.getFace(f, face);\n if( face.intersection(line, list)>0)return true;\n }\n return false;\n }", "public boolean hasIntersectionRay(Line3D line) {\n List<Point3D> list = new ArrayList();\n /*for (Face3D face : faces)\n if (face.intersectionRay(line, list) > 0)\n return true;*/\n return false;\n }", "private boolean overlappingEvents(BpmnShape s1, BpmnShape s2) {\n\t\t\n\t\tdouble firstHeight = s1.getBounds().getHeight() / 2;\n\t\tdouble firstWidth = s1.getBounds().getWidth() / 2;\n\t\tdouble firstX = s1.getBounds().getX();\n\t\tdouble firstY = s1.getBounds().getY() + firstHeight;\n\t\t\n\t\tdouble secondWidth = s2.getBounds().getWidth() / 2;\n\t\tdouble secondHeight = s2.getBounds().getHeight() / 2;\n\t\tdouble secondX = s2.getBounds().getX();\n\t\tdouble secondY = s2.getBounds().getY() + secondHeight;\n\t\t\n\t\tif (firstX > secondX && firstY > secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth && firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY < secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY > secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth && firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY < secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth && firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY == secondY)\n\t\t\t\treturn true;\n\t\t\n\t\tif (firstX == secondX && firstY > secondY){\n\t\t\tif (firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY == secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY < secondY){\n\t\t\tif (firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY == secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "static Boolean lineBetween(int x1, int y1, int x2, int y2) {\n double m, b; // for line eqn.\n int maxV = Math.max( pgmInf.img[y1][x1], pgmInf.img[y2][x2] );\n int xmin = Math.min(x1, x2), xmax = Math.max(x1, x2);\n int ymin = Math.min(y1, y2), ymax = Math.max(y1, y2);\n\n if (x1 == x2) {\n // x = c\n for (int y=ymin ; y < ymax ; y++)\n if (pgmInf.img[y][x1] > maxV) return false;\n }\n else {\n // setup for y=mx + b form\n double top = (y1-y2), bot = (x1-x2);\n m = top / bot; \n\n if (m > -1 && m < 1) {\n // y = mx + b\n b = y1 - m * (double)x1;\n\n for (int x=xmin ; x < xmax ; x++) {\n int y = (int)Math.round( m * (double)x + b );\n if (pgmInf.img[y][x] > maxV ) return false;\n }\n }\n else {\n // x = my + b\n top = (x1-x2); bot = (y1-y2); \n m = top / bot; b = x1 - m * (double)y1;\n\n for (int y=ymin ; y < ymax ; y++) {\n int x = (int)Math.round( m* (double)y + b );\n if (pgmInf.img[y][x] > maxV) return false;\n }\n }\n }\n return true;\n }", "public static Point2D ptIntersectsLines(Line2D line1, Line2D line2) {\n // convert line2D to point\n final Point p1 = new Point((int) line1.getP1().getX(), (int) line1.getP1()\n .getY());\n final Point p2 = new Point((int) line1.getP2().getX(), (int) line1.getP2()\n .getY());\n final Point p3 = new Point((int) line2.getP1().getX(), (int) line2.getP1()\n .getY());\n final Point p4 = new Point((int) line2.getP2().getX(), (int) line2.getP2()\n .getY());\n\n // compute intersection point between two line\n // (http://en.wikipedia.org/wiki/Line-line_intersection)\n final int denom = (p1.x - p2.x) * (p3.y - p4.y) - (p1.y - p2.y)\n * (p3.x - p4.x);\n\n // no intersection (lines //)\n if (denom == 0) return new Point2D.Float(-1.0f, -1.0f);\n\n final int x = ((p1.x * p2.y - p1.y * p2.x) * (p3.x - p4.x) - (p1.x - p2.x)\n * (p3.x * p4.y - p3.y * p4.x))\n / denom;\n final int y = ((p1.x * p2.y - p1.y * p2.x) * (p3.y - p4.y) - (p1.y - p2.y)\n * (p3.x * p4.y - p3.y * p4.x))\n / denom;\n\n return new Point2D.Float(x, y);\n }", "public boolean isInRect(Point p) {\n\t\tLine AB = new Line(A1, B1);\n\t\tLine CD = new Line(C1, AB.getU());\n\t\tLine AD = new Line(A1, D1);\n\t\tLine BC = new Line(B1, AD.getU());\n\n\t\tif (Line.isBetween2Lines(AB, CD, p) && Line.isBetween2Lines(AD, BC, p)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "boolean rectRect(float r1x, float r1y, float r1w, float r1h, float r2x, float r2y, float r2w, float r2h) {\n\t \n\t // are the sides of one rectangle touching the other?\n\t \n\t if (r1x + r1w >= r2x && // r1 right edge past r2 left\n\t r1x <= r2x + r2w && // r1 left edge past r2 right\n\t r1y + r1h >= r2y && // r1 top edge past r2 bottom\n\t r1y <= r2y + r2h) { // r1 bottom edge past r2 top\n\t return true;\n\t }\n\t return false;\n\t}", "public static boolean checkIfLineSegementsIntersects( Point2D a, Point2D b, Point2D c, Point2D d, Point2D r )\n {\n double distAB, theCos, theSin, newX, ABpos;\n\n // Fail if either line is undefined.\n if( a.x == b.x && a.y == b.y || c.x == d.x && c.y == d.y )\n return false;\n\n // Fail if the segments share an end-point.\n if( a.x == c.x && a.y == c.y || b.x == c.x && b.y == c.y || a.x == d.x && a.y == d.y || b.x == d.x && b.y == d.y )\n return false;\n\n // (1) Translate the system so that point A is on the origin.\n double Bx = b.x - a.x;\n double By = b.y - a.y;\n double Cx = c.x - a.x;\n double Cy = c.y - a.y;\n double Dx = d.x - a.x;\n double Dy = d.y - a.y;\n\n // Discover the length of segment A-B.\n distAB = Math.sqrt( Bx * Bx + By * By );\n\n // (2) Rotate the system so that point B is on the positive X axis.\n theCos = Bx / distAB;\n theSin = By / distAB;\n newX = Cx * theCos + Cy * theSin;\n Cy = (int) (Cy * theCos - Cx * theSin);\n Cx = newX;\n newX = Dx * theCos + Dy * theSin;\n Dy = (int) (Dy * theCos - Dx * theSin);\n Dx = newX;\n\n // Fail if segment C-D doesn't cross line A-B.\n if( Cy < 0. && Dy < 0. || Cy >= 0. && Dy >= 0. )\n return false;\n\n // (3) Discover the position of the intersection point along line A-B.\n ABpos = Dx + (Cx - Dx) * Dy / (Dy - Cy);\n\n // Fail if segment C-D crosses line A-B outside of segment A-B.\n if( ABpos < 0. || ABpos > distAB )\n return false;\n\n // (4) Apply the discovered position to line A-B in the original coordinate system.\n if( r != null )\n {\n r.x = (int) (a.x + ABpos * theCos);\n r.y = (int) (a.y + ABpos * theSin);\n }\n\n // Success.\n return true;\n }", "private boolean collides2d(double testMinX, double testMaxX, double testMinY, double testMaxY, double otherMinX, double otherMaxX, double otherMinY, double otherMaxY, double otherExtrudeX, double otherExtrudeY) {\n if (otherExtrudeX == 0)\n return true; //prevent division by 0\n double slope = otherExtrudeY / otherExtrudeX;\n double height;\n double height2;\n Coordinate2D lowerPoint;\n Coordinate2D upperPoint;\n if (otherExtrudeX > 0) { //extruding to the right\n height = -(slope * (otherExtrudeY > 0 ? otherMaxX : otherMinX)) + otherMinY;\n height2 = -(slope * (otherExtrudeY > 0 ? otherMinX : otherMaxX)) + otherMaxY;\n lowerPoint = new Coordinate2D((otherExtrudeY > 0 ? testMaxX : testMinX), testMinY);\n upperPoint = new Coordinate2D((otherExtrudeY > 0 ? testMinX : testMaxX), testMaxY);\n } else { //extruding to the left\n height = -(slope * (otherExtrudeY <= 0 ? otherMaxX : otherMinX)) + otherMinY;\n height2 = -(slope * (otherExtrudeY <= 0 ? otherMinX : otherMaxX)) + otherMaxY;\n lowerPoint = new Coordinate2D((otherExtrudeY <= 0 ? testMaxX : testMinX), testMinY);\n upperPoint = new Coordinate2D((otherExtrudeY <= 0 ? testMinX : testMaxX), testMaxY);\n }\n Line lowerLine = new Line(height, slope);\n Line upperLine = new Line(height2, slope);\n return (lowerPoint.getY() <= upperLine.getYatX(lowerPoint.getX()) && upperPoint.getY() >= lowerLine.getYatX(upperPoint.getX()));\n }", "public static boolean collision(Bug b1, Bug b2){\n float xDiff = b1.getCenter().x - b2.getCenter().x;\n float yDiff = b1.getCenter().y - b2.getCenter().y;\n float distSqr = xDiff*xDiff + yDiff*yDiff;\n return distSqr < (b1.getRadius() + b2.getRadius()) * (b1.getRadius() + b2.getRadius());\n }" ]
[ "0.7541335", "0.7460434", "0.7379528", "0.72392833", "0.72196525", "0.69863296", "0.6838043", "0.68263614", "0.68206114", "0.67040765", "0.668838", "0.6669467", "0.6661248", "0.6660991", "0.6659722", "0.66342914", "0.6626755", "0.65912485", "0.65411574", "0.6517208", "0.6507323", "0.6504742", "0.6467154", "0.6466599", "0.64499605", "0.6447599", "0.64082724", "0.640467", "0.6395573", "0.6364247", "0.6336803", "0.63264", "0.62891674", "0.6275041", "0.6270737", "0.6269765", "0.6265606", "0.62619996", "0.6245524", "0.62369514", "0.620706", "0.6202994", "0.6198006", "0.61933213", "0.61645794", "0.6164357", "0.616201", "0.61586195", "0.61539066", "0.6153854", "0.6140715", "0.6140009", "0.6134923", "0.61341906", "0.6121733", "0.6119192", "0.6114908", "0.610304", "0.6100172", "0.60990363", "0.6078185", "0.60731125", "0.6071508", "0.60672325", "0.60611117", "0.6050924", "0.60502565", "0.6046551", "0.60401356", "0.60197586", "0.6016649", "0.6011707", "0.59998256", "0.5998116", "0.59895796", "0.5971941", "0.595879", "0.59584105", "0.5952021", "0.5950234", "0.59378386", "0.5937709", "0.5933225", "0.59292376", "0.5915808", "0.59043765", "0.5893669", "0.58881", "0.5887587", "0.58858013", "0.58769834", "0.5874629", "0.5866029", "0.5863194", "0.5843328", "0.5842585", "0.5837422", "0.5836871", "0.5831158", "0.58253455" ]
0.81004834
0
Returns a 3x3 rotation matrix as vectors.
Vec3[] getInvRot() { Vec3[] pvRot = new Vec3[3]; pvRot[0] = m.<Vec4>getColumn(0).getXYZ(); pvRot[1] = m.<Vec4>getColumn(1).getXYZ(); pvRot[2] = m.<Vec4>getColumn(2).getXYZ(); return pvRot; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final Vector3f[] getInvRot() {\n/* 154 */ Vector3f[] result = new Vector3f[3];\n/* 155 */ result[0] = new Vector3f(this.M.mf[0], this.M.mf[1], this.M.mf[2]);\n/* 156 */ result[1] = new Vector3f(this.M.mf[4], this.M.mf[5], this.M.mf[6]);\n/* 157 */ result[2] = new Vector3f(this.M.mf[8], this.M.mf[9], this.M.mf[10]);\n/* 158 */ return result;\n/* */ }", "DMatrix3C getRotation();", "public static Matrix getR3(double angle)\n\t{\n\t\tMatrix m = new Matrix(3, 3);\n\t\tm.data[0] = new double[] {Math.cos(angle), Math.sin(angle), 0.0};\n\t\tm.data[1] = new double[] {-Math.sin(angle), Math.cos(angle), 0.0};\n\t\tm.data[2] = new double[] {0.0, 0.0, 1.0};\n\t\treturn m;\n\t}", "public Vec3 toVec3()\n {\n return Vec3.createVectorHelper(this.x, this.y, this.z);\n }", "public Vector3f getRotationVec(int xform) {\n\t\treturn m_xforms[xform].m_rotate;\n\t}", "public Vector3f getRotationVec() {\n\t\treturn m_xforms[NvCameraXformType.MAIN].m_rotate;\n\t}", "void calculateRotationMatrix() {\n R[0][0] = (float) (Math.cos(angle[0]) * Math.cos(angle[1]));\n R[1][0] = (float) (Math.sin(angle[0]) * Math.cos(angle[1]));\n R[0][1] = (float) (Math.cos(angle[0]) * Math.sin(angle[1]) * Math.sin(angle[2]) - Math.sin(angle[0]) * Math.cos(angle[2]));\n R[1][1] = (float) (Math.sin(angle[0]) * Math.sin(angle[1]) * Math.sin(angle[2]) + Math.cos(angle[0]) * Math.cos(angle[2]));\n R[0][2] = (float) (Math.cos(angle[0]) * Math.sin(angle[1]) * Math.cos(angle[2]) + Math.sin(angle[0]) * Math.sin(angle[2]));\n R[1][2] = (float) (Math.sin(angle[0]) * Math.sin(angle[1]) * Math.cos(angle[2]) - Math.cos(angle[0]) * Math.sin(angle[2]));\n R[2][0] = (float) - Math.sin(angle[1]);\n R[2][1] = (float) (Math.cos(angle[1]) * Math.sin(angle[2]));\n R[2][2] = (float) (Math.cos(angle[1]) * Math.cos(angle[2]));\n }", "public static Matrix3D rotZ(double theta) {\n Matrix3D m = new Matrix3D();\n m.set(0,0, Math.cos(theta));\n m.set(0,1,-Math.sin(theta));\n m.set(1,0, Math.sin(theta));\n m.set(1,1, Math.cos(theta));\n m.set(2,2, 1.0);\n return m;\n }", "public void rotateTransform(Vector3f rot) {\r\n\t\tMatrix4f rx = new Matrix4f();\r\n\t\tMatrix4f ry = new Matrix4f();\r\n\t\tMatrix4f rz = new Matrix4f();\r\n\t\t\t\t\r\n\t\t// Convert the angles to radians\r\n\t\tfloat x = (float) Math.toRadians(rot.x);\r\n\t\tfloat y = (float) Math.toRadians(rot.y);\r\n\t\tfloat z = (float) Math.toRadians(rot.z);\r\n\r\n\t\t// Create the X-Rotation matrix\r\n\t\trx.m[0][0] = 1.0f; rx.m[0][1] = 0.0f;\t \t\t\t rx.m[0][2] = 0.0f; \t\t\t\trx.m[0][3] = 0.0f;\r\n\t rx.m[1][0] = 0.0f; rx.m[1][1] = (float) Math.cos(x); rx.m[1][2] = (float) -Math.sin(x); rx.m[1][3] = 0.0f;\r\n\t rx.m[2][0] = 0.0f; rx.m[2][1] = (float) Math.sin(x); rx.m[2][2] = (float) Math.cos(x) ; rx.m[2][3] = 0.0f;\r\n\t rx.m[3][0] = 0.0f; rx.m[3][1] = 0.0f; \t\t\t\t rx.m[3][2] = 0.0f;\t\t \t\t\trx.m[3][3] = 1.0f;\r\n\r\n\t // Create the Y-Rotation matrix\r\n\t ry.m[0][0] = (float) Math.cos(y); ry.m[0][1] = 0.0f; ry.m[0][2] = (float) -Math.sin(y); ry.m[0][3] = 0.0f;\r\n\t ry.m[1][0] = 0.0f; \t\t\t\t ry.m[1][1] = 1.0f; ry.m[1][2] = 0.0f; \t\t\t\try.m[1][3] = 0.0f;\r\n\t ry.m[2][0] = (float) Math.sin(y); ry.m[2][1] = 0.0f; ry.m[2][2] = (float) Math.cos(y) ; ry.m[2][3] = 0.0f;\r\n\t ry.m[3][0] = 0.0f; \t\t\t\t ry.m[3][1] = 0.0f; ry.m[3][2] = 0.0f; \t\t\t\try.m[3][3] = 1.0f;\r\n\r\n\t // Create the Z-Rotation matrix\r\n\t rz.m[0][0] = (float) Math.cos(z); rz.m[0][1] = (float) -Math.sin(z); rz.m[0][2] = 0.0f; rz.m[0][3] = 0.0f;\r\n\t rz.m[1][0] = (float) Math.sin(z); rz.m[1][1] = (float) Math.cos(z) ; rz.m[1][2] = 0.0f; rz.m[1][3] = 0.0f;\r\n\t rz.m[2][0] = 0.0f; \t\t\t\t rz.m[2][1] = 0.0f; \t\t\t\t rz.m[2][2] = 1.0f; rz.m[2][3] = 0.0f;\r\n\t rz.m[3][0] = 0.0f; \t\t\t\t rz.m[3][1] = 0.0f; \t\t\t\t rz.m[3][2] = 0.0f; rz.m[3][3] = 1.0f;\r\n\t\t\t\r\n\t // Multiply all the matrices together\r\n\t\tMatrix4f rzy = rz.mult(ry);\r\n\t\tMatrix4f r = rzy.mult(rx);\r\n\t\t\t \r\n\t\tm = r.m;\r\n\r\n\t}", "@Override\n public float[] getRotationMatrix(){\n float[] baseCorrection = Maths.buildRotationMatrix(new float[]{0, 1, 0, 0});\n\n float[] rotationX = {(float) Math.toDegrees(theta), 1, 0, 0};\n float[] rotationY = {(float) -Math.toDegrees(phi), 0, 1, 0};\n\n float[] rotationMatrix = new float[16];\n float[] coreMotionMatrix = Maths.buildRotationMatrix(rotationY, rotationX);\n Matrix.multiplyMM(rotationMatrix, 0, baseCorrection, 0, coreMotionMatrix, 0);\n\n return rotationMatrix;\n }", "static PMatrix3D getRotMatrixForRodrigues(PVector rodrigues ) {\n PMatrix3D R =new PMatrix3D();\n float theta=rodrigues.mag();\n if (theta<0.0001)return R;\n PVector normalized=PVector.mult(rodrigues, 1.0f/theta);\n\n\n float x = normalized.x;\n float y = normalized.y;\n float z = normalized.z;\n\n float c = (float)Math.cos( theta );\n float s = (float)Math.sin( theta );\n float oc = 1.0f - c;\n\n R.m00 = c + x * x * oc;\n R.m01 = x * y * oc - z * s;\n R.m02 = x * z * oc + y * s;\n\n R.m10 = y * x * oc + z * s;\n R.m11 = c + y * y * oc;\n R.m12 = y * z * oc - x * s;\n\n R.m20 = z * x * oc - y * s;\n R.m21 = z * y * oc + x * s;\n R.m22 = c + z * z * oc;\n\n return R;\n }", "public static AffineTransform3D getRotateZ(double theta) {\r\n\r\n\t\tAffineTransform3D rv = new AffineTransform3D();\r\n\t\tdouble sin = Math.sin(theta);\r\n\t\tdouble cos = Math.cos(theta);\r\n\t\trv.M11 = cos;\r\n\t\trv.M12 = sin;\r\n\t\trv.M21 = -sin;\r\n\t\trv.M22 = cos;\r\n\t\trv.M33 = 1;\r\n\t\trv.M13 = 0;\r\n\t\trv.M31 = 0;\r\n\t\trv.M14 = 0;\r\n\t\trv.M32 = 0;\r\n\t\trv.M24 = 0;\r\n\t\trv.M23 = 0;\r\n\t\trv.M34 = 0;\r\n\t\trv.M41 = 0;\r\n\t\trv.M42 = 0;\r\n\t\trv.M43 = 0;\r\n\t\trv.M44 = 1;\r\n\t\treturn rv;\r\n\t}", "public static Matrix3d getRotationMatrix(EnumFacing.Axis axis, double radians) {\n final Vec3i axisDirectionVector = AXIS_DIRECTION_VECTORS.get(axis);\n final AxisAngle4d axisAngle = new AxisAngle4d(axisDirectionVector.getX(), axisDirectionVector.getY(), axisDirectionVector.getZ(), radians);\n\n final Matrix3d rotationMatrix = new Matrix3d();\n rotationMatrix.set(axisAngle);\n\n return rotationMatrix;\n }", "public static Matrix3D rotX(double theta) {\n Matrix3D m = new Matrix3D();\n m.set(1,1, Math.cos(theta));\n m.set(1,2,-Math.sin(theta));\n m.set(2,1, Math.sin(theta));\n m.set(2,2, Math.cos(theta));\n m.set(0,0, 1.0);\n return m;\n }", "void setRotation (DMatrix3C R);", "public abstract Vector4fc rotateAbout(float angle, float x, float y, float z);", "@Override\n\tpublic Rotation3 GetRotation() {\n\t\treturn new Rotation3(0f);\n\t}", "public void rotate(){\n\t\t\n\t\tfor(Vertex v : vertices){\n\n\t\t\tMatrix m = ViewSettings.getRotationMatrix4().multiply(v);\n\n\t\t\tv.setX(m.getValue(0, 0));\n\t\t\tv.setY(m.getValue(1, 0));\n\t\t\tv.setZ(m.getValue(2, 0));\n\t\t\tv.setW(m.getValue(3, 0));\n\t\t}\n\t}", "public Vector3D getTransformedVector(Vector3D V) {\r\n\t\tVector3D rv = new Vector3D();\r\n\t\trv.x = V.x * M11 + V.y * M21 + V.z * M31 + V.w * M41;\r\n\t\trv.y = V.x * M12 + V.y * M22 + V.z * M32 + V.w * M42;\r\n\t\trv.z = V.x * M13 + V.y * M23 + V.z * M33 + V.w * M43;\r\n\t\trv.w = V.x * M14 + V.y * M24 + V.z * M34 + V.w * M44;\r\n\t\treturn rv;\r\n\t}", "public Matrix3f getPhysicsRotationMatrix() {\n return getPhysicsRotationMatrix(null);\n }", "Matrix()\n {\n x = new Vector();\n y = new Vector();\n z = new Vector();\n }", "public static Matrix rotateZ(double rad) {\n List<List<Double>> backingArray = get2DListOfSize(4);\n /*\n |cosr -sinr 0 0|\n |sinr cosr 0 0|\n |0 0 1 0|\n |0 0 0 1|\n */\n double cos = Math.cos(rad);\n double sin = Math.sin(rad);\n\n backingArray.get(0).set(0, cos);\n backingArray.get(0).set(1, -1*sin);\n backingArray.get(1).set(0, sin);\n backingArray.get(1).set(1, cos);\n backingArray.get(2).set(2, 1d);\n backingArray.get(3).set(3, 1d);\n\n return new Matrix(backingArray);\n }", "void copyRotation(DMatrix3 R);", "public static AffineTransform3D getRotateInstance(double theta_x,\r\n\t\t\tdouble theta_y, double theta_z) {\r\n\t\tAffineTransform3D rv = new AffineTransform3D();\r\n\t\trv = MatrixMult(MatrixMult(getRotateX(theta_x), getRotateY(theta_y)),\r\n\t\t\t\tgetRotateZ(theta_z));\r\n\t\treturn rv;\r\n\t}", "default void getRotationVector(FrameVector3DBasics rotationVectorToPack)\n {\n rotationVectorToPack.setReferenceFrame(getReferenceFrame());\n getRotationVector((Vector3DBasics) rotationVectorToPack);\n }", "public abstract Vector4fc rotate(IQuaternionf quat);", "public Transform getRotationTransformation() {\n Transform t = Transform.newXRotation(rotation.x);\n t = t.compose(Transform.newYRotation(rotation.y));\n t = t.compose(Transform.newZRotation(rotation.z));\n return t;\n }", "public static float[] rotate(float[] m, float a, float x, float y, float z) {\n float s, c;\n s = (float) Math.sin(a);\n c = (float) Math.cos(a);\n float[] r = {\n x * x * (1.0f - c) + c, y * x * (1.0f - c) + z * s, x * z * (1.0f - c) - y * s, 0.0f,\n x * y * (1.0f - c) - z * s, y * y * (1.0f - c) + c, y * z * (1.0f - c) + x * s, 0.0f,\n x * z * (1.0f - c) + y * s, y * z * (1.0f - c) - x * s, z * z * (1.0f - c) + c, 0.0f,\n 0.0f, 0.0f, 0.0f, 1.0f};\n return multiply(r, m);\n }", "public abstract Vector4fc rotateZ(float angle);", "public Vector3 rotated(float angle, Vector3 rotationVec) {\n float[] rotMat = new float[16];\n float[] asArray = asVec4Array();\n float[] resultVec = new float[4];\n Matrix.setRotateM(rotMat, 0, angle, rotationVec.x, rotationVec.y, rotationVec.z);\n Matrix.multiplyMV(resultVec, 0, rotMat, 0, asArray, 0);\n return new Vector3(resultVec[0], resultVec[1], resultVec[2]);\n }", "private Matrix33d getMatrix() {\n final Matrix33d m = new Matrix33d();\n m.setMatrixColumn(new Vector3d(V1), 0);\n m.setMatrixColumn(new Vector3d(V2), 1);\n m.setMatrixColumn(new Vector3d(V3), 2);\n return m;\n }", "public Matrix getTranspose() {\r\n double[][] jadi = new double[matrix[0].length][matrix.length];\r\n for (int i = 0; i < jadi.length; i++) {\r\n for (int j = 0; j < jadi[0].length; j++) {\r\n jadi[i][j] = matrix[j][i];\r\n }\r\n }\r\n return new Matrix(jadi);\r\n }", "public VectorN getV()\n\t{\n\t\tVectorN out = new VectorN(3);\n\t\tout.x[0] = this.rv.x[3];\n\t\tout.x[1] = this.rv.x[4];\n\t\tout.x[2] = this.rv.x[5];\n\t\treturn out;\n\t}", "public Matrix3f getPhysicsRotationMatrix(Matrix3f rotation) {\n if (rotation == null) {\n rotation = new Matrix3f();\n }\n rBody.getCenterOfMassTransform(tempTrans);\n return Converter.convert(tempTrans.basis, rotation);\n }", "public static Point PointRotate3D(final Point origin, final Point toRotate, final Vector rotationAxis, final float angle) { \n Vector axis = (rotationAxis.magnitude() == 1) ? rotationAxis : rotationAxis.normal();\n float dist = sqrt(sq(axis.y) + sq(axis.z)); \n Matrix T = new Matrix(new double[][]{\n new double[] {1, 0, 0, -origin.x},\n new double[] {0, 1, 0, -origin.y},\n new double[] {0, 0, 1, -origin.z},\n new double[] {0, 0, 0, 1},\n });\n Matrix TInv = T.inverse();\n\n float aZ = (axis.z == 0 && dist == 0) ? 0 : (axis.z / dist);\n float aY = (axis.y == 0 && dist == 0) ? 0 : (axis.y / dist);\n Matrix Rx = new Matrix(new double[][]{\n new double[] {1, 0, 0, 0},\n new double[] {0, aZ, -aY, 0},\n new double[] {0, aY, aZ, 0},\n new double[] {0, 0, 0, 1},\n });\n\n Matrix RxInv = new Matrix(new double[][]{\n new double[] {1, 0, 0, 0},\n new double[] {0, aZ, aY, 0},\n new double[] {0, -aY, aZ, 0},\n new double[] {0, 0, 0, 1},\n });\n\n Matrix Ry = new Matrix(new double[][]{\n new double[] {dist, 0, -axis.x, 0},\n new double[] {0, 1, 0, 0},\n new double[] {axis.x, 0, dist, 0},\n new double[] {0, 0, 0, 1},\n });\n\n Matrix RyInv = Ry.inverse();\n\n Matrix Rz = new Matrix(new double[][]{\n new double[] {cos(angle), -sin(angle), 0, 0},\n new double[] {sin(angle), cos(angle), 0, 0},\n new double[] {0, 0, 1, 0},\n new double[] {0, 0, 0, 1},\n });\n\n Matrix origSpace = new Matrix(new double[][] {\n new double[]{toRotate.x},\n new double[]{toRotate.y},\n new double[]{toRotate.z},\n new double[]{1}\n });\n Matrix rotated = TInv.times(RxInv).times(RyInv).times(Rz).times(Ry).times(Rx).times(T).times(origSpace);\n\n return new Point((float) rotated.get(0, 0), (float) rotated.get(1, 0), (float) rotated.get(2, 0));\n }", "public static Matrix rotateX(double rad) {\n List<List<Double>> backingArray = get2DListOfSize(4);\n /*\n |1 0 0 0|\n |0 cosr -sinr 0|\n |0 sinr cosr 0|\n |0 0 0 1|\n */\n double cos = Math.cos(rad);\n double sin = Math.sin(rad);\n\n backingArray.get(0).set(0, 1d);\n backingArray.get(1).set(1, cos);\n backingArray.get(1).set(2, -1*sin);\n backingArray.get(2).set(1, sin);\n backingArray.get(2).set(2, cos);\n backingArray.get(3).set(3, 1d);\n\n return new Matrix(backingArray);\n }", "public static double[] multiplyRotationMatrixVector(double[][] matrix, double[] vector) {\n double[] rotatedVector = new double[3];\n for (int i = 0; i < 3; i++) {\n for (int x = 0; x < 3; x++) {\n rotatedVector[i] += matrix[i][x] * vector[x];\n }\n }\n return rotatedVector;\n }", "public static AffineTransform3D getRotateX(double theta) {\r\n\r\n\t\tAffineTransform3D rv = new AffineTransform3D();\r\n\t\tdouble sin = Math.sin(theta);\r\n\t\tdouble cos = Math.cos(theta);\r\n\t\trv.M22 = cos;\r\n\t\trv.M23 = sin;\r\n\t\trv.M32 = -sin;\r\n\t\trv.M33 = cos;\r\n\t\trv.M11 = 1;\r\n\t\trv.M12 = 0;\r\n\t\trv.M13 = 0;\r\n\t\trv.M14 = 0;\r\n\t\trv.M21 = 0;\r\n\t\trv.M24 = 0;\r\n\t\trv.M31 = 0;\r\n\t\trv.M34 = 0;\r\n\t\trv.M41 = 0;\r\n\t\trv.M42 = 0;\r\n\t\trv.M43 = 0;\r\n\t\trv.M44 = 1;\r\n\t\treturn rv;\r\n\t}", "public abstract Vector4fc rotateX(float angle);", "public static int [][][] buildMat3d() {\n //defines array to be 3 X 7X 9 dimensioned\n int mat3d [][][]= new int [3][7][9];\n //for loop which runs 3 times\n for(int s=0; s<3; s++) {\n //for loop which runs a different amount of times\n for(int j=0; j<(3+2*s); j++) {\n //for loop which does the same\n for(int c=0; c<(s+j+1); c++) {\n //defines values based on raondom generation\n mat3d[s][j][c]= (int)(Math.random()*99);\n \n }\n }\n }\n //returns the resulting array\n return mat3d;\n }", "public static double[] rotateVector( double[] v, double[]axis, double degrees ) {\n double[] result = new double[3];\n rotateVector( v, axis, degrees, result);\n return result;\n }", "public void rotateCCW() {\n for (Vector2D vec : template) {\n CCW.matrixVectorProductInPlace(vec);\n }\n }", "float[] getProjectionMatrix();", "float[][] getCameraVectors(int resX, int resY){\n float vectors[][]=new float[resX*resY][3];//first vector index, second the components of the vector\n float[] vect2=rotateYVector(dir);\n vect2[1]=0;\n vect2=normalize(vect2);\n float[] vect3=normalize(vectorProduct(dir, vect2));//dir, vect2, vect3 base vectors\n float[] x={0,0,0};\n float[] y={0,0,0};\n float[] temp={0,0,0};\n for(int i=0;i<3;i++){\n x[i]=(vect2[i])/(resX/2);\n y[i]=(vect3[i])/(resY/2);\n temp[i]=vect2[i];\n }\n \n for(int j=0;j<resY;j++){\n for(int i=0;i<resX;i++){\n vectors[j*resX+i][0]=dir[0]+vect2[0]+vect3[0];\n vectors[j*resX+i][1]=dir[1]+vect2[1]+vect3[1];\n vectors[j*resX+i][2]=dir[2]+vect2[2]+vect3[2];\n vect2[0]-=x[0];\n vect2[1]-=x[1];\n vect2[2]-=x[2];\n if((vectorLength(vect2)>(-0.0001)&&vectorLength(vect2)<0.0001)&&(resX%2)==0){\n vect2[0]-=x[0];\n vect2[1]-=x[1];\n vect2[2]-=x[2];\n }\n }\n //printVector(temp);\n vect2[0]=temp[0];\n vect2[1]=temp[1];\n vect2[2]=temp[2];\n vect3[0]-=y[0];\n vect3[1]-=y[1];\n vect3[2]-=y[2];\n if((vectorLength(vect3)>(-0.0001)&&vectorLength(vect3)<0.0001)&&(resY%2)==0){\n vect3[0]-=y[0];\n vect3[1]-=y[1];\n vect3[2]-=y[2];\n }\n }\n \n return vectors;\n }", "synchronized public VectorString3D asVectorString3D() {\n \t\t// local pointers, since they may be transformed\n \t\tint n_points = this.n_points;\n \t\tdouble[][] p = this.p;\n \t\tif (!this.at.isIdentity()) {\n \t\t\tfinal Object[] ob = getTransformedData();\n \t\t\tp = (double[][])ob[0];\n \t\t\tn_points = p[0].length;\n \t\t}\n \t\tdouble[] z_values = new double[n_points];\n \t\tfor (int i=0; i<n_points; i++) {\n \t\t\tz_values[i] = layer_set.getLayer(p_layer[i]).getZ();\n \t\t}\n \n \t\tfinal double[] px = p[0];\n \t\tfinal double[] py = p[1];\n \t\tfinal double[] pz = z_values;\n \t\tVectorString3D vs = null;\n \t\ttry {\n \t\t\tvs = new VectorString3D(px, py, pz, false);\n \t\t} catch (Exception e) { IJError.print(e); }\n \t\treturn vs;\n \t}", "@Test\n public void testRotateVector(){\n\n double [] v = new double[2]; // input vector\n double[] transformedV; // output vector\n\n v[0] = 0;\n v[1] = 0;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], 0);\n Assertions.assertEquals(transformedV[1], 0);\n\n v[0] = 1;\n v[1] = 0;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], 0);\n Assertions.assertEquals(transformedV[1], 1);\n\n v[0] = 0;\n v[1] = 1;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], -1);\n Assertions.assertEquals(transformedV[1], 0);\n\n v[0] = 0;\n v[1] = 1;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], -1);\n Assertions.assertEquals(transformedV[1], 0);\n }", "public void testRotationMatrix() {\n\n u = 1;\n RotationMatrix rM = new RotationMatrix(a, b, c, u, v, w, theta);\n // This should be the identity matrix\n double[][] m = rM.getMatrix();\n for(int i=0; i<m.length; i++) {\n for(int j=0; j<m.length; j++) {\n if(j==i) {\n assertEquals(m[i][j], 1, TOLERANCE);\n } else {\n assertEquals(m[i][j], 0, TOLERANCE);\n }\n }\n }\n }", "public double getRotation();", "public mat4 getRotation() {\n return worldMatrix.getRotation(pr, yr, pr);\n }", "public void rotate(double angle) {\t\t\n\t\t// precompute values\n\t\tVector t = new Vector(this.a14, this.a24, this.a34);\n\t\tif (t.length() > 0) t = t.norm();\n\t\t\n\t\tdouble x = t.x();\n\t\tdouble y = t.y();\n\t\tdouble z = t.z();\n\t\t\n\t\tdouble s = Math.sin(angle);\n\t\tdouble c = Math.cos(angle);\n\t\tdouble d = 1 - c;\n\t\t\n\t\t// precompute to avoid double computations\n\t\tdouble dxy = d*x*y;\n\t\tdouble dxz = d*x*z;\n\t\tdouble dyz = d*y*z;\n\t\tdouble xs = x*s;\n\t\tdouble ys = y*s;\n\t\tdouble zs = z*s;\n\t\t\n\t\t// update matrix\n\t\ta11 = d*x*x+c; a12 = dxy-zs; a13 = dxz+ys;\n\t\ta21 = dxy+zs; a22 = d*y*y+c; a23 = dyz-xs;\n\t\ta31 = dxz-ys; a32 = dyz+xs; a33 = d*z*z+c;\n\t}", "public int[][] arrayToMatriz(int vec[]) {\r\n\t\tint matriz[][] = new int[3][3];\r\n\t\tint cont = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < matriz.length; i++) {\r\n\t\t\tfor (int j = 0; j < matriz.length; j++) {\r\n\t\t\t\tmatriz[i][j] = vec[cont];\r\n\t\t\t\tcont++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn matriz;\r\n\t}", "public double[] angles()\n {\n double[] res = new double[3];\n PdVector.angle(res, p1, p2, p3);\n return res;\n }", "Matrix<T> getTransposed();", "public AffineTransform3D() {\r\n\t\tthis.M11 = 1;\r\n\t\tthis.M12 = 0;\r\n\t\tthis.M13 = 0;\r\n\t\tthis.M14 = 0;\r\n\t\tthis.M21 = 0;\r\n\t\tthis.M22 = 1;\r\n\t\tthis.M23 = 0;\r\n\t\tthis.M24 = 0;\r\n\t\tthis.M31 = 0;\r\n\t\tthis.M32 = 0;\r\n\t\tthis.M33 = 1;\r\n\t\tthis.M34 = 0;\r\n\t\tthis.M41 = 0;\r\n\t\tthis.M42 = 0;\r\n\t\tthis.M43 = 0;\r\n\t\tthis.M44 = 1;\r\n\t}", "@Test\n\tpublic void turnVectorVector3DDouble() {\n\t\tVector3f vector = new Vector3f(this.random.nextDouble(),this.random.nextDouble(),this.random.nextDouble());\n\t\tVector3f axis = new Vector3f(this.random.nextDouble(),this.random.nextDouble(),this.random.nextDouble());\n\t\taxis.normalize();\n\t\tdouble angle = this.random.nextDouble();\n\t\t\n\t\tMatrix3f turn = new Matrix3f(\n\t\t\t\taxis.getX()*axis.getX()+(1-axis.getX()*axis.getX())*Math.cos(angle),\n\t\t\t\taxis.getX()*axis.getY()*(1-Math.cos(angle))-axis.getZ()*Math.sin(angle),\n\t\t\t\taxis.getX()*axis.getZ()*(1-Math.cos(angle))+axis.getY()*Math.sin(angle),\n\t\t\t\taxis.getX()*axis.getY()*(1-Math.cos(angle))+axis.getZ()*Math.sin(angle),\n\t\t\t\taxis.getY()*axis.getY()+(1-axis.getY()*axis.getY())*Math.cos(angle),\n\t\t\t\taxis.getY()*axis.getZ()*(1-Math.cos(angle))-axis.getX()*Math.sin(angle),\n\t\t\t\taxis.getX()*axis.getZ()*(1-Math.cos(angle))-axis.getY()*Math.sin(angle),\n\t\t\t\taxis.getY()*axis.getZ()*(1-Math.cos(angle))+axis.getX()*Math.sin(angle),\n\t\t\t\taxis.getZ()*axis.getZ()+(1-axis.getZ()*axis.getZ())*Math.cos(angle));\n\t\t\n\t\tVector3f vectorTurned = vector.mul(turn);\n\t\tvector.turnVector(axis, angle);\n\t\t\n\t\tassertEpsilonEquals(vector.length(),vectorTurned.length());\n\t\tassertEpsilonEquals(vector.signedAngle(new Vector3f(1,0,0)),vectorTurned.signedAngle(new Vector3f(1,0,0)));\n\t\tassertTrue(vector.equals(vectorTurned));\n\t}", "protected void initTransforms() {\n for (int i = 0; i < cornerCount; i++) {\n int index = cornerOffset + i;\n identityVertexMatrix[index] = new idx3d_Matrix();\n }\n\n // 0:urf\n identityVertexMatrix[cornerOffset + 0].rotate(0, -HALF_PI, 0);\n // 1:dfr\n identityVertexMatrix[cornerOffset + 1].rotate(0, 0, PI);\n // 2:ubr\n identityVertexMatrix[cornerOffset + 2].rotate(0, PI, 0);\n // 3:drb\n identityVertexMatrix[cornerOffset + 3].rotate(0, 0, PI);\n identityVertexMatrix[cornerOffset + 3].rotate(0, -HALF_PI, 0);\n // 4:ulb\n identityVertexMatrix[cornerOffset + 4].rotate(0, HALF_PI, 0);\n // 5:dbl\n identityVertexMatrix[cornerOffset + 5].rotate(PI, 0, 0);\n // 6:ufl\n //--no transformation---\n // 7:dlf\n identityVertexMatrix[cornerOffset + 7].rotate(0, HALF_PI, 0);\n identityVertexMatrix[cornerOffset + 7].rotate(PI, 0, 0);\n //\n // We can clone the normalmatrix here form the vertex matrix, because\n // the vertex matrix consists of rotations only.\n for (int i = 0; i < cornerCount; i++) {\n identityNormalMatrix[i] = identityVertexMatrix[i].getClone();\n }\n\n /**\n * Edges\n */\n // Move all edge parts to front up (fu) and then rotate them in place\n for (int i = 0; i < edgeCount; i++) {\n int index = edgeOffset + i;\n idx3d_Matrix vt = new idx3d_Matrix();\n idx3d_Matrix nt = new idx3d_Matrix();\n identityVertexMatrix[index] = vt;\n identityNormalMatrix[index] = nt;\n // The vertex matrix is the same as the normal matrix, but with\n // an additional shift, which is made before the rotation.\n if (i >= 12) {\n switch ((i - 12) % 24) {\n case 12:\n case 13:\n case 2:\n case 3:\n case 4:\n case 17:\n case 6:\n case 19:\n case 20:\n case 21:\n case 10:\n case 11:\n vt.shift(PART_LENGTH*((i+12)/24), 0f, 0f);\n break;\n default:\n vt.shift(-PART_LENGTH*((i+12)/24), 0f, 0f);\n break;\n }\n }\n // Now we do the rotation with the normal matrix only\n switch (i % 12) {\n case 0: // ur\n nt.rotate(0, HALF_PI, 0f);\n nt.rotate(0, 0, HALF_PI);\n break;\n case 1: // rf\n nt.rotate(0, -HALF_PI, 0);\n nt.rotate(HALF_PI, 0, 0);\n break;\n case 2: // dr\n nt.rotate(0, -HALF_PI, HALF_PI);\n break;\n case 3: // bu\n nt.rotate(0, PI, 0);\n break;\n case 4: // rb\n nt.rotate(0, 0, HALF_PI);\n nt.rotate(0, -HALF_PI, 0);\n break;\n case 5: // bd\n nt.rotate(PI, 0, 0);\n break;\n case 6: // ul\n nt.rotate(-HALF_PI, -HALF_PI, 0);\n break;\n case 7: // lb\n nt.rotate(0, 0, -HALF_PI);\n nt.rotate(0, HALF_PI, 0);\n break;\n case 8: // dl\n nt.rotate(HALF_PI, HALF_PI, 0);\n break;\n case 9: // fu\n //--no transformation--\n break;\n case 10: // lf\n nt.rotate(0, 0, HALF_PI);\n nt.rotate(0, HALF_PI, 0);\n break;\n case 11: // fd\n nt.rotate(0, 0, PI);\n break;\n }\n // Finally, we concatenate the rotation to the vertex matrix\n vt.transform(nt);\n }\n /* Sides\n */\n // Move all side parts to the front side and rotate them into place\n for (int i = 0; i < sideCount; i++) {\n int index = sideOffset + i;\n idx3d_Matrix vt = new idx3d_Matrix();\n idx3d_Matrix nt = new idx3d_Matrix();\n identityVertexMatrix[index] = vt;\n identityNormalMatrix[index] = nt;\n // The vertex matrix is the same as the normal matrix, but with\n // an additional shift, which is made before the rotation.\n switch (i / 6) {\n // central part\n case 0 :\n // vt.shift(0, 0, 0);\n break;\n // inner ring\n case 1:\n vt.shift(-PART_LENGTH, -PART_LENGTH, 0);\n break;\n case 2:\n vt.shift(-PART_LENGTH, PART_LENGTH, 0);\n break;\n case 3:\n vt.shift(PART_LENGTH, PART_LENGTH, 0);\n break;\n case 4:\n vt.shift(PART_LENGTH, -PART_LENGTH, 0);\n break;\n case 5:\n vt.shift(0, -PART_LENGTH, 0);\n break;\n case 6:\n vt.shift(-PART_LENGTH, 0, 0);\n break;\n case 7:\n vt.shift(0, PART_LENGTH, 0);\n break;\n case 8:\n vt.shift(PART_LENGTH, 0, 0);\n break;\n // outer ring corners\n /*\n * +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+\n * | .0 | .2 | .3 | .1 |\n * + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ +\n * | |75 |129|81 |105|57 | | |62 |140|92 |116|68 | | |66 |144|96 |120|72 | | |59 |137|89 |113|65 | |\n * + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ +\n * | |123|27 |33 | 9 |135| | |110|14 |44 |20 |146| | |114|18 |48 |24 |126| | |107|11 |41 |17 |143| |\n * + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ +\n * | .3|99 |51 | 3 |39 |87 |.1 | .1|86 |38 | 2 |50 |98 |.3 | .2|90 |42 | 0 |30 |78 |.0 | .0|83 |35 | 5 |47 |95 |.2 |\n * + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ +\n * | |147|21 |45 |15 |111| | |134| 8 |32 |26 |122| | |138|12 |36 | 6 |102| | |131|29 |53 |23 |119| |\n * + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ +\n * | |69 |117|93 |141|63 | | |56 |104|80 |128|74 | | |60 |108|84 |132|54 | | |77 |125|101|149|71 | |\n * + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ +\n * | .2 | .0 | .1 | .3 |\n * +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+\n */\n case 9:\n vt.shift(-2f*PART_LENGTH, -2f*PART_LENGTH, 0);\n break;\n case 10:\n vt.shift(-2f*PART_LENGTH, 2f*PART_LENGTH, 0);\n break;\n case 11:\n vt.shift(2f*PART_LENGTH, 2f*PART_LENGTH, 0);\n break;\n case 12:\n vt.shift(2f*PART_LENGTH, -2f*PART_LENGTH, 0);\n break;\n // outer ring central edges\n case 13:\n vt.shift(0, -2f*PART_LENGTH, 0);\n break;\n case 14:\n vt.shift(-2f*PART_LENGTH, 0, 0);\n break;\n case 15:\n vt.shift(0, 2f*PART_LENGTH, 0);\n break;\n case 16:\n vt.shift(2f*PART_LENGTH, 0, 0);\n break;\n // outer ring clockwise shifted edges\n case 17:\n vt.shift(-PART_LENGTH, -2f*PART_LENGTH, 0);\n break;\n case 18:\n vt.shift(-2f*PART_LENGTH, PART_LENGTH, 0);\n break;\n case 19:\n vt.shift(PART_LENGTH, 2f*PART_LENGTH, 0);\n break;\n case 20:\n vt.shift(2f*PART_LENGTH, -PART_LENGTH, 0);\n break;\n // outer ring counter-clockwise shifted edges\n case 21:\n vt.shift(PART_LENGTH, -2f*PART_LENGTH, 0);\n break;\n case 22:\n vt.shift(-2f*PART_LENGTH, -PART_LENGTH, 0);\n break;\n case 23:\n vt.shift(-PART_LENGTH, 2f*PART_LENGTH, 0);\n break;\n case 24:\n vt.shift(2f*PART_LENGTH, PART_LENGTH, 0);\n break;\n\n }\n\n switch (i % 6) {\n case 0 : // r\n nt.rotate(0f, 0f, -HALF_PI);\n nt.rotate(0f, -HALF_PI, 0f);\n break;\n case 1 : // u\n nt.rotate(0f, 0f, HALF_PI);\n nt.rotate(-HALF_PI, 0f, 0f);\n break;\n case 2 : // f\n //--no transformation--\n break;\n case 3 : // l\n nt.rotate(0f, 0f, PI);\n nt.rotate(0f, HALF_PI, 0f);\n break;\n case 4 : // d\n nt.rotate(0f, 0f, PI);\n nt.rotate(HALF_PI, 0f, 0f);\n break;\n case 5 : // b\n nt.rotate(0f, 0f, HALF_PI);\n nt.rotate(0f, PI, 0f);\n break;\n }\n // Finally, we concatenate the rotation to the vertex matrix\n vt.transform(nt);\n }\n\n\n // Center part\n identityVertexMatrix[centerOffset] = new idx3d_Matrix();\n identityNormalMatrix[centerOffset] = new idx3d_Matrix();\n\n // copy all vertex locationTransforms into the normal locationTransforms.\n // create the locationTransforms\n for (int i = 0; i < partCount; i++) {\n\n locationTransforms[i] = new idx3d_Group();\n locationTransforms[i].matrix.set(identityVertexMatrix[i]);\n locationTransforms[i].normalmatrix.set(identityNormalMatrix[i]);\n\n explosionTransforms[i] = new idx3d_Group();\n explosionTransforms[i].addChild(parts[i]);\n locationTransforms[i].addChild(explosionTransforms[i]);\n }\n }", "public Vector3 getEuclidVector3() {\r\n // does CMLVector contain array elements?\r\n return new Vector3(this.getXMLContent());\r\n }", "public float[] getVector() {\r\n\t\t\r\n\t\tfloat array[]=new float[12];\r\n\t\tint index=-1;\r\n\t\t\r\n\t\tfor(int i=0;i<4;i++) {\r\n\t\t\tfor(int j=0;j<3;j++) {\r\n\t\t\t\t++index;\r\n\t\t\t\tarray[index]=thecounts[i][j]; \r\n\t\t\t}\r\n\t\t}\r\n\t\treturn array;\r\n\t}", "public double[] rotatedEigenValues(){\n if(!this.rotationDone)throw new IllegalArgumentException(\"No rotation has been performed\");\n return this.rotatedEigenValues;\n }", "public\n\tVector3()\n\t{\n\t\tdata = new double[3];\n\t\tdata[0] = 0;\n\t\tdata[1] = 0;\n\t\tdata[2] = 0;\n\t}", "public static byte[][] rotate(byte[][] toRotate, byte direction){\n byte[][] newMatrix = {{-1, -1, -1},{-1, -1, -1},{-1, -1, -1}};\n //iterating throug each element of the matrix and placing them to the right spot\n //only works for 3x3 matrixes\n for(byte y = 0; y < 3; y ++){\n for(byte x = 0; x < 3; x ++){\n if(direction == 1){\n newMatrix[x][2-y] = toRotate[y][x];\n }\n else{\n newMatrix[2-x][y] = toRotate[y][x];\n }\n \n }\n }\n return newMatrix;\n }", "public double[] VectorSpherical2Cartesian(double B, double L){\n \n double v[] = new double[3];\n v[0] = Math.cos(B) * Math.cos(L);\n v[1] = Math.cos(B) * Math.sin(L);\n v[2] = Math.sin(B);\n\n return(v);\n \n }", "protected static double[] rotateVector(double x, double y, double angle) {\r\n\t\tdouble cosA = Math.cos(angle * (3.14159 / 180.0));\r\n\t\tdouble sinA = Math.sin(angle * (3.14159 / 180.0));\r\n\t\tdouble[] out = new double[2];\r\n\t\tout[0] = x * cosA - y * sinA;\r\n\t\tout[1] = x * sinA + y * cosA;\r\n\t\treturn out;\r\n\t}", "@Override\n\tpublic boolean[][][] getRotations() {\n\t\tboolean[][][] rotations = new boolean[][][] {\n\t\t\t\t{ { false, true, true }, { true, true, false }, { false, false, false } },\n\t\t\t\t{ { false, true, false }, { false, true, true }, { false, false, true } },\n\t\t\t\t{ { false, false, false }, { false, true, true }, { true, true, false } },\n\t\t\t\t{ { true, false, false }, { true, true, false }, { false, true, false } }, };\n\t\treturn rotations;\n\t}", "ArrayList<Point3D> CameraRotate(ArrayList<Point3D>three_list){\r\n\t\tdouble theta=((double)pCanvas.iterations/1000)*2*Math.PI; //updates theta\r\n\t\tif(rotateCamera==1){\r\n\t\t\tthree_list=utils.rotateAllPointsAroundX(three_list, -theta);\r\n\r\n\t\t}\r\n\t\tif(rotateCamera==2){\r\n\t\tthree_list=utils.rotateAllPointsAroundY(three_list, -theta);\r\n\t\t}\r\n\t\tif(rotateCamera==3){\r\n\t\t\tthree_list=utils.rotateAllPointsAroundZ(three_list, -theta);\r\n\r\n\t\t}\r\n\t\treturn three_list;\r\n\t}", "public Matrix transpose() {\n\t\tMatrix a = copy();\n\t\tComplexNumber[][] values = new ComplexNumber[a.N][];\n\t\tfor (int col = 0; col < a.N; col++) {\n\t\t\tvalues[col] = new ComplexNumber[a.M];\n\t\t\tfor (int row = 0; row < a.M; row++) {\n\t\t\t\tvalues[col][row] = a.ROWS[row][col]; \t\n\t\t\t}\n\t\t}\n\t\treturn new Matrix(values);\n\t}", "public Vector3D transform(Vector3D vector) {\n\t\tdouble x = vector.x;\n\t\tdouble y = vector.y;\n\t\tdouble z = vector.z;\n\t\t\n\t\treturn new Vector3D(a11*x + a12*y + a13*z + a14, \n\t\t\t\t\t\t a21*x + a22*y + a23*z + a24,\n\t\t\t\t\t\t a31*x + a32*y + a33*z + a34);\n\t}", "public Matrix getCurrentRotation() throws ManipulatorException;", "protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);", "public Vector3f[] getVertices() {\n return vertices;\n }", "float[] getViewMatrix();", "public Matrix transpose() {\n Matrix A = new Matrix(N, M);\n for (int i = 0; i < M; i++)\n for (int j = 0; j < N; j++)\n A.data[j][i] = this.data[i][j];\n return A;\n }", "public VectorN getR()\n\t{\n\t\tVectorN out = new VectorN(3);\n\t\tout.x[0] = this.rv.x[0];\n\t\tout.x[1] = this.rv.x[1];\n\t\tout.x[2] = this.rv.x[2];\n\t\treturn out;\n\t}", "private static int[][] rotateMartix(int[][] matrix) {\n for(int i=0;i<matrix.length;i++) {\n for(int j=i;j< matrix.length;j++) {\n int tmp=matrix[i][j];\n matrix[i][j]=matrix[j][i];\n matrix[j][i]=tmp;\n }\n }\n //swap columns\n for(int i=0;i<matrix.length;i++){\n int low = 0;\n int high = matrix.length-1;\n\n while(low < high)\n {\n int temp = matrix[i][low];\n matrix[i][low] = matrix[i][high];\n matrix[i][high] = temp;\n\n low++;\n high--;\n }\n }\n return matrix;\n }", "@Override\n public Vector getFacingVector() {\n double[] rotation = {Math.cos(this.rot), Math.sin(this.rot)};\n Vector v = new Vector(rotation);\n v = VectorUtil.direction(v);\n Vector w = VectorUtil.direction(this.getR());\n v.plus(w);\n return v;\n }", "VectorType11 getVector();", "public void rotateCW() {\n for (Vector2D vec : template) {\n CW.matrixVectorProductInPlace(vec);\n }\n }", "@java.lang.Override\n public godot.wire.Wire.Vector3 getVector3Value() {\n if (typeCase_ == 8) {\n return (godot.wire.Wire.Vector3) type_;\n }\n return godot.wire.Wire.Vector3.getDefaultInstance();\n }", "public Vector rotateAboutZAxis(double theta){\n\t\tdouble newX = x*Math.cos(theta) - y*Math.sin(theta);\n\t\tdouble newY = x*Math.sin(theta) + y*Math.cos(theta);\n\t\t\n\t\treturn new Vector(newX, newY, z);\n\t\t\n\t\t\n\t}", "public TransformationMatrix(Tuple3<Double,Double,Double> vector) {\n\t\tthis(1, 0, 0, vector.x, \n\t\t 0, 1, 0, vector.y, \n\t\t 0, 0, 1, vector.z);\n\t}", "public Matrix xMatrixTranspose(){\n if(!this.pcaDone)this.pca();\n double denom = this.nItems;\n if(!super.nFactorOption)denom -= 1.0;\n Matrix mat = dataMinusMeansTranspose.times(1.0/Math.sqrt(denom));\n return mat;\n }", "public Matrix transpose(){\r\n \tMatrix tmat = new Matrix(this.ncol, this.nrow);\r\n \tdouble[][] tarray = tmat.getArrayReference();\r\n \tfor(int i=0; i<this.ncol; i++){\r\n \t\tfor(int j=0; j<this.nrow; j++){\r\n \t\ttarray[i][j]=this.matrix[j][i];\r\n \t\t}\r\n \t}\r\n \treturn tmat;\r\n \t}", "@Test\n public void testGetRotationMatrix() {\n \n AxisRotation rotation = new AxisRotation(0, 0, 1, 54);\n Mat3D rotationMatrix1 = rotation.getRotationMatrix();\n \n AxisRotation rotation2 = new AxisRotation(0, 0, 1, 324);\n Mat3D rotationMatrix2 = rotation2.getRotationMatrix();\n \n System.out.println(\"test\");\n }", "public static Vect3 mkXYZ(double x, double y, double z) {\n\t\treturn new Vect3(x,y,z);\n\t}", "public Matrix transpose() {\n Matrix result = new Matrix(cols, rows);\n for (int i=0; i<rows; i++) {\n for (int j=0; j<cols; j++) {\n result.matrix.get(j)[i] = matrix.get(i)[j];\n }\n }\n return result;\n }", "public Vector3 clone(){\r\n\t\tVector3 vec = new Vector3();\r\n\t\tvec.set(this.x, this.y, this.z);\r\n\t\treturn vec;\r\n\t}", "public Matrix2D getType3FontMatrix() throws PDFNetException {\n/* 939 */ return Matrix2D.__Create(GetType3FontMatrix(this.a));\n/* */ }", "public Quaternion getPhysicsRotation(){\n return getPhysicsRotation(null);\n }", "public Vector4f objectToProjectionMatrix(Vector3f vector) {\r\n\t\treturn Matrix4f.transform(this.PROJECTION_MATRIX, new Vector4f(vector.x, vector.y, vector.z, 1), null);\r\n\t}", "public Transform getTransformation() {\n Transform t = Transform.newTranslation(position);\n t = t.compose(Transform.newScale(scale));\n t = t.compose(Transform.newXRotation(rotation.x));\n t = t.compose(Transform.newYRotation(rotation.y));\n t = t.compose(Transform.newZRotation(rotation.z));\n return t;\n }", "public OpenGLMatrix createMatrix(float x, float y, float z, float u, float v, float w) {\n return OpenGLMatrix.translation(x, y, z).\n multiplied(Orientation.getRotationMatrix(\n AxesReference.EXTRINSIC, AxesOrder.XYZ, AngleUnit.DEGREES, u, v, w));\n }", "public void rotate( float x, float y, float z, float angle )\n\t{\n\t\tMatrix4f opMat = new Matrix4f();\n\t\topMat.set( new AxisAngle4f( x, y, z, angle ) );\n\t\tmat.mul( opMat );\n\t}", "public Vec3D() {\n\t\tx = y = z = 0.0f;\n\t}", "public static void testVecteur(){\n\t\tVecteur u = new Vecteur(1,0);\n\t\tSystem.out.println(u);\n\t\tu = u.rotation(Math.PI/2);\n\t\tSystem.out.println(u);\n\t\tu = u.rotation(Math.PI/2);\n\t\tSystem.out.println(u);\n\t\t\n\t}", "DMatrix3C getOffsetRotation();", "public Matrix transpose() {\n Matrix A = new Matrix(columnCount, rowCount);\n for (int i = 0; i < rowCount; i++)\n for (int j = 0; j < columnCount; j++)\n A.data[j][i] = this.data[i][j];\n return A;\n }", "public static Vector3f rotate(Vector3f v, Vector3f axis, float angle) {\n\t\tfloat ux = axis.x * v.x;\n\t\tfloat uy = axis.x * v.y;\n\t\tfloat uz = axis.x * v.z;\n\t\tfloat vx = axis.y * v.x;\n\t\tfloat vy = axis.y * v.y;\n\t\tfloat vz = axis.y * v.z;\n\t\tfloat wx = axis.z * v.x;\n\t\tfloat wy = axis.z * v.y;\n\t\tfloat wz = axis.z * v.z;\n\t\tfloat sa = (float) Math.sin(angle);\n\t\tfloat ca = (float) Math.cos(angle);\n\t\tfloat x = axis.x\n\t\t\t\t* (ux + vy + wz)\n\t\t\t\t+ (v.x * (axis.y * axis.y + axis.z * axis.z) - axis.x\n\t\t\t\t\t\t* (vy + wz)) * ca + (-wy + vz) * sa;\n\t\tfloat y = axis.y\n\t\t\t\t* (ux + vy + wz)\n\t\t\t\t+ (v.y * (axis.x * axis.x + axis.z * axis.z) - axis.y\n\t\t\t\t\t\t* (ux + wz)) * ca + (wx - uz) * sa;\n\t\tfloat z = axis.z\n\t\t\t\t* (ux + vy + wz)\n\t\t\t\t+ (v.z * (axis.x * axis.x + axis.y * axis.y) - axis.z\n\t\t\t\t\t\t* (ux + vy)) * ca + (-vx + uy) * sa;\n\n\t\treturn new Vector3f(x, y, z);\n\t}", "public Vector3<T> build() {\n return new Vector3<>(x, y, z);\n }", "public CMLVector3() {\r\n }", "protected AbstractMatrix3D() {}" ]
[ "0.6626948", "0.6565358", "0.655707", "0.64658815", "0.63480824", "0.6231625", "0.6013536", "0.59833467", "0.5863645", "0.58484745", "0.58178973", "0.57787794", "0.57568616", "0.5736315", "0.56668895", "0.56621104", "0.5618672", "0.5546268", "0.55132234", "0.55054766", "0.5477225", "0.5471816", "0.5467912", "0.5466772", "0.5459082", "0.5411377", "0.54079485", "0.540744", "0.53851986", "0.5381058", "0.5345925", "0.53417337", "0.5336095", "0.53208154", "0.5316351", "0.53149474", "0.5303196", "0.53011477", "0.52430487", "0.523755", "0.52264684", "0.5223354", "0.52135444", "0.5203153", "0.52019817", "0.5190964", "0.5185984", "0.5175459", "0.51654184", "0.5152518", "0.51433086", "0.51358783", "0.51339704", "0.5129888", "0.51252365", "0.51124024", "0.5112082", "0.50982964", "0.5097839", "0.509462", "0.5091443", "0.5087815", "0.50758815", "0.5071096", "0.5066848", "0.5053494", "0.5048325", "0.50458914", "0.5045111", "0.50445276", "0.50341946", "0.5032624", "0.5020503", "0.5017284", "0.5012827", "0.5011696", "0.5004265", "0.500394", "0.50010675", "0.4999309", "0.4992236", "0.49906868", "0.4988793", "0.49826732", "0.49593255", "0.4956424", "0.49470264", "0.494702", "0.4946273", "0.49278018", "0.49111715", "0.49058408", "0.49012795", "0.48902088", "0.48890477", "0.4887595", "0.48764926", "0.4873511", "0.4861349", "0.485435" ]
0.6738965
0
Check if any part of a box is inside any part of another box. Uses the separating axis test.
public boolean isBoxInBox(BBox BBox) { Vec3 sizeA = extents; Vec3 sizeB = BBox.extents; // System.out.println("sizeA: " + sizeA); // System.out.println("mA: " + m); // System.out.println("sizeB: " + sizeB); // System.out.println("mB: " + BBox.m); Vec3[] rotA, rotB; rotA = getInvRot(); rotB = BBox.getInvRot(); float[][] r = new float[3][3]; // Rotation from B to A float[][] ar = new float[3][3]; // absolute values of R matrix, to use with box extents float extentA, extentB, separation; int i, k; // Calculate B to A rotation matrix for (i = 0; i < 3; i++) { for (k = 0; k < 3; k++) { r[i][k] = rotA[i].dot(rotB[k]); ar[i][k] = abs(r[i][k]); } } // Vector separating the centers of Box B and of Box A Vec3 vSepWS = BBox.getCenterPoint().subtract(getCenterPoint()); // Rotated into Box A's coordinates Vec3 vSepA = new Vec3( vSepWS.dot(rotA[0]), vSepWS.dot(rotA[1]), vSepWS.dot(rotA[2])); // Test if any of A's basis vectors separate the box for (i = 0; i < 3; i++) { extentA = sizeA.get(i); extentB = sizeB.dot(new Vec3(ar[i][0], ar[i][1], ar[i][2])); separation = abs(vSepA.get(i)); if (separation > extentA + extentB) { return false; } } // Test if any of B's basis vectors separate the box for (k = 0; k < 3; k++) { extentA = sizeA.dot(new Vec3(ar[0][k], ar[1][k], ar[2][k])); extentB = sizeB.get(k); separation = abs(vSepA.dot(new Vec3(r[0][k], r[1][k], r[2][k]))); if (separation > extentA + extentB) { return false; } } // Now test Cross Products of each basis vector combination ( A[i], B[k] ) for (i = 0; i < 3; i++) { for (k = 0; k < 3; k++) { int i1 = (i + 1) % 3, i2 = (i + 2) % 3; int k1 = (k + 1) % 3, k2 = (k + 2) % 3; extentA = sizeA.get(i1) * ar[i2][k] + sizeA.get(i2) * ar[i1][k]; extentB = sizeB.get(k1) * ar[i][k2] + sizeB.get(k2) * ar[i][k1]; separation = abs(vSepA.get(i2) * r[i1][k] - vSepA.get(i1) * r[i2][k]); if (separation > extentA + extentB) { return false; } } } // No separating axis found, the boxes overlap return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean checkOutside(float [][] myBox, float[][] otherBox)\n {\n vloop:\n for (int v = 0; v < 4; v++)\n {\n int v1 = (v + 1) & 3; // wrap at 4 back to 0\n float edgeX = myBox[v][0] - myBox[v1][0];\n float edgeY = myBox[v][1] - myBox[v1][1];\n float reX = -edgeY;\n float reY = edgeX;\n \n if (reX == 0.0 && reY == 0.0)\n {\n continue vloop;\n }\n \n for (int e = 0; e < 4; e++)\n {\n float scalar = reX * (otherBox[e][0] - myBox[v1][0])\n + reY * (otherBox[e][1] - myBox[v1][1]);\n if (scalar < 0)\n {\n continue vloop;\n }\n }\n \n // If we got here, we have an edge with all vertexes from the\n // other rect on the outside:\n return true;\n }\n \n return false;\n }", "private static boolean doBoundingBoxesIntersect(Rectangle a, Rectangle b) {\r\n\t return a.getMinX() <= b.getMaxX() \r\n\t && a.getMaxX() >= b.getMinX() \r\n\t && a.getMinY() <= b.getMaxY()\r\n\t && a.getMaxY() >= b.getMinY();\r\n\t}", "public boolean isInside(Rectangle boundary) {\n\t\t\n\t\t// Use TLAP to see if it is or it is not\n\t\tif (x + diameter / 2 >= boundary.getX() - boundary.getWidth() && x + diameter / 2 <= boundary.getX() + boundary.getWidth()\n\t\t\t\t&& y + diameter / 2 >= boundary.getY() - boundary.getHeight() && y + diameter / 2 <= boundary.getY() + boundary.getHeight()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isInsideZone(int x, int y)\r\n\t{\r\n\t\tboolean inside = false;\r\n\t\tfor (Shape sh : _shapes)\r\n\t\t{\r\n\t\t\tif (sh.contains(x, y))\r\n\t\t\t{\r\n\t\t\t\tinside = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (_exShapes != null && inside)\r\n\t\t{\r\n\t\t\tfor (Shape sh : _exShapes)\r\n\t\t\t{\r\n\t\t\t\tif (sh.contains(x, y))\r\n\t\t\t\t{\r\n\t\t\t\t\tinside = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn inside;\r\n\t}", "static boolean contains(RBox b1, RBox b2){\n\t\t\n\t\t\t\n\t\t\tboolean xContainment = false;\n\t\t\tboolean yContainment = false;\n\t\t\t\n\t\t\tif(b1.xmin<=b2.xmin && b1.xmax>=b2.xmax)\n\t\t\t\txContainment = true;\n\t\t\tif(b1.ymin<=b2.ymin && b1.ymax>=b2.ymax)\n\t\t\t\tyContainment = true;\n\t\t\t\n\t\t\tif(xContainment&&yContainment)\n\t\t\t\treturn true;\n\t\t\n\t\t\n\t return false;\n\t\t\t\n\t\t\t\n\t}", "public boolean intersectsWith(AxisAlignedBB axis) {\n\t\treturn axis.maxX > this.minX && axis.minX < this.maxX ? (axis.maxY > this.minY && axis.minY < this.maxY ? axis.maxZ > this.minZ && axis.minZ < this.maxZ : false) : false;\n\t}", "public boolean intersects(BoundingBox other) {\r\n\t\treturn !(other.left > getRight()\r\n\t\t\t || other.getRight() < left\r\n\t\t\t || other.top > getBottom()\r\n\t\t\t || other.getBottom() < top);\r\n\t}", "public static final boolean isInside(int x, int y, Rect box) {\n return (box.x < x && x < box.x + box.w && box.y < y && y < box.y + box.h);\n }", "private boolean isInside(int i, int j) {\n\t\tif (i < 0 || j < 0 || i > side || j > side)\n\t\t\treturn false;\n\t\treturn true;\n\t}", "public boolean doesIntersect(Box box) {\n\n\n\t\tfor (Point point:box.getVerts()) {\n\n\t\t\tif (this.contains(point)) return true;\n\t\t}\n\n\t\tfor (Point point: this.verts) {\n\n\t\t\tif (box.contains(point)) return true;\n\t\t}\n\n\t\treturn false;\n\t}", "public abstract boolean intersect(BoundingBox bbox);", "public boolean insideBorder(int x, int y) {\r\n\t\treturn insideBorder(x, y, 0);\r\n\t}", "public static boolean occlusionTest(IMultipart part, AxisAlignedBB... boxes) {\n\n return occlusionTest(part, new NormallyOccludingPart(Arrays.asList(boxes)));\n }", "@Override\n\tpublic boolean isInside(float x, float y, float z) {\n\t\treturn false;\n\t}", "boolean contains(double x, double y) {\r\n\t\t//cordinate of the left edge\r\n\t\tdouble xLeftEdge = this.getX() - this.width / 2;\r\n\t\t//cordinate of the right edge\r\n\t\tdouble xRightEdge = this.getX() + this.width / 2;\r\n\t\t////cordinate of the top edge\r\n\t\tdouble yTopEdge = this.getY() + this.height / 2;\r\n\t\t//cordinate of the bottom edge\r\n\t\tdouble yBottomEdge = this.getY() - this.height / 2;\r\n\r\n\t\t//if the point is between the edges it is inside the rectangle\r\n\t\treturn (x < xRightEdge) && (x > xLeftEdge) && (y < yTopEdge)\r\n\t\t\t\t&& (y > yBottomEdge) ? true : false;\r\n\t}", "public boolean xIntersects(BoundingBox other) {\r\n\t\treturn (Math.abs(other.getTop() - top) < SMALL_NUMBER &&\r\n\t\t\t\tMath.abs(other.getX() - x) < other.getWidth()/2);\r\n\t}", "static boolean isInside(int x, int y, int N) {\n if (x >= 1 && x <= N && y >= 1 && y <= N) {\n return true;\n }\n return false;\n }", "boolean hasIsBoundaryNodeOf();", "public boolean hasCollided(float _x, float _y, float _width, float _height) \r\n {\n\t \t \tfloat leftA = _x;\r\n\t \t \tfloat rightA = _x + _width;\r\n\t \t \tfloat topA = _y;\r\n\t \t \tfloat bottomA = _y + _height;\r\n\t \t \r\n\t \t //Calculate the sides of leaf\r\n\t \t \tfloat leftB = x;\r\n\t \t \tfloat rightB = x + width;\r\n\t \t \tfloat topB = y;\r\n\t \t \tfloat bottomB = y + height;\r\n\t \t \r\n\t\r\n\t \t //If any of the sides from A are outside of B\r\n\t \t if( bottomA <= topB || topA >= bottomB || rightA <= leftB || leftA >= rightB)\r\n\t \t {\r\n\t \t return false;\r\n\t \t }\r\n\t \t else\r\n\t \t {\r\n\t \t \t//If none of the sides from A are outside B\r\n\t \t \treturn true;\r\n\t \t }\r\n\t\r\n\t \t \r\n\t \r\n \t \t\r\n }", "public static boolean occlusionTest(Iterable<? extends IMultipart> parts, AxisAlignedBB... boxes) {\n\n return occlusionTest(parts, null, boxes);\n }", "public boolean isInsideZone(int x, int y, int z)\r\n\t{\r\n\t\tboolean inside = false;\r\n\t\tfor (Shape sh : _shapes)\r\n\t\t{\r\n\t\t\tif (sh.contains(x, y, z))\r\n\t\t\t{\r\n\t\t\t\tinside = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (_exShapes != null && inside)\r\n\t\t{\r\n\t\t\tfor (Shape sh : _exShapes)\r\n\t\t\t{\r\n\t\t\t\tif (sh.contains(x, y, z))\r\n\t\t\t\t{\r\n\t\t\t\t\tinside = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn inside;\r\n\t}", "static boolean doTheseOverlap(RBox b1, RBox b2){\n\t\t\n\t\tif(contains(b1,b2))\n\t\t\treturn true;\n\t\t\n\t\tif(contains(b2,b1))\n\t\t\treturn true;\n\t\t\n\t\tboolean xOverlap=false ;\n\t\tboolean yOverlap=false ;\n\t\t\n\t\tif(b1.xmax==b2.xmin && b2.xmax > b1.xmax)\n\t\t\treturn false;\n\t\t\n\t\tif(b2.xmax==b1.xmin && b1.xmax > b2.xmax)\n\t\t\treturn false;\n\t\t\n\t\tif((b1.xmin<=b2.xmin&&b1.xmax>=b2.xmax)||(b2.xmin<=b1.xmin&&b2.xmax>=b1.xmax))\n\t\t\txOverlap=true;\n\t\t\n\t\tif(!xOverlap)\n\t\tif(b1.xmin >= b2.xmin && b1.xmin <= b2.xmax)\n\t\t\txOverlap=true;\n\t\t\n\t\tif(!xOverlap)\n\t\t if(b1.xmax >= b2.xmin && b1.xmax <= b2.xmax)\n\t\t \txOverlap = true;\n\t\t else{//System.out.println(\"X overlap\");\n\t\t \treturn false;}\n\t\t\n\t\t\n\t\tif((b1.ymin<=b2.ymin&&b1.ymax>=b2.ymax)||(b2.ymin<=b1.ymin&&b2.ymax>=b1.ymax))\n\t\t yOverlap=true;\n\t\t\n\t\tif(!yOverlap)\n\t\tif(b1.ymin>=b2.ymin && b1.ymin<=b2.ymax)\n\t\t\tyOverlap=true;\n\t\t\n\t\tif(!yOverlap)\n\t\t\tif(b1.ymax>=b2.ymin && b1.ymax<=b2.ymax)\n\t\t\t\tyOverlap=true;\n\t\t\telse{\n\t\t\t\t//System.out.println(\"Y overlap\");\n\t\t\t\treturn false;}\n\t\t\n\t\tif(xOverlap&&yOverlap)\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}", "boolean isInsideScreen() {\n if (_hitbox.length == 1) {\n float r = _hitbox[0].x;\n PVector c = _getCenter();\n return 0 <= c.x + r && c.x - r < width && 0 <= c.y + r && c.y - r < height;\n }\n \n PVector[] points = this._getPoints();\n for(PVector p : points) {\n if(0 <= p.x && p.x < width && 0 <= p.y && p.y < height) {\n return true;\n }\n }\n return false;\n }", "public boolean isInside(int x, int y) {\r\n if (this.state == 0) {\r\n if ((x >= this.x && x <= (this.x +width)) &&\r\n y >= this.y && y <= (this.y +height)) {\r\n return true;\r\n }\r\n } else if (this.state == 1) {\r\n if ((x <= this.x && x >= (this.x - height)) &&\r\n y >= this.y && y <= (this.y + width)) {\r\n return true;\r\n }\r\n } else if (this.state == 2) {\r\n if ((x <= this.x && x >= (this.x - width)) &&\r\n y <= this.y && y >= (this.y - height)) {\r\n return true;\r\n }\r\n } else if (this.state == 3) {\r\n if ((x >= this.x && x <= (this.x + height)) &&\r\n y <= this.y && y >= (this.y - width)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "boolean hasIsPartOf();", "protected boolean isInside(int x, int y){\n if(x <= super.getLocationX())\n return false;\n\n if(x >= (super.getLocationX() + super.getWidth() - 1))\n return false;\n\n if(y <= super.getLocationY())\n return false;\n\n if(y >= (super.getLocationY() + super.getHeight() - 1))\n return false;\n\n //return true if inside\n return true;\n\n }", "private static boolean IsBlockUIContainerBoundaryCrossed(TextPointer position1, TextPointer position2)\r\n {\r\n return\r\n (position1.Parent is BlockUIContainer || position2.Parent is BlockUIContainer) && \r\n position1.Parent != position2.Parent;\r\n }", "protected boolean checkPoiInside( CFWPoint poiBegI, CFWPoint poiEndI)\t{\r\n\t\t//[begin point in area 1] unintersect: 1,2,3,7,8\r\n\t\t//[begin point in area 2] unintersect: 1,2,3\r\n\t\t//[begin point in area 3] unintersect: 1,2,3,4,5\r\n\t\t//[begin point in area 4] unintersect: 3,4,5\r\n\t\t//[begin point in area 5] unintersect: 3,4,5,6,7\r\n\t\t//[begin point in area 6] unintersect: 5,6,7\r\n\t\t//[begin point in area 7] unintersect: 5,6,7,8,1\r\n\t\t//[begin point in area 8] unintersect: 7,8,1\r\n\t\t//[begin point in area 9] unintersect: 9\r\n\t\tif(isInsideArea( 1, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 2, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 8, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 2, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 2, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 3, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 2, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 4, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 4, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 4, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 5, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 4, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 6, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 6, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 6, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 7, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 6, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 8, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 8, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 8, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private boolean checkSubBoundary(Index3D idx, Index3D center) {\n if (idx.i1() - center.i1() <= subVolumeSizeRadius &&\n idx.i2() - center.i2() <= subVolumeSizeRadius &&\n idx.i3() - center.i3() <= subVolumeSizeRadius &&\n center.i1() - idx.i1() <= subVolumeSizeRadius &&\n center.i2() - idx.i2() <= subVolumeSizeRadius &&\n center.i3() - idx.i3() <= subVolumeSizeRadius\n ) {\n return true;\n } else {\n return false;\n }\n }", "final public boolean isColliding(BoundingBox otherBox)\n\t{\n\t\tif (isColliding(new Vector2(otherBox.getCenter().getX() - (width / 2.0), otherBox.getCenter().getY() + (height / 2.0))))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\tif (isColliding(new Vector2(otherBox.getCenter().getX() + (width / 2.0), otherBox.getCenter().getY() - (height / 2.0))))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\tif (isColliding(new Vector2(otherBox.getCenter().getX() + (width / 2.0), otherBox.getCenter().getY() + (height / 2.0))))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\tif (isColliding(new Vector2(otherBox.getCenter().getX() - (width / 2.0), otherBox.getCenter().getY() - (height / 2.0))))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean detect_intersection_with_box(Box box)\n {\n if(_boundingbox == null)\n {\n this.generateBoundingBox();\n }\n\n // No intersection if the bounding box doesn't intersect the input box.\n if(!box.intersects_box(this._boundingbox))\n {\n return false;\n }\n\n // Filled polyline and contains entire box.\n if(this.isFilled() && this.containsPoint(box.min))\n {\n return true;\n }\n\n // Filled box that contains entire polyline.\n if(box.isFilled() && box.containsPoint(this._points.get(0)))\n {\n return true;\n }\n\n // No perform a polyline <---> polyline intersection test.\n Polyline polyline = box.toPolyline();\n\n return detect_intersection_with_polyline(polyline);\n }", "public boolean intersects(Shape other) {\n boolean result = false;\n ArrayList<Vector3D> points = getPoints();\n for (Vector3D point : points) {\n if (other.contains(point)) {\n if (other.contains(point)) {\n if (other.contains(point)) {\n System.out.println(this.part.name + \" contains \" + other.part.name + \" : \" + point);\n\n result = true;\n }\n }\n }\n }\n\n points = other.getPoints();\n for (Vector3D point : points) {\n if (this.contains(point)) {\n if (this.contains(point)) {\n if (this.contains(point)) {\n System.out.println(this.part.name + \" contains \" + other.part.name + \" : \" + point);\n\n result = true;\n }\n }\n }\n }\n\n return result;\n }", "private boolean isNothingBehind(Direction direction, Box box){\n //TODO wall detection not only boxes\n for(Box temp : boxes){\n switch (direction){\n case DOWN:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()+DISTANCE == temp.getDestinationY())\n return false;\n break;\n case UP:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()-DISTANCE == temp.getDestinationY())\n return false;\n break;\n case LEFT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()-DISTANCE == temp.getDestinationX())\n return false;\n break;\n case RIGHT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()+DISTANCE == temp.getDestinationX())\n return false;\n break;\n }\n }\n for(Wall temp : walls){\n switch (direction){\n case DOWN:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()+DISTANCE == temp.getDestinationY())\n return false;\n break;\n case UP:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()-DISTANCE == temp.getDestinationY())\n return false;\n break;\n case LEFT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()-DISTANCE == temp.getDestinationX())\n return false;\n break;\n case RIGHT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()+DISTANCE == temp.getDestinationX())\n return false;\n break;\n }\n }\n return true;\n }", "Boolean CheckIfInside(float xVal, float yVal) {\r\n double distance = Math.sqrt((this.x-xVal)*(this.x-xVal) + (this.y-yVal)*(this.y-yVal));\r\n return (distance <= this.radius);\r\n }", "public boolean mouseWithinBox() {\n return (mouseX > x && mouseX < x + w && mouseY > y && mouseY < y + h);\r\n }", "private boolean isInBounds(float x, float y) {\n\n if (x <= 0 || x >= this.getWidth() || y <= 0 || y >= this.getHeight()) {\n\n return false;\n }\n return new RectF(0, 0, this.getWidth(), this.getHeight())\n .contains(x, y);\n }", "public static boolean occlusionTest(Iterable<? extends IMultipart> parts, Predicate<IMultipart> ignored, AxisAlignedBB... boxes) {\n\n for (IMultipart part : parts)\n if (!ignored.apply(part) && !occlusionTest(part, boxes)) return false;\n\n return true;\n }", "boolean is_inside(float v[])\r\n {\r\n int i;\r\n \r\n for (i = 0; i < dimension; i++)\r\n {\r\n if (v[i] < bounces[2*i] || // upper limit\r\n v[i] > bounces[2*i + 1]) // lower limit\r\n return false;\r\n }\r\n return true;\r\n }", "private boolean subGridCheck() {\n\t\tint sqRt = (int)Math.sqrt(dimension);\n\t\tfor(int i = 0; i < sqRt; i++) {\n\t\t\tint increment = i * sqRt;\n\t\t\tfor(int val = 1; val <= dimension; val++) {\n\t\t\t\tint valCounter = 0;\n\t\t\t\tfor(int row = 0 + increment; row < sqRt + increment; row++) {\n\t\t\t\t\tfor(int col = 0 + increment; col < sqRt + increment; col++) {\n\t\t\t\t\t\tif(puzzle[row][col] == val)\n\t\t\t\t\t\t\tvalCounter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(valCounter >= 2)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean intersects(int x, int y, int size){\n count++;\n return(!(\n x > this.x + this.width ||\n x + size < this.x ||\n y > this.y + this.height ||\n y + size < this.y\n ));\n }", "private boolean isInBounds(int x, int y) {\r\n\t\treturn x >= 0 && y >= 0 && x < getWidth() && y < getHeight();\r\n\t}", "boolean isIncludeBounds();", "public boolean contains(double x, double y){\t\t\n\t\t\n\t\treturn x > xCoord - getWidth()/2 &&\n\t\t\t x < xCoord + getWidth()/2 &&\n\t\t\t y > yCoord - getHeight()/2 &&\n\t\t\t y < yCoord + getHeight()/2;\n\t}", "@Test\n void contains() {\n Cuboid cuboid1 = new Cuboid(4, 4, 4);\n Point3D point1 = new Point3D(0,0,0);\n assertEquals(true, cuboid1.contains(point1));\n\n Point3D point2 = new Point3D(0,0,2);\n assertEquals(true, cuboid1.contains(point2));\n\n Point3D point3 = new Point3D(0,0,-2);\n assertEquals(true, cuboid1.contains(point3));\n\n Point3D point4 = new Point3D(0,2,0);\n assertEquals(true, cuboid1.contains(point4));\n\n Point3D point5 = new Point3D(0,-2,0);\n assertEquals(true, cuboid1.contains(point5));\n\n Point3D point6 = new Point3D(2,0,0);\n assertEquals(true, cuboid1.contains(point6));\n\n Point3D point7 = new Point3D(-2,0,0);\n assertEquals(true, cuboid1.contains(point7));\n\n Point3D point8 = new Point3D(-2,-2,-2);\n assertEquals(true, cuboid1.contains(point8));\n\n Point3D point9 = new Point3D(-2,-2,-3);\n assertEquals(false, cuboid1.contains(point9));\n\n\n //Arbitary orientation\n Cuboid cuboid2 = new Cuboid(4, 5, 7, new Ray(new Point3D(-2,-2,-2), new Vector3D(1,1,1)));\n Point3D point21 = new Point3D(-1,-1,-1);\n assertEquals(true, cuboid2.contains(point21));\n\n Cuboid cuboid3 = new Cuboid(4, 5, 6, new Ray(new Point3D(-2,-2,-2), new Vector3D(1,1,1)));\n Point3D point31 = new Point3D(0,0,0);\n assertEquals(false, cuboid3.contains(point31));\n\n Cuboid cuboid4 = new Cuboid(4, 5, 6, new Ray(new Point3D(0,0,0), new Vector3D(1,1,1)));\n Point3D point41 = new Point3D(2.5,2.5,2.5);\n assertEquals(false, cuboid4.contains(point41));\n\n Cuboid cuboid5 = new Cuboid(4, 5, 6, new Ray(new Point3D(-2,-2,-2), new Vector3D(0,0,1)));\n Point3D point51 = new Point3D(-2,-2,3.5);\n assertEquals(false, cuboid5.contains(point51));\n }", "@Override\n public boolean contain(int x, int y) {\n return(x>=this.x && y>=this.y && x<=this.x+(int)a && y<=this.y+(int)b);\n }", "private boolean overlappingEvents(BpmnShape s1, BpmnShape s2) {\n\t\t\n\t\tdouble firstHeight = s1.getBounds().getHeight() / 2;\n\t\tdouble firstWidth = s1.getBounds().getWidth() / 2;\n\t\tdouble firstX = s1.getBounds().getX();\n\t\tdouble firstY = s1.getBounds().getY() + firstHeight;\n\t\t\n\t\tdouble secondWidth = s2.getBounds().getWidth() / 2;\n\t\tdouble secondHeight = s2.getBounds().getHeight() / 2;\n\t\tdouble secondX = s2.getBounds().getX();\n\t\tdouble secondY = s2.getBounds().getY() + secondHeight;\n\t\t\n\t\tif (firstX > secondX && firstY > secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth && firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY < secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY > secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth && firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY < secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth && firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY == secondY)\n\t\t\t\treturn true;\n\t\t\n\t\tif (firstX == secondX && firstY > secondY){\n\t\t\tif (firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY == secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY < secondY){\n\t\t\tif (firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY == secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "boolean check(OrientedBoundingBox bounds, AV3DEntityWrapper wrapper, \n\t\tboolean useEpsilon) {\n\t\t\n\t\tboolean hasIntersection = false;\n\t\tif ((bounds != null) && (wrapper != null)) {\n\t\t\tNode[] nodes = wrapper.contentGroup.getAllChildren();\n\t\t\ttu.getLocalToVworld(wrapper.contentGroup, mtx);\n\t\t\t\n\t\t\thasIntersection = checkShapes(bounds, nodes, mtx, useEpsilon);\n\t\t}\n\t\treturn(hasIntersection);\n\t}", "public boolean withinBorders(int x, int y) {\n\t\treturn\n\t\t\tx >= x1 && x < x2\n\t\t\t&& y >= y1 && y < y2;\n\t}", "private boolean doesLabelCollide(LabelContainer containerToTest,\n\t\t\tArrayList<LabelContainer> alContainers, float fSegmentXCenter,\n\t\t\tfloat fSegmentYCenter, float fXCenter, float fBendPointX) {\n\n\t\tfor (LabelContainer currentContainer : alContainers) {\n\t\t\tif (currentContainer.doContainersCollide(containerToTest)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tif ((fBendPointX >= 0) && (fXCenter + fBendPointX > containerToTest.getLeft()))\n\t\t\treturn true;\n\t\tif ((fBendPointX < 0) && (fXCenter + fBendPointX < containerToTest.getRight()))\n\t\t\treturn true;\n\t\t// It is assumed that the LabelContainer for the MouseOver Element is\n\t\t// created first, since it is\n\t\t// rendered first. So the the following marker collision detection\n\t\t// should work for now.\n\t\tif (lcMouseOver != null) {\n\t\t\tif (lcMouseOver.getTop() < fSegmentYCenter - MARKER_RADIUS)\n\t\t\t\treturn false;\n\t\t\tif (lcMouseOver.getBottom() > fSegmentYCenter + MARKER_RADIUS)\n\t\t\t\treturn false;\n\t\t\tif (lcMouseOver.getLeft() > fSegmentXCenter + MARKER_RADIUS)\n\t\t\t\treturn false;\n\t\t\tif (lcMouseOver.getRight() < fSegmentXCenter - MARKER_RADIUS)\n\t\t\t\treturn false;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isWithinObject(int x, int y)\n {\n if( x > coX-Xsize/2 &&\n x < coX+Xsize/2 &&\n y > coY-Ysize/2 &&\n y < coY+Ysize/2 )\n return true;\n else\n return false;\n }", "boolean inBoundingBox(Coord pos) {\n\t\treturn min(from.x, to.x) <= pos.x && pos.x <= max(from.x, to.x)\n\t\t\t\t&& min(from.y, to.y) <= pos.y && pos.y <= max(from.y, to.y);\n\t}", "@Override\n\tpublic boolean isInside() {\n\t\treturn false;\n\t}", "@Test\n public void testContainsBorder() {\n for (final Border border : Border.values()) {\n for (final Border test : Border.values()) {\n final String[] parts = test.toString().split(\"_\");\n for (final String part : parts) {\n final Border contains = Border.valueOf(part);\n if (border.toString().contains(part) || (border == Border.ALL && contains != Border.NONE)) {\n Assert.assertTrue(border + \" should contain \" + contains, border.containsBorder(contains));\n } else {\n Assert.assertFalse(border + \" shouldn't contain \" + contains, border.containsBorder(contains));\n }\n }\n }\n }\n }", "public boolean contains(int x, int y)\n\t{\n\t\treturn (boundingBox.contains(x,y));\n\t}", "private boolean withinGridDimensions(int startX, int startY, int endX, int endY) {\n boolean within = true;\n int largerX = Math.max(startX, endX);\n int smallerX = Math.min(startX, endX);\n int largerY = Math.max(startY, endY);\n int smallerY = Math.min(startY, endY);\n \n if (smallerX < 1 || smallerY < 1 || largerX > GRID_DIMENSIONS || largerY > GRID_DIMENSIONS) {\n within = false;\n }\n \n return within;\n }", "@Test\n void findIntersections() {\n Cuboid cuboid1 = new Cuboid(4,4,4);\n Ray ray1 = new Ray(new Point3D(-3,0,0), new Vector3D(1,0,0));\n ArrayList<GeoPoint> actual1 = cuboid1.findIntersections(ray1);\n ArrayList<GeoPoint> expected1 = new ArrayList<>();\n expected1.add(new GeoPoint(cuboid1, new Point3D(2,0,0)));\n expected1.add(new GeoPoint(cuboid1, new Point3D(-2,0,0)));\n\n assertTrue(Util.intersectionsEqual(expected1, actual1));\n\n //Aligned with Y axis but have different dimensions\n Cuboid cuboid2 = new Cuboid(2,4,3);\n Ray ray2 = new Ray(new Point3D(0,100,0), new Vector3D(0,-1,0));\n ArrayList<GeoPoint> actual2 = cuboid2.findIntersections(ray2);\n ArrayList<GeoPoint> expected2 = new ArrayList<>();\n expected2.add(new GeoPoint(cuboid1, new Point3D(0,2,0)));\n assertEquals(expected2.get(0).point, actual2.get(0).point);\n\n Cuboid cuboid3 = new Cuboid(2,4,3, new Ray(new Point3D(1,1,1), new Vector3D(0,0,1)));\n Ray ray3 = new Ray(new Point3D(0,100,0), new Vector3D(0,-1,0));\n ArrayList<GeoPoint> actual3 = cuboid3.findIntersections(ray3);\n ArrayList<GeoPoint> expected3 = new ArrayList<>();\n expected3.add(new GeoPoint(cuboid1, new Point3D(0,3,0)));\n assertEquals(expected3.get(0).point, actual3.get(0).point);\n\n Ray ray = new Ray(new Point3D(0,0,-200), Vector3D.zAxis);\n ArrayList<GeoPoint> interesections = cuboid1.findIntersections(ray);\n }", "public boolean whithinRectangle(Point point1, Point point2) {\n\t\treturn false;\n\t}", "@Override\n public boolean containsPoint(Point x) {\n return x.getX() >= center.getX() - sideLength/2 && x.getX() <= center.getX() + sideLength/2\n && x.getY() >= center.getY() -sideLength/2 && x.getY() <= center.getY() +sideLength/2;\n }", "public void test_containsII() {\n\tfinal int COUNT = 60000000;\n\t\n\tRectangle r = new Rectangle(1, 2, 3, 4);\n\n\tPerformanceMeter meter = createMeter(\"contains\");\n\tmeter.start();\n\tfor (int i = 0; i < COUNT; i++) {\n\t\tr.contains(2, 3);\t// does contain\n\t}\n\tmeter.stop();\n\t\n\tdisposeMeter(meter);\n\t\n\tmeter = createMeter(\"disjoint\");\n\tmeter.start();\n\tfor (int i = 0; i < COUNT; i++) {\n\t\tr.contains(9, 12);\t// does not contain\n\t}\n\tmeter.stop();\n\t\n\tdisposeMeter(meter);\n}", "private boolean contains(Ball ball) {\n checkRep();\n boolean contains =\n ball.getPosition().x() > this.boundingBoxPosition.x()\n && ball.getPosition().x() < this.boundingBoxPosition.x() + this.width\n && ball.getPosition().y() > this.boundingBoxPosition.y() \n && ball.getPosition().y() < this.boundingBoxPosition.y() + this.height;\n return contains;\n }", "private boolean tryBorder(int x, int y){\n\n\t\treturn y == this.dimension - 1 || x == this.dimension - 1;\n\t}", "public boolean isPointInside(int x, int y) {\r\n if (Integer.compare(x, _xLeft) <= 0) {\r\n return false;\r\n }\r\n \r\n if (Integer.compare(x, _xRight) >= 0) {\r\n return false;\r\n }\r\n \r\n if (Integer.compare(y, _yTop) <= 0) {\r\n return false;\r\n }\r\n \r\n if (Integer.compare(y, _yBottom) >= 0) {\r\n return false;\r\n }\r\n \r\n return true;\r\n }", "public boolean situatedInside(double x, double y) {\n if(y>this.bottomleft.x && y<this.topright.x && x <this.topright.y && x > this.bottomleft.y)\n return true;\n else\n return false;\n }", "private boolean hitSides() {\n if (b.numY + 60 >= BOX_HEIGHT || (b.numY - 60 <= 0)) {\n return true;\n } else {\n return false;\n }\n }", "public boolean isInEdge(int width, int height, Position position);", "public boolean isInSpriteBoundingBox(double x, double y) {\n\t\tfor (Sprite s:objects) {\n\t\t\tif (s.getBoundingBox().intersects(new Point(x, y)))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isInBoundaries() {\n\t return Referee.playfield.isInBoundaries(this);\n }", "boolean insideSprite(Sprite s){\n if (s._hitbox.length == 1) {\n if (_hitbox.length == 1) {\n return PVector.dist(s._getCenter(),this._getCenter()) <\n s._hitbox[0].x - this._hitbox[0].x;\n }\n return _insideCirc(_getPoints(), s._getCenter(), s._hitbox[0].x);\n }\n if (s._hitbox.length == 1) {\n // TODO: check if center is in middle but NOT touching any side\n // (will want to adapt existing _circPoly to separate side-touching\n // code into individual method)\n return false;\n }\n return _insidePts(this._getPoints(), s._getPoints());\n }", "public static boolean wouldCollide(CustomAABB us, CustomBlockBox block){\n boolean xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n boolean yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n boolean zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n return (xWithin && yWithin && zWithin);\n }", "@Test\n public void testOverboundsInside() {\n Coordinate a, b, c, d;\n a = new Coordinate2D(2, 2, 0);\n b = new Coordinate2D(3, 3, 0);\n c = new Coordinate2D(2, 0, 0);\n d = new Coordinate2D(4, 2, 0);\n\n int actual, expected;\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(a);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(b);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(c);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(d);\n assertEquals(expected, actual);\n }", "private boolean isColliding(Node node1, Node node2){\n\t\tfinal int offset = 2;\n\t\tBounds bounds1 = node1.getBoundsInParent();\n\t\tBounds bounds2 = node2.getBoundsInParent();\n\t\tbounds1 = new BoundingBox(bounds1.getMinX() + offset, bounds1.getMinY() + offset,\n\t\t\t\tbounds1.getWidth() - offset * 2, bounds1.getHeight() - offset * 2);\n\t\tbounds2 = new BoundingBox(bounds2.getMinX() + offset, bounds2.getMinY() + offset,\n\t\t\t\tbounds2.getWidth() - offset * 2, bounds2.getHeight() - offset * 2);\n\t\treturn bounds1.intersects(bounds2);\n\t}", "public boolean contained(int x, int y) {\n\t\treturn false;\n\t}", "private boolean allAdjacentUsed(Box box) {\n if (box == null)\n throw new IllegalArgumentException(\"Error. null pointer in allAdjacentUsed(box).\");\n return isNextBoxUsed(box, 0) && isNextBoxUsed(box, 1) && isNextBoxUsed(box, 2) && isNextBoxUsed(box, 3);\n }", "private boolean overlappingEventAndGateway(BpmnShape s1, BpmnShape s2) {\n\t\tdouble firstHeight = s1.getBounds().getHeight() / 2;\n\t\tdouble firstWidth = s1.getBounds().getWidth() / 2;\n\t\tdouble firstX = s1.getBounds().getX();\n\t\tdouble firstY = s1.getBounds().getY() + firstHeight;\n\t\t\n\n\t\tdouble secondWidth = s2.getBounds().getWidth() / 2;\n\t\tdouble secondHeight = s2.getBounds().getHeight() / 2;\n\t\tdouble secondX = s2.getBounds().getX();\n\t\tdouble secondY = s2.getBounds().getY() + secondHeight;\n\t\tdouble apothem = (s2.getBounds().getHeight() * Math.sqrt(2)) / 2;\n\t\t\n\t\tif (firstX > secondX && firstY > secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX - firstWidth < secondX + apothem || firstY - firstHeight < secondY + apothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstWidth < secondX + apothem || firstY + firstHeight > secondY - apothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY > secondY){\n\t\t\tif ((firstX + firstWidth > secondX - secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX + firstWidth > secondX - apothem || firstY - firstHeight < secondY + apothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstWidth < secondX + apothem || firstY + firstHeight > secondY - apothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY == secondY)\n\t\t\t\treturn true;\n\t\t\n\t\tif (firstX == secondX && firstY > secondY){\n\t\t\tif (firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY == secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY < secondY){\n\t\t\tif (firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY == secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "boolean hasGrid();", "public static boolean isInside(int nX, int nY,\n\t int nT, int nR, int nB, int nL, int nTol)\n\t{\n\t\tif (nR < nL) // swap the left and right bounds as needed\n\t\t{\n\t\t\tnR ^= nL;\n\t\t\tnL ^= nR;\n\t\t\tnR ^= nL;\n\t\t}\n\n\t\tif (nT < nB) // swap the top and bottom bounds as needed\n\t\t{\n\t\t\tnT ^= nB;\n\t\t\tnB ^= nT;\n\t\t\tnT ^= nB;\n\t\t}\n\n\t\t// expand the bounds by the tolerance\n\t\treturn (nX >= nL - nTol && nX <= nR + nTol\n\t\t && nY >= nB - nTol && nY <= nT + nTol);\n\t}", "boolean hasRect();", "public boolean intersects(GraphicalFigure fig) {\n\n\t\t// Get the distance between the 2 figures on the x axis\n\t\tint xDist = pos.xCoord() - fig.getOffset().xCoord();\n\n\t\t// Get the distance on the y axis\n\t\tint yDist = pos.yCoord() - fig.getOffset().xCoord();\n\n\t\t// All if's allow for if the x's are the same\n\t\t// Check to see if the figure is on the right and overlaps\n\t\tif (xDist >= 0 && xDist < fig.getWidth()) {\n\n\t\t\t// For loop variables\n\t\t\tint initial = 0;\n\t\t\tint compare = 0;\n\t\t\tBoolean loopCheck = false;\n\n\t\t\t// All if's allow for if the y's are the same\n\t\t\t// Check if it's above the object and within range\n\t\t\tif (yDist >= 0 && xDist < fig.getHeight()) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = pos.yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = pos.yCoord() + fig.getHeight() - yDist;\n\t\t\t}\n\n\t\t\t// Check if it's below the object and within range\n\t\t\telse if (yDist <= 0 && xDist < height) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = fig.getOffset().yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = fig.getOffset().yCoord() + fig.getHeight() + yDist;\n\t\t\t}\n\n\t\t\t// If the loop check is true, do a for loop\n\t\t\tif (loopCheck) {\n\n\t\t\t\t// Create a location variable\n\t\t\t\tLocation loc;\n\t\t\t\t// Loop through the intersecting rectangle\n\t\t\t\t// Loop Horizontally\n\t\t\t\tfor (int i = pos.xCoord(); i < pos.xCoord() + fig.getWidth() - xDist; i++) {\n\t\t\t\t\t// Loop through vertically\n\t\t\t\t\tfor (int j = initial; j < compare; j++) {\n\t\t\t\t\t\t// Create a location for the new pixel\n\t\t\t\t\t\tloc = new Location(i, j);\n\n\t\t\t\t\t\t// Check for overlap, return true\n\t\t\t\t\t\tif (findPixel(loc) && fig.findPixel(loc)) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// All if's allow for if the x's are the same\n\t\t// Check if the figure is on the left and overlaps\n\t\telse if (xDist >= 0 && xDist < width) {\n\t\t\t// For loop variables\n\t\t\tint initial = 0;\n\t\t\tint compare = 0;\n\t\t\tBoolean loopCheck = false;\n\n\t\t\t// All if's allow for if the y's are the same\n\t\t\t// Check if it's above the object and within range\n\t\t\tif (yDist >= 0 && xDist < fig.getHeight()) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = pos.yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = pos.yCoord() + fig.getHeight() - yDist;\n\t\t\t}\n\n\t\t\t// Check if it's below the object and within range\n\t\t\telse if (yDist <= 0 && xDist < height) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = fig.getOffset().yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = fig.getOffset().yCoord() + fig.getHeight() + yDist;\n\t\t\t}\n\n\t\t\t// If the loop check is true, do a for loop\n\t\t\tif (loopCheck) {\n\n\t\t\t\t// Create a location variable\n\t\t\t\tLocation loc;\n\t\t\t\t// Loop through the intersecting rectangle\n\t\t\t\t// Loop Horizontally\n\t\t\t\tfor (int i = fig.getOffset().xCoord(); i < fig.getOffset().xCoord() + width + xDist; i++) {\n\t\t\t\t\t// Loop through vertically\n\t\t\t\t\tfor (int j = initial; j < compare; j++) {\n\t\t\t\t\t\t// Create a location for the new pixel\n\t\t\t\t\t\tloc = new Location(i, j);\n\n\t\t\t\t\t\t// Check for overlap, return true\n\t\t\t\t\t\tif (findPixel(loc) && fig.findPixel(loc)) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// If no intersection found, return false\n\t\treturn false;\n\t}", "public boolean isLineInBox(final Vec3 l1, final Vec3 l2)\n {\n // Put line in box space\n Mat4 mInv = m.getInverseSimple();\n Vec4 lb1 = mInv.multiply(l1.toPoint());\n Vec4 lb2 = mInv.multiply(l2.toPoint());\n\n // Get line midpoint and extent\n Vec4 lMid = (lb1.add(lb2)).multiply(0.5f);\n Vec4 l = lb1.subtract(lMid);\n Vec3 lExt = new Vec3(abs(l.getX()), abs(l.getY()), abs(l.getZ()));\n\n // Use Separating Axis Test\n // Separation vector from box center to line center is LMid, since the line is in box space\n for (int i = 0; i < 3; i++)\n {\n if (abs(lMid.get(i)) > extents.get(i) + lExt.get(i))\n {\n return false;\n }\n }\n\n // Crossproducts of line and each axis\n if ((abs(lMid.getY() * l.getZ()) - lMid.getZ() * l.getY()) > (extents.getY() * lExt.getZ() + extents.getZ() * lExt.getY()))\n {\n return false;\n }\n if (abs(lMid.getX() * l.getZ() - lMid.getZ() * l.getX()) > (extents.getX() * lExt.getZ() + extents.getZ() * lExt.getX()))\n {\n return false;\n }\n if (abs(lMid.getX() * l.getY() - lMid.getY() * l.getX()) > (extents.getX() * lExt.getY() + extents.getY() * lExt.getX()))\n {\n return false;\n }\n // No separating axis, the line intersects\n return true;\n }", "public boolean contains(double x, double y) { \n\t\t\t\n\t\t\tif(type.get() == ShapeType.CIRCLE)\n\t\t\t\treturn (Math.pow(x - centerX.get(), 2) + Math.pow(y - centerY.get(), 2)) <= Math.pow(radius.get(), 2); \n\t\t\telse if (type.get() == ShapeType.RECTANGLE || type.get() == ShapeType.ROUNDRECT || type.get() == ShapeType.OVAL) {\n\t\t\t\treturn ((x >= getCenterX() - getWidth()/2) && (x <= getCenterX() + getWidth()/2) && (y >= getCenterY() - getHeight()/2) && (y <= getCenterY() + getHeight()/2));\n\t\t\t}\n\t\t\telse if (type.get() == ShapeType.TEXT) {\n\t\t\t\treturn ((x >= getCenterX() - getHeight()*.43*getText().length()/2) && (x <= getCenterX() + getHeight()*.43*getText().length()/2) && (y >= getCenterY() - getHeight()/2) && (y <= getCenterY() + getHeight()/2));\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn false;\n\t\t\t\n\t\t}", "public void testGetBoundingBox(){\r\n\t\tdouble xc = 0;\r\n\t\tdouble yc = 0;\r\n\t\tdouble r = 10;\r\n\t\tdouble r2 = r*Math.sqrt(2)/2;\r\n\t\tdouble t0 = PI/4;\r\n\t\tdouble t1 = 3*PI/4;\r\n\t\tdouble t2 = 5*PI/4;\r\n\t\tdouble t3 = 7*PI/4;\r\n\t\tdouble dt = PI/2;\r\n\t\t\r\n\t\t// declare variables\r\n\t\tCircleArc2D arc0, arc1, arc2, arc3;\r\n\t\tBox2D box0, box1, box2, box3;\r\n\t\tBox2D bounds0, bounds1, bounds2, bounds3;\r\n\t\t\r\n\t\t// top\r\n\t\tarc0 \t= new CircleArc2D(xc, yc, r, t0, dt);\r\n\t\tbox0 \t= new Box2D(xc-r2, xc+r2, r2, r);\r\n\t\tbounds0 = arc0.boundingBox();\r\n\t\tassertTrue(box0.almostEquals(bounds0, Shape2D.ACCURACY));\r\n\r\n\t\t// left\r\n\t\tarc1 \t= new CircleArc2D(xc, yc, r, t1, dt);\r\n\t\tbox1 \t= new Box2D(xc-r, xc-r2, -r2, r2);\r\n\t\tbounds1 = arc1.boundingBox();\r\n\t\tassertTrue(box1.almostEquals(bounds1, Shape2D.ACCURACY));\r\n\r\n\t\t// bottom\r\n\t\tarc2 \t= new CircleArc2D(xc, yc, r, t2, dt);\r\n\t\tbox2 \t= new Box2D(xc-r2, xc+r2, -r, -r2);\r\n\t\tbounds2 = arc2.boundingBox();\r\n\t\tassertTrue(box2.almostEquals(bounds2, Shape2D.ACCURACY));\r\n\r\n\t\t// right\r\n\t\tarc3 \t= new CircleArc2D(xc, yc, r, t3, dt);\r\n\t\tbox3 \t= new Box2D(r2, r, -r2, r2);\r\n\t\tbounds3 = arc3.boundingBox();\r\n\t\tassertTrue(box3.almostEquals(bounds3, Shape2D.ACCURACY));\r\n\r\n\t\t/// circle arcs with extent 3*pi/2\r\n\t\tdt = 3*PI/2;\r\n\t\t\r\n\t\t// top\r\n\t\tarc0 \t= new CircleArc2D(xc, yc, r, t3, dt);\r\n\t\tbox0 \t= new Box2D(xc-r, xc+r, -r2, r);\r\n\t\tbounds0 = arc0.boundingBox();\r\n\t\tassertTrue(box0.almostEquals(bounds0, Shape2D.ACCURACY));\r\n\r\n\t\t// left\r\n\t\tarc1 \t= new CircleArc2D(xc, yc, r, t0, dt);\r\n\t\tbox1 \t= new Box2D(xc-r, xc+r2, -r, r);\r\n\t\tbounds1 = arc1.boundingBox();\r\n\t\tassertTrue(box1.almostEquals(bounds1, Shape2D.ACCURACY));\r\n\r\n\t\t// bottom\r\n\t\tarc2 \t= new CircleArc2D(xc, yc, r, t1, dt);\r\n\t\tbox2 \t= new Box2D(xc-r, xc+r, -r, r2);\r\n\t\tbounds2 = arc2.boundingBox();\r\n\t\tassertTrue(box2.almostEquals(bounds2, Shape2D.ACCURACY));\r\n\r\n\t\t// right\r\n\t\tarc3 \t= new CircleArc2D(xc, yc, r, t2, dt);\r\n\t\tbox3 \t= new Box2D(-r2, r, -r, r);\r\n\t\tbounds3 = arc3.boundingBox();\r\n\t\tassertTrue(box3.almostEquals(bounds3, Shape2D.ACCURACY));\r\n\t\r\n\t}", "public boolean isIntersecting(RectF other){\n return RectF.intersects(other,this.hitBox);//|| hitBox.contains(other.getHitBox())||other.getHitBox().contains(this.hitBox)\n }", "private boolean isInBox( int row, int col ){\n\t\t\n\t\t/*Go through all the elements in the box including the prosepective\n\t\t * number and return true if any element except the prospective\n\t\t * number is equivalent*/\n\t\tfor( int x = col/3*3; x < (col/3+1)*3; x++)\n\t\t\tfor( int y = row/3*3; y < (row/3+1)*3; y++)\n\t\t\t\t{\n\t\t\t\t\tif( puzzle[row][col] == puzzle[y][x] &&\n\t\t\t\t\t\t(row!=y || col!=x)) \n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t//If not found, return false\n\t\treturn false;\n\t}", "private boolean overlappingGateways(BpmnShape s1, BpmnShape s2) {\n\t\tdouble firstHeight = s1.getBounds().getHeight() / 2;\n\t\tdouble firstWidth = s1.getBounds().getWidth() / 2;\n\t\tdouble firstX = s1.getBounds().getX() + firstWidth;\n\t\tdouble firstY = s1.getBounds().getY() + firstHeight;\n\t\tdouble firstApothem = (s1.getBounds().getHeight() * Math.sqrt(2)) / 2;\n\n\t\tdouble secondWidth = s2.getBounds().getWidth() / 2;\n\t\tdouble secondHeight = s2.getBounds().getHeight() / 2;\n\t\tdouble secondX = s2.getBounds().getX();\n\t\tdouble secondY = s2.getBounds().getY() + secondHeight;\n\t\tdouble secondApothem = (s2.getBounds().getHeight() * Math.sqrt(2)) / 2;\n\t\t\n\t\tif (firstX > secondX && firstY > secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY - firstApothem < secondY + secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY + firstApothem > secondY - secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY > secondY){\n\t\t\tif ((firstX + firstWidth > secondX - secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX + firstApothem > secondX - secondApothem || firstY - firstApothem < secondY + secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY + firstApothem > secondY - secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY == secondY)\n\t\t\t\treturn true;\n\t\t\n\t\tif (firstX == secondX && firstY > secondY){\n\t\t\tif (firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY == secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY < secondY){\n\t\t\tif (firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY == secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean intersectsRectangle(final int ax1, final int ax2, final int ay1, final int ay2)\n\t{\n\t\tif (isInsideZone(ax1, ay1, (zoneZ2 - 1)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (isInsideZone(ax1, ay2, (zoneZ2 - 1)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (isInsideZone(ax2, ay1, (zoneZ2 - 1)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (isInsideZone(ax2, ay2, (zoneZ2 - 1)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// Check if any point from this rectangle is inside the other one\n\t\tif (zoneX1 > ax1 && zoneX1 < ax2 && zoneY1 > ay1 && zoneY1 < ay2)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (zoneX1 > ax1 && zoneX1 < ax2 && zoneY2 > ay1 && zoneY2 < ay2)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (zoneX2 > ax1 && zoneX2 < ax2 && zoneY1 > ay1 && zoneY1 < ay2)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (zoneX2 > ax1 && zoneX2 < ax2 && zoneY2 > ay1 && zoneY2 < ay2)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// Horizontal lines may intersect vertical lines\n\t\tif (lineIntersectsLine(zoneX1, zoneY1, zoneX2, zoneY1, ax1, ay1, ax1, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX1, zoneY1, zoneX2, zoneY1, ax2, ay1, ax2, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX1, zoneY2, zoneX2, zoneY2, ax1, ay1, ax1, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX1, zoneY2, zoneX2, zoneY2, ax2, ay1, ax2, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// Vertical lines may intersect horizontal lines\n\t\tif (lineIntersectsLine(zoneX1, zoneY1, zoneX1, zoneY2, ax1, ay1, ax2, ay1))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX1, zoneY1, zoneX1, zoneY2, ax1, ay2, ax2, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX2, zoneY1, zoneX2, zoneY2, ax1, ay1, ax2, ay1))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (lineIntersectsLine(zoneX2, zoneY1, zoneX2, zoneY2, ax1, ay2, ax2, ay2))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public boolean isIntersecting(GameObject other){\n if(other.isSolid()&&this.solid){\n return RectF.intersects(other.getHitBox(),this.hitBox);//|| hitBox.contains(other.getHitBox())||other.getHitBox().contains(this.hitBox)\n }\n return false;\n }", "private void analyzeBox(QuadTreeNode node) {\n\t\t\tif (node.type().equals(\"leaf\")) {\n\t\t\t\tif (node.isWithin(((LeafNode)node).id, xl, yl, xu, yu)) elements.add(((LeafNode)node).id);\n\t\t\t} else if (node.type().equals(\"inner\")) {\n\t\t\t\tInnerNode nodeHandle = (InnerNode) node;\n\t\t\t\t//First Quad\n\t\t\t\tif (!nodeHandle.children[0].type().equals(\"empty\") && \n\t\t\t\t\t\txu >= nodeHandle.children[0].llx() && \n\t\t\t\t\t\tyu >= nodeHandle.children[0].lly()) analyzeBox(nodeHandle.children[0]);\n\t\t\t\t//Second Quad\n\t\t\t\tif (!nodeHandle.children[1].type().equals(\"empty\") && \n\t\t\t\t\t\txl < nodeHandle.children[1].urx() && \n\t\t\t\t\t\tyu > nodeHandle.children[1].lly()) analyzeBox(nodeHandle.children[1]);\n\t\t\t\t//Third Quad\n\t\t\t\tif (!nodeHandle.children[2].type().equals(\"empty\") && \n\t\t\t\t\t\txl < nodeHandle.children[2].urx() && \n\t\t\t\t\t\tyl < nodeHandle.children[2].ury()) analyzeBox(nodeHandle.children[2]);\n\t\t\t\t//Fourth Quad\n\t\t\t\tif (!nodeHandle.children[3].type().equals(\"empty\") && \n\t\t\t\t\t\txu >= nodeHandle.children[3].llx() && \n\t\t\t\t\t\tyl <= nodeHandle.children[3].ury()) analyzeBox(nodeHandle.children[3]);\n\t\t\t}\n\t\t}", "public static Boolean InsideBoundary(Double a, Double b, Double c)\n {\n if (a <= b && a > c)\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "boolean isPartiallyOverlapped(int[] x, int[] y) {\n return y[0] <= x[1]; //정렬이 이미 되어 있어서 simplify 할 수 있음\n }", "boolean _insidePts(PVector[] inPts, PVector[] outPts) {\n \n for(int i = 0; i < inPts.length; i++){\n // direction of angular relationship to any side must match\n // direction of relationship to opposite side\n if(!_ptPoly(inPts[i], outPts)) return false;\n }\n return true;\n }", "private boolean checkShapes(OrientedBoundingBox bounds, Node[] nodes, Matrix4f mtx, \n\t\tboolean useEpsilon) {\n\t\t\n\t\tboolean hasIntersection = false;\n\t\tif (nodes != null) {\n\t\t\tfor (int i = 0; i < nodes.length; i++) {\n\t\t\t\tNode node = nodes[i];\n\t\t\t\tif (node != null) {\n\t\t\t\t\tif (node instanceof Group) {\n\t\t\t\t\t\tGroup group = (Group)node;\n\t\t\t\t\t\tif (group.numChildren() > 0) {\n\t\t\t\t\t\t\tif (group instanceof TransformGroup) {\n\t\t\t\t\t\t\t\tTransformGroup transform = (TransformGroup)group;\n\t\t\t\t\t\t\t\ttransform.getTransform(tmtx);\n\t\t\t\t\t\t\t\tmtx.mul(tmtx);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tNode[] children = group.getAllChildren();\n\t\t\t\t\t\t\thasIntersection = checkShapes(bounds, children, mtx, useEpsilon);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (node instanceof Shape3D) {\n\t\t\t\t\t\tShape3D shape = (Shape3D)node;\n\t\t\t\t\t\tGeometry geom = shape.getGeometry();\n\t\t\t\t\t\tif (geom != null) {\n\t\t\t\t\t\t\thasIntersection = checkGeometry(bounds, geom, mtx, useEpsilon);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (hasIntersection) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn(hasIntersection);\n\t}", "private boolean isBetweenBounds(int x, int y, int[] bounds) {\n return x >= bounds[0] && x <= bounds[2] && y >= bounds[1] && y <= bounds[3];\n }", "public boolean inside(circle a, circle b)\r\n {\r\n \tdouble centDist = dist(a.x,a.y,b.x,b.y);\r\n \treturn centDist + a.r < b.r;\r\n }", "public boolean contains(int x, int y) {\n\t\treturn (Math.abs(x - pos.x) <= rad) && (Math.abs(y - pos.y) <= rad); \n\t}", "public Pair<Boolean, Float> intersects(AxisAlignedBox box) {\r\n\t\treturn SecaMath.intersect(this, box);\r\n\t}", "@Test\n void shouldBeInsideMap()\n {\n assertTrue(map.isInsideMap(new Vector2(0,0)));\n\n assertTrue(map.isInsideMap(new Vector2(4,0)));\n\n assertTrue(map.isInsideMap(new Vector2(4,4)));\n\n assertTrue(map.isInsideMap(new Vector2(1,3)));\n }", "public boolean contains(BoundingBox3d b2) {\n return xmin <= b2.xmin && b2.xmax <= xmax && ymin <= b2.ymin && b2.ymax <= ymax\n && zmin <= b2.zmin && b2.zmax <= zmax;\n }", "public boolean isInside(){\n\t\tinside = true;\n\t\tif(map.contains(new Rectangle(x,y,(int)spriteSize.getHeight(), (int)spriteSize.getWidth()))==false){\n\t\t\tinside = false;\n\t\t}\n\t\treturn(inside);\n\t}", "public boolean isPointInBox(final Vec3 inP)\n {\n // Rotate the point into the box's coordinates\n Vec4 p = m.getInverseSimple().multiply(inP.toPoint());\n\n // Now just use an axis-aligned check\n if (abs(p.getX()) < extents.getX()\n && abs(p.getY()) < extents.getY()\n && abs(p.getZ()) < extents.getZ())\n {\n return true;\n }\n\n return false;\n }", "@Override\n\tpublic boolean contains(int x, int y) {\n\t\treturn (x > Math.min(x1, x2) && x < Math.max(x1, x2) && y > Math.min(y1, y2) && y < Math.max(y1, y2));\n\t}" ]
[ "0.68617123", "0.65626764", "0.6552893", "0.64800465", "0.6450536", "0.6330354", "0.63147914", "0.6303519", "0.6295083", "0.62305814", "0.61954933", "0.6174844", "0.6068905", "0.60509557", "0.6049561", "0.60387385", "0.59980834", "0.59843415", "0.5966631", "0.5923088", "0.5917182", "0.59052", "0.590219", "0.5898709", "0.5898062", "0.58435637", "0.58229196", "0.5813893", "0.58128846", "0.58060026", "0.58026326", "0.57943094", "0.5787512", "0.576822", "0.57541966", "0.57532525", "0.57322377", "0.5726651", "0.5724336", "0.5715511", "0.57108325", "0.57077795", "0.5672459", "0.56685656", "0.56668013", "0.5657025", "0.5655722", "0.5652256", "0.5651105", "0.56510884", "0.5643202", "0.56431514", "0.5630653", "0.56284636", "0.5608027", "0.5586329", "0.55847085", "0.5582196", "0.5574599", "0.55708563", "0.55597556", "0.5555578", "0.55503184", "0.55407137", "0.5539297", "0.5522172", "0.5521875", "0.5520593", "0.55137724", "0.5511689", "0.5510971", "0.5510133", "0.5503098", "0.55026066", "0.5495798", "0.54885185", "0.5483206", "0.5482752", "0.54753244", "0.5463582", "0.54610044", "0.54584455", "0.5450701", "0.5442935", "0.5440427", "0.5437158", "0.5433619", "0.54313326", "0.54291433", "0.5426749", "0.54218316", "0.5421355", "0.54200524", "0.541899", "0.5416993", "0.540948", "0.5402882", "0.5401398", "0.53993917", "0.539871" ]
0.6210373
10
Put ray in box space
public List<Vec3> getIntersectionPoints(Vec3 org, Vec3 ray) { Mat4 mInv = m.getInverseSimple(); ray = mInv.multiply(ray.toDirection()).getXYZ(); org = mInv.multiply(org.toPoint()).getXYZ(); Vec3 mext = extents.getNegated(); ArrayList<Vec3> ps = new ArrayList<Vec3>(); for (int i = 0; i < 3; i++) { if (org.get(i) >= extents.get(i)) { if (ray.get(i) >= 0) { return new ArrayList<Vec3>(); // ray points away from box } ps.addAll(lineIntersection(i, org, ray, extents)); } else if (org.get(i) <= mext.get(i)) { if (ray.get(i) <= 0) { return new ArrayList<Vec3>(); // ray points away from box } ps.addAll(lineIntersection(i, org, ray, mext)); } } return ps; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void raycast(VrState state);", "public static void main(String[] args){\n Mesh3D box = Mesh3D.box(10, 20, 60);\n \n Line3D lineX = box.getLineX();\n Line3D lineY = box.getLineY();\n Line3D lineZ = box.getLineZ();\n lineX.show();\n lineY.show();\n lineZ.show();\n box.translateXYZ(100, 0.0, 0.0); \n box.show();\n Line3D line = new Line3D(); \n List<Point3D> intersects = new ArrayList<Point3D>();\n \n for(int p = 0; p < 100; p++){\n double r = 600;\n double theta = Math.toRadians(90.0);//Math.toRadians(Math.random()*180.0);\n double phi = Math.toRadians(Math.random()*360.0-180.0);\n line.set(0.0,0.0,0.0, \n Math.sin(theta)*Math.cos(phi)*r,\n Math.sin(theta)*Math.sin(phi)*r,\n Math.cos(theta)*r\n );\n intersects.clear();\n box.intersectionRay(line, intersects);\n System.out.println(\"theta/phi = \" + Math.toDegrees(theta) + \" \"\n + Math.toDegrees(phi) + \" intersects = \" + intersects.size());\n \n }\n }", "private void actualizaHitbox() {\n hitbox = new Rect((int)(posX + 0.2 * bala.getWidth()), (int)(posY + 0.2 * bala.getHeight()), (int)(posX + 0.8 * bala.getWidth()), (int)(posY + 0.8 * bala.getHeight()));\n }", "@Action\n public void addRay() {\n Point2D p1 = randomPoint(), p2 = randomPoint();\n TwoPointGraphic ag = new TwoPointGraphic(p1, p2, MarkerRenderer.getInstance());\n MarkerRendererToClip rend = new MarkerRendererToClip();\n rend.setRayRenderer(new ArrowPathRenderer(ArrowLocation.END));\n ag.getStartGraphic().setRenderer(rend);\n ag.setDefaultTooltip(\"<html><b>Ray</b>: <i>\" + p1 + \", \" + p2 + \"</i>\");\n ag.setDragEnabled(true);\n root1.addGraphic(ag); \n }", "private void updateHitbox() {\n\t\tthis.hitbox = new collisionSphere(2 * scale, this.location);\n\t}", "void setRectHitbox(float w, float h) {\n _hitbox = new PVector[]{\n new PVector(-w/2, h/2),\n new PVector(-w/2, -h/2),\n new PVector(w/2, -h/2),\n new PVector(w/2, h/2)\n };\n }", "public abstract Color traceRay(Ray ray);", "public abstract Color traceRay(Ray ray);", "private Ray constructRefractedRay(Geometry geometry, Point3D point, Ray inRay){\n Vector N = geometry.getNormal(point);\n Vector direct = inRay.get_direction();\n double cosOi = N.dotProduct(direct);\n if (cosOi < 0) {\n N.scale(-2);\n }\n else{\n N.scale(2);\n }\n Point3D pointEps = new Point3D(point);\n pointEps.add(N);\n return new Ray(pointEps, direct);\n }", "void setRoundHitbox(float r) {\n _hitbox = new PVector[]{new PVector(r, r*2)};\n }", "@Override\n\t//THIS IS THE BULLET HITBOX@@@!\n\tpublic void compile() {\n\t\thitBox = new Polygon();\n\t\thitBox.addPoint((int)getX(), (int)getY());\n\t\thitBox.addPoint((int) getX() + 10, (int) getY());\n\t\thitBox.addPoint((int) getX() + 10, (int) getY() + 10);\n\t\thitBox.addPoint((int) getX(), (int) getY() + 10);\n\t\trotateHitBox(vector.getRadians());\n\t}", "public native void raycast(Raycaster raycaster, Object[] intersects);", "public abstract void recolocarHitbox();", "private Vec3 trace(Ray ray) {\n\t\tSphere sphere = null;\n\n\t\tfor (int i = 0; i < spheres.size(); i++) {\n\t\t\tif (spheres.get(i).intersect(ray)) {\n\t\t\t\tsphere = spheres.get(i);\n\t\t\t}\n\t\t}\n\n\t\tif (sphere == null) {\n\t\t\treturn new Vec3(0.0f); // Background color.\n\t\t}\n\n\t\tVec3 p = ray.getIntersection(); // Intersection point.\n\t\tVec3 n = sphere.normal(p); // Normal at intersection.\n\n\t\treturn light.phong(sphere, p, n);\n\t}", "public GeometryRay(final Vec3 origin, final Vec3 direction) {\n super(origin, direction);\n }", "@Override\n\tpublic void intersect(Ray ray, IntersectResult result) {\n\t\t\t\tdouble tmin,tmax;\n\t\t\t\tdouble xmin, xmax, ymin, ymax, zmin, zmax;\n\t\t\t\t//find which face to cross\n\n\t\t\t\tif(ray.viewDirection.x>0){\n\t\t\t\t\txmin=(min.x-ray.eyePoint.x)/ray.viewDirection.x;\n\t\t\t\t\txmax=(max.x-ray.eyePoint.x)/ray.viewDirection.x;\n\t\t\t\t}else{\n\t\t\t\t\txmin=(max.x-ray.eyePoint.x)/ray.viewDirection.x;\n\t\t\t\t\txmax=(min.x-ray.eyePoint.x)/ray.viewDirection.x;\n\t\t\t\t}\n\t\t\t\tif(ray.viewDirection.y>0){\n\t\t\t\t\tymin=(min.y-ray.eyePoint.y)/ray.viewDirection.y;\n\t\t\t\t\tymax=(max.y-ray.eyePoint.y)/ray.viewDirection.y;\n\t\t\t\t}else{\n\t\t\t\t\tymin=(max.y-ray.eyePoint.y)/ray.viewDirection.y;\n\t\t\t\t\tymax=(min.y-ray.eyePoint.y)/ray.viewDirection.y;\n\t\t\t\t}\n\t\t\t\tif(ray.viewDirection.z>0){\n\t\t\t\t\tzmin=(min.z-ray.eyePoint.z)/ray.viewDirection.z;\n\t\t\t\t\tzmax=(max.z-ray.eyePoint.z)/ray.viewDirection.z;\n\t\t\t\t}else{\n\t\t\t\t\tzmin=(max.z-ray.eyePoint.z)/ray.viewDirection.z;\n\t\t\t\t\tzmax=(min.z-ray.eyePoint.z)/ray.viewDirection.z;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttmin=Double.max(xmin, ymin);\n\t\t\t\ttmin=Double.max(tmin, zmin);\n\t\t\t\ttmax=Double.min(xmax, ymax);\n\t\t\t\ttmax=Double.min(tmax, zmax);\n\t\t\t\t\n\t\t\t\t \n\t\t\t\tif(tmin<tmax && tmin>0){\n\t\t\t\t\t\n\t\t\t\t\tresult.material=material;\n\t\t\t\t\tresult.t=tmin;\n\t\t\t\t\tPoint3d p=new Point3d(ray.viewDirection);\n\t\t\t\t\tp.scale(tmin);\n\t\t\t\t\tp.add(ray.eyePoint);\n\t\t\t\t\tresult.p=p;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tfinal double epsilon=1e-9;\n\t\t\t\t\t// find face and set the normal\n\t\t\t\t\tif(Math.abs(p.x-min.x)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(-1,0,0);\n\t\t\t\t\t}else if(Math.abs(p.x-max.x)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(1,0,0);\n\t\t\t\t\t}else if(Math.abs(p.y-min.y)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(0,-1,0);\n\t\t\t\t\t}else if(Math.abs(p.y-max.y)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(0,1,0);\n\t\t\t\t\t}else if(Math.abs(p.z-min.z)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(0,0,-1);\n\t\t\t\t\t}else if(Math.abs(p.z-max.z)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(0,0,1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t}", "public boolean\n doIntersection(Ray inOutRay) {\n double t, min_t = Double.MAX_VALUE;\n double x2 = size.x/2; // OJO: Esto deberia venir precalculado\n double y2 = size.y/2; // OJO: Esto deberia venir precalculado\n double z2 = size.z/2; // OJO: Esto deberia venir precalculado\n Vector3D p = new Vector3D();\n GeometryIntersectionInformation info = \n new GeometryIntersectionInformation();\n\n inOutRay.direction.normalize();\n\n // (1) Plano superior: Z = size.z/2\n if ( Math.abs(inOutRay.direction.z) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano Z=size.z/2\n t = (z2-inOutRay.origin.z)/inOutRay.direction.z;\n if ( t > -VSDK.EPSILON ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.x >= -x2 && p.x <= x2 && \n p.y >= -y2 && p.y <= y2 ) {\n info.p = new Vector3D(p);\n min_t = t;\n lastPlane = 1;\n }\n }\n }\n\n // (2) Plano inferior: Z = -size.z/2\n if ( Math.abs(inOutRay.direction.z) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano Z=-size.z/2\n t = (-z2-inOutRay.origin.z)/inOutRay.direction.z;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.x >= -x2 && p.x <= x2 && \n p.y >= -y2 && p.y <= y2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 2;\n }\n }\n }\n\n // (3) Plano frontal: Y = size.y/2\n if ( Math.abs(inOutRay.direction.y) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano Y=size.y/2\n t = (y2-inOutRay.origin.y)/inOutRay.direction.y;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.x >= -x2 && p.x <= x2 && \n p.z >= -z2 && p.z <= z2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 3;\n }\n }\n }\n\n // (4) Plano posterior: Y = -size.y/2\n if ( Math.abs(inOutRay.direction.y) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano Y=-size.y/2\n t = (-y2-inOutRay.origin.y)/inOutRay.direction.y;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.x >= -x2 && p.x <= x2 && \n p.z >= -z2 && p.z <= z2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 4;\n }\n }\n }\n\n // (5) Plano X = size.x/2\n if ( Math.abs(inOutRay.direction.x) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano X=size.x/2\n t = (x2-inOutRay.origin.x)/inOutRay.direction.x;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.y >= -y2 && p.y <= y2 && \n p.z >= -z2 && p.z <= z2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 5;\n }\n }\n }\n\n // (6) Plano X = -size.x/2\n if ( Math.abs(inOutRay.direction.x) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano X=-size.x/2\n t = (-x2-inOutRay.origin.x)/inOutRay.direction.x;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.y >= -y2 && p.y <= y2 && \n p.z >= -z2 && p.z <= z2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 6;\n }\n }\n }\n\n if ( min_t < Double.MAX_VALUE ) {\n inOutRay.t = min_t;\n lastInfo.clone(info);\n return true;\n }\n return false;\n }", "@Test\n\tpublic void testConstructRayThroughPixel() {\n\n\t\tCamera camera1 = new Camera(Point3D.ZERO, new Vector(0, 1, 0), new Vector(0, 0, 1));\n\n\t\t// 3X3\n\t\tRay ray11 = camera1.constructRayThroughPixel(3, 3, 1, 1, 100, 150, 150);\n\t\tRay expectedRay11 = new Ray(Point3D.ZERO, new Vector(50, 50, 100).normalize());\n\t\tassertEquals(\"positive up to vectors testing at 3X3 in pixel (1,1)\", ray11, expectedRay11);\n\n\t\tRay ray33 = camera1.constructRayThroughPixel(3, 3, 3, 3, 100, 150, 150);\n\t\tRay expectedRay33 = new Ray(Point3D.ZERO, new Vector(-50, -50, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 3X3 in pixel (3,3)\", ray33, expectedRay33);\n\n\t\tRay ray21 = camera1.constructRayThroughPixel(3, 3, 2, 1, 100, 150, 150);\n\t\tRay expectedRay21 = new Ray(Point3D.ZERO, new Vector(0, 50, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 3X3 in pixel (2,1)\", ray21, expectedRay21);\n\n\t\tRay ray23 = camera1.constructRayThroughPixel(3, 3, 2, 3, 100, 150, 150);\n\t\tRay expectedRay23 = new Ray(Point3D.ZERO, new Vector(0, -50, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 3X3 in pixel (2,3)\", ray23, expectedRay23);\n\n\t\tRay ray12 = camera1.constructRayThroughPixel(3, 3, 1, 2, 100, 150, 150);\n\t\tRay expectedRay12 = new Ray(Point3D.ZERO, new Vector(50, 0, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 3X3 in pixel (1,2)\", ray12, expectedRay12);\n\n\t\tRay ray32 = camera1.constructRayThroughPixel(3, 3, 3, 2, 100, 150, 150);\n\t\tRay expectedRay32 = new Ray(Point3D.ZERO, new Vector(-50, 0, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 3X3 in pixel (3,2)\", ray32, expectedRay32);\n\n\t\tRay ray22 = camera1.constructRayThroughPixel(3, 3, 2, 2, 100, 150, 150);\n\t\tRay expectedRay22 = new Ray(Point3D.ZERO, new Vector(0, 0, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 3X3 in pixel (2,2) - A case test that Pij is equal to Pc\", ray22,\n\t\t\t\texpectedRay22);\n\n\t\t// 3X4 Py={1,2,3} Px={1,2,3,4}\n\n\t\tRay rayS22 = camera1.constructRayThroughPixel(4, 3, 2, 2, 100, 200, 150);\n\t\tRay expectedRayS22 = new Ray(Point3D.ZERO, new Vector(25, 0, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 3X4 in pixel (2,2)\", rayS22, expectedRayS22);\n\n\t\tRay rayS32 = camera1.constructRayThroughPixel(4, 3, 3, 2, 100, 200, 150);\n\t\tRay expectedRayS32 = new Ray(Point3D.ZERO, new Vector(-25, 0, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 3X4 in pixel (3,2)\", rayS32, expectedRayS32);\n\n\t\tRay rayS11 = camera1.constructRayThroughPixel(4, 3, 1, 1, 100, 200, 150);\n\t\tRay expectedRayS11 = new Ray(Point3D.ZERO, new Vector(75, 50, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 3X4 in pixel (1,1)\", rayS11, expectedRayS11);\n\n\t\tRay rayS43 = camera1.constructRayThroughPixel(4, 3, 4, 3, 100, 200, 150);\n\t\tRay expectedRayS43 = new Ray(Point3D.ZERO, new Vector(-75, -50, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 3X4 in pixel (4,3)\", rayS43, expectedRayS43);\n\n\t\t// 4X3 Py={1,2,3,4} Px={1,2,3}\n\n\t\tRay ray_c22 = camera1.constructRayThroughPixel(3, 4, 2, 2, 100, 150, 200);\n\t\tRay expectedRay_c22 = new Ray(Point3D.ZERO, new Vector(0, 25, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 4X3 in pixel (2,2)\", ray_c22, expectedRay_c22);\n\n\t\tRay ray_c32 = camera1.constructRayThroughPixel(3, 4, 3, 2, 100, 150, 200);\n\t\tRay expectedRay_c32 = new Ray(Point3D.ZERO, new Vector(-50, 25, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 4X3 in pixel (3,2)\", ray_c32, expectedRay_c32);\n\n\t\tRay ray_c11 = camera1.constructRayThroughPixel(3, 4, 1, 1, 100, 150, 200);\n\t\tRay expectedRay_c11 = new Ray(Point3D.ZERO, new Vector(50, 75, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 4X3 in pixel (1,1)\", ray_c11, expectedRay_c11);\n\n\t\tRay ray_c43 = camera1.constructRayThroughPixel(3, 4, 3, 4, 100, 150, 200);\n\t\tRay expectedRay_c43 = new Ray(Point3D.ZERO, new Vector(-50, -75, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 4X3 in pixel (4,3)\", ray_c43, expectedRay_c43);\n\n\t\t// ======\n\t\t// Negative vectors.\n\t\tCamera camera2 = new Camera(Point3D.ZERO, new Vector(0, -1, 0), new Vector(0, 0, -1));\n\n\t\t// 3X3\n\t\tRay ray1 = camera2.constructRayThroughPixel(3, 3, 3, 3, 100, 150, 150);\n\t\tRay resultRay = new Ray(Point3D.ZERO,\n\t\t\t\tnew Vector(-1 / Math.sqrt(6), 1 / Math.sqrt(6), -(Math.sqrt((double) 2 / 3))));\n\t\tassertEquals(\"Negative vectors testing at 3X3 in pixel (3,3)\", ray1, resultRay);\n\n\t\t// 3X3\n\t\tRay ray_d11 = camera2.constructRayThroughPixel(3, 3, 1, 1, 100, 150, 150);\n\t\tRay expectedRay_d11 = new Ray(Point3D.ZERO, new Vector(50, -50, -100).normalize());\n\t\tassertEquals(\"negative up to vectors testing at 3X3 in pixel (1,1)\", ray_d11, expectedRay_d11);\n\n\t\tRay ray_d33 = camera2.constructRayThroughPixel(3, 3, 3, 3, 100, 150, 150);\n\t\tRay expectedRay_d33 = new Ray(Point3D.ZERO, new Vector(-50, 50, -100).normalize());\n\t\tassertEquals(\"negative up to vectors testing at 3X3 in pixel (3,3)\", ray_d33, expectedRay_d33);\n\n\t\tRay ray_d21 = camera2.constructRayThroughPixel(3, 3, 2, 1, 100, 150, 150);\n\t\tRay expectedRay_d21 = new Ray(Point3D.ZERO, new Vector(0, -50, -100).normalize());\n\t\tassertEquals(\"negative up to vectors testing at 3X3 in pixel (2,1)\", ray_d21, expectedRay_d21);\n\n\t\tRay ray_d23 = camera2.constructRayThroughPixel(3, 3, 2, 3, 100, 150, 150);\n\t\tRay expectedRay_d23 = new Ray(Point3D.ZERO, new Vector(0, 50, -100).normalize());\n\t\tassertEquals(\"negative up to vectors testing at 3X3 in pixel (2,3)\", ray_d23, expectedRay_d23);\n\n\t\tRay ray_d12 = camera2.constructRayThroughPixel(3, 3, 1, 2, 100, 150, 150);\n\t\tRay expectedRay_d12 = new Ray(Point3D.ZERO, new Vector(50, 0, -100).normalize());\n\t\tassertEquals(\"negative up to vectors testing at 3X3 in pixel (1,2)\", ray_d12, expectedRay_d12);\n\n\t\tRay ray_d32 = camera2.constructRayThroughPixel(3, 3, 3, 2, 100, 150, 150);\n\t\tRay expectedRay_d32 = new Ray(Point3D.ZERO, new Vector(-50, 0, -100).normalize());\n\t\tassertEquals(\"negative up to vectors testing at 3X3 in pixel (3,2)\", ray_d32, expectedRay_d32);\n\n\t\t// vTo negative vUp positive\n\t\tCamera camera3 = new Camera(Point3D.ZERO, new Vector(0, 1, 0), new Vector(0, 0, -1));\n\n\t\t// 3X4\n\n\t\tRay ray_e22 = camera3.constructRayThroughPixel(4, 3, 2, 2, 100, 200, 150);\n\t\tRay expectedRay_e22 = new Ray(Point3D.ZERO, new Vector(-25, 0, -100).normalize());\n\t\tassertEquals(\"vTo negative vUp positive vectors testing at 3X4 in pixel (2,2)\", ray_e22, expectedRay_e22);\n\n\t\tRay ray_e32 = camera3.constructRayThroughPixel(4, 3, 3, 2, 100, 200, 150);\n\t\tRay expectedRay_e32 = new Ray(Point3D.ZERO, new Vector(25, 0, -100).normalize());\n\t\tassertEquals(\"vTo negative vUp positive vectors testing at 3X4 in pixel (3,2)\", ray_e32, expectedRay_e32);\n\n\t\tRay ray_e11 = camera3.constructRayThroughPixel(4, 3, 1, 1, 100, 200, 150);\n\t\tRay expectedRay_e11 = new Ray(Point3D.ZERO, new Vector(-75, 50, -100).normalize());\n\t\tassertEquals(\"vTo negative vUp positive vectors testing at 3X4 in pixel (1,1)\", ray_e11, expectedRay_e11);\n\n\t\tRay ray_e43 = camera3.constructRayThroughPixel(4, 3, 4, 3, 100, 200, 150);\n\t\tRay expectedRay_e43 = new Ray(Point3D.ZERO, new Vector(75, -50, -100).normalize());\n\t\tassertEquals(\"vTo negative vUp positive vectors testing at 3X4 in pixel (4,3)\", ray_e43, expectedRay_e43);\n\n\t\t// ======\n\t\tCamera littlCam = new Camera(Point3D.ZERO, new Vector(0, 1, 0), new Vector(0, 0, 1));\n\t\tRay littl33 = littlCam.constructRayThroughPixel(3, 3, 3, 3, 10, 6, 6);\n\t\tRay checklittl33 = new Ray(Point3D.ZERO, new Vector(-2, -2, 10).normalize());\n\t\tRay littl11 = littlCam.constructRayThroughPixel(3, 3, 1, 1, 10, 6, 6);\n\t\tRay checklittl11 = new Ray(Point3D.ZERO, new Vector(2, 2, 10).normalize());\n\n\t\tassertEquals(\"3,3\", littl33, checklittl33);\n\t\tassertEquals(\"1,1\", littl11, checklittl11);\n\t}", "private Ray constructReflectedRay(Vector normal, Point3D point, Ray inRay){\n Vector R = inRay.get_direction();\n normal.scale(2*inRay.get_direction().dotProduct(normal));\n R.subtract(normal);\n Vector epsV = new Vector(normal);\n if (normal.dotProduct(R) < 0) {\n epsV.scale(-2);\n }\n else {\n epsV.scale(2);\n }\n //Vector epsV = new Vector(EPS, EPS, EPS);\n Point3D eps = new Point3D(point);\n\n eps.add(epsV);\n R.normalize();\n return new Ray(eps, R);\n }", "private static void setbox(int lx, int ly, int rx, int ry) {\n\t\tfor(int i = ly; i< ry; i++) {\n\t\t\tfor(int j = lx; j<rx; j++) {\n\t\t\t\tarr[i][j] = 1;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void\nrayPickBoundingBox(SoRayPickAction action, final SbBox3f bbox)\n//\n////////////////////////////////////////////////////////////////////////\n{\n // Save the state so we don't affect the real complexity\n action.getState().push();\n\n // Change the complexity\n SoComplexityElement.set(action.getState(), 0.0f);\n SoComplexityTypeElement.set(action.getState(),\n SoComplexityTypeElement.Type.OBJECT_SPACE);\n\n // Change the current matrix to scale and translate the cube to the\n // correct spot. (We can't just use an extra matrix passed to\n // computeObjectSpaceRay(), since the points generated by\n // generatePrimitives() have to be transformed, not just the ray.)\n final SbVec3fSingle size = new SbVec3fSingle();\n bbox.getSize(size);\n\n // If any of the dimensions is 0, beef it up a little bit to avoid\n // scaling by 0\n if (size.getValueRead()[0] == 0.0)\n size.getValue()[0] = 0.00001f;\n if (size.getValueRead()[1] == 0.0)\n size.getValue()[1] = 0.00001f;\n if (size.getValueRead()[2] == 0.0)\n size.getValue()[2] = 0.00001f;\n\n SoModelMatrixElement.translateBy(action.getState(), this,\n bbox.getCenter());\n SoModelMatrixElement.scaleBy(action.getState(), this,\n size.operator_mul(0.5f));\n\n // Compute the picking ray in the space of the shape\n computeObjectSpaceRay(action);\n\n // Pick using primitive generation. Make sure we know that we are\n // picking on just a bounding box of another shape, so details\n // won't be created.\n pickingBoundingBox = true;\n generatePrimitives(action);\n\n // Restore the state\n action.getState().pop();\n}", "public void addRayTrajectories()\n\t{\n\t\tclear();\n\t\t\n\t\tdouble sin = Math.sin(hyperboloidAngle);\n\n\t\t// Three vectors which form an orthogonal system.\n\t\t// a points in the direction of the axis and is of length cos(coneAngle);\n\t\t// u and v are both of length sin(coneAngle).\n\t\tVector3D\n\t\ta = axisDirection.getWithLength(Math.cos(hyperboloidAngle)),\n\t\tu = Vector3D.getANormal(axisDirection).getNormalised(),\n\t\tv = Vector3D.crossProduct(axisDirection, u).getNormalised();\n\t\t\n\t\tfor(int i=0; i<numberOfRays; i++)\n\t\t{\n\t\t\tdouble\n\t\t\t\tphi = 2*Math.PI*i/numberOfRays,\n\t\t\t\tcosPhi = Math.cos(phi),\n\t\t\t\tsinPhi = Math.sin(phi);\n\t\t\taddSceneObject(\n\t\t\t\t\tnew EditableRayTrajectory(\n\t\t\t\t\t\t\t\"trajectory of ray #\" + i,\n\t\t\t\t\t\t\tVector3D.sum(\n\t\t\t\t\t\t\t\t\tstartPoint,\n\t\t\t\t\t\t\t\t\tu.getProductWith(waistRadius*cosPhi),\n\t\t\t\t\t\t\t\t\tv.getProductWith(waistRadius*sinPhi)\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tstartTime,\n\t\t\t\t\t\t\tVector3D.sum(\n\t\t\t\t\t\t\t\t\ta,\n\t\t\t\t\t\t\t\t\tu.getProductWith(-sin*sinPhi),\n\t\t\t\t\t\t\t\t\tv.getProductWith( sin*cosPhi)\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\trayRadius,\n\t\t\t\t\t\t\tsurfaceProperty,\n\t\t\t\t\t\t\tmaxTraceLevel,\n\t\t\t\t\t\t\tfalse,\t// reportToConsole\n\t\t\t\t\t\t\tthis,\t// parent\n\t\t\t\t\t\t\tgetStudio()\n\t\t\t\t\t\t)\n\t\t\t\t);\n\t\t}\n\t}", "@Override\n public void update() {\n y += velY;\n setRectHitBox();\n }", "@Override\n public List<FreeSpace3D> segmentSpace(Box box){\n ArrayList<FreeSpace3D> newFreeSpace3DS = new ArrayList<>();\n ArrayList<Surface> newSurfaces = new ArrayList();\n if(box.getZBottom() > position.getZ())\n {\n //the bottom of physical box is a separating plane\n FreeSpace3D fs = new FreeSpace3D(width, depth, box.getZBottom() - position.getZ(), position, this.pallet, supportingSurfaces);\n newFreeSpace3DS.add(fs);\n }\n\n if(box.getZTop() < getZTop())\n {\n // the top of the physical box is a separating plane\n // determine the intersecting area\n PositionedRectangle intersectingArea = box.getTop().getHorizontalIntersection(this.getPositionedBottom());\n Surface sf = new Surface(intersectingArea);\n FreeSpace3D fs = new FreeSpace3D(width, depth,position.getZ() + height - box.getZTop(),\n new Vector3D(position.getX(), position.getY(),box.getZTop()), this.pallet, sf);\n newFreeSpace3DS.add(fs);\n }\n\n if(box.getXLeft() > getXLeft())\n {\n //the left side of physical box is a separating plane\n ArrayList<Surface> remainingSupportingSurfaces = updateSurfaces(new PositionedRectangle(box.getXLeft() - getXLeft(), depth, position));\n if(!remainingSupportingSurfaces.isEmpty()){\n FreeSpace3D fs = new FreeSpace3D(box.getXLeft() - getXLeft(), depth, height, position, this.pallet, remainingSupportingSurfaces);\n newFreeSpace3DS.add(fs);\n }\n }\n\n if(box.getXRight() < getXRight())\n {\n // the right of the physical box is a separating plane\n ArrayList<Surface> remainingSupportingSurfaces = updateSurfaces(new PositionedRectangle(getXRight() - box.getXRight(), depth, new Vector3D(box.getXRight(), position.getY(), position.getZ())));\n if(!remainingSupportingSurfaces.isEmpty()){\n FreeSpace3D fs = new FreeSpace3D(getXRight() - box.getXRight(), depth,\n height, new Vector3D(box.getXRight(), position.getY(), position.getZ()), this.pallet, remainingSupportingSurfaces);\n newFreeSpace3DS.add(fs);\n }\n }\n\n if(box.getYFront() > getYFront())\n {\n // the front of the physical box is a separating plane\n ArrayList<Surface> remainingSupportingSurfaces = updateSurfaces(new PositionedRectangle(width, box.getYFront() - getYFront(), position));\n if(!remainingSupportingSurfaces.isEmpty()){\n FreeSpace3D fs = new FreeSpace3D(width, box.getYFront() - getYFront(), height, position, this.pallet, remainingSupportingSurfaces);\n newFreeSpace3DS.add(fs);\n }\n }\n\n if(box.getYBack() < getYBack())\n {\n // the back of the physical box is a separating plane\n ArrayList<Surface> remainingSupportingSurfaces = updateSurfaces(new PositionedRectangle(width, getYBack() - box.getYBack(), new Vector3D(position.getX(), box.getYBack(), position.getZ())));\n if(!remainingSupportingSurfaces.isEmpty()){\n FreeSpace3D fs = new FreeSpace3D(width, getYBack() - box.getYBack(),\n height, new Vector3D(position.getX(), box.getYBack(), position.getZ()), this.pallet, remainingSupportingSurfaces);\n newFreeSpace3DS.add(fs);\n }\n }\n\n return newFreeSpace3DS;\n }", "private Ray constructRefractedRay(Point3D point, Ray inRay, Vector n) {\n return new Ray(point, inRay.getDir(), n);\n }", "@Override\n public RayHit rayIntersectObj(Ray3D ray) {\n // Next check if ray hits this quadric\n Point3D hitPoint = findHitPoint(ray);\n if (hitPoint == null || !isWithinBounds(hitPoint)) {\n return RayHit.NO_HIT;\n }\n double distance = hitPoint.subtract(ray.getPoint()).length();\n Point3D normal = findNormalAtPoint(hitPoint);\n return new RayHit(hitPoint, distance, normal, this, new TextureCoordinate(0, 0));\n }", "public void updateHitbox() {\n\t\tresistorPosEnd = new Rectangle(x - 10, y - 10, 40, 40);\n\t\tresistorNegEnd = new Rectangle(x + 30, y, 40, 40);\n\t}", "public Color ray_trace(Ray ray) {\r\n int index = -1;\r\n float t = Float.MAX_VALUE;\r\n \r\n for(int i = 0; i < spheres.size(); i++) {\r\n float xd, yd, zd, xo, yo, zo, xc, yc, zc, rc, A, B, C, disc, t0, t1;\r\n \r\n xd = ray.getDirection().getX();\r\n yd = ray.getDirection().getY();\r\n zd = ray.getDirection().getZ();\r\n xo = ray.getOrigin().getX();\r\n yo = ray.getOrigin().getY();\r\n zo = ray.getOrigin().getZ();\r\n xc = spheres.get(i).getCenter().getX();\r\n yc = spheres.get(i).getCenter().getY();\r\n zc = spheres.get(i).getCenter().getZ();\r\n rc = spheres.get(i).getRadius();\r\n \r\n A = xd*xd + yd*yd + zd*zd;\r\n B = 2*(xd*(xo-xc) + yd*(yo-yc) + zd*(zo-zc));\r\n C = (xo-xc)*(xo-xc) + (yo-yc)*(yo-yc) + (zo-zc)*(zo-zc) - rc*rc;\r\n \r\n disc = B*B - (4*A*C);\r\n \r\n if(disc < 0) {\r\n continue;\r\n }\r\n\r\n if(disc == 0) {\r\n t0 = -B/(2*A);\r\n if(t0 < t && t0 > 0) {\r\n t=t0;\r\n index = i;\r\n }\r\n } else {\r\n t0 = (-B + (float) Math.sqrt(disc))/(2*A);\r\n t1 = (-B - (float) Math.sqrt(disc))/(2*A);\r\n\r\n if( t0 > t1) {\r\n float flip = t0;\r\n t0 = t1;\r\n t1 = flip;\r\n }\r\n\r\n if(t1 < 0) {\r\n continue;\r\n }\r\n\r\n if(t0 < 0 && t1 < t) {\r\n t = t1;\r\n index = i;\r\n } else if(t0 > 0 && t0 < t) {\r\n t = t0;\r\n index = i;\r\n }\r\n }\r\n }// end of for loop\r\n if(index < 0) {\r\n return background;\r\n } else {\r\n Point intersect = (ray.getDirection().const_mult(t)).point_add(window.getEye());\r\n return shade_ray(index, intersect);\r\n } \r\n }", "public Rect hitBox(){\n return new Rect((int)getX(), (int)getY(), (int)getX() + spriteWidth, (int)getY() + spriteHeight);\n }", "public void update(Point point)\n {\n rectangle.set(point.x - rectangle.width()/2, point.y - rectangle.height()/2, point.x + rectangle.width()/2,point.y + rectangle.height()/2);\n\n //hitBox(this.rectangle);\n }", "public void addBox(String id, double dimX, double dimY, double dimZ, double x, double y, double z, String frameID) {\n\tCollisionObjectWrapper co = new CollisionObjectWrapper(id, Operation.ADD);\n\tco.setFrame(frameID, ZEROTIME);\n\tco.addPrimitiveBox(dimX, dimY, dimZ);\n\tco.addPose(x, y, z, 0, 0, 0);\n\taddCollisionObject(co);\n\thandle.logDebug(\"Add new object with key \" + id);\n }", "@Override\n public void onRayCastClick(Vector2f mouse, CollisionResult result) {\n }", "@Override\r\n public void intersect( Ray ray, IntersectResult result ) {\n\t\r\n }", "Box(double len)\n\t{\n\t\t\n\t\twidth = height = depth = len;\n\t\t\n\t}", "public interface Ray3 extends Path3, Serializable, Cloneable {\r\n\r\n /**\r\n * Creates a new ray from 3 coordinates for the origin point and 3 coordinates for the direction vector.\r\n *\r\n * @param xo the x-coordinate of the origin\r\n * @param yo the y-coordinate of the origin\r\n * @param zo the z-coordinate of the origin\r\n * @param xd the x-coordinate of the direction\r\n * @param yd the y-coordinate of the direction\r\n * @param zd the z-coordinate of the direction\r\n * @return a new ray\r\n */\r\n @NotNull\r\n static Ray3 fromOD(double xo, double yo, double zo, double xd, double yd, double zd) {\r\n return new Ray3Impl(xo, yo, zo, xd, yd, zd);\r\n }\r\n\r\n /**\r\n * Creates a new ray from an origin point and a direction vector.\r\n *\r\n * @param origin the origin\r\n * @param dir the direction\r\n * @return a new ray\r\n */\r\n @NotNull\r\n static Ray3 fromOD(Vector3 origin, Vector3 dir) {\r\n return new Ray3Impl(origin, dir);\r\n }\r\n\r\n /**\r\n * Creates a new ray between two points.\r\n * The origin will be a copy of the point {@code from}.\r\n * The directional vector will be a new vector from {@code from} to {@code to}.\r\n *\r\n * @param from the first point\r\n * @param to the second point\r\n * @return a new ray\r\n */\r\n @NotNull\r\n static Ray3 between(Vector3 from, Vector3 to) {\r\n return fromOD(from, Vector3.between(from, to));\r\n }\r\n\r\n /**\r\n * Creates a new ray between two points.\r\n *\r\n * @param ox the origin x\r\n * @param oy the origin x\r\n * @param oz the origin x\r\n * @param tx the target x\r\n * @param ty the target x\r\n * @param tz the target x\r\n * @return a new ray\r\n */\r\n @NotNull\r\n static Ray3 between(double ox, double oy, double oz, double tx, double ty, double tz) {\r\n return fromOD(ox, oy, oz, tx-ox, ty-oy, tz-oz);\r\n }\r\n\r\n // GETTERS\r\n\r\n /**\r\n * Returns the x-coordinate of the origin of this ray.\r\n *\r\n * @return the x-coordinate of the origin of this ray\r\n */\r\n abstract double getOrgX();\r\n\r\n /**\r\n * Returns the y-coordinate of the origin of this ray.\r\n *\r\n * @return the y-coordinate of the origin of this ray\r\n */\r\n abstract double getOrgY();\r\n\r\n /**\r\n * Returns the z-coordinate of the origin of this ray.\r\n *\r\n * @return the z-coordinate of the origin of this ray\r\n */\r\n abstract double getOrgZ();\r\n\r\n /**\r\n * Returns the x-coordinate of the direction of this ray.\r\n *\r\n * @return the x-coordinate of the direction of this ray\r\n */\r\n abstract double getDirX();\r\n\r\n /**\r\n * Returns the y-coordinate of the direction of this ray.\r\n *\r\n * @return the y-coordinate of the direction of this ray\r\n */\r\n abstract double getDirY();\r\n\r\n /**\r\n * Returns the z-coordinate of the direction of this ray.\r\n *\r\n * @return the z-coordinate of the direction of this ray\r\n */\r\n abstract double getDirZ();\r\n\r\n /**\r\n * Returns the length of this ray.\r\n *\r\n * @return the length of this ray\r\n */\r\n abstract double getLength();\r\n\r\n /**\r\n * Returns the squared length of this ray.\r\n *\r\n * @return the squared length of this ray\r\n */\r\n abstract double getLengthSquared();\r\n \r\n /**\r\n * Returns the origin of this ray in a new vector.\r\n *\r\n * @return the origin of this ray in a new vector\r\n */\r\n @Override\r\n default Vector3 getOrigin() {\r\n return Vector3.fromXYZ(getOrgX(), getOrgY(), getOrgZ());\r\n }\r\n \r\n /**\r\n * Returns the direction of this ray in a new vector.\r\n *\r\n * @return the direction of this ray in a new vector\r\n */\r\n default Vector3 getDirection() {\r\n return Vector3.fromXYZ(getDirX(), getDirY(), getDirZ());\r\n }\r\n \r\n default AxisAlignedBB getBoundaries() {\r\n return AxisAlignedBB.between(getOrigin(), getEnd());\r\n }\r\n\r\n // PATH IMPL\r\n \r\n /**\r\n * Returns the end of this ray in a new vector. This is equal to the sum of the origin and direction of the vector.\r\n *\r\n * @return the end of this ray in a new vector\r\n */\r\n @Override\r\n default Vector3 getEnd() {\r\n return Vector3.fromXYZ(getOrgX() + getDirX(), getOrgY() + getDirY(), getOrgZ() + getDirZ());\r\n }\r\n\r\n @Override\r\n default Vector3[] getControlPoints() {\r\n return new Vector3[] {getOrigin(), getEnd()};\r\n }\r\n\r\n // CHECKERS\r\n\r\n /**\r\n * Returns whether the ray is equal to the given point at any point.\r\n *\r\n * @param x the x-coordinate of the point\r\n * @param y the y-coordinate of the point\r\n * @param z the z-coordinate of the point\r\n * @return whether the ray is equal to the given point at any point\r\n */\r\n default boolean contains(double x, double y, double z) {\r\n return Vector3.between(getOrgX(), getOrgY(), getOrgZ(), x, y, z).isMultipleOf(getDirection());\r\n }\r\n\r\n /**\r\n * Returns whether the ray is equal to the given point at any point.\r\n *\r\n * @param point the point\r\n * @return whether the ray is equal to the given point at any point\r\n */\r\n default boolean contains(Vector3 point) {\r\n return contains(point.getX(), point.getY(), point.getZ());\r\n }\r\n\r\n /**\r\n * Returns whether this ray is equal to another ray. This condition is true\r\n * if both origin and direction are equal.\r\n *\r\n * @param ray the ray\r\n * @return whether this ray is equal to the ray\r\n */\r\n default boolean equals(Ray3 ray) {\r\n return\r\n getOrigin().equals(ray.getOrigin()) &&\r\n getDirection().isMultipleOf(ray.getDirection());\r\n }\r\n\r\n // SETTERS\r\n\r\n /**\r\n * Sets the origin of the ray to a given point.\r\n *\r\n * @param x the x-coordinate of the point\r\n * @param y the y-coordinate of the point\r\n * @param z the z-coordinate of the point\r\n */\r\n abstract void setOrigin(double x, double y, double z);\r\n\r\n /**\r\n * Sets the origin of the ray to a given point.\r\n *\r\n * @param point the point\r\n */\r\n default void setOrigin(Vector3 point) {\r\n setOrigin(point.getX(), point.getY(), point.getZ());\r\n }\r\n\r\n /**\r\n * Sets the direction of this ray to a given vector.\r\n *\r\n * @param x the x-coordinate of the vector\r\n * @param y the y-coordinate of the vector\r\n * @param z the z-coordinate of the vector\r\n */\r\n abstract void setDirection(double x, double y, double z);\r\n \r\n /**\r\n * Sets the direction of this ray to a given vector.\r\n *\r\n * @param v the vector\r\n */\r\n default void setDirection(Vector3 v) {\r\n setDirection(v.getX(), v.getY(), v.getZ());\r\n }\r\n\r\n /**\r\n * Sets the length of this ray to a given length.\r\n *\r\n * @param t the new hypot\r\n */\r\n default void setLength(double t) {\r\n scaleDirection(t / getLength());\r\n }\r\n\r\n default void normalize() {\r\n setLength(1);\r\n }\r\n \r\n //TRANSFORMATIONS\r\n \r\n default void scaleOrigin(double x, double y, double z) {\r\n setDirection(getOrgX()*x, getOrgY()*y, getOrgZ()*z);\r\n }\r\n \r\n default void scaleDirection(double x, double y, double z) {\r\n setDirection(getDirX()*x, getDirY()*y, getDirZ()*z);\r\n }\r\n \r\n default void scaleOrigin(double factor) {\r\n scaleOrigin(factor, factor, factor);\r\n }\r\n \r\n default void scaleDirection(double factor) {\r\n scaleDirection(factor, factor, factor);\r\n }\r\n \r\n default void scale(double x, double y, double z) {\r\n scaleOrigin(x, y, z);\r\n scaleDirection(x, y, z);\r\n }\r\n \r\n default void scale(double factor) {\r\n scale(factor, factor, factor);\r\n }\r\n \r\n /**\r\n * Translates the ray origin by a given amount on each axis.\r\n *\r\n * @param x the x-coordinate\r\n * @param y the y-coordinate\r\n * @param z the z-coordinate\r\n */\r\n abstract void translate(double x, double y, double z);\r\n\r\n // MISC\r\n\r\n /**\r\n * <p>\r\n * Returns a new interval iterator for this ray. This iterator will return all points in a given interval that\r\n * are on a ray.\r\n * </p>\r\n * <p>\r\n * For example, a ray with hypot 1 will produce an iterator that iterates over precisely 3 points if the\r\n * interval is 0.5 (or 0.4).\r\n * </p>\r\n * <p>\r\n * To get an iterator that iterates over a specified amount of points {@code x}, make use of\r\n * <blockquote>\r\n * {@code intervalIterator( getLength() / (x - 1) )}\r\n * </blockquote>\r\n * </p>\r\n *\r\n * @param interval the interval of iteration\r\n * @return a new interval iterator\r\n */\r\n default Iterator<Vector3> intervalIterator(double interval) {\r\n return new IntervalIterator(this, interval);\r\n }\r\n\r\n /**\r\n * <p>\r\n * Returns a new interval iterator for this ray. This iterator will return all points in a given interval that\r\n * are on a ray.\r\n * </p>\r\n * <p>\r\n * For example, a ray with hypot 1 will produce an iterator that iterates over precisely 3 points if the\r\n * interval is 0.5 (or 0.4).\r\n * </p>\r\n * <p>\r\n * To get an iterator that iterates over a specified amount of points {@code x}, make use of\r\n * <blockquote>\r\n * {@code intervalIterator( getLength() / (x - 1) )}\r\n * </blockquote>\r\n * </p>\r\n *\r\n * @return a new interval iterator\r\n */\r\n default Iterator<BlockVector> blockIntervalIterator() {\r\n return new BlockIntervalIterator(this);\r\n }\r\n\r\n /**\r\n * Returns a given amount of equally distributed points on this ray.\r\n *\r\n * @param amount the amount\r\n * @return an array containing points on this ray\r\n */\r\n @Override\r\n default Vector3[] getPoints(int amount) {\r\n if (amount < 0) throw new IllegalArgumentException(\"amount < 0\");\r\n if (amount == 0) return new Vector3[0];\r\n if (amount == 1) return new Vector3[] {getOrigin()};\r\n if (amount == 2) return new Vector3[] {getOrigin(), getEnd()};\r\n\r\n int t = amount - 1, i = 0;\r\n Vector3[] result = new Vector3[amount];\r\n\r\n Iterator<Vector3> iter = intervalIterator(getLengthSquared() / t*t);\r\n while (iter.hasNext())\r\n result[i++] = iter.next();\r\n\r\n return result;\r\n }\r\n\r\n abstract Ray3 clone();\r\n\r\n}", "public Ray(Point3D head, Vector direction, Vector normal) {\n\t\tthis(head, direction);\n\t\tdouble nv = normal.dotProduct(_dir);\n\t\tif (!Util.isZero(nv)) {\n\t\t\tVector epsVector = normal.scale(nv > 0 ? DELTA : -DELTA);\n\t\t\t_p0 = head.add(epsVector);\n\t\t}\n\t}", "public Box() {\n \tsuper();\n \tthis.max = new Point3d( 1, 1, 1 );\n \tthis.min = new Point3d( -1, -1, -1 );\n }", "Box(){\r\n Height = -1; // Used -1 to initiate an uninitialized Box. \r\n Width = -1;\r\n Depth = -1;\r\n }", "public void add(RayHandler rayHandler);", "Box(double len){\r\n Height = Width = Depth = len;\r\n\r\n }", "public void movbolitas() {\n x += vx;\n y += vy;\n if (x > width || x < 0) {\n vx *= -1;\n }\n if (y > height || y < 0) {\n vy *= -1;\n }\n }", "Box(double w, double h, double d)\n\t{\n\t\twidth = w;\n\t\theight = h;\n\t\tdepth = d;\n\t\t\n\t}", "public BoundingBox3d() {\n reset();\n }", "public Ray(double d) {\n setOrigin(50, 200);\n setMatrix(d, 0);\n }", "public double findRayIntersection(Vec3 origin, Vec3 direction, Vec3 normal)\n {\n double scale = width/obj.getScale();\n double ox = origin.x*scale+0.5*width;\n double oy = origin.y*scale+0.5*width;\n double oz = origin.z*scale+0.5*width;\n double dx = direction.x;\n double dy = direction.y;\n double dz = direction.z;\n\n // Find the intersection of the ray with the bounding box.\n\n double mint = -Double.MAX_VALUE;\n double maxt = Double.MAX_VALUE;\n if (dx == 0.0)\n {\n if (ox < minx || ox > maxx)\n return 0.0;\n }\n else\n {\n double t1 = (minx-ox)/dx;\n double t2 = (maxx-ox)/dx;\n if (t1 < t2)\n {\n if (t1 > mint)\n mint = t1;\n if (t2 < maxt)\n maxt = t2;\n }\n else\n {\n if (t2 > mint)\n mint = t2;\n if (t1 < maxt)\n maxt = t1;\n }\n if (mint > maxt || maxt < 0.0)\n return 0.0;\n }\n if (dy == 0.0)\n {\n if (oy < miny || oy > maxy)\n return 0.0;\n }\n else\n {\n double t1 = (miny-oy)/dy;\n double t2 = (maxy-oy)/dy;\n if (t1 < t2)\n {\n if (t1 > mint)\n mint = t1;\n if (t2 < maxt)\n maxt = t2;\n }\n else\n {\n if (t2 > mint)\n mint = t2;\n if (t1 < maxt)\n maxt = t1;\n }\n if (mint > maxt || maxt < 0.0)\n return 0.0;\n }\n if (dz == 0.0)\n {\n if (oz < minz || oz > maxz)\n return 0.0;\n }\n else\n {\n double t1 = (minz-oz)/dz;\n double t2 = (maxz-oz)/dz;\n if (t1 < t2)\n {\n if (t1 > mint)\n mint = t1;\n if (t2 < maxt)\n maxt = t2;\n }\n else\n {\n if (t2 > mint)\n mint = t2;\n if (t1 < maxt)\n maxt = t1;\n }\n if (mint > maxt || maxt < 0.0)\n return 0.0;\n }\n if (mint < 0.0)\n mint = 0.0;\n\n // Find the first voxel and initialize variables.\n\n double xpos = ox+mint*dx;\n double ypos = oy+mint*dy;\n double zpos = oz+mint*dz;\n int x = Math.max(Math.min((int) xpos, maxx), minx);\n int y = Math.max(Math.min((int) ypos, maxy), miny);\n int z = Math.max(Math.min((int) zpos, maxz), minz);\n int stepx, stepy, stepz;\n int finalx, finaly, finalz;\n double tdeltax, tdeltay, tdeltaz;\n double tmaxx, tmaxy, tmaxz;\n if (dx < 0.0)\n {\n stepx = -1;\n finalx = minx-1;\n tdeltax = -1.0/dx;\n tmaxx = (x-ox)/dx;\n }\n else if (dx > 0.0)\n {\n stepx = 1;\n finalx = maxx+1;\n tdeltax = 1.0/dx;\n tmaxx = (x+1-ox)/dx;\n }\n else\n {\n stepx = 0;\n finalx = 0;\n tdeltax = 0.0;\n tmaxx = Double.MAX_VALUE;\n }\n if (dy < 0.0)\n {\n stepy = -1;\n finaly = miny-1;\n tdeltay = -1.0/dy;\n tmaxy = (y-oy)/dy;\n }\n else if (dy > 0.0)\n {\n stepy = 1;\n finaly = maxy+1;\n tdeltay = 1.0/dy;\n tmaxy = (y+1-oy)/dy;\n }\n else\n {\n stepy = 0;\n finaly = 0;\n tdeltay = 0.0;\n tmaxy = Double.MAX_VALUE;\n }\n if (dz < 0.0)\n {\n stepz = -1;\n finalz = minz-1;\n tdeltaz = -1.0/dz;\n tmaxz = (z-oz)/dz;\n }\n else if (dz > 0.0)\n {\n stepz = 1;\n finalz = maxz+1;\n tdeltaz = 1.0/dz;\n tmaxz = (z+1-oz)/dz;\n }\n else\n {\n stepz = 0;\n finalz = 0;\n tdeltaz = 0.0;\n tmaxz = Double.MAX_VALUE;\n }\n\n // Step through the voxels, looking for intersections.\n\n VoxelOctree voxels = obj.getVoxels();\n byte values[] = new byte[8];\n while (true)\n {\n int index = x*width*width+y*width+z;\n if ((flags[index/32]&(1<<(index%32))) != 0)\n {\n // There is a piece of the surface in this voxel, so see if the ray intersects it.\n // First find the values of t at which the ray enters and exits it.\n \n double tenter = -Double.MAX_VALUE;\n double texit = Double.MAX_VALUE;\n if (dx != 0.0)\n {\n double t1 = (x-ox)/dx;\n double t2 = (x+1-ox)/dx;\n if (t1 < t2)\n {\n if (t1 > tenter)\n tenter = t1;\n if (t2 < texit)\n texit = t2;\n }\n else\n {\n if (t2 > tenter)\n tenter = t2;\n if (t1 < texit)\n texit = t1;\n }\n }\n if (dy != 0.0)\n {\n double t1 = (y-oy)/dy;\n double t2 = (y+1-oy)/dy;\n if (t1 < t2)\n {\n if (t1 > tenter)\n tenter = t1;\n if (t2 < texit)\n texit = t2;\n }\n else\n {\n if (t2 > tenter)\n tenter = t2;\n if (t1 < texit)\n texit = t1;\n }\n }\n if (dz != 0.0)\n {\n double t1 = (z-oz)/dz;\n double t2 = (z+1-oz)/dz;\n if (t1 < t2)\n {\n if (t1 > tenter)\n tenter = t1;\n if (t2 < texit)\n texit = t2;\n }\n else\n {\n if (t2 > tenter)\n tenter = t2;\n if (t1 < texit)\n texit = t1;\n }\n }\n if (tenter < 0.0)\n continue; // Ignore intersections in the voxel containing the origin.\n\n // Look up the values at the eight corners of the voxel.\n\n values[0] = voxels.getValue(x, y, z);\n values[1] = voxels.getValue(x, y, z+1);\n values[2] = voxels.getValue(x, y+1, z);\n values[3] = voxels.getValue(x, y+1, z+1);\n values[4] = voxels.getValue(x+1, y, z);\n values[5] = voxels.getValue(x+1, y, z+1);\n values[6] = voxels.getValue(x+1, y+1, z);\n values[7] = voxels.getValue(x+1, y+1, z+1);\n\n // Find the positions within the voxel where the ray enters and exits.\n\n double xenter = ox+dx*tenter-x;\n double yenter = oy+dy*tenter-y;\n double zenter = oz+dz*tenter-z;\n double xexit = ox+dx*texit-x;\n double yexit = oy+dy*texit-y;\n double zexit = oz+dz*texit-z;\n\n // Interpolate the find the values at those points.\n\n double enterValue = values[0]*(1.0-xenter)*(1.0-yenter)*(1.0-zenter)\n +values[1]*(1.0-xenter)*(1.0-yenter)*zenter\n +values[2]*(1.0-xenter)*yenter*(1.0-zenter)\n +values[3]*(1.0-xenter)*yenter*zenter\n +values[4]*xenter*(1.0-yenter)*(1.0-zenter)\n +values[5]*xenter*(1.0-yenter)*zenter\n +values[6]*xenter*yenter*(1.0-zenter)\n +values[7]*xenter*yenter*zenter;\n double exitValue = values[0]*(1.0-xexit)*(1.0-yexit)*(1.0-zexit)\n +values[1]*(1.0-xexit)*(1.0-yexit)*zexit\n +values[2]*(1.0-xexit)*yexit*(1.0-zexit)\n +values[3]*(1.0-xexit)*yexit*zexit\n +values[4]*xexit*(1.0-yexit)*(1.0-zexit)\n +values[5]*xexit*(1.0-yexit)*zexit\n +values[6]*xexit*yexit*(1.0-zexit)\n +values[7]*xexit*yexit*zexit;\n if ((enterValue > 0 && exitValue <= 0) || (enterValue <= 0 && exitValue > 0))\n {\n // Find the intersection point.\n\n double weight1 = Math.abs(exitValue);\n double weight2 = Math.abs(enterValue);\n double d = 1.0/(weight1+weight2);\n weight1 *= d;\n weight2 *= d;\n double tintersect = (tenter*weight1 + texit*weight2)/scale;\n if (normal != null)\n {\n normal.set(values[0]+values[1]+values[2]+values[3]-values[4]-values[5]-values[6]-values[7],\n values[0]+values[1]-values[2]-values[3]+values[4]+values[5]-values[6]-values[7],\n values[0]-values[1]+values[2]-values[3]+values[4]-values[5]+values[6]-values[7]);\n normal.normalize();\n }\n return tintersect;\n }\n }\n\n // Advance to the next voxel.\n\n if (tmaxx < tmaxy)\n {\n if (tmaxx < tmaxz)\n {\n x += stepx;\n if (x == finalx)\n return 0.0;\n tmaxx += tdeltax;\n }\n else\n {\n z += stepz;\n if (z == finalz)\n return 0.0;\n tmaxz += tdeltaz;\n }\n }\n else\n {\n if (tmaxy < tmaxz)\n {\n y += stepy;\n if (y == finaly)\n return 0.0;\n tmaxy += tdeltay;\n }\n else\n {\n z += stepz;\n if (z == finalz)\n return 0.0;\n tmaxz += tdeltaz;\n }\n }\n }\n }", "public void\nrayPick(SoRayPickAction action)\n//\n////////////////////////////////////////////////////////////////////////\n{\n\t if (!shouldRayPick(action)) return;\n\n\t SoMaterialBindingElement.Binding binding =\n\t SoMaterialBindingElement.get(action.getState());\n\n\t boolean materialPerPart =\n\t (binding == SoMaterialBindingElement.Binding.PER_PART ||\n\t binding == SoMaterialBindingElement.Binding.PER_PART_INDEXED);\n\n\t SoPick.sopick_pick_cube(this.width.getValue(),\n\t this.height.getValue(),\n\t this.depth.getValue(),\n\t materialPerPart ? SoPick.SOPICK_MATERIAL_PER_PART : 0,\n\t this, action);\n\t}", "Box(Box ob){ //passing object to constructor\n\t\twidth = ob.width;\n\t\theight = ob.height;\n\t\tdepth = ob.depth;\n\t\t}", "BoxX(double w, double h, double d) {\n width = w;\n height = h;\n depth = d;\n }", "private void drawBox() {\n GLES20.glEnable(GLES20.GL_SCISSOR_TEST);\n GLES20.glScissor(0, 0, 100, 100);\n GLES20.glClearColor(1.0f, 0.0f, 0.0f, 1.0f);\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);\n GLES20.glDisable(GLES20.GL_SCISSOR_TEST);\n }", "private void setUpCollisionBox()\n {\n \txLeftOffsetCollisionBox = width/COLLISION_WIDTH_DIV;\n \tcollisionBoxHeight = height - COLLISION_BOX_H_OFFSET;\n \n \tcollisionBox = new Rectangle(\n\t\t\t\t \t\txPos, \n\t\t\t\t \t\tyPos, \n\t\t\t\t \t\t(int)width / 2,\n\t\t\t\t \t\tcollisionBoxHeight);\n }", "public void addBox(String id, double dimX, double dimY, double dimZ, double x, double y, double z, Quaternion quat,\n\t String frameID) {\n\tCollisionObjectWrapper co = new CollisionObjectWrapper(id, Operation.ADD);\n\tco.setFrame(frameID, ZEROTIME);\n\tco.addPrimitiveBox(dimX, dimY, dimZ);\n\tco.addPose(x, y, z, quat);\n\taddCollisionObject(co);\n\thandle.logDebug(\"Add new object with key \" + id);\n }", "public void setAltHitbox() {\n // Change the hitbox only if this is a front wall\n if (isFrontWall()) {\n PolygonShape s = new PolygonShape();\n s.setAsBox(getWidth() / 2, getHeight() / 4, cache.set(0, getHeight() / 4), 0);\n shape = s;\n }\n }", "Box(Box ob)\n\t{\n\t\t//pass object to constructor\n\t\twidth = ob.width;\n\t\theight = ob.height;\n\t\tdepth = ob.depth;\n\t\t\n\t\t\n\t}", "private void generateBoxGeom()\n {\n // textures all share the same array, so process separately.\n textureBuffer = createBuffer(BOX_TEX_COORDS.length);\n textureBuffer.put(BOX_TEX_COORDS);\n textureBuffer.rewind();\n\n vertexBuffer = new FloatBuffer[6];\n normalBuffer = new FloatBuffer[6];\n\n for(int i = 0; i < 6; i++)\n {\n vertexBuffer[i] = createBuffer(12);\n normalBuffer[i] = createBuffer(12);\n }\n\n vertexBuffer[POSITIVE_X].put(RIGHT_BOX_COORDS);\n normalBuffer[POSITIVE_X].put(RIGHT_BOX_NORMALS);\n\n vertexBuffer[NEGATIVE_X].put(LEFT_BOX_COORDS);\n normalBuffer[NEGATIVE_X].put(LEFT_BOX_NORMALS);\n\n vertexBuffer[POSITIVE_Y].put(TOP_BOX_COORDS);\n normalBuffer[POSITIVE_Y].put(TOP_BOX_NORMALS);\n\n vertexBuffer[NEGATIVE_Y].put(BOTTOM_BOX_COORDS);\n normalBuffer[NEGATIVE_Y].put(BOTTOM_BOX_NORMALS);\n\n vertexBuffer[POSITIVE_Z].put(BACK_BOX_COORDS);\n normalBuffer[POSITIVE_Z].put(BACK_BOX_NORMALS);\n\n vertexBuffer[NEGATIVE_Z].put(FRONT_BOX_COORDS);\n normalBuffer[NEGATIVE_Z].put(FRONT_BOX_NORMALS);\n\n for(int i = 0; i < 6; i++)\n {\n vertexBuffer[i].rewind();\n normalBuffer[i].rewind();\n }\n }", "Box(double w, double h, double d) {\n\n widgh =w;\n height =h;\n depth =d;\n\n}", "void resetRectHitbox() {\n setRectHitbox(_w, _h);\n }", "public void update(float delta){\n\t\thitbox.x = sprite.getX();\n\t\thitbox.y = sprite.getY();\n\t}", "public void computeBoundingBox() {\n\taveragePosition = new Point3(center);\n tMat.rightMultiply(averagePosition);\n \n minBound = new Point3(Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY);\n maxBound = new Point3(Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY);\n // Initialize\n Point3[] v = new Point3[8];\n for (int i = 0; i < 8; i++)\n \tv[i] = new Point3(center);\n // Vertices of the box\n v[0].add(new Vector3(-radius, -radius, -height/2.0));\n v[1].add(new Vector3(-radius, radius, -height/2.0));\n v[2].add(new Vector3(radius, -radius, -height/2.0));\n v[3].add(new Vector3(radius, radius, -height/2.0));\n v[4].add(new Vector3(-radius, -radius, height/2.0));\n v[5].add(new Vector3(-radius, radius, height/2.0));\n v[6].add(new Vector3(radius, -radius, height/2.0));\n v[7].add(new Vector3(radius, radius, height/2.0));\n // Update minBound and maxBound\n for (int i = 0; i < 8; i++)\n {\n \ttMat.rightMultiply(v[i]);\n \tif (v[i].x < minBound.x)\n \t\tminBound.x = v[i].x;\n \tif (v[i].x > maxBound.x)\n \t\tmaxBound.x = v[i].x;\n \tif (v[i].y < minBound.y)\n \t\tminBound.y = v[i].y;\n \tif (v[i].y > maxBound.y)\n \t\tmaxBound.y = v[i].y;\n \tif (v[i].z < minBound.z)\n \t\tminBound.z = v[i].z;\n \tif (v[i].z > maxBound.z)\n \t\tmaxBound.z = v[i].z;\n }\n \n }", "public void addBox()\n {\n if(Student.sittingRia==false) {\n box = new BoxRia(\"chalkboard.png\",4,2);\n addObject(box,box.myRow,box.mySeat);\n chalk = new BoxRia(\"chalk.png\",0,0);\n addObject(chalk,2,3);\n }\n }", "public Ray(Point3D p0, Vector dir, Vector n) {\n if (n.dotProduct(dir) >= 0){\n Vector delta = n.scale(DELTA);\n _p0 = p0.add(delta);\n _dir = dir.normalized();\n }\n else{\n Vector delta = n.scale(-DELTA);\n _p0 = p0.add(delta);\n _dir = dir.normalized();\n }\n }", "public Ray(Point3D p0, Vector dir) {\n _p0 = p0;\n _dir = dir.normalized();\n }", "public void moveWithinScreen(ICollisionArea box) {\n\t\tif (box.isOutside(0, 0, getWidth(), getHeight())) {\t\t\t\n\t\t\tif (box.getMaxX() > getWidth()) {\n\t\t\t\tbox.move(new Vec2d(-(box.getMaxX() - getWidth()), 0));\n\t\t\t}\n\t\t\t\n\t\t\tif (box.getMinX() < 0) {\n\t\t\t\tbox.move(new Vec2d(-box.getMinX(), 0));\n\t\t\t}\n\t\t\t\n\t\t\tif (box.getMaxY() > getHeight()) {\n\t\t\t\tbox.move(new Vec2d(0, box.getMaxY() - getHeight()));\n\t\t\t}\n\t\t\t\n\t\t\tif (box.getMinY() < 0) {\n\t\t\t\tbox.move(new Vec2d(0, box.getMinY()));\n\t\t\t}\n\t\t}\n\t}", "@Override\n public MovingObjectPosition collisionRayTrace(World world, BlockPos pos, Vec3 vec0, Vec3 vec1) {\n this.setBlockBoundsBasedOnState(world, pos);\n vec0 = vec0.addVector((double)(-pos.getX()), (double)(-pos.getY()), (double)(-pos.getZ()));\n vec1 = vec1.addVector((double) (-pos.getX()), (double) (-pos.getY()), (double) (-pos.getZ()));\n Vec3 vec2 = vec0.getIntermediateWithXValue(vec1, this.minX);\n Vec3 vec3 = vec0.getIntermediateWithXValue(vec1, this.maxX);\n Vec3 vec4 = vec0.getIntermediateWithYValue(vec1, this.minY);\n Vec3 vec5 = vec0.getIntermediateWithYValue(vec1, this.maxY);\n Vec3 vec6 = vec0.getIntermediateWithZValue(vec1, this.minZ);\n Vec3 vec7 = vec0.getIntermediateWithZValue(vec1, this.maxZ);\n Vec3 vec8 = null;\n if (!this.isVecInsideYZBounds(world, pos, vec2)) {\n vec2 = null;\n }\n if (!this.isVecInsideYZBounds(world, pos, vec3)) {\n vec3 = null;\n }\n if (!this.isVecInsideXZBounds(world, pos, vec4)) {\n vec4 = null;\n }\n if (!this.isVecInsideXZBounds(world, pos, vec5)) {\n vec5 = null;\n }\n if (!this.isVecInsideXYBounds(world, pos, vec6)) {\n vec6 = null;\n }\n if (!this.isVecInsideXYBounds(world, pos, vec7)) {\n vec7 = null;\n }\n if (vec2 != null) {\n vec8 = vec2;\n }\n if (vec3 != null && (vec8 == null || vec0.squareDistanceTo(vec3) < vec0.squareDistanceTo(vec8))) {\n vec8 = vec3;\n }\n if (vec4 != null && (vec8 == null || vec0.squareDistanceTo(vec4) < vec0.squareDistanceTo(vec8))) {\n vec8 = vec4;\n }\n if (vec5 != null && (vec8 == null || vec0.squareDistanceTo(vec5) < vec0.squareDistanceTo(vec8))) {\n vec8 = vec5;\n }\n if (vec6 != null && (vec8 == null || vec0.squareDistanceTo(vec6) < vec0.squareDistanceTo(vec8))) {\n vec8 = vec6;\n }\n if (vec7 != null && (vec8 == null || vec0.squareDistanceTo(vec7) < vec0.squareDistanceTo(vec8))) {\n vec8 = vec7;\n }\n if (vec8 == null) {\n return null;\n } else {\n EnumFacing enumfacing = null;\n if (vec8 == vec3) {\n enumfacing = EnumFacing.WEST;\n }\n if (vec8 == vec2) {\n enumfacing = EnumFacing.EAST;\n }\n if (vec8 == vec3) {\n enumfacing = EnumFacing.DOWN;\n }\n if (vec8 == vec4) {\n enumfacing = EnumFacing.UP;\n }\n if (vec8 == vec5) {\n enumfacing = EnumFacing.NORTH;\n }\n if (vec8 == vec6) {\n enumfacing = EnumFacing.SOUTH;\n }\n return new MovingObjectPosition(vec8.addVector((double) pos.getX(), (double) pos.getY(), (double) pos.getZ()), enumfacing, pos);\n }\n }", "protected void setOrigin(Ray ray) {\n\t\tDirection origin = ray.getDirection().getOpposite();\n\t\tsetBeam(origin, ray);\n\t}", "Reflexion(final Ray ray, final Raytracer tracer){\n\t\tthis.ray = ray;\n\t\tthis.tracer = tracer;\n\t}", "@Override\n\tpublic void keyPressed(KeyEvent arg0) {\n\t\tif(arg0.getKeyChar() == 'w') {\n\t\t\trayY -= 10;\n\t\t\t\n\t\t}else if(arg0.getKeyChar() == 'a'){\n\t\t\trayX -= 10;\n\t\t\t\n\t\t}else if(arg0.getKeyChar() == 's') {\n\t\t\trayY += 10;\n\t\t\t\n\t\t}else if(arg0.getKeyChar() == 'd') {\n\t\t\trayX += 10;\n\t\t}else if (arg0.getKeyChar() == 'e') {\n\t\t\trayAngle += Math.PI / 36;\n\t\t}else if(arg0.getKeyChar() == 'q') {\n\t\t\trayAngle -= Math.PI / 36;\n\t\t}\n\t\t\n\t\tlightSource = new RayCenter(rayX, rayY, rayAngle);\n\t\trepaint();\n\t}", "public void turnSmaround()\n { \n Wall w= (Wall)getOneIntersectingObject(Wall.class);\n wX=w.getX();\n wY=w.getY();\n }", "@Override\n\tpublic void computeBBox(SoAction action, SbBox3f box, SbVec3f center) {\n\n\t}", "private Ray constructReflectedRay(Point3D point, Ray inRay, Vector n) {\n Vector v = inRay.getDir();\n /**If crossProduct with v from camera to n normal=0\n * so the camera eny way will not see the color because the ray goes to the side*/\n double vn = v.dotProduct(n);\n if (vn == 0) {\n return null;\n }\n /**will calculate the r*/\n Vector r = v.subtract(n.scale(2 * vn)); //𝒓=𝒗−𝟐∙𝒗∙𝒏∙𝒏\n return new Ray(point, r, n);\n }", "public Box(Vector3f center, float x, float y, float z)\n\t{\n\t\tsuper();\n\t\tupdateGeometry(center, x, y, z);\n\t}", "Box(double h, double w, Double d){\r\n\r\n Height = h;\r\n Width = w;\r\n Depth = d;\r\n }", "private void resetRayo() {\n rayo.setX(getWidth() / 2 - 10);\n rayo.setY(getHeight() - player.getHeight() - 50);\n }", "public HitBox(double x, double y, int width, int height){\n\t\trect = new Rectangle((int)x, (int)y, width, height);\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "Box(){\n System.out.println(\"constructing box\");\n width = 10;\n height = 10;\n depth = 10;\n}", "private Ray constructReflectedRay(Vector n, Point3D p, Ray l) { // hish\r\n\t\tVector _n = n;// normal at point\r\n\t\tVector _v = l.get_dir(); // direction of vector camera ->geometry\r\n\t\tdouble vn = _v.dotProduct(_n);\r\n\t\tif (vn == 0)\r\n\t\t\treturn null;\r\n\r\n\t\tVector _r = _v.add(_n.scale(-2 * vn));\r\n\t\treturn new Ray(p, _r, _n);\r\n\t}", "public HitBox (double x, double y, double width, double height, int id) {\n\t\tsuper(x, y, width, height);\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\tthis.id = id;\n\t}", "public static RayTraceResult checkForImpact(World world, Entity entity, Entity shooter, double hitBox, boolean flag) \r\n\t{\r\n\t\tVec3d vec3 = new Vec3d(entity.posX, entity.posY, entity.posZ);\r\n\t\tVec3d vec31 = new Vec3d(entity.posX + entity.motionX, entity.posY + entity.motionY, entity.posZ + entity.motionZ);\r\n\r\n\t\tRayTraceResult raytraceresult = world.rayTraceBlocks(vec3, vec31, false, true, false);\r\n\t\tvec3 = new Vec3d(entity.posX, entity.posY, entity.posZ);\r\n\t\tvec31 = new Vec3d(entity.posX + entity.motionX, entity.posY + entity.motionY, entity.posZ + entity.motionZ);\r\n\r\n\t\tif (raytraceresult != null) \r\n\t\t{\r\n\t\t\tvec31 = new Vec3d(raytraceresult.hitVec.x, raytraceresult.hitVec.y, raytraceresult.hitVec.z);\r\n\t\t}\r\n\r\n\t\tEntity target = null;\r\n\t\tList<Entity> list = world.getEntitiesWithinAABBExcludingEntity(entity, entity.getEntityBoundingBox().expand(entity.motionX, entity.motionY, entity.motionZ).expand(1.0D, 1.0D, 1.0D));\r\n\t\tdouble d0 = 0.0D;\r\n\t\t//double hitBox = 0.3D;\r\n\r\n\t\tfor (int i = 0; i < list.size(); ++i) \r\n\t\t{\r\n\t\t\tEntity entity1 = (Entity) list.get(i);\r\n\r\n\t\t\tif (entity1.canBeCollidedWith() && (entity1 != shooter || flag)) \r\n\t\t\t{\r\n\t\t\t\tAxisAlignedBB axisalignedbb = entity1.getEntityBoundingBox().expand(hitBox, hitBox, hitBox);\r\n\t\t\t\tRayTraceResult mop1 = axisalignedbb.calculateIntercept(vec3, vec31);\r\n\r\n\t\t\t\tif (mop1 != null) \r\n\t\t\t\t{\r\n\t\t\t\t\tdouble d1 = vec3.distanceTo(mop1.hitVec);\r\n\r\n\t\t\t\t\tif (d1 < d0 || d0 == 0.0D) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttarget = entity1;\r\n\t\t\t\t\t\td0 = d1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (target != null) \r\n\t\t{\r\n\t\t\traytraceresult = new RayTraceResult(target);\r\n\t\t}\r\n\r\n\t\tif (raytraceresult != null && raytraceresult.entityHit instanceof EntityPlayer) \r\n\t\t{\r\n\t\t\tEntityPlayer player = (EntityPlayer) raytraceresult.entityHit;\r\n\r\n\t\t\tif (player.capabilities.disableDamage || (shooter instanceof EntityPlayer\r\n\t\t\t\t\t&& !((EntityPlayer) shooter).canAttackPlayer(player)))\r\n\t\t\t{\r\n\t\t\t\traytraceresult = null;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn raytraceresult;\r\n\t}", "public Box(float x, float y, float z)\n\t{\n\t\tsuper();\n\t\tupdateGeometry(Vector3f.ZERO, x, y, z);\n\t}", "public void pin() {\n this.pin = new Vec(this.pos);\n }", "public void place(float x,float y){\n\t\tz=0.2f+Main.world.land.getHigh(Main.world.timeline.getTerra(),(int)x, (int)y);\r\n\t\tMain.world.contacts(this);\r\n\t\tz+=getTopObjects();\r\n\t\tplace(x,y,z);\r\n\t}", "public Box() {\t\t\t\t\n\t\tCrayon box[] = {new Crayon(10,Color.RED),new Crayon(10,Color.ORANGE),new Crayon(10,Color.YELLOW),new Crayon(10,Color.GREEN),new Crayon(10,Color.BLUE),new Crayon(10,Color.VIOLET),new Crayon(10,Color.BROWN),new Crayon(10,Color.BLACK)};\n\t\tcrayons = box;\n\t}", "protected void rotateHitBox(double mag) {\n\t\tint cX = (int) (getX() + centerX);\t\t//Returns the center of object \n\t\tint cY = (int) (getY() + centerY);\t\t//on the map, rather than the relative\n\t\t\t\t\t\t\t\t\t\t\t\t//centerX and centerY\n\t\tfor(int index = 0; index < hitBox.npoints; index++) {\n\t\t\tint x = hitBox.xpoints[index];\n\t\t\tint y = hitBox.ypoints[index];\n\t\t\t\n\t\t\thitBox.xpoints[index] = (int) (cX + (x - cX) * Math.cos(mag) - (y - cY) * Math.sin(mag));\n\t\t\thitBox.ypoints[index] = (int) (cY + (x - cX) * Math.sin(mag) + (y - cY) * Math.cos(mag));\n\t\t}\n\t}", "protected final void setBeam(Direction direction, Ray ray) {\n\t\tRay clone = ray.clone();\n\t\tBeam existing = getBeam(direction);\n\t\tif (existing != null) {\n\t\t\tclone.setColor(ImageUtils.mix(ray.getColor(), existing.getColor()));\n\t\t}\n\t\t// Prevent infinite cycles\n\t\tif (existing != null && clone.getColor().equals(existing.getColor())) {\n\t\t\tray.stop();\n\t\t} else {\n\t\t\tclone.setDirection(direction);\n\t\t\tbeams[direction.ordinal()] = clone;\n\t\t}\n\t}", "private Ray constructReflectedRay(Vector n, Point3D point, Ray ray) {\n Vector v = ray.getDirection();\n Vector r = null;\n try {\n r = v.subtract(n.scale(v.dotProduct(n)).scale(2)).normalized();\n }\n catch (Exception e) {\n return null;\n }\n return new Ray(point, r, n);\n }", "void resetHitboxCenter() {\n _hitboxCenter = new PVector(0, 0);\n }", "private void drive(int e) {\r\n if (endx[e] + 120 >= width - radius[e] && directionend[e] == 0) {\r\n endx[e] += 20;\r\n endy[e] -= 20;\r\n directionend[e]++;\r\n radius[e] -= 60;\r\n directionchanged[e] = true;\r\n } else if (endy[e] + 120 >= height - radius[e] && directionend[e] == 1) {\r\n\r\n endx[e] += 20;\r\n endy[e] += 20;\r\n directionend[e]++;\r\n radius[e] -= 60;\r\n directionchanged[e] = true;\r\n } else if (endx[e] - 120 <= radius[e] && directionend[e] == 2) {\r\n endx[e] -= 20;\r\n endy[e] += 20;\r\n radius[e] -= 60;\r\n directionend[e]++;\r\n directionchanged[e] = true;\r\n } else if (endy[e] - 80 <= radius[e] && directionend[e] == 3) {\r\n endx[e] -= 20;\r\n endy[e] -= 20;\r\n radius[e] -= 60;\r\n directionend[e] = 0;\r\n directionchanged[e] = true;\r\n } else {\r\n directionchanged[e] = false;\r\n }\r\n }", "public Tube(Ray axisRay, double radius) {\r\n\t\tthis.axisRay = axisRay;\r\n\t\tthis.radius = radius;\r\n\t}", "public void convert( int x, int y, Vector2f store ) {\n if ( lastXin == x && lastYin == y ) {\n store.x = lastXout;\n store.y = lastYout;\n }\n else {\n lastXin = x;\n lastYin = y;\n if ( getRenderQueueMode() == Renderer.QUEUE_ORTHO ) {\n //TODO: occlusion by other quads (JMEFrames)\n x = (int) ( x - getWorldTranslation().x + desktopWidth / 2 );\n y = (int) ( desktopHeight / 2 - ( y - getWorldTranslation().y ) );\n }\n else {\n store.set( x, y );\n DisplaySystem.getDisplaySystem().getWorldCoordinates( store, 0, pickRay.origin );\n DisplaySystem.getDisplaySystem().getWorldCoordinates( store, 0.3f, pickRay.direction ).subtractLocal( pickRay.origin ).normalizeLocal();\n\n applyWorld( bottomLeft.set( -width * 0.5f, -height * 0.5f, 0 ) );\n applyWorld( topLeft.set( -width * 0.5f, height * 0.5f, 0 ) );\n applyWorld( topRight.set( width * 0.5f, height * 0.5f, 0 ) );\n applyWorld( bottomRight.set( width * 0.5f, -height * 0.5f, 0 ) );\n\n if ( pickRay.intersectWherePlanarQuad( topLeft, topRight, bottomLeft, tuv ) ) {\n x = (int) ( ( tuv.y - 0.5f ) * width ) + desktopWidth / 2;\n y = (int) ( ( tuv.z - 0.5f ) * height ) + desktopHeight / 2;\n }\n else {\n x = -1;\n y = -1;\n }\n }\n lastYout = y;\n lastXout = x;\n\n store.set( x, y );\n }\n }", "@Override\r\n\tpublic void command() {\n\t\tShape r = new Rectangle(0, 0, p.getImage().getWidth(), p.getImage().getHeight());\r\n\t\tr.setCenterX(p.getLoc().x + dx);\r\n\t\tr.setCenterY(p.getLoc().y + dy);\r\n\t\tSystem.out.println(commandBlockType);\r\n\t\tif (!m.isColliding(r)) {\r\n\t\t\tp.setColliding(false);\r\n\t\t\tp.getLoc().x+=dx;\r\n\t\t\tp.getLoc().y+=dy;\r\n\t\t} else {\r\n\t\t\tp.setColliding(true);\r\n\t\t}\r\n\t}", "public Hit intersectsRay(Ray ray) {\n\t\tVector3D dst = Vector3D.sub(ray.b, pos);\n\t\tfloat B = dst.dot(ray.d);\n\t\tfloat C = dst.dot(dst) - radius2;\n\t\tfloat D = B*B - C;\n\t\tfloat t = (float) (-B - Math.sqrt(D));\n\t\tif (!(t > 0)) return null; // escape case: no collision or outside fov\n\t\tVector3D hitPos = Vector3D.add(ray.b, Vector3D.mult(ray.d, t));\n\t\tVector3D n = getNormal(hitPos);\n\t\treturn new Hit(this, t, hitPos, n);\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "private Ray constructRefractedRay(Vector n, Point3D p, Ray l) {\r\n\t\treturn new Ray(p, l.get_dir(), n);\r\n\t}", "protected abstract Vector3f place (Vector3f position);", "Box()\n\t{\n\t\twidth = -1; //use -1 to indicate an uninitialized box\n\t\theight = -1;\n\t\tdepth = -1;\n\t\t\n\t\t\n\t}", "private void circleCollison() {\n\t\t\n\t}", "public Rect getHitbox() {\n return hitbox;\n }", "public void translate(float x, float y){\n hitBox.offset(x, y);\n }", "void setHitboxCenter(float x, float y) {\n _hitboxCenter = new PVector(x, y);\n }", "public double rayIntersect(Vector3D rayOrigin, Vector3D rayDirection, boolean goingOut, int[] faceIndex, LinkedTransferQueue simVis) {\n double tmin = -1;\n int x = 0;\n int y = 1;\n int z = 2;\n int face = -1;\n if (java.lang.Math.abs(rayDirection.getNorm() - 1) > 1e-8) {\n System.out.println(\"direction not normalized in rayIntersect\");\n }\n\n double ox = rayOrigin.getX();\n double oy = rayOrigin.getY();\n double oz = rayOrigin.getZ();\n\n double dx = rayDirection.getX();\n double dy = rayDirection.getY();\n double dz = rayDirection.getZ();\n\n cacheVerticesAndFaces();\n// System.out.println(\"Checking part\" + this.part.name);\n int vis = this.mesh.getVertexFormat().getVertexIndexSize();\n\n for (int i = 0; i < faces.length; i += 6) {\n double t = Util.Math.rayTriangleIntersect(ox, oy, oz, dx, dy, dz,\n vertices[3 * faces[i] + x], vertices[3 * faces[i] + y], vertices[3 * faces[i] + z],\n goingOut ? vertices[3 * faces[i + 2 * vis] + x] : vertices[3 * faces[i + vis] + x],\n goingOut ? vertices[3 * faces[i + 2 * vis] + y] : vertices[3 * faces[i + vis] + y],\n goingOut ? vertices[3 * faces[i + 2 * vis] + z] : vertices[3 * faces[i + vis] + z],\n goingOut ? vertices[3 * faces[i + vis] + x] : vertices[3 * faces[i + 2 * vis] + x],\n goingOut ? vertices[3 * faces[i + vis] + y] : vertices[3 * faces[i + 2 * vis] + y],\n goingOut ? vertices[3 * faces[i + vis] + z] : vertices[3 * faces[i + 2 * vis] + z]\n );\n if (t != -1) {\n if (tmin != -1) {\n if (t < tmin) {\n tmin = t;\n face = i;\n }\n } else {\n tmin = t;\n face = i;\n }\n }\n }\n // report back the face index if asked for\n if (faceIndex != null) {\n faceIndex[0] = face;\n }\n\n return tmin;\n }", "@Test\n\tpublic void testCuatroEnRayaHorizontal() {\n\t\t\n\t\tint []posX = new int[4];\n\t\tint []posY = new int[4];\n\t\tfor (int x = 1; x <= 7 - 3; ++x) {\n\t\t\tfor (int y = 1; y <= 6; ++y) {\n\t\t\t\tfor (int l = 0; l < 4; ++l) {\n\t\t\t\t\tposX[l] = x + l;\n\t\t\t\t\tposY[l] = y;\n\t\t\t\t}\n\t\t\t\tpruebaCuatroEnRaya(posX, posY);\n\t\t\t}\n\t\t}\n\t}", "public void place(float x,float y,float z){\n\t\tthis.x=x;\r\n\t\tthis.y=y;\r\n\t\tthis.z=z;\r\n\t\tdx=x;\r\n\t\tdy=y;\r\n\t\tvz=0;\r\n\t\tvx=0;\r\n\t\tvy=0;\r\n\t}" ]
[ "0.6459433", "0.6325122", "0.63192636", "0.61826754", "0.6103133", "0.60392934", "0.59763783", "0.59763783", "0.59642726", "0.593302", "0.58729124", "0.58590364", "0.5832674", "0.5826679", "0.5788783", "0.57486045", "0.57222253", "0.5691557", "0.56729305", "0.56623524", "0.5628972", "0.5604917", "0.5586102", "0.5577419", "0.55676997", "0.55606896", "0.5557488", "0.5555286", "0.5550428", "0.5485898", "0.54707223", "0.5439723", "0.5429065", "0.5414639", "0.54117316", "0.5396078", "0.53809917", "0.53804183", "0.5374691", "0.53572816", "0.5344442", "0.5338841", "0.5324053", "0.53155375", "0.53143877", "0.5313455", "0.53114223", "0.5311293", "0.53074443", "0.5306339", "0.52942514", "0.5288404", "0.52723986", "0.52584285", "0.5252624", "0.5249014", "0.52390814", "0.52382743", "0.52376", "0.52275485", "0.52270055", "0.52232957", "0.5222473", "0.5221465", "0.52164084", "0.52063143", "0.5200306", "0.52002716", "0.51976913", "0.518903", "0.5187044", "0.5180159", "0.5176558", "0.5176286", "0.51746196", "0.51715124", "0.5145202", "0.5143946", "0.5142473", "0.51410884", "0.5139026", "0.51366764", "0.5130329", "0.5128244", "0.5107644", "0.5103076", "0.5099773", "0.5094618", "0.50852275", "0.5083169", "0.50827986", "0.5075151", "0.50646245", "0.50589085", "0.5053039", "0.50505376", "0.50474685", "0.5042241", "0.5041218", "0.5032702", "0.5031952" ]
0.0
-1
mService.clearGPSList(); FIXME clear the list somehow
@Override public void onReceive(Context context, Intent intent) { double latitude = intent.getDoubleExtra("Lat",0); double longitude = intent.getDoubleExtra("Lon",0); mService.onGPSReceived(latitude,longitude); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void clearAllLists() {\n this.pm10Sensors.clear();\n this.tempSensors.clear();\n this.humidSensors.clear();\n }", "@Override\r\n\tpublic ArrayList<Gps> getAllGpsLocation() {\n\t\treturn null;\r\n\t}", "void clearService();", "public void clearDeviceLists()\n {\n deviceList.clear();\n deviceMap.clear();\n adapter.notifyDataSetChanged();\n }", "public void resetLocation()\r\n {\r\n locations.clear();\r\n }", "public void clear(){\r\n MetersList.clear();\r\n }", "public synchronized void clear()\n\t{\n\t\tthis.mApList.clear();\n\t}", "public void clear()\r\n {\r\n phoneList = new ArrayList<String>();\r\n }", "public void stopUsingGPS() {\r\n if (locationManager != null) {\r\n // locationManager.removeUpdates(GPSTracker.this);\r\n }\r\n }", "private void unregisterForGPS() {\n Log.d(NAMAZ_LOG_TAG, \"unregisterForGPS:\");\n ((LocationManager) getSystemService(Context.LOCATION_SERVICE))\n .removeUpdates(qiblaManager);\n\n }", "public void stopUsingGPS(){\n if(locationManager != null){\n locationManager.removeUpdates(GPSManager.this);\n }\n }", "void unsetListOfServiceElements();", "public void clear(){\n\n \tlist = new ArrayList();\n\n }", "public void clearDetourStreet()\r\n {\r\n detour_streets = null;\r\n }", "public void EmptyList(){\n BusStopSearcherPresenter.setListview(initList(emptylist));\n }", "public void clear()\n {\n providerService = null;\n }", "public ArrayList<GPSLocation> getUnSynced(boolean isMax){\n return null;\n\n }", "@Override\r\n public void clearMarkers() {\r\n if (mMarkerList != null) {\r\n for (Marker marker : mMarkerList) {\r\n marker.remove();\r\n }\r\n mMarkerList.clear();\r\n }\r\n }", "public void clearLociLocus() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "public void stopUsingGPS() {\r\n if (locationManager != null) {\r\n try {\r\n locationManager.removeUpdates(GPSTracker.this);\r\n } catch (SecurityException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "public void clearLocusLocus() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "@Override\r\n\tprotected void onDestroy()\r\n\t{\n\t\tGPSLocation.removeLocation();\r\n\t\tsuper.onDestroy();\r\n\t}", "static void wipeLocations(){\n\t \tfor (int i= 0; i < places.length; i++){\n\t\t\t\tfor (int j = 0; j < places[i].items.size(); j++)\n\t\t\t\t\tplaces[i].items.clear();\n\t\t\t\tfor (int k = 0; k < places[i].receptacle.size(); k++)\n\t\t\t\t\tplaces[i].receptacle.clear();\n\t \t}\n\t \tContainer.emptyContainer();\n\t }", "public void clearOverlays();", "public void eraseOnClick(View view){\n mMap.clear();//clears the map\r\n points = new ArrayList<LatLng>();//resets the markers holder\r\n }", "public void clear() {\r\n\t\tCallResultMap map = getMap(false);\r\n\t\tif (map != null) {\r\n\t\t\tmap.clear();\r\n\t\t}\r\n\t}", "public void stopUsingGPS() {\n if (mLocationManager != null) {\n mLocationManager.removeUpdates(GpsLocationListener.this);\n }\n }", "public void reset()\r\n {\n if_list.removeAllElements();\r\n ls_db.reset();\r\n spf_root = null;\r\n vertex_list.removeAllElements();\r\n router_lsa_self = null;\r\n floodLastTime = Double.NaN;\r\n delayFlood = false;\r\n spf_calculation = 0;\r\n lsa_refresh_timer = null;\r\n }", "public void clearItems(){\n\t\tinnerItemShippingStatusList.clear();\n\t}", "public void clear(){\r\n NotesList.clear();\r\n }", "public void reset() {\n this.list.clear();\n }", "public void stopUsingGPS() {\n if (locationManager != null) {\n locationManager.removeUpdates(GPSTracker.this);\n }\n }", "@TargetApi(Build.VERSION_CODES.M)\n public void stopUsingGPS() {\n if (locationManager != null) {\n if (checkSelfPermission(android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && checkSelfPermission(android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // public void requestPermissions(@NonNull String[] permissions, int requestCode)\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for Activity#requestPermissions for more details.\n return;\n }\n // locationManager.removeUpdates(GPSTracker.this);\n }\n }", "public static void removeAllSensors() {\n\t\tmSensors.clear();\n\t}", "public void clearMarkers() {\n googleMap.clear();\n markers.clear();\n }", "public void clearLoci() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "private void refreshListView(ArrayList<MapPackage> list) {\n if (m_listAdapter != null) {\n m_listAdapter.clear();\n m_listAdapter.addAll(list);\n m_listAdapter.notifyDataSetChanged();\n } else {\n m_listAdapter = new MapListAdapter(m_activity, android.R.layout.simple_list_item_1,\n list);\n m_activity.setListAdapter(m_listAdapter);\n }\n m_currentMapPackageList = list;\n }", "private void stopPeriodicUpdates() {\n\t\tmLocationClient.removeLocationUpdates(this);\n\t\tmConnectionState.setText(R.string.location_updates_stopped);\n\t}", "public void clearList() {\n data.clear();\n notifyDataSetChanged();\n }", "public void clearAllPoints() {\n\t\tpoints.clear();\n\t\tnotifyListeners();\n\t}", "public void clearMapLayers() {\n if(internalNative != null) {\n internalNative.removeAllMarkers();\n markers.clear();\n } else {\n if(internalLightweightCmp != null) {\n internalLightweightCmp.removeAllLayers();\n points = null;\n } else {\n // TODO: Browser component \n }\n }\n }", "public void shutdown() {\n locationManager.removeUpdates(this);\n Log.i(TAG, \"GPS provider closed.\");\n }", "public void Reset()\n {\n this.list1.clear();\n }", "public void onStop(){mainActivity.locationManager.removeUpdates(mainActivity.locationListener);}", "public void unRegAll(){\n \t\t\n \t\tfor(ShopItem shopItem : itemList){\n \t\t\t//TODO: process more then one item at the same time.\n \t\t\t/*\n \t\t\tint position = shopItem.getShopPosition().getSlot();\n \t\t\tif(processedPositions.contains(position))\n \t\t\t\tcontinue;\n \t\t\tprocessedPositions.add(position);\n \t\t\tint amount = getItemAmount(position);\n \t\t\t*/\n \t\t\tint amount = 1;\n \t\t\tgetOwner().getClient().sendPacket(Type.U_SHOP, \"unreg\", 1, shopItem.getShopPosition().getSlot(), amount);\n \t\t\t\n \t\t\t//int[] freePosition = getOwner().getInventory().getFreeSlots(shopItem.getItem(), -1);\n \t\t\t//InventoryPosition inventoryPosition = new InventoryPosition(freePosition[1],freePosition[2],freePosition[0]);\n \t\t\t//InventoryItem inventoryItem = new InventoryItem(shopItem.getItem(),\tinventoryPosition);\n \t\t\t//getOwner().getInventory().addInventoryItem(inventoryItem);\n \t\t\tInventoryItem inventoryItem = getOwner().getInventory().storeItem(shopItem.getItem(), -1);\n \t\t\tgetOwner().getClient().sendPacket(Type.INVEN, inventoryItem, getOwner().getClient().getVersion());\n \t\t}\n \t\titemList.clear();\n \t}", "void clear() {\n\t\t// Initialize new empty list, clearing out old data\n\t\tmNewsList = new ArrayList<>();\n\t}", "public void clear() {\n\t\tlists.clear();\n\t}", "public void clearList() {\n\t\tdeletedList.clear();\n\t}", "public void clearAggroList()\n\t{\n\t\tgetAggroList().clear();\n\t}", "public void refresh(){\r\n\t \t//providerMap.clear();\r\n\t \trefresh(null);\r\n\t }", "@Override\r\n public void stopAll() {\r\n Log.d(TAG, \"Number of services: \"+ taskRequesterMap.size());\r\n Iterator<Map.Entry<String, TaskRequester>> iterator = taskRequesterMap.entrySet().iterator();\r\n while (iterator.hasNext()) {\r\n Map.Entry<String, TaskRequester> item = iterator.next();\r\n\r\n String name = item.getValue().getName();\r\n String className = item.getValue().getServiceClass().getName();\r\n\r\n// remove(className);\r\n item.getValue().unBind();\r\n Log.d(TAG, \"- \"+name+\" \"+className);\r\n// taskRequesterMap.remove(className);\r\n iterator.remove();\r\n serviceClasses.remove(new TaskModel(name, className, 1));\r\n// taskRequesterMap.remove(new TaskModel(name, className, 1));\r\n }\r\n }", "private void clearMockUpdates() {\n mockUpdates_ = emptyProtobufList();\n }", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "public static void clearTempProdList() {\r\n tempProductList.clear();\r\n }", "@Override\n public void onPause() {\n lm.removeUpdates(locationListener);\n super.onPause();\n }", "public void clear() {\n\t\tstringList = null;\n\t}", "public void clear() {\n mLeDevices.clear();\n }", "@Override\n public void onDestroy(){\n super.onDestroy();\n Log.i(TAG, \"Location Service has been destroyed\");\n stopLocationUpdates();\n stopSelf();\n }", "@SuppressWarnings(\"WeakerAccess\")\n protected void clearLocationClient() {\n synchronized (mClientLock) {\n mLocationClient = null;\n }\n }", "public void refresh() {\n/* 93 */ if (!this.initialized)\n/* 94 */ return; synchronized (this.o) {\n/* */ \n/* 96 */ this.wanService = null;\n/* 97 */ this.router = null;\n/* 98 */ this.upnpService.getControlPoint().search();\n/* */ } \n/* */ }", "protected void clear() {\n\n\t\tthis.myRRList.clear();\n\t}", "void clearMarkers()\n/* */ {\n/* 1019 */ synchronized (this) {\n/* 1020 */ this.typeAheadMarkers.clear();\n/* */ }\n/* */ }", "private void stopLocationUpdates() {\n if (!mRequestingLocationUpdates) {\n Log.e(TAG, \"stopLocationUpdates: updates never requested, no-op.\");\n return;\n }\n\n // It is a good practice to remove location requests when the activity is in a paused or\n // stopped state. Doing so helps battery performance and is especially\n // recommended in applications that request frequent location updates.\n mFusedLocationClient.removeLocationUpdates(mLocationCallback).addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n SunshinePreferences.setRequestUpdates(MainActivity.this, false);\n mRequestingLocationUpdates = false;\n }\n });\n }", "public void clearVariables()\n {\n if(arrayListPLPDetails!=null) {\n arrayListPLPDetails.clear();\n ProductListPageAdaptorNoView.SingletonInstance().updateData(false);\n }\n }", "@Override\n\tpublic void clearAll() {\n\t\t\n\t}", "public static void clearList(ArrayList<Student> sList){\n\t\tsList.clear();\n\t}", "public void clearList()\n\t{\n\t\tnodeManager.clearList();\n\t}", "public void clear()\n {\n getMap().clear();\n }", "@Override\n public void onReceiveLocation(BDLocation location) {\n if (location == null) {\n return;\n }\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n\n setListData();\n /*if (task != null) {\n task.cancel();\n task = null;\n }\n timer.cancel();*/\n locationClient.unRegisterLocationListener(myListener);\n locationClient.stop();\n }", "void unsetServiceConfigurationList();", "public void removeAllAgents()\n/* 76: */ {\n/* 77:125 */ this.mapPanel.removeAllAgents();\n/* 78: */ }", "public void removeLocationUpdates(View view) {\n Log.i(TAG, \"Removing location updates\");\n LocationRequestHelper.setRequesting(this, false);\n LocationServices.FusedLocationApi.removeLocationUpdates(mGoogleApiClient, getPendingIntent());\n }", "public void stopTrackingGeoPushes()\n\t{\n\t\tmContext.stopService(new Intent(mContext, GeoLocationService.class));\n\t}", "@Override protected void onStop() {\n\tsuper.onStop();\n\tm_locManager.removeUpdates(this);\n }", "public void clear(){\n listData.clear();\n notifyDataSetChanged();\n }", "public void clearAll()\r\n {\r\n if(measurementItems!=null) measurementItems.clear();\r\n itemsQuantity=(measurementItems!=null)?measurementItems.size():0;\r\n }", "public void clearItems(){\n items.clear();\n }", "private void refreshList() {\n\t\t\t\tlist.clear();\n\t\t\t\tGetChildrenBuilder childrenBuilder = client.getChildren();\n\t\t\t\ttry {\n\t\t\t\t\tList<String> listdir = childrenBuilder.forPath(servicezoopath);\n\t\t\t\t\tfor (String string : listdir) {\n\t\t\t\t\t\tbyte[] data = client.getData().forPath(servicezoopath + \"/\" + string);\n\t\t\t\t\t\tlist.add(new String(data));\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "public void clearAppointments(){\n appointments.clear();\n }", "public void reset() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.location.GpsClock.reset():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.reset():void\");\n }", "private void clearLists() {\r\n if (memoryLists == null) return;\r\n\r\n for (int i = 0; i < this.memoryLists.length; i++) {\r\n this.lastChanged[i] = -1;\r\n\r\n // clear list\r\n memoryLists[i].setModel(new DefaultListModel());\r\n }\r\n\r\n this.memoryBlocks = null;\r\n this.memoryLists = null;\r\n }", "public void clearAll() {\n\n\t\t// Removing the graphics from the layer\n\t\trouteLayer.removeAll();\n\t\t// hiddenSegmentsLayer.removeAll();\n\t\tmMapViewHelper.removeAllGraphics();\n\t\tmResults = null;\n\n\t}", "void unsetStation();", "void mo195a(List<LatLng> list) throws RemoteException;", "public void clearPartyList() {\n currentlyProcessingParties.clear();\n }", "@Override\n public void resetMap(){\n segmentList=new ArrayList<>();\n intersectionList=new ArrayList<>();\n this.setChanged();\n this.notifyObservers();\n }", "private void deleteSelectedWaypoints() {\r\n\t ArrayList<String> waypointsToRemove = new ArrayList<String>();\r\n\t int size = _selectedList.size();\r\n\t for (int i = _selectedList.size() - 1; i >= 0; --i) {\r\n boolean selected = _selectedList.get(i);\r\n if (selected) {\r\n waypointsToRemove.add(UltraTeleportWaypoint.getWaypoints().get(i).getWaypointName());\r\n }\r\n }\r\n\t UltraTeleportWaypoint.removeWaypoints(waypointsToRemove);\r\n\t UltraTeleportWaypoint.notufyHasChanges();\r\n\t}", "public void clear(){\n nyts.clear();\n notifyDataSetChanged();\n }", "private void clearLists() {\n\t\tobjects = new ArrayList<Entity>();\n\t\tenemies.clear();\n\t\titemList.clear();\n\t}", "private void reset() {\n //todo test it !\n longitude = 0.0;\n latitude = 0.0;\n IDToday = 0L;\n venVolToday = 0L;\n PM25Today = 0;\n PM25Source = 0;\n DBCanRun = true;\n DBRunTime = 0;\n isPMSearchRunning = false;\n isLocationChanged = false;\n isUploadRunning = false;\n refreshAll();\n locationInitial();\n DBInitial();\n sensorInitial();\n }", "public void removeAll() {\n/* 105 */ this.connectionToTimes.clear();\n/* */ }", "@Override\n public void refreshList() {\n }", "public void clear() {\n \tthis.listShapes.clear();\n }", "public void restProcessList() {\n listOfProcess.clear();\n }", "@Override\n public void refresh() {\n serverJList.removeAll();\n client.searchForServer();\n }", "public void clear() {\n\t\tpointList.clear();\n\t\tySum = 0;\n\t}", "private void refreshList()\n\t\t{\n\t\tint cpt = 0;\n\t\tthis.combo.removeAllItems();\n\t\tthis.listPort = meteoPort.findListPortSerie();\n\t\tif (listPort.size() > 0)\n\t\t\t{\n\t\t\tfor(String string:listPort)\n\t\t\t\t{\n\t\t\t\tif (!meteoPort.isStationMeteoAvailable(string, 1000))\n\t\t\t\t\t{\n\t\t\t\t\tcombo.addItem(string);\n\t\t\t\t\tcpt++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tif (cpt > 0)\n\t\t\t\t{\n\t\t\t\tbuttonValider.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\tbuttonValider.setEnabled(false);\n\t\t\t}\n\t\t}", "@Override\n protected void onPause() {\n super.onPause();\n providerClient.removeLocationUpdates(locationCallback);\n }", "public void updateTempList() {\n if (disableListUpdate == 0) {\n tempAdParts.clear();\n LatLngBounds bounds = mapboxMap.getProjection().getVisibleRegion().latLngBounds;\n iterator = AdParts.listIterator();\n while (iterator.hasNext()) {\n current = iterator.next();\n if (bounds.contains(current.getLatLng())) {\n tempAdParts.add(current);\n }\n }\n AdAdapter adapter = new AdAdapter(MainActivity.this, tempAdParts);\n listView.setAdapter(adapter);\n }\n }", "@Override\n public void onDirectionStart() {\n if (originMarkers != null) {\n for (Marker marker : originMarkers) {\n marker.remove();\n }\n }\n\n if (destinationMarkers != null) {\n for (Marker marker : destinationMarkers) {\n marker.remove();\n }\n }\n\n if (wayPointsMarkers != null) {\n for (Marker marker:wayPointsMarkers ) {\n marker.remove();\n }\n }\n\n if (polylinePaths != null) {\n for (Polyline polyline:polylinePaths ) {\n polyline.remove();\n }\n }\n\n\n }" ]
[ "0.6619012", "0.65868765", "0.63792527", "0.6300945", "0.62818056", "0.6273259", "0.62582624", "0.6254286", "0.6242141", "0.62418586", "0.6223254", "0.6192133", "0.6184383", "0.61443406", "0.6128806", "0.6101009", "0.6044097", "0.60410535", "0.60374135", "0.6037399", "0.5990743", "0.5986458", "0.59620786", "0.5961221", "0.5955082", "0.5952981", "0.59368825", "0.593652", "0.5927335", "0.5923088", "0.59217966", "0.5910856", "0.58730465", "0.5869766", "0.58670413", "0.5866706", "0.5846662", "0.5845405", "0.58422846", "0.58372974", "0.5820009", "0.58044744", "0.5801397", "0.5788871", "0.57861066", "0.57561135", "0.5754915", "0.57544506", "0.57539076", "0.5745738", "0.5726667", "0.57203853", "0.57086605", "0.57086605", "0.5702134", "0.5687955", "0.56861746", "0.568581", "0.5676053", "0.5669837", "0.56562924", "0.56510174", "0.56503266", "0.56473356", "0.564673", "0.56440884", "0.5626952", "0.56241816", "0.5623717", "0.56146115", "0.5611835", "0.56092817", "0.5603398", "0.56009436", "0.5597199", "0.55882627", "0.5587001", "0.55860174", "0.5583816", "0.5568521", "0.55539054", "0.5550101", "0.5548578", "0.554558", "0.55446714", "0.5538276", "0.55363107", "0.5534826", "0.5534546", "0.55295205", "0.5528757", "0.5527348", "0.5526385", "0.55209297", "0.5516367", "0.5512608", "0.55096054", "0.55066097", "0.549994", "0.5490329", "0.5488658" ]
0.0
-1