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 |
|---|---|---|---|---|---|---|
Pick up any befores and add them to the corresponding after | private void addAftersFromBefores(
Map<AutoConfigurationClass, AutoConfigurationClass> map) throws IOException {
for (AutoConfigurationClass current : map.keySet()) {
for (AutoConfigurationClass before : current.getBefore()) {
if (map.containsKey(before)) {
map.get(before).getAfter().add(current);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAfter() {\r\n\t\t\tbasemapAfter = new HashMap<Location, SurfaceEntity>(surface.basemap);\r\n\t\t\tsurfaceAfter = new ArrayList<SurfaceFeature>(surface.features);\r\n\t\t\t\r\n\t\t\tbuildingmapAfter = new HashMap<Location, SurfaceEntity>(surface.buildingmap);\r\n\t\t\tbuildingsAfter = new ArrayList<B... | [
"0.62675005",
"0.5828237",
"0.5813104",
"0.5743138",
"0.5723147",
"0.56088793",
"0.55818087",
"0.54572034",
"0.5442388",
"0.53864247",
"0.530735",
"0.5287743",
"0.5271498",
"0.52537936",
"0.52336985",
"0.52316505",
"0.52207595",
"0.51780975",
"0.51634747",
"0.5149646",
"0.510... | 0.64666647 | 0 |
The engine type of an instance. | public void setEngine(String engine) {
this.engine = engine;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getInstanceType() {\n return this.instanceType;\n }",
"public String getInstanceType() {\n return this.InstanceType;\n }",
"public String getEngine() {\n return this.engine;\n }",
"@Override\r\n\tpublic String setEngineType() {\n\t\treturn null;\r\n\t}",
"public ... | [
"0.7205345",
"0.7041291",
"0.66722643",
"0.6671959",
"0.6618177",
"0.65922385",
"0.6552944",
"0.6381941",
"0.62831277",
"0.62811244",
"0.6259601",
"0.6246247",
"0.62416244",
"0.62342924",
"0.62214977",
"0.62214977",
"0.62214977",
"0.62214977",
"0.62214977",
"0.62214977",
"0.6... | 0.0 | -1 |
The engine type of an instance. | public String getEngine() {
return this.engine;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getInstanceType() {\n return this.instanceType;\n }",
"public String getInstanceType() {\n return this.InstanceType;\n }",
"@Override\r\n\tpublic String setEngineType() {\n\t\treturn null;\r\n\t}",
"public String getType() {\r\n return this.getClass().getName();\r\n ... | [
"0.7205345",
"0.7041291",
"0.6671959",
"0.6618177",
"0.65922385",
"0.6552944",
"0.6381941",
"0.62831277",
"0.62811244",
"0.6259601",
"0.6246247",
"0.62416244",
"0.62342924",
"0.62214977",
"0.62214977",
"0.62214977",
"0.62214977",
"0.62214977",
"0.62214977",
"0.62214977",
"0.6... | 0.66722643 | 2 |
The engine type of an instance. | public OrderableDBInstanceOption withEngine(String engine) {
setEngine(engine);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getInstanceType() {\n return this.instanceType;\n }",
"public String getInstanceType() {\n return this.InstanceType;\n }",
"public String getEngine() {\n return this.engine;\n }",
"@Override\r\n\tpublic String setEngineType() {\n\t\treturn null;\r\n\t}",
"public ... | [
"0.7205345",
"0.7041291",
"0.66722643",
"0.6671959",
"0.6618177",
"0.65922385",
"0.6552944",
"0.6381941",
"0.62831277",
"0.62811244",
"0.6259601",
"0.6246247",
"0.62416244",
"0.62342924",
"0.62214977",
"0.62214977",
"0.62214977",
"0.62214977",
"0.62214977",
"0.62214977",
"0.6... | 0.0 | -1 |
The engine version of an instance. | public void setEngineVersion(String engineVersion) {
this.engineVersion = engineVersion;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getEngineVersion() {\n return this.EngineVersion;\n }",
"public String getEngineVersion() {\n return this.engineVersion;\n }",
"@java.lang.Override\n public long getVersion() {\n return instance.getVersion();\n }",
"public String getVersion() {\n\t\treturn (... | [
"0.82618356",
"0.82538843",
"0.73992777",
"0.72141796",
"0.71521986",
"0.71521986",
"0.7139378",
"0.7139378",
"0.7139378",
"0.7139378",
"0.7125355",
"0.71189296",
"0.71179146",
"0.7110438",
"0.7106591",
"0.7102889",
"0.7102889",
"0.7102889",
"0.7102889",
"0.7102889",
"0.71028... | 0.0 | -1 |
The engine version of an instance. | public String getEngineVersion() {
return this.engineVersion;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getEngineVersion() {\n return this.EngineVersion;\n }",
"@java.lang.Override\n public long getVersion() {\n return instance.getVersion();\n }",
"public String getVersion() {\n\t\treturn (VERSION);\n\t}",
"public String getVersion()\n {\n return versi... | [
"0.826316",
"0.73999447",
"0.7215272",
"0.7153484",
"0.7153484",
"0.7140759",
"0.7140759",
"0.7140759",
"0.7140759",
"0.71266717",
"0.71202594",
"0.7119008",
"0.7111687",
"0.7107986",
"0.7104216",
"0.7104216",
"0.7104216",
"0.7104216",
"0.7104216",
"0.7104216",
"0.7104216",
... | 0.8255248 | 1 |
The engine version of an instance. | public OrderableDBInstanceOption withEngineVersion(String engineVersion) {
setEngineVersion(engineVersion);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getEngineVersion() {\n return this.EngineVersion;\n }",
"public String getEngineVersion() {\n return this.engineVersion;\n }",
"@java.lang.Override\n public long getVersion() {\n return instance.getVersion();\n }",
"public String getVersion() {\n\t\treturn (... | [
"0.826316",
"0.8255248",
"0.73999447",
"0.7215272",
"0.7153484",
"0.7153484",
"0.7140759",
"0.7140759",
"0.7140759",
"0.7140759",
"0.71266717",
"0.71202594",
"0.7119008",
"0.7111687",
"0.7107986",
"0.7104216",
"0.7104216",
"0.7104216",
"0.7104216",
"0.7104216",
"0.7104216",
... | 0.0 | -1 |
The instance class for an instance. | public void setDBInstanceClass(String dBInstanceClass) {
this.dBInstanceClass = dBInstanceClass;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected final Class<T> getInstanceClass() {\r\n return instanceClass;\r\n }",
"public String getInstanceType() {\n return this.InstanceType;\n }",
"public String getInstanceType() {\n return this.instanceType;\n }",
"public Class getInstanceClass()\n {\n return _cl;\n ... | [
"0.72966564",
"0.7148827",
"0.69888943",
"0.6615377",
"0.6585234",
"0.6585234",
"0.6571593",
"0.65398574",
"0.6403364",
"0.62725973",
"0.62095094",
"0.61514664",
"0.6139376",
"0.6118936",
"0.60448337",
"0.60243994",
"0.5963274",
"0.5916368",
"0.591454",
"0.5914012",
"0.587536... | 0.0 | -1 |
The instance class for an instance. | public String getDBInstanceClass() {
return this.dBInstanceClass;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected final Class<T> getInstanceClass() {\r\n return instanceClass;\r\n }",
"public String getInstanceType() {\n return this.InstanceType;\n }",
"public String getInstanceType() {\n return this.instanceType;\n }",
"public Class getInstanceClass()\n {\n return _cl;\n ... | [
"0.7296935",
"0.7149438",
"0.6989457",
"0.6614017",
"0.65835726",
"0.65835726",
"0.6569962",
"0.65394723",
"0.6401985",
"0.6273939",
"0.6208569",
"0.61512494",
"0.61375886",
"0.6119136",
"0.60432357",
"0.60235435",
"0.59625024",
"0.5914971",
"0.59131",
"0.59126747",
"0.587479... | 0.57713073 | 22 |
The instance class for an instance. | public OrderableDBInstanceOption withDBInstanceClass(String dBInstanceClass) {
setDBInstanceClass(dBInstanceClass);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected final Class<T> getInstanceClass() {\r\n return instanceClass;\r\n }",
"public String getInstanceType() {\n return this.InstanceType;\n }",
"public String getInstanceType() {\n return this.instanceType;\n }",
"public Class getInstanceClass()\n {\n return _cl;\n ... | [
"0.72966564",
"0.7148827",
"0.69888943",
"0.6615377",
"0.6585234",
"0.6585234",
"0.6571593",
"0.65398574",
"0.6403364",
"0.62725973",
"0.62095094",
"0.61514664",
"0.6139376",
"0.6118936",
"0.60448337",
"0.60243994",
"0.5963274",
"0.5916368",
"0.591454",
"0.5914012",
"0.587536... | 0.0 | -1 |
The license model for an instance. | public void setLicenseModel(String licenseModel) {
this.licenseModel = licenseModel;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getLicenseModel() {\n return this.licenseModel;\n }",
"public String getLicenseModel() {\n return this.licenseModel;\n }",
"License createLicense();",
"public String getLicense();",
"public T generateLicense();",
"public String getLicense() {\n\t\treturn license;\n\t}",
... | [
"0.7618346",
"0.7618346",
"0.6709685",
"0.66248995",
"0.6588645",
"0.64905804",
"0.64255077",
"0.6307273",
"0.62211394",
"0.61879486",
"0.61119884",
"0.6110484",
"0.6061245",
"0.6043535",
"0.60354227",
"0.6026548",
"0.60023063",
"0.5991724",
"0.5861731",
"0.5848968",
"0.58450... | 0.5966439 | 19 |
The license model for an instance. | public String getLicenseModel() {
return this.licenseModel;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"License createLicense();",
"public String getLicense();",
"public T generateLicense();",
"public String getLicense() {\n\t\treturn license;\n\t}",
"public LicenseType licenseType() {\n return this.licenseType;\n }",
"@Override\n\tpublic java.lang.String getLicense() {\n\t\treturn _scienceApp.ge... | [
"0.6709685",
"0.66248995",
"0.6588645",
"0.64905804",
"0.64255077",
"0.6307273",
"0.62211394",
"0.61879486",
"0.61119884",
"0.6110484",
"0.6061245",
"0.6043535",
"0.60354227",
"0.6026548",
"0.60023063",
"0.5991724",
"0.5966439",
"0.5966439",
"0.5861731",
"0.5848968",
"0.58450... | 0.7618346 | 1 |
The license model for an instance. | public OrderableDBInstanceOption withLicenseModel(String licenseModel) {
setLicenseModel(licenseModel);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getLicenseModel() {\n return this.licenseModel;\n }",
"public String getLicenseModel() {\n return this.licenseModel;\n }",
"License createLicense();",
"public String getLicense();",
"public T generateLicense();",
"public String getLicense() {\n\t\treturn license;\n\t}",
... | [
"0.7614696",
"0.7614696",
"0.670463",
"0.662068",
"0.6584389",
"0.64838284",
"0.6419541",
"0.6302018",
"0.6219783",
"0.6186901",
"0.6104834",
"0.61045825",
"0.60570574",
"0.60381085",
"0.60355896",
"0.60207367",
"0.6002727",
"0.5985738",
"0.5959642",
"0.5959642",
"0.58582103"... | 0.574795 | 28 |
A list of Availability Zones for an instance. | public java.util.List<AvailabilityZone> getAvailabilityZones() {
return availabilityZones;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<String> getAvailabilityZones() {\n final DescribeAvailabilityZonesResult result = ec2Client.describeAvailabilityZones();\n\n return result.getAvailabilityZones()\n .stream()\n .filter(az -> AvailabilityZoneState.Available == AvailabilityZoneState.fromValue(az... | [
"0.7084815",
"0.6897319",
"0.6565505",
"0.63283306",
"0.62772447",
"0.5948906",
"0.5906544",
"0.59015715",
"0.585526",
"0.5729348",
"0.57182986",
"0.5629987",
"0.55661833",
"0.55345285",
"0.5463757",
"0.53963506",
"0.5231484",
"0.5188546",
"0.51267165",
"0.50519156",
"0.50280... | 0.76387006 | 0 |
A list of Availability Zones for an instance. | public void setAvailabilityZones(java.util.Collection<AvailabilityZone> availabilityZones) {
if (availabilityZones == null) {
this.availabilityZones = null;
return;
}
this.availabilityZones = new java.util.ArrayList<AvailabilityZone>(availabilityZones);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.util.List<AvailabilityZone> getAvailabilityZones() {\n return availabilityZones;\n }",
"public List<String> getAvailabilityZones() {\n final DescribeAvailabilityZonesResult result = ec2Client.describeAvailabilityZones();\n\n return result.getAvailabilityZones()\n ... | [
"0.76387006",
"0.7084815",
"0.6897319",
"0.6565505",
"0.63283306",
"0.62772447",
"0.5948906",
"0.5906544",
"0.59015715",
"0.585526",
"0.5729348",
"0.57182986",
"0.5629987",
"0.55661833",
"0.55345285",
"0.5463757",
"0.53963506",
"0.5231484",
"0.51267165",
"0.50519156",
"0.5028... | 0.5188546 | 18 |
A list of Availability Zones for an instance. | public OrderableDBInstanceOption withAvailabilityZones(java.util.Collection<AvailabilityZone> availabilityZones) {
setAvailabilityZones(availabilityZones);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.util.List<AvailabilityZone> getAvailabilityZones() {\n return availabilityZones;\n }",
"public List<String> getAvailabilityZones() {\n final DescribeAvailabilityZonesResult result = ec2Client.describeAvailabilityZones();\n\n return result.getAvailabilityZones()\n ... | [
"0.76387006",
"0.7084815",
"0.6897319",
"0.6565505",
"0.63283306",
"0.62772447",
"0.5948906",
"0.5906544",
"0.59015715",
"0.585526",
"0.5729348",
"0.57182986",
"0.5629987",
"0.55345285",
"0.5463757",
"0.53963506",
"0.5231484",
"0.5188546",
"0.51267165",
"0.50519156",
"0.50280... | 0.55661833 | 13 |
Indicates whether an instance is in a virtual private cloud (VPC). | public void setVpc(Boolean vpc) {
this.vpc = vpc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean isVpc() {\n return this.vpc;\n }",
"public Boolean getVpc() {\n return this.vpc;\n }",
"public boolean isPrivate() {\n\t\t// refer to RFC 1918\n // 10/8 prefix\n // 172.16/12 prefix (172.16.0.0 – 172.31.255.255)\n // 192.168/16 prefix\n\t\tIPv4AddressSegm... | [
"0.76320183",
"0.70650345",
"0.58817446",
"0.573283",
"0.5578499",
"0.55653447",
"0.5562088",
"0.5538707",
"0.5522255",
"0.5522015",
"0.5492671",
"0.54849374",
"0.54849374",
"0.5468701",
"0.5445838",
"0.5431649",
"0.5371051",
"0.53440726",
"0.5313019",
"0.5292284",
"0.5257879... | 0.58615917 | 3 |
Indicates whether an instance is in a virtual private cloud (VPC). | public Boolean getVpc() {
return this.vpc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean isVpc() {\n return this.vpc;\n }",
"public boolean isPrivate() {\n\t\t// refer to RFC 1918\n // 10/8 prefix\n // 172.16/12 prefix (172.16.0.0 – 172.31.255.255)\n // 192.168/16 prefix\n\t\tIPv4AddressSegment seg0 = getSegment(0);\n\t\tIPv4AddressSegment seg1 = getSegm... | [
"0.76329935",
"0.5881183",
"0.586183",
"0.5734323",
"0.5579084",
"0.55668795",
"0.5562249",
"0.55389094",
"0.55236524",
"0.55223227",
"0.549452",
"0.5487",
"0.5487",
"0.5468406",
"0.5447209",
"0.5431732",
"0.5371548",
"0.5345777",
"0.5313495",
"0.5292314",
"0.5259099",
"0.5... | 0.70664066 | 1 |
Indicates whether an instance is in a virtual private cloud (VPC). | public OrderableDBInstanceOption withVpc(Boolean vpc) {
setVpc(vpc);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean isVpc() {\n return this.vpc;\n }",
"public Boolean getVpc() {\n return this.vpc;\n }",
"public boolean isPrivate() {\n\t\t// refer to RFC 1918\n // 10/8 prefix\n // 172.16/12 prefix (172.16.0.0 – 172.31.255.255)\n // 192.168/16 prefix\n\t\tIPv4AddressSegm... | [
"0.76329935",
"0.70664066",
"0.5881183",
"0.586183",
"0.5734323",
"0.5579084",
"0.55668795",
"0.5562249",
"0.55389094",
"0.55236524",
"0.55223227",
"0.549452",
"0.5487",
"0.5487",
"0.5468406",
"0.5447209",
"0.5431732",
"0.5371548",
"0.5345777",
"0.5313495",
"0.5292314",
"0.... | 0.0 | -1 |
Indicates whether an instance is in a virtual private cloud (VPC). | public Boolean isVpc() {
return this.vpc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean getVpc() {\n return this.vpc;\n }",
"public boolean isPrivate() {\n\t\t// refer to RFC 1918\n // 10/8 prefix\n // 172.16/12 prefix (172.16.0.0 – 172.31.255.255)\n // 192.168/16 prefix\n\t\tIPv4AddressSegment seg0 = getSegment(0);\n\t\tIPv4AddressSegment seg1 = getSeg... | [
"0.70664066",
"0.5881183",
"0.586183",
"0.5734323",
"0.5579084",
"0.55668795",
"0.5562249",
"0.55389094",
"0.55236524",
"0.55223227",
"0.549452",
"0.5487",
"0.5487",
"0.5468406",
"0.5447209",
"0.5431732",
"0.5371548",
"0.5345777",
"0.5313495",
"0.5292314",
"0.5259099",
"0.5... | 0.76329935 | 0 |
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 (getEngine() != null)
sb.append("Engine: ").append(getEngine()).append(",");
if (getEngineVersion() != null)
sb.append("EngineVersion: ").append(getEngineVersion())... | {
"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.8098381",
"0.80745107",
"0.80478597",
"0.80478597",
"0.8024881",
"0.79743415",
"0.793832",
"0.7928683",
"0.79089797",
"0.78955203",
"0.7782812",
"0.77820224",
"0.77686584",
"0.77678657",
"0.77678657",
"0.77678657",
"0.77552277",
"0.77281564",
"0.77215576",
"0.7674988",
"0.... | 0.0 | -1 |
Manipulates the map once available. This callback is triggered when the map is ready to be used. This is where we can add markers or lines, add listeners or move the camera. In this case, we just add a marker near Sydney, Australia. If Google Play services is not installed on the device, the user will be prompted to in... | @Override
public void onMapReady(GoogleMap googleMap) {
mMap = googleMap;
try {
Thread.sleep(1500);
} catch(InterruptedException e) {
}
for(int i = 0; i < crimes.size(); i++) {
LatLng currentCrime = new LatLng(crimes.get(i).getY(),crimes.get(i).getX(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Geocoder geoCoder = new Geocoder(getActivity(), Locale.getDefault());\n double lat, lng;\n try {\n List<Address> addresses = geoCoder.getFromLocationName(\"Western Sydney Paramatta, NSW\", 5);\n ... | [
"0.8188645",
"0.80436844",
"0.80375427",
"0.80331236",
"0.79985446",
"0.79775983",
"0.7958374",
"0.7958338",
"0.7954754",
"0.7943047",
"0.79370946",
"0.79312104",
"0.79154867",
"0.79054064",
"0.78896016",
"0.7885885",
"0.7885885",
"0.7885885",
"0.7885885",
"0.78778565",
"0.78... | 0.0 | -1 |
jhipsterneedleentityaddfield JHipster will add fields here, do not remove | public Long getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className,\n boolean id,\n boolean oneToOne, boolean oneToMany, boolean manyToOne, boolean manyToMany, String mapp... | [
"0.62933207",
"0.59871024",
"0.59345496",
"0.5807264",
"0.57005894",
"0.56254286",
"0.56229895",
"0.56043065",
"0.55907774",
"0.55277437",
"0.55270976",
"0.5502147",
"0.5449934",
"0.5449778",
"0.5448262",
"0.5438682",
"0.5421909",
"0.539829",
"0.5392975",
"0.5386786",
"0.5378... | 0.0 | -1 |
jhipsterneedleentityaddgetterssetters JHipster will add getters and setters here, do not remove | @Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof Aluno)) {
return false;
}
return id != null && id.equals(((Aluno) o).id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}",
"static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n i... | [
"0.6329455",
"0.610891",
"0.5659298",
"0.5650563",
"0.55329704",
"0.54645276",
"0.5463555",
"0.5449493",
"0.54340285",
"0.5415549",
"0.5387973",
"0.5379287",
"0.5350966",
"0.5341474",
"0.5335219",
"0.53296864",
"0.53243345",
"0.5322623",
"0.5316597",
"0.53026056",
"0.5292526"... | 0.0 | -1 |
if back key pressed | public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK) {
exitByBackKey();
//moveTaskToBack(false);
return true;
}
return super.onKeyDown(keyCode, event);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void keyBackIsPressed(){}",
"@Override\n\tpublic void onBackKeyPressed() {\n\treturn;\t\n\t}",
"boolean onBackPressed();",
"boolean onBackPressed();",
"public abstract boolean onBackPressed(boolean isSystemBackKey);",
"@Override\n\tpublic void onBackKeyPressed() {\n\t\treturn;\n\t}",
"@Override\... | [
"0.9017643",
"0.83087516",
"0.82532185",
"0.82532185",
"0.8245566",
"0.81942636",
"0.8132577",
"0.811118",
"0.80727655",
"0.805143",
"0.7987022",
"0.798598",
"0.7968275",
"0.79449403",
"0.7899813",
"0.7843795",
"0.7828293",
"0.77997255",
"0.77955896",
"0.7786488",
"0.77833503... | 0.7465658 | 48 |
do something when the button is clicked | public void onClick(DialogInterface arg0, int arg1) {
finish();
//close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buttonClicked();",
"public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }",
"void onClick();",
"@Override\n public void onClick() {\n System.out.println(\"Button has been JUST clicked\");\n }",
"public void clickButton()\n {\n fieldChangeNotify( 0 );\n ... | [
"0.83659005",
"0.7860193",
"0.7507122",
"0.7495925",
"0.7489409",
"0.7446174",
"0.7247451",
"0.7246808",
"0.72374195",
"0.7218735",
"0.7204995",
"0.7188983",
"0.7172201",
"0.71712196",
"0.71662635",
"0.71539545",
"0.7142477",
"0.7132691",
"0.7096822",
"0.7091243",
"0.7084697"... | 0.0 | -1 |
do something when the button is clicked | public void onClick(DialogInterface arg0, int arg1) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buttonClicked();",
"public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }",
"void onClick();",
"@Override\n public void onClick() {\n System.out.println(\"Button has been JUST clicked\");\n }",
"public void clickButton()\n {\n fieldChangeNotify( 0 );\n ... | [
"0.83659005",
"0.7860193",
"0.7507122",
"0.7495925",
"0.7489409",
"0.7446174",
"0.7247451",
"0.7246808",
"0.72374195",
"0.7218735",
"0.7204995",
"0.7188983",
"0.7172201",
"0.71712196",
"0.71662635",
"0.71539545",
"0.7142477",
"0.7132691",
"0.7096822",
"0.7091243",
"0.7084697"... | 0.0 | -1 |
do something when the screen is clicked we will handle click here ??? We don't know | public boolean onTouchEvent(MotionEvent event) {
int action = MotionEventCompat.getActionMasked(event);
// So we will make
switch (action) {
case (MotionEvent.ACTION_DOWN) :
// move when the screen is clicked
ImageView i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mouseClicked() {\n\t\tswitch(screen) {\n\t\t\n\t\t// Pantalla Home\n\t\tcase 0:\n\t\t\tif((mouseX > 529 && mouseY > 691) && (mouseX < 966 & mouseY < 867)) {\n\t\t\t\t//si hace click adentro del boton de jugar\n\t\t\t\tscreen = 1;\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Instrucciones\n\t\tcase 1... | [
"0.75153697",
"0.7372193",
"0.730201",
"0.7252486",
"0.71621335",
"0.70802265",
"0.704939",
"0.70369947",
"0.70369947",
"0.70369947",
"0.70274955",
"0.70011026",
"0.6994412",
"0.6982858",
"0.6977807",
"0.6959578",
"0.6950046",
"0.69213164",
"0.69213164",
"0.69213164",
"0.6921... | 0.0 | -1 |
Set the amount of that will be send. | @Override
public void setAmount(Asset amount) {
this.amount = setIfNotNull(amount, "The amount can't be null.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAmount(long amount);",
"public void setAmount(int amount) {\n this.amount = amount;\n }",
"public void sendBidLimit(int amount) {\n sendMessage(Prefix.BIDLIMIT, \"\" + amount);\n }",
"public void setRequestNum(int amount){\n requestNum = amount;\n }",
"private void se... | [
"0.6720042",
"0.6663275",
"0.665283",
"0.66360563",
"0.6523451",
"0.64990425",
"0.6496811",
"0.64308095",
"0.6426021",
"0.6392631",
"0.63444114",
"0.63371044",
"0.6310654",
"0.6304835",
"0.6304835",
"0.62990946",
"0.62781394",
"0.62404495",
"0.6216544",
"0.6196287",
"0.617359... | 0.0 | -1 |
Get the message added to this operation. | public String getMemo() {
return memo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getMessage() {\n return m_message;\n }",
"public V getMessage() {\n return this.message;\n }",
"public RequestMessage getMessage() {\r\n return message;\r\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getMsg() {\n return msg_;\n }",
... | [
"0.71597135",
"0.70067143",
"0.69934005",
"0.69697946",
"0.69672513",
"0.69531727",
"0.6933991",
"0.6916436",
"0.69143575",
"0.6907042",
"0.6907042",
"0.68832326",
"0.68747705",
"0.68491423",
"0.6841443",
"0.6840591",
"0.68396574",
"0.6837506",
"0.6837506",
"0.6837506",
"0.68... | 0.0 | -1 |
Add an additional message to this operation. | public void setMemo(String memo) {
this.memo = memo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Message addMessage(Message p);",
"public void addMessage(String message);",
"public void addMessage() {\n }",
"public void addMessage(String message) {\r\n returnObject.addMessage(message);\r\n }",
"public void addMessage(DataMessage message) {\n\t\tthis.tableModel.addMessage(message);\n\t\tt... | [
"0.7400346",
"0.73725355",
"0.7257968",
"0.7172168",
"0.6973567",
"0.6955206",
"0.68924266",
"0.6858645",
"0.6760787",
"0.66816807",
"0.66797304",
"0.6674286",
"0.6637691",
"0.65939224",
"0.6570964",
"0.6569299",
"0.65505797",
"0.65093744",
"0.64555013",
"0.6449801",
"0.64419... | 0.0 | -1 |
Recupera a mensagem de retorno do webservice. | public static String readResponse(HttpURLConnection request) throws IOException {
ByteArrayOutputStream os;
try (InputStream is = request.getInputStream()) {
os = new ByteArrayOutputStream();
int b;
while ((b = is.read()) != -1) {
os.write(b);
}
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getResponseMessage();",
"Object getMessage();",
"public int getMes();",
"@GET\n\t@Produces(\"text/plain\")\n\tpublic String getMessage() {\n\t\treturn MessageConstants.GET_MESSAGE;\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"@Override\n\t@POST\n\t@Pat... | [
"0.71022516",
"0.6231776",
"0.6177793",
"0.617501",
"0.61450106",
"0.61450106",
"0.61450106",
"0.61210567",
"0.61169773",
"0.61169773",
"0.61169773",
"0.61169773",
"0.61169773",
"0.61169773",
"0.61169773",
"0.61169773",
"0.61169773",
"0.61169773",
"0.61169773",
"0.61169773",
... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column province.provinceID | public Integer getProvinceid() {
return provinceid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getProvinceId() {\n return provinceId;\n }",
"public Integer getProvinceId() {\n return provinceId;\n }",
"public Integer getBankProvinceId() {\r\n return bankProvinceId;\r\n }",
"public Integer getProvince() {\n return province;\n }",
"public Integer ... | [
"0.7723724",
"0.7723724",
"0.70196134",
"0.6892926",
"0.6892926",
"0.6811651",
"0.6748194",
"0.6748194",
"0.6709205",
"0.6372171",
"0.63324237",
"0.63324237",
"0.62584513",
"0.62584513",
"0.62584513",
"0.6235261",
"0.6235261",
"0.6190382",
"0.6190382",
"0.6190382",
"0.6190382... | 0.7705678 | 3 |
This method was generated by MyBatis Generator. This method sets the value of the database column province.provinceID | public void setProvinceid(Integer provinceid) {
this.provinceid = provinceid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setProvinceId(Integer provinceId) {\n this.provinceId = provinceId;\n }",
"public void setProvince(Integer province) {\n this.province = province;\n }",
"public void setProvince(Integer province) {\n this.province = province;\n }",
"public void setProvince(String pro... | [
"0.7719032",
"0.7351124",
"0.7351124",
"0.69435954",
"0.69435954",
"0.68769836",
"0.68769836",
"0.68769836",
"0.68408835",
"0.68408835",
"0.6784336",
"0.6784336",
"0.67146754",
"0.63396406",
"0.6283594",
"0.62655336",
"0.62655336",
"0.62655336",
"0.62655336",
"0.62655336",
"0... | 0.76476175 | 2 |
This method was generated by MyBatis Generator. This method returns the value of the database column province.name | public String getName() {
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getProvinceName() {\n return provinceName;\n }",
"public String getProvince() {\r\n return province;\r\n }",
"public String getProvince() {\r\n return province;\r\n }",
"public String getProvince() {\r\n return province;\r\n }",
"public String getProvin... | [
"0.6821864",
"0.6459496",
"0.6459496",
"0.6459496",
"0.6393496",
"0.6393496",
"0.6393496",
"0.6393496",
"0.6393496",
"0.6393496",
"0.6393496",
"0.6224671",
"0.613362",
"0.613362",
"0.6111775",
"0.6111775",
"0.6066797",
"0.6066797",
"0.5986126",
"0.5986126",
"0.5890539",
"0.... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column province.name | public void setName(String name) {
this.name = name == null ? null : name.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setProvince(String province) {\r\n this.province = province;\r\n }",
"public void setProvince(String province) {\r\n this.province = province;\r\n }",
"public void setProvince(String province) {\n this.province = province;\n }",
"public void setProvince(String provin... | [
"0.6652027",
"0.6652027",
"0.65581053",
"0.65581053",
"0.65581053",
"0.65247715",
"0.6180304",
"0.6180304",
"0.6054092",
"0.6022637",
"0.6022637",
"0.6022637",
"0.6022637",
"0.6022637",
"0.5929485",
"0.59212285",
"0.5910889",
"0.58947843",
"0.58947843",
"0.5853189",
"0.582528... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column province.validFlag | public String getValidflag() {
return validflag;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getValidflag() {\n\t\treturn validflag;\n\t}",
"protected boolean getValidatedFlag() {\n createFlags();\n return flags[VALIDATED];\n }",
"public boolean isValidated(){\n return getValidatedFlag();\n }",
"public Integer getProvince() {\n return province;\n }",
"public ... | [
"0.61789334",
"0.55384016",
"0.5484181",
"0.5325267",
"0.5325267",
"0.53190416",
"0.53190416",
"0.53082746",
"0.5242894",
"0.5242894",
"0.52252114",
"0.5209769",
"0.5178944",
"0.5176134",
"0.5168829",
"0.5152712",
"0.51321995",
"0.51317936",
"0.5121828",
"0.5121828",
"0.51187... | 0.633246 | 1 |
This method was generated by MyBatis Generator. This method sets the value of the database column province.validFlag | public void setValidflag(String validflag) {
this.validflag = validflag == null ? null : validflag.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setValidflag(String validflag) {\n\t\tthis.validflag = validflag == null ? null : validflag.trim();\n\t}",
"public void insertSelective(HProvinceFb record) {\r\n getSqlMapClientTemplate().insert(\"H_PROVINCE_FB.ibatorgenerated_insertSelective\", record);\r\n }",
"public void setValid(bool... | [
"0.5770342",
"0.55217475",
"0.5413443",
"0.5395171",
"0.5338253",
"0.531533",
"0.5289632",
"0.5269184",
"0.52674985",
"0.522765",
"0.52025384",
"0.51911885",
"0.5182127",
"0.51484716",
"0.51484716",
"0.5129103",
"0.5126716",
"0.5126716",
"0.51027143",
"0.5055465",
"0.5055465"... | 0.57898134 | 1 |
This method was generated by MyBatis Generator. This method returns the value of the database column province.deliveryFee | public Float getDeliveryfee() {
return deliveryfee;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getDeliveryFee()\n {\n return deliveryFee;\n }",
"public BigDecimal getAgencyFee() {\r\n return agencyFee;\r\n }",
"public void setDeliveryFee(int deliveryFee)\n {\n this.deliveryFee = deliveryFee;\n }",
"BigDecimal getShipping();",
"public BigDecimal getFdeli... | [
"0.66306126",
"0.62115073",
"0.6165018",
"0.61131084",
"0.6075401",
"0.6031288",
"0.59706384",
"0.59147245",
"0.59136003",
"0.57611173",
"0.5723042",
"0.5685761",
"0.56804127",
"0.5633895",
"0.56333965",
"0.56083906",
"0.5582813",
"0.55319154",
"0.5526765",
"0.55045295",
"0.5... | 0.6647382 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column province.deliveryFee | public void setDeliveryfee(Float deliveryfee) {
this.deliveryfee = deliveryfee;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDeliveryFee(int deliveryFee)\n {\n this.deliveryFee = deliveryFee;\n }",
"public void setAgencyFee(BigDecimal agencyFee) {\r\n this.agencyFee = agencyFee;\r\n }",
"void setShipping(BigDecimal shipping);",
"public void setFee(BigDecimal fee) {\r\n this.fee = fee;\r... | [
"0.69587785",
"0.6516757",
"0.62346834",
"0.62275314",
"0.6203015",
"0.6126524",
"0.6075729",
"0.5876134",
"0.5834403",
"0.5824405",
"0.5695746",
"0.5671756",
"0.56571233",
"0.5633133",
"0.5599581",
"0.55815667",
"0.54892373",
"0.54748785",
"0.5471161",
"0.5327216",
"0.532548... | 0.6662486 | 1 |
This method was generated by MyBatis Generator. This method returns the value of the database column province.freeMinTotalPrice | public Float getFreemintotalprice() {
return freemintotalprice;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BigDecimal getFreeMoney() {\r\n return freeMoney;\r\n }",
"@Override\n\tpublic double getSumOfCost() {\n\t String sql=\"SELECT SUM(cost) FROM supplier_product\";\n\t double total=this.getJdbcTemplate().queryForObject(sql, double.class);\n\t\treturn total;\n\t}",
"public Number getEBookMinPri... | [
"0.57361686",
"0.5565127",
"0.5436829",
"0.5430884",
"0.5383975",
"0.524664",
"0.522696",
"0.5222499",
"0.5134603",
"0.51327324",
"0.5113987",
"0.51051015",
"0.50982636",
"0.5093124",
"0.5085655",
"0.50696486",
"0.50458974",
"0.5042061",
"0.50413364",
"0.50284106",
"0.5008891... | 0.4814685 | 44 |
This method was generated by MyBatis Generator. This method sets the value of the database column province.freeMinTotalPrice | public void setFreemintotalprice(Float freemintotalprice) {
this.freemintotalprice = freemintotalprice;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFreeMoney(BigDecimal freeMoney) {\r\n this.freeMoney = freeMoney;\r\n }",
"public void setBSCA_ProfitPriceLimitEntered (BigDecimal BSCA_ProfitPriceLimitEntered);",
"public void setPriceLimitOld (BigDecimal PriceLimitOld);",
"public void setBSCA_ProfitPriceLimit (BigDecimal BSCA_Profi... | [
"0.6024155",
"0.5337711",
"0.5266396",
"0.5230731",
"0.51338816",
"0.51059866",
"0.50607026",
"0.5037087",
"0.5020369",
"0.4986836",
"0.49810654",
"0.49417397",
"0.49374413",
"0.49371696",
"0.49369368",
"0.4926304",
"0.49250573",
"0.49031398",
"0.48863643",
"0.48779136",
"0.4... | 0.47120595 | 37 |
Sees if the lines connects at any point. | private boolean checkConnection(int x1, int x2) {
return (xStartValue <= x1 && xEndValue >= x1) || (xStartValue <= x2 && xEndValue >= x2) ||
(x1 <= xStartValue && x2 >= xStartValue) || (x1 <= xEndValue && x2 >= xEndValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean linesIntersect() {\n\t\twhile (true) {\n\t\t\t// for loop for the asteroid's lines\n\t\t\tfor (int i = 0; i < NUM_LINES; i++) {\n\t\t\t\t// for loop for the ship's lines\n\t\t\t\tfor (int j = 0; j < ship.shipOutLine().length; j++) {\n\t\t\t\t\tint o1 = orientation(outLine[i].getStart(),\n\t\t\t\t\t\... | [
"0.63059616",
"0.61851543",
"0.6181799",
"0.6113677",
"0.61068225",
"0.6094007",
"0.60789144",
"0.59793866",
"0.59679997",
"0.59392506",
"0.59303427",
"0.5921329",
"0.59130526",
"0.5899418",
"0.5842798",
"0.58220583",
"0.58076966",
"0.5796528",
"0.57819223",
"0.5754781",
"0.5... | 0.0 | -1 |
Merges a line if there is a connection. | public boolean mergeIfPossible(Line other) {
if (hasConnection(other)) {
this.xEndValue = xEndValue > other.xEndValue ? xEndValue : other.xEndValue;
this.xStartValue = xStartValue < other.xStartValue ? xStartValue : other.xStartValue;
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void merge(MutableAggregationBuffer buffer1, Row buffer2) {\n\t\tif (buffer1.getString(0) == null) {\n\t\t\tbuffer1.update(0, buffer2.getString(0));\n\t\t} else\n\t\t\tbuffer1.update(0, buffer1.getString(0) + \",\" + buffer2.getString(0));\n\n\t\tbuffer1.update(1, buffer1.getLong(1) + buffer2.g... | [
"0.5082458",
"0.50646955",
"0.5054914",
"0.5023501",
"0.49845207",
"0.4914364",
"0.48631942",
"0.47495708",
"0.4741233",
"0.47275877",
"0.47173485",
"0.47158638",
"0.46709183",
"0.4654393",
"0.4652463",
"0.4650483",
"0.4610864",
"0.46069172",
"0.4559051",
"0.4557483",
"0.4556... | 0.6148595 | 0 |
something that can hold resources | public interface IResourceCapacitor
{
/**
* extract resource from this capacitor
* @param type
* @param amount
* @return resource
*/
public Resource takeResource( Resource.Type type, int amount );
/**
* store this resource in the capacitor
* @param r
* @return may return leftover if capacitor can... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Resources() {\n this.currentImage = new Stack<>();\n this.imageCache = new LinkedHashMap<>();\n this.finished = false;\n this.name = null;\n }",
"boolean isHasResources();",
"public interface Reservation extends Closeable {\n \n boolean isSentinel();\n \n Resource... | [
"0.64687395",
"0.6146877",
"0.61312723",
"0.6122471",
"0.60962236",
"0.6083625",
"0.6083088",
"0.60807306",
"0.60314596",
"0.5878257",
"0.58729637",
"0.5848861",
"0.5827766",
"0.5816675",
"0.57624435",
"0.57571006",
"0.57461834",
"0.573022",
"0.57153744",
"0.57129973",
"0.570... | 0.6345024 | 1 |
extract resource from this capacitor | public Resource takeResource( Resource.Type type, int amount ); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface IResourceCapacitor\n{\n\t\n\t/**\n\t * extract resource from this capacitor\n\t * @param type\n\t * @param amount\n\t * @return resource\n\t */\n\tpublic Resource takeResource( Resource.Type type, int amount );\n\t\n\t/**\n\t * store this resource in the capacitor\n\t * @param r\n\t * @return may ... | [
"0.65802604",
"0.63220745",
"0.6302431",
"0.6292861",
"0.6258531",
"0.62553936",
"0.61995775",
"0.6178638",
"0.60779643",
"0.60524404",
"0.60504395",
"0.6017369",
"0.6004916",
"0.59508985",
"0.5929095",
"0.58456063",
"0.58102155",
"0.58029157",
"0.57291263",
"0.5728837",
"0.5... | 0.51309514 | 64 |
store this resource in the capacitor | public Resource storeResource( Resource r ); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void saveAttribute(URI resource, String attrName, Object attrValue)\n\t\t\tthrows StorageSecuirtyException, ResourceAccessException {\n\t\t\n\t}",
"public boolean put(PhysicalResource res)\n {\n resources.replace(res.getType(), (resources.get(res.getType()) + res.getQuantity()));\n ... | [
"0.58781606",
"0.57967234",
"0.57961553",
"0.5774288",
"0.5765851",
"0.5618981",
"0.55397254",
"0.5535451",
"0.5321283",
"0.53004897",
"0.52437633",
"0.52207065",
"0.51875",
"0.51737505",
"0.51589525",
"0.51570153",
"0.51532483",
"0.51332915",
"0.51214635",
"0.5108858",
"0.50... | 0.60590124 | 0 |
how much can this capacitor hold of this resource type? | public int getCapacity( Resource.Type type ); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCapacity( )\n {\n // Implemented by student.\n }",
"public interface IResourceCapacitor\n{\n\t\n\t/**\n\t * extract resource from this capacitor\n\t * @param type\n\t * @param amount\n\t * @return resource\n\t */\n\tpublic Resource takeResource( Resource.Type type, int amount );\n\t\n\t/**... | [
"0.70531946",
"0.690767",
"0.6781333",
"0.6652242",
"0.6650688",
"0.66463625",
"0.66344464",
"0.6611063",
"0.65386623",
"0.6494255",
"0.6490051",
"0.6488327",
"0.6440171",
"0.6423617",
"0.6330751",
"0.6300067",
"0.6297765",
"0.6279566",
"0.6272431",
"0.62574565",
"0.62544453"... | 0.79321885 | 0 |
set how much of resource this capacitor may hold. | public void setCapacity( Resource.Type type, int capacity ); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic StructureTownHallConfigRecord setResourceCapacity(Integer value) {\n\t\tsetValue(10, value);\n\t\treturn this;\n\t}",
"public void setCapacity(int value) {\n this.capacity = value;\n }",
"public Crate(int cap){\r\n capacity = cap;\r\n }",
"public void setCapacity(int c... | [
"0.7095397",
"0.70463943",
"0.66455156",
"0.6588505",
"0.6535848",
"0.64908665",
"0.64196897",
"0.64170045",
"0.6385857",
"0.6361588",
"0.6345842",
"0.63223666",
"0.63018376",
"0.62679404",
"0.61838937",
"0.61636204",
"0.6146818",
"0.61460495",
"0.6123039",
"0.61128247",
"0.6... | 0.6829585 | 2 |
how much of the resource type does this capacitor hold? | public int getContents( Resource.Type type ); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCapacity( Resource.Type type );",
"public interface IResourceCapacitor\n{\n\t\n\t/**\n\t * extract resource from this capacitor\n\t * @param type\n\t * @param amount\n\t * @return resource\n\t */\n\tpublic Resource takeResource( Resource.Type type, int amount );\n\t\n\t/**\n\t * store this resource... | [
"0.7572688",
"0.7012134",
"0.6524741",
"0.6308405",
"0.62951756",
"0.6288903",
"0.6267408",
"0.6266497",
"0.6140862",
"0.6129192",
"0.61098355",
"0.6085906",
"0.6022847",
"0.60087615",
"0.60046333",
"0.60031503",
"0.59993064",
"0.5996159",
"0.5995202",
"0.5963033",
"0.5955818... | 0.57441264 | 40 |
Constructor if the node contains an operand | public TreeNode(TreeNode left, TreeNode right, char operand){
this.left = left;
this.right = right;
this.operand = operand;
this.type = "op";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UnaryExpNode() {\n }",
"Operand createOperand();",
"Expression() { }",
"public OpTree(String theOp)\n\t{\n\t\tme = ++total;\n\t\tif (DEBUG) System.out.println(\"Terminal Op \" + me);\n\t\top = theOp;\n\t\tdval = null;\n\t\tleft = null;\n\t\tright = null;\n\t}",
"ExpOperand createExpOperand();",
... | [
"0.71415025",
"0.65767914",
"0.65030986",
"0.641356",
"0.6397596",
"0.636179",
"0.6326801",
"0.6313903",
"0.6221186",
"0.6219679",
"0.6206761",
"0.6123002",
"0.60621375",
"0.6053654",
"0.6046526",
"0.60266054",
"0.60098785",
"0.59886116",
"0.5974956",
"0.5909789",
"0.58939654... | 0.70454705 | 1 |
Constructor if the node contains a value | public TreeNode(TreeNode left, TreeNode right, double value){
this.left = left;
this.right = right;
this.value = value;
this.type = "num";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TreeNode(Object value)\r\n\t{\r\n\t\tthis(null, value);\r\n\t}",
"private Node(T value) {\n\t\t\tthis.value = value;\n\t\t}",
"public Node(T value) {\n\t\tthis.value = value;\n\t}",
"public Value() {}",
"public Node(T value) {\n this.value = value;\n }",
"public Value(){}",
"Node(E value... | [
"0.6852104",
"0.6806082",
"0.67328084",
"0.67223024",
"0.67175627",
"0.66246945",
"0.65936756",
"0.6574708",
"0.6482245",
"0.6466924",
"0.6454051",
"0.6410418",
"0.641022",
"0.63237685",
"0.6302341",
"0.6293969",
"0.6222623",
"0.6205736",
"0.6177444",
"0.6144206",
"0.61063176... | 0.5294974 | 96 |
Return either operand or value according to type | public String toString(){
String out="";
if (type == "op"){
return out + operand;
}
else{
return out + value ;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Operand<T> result();",
"public int getOperandType(String operand) {\n\t\t// empty\n\t\tif (operand == null) {\n\t\t\treturn Op.NULL;\n\t\t}\n\t\tif (operand.equals(\"\")) {\n\t\t\treturn Op.NULL;\n\t\t}\n\t\t// comma\n\t\tif (operand.equals(\",\")) {\n\t\t\treturn Op.COMMA;\n\t\t}\n\t\t// memory ... | [
"0.6659038",
"0.6420784",
"0.5970107",
"0.59579605",
"0.59362364",
"0.58638316",
"0.58527803",
"0.5833062",
"0.58305717",
"0.5775854",
"0.5770811",
"0.5757717",
"0.5746598",
"0.5745091",
"0.57398194",
"0.5707355",
"0.569436",
"0.566434",
"0.566434",
"0.566434",
"0.566434",
... | 0.0 | -1 |
Add JComponents to JPanel(GridLayout) | private void fillPanel(){
content.setLayout(new GridLayout(9,1));
content.setBackground(Color.BLACK);
content.add(playerNameLabel);
content.add(playerNameField);
content.add(placeHolder);
content.add(passwordLabel);
content.add(passwordField);
content.add(passwordLabelRepeat);
content.add(pas... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void addComponents() {\n JPanel contentPanel = new JPanel();\n contentPanel.setLayout(new GridBagLayout());\n GridBagConstraints c = new GridBagConstraints();\n c.insets = new Insets(5, 5, 5, 5);\n\n addFront(contentPanel, c);\n addBack(contentPanel, c);\n ... | [
"0.7330693",
"0.71358615",
"0.7081715",
"0.70385224",
"0.6982132",
"0.6934883",
"0.6928733",
"0.6908222",
"0.68911076",
"0.68753636",
"0.6835076",
"0.6824678",
"0.6819251",
"0.6796681",
"0.67802113",
"0.6741425",
"0.671907",
"0.6717373",
"0.67152816",
"0.67131346",
"0.6697955... | 0.6345394 | 41 |
write in a .txt | public int getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeToTextFile(String filename){\n try{\n FileWriter myWriter = new FileWriter(filename); \n myWriter.write(toString());\n myWriter.close();\n } \n catch(IOException e) { \n System.out.println(\"An error occurred.\"); \n e.pri... | [
"0.7396546",
"0.72886837",
"0.71788806",
"0.7166465",
"0.7031465",
"0.70111257",
"0.69960177",
"0.6992494",
"0.6977726",
"0.6967907",
"0.6916426",
"0.6913603",
"0.6901691",
"0.68958116",
"0.6888193",
"0.68760693",
"0.68407834",
"0.6797404",
"0.6761022",
"0.67587614",
"0.67542... | 0.0 | -1 |
An RDBMS relation tuple attributes header object. | public interface Header extends Tuple {
/**
* {@inheritDoc}
*/
@Override
default boolean equatable(Object obj) {
return obj instanceof Header;
}
/**
* Return an attribute by the given index position.
*
* @param index the index position of the value
* @return a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TupleHeader getHeader() {\n return header;\n }",
"public static String createArffHeader(String relName, ArrayList<Attribute> attributes){\n\n StringBuilder sb = new StringBuilder();\n sb.append(\"@relation \");\n sb.append(relName);\n sb.append(\"\\n\\n\");\n\n for(int i = ... | [
"0.68466324",
"0.6377745",
"0.5631331",
"0.5605293",
"0.55242956",
"0.5522074",
"0.5511182",
"0.5499293",
"0.5419316",
"0.54110956",
"0.5387286",
"0.5371293",
"0.52811885",
"0.52636737",
"0.5237484",
"0.52257866",
"0.5198122",
"0.5171699",
"0.5122866",
"0.5114583",
"0.5109689... | 0.7547105 | 0 |
Return the RDBMS data type of the relation attribute by the given name. | Type<?> get(String name); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"RelDataType getColumnType(String sql);",
"public String getDBType(String name)\n {\n if (attDBTypeList.containsKey(name))\n {\n return (String) attDBTypeList.get(name);\n }\n else\n {\n return null;\n }\n }",
"public IAttributeType<?> getAtt... | [
"0.691014",
"0.68041605",
"0.67210865",
"0.62513447",
"0.6225016",
"0.6122651",
"0.60560834",
"0.6037251",
"0.5939657",
"0.58575857",
"0.580797",
"0.57888013",
"0.57494164",
"0.5730947",
"0.5686753",
"0.56819415",
"0.5652508",
"0.5645504",
"0.56451255",
"0.5618914",
"0.555089... | 0.0 | -1 |
Return the width of the RDBMS relation. | @Override
int width(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Field(2) \n\tpublic int width() {\n\t\treturn this.io.getIntField(this, 2);\n\t}",
"public int realWidth() {\n return super.getRealWidth();\n }",
"public int width() {\n\t\treturn _width;\n\t}",
"public int width() {\n \treturn width;\n }",
"public int width() {\n return width;\n }",
"publ... | [
"0.69016176",
"0.686346",
"0.6805843",
"0.67803407",
"0.67773247",
"0.67762226",
"0.6770461",
"0.67645735",
"0.67645735",
"0.67645735",
"0.67452",
"0.6743655",
"0.67402405",
"0.6720875",
"0.6719391",
"0.670823",
"0.6706059",
"0.6701633",
"0.66468805",
"0.66409796",
"0.6640979... | 0.6497257 | 89 |
On click on generate button | @GFlotExamplesSource
@UiHandler( "generate" )
void onClickGenerate( ClickEvent e )
{
plot.getModel().removeAllSeries();
generateRandomData();
plot.redraw();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clickCreate() {\n\t\tbtnCreate.click();\n\t}",
"public void clickCreateButton() {\n this.action.click(this.createButton);\n }",
"@Override\n public void onGenerateButtonClicked() {\n\n String result;\n try {\n int c = Integer.parseInt(view.getEndpointTextViewVa... | [
"0.71549994",
"0.7152221",
"0.71241796",
"0.70689625",
"0.7031007",
"0.689646",
"0.68903655",
"0.6775592",
"0.6758842",
"0.6746141",
"0.6577693",
"0.65693426",
"0.6544292",
"0.6535456",
"0.65114963",
"0.6474538",
"0.64342314",
"0.6429775",
"0.64257365",
"0.64039344",
"0.63946... | 0.6575414 | 11 |
/ The constructor takes one or more promises that should be realized if the promise that the listener instance is listening in on is realized. | public ComposingPromiseListener(DeliverablePromise<T>... promises)
{
Collections.addAll(this.promises, promises);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addListener(PromiseListener promiseListener);",
"public Promise<V> addListener(GenericFutureListener<? extends Future<? super V>> listener)\r\n/* 97: */ {\r\n/* 98:133 */ if (listener == null) {\r\n/* 99:134 */ throw new NullPointerException(\"listener\");\r\n/* 100: */ }\r\n/* 101:... | [
"0.65402573",
"0.62060434",
"0.6024047",
"0.600075",
"0.59517354",
"0.58228385",
"0.5786081",
"0.57353634",
"0.57229674",
"0.56634784",
"0.5612546",
"0.548684",
"0.54486",
"0.5363254",
"0.5362609",
"0.53334135",
"0.5286835",
"0.52852094",
"0.52793986",
"0.5268516",
"0.5217376... | 0.68894386 | 0 |
/ If the promise that the listener is listening in on is fullfilled then all the promises that are subscribed to this listener are attempted to be fullfilled by this function. | @Override
public void whenfulfilled(T value) {
for(DeliverablePromise<T> promise: this.promises){
try{
promise.fulfillPromise(value);
}catch (PromiseRealizedException exception){
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void notifyListeners()\r\n/* 456: */ {\r\n/* 457:547 */ Object listeners = this.listeners;\r\n/* 458:548 */ if (listeners == null) {\r\n/* 459:549 */ return;\r\n/* 460: */ }\r\n/* 461:552 */ EventExecutor executor = executor();\r\n/* 462:553 */ if (executor.inEventLoop())\... | [
"0.5957602",
"0.5800863",
"0.5763844",
"0.5743785",
"0.5735054",
"0.5712083",
"0.56863505",
"0.56666374",
"0.5583663",
"0.5567089",
"0.5555599",
"0.5493187",
"0.5480315",
"0.54754823",
"0.5470551",
"0.54628175",
"0.54586446",
"0.54368556",
"0.54087263",
"0.5367739",
"0.536327... | 0.54316485 | 18 |
/ If the promise that the listener is listening in on is broken then all the promises that are subscribed to this listener are attempted to be broken by this function. | @Override
public void whenBroken(PromiseBrokenException promiseBrokenException) {
for(DeliverablePromise<T> promise: this.promises){
try{
promise.breakPromise(promiseBrokenException);
}catch (PromiseRealizedException exception){
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void brokenSubscription() {\n\t\t\n\t}",
"private void notifyLateListener(GenericFutureListener<?> l)\r\n/* 527: */ {\r\n/* 528:612 */ EventExecutor executor = executor();\r\n/* 529:613 */ if (executor.inEventLoop()) {\r\n/* 530:614 */ if ((this.listeners == null) && (this.... | [
"0.6685177",
"0.598204",
"0.584429",
"0.5793844",
"0.5769983",
"0.5769737",
"0.57095575",
"0.5580763",
"0.5524654",
"0.5513851",
"0.5505552",
"0.5502135",
"0.54999626",
"0.5469636",
"0.5370915",
"0.53487384",
"0.5345906",
"0.5329119",
"0.5304589",
"0.5289685",
"0.52814865",
... | 0.6081773 | 1 |
Creates a new CommunicationController object | public CommunicationController() {
_context = new Context("MyContext");
_app = UiApplication.getUiApplication();
try {
// Read settings from config.xml
ECHO_SERVER_URI = Utils.getEchoServerUri();
TIMEOUT = Utils.getTimeout();
} catch (final Exce... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Communicator createCommunicator();",
"@Override\r\n\tprotected ICardController createController() {\n\t\treturn new ClientCtrl();\r\n\t}",
"public SocketRpcController newRpcController() {\r\n return new SocketRpcController();\r\n }",
"public KVCommunicationModule createCommunicationModule(Socket so... | [
"0.6406704",
"0.6131408",
"0.5820594",
"0.57081115",
"0.56874406",
"0.5635445",
"0.56227326",
"0.55992526",
"0.5583897",
"0.5582695",
"0.55530137",
"0.5495808",
"0.54940313",
"0.54940313",
"0.54913837",
"0.5483971",
"0.5407697",
"0.53973395",
"0.53954715",
"0.5392002",
"0.532... | 0.5999951 | 2 |
Sends message to the provided URI using FireAndForget destination | public void sendFireForget(final String uriSenderStr) {
FireAndForgetDestination fireForgetDest = null;
try {
fireForgetDest =
(FireAndForgetDestination) DestinationFactory
.getSenderDestination(_context.getName(), URI
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void send(String message, String uri);",
"public void doNotify(String uri, T t) throws AbstractRequestException, AbstractClientRuntimeException {\n OmcpClient omcpClient = this.osirisConnectionFactory.getConnection();\n omcpClient.doNofity(uri, t);\n this.osirisConnectionFactory.closeConnect... | [
"0.6745159",
"0.6012666",
"0.5671293",
"0.55544215",
"0.5198009",
"0.512631",
"0.5083005",
"0.49168572",
"0.49129492",
"0.49129492",
"0.48931578",
"0.48874024",
"0.4884444",
"0.4884194",
"0.48461792",
"0.48306683",
"0.48225203",
"0.4819038",
"0.4814174",
"0.48097357",
"0.4796... | 0.7485996 | 0 |
Displays a popup dialog to the user with a given message | public static void alertDialog(final String message) {
_app.invokeLater(new Runnable() {
public void run() {
Dialog.alert(message);
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void popupMessage(String message) {\n\t\tJOptionPane.showMessageDialog(this, message, \"Error\", JOptionPane.ERROR_MESSAGE);\n\t}",
"private void showPopup(String title, String message)\n\t{\n\t\tJOptionPane.showMessageDialog(frmMPSWebServices, message, title, JOptionPane.PLAIN_MESSAGE);\n\t}",
"privat... | [
"0.7976344",
"0.7913662",
"0.77339065",
"0.772074",
"0.7619537",
"0.75553703",
"0.7464054",
"0.74399436",
"0.74041",
"0.73873603",
"0.73596495",
"0.72595716",
"0.7249399",
"0.72100204",
"0.720391",
"0.719416",
"0.71571493",
"0.7152026",
"0.70892185",
"0.7086137",
"0.7073032",... | 0.6892902 | 39 |
Construct a new BoxCursor to be used on a JPanel. | public CrosshairCursor( JPanel panel )
{
super( panel );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public WatercolorPane(FocusWidget cursor){\n this.cursor = cursor;\n }",
"public abstract Cursor getMouseCursor();",
"public Login() {\n initComponents();\n \n this.setIconImage(new ImageIcon(getClass().getResource(\"ico.png\")).getImage());\n Toolkit toolkit = Toolkit.g... | [
"0.5764166",
"0.56029296",
"0.55873436",
"0.55309",
"0.5508749",
"0.55032057",
"0.5498926",
"0.5493633",
"0.5483252",
"0.5471993",
"0.5464986",
"0.544357",
"0.5431565",
"0.5404016",
"0.53945947",
"0.53903013",
"0.5390259",
"0.5380052",
"0.5363326",
"0.5337029",
"0.5313045",
... | 0.68681896 | 0 |
This method draws a crosshair across the full panel, intersecting at a specified point. | public void draw( Graphics graphics, Point p1, Point p2 )
{
Rectangle rect = panel.getVisibleRect();
int min_x = rect.x;
int max_x = rect.x + rect.width;
int min_y = rect.y;
int max_y = rect.y + rect.height;
// only draw in region
if ( p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public CrosshairCursor( JPanel panel ) \n {\n super( panel );\n }",
"public void render(PApplet core) {\n\n super.render(core);\n\n mContext.crosshair.setTranslation(core.mouseX, core.mouseY);\n mContext.crosshair.render(core);\n\n }",
"@Override public void onMouseClick( Location ... | [
"0.6497614",
"0.61126214",
"0.5969399",
"0.56703085",
"0.56610763",
"0.5579018",
"0.55294037",
"0.549329",
"0.5437742",
"0.53833467",
"0.53703094",
"0.5332898",
"0.5315592",
"0.5297573",
"0.5295674",
"0.5293144",
"0.5293144",
"0.5293144",
"0.5293144",
"0.52908504",
"0.5285086... | 0.52195007 | 25 |
/ The use of hashCode is not enough to differenciate methods we override the hashCode The hashes are cached in a static for efficiency RO: WeakHashMap needed to support undeploy | public static long calculateHash(Method method)
{
Map<String, Long> methodHashes = methodHashesByName.get(method.getDeclaringClass());
if (methodHashes == null)
{
methodHashes = getInterfaceHashes(method.getDeclaringClass());
// Copy and add
WeakHashMap<C... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void rehash()\n {\n int hTmp = 37;\n\n if ( isHR != null )\n {\n hTmp = hTmp * 17 + isHR.hashCode();\n }\n\n if ( id != null )\n {\n hTmp = hTmp * 17 + id.hashCode();\n }\n\n if ( attributeType != null )\n {\n ... | [
"0.7461325",
"0.7282848",
"0.7244014",
"0.71731836",
"0.7158065",
"0.7158065",
"0.7158065",
"0.7138773",
"0.7100072",
"0.70944524",
"0.7087332",
"0.7085786",
"0.7077154",
"0.7075999",
"0.70299536",
"0.7023544",
"0.7021983",
"0.702183",
"0.7020213",
"0.7013986",
"0.7013672",
... | 0.0 | -1 |
Calculate method hashes. This algo is taken from RMI. | public static Map<String, Long> getInterfaceHashes(Class<?> intf)
{
// Create method hashes
Method[] methods = SecurityActions.getDeclaredMethods(intf);
HashMap<String, Long> map = new HashMap<String, Long>();
for (int i = 0; i < methods.length; i++)
{
Method method = me... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int calculateHash(final Method method) {\n int hash = 17;\n hash = (37 * hash) + method.getName().hashCode();\n for (int i = 0; i < method.getParameterTypes().length; i++) {\n Class type = method.getParameterTypes()[i];\n hash = (37 * hash) + type.getName().hashCode();\n }\n ... | [
"0.748947",
"0.7319864",
"0.6872738",
"0.6819384",
"0.6794119",
"0.67621505",
"0.6695204",
"0.6676891",
"0.6546683",
"0.6518998",
"0.64868134",
"0.6486491",
"0.6486491",
"0.64309365",
"0.6399975",
"0.6399975",
"0.63792396",
"0.63767743",
"0.63616425",
"0.6297429",
"0.6260492"... | 0.6374124 | 18 |
Initializes the controller class. | @Override
public void initialize(URL url, ResourceBundle rb) {
//esse passo ensina como as colunas devem receber os atributos do objeto cargo
//A propriedade nome deve coincidir com o nome do atributo da classe cargo
// colNome.setCellValueFactory(new PropertyValueFactory<>("nome"));
// ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}",
"public MainController() {\n\t\tcontroller = new Controller(this);\n\t}",
"public abstract void initController();",
"public Controller() {\n super();\n }",
"public Controller() {\n super();\n }",
"public Co... | [
"0.8125658",
"0.78537387",
"0.78320265",
"0.776199",
"0.776199",
"0.76010174",
"0.74497247",
"0.7437837",
"0.7430714",
"0.742303",
"0.74057597",
"0.7341963",
"0.7327749",
"0.72634363",
"0.72230434",
"0.7102504",
"0.70575505",
"0.69873077",
"0.69721675",
"0.6944077",
"0.691256... | 0.0 | -1 |
gives the string fto | public String getSerializedObj() {
String serializedObject = null;
// serialize the object
// format = file content,size,name
File f = this.fileObject;
serializedObject = f.getBody()+","+f.getFileSize()+","+f.getName();
return serializedObject;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getFmla();",
"public java.lang.String getF() {\n java.lang.Object ref = f_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n f_ = s;\n ... | [
"0.6621908",
"0.65636057",
"0.65456766",
"0.64741164",
"0.6180839",
"0.61587614",
"0.61556387",
"0.6096639",
"0.60864335",
"0.60611445",
"0.6027119",
"0.59196717",
"0.5858102",
"0.5846471",
"0.5822673",
"0.5759581",
"0.57461345",
"0.574565",
"0.56873876",
"0.56738484",
"0.567... | 0.0 | -1 |
Created by NXAC.unltd on 2016/05/07. | public interface ChauffeurService {
void addChauffeur(Context context, Chauffeur chauffeur);
void resetChauffeur(Context context);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"private stendhal() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Overri... | [
"0.5979707",
"0.5918614",
"0.59000206",
"0.580743",
"0.5803603",
"0.5780978",
"0.57457626",
"0.57432175",
"0.5740467",
"0.5740467",
"0.57035583",
"0.57023674",
"0.56888115",
"0.56876194",
"0.5663201",
"0.5645434",
"0.564019",
"0.5639998",
"0.56361836",
"0.56333333",
"0.563333... | 0.0 | -1 |
Spezifische Methoden fuer ShowRequests.class | public void setDistance(double distance) {
this.distance = distance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void viewPendingRequests() {\n\n\t}",
"@Override\n\tpublic String view_request() {\n\t\treturn null;\n\t}",
"void getRequests();",
"private void showRequestDetails() {\n\t\tlblExamID.setText(req.getExamID());\n\t\tlblDuration.setText(String.valueOf(req.getOldDur()));\n\t\tlblNewDuration.setText(Strin... | [
"0.71994936",
"0.6624036",
"0.6173156",
"0.615596",
"0.6082472",
"0.60621923",
"0.6003876",
"0.59220695",
"0.5844526",
"0.57356215",
"0.5735288",
"0.5679763",
"0.56548876",
"0.56518215",
"0.5650907",
"0.56367207",
"0.56287044",
"0.561522",
"0.55750626",
"0.5567944",
"0.556119... | 0.0 | -1 |
private int prepareCameraKachaId = 1; | public CameraSurfaceView(Context context, AttributeSet attrs) {
super(context, attrs);
init();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getCameraIdPref();",
"private native void iniciarCamara(int idCamera);",
"void setCameraIdPref(int cameraId);",
"void cameraSetup();",
"public void openCamera() {\n \n\n }",
"public void setCamera(int camera) {\n\t\tCameraInfo cameraInfo = new CameraInfo();\n\t\tint numberOfCameras = Camera... | [
"0.71865827",
"0.69948435",
"0.68115455",
"0.6110948",
"0.6004432",
"0.59142905",
"0.59082514",
"0.5895907",
"0.58354753",
"0.58308125",
"0.5824741",
"0.5824012",
"0.5822662",
"0.582154",
"0.5819162",
"0.5795481",
"0.5782828",
"0.57706416",
"0.5763842",
"0.5759361",
"0.575206... | 0.0 | -1 |
/ Method, which fills an ArrayList with Chars equivalent to the CheckBoxes checked by the user. | public void fillPasswordArrayListChars(ArrayList<String> passwordChars, boolean uppercaseOn, boolean lowercaseOn, boolean numbersOn, boolean specialsOn) {
passwordChars.clear();
if (uppercaseOn) {
for (int i = 0; i < uppercaseStrings.length; i++) {
passwordChars.add(upper... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ArrayList<String> getCheckboxes() {\n ArrayList<CheckBox> checkBoxes = new ArrayList<>();\n String[] names = {\"PNEU\",\"OIL\",\"BATTERY\",\"AC\",\"WIPER\",\"COMPLETE\",\"GEOMETRY\"}; //LINK NA DB ?\n checkBoxes.addAll(Arrays.asList(pneuCB, oilCB, batCB, acCB, wipCB, comCB, geoCB));\n ... | [
"0.6157241",
"0.60238427",
"0.57030207",
"0.55387944",
"0.55075973",
"0.54735106",
"0.5394762",
"0.5355311",
"0.53459173",
"0.53221864",
"0.5288513",
"0.52566785",
"0.5208016",
"0.51930326",
"0.5165609",
"0.51494825",
"0.51463675",
"0.51459324",
"0.51282346",
"0.5092376",
"0.... | 0.6862039 | 0 |
reading Chars and returning the String to be sent | public static String readChars(String res){
String mlResult="";
Scanner scanner = null;
try {
scanner = new Scanner(new File(res));
String NL = System.getProperty("line.separator");
boolean boolNL = true;
while (scanner.hasNextLine()){
if(boolNL){
String currLine=scanner.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String read()\n\t{\n\t\ttry\n\t\t{\n\t\t\tint startAt = 0;\n\t\t\tString tempRead = inFromClient.readLine();\n\t\t\t\n\t\t\t// Clear out any nonalphabetic characters from the input buffer if\n\t\t\t// the user has just connected.\n\t\t\tif (!hasReadOnce)\n\t\t\t{\n\t\t\t\tfor (int ctr = 0; ctr < tempRead.le... | [
"0.7390521",
"0.7152996",
"0.7006821",
"0.6875445",
"0.6875445",
"0.6850722",
"0.6823091",
"0.676598",
"0.6606724",
"0.6593342",
"0.6575828",
"0.65528727",
"0.6548166",
"0.6537426",
"0.65185094",
"0.6483626",
"0.6473281",
"0.64328164",
"0.6430483",
"0.6423187",
"0.641198",
... | 0.0 | -1 |
any nonweb file to be sent bytebybyte directly from here | public static void writeResponseBytes(String res, DataOutputStream ds){
try {
FileInputStream fstream = new FileInputStream(res);
DataInputStream in = new DataInputStream(fstream);
while (in.available() !=0){
ds.writeByte(in.readUnsignedByte());
}
in.close();
} catch (Exception e) {
e.pr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void sendFile(File file)\n {\n byte [] mybytearray = new byte [(int)file.length()];\n FileInputStream fis;\n try {\n \n fis = new FileInputStream(file);\n BufferedInputStream bis = new BufferedInputStream(fis);\n bis.read(mybytearray,0,myb... | [
"0.65531784",
"0.6353415",
"0.6146379",
"0.6049817",
"0.59344786",
"0.5916302",
"0.5913319",
"0.58960116",
"0.5861208",
"0.5860049",
"0.5784009",
"0.5782287",
"0.57738394",
"0.5748463",
"0.57478744",
"0.5727377",
"0.5703958",
"0.5655408",
"0.5638398",
"0.5627207",
"0.5593969"... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
int a[]= {1,3,5,7,9};
long sum =0, min=a[0],max=a[0];
for(int i=0;i<a.length;i++) {
sum = sum + a[i];
if(a[i]<min) min = a[i];
if(a[i]>max) max = a[i];
}
System.out.print(sum-max+" ");
System.out.print(sum-min);
} | {
"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 |
Creates an output string that will be built character by character | public String reverse(String input)
{
String outputt = "";
//Finds the length of the string input
int i = input.length();
if (input == "")
{
return outputt;
}
else
{
//Goes letter by letter building the string backwards
for (int c = 0; c < i; c++)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String buildOutput() {\n\t\tStringBuilder out = new StringBuilder();\n\t\tfor (char[] col : this.output) {\n\t\t\tfor (char c : col) {\n\t\t\t\tout.append(c);\n\t\t\t}\n\t\t\tout.append(\"\\n\");\n\t\t}\n\n\t\treturn out.toString();\n\t}",
"public static void m5() {\r\nfor(int i =1;i<=5;i++) {\r\n\tchar ... | [
"0.76628315",
"0.6170942",
"0.6162477",
"0.6118299",
"0.6114858",
"0.60887295",
"0.608276",
"0.60344166",
"0.5949478",
"0.5932916",
"0.5919913",
"0.5910471",
"0.5886689",
"0.58763266",
"0.5872451",
"0.5851347",
"0.5840229",
"0.58336794",
"0.5799124",
"0.579607",
"0.5792694",
... | 0.0 | -1 |
Default constructor for Patient Object | public Patient() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Patient() {\r\n\r\n\t}",
"public Patient (){\r\n }",
"public Patient() {\n }",
"public Patient() {\n this(DSL.name(\"patient\"), null);\n }",
"public Patient() {\n\t\tsuper();\n\t\t/*\n\t\t * TODO initialize lists\n\t\t */\n\t\ttreatments = Collections.emptyList();\n\t}",
"public Pa... | [
"0.8679283",
"0.8482447",
"0.84712297",
"0.8465741",
"0.80907536",
"0.7925196",
"0.74769694",
"0.73723215",
"0.7356474",
"0.73260325",
"0.7219725",
"0.72008663",
"0.70323133",
"0.70088077",
"0.69453555",
"0.6931426",
"0.6770768",
"0.67444885",
"0.6743735",
"0.67269796",
"0.67... | 0.8672604 | 1 |
Setter method for numConnections | public void setNumConnections(int connections) {
numConnects = connections;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setNumOfConnections(int num) {\r\n\t\tnumOfConnections = num;\r\n\t}",
"public int numConnections(){\n return connections.size();\n }",
"@Override\n public int getNumConnections()\n {\n return connections.size();\n }",
"public int getNumOfConnections() {\r\n\t\treturn nu... | [
"0.8469124",
"0.74871343",
"0.7481097",
"0.7479414",
"0.7329457",
"0.7155837",
"0.71349424",
"0.7025015",
"0.6996497",
"0.698717",
"0.693396",
"0.69337356",
"0.6841232",
"0.6816626",
"0.67001086",
"0.6683753",
"0.6673795",
"0.6556473",
"0.6486374",
"0.645934",
"0.64586157",
... | 0.80832726 | 1 |
Getter method for numConnects | public int getNumConnects() {
return numConnects;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getConnectionsCount();",
"Integer getConnectorCount();",
"public int numofConnections() {\n\t\tint numberofconnection = 0;\n\t\tString node;\n\t\tfor (String key : Nodeswithconnect.keySet()) {\n\t\t\tfor (int i = 0; i < Nodeswithconnect.get(key).length; i++) {\n\t\t\t\tnode = Nodeswithconnect.get(key)[i];\... | [
"0.7851731",
"0.7758408",
"0.7723552",
"0.7698637",
"0.7643761",
"0.75107205",
"0.73807144",
"0.7350051",
"0.73438",
"0.73401433",
"0.72752124",
"0.7255197",
"0.72365344",
"0.71889013",
"0.7126016",
"0.7121252",
"0.71007335",
"0.70127374",
"0.6953082",
"0.6919451",
"0.6877936... | 0.8750105 | 0 |
Overloaded constructor for Patient | public Patient(int ID, String name, int age,
String organ, BloodType bloodType, boolean isDonor) {
this.ID = ID;
this.name = name;
this.age = age;
this.organ = organ;
this.bloodType = bloodType;
this.isDonor = isDonor;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Patient() {\r\n\r\n\t}",
"public Patient() {\n\t\t\n\t}",
"public Patient (){\r\n }",
"public Patient() {\n }",
"public Patient() {\n this(DSL.name(\"patient\"), null);\n }",
"public Patient(String n, String type){\n name =\"Brendan\";\n pid = \"01723-X72312-7123\";\n ... | [
"0.8112838",
"0.80913943",
"0.8042849",
"0.8008747",
"0.7883567",
"0.77006555",
"0.76637393",
"0.7584227",
"0.74861777",
"0.7376181",
"0.7328536",
"0.7196046",
"0.71725464",
"0.71174836",
"0.7050448",
"0.70280606",
"0.6972638",
"0.6580196",
"0.65556276",
"0.652383",
"0.645933... | 0.61825246 | 27 |
Setter method for name | public void setName(String name) {
this.name = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setName(String name_);",
"@Override\n public void setName(String name) {\n \n }",
"public void setName (String Name);",
"public void setName (String Name);",
"public void setName (String Name);",
"public void setName(String name);",
"public void setName(String name);",
"public void ... | [
"0.8282013",
"0.81650007",
"0.8151324",
"0.8151324",
"0.8151324",
"0.81452775",
"0.81452775",
"0.81452775",
"0.81452775",
"0.81452775",
"0.81452775",
"0.81452775",
"0.81452775",
"0.81452775",
"0.81452775",
"0.81452775",
"0.81267774",
"0.81232303",
"0.80913305",
"0.80913305",
... | 0.0 | -1 |
Setter method for organ | public void setOrgan(String organ) {
this.organ = organ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getOrganId() {\n return organId;\n }",
"public String getOrgan() {\n\t\treturn this.organ;\n\t}",
"public void setOrganId(String organId) {\n this.organId = organId;\n }",
"public void setIdOrganizacion(int idOrganizacion)\r\n/* 95: */ {\r\n/* 96:126 */ this.idOrg... | [
"0.6849502",
"0.6811958",
"0.66121775",
"0.64585656",
"0.64074254",
"0.63740265",
"0.63616323",
"0.63306123",
"0.62561136",
"0.6247005",
"0.6170413",
"0.6003749",
"0.59696025",
"0.5918909",
"0.5884918",
"0.5810354",
"0.5810354",
"0.5810354",
"0.5810354",
"0.5810354",
"0.58103... | 0.74555933 | 0 |
Setter method for age | public void setAge(int age) {
this.age = age;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAge(int age) { this.age = age; }",
"protected void setAge(Age age) {\n this.age = age;\n }",
"public void setAge(int age)\r\n {\r\n this.age = age;\r\n }",
"public void setAge(int age){\n this.age = age;\n }",
"protected void setAge(int age) {\r\n\t\tthis.age... | [
"0.8528232",
"0.84681207",
"0.84507114",
"0.84442014",
"0.84403324",
"0.84176517",
"0.8380101",
"0.8380101",
"0.8380101",
"0.8380101",
"0.8380101",
"0.8380101",
"0.8374062",
"0.8289484",
"0.8275576",
"0.82683694",
"0.822879",
"0.8220089",
"0.8220089",
"0.8220089",
"0.8220089"... | 0.8179071 | 25 |
Setter method for bloodType | public void setBloodType(BloodType b) {
bloodType = b;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BloodType(String name){\r\n bloodType=name;\r\n }",
"public String getBloodType() {\r\n return bloodType;\r\n }",
"public String getBloodType()\n\t{\n\t\treturn bloodType;\n\t}",
"public BloodType getBloodType() {\n\t\treturn this.bloodType;\n\t}",
"public BloodType(){\r\n\r\n ... | [
"0.7791353",
"0.77790886",
"0.7770985",
"0.7267696",
"0.70200276",
"0.69839776",
"0.6307385",
"0.6107188",
"0.6062228",
"0.6030634",
"0.5892592",
"0.5804954",
"0.5711345",
"0.5637104",
"0.56048465",
"0.5599597",
"0.5578156",
"0.5577519",
"0.5577519",
"0.5577519",
"0.55706024"... | 0.8349752 | 0 |
Setter method for ID | public void setID(int ID) {
this.ID = ID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(int value) {\n \n id_ = value;\n }",
"public void setID(String idIn) {this.id = idIn;}",
"private void setId(Integer id) { this.id = id; }",
"public void setID(long id);",
"private void setId(int value) {\n \n id_ = value;\n }",
"public void setId(long id) { this.id... | [
"0.8310357",
"0.8299384",
"0.8263606",
"0.82576656",
"0.825342",
"0.81749123",
"0.81749123",
"0.817404",
"0.8160514",
"0.8127104",
"0.8125041",
"0.8125041",
"0.81213504",
"0.811648",
"0.8115904",
"0.8112189",
"0.8112189",
"0.8108596",
"0.8092832",
"0.80822134",
"0.8077665",
... | 0.0 | -1 |
Setter method for isDonor | public void setIsDonor(boolean isDonor) {
this.isDonor = isDonor;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean getIsDonor() {\n\t\treturn this.isDonor;\n\t}",
"public void setDonut(boolean value) {\n JsoHelper.setAttribute(jsObj, \"donut\", value);\n }",
"public void setDoor() {\n\t\tisaDoor = true;\n\t}",
"public String getDonorName() {\n return DonorName;\n }",
"public void setW... | [
"0.74423313",
"0.6294262",
"0.6124797",
"0.60642874",
"0.6008719",
"0.5931445",
"0.58695376",
"0.5854008",
"0.5814952",
"0.5781616",
"0.57592475",
"0.57128495",
"0.57055235",
"0.5687934",
"0.5665586",
"0.56529856",
"0.562964",
"0.56087023",
"0.5571101",
"0.55272335",
"0.55186... | 0.7910116 | 0 |
Getter method for this.name | public String getName() {
return this.name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected String getName(){\r\n return this.name;\r\n }",
"public String getName() { return this.name; }",
"public String getName() { return this.name; }",
"public String getName() { return this.name; }",
"public String getName() {\n return (this.name);\n }",
"String getName() {\r\n\t\t\tre... | [
"0.8605721",
"0.84503967",
"0.84503967",
"0.84503967",
"0.84418046",
"0.8380445",
"0.83728296",
"0.8366915",
"0.83511305",
"0.83370024",
"0.8335976",
"0.8331229",
"0.83288395",
"0.83210945",
"0.83188146",
"0.8316361",
"0.831084",
"0.82989514",
"0.8293895",
"0.8292872",
"0.829... | 0.0 | -1 |
Getter method for organ | public String getOrgan() {
return this.organ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getOrganId() {\n return organId;\n }",
"String getOrganization();",
"public String getOrganization ()\n {\n return this.organization;\n }",
"public abstract List<Organism> getOrganisms();",
"public void setOrgan(String organ) {\n\t\tthis.organ = organ;\n\t}",
"public ... | [
"0.7394373",
"0.70453024",
"0.68602324",
"0.6615449",
"0.65924174",
"0.65573967",
"0.65573967",
"0.65044224",
"0.6494452",
"0.6471519",
"0.64135045",
"0.6364113",
"0.6360822",
"0.6257925",
"0.6246171",
"0.6241589",
"0.6227973",
"0.6221997",
"0.61901414",
"0.6156827",
"0.61466... | 0.7788837 | 0 |
Getter method for age | public int getAge() {
return this.age;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getAge() {\r\n return age;\r\n }",
"public Integer getAge() {\r\n return age;\r\n }",
"public Integer getAge() {\n return age;\n }",
"public Integer getAge() {\n return age;\n }",
"public Integer getAge() {\n return age;\n }",
"public Integer g... | [
"0.8719135",
"0.8702609",
"0.8660082",
"0.8660082",
"0.8660082",
"0.8660082",
"0.8660082",
"0.86574227",
"0.86574227",
"0.86574227",
"0.86574227",
"0.86574227",
"0.86574227",
"0.86574227",
"0.86574227",
"0.86281747",
"0.86278164",
"0.86264706",
"0.86264706",
"0.86264706",
"0.... | 0.8402692 | 50 |
Getter method for bloodType | public BloodType getBloodType() {
return this.bloodType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getBloodType() {\r\n return bloodType;\r\n }",
"public String getBloodType()\n\t{\n\t\treturn bloodType;\n\t}",
"public BloodType getPatientBloodType() {\r\n\t\treturn bloodtype;\r\n\t}",
"public void setBloodType(BloodType b) {\n\t\tbloodType = b;\n\t}",
"public BloodType(String na... | [
"0.8718728",
"0.86793077",
"0.79395926",
"0.7307857",
"0.72132313",
"0.69691426",
"0.6855606",
"0.6746665",
"0.6333556",
"0.6297621",
"0.6210538",
"0.6098937",
"0.6086725",
"0.60496116",
"0.5957553",
"0.5922703",
"0.588743",
"0.588743",
"0.58265656",
"0.5809865",
"0.5805973",... | 0.8245806 | 2 |
Getter method for ID | public int getID() {
return this.ID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.... | [
"0.8611799",
"0.8611799",
"0.8611799",
"0.8611799",
"0.8611799",
"0.8611799",
"0.8611799",
"0.8611799",
"0.8611799",
"0.8611799",
"0.8611799",
"0.8611799",
"0.8611799",
"0.8611799",
"0.8611799",
"0.8611799",
"0.8611799",
"0.8611799",
"0.8611799",
"0.8598263",
"0.8448111",
"... | 0.0 | -1 |
Getter method for isDonor | public boolean getIsDonor() {
return this.isDonor;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasDonator();",
"public String getDonorName() {\n return DonorName;\n }",
"public boolean hasDonator() {\n return donatorBuilder_ != null || donator_ != null;\n }",
"public void setIsDonor(boolean isDonor) {\n\t\tthis.isDonor = isDonor;\n\t}",
"public boolean has... | [
"0.72977966",
"0.7077605",
"0.69858086",
"0.6967699",
"0.68101954",
"0.66292214",
"0.6575868",
"0.64422035",
"0.6352603",
"0.6216591",
"0.6216591",
"0.6209793",
"0.6185372",
"0.61851645",
"0.6169156",
"0.61687934",
"0.60833806",
"0.60334903",
"0.6030966",
"0.601675",
"0.60012... | 0.8464798 | 0 |
compareTo method for Patient object | public int compareTo(Object o) {
Patient otherPatient = (Patient)o;
if(otherPatient.getID()==this.getID())
return 0;
else if(this.getID()>otherPatient.getID())
return 1;
else
return -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int compareTo(Patient obj) {\r\n\t\tif(this.patientID== obj.getPatientID()) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse if(this.patientID>obj.getPatientID()) {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic int compare(Patient o1, Patient o2) {\n\t\tre... | [
"0.7642728",
"0.7031308",
"0.657893",
"0.65571886",
"0.6313125",
"0.63049024",
"0.6219313",
"0.61974066",
"0.6170099",
"0.612024",
"0.611697",
"0.611204",
"0.61068773",
"0.6106429",
"0.6090792",
"0.6061923",
"0.6039772",
"0.60379714",
"0.5991017",
"0.59870225",
"0.5986657",
... | 0.721494 | 1 |
toString() method for the Patient class | public String toString() {
String fin = String.format("%-15d | %-20s | %-15d | %-15s | %-15s |"
, ID, name, age, organ,
bloodType.getBloodType() );
return fin;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String toString() {\n\t//\tString str = String.format(\"Patient ID#%s Name: %d %s Birthdate: %s Gender: %s\",\n\t//\t\tpatientID, firstName, lastName, birthdate.toString(), gender);\n\n String str = \"Patient ID: \" + patientID + \", Name: \" + firstName + \" \" + lastName +\n ... | [
"0.8315075",
"0.81183124",
"0.74750006",
"0.74664086",
"0.74517035",
"0.74370086",
"0.7421847",
"0.74105024",
"0.74006945",
"0.7384101",
"0.73604715",
"0.73604715",
"0.73430294",
"0.73065877",
"0.73065877",
"0.7287801",
"0.7287801",
"0.7287801",
"0.7287801",
"0.7287801",
"0.7... | 0.71101457 | 51 |
Given an array of ints, return true if 6 appears as either the first or last element in the array. The array will be length 1 or more. | public boolean firstLast6(int[] nums) {
if(nums.length == 1 && nums[0] == 6)
return true;
if(nums[0] == 6 || nums[nums.length-1] == 6)
return true;
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\t\tint[] array = {1, 3, 7, 6};\n\t\tboolean result = false;\n\t\tif(array.length >= 1 && (array[0] == 6 || array[array.length - 1 ] == 6)) {\n\t\t\tresult = true;\n\t\t\t\n\t\t}\nSystem.out.println(result);\n\t}",
"public boolean isCanEat(int[] arr) {\n\t\tList<Integer... | [
"0.695088",
"0.65017384",
"0.62990004",
"0.629041",
"0.6289171",
"0.62538713",
"0.6186686",
"0.61388636",
"0.61295474",
"0.6113187",
"0.60954094",
"0.60726804",
"0.60473686",
"0.60463285",
"0.5998434",
"0.5941644",
"0.5938386",
"0.5927089",
"0.5904059",
"0.5895571",
"0.58855"... | 0.7463281 | 0 |
has objected to be deleted | public boolean isDeleted(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasDelete();",
"boolean hasDelete();",
"@Override\r\n\tpublic boolean delete(Moteur obj) {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean delete(Etape obj) {\n\t\treturn false;\n\t}",
"@Override\n public boolean delete(Revue objet) {\n return false;\n }",
"boolean isDeleted... | [
"0.7633715",
"0.7633715",
"0.7575641",
"0.741853",
"0.7409609",
"0.7395302",
"0.719859",
"0.7149374",
"0.71314514",
"0.7122544",
"0.7093881",
"0.7081566",
"0.707822",
"0.70041007",
"0.6997779",
"0.69923735",
"0.69657475",
"0.6877024",
"0.68076557",
"0.6778956",
"0.6752037",
... | 0.7313837 | 6 |
set object as deleted | public void setDeleted(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void markAsDeleted() {\n\t\tthis.setDeleted(true);\t\t\n\t}",
"public void delete() {\n\t\tdeleted = true;\n\t}",
"@Override\r\n\tpublic void delete(Object object) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic boolean delete(Moteur obj) {\n\t\treturn false;\r\n\t}",
"@Override\n public boolean delete(R... | [
"0.75306004",
"0.75019246",
"0.73552984",
"0.7331343",
"0.7288643",
"0.7261458",
"0.7137966",
"0.71002007",
"0.70747524",
"0.7059725",
"0.7038126",
"0.70065767",
"0.70064616",
"0.6988026",
"0.6964236",
"0.69630474",
"0.69042885",
"0.6884755",
"0.6880069",
"0.68650097",
"0.685... | 0.79068047 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.