query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 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 Strin... | [
"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.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 }",... | [
"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.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 getExecut... | [
"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.54545... | 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 }",... | [
"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.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 getExecut... | [
"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.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();",... | [
"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.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 st... | [
"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.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();",... | [
"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.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;... | [
"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.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 getSta... | [
"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.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;... | [
"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.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;... | [
"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.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... | [
"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.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... | [
"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.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... | [
"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.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() {\... | [
"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.60472... | 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() {\... | [
"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.60472... | 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() {\... | [
"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.60472... | 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 r... | [
"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.67... | 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 r... | [
"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.67... | 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 r... | [
"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.67... | 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... | [
"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.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... | [
"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.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... | [
"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.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() ... | [
"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.53105... | 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 = parallelismC... | [
"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.53105... | 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 setParallel... | [
"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.531057... | 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 ... | [
"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.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 setSelectiveE... | [
"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.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 WorkflowExecu... | [
"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.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... | [
"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.7... | 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 Sy... | [
"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.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... | [
"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.483355... | 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()>3... | [
"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.499497... | 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(... | [
"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.57049... | 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.prepa... | [
"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.53871... | 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 a... | [
"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.... | 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 dan... | [
"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.503978... | 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;",
"publ... | [
"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.48691... | 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 national... | [
"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.541571... | 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 d... | [
"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.588... | 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... | [
"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.4810... | 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().executeUpdat... | [
"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.5533... | 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... | [
"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.640... | 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 }",
"pub... | [
"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.68556... | 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 ... | [
"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.48... | 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 // se... | [
"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.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 i... | [
"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.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 getExr... | [
"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.608016... | 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... | [
"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.66251... | 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: \" + getNa... | [
"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.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_... | [
"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.51116... | 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();",
... | [
"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.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 p... | [
"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.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 re... | [
"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.6692... | 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 ... | [
"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.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\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.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 IllegalArgumen... | [
"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.62... | 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.toStri... | [
"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.527395... | 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 ... | [
"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.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();",
... | [
"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.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, Fil... | [
"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.608385... | 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 s... | [
"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.732487... | 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 () ... | [
"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.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 \" + filenam... | [
"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.564572... | 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\t... | [
"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.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 foodIte... | [
"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.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\tpubli... | [
"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.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, ... | [
"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.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+\",\"+... | [
"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.5679... | 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 getExr... | [
"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.608016... | 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 ... | [
"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.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 getExr... | [
"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.608016... | 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 getExr... | [
"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.608016... | 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 getExr... | [
"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.608016... | 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 getExr... | [
"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.608016... | 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 getExr... | [
"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.608016... | 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 getExr... | [
"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.608016... | 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 getExr... | [
"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.608016... | 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();",
"p... | [
"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.59... | 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 ... | [
"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.5589... | 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(... | [
"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.7563... | 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 NoteM... | [
"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.581330... | 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 Coordi... | [
"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.55... | 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();",
"pu... | [
"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.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 passw... | [
"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.5694... | 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 Valida... | [
"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.595092... | 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().... | [
"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.589... | 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 getExr... | [
"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.608016... | 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 getExr... | [
"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.608016... | 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 getExr... | [
"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.608016... | 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\... | [
"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.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 xRightE... | [
"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.686165... | 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... | [
"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.59039... | 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 }",
"pr... | [
"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.56663... | 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 ... | [
"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.65073... | 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.... | [
"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.547... | 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]... | [
"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.591... | 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 ... | [
"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.56... | 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 deviceLi... | [
"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.59907... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.