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 |
|---|---|---|---|---|---|---|
double latitude = 6; | public Builder setLatitude(double value) {
latitude_ = value;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Double getLatitude();",
"Double getLatitude();",
"double getLatitude();",
"int getLatitude();",
"long getLatitude();",
"void setLatitude(Double latitude);",
"public int getLat();",
"public double getLatitude(){\n return latitude;\n }",
"public double getLatitude()\n {\n \treturn lat... | [
"0.7704592",
"0.7704592",
"0.76858544",
"0.7445023",
"0.7297542",
"0.7200594",
"0.7152045",
"0.71384096",
"0.70641065",
"0.7015275",
"0.6985997",
"0.6962699",
"0.69560415",
"0.69432116",
"0.68744123",
"0.68670315",
"0.6859561",
"0.6846415",
"0.6846415",
"0.6774301",
"0.677430... | 0.0 | -1 |
double latitude = 6; | public Builder clearLatitude() {
latitude_ = 0D;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Double getLatitude();",
"Double getLatitude();",
"double getLatitude();",
"int getLatitude();",
"long getLatitude();",
"void setLatitude(Double latitude);",
"public int getLat();",
"public double getLatitude(){\n return latitude;\n }",
"public double getLatitude()\n {\n \treturn lat... | [
"0.7704592",
"0.7704592",
"0.76858544",
"0.7445023",
"0.7297542",
"0.7200594",
"0.7152045",
"0.71384096",
"0.70641065",
"0.7015275",
"0.6985997",
"0.6962699",
"0.69560415",
"0.69432116",
"0.68744123",
"0.68670315",
"0.6859561",
"0.6846415",
"0.6846415",
"0.6774301",
"0.677430... | 0.0 | -1 |
double longitude = 7; | public double getLongitude() {
return longitude_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double getLongitude();",
"int getLongitude();",
"Double getLongitude();",
"Double getLongitude();",
"void setLongitude(Double longitude);",
"long getLongitude();",
"public int getLon();",
"public float getLongitude() { return longitude; }",
"public void setLongitude(float longitude) { this.longitud... | [
"0.7756089",
"0.7635636",
"0.75962067",
"0.75962067",
"0.7468701",
"0.73875254",
"0.7333884",
"0.73035324",
"0.7268133",
"0.7239617",
"0.7239617",
"0.72373486",
"0.7212345",
"0.71922386",
"0.7192042",
"0.7052072",
"0.7041733",
"0.70091313",
"0.70083284",
"0.70083284",
"0.7008... | 0.6591893 | 52 |
double longitude = 7; | public Builder setLongitude(double value) {
longitude_ = value;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double getLongitude();",
"int getLongitude();",
"Double getLongitude();",
"Double getLongitude();",
"void setLongitude(Double longitude);",
"long getLongitude();",
"public int getLon();",
"public float getLongitude() { return longitude; }",
"public void setLongitude(float longitude) { this.longitud... | [
"0.7756089",
"0.7635636",
"0.75962067",
"0.75962067",
"0.7468701",
"0.73875254",
"0.7333884",
"0.73035324",
"0.7268133",
"0.7239617",
"0.7239617",
"0.72373486",
"0.7212345",
"0.71922386",
"0.7192042",
"0.7052072",
"0.7041733",
"0.70091313",
"0.70083284",
"0.70083284",
"0.7008... | 0.0 | -1 |
double longitude = 7; | public Builder clearLongitude() {
longitude_ = 0D;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double getLongitude();",
"int getLongitude();",
"Double getLongitude();",
"Double getLongitude();",
"void setLongitude(Double longitude);",
"long getLongitude();",
"public int getLon();",
"public float getLongitude() { return longitude; }",
"public void setLongitude(float longitude) { this.longitud... | [
"0.7756089",
"0.7635636",
"0.75962067",
"0.75962067",
"0.7468701",
"0.73875254",
"0.7333884",
"0.73035324",
"0.7268133",
"0.7239617",
"0.7239617",
"0.72373486",
"0.7212345",
"0.71922386",
"0.7192042",
"0.7052072",
"0.7041733",
"0.70091313",
"0.70083284",
"0.70083284",
"0.7008... | 0.0 | -1 |
throw new UnsupportedOperationException("Not supported yet."); | @Override
public void nodeActivity() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}... | [
"0.7620774",
"0.73214245",
"0.72929597",
"0.71893984",
"0.7128997",
"0.7102804",
"0.7071097",
"0.70318085",
"0.70318085",
"0.6993638",
"0.6978445",
"0.6931008",
"0.6899981",
"0.6878116",
"0.6878116",
"0.6861401",
"0.68608695",
"0.6859718",
"0.68465245",
"0.68465245",
"0.68465... | 0.0 | -1 |
Handle an application event. | @Override
public void onApplicationEvent(ContextRefreshedEvent event){
recipeRepository.saveAll(getRecipies());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onApplicationEvent(ApplicationEvent e);",
"public void handleEvent(Event event) {\n\t\t\t\t}",
"public abstract void handle(Object event);",
"public void handleEvent(final Event event) {\r\n\t\tIElementManager manager = getManager();\r\n\t\tif (manager == null) return;\r\n\t\tif (event.getSource() == ap... | [
"0.78116375",
"0.69768435",
"0.66911024",
"0.6633961",
"0.65597314",
"0.65597314",
"0.65597314",
"0.65597314",
"0.65597314",
"0.65316176",
"0.65316176",
"0.65316176",
"0.65151083",
"0.6502899",
"0.6486337",
"0.6290836",
"0.62658423",
"0.622826",
"0.622826",
"0.6226866",
"0.61... | 0.0 | -1 |
/ class com.android.server.display.HwNormalizedRampAnimator.AnonymousClass2 / JADX DEBUG: Multivariable search result rejected for r1v30, resolved type: android.util.IntProperty / JADX WARN: Multivariable type inference failed | public void run() {
HwNormalizedRampAnimator hwNormalizedRampAnimator = HwNormalizedRampAnimator.this;
hwNormalizedRampAnimator.mAnimatedValue = hwNormalizedRampAnimator.mHwGradualBrightnessAlgo.getAnimatedValue();
HwNormalizedRampAnimator hwNormalizedRampAnimator2 = HwNormalizedRampAnimator.this;
hwNormalizedRampAnimator2.updateHBMData(hwNormalizedRampAnimator2.mTargetValue, HwNormalizedRampAnimator.this.mRate, HwNormalizedRampAnimator.this.mHwGradualBrightnessAlgo.getDuration());
HwNormalizedRampAnimator.this.mHwGradualBrightnessAlgo.updateCurrentBrightnessValue(HwNormalizedRampAnimator.this.mAnimatedValue);
int oldCurrentValue = HwNormalizedRampAnimator.this.mCurrentValue;
HwNormalizedRampAnimator hwNormalizedRampAnimator3 = HwNormalizedRampAnimator.this;
hwNormalizedRampAnimator3.mCurrentValue = Math.round(hwNormalizedRampAnimator3.mAnimatedValue);
if (HwNormalizedRampAnimator.this.mData.animatingForRGBWEnable && HwNormalizedRampAnimator.this.mModeOffForRGBW && (HwNormalizedRampAnimator.this.mTargetValueChange != HwNormalizedRampAnimator.this.mTargetValue || (HwNormalizedRampAnimator.this.mProximityStateRecovery && HwNormalizedRampAnimator.this.mTargetValue != HwNormalizedRampAnimator.this.mCurrentValue))) {
boolean unused = HwNormalizedRampAnimator.this.mModeOffForRGBW = false;
HwNormalizedRampAnimator.this.mDisplayEngineManager.setScene(21, 16);
if (HwNormalizedRampAnimator.DEBUG) {
Slog.i(HwNormalizedRampAnimator.TAG, "send DE_ACTION_MODE_ON For RGBW");
}
HwNormalizedRampAnimator hwNormalizedRampAnimator4 = HwNormalizedRampAnimator.this;
int unused2 = hwNormalizedRampAnimator4.mTargetValueChange = hwNormalizedRampAnimator4.mTargetValue;
boolean unused3 = HwNormalizedRampAnimator.this.mProximityStateRecovery = false;
}
if (oldCurrentValue != HwNormalizedRampAnimator.this.mCurrentValue) {
HwNormalizedRampAnimator hwNormalizedRampAnimator5 = HwNormalizedRampAnimator.this;
hwNormalizedRampAnimator5.updateBrightnessViewAlpha(hwNormalizedRampAnimator5.mCurrentValue);
HwNormalizedRampAnimator.this.mProperty.setValue(HwNormalizedRampAnimator.this.mObject, HwNormalizedRampAnimator.this.mCurrentValue);
boolean unused4 = HwNormalizedRampAnimator.DEBUG;
}
if (HwNormalizedRampAnimator.this.mTargetValue != HwNormalizedRampAnimator.this.mCurrentValue) {
HwNormalizedRampAnimator.this.postAnimationCallback();
return;
}
HwNormalizedRampAnimator hwNormalizedRampAnimator6 = HwNormalizedRampAnimator.this;
hwNormalizedRampAnimator6.mAnimating = false;
hwNormalizedRampAnimator6.mHwGradualBrightnessAlgo.clearAnimatedValuePara();
if (HwNormalizedRampAnimator.this.mListener != null) {
HwNormalizedRampAnimator.this.mListener.onAnimationEnd();
}
if (HwNormalizedRampAnimator.this.mData.animatingForRGBWEnable) {
boolean unused5 = HwNormalizedRampAnimator.this.mModeOffForRGBW = true;
HwNormalizedRampAnimator.this.mDisplayEngineManager.setScene(21, 17);
if (HwNormalizedRampAnimator.DEBUG) {
Slog.i(HwNormalizedRampAnimator.TAG, "send DE_ACTION_MODE_Off For RGBW");
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private float getInterpolation(float r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.widget.OppoScroller.getInterpolation(float):float, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widg... | [
"0.52755517",
"0.5208452",
"0.5120835",
"0.5067515",
"0.50346726",
"0.50181323",
"0.48500147",
"0.48330352",
"0.48238692",
"0.48184422",
"0.4803957",
"0.4802105",
"0.4745865",
"0.47359532",
"0.47307083",
"0.47306737",
"0.4728646",
"0.4727283",
"0.47191656",
"0.47125158",
"0.4... | 0.4832056 | 8 |
/ access modifiers changed from: protected | public void notifyAlgoUpdateCurrentValue() {
this.mHwGradualBrightnessAlgo.updateTargetAndRate(this.mTargetValue, this.mRate);
this.mHwGradualBrightnessAlgo.updateCurrentBrightnessValue((float) this.mCurrentValue);
} | {
"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.73759794",
"0.7041964",
"0.69225365",
"0.6909014",
"0.68461144",
"0.6829186",
"0.6805777",
"0.6583361",
"0.65391046",
"0.6502126",
"0.64913684",
"0.64913684",
"0.64724255",
"0.64384186",
"0.64321566",
"0.64321566",
"0.64287287",
"0.64256746",
"0.641928",
"0.6409303",
"0.64... | 0.0 | -1 |
/ access modifiers changed from: protected | public void postAnimationCallback() {
this.mHwGradualBrightnessAlgo.updateTargetAndRate(this.mTargetValue, this.mRate);
this.mChoreographer.postCallback(1, this.mNormalizedAnimationCallback, null);
} | {
"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 |
/ access modifiers changed from: protected | public void cancelAnimationCallback() {
this.mChoreographer.removeCallbacks(1, this.mNormalizedAnimationCallback, null);
} | {
"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 |
/ access modifiers changed from: private | public void updateHBMData(int target, int rate, float duration) {
Bundle bundle = this.mHBMData;
if (bundle == null) {
Slog.w(TAG, "mHBMData == null, no updateHBMData");
} else if (bundle.getInt("target") != target || this.mHBMData.getInt("rate") != rate || ((double) Math.abs(this.mHBMData.getFloat("duration") - duration)) > 1.0E-6d) {
this.mHBMData.putInt("target", target);
this.mHBMData.putInt("rate", rate);
this.mHBMData.putFloat("duration", duration);
String str = TAG;
Slog.i(str, "hbm_dimming target=" + this.mHBMData.getInt("target") + " rate=" + this.mHBMData.getInt("rate") + " duration=" + this.mHBMData.getFloat("duration"));
this.mDisplayEngineManager.setDataToFilter("HBM", this.mHBMData);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n protected void prot() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104... | [
"0.70451087",
"0.66481936",
"0.66338545",
"0.6534467",
"0.6533057",
"0.63756114",
"0.6368523",
"0.63063055",
"0.6244554",
"0.62261415",
"0.62046665",
"0.61776316",
"0.6142759",
"0.6131381",
"0.6131381",
"0.61274433",
"0.610919",
"0.610797",
"0.60792845",
"0.6062989",
"0.60593... | 0.0 | -1 |
/ access modifiers changed from: private | public void updateBrightnessViewAlpha(int brightness) {
int brightnessLevel;
if ((this.mData.updateBrightnessViewAlphaEnable || this.mHbmAheadEnable) && (brightnessLevel = (int) Math.ceil((double) ((((float) brightness) * 255.0f) / 10000.0f))) != this.mBrightnessLevel) {
if (HWDEBUG) {
String str = TAG;
Slog.i(str, "BrightnessViewAlpha mBrightnessLevel=" + this.mBrightnessLevel + "-->brightnessLevel=" + brightnessLevel + ",brightness=" + brightness + ",locked=" + this.mKeyguradIsLocked);
}
this.mBrightnessLevel = brightnessLevel;
if (brightnessLevel > 0 && this.mKeyguradIsLocked) {
this.mHandler.sendEmptyMessage(1);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n protected void prot() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104... | [
"0.7044492",
"0.66476846",
"0.6633218",
"0.6534506",
"0.653226",
"0.6375119",
"0.6367836",
"0.63059497",
"0.62446606",
"0.6226185",
"0.6204622",
"0.61772674",
"0.61419636",
"0.61311585",
"0.61311585",
"0.6127362",
"0.6108939",
"0.6108441",
"0.60789734",
"0.60623217",
"0.60584... | 0.0 | -1 |
/ access modifiers changed from: private | public void updateFingerGradualBrightness(int brightness) {
if (this.mFingerViewController == null) {
this.mFingerViewController = FingerViewController.getInstance(this.mContext);
}
if (HWDEBUG) {
String str = TAG;
Slog.i(str, "BrightnessViewAlpha brightnessForAlpha=" + brightness);
}
try {
Class classz = Class.forName("huawei.com.android.server.fingerprint.FingerViewController");
FingerViewController fingerViewController = this.mFingerViewController;
classz.getDeclaredMethod("setHighlightViewAlpha", Integer.TYPE).invoke(this.mFingerViewController, Integer.valueOf(brightness));
} catch (Exception e) {
Slog.e(TAG, "BrightnessViewAlpha setHighlightViewAlpha exception");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n protected void prot() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104... | [
"0.70451087",
"0.66481936",
"0.66338545",
"0.6534467",
"0.6533057",
"0.63756114",
"0.6368523",
"0.63063055",
"0.6244554",
"0.62261415",
"0.62046665",
"0.61776316",
"0.6142759",
"0.6131381",
"0.6131381",
"0.61274433",
"0.610919",
"0.610797",
"0.60792845",
"0.6062989",
"0.60593... | 0.0 | -1 |
/ access modifiers changed from: private | public void updateFrameRate(int frameRate) {
HwGradualBrightnessAlgo hwGradualBrightnessAlgo = this.mHwGradualBrightnessAlgo;
if (hwGradualBrightnessAlgo != null) {
hwGradualBrightnessAlgo.updateFrameRate(frameRate);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n protected void prot() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104... | [
"0.70451087",
"0.66481936",
"0.66338545",
"0.6534467",
"0.6533057",
"0.63756114",
"0.6368523",
"0.63063055",
"0.6244554",
"0.62261415",
"0.62046665",
"0.61776316",
"0.6142759",
"0.6131381",
"0.6131381",
"0.61274433",
"0.610919",
"0.610797",
"0.60792845",
"0.6062989",
"0.60593... | 0.0 | -1 |
Created by Alok on 13/12/16. | public interface OnItemClickListener {
void onItemClick(int position);
void share(int position);
void likeButtonClick(int position, ImageButton likeButton);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@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}",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Over... | [
"0.61318326",
"0.61052495",
"0.6023588",
"0.5881564",
"0.58713335",
"0.58454597",
"0.58454597",
"0.5834968",
"0.58281666",
"0.57963926",
"0.5783313",
"0.5781718",
"0.5763874",
"0.5756725",
"0.5749998",
"0.5727589",
"0.57252026",
"0.5724386",
"0.5711678",
"0.56793475",
"0.5675... | 0.0 | -1 |
/ renamed from: a | private void m18727a(JSONObject jSONObject) {
if (jSONObject != null) {
try {
this.f16696a = jSONObject.optLong("last_config_time", -1);
this.f16697b = (jSONObject.optLong("oc_interval", -1) * 60) * 1000;
} catch (Exception e) {
OnlineConfigLog.m18737w(C4766a.f16698a, "fail to parce online config response", e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
Created by enrique on 19/10/14. | public interface OnTimeSelected {
public void onTimeSelected(String time);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\... | [
"0.61145645",
"0.60044646",
"0.59623814",
"0.5867493",
"0.5855066",
"0.58360803",
"0.58360803",
"0.58156407",
"0.5799858",
"0.5782647",
"0.5759721",
"0.5747378",
"0.5733423",
"0.572555",
"0.5724574",
"0.57201046",
"0.57176244",
"0.56810075",
"0.5671477",
"0.56686527",
"0.5662... | 0.0 | -1 |
This method is called by the FXMLLoader when initialization is complete | @Override
public void initialize(URL fxmlFileLocation, ResourceBundle resources) {
mainMenu.setGraphic(new ImageView("/Images/stackedlines.png"));
populateQuestions();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@FXML\n private void initialize() {\n \n }",
"@FXML\n private void initialize() {\n }",
"@FXML\n private void initialize() {\n }",
"@FXML\r\n private void initialize() {\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n }",
"@FXML\n\tprivate void initialize() {\n\t\t\n\t}... | [
"0.84545916",
"0.83682954",
"0.83682954",
"0.8332807",
"0.83200353",
"0.83200353",
"0.8181112",
"0.808794",
"0.80065995",
"0.7836127",
"0.75261486",
"0.7414454",
"0.74114263",
"0.7389828",
"0.73443294",
"0.72386014",
"0.7211224",
"0.7210463",
"0.71205163",
"0.7093682",
"0.706... | 0.6495388 | 99 |
Hide this current window | @FXML
public void loadCompare(ActionEvent ev) {
menuBar.getScene().getWindow().hide();
Stage compare = new Stage();
try {
Parent root = FXMLLoader.load(getClass().getResource("/FXML/Compare.fxml"));
Scene scene = new Scene(root);
compare.setScene(scene);
compare.show();
compare.setResizable(false);
compare.centerOnScreen();
} catch (IOException ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void hide() {\n synchronized (ownedWindows) {\n for (int i = 0; i < ownedWindows.size(); i++) {\n Window child = (Window) ownedWindows.elementAt(i);\n if (child != null) {\n child.hide();\n }\n }\n }\n ... | [
"0.7784006",
"0.7742115",
"0.7680741",
"0.75059825",
"0.7426063",
"0.71927065",
"0.7153694",
"0.7107919",
"0.7093255",
"0.70449173",
"0.70401245",
"0.703348",
"0.7022925",
"0.7014802",
"0.6990787",
"0.693106",
"0.6911069",
"0.688934",
"0.68795246",
"0.67999756",
"0.67998064",... | 0.0 | -1 |
Hide this current window | @FXML
public void loadPredict(ActionEvent ev) {
menuBar.getScene().getWindow().hide();
Stage predict = new Stage();
try {
Parent root = FXMLLoader.load(getClass().getResource("/FXML/Predict.fxml"));
Scene scene = new Scene(root);
predict.setScene(scene);
predict.show();
predict.setResizable(false);
predict.centerOnScreen();
} catch (IOException ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void hide() {\n synchronized (ownedWindows) {\n for (int i = 0; i < ownedWindows.size(); i++) {\n Window child = (Window) ownedWindows.elementAt(i);\n if (child != null) {\n child.hide();\n }\n }\n }\n ... | [
"0.7784006",
"0.7742115",
"0.7680741",
"0.75059825",
"0.7426063",
"0.71927065",
"0.7153694",
"0.7107919",
"0.7093255",
"0.70449173",
"0.70401245",
"0.703348",
"0.7022925",
"0.7014802",
"0.6990787",
"0.693106",
"0.6911069",
"0.688934",
"0.68795246",
"0.67999756",
"0.67998064",... | 0.0 | -1 |
Hide this current window | @FXML
public void loadMap(ActionEvent ev) {
menuBar.getScene().getWindow().hide();
Stage map = new Stage();
try {
Parent root = FXMLLoader.load(getClass().getResource("/FXML/Map.fxml"));
Scene scene = new Scene(root);
map.setScene(scene);
map.show();
map.setResizable(false);
map.centerOnScreen();
} catch (IOException ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void hide() {\n synchronized (ownedWindows) {\n for (int i = 0; i < ownedWindows.size(); i++) {\n Window child = (Window) ownedWindows.elementAt(i);\n if (child != null) {\n child.hide();\n }\n }\n }\n ... | [
"0.7784006",
"0.7742115",
"0.7680741",
"0.75059825",
"0.7426063",
"0.71927065",
"0.7153694",
"0.7107919",
"0.7093255",
"0.70449173",
"0.70401245",
"0.703348",
"0.7022925",
"0.7014802",
"0.6990787",
"0.693106",
"0.6911069",
"0.688934",
"0.68795246",
"0.67999756",
"0.67998064",... | 0.0 | -1 |
Hide this current window | @FXML
public void loadScatter(ActionEvent ev) {
menuBar.getScene().getWindow().hide();
Stage scatter = new Stage();
try {
Parent root = FXMLLoader.load(getClass().getResource("/FXML/Scatter.fxml"));
Scene scene = new Scene(root);
scatter.setScene(scene);
scatter.show();
scatter.setResizable(false);
scatter.centerOnScreen();
} catch (IOException ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void hide() {\n synchronized (ownedWindows) {\n for (int i = 0; i < ownedWindows.size(); i++) {\n Window child = (Window) ownedWindows.elementAt(i);\n if (child != null) {\n child.hide();\n }\n }\n }\n ... | [
"0.7784006",
"0.7742115",
"0.7680741",
"0.75059825",
"0.7426063",
"0.71927065",
"0.7153694",
"0.7107919",
"0.7093255",
"0.70449173",
"0.70401245",
"0.703348",
"0.7022925",
"0.7014802",
"0.6990787",
"0.693106",
"0.6911069",
"0.688934",
"0.68795246",
"0.67999756",
"0.67998064",... | 0.0 | -1 |
Hide this current window | @FXML
private void loadDashboard(ActionEvent ev) {
menuBar.getScene().getWindow().hide();
Stage dashboard = new Stage();
try {
Parent root = FXMLLoader.load(getClass().getResource("/FXML/Dashboard.fxml"));
Scene scene = new Scene(root);
dashboard.setScene(scene);
dashboard.show();
dashboard.setResizable(false);
dashboard.centerOnScreen();
} catch (IOException ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void hide() {\n synchronized (ownedWindows) {\n for (int i = 0; i < ownedWindows.size(); i++) {\n Window child = (Window) ownedWindows.elementAt(i);\n if (child != null) {\n child.hide();\n }\n }\n }\n ... | [
"0.7784006",
"0.7742115",
"0.7680741",
"0.75059825",
"0.7426063",
"0.71927065",
"0.7153694",
"0.7107919",
"0.7093255",
"0.70449173",
"0.70401245",
"0.703348",
"0.7022925",
"0.7014802",
"0.6990787",
"0.693106",
"0.6911069",
"0.688934",
"0.68795246",
"0.67999756",
"0.67998064",... | 0.0 | -1 |
Hide this current window | @FXML
private void loadFacts(ActionEvent ev) {
menuBar.getScene().getWindow().hide();
Stage facts = new Stage();
try {
Parent root = FXMLLoader.load(getClass().getResource("/FXML/Facts.fxml"));
Scene scene = new Scene(root);
facts.setScene(scene);
facts.show();
facts.setResizable(false);
facts.centerOnScreen();
} catch (IOException ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void hide() {\n synchronized (ownedWindows) {\n for (int i = 0; i < ownedWindows.size(); i++) {\n Window child = (Window) ownedWindows.elementAt(i);\n if (child != null) {\n child.hide();\n }\n }\n }\n ... | [
"0.7784006",
"0.7742115",
"0.7680741",
"0.75059825",
"0.7426063",
"0.71927065",
"0.7153694",
"0.7107919",
"0.7093255",
"0.70449173",
"0.70401245",
"0.703348",
"0.7022925",
"0.7014802",
"0.6990787",
"0.693106",
"0.6911069",
"0.688934",
"0.68795246",
"0.67999756",
"0.67998064",... | 0.0 | -1 |
Created by Administrator on 2017/6/28. | public interface OperationService {
//在每次插座开断的时候插入状态的变化
public int insertOperation(OperationPO operationPO);
//根据时段查看所有的变换
public List<OperationPO> selectOperation(TimeSpanBO timeSpanBO);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@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\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Ov... | [
"0.62835836",
"0.60442466",
"0.58096695",
"0.5804106",
"0.57655627",
"0.57384026",
"0.5727041",
"0.5719626",
"0.56971407",
"0.56732243",
"0.56732243",
"0.565775",
"0.5649476",
"0.5639472",
"0.56361645",
"0.5632096",
"0.5620162",
"0.5618552",
"0.5616524",
"0.56155056",
"0.5615... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
finish();
} | {
"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 onPageStarted(WebView view, String url, Bitmap favicon) {
super.onPageStarted(view, url, favicon);
} | {
"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 boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl("https://docs.google.com/viewer?url="+url);
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 onPageFinished(WebView view, String url) {
super.onPageFinished(view, url);
progressBar.setVisibility(View.GONE);
} | {
"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 |
Click on image button | public void onPickImage(View view) {
ImagePicker.pickImage(this, "Select your image:");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PreViewPopUpPage clickImageLink();",
"@When(\"^user clicks on image tab$\")\n\tpublic void user_clicks_on_image_tab() throws Throwable {\n\t\thomepage.waitForPageToLoad(\"Google Images\");\n\t\thomepage.waitForElementToBeClickable(homepage.imagesButton);\n\t\thomepage.clickOnElementUsingJs(homepage.imagesButton)... | [
"0.78135836",
"0.72458744",
"0.7160396",
"0.703498",
"0.6828238",
"0.6742352",
"0.67363685",
"0.6725049",
"0.6621849",
"0.6607199",
"0.6552655",
"0.65121627",
"0.6494375",
"0.6490559",
"0.6484668",
"0.6469766",
"0.6434469",
"0.63737464",
"0.6373276",
"0.6366799",
"0.63405085"... | 0.0 | -1 |
INSERT user details in Database | private void insertUserDetails() {
Retrofit client = API_Client.getApiClient();
ApiInterface api = client.create(ApiInterface.class);
// Call<Signup_Response_Model> call = api.setUserInfo(setUserDetail());
Call<Signup_Response_Model> call = api.setUserInfo(
SharedPrefrenceManager.getInstance(this).admin_Name(),
preferences.getString(CommonCalls.name, null),
preferences.getString(CommonCalls.fname, null),
preferences.getString(CommonCalls.age, null),
preferences.getString(CommonCalls.dob, null),
preferences.getString(CommonCalls.gender, null),
preferences.getString(CommonCalls.cnic_no, null),
preferences.getString(CommonCalls.cnic_place, null),
preferences.getString(CommonCalls.cnic_expi, null),
preferences.getString(CommonCalls.cast, null),
preferences.getString(CommonCalls.religon, null),
preferences.getString(CommonCalls.contact, null),
preferences.getString(CommonCalls.education, null),
preferences.getString(CommonCalls.skills, null),
preferences.getString(CommonCalls.martial_Status, null),
preferences.getString(CommonCalls.emp_status, null),
preferences.getString(CommonCalls.emp_will, null),
preferences.getInt(CommonCalls.no_male_child, 0) + "",
preferences.getInt(CommonCalls.no_female_child, 0) + "",
preferences.getString(CommonCalls.availabilit, null),
preferences.getString(CommonCalls.remarks, null),
preferences.getString(CommonCalls.longitude, null),
preferences.getString(CommonCalls.latitude, null),
preferences.getString(CommonCalls.image, null)
);
call.enqueue(new Callback<Signup_Response_Model>() {
@Override
public void onResponse(Call<Signup_Response_Model> call, Response<Signup_Response_Model> response) {
if (response.isSuccessful()) {
Signup_Response_Model signup_response_model = response.body();
if (signup_response_model.getSuccess() == 1) {
mDiloge.dismiss();
Toast.makeText(HomeActivity.this, "Data Added", Toast.LENGTH_LONG).show();
} else {
mDiloge.dismiss();
Toast.makeText(HomeActivity.this, "First Insert Data!", Toast.LENGTH_LONG).show();
}
}
}
@Override
public void onFailure(Call<Signup_Response_Model> call, Throwable t) {
Toast.makeText(HomeActivity.this, t.getLocalizedMessage(), Toast.LENGTH_LONG).show();
Toast.makeText(HomeActivity.this, "Server Response Failure", Toast.LENGTH_LONG).show();
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void insert() {//将数据录入数据库\n\t\tUser eb = new User();\n\t\tUserDao ed = new UserDao();\n\t\teb.setUsername(username.getText().toString().trim());\n\t\tString pass = new String(this.pass.getPassword());\n\t\teb.setPassword(pass);\n\t\teb.setName(name.getText().toString().trim());\n\t\teb.setSex(sex1.isSelect... | [
"0.8107563",
"0.7945888",
"0.761777",
"0.7536281",
"0.73748094",
"0.73456013",
"0.73057866",
"0.7289511",
"0.7281475",
"0.725628",
"0.72492796",
"0.7229884",
"0.722929",
"0.72180474",
"0.71994805",
"0.71963924",
"0.7165998",
"0.71652204",
"0.7146251",
"0.71305436",
"0.7129138... | 0.0 | -1 |
setting up the user model | private Signup_Model setUserDetail() {
preferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
Signup_Model sign_up_model = new Signup_Model();
sign_up_model.setAdminName(SharedPrefrenceManager.getInstance(this).admin_Name());
sign_up_model.setName(preferences.getString(CommonCalls.name, null));
sign_up_model.setFatherName(preferences.getString(CommonCalls.fname, null));
sign_up_model.setAge(null); //for age
sign_up_model.setDob(preferences.getString(CommonCalls.dob, null));
sign_up_model.setCnic(preferences.getString(CommonCalls.cnic_no, null));
sign_up_model.setPlaceOfIssuence(preferences.getString(CommonCalls.cnic_place, null));
sign_up_model.setCnicExpiry(preferences.getString(CommonCalls.cnic_expi, null));
sign_up_model.setGender(preferences.getString(CommonCalls.gender, null));
sign_up_model.setMaritalStatus(preferences.getString(CommonCalls.martial_Status, null));
sign_up_model.setCast(preferences.getString(CommonCalls.cast, null));
sign_up_model.setPhonenumber(preferences.getString(CommonCalls.contact, null));
sign_up_model.setSkill(preferences.getString(CommonCalls.skills, null));
sign_up_model.setEducation(preferences.getString(CommonCalls.education, null));
sign_up_model.setReligion(preferences.getString(CommonCalls.religon, null));
sign_up_model.setEmployeeStatus(preferences.getString(CommonCalls.emp_status, null));
sign_up_model.setWillingForEmp(preferences.getString(CommonCalls.emp_will, null));
sign_up_model.setAvailabilty(preferences.getString(CommonCalls.availabilit, null));
sign_up_model.setRemarks(preferences.getString(CommonCalls.remarks, null));
sign_up_model.setLatitude(preferences.getString(CommonCalls.longitude, null));
sign_up_model.setLongitude(preferences.getString(CommonCalls.longitude, null));
sign_up_model.setImage(preferences.getString(CommonCalls.image, null));
return sign_up_model;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UserModel(){\n ID = 0; // The user's ID, largely used in conjuction with a database\n firstName = \"fname\"; //User's first name\n lastName = \"lname\"; // User's last name\n password= \"pass\"; ///User password\n username = \"testuser\"; //Valid email for user\n ro... | [
"0.76905",
"0.7534141",
"0.7347002",
"0.73086965",
"0.7156905",
"0.6993978",
"0.6921278",
"0.6759353",
"0.6746343",
"0.66607726",
"0.66168904",
"0.65196663",
"0.6518459",
"0.6507918",
"0.64791447",
"0.64262223",
"0.64189565",
"0.6382611",
"0.63749325",
"0.6364933",
"0.6348838... | 0.0 | -1 |
/ A private Constructor prevents any other class from instantiating. | private Singleton() { } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ATCres() {\r\n // prevent to instantiate this class\r\n }",
"private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }",
"private Foo() {\n\t\tSystem.out.println(\"Private Constructor.\");\n\t}",
"private Inst... | [
"0.78794885",
"0.7721256",
"0.7692911",
"0.7647842",
"0.75888395",
"0.7562188",
"0.75412315",
"0.743335",
"0.73968637",
"0.7382613",
"0.73458713",
"0.73277265",
"0.72274715",
"0.7218622",
"0.7202985",
"0.7190767",
"0.7188925",
"0.71840376",
"0.71395",
"0.7138591",
"0.71257585... | 0.69295263 | 50 |
/ Static 'instance' method | public static Singleton getInstance( ) {
return singleton;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Instance createInstance();",
"@Override\n public T getInstance() {\n return instance;\n }",
"private InstanceUtil() {\n }",
"T getInstance();",
"Reproducible newInstance();",
"public T getInstance() {\n return instance;\n }",
"public static utilitys getInstance(){\n\r\n\t\treturn... | [
"0.75223804",
"0.7411969",
"0.72087896",
"0.7165237",
"0.71472305",
"0.69636625",
"0.69248813",
"0.6802244",
"0.6757561",
"0.671609",
"0.6689758",
"0.6684221",
"0.66114265",
"0.65584844",
"0.65190643",
"0.6512419",
"0.640534",
"0.6398353",
"0.6383111",
"0.6383111",
"0.6383111... | 0.599408 | 62 |
/ Other methods protected by singletonness | protected static void demoMethod( ) {
System.out.println("demoMethod for singleton");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Singleton()\n\t\t{\n\t\t}",
"private Singleton() {\n\t}",
"private Singleton() { }",
"private stendhal() {\n\t}",
"Shared shared();",
"private Singleton(){}",
"private SingletonDoubleCheck() {}",
"static void useSingleton(){\n\t\tSingleton singleton = Singleton.getInstance();\n\t\tprint(\"sin... | [
"0.701954",
"0.68373156",
"0.6770437",
"0.6769744",
"0.67501056",
"0.6711021",
"0.66409206",
"0.66391057",
"0.66053593",
"0.66053593",
"0.6575324",
"0.65567905",
"0.6531353",
"0.64850605",
"0.6481686",
"0.64338297",
"0.6423402",
"0.63968873",
"0.63807577",
"0.6350223",
"0.633... | 0.64347196 | 15 |
/ TODO Ask the number of member visiting in variable customerNumber TODO menu option for the customers TODO Use arrays to store the order TODO Show the total bill ....... (optional) FIXME Eliminate space while taking orders FIXME Dynamically increase array length FIXME To add all orders together and once for all | public static void main(String[] args) {
MenuCard mc = new MenuCard();
mc.menuCard();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void showCustomerOrders() {\n\t\ttextArea.setText(\"\");\n\t\tfor (int i = 0; i < driver.getOrderDB().getCustomerOrderList().size(); i++) {\n\t\t\tOrder order = (driver.getOrderDB().getCustomerOrderList().get(i));\n\t\t\ttextArea.append(\"Order \" + order.getId() + \" was created by \"\n\t\t\t\t\t+ order.ge... | [
"0.6319975",
"0.622518",
"0.61170644",
"0.6027979",
"0.5985283",
"0.5930193",
"0.5841185",
"0.5773107",
"0.5730378",
"0.5667658",
"0.5648627",
"0.56366843",
"0.56316906",
"0.5521053",
"0.55202854",
"0.55178297",
"0.551202",
"0.55057466",
"0.550031",
"0.54873353",
"0.5483327",... | 0.0 | -1 |
/+ | PUBLIC INTERFACE | + | public TCPGameClient(String host, int port)
throws IOException {
this.host = host;
this.port = port;
done = false;
thread = new Thread(this);
setupSocketToUse(new Socket(host, port));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"interface a {\n int aadd();\n int sub();\n}",
"public interface AbstractC7729o0ooOoo {\n void OooO00o();\n}",
"public interface AbstractC0386gl {\n}",
"public interface Igual extends ComplexInstruction\n{\n}",
"private static interface Base {\n\n public void foo();\n }",
"interface HiP... | [
"0.67946553",
"0.6773759",
"0.67260355",
"0.6700048",
"0.6661322",
"0.6640393",
"0.6622948",
"0.662037",
"0.6616312",
"0.65904605",
"0.6583031",
"0.65786636",
"0.6574898",
"0.65498006",
"0.6531487",
"0.6526983",
"0.64911985",
"0.6478637",
"0.6473067",
"0.64648235",
"0.6458492... | 0.0 | -1 |
Test the click() method It should increment the counter by one. | @Test
public void click() {
Counter counter = new Counter();
counter.click(); // should increment by 1
int expected = 1;
int actual = counter.getCount();
assertEquals(expected, actual);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void clickEvent() {\n counterClicks += 1;\n }",
"public void clickAction(int clickCount);",
"@Override\r\n\tpublic void clickSub(int count) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void clickAdd(int count) {\n\t\t\r\n\t}",
"@Test\r\n public void startNextOptionTest()\r\n {\r\n ... | [
"0.7760878",
"0.7508495",
"0.7269374",
"0.69888407",
"0.6678261",
"0.65118015",
"0.645402",
"0.6435311",
"0.6429982",
"0.6356148",
"0.63371813",
"0.6319911",
"0.6303349",
"0.6260817",
"0.62244165",
"0.6207308",
"0.6174427",
"0.6161811",
"0.61253",
"0.6120476",
"0.61106575",
... | 0.8476092 | 0 |
TODO add a test for Counter undo() | @Test
public void testUndo1() {
System.out.println("testUndo");
Counter myCounter = new Counter(10);
int expResult = 0;
myCounter.undo();
int result = myCounter.getCount();
assertEquals(expResult, result);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void undo(int numToUndo) {\n }",
"void undo();",
"public void undo() {\n\t\t\r\n\t}",
"protected abstract void internalUndo();",
"public void undo() {\n }",
"@Override\n\tpublic void undo() {\n\t\t\n\t}",
"@Override\n\tpublic void undo() {\n\t\t\n\t}",
"@Override\n\tpublic... | [
"0.7523624",
"0.70299315",
"0.70213443",
"0.70212257",
"0.6928382",
"0.6850455",
"0.6850455",
"0.6850455",
"0.6795425",
"0.6770679",
"0.6770679",
"0.6764286",
"0.6749633",
"0.66453266",
"0.6631144",
"0.6627291",
"0.65603805",
"0.6543637",
"0.65420043",
"0.64743733",
"0.641951... | 0.75798106 | 0 |
TODO Autogenerated method stub | @Override
public void service(ServletRequest arg0, ServletResponse arg1) throws ServletException, IOException {
service((HttpServletRequest) arg0, (HttpServletResponse) arg1);
} | {
"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 new form lectManage | public lectManage() {
initComponents();
tableComponents();
viewSchedule();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan e... | [
"0.6575322",
"0.64854926",
"0.6397779",
"0.6348932",
"0.6266971",
"0.6255429",
"0.62199026",
"0.6214263",
"0.62079054",
"0.6152016",
"0.61264694",
"0.6114479",
"0.61115396",
"0.6081047",
"0.60800713",
"0.6071898",
"0.6067933",
"0.6048594",
"0.60469824",
"0.6041914",
"0.602057... | 0.60529184 | 17 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
bgPanel = new javax.swing.JPanel();
menuPanel = new javax.swing.JPanel();
welcomeLabel = new javax.swing.JLabel();
displayName = new javax.swing.JLabel();
homeBtn = new javax.swing.JPanel();
homeLabel = new javax.swing.JLabel();
homeIcon = new javax.swing.JLabel();
manageBtn = new javax.swing.JPanel();
manageLabel = new javax.swing.JLabel();
manageIcon = new javax.swing.JLabel();
updateBtn = new javax.swing.JPanel();
updateLabel = new javax.swing.JLabel();
updateIcon = new javax.swing.JLabel();
logoutBtn = new javax.swing.JPanel();
logoutLabel = new javax.swing.JLabel();
logoutIcon = new javax.swing.JLabel();
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
title = new javax.swing.JLabel();
daeLabel = new javax.swing.JLabel();
fromLabel = new javax.swing.JLabel();
toLabel = new javax.swing.JLabel();
statusLabel = new javax.swing.JLabel();
venueLabel = new javax.swing.JLabel();
fromField = new javax.swing.JTextField();
venueField = new javax.swing.JTextField();
toField = new javax.swing.JTextField();
statusBox = new javax.swing.JComboBox<>();
submitBtn = new javax.swing.JPanel();
submitLabel = new javax.swing.JLabel();
jDateChooser1 = new com.toedter.calendar.JDateChooser();
deleteBtn = new javax.swing.JPanel();
deleteLabel = new javax.swing.JLabel();
idDisplay = new javax.swing.JTextField();
jScrollPane2 = new javax.swing.JScrollPane();
jScrollPane1 = new javax.swing.JScrollPane();
scheduleTable = new javax.swing.JTable();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
bgPanel.setBackground(new java.awt.Color(255, 255, 255));
menuPanel.setBackground(new java.awt.Color(41, 41, 48));
welcomeLabel.setFont(new java.awt.Font("Comic Sans MS", 0, 18)); // NOI18N
welcomeLabel.setForeground(new java.awt.Color(255, 255, 255));
welcomeLabel.setText("Welcome");
displayName.setFont(new java.awt.Font("Comic Sans MS", 2, 18)); // NOI18N
displayName.setForeground(new java.awt.Color(255, 255, 255));
displayName.setText("Welcome");
homeBtn.setBackground(new java.awt.Color(41, 41, 48));
homeBtn.setForeground(new java.awt.Color(0, 153, 153));
homeBtn.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
homeBtn.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
homeBtnMouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
homeBtnMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
homeBtnMouseExited(evt);
}
});
homeLabel.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
homeLabel.setForeground(new java.awt.Color(255, 255, 255));
homeLabel.setText("Home");
homeIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fypappointment2/icon/003-home.png"))); // NOI18N
javax.swing.GroupLayout homeBtnLayout = new javax.swing.GroupLayout(homeBtn);
homeBtn.setLayout(homeBtnLayout);
homeBtnLayout.setHorizontalGroup(
homeBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(homeBtnLayout.createSequentialGroup()
.addGap(79, 79, 79)
.addComponent(homeLabel)
.addGap(18, 18, 18)
.addComponent(homeIcon)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
homeBtnLayout.setVerticalGroup(
homeBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(homeBtnLayout.createSequentialGroup()
.addContainerGap()
.addGroup(homeBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(homeIcon, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(homeLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
manageBtn.setBackground(new java.awt.Color(62, 182, 80));
manageBtn.setForeground(new java.awt.Color(0, 153, 153));
manageBtn.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
manageBtn.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
manageBtnMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
manageBtnMouseExited(evt);
}
});
manageLabel.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
manageLabel.setForeground(new java.awt.Color(255, 255, 255));
manageLabel.setText("Schedule");
manageIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fypappointment2/icon/calendar.png"))); // NOI18N
javax.swing.GroupLayout manageBtnLayout = new javax.swing.GroupLayout(manageBtn);
manageBtn.setLayout(manageBtnLayout);
manageBtnLayout.setHorizontalGroup(
manageBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(manageBtnLayout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(manageLabel)
.addGap(18, 18, 18)
.addComponent(manageIcon)
.addGap(53, 53, 53))
);
manageBtnLayout.setVerticalGroup(
manageBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(manageBtnLayout.createSequentialGroup()
.addContainerGap()
.addGroup(manageBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(manageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(manageIcon, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
updateBtn.setBackground(new java.awt.Color(41, 41, 48));
updateBtn.setForeground(new java.awt.Color(0, 153, 153));
updateBtn.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
updateBtn.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
updateBtnMouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
updateBtnMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
updateBtnMouseExited(evt);
}
});
updateLabel.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
updateLabel.setForeground(new java.awt.Color(255, 255, 255));
updateLabel.setText("Update Account");
updateIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fypappointment2/icon/002-settings.png"))); // NOI18N
javax.swing.GroupLayout updateBtnLayout = new javax.swing.GroupLayout(updateBtn);
updateBtn.setLayout(updateBtnLayout);
updateBtnLayout.setHorizontalGroup(
updateBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(updateBtnLayout.createSequentialGroup()
.addGap(34, 34, 34)
.addComponent(updateLabel)
.addGap(18, 18, 18)
.addComponent(updateIcon)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
updateBtnLayout.setVerticalGroup(
updateBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(updateBtnLayout.createSequentialGroup()
.addContainerGap()
.addGroup(updateBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(updateIcon, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(updateLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
logoutBtn.setBackground(new java.awt.Color(41, 41, 48));
logoutBtn.setForeground(new java.awt.Color(0, 153, 153));
logoutBtn.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
logoutBtn.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
logoutBtnMouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
logoutBtnMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
logoutBtnMouseExited(evt);
}
});
logoutLabel.setFont(new java.awt.Font("Calibri", 0, 18)); // NOI18N
logoutLabel.setForeground(new java.awt.Color(255, 255, 255));
logoutLabel.setText("Logout");
logoutIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fypappointment2/icon/005-logout.png"))); // NOI18N
javax.swing.GroupLayout logoutBtnLayout = new javax.swing.GroupLayout(logoutBtn);
logoutBtn.setLayout(logoutBtnLayout);
logoutBtnLayout.setHorizontalGroup(
logoutBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(logoutBtnLayout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(logoutLabel)
.addGap(18, 18, 18)
.addComponent(logoutIcon)
.addGap(52, 52, 52))
);
logoutBtnLayout.setVerticalGroup(
logoutBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(logoutBtnLayout.createSequentialGroup()
.addContainerGap()
.addGroup(logoutBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(logoutLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(logoutIcon, javax.swing.GroupLayout.DEFAULT_SIZE, 37, Short.MAX_VALUE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
javax.swing.GroupLayout menuPanelLayout = new javax.swing.GroupLayout(menuPanel);
menuPanel.setLayout(menuPanelLayout);
menuPanelLayout.setHorizontalGroup(
menuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(menuPanelLayout.createSequentialGroup()
.addGap(27, 27, 27)
.addComponent(welcomeLabel)
.addGap(31, 31, 31)
.addComponent(displayName)
.addContainerGap(13, Short.MAX_VALUE))
.addComponent(homeBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(manageBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(updateBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(logoutBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
menuPanelLayout.setVerticalGroup(
menuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(menuPanelLayout.createSequentialGroup()
.addGap(136, 136, 136)
.addGroup(menuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(welcomeLabel)
.addComponent(displayName))
.addGap(43, 43, 43)
.addComponent(homeBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, 0)
.addComponent(manageBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, 0)
.addComponent(updateBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, 0)
.addComponent(logoutBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel1.setBackground(new java.awt.Color(62, 182, 80));
jPanel1.setForeground(new java.awt.Color(255, 0, 0));
jLabel1.setFont(new java.awt.Font("Calibri", 1, 24)); // NOI18N
jLabel1.setForeground(new java.awt.Color(255, 255, 255));
jLabel1.setText("Lecturer");
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addContainerGap(21, Short.MAX_VALUE)
.addComponent(jLabel1)
.addGap(27, 27, 27))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
title.setFont(new java.awt.Font("Calibri", 0, 36)); // NOI18N
title.setText("Schedule");
daeLabel.setBackground(new java.awt.Color(255, 255, 255));
daeLabel.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
daeLabel.setText("Date");
fromLabel.setBackground(new java.awt.Color(255, 255, 255));
fromLabel.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
fromLabel.setText("From");
toLabel.setBackground(new java.awt.Color(255, 255, 255));
toLabel.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
toLabel.setText("To");
statusLabel.setBackground(new java.awt.Color(255, 255, 255));
statusLabel.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
statusLabel.setText("Status");
venueLabel.setBackground(new java.awt.Color(255, 255, 255));
venueLabel.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
venueLabel.setText("Venue");
statusBox.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Available", "Unavailable" }));
submitBtn.setBackground(new java.awt.Color(62, 182, 80));
submitBtn.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
submitBtn.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
submitBtnMouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
submitBtnMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
submitBtnMouseExited(evt);
}
});
submitLabel.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
submitLabel.setForeground(new java.awt.Color(255, 255, 255));
submitLabel.setText("Submit");
javax.swing.GroupLayout submitBtnLayout = new javax.swing.GroupLayout(submitBtn);
submitBtn.setLayout(submitBtnLayout);
submitBtnLayout.setHorizontalGroup(
submitBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, submitBtnLayout.createSequentialGroup()
.addContainerGap(23, Short.MAX_VALUE)
.addComponent(submitLabel)
.addGap(23, 23, 23))
);
submitBtnLayout.setVerticalGroup(
submitBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, submitBtnLayout.createSequentialGroup()
.addContainerGap()
.addComponent(submitLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 19, Short.MAX_VALUE)
.addContainerGap())
);
deleteBtn.setBackground(new java.awt.Color(225, 43, 56));
deleteBtn.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
deleteBtn.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
deleteBtnMouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
deleteBtnMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
deleteBtnMouseExited(evt);
}
});
deleteLabel.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
deleteLabel.setForeground(new java.awt.Color(255, 255, 255));
deleteLabel.setText("Delete");
javax.swing.GroupLayout deleteBtnLayout = new javax.swing.GroupLayout(deleteBtn);
deleteBtn.setLayout(deleteBtnLayout);
deleteBtnLayout.setHorizontalGroup(
deleteBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(deleteBtnLayout.createSequentialGroup()
.addGap(32, 32, 32)
.addComponent(deleteLabel)
.addContainerGap(34, Short.MAX_VALUE))
);
deleteBtnLayout.setVerticalGroup(
deleteBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, deleteBtnLayout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(deleteLabel)
.addContainerGap())
);
idDisplay.setEditable(false);
idDisplay.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
scheduleTable.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
scheduleTable.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
},
new String [] {
"Date", "Status"
}
));
scheduleTable.setFocusable(false);
scheduleTable.setIntercellSpacing(new java.awt.Dimension(0, 0));
scheduleTable.setRowHeight(25);
scheduleTable.setSelectionBackground(new java.awt.Color(204, 255, 204));
scheduleTable.setShowVerticalLines(false);
scheduleTable.getTableHeader().setResizingAllowed(false);
scheduleTable.getTableHeader().setReorderingAllowed(false);
scheduleTable.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
scheduleTableMouseClicked(evt);
}
});
jScrollPane1.setViewportView(scheduleTable);
jScrollPane2.setViewportView(jScrollPane1);
javax.swing.GroupLayout bgPanelLayout = new javax.swing.GroupLayout(bgPanel);
bgPanel.setLayout(bgPanelLayout);
bgPanelLayout.setHorizontalGroup(
bgPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(bgPanelLayout.createSequentialGroup()
.addComponent(menuPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(bgPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(bgPanelLayout.createSequentialGroup()
.addGap(43, 43, 43)
.addGroup(bgPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(bgPanelLayout.createSequentialGroup()
.addGroup(bgPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(fromLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(daeLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(statusLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(bgPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(bgPanelLayout.createSequentialGroup()
.addGap(11, 11, 11)
.addGroup(bgPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(title)
.addGroup(bgPanelLayout.createSequentialGroup()
.addGap(10, 10, 10)
.addComponent(fromField, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, bgPanelLayout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jDateChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(bgPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(bgPanelLayout.createSequentialGroup()
.addGap(218, 218, 218)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, bgPanelLayout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(bgPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(venueLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(toLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(bgPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(toField, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(venueField, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(61, 61, 61))))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, bgPanelLayout.createSequentialGroup()
.addGroup(bgPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(bgPanelLayout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 410, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(bgPanelLayout.createSequentialGroup()
.addComponent(statusBox, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(submitBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(101, 101, 101))))
.addGroup(bgPanelLayout.createSequentialGroup()
.addGap(166, 166, 166)
.addComponent(idDisplay, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(deleteBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))))
);
bgPanelLayout.setVerticalGroup(
bgPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(menuPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(bgPanelLayout.createSequentialGroup()
.addGap(26, 26, 26)
.addGroup(bgPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(bgPanelLayout.createSequentialGroup()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(7, 7, 7)
.addComponent(title)
.addGap(36, 36, 36)
.addGroup(bgPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(daeLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jDateChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(bgPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(venueField, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(venueLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(18, 18, 18)
.addGroup(bgPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(fromLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(fromField, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(toField, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(toLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addComponent(statusLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(bgPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(submitBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(statusBox))
.addGap(34, 34, 34)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addGroup(bgPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(idDisplay, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(deleteBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(59, Short.MAX_VALUE))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(bgPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(bgPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
pack();
setLocationRelativeTo(null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.73191476",
"0.72906625",
"0.72906625",
"0.72906625",
"0.72860986",
"0.7248112",
"0.7213479",
"0.72078276",
"0.7195841",
"0.71899796",
"0.71840525",
"0.7158498",
"0.71477973",
"0.7092748",
"0.70800966",
"0.70558053",
"0.69871384",
"0.69773406",
"0.69548076",
"0.69533914",
"... | 0.0 | -1 |
the key for the name json representation of player EFFECTS: Constructs a player based off id throws and IOException if there was an error reading the player data from the database/unable to open the database, | public Player(int id) throws IOException {
findAndConstructPlayerFromDatabase(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Player(int id, String name){\n\t\tthis();\n\t\tthis.id = id;\n\t\tthis.name = name;\n\t}",
"Player(String playerName) {\n this.playerName = playerName;\n }",
"private void findAndConstructPlayerFromDatabase(int id) throws IOException {\n openPlayerDataFromCSV(); // generate the file reader for the c... | [
"0.6447987",
"0.64117",
"0.6334996",
"0.6298613",
"0.61804694",
"0.6106765",
"0.6099842",
"0.6074246",
"0.6017896",
"0.60101646",
"0.59899664",
"0.59542215",
"0.59306175",
"0.5930341",
"0.59090555",
"0.5893221",
"0.5886953",
"0.5881322",
"0.5863804",
"0.58126974",
"0.58046156... | 0.66788423 | 0 |
MODIFIES: this EFFECTS: Finds the player with the id given in the database and constructs a player with their information and stats throws an IOException if there was an error reading the player data from the database/unable to open the database. | private void findAndConstructPlayerFromDatabase(int id) throws IOException {
openPlayerDataFromCSV(); // generate the file reader for the csv
csvReader.readLine(); // read the first line through because it's just the headers
String row = csvReader.readLine();
// create a loop that reads until we find the player in the csv file
while (row != null) {
List<String> playerData = Arrays.asList(row.split(","));
playerID = Integer.parseInt(playerData.get(NbaGachaApp.ID_INDEX));
if (playerID == id) {
setPlayerData(playerData);
row = null; // we've created the player so don't need to keep looking
} else {
row = csvReader.readLine(); // keep looking until we find the player
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Player(int id) throws IOException {\n findAndConstructPlayerFromDatabase(id);\n }",
"@Override\n public Player getPlayerById(long id) {\n Player player=entityManager.find(Player.class,id);\n return player;\n }",
"public Player getPlayer(String playerId) {\n\t\topen();\n\t\t... | [
"0.71598154",
"0.6590021",
"0.65843374",
"0.6518844",
"0.6022809",
"0.6022711",
"0.5986312",
"0.59756726",
"0.5786684",
"0.5769178",
"0.5748478",
"0.57148117",
"0.5691713",
"0.5675023",
"0.5628142",
"0.56251734",
"0.5616625",
"0.5580005",
"0.5557752",
"0.55551267",
"0.5541653... | 0.68064797 | 1 |
/ REQUIRES: playerData must have size of 15 containing the data of the given player. The following indices must contain the values: 0 = rank, 1 = name, 2 = position, 3 = age, 4 = team, 5 = minutes, 6 = field goals 7 = field goal attempts, 8 = field goal percentage 9 = rebounds, 10 = assists, 11 = steals, 12 = blocks, 13 = points, 14 Stars. Rank, age and stars are integers represented as strings Minutes, field goals, field goal attempts, field goal percentage, rebounds, assists, steals, blocks, points are doubles represented as strings stars must be a integer represented as a string from 35 inclusive EFFECTS: Constructs a new basketball player with their information | private void setPlayerData(List<String> playerData) {
this.name = playerData.get(NbaGachaApp.NAME_INDEX);
this.position = playerData.get(NbaGachaApp.POSITION_INDEX);
this.stars = Integer.parseInt(playerData.get(NbaGachaApp.STAR_INDEX));
this.playerID = Integer.parseInt(playerData.get(NbaGachaApp.ID_INDEX));
this.team = playerData.get(NbaGachaApp.TEAM_INDEX);
setPlayerStats(playerData);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Player(String name, int playerNumber, int age, int salary, PlayerStat playerStats) {\n this.name = name; \n this.playerNumber = playerNumber;\n this.age = age;\n this.salary = salary; \n this.playerStats = playerStats;\n\n this.playerRating = -1; //sets the rating as a cle... | [
"0.60137373",
"0.5970932",
"0.57732534",
"0.5770775",
"0.57706434",
"0.57094085",
"0.56788",
"0.5629781",
"0.5627594",
"0.5605144",
"0.5573454",
"0.5554385",
"0.55473614",
"0.55333537",
"0.55256355",
"0.5516514",
"0.5499575",
"0.5488679",
"0.54644144",
"0.5450231",
"0.5382731... | 0.64305955 | 0 |
/ REQUIRES: playerData must have size of 15 containing the data of the given player the following indices must contain the values: 0 = rank, 1 = name, 2 = position, 3 = age, 4 = team, 5 = minutes, 6 = field goals 7 = field goal attempts, 8 = field goal percentage 9 = rebounds, 10 = assists, 11 = steals, 12 = blocks, 13 = points, 14 Stars. MODIFIES: this EFFECTS: Creates a hashmap with the keys being "minutes", "rebounds", "assists", "blocks", "points", mapping to the corresponding stat value of the player | public void setPlayerStats(List<String> playerData) {
this.playerStats = new HashMap<>();
// pull the data from the List
Double minutesPlayed = Double.parseDouble(playerData.get(NbaGachaApp.MINUTES_PLAYED_INDEX));
Double rebounds = Double.parseDouble(playerData.get(NbaGachaApp.REBOUNDS_INDEX));
Double assists = Double.parseDouble(playerData.get(NbaGachaApp.ASSIST_INDEX));
Double blocks = Double.parseDouble(playerData.get(NbaGachaApp.BLOCKS_INDEX));
Double points = Double.parseDouble(playerData.get(NbaGachaApp.POINTS_INDEX));
// set the hashmap up with the keys and their corresponding values
playerStats.put("minutes", minutesPlayed);
playerStats.put("rebounds", rebounds);
playerStats.put("assists", assists);
playerStats.put("blocks", blocks);
playerStats.put("points", points);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PlayerStats getPlayerStats() {\n /* Get score and kills */\n String score = String.valueOf(this.getScoreCounter().getScore());\n String kills = Integer.toString(this.killCount);\n \n playerStats.setScoreId(\"1\"); /* This will be changed in SavePlayerStats */\n play... | [
"0.63358474",
"0.630541",
"0.5866602",
"0.5773376",
"0.57242656",
"0.5681676",
"0.56793016",
"0.56098527",
"0.5581466",
"0.5579756",
"0.5576524",
"0.5562483",
"0.55524266",
"0.5516425",
"0.5502229",
"0.54576397",
"0.5456682",
"0.54563415",
"0.5411398",
"0.53638715",
"0.532643... | 0.7509846 | 0 |
MODIFIES: this EFFECTS: Opens the IOStream to read the CSV file containing the player information throws a FileNotFoundException if it could not open the CSV file for reading | public void openPlayerDataFromCSV() throws FileNotFoundException {
csvReader = new BufferedReader(new FileReader(PATH_TO_CSV));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<Player> importPlayerData() {\n \n try {\n //Try to access player.csv in the given directory\n\t\t\tFile file = new File(\"data\\\\player.csv\");\n Scanner fileIn = new Scanner(file);\n \n fileIn.skip(\"userName,fullName,password,gold,exp,noOfLa... | [
"0.6387224",
"0.62404287",
"0.61429834",
"0.6092752",
"0.60555",
"0.602396",
"0.5885132",
"0.58628374",
"0.57004136",
"0.5537059",
"0.5517401",
"0.54489243",
"0.5447645",
"0.5446229",
"0.5443619",
"0.5380917",
"0.5377485",
"0.53534436",
"0.5353017",
"0.5337457",
"0.5324086",
... | 0.77378297 | 0 |
EFFECTS: Returns the player as a JSON object | public JSONObject playerToJson() {
JSONObject playerAsJsonObject = new JSONObject();
playerAsJsonObject.put(JSON_NAME_KEY, this.name);
playerAsJsonObject.put(JSON_PLAYERID_KEY, this.playerID);
return playerAsJsonObject;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void sendPlayerData() throws JSONException {\n\t\tJSONObject json = new JSONObject();\n\t\tJSONObject json2 = new JSONObject();\n\t\tjson2.put(\"Name\", playerModel.getPlayerName());\n\n\t\tswitch (playerModel.getPlayerColor()) {\n\n\t\tcase PL_BLUE:\n\t\t\tjson2.put(\"Farbe\", \"Blau\");\n\t\t\tbreak;\n\t\... | [
"0.6076653",
"0.567593",
"0.5586782",
"0.5585664",
"0.5569963",
"0.55430925",
"0.5540112",
"0.5462271",
"0.54053587",
"0.5396596",
"0.5396596",
"0.5373645",
"0.5338172",
"0.5309901",
"0.53090996",
"0.53078717",
"0.5307619",
"0.5298708",
"0.52763957",
"0.52756214",
"0.52586925... | 0.56795233 | 1 |
EFFECTS: Returns the stats of the player (minutes, assists, rebounds, blocks, points) | public HashMap<String, Double> getStats() {
return playerStats; // stub
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public PlayerStatistics getPlayerStats() {\n return this.playerStats;\n }",
"public void printPlayerStat(Player player);",
"public void updateStats( ) {\r\n\t\tperseverance = owner.perseverance;\r\n\t\tobservation = owner.observation;\r\n\t\tintellect = owner.intellect;\r\n\t\tnegotiat... | [
"0.6344278",
"0.632961",
"0.6255612",
"0.61421305",
"0.60906625",
"0.60378915",
"0.5944591",
"0.5928729",
"0.59119254",
"0.5901812",
"0.5894249",
"0.58445776",
"0.5816154",
"0.58145756",
"0.5792454",
"0.5764577",
"0.5761606",
"0.57415324",
"0.57270247",
"0.57245207",
"0.56864... | 0.6379262 | 0 |
EFFECTS: Returns the name of the player | public String getName() {
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getPlayerName();",
"abstract public String getNameFor(Player player);",
"String getName() {\n return getStringStat(playerName);\n }",
"public String getName(){\r\n\t\treturn playerName;\r\n\t}",
"public String getName(Player p) {\n\t\treturn name;\n\t}",
"String getName(){\n\t\treturn playerNa... | [
"0.71379596",
"0.6669629",
"0.6657502",
"0.6643365",
"0.66415614",
"0.65988016",
"0.65178204",
"0.64647824",
"0.6459215",
"0.6448344",
"0.6392671",
"0.63636625",
"0.6341558",
"0.6304183",
"0.6304183",
"0.62934154",
"0.628256",
"0.62798774",
"0.6279686",
"0.622736",
"0.6204965... | 0.0 | -1 |
EFFECTS: Returns the team the player plays for | public String getTeam() {
return team;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getTeam();",
"Player getPlayer();",
"public Player getPlayer();",
"public Player getPlayer();",
"public List<Hero> getTeam() {\r\n return team;\r\n }",
"public static Player getEffectedPlayers(Player efPlayer) {\r\n //the chosen player will be returned\r\n return efPlayer;\r\n... | [
"0.5630368",
"0.55845773",
"0.55506796",
"0.55506796",
"0.5544643",
"0.5519684",
"0.546857",
"0.5459064",
"0.5428076",
"0.54184127",
"0.5417061",
"0.5388365",
"0.5367533",
"0.53588104",
"0.53583205",
"0.53583205",
"0.5324768",
"0.5262577",
"0.52573174",
"0.52245116",
"0.51888... | 0.50085765 | 63 |
EFFECTS: Returns the position that the player usually plays | public String getPosition() {
return position;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PositionEffect getPositionEffect();",
"public int getCurrentPlayerRealPosition();",
"public double getPosition()\n {\n return position * FPS;\n }",
"public void explosion(){\n explosionEffect.play(pitch, volume);\n }",
"@Override\n\tpublic Position getPosition() {\n\t\treturn player.... | [
"0.7032465",
"0.6699034",
"0.62794906",
"0.61842966",
"0.6147458",
"0.61243284",
"0.5991144",
"0.5982315",
"0.5946302",
"0.5904278",
"0.5818234",
"0.58176094",
"0.5813778",
"0.5813778",
"0.580056",
"0.5774124",
"0.5770109",
"0.57532585",
"0.5719934",
"0.57168406",
"0.5709824"... | 0.0 | -1 |
EFFECTS: Returns the ID of the player | public int getPlayerID() {
return playerID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getPlayerId();",
"int getPlayerId();",
"public int getPlayerId();",
"java.lang.String getPlayerId();",
"long getPlayerId();",
"public int getId() {\n return playerId;\n }",
"UUID getActivePlayerId();",
"public void explosion(){\n explosionEffect.play(pitch, volume);\n }",
"p... | [
"0.6824899",
"0.6824899",
"0.66798985",
"0.6492824",
"0.6462865",
"0.6199763",
"0.5962594",
"0.59494656",
"0.59043205",
"0.5837888",
"0.5761435",
"0.575176",
"0.57379436",
"0.5721415",
"0.5699842",
"0.5696424",
"0.5675885",
"0.55871034",
"0.55871034",
"0.5523978",
"0.551805",... | 0.57989866 | 10 |
EFFECTS: Returns the tier of the player | public int getStars() {
return stars;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String tier();",
"public int getTier()\r\n\t{\treturn this.tier;\t}",
"int getEffect();",
"public abstract void setEffects(Tank t);",
"public short getSiegeWeaponDamage();",
"public float getTotalEffect(Player player)\n {\n return leastAmount + BONUS_MULTIPLIER * player.getIntelligence();\n ... | [
"0.6431204",
"0.62258",
"0.59365296",
"0.5789206",
"0.5713103",
"0.56917256",
"0.56643945",
"0.563491",
"0.56084424",
"0.56023014",
"0.5581794",
"0.55702794",
"0.55702794",
"0.55460787",
"0.55133355",
"0.54868615",
"0.54803896",
"0.5479864",
"0.546143",
"0.5459593",
"0.545959... | 0.0 | -1 |
EFFECTS: Returns a string representation of the player | public String toString() {
return "Name: " + name + " Stars: " + stars + " Position: " + position + " Team: " + team;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String effect(Player player) {\n\tif (player.character.getAlignment() == Alignment.EVIL) {\n\t player.character.setCurrentLife(player.character.getLife() + 1);\n\t return \"You gain a life </html>\";\n\t} else if (player.character.getAlignment() == Alignment.GOOD) {\n\t player.character.setCurrentL... | [
"0.64625627",
"0.6379231",
"0.63471264",
"0.6197877",
"0.615266",
"0.61026114",
"0.608941",
"0.6030005",
"0.60046303",
"0.59786236",
"0.5969466",
"0.59474385",
"0.5934417",
"0.59191614",
"0.58965147",
"0.5880878",
"0.5837231",
"0.5833576",
"0.58289635",
"0.5826878",
"0.579074... | 0.0 | -1 |
All the valid checks are performed on the super method | @Override
public void doYourStuff(Intent intent) {
final String action = intent.getAction();
if (ACTION_SENDPICTURE.equals(action)) {
final long pictureId = intent.getLongExtra(EXTRA_PICTUREID, 0);
sendPictureToWear(pictureId);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void validate() {\n\t\tsuper.validate();\n\t}",
"protected void validate() {\n // no implementation.\n }",
"@Override\r\n\tpublic void validate() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void validate() {\n\t}",
"@Override\r\n public void validate() {\r\n }",
"@Overr... | [
"0.8241653",
"0.8211847",
"0.819815",
"0.81624305",
"0.81503814",
"0.8104695",
"0.8045723",
"0.79096633",
"0.7863023",
"0.78291905",
"0.76768684",
"0.76610523",
"0.76610523",
"0.76171654",
"0.74595416",
"0.7421578",
"0.7421578",
"0.7376024",
"0.7373638",
"0.7369726",
"0.73697... | 0.0 | -1 |
/\ |Public Attributes| \ /\ |Set| \ | public void setActualFloor(int _actualFloor) {
actualFloor = _actualFloor;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\npublic void setAttributes() {\n\t\n}",
"protected abstract Set method_1559();",
"@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEqu... | [
"0.7006897",
"0.66503507",
"0.63162357",
"0.62212414",
"0.61479855",
"0.6140778",
"0.6023822",
"0.6011968",
"0.5984358",
"0.5958618",
"0.59176695",
"0.58998024",
"0.58930415",
"0.5837899",
"0.5810791",
"0.5802321",
"0.5783761",
"0.5781726",
"0.576475",
"0.5746286",
"0.5744886... | 0.0 | -1 |
/\ |Private Methods | \ /\ |Public Methods| \ | public void Show(int _order){
System.out.println(_order + ": " + name + " is at floor #" + actualFloor + ", he wants to go to floor #" + targetFloor);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void myPublicMethod() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n public boolean isPrivate() {\n return true;\n }",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generate... | [
"0.75326467",
"0.7315936",
"0.7068846",
"0.692032",
"0.6869969",
"0.6869969",
"0.68486464",
"0.6847486",
"0.6831022",
"0.6824402",
"0.68070245",
"0.6754192",
"0.6719276",
"0.6700053",
"0.6682532",
"0.6656047",
"0.6643324",
"0.662446",
"0.65070987",
"0.6491524",
"0.64246845",
... | 0.0 | -1 |
/ renamed from: a | public final boolean mo44526a(C17266o oVar, boolean z) throws IOException {
boolean z2;
if (this.f48004c == null || !this.f48004c.mo44526a(oVar, z)) {
z2 = false;
} else {
z2 = true;
}
if (z2) {
try {
this.f48003b.mo44525a();
} catch (IOException e) {
f48002a.log(Level.WARNING, "exception thrown while calling server callback", e);
}
}
return z2;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | public final boolean mo44486a(C17266o oVar, C17269r rVar, boolean z) throws IOException {
boolean z2;
if (this.f48005d == null || !this.f48005d.mo44486a(oVar, rVar, z)) {
z2 = false;
} else {
z2 = true;
}
if (z2 && z && rVar.f48126e / 100 == 5) {
try {
this.f48003b.mo44525a();
} catch (IOException e) {
f48002a.log(Level.WARNING, "exception thrown while calling server callback", e);
}
}
return z2;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ Return question ID | public String getID() {
return this.ID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getQuestionId();",
"public int getIdQuestion() {\r\n return idQuestion;\r\n }",
"public int getIdQuestion() {\n return idQuestion;\n }",
"public int getQuestionId() {\n return questionId;\n }",
"public int getQuestionId() {\n return questionId;\n }",
"public ... | [
"0.797284",
"0.79380035",
"0.7885553",
"0.77560216",
"0.7733617",
"0.76946646",
"0.76865226",
"0.7605378",
"0.7544014",
"0.7510841",
"0.7269453",
"0.69812477",
"0.69812477",
"0.69812477",
"0.69812477",
"0.6937556",
"0.6936019",
"0.69336516",
"0.69010586",
"0.6884262",
"0.6863... | 0.0 | -1 |
/ Return question content | public String getContent() {
return this.content;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getQuestionContent() {\n return questionContent;\n }",
"public String getQuestioncontent() {\n return questioncontent;\n }",
"public String getAnswercontent() {\n return answercontent;\n }",
"public String getQuestion() {\n return question;\n }",
"public S... | [
"0.79279464",
"0.7773089",
"0.7173248",
"0.70547855",
"0.7044057",
"0.6948891",
"0.6944649",
"0.6933143",
"0.6788184",
"0.6715866",
"0.6688035",
"0.66569513",
"0.66470146",
"0.66450095",
"0.6530162",
"0.6529759",
"0.6519024",
"0.65006614",
"0.6474836",
"0.64324313",
"0.640300... | 0.0 | -1 |
/ Return question expression | public ExpressionInterface getExpression() {
return this.expression;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract String answer();",
"private Operation expression1(Scope scope, Vector queue)\r\n {\r\n follower.add(Keyword.QUESTIONMARKSY);\r\n Operation op = expression2(scope, queue);\r\n follower.remove(follower.size() - 1);\r\n\r\n if (nextSymbol == Keyword.QUESTIONMARKSY)\r\n {\r\n ... | [
"0.6311312",
"0.61428285",
"0.6124747",
"0.60558957",
"0.59699",
"0.58951294",
"0.58691466",
"0.5863005",
"0.5814324",
"0.5810655",
"0.579661",
"0.5772868",
"0.5717271",
"0.5715491",
"0.56966335",
"0.56901366",
"0.56700814",
"0.5668124",
"0.56533563",
"0.56376624",
"0.5601244... | 0.0 | -1 |
/ Return question type | @Override
public StatementTypeInterface getType() {
return this.type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getQuestionType() {\n return questionType;\n }",
"public abstract boolean isTypeCorrect();",
"Question getQuestion();",
"public int getQuestionType() {\r\n\t\treturn questionType;\r\n\t}",
"public String getQuestionType() {\n return questionType;\n }",
"@Override\r\n\tp... | [
"0.6465901",
"0.642075",
"0.6397928",
"0.63360214",
"0.6256775",
"0.6150791",
"0.61173505",
"0.61173505",
"0.61173505",
"0.61173505",
"0.61173505",
"0.61173505",
"0.61173505",
"0.61173505",
"0.61173505",
"0.61173505",
"0.61173505",
"0.61173505",
"0.61173505",
"0.6098906",
"0.... | 0.0 | -1 |
Instantiates a new path tab view. | public PathTabView(){
//PATH Index directory
lblIndexerPath=new JLabel("Indexes destination : ");
txtIndexerPath=new JTextField();
txtIndexerPath.setPreferredSize(new Dimension(200,25));
txtIndexerPath.setText(Configuration.getInstance().getIndexPath());
panelIndexer=new JPanel();
panelIndexer.setBorder(BorderFactory.createTitledBorder("Indexation"));
btnBrowserIndexer=new JButton("...");
btnBrowserIndexer.addActionListener(new BrowserClickController(this,1));
panelIndexer.add(lblIndexerPath);
panelIndexer.add(txtIndexerPath);
panelIndexer.add(btnBrowserIndexer);
//PATH Data directory
lblDataPath=new JLabel("Datas directory : ");
txtDataPath=new JTextField();
txtDataPath.setPreferredSize(new Dimension(200,25));
txtDataPath.setText(Configuration.getInstance().getDataPath());
panelData=new JPanel();
panelData.setBorder(BorderFactory.createTitledBorder("Data"));
btnBrowserData=new JButton("...");
btnBrowserData.addActionListener(new BrowserClickController(this,2));
panelData.add(lblDataPath);
panelData.add(txtDataPath);
panelData.add(btnBrowserData);
//Init button cancel & save
btnSubmit=new JButton("Save");
btnSubmit.addActionListener(new SubmitPathClickController(this));
btnCancel=new JButton("Cancel");
btnCancel.addActionListener(new CancelPathClickController(this));
splitPath=new JSplitPane(JSplitPane.VERTICAL_SPLIT,panelData,panelIndexer);
panelButton=new JPanel();
panelButton.add(btnSubmit);
panelButton.add(btnCancel);
splitMain=new JSplitPane(JSplitPane.VERTICAL_SPLIT,splitPath,panelButton);
this.add(splitMain);
razTextPath();
this.setVisible(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initTabs() {\n\t\tJPanel newTab = new JPanel();\r\n\t\taddTab(\"\", newTab); //$NON-NLS-1$\r\n\t\tsetTabComponentAt(0, new NewPaneButton());\r\n\t\tsetEnabledAt(0, false);\r\n\t\t// Add a new pane\r\n\t\taddPane();\r\n }",
"private void initFaithPathPane() {\n this.faithPathPane = new Fait... | [
"0.584216",
"0.57863575",
"0.5721374",
"0.5713635",
"0.5706794",
"0.56834924",
"0.5605675",
"0.5604872",
"0.5597103",
"0.5537659",
"0.550903",
"0.54402864",
"0.5409127",
"0.5357679",
"0.53473675",
"0.5336449",
"0.5318538",
"0.5299348",
"0.52988124",
"0.52825564",
"0.5274426",... | 0.68253446 | 0 |
Sets the text indexer path name. | public void setTextIndexerPathName(String txtPath){
txtIndexerPath.setText(txtPath);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTextDataPathName(String txtPath){\n\t\ttxtDataPath.setText(txtPath);\n\t}",
"public void setDocumentName(String name)\n {\n setText(name);\n }",
"public void setTextPath(String path) {\n this.txf_FilePath.setText(path);\n }",
"public void setText(String txt)\n {\n fi... | [
"0.65968764",
"0.6274563",
"0.62335914",
"0.6111918",
"0.6042368",
"0.5994423",
"0.5987691",
"0.598293",
"0.5979996",
"0.5922663",
"0.5906383",
"0.58829135",
"0.5874763",
"0.5828556",
"0.5804363",
"0.57867765",
"0.57660234",
"0.57645315",
"0.5722434",
"0.56860834",
"0.5681732... | 0.83031756 | 0 |
Sets the text data path name. | public void setTextDataPathName(String txtPath){
txtDataPath.setText(txtPath);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void setDataName(String dataName) {\n this.dataName = dataName;\n }",
"public void setTextIndexerPathName(String txtPath){\n\t\ttxtIndexerPath.setText(txtPath);\n\t}",
"public void setText(String txt)\n {\n fileName.setText(txt);\n }",
"public void setTextPath(String path) {\n ... | [
"0.6986936",
"0.69128484",
"0.6736645",
"0.6641844",
"0.6504032",
"0.6415687",
"0.641194",
"0.6391654",
"0.63445765",
"0.6325495",
"0.63158345",
"0.6264718",
"0.61429733",
"0.6138169",
"0.6071654",
"0.6046396",
"0.60300046",
"0.6021143",
"0.60039276",
"0.5986541",
"0.5986074"... | 0.81199753 | 0 |
Create a broker agent. Create a depot. Add money to depot, read state of depot, buy stock, sell stock, unregister depot | @Test
public void functionKoreDatastructureTest() {
try {
String DataStructureAgent1Name = "DataStructureAgent1";
//String weatherAgent2Name = "WeatherAgent2";
String datageneratorservice = "DataStructureGenerator";
AgentConfig cf = AgentConfig.newConfig(DataStructureAgent1Name)
.addFunction(FunctionConfig.newConfig(datageneratorservice, KoreDataStructureGeneratorMock.class))
.addFunction(FunctionConfig.newConfig("LamprosUI", UserInterfaceCollector.class)
.addManagedDatapoint("KORE", DataStructureAgent1Name + ":" + datageneratorservice + "/result", SyncMode.SUBSCRIBEONLY));
Cell weatherAgent = this.launcher.createAgent(cf);
//=== Init finished ===//
synchronized (this) {
try {
this.wait(2000);
} catch (InterruptedException e) {
}
}
log.info("=== All agents initialized ===");
weatherAgent.getCommunicator().execute(weatherAgent.getName() + ":" + datageneratorservice + "/command", (new Request())
.setParameter("command", ControlCommand.START)
.setParameter("blocking", false), 100000);
//Wait while the system runs
synchronized (this) {
try {
this.wait(2000000000);
} catch (InterruptedException e) {
}
}
//Read the state of the system
//JsonObject systemState = weatherAgent.readLocalDatapoint(CFStateGenerator.SYSTEMSTATEADDRESS).getValue().getAsJsonObject();
//String currentResult = systemState.get("hasFunction").getAsJsonArray().get(0).getAsJsonObject().get("hasState").getAsString();
//String expectedResult = "RUNNING"; //As the system is still running, when the request is sent
//weatherAgent.getCommunicator().write(DatapointBuilder.newDatapoint(weatherservice + ".command").setValue(ControlCommand.STOP));
//log.info("current result={}, expected result={}", currentResult, expectedResult);
assertEquals(true, false);
log.info("Tests passed");
} catch (Exception e) {
log.error("Error testing system", e);
fail("Error");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setup() {\n\t\tSystem.out.println(\"Broker Agent \"+getAID().getName()+\" is ready.\");\r\n\t\tthis.getContentManager().registerLanguage(new SLCodec());\r\n\t\tthis.getContentManager().registerOntology(RequestOntology.getInstance());\r\n\t\t\r\n\t\tObject[] args = getArguments();\r\n\t\tif (args != ... | [
"0.64575595",
"0.5989846",
"0.58358425",
"0.578305",
"0.57070917",
"0.5666914",
"0.56383485",
"0.56163263",
"0.5615122",
"0.56093264",
"0.5485974",
"0.54191196",
"0.5380815",
"0.5342051",
"0.5309197",
"0.52821845",
"0.5273656",
"0.5261582",
"0.52471185",
"0.5221265",
"0.52037... | 0.0 | -1 |
setting up user login information | public User CustomerFormClassToUserClass(CustomerForm customerForm) {
User user = new User();
user.setEnabled(false);
user.setEmail(customerForm.getEmail());
user.setRandomUUID(java.util.UUID.randomUUID().toString());
user.setUsername(customerForm.getUsername());
user.setPassword(customerForm.getPassword());
// setting up security authority
Authority authority = new Authority();
authority.setAuthority(customerForm.getAuthority());
// setting customerspecific properties
Customer customer = new Customer();
customer.setFirstName(customerForm.getFirstName());
customer.setLastName(customerForm.getLastName());
customer.setDateAccount(customerForm.getDateAccount());
// build persistable user
user.setAuthority(authority);
user.setCustomer(customer);
authority.setUser(user);
customer.setUser(user);
return user;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"admin@gibmit.ch\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)co... | [
"0.7393499",
"0.7376657",
"0.72212374",
"0.72041595",
"0.7155816",
"0.7127768",
"0.70144486",
"0.70004195",
"0.6987827",
"0.69443315",
"0.6921001",
"0.69101596",
"0.68960714",
"0.6887744",
"0.6878561",
"0.6848684",
"0.678936",
"0.67837787",
"0.6761328",
"0.6753398",
"0.675089... | 0.0 | -1 |
TODO Autogenerated method stub response.getWriter().append("Served at: ").append(request.getContextPath()); | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
this.doPost(request, response);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException \r\n{\nresponse.getWriter().append(\"Served at: \").append(request.getContextPath()); \r\n}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException... | [
"0.7609057",
"0.7331658",
"0.7331658",
"0.71911204",
"0.71193284",
"0.71193284",
"0.71193284",
"0.71193284",
"0.71037215",
"0.7070409",
"0.7068298",
"0.7068298",
"0.7068298",
"0.7068298",
"0.7068298",
"0.7068298",
"0.7068298",
"0.7068298",
"0.7068298",
"0.7068298",
"0.7068298... | 0.0 | -1 |
TODO Autogenerated method stub response.setContentType("text/html;charset=utf8"); | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
request.setCharacterEncoding("utf-8");
response.setCharacterEncoding("utf-8");
PrintWriter out=response.getWriter();
String jsonString="";
String action_flag=request.getParameter("action_flag");
if(action_flag.equals("Person")){
jsonString=JsonTools.getJsonString( "Person", creatJson.getPerson());
}else if(action_flag.equals("Persons")){
jsonString=JsonTools.getJsonString("Persons", creatJson.getPersonList());
}else if(action_flag.equals("StringList")){
jsonString=JsonTools.getJsonString("StringList", creatJson.getStringList());
}else if(action_flag.equals("ListMap")){
jsonString=JsonTools.getJsonString("ListMap", creatJson.getListMap());
}
out.println(jsonString);
out.flush();
out.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n \n \n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse resp... | [
"0.75376713",
"0.73558605",
"0.73558605",
"0.73558605",
"0.73558605",
"0.7232253",
"0.704887",
"0.69513625",
"0.6792765",
"0.66485673",
"0.66428447",
"0.65288717",
"0.65174437",
"0.6498485",
"0.64956826",
"0.6482334",
"0.6479556",
"0.64522725",
"0.63817984",
"0.6341555",
"0.6... | 0.5738356 | 67 |
se usa la interfaz /UsuarioDAO | @Override
public void agregarUsuario(Usuario u) {
//Con esto se obtiene el usuario
Usuario uBD = usuarioDao.obtenerPorNombreUsuario(u.getNombreusuario());
if (uBD != null) //si este usuario ya existe en la base de datos
throw new BlogException("Ya existe un usuario con ese nombre de usuario");
usuarioDao.agregar(u); //sino se agrega, es el metodo generico
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ControladorUsuario(UsuarioDAO usuarioDAO) {\n\n this.usuarioDAO = usuarioDAO;\n \n }",
"public interface UsuarioDao {\n\t\n\tUsuario consultarUsuario (Usuario usuario);\n\tvoid cargarUsuario();\n\tvoid crearUsuario(Usuario usuario);\n\tvoid guardarTexto(Long id,String texto);\n\tboolean v... | [
"0.7865631",
"0.7690192",
"0.7614689",
"0.75415355",
"0.728281",
"0.7205674",
"0.7184109",
"0.7136553",
"0.7118692",
"0.70933455",
"0.7057661",
"0.7053914",
"0.7047172",
"0.7040011",
"0.6985636",
"0.6961248",
"0.6901896",
"0.68977976",
"0.68772984",
"0.68461126",
"0.6839818",... | 0.67096645 | 33 |
To ignore total property during deserialization. Should not be used manually. | @Deprecated
@JsonProperty
public void setTotal(final long total) {
//do nothing
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@JsonProperty(\"total_items\")\n public Long getTotalItems() {\n return totalItems;\n }",
"@Override\n public double getTotal() {\n return total;\n }",
"public final ReadOnlyDoubleProperty totalProperty() {\n return total.getReadOnlyProperty();\n }",
"@JsonProperty(\"total... | [
"0.6020556",
"0.59053004",
"0.5801232",
"0.57729137",
"0.57459986",
"0.56997234",
"0.5680717",
"0.5680717",
"0.5674355",
"0.5662286",
"0.56148237",
"0.56148237",
"0.56148237",
"0.5607016",
"0.5607016",
"0.5604766",
"0.5602184",
"0.56006056",
"0.5598898",
"0.5597585",
"0.55650... | 0.64822507 | 0 |
TODO Autogenerated method stub | @Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(operate_time);
dest.writeString(operate_name);
dest.writeString(resume_number);
dest.writeString(name);
dest.writeString(echo_yes);
dest.writeString(sex);
dest.writeString(year);
dest.writeString(work_beginyear);
dest.writeString(high_education);
dest.writeString(location);
dest.writeString(pic_filekey);
dest.writeString(user_id);
dest.writeString(resume_id);
dest.writeString(moremajor);
dest.writeString(isnew);
} | {
"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 DownLoadResumeInfoBean createFromParcel(Parcel source) {
DownLoadResumeInfoBean downLoadResumeInfoBean = new DownLoadResumeInfoBean();
downLoadResumeInfoBean.operate_time = source.readString();
downLoadResumeInfoBean.resume_number = source.readString();
downLoadResumeInfoBean.name = source.readString();
downLoadResumeInfoBean.echo_yes = source.readString();
downLoadResumeInfoBean.sex = source.readString();
downLoadResumeInfoBean.year = source.readString();
downLoadResumeInfoBean.work_beginyear = source.readString();
downLoadResumeInfoBean.high_education = source.readString();
downLoadResumeInfoBean.location = source.readString();
downLoadResumeInfoBean.pic_filekey = source.readString();
downLoadResumeInfoBean.user_id = source.readString();
downLoadResumeInfoBean.resume_id = source.readString();
downLoadResumeInfoBean.moremajor = source.readString();
downLoadResumeInfoBean.operate_name = source.readString();
downLoadResumeInfoBean.isnew = source.readString();
return downLoadResumeInfoBean;
} | {
"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 DownLoadResumeInfoBean[] newArray(int size) {
return new DownLoadResumeInfoBean[size];
} | {
"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 String getUserName() {
return name;
} | {
"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 String getResumeDate() {
return operate_time;
} | {
"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 String getWorkBeginYear() {
Calendar calendar = Calendar.getInstance();
if (!work_beginyear.equals("") && work_beginyear != null) {
return String.valueOf(calendar.get(Calendar.YEAR) - Integer.parseInt(work_beginyear));
}
return "";
} | {
"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 String getJobName() {
return operate_name;
} | {
"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 String getMoreMojor() {
return moremajor;
} | {
"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 String getHighEdu() {
return high_education;
} | {
"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 String getPicPhoto() {
return pic_filekey;
} | {
"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 String getUserID() {
return user_id;
} | {
"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 String getResumeID() {
return resume_id;
} | {
"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 String getResumeDeleteID() {
return id;
} | {
"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 String getResumeLanguage() {
return "zh";
} | {
"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 String getIsNew() {
return "0";
} | {
"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 |
concurrency: may return removed accounts | public Account getAccount(Integer id) {
if (!accounts.containsKey(id)) {
throw new NotFoundException("Not found");
}
AccountEntry entry = accounts.get(id);
if (entry == null) {
throw new NotFoundException("Not found");
}
// concurrency: optimistic, entry may already be excluded from accounts
Lock itemLock = entry.lock.readLock();
try {
itemLock.lock();
return entry.data;
} finally {
itemLock.unlock();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VisibleForTesting\n void removeAllAccounts();",
"@Override\n public List<PooledTransaction> removeTxsWithNonceLessThan(Map<AionAddress, BigInteger> accNonce) {\n\n List<ByteArrayWrapper> bwList = new ArrayList<>();\n for (Map.Entry<AionAddress, BigInteger> en1 : accNonce.entrySet()) {\n ... | [
"0.69494396",
"0.6437863",
"0.6045758",
"0.6028429",
"0.59709847",
"0.5967235",
"0.59236133",
"0.5893306",
"0.58866745",
"0.5798971",
"0.57459414",
"0.56748307",
"0.567245",
"0.5632001",
"0.56187665",
"0.5615698",
"0.5594767",
"0.5517277",
"0.5510481",
"0.547904",
"0.5451708"... | 0.0 | -1 |
It updates the language of the elements of this class. | public void updateLanguage() {
this.title.setText(LanguageStringMap.get().getMap().get(TITLE_KEY));
this.skinSwitcher.updateLanguage();
this.langSwitcher.updateLanguage();
this.pawnSwitcher.updateLanguage();
this.musicManager.updateLanguage();
this.back.setText(LanguageStringMap.get().getMap().get(BACK_KEY));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateLanguage() {\n buttonPlay.setText(GameConfiguration.getText(\"playButton\"));\n buttonSettings.setText(GameConfiguration.getText(\"settingsButton\"));\n buttonHighScores.setText(GameConfiguration.getText(\"highScores\"));\n }",
"@Override\n public void updateLanguage(... | [
"0.7418313",
"0.7313944",
"0.7087735",
"0.67427665",
"0.6713779",
"0.6710714",
"0.6607862",
"0.6595015",
"0.65225476",
"0.65133697",
"0.6470213",
"0.63243675",
"0.62744415",
"0.62617445",
"0.62311214",
"0.6207774",
"0.6207774",
"0.6207774",
"0.6181923",
"0.61730987",
"0.61410... | 0.74652714 | 0 |
It updates the elements shown in the combo boxes. | public void updateComboLang() {
this.pawnSwitcher.updatePrompt();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setComboBoxes() { Something was changed in the row.\n //\n final Map<String, Integer> fields = new HashMap<>();\n\n // Add the currentMeta fields...\n fields.putAll(inputFields);\n\n Set<String> keySet = fields.keySet();\n List<String> entries = new ArrayList<>(keySet);\n\n Stri... | [
"0.71392524",
"0.6989086",
"0.6927158",
"0.6923472",
"0.69096994",
"0.68062586",
"0.68047833",
"0.6797899",
"0.674575",
"0.6744579",
"0.6716622",
"0.67116827",
"0.67051417",
"0.6700201",
"0.669027",
"0.6646639",
"0.66358584",
"0.66177326",
"0.65935004",
"0.65901685",
"0.65804... | 0.6302595 | 49 |
Getter of the scene. | public static Settings getScene(final Stage stage) {
settingStage = stage;
return settingsScene;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Scene getScene(){\n return scene;\n }",
"public Scene getScene()\n {\n return scene;\n }",
"public Scene getScene(){\n\t\treturn this.scene;\n\t}",
"public String getScene() {\n\t\treturn scene;\n\t}",
"public final Scene getScene() {\n return activeScene;\n }",
... | [
"0.87973964",
"0.86929476",
"0.86202806",
"0.84888566",
"0.83279413",
"0.8197903",
"0.8165574",
"0.8149851",
"0.8059075",
"0.7966134",
"0.7927689",
"0.74750787",
"0.7307369",
"0.72317296",
"0.71394783",
"0.7006079",
"0.6999812",
"0.6934641",
"0.68870705",
"0.67269266",
"0.672... | 0.62197506 | 39 |
Getter of the music manager. | public MusicManager getMusicManger() {
return this.musicManager;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static MusicManager getInstance() {\n\t\tif (musicManager == null)\n\t\t\tmusicManager = new MusicManager();\n\t\t\n\t\treturn musicManager;\n\t}",
"public AudioManager getAudioManager() {\r\n return audioManager;\r\n }",
"public Music getMusic() {\n return music;\n }",
"public MP3... | [
"0.7729232",
"0.7334189",
"0.72681004",
"0.7171858",
"0.7086204",
"0.70761347",
"0.68020236",
"0.67870176",
"0.67870176",
"0.67870176",
"0.66072005",
"0.6535884",
"0.64885163",
"0.6456565",
"0.6452133",
"0.64369684",
"0.6394449",
"0.6388657",
"0.6352203",
"0.6345039",
"0.6343... | 0.8760799 | 0 |
Add a new netty server handler to the router. | public void addServer(AbstractServer server) {
// Iterate through all types of CorfuMsgType, registering the handler
server.getHandler().getHandledTypes()
.forEach(x -> {
handlerMap.put(x, server);
log.trace("Registered {} to handle messages of type {}", server, x);
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public TelnetServerHandler createHandler(TelnetSocket s);",
"@Override\n public void handlerAdded(ChannelHandlerContext ctx) throws Exception {\n super.handlerAdded(ctx);\n logger.info(\"Added handler: \" + ctx.channel().remoteAddress());\n }",
"void addHandler( final String route,... | [
"0.6264217",
"0.62631327",
"0.61785454",
"0.6115576",
"0.60323626",
"0.5987729",
"0.5987057",
"0.5835608",
"0.5810787",
"0.5738826",
"0.5712846",
"0.5627893",
"0.55823916",
"0.55477995",
"0.54868686",
"0.5423255",
"0.5420074",
"0.53862023",
"0.52535677",
"0.52370363",
"0.5223... | 0.6360859 | 0 |
Iterate through all types of CorfuMsgType, unregistering the handler | public void removeServer(AbstractServer server) {
server.getHandler().getHandledTypes()
.forEach(x -> {
handlerMap.remove(x, server);
log.trace("Un-Registered {} to handle messages of type {}", server, x);
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"<T> void unregister(Class<T> messageType, Destination<T> destination);",
"public void shutdown(){\n for(MessageHandler h : handlerMap.values()){\n h.shutdown();\n }\n }",
"private void unregisterReceivers() {\n \t\t\n\t\tunregisterReceiver(newReadingsReceiver);\n\t\tunregisterReceiv... | [
"0.6247587",
"0.61777997",
"0.593524",
"0.5904234",
"0.589738",
"0.5862217",
"0.5756653",
"0.57417595",
"0.5725261",
"0.5723962",
"0.56885463",
"0.5682006",
"0.553164",
"0.550323",
"0.5474188",
"0.5451267",
"0.5445112",
"0.5436146",
"0.53850305",
"0.5363463",
"0.53633815",
... | 0.5047082 | 40 |
Send a netty message through this router, setting the fields in the outgoing message. | public void sendResponse(ChannelHandlerContext ctx, CorfuMsg inMsg, CorfuMsg outMsg) {
outMsg.copyBaseFields(inMsg);
ctx.writeAndFlush(outMsg);
log.trace("Sent response: {}", outMsg);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void send() {\n try {\n String message = _gson.toJson(this);\n byte[] bytes = message.getBytes(\"UTF-8\");\n int length = bytes.length;\n\n _out.writeInt(length);\n _out.write(bytes);\n \n } catch (IOException ex) {\n ... | [
"0.6322702",
"0.63009477",
"0.61175567",
"0.6022544",
"0.60097384",
"0.59601307",
"0.5954488",
"0.5918933",
"0.58429325",
"0.58287275",
"0.5810252",
"0.58017904",
"0.5737169",
"0.57286793",
"0.57238346",
"0.5700622",
"0.56966716",
"0.566104",
"0.5659591",
"0.56573105",
"0.565... | 0.0 | -1 |
Validate the epoch of a CorfuMsg, and send a WRONG_EPOCH response if the server is in the wrong epoch. Ignored if the message type is reset (which is valid in any epoch). | public boolean validateEpoch(CorfuMsg msg, ChannelHandlerContext ctx) {
long serverEpoch = getServerEpoch();
if (!msg.getMsgType().ignoreEpoch && msg.getEpoch() != serverEpoch) {
sendResponse(ctx, msg, new CorfuPayloadMsg<>(CorfuMsgType.WRONG_EPOCH,
serverEpoch));
log.trace("Incoming message with wrong epoch, got {}, expected {}, message was: {}",
msg.getEpoch(), serverEpoch, msg);
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int validateEpoch (int epoch)\n throws ControlDataInvalidException\n {\n if (!(epoch >= 0)) {\n throw new ControlDataInvalidException(\n \"Epoch must be equal to or greater than 0. epoch=[\" + epoch + \"]\");\n }\n\n return epoch;\n }",
"@Overri... | [
"0.6973168",
"0.6290943",
"0.54958856",
"0.5339381",
"0.5219457",
"0.5212525",
"0.5072155",
"0.4998892",
"0.49865577",
"0.4909607",
"0.4865888",
"0.4852929",
"0.48376828",
"0.47840774",
"0.47795781",
"0.47442874",
"0.46750262",
"0.46448934",
"0.46222264",
"0.45969552",
"0.457... | 0.8220721 | 0 |
Handle an incoming message read on the channel. | @Override
public void channelRead(ChannelHandlerContext ctx, Object msg) {
try {
// The incoming message should have been transformed to a CorfuMsg earlier in the pipeline.
CorfuMsg m = ((CorfuMsg) msg);
// We get the handler for this message from the map
AbstractServer handler = handlerMap.get(m.getMsgType());
if (handler == null) {
// The message was unregistered, we are dropping it.
log.warn("Received unregistered message {}, dropping", m);
} else {
if (validateEpoch(m, ctx)) {
// Route the message to the handler.
log.trace("Message routed to {}: {}", handler.getClass().getSimpleName(), msg);
handlerWorkers.submit(() -> handler.handleMessage(m, ctx, this));
}
}
} catch (Exception e) {
log.error("Exception during read!", e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void handleMessage(Message message);",
"protected void handleMessage(Message msg) {}",
"@Override\n public void channelRead(final ChannelHandlerContext ctx, final Object msg) throws Exception {\n\n ByteBuf nettyBuffer = ((ByteBuf) msg);\n if (SYSTEM_OUT_DEBUG) {\n debugInput(nettyBuf... | [
"0.73422134",
"0.7218426",
"0.71076",
"0.70612806",
"0.70555156",
"0.7039485",
"0.6949561",
"0.6914977",
"0.69139767",
"0.6850474",
"0.68408144",
"0.68104905",
"0.68029374",
"0.6758331",
"0.67308646",
"0.6690285",
"0.66692525",
"0.6668359",
"0.66645706",
"0.6645846",
"0.66236... | 0.76815563 | 0 |
The groupName_ of the contact for ex: friends, ... | public String getGroupName() {
return groupName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getGroupName() {\n return groupName;\n }",
"public String getGroup() {\n return groupName;\n }",
"public String getGroupName()\n {\n return groupName;\n }",
"public String getGroupName() {\r\n return groupName;\r\n }",
"public String getGroupName() {\n ... | [
"0.709822",
"0.7018652",
"0.6981313",
"0.6957014",
"0.69128346",
"0.69128346",
"0.68342626",
"0.6759015",
"0.6690263",
"0.6652075",
"0.66464597",
"0.66464597",
"0.6642776",
"0.66239357",
"0.6552923",
"0.65363324",
"0.648194",
"0.6461988",
"0.6436912",
"0.6417929",
"0.64044803... | 0.704313 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.