__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/38878962
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void updateUserEvents(int calls, int sms, int email) { TextView text; text = (TextView) findViewById(R.id.mainTextCalls); text.setText(""+calls); text = (TextView) findViewById(R.id.mainTextMessages); text.setText(""+sms); text = (TextView) findViewById(R.id.mainTextGmail); text.setText(""+email); } COM: <s> displays calls messages emails on the user interface </s>
funcom_train/14430873
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void clickTile(int tileNr, boolean drawNewTile, boolean play, boolean resetRoll, boolean performTurn, boolean surpassPauze){ if($pauze && !surpassPauze) return; $tileRack.clickTile(tileNr, drawNewTile, play, resetRoll, performTurn); } COM: <s> passes a tile click to the tilerack </s>
funcom_train/11671770
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addRecognizedFeatures(String[] featureIds) { int length = featureIds != null ? featureIds.length : 0; for (int i = 0; i < length; i++) { String featureId = featureIds[i]; if (!fRecognizedFeatures.contains(featureId)) { fRecognizedFeatures.addElement(featureId); } } } // addRecognizedFeatures(String[]) COM: <s> allows a parser to add parser specific features to be recognized </s>
funcom_train/34068468
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSelectedMenu(Screen selected) { this.selected = selected; // If the menu does not exist yet, create it if (menus.get(selected) == null) { createMenu(selected); } UIMenu menu = menus.get(selected); getUI().getRootPanel().setVisibleSubPanel(menu.getContainer()); menu.setSelectedPanel(0); background.setTitle(menu.getTitle()); } COM: <s> sets the selected menu to the menu with the specified id </s>
funcom_train/32018799
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public JMenuItem getJMenuDeleteFolder() { if (jMenuDeleteFolder == null) { jMenuDeleteFolder = new JMenuItem("Supprimer le dossier", new ImageIcon(getClass().getResource("/Icon/delete_folder_bar.png"))); jMenuDeleteFolder.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_D, InputEvent.ALT_MASK)); } return jMenuDeleteFolder; } COM: <s> this method initializes j menu delete folder </s>
funcom_train/32757782
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Scenario getScenario( final Probe probe, final PVLoggerDataSource dataSource ) throws Exception { final Scenario scenario = Scenario.newScenarioFor( _sequence ); scenario.setSynchronizationMode( Scenario.SYNC_MODE_DESIGN ); final Scenario loggerScenario = dataSource.setModelSource( _sequence, scenario ); loggerScenario.setStartNode( "RTBT_Diag:BPM15" ); loggerScenario.setProbe( probe ); return loggerScenario; } COM: <s> get a scenario with the specified probe and data source </s>
funcom_train/3123914
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public BufferedImage getImage(){ File imageFile = new File(CSessionProperties.DIRECTORY_MAPS + CSessionProperties.FILE_SEPARATOR + getValue(IMG_FILE)); BufferedImage theImage; if (imageFile.isFile()){ try{ theImage = ImageIO.read( imageFile ); } catch(IOException ioe){ return null; } return theImage; } return null; } COM: <s> return the image file from disk as image </s>
funcom_train/17938412
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JMenu getPreferencesjMenu() { if (preferencesjMenu == null) { preferencesjMenu = new JMenu(); preferencesjMenu.setText("Preferences"); preferencesjMenu.setMnemonic(KeyEvent.VK_P); preferencesjMenu.add(getShowStatusBarjCheckBoxMenuItem()); preferencesjMenu.add(getSelectTraceOptionjCheckBoxMenuItem()); preferencesjMenu.addSeparator(); preferencesjMenu.add(getSaveSimulationResultsjCheckBoxMenuItem()); preferencesjMenu .add(getUseSavedSimulationResultsjCheckBoxMenuItem()); } return preferencesjMenu; } COM: <s> this method initializes preferencesj menu </s>
funcom_train/41612636
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Vector randomExpansion(int maxDepth, int depth) { int n = (int) (5.0 * Math.random()) + 3; char[] letters = new char[n]; for (int i = 0; i < n; i++) { int c = (int) (26.0 * Math.random()) + 'A'; letters[i] = (char) c; } Vector v = new Vector(); v.addElement(new String(letters)); return v; } COM: <s> create a set with one random uppercase word with 3 </s>
funcom_train/41466650
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public EchoCancellation decodeEchoCancellation(String value) throws ParseException { // echoCancellation ="on"/"off" if (value.equalsIgnoreCase("on")) { return EchoCancellation.EchoCancellationOn; } else if (value.equalsIgnoreCase("of")) { return EchoCancellation.EchoCancellationOff; } else { throw new ParseException("Invalid value for EchoCancellation :" + value, 0); } } COM: <s> decode echo cancellation object from given text </s>
funcom_train/11390242
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getUriPath(final Path p) { checkPath(p); String s = p.toUri().getPath(); if (!isValidName(s)) { throw new InvalidPathException("Path part " + s + " from URI" + p + " is not a valid filename."); } return s; } COM: <s> get the path part of a pathname </s>
funcom_train/19637478
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testEmptyMapCompatibility() throws IOException, ClassNotFoundException { // test to make sure the canonical form has been preserved Map map = (Map) makeObject(); if (map instanceof Serializable && !skipSerializedCanonicalTests()) { Map map2 = (Map) readExternalFormFromDisk(getCanonicalEmptyCollectionName(map)); assertEquals("Map is empty", 0, map2.size()); } } COM: <s> compare the current serialized form of the map </s>
funcom_train/51702689
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getText(Object element) { if (element instanceof IdentifiedObject) { return getName((IdentifiedObject) element); } else if (element instanceof _CRS_PropertySource) { //This is the case for nested properties... IdentifiedObject o = ((_CRS_PropertySource<?>) element).getCurrentValue(); return getName(o); } else return super.getText(element); } COM: <s> returns the crs objects name </s>
funcom_train/4307228
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean hasPieceOf( Color color) { boolean returnValue = false; // go through the whole array // if there is a piece of color in the arrar return true // else return false for( int i =1; i < pieces.length; i++ ) { if( pieces[i] != null && pieces[i].getColor() == color ) { returnValue = true; i = pieces.length; } } return returnValue; } COM: <s> this method returns if there is a piece of color on the board </s>
funcom_train/2839144
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void beginSection(SectionDescription section) throws Exception { MutableXMLSection sectionXML; sectionXML = new MutableXMLSection("section"); sectionXML.setAttribute("name", section.getTitle()); currentXML.println(sectionXML.openingTag()); if (!survey.getTestMode()) combinedXML.println(sectionXML.openingTag()); currentSectionName = section.getTitle(); } COM: <s> call this method to insert the opening of a new section in the </s>
funcom_train/44772111
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int hashCode() { int h = hashCode; if (h == 0) { h = 37; h = 37 * h + (int) type; h = 37 * h + parentUUID.hashCode(); h = 37 * h + childRelPath.hashCode(); h = 37 * h + session.hashCode(); hashCode = h; } return hashCode; } COM: <s> returns a hash code for this code event state code </s>
funcom_train/34197869
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getThemePath() { String theme = themeResolver.resolveThemeName(actionBeanContext.getRequest()); Theme _theme = themeSource.getTheme(theme); MessageSource themeMessageSource = _theme.getMessageSource(); return themeMessageSource.getMessage("public.root", null, actionBeanContext.getLocale()); } COM: <s> return the current blogs theme path </s>
funcom_train/12806574
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addWriter(final PdfWriter writer) throws DocumentException { if (this.writer == null) { this.writer = writer; annotationsImp = new PdfAnnotationsImp(writer); return; } throw new DocumentException(MessageLocalization.getComposedMessage("you.can.only.add.a.writer.to.a.pdfdocument.once")); } COM: <s> adds a code pdf writer code to the code pdf document code </s>
funcom_train/22048534
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void displayConnectionFailure(boolean b, String s) { // This was an internal error so log it properly if (b) { Misc.error(this, "Client Connection failure error: " + s); } else { Misc.debug(this, "Client Connection failure error: " + s); } this.checkEnabled(); Misc.displayError(this, "Unable to establish connection to server:\r\n" + s); } COM: <s> display connection failure error </s>
funcom_train/40716561
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean getBooleanValue(String name) { String str = getOptional(name, null); if (str == null || str.equals("false")) { return false; } else if (str.equals("true")) { return true; } else { alertSink.add(new InvalidAttributeValueError(getAttribute(name))); return false; } } COM: <s> get a boolean value for an attribute that can take the value true </s>
funcom_train/776855
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean authenticate() { if (auth != null) { boolean authenticated = auth.authenticate(); message = auth.getMessage(); return authenticated; } else { log.error("We have no authentication module!"); message = "421 Unable to authenticate, no authentication module loaded (or unknown specified module)"; return false; } } COM: <s> the method that actually runs relays the authentication </s>
funcom_train/2801826
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public IField getMsgField(String pFieldName) throws IllegalArgumentException { IField field = null; try { TibrvMsgField rvField = mTibrvMsg.getField(pFieldName); if (rvField != null) { field = new RvField(rvField); } } catch (TibrvException e) { throw new IllegalArgumentException(RvUtils.convertTibrvException(e)); } return field; } COM: <s> retrieves the field according to its name </s>
funcom_train/25520372
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean setDiscoverable(int mode) throws BluetoothStateException { if ((mode != DiscoveryAgent.GIAC) && (mode != DiscoveryAgent.LIAC) && (mode != DiscoveryAgent.NOT_DISCOVERABLE) && (mode < 0x9E8B00 || mode > 0x9E8B3F)) { throw new IllegalArgumentException("Invalid discoverable mode"); } return this.bluetoothStack.setLocalDeviceDiscoverable(mode); } COM: <s> sets the discoverable mode of the device </s>
funcom_train/13969349
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ApplicationFrame () { addWindowListener(new WindowAdapter() { public void windowClosing (WindowEvent event) { System.exit(0); } }); setTitle("Bugtrap Reference Implementation, http://bugwerk.sourceforge.net"); setVisible(false); setSize(500, 500); setContentPane(MainTabPanel.getSharedInstance()); validate(); repaint(); } COM: <s> creates the application frame </s>
funcom_train/19090978
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addRecognizedFeatures(String[] featureIds) { // add recognized features int featureIdsCount = featureIds != null ? featureIds.length : 0; for (int i = 0; i < featureIdsCount; i++) { String featureId = featureIds[i]; if (!fRecognizedFeatures.contains(featureId)) { fRecognizedFeatures.addElement(featureId); } } } // addRecognizedFeatures(String[]) COM: <s> allows a parser to add parser specific features to be recognized </s>
funcom_train/10521529
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void logUserEvent(Object source, String msg) { StringBuilder sb = new StringBuilder(); sb.append(getTimeStamp()); sb.append(": "); sb.append(source.getClass().getSimpleName()); sb.append(":"); sb.append(msg); _events.add(sb.toString()); } COM: <s> log a user event </s>
funcom_train/13415488
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void createBaseLayer() { if (context == null) return; CreateBaseLayerDialog dialog = new CreateBaseLayerDialog(); dialog.open(); if (dialog.getReturnCode() == 1) return; File file = dialog.getFile(); float uValue = dialog.getUValue(); float vValue = dialog.getVValue(); CreateBaseLayerCommand command = new CreateBaseLayerCommand(context, file, uValue, vValue,owner); context.getCommandStackProvider().getCommandStack().execute(command); } COM: <s> simple invocation for creating a new base layer </s>
funcom_train/9762093
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isCompatibleWith(final Version other) { if (other == null) { return false; } if (major != other.major) { return false; } if (minor > other.minor) { return true; } if (minor < other.minor) { return false; } if (build >= other.build) { return true; } return false; } COM: <s> compares two version identifiers for compatibility </s>
funcom_train/3786887
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean setStudyFields(String studyFields[]) { /* setStudyFields */ if(studyFields==null) return(false); if(miapeStudyFields!=null) { if(studyFields.length!=miapeStudyFields.length) return(false); } miapeStudyFields= studyFields; nMiapeFields= miapeStudyFields.length; return(true); } /* setStudyFields */ COM: <s> set study fields set the accession database study fields </s>
funcom_train/19887210
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetPayAmount() { System.out.println("setPayAmount"); double payAmount = 0.0; //Payment pmt = null; pmt.setPayAmount(payAmount); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } COM: <s> test of set pay amount method of class edu </s>
funcom_train/48151675
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void update() { super.update(); urn.showBalls(sampleSize); String orderText = ""; for (int i = 0; i < sampleSize; i++) { orderText = orderText + "\t" + orderStatistic[i]; } getRecordTable().append(orderText); orderGraph.repaint(); orderTable.update(); } COM: <s> this method updates the experiment including the ball panel the random </s>
funcom_train/32212508
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void message(MessageEvent event){ if (event==null) return; if (event.getMessage()==null) return; if (event.getMessage().equals("")) return; // if the IN: $string goes away elsewhere in the code, // this block becomes needed again. //this.globalData.p("# fwk said: "); //this.globalData.pn(event.getMessage()); } COM: <s> the cca server sent a message to this client </s>
funcom_train/43287601
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetMethod() { ReferenceTest refTest = modeling.basic.generated.model1.factories.references.PackageFactory .newReferenceTest((DefaultModelPart) null); refTest.newContainer(); // create edit part ModelEditPart editPart = editPartFactory.getEditPart(refTest); assertNotNull(editPart); Collection parts = editPart.getValues(ReferenceTest.PROPERTY_CONTAINER); assertNotNull(parts); assertEquals(refTest.getContainer(), parts.iterator().next()); } COM: <s> test the get values method </s>
funcom_train/2862088
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getTotalPostings(String resultSetName) { DbResults res[] = getSearchResults(resultSetName); if (res != null) { int postings = 0; for (int i=0; i<res.length; i++) postings += res[i].postings(); return postings; } return 0; } COM: <s> retrieves an integer containing the total postings count </s>
funcom_train/26269157
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Vector convertDescription(Vector h) { Vector retVal = new Vector(); if (h == null) return retVal; for (Enumeration e = h.elements(); e.hasMoreElements(); retVal.addElement(new SigEntry((FullItemDescription)e.nextElement()))); return retVal; } COM: <s> given the vector code h code of b full item description b s </s>
funcom_train/51406330
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private double getFleschReadingEaseIncludingFragments() { double fleschReadingEase = 0.0; fleschReadingEase = 206.835 - (1.015 * ((double) wordsInFile / (double) sentencesInFile)) - (84.6 * getSyllablesPerWordInFile()); if (fleschReadingEase < 0) { fleschReadingEase = 0; } if (fleschReadingEase > 100) { fleschReadingEase = 100; } return fleschReadingEase; } COM: <s> calculates and returns the files flesch readability ease score including </s>
funcom_train/17714039
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setJobseekerMenu() { jobseekerMenu = new Menu("Jobseeker", true); updateJobseekerMenuItem = new MenuItem("Update Jobseeker"); //add action to menu updateJobseekerMenuItem.addActionListener(new EditJobseekerProfileActionListener()); jobseekerMenu.add(updateJobseekerMenuItem); bar.add(jobseekerMenu); } COM: <s> this operation will create jobseeker menu </s>
funcom_train/18741784
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void addEditorTab(ResourceTab result) { getTabPane().addTab("", result); int index = getTabPane().indexOfComponent(result); getTabPane().setTabComponentAt(index, result.getTabLabel()); getListPanel().repaint(); } COM: <s> creates and adds an editor panel for the given graph </s>
funcom_train/12806349
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setColumns(final float leftLine[], final float rightLine[]) { maxY = -10e20f; minY = 10e20f; setYLine(Math.max(leftLine[1], leftLine[leftLine.length - 1])); rightWall = convertColumn(rightLine); leftWall = convertColumn(leftLine); rectangularWidth = -1; rectangularMode = false; } COM: <s> sets the columns bounds </s>
funcom_train/28992812
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void mapParameters(ShowResource aResource) { //aResource.setId(getParameterValue(KEY_ID)); aResource.setName(getParameterValue(KEY_NAME)); aResource.setDescription(getParameterValue(KEY_DESCRIPTION)); aResource.setUrl(getParameterValue(KEY_URL)); aResource.setImageUrl(getParameterValue(KEY_IMAGE_URL)); } COM: <s> map parameters to specified resource object </s>
funcom_train/7308673
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int readRawIntLittleEndian() throws IOException { int x32 = readRawUInt(8); int x8 = readRawUInt(8); x32 |= (x8 << 8); x8 = readRawUInt(8); x32 |= (x8 << 16); x8 = readRawUInt(8); x32 |= (x8 << 24); return x32; } COM: <s> read bits into an unsigned little endian integer </s>
funcom_train/40626024
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String findPageId(String requestURI){ String[] split = requestURI.split("/"); if (split!=null && split.length>0){ for (int i=0; i<split.length; i++){ if ("page".equals(split[i]) && (i+1)<split.length){ return split[i+1]; } } } return null; } COM: <s> find the page id from the request uri </s>
funcom_train/3454816
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void addToFlowPhases(FlowPhase phase) { int depth = phase.getDepth(); for(int i=0;i<flowPhases.size();i++) { if(((FlowPhase)flowPhases.get(i)).getDepth()<=depth) { flowPhases.add(i, phase); return; } } flowPhases.add(phase); } COM: <s> adds to flow phases ordererd desc by depth see flow phase </s>
funcom_train/13273166
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateStep(ImportedTextureWizardController controller) { ImportedTextureWizardController.Step step = controller.getStep(); this.cardLayout.show(this, step.name()); switch (step) { case IMAGE: this.imageChoiceOrChangeButton.requestFocusInWindow(); break; case ATTRIBUTES: this.nameTextField.requestFocusInWindow(); break; } } COM: <s> switches to the component card matching current step </s>
funcom_train/18885230
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void sortLayers() { if (mLayerList == null) return; Layer l = getSelectedLayer(); Arrays.sort(mLayerList, new LayerComparator()); for (int a = 0; a< mLayerList.length; a++) { if (mLayerList[a].getName() == l.getName()) setSelectedLayer(a); } } COM: <s> sorts the layers into the appropriate z order </s>
funcom_train/33160802
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setConnectionStyle(int connectionStyle) { if (getInput() != null) { ZestException.throwError(ZestException.ERROR_CANNOT_SET_STYLE, "", null); } if (!ZestStyles.validateConnectionStyle(connectionStyle)) { ZestException.throwError(ZestException.ERROR_INVALID_STYLE, "", null); } this.connectionStyle = connectionStyle; } COM: <s> sets the default style for connections in this graph </s>
funcom_train/51615663
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void write(DataRepresentation representation, Object object) throws WriteError { GRMLReport report = (GRMLReport)object; representation.setAttribute("class", report.getClassAttribute()); ERATypes.GROUPING_LIST.put(representation, "groupings", report.groupingsList()); ERATypes.FORMATTING.put(representation, "detail", report.getDetailFormatting()); } COM: <s> writes a generic grid attributes writer object to some data representation </s>
funcom_train/5855300
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void processKeyEvent(KeyEvent e) { int id = e.getID(); int code = e.getKeyCode(); if (id == KeyEvent.KEY_PRESSED) { engine.pressKey(code); } else if (id == KeyEvent.KEY_RELEASED) { engine.releaseKey(code); } super.processKeyEvent(e); } COM: <s> pass keyboard events on to the engine </s>
funcom_train/50440084
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setState(AState state) throws Exception { // Get properties object from state Properties sProp=state.getProperties(); // Enumerate through and call the set property method Enumeration enum=sProp.keys(); while (enum.hasMoreElements()){ String key=enum.nextElement().toString(); setProperty(key,sProp.get(key).toString()); } } COM: <s> sets the state of this domain object </s>
funcom_train/41447792
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void processConcurrencyAnnotation(Class clazz) { if(sipContext.getConcurrencyControlMode() == null) { Package pack = clazz.getPackage(); if(pack != null) { ConcurrencyControl concurrencyControl = pack.getAnnotation(ConcurrencyControl.class); if(concurrencyControl != null) { if(logger.isDebugEnabled()) { logger.debug("Concurrency control annotation found " + concurrencyControl.mode()); } sipContext.setConcurrencyControlMode(concurrencyControl.mode()); } } } } COM: <s> check if the </s>
funcom_train/50821738
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void start() { if (this.drawer != null) { if (this.drawer.isAlive()) { return; } this.drawer = null; } this.isRunning = true; this.isPaused = false; this.drawer = new Thread(this); this.drawer.setDaemon(true); this.drawer.start(); } COM: <s> starts the drawing thread </s>
funcom_train/34282466
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void exportDone(JComponent source, Transferable data, int action) { // only remove the text if shouldRemove has not been set to // false by importData and only if the action is a move if (shouldRemove && action == MOVE) { TextTransferable t = (TextTransferable)data; t.removeText(); if (withinSameComponent) { ((RTextArea)source).endAtomicEdit(); withinSameComponent = false; } } exportComp = null; } COM: <s> this method is called after data has been exported </s>
funcom_train/43245738
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testIsPreCertificationRequired() { System.out.println("isPreCertificationRequired"); InsuranceDG1Object instance = new InsuranceDG1Object(); boolean expResult = true; boolean result = instance.isPreCertificationRequired(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } COM: <s> test of is pre certification required method of class org </s>
funcom_train/13304495
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addAdmissionRulePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Participant_admissionRule_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Participant_admissionRule_feature", "_UI_Participant_type"), NegotiationPackage.Literals.PARTICIPANT__ADMISSION_RULE, true, false, true, null, null, null)); } COM: <s> this adds a property descriptor for the admission rule feature </s>
funcom_train/26201207
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void translate(int x,int y) { trax+=x; tray+=y; //closeBlock(); //// we use cw & ch here as the coordinates are relative not absolute //pw.println("1 0 0 1 "+cwh(x,y)+" cm"); } COM: <s> translate the origin </s>
funcom_train/42272961
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void simulateFaults_byNumber(Integer nr){ Integer fin_jobs = nrOfFinishedJobs(); Integer err_jobs = nrOfErrorJobs(); Random rand = new Random(); Integer task_err; if( ((taskStatus.size()-fin_jobs) > nr) && (err_jobs < nr) ){ task_err = rand.nextInt(taskStatus.size()); this.setStatusError(task_err); } } COM: <s> this method simulates </s>
funcom_train/14465360
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public CellHandle add(Timestamp dt, String address, String fmt){ if(fmt == null)fmt = "m/d/yyyy h:mm:ss"; Date dx = new Date(dt.getTime()); return this.add(dx, address, fmt ); } COM: <s> add a java </s>
funcom_train/44212225
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void inputNotes(Todo todo, String notes) { if (notes != null && !notes.equals("")) { todo.setHasNotes(true); if (notes.length() > 10000) { todo.setNotes(notes.substring(0, 10000)); } else { todo.setNotes(notes); } } else { todo.setHasNotes(false); todo.setNotes(null); } } COM: <s> insert notes into the todo </s>
funcom_train/48606830
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long getCurrentProgressValue() { if (isProgressBarEnabled()) { long currentstatus = policyService.getInsertOperationStatus(); if (currentstatus >= 100) { progressBarEnabled = false; finishPopUp = true; return Long.valueOf(101); } else { return currentstatus; } } else { return Long.valueOf(-1); } } COM: <s> used for get status of policies inventory process </s>
funcom_train/3131594
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void validate() throws Path.Failure { if (!op.isDocumentOp()) { // This is a programming error, thus the RuntimeException throw new RuntimeException("Unable to link: not a DocumentOp"); } if (op.isAbsolute() && parent != DocLink.EMPTY_LINK) { throw new Path.Failure("Absolute PathOperators must have no parents."); } } COM: <s> check the validity of the constructed link </s>
funcom_train/42068228
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addTypeIDPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ChunkDataList_typeID_feature"), getString("_UI_PropertyDescriptor_description", "_UI_ChunkDataList_typeID_feature", "_UI_ChunkDataList_type"), WavPackage.Literals.CHUNK_DATA_LIST__TYPE_ID, false, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the type id feature </s>
funcom_train/12894878
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void createFieldEditors() { addField(new FileFieldEditor(PreferenceConstants.P_PROGRAMM, "&Programm to open:", getFieldEditorParent())); addField( new StringFieldEditor( PreferenceConstants.P_PREFIX, "Parameter p&refix", getFieldEditorParent())); addField(new StringFieldEditor( PreferenceConstants.P_POSTFIX, "Parameter p&ostfix", getFieldEditorParent())); } COM: <s> creates the field editors </s>
funcom_train/23710129
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object updateCellSize(Object cell, boolean ignoreChildren) { model.beginUpdate(); try { cellSizeUpdated(cell, ignoreChildren); fireEvent(mxEvent.UPDATE_CELL_SIZE, new mxEventObject(new Object[]{ cell, ignoreChildren })); } finally { model.endUpdate(); } return cell; } COM: <s> updates the size of the given cell in the model using </s>
funcom_train/41332636
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Shape createOpenRectangle(final int x, final int y, final int w, final int h) { path.reset(); path.moveTo(x + w, y); path.lineTo(x, y); path.lineTo(x, y + h); path.lineTo(x + w, y + h); return path; } COM: <s> return a path for a rectangle with square corners and no right side </s>
funcom_train/47578826
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean validateQNames_MinLength(List<?> qNames, DiagnosticChain diagnostics, Map<Object, Object> context) { int length = qNames.size(); boolean result = length >= 1; if (!result && diagnostics != null) reportMinLengthViolation(BpelPackage.eINSTANCE.getQNames(), qNames, length, 1, diagnostics, context); return result; } COM: <s> validates the min length constraint of em qnames em </s>
funcom_train/30075690
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected ModelAndView onSubmit(Object command) throws ServletException, GPIRException { VOResource voResource = (VOResource) command; Vo vo = getGpir().getVo(voResource.getVoId()); return new ModelAndView(getSuccessView(), "voId", Integer.toString(vo.getId())); } COM: <s> method inserts a new code vo resource code </s>
funcom_train/17619369
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void connect() throws IOException { SmbTransport trans; SmbSession ssn; UniAddress addr; if( isConnected() ) { return; } getUncPath0(); getFirstAddress(); for ( ;; ) { try { doConnect(); return; } catch(SmbException se) { if (getNextAddress() == null) { throw se; } log.warn("",se); } } } COM: <s> it is not necessary to call this method directly </s>
funcom_train/21263736
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void save(LenguajesDeprogramacion entity) { EntityManagerHelper.log("saving LenguajesDeprogramacion instance", Level.INFO, null); try { getEntityManager().persist(entity); EntityManagerHelper.log("save successful", Level.INFO, null); } catch (RuntimeException re) { EntityManagerHelper.log("save failed", Level.SEVERE, re); throw re; } } COM: <s> perform an initial save of a previously unsaved lenguajes deprogramacion entity </s>
funcom_train/15676454
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean ircsend(String message) { // Log.logger.debug("[IRC] irc: '" + message + "'"); System.out.println("[IRC] irc: '" + message + "'"); try { IRCor.write(message); IRCor.newLine(); IRCor.flush(); } catch (IOException e) { return false; } return true; } COM: <s> sends a raw string to the irc server </s>
funcom_train/17272795
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Cursor fetchConfig(long rowId) throws SQLException { Cursor mCursor = mDb.query(true, DATABASE_TABLE, new String[] { KEY_ROWID, KEY_LOGIN, KEY_PASSWORD }, KEY_ROWID + "=" + rowId, null, null, null, null, null); if (mCursor != null) { mCursor.moveToFirst(); } return mCursor; } COM: <s> return a cursor positioned at the note that matches the given row id </s>
funcom_train/22826707
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private IIndex findCorrespondingIndex(Table table, IIndex index) { for (int indexIdx = 0; indexIdx < table.getIndexCount(); indexIdx++) { IIndex curIndex = table.getIndex(indexIdx); if ((caseSensitive && index.equals(curIndex)) || (!caseSensitive && index.equalsIgnoreCase(curIndex))) { return curIndex; } } return null; } COM: <s> searches in the given table for a corresponding index </s>
funcom_train/7620143
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void runTestOnUiThread(final Runnable r) throws Throwable { final Throwable[] exceptions = new Throwable[1]; getInstrumentation().runOnMainSync(new Runnable() { public void run() { try { r.run(); } catch (Throwable throwable) { exceptions[0] = throwable; } } }); if (exceptions[0] != null) { throw exceptions[0]; } } COM: <s> helper for running portions of a test on the ui thread </s>
funcom_train/35683282
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int compare(final JavaClass jClass) { int projectCompare = this.javaProject.getProject().getName().compareToIgnoreCase( jClass.javaProject.getProject().getName()); if (projectCompare == 0) { return this.className.compareToIgnoreCase(jClass.className); } return projectCompare; } COM: <s> compares another object of this class to this instance </s>
funcom_train/51738574
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private ReplyHandlerHolder unregisterReplyHandlerHolder(final int messageNumber) { synchronized (replyHandlerHolders) { ReplyHandlerHolder holder = replyHandlerHolders.removeFirst(); if (messageNumber != holder.getMessageNumber()) { throw new ProtocolException("next expected reply has message number " + holder.getMessageNumber() + "; received reply had message number " + messageNumber); } return holder; } } COM: <s> removes the next reply handler holder </s>
funcom_train/34112126
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void purge() { // ServiceDefTarget endPoint = (ServiceDefTarget) folderService; // endPoint.setServiceEntryPoint(Config.OKMFolderService); // String path = ((GWTFolder)actualItem.getUserObject()).getPath(); // folderService.purge(path, callbackPurge); Main.get().mainPanel.navigator.status.setFlagPurge(); } COM: <s> purge folder on file browser only trash mode </s>
funcom_train/18513273
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isLeaf(Object node) { // first calls the original method boolean result = super.isLeaf(node); // if the node is not null, look if it is a reference if (node != null) { if (((XmlTreeNode) node).isReference()) { return false; } } return result; } COM: <s> this overwrites the original is leaf method in order to make the </s>
funcom_train/3370678
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getTypeDescription(File f) { String typeDescription = null; if(f != null) { if(getFileView() != null) { typeDescription = getFileView().getTypeDescription(f); } if(typeDescription == null && uiFileView != null) { typeDescription = uiFileView.getTypeDescription(f); } } return typeDescription; } COM: <s> returns the file type </s>
funcom_train/37614256
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Point convert(IntPoint src) { double mx = m_bounds.width() / m_width; double x = (mx * src.X) + m_bounds.getPoint().X; double my = -1.0 * m_bounds.height() / m_height; double y = (my * (src.Y - m_height)) + m_bounds.getPoint().Y; return new Point(x, y); } COM: <s> converts the given point in pixel coordinates to real world coordinates </s>
funcom_train/45017644
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void adjust() { glScalef((float) Math.exp(this.zoomPower), (float) Math .exp(this.zoomPower), 1); glTranslatef(this.xoff, this.yoff, this.zoomPower); glRotatef(this.xrot, 1.0f, 0.0f, 0.0f); glRotatef(this.yrot, 0.0f, 1.0f, 0.0f); } COM: <s> moves the camera to the position defined by this </s>
funcom_train/51359834
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void initializeGraphics() { // Create BackBuffer... canvas.createBufferStrategy(2); bufferStrat = canvas.getBufferStrategy(); // Get graphics configuration... GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice gd = ge.getDefaultScreenDevice(); GraphicsConfiguration gc = gd.getDefaultConfiguration(); // Create off-screen drawing surface imageBuff = gc.createCompatibleImage(iCanvasWidth, iCanvasHeight); isInitialized = true; } COM: <s> call after the renderers canvas has been assigned to some jframe </s>
funcom_train/37556517
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setText (String string) { checkWidget (); if (string == null) error (SWT.ERROR_NULL_ARGUMENT); int newBits = OS.GetWindowLong (handle, OS.GWL_STYLE); int oldBits = newBits; newBits &= ~(OS.BS_BITMAP | OS.BS_ICON); if (newBits != oldBits) { OS.SetWindowLong (handle, OS.GWL_STYLE, newBits); } TCHAR buffer = new TCHAR (getCodePage (), string, true); OS.SetWindowText (handle, buffer); } COM: <s> sets the receivers text </s>
funcom_train/8196783
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setTickLabelPaint(Paint paint) { if (paint == null) { throw new IllegalArgumentException("Null 'paint' argument."); } if (!this.tickLabelPaint.equals(paint)) { this.tickLabelPaint = paint; notifyListeners(new PlotChangeEvent(this)); } } COM: <s> sets the tick label paint and sends a </s>
funcom_train/41139891
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void removeFeature (int index) { m_inconsistencyContribute[index] = m_tmpInconsistencyRate -m_inconsistencyRateCurrent; m_inconsistencyRateCurrent = m_tmpInconsistencyRate; Hashtable tmp = m_table; m_table = m_tmpTable; m_tmpTable = tmp; m_tmpTable.clear(); m_currentFeatureSet[index] = false; } COM: <s> remove feature i from the feature set </s>
funcom_train/28773681
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getClear_fields() { if (clear_fields == null) {//GEN-END:|62-getter|0|62-preInit // write pre-init user code here clear_fields = new Command("Clear", Command.OK, 0);//GEN-LINE:|62-getter|1|62-postInit // write post-init user code here }//GEN-BEGIN:|62-getter|2| return clear_fields; } COM: <s> returns an initiliazed instance of clear fields component </s>
funcom_train/13259423
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setRegionClassDropRule(Object regionKey, Object classKey, Boolean drop) { if (!blockingRegionsKeyset.contains(regionKey) || !classesKeyset.contains(classKey)) { return; } if (!((BlockingClassData) blockingDetailsBDM.get(classKey, regionKey)).drop.equals(drop)) { save = true; } ((BlockingClassData) blockingDetailsBDM.get(classKey, regionKey)).drop = drop; } COM: <s> sets a drop rule for a given region and an user class </s>
funcom_train/40469883
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Tuple2D getTuple(int dataPointIndex) { ArgChecker.isLTE(dataPointIndex, this.size() - 1, "dataPointIndex"); this.flyweightTuple.setDomainAndRange(domain, rangeTuples); this.flyweightTuple.setDataPointIndex(dataPointIndex); return this.flyweightTuple; } COM: <s> returns the datapoint tuple at the specified index within this </s>
funcom_train/46377114
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void close (BigInteger slaveID) { MasterClientSocket mcs; synchronized (clientSocketMap) { mcs = clientSocketMap.get(slaveID); } if (mcs == null) { logger.warning("Slave to be closed isn't connected, slaveID = " + slaveID); return; } mcs.close(); } COM: <s> close a particular child socket </s>
funcom_train/5236122
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void onTraverse(TraverseEvent e) { // set selection to the appropriate next element: switch (e.keyCode) { case SWT.ARROW_UP: // Go to previous item case SWT.ARROW_DOWN: // Go to next item { // Just don't treat the event break; } default: { if (e.detail == SWT.TRAVERSE_ESCAPE || e.detail == SWT.TRAVERSE_RETURN) { e.doit = false; } else { super.onTraverse(e); } break; } } } COM: <s> overwrite the on traverse method to ignore arrowup and arrowdown events so </s>
funcom_train/1150196
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getOkCommand21() { if (okCommand21 == null) {//GEN-END:|260-getter|0|260-preInit // write pre-init user code here okCommand21 = new Command("Ok", Command.OK, 0);//GEN-LINE:|260-getter|1|260-postInit // write post-init user code here }//GEN-BEGIN:|260-getter|2| return okCommand21; } COM: <s> returns an initiliazed instance of ok command21 component </s>
funcom_train/31899456
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void activateOptions() { if(fileName != null) { try { setFile(fileName, fileAppend); } catch(java.io.IOException e) { errorHandler.error("setFile("+fileName+","+fileAppend+") call failed.", e, ErrorCode.FILE_OPEN_FAILURE); } } } COM: <s> if the a value for </s>
funcom_train/44533894
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void resolve() throws InvictaProjectException { if (this.isResolved) return; // Resolve the global component resolveGlobalComponent(); Logger.info("Resolving components: "); // Go over all components and resolve them. Iterator iterator = this.components.entrySet().iterator(); while(iterator.hasNext()) { Map.Entry entry = (Map.Entry)iterator.next(); String key = (String) entry.getKey(); ComponentDefinition component = (ComponentDefinition)entry.getValue(); // Resolve the component. component.resolve(this, 0); } System.out.print("\n"); this.isResolved = true; } COM: <s> resolve the project definition by resolving all defined components </s>
funcom_train/34888592
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { StringBuffer buffer = new StringBuffer(); Iterator<Insertion> ii = insertions.iterator(); while ( ii.hasNext() ) { Insertion i = ii.next(); buffer.append( i.getPattern() ); buffer.append(" -> "); buffer.append( i.getValue() ); buffer.append(" /\n"); } return buffer.toString(); } COM: <s> get list of insertion objects for strings inserted into file contents </s>
funcom_train/47302954
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void closeAll() { List<ArchitectSession> doomedSessions = new ArrayList<ArchitectSession>(getSessions()); for (ArchitectSession s : doomedSessions) { if (s instanceof ArchitectSwingSession) { ((ArchitectSwingSession) s).close(); } else { s.close(); } } } COM: <s> attempts to close all sessions that were created by this context </s>
funcom_train/48212181
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void dataChanged() { if (!SwingUtilities.isEventDispatchThread()) { // This is a runtime verification for events dispatched to // this method from threads that are not from the vent dispatch one. throw new RuntimeException("A call to a UI update was sent from a thread other than the event dispatch thread. See ResultSetTableModel."); } fireTableDataChanged(); } COM: <s> hook for allowing this model to properly track streaming queries </s>
funcom_train/27988120
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void frequenceCouplHydroTracer(int newFrequenceCouplHydroTracer) { if (frequenceCouplHydroTracer_==newFrequenceCouplHydroTracer) return; frequenceCouplHydroTracer_ = newFrequenceCouplHydroTracer; UsineLib.findUsine().fireObjetModifie(toString(), tie(), "frequenceCouplHydroTracer"); } COM: <s> frequence coupl hydro tracer </s>
funcom_train/8797189
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setInclinationAngle( double theta ) { Transform3D rotation = new Transform3D(); AxisAngle4d axisAngle; Vector3d azimuth; // Convert theta to radians theta *= (Math.PI / 180); azimuth = new Vector3d( 1, 0, 0 ); axisAngle = new AxisAngle4d( azimuth, theta ); rotation.setRotation( axisAngle ); systemTransform.setTransform( rotation ); } COM: <s> set inclination angle </s>
funcom_train/19066131
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void verify(String address) throws IOException, SMTPException { try { sendCommand("VRFY", new String[] { address }); SMTPResponse response = readSingleLineResponse(); if (response.isERR()) throw new SMTPException(response); } catch (SocketException e) { // Catch the exception if it was caused by // dropping the connection if (state != NOT_CONNECTED) throw e; } } COM: <s> sends a vrfy command which verifies the given email address </s>
funcom_train/29931684
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void createParagraphs(String text, SectionImpl section) { String[] paras = text.split("\n\\w*\n"); log.debug(String.format("Section end: %d\t section length: %d", section.getEnd(), section.getTitle().length() )); int paraOffset = section.getEnd() + 1; for (String para : paras) { Paragraph part = new Paragraph(para, section, paraOffset); section.addTextPart(part); paraOffset += part.length(); } } COM: <s> all n w n are treated as a paragraph end </s>
funcom_train/10619355
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setAddress(int index, long value) { if (addr != 0) { checkIndex(index, POINTER_SIZE == 8 ? 8 : 4); macc.setPointer(addr + index, value); } else { if (POINTER_SIZE == 8) { setInt64InArray(index, value); } else { setInt32InArray(index, (int) value); } } } COM: <s> sets the native address to the specified index </s>
funcom_train/4557998
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: // public void broadcastMessage(MapleCharacter source, MaplePacket packet) { // synchronized (characters) { // for (MapleCharacter chr : characters) { // if (chr != source) { // chr.getClient().getSession().write(packet); // } // } // } // } COM: <s> broadcasts the given packet to everyone on the map but the source </s>