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
Tests if tank inside right margin
@Test public void testTOutOfBoundsRightMargin2() { tank.setX(460); assertEquals(false, tank.isWithinMarginsRight()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTOutOfBoundsRightMargin1() {\n\t\ttank.setX(550);\n\t\tassertEquals(false, tank.isWithinMarginsRight());\n\t}", "@Test\n\tpublic void testTOutOfBoundsRightMargin3() {\n\t\ttank.setX(300);\n\t\tassertEquals(true, tank.isWithinMarginsRight());\n\t}", "@Test\n\tpublic void testTOutOfBound...
[ "0.75602907", "0.73383194", "0.70826054", "0.65971345", "0.6588694", "0.6503502", "0.64785403", "0.631206", "0.62684625", "0.6144961", "0.60993326", "0.6094709", "0.60668766", "0.60600907", "0.60484976", "0.6036911", "0.59542596", "0.590374", "0.5900591", "0.5866203", "0.5865...
0.7620653
0
Tests if tank inside right margin
@Test public void testTOutOfBoundsRightMargin3() { tank.setX(300); assertEquals(true, tank.isWithinMarginsRight()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTOutOfBoundsRightMargin2() {\n\t\ttank.setX(460);\n\t\tassertEquals(false, tank.isWithinMarginsRight());\n\t}", "@Test\n\tpublic void testTOutOfBoundsRightMargin1() {\n\t\ttank.setX(550);\n\t\tassertEquals(false, tank.isWithinMarginsRight());\n\t}", "@Test\n\tpublic void testTOutOfBoun...
[ "0.76212484", "0.75607705", "0.7083071", "0.6597683", "0.6589229", "0.65037", "0.6479061", "0.6312934", "0.62694246", "0.6143764", "0.6098742", "0.6095964", "0.60679764", "0.60599816", "0.6047686", "0.6037012", "0.5955504", "0.59033257", "0.59003633", "0.58663017", "0.5865711...
0.73384124
2
Tests if tank inside left margin
@Test public void testTOutOfBoundsLeftMargin1() { tank.setX(100); assertEquals(false, tank.isWithinMarginsLeft()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTOutOfBoundsLeftMargin2() {\n\t\ttank.setX(180);\n\t\tassertEquals(false, tank.isWithinMarginsLeft());\n\t}", "@Test\n\tpublic void testTOutOfBoundsLeftMargin3() {\n\t\ttank.setX(182);\n\t\tassertEquals(true, tank.isWithinMarginsLeft());\n\t}", "@Test\n\tpublic void testTOutOfBoundsRig...
[ "0.767197", "0.7553397", "0.69743496", "0.69032145", "0.6686465", "0.6499331", "0.64798594", "0.64538324", "0.63277924", "0.62991834", "0.62448573", "0.62082", "0.61833304", "0.61604565", "0.61527526", "0.6132344", "0.60715574", "0.60715574", "0.60715574", "0.60289276", "0.60...
0.769896
0
Tests if tank inside left margin
@Test public void testTOutOfBoundsLeftMargin2() { tank.setX(180); assertEquals(false, tank.isWithinMarginsLeft()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTOutOfBoundsLeftMargin1() {\n\t\ttank.setX(100);\n\t\tassertEquals(false, tank.isWithinMarginsLeft());\n\t}", "@Test\n\tpublic void testTOutOfBoundsLeftMargin3() {\n\t\ttank.setX(182);\n\t\tassertEquals(true, tank.isWithinMarginsLeft());\n\t}", "@Test\n\tpublic void testTOutOfBoundsRig...
[ "0.769896", "0.7553397", "0.69743496", "0.69032145", "0.6686465", "0.6499331", "0.64798594", "0.64538324", "0.63277924", "0.62991834", "0.62448573", "0.62082", "0.61833304", "0.61604565", "0.61527526", "0.6132344", "0.60715574", "0.60715574", "0.60715574", "0.60289276", "0.60...
0.767197
1
Tests if tank inside left margin
@Test public void testTOutOfBoundsLeftMargin3() { tank.setX(182); assertEquals(true, tank.isWithinMarginsLeft()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTOutOfBoundsLeftMargin1() {\n\t\ttank.setX(100);\n\t\tassertEquals(false, tank.isWithinMarginsLeft());\n\t}", "@Test\n\tpublic void testTOutOfBoundsLeftMargin2() {\n\t\ttank.setX(180);\n\t\tassertEquals(false, tank.isWithinMarginsLeft());\n\t}", "@Test\n\tpublic void testTOutOfBoundsRi...
[ "0.76981854", "0.7671392", "0.69743484", "0.69032764", "0.6686055", "0.6500115", "0.64798695", "0.645369", "0.6327983", "0.6300017", "0.62441736", "0.62090486", "0.6183458", "0.6162373", "0.61525136", "0.6131954", "0.60719055", "0.60719055", "0.60719055", "0.6029547", "0.6007...
0.7552547
2
Tests tank's ability to increase health (extension task)
@Test public void testTHealthIncrease1() { tank.damage(proj); tank.increaseHealth(); assertEquals(3, tank.getHealth()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testTankSetHealth() {\n tank.setHealth(5);\n assertTrue(tank.getHealth() == 5);\n }", "@Test\n\tpublic void testHealthIncrease2() {\n\t\ttank.damage(proj);\n\t\ttank.damage(proj);\n\t\ttank.increaseHealth();\n\t\tassertEquals(2, tank.getHealth());\n\t}", "@Test\n\tpublic void testHe...
[ "0.705985", "0.7020743", "0.6996014", "0.6865186", "0.643447", "0.64295954", "0.64269155", "0.63915807", "0.6386871", "0.6298243", "0.62975734", "0.6294371", "0.6293469", "0.624073", "0.6227937", "0.62158394", "0.6202069", "0.618042", "0.6164214", "0.6148082", "0.61393535", ...
0.68948925
3
Tests tank's ability to increase health (extension task)
@Test public void testHealthIncrease2() { tank.damage(proj); tank.damage(proj); tank.increaseHealth(); assertEquals(2, tank.getHealth()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testTankSetHealth() {\n tank.setHealth(5);\n assertTrue(tank.getHealth() == 5);\n }", "@Test\n\tpublic void testHealthIncrease3() {\n\t\ttank.setHealth(1);\n\t\ttank.increaseHealth();\n\t\tassertEquals(2, tank.getHealth());\n\t}", "@Test\n\tpublic void testTHealthIncrease1() {\n\t\t...
[ "0.705985", "0.6996014", "0.68948925", "0.6865186", "0.643447", "0.64295954", "0.64269155", "0.63915807", "0.6386871", "0.6298243", "0.62975734", "0.6294371", "0.6293469", "0.624073", "0.6227937", "0.62158394", "0.6202069", "0.618042", "0.6164214", "0.6148082", "0.61393535", ...
0.7020743
1
Tests tank's ability to increase health (extension task)
@Test public void testHealthIncrease3() { tank.setHealth(1); tank.increaseHealth(); assertEquals(2, tank.getHealth()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testTankSetHealth() {\n tank.setHealth(5);\n assertTrue(tank.getHealth() == 5);\n }", "@Test\n\tpublic void testHealthIncrease2() {\n\t\ttank.damage(proj);\n\t\ttank.damage(proj);\n\t\ttank.increaseHealth();\n\t\tassertEquals(2, tank.getHealth());\n\t}", "@Test\n\tpublic void testTH...
[ "0.705985", "0.7020743", "0.68948925", "0.6865186", "0.643447", "0.64295954", "0.64269155", "0.63915807", "0.6386871", "0.6298243", "0.62975734", "0.6294371", "0.6293469", "0.624073", "0.6227937", "0.62158394", "0.6202069", "0.618042", "0.6164214", "0.6148082", "0.61393535", ...
0.6996014
2
Tests tank's ability to increase health (extension task)
@Test public void testHealthIncrease4() { tank.setHealth(1); tank.increaseHealth(); tank.increaseHealth(); assertEquals(3, tank.getHealth()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testTankSetHealth() {\n tank.setHealth(5);\n assertTrue(tank.getHealth() == 5);\n }", "@Test\n\tpublic void testHealthIncrease2() {\n\t\ttank.damage(proj);\n\t\ttank.damage(proj);\n\t\ttank.increaseHealth();\n\t\tassertEquals(2, tank.getHealth());\n\t}", "@Test\n\tpublic void testHe...
[ "0.7059045", "0.70198727", "0.6995279", "0.689463", "0.6433996", "0.64303505", "0.64265716", "0.6393154", "0.6386818", "0.62988985", "0.62972367", "0.62932754", "0.62921244", "0.6242945", "0.62263507", "0.6216445", "0.62043", "0.61817634", "0.6162048", "0.61477363", "0.614012...
0.6864221
4
this is about rotatig a square matrix, so if the lenth of row and columns are not same we will return
public static void rotateMatrix(int[][] a]){ if (a == null || a.length == 0 || a.length != a[0].length){ return; } // we olny need half of the layers as other layers will be processed automatically for (int layer = 0; layer < a.length/2; layer++){ // rotate (array, start, end), this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean rotate(int[][] matrix) {\n\t\tif (matrix.length == 0 || matrix.length != matrix[0].length)\n\t\t\treturn false; // Not a square\n\t\tint n = matrix.length;\n\n\t\tfor (int layer = 0; layer < n / 2; layer++) {\n\t\t\tint first = layer;\n\t\t\tint last = n - layer - 1;\n\t\t\tfor (int i = first...
[ "0.6839497", "0.6573267", "0.63649976", "0.6329602", "0.6296674", "0.6256894", "0.6248781", "0.62473816", "0.62146395", "0.6207917", "0.6129315", "0.6120296", "0.60681856", "0.5935153", "0.5894334", "0.5887079", "0.58750725", "0.5817168", "0.58126867", "0.57958513", "0.576149...
0.6121394
11
helper function shoudl beprivate and static
private static void rotate(int[][] a, start, end){ for (int current = 0; start+current < end; current++){ int temp = a[start][start+current]; // save the top a[start][start+current] = a[end-current][start]; // left to top moveing left elemnt to top a[end-current][start] = a[end][end-current...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private Util() { }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void strin() {\n\n\t}", "@Override\r\n\t\t\tpub...
[ "0.62458336", "0.60561275", "0.60561275", "0.58356553", "0.58171916", "0.5800669", "0.5764604", "0.5760367", "0.5724719", "0.5704225", "0.5680794", "0.5672684", "0.5515734", "0.5515734", "0.5515734", "0.5515734", "0.5507018", "0.5494608", "0.5481578", "0.5467099", "0.5427324"...
0.0
-1
Create project with client.
protected Project createProjectWithClient(long id, Client client) { Project project = new Project(); setAuditableEntity(project); project.setActive(true); project.setClient(client); ProjectStatus projectStatus = createProjectStatus(100000); project.setProjectStatus(projec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Project createProject();", "Project createProject();", "Project createProject();", "public void createProject(Project newProject);", "@ApiMethod(\n \t\tname = \"createProject\", \n \t\tpath = \"createProject\", \n \t\thttpMethod = HttpMethod.POST)\n public Project createProject(final ProjectFor...
[ "0.7532319", "0.7532319", "0.7532319", "0.7355822", "0.7317998", "0.7096229", "0.69681513", "0.6817162", "0.6736042", "0.6594225", "0.64904886", "0.63655955", "0.6336917", "0.6324704", "0.6316505", "0.62314355", "0.618411", "0.6182859", "0.61695355", "0.6168736", "0.6136023",...
0.7330704
4
Set fields of auditableEntity.
protected void setAuditableEntity(AuditableEntity auditableEntity) { auditableEntity.setCreateUsername("createUser"); auditableEntity.setModifyUsername("modifyUser"); auditableEntity.setCreateDate(new Date()); auditableEntity.setModifyDate(new Date()); auditableEntity.setName("na...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAttributes(IEntityObject obj) {\r\n\tDispenser dObj = (Dispenser) obj;\r\n\tdObj.pk = this.pk;\r\n\tdObj.versionInfoID = this.versionInfoID;\r\n\tdObj.interfaceID = this.interfaceID;\t\r\n\tdObj.setBlender(this.blender);\r\n }", "@Override\r\n protected void setFieldValues (Object ... fields...
[ "0.58524746", "0.5801445", "0.5435285", "0.53608185", "0.5336651", "0.5334838", "0.5319945", "0.5254487", "0.52442575", "0.5231818", "0.5213473", "0.5143434", "0.5127877", "0.5111755", "0.51093227", "0.5092488", "0.5072182", "0.50315905", "0.5021498", "0.5015799", "0.49882996...
0.734217
0
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "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
Bezparametricky konstruktor. Inicializuje kontejnery na soubory.
private DirectoryParser() { this.parsedFiles = new TreeMap<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void initParams() {\n\t\t\n\t}", "protected void setupParameters() {\n \n \n\n }", "@Override\n protected void elaboraParametri() {\n super.elaboraParametri();\n titoloPagina = TITOLO_PAGINA;\n }", "public void setParametersToDefaultValues()\n/* 65: ...
[ "0.6722415", "0.632361", "0.6073283", "0.60097504", "0.5994712", "0.5969657", "0.5898024", "0.5889229", "0.58576506", "0.5852905", "0.5828161", "0.5818687", "0.5818466", "0.5816343", "0.5813871", "0.58003354", "0.57998663", "0.57907766", "0.57907766", "0.57907766", "0.578895"...
0.0
-1
Tovarni metoda vraci odkaz na jedinou instanci DirectoryParser.
public static DirectoryParser getParser() { return DirectoryParser.INSTANCE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DirectoryParser() {\n this.parsedFiles = new TreeMap<>();\n }", "public Directory(String nm){\r\n\t\tsuper();\r\n\t}", "public Directory parseDirectory() {\n\n\t// Create a buffer for the result.\n\tDirectory result = new DirectoryImpl( this);\n\n\t// The track and sector pos of the currency ...
[ "0.7597372", "0.6688518", "0.643189", "0.6190427", "0.61485136", "0.6111864", "0.6103627", "0.607695", "0.59707034", "0.5967603", "0.59294224", "0.5897853", "0.5849771", "0.5845566", "0.58351946", "0.5827485", "0.58009315", "0.5798055", "0.5795267", "0.5749356", "0.5693934", ...
0.7184601
1
Vrati odkaz na mapu naparsovanych souboru. Mapa je prazdna, pokud nebyla zavolana metoda parseDirectory.
public TreeMap<String, HTMLFile> getParsedFiles() { return this.parsedFiles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Multimap<String, File> createMapOfFiles(File folder, Multimap<String, File> map) throws Exception {\n if (folder.exists()) {\n File[] allFiles = folder.listFiles();\n assert allFiles != null;\n for (File file : allFiles) {\n if (file.isDirectory...
[ "0.6602147", "0.60723454", "0.5436156", "0.5338338", "0.52977204", "0.5294476", "0.52849776", "0.5243373", "0.52187157", "0.5217914", "0.5198118", "0.5174612", "0.517303", "0.5093092", "0.5084467", "0.506877", "0.5048289", "0.5027841", "0.5011638", "0.49735934", "0.4972365", ...
0.0
-1
Overi jestli je predany naparsovany html dokument clanek webu whitebear. Overeni se provadi tak, ze clanek webu ma pevne danou strukturu. V jedinem nadpisu h1 na strance musi byt definovany text (v konstantni promenne tridy), Ve strance musi byt jeden vyskyt elementu article, tento element musi mit jeden atribut id s o...
private boolean isWhiteBearArticle(Document parsed) { boolean isCorrect = false; Element heading = parsed.getElementById("heading"); if (heading == null) { return false; } if (heading.text().equals(DirectoryParser.HEADING_TEST_STRING)) { isCorrect = true; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "HTML createHTML();", "public static String getArticleHtml(Document document) {\n Elements article = document.select(\".widget.widget-richtext.6 .text\").first().children();\n return article.toString();\n }", "protected SafeHtml getInnerHtml() {\n return html;\n }", "private HTMLElement g...
[ "0.57917", "0.5734547", "0.5600263", "0.5542198", "0.5335907", "0.5314978", "0.5314243", "0.5295824", "0.5287962", "0.5265459", "0.5240888", "0.523576", "0.5199914", "0.5170027", "0.51694447", "0.51660323", "0.5155635", "0.51385444", "0.51377887", "0.51304096", "0.51295835", ...
0.0
-1
Overi jestli je predany naparsovany html dokument menu webu whitebear. Overeni se provadi tak, ze clanek webu ma pevne danou strukturu. V jedinem nadpisu h1 na strance musi byt definovany text (v konstantni promenne tridy). Ve strance je jeden vyskyt elementu article, ten ma dva atributy id s obsahem main a class s obs...
private boolean isMenuPage(Document parsed) { boolean isCorrect = false; Element heading = parsed.getElementById("heading"); if (heading == null) { return false; } if (heading.text().equals(DirectoryParser.HEADING_TEST_STRING)) { isCorrect = true; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void mainMenu() {\r\n\t\tSystem.out.println(\"============= Text-Werkzeuge =============\");\r\n\t\tSystem.out.println(\"Bitte Aktion auswählen:\");\r\n\t\tSystem.out.println(\"1: Text umkehren\");\r\n\t\tSystem.out.println(\"2: Palindrom-Test\");\r\n\t\tSystem.out.println(\"3: Wörter zählen\");\r\n\...
[ "0.5722438", "0.54492974", "0.54492974", "0.54492974", "0.53777605", "0.536176", "0.535705", "0.53375083", "0.53127927", "0.5303544", "0.5277369", "0.52763486", "0.52735996", "0.5265173", "0.5249075", "0.5225441", "0.5211301", "0.52020985", "0.5156457", "0.5140993", "0.513919...
0.5317313
8
Projde vsechny soubory v predanem adresari a pokusi se je naparsovat. Pokud je soubor ke cteni i k zapisu a konci koncovkou .html, spusti se parsovani a vysledny dokument se ulozi do objektu HTMLFile s tim, ze nebyl modifikovan. Nakonec se vysledny objekt vlozi do mapy pod jmenem souboru. Pred kazdym parsovanim noveho ...
public void parseDirectory(File directory) throws IOException { this.parsedFiles.clear(); File[] contents = directory.listFiles(); for (File file : contents) { if (file.isFile() && file.canRead() && file.canWrite()) { String fileName = file.getPath(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createHTMLFile(Webpage webpage) {\n String filepath = \"resources/tempHTML\" +Thread.currentThread().getName() +\".html\";\n\n try {\n //Create HTML file\n File file = new File(filepath);\n OutputStreamWriter fW = new OutputStreamWriter(new FileOutputStr...
[ "0.59236324", "0.5905375", "0.57787013", "0.5767836", "0.56521076", "0.5613748", "0.55619025", "0.5528977", "0.54069334", "0.54020995", "0.5392757", "0.53348213", "0.52451825", "0.52364707", "0.52231884", "0.520768", "0.51505226", "0.5144675", "0.51208496", "0.511792", "0.503...
0.0
-1
Click one button on page, and redirect to respect pages. Added by Sicheng.
@Override public void onClick(View v) { switch (v.getId()) { case R.id.convertButton: Intent convertorMainIntent = new Intent(getApplicationContext(), ConvertorMainActivity.class); startActivity(convertorMai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void goToNextPage() {\n nextPageButton.click();\n }", "public EmagHomePage clickonContinueButton()\n {\n continueButton.click();\n return new EmagHomePage(driver);\n }", "HtmlPage clickSiteLink();", "HtmlPage clickLink();", "@Override\r\n\tpublic URLModule gotoPage(int ...
[ "0.6929574", "0.69027036", "0.6845198", "0.68268424", "0.6752006", "0.67273086", "0.67014635", "0.66133237", "0.6518385", "0.6510634", "0.6503866", "0.6487002", "0.64208937", "0.6372822", "0.63601565", "0.6346135", "0.6310794", "0.6263759", "0.6253149", "0.62277627", "0.62247...
0.0
-1
TODO Autogenerated method stub
public List<Topic> getAllTopics() { return topics; }
{ "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
topics is a List which is converted to stream Then filter is applied to get the id that matches first with passed argumet 'id' & fetched via get(). > is lambda expression ( efficient way of searching).
public Topic getTopic(String id) { return topics.stream().filter(t -> t.getId().equals(id)).findFirst().get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserTopic selectByPrimaryKey(Integer id);", "@GetMapping(\"/topic/{id}\") // se captura lo que se pone entre llaves\n\tpublic Topic getTopicById(@PathVariable int id) {\n\t\treturn topicService.getTopicById(id);\n\t}", "@Override\r\n\tpublic TopicContent findById(Serializable id) {\n\t\treturn topicContentDao....
[ "0.62007636", "0.59779257", "0.5915415", "0.5851312", "0.58450294", "0.58398354", "0.58398354", "0.57474846", "0.5730356", "0.57254374", "0.5710869", "0.56193763", "0.5604505", "0.5566779", "0.5559936", "0.5542921", "0.5483361", "0.5366984", "0.5361383", "0.5360188", "0.53157...
0.6525271
0
TODO Autogenerated method stub
public void putTopic(Topic topic) { topics.add(topic) ; }
{ "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
Test of values method, of class ReviewState.
@Test public void testValues() { System.out.println("values"); ReviewState[] expResult = {ReviewState.PENDING, ReviewState.FINISHED}; ReviewState[] result = ReviewState.values(); assertTrue(Arrays.equals(expResult, result)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testValueOf() {\n System.out.println(\"valueOf\");\n String name = \"PENDING\";\n ReviewState expResult = ReviewState.PENDING;\n ReviewState result = ReviewState.valueOf(name);\n assertEquals(expResult, result);\n name = \"FINISHED\";\n expRes...
[ "0.62675357", "0.59805316", "0.59445715", "0.5939004", "0.5899693", "0.57641447", "0.57296795", "0.5633476", "0.56070995", "0.5602328", "0.5560461", "0.5550297", "0.5535156", "0.55215293", "0.5514626", "0.54544634", "0.54367644", "0.54367644", "0.54367644", "0.5415088", "0.53...
0.78233474
0
Test of valueOf method, of class ReviewState.
@Test public void testValueOf() { System.out.println("valueOf"); String name = "PENDING"; ReviewState expResult = ReviewState.PENDING; ReviewState result = ReviewState.valueOf(name); assertEquals(expResult, result); name = "FINISHED"; expResult = ReviewState.F...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testToString() {\n System.out.println(\"toString\");\n String expResult = \"Pendente\";\n String result = ReviewState.PENDING.toString();\n assertEquals(expResult, result);\n expResult = \"Terminada\";\n result = ReviewState.FINISHED.toString();\n ...
[ "0.65378225", "0.6195227", "0.61394733", "0.60852385", "0.60852385", "0.60852385", "0.5902305", "0.5852287", "0.5760242", "0.5741685", "0.5677155", "0.5659446", "0.56458116", "0.56458116", "0.56458116", "0.5645", "0.56371146", "0.5619774", "0.5619774", "0.5619774", "0.5619774...
0.8254247
0
Test of toString method, of class ReviewState.
@Test public void testToString() { System.out.println("toString"); String expResult = "Pendente"; String result = ReviewState.PENDING.toString(); assertEquals(expResult, result); expResult = "Terminada"; result = ReviewState.FINISHED.toString(); assertEquals(e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String toString()\n {\n return state.toString();\n }", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn state.toString();\r\n\t}", "public String getStateString()\n {\n return stateString;\n }", "java.lang.String getState();", "public String toString...
[ "0.6837195", "0.68166536", "0.63779473", "0.63554186", "0.6330065", "0.6325087", "0.63229066", "0.628269", "0.6280483", "0.62548757", "0.6219168", "0.61984867", "0.61790997", "0.6160471", "0.6128439", "0.6128336", "0.6125188", "0.61172664", "0.6102553", "0.61008584", "0.60844...
0.82260233
0
funcao recursiva que particiona e ordena o vetor
private static void quickDecrescente( int[ ] v , int inicio , int fim ) { int aux, down, up, pivo, i; // determinar qual valor sera o pivo do particionamento do vetor pivo = v[ inicio ]; down = inicio; up = fim; while( down < up ) { whi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void extendPath(Grafo g, List<Integer> caminho) {\n Integer next = null;\n for (Integer v : caminho) {\n if (g.estaConectado(v, caminho.get(caminho.size() - 1))) { //Vi\n int index = caminho.indexOf(v); //Vi+1\n int unvisited, maxEta = 0;\n ...
[ "0.61941886", "0.6010248", "0.596308", "0.5811993", "0.57908446", "0.5786544", "0.57712114", "0.57366705", "0.57160133", "0.5709672", "0.5641861", "0.56194305", "0.55784714", "0.55451703", "0.5536886", "0.55244684", "0.54963416", "0.54926354", "0.5475411", "0.54671526", "0.54...
0.5846996
3
funcao recursiva que particiona e ordena o vetor
private static void quickCrescente( int[ ] v , int inicio , int fim ) { int aux, down, up, pivo, i; // determinar qual valor sera o pivo do particionamento do vetor pivo = v[ inicio ]; down = inicio; up = fim; while( down < up ) { while...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void extendPath(Grafo g, List<Integer> caminho) {\n Integer next = null;\n for (Integer v : caminho) {\n if (g.estaConectado(v, caminho.get(caminho.size() - 1))) { //Vi\n int index = caminho.indexOf(v); //Vi+1\n int unvisited, maxEta = 0;\n ...
[ "0.61936516", "0.60124797", "0.59655374", "0.5846534", "0.580988", "0.5794453", "0.57690585", "0.5739529", "0.5717465", "0.57102996", "0.56445706", "0.5620698", "0.5578039", "0.5541549", "0.5539068", "0.55243146", "0.5498197", "0.5494103", "0.5473808", "0.5465521", "0.5414829...
0.5786491
6
/ A student can get and set their id as well as generate their answers to a question, given a string of options and whether or not the question is MC or SC.
public interface IStudent { public String getId(); public void setId(String i); public List<Integer> generateAnswers(List<String> options, boolean multi); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSingleChoices() {\r\n Random randomGenerator = new Random();\r\n int singleAnswer = randomGenerator.nextInt(4);\r\n studentAnswer.add(singleAnswer); }", "public abstract String promptSelectionFromAnswers(final String question, final List<String> answers) throws JVMIOExcept...
[ "0.62750334", "0.5961571", "0.59058887", "0.5896361", "0.5760636", "0.5759492", "0.5752546", "0.5742335", "0.571526", "0.5714647", "0.57080877", "0.5626595", "0.5616708", "0.5613145", "0.55826706", "0.5578646", "0.5561509", "0.5558452", "0.5553965", "0.5548481", "0.5539", "...
0.6028801
1
Constructor creates an instance to be used for fill operations.
Type5ShadingContext(PDShadingType5 shading, ColorModel cm, AffineTransform xform, Matrix matrix, Rectangle deviceBounds) throws IOException { super(shading, cm, xform, matrix); LOG.debug("Type5ShadingContext"); setTriangleList(collectTriangles(shading, xform,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Fill() { }", "public FillDate() {\n }", "public DataSet() {\n labels = new HashMap<>();\n locations = new HashMap<>();\n counter= new AtomicInteger(0);\n }", "public XL() {\n Reporter.log(\"New XL ctor\", true);\n }", "public Stack() {\r\n this(20);\r\n ...
[ "0.6984276", "0.5987963", "0.59243804", "0.5921409", "0.58962524", "0.5873488", "0.5869387", "0.5836736", "0.5802117", "0.57867026", "0.5777277", "0.57633406", "0.5762792", "0.57375526", "0.57242656", "0.57242656", "0.57197356", "0.57020587", "0.5693396", "0.5689907", "0.5688...
0.0
-1
WebDriverWait wait = new WebDriverWait(driver, 10); wait.until(ExpectedConditions.elementToBeClickable(regSearch));
public void search(String plateNumber) { regSearch.sendKeys(plateNumber); btnContinue.click(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setWaitSelenium() throws InterruptedException {\n WebDriverManager.chromedriver().setup();\n WebDriver driver = new ChromeDriver();\n driver.get(\"https://google.com\");\n\n WebElement input = driver.findElement(By.xpath(\"//input[@name=\\\"q\\\"]\"));\n input....
[ "0.7491771", "0.7258762", "0.71828693", "0.71279705", "0.70871633", "0.70541275", "0.70013624", "0.6963946", "0.693628", "0.6892744", "0.6873637", "0.685801", "0.68000436", "0.67727304", "0.6772009", "0.67667043", "0.67470706", "0.67241704", "0.6720532", "0.67154944", "0.6695...
0.0
-1
stop if not rendered
public void process(FacesContext faces, PhaseId phase) { if (!isRendered()) return; // validate attributes _validateAttributes(); // clear datamodel _resetDataModel(); // reset index _captureOrigValue(); _setInde...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void render() {\n if (renderInterrupted) {\n log.debug(\"render()\");\n renderInterrupted = false;\n }\n\n }", "public void render() {\n\t\t// do nothing... as we should\n\t}", "@Override\n public boolean isToBeRendered()\n {\n return tr...
[ "0.68499184", "0.646098", "0.64540404", "0.64429414", "0.62296057", "0.61776507", "0.6158329", "0.6158329", "0.6158329", "0.6158329", "0.6158329", "0.6158329", "0.6158329", "0.6158329", "0.6158329", "0.6158329", "0.6158329", "0.6158329", "0.6158329", "0.6158329", "0.6158329",...
0.0
-1
call this to create a new eatery by reading in the filepath
public ArrayList<Dish> ReadInEatery(String filepath, String name) { _dishes = new ArrayList<Dish>(); try{ int sucess = readMeals(name, filepath); if (sucess == -1) { JOptionPane.showMessageDialog(null, "Failure to find, create, or parse text file of nutrition info...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Data() throws IOException {\n // Initialise new default path from scratch\n path = Path.of(\"src/main/data/duke.txt\");\n new File(\"src/main/data\").mkdirs();\n new File(path.toString()).createNewFile();\n }", "public Data(String path) throws IOException {\n this.path = Pat...
[ "0.58917326", "0.58761835", "0.58246636", "0.5764867", "0.5682264", "0.56766677", "0.5658317", "0.5629735", "0.560833", "0.5608131", "0.56048703", "0.5559633", "0.5557066", "0.5555745", "0.55530655", "0.55518967", "0.5531576", "0.5520782", "0.5481159", "0.54761004", "0.547064...
0.5736729
4
called by neweatery to parse a text file
@SuppressWarnings("deprecation") private int readMeals(String eateryname, String filePath) { Dish curdish; Meal curmeal = null; Calendar curdate = Calendar.getInstance(); curdate.set(0, 0, 0); // Initialize date to 0. boolean newdate = false; boolean nutrerror = false...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String parse(File file);", "public void parse(String filename);", "protected abstract void parseFile(File f) throws IOException;", "public void parse(String fileName) throws Exception;", "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tparseFile(\"english_file.txt\");\r\n\t\t\t\t}", "private S...
[ "0.74240863", "0.7360559", "0.7301968", "0.7275342", "0.6990775", "0.6892991", "0.68272614", "0.67858595", "0.6751431", "0.66272", "0.6609371", "0.65920013", "0.65734047", "0.65694505", "0.6515939", "0.6493148", "0.64924335", "0.6464106", "0.63721174", "0.63593614", "0.634415...
0.0
-1
Coerce to "null" if null.
public void append(String toAppend) { if (toAppend == null) { toAppend = "null"; } int appendLength = toAppend.length(); if (appendLength > 0) { stringArray[arrayLen++] = toAppend; stringLength += appendLength; /* * If we hit 1k elements, let's do a join to reduce the arra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T getNullRepresentation();", "protected abstract Object convertNonNull(Object o);", "public static String formatNull() {\n\t\treturn \"null\";\n\t}", "public static String nullConv(String value){\r\n\t\tif(value==null){\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "String getDefaultNull();"...
[ "0.6956343", "0.6892623", "0.68070745", "0.67583704", "0.6676108", "0.66310763", "0.66174376", "0.65642035", "0.652197", "0.6456118", "0.6354277", "0.6335654", "0.62983865", "0.6251683", "0.6245123", "0.62242544", "0.6099665", "0.6072607", "0.6069041", "0.60574776", "0.605747...
0.0
-1
Get the joined string.
public void replace(int start, int end, String toInsert) { String s = toString(); // Build a new buffer in pieces (will throw exceptions). stringArray = new String[] { s.substring(0, start), toInsert, s.substring(end)}; arrayLen = 3; // Calculate the new string length. stringLength += ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String join() {\n\t\t// A stringbuilder is an efficient way to create a new string in Java, since += makes copies.\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (Node<T> current = start; current != null; current = current.next) {\n\t\t\tif (current != start) {\n\t\t\t\tsb.append(' ');\n\t\t\t}\n\t\t...
[ "0.6975277", "0.6846796", "0.6440159", "0.63072824", "0.6242049", "0.61099505", "0.60707974", "0.60654557", "0.60541", "0.60329366", "0.5993613", "0.5928717", "0.58992916", "0.5871011", "0.5811683", "0.57863253", "0.5770443", "0.5760734", "0.57541203", "0.5739219", "0.5732675...
0.0
-1
/ Normalize the array to exactly one element (even if it's completely empty), so we can unconditionally grab the first element.
@Override public String toString() { if (arrayLen != 1) { setLength(stringArray, arrayLen); String s = join(stringArray); // Create a new array to allow everything to get GC'd. stringArray = new String[] {s}; arrayLen = 1; } return stringArray[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public U getFirst(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls get\r\n\t \treturn get(0);\r\n\t }", "@Nullable\n public T firstOrNull() {\n return Query.firstOrNull(iterable);\n }", "@Override\n public Persona First() {\n ...
[ "0.6791994", "0.6496228", "0.63032794", "0.626048", "0.6188306", "0.61882573", "0.61707264", "0.61707264", "0.60777", "0.6049677", "0.5952235", "0.59459645", "0.59239584", "0.5851419", "0.5805691", "0.5794287", "0.5776634", "0.576834", "0.5759543", "0.5706683", "0.56825477", ...
0.0
-1
Assemble from command line
public static void main(String argv[]) throws UnsupportedEncodingException, ExecutionException, FileNotFoundException { // Check arguments if(argv.length <= 0) { System.err.println("Usage: <filename>"); return; } // Start the machine Main.traceStream = System.out; Machine....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setup(CommandLine cmd);", "void main(CommandLine cmd);", "public static void main(String[] args) {\n\t\t\n\t\tnew MyAssembler();\n\n\t}", "public static void main(String[] args) {\r\n\r\n\t\tif (args.length == 0) {\r\n\t\t\tlog.error(\"Specification and assembly filenames not given.\");\r\n\t\t\tSystem....
[ "0.68048984", "0.66685486", "0.6645993", "0.6437172", "0.62235206", "0.6184132", "0.61826485", "0.61690927", "0.61608225", "0.6124719", "0.61085486", "0.6103812", "0.608016", "0.60472476", "0.60407263", "0.6039012", "0.6031797", "0.60199565", "0.6015112", "0.6009849", "0.6007...
0.0
-1
Assembler life cycle Instantiate an assembler
public Assembler() { // Instantiate internals instructionMap = new HashMap<String, Method>(); instructionSpec = new HashMap<String, Processor>(); codeSectionList = new LinkedList<Section>(); // Regular expressions patternInstruction = Pattern.compile("\\s*...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Codegen() {\n assembler = new LinkedList<LlvmInstruction>();\n symTab = new SymTab();\n }", "void getAssembled(TmxElementAssembler assembler) throws TmxInvalidAssembly;", "public void assemble1() {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tnew MyAssembler();\...
[ "0.64915353", "0.6183013", "0.61332035", "0.6021324", "0.60015047", "0.5941969", "0.56514406", "0.556181", "0.5503795", "0.5492456", "0.5461027", "0.5422342", "0.53907865", "0.5371258", "0.5310299", "0.5276279", "0.52654094", "0.524604", "0.5198952", "0.5180886", "0.5161781",...
0.70998275
0
Assemble an IR program
public void Assemble(InputStream input) throws InvalidInstructionException, LabelNotResolvedException, ProgramSizeException { // Reset internal state codeSection = null; codeSectionList.clear(); codeLine = 0; codeInstruction = new String(); Emitter emitter = new Emi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Program createProgram();", "Program createProgram();", "Program createProgram();", "RoverProgram createRoverProgram();", "public Codegen() {\n assembler = new LinkedList<LlvmInstruction>();\n symTab = new SymTab();\n }", "public static void main(String[] args) {\n String filePath=...
[ "0.6587498", "0.6587498", "0.6587498", "0.6207523", "0.6105852", "0.607318", "0.5978887", "0.5970015", "0.59157723", "0.59112394", "0.5906302", "0.5861107", "0.5853755", "0.5784803", "0.57667273", "0.5729638", "0.5723397", "0.570497", "0.56625396", "0.5655023", "0.5646752", ...
0.58306277
13
Method which is called when screen is shown. In this method create references to variables.
@Override public void show() { stage = new Stage(new FitViewport(game.SCREEN_WIDTH, game.SCREEN_HEIGHT), batch); Gdx.input.setInputProcessor(stage); background = game.getAssetManager().get("startscreen.png"); bgViewPort = new StretchViewport(game.SCREEN_WIDTH, game.SCREEN_HEIGHT); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initializeVariables() {\n\t\ttvTimeShow= (TextView) findViewById(R.id.tvTimeTracker);\r\n\t}", "private void setupVariables() {\n mCalendarView = findViewById(R.id.calendarView);\n mTextView = findViewById(R.id.eventsView);\n }", "private void instantiateVariables() {\n pai...
[ "0.68283844", "0.6745601", "0.66995275", "0.6438328", "0.6406116", "0.6385672", "0.63040125", "0.62366927", "0.62267566", "0.6157283", "0.6134231", "0.61210394", "0.6120638", "0.60762846", "0.6061752", "0.6058773", "0.6038489", "0.60357726", "0.60294974", "0.6019124", "0.6017...
0.5759694
75
Method which is called everytime frame is rendered.
@Override public void render(float delta) { Gdx.gl.glClearColor(0.8f, 0.3f, 0.3f, 1); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); bgViewPort.apply(); batch.setProjectionMatrix(bgViewPort.getCamera().combined); batch.begin(); batch.draw(background,0,0); batch.en...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void calledDuringRender() {\n calledEveryFrame();\n numFrames++;\n }", "@Override\n\tpublic void render(float deltaTime) {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\trenderer.render(this);\n\t}", "@Override\n\tpublic void render(float delta) {\n\t}", "@Override\n\tpu...
[ "0.8119881", "0.76139265", "0.73948514", "0.7322849", "0.72662413", "0.7247137", "0.7234647", "0.71363527", "0.7130017", "0.7062893", "0.70519274", "0.70474476", "0.7047021", "0.7006388", "0.7003277", "0.69944763", "0.69929904", "0.6988686", "0.69284266", "0.6910669", "0.6910...
0.0
-1
Method that is called when screen is resized. Updates different viewports.
@Override public void resize(int width, int height) { bgViewPort.update(width, height, true); stage.getViewport().update(width, height, true); fonts.getFontViewport().update(width, height, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void resize(int width, int height) {game.screenPort.update(width, height, true);}", "public void recalculateViewport() {\r\n glViewport(0, 0, getWidth(), getHeight());\r\n spriteBatch.recalculateViewport(getWidth(), getHeight());\r\n EventManager.getEventManager().fireEvent(n...
[ "0.7627644", "0.73961073", "0.7387031", "0.71581143", "0.7140582", "0.70831245", "0.7049036", "0.7049036", "0.6946706", "0.6913368", "0.6900084", "0.6896235", "0.6879421", "0.6841104", "0.6798062", "0.6797122", "0.67622495", "0.67509437", "0.6729779", "0.6728399", "0.6715755"...
0.6881677
12
Method that is called when game is paused.
@Override public void pause() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void pause() {\n Gdx.app.log(TAG, \"Paused\");\n }", "@Override\n\tpublic void pause() \n\t{\n\t\tif (state_Game==GAME_READY) \n\t\t{\n\t\t\tstate_Game=GAME_PAUSED;\n\t\t}\n\t}", "public void onPause () {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\tGdx.app.log(\"Game...
[ "0.81089675", "0.8088588", "0.79547346", "0.7920894", "0.7873194", "0.7869518", "0.7869518", "0.7869518", "0.7869518", "0.78513473", "0.7840865", "0.78339684", "0.7811039", "0.7800286", "0.77865803", "0.7757436", "0.7757436", "0.77521867", "0.77521867", "0.77521867", "0.77490...
0.0
-1
Method that is called when game is resumed.
@Override public void resume() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void resume() {\n\t\tGdx.app.log(\"GameScreen\", \"Resumed\");\n\n\t}", "@Override\n public void resume() {\n Gdx.app.log(TAG, \"Resumed\");\n }", "@Override\n\tpublic void resume() {\n\t\tGdx.app.log(\"GameScreen\", \"resume called\"); \n\t}", "public void resume() {\r\n\t\...
[ "0.8089238", "0.8042653", "0.78766143", "0.7807589", "0.7724126", "0.7644304", "0.75973094", "0.7594377", "0.7594377", "0.7587533", "0.751305", "0.751305", "0.74801105", "0.74792534", "0.7460266", "0.74180436", "0.7405952", "0.73826176", "0.7341589", "0.73400563", "0.7331686"...
0.722792
33
Method that is called when game is hidden.
@Override public void hide() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void hide() {\n\t\tGdx.app.log(\"GameScreen\", \"Hidden\");\n\n\t}", "@Override\n\tpublic void hide() {\n\t\tGdx.app.log(\"GameScreen\", \"hide called\"); \n\t}", "@Override\n public void hide() {\n if (!unit.player.isPlayerDead) {\n MyPreference.setIsNewGame(false)...
[ "0.81285465", "0.8073981", "0.79528683", "0.76339144", "0.75606865", "0.74141926", "0.74141926", "0.7393891", "0.73494714", "0.73399025", "0.73397225", "0.72095317", "0.7178108", "0.717414", "0.71399826", "0.7124446", "0.7006094", "0.6961025", "0.695165", "0.69308305", "0.690...
0.67560285
82
Creates the 3 buttons for the different screens depending on language.
private void createButtons() { Texture playButtonIdle, playButtonPressed,settingsButtonIdle, settingsButtonPressed, creditsButtonIdle, creditsButtonPressed; if(game.getLocale().getCountry().equals("FI")){ playButtonIdle = game.getAssetManager().get("BUTTONS/button_startgame_FIN.png"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createButtons() {\n Button helpSettingsButton = new Button(\"\",\n new Button.ClickListener() {\n private static final long serialVersionUID = -5797923866320649518L;\n\n @Override\n public void buttonClick(ClickEvent event)...
[ "0.7127082", "0.6809236", "0.6636714", "0.6547147", "0.65340114", "0.6533947", "0.6454493", "0.6412833", "0.64065814", "0.63081443", "0.6305244", "0.6280925", "0.6278932", "0.62766224", "0.6276056", "0.62747", "0.6269717", "0.6227492", "0.62160325", "0.6209564", "0.6195049", ...
0.67839336
2
This method is called whenever the actor is clicked. We override its behavior here.
@Override public void changed(ChangeEvent event, Actor actor) { game.setScreen(gameScreen); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void clicked(InputEvent e, float x, float y) {\n }", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void mous...
[ "0.7696312", "0.7491921", "0.74882025", "0.7486997", "0.74793345", "0.74793345", "0.74793345", "0.7479283", "0.74791086", "0.74791086", "0.74791086", "0.7463329", "0.7463329", "0.7451242", "0.7450544", "0.74392396", "0.74392396", "0.74392396", "0.74392396", "0.74392396", "0.7...
0.0
-1
This method is called whenever the actor is clicked. We override its behavior here.
@Override public void changed(ChangeEvent event, Actor actor) { game.setScreen(new OptionsScreen(game)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void clicked(InputEvent e, float x, float y) {\n }", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void mous...
[ "0.7696756", "0.7493547", "0.7489404", "0.7488501", "0.7480897", "0.7480897", "0.7480897", "0.74807304", "0.74803346", "0.74803346", "0.74803346", "0.7464473", "0.7464473", "0.7452655", "0.7451625", "0.7440261", "0.7440261", "0.7440261", "0.7440261", "0.7440261", "0.7440261",...
0.0
-1
This method is called whenever the actor is clicked. We override its behavior here.
@Override public void changed(ChangeEvent event, Actor actor) { game.setScreen(new CreditsScreen(game)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void clicked(InputEvent e, float x, float y) {\n }", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void mous...
[ "0.7696756", "0.7493547", "0.7489404", "0.7488501", "0.7480897", "0.7480897", "0.7480897", "0.74807304", "0.74803346", "0.74803346", "0.74803346", "0.7464473", "0.7464473", "0.7452655", "0.7451625", "0.7440261", "0.7440261", "0.7440261", "0.7440261", "0.7440261", "0.7440261",...
0.0
-1
Created by yangchangpei on 17/8/17.
public interface TokenGenerator { String generate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@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.6046005", "0.59302473", "0.58801484", "0.5856419", "0.58373004", "0.58373004", "0.58288395", "0.5782431", "0.57558334", "0.5754118", "0.57401794", "0.5713094", "0.5696978", "0.56696063", "0.5663715", "0.5654007", "0.56471103", "0.5640112", "0.5640112", "0.5640112", "0.5640...
0.0
-1
TODO Autogenerated method stub
@Override public UserGuidePic getNextUserGuide(Integer sort) { return null; }
{ "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
Returns the "from" document type. This is the type of the reference origin documents.
public int getFromDocType () { return this.fromDocType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFromDocType (int fromDocType)\n {\n this.fromDocType = fromDocType;\n }", "public Report.LocationOuterClass.Location.FromType getFrom() {\n Report.LocationOuterClass.Location.FromType result = Report.LocationOuterClass.Location.FromType.valueOf(from_);\n return result == null ? Repo...
[ "0.7226429", "0.6966787", "0.6947135", "0.6157876", "0.6144275", "0.60664624", "0.6052351", "0.6006924", "0.6000508", "0.59970534", "0.5979585", "0.5891465", "0.58766216", "0.58456945", "0.5779711", "0.5748308", "0.57248145", "0.57097113", "0.5685217", "0.5668222", "0.5638705...
0.7364767
1
Returns the "to" document type. This is the type of the reference target documents.
public int getToDocType () { return this.toDocType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDocumentType();", "public int getFromDocType ()\n {\n return this.fromDocType;\n }", "public int getFromDocType ()\n {\n return this.fromDocType;\n }", "public int getC_DocTypeTarget_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_DocTypeTarget_ID\");\n\t\tif (ii == null)\n\t\t\tr...
[ "0.60489", "0.60124147", "0.60124147", "0.5935581", "0.5912342", "0.5907163", "0.5907163", "0.5907163", "0.5907163", "0.5890251", "0.58883524", "0.58706695", "0.5863439", "0.5851106", "0.583855", "0.5831635", "0.57371974", "0.5626494", "0.5615692", "0.5597899", "0.55912316", ...
0.78365195
0
Returns true if the specified object is a RefDocTypePair with the same "from" resp. "to" document types as this one.
public boolean equals (Object object) { return ( object instanceof RefDocTypePair && ((RefDocTypePair)object).getFromDocType() == this.fromDocType && ((RefDocTypePair)object).getToDocType() == this.toDocType ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public boolean equals(Object obj) {\r\n\r\n if (obj instanceof DocumentPair) {\r\n DocumentPair other = (DocumentPair) obj;\r\n return ((this.doc1.equals(other.doc1) && this.doc2.equals(other.doc2))\r\n || (this.doc1.equals(other.doc2) && (this.doc2....
[ "0.6255016", "0.57614815", "0.5594353", "0.5472977", "0.54122293", "0.5399939", "0.53886944", "0.53487396", "0.52755135", "0.5217308", "0.50426805", "0.5037945", "0.50210726", "0.50138927", "0.5005086", "0.50009483", "0.4996519", "0.4981284", "0.49624687", "0.49370548", "0.49...
0.8602367
0
Returns a string representation of this RefDocTypePair.
public String toString () { return "RefDocTypePair(" + this.fromDocType + "," + this.toDocType + ")"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n return type.toString();\n }", "@Override\n public String toString() {\n return value + symbol(this.type);\n }", "public String toString() {\n return type;\n }", "public String toString() {\n StringBuffer sb = new StringBuffer();\n for (int i...
[ "0.6493406", "0.63671595", "0.61631715", "0.6129309", "0.61027426", "0.6100264", "0.60799354", "0.6064386", "0.60079557", "0.5965399", "0.59430724", "0.5917526", "0.5844787", "0.5844787", "0.5838492", "0.5828963", "0.5826101", "0.5787314", "0.57740784", "0.57315475", "0.57281...
0.82367337
0
Creates a new RefDocTypePair with the specified "from" and "to" document types.
public RefDocTypePair (int fromDocType, int toDocType) { this.fromDocType = fromDocType; this.toDocType = toDocType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString ()\n {\n return \"RefDocTypePair(\" + this.fromDocType + \",\" + this.toDocType + \")\";\n }", "public void setFromDocType (int fromDocType)\n {\n this.fromDocType = fromDocType;\n }", "public boolean equals (Object object)\n {\n return\n ( object instanceof RefDocType...
[ "0.64151454", "0.52884185", "0.491656", "0.44607627", "0.4386548", "0.43758443", "0.43655875", "0.43343174", "0.43293265", "0.43239814", "0.43168235", "0.43075868", "0.42531592", "0.42077184", "0.4197882", "0.41959998", "0.41858172", "0.41454047", "0.41182533", "0.41138637", ...
0.8358998
0
/This API will return map which contains different property values to provided objects, if both objects are same interms their property than it will return empty map
public static Map<String, Map<Object, Object>> getDiffirentComparisionVal(Device d1, Device d2) throws IllegalArgumentException, IllegalAccessException { //Node root = ObjectDifferBuilder.buildDefault().compare(d1, d2); //To get Device one property Map <Object, Object> device1Fields = getFields(d1); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Map<String, String> syncAttributes(Map<String, String> first, Map<String, String> second){\n Map<String, String> synced = new HashMap<>();\n\n for(String firstKey : first.keySet()){\n if(second.containsKey(firstKey)){\n //both contain the same key -> take from...
[ "0.62315947", "0.5668834", "0.54142934", "0.5403795", "0.53386366", "0.5333585", "0.5298511", "0.5281656", "0.5249287", "0.5244207", "0.5215717", "0.5212884", "0.5198907", "0.51979554", "0.5173123", "0.5131027", "0.51100147", "0.5088761", "0.5084309", "0.50825816", "0.5069855...
0.53400224
4
/ API to get all fields to provided to invoke
private static Map<Object, Object> getFields(Device d1) { Class<? extends Device> deviceClass = d1.getClass(); Field[] fields = deviceClass.getDeclaredFields(); //Map to get property details to provided class Map<Object,Object> mapFields = new HashMap<>(); Arrays.stream(fields) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getFields();", "Fields fields();", "public List<String> showFields() {\n Client client = new Client();\n Class<?> objFields = client.getClass();\n List<String> list = new ArrayList<>();\n for (Field field : objFields.getDeclaredFields()) {\n list.add(fiel...
[ "0.7085161", "0.6705134", "0.6337075", "0.6232433", "0.61806756", "0.6118754", "0.6085344", "0.6085344", "0.60588485", "0.6052169", "0.5975934", "0.5973035", "0.5958238", "0.59454864", "0.5928186", "0.59176093", "0.5916587", "0.5909281", "0.59003824", "0.5899078", "0.58929735...
0.0
-1
Reset prior to next transform
@Override public void transform(CtExecutable method) { reset(); // Get setup for renaming setDefs(getChildrenOfType(method, CtLocalVariable.class)); setSubtokens(topTargetSubtokens); // Select some percentage of things to rename takePercentage(R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetTransform() {\n this.mView.setScaleX(1.0f);\n this.mView.setScaleY(1.0f);\n this.mView.setTranslationX(0.0f);\n this.mView.setTranslationY(0.0f);\n }", "private void reset() throws TransformerException {\n if (firstRun) {\n fir...
[ "0.73857063", "0.71153814", "0.71035504", "0.69421476", "0.6925128", "0.68917394", "0.6869222", "0.68473047", "0.68443567", "0.67890507", "0.6763889", "0.67629087", "0.67135966", "0.6709979", "0.6709828", "0.6706579", "0.6692436", "0.6687838", "0.6682195", "0.6678796", "0.666...
0.0
-1
Add the given listener to the list of listeners that will receive notification when new analysis results become available.
public void addAnalysisServerListener(AnalysisServerListener listener);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addListener(\n IListener listener\n )\n {listeners.add(listener);}", "public void addListener(Listener listener) {\n m_listeners.add(listener);\n }", "public void addListener(@NotNull ReceiverListener listener) {\n myListeners.add(listener);\n }", "static //@Override\n\tpublic vo...
[ "0.7401766", "0.73755157", "0.70935124", "0.708499", "0.7065984", "0.6974851", "0.69687635", "0.6924405", "0.69134957", "0.68875694", "0.6872939", "0.6854193", "0.68477225", "0.68084997", "0.6778137", "0.67492104", "0.6747239", "0.6746791", "0.67270833", "0.67069954", "0.6694...
0.709532
2
Delete the refactoring with the given id. Future attempts to use the refactoring id will result in an error being returned.
public void deleteRefactoring(String refactoringId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int delete(String id) {\n\treturn projectmapper.delete(id);\n}", "@Override\n\tpublic void deleteById(Integer id) {\n\t\tfacturaRepository.deleteById(id);\n\t\t\n\t}", "public void delete(Long id) {\n log.debug(\"Request to delete Chocolate : {}\", id);\n chocolateRepository.deleteById(id)...
[ "0.651414", "0.6216701", "0.6202856", "0.6184521", "0.6178757", "0.6178643", "0.61768985", "0.6163505", "0.61586666", "0.6141616", "0.6130887", "0.6129712", "0.6101032", "0.60761666", "0.60220635", "0.60169834", "0.6006094", "0.6006094", "0.6006094", "0.6006094", "0.6006094",...
0.83060175
0
Computes the set of assits that are available at the given location. An assist is distinguished from a refactoring primarily by the fact that it affects a single file and does not require user input in order to be performed. The given consumer is invoked asynchronously on a different thread.
public void getAssists(String file, int offset, int length, AssistsConsumer consumer);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<ICompletionProposal> computeCompletionProposals(ContentAssistInvocationContext context, IProgressMonitor monitor) {\n\t\treturn Arrays.asList(assistant.computeCompletionProposals(context.getViewer(), context.getInvocationOffset()));\n\t}", "private ICompletionProposal[] getCompletionProp...
[ "0.4905232", "0.47502634", "0.47206274", "0.46424556", "0.46196127", "0.44204685", "0.439912", "0.43951175", "0.42811966", "0.42506543", "0.42154276", "0.41877866", "0.4152129", "0.41498557", "0.41488087", "0.41378918", "0.41362676", "0.40946135", "0.406641", "0.40605044", "0...
0.5909849
0
Computes a set of fixes that are available for the given list of errors. The given consumer is invoked asynchronously on a different thread.
public void getFixes(List<AnalysisError> errors, FixesConsumer consumer);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Future<String> processHosts(List<String> input) {\n\t List<Future<String>> futures =\n\t \tinput.stream()\n\t .map(str -> supplyAsync(() -> callApi(str)))\n\t .collect(toList());\n\n\t // Restructure as varargs because that's what CompletableFuture.allOf requires.\n\t CompletableF...
[ "0.46407783", "0.44948226", "0.44023353", "0.4400814", "0.43839857", "0.43812847", "0.43678", "0.43585902", "0.4355524", "0.4349368", "0.4334714", "0.43129247", "0.43119806", "0.43090692", "0.42636612", "0.426215", "0.4261641", "0.42418832", "0.4239385", "0.42342824", "0.4231...
0.7591465
0
Computes the hover text to be displayed at the given location. The given consumer is invoked asynchronously on a different thread.
public void getHover(String file, int offset, HoverConsumer consumer);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayHover() {\n if (textColour == null) {\r\n displayEmptyHover();\r\n return;\r\n }\r\n stroke(0, 0, 0);\r\n strokeWeight(strokeWeight);\r\n hoverFill(boxColour);\r\n if (strokeWeight != 0 && text != nul...
[ "0.5746241", "0.5328362", "0.50298285", "0.49277246", "0.4857585", "0.4719501", "0.4691163", "0.4635018", "0.46259955", "0.45498475", "0.45283994", "0.44935808", "0.44882795", "0.4459333", "0.4428981", "0.44167584", "0.439144", "0.4381031", "0.43779996", "0.43726936", "0.4348...
0.58500636
0
Return the version number of the analysis server.
public void getVersion(VersionConsumer consumer);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServerVersion();", "public Long getServerVersion() {\n\t\treturn serverVersion;\n\t}", "public String getServerVersion() throws IOException {\n\t\treturn Core.getServerVersion(getHttpMethodExecutor());\n\t}", "@GetMapping()\n public String getServerVersion() {\n return versionPrope...
[ "0.8057583", "0.7872356", "0.75915563", "0.7464723", "0.73173606", "0.7233867", "0.723208", "0.7202536", "0.7202536", "0.7099567", "0.7090782", "0.7090782", "0.7090782", "0.7090782", "0.7090782", "0.70727044", "0.70727044", "0.7069294", "0.70591617", "0.70574915", "0.70559466...
0.0
-1
Remove the given listener from the list of listeners that will receive notification when new analysis results become available.
public void removeAnalysisServerListener(AnalysisServerListener listener);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeListener(RiakFutureListener<V,T> listener);", "@Override\n public void removeListener() {\n this.mListener = null;\n }", "public void removeListener(T listener);", "default void removeListener(Runnable listener) {\n\t\tthis.getItemListeners().remove(listener);\n\t}", "@Override\n ...
[ "0.77010864", "0.75822157", "0.7560366", "0.7558607", "0.74428666", "0.7440245", "0.7401411", "0.7400021", "0.7392057", "0.7378665", "0.7343231", "0.7326621", "0.73259944", "0.73165673", "0.7266201", "0.7254889", "0.72223914", "0.7208358", "0.72057956", "0.72009885", "0.71872...
0.75234836
4
Searches for declarations of class members with the given name. The given consumer is invoked asynchronously on a different thread.
public void searchClassMemberDeclarations(String name, SearchIdConsumer consumer);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void searchClassMemberReferences(String name, SearchIdConsumer consumer);", "private void\r\n findMemberType(@Nullable String name, Collection<IClass> result) throws CompileException {\n IClass[] memberTypes = this.getDeclaredIClasses();\r\n if (name == null) {\r\n result.addAl...
[ "0.7096554", "0.50843054", "0.50366586", "0.48764136", "0.48262504", "0.47705403", "0.47517523", "0.47299978", "0.4617511", "0.46082464", "0.45994157", "0.45530924", "0.4521071", "0.43467307", "0.42936614", "0.4264465", "0.42603046", "0.42453808", "0.4232241", "0.42291164", "...
0.8359497
0
Searches for resolved and unresolved references to class members with the given name. The given consumer is invoked asynchronously on a different thread.
public void searchClassMemberReferences(String name, SearchIdConsumer consumer);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void searchClassMemberDeclarations(String name, SearchIdConsumer consumer);", "private InjectionMetadata findReferenceMetadata(String beanName, Class<?> clazz, PropertyValues pvs) {\n String cacheKey = (StringUtils.hasLength(beanName) ? beanName : clazz.getName());\n // Quick check on the co...
[ "0.7325263", "0.51814127", "0.51262486", "0.4728892", "0.47040907", "0.47007918", "0.46759054", "0.46077457", "0.457918", "0.454777", "0.45155954", "0.44941297", "0.44601166", "0.44597733", "0.44487068", "0.43936393", "0.43905127", "0.4331471", "0.43185136", "0.4314611", "0.4...
0.76218194
0
Sets the root paths used to determine which files to analyze. The set of files to be analyzed are all of the files in one of the included paths that are not also in one of the excluded paths.
public void setAnalysisRoots(List<String> includedPaths, List<String> excludedPaths);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PublishFileSet(Path root) throws IOException {\n this.root = root;\n this.files = getFilesOnPath(root);\n }", "public void setIncludes( String[] includes )\n {\n if( includes == null )\n {\n this.includes = null;\n }\n else\n {\n this.incl...
[ "0.56471086", "0.5595827", "0.557366", "0.5524158", "0.55013585", "0.5475013", "0.54437745", "0.54117656", "0.5403667", "0.5352288", "0.5240845", "0.5149561", "0.5060944", "0.50592166", "0.4998405", "0.49978867", "0.49906364", "0.49680406", "0.49054635", "0.49022198", "0.4845...
0.775261
0
Subscribe for services. All previous subscriptions are replaced by the current set of subscriptions. If a given service is not included as a key in the map then no files will be subscribed to the service, exactly as if the service had been included in the map with an explicit empty list of files.
public void setAnalysisSubscriptions(Map<AnalysisService, List<String>> subscriptions);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<Service> getAllSubscribeService();", "public org.csapi.schema.parlayx.subscribe.manage.v1_0.local.SubscribeServiceResponse subscribeService(org.csapi.schema.parlayx.subscribe.manage.v1_0.local.SubscribeServiceRequest parameters) {\n throw new UnsupportedOperationException(\"Not implemented yet....
[ "0.5828175", "0.56448305", "0.5606402", "0.5596014", "0.5555236", "0.5366495", "0.51768774", "0.51740676", "0.51514673", "0.507749", "0.50310767", "0.5010239", "0.4930087", "0.49250036", "0.49113742", "0.49108115", "0.4910304", "0.48963666", "0.4875961", "0.48705798", "0.4842...
0.5879108
0
Set the priority files to the files in the given list. A priority file is a file that is given priority when scheduling which analysis work to do first. The list typically contains those files that are visible to the user and those for which analysis results will have the biggest impact on the user experience.
public void setPriorityFiles(List<String> files);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected int getFilePriority(File file) {\n \treturn 1;\n }", "public void setFileList(List<TbomFile> fileList) {\n\t\tthis.fileList = fileList;\n\t}", "private void prepareAssignmentFiles() {\n for (Assignment assignment : assignments) {\n //---------- initialize the assignmentFiles a...
[ "0.5758162", "0.5728478", "0.5462058", "0.5387079", "0.5374607", "0.5364375", "0.52637637", "0.5241768", "0.5241609", "0.52389693", "0.521938", "0.521938", "0.5181472", "0.5139982", "0.51387036", "0.5135572", "0.5123817", "0.51205415", "0.5118907", "0.5079301", "0.5060792", ...
0.82971287
0
Subscribe for server services. All previous subscriptions are replaced by the given set of subscriptions.
public void setServerSubscriptions(List<ServerService> subscriptions);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAnalysisSubscriptions(Map<AnalysisService, List<String>> subscriptions);", "public static void subscriptions() {\n\t\ttry {\n\t\t\tList<Subscription> subscriptions = PlatformClient\n\t\t\t\t\t.subscriptions(getUser());\n\t\t\trender(subscriptions);\n\t\t} catch (ApplicationException e) {\n\t\t\te....
[ "0.6481246", "0.63065296", "0.6033284", "0.59691936", "0.59622574", "0.5730013", "0.5678462", "0.55382925", "0.5503365", "0.5499725", "0.5469879", "0.5431415", "0.54079944", "0.53915477", "0.5357849", "0.5348792", "0.53166187", "0.52925164", "0.52689344", "0.52439505", "0.523...
0.7634685
0
Cleanly shutdown the analysis server.
public void shutdown();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shutdown() {\n try {\n infoServer.stop();\n } catch (Exception e) {\n }\n this.shouldRun = false;\n ((DataXceiveServer) this.dataXceiveServer.getRunnable()).kill();\n try {\n this.storage.closeAll();\n } catch (IOException ie) {\n ...
[ "0.7983289", "0.7666222", "0.7644618", "0.76388454", "0.7590721", "0.75519943", "0.7416188", "0.74047", "0.73602873", "0.7336059", "0.73101985", "0.7307749", "0.73021966", "0.7257344", "0.7230628", "0.71848214", "0.71610624", "0.7143124", "0.70747817", "0.7062827", "0.7032385...
0.7200014
18
Start the analysis server.
public void start(long millisToRestart) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startServer() {\n server.start();\n }", "public void start() {\n\t\tstartFilesConfig(true);\n\t\tstartSpamFilterTest(false);\n\t}", "public void startServer() {\n URLClassLoader loader = createClasspath(opts);\n X_Process.runInClassloader(loader, appServer\n .map(DevApp...
[ "0.68181694", "0.6777529", "0.65562147", "0.65465665", "0.6513815", "0.64787406", "0.6442727", "0.6421294", "0.6411288", "0.63959473", "0.63554657", "0.63025075", "0.62366945", "0.6105581", "0.6100762", "0.6098456", "0.6084934", "0.6079956", "0.60073894", "0.59943604", "0.596...
0.0
-1
Update the content of one or more files. Files that were previously updated but not included in this update remain unchanged.
public void updateContent(Map<String, ContentChange> files);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateFiles() {\n\t}", "void updateFile() throws IOException;", "void update(FileInfo fileInfo);", "public static void refreshIOFiles(@NotNull final Collection<File> files) {\n final long start = System.currentTimeMillis();\n try {\n for (File file1 : files) {\n final VirtualFi...
[ "0.8098725", "0.67336386", "0.6653385", "0.64883846", "0.6486336", "0.64805484", "0.64629567", "0.64279884", "0.6233876", "0.61422217", "0.6044006", "0.59891504", "0.5988727", "0.59563535", "0.5895895", "0.58513045", "0.581278", "0.5810694", "0.5788638", "0.5780936", "0.57632...
0.7311926
1
TODO jeffreyh 12816, wait for image upload implementation
public Event() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void uploadImage(byte[] imageData) {\n\n }", "private void doUpload(Part img1, String image) throws IOException{\n OutputStream out = null;\n InputStream filecontent = null;\n try {\n out = new FileOutputStream(new File(path \n + image));\n ...
[ "0.68450016", "0.6574269", "0.65447223", "0.6417331", "0.6408286", "0.63889235", "0.6379927", "0.63696784", "0.63642883", "0.6360883", "0.6311289", "0.6290058", "0.627103", "0.6270475", "0.62668365", "0.6249821", "0.6248481", "0.62338305", "0.6212367", "0.6197936", "0.6187097...
0.0
-1
Generate all rulers map. Generate a HashMap(Emblem, Kingdom) such that String denotes emblem and Kingdom denotes object of the Kingdom with Cipher generated for its AnimalName
public Map<String, Kingdom> generateAllRulers() { Map<String, String> kingdomWithAnimal; kingdomWithAnimal = kingdomRepository.getRulersWithAnimal(); Map<String, Kingdom> kingdoms = new HashMap<>(); for (String emblem : kingdomWithAnimal.keySet()) { Kingdom kingdom = new Kingdom(emblem, kingdomWit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private TreeMap<Character, Character> generateMap() {\r\n this.charMap = new TreeMap<Character, Character>();\r\n // generates an array of characters representing the alphabet\r\n char[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\r\n\r\n for (int i=0; i<26; i++) {\r\n ...
[ "0.64294463", "0.6170731", "0.61554164", "0.6036207", "0.59277564", "0.5866599", "0.58410376", "0.57860696", "0.57122445", "0.56905353", "0.56462526", "0.5626304", "0.5610704", "0.559591", "0.55425334", "0.55252093", "0.5438397", "0.54081154", "0.5407569", "0.54071116", "0.54...
0.83074677
0
mGrowSeedlingsTimeScrollView = (PullToRefreshScrollView) findViewById(R.id.GrowSeedlingsTime_ScrollView);
@Override public void initView() throws Exception { mGrowSeedlingsTimeTextView = (TextView) findViewById(R.id.GrowSeedlingsTime_TextView); mGrowSeedlingsTimeRecyclerView = (RecyclerView) findViewById(R.id.GrowSeedlingsTime_RecyclerView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.pull_to_refresh_scrollview);\r\n\t\tinflater = LayoutInflater.from(this);\r\n\t\tmPullRefreshScrollView = (PullToRefreshScrollView) findViewById(R.id.pull_refresh_scrollview);\...
[ "0.7310283", "0.6927071", "0.6623141", "0.6608901", "0.6568297", "0.6566055", "0.6564458", "0.64261913", "0.63617074", "0.63165075", "0.6316304", "0.63128597", "0.6290266", "0.6282638", "0.6236551", "0.6228457", "0.62199664", "0.6190374", "0.6151451", "0.6125457", "0.6069757"...
0.5697267
69
This method will be executed once the timer is over
@Override public void run() { Intent i = new Intent(Splash.this, MainActivity.class); startActivity(i); finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTimer() {\n\t\t\n\t}", "private void startTime()\n {\n timer.start();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile(gameTimer > 0 && !Timer.this.gameScene.popUp){\n\t\t\t\t\tcountDown();\n\t\t\t\t\ttry{\n\t\t\t\t\t\tThread.sleep(10);\n\t\t\t\t\t}catch(InterruptedExceptio...
[ "0.71115804", "0.6954622", "0.6905265", "0.6879765", "0.6850487", "0.68336254", "0.6831002", "0.682973", "0.6821518", "0.6820399", "0.6798942", "0.67315245", "0.6688736", "0.6682395", "0.66743344", "0.6645581", "0.6644891", "0.66430765", "0.6639218", "0.66315025", "0.6628547"...
0.0
-1
/ compiled from: constants
public interface ComposerPluginGetters$ProvidesPluginHasUserEditedContentGetter { @Nullable ComposerPluginGetters$BooleanGetter aq(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String constant();", "String getConstant();", "private Constants() {\n\n }", "private Constants() {\n }", "private Constants() {\n }", "private LabelUtilsConstants() {}", "private Constantes() {\r\n\t\t// No way\r\n\t}", "public interface Constants extends ShareConstants {\n String FASTDE...
[ "0.7335371", "0.72507477", "0.69007605", "0.68740755", "0.68740755", "0.6666067", "0.66506064", "0.65966326", "0.6579748", "0.6573902", "0.65716964", "0.6551089", "0.6549508", "0.6521765", "0.6502086", "0.648024", "0.6455892", "0.6452229", "0.6420681", "0.6417415", "0.6414288...
0.0
-1
TODO Autogenerated method stub
public boolean isSelectedIndex(int index) { return tablecolselectmodel.isSelectedIndex(index); }
{ "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
public boolean isSelectionEmpty() { return tablecolselectmodel.isSelectionEmpty(); }
{ "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 paint(Graphics g, JComponent c) { super.paint(g, c); JTable table = (JTable) c; // 对于单元格.要合并 Enumeration<Mergeinfo> en = tablevdef.getMergeinfos() .elements(); while (en.hasMoreElements()) { Mergeinfo minfo = en.nextElement(); // 合并 Rectangle minrect = table.getC...
{ "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
Execute the rewrite rule and return code.
public int execute();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void applyTheRule() throws Exception {\n System.out.println();\n System.out.println();\n System.out.println();\n System.out.println(\"IM APPLYING RULE \" + this.parameter.rule + \" ON MODEL: \" + this.resultingModel.path);\n System.out.println();\n if (parameter.ru...
[ "0.53448486", "0.52864486", "0.5005573", "0.4902034", "0.48168167", "0.47135568", "0.47076944", "0.4667987", "0.46640688", "0.4642244", "0.46328473", "0.46090364", "0.45814273", "0.45706573", "0.45419705", "0.4531", "0.45232347", "0.45164007", "0.45121592", "0.45067757", "0.4...
0.45501125
14
getter du nom du player
public String getName(){return this.aName;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPlayerName();", "public String getName(){\r\n\t\treturn playerName;\r\n\t}", "public String getName()\r\n\t{\r\n\t\treturn this.playerName;\r\n\t}", "String getName(){\n\t\treturn playerName;\n\t}", "public String getPlayerName() {\n return nameLabel.getText().substring(0, nameLabel.getTex...
[ "0.8703004", "0.8493328", "0.8425902", "0.8423101", "0.83808124", "0.83722436", "0.83263874", "0.82846624", "0.8282493", "0.8227095", "0.82222766", "0.8207941", "0.8191605", "0.81876874", "0.8183228", "0.8176676", "0.8174575", "0.8174575", "0.8083846", "0.806301", "0.80622166...
0.0
-1
setter permattant de modifier le nom du player
public void setName(final String pName){this.aName = pName;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setName(String nameIn){\r\n\t\tplayerName = nameIn;\r\n\t}", "public void setName(String name)\r\n\t{\r\n\t\tthis.playerName = name;\r\n\t}", "public void setPlayerName(String name) {\n \tplayername = name;\n }", "void setName(String name) {\n setStringStat(name, playerName);\n }", "...
[ "0.8342215", "0.8238597", "0.800021", "0.79452723", "0.78524655", "0.77827", "0.7751192", "0.75429404", "0.7510743", "0.7496635", "0.7479326", "0.74726796", "0.7434952", "0.74168843", "0.73951", "0.7392306", "0.7371084", "0.73609143", "0.73476446", "0.7344283", "0.7337815", ...
0.0
-1
getter du poid max que peut porter le player
public double getStrong(){return this.aStrong;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMaxPlayers() {\n return maxPlayers;\n }", "protected final int getMax() {\n\treturn(this.max);\n }", "public int getMaximumPlayers() {\n return maximumPlayers;\n }", "public int getMaxPlayers() {\n\t\treturn maxPlayers;\n\t}", "public int getMaximum() {\r\n return max;\r\n ...
[ "0.77077395", "0.75727516", "0.7534493", "0.7486466", "0.7380823", "0.73745334", "0.73745334", "0.73745334", "0.73043746", "0.7304159", "0.72919595", "0.7272722", "0.7270852", "0.7233556", "0.7226381", "0.7226381", "0.7207207", "0.72071284", "0.71705973", "0.7147573", "0.7130...
0.0
-1
setter permattant de modifier le poid max que la player peut transporter
public void setStrong(final double pStrong){this.aStrong = pStrong;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setMax(int max) { this.max = new SimplePosition(false,false,max); }", "public void setMax ( Point max ) {\r\n\r\n\tsetB ( max );\r\n }", "protected final void setMax(Comparable max)\r\n {\r\n myMax = max;\r\n }", "protected final void setMax() {\n\n\tint prevmax = this.max;\n\n\tint...
[ "0.72449976", "0.70118433", "0.697942", "0.6884454", "0.68815815", "0.684662", "0.6775668", "0.67748004", "0.6752992", "0.6745357", "0.66935086", "0.66479623", "0.66479623", "0.6605975", "0.66001713", "0.65934974", "0.6591238", "0.6584206", "0.65702796", "0.656776", "0.655975...
0.0
-1
getter permettant de connaitre le poid que le player porte
public double getWeight(){return this.aWeight;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPlayer()\n {\n return this.player;\n }", "public String getPlayer() {\n return p;\n }", "public int getPlayerId();", "public Player getPlayer() {\n return p;\n }", "public int getPlayer() {\r\n\t\treturn player;\r\n\t}", "public int getPlayer() {\r\n\t\treturn myPla...
[ "0.6802932", "0.6736888", "0.6677206", "0.65981895", "0.65719473", "0.6534729", "0.6533822", "0.6499648", "0.64765036", "0.6465022", "0.645609", "0.64289576", "0.64289576", "0.6422191", "0.6422191", "0.6399422", "0.6380993", "0.6352194", "0.63453984", "0.6336543", "0.6328574"...
0.0
-1
setter permattant de modifier le poid que le player transporte a l'intant t
public void setWeight(final double pWeight){this.aWeight = pWeight;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void set(final Player t) {\n\r\n\t}", "@Override\n public void antidote(Player p) {\n LOG.wtf(this.getClass().getSimpleName(), \"ANTIDOTE SET TO \" + p.toString());\n }", "public void setPlayer(Player myPlayer){\n battlePlayer=myPlayer;\n }", "public void setPlaye...
[ "0.7300903", "0.7035023", "0.6673602", "0.6655566", "0.65744066", "0.6535357", "0.64839196", "0.6379298", "0.6326822", "0.6315619", "0.63040495", "0.6297912", "0.6295042", "0.62814903", "0.62264854", "0.61813545", "0.6172205", "0.6153691", "0.61495215", "0.6137422", "0.613394...
0.0
-1
getter permettant de connaitre la localisation du player
public Room getLocalisation(){return this.aLocalisation;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPlayer();", "Player getCurrentPlayer();", "Player getCurrentPlayer();", "public String getPlayer() {\r\n return player;\r\n }", "Player getPlayer();", "public String getCurrentPlayer() {\n return currentPlayer;\n }", "public String getPlayer() {\n return p;\n }",...
[ "0.7183292", "0.692079", "0.692079", "0.6836798", "0.6645082", "0.6640085", "0.6622904", "0.6612598", "0.64578116", "0.64578116", "0.64521754", "0.6429105", "0.6427511", "0.6387723", "0.6381069", "0.63356084", "0.6321966", "0.6304819", "0.6244622", "0.62340313", "0.6219719", ...
0.6489944
8
setter permattant de modifier la Room dans laquel le player ce trouve
public void setLocalisation(final Room pLocalisation){this.aLocalisation = pLocalisation;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setPlayerRoom(){\n player.setRoom(currentRoom);\n }", "public void setPlayer(Player newPlayer) {\n roomPlayer = newPlayer;\n }", "public void setCurrentRoom(Room newRoom) {\n playerRoom = newRoom;\n }", "public void setRoom(Room room) {\n currentRoom = room;\n }...
[ "0.8107048", "0.7120226", "0.69256735", "0.68664867", "0.6824983", "0.67722017", "0.66917664", "0.6631715", "0.66261625", "0.6522823", "0.64409256", "0.64070946", "0.6352508", "0.6311116", "0.6308012", "0.62077105", "0.61185956", "0.61013454", "0.6065289", "0.60518736", "0.60...
0.5664771
64
getter permettant de connaitre la precedente localisation du player
public Room getLastRoom(){return this.aLastRooms.pop();}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPlayer();", "Player getCurrentPlayer();", "Player getCurrentPlayer();", "public String getPlayer() {\r\n return player;\r\n }", "Player getPlayer();", "public String getPlayer() {\n return p;\n }", "public String getCurrentPlayer() {\n return currentPlayer;\n }",...
[ "0.71383584", "0.6959551", "0.6959551", "0.6815839", "0.6704125", "0.66883343", "0.65594", "0.65556", "0.65556", "0.6532347", "0.6477366", "0.64442444", "0.6386986", "0.6368826", "0.633201", "0.6324206", "0.63151205", "0.6313455", "0.63063747", "0.6293248", "0.62919873", "0...
0.0
-1
setter permattant de modifier le Room precedante ou ce trouver le player en l'ajoutant a la pile des Room precedante
public void setLastRoom(final Room pLastRoom){this.aLastRooms.push(pLastRoom);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setPlayerRoom(){\n player.setRoom(currentRoom);\n }", "public void setPlayer(Player newPlayer) {\n roomPlayer = newPlayer;\n }", "public void setPlayer(Player _player) { // beallit egy ezredest az adott mapElementre, ha az rajta van\n player = _player;\n }", "public void ...
[ "0.7484507", "0.6844734", "0.661712", "0.64695364", "0.64130914", "0.63191247", "0.62611", "0.6229222", "0.6217014", "0.6181307", "0.60927963", "0.60915065", "0.60908836", "0.60384065", "0.6017711", "0.6016615", "0.6012553", "0.5982648", "0.59786874", "0.59642905", "0.5960063...
0.0
-1
Methode permetant de savoir si la liste des Room precedante est vide
public boolean lastRoomsIsEmpty(){return this.aLastRooms.empty();}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void guardarCambios(View v){\n\n ArrayList<ENListaCompra> miL = DespenBD.getListasVisibles();\n ENListaCompra lCompra = miL.get(miL.size()-posicion-1);\n\n System.out.println(\"Posician: \"+posicion);\n System.out.println(\"Nombre: \"+lCompra.getNombre());\n\n DespenBD.edi...
[ "0.6404481", "0.6283092", "0.62420356", "0.586543", "0.5857742", "0.5824678", "0.57918775", "0.57238376", "0.5655503", "0.5642564", "0.55886024", "0.5569311", "0.55669296", "0.5515503", "0.5470896", "0.5466987", "0.54669017", "0.54582727", "0.54549056", "0.5440212", "0.541933...
0.55562705
13
methode permettant de vider la liste des Room precedante
public void resetLastRoom(){this.aLastRooms.clear();}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void showAllRoom(){\n ArrayList<Room> roomList = getListFromCSV(FuncGeneric.EntityType.ROOM);\n displayList(roomList);\n showServices();\n }", "@Override\r\n\tpublic List<Room> listAll() throws SQLException {\n\t\treturn null;\r\n\t}", "public void populateRooms(){\n }", ...
[ "0.6927393", "0.6779225", "0.6665606", "0.6654849", "0.65720665", "0.65048325", "0.6500146", "0.6473996", "0.6473047", "0.6459462", "0.6419169", "0.6386586", "0.63848627", "0.6339667", "0.6329025", "0.63188434", "0.6309927", "0.6276832", "0.62631404", "0.62470937", "0.619108"...
0.0
-1
methode permettant de mettre un item en plus dans l'inventaire du player
public void takeItem(final String pStringItem, final Item pItem){this.aItemsList.takeItem(pStringItem,pItem);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean addPlayerItem(PlayerItem playerItem);", "public void addItemInventory(Item item){\n playerItem.add(item);\n System.out.println(item.getDescription() + \" was taken \");\n System.out.println(item.getDescription() + \" was removed from the room\"); // add extra information to in...
[ "0.7008324", "0.69481593", "0.6892321", "0.6701589", "0.6651188", "0.6619957", "0.65541893", "0.65334404", "0.6526463", "0.65051705", "0.6497016", "0.648562", "0.64810866", "0.6439577", "0.64294934", "0.6407539", "0.64052975", "0.63667285", "0.636522", "0.63563293", "0.634155...
0.0
-1
methode permettant de retirer un item de l'inventaire du player
public void dropItem(final String pStringItem){this.aItemsList.dropItem(pStringItem);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "InventoryItem getInventoryItem();", "public PlayerItem getPlayerItemById(int playerItemId);", "SimpleInventory getOpenedInventory(Player player);", "ItemStack getItem();", "ItemStack getEggItem(IGeneticMob geneticMob);", "@SideOnly(Side.CLIENT)\r\n public Item getItem(World p_149694_1_, int p_149694_2...
[ "0.80171984", "0.74003685", "0.73866194", "0.7094956", "0.6959896", "0.6921937", "0.6863878", "0.6860223", "0.6809792", "0.6735869", "0.6699232", "0.6682574", "0.6646263", "0.6597779", "0.65195286", "0.6510692", "0.65018576", "0.6499649", "0.64809906", "0.6471452", "0.6453528...
0.0
-1