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 |
|---|---|---|---|---|---|---|
TODO Autogenerated method stub | public static void main(String[] args) {
DesiredCapabilities ch=DesiredCapabilities.chrome();
ch.setBrowserName(CapabilityType.ACCEPT_SSL_CERTS);
ChromeOptions Css =new ChromeOptions();
System.setProperty("webdriver.chrome.driver","G:\\Learning\\Drivers\\chromedriver.exe");
WebDriver driver=new ChromeD... | {
"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 |
Set position Set velocity Calculate solution at current position | public double[] calcSolution() {
// Call CostFunction object
costFunction.function(position);
return solution;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void calcVelocity()\n\t{}",
"static void resetVelocity(){currentVelocity = INITIAL_SPEED;}",
"private void updateVelocity() {\n\t \t//Update x velocity\n\t \tif (getNode().getTranslateX() > MAX_SPEED_X) {\n\t \t\tsetvX(MAX_SPEED_X);\n\t \t} else if (getNode().getTranslateX() < -MAX_SPEED_... | [
"0.7099392",
"0.6893681",
"0.6869997",
"0.6823018",
"0.67839825",
"0.6771106",
"0.66932064",
"0.66611695",
"0.6653339",
"0.6633608",
"0.6633608",
"0.6633608",
"0.66153526",
"0.6597571",
"0.65805715",
"0.6543116",
"0.6516802",
"0.65110034",
"0.6473954",
"0.6457841",
"0.6392125... | 0.0 | -1 |
Calculate solution to particles in radius | public double[] getSolutionsInRadius(){
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic double potential(Complex position) {\n\t\tif(!initialised) init();\n\t\tint i = (int)(position.re() / (windowSize.getWidth()) / meshWidth); //Need to translate into unit coordinates, then find it's grid coordinate\n\t\tint j = (int)(position.im() / (windowSize.getHeight()) / meshWidth);\n\t\tCo... | [
"0.6306871",
"0.6155119",
"0.6147587",
"0.61252147",
"0.60371685",
"0.5978648",
"0.5964566",
"0.5945015",
"0.58670944",
"0.57993734",
"0.57969594",
"0.57852393",
"0.57852393",
"0.5775337",
"0.5764163",
"0.5761981",
"0.57616466",
"0.5735118",
"0.57230043",
"0.5698994",
"0.5687... | 0.68911463 | 0 |
This Test will create a folder in Client and a file inside the folder and validate whether it is synced in Share. Then it will delete the folder in Share and update the file in Client Step1 Create a folder and file and save it. Step2 Wait for Sync time which is 2 minutes for Client. Step3 Login in Share. Step4 Access s... | @Test
public void setupDeleteInShareUpdateInClient()
{
concurrentFolder = getRandomFolderIn(getLocalSiteLocation(), "conFolder");
fileInFolder = getRandomFileIn(concurrentFolder,"fileInFolder","txt");
try
{
explorer.openApplication();
explorer.openFolder(g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n public void testReadWhenThirdPersonShare() {\n System.out.println(\"Test : Meg shares her file with Dan and Dan can read it. Dan shares Meg's file with Ken, Ken can also read it\");\r\n System.out.println();\r\n String userId = \"Meg\";\r\n String filePath = \"/home/Meg/sha... | [
"0.6459684",
"0.6437792",
"0.6365286",
"0.6330329",
"0.60902804",
"0.59961754",
"0.596304",
"0.5947877",
"0.57263464",
"0.5718458",
"0.56634593",
"0.5619893",
"0.56185156",
"0.5614872",
"0.5598326",
"0.5584721",
"0.5579682",
"0.55303293",
"0.54945457",
"0.54888254",
"0.544823... | 0.8089818 | 0 |
DynamicResistModifier thundAD = urgVs.aggregrateResistanceMods( "Thunderlord with AD", 0, 0.88, 0.0, 0, 0, 0, 0, 0, 0); DynamicResistModifier thundArmPen = urgVs.aggregrateResistanceMods( "Thunderlord with Arm Pen", 0, 0.88, 0, 0, 19.2, 0, 0, 0, 0); DynamicCompleteDamage thundAd_Damage = urgVs.damageVsEnemy(thundAD, 72... | @Test
/** Level 4 Thunderlord AD vs Thunderlord Arm Pen
* Thunderlord + AD:
* 726.12 AD Dealt
* 47.59 AP Dealt
* Armor Reduction: 88%
* Thunderlord + Full Arm Pen Runes
* 632.02 AD Dealt
* 43 AP Dealt
* Armor Reduction: 88%
* Flat Armor Pen: 19.2
*/
public void testThunderlordArmPen(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void getDefensiveModifierTest() {\n \n assertEquals(0.2, hawthorn1.getDefenseModifier(), 0.1);\n }",
"@org.junit.Test\n public void getDamage() {\n Weapon sword = new Sword();\n int dmg = sword.getDamage();\n assertEquals(\"Normal Sword.getDamage() faile... | [
"0.6885089",
"0.6552871",
"0.64065164",
"0.6348781",
"0.62650555",
"0.6256926",
"0.62565535",
"0.6244537",
"0.6240813",
"0.6225124",
"0.6204462",
"0.62042534",
"0.61638856",
"0.6156947",
"0.6145835",
"0.6135848",
"0.6133761",
"0.61016226",
"0.6074186",
"0.6053266",
"0.6050776... | 0.0 | -1 |
takes in a JSON string and saves it to the DB. return true if success. | public boolean save(Object o) {
if (o instanceof String) {
JsonParser parser = new JsonParser();
JsonElement jsonElement = null;
String jsonString = (String) o;
try{
while(!jsonString.startsWith("{")){
jsonString = jsonString... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public WriteResult saveRegistInfoByJSON(String JSONStr) throws UnknownHostException {\n\n DBCollection activityRouteInfoCollection = CommonDBManager.MongoDBConnect(\"RegistInfo\");\n DBObject dbObecjt = (DBObject) JSON.parse(JSONStr);\n WriteResult result = activityRouteInfoCollection.insert(... | [
"0.68201286",
"0.6452908",
"0.6444506",
"0.63988954",
"0.62856096",
"0.5948691",
"0.5906759",
"0.5709307",
"0.5652645",
"0.5585356",
"0.54845387",
"0.5472927",
"0.54702264",
"0.5402797",
"0.5389079",
"0.5385585",
"0.5284306",
"0.52737653",
"0.52686733",
"0.52644783",
"0.52219... | 0.7604817 | 0 |
chuyen sang activity de doc tin offline | @Override
public void onItemClick(AdapterView<?> parent, View view,
int position, long id) {
Intent i = new Intent(getApplicationContext(),
Activity_ReadNews_Offline.class);
i.putExtra("link", alNews.get(position).link + "");
startActivity(i);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onClick(DialogInterface dialog, int id) {\n LessonDataObject[] lessons = null;\n if (mCategoryType==1){\n lessons = LessonManager.getFirstCategoryLessons(getContext());\n }else if(mCategoryType==2){\n ... | [
"0.58256865",
"0.58044946",
"0.57645065",
"0.56239927",
"0.56045514",
"0.5594707",
"0.55924726",
"0.5577814",
"0.5576634",
"0.55714136",
"0.556028",
"0.55410004",
"0.55287325",
"0.5504125",
"0.54929644",
"0.5487119",
"0.5484297",
"0.5480548",
"0.54622304",
"0.5460999",
"0.544... | 0.5385026 | 26 |
hien thi du lieu len listview | public void displayDataUpListView() {
try {
// lay tat ca cac du lieu trong sqlite
alNews = qlb.getAllNewsDaTa();
mListView.setAdapter(new AdapterListNewsSaved(
Activity_News_Saved_List.this));
} catch (Exception e) {
mListView.setAdapter(null);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public int getCount() {\n return li.size();\n }",
"@Override\n public int getCount() {\n return listODI.size();\n }",
"@Override\r\n\tpublic int getCount() {\n\t\treturn listKQHTTHeoLop.size();\r\n\t}",
"private void inicializaListView(){\n }",
"@Override\r\n pub... | [
"0.7187769",
"0.7131573",
"0.70581937",
"0.7051531",
"0.6938854",
"0.6923664",
"0.69236",
"0.691883",
"0.6916848",
"0.6890168",
"0.68635464",
"0.6843791",
"0.684063",
"0.68289024",
"0.68236536",
"0.68102753",
"0.68020886",
"0.6800364",
"0.6774566",
"0.6772674",
"0.6772674",
... | 0.6929755 | 5 |
lay ket qua sau khi nhan sua 1 tin moi | @Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == 333 && resultCode == RESULT_OK) {
Dtb_OneNewsObject c = (Dtb_OneNewsObject) data.getExtras().get(
"congviec");
// sua lai thong tin sqlite
qlb.editNews(c);
// hien thi lai tin
displayData... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void maasHesapla() {\n\t\tSystem.out.println(\"isciler icin maas 5000 tl \");\n \t\t\n\t}",
"public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }",
"public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTi... | [
"0.6920983",
"0.6514738",
"0.6450971",
"0.6448113",
"0.6402593",
"0.63878804",
"0.6329145",
"0.62840533",
"0.6283384",
"0.6273013",
"0.6265657",
"0.6242657",
"0.6242443",
"0.61965996",
"0.616473",
"0.61475927",
"0.61439806",
"0.61308765",
"0.6118183",
"0.6111378",
"0.61098784... | 0.0 | -1 |
goi de lay typeface | @Override
public void onResume() {
loadSettingFont();
// set font cho tv Tin bai cua toi
tv.setTypeface(mTypeface);
int countData = qlb.getDataCount();
tv.setText("Tin bài đã lưu: " + countData);
// hinh nen
loadSettingBackground();
super.onResume();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void Tyre() {\n\t\t\r\n\t}",
"public abstract void mo2141b(Typeface typeface, boolean z);",
"private void settypeface() {\n }",
"@Override\n\tpublic void type() {\n\t\t\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"public PsicoderToGo() {\n translate_types.put(\"entero\", new Ar... | [
"0.57481843",
"0.5694065",
"0.56262356",
"0.53563285",
"0.5333984",
"0.5305859",
"0.525958",
"0.5256711",
"0.5243222",
"0.5242776",
"0.5211413",
"0.52035767",
"0.51965094",
"0.51443195",
"0.51432556",
"0.5136338",
"0.5055879",
"0.5055879",
"0.50506747",
"0.50441915",
"0.49970... | 0.0 | -1 |
dung de thiet lap mTypeface dua vao index duoc luu trong SharedPreferences | private void loadSettingFont() {
SharedPreferences mysettings = getSharedPreferences(
PREFERENCES_FILE_NAME, 0);
indexFont = mysettings.getInt("indexFont", 1);
Log.d("indexFont", indexFont + "");
switch (indexFont) {
case 0:
mTypeface = Typeface.DEFAULT;
break;
case 1:
mTypeface = Typeface.crea... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getPrefs() {\n SharedPreferences prefs = PreferenceManager\n .getDefaultSharedPreferences(getBaseContext());\n \n int size = prefs.getInt(\"textsizePref\", 20);\n int color = Integer.valueOf(prefs.getString(\"textcolorPref\", \"7f070006\"),16);\n ... | [
"0.6571814",
"0.6219393",
"0.6028928",
"0.59399724",
"0.5929973",
"0.5842022",
"0.5825963",
"0.57260805",
"0.57121885",
"0.56656235",
"0.5660452",
"0.56426835",
"0.5632941",
"0.56277627",
"0.5610179",
"0.5589049",
"0.55679554",
"0.5557641",
"0.5544082",
"0.5542176",
"0.553881... | 0.6954417 | 0 |
A protocol for delegates of AVAudioRecorder APISince: 3.0 | @Generated
@Library("AVFAudio")
@Runtime(ObjCRuntime.class)
@ObjCProtocolName("AVAudioRecorderDelegate")
public interface AVAudioRecorderDelegate {
/**
* audioRecorderBeginInterruption: is called when the audio session has been interrupted while the recorder was
* recording. The recorded file will be clos... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface OnRecordVoiceListener {\n\n /**\n * Fires when started recording.\n */\n void onStartRecord();\n\n /**\n * Fires when finished recording.\n *\n * @param voiceFile The audio file.\n * @param duration The duration of audio file, specified in seconds.\n */\n v... | [
"0.7290635",
"0.66734165",
"0.6627364",
"0.6527041",
"0.62449574",
"0.6207026",
"0.6086933",
"0.6069455",
"0.60672426",
"0.6027033",
"0.5970096",
"0.59542143",
"0.59212",
"0.5864074",
"0.5850522",
"0.58331543",
"0.58331543",
"0.5830848",
"0.58216053",
"0.5809203",
"0.5805802"... | 0.7666717 | 0 |
audioRecorderBeginInterruption: is called when the audio session has been interrupted while the recorder was recording. The recorded file will be closed. APISince: 2.2 DeprecatedSince: 8.0 | @Generated
@IsOptional
@Deprecated
@Selector("audioRecorderBeginInterruption:")
default void audioRecorderBeginInterruption(@NotNull AVAudioRecorder recorder) {
throw new java.lang.UnsupportedOperationException();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Generated\n @IsOptional\n @Deprecated\n @Selector(\"audioRecorderEndInterruption:\")\n default void audioRecorderEndInterruption(@NotNull AVAudioRecorder recorder) {\n throw new java.lang.UnsupportedOperationException();\n }",
"@Generated\n@Library(\"AVFAudio\")\n@Runtime(ObjCRuntime.class... | [
"0.61064637",
"0.58389264",
"0.56121093",
"0.5244913",
"0.49846444",
"0.49696195",
"0.49509722",
"0.4913596",
"0.4912565",
"0.49032626",
"0.4898913",
"0.4895521",
"0.48497683",
"0.48467246",
"0.4802457",
"0.4799838",
"0.47892374",
"0.47690937",
"0.47632146",
"0.47632146",
"0.... | 0.67390245 | 0 |
audioRecorderDidFinishRecording:successfully: is called when a recording has been finished or stopped. This method is NOT called if the recorder is stopped due to an interruption. | @Generated
@IsOptional
@Selector("audioRecorderDidFinishRecording:successfully:")
default void audioRecorderDidFinishRecordingSuccessfully(@NotNull AVAudioRecorder recorder, boolean flag) {
throw new java.lang.UnsupportedOperationException();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onFinishRecord(File voiceFile, int duration);",
"public void finish(AudioData audioData, long duration) {\r\n }",
"@Override\n public void onFinishedRecording(Transaction transaction) {\n setState(State.PROCESSING);\n stopAudioLevelPoll();\n }",
"@Override\n\tpubli... | [
"0.6536457",
"0.5963512",
"0.592911",
"0.5836925",
"0.57384545",
"0.55736995",
"0.5471957",
"0.54147476",
"0.54090667",
"0.5342845",
"0.53054357",
"0.53018254",
"0.5291476",
"0.5287921",
"0.52859694",
"0.52498245",
"0.5239083",
"0.5211362",
"0.5176653",
"0.51472706",
"0.51403... | 0.6623922 | 0 |
if an error occurs while encoding it will be reported to the delegate. | @Generated
@IsOptional
@Selector("audioRecorderEncodeErrorDidOccur:error:")
default void audioRecorderEncodeErrorDidOccurError(@NotNull AVAudioRecorder recorder, @Nullable NSError error) {
throw new java.lang.UnsupportedOperationException();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected final void setEncoding( String encoding )\n throws SAXException\n {\n if ( _inputSource.getByteStream() != null ) {\n if ( ! encoding.equalsIgnoreCase( _inputSource.getEncoding() ) ) {\n _inputSource.setEncoding( encoding );\n try {\n ... | [
"0.59139663",
"0.55675346",
"0.5493018",
"0.54584116",
"0.54157096",
"0.5381919",
"0.5349273",
"0.53383917",
"0.5267908",
"0.5256412",
"0.52531785",
"0.52372247",
"0.5232864",
"0.5231638",
"0.5221836",
"0.5174144",
"0.51629853",
"0.51576596",
"0.5154435",
"0.5142142",
"0.5138... | 0.0 | -1 |
audioRecorderEndInterruption: is called when the preferred method, audioRecorderEndInterruption:withFlags:, is not implemented. APISince: 2.2 DeprecatedSince: 6.0 | @Generated
@IsOptional
@Deprecated
@Selector("audioRecorderEndInterruption:")
default void audioRecorderEndInterruption(@NotNull AVAudioRecorder recorder) {
throw new java.lang.UnsupportedOperationException();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Generated\n @IsOptional\n @Deprecated\n @Selector(\"audioRecorderEndInterruption:withFlags:\")\n default void audioRecorderEndInterruptionWithFlags(@NotNull AVAudioRecorder recorder, @NUInt long flags) {\n throw new java.lang.UnsupportedOperationException();\n }",
"@Generated\n @IsOptio... | [
"0.7535932",
"0.7473344",
"0.70002866",
"0.6973677",
"0.5788886",
"0.57768863",
"0.5764831",
"0.5710208",
"0.56654716",
"0.5660951",
"0.5519826",
"0.5473048",
"0.5470726",
"0.5434954",
"0.5391127",
"0.53822464",
"0.53407896",
"0.532879",
"0.53095996",
"0.5301056",
"0.53002846... | 0.7894966 | 0 |
APISince: 4.0 DeprecatedSince: 6.0 | @Generated
@IsOptional
@Deprecated
@Selector("audioRecorderEndInterruption:withFlags:")
default void audioRecorderEndInterruptionWithFlags(@NotNull AVAudioRecorder recorder, @NUInt long flags) {
throw new java.lang.UnsupportedOperationException();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"default boolean isDeprecated() {\n return false;\n }",
"@Deprecated\n\tprivate void oldCode()\n\t{\n\t}",
"@Override\n public int getVersion() {\n return 4;\n }",
"@Override\n public int getVersion() {\n return 0;\n }",
"@Override\n public boolean isSupported() {\n r... | [
"0.6187361",
"0.6051259",
"0.5970097",
"0.58841836",
"0.58641785",
"0.5838832",
"0.5803315",
"0.57413745",
"0.56968063",
"0.5691941",
"0.56371784",
"0.56238616",
"0.5617184",
"0.55615616",
"0.55330837",
"0.54984915",
"0.545236",
"0.5432525",
"0.542389",
"0.542389",
"0.542389"... | 0.0 | -1 |
audioRecorderEndInterruption:withOptions: is called when the audio session interruption has ended and this recorder had been interrupted while recording. Currently the only flag is AVAudioSessionInterruptionFlags_ShouldResume. APISince: 6.0 DeprecatedSince: 8.0 | @Generated
@IsOptional
@Deprecated
@Selector("audioRecorderEndInterruption:withOptions:")
default void audioRecorderEndInterruptionWithOptions(@NotNull AVAudioRecorder recorder, @NUInt long flags) {
throw new java.lang.UnsupportedOperationException();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Generated\n @IsOptional\n @Deprecated\n @Selector(\"audioRecorderEndInterruption:\")\n default void audioRecorderEndInterruption(@NotNull AVAudioRecorder recorder) {\n throw new java.lang.UnsupportedOperationException();\n }",
"@Generated\n @IsOptional\n @Deprecated\n @Selector(\"... | [
"0.6969281",
"0.6659535",
"0.5912528",
"0.57280034",
"0.4991103",
"0.4945619",
"0.48261026",
"0.47707742",
"0.47065634",
"0.46319094",
"0.46103448",
"0.45859852",
"0.45563644",
"0.4551066",
"0.4539115",
"0.45196366",
"0.451876",
"0.4501805",
"0.4500976",
"0.44992203",
"0.4499... | 0.72729886 | 0 |
/ enviarJogada para adversario verificar de quem eh a vez encerrarTurno: numJogadas | @Override
public void actionPerformed(ActionEvent e) {
mapa.encerrarTurno(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void jogar(int numeroJogador) {\n\t\tint ponto = 0;\r\n\t\t\r\n\t\t//em quanto jogador nao fizer 5 pontos ele vai repetir o laço\r\n\t\twhile (ponto < 5) {\r\n\t\t\t//joga o dado1 e dao2 (gerando valor aleatorio de 1 a 6)\r\n\t\t\tint dado1 = (int) (new Random().nextInt(6) + 1);\r\n\t\t\tint dado2 = ... | [
"0.6733858",
"0.63345546",
"0.61332846",
"0.60663205",
"0.5973752",
"0.59123206",
"0.58748484",
"0.58733565",
"0.5802154",
"0.5800372",
"0.57370394",
"0.5701703",
"0.56858546",
"0.56855446",
"0.5674976",
"0.56702447",
"0.5662053",
"0.56551707",
"0.5590515",
"0.5589116",
"0.55... | 0.0 | -1 |
/ esse metodo eh chamado pelo AtorNetgames em ambos os jogadores para configurar uma nova partida. parametro eh minha vez define se eu comecarei a partida | public void iniciarPartidaRede(boolean ehMinhaVez) {
String nomeJogadorAdversario = rede.obterNomeAdversario();
this.mapa = Mapa.getInstance();
int trincheiraDefinida;
if(ehMinhaVez) {
mapa.criaJogador(this.nomeUsuario, true);
mapa.criarJogadorAdversario(nomeJogadorAdversario, false);
trincheira... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initConfiguration() {\n\n\t\t//Configuration du jeu\n\t\tconfigJeu = ask(config, \"Emplacement de départ ?\", \"Emplacement\");\n\t\tSystem.out.println(\"\"+modeJeu);\n\n\t\t//mode 2 = Machine contre Machine\n\t\t//mode 1 = Jouur contre Machine\n\n\t\t//On demande le mode de jeu\n\t\tmodeJeu = JOption... | [
"0.5952309",
"0.59152985",
"0.5758806",
"0.5542672",
"0.5539083",
"0.55301124",
"0.5527516",
"0.5523087",
"0.5463051",
"0.5430511",
"0.5410927",
"0.54022765",
"0.539205",
"0.53810537",
"0.53777707",
"0.5326",
"0.5319862",
"0.5301569",
"0.53013164",
"0.5299421",
"0.52900875",
... | 0.0 | -1 |
/ solicita ao servidor iniciar uma nova partida | public void iniciarBatalha() {
rede.iniciarPartidaRede();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void requestServerId() {\n connection.startClient(lbInfo.getIp(), lbInfo.getPort());\n System.out.println(\"Connected!\");\n connection.sendMessage(connectionInfo);\n }",
"public void connexionServeur() {\r\n\r\n\t\tString serverIp = JOptionPane\r\n\t\t\t\t.showInputDialog(\"Entre... | [
"0.5942824",
"0.5885356",
"0.5799045",
"0.57823694",
"0.57590145",
"0.5726809",
"0.5646404",
"0.564275",
"0.5576694",
"0.5548723",
"0.5519062",
"0.54881096",
"0.5484548",
"0.5472408",
"0.5409414",
"0.5396163",
"0.537007",
"0.5368923",
"0.5367777",
"0.53610706",
"0.53516483",
... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) throws InvalidAgeExcetion {
ThrowDemo oo=new ThrowDemo();
oo.accept();
} | {
"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 |
method to start from current room | public Room getRoom0(){
return basement;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startGame(Room room);",
"RollingResult start(String roomId);",
"public void enterRoom(Room room) {\n currentRoom = room;\n }",
"public void nextRoom() {\n room++;\n createRoom();\n }",
"@Override\n\tpublic void start() {\n\t\tSystem.out.println();\n\t\tif (showtimes.i... | [
"0.726448",
"0.7013023",
"0.66207886",
"0.6592547",
"0.65736544",
"0.6540826",
"0.6401273",
"0.6387054",
"0.634739",
"0.6294789",
"0.61945456",
"0.6173979",
"0.61507595",
"0.6149055",
"0.61219096",
"0.6105812",
"0.6086812",
"0.60738254",
"0.6062681",
"0.6057557",
"0.6050669",... | 0.0 | -1 |
Created by Andre on 2016/4/28. | public interface HttpCallbackListener {
void onFinish(String response);
void onError(Exception e);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r... | [
"0.60606414",
"0.5955167",
"0.5926563",
"0.581545",
"0.5783206",
"0.5783206",
"0.5760672",
"0.5747039",
"0.5742452",
"0.56924134",
"0.56807286",
"0.56746686",
"0.5658507",
"0.5629911",
"0.5628547",
"0.5623043",
"0.5617363",
"0.5598206",
"0.5598042",
"0.55942976",
"0.55889124"... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onDestroy() {
super.onDestroy();
} | {
"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 onClick(View v) {
switch (v.getId()) {
case R.id.mywallet_button: {
Intent intent = new Intent(context, MyWalletActivity.class);
startActivity(intent);
break;
}
case R.id.my_imageview_shezhi: {
Intent intent = new Intent(context, ST_mainActivity.class);
startActiv... | {
"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 onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == 1) {
if (resultCode == 100) {
UserDao user = new UserDao(context);
String username = user.detailLogin();
my_imagehead.setText(username);
... | {
"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 run() {
try {
URL url = new URL(
new UriFactory().getHeadPortraitUrl());
connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("POST");
connection.setConnectTimeout(8000);
connection.setReadTimeout(8000);
connection.setDoOutput(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 run() {
super.run();
preserved(bitmap);
} | {
"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 onTouch(View v, MotionEvent event) {
popupWindow.dismiss();
popupWindow = null;
backgroundAlpha(1f);
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 boolean onTouch(View v, MotionEvent event) {
popupWindow.dismiss();
popupWindow = null;
backgroundAlpha(1f);
Intent intent = new Intent(context, Login.class);
startActivityForResult(intent, 1);
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 boolean onTouch(View v, MotionEvent event) {
popupWindow.dismiss();
popupWindow = null;
backgroundAlpha(1f);
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 boolean onTouch(View v, MotionEvent event) {
popupWindow.dismiss();
popupWindow = null;
backgroundAlpha(1f);
Intent intent = new Intent(context, Wdjl_activity.class);
startActivityForResult(intent, 1);
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 |
Initialize your data structure here. | public Q706DesignHashMap() {
keys = new ArrayList<>();
values = new ArrayList<>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initData() {\n }",
"private void initData() {\n\t}",
"private void initData() {\n\n }",
"public void initData() {\n }",
"public void initData() {\n }",
"@Override\n\tpublic void initData() {\n\n\n\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\... | [
"0.79946685",
"0.7973242",
"0.7808862",
"0.77763873",
"0.77763873",
"0.7643394",
"0.76371324",
"0.76371324",
"0.76371324",
"0.76371324",
"0.76371324",
"0.76371324",
"0.75553316",
"0.7543321",
"0.7543321",
"0.75426376",
"0.75426376",
"0.75426376",
"0.7532583",
"0.75228804",
"0... | 0.0 | -1 |
value will always be nonnegative. | public void put(int key, int value) {
int index = keys.indexOf(key);
if(index >= 0) {
values.set(index, value);
} else {
keys.add(key);
values.add(value);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double abs(double value){return value < 0? value*-1: value;}",
"public double hasNegSign(double value) {\n if (value < 0) {\n return value * -1;\n } else {\n return value;\n }\n }",
"@Override\n public double getValue() {\n return 0;\n }",
"@O... | [
"0.70011944",
"0.69003433",
"0.67707586",
"0.66027105",
"0.6586464",
"0.653198",
"0.6514914",
"0.643939",
"0.643648",
"0.6433578",
"0.64307785",
"0.6379716",
"0.63451356",
"0.63385504",
"0.6312588",
"0.6274011",
"0.622011",
"0.6216123",
"0.6196117",
"0.6183464",
"0.6171644",
... | 0.0 | -1 |
Returns the value to which the specified key is mapped, or 1 if this map contains no mapping for the key | public int get(int key) {
int index = keys.indexOf(key);
return index < 0? -1 : values.get(index);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int get(int key) {\n return hashMap.stream()\n .filter(pair -> pair[0] == key)\n .findAny()\n .map(pair -> pair[1])\n .orElse(-1);\n }",
"public int get(int key) {\n if(!map.containsKey(key)) return -1;\n return map.get(ke... | [
"0.76453817",
"0.74353594",
"0.7301319",
"0.7130055",
"0.6854096",
"0.6836105",
"0.68350476",
"0.6803053",
"0.675446",
"0.66612583",
"0.6643054",
"0.6614853",
"0.659808",
"0.6475043",
"0.6325711",
"0.6324946",
"0.6260569",
"0.62568134",
"0.6235813",
"0.6230968",
"0.6215437",
... | 0.6413149 | 14 |
Removes the mapping of the specified value key if this map contains a mapping for the key | public void remove(int key) {
int index = keys.indexOf(key);
if(index > 0) {
keys.remove(index);
values.remove(index);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void remove(Object key, Object value) {\n map.get(key).remove(value);\n }",
"public boolean remove(String key, V value) {\n Collection<V> values = map.get(key);\n\n if (values != null) {\n return values.remove(value);\n }\n\n return false;\n }",
"public void remove(Object key... | [
"0.7669792",
"0.7440138",
"0.7434685",
"0.7231268",
"0.71799254",
"0.71202505",
"0.6888043",
"0.6804768",
"0.6779287",
"0.6738268",
"0.6724534",
"0.6662862",
"0.6639248",
"0.6628914",
"0.65815824",
"0.65797514",
"0.6575589",
"0.6513635",
"0.6500174",
"0.64954704",
"0.6492725"... | 0.6162088 | 57 |
Returns broadcast address of the network | public InetAddress getBroadcastAddress() {
InetAddress ip=null;
try{
WifiManager wifi = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
DhcpInfo dhcp = wifi.getDhcpInfo();
int broadcast = (dhcp.ipAddress & dhcp.netmask) | ~dhcp.netmask;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private InetAddress getBroadcastAddress() {\n InetAddress broadcastAddress = null;\n try {\n Enumeration<NetworkInterface> networkInterface = NetworkInterface\n .getNetworkInterfaces();\n\n while (broadcastAddress == null\n && networkInterfa... | [
"0.8356809",
"0.8095307",
"0.7861245",
"0.78507817",
"0.7825433",
"0.78040665",
"0.75669515",
"0.7473285",
"0.7207456",
"0.6930708",
"0.6820234",
"0.6639542",
"0.6627908",
"0.6590358",
"0.6535562",
"0.6443416",
"0.6443416",
"0.635579",
"0.62683755",
"0.6249812",
"0.6235998",
... | 0.841385 | 0 |
Returns the ip address of the device | public InetAddress getIP()
{
InetAddress ip=null;
try{
WifiManager wifi = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
DhcpInfo dhcp = wifi.getDhcpInfo();
int dip=dhcp.ipAddress;
byte[] quads = new byte[4];
for (i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getDeviceIpAddress() {\n try {\n for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) {\n NetworkInterface intf = en.nextElement();\n for (Enumeration<InetAddress> enumIpAddr = intf.getInetAddres... | [
"0.8514264",
"0.81646645",
"0.7962311",
"0.7824609",
"0.7725314",
"0.77245486",
"0.7721087",
"0.768343",
"0.763708",
"0.7579345",
"0.7579345",
"0.7579345",
"0.7579345",
"0.7579345",
"0.7579345",
"0.7579345",
"0.7579345",
"0.75711995",
"0.75594103",
"0.75594103",
"0.75555974",... | 0.80211014 | 2 |
Question du choix du jeu | public void choixduJeu() {
afficheMessage("*- Choisissez le jeu auquel vous voulez jouer : \n- R pour Recherche +/-\n- M pour Mastermind");
choixJeu = Console.saisieListeDeChoix("R|M");
afficheMessage("*- Choisissez le mode de jeu auquel vous voulez jouer :\n- C pour Challenger,\n- U pour Duel\n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String askSomething(String question, String titel);",
"public static void QBack() {\n System.out.println(\"Do you have a favorite Quarterback? \");\n char qbQuestion= sc.next().charAt(0);\n }",
"private void addQuestion() {\n Question q = new Question(\n \"¿Quie... | [
"0.63608134",
"0.6252028",
"0.62396115",
"0.6220544",
"0.6133364",
"0.61276704",
"0.61227775",
"0.61219674",
"0.6117414",
"0.60779345",
"0.6065183",
"0.60643643",
"0.5997089",
"0.5960048",
"0.59471035",
"0.59059346",
"0.5894938",
"0.5890689",
"0.5889905",
"0.58860916",
"0.588... | 0.706933 | 0 |
Lancement du jeu et mode de jeu choisi | public void lancerJeu () {
switch (choixModeJeu) {
case "C":
Jeu jeuJoueC = new JeuChallenger(modeDev, choixJeu, nbdeCouleur, nbessaiPossible, longueurduSecret);
jeuJoueC.unJeu();
break;
case "U":
Jeu jeuJoueU = new JeuDuel(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void choixduJeu() {\n afficheMessage(\"*- Choisissez le jeu auquel vous voulez jouer : \\n- R pour Recherche +/-\\n- M pour Mastermind\");\n choixJeu = Console.saisieListeDeChoix(\"R|M\");\n afficheMessage(\"*- Choisissez le mode de jeu auquel vous voulez jouer :\\n- C pour Challenger,\... | [
"0.73340243",
"0.6856464",
"0.6627749",
"0.63967454",
"0.63865453",
"0.63527644",
"0.63515884",
"0.6322592",
"0.63164157",
"0.618304",
"0.6037734",
"0.6035052",
"0.60118634",
"0.60118634",
"0.600611",
"0.59661186",
"0.59577197",
"0.5950941",
"0.5946462",
"0.59291905",
"0.5923... | 0.7111174 | 1 |
Metodo para obtener el usuario logeado | public User getUser(String nombre) {
User u = new User();
try {
PreparedStatement pstm = null;
ResultSet rs = null;
String query = "SELECT *FROM user WHERE name= ?";
pstm = con.prepareStatement(query);
pstm.setString(1, nombre);
rs ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getUser();",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public java.lang.String getUser... | [
"0.7763357",
"0.7657535",
"0.7657535",
"0.7657535",
"0.7639323",
"0.7519435",
"0.7519435",
"0.72555166",
"0.72482944",
"0.72482944",
"0.72482944",
"0.71906406",
"0.71655065",
"0.71655065",
"0.716242",
"0.7156579",
"0.7156579",
"0.7156579",
"0.7156579",
"0.7156579",
"0.7156579... | 0.0 | -1 |
Metodo para listar todas las citas | public List<Citas> getAllCitas(String name) {
List<Citas> citas= new ArrayList<Citas>();
try {
PreparedStatement pstm = null;
ResultSet rs = null;
String query = "SELECT *FROM paciente WHERE name=? AND estatus='activo'";
pstm = con.prepareStatement(query);... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<SermCit> getCits(){\n return citations;\n }",
"public void listarDocDaDisciplina(){\r\n for(int i=0;i<docentes.size();i++){\r\n System.out.println(docentes.get(i).toString());\r\n }\r\n }",
"public void listarExamesDaDisciplina(){\r\n System.out.println(\"Doce... | [
"0.7177528",
"0.6608564",
"0.6481092",
"0.6287997",
"0.6267942",
"0.6240062",
"0.6155609",
"0.6143528",
"0.6047435",
"0.59820426",
"0.59036475",
"0.5902695",
"0.5900705",
"0.5854196",
"0.58529544",
"0.58350253",
"0.5724352",
"0.57054085",
"0.5699942",
"0.5699942",
"0.5685555"... | 0.0 | -1 |
Metodo para listar todas las citas 2 | public List<Citas> getAllCitas2() {
List<Citas> citas= new ArrayList<Citas>();
try {
PreparedStatement pstm = null;
ResultSet rs = null;
String query = "SELECT *FROM paciente WHERE estatus='activo'";
pstm = con.prepareStatement(query);
rs = pst... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void listarDocDaDisciplina(){\r\n for(int i=0;i<docentes.size();i++){\r\n System.out.println(docentes.get(i).toString());\r\n }\r\n }",
"public List<SermCit> getCits(){\n return citations;\n }",
"public void listarExamesDaDisciplina(){\r\n System.out.println(\"Doce... | [
"0.63609266",
"0.6249415",
"0.6211791",
"0.6113864",
"0.5882428",
"0.5726771",
"0.56292313",
"0.5628706",
"0.56270593",
"0.55827415",
"0.5552633",
"0.5542166",
"0.5540051",
"0.55381554",
"0.5532963",
"0.5489213",
"0.5476701",
"0.544407",
"0.542207",
"0.5419662",
"0.54166067",... | 0.51798874 | 51 |
Metodo para listar todos los doctores | public List<Medico> getAllMedicos() {
List<Medico> medicos = new ArrayList<Medico>();
try {
PreparedStatement pstm = null;
ResultSet rs = null;
String query = "SELECT *FROM medico";
pstm = con.prepareStatement(query);
rs = pstm.executeQuery();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Entidade> listarTodos();",
"public List<GrauParentesco> getListTodos();",
"@Override\n public List<Dependente> todosOsDepentendes() {\n return dBC.todosOsDepentendes();\n\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Empresa> listarTodos() {\n\t\tList<Empresa> lista = new ArrayList... | [
"0.7038042",
"0.6979018",
"0.6948148",
"0.6889655",
"0.6883722",
"0.6874932",
"0.68387395",
"0.68329996",
"0.6737592",
"0.6722226",
"0.6702468",
"0.6694831",
"0.6670342",
"0.6660371",
"0.66037315",
"0.6578378",
"0.6531622",
"0.6524392",
"0.6523422",
"0.65063745",
"0.649072",
... | 0.0 | -1 |
Metodo para obtener los datos de una cita | public Citas getCita(int id) {
Citas c = new Citas();
try {
PreparedStatement pstm = null;
ResultSet rs = null;
String query = "SELECT *FROM paciente WHERE id_paciente=?";
pstm = con.prepareStatement(query);
pstm.setInt(1, id);
rs =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void getdatacou() {\n\t\ttry {\n\t\t\tps = conn.prepareStatement(\"select * from course \");\n\t\t\trs = ps.executeQuery();\n\t\t\tcounter = 0;\n\t\t\twhile(rs.next()){\n\t\t\t\tc_no[counter] = rs.getString(\"Cno\");\n\t\t\t\tc_name[counter] = rs.getString(\"Cname\");\n\t\t\t\tcredit[counter] = rs.ge... | [
"0.69329363",
"0.65399164",
"0.63329494",
"0.6332705",
"0.62700653",
"0.6260477",
"0.6175333",
"0.6172984",
"0.6159906",
"0.6152734",
"0.61409897",
"0.61292523",
"0.6119642",
"0.61120594",
"0.6078403",
"0.60437053",
"0.60150474",
"0.59851915",
"0.5974558",
"0.594625",
"0.5940... | 0.6207184 | 6 |
Metodo para actualizar cita | public void updateCita(int id, Citas cita) {
try {
PreparedStatement preparedStatement = con.prepareStatement("UPDATE paciente SET name=?,doctor=?,fecha=?,hora=?,tel=?,correo=?,genero=?,motivo=?,sintomas=? WHERE id_paciente=?;");
preparedStatement.setString(1,cita.getName());
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void actualizar() {\n\n\t}",
"public void actualizar();",
"void actualizar(Prestamo prestamo);",
"void actualizarAsistencia(Asistencia asistencia);",
"void actualizar(Espacio espacio);",
"public void actualizar(){\n\t\tif( EventoTeclado.pause ){\n\t\t\tgame.pauseAll();\n\t\t\tpause.setVisible(game... | [
"0.79375017",
"0.7858793",
"0.7323186",
"0.7271744",
"0.68786407",
"0.6806901",
"0.65682656",
"0.648412",
"0.6449694",
"0.63803035",
"0.6359116",
"0.6352977",
"0.6331859",
"0.6269929",
"0.6256525",
"0.62382495",
"0.62186575",
"0.621444",
"0.62064284",
"0.61685824",
"0.616828"... | 0.0 | -1 |
Metodo para cancelar cita | public void cancelarCita(int id) {
try {
PreparedStatement preparedStatement = con.prepareStatement("UPDATE paciente SET estatus='cancelado' WHERE id_paciente=?;");
preparedStatement.setInt(1,id);
preparedStatement.executeUpdate();
}catch (SQLException e) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cancel()\n\t{\n\t}",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel() {\n\t}",
"@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\... | [
"0.81549364",
"0.8135775",
"0.8135775",
"0.8135775",
"0.8135775",
"0.8135775",
"0.8135775",
"0.80742586",
"0.7980395",
"0.79622376",
"0.7922167",
"0.7922167",
"0.7922167",
"0.7922167",
"0.7922167",
"0.7877283",
"0.78747964",
"0.7859095",
"0.7842269",
"0.7812827",
"0.7812827",... | 0.0 | -1 |
Metodo para eliminar citas | public void deleteCita(int id){
try {
PreparedStatement preparedStatement = con.prepareStatement("DELETE FROM paciente WHERE id_paciente=?;");
preparedStatement.setInt(1,id);
preparedStatement.executeUpdate();
} catch (SQLException e) {
e.printStackTrace... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void eliminarCajeros(int id);",
"@Override\n\tpublic void eliminar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void eliminar() {\n\r\n\t\t\t}",
"@Override\n\tpublic void eliminar() {\n\n\t}",
"public void eliminarCompraComic();",
"@Override\n\tpublic void RemoverCupons(EntidadeDominio entidade) th... | [
"0.6548887",
"0.6478428",
"0.6419426",
"0.63912314",
"0.6346607",
"0.62750614",
"0.6253237",
"0.6252586",
"0.62041956",
"0.6191413",
"0.61758715",
"0.61737245",
"0.6108005",
"0.61060274",
"0.60732347",
"0.6058986",
"0.6027943",
"0.60199517",
"0.601428",
"0.6000652",
"0.597452... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Input side a = ");
double sideA = sc.nextDouble();
System.out.print("Input side b = ");
double sideB = sc.nextDouble();
System.out.print("Input side c = ");
double sideC = sc.nextDouble();
... | {
"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 Collection<CentreVisite> getAll() {
return CR.findAll();
} | {
"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 CentreVisite getId(Long id) {
return CR.getOne(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 void delete(long id) {
CR.deleteById(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 CentreVisite add(CentreVisite chef) {
return CR.save(chef);
} | {
"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 |
Created by baihuaiyu on 2018/4/23 | public interface ManagerApiConstants {
String USER_API_VERSION = "/v1";
String USER_API_APPLICATION_NAME = "SERVICE-MANAGER";
String USER_API_URL_PREFIX = "http://" + USER_API_APPLICATION_NAME + "/" + USER_API_VERSION;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpu... | [
"0.6002374",
"0.58741456",
"0.5736009",
"0.5736009",
"0.57178026",
"0.5701279",
"0.5684859",
"0.5629703",
"0.55991364",
"0.5588367",
"0.55854475",
"0.55732614",
"0.555907",
"0.5555242",
"0.55484146",
"0.5537863",
"0.5529742",
"0.5525605",
"0.5471117",
"0.54708564",
"0.5467031... | 0.0 | -1 |
/ 50 / \ 30 80 / \ / \ 10 40 70 90 \ / 20 60 | public static void main(String[] args) {
Node root = new Node(50);
root.left =new Node(30);
root.left.left =new Node(10);
root.left.right =new Node(40);
root.left.left.right =new Node(20);
root.right =new Node(80);
root.right.right =new Node(90);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public static void main(String[] args) {\n TreeNode n2... | [
"0.55392957",
"0.5268482",
"0.52638793",
"0.5242403",
"0.5123323",
"0.50857925",
"0.5040866",
"0.5040039",
"0.49442354",
"0.49183038",
"0.49139494",
"0.4909759",
"0.48988461",
"0.48451722",
"0.48393208",
"0.48275465",
"0.4816443",
"0.48135322",
"0.48103335",
"0.48076075",
"0.... | 0.0 | -1 |
find most loadheavy partitions by counting most producer connections | private String getHeaviestLoadPartition() {
HashMap<String, Integer> numPartitionConnections = new HashMap<>();
List<String> channels = producerConnectionsManager.getChannels();
for (String channel : channels) {
String partition = Partition.get(channel);
if (!numPartition... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getPartitionLagsCount();",
"@SuppressWarnings(\"FieldAccessNotGuarded\")\n @Override\n public int partitions()\n {\n return partitions.length;\n }",
"int getMaxConcurrentStartup(ClusterSpec clusterSpec);",
"int getMaxReplicaCount(Type type);",
"public int numPartitions() {\n\t\tretur... | [
"0.62209064",
"0.5888319",
"0.576786",
"0.5629849",
"0.54508317",
"0.5437697",
"0.54206437",
"0.5398564",
"0.53877723",
"0.53841704",
"0.53566587",
"0.5301558",
"0.53000635",
"0.5267121",
"0.5260788",
"0.52416056",
"0.52283925",
"0.5202819",
"0.51994795",
"0.51975596",
"0.519... | 0.69391215 | 0 |
No args constructor for use in serialization | public Contato() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"MyEncodeableWithoutPublicNoArgConstructor() {}",
"public ObjectSerializationEncoder() {\n // Do nothing\n }",
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"defaultConstructor(){}",
"public Data() {}",
"private SerializerFactory() {\n ... | [
"0.74630904",
"0.7387007",
"0.7210724",
"0.7029566",
"0.7018587",
"0.6977819",
"0.69339114",
"0.6881743",
"0.6739828",
"0.6727297",
"0.6717886",
"0.67169136",
"0.669586",
"0.669586",
"0.66750634",
"0.66246814",
"0.6604095",
"0.6532946",
"0.65235436",
"0.6500072",
"0.6466648",... | 0.0 | -1 |
Returns the absolute path of this resource in the resource tree. | public String getPath() {
return path;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPath()\n {\n StringBuilder buff = new StringBuilder();\n Resource r = this;\n while(r != null)\n {\n if(r.getId() != 1)\n {\n buff.insert(0, r.getName());\n }\n r = r.getParent();\n if(r != null ||... | [
"0.7275763",
"0.71503896",
"0.7008058",
"0.6975401",
"0.693098",
"0.6906827",
"0.6887987",
"0.68808323",
"0.68805134",
"0.6862648",
"0.684949",
"0.6816558",
"0.6801043",
"0.672742",
"0.66991305",
"0.66702425",
"0.6664926",
"0.6628515",
"0.66060936",
"0.65997946",
"0.65997946"... | 0.63772684 | 54 |
Returns the parent resource or null if this resource represents the root of the resource tree. | public Resource getParent() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Resource getParent()\n {\n if(parent == null)\n {\n if(parentId != -1)\n {\n try\n {\n parent = new ResourceRef(coral.getStore().getResource(parentId), coral);\n }\n catch(EntityDoesNotExist... | [
"0.79862857",
"0.7572437",
"0.7214359",
"0.7160598",
"0.7005257",
"0.6949983",
"0.69223547",
"0.69223547",
"0.69223547",
"0.69026655",
"0.6895326",
"0.6725038",
"0.6721783",
"0.671669",
"0.671669",
"0.67142195",
"0.67088896",
"0.6698539",
"0.6682758",
"0.6682758",
"0.667956",... | 0.84459054 | 0 |
Returns an iterator of the direct children of this resource. This method is a convenience and returns exactly the same resources as calling getResourceResolver().listChildren(resource). | public Iterator<Resource> listChildren() {
return Collections.<Resource>emptyList().iterator();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected final synchronized Iterator<T> children() {\n if( children == null ) {\n children = Collections.emptyList();\n }\n \n return children.iterator();\n }",
"public List<? extends Resource> getChildren() {\n\t\tLOGGER.debug(\"Get Children \");\n\t\tfinal Iterator<Co... | [
"0.7188878",
"0.7102185",
"0.69982326",
"0.687786",
"0.67998683",
"0.6697841",
"0.66190135",
"0.65881544",
"0.6567874",
"0.654251",
"0.64636135",
"0.64233834",
"0.63721794",
"0.62250096",
"0.6219669",
"0.61952513",
"0.617138",
"0.6149158",
"0.614222",
"0.61300176",
"0.6117869... | 0.7936996 | 0 |
Returns the child at the given relative path of this resource or null if no such child exists. This method is a convenience and returns exactly the same resources as calling getResourceResolver().getResource(resource, relPath). | public Resource getChild(String relPath) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Resource getChild(String relPath) {\n\n if (secondaryResource != null) {\n\n if (childCache.containsKey(relPath)) {\n return childCache.get(relPath);\n }\n\n Resource retVal = null;\n Resource secondaryChild = secondaryResource... | [
"0.6275711",
"0.56196135",
"0.5450962",
"0.5438401",
"0.5423743",
"0.5401642",
"0.5276192",
"0.5229469",
"0.52278566",
"0.5215366",
"0.5187757",
"0.5137853",
"0.51378345",
"0.51258826",
"0.5121996",
"0.51111245",
"0.51074016",
"0.5089896",
"0.50763744",
"0.50562066",
"0.50363... | 0.7449409 | 0 |
Returns true if the resource type or any of the resource's super type(s) equals the given resource type. | public boolean isResourceType(String resourceType) {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean found(String resource) {\n for (PrimaryType type: resources) {\n if (type.toString().equalsIgnoreCase(resource))\n return true;\n }\n return false;\n }",
"private boolean contains(Collection<ResourceType> resourceTypes, ResourceType resourceType) {... | [
"0.69093543",
"0.68680596",
"0.6633053",
"0.6260044",
"0.6258211",
"0.61899936",
"0.61714166",
"0.61351955",
"0.593597",
"0.5746238",
"0.57273215",
"0.5648495",
"0.5597762",
"0.5580402",
"0.5566938",
"0.5555167",
"0.55126196",
"0.54942054",
"0.54836345",
"0.5432239",
"0.54285... | 0.6090744 | 8 |
approximate using Euler's Method | public void solve(double mass, int t0, double v_t0, double a,
double b, double n) {
this.m = mass;
int t = t0;
double h = (b - a) / n;
double v_i = v_t0;
System.out.println("At t = ("+t0+"), v("+t0+") = "+v_i);
for (int i = 0; i < n; i++) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void Euler(String start){\n\t\tint s = index(start);\n\t\tEulerRek(s);\n\t}",
"static final float interp_energy(final float prev_e, final float next_e)\n\t{\n\t\treturn (float)Math.pow( 10.0, (Math.log10( prev_e ) + Math.log10( next_e )) / 2.0 );\n\t}",
"private double calc_E(KeplerElements a) {\n\t\tdouble s... | [
"0.60440135",
"0.5856307",
"0.58346385",
"0.5765846",
"0.5760505",
"0.5625785",
"0.5588385",
"0.5438305",
"0.5418237",
"0.5391716",
"0.5367637",
"0.53510123",
"0.5338181",
"0.51771474",
"0.5162843",
"0.514388",
"0.5121482",
"0.5107525",
"0.5096741",
"0.5061291",
"0.5059079",
... | 0.0 | -1 |
Set the JDBC URL to use for connecting through the Driver. | @Override
public void setUrl(String url) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Directory manager " + directoryManager);
}
try {
super.setUrl(directoryManager.replacePath(url));
} catch (Exception e) {
LOGGER.error("Exception thrown when se... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setJdbcUrl(String val)\n {\n setValue(DataSourceDobj.FLD_JDBC_URL, val);\n }",
"public static void setJDBCConnection(String url, String user, String passwd){\n\t\tif(properties.isEmpty()) initialize();\n\t\tproperties.put(\"hibernate.connection.url\", url);\n\t\tproperties.put(\"hibernat... | [
"0.7424383",
"0.678663",
"0.6748284",
"0.6739806",
"0.66282606",
"0.65957004",
"0.64626414",
"0.6450111",
"0.64499044",
"0.637458",
"0.6245269",
"0.6156674",
"0.61541605",
"0.5949438",
"0.59445256",
"0.59231704",
"0.59005404",
"0.58919376",
"0.58724934",
"0.5827513",
"0.57984... | 0.0 | -1 |
Set location of jar file and optionally the class name of the JDBC driver. path/to/driver.jar path/to/driver.jar:className If the className is not supplied then the driver class will be located from the file METAINF/services/java.sql.Driver in the jar. | public void setDriverJar(String driverJar) {
this.driverJar = driverJar;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setJDBCDriver(Driver jdbcDriver)\n throws SQLException\n {\n DriverConfig driver;\n \n if (_driverList.size() > 0)\n driver = _driverList.get(0);\n else\n driver = createDriver();\n \n driver.setDriver(jdbcDriver);\n }",
"public void setDriver(String driver) throws... | [
"0.6220397",
"0.62181437",
"0.60335165",
"0.5851755",
"0.5769491",
"0.5761331",
"0.57596946",
"0.57512945",
"0.56892806",
"0.55062914",
"0.550381",
"0.54969466",
"0.5462228",
"0.54445857",
"0.5413",
"0.5407985",
"0.5333636",
"0.5318001",
"0.52659845",
"0.5243153",
"0.522162",... | 0.6561871 | 0 |
Set driver class. This should only be set to a class in the default class path. This will be overridden by a specified driverJar | public void setDriverClassName(String driverClassName) {
this.driverClassName = driverClassName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDriverClass(String driverClass) {\n this.driverClass = driverClass;\n }",
"public void setDriverJar(String driverJar) {\n this.driverJar = driverJar;\n }",
"public String getDriverClass() {\n return driverClass;\n }",
"public void setDriverClass(String driverClass... | [
"0.7613232",
"0.67243946",
"0.64974815",
"0.6352784",
"0.6324037",
"0.6319181",
"0.63052297",
"0.6230299",
"0.6177236",
"0.6159411",
"0.6156162",
"0.6008538",
"0.5976526",
"0.5851717",
"0.5850859",
"0.5815994",
"0.58036005",
"0.5797417",
"0.5795378",
"0.5774886",
"0.57724893"... | 0.6942878 | 1 |
Get the driver class. Load from the specified jar file, or if not specified, the context class loader of the calling method. | public Driver getDriver() throws SQLException {
if (!loaded) {
synchronized (driverLoadLock) {
try {
loadDriver();
} catch (SQLException sqle) {
failure = sqle;
} catch (Exception e) {
failur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String discoverDriverClassName(URLClassLoader urlClassLoader) throws IOException {\n String className = null;\n URL resource = urlClassLoader.findResource(\"META-INF/services/java.sql.Driver\");\n if (resource != null) {\n BufferedReader br = null;\n try {\n ... | [
"0.6313569",
"0.6122007",
"0.58036196",
"0.57925355",
"0.5749815",
"0.566149",
"0.5601653",
"0.55767506",
"0.5569966",
"0.5542349",
"0.55173385",
"0.5512375",
"0.55121076",
"0.5497085",
"0.54498523",
"0.5416786",
"0.54146075",
"0.5411393",
"0.53644186",
"0.53644186",
"0.53369... | 0.5257741 | 26 |
Set to null if input contains only whitespace | private String setNullIfEmpty(String in) {
if (in != null && in.trim().length() == 0) {
return null;
}
return in;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String fromNullToSpace(String a) {\r\n\t\tif (a == null || \"\".equals(a)) {\r\n\t\t\treturn \" \";\r\n\t\t} else {\r\n\t\t\treturn a;\r\n\t\t}\r\n\t}",
"private String checkNullString(String text) {\n if ( text.contains( \" \" )) {\n return null;\n }\n\n // otherwis... | [
"0.64981574",
"0.6442818",
"0.64322597",
"0.638977",
"0.6262555",
"0.6237077",
"0.6163769",
"0.61537516",
"0.60586953",
"0.6044531",
"0.6039877",
"0.6030098",
"0.6030098",
"0.6030098",
"0.6023082",
"0.59345144",
"0.592037",
"0.59179336",
"0.59123254",
"0.5906169",
"0.5896763"... | 0.7243109 | 0 |
Read class name from the service definition. Reads from METAINF/services/java.sql.Driver | private String discoverDriverClassName(URLClassLoader urlClassLoader) throws IOException {
String className = null;
URL resource = urlClassLoader.findResource("META-INF/services/java.sql.Driver");
if (resource != null) {
BufferedReader br = null;
try {
br ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract String getDriverClassName();",
"String getJdbcDriverClassName();",
"public abstract String getDriver() throws DataServiceException;",
"public static String getDatabaseDriverName() throws SQLException {\n Connection connection = APIMgtDBUtil.getConnection();\n String databaseT... | [
"0.6526925",
"0.65229756",
"0.6046792",
"0.57082117",
"0.55952305",
"0.55664134",
"0.54630226",
"0.5448266",
"0.5448266",
"0.5412217",
"0.53821945",
"0.53512377",
"0.53512377",
"0.53242713",
"0.5315702",
"0.52720636",
"0.5223695",
"0.52132756",
"0.52076876",
"0.52054036",
"0.... | 0.73889136 | 0 |
Create a 2D vector with a magnitude component and a direction component | public Vector(double s, double d){
this.magnitude = s;
this.direction = d;
this.dX = this.magnitude * Math.cos(Math.toRadians(d));
this.dY = this.magnitude * Math.sin(Math.toRadians(d));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Vector2 withMagnitude(double magnitude) {\n return new Vector2(Degrees.cos(getRotation()) * magnitude, Degrees.sin(getRotation()) * magnitude);\n }",
"public double magnitude(Coordinates vector);",
"public Vector2D toVector2D ( );",
"public Vector getDirection(){\n\t\treturn new Vector(_dire... | [
"0.69604665",
"0.6879418",
"0.6667738",
"0.6295127",
"0.6252898",
"0.62177294",
"0.61773884",
"0.6139217",
"0.6041933",
"0.5993019",
"0.5980141",
"0.5925213",
"0.5879256",
"0.58781016",
"0.5876692",
"0.58675826",
"0.5847271",
"0.58016706",
"0.57898796",
"0.5775219",
"0.572123... | 0.6252101 | 5 |
collect all nodes in the list | private void collectAllElements(List<Node<E>> list) {
list.add(root);
for (int i = 0; i < list.size(); i++) {
if (list.get(i).children != null) {
list.addAll(list.get(i).children);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Collection<Node> allNodes();",
"List<Node> nodes();",
"protected abstract Node[] getAllNodes();",
"List<Node> getNodes();",
"List<CyNode> getNodeList();",
"public List<Node> getNodes();",
"public abstract List<Node> getChildNodes();",
"public List<INode> getAllNodes();",
"private List<Node> compute... | [
"0.72989154",
"0.69338423",
"0.68915486",
"0.6814932",
"0.67430764",
"0.6687659",
"0.65727454",
"0.64979166",
"0.64817137",
"0.643752",
"0.64147",
"0.6399805",
"0.633711",
"0.6336976",
"0.63284767",
"0.62863505",
"0.6282538",
"0.62424624",
"0.620375",
"0.61862916",
"0.6176714... | 0.71635044 | 1 |
find duplicate by value | private Node<E> findDuplicate(E value) {
Queue<Node<E>> queue = new LinkedList<>();
queue.add(root);
while (!queue.isEmpty()) {
Node<E> element = queue.remove();
if (element.value.compareTo(value) == 0) {
return element;
}
if (ele... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void findDuplicate()\n\t{\n\n\t\tList<String> oList = null;\n\t\tSet<String> oSet = null;\n\t\ttry {\n\t\t\toList = new ArrayList<String>();\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Dog\");\n\t\t\toList.add(\"Eagle\");\n\t\t\toList.add(\"Frog\");... | [
"0.62489176",
"0.5815138",
"0.5737205",
"0.5703768",
"0.5604319",
"0.5513236",
"0.55051804",
"0.5480258",
"0.5478894",
"0.54665667",
"0.5456377",
"0.5406056",
"0.5386017",
"0.53856003",
"0.5381837",
"0.53655636",
"0.53440094",
"0.5343178",
"0.5315928",
"0.53073406",
"0.529352... | 0.61762416 | 1 |
add new node in children list | private void addNode(Node<E> node, E value) {
if (node.children == null) {
node.children = new ArrayList<>();
}
node.children.add(new Node<>(value));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addToList(Node newChildren) {\n \tthis.children.add(newChildren);\n }",
"public void addNode(Node node){subNodes.add(node);}",
"public abstract void addChild(Node node);",
"public void addChild(Node node){\n children.add(node);\n \n }",
"public void addChild(WSLNode node)... | [
"0.7743681",
"0.7611377",
"0.7569375",
"0.7547767",
"0.74007714",
"0.71969056",
"0.71436405",
"0.71021384",
"0.70791394",
"0.7032162",
"0.7031711",
"0.6950315",
"0.68883836",
"0.6769593",
"0.6734818",
"0.67098784",
"0.66954315",
"0.6676743",
"0.66723245",
"0.66523284",
"0.664... | 0.68143564 | 13 |
Processes requests for both HTTP GET and POST methods. | @Override
protected void service(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
HttpSession session = request.getSession();
Strin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_... | [
"0.7004024",
"0.66585696",
"0.66031146",
"0.6510023",
"0.6447109",
"0.64421695",
"0.64405906",
"0.64321136",
"0.6428049",
"0.6424289",
"0.6424289",
"0.6419742",
"0.6419742",
"0.6419742",
"0.6418235",
"0.64143145",
"0.64143145",
"0.6400266",
"0.63939095",
"0.63939095",
"0.6392... | 0.0 | -1 |
hwMap contains all the information constructor | public MecBasicsConfig()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initMap()\r\n/* */ {\r\n///* 36 */ putHandler(\"vwkgcode\", PDWkHeadTailVWkgcodeHandler.class);\r\n///* 37 */ putHandler(\"fcapacitycalc\", PDWkHeadTailFcapacitycalcHandler.class);\r\n///* 38 */ putHandler(\"bprodline\", PDWkHeadTailBprodlineHandler.class);\r\n/* */ }",
"protect... | [
"0.72879523",
"0.7087266",
"0.6942818",
"0.6817787",
"0.6744058",
"0.6645801",
"0.6601257",
"0.65770745",
"0.6569593",
"0.6446295",
"0.64332443",
"0.6375483",
"0.63621914",
"0.63616335",
"0.63269365",
"0.63232845",
"0.63159436",
"0.6254966",
"0.6243393",
"0.62413144",
"0.6228... | 0.0 | -1 |
/ Initialize standard Hardware interfaces | public void init(HardwareMap ahwMap) {
// Save reference to Hardware map
hwMap = ahwMap;
// Define and Initialize Motors
// imu = hwMap.get(BNO055IMU.class, "imu");
leftFront = hwMap.get(DcMotor.class, "left_front");//hub2 - port 0
rightFront = hwMap.get(DcMotor.class, "... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initHardware(){\n }",
"protected abstract void initHardwareInstructions();",
"public void initDevice() {\r\n\t\t\r\n\t}",
"@Override\n public void init() {\n imu = new IMU(hardwareMap, \"imu\");\n left = hardwareMap.get(DcMotor.class, \"left\");\n right = hardwareMap.g... | [
"0.8218544",
"0.73745877",
"0.72169113",
"0.6796372",
"0.6724548",
"0.6593789",
"0.65810317",
"0.6566287",
"0.6544252",
"0.65379685",
"0.65292406",
"0.65153146",
"0.6504885",
"0.6436474",
"0.6425336",
"0.6412519",
"0.64116925",
"0.64075726",
"0.6403585",
"0.63959414",
"0.6379... | 0.6694773 | 5 |
Delete movie item from database | @Override
public void onClick(DialogInterface dialog, int which) {
db.execSQL("DELETE FROM Movie WHERE MovieId ='"+id+"'");
Toast.makeText(getApplicationContext(), "Movie deleted successfully!", Toast.LENGTH_SHORT).show();
Intent mainIntent = new Intent(MovieI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void delete(Movie movie) {\n\n\t}",
"public void deleteMovieSQL(Movie movie){\n try {\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ps = conn.prepareStatement(\"DELETE FROM movies WHERE (title=? AND director=?);\");\n ... | [
"0.7875117",
"0.7685584",
"0.75397074",
"0.7447505",
"0.7413513",
"0.7349542",
"0.7329511",
"0.72498363",
"0.7249193",
"0.719833",
"0.71711046",
"0.7140185",
"0.7084324",
"0.7021405",
"0.7012519",
"0.7011795",
"0.7001383",
"0.6985602",
"0.6832921",
"0.6791157",
"0.67437404",
... | 0.67085624 | 21 |
====================================================================================================================== Construtor and fields | public Aluguel(Integer idAluguel, Cliente cliente, LocalDate data_aluguel, BigDecimal valor) {
super();
this.idAluguel = idAluguel;
this.cliente = cliente;
this.data_aluguel = data_aluguel;
this.valor = valor;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public contrustor(){\r\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"private TMCourse() {\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"Consumable() {\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n protected void initialize() \n {\n \n }",
"@Ove... | [
"0.7186062",
"0.66110516",
"0.6589423",
"0.65786105",
"0.64404714",
"0.64257216",
"0.64007246",
"0.63927794",
"0.63927794",
"0.63927794",
"0.63927794",
"0.63927794",
"0.63927794",
"0.6384064",
"0.63816404",
"0.63797885",
"0.63797885",
"0.6376803",
"0.6371315",
"0.6359045",
"0... | 0.0 | -1 |
====================================================================================================================== Getters and Setters | public Integer getIdAluguel() {
return idAluguel;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"protected abstract Set method_1559();",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n public void get() {}",
"@Overri... | [
"0.63397187",
"0.6101833",
"0.6101122",
"0.60813534",
"0.6008249",
"0.60077196",
"0.59779173",
"0.59754527",
"0.59754527",
"0.596866",
"0.59340686",
"0.5905448",
"0.5905448",
"0.5905448",
"0.5905448",
"0.5905448",
"0.5905448",
"0.5901406",
"0.58996654",
"0.58996654",
"0.58996... | 0.0 | -1 |
====================================================================================================================== HashCode and Equals | @Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((cliente == null) ? 0 : cliente.hashCode());
result = prime * result + ((data_aluguel == null) ? 0 : data_aluguel.hashCode());
result = prime * result + ((idAluguel == null) ? 0 : idAluguel.hashCode());
resul... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t public int hashCode();",
"public int hashCode();",
"public int hashCode();",
"public int hashCode();",
"public int hashCode();",
"@Override\n int hashCode();",
"public int hashcode();",
"int hashCode();",
"int hashCode();",
"@Override\n public int hashCode();",
"@Override \n ... | [
"0.7904651",
"0.7882356",
"0.7882356",
"0.7882356",
"0.7882356",
"0.78790313",
"0.78776515",
"0.78125304",
"0.78125304",
"0.7803955",
"0.7735501",
"0.76682323",
"0.76682323",
"0.76682323",
"0.7643458",
"0.7616249",
"0.7605663",
"0.75282156",
"0.74211884",
"0.74068195",
"0.735... | 0.0 | -1 |
Productos mas vendidos en todos los tiempos (Grafica Donut => Producto vs Cantidad) | public String estadisticasProductosMasVendidos() {
String html = "";
DefaultTableModel dtm = producto.estadisticaTopProductosMasVendidos();
html = Utils.dibujarGraficasHTMLDonut(dtm, "TOP PRODUCTOS MAS VENDIDOS");
return html;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void somarQuantidade(Integer id_produto){\n\t for (ItensCompra it : itensCompra){\n\t\t //verifico se o item do meu arraylist é igual ao ID passado no Mapping\n\t\t if(it.getTable_Produtos().getId_produto().equals(id_produto)){\n\t //defino a quantidade atual(pego a quantidade atual e somo um)\n\t it.... | [
"0.6460032",
"0.6285916",
"0.6126609",
"0.6088771",
"0.60322356",
"0.6030258",
"0.60094154",
"0.5994499",
"0.5987279",
"0.59866965",
"0.5985702",
"0.5978584",
"0.59291905",
"0.58698034",
"0.5853481",
"0.58463854",
"0.58424234",
"0.583817",
"0.5831966",
"0.58175653",
"0.580840... | 0.6441973 | 1 |
Productos mas vendidos en un rango de fechas (Grafica Donut => Producto vs Cantidad) | public String estadisticasProductosMasVendidosRangoFechas(String fecha1, String fecha2) {
fecha1 = Utils.ddMMyyyyToyyyyMMddDate(fecha1);
fecha2 = Utils.ddMMyyyyToyyyyMMddDate(fecha2);
String html = "";
DefaultTableModel dtm = producto.estadisticaTopProductosMasVendidosR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String estadisticasProductosMasVendidos() {\n String html = \"\";\n DefaultTableModel dtm = producto.estadisticaTopProductosMasVendidos();\n html = Utils.dibujarGraficasHTMLDonut(dtm, \"TOP PRODUCTOS MAS VENDIDOS\");\n return html;\n }",
"static Producto busqueda(int codigo,... | [
"0.6372902",
"0.62783563",
"0.6213435",
"0.61977977",
"0.61739284",
"0.6172958",
"0.6119545",
"0.60867155",
"0.6036377",
"0.59996855",
"0.59956133",
"0.5981512",
"0.59659266",
"0.5958693",
"0.59582335",
"0.5954155",
"0.59486157",
"0.59146386",
"0.5896088",
"0.5880321",
"0.581... | 0.6486251 | 0 |
Clientes mas fieles (de todos los tiempos) (Grafica Barras => Cliente vs NumeroVentas) | public String estadisticasClientesFieles() {
String html = "";
DefaultTableModel dtm = cliente.estadisticaClientesFieles();
html = Utils.dibujarGraficasHTMLBarras(dtm, "TOP CLIENTES MAS FIELES", "Cliente");
return html;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String mostrarVentas() {\n String ventas = \"\";\n for (int i = 0; i < posicionActual; i++) { //Recorre el vector hasra la poscion actual, y almacena toda la informacion de estos en una variable String la cual se retornara \n ventas += mostrarCliente(i);\n }\n return v... | [
"0.6822586",
"0.68000615",
"0.6709217",
"0.6551007",
"0.6451608",
"0.63693476",
"0.62371147",
"0.6226984",
"0.6144529",
"0.6138727",
"0.61187804",
"0.609554",
"0.60745656",
"0.60715",
"0.6041913",
"0.60196424",
"0.6006083",
"0.5999369",
"0.59653085",
"0.5961034",
"0.59389573"... | 0.65554965 | 3 |
Proveedores mas solicitados (de todos los tiempos) (Grafica Barras => Proveedor vs NumeroCompras) | public String estadisticasProveedoresMasSolicitados() {
String html = "";
DefaultTableModel dtm = proveedor.estadisticaProveedoresMasSolicitados();
html = Utils.dibujarGraficasHTMLBarras(dtm, "TOP PROVEEDORES MAS SOLICITADOS", "Proveedor");
return html;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buscarComprobantesEntreFechas(){\n listaComprobantes = this.getEjbFacadeComprobantes().buscarEntreFechasConEstadoSinRendicionExterna(desde,hasta);\n \n System.out.println(\"listaComprobantes cantidad >> \" + listaComprobantes.size());\n }",
"public void CargarProveedores() {\n... | [
"0.66443944",
"0.64096135",
"0.64074534",
"0.6359404",
"0.6355049",
"0.62990123",
"0.62792164",
"0.6213058",
"0.61855733",
"0.61571515",
"0.61190677",
"0.6118322",
"0.60801893",
"0.60705626",
"0.60667855",
"0.60631275",
"0.60595673",
"0.60490555",
"0.6047944",
"0.6043936",
"0... | 0.6498003 | 1 |
Proveedores mas solicitados (de todos los tiempos) (Grafica Barras => Proveedor vs NumeroCompras) | public String estadisticasFinancieras(String anio) {
String html = "";
DefaultTableModel dtm1 = venta.estadisticaFinancierasMeseVsIngresoGasto(anio);
DefaultTableModel dtm2 = venta.estadisticaFinancierasIngresosGastosUtilidades(anio);
html = Utils.dibujarGraficasHTMLLineasYTorta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buscarComprobantesEntreFechas(){\n listaComprobantes = this.getEjbFacadeComprobantes().buscarEntreFechasConEstadoSinRendicionExterna(desde,hasta);\n \n System.out.println(\"listaComprobantes cantidad >> \" + listaComprobantes.size());\n }",
"public String estadisticasProveedor... | [
"0.66465735",
"0.6497292",
"0.64105254",
"0.64073336",
"0.6360448",
"0.63545495",
"0.6298798",
"0.62811893",
"0.62103623",
"0.61860025",
"0.6159527",
"0.6120588",
"0.6118618",
"0.6080955",
"0.60717255",
"0.60654855",
"0.6065365",
"0.60584784",
"0.60489935",
"0.6048871",
"0.60... | 0.0 | -1 |
return "Node [id=" + id + ", data=" + data + ", leftChild=" + leftChild + ", rightChild=" + rightChild + "]"; | @Override
public String toString() {
return "Node [id=" + id + ", data=" + data + ", red=" + red + "]";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString(){\n return \"Node: \" + data;\n }",
"public TreeNode getLeft(){ return leftChild;}",
"@Override\n public String toString(){\n return \"the node has: \" + children.size()\n + \" the counter is \" + counter; \n }",
"@Override\n public String toSt... | [
"0.6992403",
"0.64479077",
"0.64364815",
"0.6383914",
"0.6324842",
"0.6295747",
"0.61232674",
"0.61165535",
"0.6105805",
"0.60797656",
"0.60214645",
"0.59903926",
"0.59581494",
"0.59452796",
"0.5940111",
"0.5871523",
"0.5860571",
"0.5829363",
"0.5810002",
"0.5802286",
"0.5796... | 0.6911471 | 1 |
Act do whatever the Rudal wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment. | public void gerak()
{
setLocation(getX(),getY()-5);
if(getY()<20){
getWorld().removeObject(this);
}else
cek_kena();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void act() {\n\t\tmyAction.embodiment();\n\t}",
"public void act() {\n\t}",
"public void act() \r\n {\r\n key();\r\n win();\r\n fall();\r\n lunch();\r\n }",
"public void act()\n {\n // handle key events\n String key = Greenfoot.getKey();\n if ... | [
"0.69703317",
"0.6963058",
"0.6903902",
"0.68175685",
"0.6797228",
"0.6770857",
"0.6770857",
"0.6724568",
"0.6708893",
"0.6666236",
"0.6650058",
"0.6650058",
"0.6650058",
"0.6650058",
"0.6650058",
"0.6650058",
"0.6650058",
"0.6650058",
"0.6631384",
"0.659808",
"0.6596791",
... | 0.0 | -1 |
1. Create a variable to hold the user's score | public static void main(String[] args) {
int score = 0;
// 2. Ask the user a question
String input = JOptionPane.showInputDialog(null, "What is a?: 2a-18=-4a:");
// 3. Use an if statement to check if their answer is correct
if (input.equals("3")) {
JOptionPane.showMessageDialog(null, "You are correct, good... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"float getScore();",
"float getScore();",
"public static int getScore(){\n return score;\n }",
"public int getScore() { return score; }",
"public int getScore() {return score;}",
"int getScore();",
"Float getScore();",
"public int getScore()\n {\n // put your code here\n ret... | [
"0.75358117",
"0.75358117",
"0.7460044",
"0.74521327",
"0.74318814",
"0.74069804",
"0.73992926",
"0.7362232",
"0.73607874",
"0.7334285",
"0.7321924",
"0.7303986",
"0.7292498",
"0.7292498",
"0.7292498",
"0.7292498",
"0.728397",
"0.72801244",
"0.7264405",
"0.7264405",
"0.726365... | 0.0 | -1 |
showToast(getString(R.string.service_setting_time_success)); Intent intent = new Intent(SaveHospitalActivity.this,PersonInfoActivity.class); intent.putExtra("hospitalnameStr", hospitalnameStr); intent.putExtra("setting_type", SaveHospitalActivity.class.getSimpleName()); setResult(RESULT_OK, intent); finish(); | @Override
public void onResponse(Object response) {
SharePrefUtil.putString(Conast.HOSPITAL_NAME, et_public_str.getText().toString());
SharePrefUtil.commit();
Message message = new Message();
message.obj = response;
message.what = IResult.PERSON_INFO;
handler.sendM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void pindah_ke_log(View v)\n {\n Intent dashboard = new Intent(DashboardUser.this,BuyerTransactionActivity.class) ;\n dashboard.putExtra(\"param1\",value1);\n dashboard.putExtra(\"param2\",value2);\n dashboard.putExtra(\"param3\",value3);\n dashboard.putExtra(\"param4\"... | [
"0.7022604",
"0.6858837",
"0.674099",
"0.6726055",
"0.6678699",
"0.6392454",
"0.63752544",
"0.6356258",
"0.6349841",
"0.6349664",
"0.63352907",
"0.6319868",
"0.6300916",
"0.62976503",
"0.62848496",
"0.6281151",
"0.626419",
"0.62635624",
"0.62629586",
"0.62614095",
"0.62440157... | 0.0 | -1 |
Creates new form INFORMACIONDECANDIDATOS | public INFORMACION() {
initComponents();
this.setLocationRelativeTo(null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"FORM createFORM();",
"@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}",... | [
"0.6587841",
"0.64032876",
"0.63524616",
"0.6263245",
"0.61866504",
"0.61601484",
"0.61302084",
"0.61135566",
"0.6109722",
"0.61062396",
"0.60992634",
"0.60619557",
"0.6051102",
"0.6018676",
"0.599893",
"0.59901524",
"0.59892523",
"0.59463584",
"0.59354734",
"0.5913618",
"0.5... | 0.0 | -1 |
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() {
jLabel9 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
txtnombreA = new javax.swing.JTextField();
jLabel7 = n... | {
"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.73197734",
"0.72908777",
"0.72908777",
"0.72908777",
"0.72870827",
"0.7248368",
"0.7213462",
"0.7208004",
"0.7195763",
"0.7189973",
"0.7184436",
"0.7159332",
"0.71478266",
"0.709268",
"0.7080727",
"0.7057287",
"0.6986775",
"0.6977119",
"0.69554067",
"0.69548035",
"0.694574... | 0.0 | -1 |
Get current test results Also look up AbstractTestResultAction | @Override
public void perform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
{
AggregatedTestResultAction currentTestResults = run.getAction(AggregatedTestResultAction.class);
//retrieve the test results
List<Aggre... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TestResult getResult() {\n List<TestResult> allTestResults = getCurrentTestResults();\n\n if (allTestResults.contains(FAILURE)) {\n return FAILURE;\n }\n\n if (allTestResults.contains(PENDING)) {\n return PENDING;\n }\n\n if (containsOnly(allTe... | [
"0.6123413",
"0.6113548",
"0.6066219",
"0.5946992",
"0.59345686",
"0.591453",
"0.5902882",
"0.5885318",
"0.5877487",
"0.5836347",
"0.58204335",
"0.5820044",
"0.58027524",
"0.57994914",
"0.57884866",
"0.574731",
"0.57433707",
"0.57326543",
"0.57131726",
"0.5707966",
"0.5703181... | 0.61910254 | 0 |
TODO Autogenerated method stub | @Override
public BuildStepMonitor getRequiredMonitorService() {
return BuildStepMonitor.NONE;
} | {
"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: Rename and change types and number of parameters | public static ParqueosFragment newInstance() {
ParqueosFragment fragment = new ParqueosFragment();
return fragment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void getParameters(Parameters parameters) {\n\n }",
"@Override\n\tprotected void initParams() {\n\t\t\n\t}",
"public abstract String paramsToString();",
"protected void setupParameters() {\n \n \n\n }",
"public abstract Result mo5059a(Params... paramsArr);",
"public void getParame... | [
"0.59931976",
"0.5977712",
"0.573602",
"0.5673198",
"0.5638195",
"0.56235766",
"0.56187797",
"0.5569275",
"0.55499786",
"0.55272686",
"0.5463663",
"0.5447239",
"0.5438263",
"0.54108876",
"0.5384065",
"0.5374544",
"0.53731865",
"0.53700835",
"0.5359534",
"0.5358818",
"0.534661... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_parqueos, container, false);
fabAddRegister = view.findViewById(R.id.fabAddRegister);
fabAddRegister.setOn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
Check user ID edit text. | public boolean checkUserId() {
if (userIdEditText.getText().toString().isEmpty()) {
userIdContainer.setError(getString(R.string.error_user_id));
} else {
userIdContainer.setError(null);
}
return !userIdEditText.getText().toString().isEmpty();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t if(e.getActionCommand().equals(\"提交UID\")){\n\t\t\t\t\tif(!UserID.useruidtext.getText().equals(\"\")) {\n\t\t\t\t\t\tBILIBILIAPI.Userid=UserID.useruidtext.getText();\n\t\t\t\t\t\tsetVisible(false);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tJOptionPane.s... | [
"0.6020688",
"0.5904123",
"0.58179724",
"0.5779591",
"0.57568794",
"0.57560736",
"0.5743477",
"0.57255757",
"0.5723872",
"0.5707666",
"0.570653",
"0.5696595",
"0.5656602",
"0.5628982",
"0.56239456",
"0.56197304",
"0.5584736",
"0.5564027",
"0.55442715",
"0.55352885",
"0.552497... | 0.6424626 | 0 |
Return user ID text | public String getUserId() {
return userIdEditText.getText().toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getUserID();",
"java.lang.String getUserID();",
"java.lang.String getUserID();",
"String getUserID();",
"public String getUserID();",
"public String getUserIdLableText() {\n\t\treturn util.getWebelementText(this.loginPageLocators.getUserIdLabelElement());\n\t}",
"int getUserID();",
"... | [
"0.8392383",
"0.8392383",
"0.8392383",
"0.8151513",
"0.780856",
"0.7501603",
"0.7476919",
"0.7476919",
"0.7476919",
"0.7476919",
"0.7476919",
"0.7476919",
"0.7476919",
"0.7476919",
"0.7476919",
"0.7476919",
"0.7476919",
"0.7476919",
"0.7476919",
"0.7476919",
"0.7476919",
"0... | 0.7278764 | 31 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof Course)) {
return false;
}
Course other = (Course) object;
if ((this.courseId == null && other.courseId != null) || (this.courseId != null && !this.courseId.equals(other.courseId))) {
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void se... | [
"0.6896886",
"0.6838461",
"0.67056817",
"0.66419715",
"0.66419715",
"0.6592331",
"0.6579151",
"0.6579151",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.65624106",
"0.65624106",
"0.65441847",
"0.65243006",
"0.65154546",
"0.6487427",
"0.64778... | 0.0 | -1 |
This method will calculate sum of all the weights of FACatches | protected Double getQuantity(FishingActivityEntity entity) {
if (entity == null || entity.getFaCatchs() == null) {
return new Double(0);
}
Double quantity = new Double(0);
Set<FaCatchEntity> faCatchList = entity.getFaCatchs();
for (FaCatchEntity faCatch : faCatchLis... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private double sumWeights(int index, Image image){\n double sum = 0;\n for(int i= 0; i<400 ; i++){\n sum+=perceptrons.get(i).getWeight(index)\n *normalizeImageValue(image.getImage()[i]);\n }\n return sum;\n }",
"private Double CPLXCalculateWeightedSUM(... | [
"0.6411995",
"0.6305123",
"0.62062633",
"0.60967237",
"0.593972",
"0.5936822",
"0.5901571",
"0.5877993",
"0.58768785",
"0.5825962",
"0.58120245",
"0.57622206",
"0.5739555",
"0.5721462",
"0.5707029",
"0.57019454",
"0.5698073",
"0.5698072",
"0.5689384",
"0.56513333",
"0.5618674... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.