__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/25304616
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void exportExcel(String form) throws RowsExceededException, WriteException, IOException, ParseException{ if(form != null){ String[] f = form.split("\\."); this.tabcand = findCandidatInFormation(f[0],f[1]); if(this.tabcand == null){ System.err.println("erreur tabcand null"); } else{ WritingXLS w = new WritingXLS(); w.exportXLS(this.tabcand,formationName+"gfarce"); } } } COM: <s> exporte sous forme de fichier excel les candidats dune formation </s>
funcom_train/21099620
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean accept(File dir, String name) { for (int i = 0; i < this.extensions.length; i++) { String extension = this.extensions[i]; if (name.toLowerCase().endsWith(extension.toLowerCase())) { return true; } } return false; } COM: <s> includes all files that end in the specified extension case insensitively </s>
funcom_train/22718461
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void writeTable(Table table) throws IOException { writeStartElement(FileOpener.XML_ELEMENT_TABLE, FileOpener.ATTRIBUTE_FIELD_NAME, table.getName()); writeLocale(String.valueOf(table.getX()), String.valueOf(table.getY())); writeFields(table.getFields()); writeEndElement(FileOpener.XML_ELEMENT_TABLE); } COM: <s> write out the table in xml format </s>
funcom_train/26484000
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); if (I18N.get("GUI.ok").equals(cmd)) { string = new String(stringField.getText()); dispose(); } else if (I18N.get("GUI.cancel").equals(cmd)) { dispose(); } } COM: <s> handles the buttons </s>
funcom_train/44457904
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void registerProperty(String name) { Set propertiesSet = (Set) getProperty("_propertiesSet"); if (propertiesSet != null) { propertiesSet.add(name); } else { propertiesSet = new HashSet(); propertiesSet.add(name); setProperty("_propertiesSet", propertiesSet); } } COM: <s> registers a property as manually set by the user </s>
funcom_train/46736384
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setCustomControllerRef(DisplayModel customControllerRef) { if (Converter.isDifferent(this.customControllerRef, customControllerRef)) { DisplayModel oldcustomControllerRef= new DisplayModel(this); oldcustomControllerRef.copyAllFrom(this.customControllerRef); this.customControllerRef.copyAllFrom(customControllerRef); setModified("customControllerRef"); firePropertyChange(String.valueOf(RECORDITEMTYPETRANSITIONS_CUSTOMCONTROLLERREFID), oldcustomControllerRef, customControllerRef); } } COM: <s> custom controller to process transitions </s>
funcom_train/44137006
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void notifyTitleInclude(OSMElementEditorPanel ec, OSMElement elt, int type) { for(int i = 0;i < m_ClientList.size();i++) { OSMElementEditorListener lster = (OSMElementEditorListener)m_ClientList.get(i); lster.onTitleInclude(new OSMElementEditorEvent(ec, elt, type)); } } COM: <s> to notify a title inclusion </s>
funcom_train/18657050
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private URL createURLForNewFile(String Extension){ String Filename=this.NewFilePrefix+Integer.toString(++NewFileIndex)+Extension; URL Result=null; try{ Result=URLHelper.newChildURL(this.BaseURL, Filename); }catch(MalformedURLException e){ System.err.println(e.toString()); } return Result; } COM: <s> generate a url for a new file </s>
funcom_train/36949150
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean makeSpace (int space) { int limit; limit = this.getSpaceLimit(); /* if space is already available */ if (fCurrentSpace + space <= limit) { return true; } /* if entry is too big for cache */ if (space > limit) { return false; } /* Free up space by removing oldest entries */ while (fCurrentSpace + space > limit && fEntryQueueTail != null) { this.privateRemoveEntry (fEntryQueueTail, false); } return true; } COM: <s> ensures there is the specified amount of free space in the receiver </s>
funcom_train/3425252
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void cacheGrammars(String grammarType, Grammar[] grammars) { // better give both grammars a shot... super.cacheGrammars(grammarType, grammars); fGrammarPool.cacheGrammars(grammarType, grammars); } // cacheGrammars(grammarType, Grammar[]); COM: <s> give the grammar pool the option of caching these grammars </s>
funcom_train/23357130
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JTable getDuplicateKeywordTable() { if (DuplicateKeywordTable == null) { DuplicateKeywordTable = new JTable(); DuplicateKeywordTable.setModel(new AbstractTableModel(){ public int getColumnCount() { // TODO Auto-generated method stub return 7; } public int getRowCount() { // TODO Auto-generated method stub return 7; } public Object getValueAt(int rowIndex, int columnIndex) { // TODO Auto-generated method stub return "TRY"; }}); } return DuplicateKeywordTable; } COM: <s> this method initializes duplicate keyword table </s>
funcom_train/22551803
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void readyForWriting() { if (_isChoked || _requested.isEmpty()) return; usingSlot = true; int proceed = RouterService.getUploadSlotManager().requestSlot( this, !context.getDiskManager().isComplete()); if (proceed == -1) { // denied, choke the connection usingSlot = false; choke(); } else if (proceed == 0) beginPieceSend(); // else queued, will receive callback. } COM: <s> notifies this that the connection is ready to write the next chunk of </s>
funcom_train/28147383
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public BDD getOrderBDDAppend(String cnfFileName, String ordFileName) { this.fileNameControl(cnfFileName, ".cnf"); // No specific extension for order files. //this.fileNameControl(ordFileName, ".ord"); this.fileNameControl(ordFileName); Parser parser = new Parser(this, cnfFileName); return parser.BDDMakerAppend(parser.formatCnf(), ordFileName); } COM: <s> method get order bddappend </s>
funcom_train/25362132
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void intialize() { if (main_menu_instance != null) { // get the screen resolution Dimension screen = Toolkit.getDefaultToolkit().getScreenSize(); // intialize the main menu // set the menu to the maximum size according to the system resolution main_menu_instance.setSize(screen.width, screen.height - 40); main_menu_instance.setAlwaysOnTop(false); } } COM: <s> initialize the main menu object </s>
funcom_train/14460781
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setIxfe(int i){ this.ixfe = i; byte[] newxfe = ByteTools.cLongToLEBytes(i); byte[] b = this.getData(); System.arraycopy(newxfe, 0, b, 6, 2); this.setData(b); } COM: <s> sets the ixfe for this record </s>
funcom_train/39467901
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void show() { if (!appFrame.isVisible()) { appFrame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); appFrame.addWindowListener(new ApplicationQuitter<D>(this)); appFrame.pack(); appFrame.setVisible(true); } } COM: <s> invoke this as soon as the application is ready to display </s>
funcom_train/29968197
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void backupDirectories() { for (File backupSourceDirectory : newSourceDirs) { if (isProcessCanceled()) return; backupprogress++; File backupDir = new File(destinationDir.getAbsolutePath() + backupSourceDirectory.getAbsolutePath().substring( sourceDirLength)); listener.onProcess(Process.WriteBackupStart, backupSourceDirectory, backupDir); backupDir.mkdirs(); listener.onProcess(Process.WriteBackupEnd, backupSourceDirectory, backupDir); } } COM: <s> create the new backup create all new moved directories from the source </s>
funcom_train/3741221
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateIndex(int offset) { indexToVertex.clear(); vertexToIndex.clear(); int i = offset; for (Iterator iter = graph.getVertices().iterator(); iter.hasNext();) { ArchetypeVertex v = (ArchetypeVertex) iter.next(); Integer ix = new Integer(i); indexToVertex.put(ix, v); vertexToIndex.put(v, ix); i++; } numNodes = graph.getVertices().size(); } COM: <s> clears previous index if it existed puts in a new one </s>
funcom_train/39052611
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean waitForLogin() { synchronized (lock) { try { if (loginAck == false) { lock.wait(WAIT_TIME); } if (loginAck != true) { throw new RuntimeException(toString() + " login timed out"); } if (loginRedirect == true) { return false; } return loginSuccess; } catch (InterruptedException e) { throw new RuntimeException(toString() + " login timed out", e); } } } COM: <s> waits for a login acknowledgement and returns </s>
funcom_train/28293022
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getCourseID() { if (logger.isDebugEnabled()) { logger.debug(" :: SeqActivityTree --> BEGIN - getCourseID"); logger.debug(" ::--> Student ID : " + mCourseID); logger.debug(" :: SeqActivityTree --> END - getCourseID"); } return mCourseID; } COM: <s> retrieves id of the course associated with this activity tree </s>
funcom_train/3370996
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getAccessibleChildrenCount() { TreeModel model = JTree.this.getModel(); if (model == null) { return 0; } if (isRootVisible()) { return 1; // the root node } // return the root's first set of children count return model.getChildCount(model.getRoot()); } COM: <s> returns the number of top level children nodes of this </s>
funcom_train/39168854
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean add(String varName, String varValue) { if(variables.containsKey(varName)) { return false; } else { // before storing varValue try to find if it is // a Character Range // a Character Set // a Sting Set variables.put(varName,varValue); return true; } } COM: <s> adds the variable name and its value into the hash table </s>
funcom_train/51537927
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void lSetChars() { cursor.index = tf.buffer.length(); // cursor at the end cursor.option = Text.PAINT_USE_CURSOR_INDEX; myInfo.isModified = true; myInfo.topVis = 0; // force recalculate incase new content // is much shorter setVerticalScroll(); lRequestPaint(); } COM: <s> notifies l f of a content change in the corresponding text box </s>
funcom_train/16786785
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getUpdatedOnIfAvailable(String ifNotAvailable) throws RQLException { Page page = getPage(); String templateElementName = getParameter("pageUpdatedTmpltElemName"); if (page.contains(templateElementName)) { ReddotDate rdDate = page.getStandardFieldDateValue(templateElementName); if (rdDate != null) { return rdDate.getAsyyyyMMdd(); } } return ifNotAvailable; } COM: <s> gets the updated date if template element available </s>
funcom_train/22784119
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public TagGroup getTagTree() { Set<TagGroup> result = get(new Predicate<TagGroup>() { @Override public boolean match(TagGroup tagGroup) { return tagGroup.isRoot(); } }); if (result.size() == 0) { return null; } else if (result.size() > 1) { throw new IllegalStateException("You have more than one Tag Root"); } TagGroup root = result.iterator().next(); return root; } COM: <s> get the root element of the tag tree </s>
funcom_train/35825235
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Boolean BuildMenu(Menu menu) { menu.add( 0, ACTION_KUDO_LIST, "View Your KudoStars" ); menu.add( 0, ACTION_KUDO_FRIEND, "View Friend's KudoStars" ); menu.add( 0, ACTION_KUDO_SUBMIT, "Sumbit KudoStars" ); menu.add( 0, ACTION_KUDO_PREF, "Preferences" ); return true; } COM: <s> build the menu </s>
funcom_train/20896109
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetProject() { System.out.println("getProject"); Role instance = null; String expResult = ""; String result = instance.getProject(); 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 get project method of class it </s>
funcom_train/2948616
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void deConfigStatusListener(StatusBar stBar) { MenuElement[] components = getSubElements(); //go through children and remove listeners for (int i = 0; i < components.length; i++) { if (components[i] instanceof EditorMenu) { ((EditorMenu) components[i]).deConfigStatusListener(statusBar); } } statusBar = null; } COM: <s> just clean up sefault status message </s>
funcom_train/46580995
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void performAction() { TopComponent tc = WindowManager.getDefault().getRegistry().getActivated(); if (tc == null) return; HelpCtx helpCtx = tc.getHelpCtx(); if (helpCtx == null) return; Help help = (Help)Lookup.getDefault().lookup(Help.class); if (help == null) return; help.showHelp(helpCtx); } COM: <s> perform the action to show help for the active screen </s>
funcom_train/30009153
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetTitle() { System.out.println("getTitle"); Document instance = new Document(); String expResult = ""; String result = instance.getTitle(); 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 get title method of class papyrus </s>
funcom_train/29829135
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected BSPresencesOfJID getJIDPresences(JID jid) { // gets list of presences for jid without resource //String str = getJIDHashString(jid, false); //return (BSPresencesOfJID) curPresences.get(str); if (jid == null) return null; return (BSPresencesOfJID) curPresences.get(jid.getSimpleJID()); } COM: <s> returns code bspresences of jid code for given jid </s>
funcom_train/18746874
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private CtrlAut buildAutomaton(CtrlTree tree) throws FormatException { try { CtrlAut aut = this.builder.run(tree, this.namespace); this.builder.getErrors().throwException(); return aut; } catch (RecognitionException re) { throw new FormatException(re.getMessage(), re.line, re.charPositionInLine); } } COM: <s> builds the control automaton for a given parse tree </s>
funcom_train/29680235
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getLabel() { if (label != null) { return label; } else { return getConnection().getCredentials().getUserName() + "@" //$NON-NLS-1$ + getConnection().getHost() + ":" + getConnection().getPort(); //$NON-NLS-1$ } } COM: <s> returns the label for this server connection returns a predefined one if user </s>
funcom_train/26590039
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean first() throws DException { boolean allFalse = true; for (int i = 0; i < fullTextIndex.length; i++) if (fullTextIndex[i].first()) allFalse = false; direction = true; if(allFalse) { state = AFTERLAST; return false; } initializeIteratorIndexWithSmallest(); state = VALIDSTATE; return true; } COM: <s> this method returns the first record from the full text indexed table </s>
funcom_train/34138982
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void init() { boolean success = mOcrAPI.init(mTessdata, mLanguage); if (success) { mOcrAPI.setPageSegMode(TessBaseAPI.PSM_SINGLE_LINE); mOcrAPI.setVariable(TessBaseAPI.VAR_CHAR_WHITELIST, DEFAULT_WHITELIST); mInitialized = true; } } COM: <s> initializes the ocr api for the specified language pack </s>
funcom_train/37421260
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void dettachContact(Contact contact){ String username = contact.getUsername(); String nickname = contact.getNickname(); if(isParticipating(username)) { participants.remove(contact); if(GoTClient.DEBUG) System.out.println("ConversationManager: " +username+" has left "+getId()+"\n"); service(nickname+" has left"); } } COM: <s> removes a contact from this conversation </s>
funcom_train/20286111
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getEstimatedLOEValue() { String toReturn = String.valueOf(estimatedLOE); if (toReturn.endsWith(".0")) { toReturn = (toReturn.substring(0, toReturn.length() - 2)); } if ("0".equals(toReturn) || estimatedLOE < 0) { toReturn = ""; } return toReturn; } COM: <s> gets the estimated loevalue attribute of the task object </s>
funcom_train/14161382
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private BindingOperationInfo getBindingOperationInfo(Method methodCalled) { BindingOperationInfo bio = methodToBio.get(methodCalled.toString()); LOG.debug("BIO is unwrapped:" + bio.isUnwrapped()); if (bio.isUnwrappedCapable()) { bio = bio.getWrappedOperation(); } return bio; } COM: <s> returns the bio of the service model from ths code method code called </s>
funcom_train/3490550
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setAttribute(String name, Object value) { if ("recipients".equalsIgnoreCase(name)) setRecipients((String)value); else if ("sender".equalsIgnoreCase(name)) setSender((String)value); else if ("subject".equalsIgnoreCase(name)) setSubject((String)value); else if ("content".equalsIgnoreCase(name)) setContent((String)value); else props.put(name, value); } COM: <s> assign a value to a named attribute of the action </s>
funcom_train/33849263
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addOption(String option, String argumentDesc, String description) { optionList.add(option); optionDescriptionMap.put(option, description); requiresArgumentSet.add(option); argumentDescriptionMap.put(option, argumentDesc); int width = option.length() + 3 + argumentDesc.length(); if (width > maxWidth) maxWidth = width; } COM: <s> add an option requiring an argument </s>
funcom_train/46077449
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setNumTilesets(int num) { Tileset[] res = new Tileset[num]; int count = 0; //Copy old tilesets if (tilesets != null) { for (; count<tilesets.length && count<num; count++) { res[count] = tilesets[count]; } } //Init new tilesets for (; count<num; count++) { res[count] = new Tileset(count); } tilesets = res; } COM: <s> resizes the tilesets array keeping old entries </s>
funcom_train/3080786
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void insert(int index, AbstractPane pane) { verifyAddition(pane); int count = getComponentCount(); if (index == count) { open(pane); } else if (index > count) { throw new IndexOutOfBoundsException(Integer.toString(index)); } else { pane.setVisible(false); super.add(pane, index); } } COM: <s> inserts the pane into the stacked pane </s>
funcom_train/25966285
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public GlobalizationPreferences setNumberFormat(int style, NumberFormat format) { if (isFrozen()) { throw new UnsupportedOperationException("Attempt to modify immutable object"); } if (numberFormats == null) { numberFormats = new NumberFormat[NF_LIMIT]; } numberFormats[style] = (NumberFormat) format.clone(); // for safety return this; } COM: <s> sets a number format explicitly </s>
funcom_train/7535011
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void processCreateAlias() throws HsqlException { String alias; String methodFQN; try { alias = tokenizer.getSimpleName(); } catch (HsqlException e) { if (session.isProcessingScript()) { alias = null; } else { throw e; } } tokenizer.getThis(Token.T_FOR); methodFQN = upgradeMethodFQN(tokenizer.getSimpleName()); if (alias != null) { database.getAliasMap().put(alias, methodFQN); } } COM: <s> if an invalid alias is encountered while processing an old script </s>
funcom_train/11514029
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSingletonPatternInSerialization() { final Object[] singletones = new Object[] { ExceptionClosure.INSTANCE, NOPClosure.INSTANCE, }; for (final Object original : singletones) { TestUtils.assertSameAfterSerialization( "Singletone patern broken for " + original.getClass(), original ); } } COM: <s> test that all closure singletones hold singleton pattern in </s>
funcom_train/43097280
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void actionPerformed(ActionEvent e) { if (!ProjectBrowser.getInstance().askConfirmationAndSave()) return; File toOpen = new File(filename);; // load of the new project // just reuse of the ActionOpen object ProjectBrowser.getInstance().loadProject(toOpen, true); } COM: <s> performs the save and reload of a project </s>
funcom_train/18895222
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object obj) { if (obj == null) { return false; } else if (obj == this) { return true; } else if (obj instanceof BlankNodeImpl && this.nodeId != 0 && this.nodeId == ((BlankNodeImpl)obj).nodeId) { return true; } else { return false; } } COM: <s> compare node for equality </s>
funcom_train/47140211
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setEnabled (boolean fEnabled) { m_fEnabled = fEnabled; synchronized (getPeerLock()) { if (m_jmiPeer != null) { m_jmiPeer.setEnabled (fEnabled); } if (m_jmMenuPeer != null) { m_jmMenuPeer.getItem (0).setEnabled (fEnabled); } } } COM: <s> set the enabled state of this menu sheet item </s>
funcom_train/25860384
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JTabbedPane getMainTabbedPane() { if (mainTabbedPane == null) { mainTabbedPane = new JTabbedPane(); mainTabbedPane.setToolTipText(""); mainTabbedPane.setName("Monitor"); mainTabbedPane.addTab("Monitor", null, getMonitorPanel(), "Displays a hierarchical view of AspectSense elements"); mainTabbedPane.addTab("Overview", null, getGraphOverviewScrollPane(), null); } return mainTabbedPane; } COM: <s> this method initializes main tabbed pane </s>
funcom_train/48053873
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setElementAlias(int i, String newAlias) { CompositeNodeItemElement e = elements.get(i); Object value = null; if (bindings != null) { value = bindings.remove(e.getAlias()); } e.setAlias(newAlias); if (bindings != null) { value = bindings.put(newAlias, value); } } COM: <s> redefines the variable name used by script variable element </s>
funcom_train/3924466
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setMode( int mode ) { if ( mode != this.mode ) { this.mode = mode; if ( mode == SYNC ) { stopWriter(); } else if ( mode == QUEUED ) { startWriter(); } else { throw new RuntimeException( "Invalid writer mode: "+mode ); } } } COM: <s> set new write mode sync or queued </s>
funcom_train/89806
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void getCurrentDateExpression(MethodBuilder mb) { // do any needed setup LocalField lf = getCurrentSetup(); // generated Java: // this.cdt.getCurrentDate(); mb.getField(lf); mb.callMethod(VMOpcode.INVOKEVIRTUAL, (String) null, "getCurrentDate", "java.sql.Date", 0); } COM: <s> this utility method returns an expression for current date </s>
funcom_train/43133260
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getWindowY() { String windowY = prop.getProperty("window.y"); if (windowY == null) { windowY = "0"; } try { return Integer.parseInt(windowY); } catch (NumberFormatException e) { logger.error("the window.y property is not an integer : "+e.getMessage()); return 0; } } COM: <s> get the windows y coordinate </s>
funcom_train/6263455
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void doNew() { if ( templateChanged ) { int status = promptSave( resString( "dubman.new_template_save" ) ); //$NON-NLS-1$ if ( status == JOptionPane.CANCEL_OPTION ) { return; } } jt = new JobTemplate(); templateFile = null; templateChanged = false; updateWindowTitle(); updateBulkTypeLabel(); refreshList(); } COM: <s> create a new template file </s>
funcom_train/44708824
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getAllEntityDeclarations() { // FIXME: this should be computed once StringBuffer sb = new StringBuffer(); for (Iterator i=m_orderedNames.iterator(); i.hasNext(); ) { sb.append(getEntityDeclaration((String) i.next())); sb.append(LINE_END); } return sb.toString(); } COM: <s> returns all character entity declarations as a single string of the </s>
funcom_train/4835292
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void actionPerformed(ActionEvent e) { LevelPack stdLevelPack = LevelPack.importLevel(new File(STANDARD_LEVEL_PACK_LOCATION)); if(stdLevelPack == null) { JOptionPane.showMessageDialog(PacFrame.this, STANDARD_LEVEL_PACK_NOT_FOUND_MSG, ERROR_PANE_HEADER, JOptionPane.ERROR_MESSAGE); } else { freeModel(); freeEditor(); model = new GameModel(stdLevelPack); model.addGameListener(PacFrame.this); setupGameScreen(); } } COM: <s> loads a new game using the standard level pack </s>
funcom_train/16630465
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getButton_show_classes() { if (button_show_classes == null) { button_show_classes = new JButton(); button_show_classes.setText("Classes"); button_show_classes.setPreferredSize(new Dimension(80, 25)); button_show_classes.setActionCommand("show_classes"); button_show_classes.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { map.show_classes(); } }); } return button_show_classes; } COM: <s> this method initializes button show classes </s>
funcom_train/3904569
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void layoutComponent(int xOffset, int yOffset) { // Quietly ignore a missing component, this just means this is a // virtual component created solely for layout purposes. if (component != null) { component.setBounds( getAttributeValue(AttributeType.LEFT) + xOffset, getAttributeValue(AttributeType.TOP) + yOffset, getAttributeValue(AttributeType.WIDTH), getAttributeValue(AttributeType.HEIGHT)); } } COM: <s> sets the bounds of the component being managed by these specifications </s>
funcom_train/51523605
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setLinguisticVariableName(final String lingVariableName) { String oldLingVariableName = this.linguisticVariableName; this.linguisticVariableName = lingVariableName; propertyChangeSupport.firePropertyChange(LINGUISTIC_VARIABLE_NAME_PROPERTY, oldLingVariableName, lingVariableName); // Delete linguistic term setLinguisticTermName(null); } COM: <s> sets the name of a linguistic variable belongs to the antecedent </s>
funcom_train/18336999
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void write(InputStream in) throws IOException { int n; int length = buf.length; while ((n = in.read(buf, count, length - count)) >= 0) { if ((count += n) >= length) { out.write(buf, count = 0, length); } } } COM: <s> writes the content of the input stream to the output stream </s>
funcom_train/13502841
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int countRelations(String relationName, Set<RelationshipTuple> objectRelations) { int count = 0; if (objectRelations == null) { return 0; } for (RelationshipTuple objectRelation : objectRelations) { if (objectRelation.predicate.equals(relationName)) {//This is one of the restricted relations count++; } } return count; } COM: <s> private utility method </s>
funcom_train/19285925
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean checkForErrors() { // This is quite a hack! /*if (pagePanel == null) { Maintenance.sendBug("pagePanel is null!!"); return false; }*/ if (page == null) { //Maintenance.sendBug("page is null!!"); // probably this is an invisible place. return false; } StringDataBit answersTable = page.getTableName(); if (answersTable != null) { return checkForErrors(answersTable); } else { return false; // can't check } } COM: <s> return true if errors were found </s>
funcom_train/33859909
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getCongPrenexPanel() { if (congPrenexPanel == null) { GridBagConstraints gridBagConstraints5 = new GridBagConstraints(); gridBagConstraints5.fill = GridBagConstraints.BOTH; gridBagConstraints5.weighty = 1.0; gridBagConstraints5.weightx = 1.0; congPrenexPanel = new JPanel(); congPrenexPanel.setLayout(new GridBagLayout()); congPrenexPanel.add(getCongPrenexSplitPane(), gridBagConstraints5); } return congPrenexPanel; } COM: <s> this method initializes cong prenex panel </s>
funcom_train/16380535
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addTaskTypePropertyDescriptor(Object object) { itemPropertyDescriptors.add (new UnsettablePropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_AddonSubTaskDefType_taskType_feature"), getString("_UI_PropertyDescriptor_description", "_UI_AddonSubTaskDefType_taskType_feature", "_UI_AddonSubTaskDefType_type"), CTEPackage.Literals.ADDON_SUB_TASK_DEF_TYPE__TASK_TYPE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the task type feature </s>
funcom_train/42422415
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void paintShields(Graphics2D g) { g.setPaint(Color.red); g.fillRect(280,Stage.PLAY_HEIGHT,Player.MAX_SHIELDS,30); g.setPaint(Color.blue); g.fillRect(280+Player.MAX_SHIELDS-player.getShields(),Stage.PLAY_HEIGHT,player.getShields(),30); g.setFont(new Font("Arial",Font.BOLD,20)); g.setPaint(Color.green); g.drawString("Shields",170,Stage.PLAY_HEIGHT+20); } COM: <s> draws the shield status </s>
funcom_train/22960304
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSquareError(double propError) { if (((BPLayer) myLay).outputLayer) squareError = (outValue - propError) * (sigmoidSenzitivity * outValue * (1 - outValue)); else squareError = propError * (/**/sigmoidSenzitivity * /**/outValue * (1 - outValue)); } COM: <s> count back propagation error of the neuron </s>
funcom_train/44165966
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Element handle(FreeColServer server, Connection connection) { ServerPlayer serverPlayer = server.getPlayer(connection); Unit unit; try { unit = serverPlayer.getFreeColGameObject(unitId, Unit.class); } catch (Exception e) { return DOMMessage.clientError(e.getMessage()); } // Valid, update. return server.getInGameController() .updateCurrentStop(serverPlayer, unit); } COM: <s> handle a update current stop message </s>
funcom_train/31804296
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void actionPerformed(ActionEvent ae) { if ("Add".equals(ae.getActionCommand())) { aglet.addresses.addElement(address.getAddress()); update(); } else if ("Remove".equals(ae.getActionCommand())) { int i = list.getSelectedIndex(); if (i >= 0) { aglet.addresses.removeElementAt(i); list.remove(i); } } else if ("Start!".equals(ae.getActionCommand())) { aglet.start(); } } COM: <s> handles the action event </s>
funcom_train/16864076
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getNameEnd(int pos) { if (!Tag.isXMLNameStartChar(sourceText.charAt(pos++))) return -1; try { while (Tag.isXMLNameChar(sourceText.charAt(pos))) pos++; // cost of IndexOutOfBoundsException in rare case of name ending at end of file is less than checking for end of file manually with each iteration. } catch (IndexOutOfBoundsException ex) {} return pos; } COM: <s> returns the end position of the a target blank href http www </s>
funcom_train/45623205
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addAlgorithmIdPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ALType_algorithmId_feature"), getString("_UI_PropertyDescriptor_description", "_UI_ALType_algorithmId_feature", "_UI_ALType_type"), MSBPackage.eINSTANCE.getALType_AlgorithmId(), true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the algorithm id feature </s>
funcom_train/40629814
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setRowActions(RowAction[] actions) { JavaScriptObject[] config = new JavaScriptObject[actions.length]; for (int i = 0; i < actions.length; i++) { RowAction column = actions[i]; config[i] = column.getJsObj(); } JavaScriptObject configJSO = JavaScriptObjectHelper.convertToJavaScriptArray(config); JavaScriptObjectHelper.setAttribute(this.configJS, "actions", configJSO); } COM: <s> sets the row actions for a column </s>
funcom_train/8719571
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isValidSet(TreeToNFAConverter nfabuilder, GrammarAST t) { boolean valid = true; try { //System.out.println("parse BLOCK as set tree: "+t.toStringTree()); nfabuilder.testBlockAsSet(t); } catch (RecognitionException re) { // The rule did not parse as a set, return null; ignore exception valid = false; } //System.out.println("valid? "+valid); return valid; } COM: <s> given set tree like set a b check that a and b </s>
funcom_train/20847057
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void notifyHello(String address, XMLElement hello) { try { helloByeListeners.lockRead(); for (int i = 0; i < helloByeListeners.size(); i++) { IHelloByeListener listener = (IHelloByeListener) helloByeListeners.elementAt(i); listener.onHello(address, hello); } } finally { helloByeListeners.unlock(); } } COM: <s> notify the listeners about the the wsd hello message </s>
funcom_train/10767472
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public OMElement send(OMElement msg, String url, long timeout) throws AxisFault { Options options = new Options(); EndpointReference target = new EndpointReference(url); options.setTo(target); options.setTimeOutInMilliSeconds(timeout); ServiceClient serviceClient = new ServiceClient(); serviceClient.setOptions(options); return serviceClient.sendReceive(msg); } COM: <s> sends the provided message to an axis2 deployed service allowing to set a </s>
funcom_train/12807801
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setTotalWidth(final float columnWidth[]) throws DocumentException { if (columnWidth.length != getNumberOfColumns()) throw new DocumentException(MessageLocalization.getComposedMessage("wrong.number.of.columns")); totalWidth = 0; for (int k = 0; k < columnWidth.length; ++k) totalWidth += columnWidth[k]; setWidths(columnWidth); } COM: <s> sets the full width of the table from the absolute column width </s>
funcom_train/13551592
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean load(byte[] buffer) { int i; // local cycle variable try { for (i=0; i<size; i++) memory[i]=buffer[i]; } catch (ArrayIndexOutOfBoundsException e) { for (int j=buffer.length+1; j<size; j++) memory[j]=0; // fill the other with 0 } return true; } COM: <s> load the memory with specific values retrive from a buffer </s>
funcom_train/32893029
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String relativeFileName( String ident ) { String value ; if( ident == null ) { value = StructDescr.getProperty( group + "." + property,""); } else { value = StructDescr.getProperty( group + "." + ident + "." + property,""); } if( value == null ) return null; if( value.startsWith( StructDescr.getBuildDir() ) ) { value = value.substring( StructDescr.getBuildDir().length() ); } return value; } COM: <s> return a filename that is relative to the build dir </s>
funcom_train/2886730
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Serializer createSerializer(OutputStream out) throws SmartFrogRuntimeException { try { Serializer s = new Serializer(out, encoding); s.setIndent(indent); s.setLineSeparator(lineSeparator); s.setMaxLength(maxLength); return s; } catch (UnsupportedEncodingException e) { throw new SmartFrogRuntimeException(ERROR_UNSUPPORTED_ENCODING + encoding, this); } } COM: <s> create a serializier </s>
funcom_train/22490999
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String PASS(String args) { String reply; if (!T.isLoggedIn()) { if (args.equals(as.getProperties().getProperty("AdminPassword"))) { reply = codes.getCode(100); T.setLoggedIn(true); } else { reply = codes.getCode(103); } } return ""; } COM: <s> this method is for supplying authentication to the administration server </s>
funcom_train/23891270
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setUserName(String userName) { //only if not a null pointer and not empty if(userName != null && !userName.trim().equals("")) { this.userName = userName; } //else set to an default else { this.userName = trans.getString("MainWindow.DefaultName")+port; } } COM: <s> set a new user name for this client </s>
funcom_train/1126954
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object findObject(Stack nameStack) { String currentLevelName = (String)nameStack.peek(); Object found = null; if (currentLevelName.equals(_name)) { nameStack.pop(); found = recurseCategories(nameStack); if (found == null) { found = recurseParameters(nameStack); } } return found; } COM: <s> recursively searches for an object </s>
funcom_train/46655092
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public List editCategory(Category category, Category newCategory) { try { Object aux = DAOAlbum.getCategoryByName(category.getName()); if ( aux != null) { // Category cat = new Category(); // cat.setName(newCategory); newCategory.setid_category((Integer)aux); DAOAlbum.editCategory(newCategory); } return DAOAlbum.getCategories(); }catch (Exception e) { e.printStackTrace(); } return null; } COM: <s> edits a category </s>
funcom_train/49635443
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void close() throws IOException { // if someone isn't using getReader() API, we want to be sure to // forceMerge since presumably they might open a reader on the dir. if (getReaderCalled == false && r.nextInt(8) == 2) { doRandomForceMerge(); } w.close(); } COM: <s> close this writer </s>
funcom_train/12195576
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean sendEmail(final Message message) { boolean succeeded = false; for (int i = 0; i < 3 && !succeeded; i++) { try { Transport.send(message); succeeded = true; } catch (MessagingException e) { LOGGER.error(EXCEPTION_LOCALIZER.format("unable-to-send-email"), e); } } return succeeded; } COM: <s> sends the specified e mail message </s>
funcom_train/12775430
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void computeI2BMapping() { instruction2Block = new int[getInstructions().length]; for (Iterator it = iterator(); it.hasNext();) { final BasicBlock b = (BasicBlock) it.next(); for (int j = b.getFirstInstructionIndex(); j <= b.getLastInstructionIndex(); j++) { instruction2Block[j] = getNumber(b); } } } COM: <s> compute a mapping from instruction to basic block </s>
funcom_train/28774628
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Gauge getGauge4() { if (gauge4 == null) {//GEN-END:|133-getter|0|133-preInit // write pre-init user code here gauge4 = new Gauge("Baby Needs", false, 100, 50);//GEN-LINE:|133-getter|1|133-postInit // write post-init user code here }//GEN-BEGIN:|133-getter|2| return gauge4; } COM: <s> returns an initiliazed instance of gauge4 component </s>
funcom_train/25290288
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setDepthBufferWriteEnable(boolean state) { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_DEPTH_ENABLE_WRITE)) throw new CapabilityNotSetException(Ding3dI18N.getString("RenderingAttributes2")); if (isLive()) ((RenderingAttributesRetained)this.retained).setDepthBufferWriteEnable(state); else ((RenderingAttributesRetained)this.retained).initDepthBufferWriteEnable(state); } COM: <s> enables or disables writing the depth buffer for this object </s>
funcom_train/7659840
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public E poll() { final ReentrantLock qlock = this.qlock; for (;;) { Node node; qlock.lock(); try { node = waitingProducers.deq(); } finally { qlock.unlock(); } if (node == null) return null; else { Object x = node.getItem(); if (x != null) return (E)x; // else retry } } } COM: <s> retrieves and removes the head of this queue if another thread </s>
funcom_train/28355087
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static private String getConnectionText( final Channel channel, final String text ) { final boolean isConnected = channel != null && channel.isConnected(); final String prefix = "<html><body> "; final String suffix = " </font></body></html>"; final String font = "<font color=\"" + ((isConnected) ? "#00aa00" : "#ff0000") + "\">"; return prefix + font + text + suffix; } COM: <s> get the html text to display the connection status </s>
funcom_train/8059807
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Gson getGson(ProtocolVersion protocolVersion) { // Returns the last entry which protocol version is less than or equal to // the given protocol version. Entry<ProtocolVersion, Gson> entry = gsons.floorEntry(protocolVersion); if (entry == null) { LOG.severe("Could not find the proper Gson for protocol version " + protocolVersion); return null; } return entry.getValue(); } COM: <s> returns an instance of gson for the given protocol version </s>
funcom_train/31931116
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Spring maxHeight(JPanel pane, int numCols, int row) { Spring height = Spring.constant(0); for (int c = 0; c < numCols; c++) { height = Spring.max(height, constrainCell(pane, row, c, numCols) .getHeight()); } return height; } COM: <s> compute the maximum height of all columns in the given code row code </s>
funcom_train/44987297
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setValue(String tagName, Object value) { PG_AttributeSlot slot; for (int i = 0; i < attribute.size(); i++) { slot = (PG_AttributeSlot) attribute.get(i); if (slot.getILIName().equals(tagName)) { slot.setValue(th.getFullName() + "." + tagName, value); } } } COM: <s> setting a attribute value by tag name interlisname </s>
funcom_train/50846170
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testIsNullable() throws Exception { int param = 1; ParameterMetaData pmd = getMetaData(); int expResult = ParameterMetaData.parameterNullableUnknown; int result = pmd.isNullable(param); assertEquals("pmd.isNullable(" + param + ")", expResult, result); } COM: <s> test of is nullable method of interface java </s>
funcom_train/9688034
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public AbstractButton getHelpButton() { // create the help hutton if it is not // created yet and return it if (this.helpButton == null) { this.helpButton = new JButton(iconHelp); String tooltipText = resLocalizedStrings.getString("helpButton.tooltip"); this.helpButton.setToolTipText(tooltipText); } return this.helpButton; } COM: <s> returns the help button for this panel </s>
funcom_train/40621315
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void moveFocus(FastTreeItem selection) { moveSelectionBar(selection); DOM.scrollIntoView(focusable); HasFocus focusableWidget = selection.getFocusableWidget(); if (focusableWidget != null) { focusableWidget.setFocus(true); } else { // Ensure Focus is set, as focus may have been previously delegated by // tree. impl.focus(focusable); } } COM: <s> move the tree focus to the specified selected item </s>
funcom_train/8525609
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String resolveService(HttpRequest request) { for (int i = 0, size = resolvers.size(); i < size; ++i) { ServiceResolver resolver = resolvers.get(i); String name = resolver.resolveService(request); if (name != null) { return name; } } return null; } COM: <s> requests all child resolvers to resolve the request until either </s>
funcom_train/12704854
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setRelsDocument(Document aDocument) throws UnsupportedEncodingException, TransformerException { ByteArrayOutputStream theBOS = new ByteArrayOutputStream(); XMLUtils.getInstance().saveDocument(aDocument, theBOS); DOCXDocumentEntry theContentEntry = findEntryByName(RELS_ENTRY_NAME); theContentEntry.setData(theBOS.toByteArray()); } COM: <s> set the rels document </s>
funcom_train/288242
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public Subject getSubject() { Subject subject = null; if (getIdentity() != null) { subject = getIdentity().getSubject(); } if (subject == null) { try { subject = (Subject) PolicyContext .getContext("javax.security.auth.Subject.container"); } catch (Exception e) { // e.printStackTrace(); } } if (subject == null) { // TODO need to handle lookup with credentials in unit tests to remove this dependency subject = SecurityAssociation.getSubject(); } return subject; } COM: <s> get the current subject </s>
funcom_train/31928810
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setCR_bit(int crb, boolean val) { int crf = crb >> 2; switch (crb & 0x3) { case 0: crf_lt[crf] = val; break; case 1: crf_gt[crf] = val; break; case 2: crf_eq[crf] = val; break; case 3: crf_so[crf] = val; break; } } COM: <s> set a bit of the condition register </s>
funcom_train/3631900
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void engage(int value) { PosEvent currEvent = context().eventStack().event(); if (value >= 0) { context().addToInput((char)value); if (currEvent instanceof PosNumberDialog) { PosNumberDialog numberDialog = (PosNumberDialog) currEvent; promptText = numberDialog.promptText(); }else{ promptText = ""; } numText = context().inputLine(); } context().operPrompt().update(this); } COM: <s> append this charcter to the end of the input and </s>