query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
when m is 1, we are just basically reversing right elements from the beginning (first left elements have been skipped)
public ListNode reverseBetweenRecursive(ListNode head, int left, int right) { if (left == 1) { return reverseN(head, right); } // recursively skipping first left elements head.next = reverseBetweenRecursive(head.next, left - 1, right - 1); return head; }
[ "public static Matrix reverseRowsInplace(Matrix m) {\n\t\tfinal double[][] data = m.getArray();\n\t\tfinal int rows = data.length;\n\t\tfinal int halfRows = rows / 2;\n\n\t\tfor (int r = 0; r < halfRows; r++) {\n\t\t\tfinal double[] tmp = data[r];\n\t\t\tdata[r] = data[rows - r - 1];\n\t\t\tdata[rows - r - 1] = tmp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set a new Value for FirstName
public void setFirstName(String firstName) { this.FirstName = firstName; }
[ "public void setFirstName(String value)\r\n {\r\n firstName.set(value);\r\n }", "public void setFirstname(java.lang.String value)\n {\n this.firstname = value;\n }", "public void setFirstname(\n final String argValue) {\n this.firstname.setValue(argValue);\n }", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
stageClearStart is an accessor method that runs the main theme when called
public void stageClearStart() { marioStageClear.play(); }
[ "public void clearStage() {\n this.stage = new Stage();\n }", "private void rebuildStage() {\n\t\t\t\tstage.clear();\n\t\t\t\tstage.addActor(background());\n\t\t\t\tstage.addActor(createLayer());\n\t}", "@Override\n\tprotected void initclear() {\n\t\tgamescene = GAMECLEAR;\n\t\n\t}", "@Override\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onNothingSelected(AdapterView<?> parent) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convert web driver object to TakeScreenshot
public static void takeSnapShot(WebDriver webdriver,String fileWithPath) throws Exception{ TakesScreenshot scrShot =((TakesScreenshot)webdriver); //Call getScreenshotAs method to create image file File SrcFile=scrShot.getScreenshotAs(OutputType.FILE); //Move image fil...
[ "public void takeSnapShot(WebDriver webdriver,String fileWithPath) throws Exception{\n//Convert web driver object to TakeScreenshot\nTakesScreenshot scrShot =((TakesScreenshot)webdriver);\n//Call getScreenshotAs method to create image file\nFile SrcFile=scrShot.getScreenshotAs(OutputType.FILE);\n//Move image file t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$FF: renamed from: () void
public void method_6191() { super.method_6191(); }
[ "public abstract void mo30461b();", "void mo104306b();", "public void mo30174a() {\n }", "void mo120281a();", "public abstract void mo2753d();", "void mo92856b();", "private void FUNCOUT() {\n\t}", "public void nododoble(){}", "public abstract void mo1443b();", "void mo10527a();", "void mo148...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
show menu and sub menu
private void shopProductAndSubmenu(List<Categorie> categories) { rv_product2 = findViewById(R.id.rv_product_2); ArrayList<Product> temp = new ArrayList<>(); temp.addAll(categories.get(0).getProducts()); productAdapter = new ShopProductAdapter(this, temp); LinearLayoutManager prod...
[ "@Override\n public void showMenu() {\n\n }", "private void showMenu() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"***************** Menu **************** \");\n\t\tSystem.out.println(\"* * \");\n\t\tif (addActive == true)\n\t\t\tSystem.out.println(\"* (1) Add ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "position" $ANTLR start "velocity" flipsTargetKml.g:147:1: velocity : ( VEL X FIX x= numericValue | VEL X REL x= numericValue | VEL Y FIX x= numericValue | VEL Y REL x= numericValue | VEL Z FIX x= numericValue | VEL Z REL x= numericValue | VEL ROL FIX x= numericValue | VEL ROL REL x= numericValue | VEL PIT F...
public final void velocity() throws RecognitionException { double x = 0.0; try { // flipsTargetKml.g:147:9: ( VEL X FIX x= numericValue | VEL X REL x= numericValue | VEL Y FIX x= numericValue | VEL Y REL x= numericValue | VEL Z FIX x= numericValue | VEL Z REL x= numericValue | VEL ROL FIX ...
[ "public void setTargetVelocity(double velocity) {\n }", "ShipWired velocity(float x, float y);", "public void setVelocity(Vector velocity);", "void setVelocity(Vector vector);", "public Vector3D getVelocity();", "public int getVelocity();", "public void setVelocity(Vector3 velocity)\n {\n t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public List<AwardVO> selectAward() throws Exception { return dao.selectAward(); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .com.game.Protobuf.Fish_Object FishIDs = 6;
public Builder addFishIDs(com.game.Protobuf.GameServer.Fish_Object value) { copyOnWrite(); instance.addFishIDs(value); return this; }
[ "frame.game.proto.GameControl.FqzsLotteryOrBuilder getFqzsOrBuilder();", "java.util.List<? extends com.ronrytest.protobuf.lib.Int.IntegerEntityOrBuilder> getGonghaoOrBuilderList();", "java.util.List<protobuf.clazz.coin.CoinProtocol.CoinGameMiniInfoProto.GameMiniEntryProto> \n getEntrysList();", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { int[] nums = {1, 2, 1, 2}; HotSolution416 hotSolution = new HotSolution416(); boolean res = hotSolution.canPartition(nums); System.out.println(res); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes the connection using the underlying transport
void initializeConnection();
[ "@Override\n\tpublic void initConnection() {\n\t\t\n\t}", "private void setupConnection()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal SSLContext sc = SSLContext.getInstance(\"TLS\");\n\t\t\tsc.init(null, trustAllCerts, new SecureRandom());\n\t\t\tHttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n\t\t}\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The lists given as parameters are copied here. The original lists are not modified.
public final void setModel(ChoiceList<T> ro) { model = (ChoiceList<T>) ro.clone(); // final List<T> _lstAvailableFields = new ArrayList<T>(ro.getAvailableFields()); // final List<T> _lstSelectedFields = new ArrayList<T>(ro.getSelectedFields()); final MutableListModel<T> listmodelAvailableFields = new SortedLis...
[ "void shareingAcrossLists() {\n\n List<Integer> integerList = List.of(1, 2, 3, 4, 5, 6);\n\n List<Integer> newIntegerList = integerList.tail().prepend(9);\n // now the list has both 9 and 1 pointing to the 2,3,4,5,6\n\n //integerList.toJavaList()\n\n // most operations are constant time\n //Linear...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Write code here that turns the phrase above into concrete actions
@When("hello world converted to upper case") public void helloWorldConvertedToUpperCase() { sample=sample.toUpperCase(); }
[ "@Override\n public void doAction(MentionOf s) {\n\t\n }", "public void action(String name) {}", "@Override\n\t\tpublic void action() {\n\n\t\t}", "private void processAction(char action) throws IOException {\n switch (action) {\n case 'u':\n Viite tallennettava = getRef...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set the drop down so that it simulates selection of the user of a custom report type
@Test public void testExportListAsCustomReport() throws GermplasmListExporterException { final List<CustomReportType> customReportTypes = GermplasmExportDataInitializer.createCustomReportTypeList(); final CustomReportType customReport = customReportTypes.get(0); this.dialog.setExportOptionValue(this.dialog.forma...
[ "private void chooseReportType() {\n try {\n prepareReport();\n JOptionPane.showMessageDialog(this,\n \"The report was generated successfully!\",\n \"Report for\" + getReportType(),\n JOptionPane.INFORMATION_MESSAGE);\n } c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Getters and Setters
public User getReceiver() { return receiver; }
[ "@Override\n }", "@Override\r\n\t\tprotected void getData() {\n\r\n\t\t}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\tpublic void setValue() {\n\t\t\n\t}", "public GetOrSet() {\n this.present = true;\n this.access = AccessModifier.PUBLIC;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update the goal given an action by the goal subject
public void updateGoal(Boolean goalAchieved);
[ "@Override\n\tpublic void update(ActionEntity t) {\n\t\t\n\t}", "public void setAction(typekey.AssessmentAction value);", "private void updateActions(String action) {\r\n FortificationPhaseUpdateService.updateActions(gameBoard, player, action);\r\n }", "public abstract void update(Subject subject);"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void updateLevel() { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns whether the game's state is ClientSide or not.
public static boolean isClient() { return getAppState() == Side.CLIENT; }
[ "boolean isServerSide();", "protected boolean isClientSide(Channel channel) {\n String side = (String) channel.getAttribute(Constants.SIDE_KEY);\n if (\"client\".equals(side)) {\n return true;\n } else if (\"server\".equals(side)) {\n return false;\n } else {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ This method will delete an article by it's id value.
@RequestMapping(value = {"/delete-{id}-article"}, method = RequestMethod.GET) public String deleteArticle(@PathVariable Integer id, ModelMap model) { service.deleteArticle(id); List<Article> articles = service.findAllArticles(); model.addAttribute("articles", articles); model.addAtt...
[ "public void deleteArticle(Integer id){\n //stateofarts.removeIf(t -> t.getId() == id);\n articlerepository.deleteById(id);\n\n }", "@Override\n\tpublic int deleteArticle(int id) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void deleteArticle(Integer id) throws Exception {\n\t\tarticleMapper.de...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finds all words of a particular POS type that are related to a given word They must be in the same clause as the word
public ArrayList<String> findLinks(ArrayList<String> clauseWords, String word, POS typeWanted) { ArrayList<JSONObject> possibleLinks = getLinkedParses(word); ArrayList<String> linkedWords = new ArrayList<>(); for(int j = 0; j < possibleLinks.size(); j++) { JSONObject currentLink = po...
[ "public Set<String> findVariants(String originalWord);", "public List<Word> findWords(String text);", "private WordOcurrences searchWord(String word){\n WordOcurrences ocurrenceList= this.tree.getOcurrences(word);\n return ocurrenceList;\n }", "public List<Synset> getSynsets(String word, POS ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes the current BApproved attribute value. Falls back to the default value is there is one. If the attribute has no default value, it must be set to a new value before commit.
public final void removeBApproved() { removeValue(getBApprovedAttribute(getMtDatabase())); }
[ "public void unsetValue()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(VALUE$6);\r\n }\r\n }", "@Override\r\n\tpublic void unApprove(DeferredAssessment deferredAssessment) {\n\t\t\r\n\t}", "public void setApprove...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Closes data input and output streams
public static void closeStreams() throws IOException { socket.close(); inputStream.close(); outputStream.close(); }
[ "public void closeInput() throws java.io.IOException {\n dataIn.close();\n }", "public void close()\n {\n try\n {\n output.close();\n input.close();\n socket.close();\n }\n catch (IOException ioe)\n {\n System.out.println(\"There was an error cl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: protected
@Override // androidx.recyclerview.widget.RecyclerView public void onMeasure(int i, int i2) { super.onMeasure(i, i2); if (this.sticky != null) { measureChild(getHeader(), i, i2); } }
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "pro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { if (request.getParameter("content") != null) { ConversationEntity convers = (ConversationEntity) request.getSession().getAttribute("conversation"); ...
[ "@Override\n\tpublic void handlePost(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\n\n\n }", "@Override\n public void post(String path) {\n \n }", "@Override\r\n\tpub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This function handles click on cells with critical mass as 2. Do so by placing an orb or by splitting it.
public void OrbsEvent1(int x, int y, Player[] players) { counter++; checkCounter(players); nextColorTurn++; checkClr(players); if (players[counter - 1] == null) { while (players[counter - 1] == null) { counter++; checkCounter(players); } } if (grid[x][y].getOrbs() == 0) { anim...
[ "@Override\r\n\tpublic void mouseClicked(MouseEvent e) \r\n\t{\r\n\t\tint x = e.getX();\r\n\t\tint y = e.getY();\r\n\t\t\r\n\t\tif((x < 72 || x > 491) || (y < 72 || y > 428)) //If user clicks outside of board, then do nothing\r\n\t\t\treturn;\r\n\t\t\r\n\t\tfor (int nRow = 0; nRow < NUMROWS; nRow++ )\r\n\t\t{\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method to getData from the excel cell by providing sheet number, row index and cell index
public String getData(int sheetindex,int row,int column){ sheet1 = wb.getSheetAt(sheetindex); String data = sheet1.getRow(row).getCell(column).getStringCellValue(); return data; }
[ "public String getExcelData(String sheetName, int rownum, int cellnum) throws Throwable {\n\t\t \n\t\t FileInputStream fis = new FileInputStream(IpathConstants.ExcelPath);\n\t\t Workbook book = WorkbookFactory.create(fis);\n\t\t Sheet sh=book.getSheet(sheetName);\n\t\t Row row=sh.getRow(rownum);\n\t\t ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the selected actual item.
public void setSelectedActualItem(Object actualItem) { int itemIndex = model.indexOfActualItem(actualItem); list.setSelectedIndex(itemIndex); }
[ "public void setCurrentlySelectedItem(Thing item) {\n this.getModel().setObject(item);\n }", "@Override\n public void setSelectedItem( final Object item ) {\n\tsuper.setSelectedItem( item );\n\tif( originalItem == null ) {\n\t setOriginalItem( item );\n\t} else if( isChanged() ) {\n\t fireMut...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ProgressBar progressBar = (ProgressBar) findViewById(R.id.progressBar);
public void SaveData(PatientData data) { _progressDialog = ProgressDialog.show(this.getContext(), null, null); _progressDialog.setCancelable(false); //* _progressDialog.setProgressStyle(android.R.style.Widget_ProgressBar_Small); _progressDialog.setProgressStyle(R.layout.progress_dialog); _progressDi...
[ "@Override\n public void onCreate(Bundle savedInstanceState) \n { \n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n mButton1 =(Button) findViewById(R.id.myButton1);\n mTextView1 = (TextView) findViewById(R.id.myTextView1);\n mButton1.setOnClickListener(myShowProgressBa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required string attributeValue = 2;
java.lang.String getAttributeValue();
[ "void xsetValue(com.microsoft.schemas.xrm._2011.metadata.AttributeRequiredLevel value);", "public interface Attribute extends AttributeDescriptor{\n\n public String getValue (); // all types map to string or are unsupported\n public void setValue (String value);\n\n\n}", "void attribute(String attribute)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets (as xml) the "Scratch" element
void xsetScratch(org.apache.xmlbeans.XmlBoolean scratch);
[ "public void setScratch(boolean param) {\n // setting primitive attribute tracker to true\n localScratchTracker = true;\n\n this.localScratch = param;\n }", "public void setXml(java.lang.String param){\n localXmlTracker = true;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public List<Comment> SelectKeyComment(Integer id) { return commentMapper.SelectKeyComment(id); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method add each valid word from index to HashMap. Running time: O(1) as HashMap's search, insert and delete functions are O(1)
private void addToResults(String word) { // Check if the word is in the map already, if so increase frequency by one. // Else create a new key/value and set frequency to 1. if (wordMap.containsKey(word)) { wordMap.put(word, wordMap.get(word) + 1); } else { wordMap.put(word, 1); } }
[ "private void addToHashMap(String key, ArrayList<Integer> storeLine, Index index) {\n\t\tif (key != null && !stopWords.contains(key)) {\n\t\t\tif (!words.containsKey(key)) {\n\t\t\t\tindex.setCount(1);\n\t\t\t\tstoreLine.add(lineNumber);\n\t\t\t\tindex.setLines(storeLine);\n\t\t\t\twords.put(key, index);\n\t\t\t} e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get Groups by branch id, credit officer
public List<Group> getGroupsByBranchCentreOfficer(String branchId, String centreId, String creditOfficerUserName, String offset, String limit) throws MambuApiException { ParamsMap params = new ParamsMap(); params.addParam(BRANCH_ID, branchId); params.addParam(CENTRE_ID, centreId); params.addParam(CRED...
[ "public Group getGroup(Integer idGroup) throws Exception;", "ZigBeeGroup getGroup(int groupId);", "public Group getGroupInfos(String id_group) throws SQLException;", "DbGroup get(Guid id);", "public long[] getGroups(long id);", "public List<GroupsBean> getMemberGroups(Integer id);", "public void buildGr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public int totalCount(int fbno) { return dao.totalCount(fbno); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
RequestQueue For Handle Network Request RequestQueue requestQueue = Volley.newRequestQueue(SignInActivity.this);
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS); getWindow().setStatusBarColor(Color.TRANSP...
[ "private RequestQueue getRequestQueue() {\n if(requestQueue==null) {\n requestQueue = Volley.newRequestQueue(context.getApplicationContext());\n }\n return requestQueue;\n }", "public RequestQueue getRequestQueue(){\n // instantiate only if null\n if (sRequestQueue...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__ContainedPropertyAssociation__Group_4_3__1" $ANTLR start "rule__ContainedPropertyAssociation__Group_4_3__1__Impl" ../org.osate.xtext.aadl2.properties.ui/srcgen/org/osate/xtext/aadl2/properties/ui/contentassist/antlr/internal/InternalPropertiesParser.g:2342:1: rule__ContainedPropertyAssociation__Group_...
public final void rule__ContainedPropertyAssociation__Group_4_3__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.osate.xtext.aadl2.properties.ui/src-gen/org/osate/xtext/aadl2/properties/ui/contentassist/antlr/internal/InternalProp...
[ "public final void rule__ContainedPropertyAssociation__Group_4__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.osate.xtext.aadl2.propertyset.ui/src-gen/org/osate/xtext/aadl2/propertyset/ui/contentassist/antlr/internal/I...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the value of membershipNo
public String getMembershipNo() { return membershipNo; }
[ "public int getMember_no() {\r\n\t\treturn member_no;\r\n\t}", "public int getUserNo() \n {\n return userNo;\n }", "private int Auto_Membership_Card_no() {\n\n int number = 1;\n\n try {\n String sql = \"Select max(Member_Id) from Member\";\n\n PreparedStatement p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Currently we only looking for namespace definitions in root element's attributes
public void discover(Element element, boolean override) { NamedNodeMap attributeMap = element.getAttributes(); for (int i = 0; i < attributeMap.getLength(); i++) { org.w3c.dom.Attr attr = (Attr) attributeMap.item(i); String prefix = attr.getPrefix(); if (attr.getNodeN...
[ "public abstract boolean hasAttrNs(String namespace, String attributeName);", "private String updateNamespaces(org.jsoup.nodes.Element el) {\n // scan the element for namespace declarations\n // like: xmlns=\"blah\" or xmlns:prefix=\"blah\"\n Attributes attributes = el.attributes(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Spring Data repository for the DIQteTypeVehicule entity.
@SuppressWarnings("unused") @Repository public interface DIQteTypeVehiculeRepository extends JpaRepository<DIQteTypeVehicule, Long> { }
[ "public interface ETRTOSizeRepository extends JpaRepository<EtrtoSize, Long> {\n}", "public interface SiacDVariazioneTipoRepository extends JpaRepository<SiacDVariazioneTipo, Integer> {\n\t\n\t/**\n\t * Ottiene la lista di SiacDVariazioneTipo afferenti all'ente di determinato uid.\n\t * \n\t * @param entePropriet...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ID of the Instance resource that is being updated. string instance_id = 1;
@java.lang.Override public com.google.protobuf.ByteString getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref)...
[ "public void setInstanceid(Long instanceid) {\n this.instanceid = instanceid;\n }", "public Long getInstanceid() {\n return instanceid;\n }", "public String getInstanceID(){\n\t\treturn instanceID;\n\t}", "public void setInstanceId(int id);", "public Integer getInstanceId() {\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
public void addProducts(ProductsVO products);
public void addProducts(ProductsVO products);
[ "public void addProduct(Product product) {\n\r\n\t}", "public int addProduct (Products pd);", "public void addProduct(Product product){\n products.add(product);\n }", "public void addProduct(Product product)\r\n {\r\n products.add(product);\r\n }", "void addProduct(Entity product);", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of setGeoLocations method, of class VizLincDB.
@Test public void testSetGetGeoLocations() { Vertex locationNode = vizlincDB.newEntity(E_LOCATION, "Lexington", "test"); assertNull(vizlincDB.getGeoLocations(locationNode)); GeoLocation loc1 = new GeoLocation(1.0, 2.0, null, "loc1", null, "NGA1", "US", "TESTSOURCE"); GeoLocation loc...
[ "@Test\n\tpublic void testLocationSetters() {\n\t\t\n\t\tassertEquals(\"1123Dublin1\", location.toString());\n\t}", "@Test\r\n public void testCityLocations() {\r\n CityLocations cl = new CityLocations();\r\n assertEquals(\"The Cathedral of Learning\", cl.Location(0));\r\n assertEquals(\"S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the nameField value for this PackType.
public void setNameField(java.lang.String nameField) { this.nameField = nameField; }
[ "public void setName(String name) {\r\n\t\tfName= name;\r\n\t}", "@Raw\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}", "@XmlElement\r\n\tpublic void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name_) {\n\t\tthis.name_ = name_;\n\t}", "public void ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
YOUR CODE HERE replace the following line with your code what to check int(s) for
@Override public Boolean eval(InstTuple tuple) { Integer i = tuple.getIntAttr(attr); if (i == null) { return null; } return i == value; }
[ "private boolean isValidInteger(String sample) {\n\t\tboolean valid = false;\n\t\ttry {\n\t\t\tInteger.parseInt(sample);\n\t\t\tvalid = true;\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tpopup.displayText(\"Bruh not like this\");\n\t\t}\n\t\treturn valid;\n\t}", "private int input_int_check(TextField t) {\r\n i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Default Constructor with 8 parameters
public User(int user_id, String foreName, String surname, String role, int mobileNo, String email, String userType, String password) { this.user_id = user_id; this.foreName = foreName; this.surname = surname; this.role = role; this.mobileNo = mobileNo; this.email = ...
[ "public A231503() {\n this(3, 2);\n }", "DefaultConstructorDemo(){\n\t\tthis.x = x;\n\t\tthis.s = s;\n\t}", "public Motorcycle()\n {\n this(10, 20, 75, 2);\n }", "public static void main(String[] args) \n\t{\n\t\tParameterisedConstructor obj1=new ParameterisedConstructor(90);\n\t\tParameterise...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Build a Binary and Return the Root
public Node Infix2BT(String infix) { String a = infix.replace(""+"","" + ""); String b = a.replace(""-"","" - ""); String c = b.replace(""*"","" * ""); String d = c.replace(""/"","" / ""); String e = d.replace(""("","" ( ""); String f = e.replace("")"","" ) ""); ...
[ "static BinaryTree createBinaryTree() {\n\t\tBinaryTree binaryTree = new BinaryTree();\n\n\t\tBTNode root = new BTNode(1);\n\t\troot.left = new BTNode(2);\n\t\troot.right = new BTNode(3);\n\t\troot.left.left = new BTNode(4);\n\t\troot.left.right = new BTNode(5);\n\t\troot.left.right.left = new BTNode(7);\n\t\troot....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Visit a Switch node after processing the switch value.
protected void leaveSwitchValue(CAstNode n, C c, CAstVisitor<C> visitor) { delegate.leaveSwitchValue(n, c, visitor); }
[ "@Override\n \tpublic void visit(Switch_c n) {\n \t\tsuper.visit(n);\n \t}", "@Override\n\tpublic void visitSwitch(JCSwitch tree) {\n\t\tsuper.visitSwitch(tree);\n\t}", "@Override\n\tpublic Instruction visitSwitchStat(SwitchStatContext ctx) {\n\t\tInstruction res = visit(ctx.expr(0));\n\t\tReg regCheck = regs.g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the number of entities available.
public long count();
[ "public static int getEntityCount() {\r\n\t\treturn system.getAvailableEntities().size();\r\n\t}", "public int size() {\n return entities().size();\n }", "public int getEntitiesCount() {\n if (entitiesBuilder_ == null) {\n return entities_.size();\n } else {\n return en...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a blank inventory menu with the page icons.
private Inventory getBlankPage(String name) { Inventory page = Bukkit.createInventory(null, 54, name); ItemStack nextPage = new ItemStack(Material.STAINED_GLASS_PANE, 1, (byte) 5); ItemMeta meta = nextPage.getItemMeta(); meta.setDisplayName(nextPageName); nextPage.setItemMeta(met...
[ "private Menu() {\n\t\tMenu.plugin.getServer().getPluginManager().registerEvents(this, Menu.plugin);\n\t\t\n\t\trootMenu.setItem(0, IOManager.makeButton(IOManager.Icons.pickup, Interface.pickup, false));\n\t\trootMenu.setItem(1, IOManager.makeButton(IOManager.Icons.dropoff, Interface.dropoff, false,\n\t\t\t\tIOMana...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the value associated with the column: XRAY_CHEST
public java.lang.String getXrayChest () { return xrayChest; }
[ "int getCellX();", "public Object getRowColVal(int row, int column) {\n\n\t\treturn dataPoints.get(row).getDataVal(column);\n\n\t}", "protected int getXForColumn(int index) {\n if (xForColumn != null && index >= 0 && index < xForColumn.length)\n return xForColumn[index];\n return -1;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column T_SB_ZLSB_TBSFZ.SYHJ
public void setSyhj(String syhj) { this.syhj = syhj == null ? null : syhj.trim(); }
[ "@SqlUpdate(\"UPDATE zvalues SET zet2018=:zet2018, bobotz2018=:bobotz2018, zDataSet=:zDataSet, bobotZDataset=:bobotZDataSet WHERE idPolySby=:idPolySby\")\n boolean update(@BindBean ZKejadian zKejadian);", "public void upadatebasong1() {\n\t\t\ttry{\r\n\t\t\t\t\r\n\t\t\t\tgetSqlMap().insert(\"IbatisEx_buy.upadate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a summarized contents of the stack trace
public String getStackTrace(int nitems) { return Stack.getStackTrace(lineNumber(), nitems); }
[ "public String getStackTrace() {\n FacesContext context = FacesContext.getCurrentInstance();\n Map requestMap = context.getExternalContext().getRequestMap();\n\n Throwable ex = (Throwable) requestMap.get(\"javax.servlet.error.exception\");\n\n StringWriter writer = new StringWriter();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column tbAccount.type
public void setType(Byte type) { this.type = type; }
[ "public void setAccountType(String accountType) { //Setter that returns accountType .\n\t\tthis.accountType = accountType;\n\t}", "public void setAccounttype(java.lang.String param){\r\n \r\n if (param != null){\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
responds to a friend requestaccept/decline
public void respondRequest( Long id1, Long id2, String response ) { Utilizator u1 = repoUser.findOne(id1); Utilizator u2 = repoUser.findOne(id2); Request req = repoRequest.findOne(new Tuple<>(id1, id2)); if (req.getStatus().equals("pending")) { Request r = new Request(id...
[ "public void eventButtonConfirmRd() {\n eventAcceptFriendshipRequest(userPage.getFriendshipRequestService().acceptFriendshipRequest(listCurrentRequestsReceived.get(2)));\n }", "public boolean Accepted() {\n\t\tsender.addFriends(recipiant.getUsername());\n\t\trecipiant.addFriends(sender.getUsername());\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method for processing object fields. Each field has a checker for correct input and crashes the program if input is incorrect.
public Student(String firstName, String lastName, int birthDate, String gender, int ID) { if(firstNameChecker(firstName)){ this.firstName = firstName; } if(lastNameChecker(lastName)){ this.lastName = lastName; } if(birthDateChecker(birthDate)){ ...
[ "private void checkField() {\n }", "public abstract boolean validate(List<GuiField> fields, ValueObject objects);", "protected void validateInputFields() {\n\t\tSet<String> names = new HashSet<String>();\n\t\tchar[] in = data.toCharArray();\n\t\tchar br = 0;\n\t\tint start = 0;\n\t\tfor (int i = 0; i < in.le...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the overrideMessageProperties property: The value indicating whether to override incoming message properties with those in agreement.
public AS2ValidationSettings withOverrideMessageProperties(boolean overrideMessageProperties) { this.overrideMessageProperties = overrideMessageProperties; return this; }
[ "void setOverrideProperties(Properties overrideProperties);", "public void setMessageProperties(Map messageProperties) {\n this.messageProperties = messageProperties;\n }", "public void setFeedback(FeedbackMessage newMessage, boolean override) {\r\n if (newMessage == null) {\r\n thro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clone method. Copies the tree structure, but not conditions. The leaves are not copied for BDD, where ONE and ZERO are merged. Note that the clone method does also a reduction where possible.
@Override public AADD clone() { if ( isInternal() ) return new AADD(index, T().clone(), F().clone()); else return new AADD(this.Value()); }
[ "@Override\r\n\tpublic Object clone() { \r\n\t\t//Check if root is null, and if so, return the BST with null root\r\n\t\tif(this.root==null)\r\n\t\t\treturn this;\r\n\t\t//Use iterator to go through all the element and shallow copy to the new tree\r\n\t\tIterator<E> copyIter = this.iterator();\r\n\t\tBST<E> shallow...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
___ ___ ___ ___ | | | | | | | | | |___ |___ |___| |___ | | | | | \ | \ _ / ___| |___ | \ ___| Metoda vraca FB profil ulogovanog korisnika
public CustomFacebookProfile getFbUserProfile(String accessToken) { final Facebook facebook = new FacebookTemplate(accessToken); if (!facebook.isAuthorized()) return null; final String uri = "https://graph.facebook.com/v6.0/me?fields=id%2Cname%2Cemail&access_token=" + accessToken; ResponseEntity<CustomFace...
[ "private void fbProfile(){\n LoginManager.getInstance().logInWithReadPermissions(this, Arrays.asList(\"public_profile\", \"user_friends\"));\n }", "public void llenarInfoFacebook()\r\n {\r\n // start Facebook Login\r\n Session.openActiveSession(this, true, new Session.StatusCallback() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method returns a mask of TRIGGER_ constants denoting what triggers the properties
@Override public int triggerMask() { return trigger; }
[ "public Set<Symbol> getTriggers() {\n return this.triggers;\n }", "com.google.protobuf.ByteString\n getTriggerBytes();", "@Override\r\n public Set<String> getTriggerNames() {\r\n return getSQLHandler().getItemsAsStringSet(\"select t.name from sys.triggers t, sys.all_objects o, sys.sch...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns the match info as a reader friendly string after it's been updated. Can be interpreted as a toString() method of this class.
public String getMatchInfo() { return matchInfo; }
[ "public String toString() {\n\t\treturn \"Match: \" + type + \" = \\\"\" + StringHelpers.strip(string) + \"\\\"\";\n\t\t// FakeOutputStream out=new FakeOutputStream();\n\t\t// render(new PrintStream(out),\"\");\n\t\t// return out.store.toString();\n\t\t// return \"Match.toString(): gone to render(PrintStream,int)\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Blocks current thread until search is done
public List<IJavaElement> getReferences(IProgressMonitor monitor) throws CoreException { pattern = SearchPattern.createPattern(searchRoot.getJavaElement(), IJavaSearchConstants.REFERENCES | ~IJavaSearchConstants.IMPORT_DECLARATION_TYPE_REFERENCE, // ...
[ "public void searchForResult() {\n sendSearchRequest();\n waitMS(1000);\n }", "private void startSearch() {\n Thread t = new Thread(new TextInDirectorySearcher(this.workingDirectory, this.textToFind));\n t.start();\n while (!isFound && t.isAlive()) {\n try {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Private support method to set the sort type taken from the userprovided argument for this Sorter object
private void setSortType(String args) { this.sortType = args.toLowerCase().charAt(2); }
[ "public void setSortType(final int sortType)\n\t{\n\t\tthis.sortType = sortType;\n\t\t\n\t}", "@Override\r\n\tpublic void setSort(int sort) {\n\t\t\r\n\t}", "public SortItem(String sortParam, EnumSort sortType) {\n this.sortParam = sortParam;\n this.sortType = sortType;\n }", "public void set...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Helper method to retrieve the Storage for the specified cache name. It returns null if the storage doesn't exist or has not been fully configured.
public Storage getStorage(String sCacheName) { // import java.util.Iterator; BinaryMap mapBinary = (BinaryMap) getReferencesBinaryMap().get(sCacheName); if (mapBinary == null) { // there could be no entries in ReferencesBinaryMap on a server f...
[ "@Nullable\r\n ObjectsCacheInstance getCache(String cacheName);", "Ehcache getCache(String cacheName);", "public static AssetStorage getCache() {\n return cache;\n }", "private Storage getMountedStorage(Path path, boolean exact) {\n if (path == null) {\n return null;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test we do not lose data if we fail a flush and then close. Part of HBase10466
@Test public void testFlushSizeSizing() throws Exception { TestHStore.LOG.info(("Setting up a faulty file system that cannot write in " + (this.name.getMethodName()))); final Configuration conf = HBaseConfiguration.create(TestHStore.TEST_UTIL.getConfiguration()); // Only retry once. ...
[ "@Test\n public void testRaiseFromTheDead() throws IOException\n {\n final List<byte[]> alwaysPresentData = new ArrayList<>();\n //data that will be entirely deleted\n final List<byte[]> dataToDelete = new ArrayList<>();\n final WriteBatchImpl batch = new WriteBatchImpl();\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests that the binarystore.xml in the /etc directory is like the expected binarystore.xml in the expected path
private void assertExpectedBinaryStore(String expectedPath, File binaryStoreXmlFile) throws IOException { String expectedBinaryStoreXml = ResourceUtils.getResourceAsString(expectedPath); Set<Set<String>> expectedProviders = getProvidersAsSet(expectedBinaryStoreXml); String binaryStoreXmlResult =...
[ "@Test\n public void testGetDataFile() throws Exception { \n //TODO: Test goes here...\n File result = shippingstore.getDataFile();\n File expected = new File(\"PackageOrderDB.txt\");\n assertEquals(expected, result);\n }", "@Test(timeout = 5000)\n public void testTezConfStagingPath...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Receives a coupon instance and register it in the database
@Override public void createCoupon(Coupon coupon) throws SQLException, ClassNotFoundException, InterruptedException, DuplicateEntryException, NullConnectionException { //establishing the connection to the data base Connection con = (Connection) ConnectionPool.getInstance().getConnection(); Statement checkStmt ...
[ "void createCoupon (Coupon c);", "boolean addCoupon(Coupon coupon);", "@Override\r\n\tpublic void createCoupon(Coupon coupon) throws CouponSystemException {\r\n\r\n\t\tConnection con = pool.getConnection();\r\n\r\n\t\ttry {\r\n\t\t\tString sqlForPstmt = \"INSERT INTO coupon VALUES(?,?,?,?,?,?,?,?,?)\";\r\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public Class getType(FacesContext context) throws javax.faces.el.MethodNotFoundException { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
uzyj tablicy jednowymiarowej do zliczenia wystapien kazdej sumy.wyswietl wyniki w postaci tabelarycznej
public static void main(String[] args) { Random random = new Random(); int [] table = new int[11]; for (long i = 0; i < 36000000; i++) { int diceRoll = random.nextInt(6)+1; int diceRoll2 = random.nextInt(6)+1; int sum = diceRoll+diceRoll2; // Sys...
[ "private void osveziTabelu(ArrayList<Rezervacije> alRezervacijeGledalac) {\n\t\tukupnaVrednost=0;\r\n\t\t\r\n\t\tdtm.setRowCount(0);\r\n\t\tObject[]redovi=new Object[8];\r\n\t\t\r\n\t\tfor(Rezervacije r:alRezervacijeGledalac) {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\tredovi[1]=r.getImePozoris...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve the ETag of this state.
public String getEtag() { return etag; }
[ "public String getETag ()\n {\n \tHeader hdr = getResponseHeader(E_TAG);\n \tif (hdr == null) return null;\n \treturn hdr.getValue(); \n }", "public EntityTag getEntityTag() {\n String t = getHeaders().getFirst(\"ETag\");\n \n return (t != null) ? entityTagDelegate.fromString(t) : n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleXFunctionTypeRef" $ANTLR start "ruleXFunctionTypeRef" ../org.xtext.template/srcgen/org/xtext/template/parser/antlr/internal/InternalTemplate.g:5698:1: ruleXFunctionTypeRef returns [EObject current=null] : ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_param...
public final EObject ruleXFunctionTypeRef() throws RecognitionException { EObject current = null; Token otherlv_0=null; Token otherlv_2=null; Token otherlv_4=null; Token otherlv_5=null; EObject lv_paramTypes_1_0 = null; EObject lv_paramTypes_3_0 = null; ...
[ "public final EObject ruleXFunctionTypeRef() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_2=null;\n Token otherlv_4=null;\n Token otherlv_5=null;\n EObject lv_paramTypes_1_0 = null;\n\n EObject lv_paramTypes_3_0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.demo.beans.proto.MessageReply.EnumSuccess success = 1;
public Builder setSuccess(demo.beans.proto.MessageReply.EnumSuccess value) { if (value == null) { throw new NullPointerException(); } success_ = value.getNumber(); onChanged(); return this; }
[ "grpc.testing.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder();", "grpc.testing.Messages.EchoStatus getResponseStatus();", "transfer_protobuf.Commands.Command.Response getResponse();", "proto.GameStatusEnum getStatus();", "public ResponseMessageType getResponseMessage(){\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR start "methodCall" /home/arv/workspace/stratospheresopremo/meteor/meteormeteor/src/main/java/eu/stratosphere/meteor/Meteor.g:222:1: methodCall[EvaluationExpression targetExpr] : (packageName= ID ':' )? name= ID '(' ( (param= expression ) ( ',' (param= expression ) ) )? ')' >;
public final MeteorParser.methodCall_return methodCall(EvaluationExpression targetExpr) throws RecognitionException { MeteorParser.methodCall_return retval = new MeteorParser.methodCall_return(); retval.start = input.LT(1); EvaluationExpression root_0 = null; Token packageName=null; Token name=null; Token...
[ "IExpr genCall(\n Method method, Pointer type, IExpr instance, ArrayList<IExpr> params\n );", "public final MethodCall method_call() throws RecognitionException {\n\t\tMethodCall callMethod = null;\n\n\n\t\tToken IDENTIFIER18=null;\n\t\tToken LPAREN19=null;\n\t\tExpression a =null;\n\t\tExpression b =nu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required string column = 2;
public com.google.protobuf.ByteString getColumnBytes() { Object ref = column_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); column_ = b; return b; } else {...
[ "public void setColumn(int column) {\n this.column = column;\n }", "com.guidewire.datamodel.ColumnDocument.Column getColumn();", "public void setColumn(int column) {\n this.column = column;\n }", "public int getColumn () {\n return column;\n }", "public int getColumn() {\n return...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use reflection to call the DriverManager.getDrivers method through the proxy helper. As this is in the same classloader as used to register the JDBC driver from Raven we'll actually be able to see the registered driver.
private Enumeration<?> getLoaderDrivers() { try { return (Enumeration<?>) getDrivers.invoke(null); } catch (IllegalArgumentException exc) { throw new Error(exc); } catch (java.lang.reflect.InvocationTargetException exc) { throw new Error(exc); } catch (java.lang.IllegalAccessException exc) { throw n...
[ "private void loadDrivers() {\r\n\t\tString driverClasses = props.getProperty(\"drivers\");\r\n\t\tStringTokenizer st = new StringTokenizer(driverClasses);\r\n\t\twhile (st.hasMoreElements()) {\r\n\t\t\tString driverClassName = st.nextToken().trim();\r\n\t\t\ttry {\r\n\t\t\t\tDriver driver = (Driver) Class.forName(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "public String getServletInfo()\r\n {\r\n\treturn \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an entity type with the given properties.
public EntityType(Property... properties) { for (Property prop : properties) { propertiesSet.add(prop); } }
[ "<T> T newEntity( Class<T> type, @Optional Identity identity )\n throws NoSuchEntityTypeException, AmbiguousTypeException, LifecycleException;", "EntityInstance createEntityInstance();", "protected abstract Entity createEntity();", "T create(String database, String prefix, T entity);", "public FileTy...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The active output side can't receive power.
@Override public boolean inputOpen(Orientations from) { return transport.inputOpen(from) && from.ordinal() != ((PipeLogicIron)logic).getOutputDirection(); }
[ "public void power()\n {\n powerOn = !powerOn;\n }", "protected abstract void powerOff();", "public void handlePowerOn() {\r\n \r\n }", "@Override\r\n\tpublic void receivePower(double power) throws Exception {\r\n\t\t//unused\r\n\t}", "public boolean canProvidePower()\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets whether this type of compound lowlevel abstraction is concatenable.
public void setConcatenable(boolean concatenable) { this.concatenable = concatenable; }
[ "public final boolean isConcatenation() {\n return this instanceof EbnfConcatenationParserToken;\n }", "public PublisherBuilder enableCompresion ( boolean compress ) { fCompress = compress; return this; }", "public void concat(Value value) {\n\tif (concatValue != null) {\n\t concatValue.concat(valu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public int numComponents() { return 0; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Syntactic sugar for the connect method of process
public void connect(Task tarea) throws ConfigurationException { if (process == null) { throw new ConfigurationException("Esta tarea no pertenece a ningun proceso, no se puede encadenar", null, null); } process.connect(this, tarea); }
[ "public abstract void connect(MemoryReferee.TaskSlot slot);", "public void connect() {\n\t}", "public void connect(){\r\n\t\tconnect(true);\r\n\t}", "@Override\n \tprotected void connect() {\n \t\t\n \t}", "public void connect(Object... args) {\n }", "public abstract boolean connect();", "public syn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
string device_id = 1;
public Builder setDeviceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceId_ = value; onChanged(); return this; }
[ "Device getDevice(String udid);", "Builder deviceName(String deviceName);", "public void setDeviceid(Integer deviceid) {\r\n this.deviceid = deviceid;\r\n }", "Device findDevice(String id);", "private static void initDeviceId(Context context) {\n\t\tSharedPreferences preference = context.getShared...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GENFIRST:event_searchActionPerformed TODO add your handling code here: int inwardSerial=Integer.parseInt(gateInwardSerial.getText().toString());
private void searchActionPerformed(java.awt.event.ActionEvent evt) { Statement stmt; ResultSet rs= null; if(AllItems.isSelected()==false && singleItem.isSelected()==false && singleMaterial.isSelected()==false) { JOptionPane.showMessageDialog(null," ...
[ "public void actionPerformed(ActionEvent e) {\n\t\t\t\tint no1 = Integer.parseInt(one.getText());\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\tString text = formFields[1].getText();\r\n\t\t\ttry {\r\n\t\t\t\titem2 = Integer.parseInt(text);\r\n\t\t\t\tformFields[2].r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
attach disk epilogue operation.
public ActionResult attachDiskEpilogue(AsyncOperationRequest request) { String username = request.getOperator(); String vmId = request.getVirtualMachineId(); String diskId = request.getDiskId(); VirtualMachine machine = VirtualMachine.getVirtualMachine(vmId); if (null == machine) { String action = "检查虚拟机"...
[ "public void epilogue() {\n }", "public void dumpAttach(String aName, byte[] attach) { \r\n int lastPos = aName.lastIndexOf('\\\\'); \r\n String aNameShort = (lastPos < 0) ? aName : aName.substring(lastPos + 1);\r\n try {\r\n FileOutputStream fos = new FileOutputStrea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tries to import a String by iterating through the available import filters, and keeping the import that seems the most promising
public UnknownFormatImport importUnknownFormat(String data) throws ImportException { Objects.requireNonNull(data); return importUnknownFormat(importer -> importer.importDatabase(data), importer -> importer.isRecognizedFormat(data)); }
[ "private void readImport(IndexableStringReader read) throws IOException {\n\t\tString imported = read.nextWord();\n\t\t// Replace '.' with '/' and substring off the ';'\n\t\timported = imported.replace(\".\", \"/\").substring(0, imported.length() - 1);\n\t\t// Get mapping for referenced class, if it exists\n\t\t// ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void deleteInfo(UserInfoVO uifVO) throws Exception { userMapper.deleteInfo(uifVO); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column FMSPAYPLANDET_JOINT_CIF.XNPV
public void setXNPV(BigDecimal XNPV) { this.XNPV = XNPV; }
[ "public void setNPF_CIF(BigDecimal NPF_CIF) {\r\n this.NPF_CIF = NPF_CIF;\r\n }", "public void setFzjcXbxxp(String fzjcXbxxp) {\r\n this.fzjcXbxxp = fzjcXbxxp == null ? null : fzjcXbxxp.trim();\r\n }", "public void setXpos(BigDecimal xpos) {\n this.xpos = xpos;\n }", "public void...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the checks for been visited.
public void setHasBeenVisited(boolean hasBeenVisited) { this.hasBeenVisited = hasBeenVisited; }
[ "public void setChecks() {\n\t\tfor(int i = 0; i< checks.length; i++) {\n\t\t\tchecks[i] = false;\n\t\t}\n\t\tsetChanged();\n\t\tnotifyObservers(\"reset\");\n\t}", "public void setChecks(Queue<CheckInCheckOutModel> checks)\n\t{\n\t\tthis.checks = checks;\n\t}", "public void setVisited(final boolean visited) {\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void update(Object[] object) { financialTransactionManager.update(object); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
End of variables declaration//GENEND:variables
private boolean validateInput() { if(txtPrdName.getText().isEmpty()) return false; else return true; }
[ "private static void EX5() {\n\t\t\r\n\t}", "@Override\n\tprotected void initVariable() {\n\t\n\t}", "public void mo17751g() {\n }", "public void mo1857d() {\n }", "public static void Q22()\r\n\t{\r\n\t}", "public void mo28221a() {\n }", "public void mo3914b() {\n }", "protecte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The stage of the InboundEndpoint definition allowing to specify location.
interface WithLocation { /** * Specifies the region for the resource. * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithParentResource withRegion(Region location); ...
[ "public SwaggerSecurityLocation getIn() {\n return in;\n }", "@ApiModelProperty(value = \"Location of the original entity\")\n\n\n public String getLocation() {\n return location;\n }", "HostLocation location();", "public abstract String getEndpoint();", "interface WithPeeringLocation {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
memory optimisation, remove references to the Document from nodes that are to be retained in the World
public static Node getDetachedCopy ( Node n ) { try { if ( dummyDoc == null ) dummyDoc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); return dummyDoc.importNode(n, true); } catch ( Exception exc ) { exc.printStackTrace(); return n; } }
[ "public void clearIsAllocated() {\n\t\tfor (Document document : documents) {\n\t\t\tdocument.clearIsAllocated();\n\t\t}\n\t}", "public void clear() {\n doc = new DocTree();\n }", "public void removeReferences() {\n\t}", "private void clean() {\n ArrayList<Long> toBeRemoved = new ArrayList<>()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@SuppressLint("NewApi") @Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); switch (id) { case R.id.action_refresh: Analytics.onRefresh(this); // Get all connection items and handle visibility of warning...
[ "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home\n Intent intent = new Intent(this, MainMenuCard.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Translate the touch event into a GPS location update. (Used for testing.)
private boolean handleTouchLocationUpdate(MotionEvent event) { double px = event.getX() - screenMidX; double py = event.getY() - screenMidY; double newGpsX = centerUtmX + pixelToUtm(px); double newGpsY = centerUtmY - pixelToUtm(py); double dx = gpsX - newGpsX, dy = gpsY - newGpsY...
[ "@Override\n\t\tpublic boolean onTouchEvent(MotionEvent event, MapView mapView) {\n\t\t\tif (event.getAction() == 1) {\n\t\t\t\tnewMeetingPoint = mapView.getProjection().fromPixels((int) event.getX(), (int) event.getY());// saves\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Geopoint\n\n\t\t\t\tToast.makeText(\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Custom get highest y method (since it's more reliable it seems)
public int[] getHighestBlockYandIDCave(ActivePlayer player, World world, int x, int z) { int[] yid = { 0, 0 }; // null check since apparently this can NPE if (world == null) return yid; if (player == null) return yid; int sy = (int) player.getLocation().getY(); if (sy > world.getMaxHeight() - 20) s...
[ "float getMaxY();", "public double getYMax() {\r\n return getY();\r\n }", "private int getMaxY() {\n\t\treturn _maxY;\n\t}", "public double getMaxY() {\n return m_maxY;\n }", "@Basic @Immutable\n public int getMaxY() {\n return this.maxY;\n }", "public int getMaxY()\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
test lifecycle Initialize the test class.
@BeforeClass public static void startup() { CoherenceClusterMember memberProxy = startCacheServer("NameServiceSSLTests", "extend", "server-cache-config-nameservice-ssl.xml"); Eventually.assertThat(invoking(memberProxy).isServiceRunning("ExtendTcpProxySSLService"), is(true)); ...
[ "@Override\n\tpublic void onTestInit() {\n\t\tsuper.onTestInit();\n\t}", "public void initialize(){\r\n\t\tAddUserTestCase testcase1 = new AddUserTestCase();\r\n\t\ttests.add(testcase1);\r\n\t\tMoveUserTestCase testcase2 = new MoveUserTestCase();\r\n\t\ttests.add(testcase2);\r\n\t\tLocateCoverageTestCase testcase...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the x position.
public double getX() { return x; }
[ "public final double getxPosition() {\n\n return xPosition;\n\n }", "public int getPos_x() {\n\t\treturn pos_x;\n\t}", "public int getPositionX() {\n\t\treturn position.getX();\n\t}", "public double getxPos() {\n\t\treturn this.position.get().getX();\n\t}", "public final double xPosition()\n\t{\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method returns the attribute value given as parameter. Returns R4JUndefinedValue if there is an error.
public R4JValue getValue(final String attributeName) { REXP value = this.getAdaptee().getAttribute(attributeName); if (value != null) { try { return R4JTransformerUtils.transform(value); } catch (R4JTransformerNotFoundException e) { e.printStackTrace(); } } return new R4JUndefinedValue...
[ "public Attribute getValue() {\n return value;\n }", "String getValue(String attributeName);", "private String getAttributeValue(TreeElement attribute) {\n if (attribute.getValue() == null) {\n return null;\n } else {\n return attribute.getValue().uncast().getString...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Added in 2.0 temporarily, validate the MASTER_ROLE is in the list of known roles. MASTER_ROLE was removed from BUILT_IN_ROLES and is imported by setDeprecatedMasterRole(), as a workaround for making the new CLUSTER_MANAGER_ROLE has got the same abbreviation 'm'. The test validate this behavior.
public void testSetDeprecatedMasterRoleCanAddMasterRole() { DiscoveryNode.setDeprecatedMasterRole(); assertTrue(DiscoveryNode.getPossibleRoleNames().contains(DiscoveryNodeRole.MASTER_ROLE.roleName())); }
[ "public abstract Collection getMasterRoles() throws Exception;", "String[] getSupportedRoles();", "@Test\n public void isManagerRole_PLATFORM_OPERATOR() {\n assertTrue(UserRoleType.PLATFORM_OPERATOR.isManagerRole());\n }", "public void testReadAdminRole()\n {\n readAdminRoles( \"RD-ADMR...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Make API request to query opportunities.
public OpportunityQueryResponse.Result opportunityQuery(final OpportunityQueryRequest request) { return submitRequest(request, new OpportunityQueryResponseParser()) .orElseThrowInvalidRequestException(); }
[ "OpportunityModel getOpportunityById(String opportunityId) throws Exception;", "@GetMapping(\"/opportunities\")\n @ResponseStatus(HttpStatus.OK)\n public List<OpportunityDTO> getOpportunitiesBy(@RequestParam(name = \"salesrep-id\") Optional<Long> salesRepId,\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }