__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/29709366
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void dumpStatus() { if (isInRangeMode()) { // System.out.println("Range start: " + // this.getRangeSelection().getStartPosition()); // System.out.println("Range end: " + // this.getRangeSelection().getEndPosition()); } else { // System.out.println("Object selection mode"); } } COM: <s> debug method dump some debug information to the console </s>
funcom_train/4923542
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testLinkUriToSectionInput() throws Exception { // Add section for handling request AutoWireSection section = this.source.addSection("SECTION", ClassSectionSource.class.getName(), MockTemplateLogic.class.getName()); this.source.linkUri("test", section, "submit"); this.source.openOfficeFloor(); // Ensure can send to URI this.assertHttpRequest("/test", 200, "submitted"); } COM: <s> ensure able to link uri to </s>
funcom_train/41682820
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean hasNext(int type) { //find next findNext(type); //check one exits if( ( (current[type] < queue[type].size()) || (gCurrent[type] < gQueue[type].size())) && (gCurrent[type] + current[type]) < cutOff[type]) return true; else return false; } COM: <s> test if there is another element on the queue to process </s>
funcom_train/36190875
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean isPssEventFromLocalPeer(PSSEvent event) { boolean retValue = false; try { retValue = (event.geteventName().contains(this.peerGrpMgr.getMyPeerInfo().getPeerID())); } catch (ONMException e) { this.logger.error("Unable to retrieve local peer identifier", e); } return retValue; } COM: <s> check if the pss event originated from the local peer </s>
funcom_train/9645364
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void saveAttributeValue(Element attributeElement) { // Remove all values... attributeElement.removeContent(); // ...and add all values from the table to the XML-element. for (int tableIndex = 0; tableIndex < tableAttributeValue .getItemCount(); tableIndex++) { Value currentValue = super .getAttributeValueFromTableItem(tableAttributeValue .getItem(tableIndex)); saveAttributeValue(attributeElement, currentValue, comboInclude.getSelectionIndex() == 0); } } COM: <s> create from the attribute values the task file </s>
funcom_train/48939776
/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 instanceof Lights) { Lights l2 = (Lights) obj; if (l2.dimension != dimension) return false; // we always use the same objects, so comparison with == suffices // instead of equals(). for (int i = 0; i < field.length; i++) { if (field[i] != l2.field[i]) return false; } return true; } else { return false; } } COM: <s> compare this lights board to another object </s>
funcom_train/22179258
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void loadImage() { Shell shell= imageView.getSite().getShell(); shell.getDisplay().asyncExec(new Runnable() { public void run() { String fileName; try { fileName = ImageLoaderThread.prepareImageLoad(renderConfig.getOutputFileName(), renderConfig.getTypedProject()); imageView.loadImage(fileName); } catch (ImageFormatException e) { imageView.showErrorImage(e.getMessage()); } } }); } COM: <s> loads the image </s>
funcom_train/21346021
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void toXML(Document document) { Element root = document.createElementNS(NAMESPACE, BRENDA_TAG); document.appendChild(root); Element organismNode = document.createElement(ORGANISM_TAG); organismNode.setAttribute(NAME_ATTR, organism); root.appendChild(organismNode); Element enzymesNode = document.createElement(ENZYMES_TAG); root.appendChild(enzymesNode); for (BrendaEnzyme enzyme : enzymes) { Node enzymeNode = enzyme.toXML(document); enzymesNode.appendChild(enzymeNode); } } COM: <s> serializes this object into a xml document </s>
funcom_train/12868002
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean hasInput() { switch (_mode) { case STRING_INPUT: case FILE_INPUT: case READER_INPUT: case FILE_FILE: case FILE_STRING: case FILE_WRITER: case STRING_FILE: case STRING_STRING: case STRING_WRITER: case READER_FILE: case READER_STRING: case READER_WRITER: return true; } return false; } COM: <s> determines whether an input source was already set </s>
funcom_train/46764998
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ThreadedMessage getThreadedMessage(Node node){ ThreadedMessage tm = null; if (node !=null){ Date date = new Date(node.getLong("date")); String text = node.getString("text"); String nick = node.getString("nick"); String id = node.getString("id"); // parents aus Baumstruktur String parent_nick = node.getString("parent_nick"); String parent_id = node.getString("parent_id"); tm = new ThreadedMessage(date, text, nick, id, parent_nick, parent_id); } return tm; } COM: <s> returns the corresponding threaded message of a node in the tree </s>
funcom_train/16538121
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getConfigCancelButton() { if (configCancelButton == null) { configCancelButton = new JButton(); configCancelButton.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED)); configCancelButton.setText("Cancel"); configCancelButton.setToolTipText("Cancels without changing any of the configuration values"); configCancelButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { configDialog.setVisible(false); } }); } return configCancelButton; } COM: <s> this method initializes config cancel button </s>
funcom_train/19437224
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setChainLengths(byte[] receivedBody) { chain1Length = (decodeBCD(receivedBody[18])) * 100; chain1Length += decodeBCD(receivedBody[17]); chain2Length = (decodeBCD(receivedBody[23])) * 100; chain2Length += decodeBCD(receivedBody[22]); } COM: <s> set chain lengths </s>
funcom_train/10258421
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean insertItemBefore(Command cmd, JMenuItem item) { for (int i=0; i<menubar.getMenuCount(); i++) { try { CommandTrigger t = (CommandTrigger)menubar.getMenu(i); if (t.getCommand() == cmd) { menubar.add(item, i); return true; } } catch (RuntimeException ignored) {} if (insertItemBefore(menubar.getMenu(i), cmd, item)) { return true; } } return false; } COM: <s> inserts the given menu item before the menu item associated with the </s>
funcom_train/21216357
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object clone() { Object object = null; try { object = super.clone(); QuickServer _qs = (QuickServer) object; _qs.setQSAdminServer( new QSAdminServer(_qs) ); } catch(CloneNotSupportedException e) { logger.log(Level.WARNING, "Error cloning : {0}", e);//should not happ } return object; } COM: <s> creates and returns a copy of this object </s>
funcom_train/18367853
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void menuAboutToShow(IMenuManager menu) { // Create standard group of actions. BWSDesignerPlugin.createStandardGroups(menu); /* * Gets list of selected items, creates new action context based on current * selection and relative input element, and based on the state of this context, * adds the actions to the context menu. */ IStructuredSelection selection = (IStructuredSelection) explorerViewer.getSelection(); } COM: <s> called when the context menu is about to open </s>
funcom_train/17905510
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getWidth() { int tabCount = components.size(); if (tabCount == 0) { return 0; } if (tabRects.length != tabCount) { calculateTabRects(tabCount); } Rectangle lastRect = tabRects[tabRects.length - 1]; int width = lastRect.x + lastRect.width + 2; return Math.max(width, viewport.getWidth()); } COM: <s> returns the width based on the position of the last </s>
funcom_train/51226120
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setHelpOutput(File outputFile) { if(outputFile != null) { try { htmlViewer.setPage(outputFile.toURL()); } catch (Exception e) { JOptionPane error = new JOptionPane("Failed to load help file", JOptionPane.ERROR); error.createDialog(this, "Error").setVisible(true); } } } COM: <s> sets the output to the content of the given file </s>
funcom_train/13598821
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public RuntimeAction removeRuntimeAction( RuntimeAction runtimeAction ) { RuntimeAction removedRuntimeAction = null; if (runtimeAction == null) throw new IllegalArgumentException("can't remove a null runtimeAction from an process instance"); if (runtimeActions != null) { if (runtimeActions.remove(runtimeAction)) { removedRuntimeAction = runtimeAction; runtimeAction.processInstance = null; } } return removedRuntimeAction; } COM: <s> removes a runtime action </s>
funcom_train/46730544
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void enableOkApplyCancelOnChange() { applyCancelListener = getApplyCancelListener(); getDefaultBaseModel().addPropertyChangeListener(String.valueOf(ModelReference.BASE), applyCancelListener); for(IBaseModel m : getDefaultBaseModel().getAllChildren()) { m.addPropertyChangeListener(String.valueOf(ModelReference.BASE), applyCancelListener); } } COM: <s> add a listener to the default base model such that on </s>
funcom_train/4300015
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public void main(String[] sa) { if (sa.length != 1) { System.err.println( "SYNTAX: java org.hsqldb.util.EchoProperty propname"); System.exit(2); } String s = System.getProperty(sa[0]); if (s == null) { System.exit(1); } System.out.println(s); System.exit(0); } COM: <s> validates user supplied args prints value of the system property </s>
funcom_train/27825515
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Object instantiateFunctionCall(UnaryFunctionCall unaryFunctionCall,Constant constant) { Term argument=unaryFunctionCall.getArgument(); Object value; if (argument instanceof UnaryFunctionCall) value=instantiateFunctionCall((UnaryFunctionCall)argument,constant); else value=constant.getValue(); return new UnaryFunctionCallValue(unaryFunctionCall.getFunctionName(),value); } COM: <s> returns the function call instantiated for given constant </s>
funcom_train/812671
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public BitSet getFingerprint(boolean force) throws BioclipseException { if (force==false){ if (cachedFingerprint != null) { return cachedFingerprint; } } Fingerprinter fp=new Fingerprinter(); try { BitSet fingerprint=fp.getFingerprint(atomContainer); cachedFingerprint=fingerprint; return fingerprint; } catch (Exception e) { throw new BioclipseException("Could not create fingerprint: " + e.getMessage()); } } COM: <s> calculate cdk fingerprint and cache the result </s>
funcom_train/31077486
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void fireSelectedEvent(PickMouseEvent event) { checkListeners(); Object[] listeners = this.listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == PickMouseListener.class) { ((PickMouseListener)listeners[i+1]).selected(event); } } } COM: <s> send the selection node to listeners </s>
funcom_train/5341329
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void mouseMoved(MouseEvent e) { int x = e.getX(); int y = e.getY(); int idx = shouldKillIndex(x, y); if(idx != lastIdx && lastIdx != -1) resetIcon(); if(idx != -1) { TABBED_PANE.setIconAt(idx, CancelSearchIconProxy.createArmed()); lastIdx = idx; } } COM: <s> redoes the icons on the tab which this is over </s>
funcom_train/33826543
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: @Override public String toString() { StringBuilder b = new StringBuilder(); b.append(getClass().getSimpleName()).append("["); b.append("character='").append(character).append("',"); b.append("keyStroke=").append(keyStroke).append("]"); return b.toString(); } COM: <s> returns the code string code representation of this class </s>
funcom_train/50154654
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSource(IGeneratable source) { this.source = source; Object obj = source.getObject(); boolean enabled = source != null && obj != null; if (enabled) { switch (type) { case DEPLOY_DESCRIPTOR: enabled = (obj instanceof MultiApplicationModel); break; case STRUTS_CONFIG: case MESSAGE_RESOURCES: enabled = (obj instanceof MultiApplicationModel || obj instanceof StrutsApplicationModel); break; } } setEnabled(enabled); } COM: <s> method set source </s>
funcom_train/26221481
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void saveTreasureHeap() { if (null == host) { return; } try { final String treasureMemento = host.getMarketPlace().retrieveTreasureHeapMemento(); Config.getConfig().put("TreasureHeapMemento", treasureMemento); } catch (IOException exc) { Logger.getLogger().warn(exc, "Unable to save treasure heap."); } } COM: <s> saves the treasure heap into the config file </s>
funcom_train/10584956
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean reconfigure() throws ConfigurationException { if (!SourceHelper.checkSourceValidity(configFile)) { logger.info("reconfiguration of " + this.getClass().getName() + " (the source " + configFile.getURI() + " has changed...) "); Configuration conf = SourceHelper.build(configFile); configure(conf); return true; } else { return false; } } COM: <s> reconfigure the analyzer if the config file has changed </s>
funcom_train/45830146
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setForeground (final ColorValues color) { getToolkit().syncExec(new Runnable() { public void run() { TreeItem control= (TreeItem)getNativeComponent(); Display display= control.getDisplay(); Color c= new Color(display, color.red, color.green, color.blue); ((TreeItem)getNativeComponent()).setForeground(c); } }); } COM: <s> sets the receivers foreground color to the color specified </s>
funcom_train/28151553
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Runner doBuiltin() { if (wrap) return wrapMe(); File file=OurDialog.askFile(true, alloyHome() + fs + "models", ".als", ".als files"); if (file!=null) { doOpenFile(file.getPath()); } return null; } COM: <s> this method performs file open builtin models </s>
funcom_train/3597359
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int getMaxDepthColour(String colour, NLayer layer) { int deep=0; NOMElement roo = getRootWithColour(colour); List roots = getLayerRoots(roo, layer); if (roots==null) { return deep; } for (Iterator kit=roots.iterator(); kit.hasNext(); ) { NOMElement ch = (NOMElement)kit.next(); int md = getDepthInLayer(ch); if (md>deep) { deep=md; } } return deep; } COM: <s> get the max depth for a particular colour by getting the root </s>
funcom_train/25769875
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean saveConfig(JFrame mainFrame, TimeSeriousConfig config) throws ConfigManagerException { boolean canSave = initializeConfigManager(mainFrame); if ( canSave ) { doSave(config); } else { logMethods.info("Not saving, config manager not initialized"); } return canSave; } COM: <s> check that a config manager has been initialized and is writable </s>
funcom_train/29919305
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void startServer() throws SQLException, IOException { dao = DaoFactory.getDAOFactory(DatabaseType.HSQLDB, properties); logger.debug("Starting the server ..."); start(); logger.info("Started server listening at port " + Elvyx.getPort() + "."); } COM: <s> start the elvyx server </s>
funcom_train/9519467
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void replaceBy(final List<Seek> incoming) { SwingUtilities.invokeLater(new Runnable() { public void run() { long before = System.nanoTime(); screen.clear(); seeks.clear(); _lastPopupRect = null; for (Seek seek : incoming) { addSeek(seek, true); } repaint(); long after = System.nanoTime(); if (logger.isDebugEnabled()) { logger.debug("Time to reload: " + (after - before)); } } }); } COM: <s> this is empirically faster then replace by one as it just does one </s>
funcom_train/38881902
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getSessionId() throws OsidException, Exception { String osidKeySessionId = OkiBusComponentsConfigurationProperties.getSingleton().getProperty(PARAM_SESSIONTOKEN_KEY); String sessionId = (String)authenticationManager.getOsidContext().getContext(osidKeySessionId); if (sessionId == null) { throw new Exception("Key " + osidKeySessionId + " not found in OSID Context"); } else { return sessionId; } } COM: <s> retrieve session id from the underlying lms moodle sakai etc </s>
funcom_train/39168955
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testIndex_02() throws IndexException{ IndexedCorpus ic = (IndexedCorpus) corpus; DefaultIndexDefinition did = new DefaultIndexDefinition(); // did.setIndexType(GateConstants.IR_LUCENE_INVFILE); did.setIrEngineClassName(gate.creole.ir.lucene. LuceneIREngine.class.getName()); did.setIndexLocation(TEMP_LOCATION); ic.setIndexDefinition(did); ic.getIndexManager().optimizeIndex(); } COM: <s> optimize existing index </s>
funcom_train/51571916
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setDependencies(List<String> deps) { if (checkDependencies(deps)) { UncleScriptNamespace ns = currentNamespace; ns.setCurrentTargetDependencies(new LinkedList<String>(deps)); log.log(Level.FINER, "dependencies for " + ns.getCurrentTargetName() + ": " + deps); } } COM: <s> set the dependencies of the current target </s>
funcom_train/30046754
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSubmit(){ String contact = newJob.getHost() + ":" + newJob.getPort(); try{ GRAMJobPreWS gj = new GRAMJobPreWS(contact, true); String handle = gj.globusRun(rsl, this.credential); assertEquals("Expected Job Submission Handle doesn't match obtained Job Submit Handle", null, handle); //handle should be null }catch(JobException je){ logger.debug("Successfully caught JobException\n" + je.getMessage()); } } COM: <s> test the globus run method of submitting a gram job </s>
funcom_train/32071024
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean addLocalizedLabel(LocalizedLabel localizedLabel) { boolean addOk = getLocalizedLabels().add(localizedLabel); if (addOk) { localizedLabel.setLabel((Label)this); } else { if (logger.isWarnEnabled()) { logger.warn("add returned false"); } } return addOk; } COM: <s> add the passed localized label to the label collection </s>
funcom_train/22264148
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String getFileEncoding(CmsObject cms, String filename) { try { return cms.readPropertyObject(filename, CmsPropertyDefinition.PROPERTY_CONTENT_ENCODING, false).getValue( OpenCms.getSystemInfo().getDefaultEncoding()); } catch (CmsException e) { return OpenCms.getSystemInfo().getDefaultEncoding(); } } COM: <s> helper method to determine the encoding of the given file in the vfs </s>
funcom_train/47534272
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void seek(int songId, long position) throws MPDServerException { String[] args = new String[2]; args[0] = Integer.toString(songId); args[1] = Long.toString(position); mpdConnection.sendCommand(MPD_CMD_SEEK_ID, args); mpdStatus.songId = songId; mpdStatus.elapsedTime = position; } COM: <s> seeks music to the position </s>
funcom_train/14661806
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JTextArea getInfoTextArea() { if (infoTextArea == null) { infoTextArea = new JTextArea(); infoTextArea.setBackground(new Color(255, 255, 204)); infoTextArea.setEditable(false); infoTextArea.setMargin(new Insets(2, 2, 2, 2)); infoTextArea.setFont(new Font("Courier New", Font.PLAIN, 12)); } return infoTextArea; } COM: <s> this method initializes info text area </s>
funcom_train/3830257
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getNameSpaceName() { Debug.debugMethodBegin( this, "getNameSpaceName" ); int pos = nameSpace.indexOf( ":" ); if ( pos < 0 ) { pos = nameSpace.indexOf( "=" ); } Debug.debugMethodEnd(); return nameSpace.substring( 0, pos ).trim(); } COM: <s> returns the name of the name space </s>
funcom_train/42133831
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void countFiles(File f, List<String> excluidos) { if (excluidos.contains(f.getAbsolutePath())) { return; } else { if (f.isFile()) { if (accept(f)) { fileCount++; } } else if (f.isDirectory()) { folderCount++; File[] files = f.listFiles(); if (files != null) { for (File file : files) { countFiles(file, excluidos); } } else { return; } } } } COM: <s> count the number of files in directory </s>
funcom_train/16578843
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JCheckBox getJChkBoxUseMaxCost() { if (jChkBoxUseMaxCost == null) { jChkBoxUseMaxCost = new JCheckBox(); jChkBoxUseMaxCost.setBounds(new Rectangle(15, 112, 167, 23)); jChkBoxUseMaxCost.setText(_T("Use_max_cost") + ":"); } return jChkBoxUseMaxCost; } COM: <s> this method initializes j chk box use max cost </s>
funcom_train/4658269
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void commit2() throws SVNException, IOException { // add String filename = workdir + "/mac_commit/日本語だべ_追加.txt"; File f = new File(filename); f.createNewFile(); manager.getWCClient().doAdd( new File(Normalizer.decompose(filename,false)), false, false, false, true ); // commit SVNCommitClient client = manager.getCommitClient(); client.doCommit( new File[]{ new File(filename) }, false, "", false, false ); } COM: <s> add new file </s>
funcom_train/8080636
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Link getLinkAt(int index) throws Exception { if (size()==0) { throw new Exception("List is empty (getLinkAt)"); } else if ((index >= 0) && (index < size())) { return ((Link)(elementAt(index))); } else { throw new Exception("index out of range (getLinkAt)"); } } COM: <s> returns the element link at a specific index from the list </s>
funcom_train/40451455
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getCmdCancelarObservacion() { if (cmdCancelarObservacion == null) {//GEN-END:|128-getter|0|128-preInit // write pre-init user code here cmdCancelarObservacion = new Command("Cancelar", Command.BACK, 0);//GEN-LINE:|128-getter|1|128-postInit // write post-init user code here }//GEN-BEGIN:|128-getter|2| return cmdCancelarObservacion; } COM: <s> returns an initiliazed instance of cmd cancelar observacion component </s>
funcom_train/29640884
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public EventPipe getPipe(String name, String scopeName) { PipeScope scope = MacaroniContext.getScope(scopeName); EventPipe aPipe = scope.get(name); if (aPipe == null) { logger.info("creating new pipe with name " + name); aPipe = createPipe(name); scope.put(name, aPipe); } return aPipe; } COM: <s> looks for a pipe in the scope </s>
funcom_train/43612754
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeEdges(Collection/*<SMEdge>*/ toRemove) { Iterator edgeIterator = toRemove.iterator(); while(edgeIterator.hasNext()) { SMEdge edge = (SMEdge) edgeIterator.next(); assert edges.contains(edge); //remove the edge p-->q from the list edges.remove(edge); //remove it as outedge from p edge.getSource().removeOutEdge(edge); //remove it as inedge from q edge.getTarget().removeInEdge(edge); } } COM: <s> removes the given edges from the state machine also removing it from </s>
funcom_train/22113233
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeSrn(AppdefEntityID aid) { SRNCache cache = SRNCache.getInstance(); SrnId id = new SrnId(aid.getType(), aid.getID()); if (cache.remove(id)) { getScheduleRevNumDAO().remove(id); } } COM: <s> remove a srn </s>
funcom_train/16325902
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void getNotesSession(String user, String pwd, String server) { if (session == null) { try { session = NotesFactory.createSession(server, user, pwd); } catch (NotesException e) { String dominoErrorText = e.text; int dominoErrorID = e.id; log.warn("Error: " + dominoErrorID + " - " + dominoErrorText); e.printStackTrace(); } } } COM: <s> get a new notes session with the user password and server </s>
funcom_train/27823592
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setTreePathMeasurer(TreePathMeasurer treePathMeasurer) { if (treePathMeasurer==null) throw new IllegalArgumentException("treePathMeasurer property cannot have the value of null."); TreePathMeasurer oldTreePathMeasurer=m_treePathMeasurer; m_treePathMeasurer=treePathMeasurer; firePropertyChange(TREE_PATH_MEASURER_PROPERTY,oldTreePathMeasurer,m_treePathMeasurer); } COM: <s> sets tree path measurer used to determine the side of tree path </s>
funcom_train/48613590
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void sendEmailToUnShare(String from, String to, String fileName) { log.debug("Sending email to unshare to " + to); SimpleMailMessage message = new SimpleMailMessage(unShareMailMessage); message.setTo(to); String subject = message.getSubject(); message.setSubject(subject); String text = message.getText(); text = StringUtils.replace(text, "%NAME%", fileName); message.setText(text); sendEmail(message); } COM: <s> sends email to inform the user that the document is removed from sharing </s>
funcom_train/34814830
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getOrganismId(String organismName){ if (Misc.isEmpty(organismName)) return 0; String sId= getCell("SELECT id from Organism WHERE text='"+organismName+"'"); try{ return Integer.parseInt(sId); }catch(Exception e){ log.error("Something is odd, returned empty from getOrganismId(), sID: "+sId,e); return 0; } } COM: <s> fetches an organism id given a organism name assumes connection to bio root </s>
funcom_train/41807268
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: // static public String getContentsPath(String filename) { // String basePath = System.getProperty("user.dir"); // /* // // do this later, when moving to .app package // if (PApplet.platform == PConstants.MACOSX) { // basePath = System.getProperty("processing.contents"); // } // */ // return basePath + File.separator + filename; // } COM: <s> retrieve a path to something in the processing folder </s>
funcom_train/4780373
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Repository addRepository(String repositoryName) throws AppException { Validator.validateRepositoryName(repositoryName); Repository repository = findRepository(repositoryName); if (repository == null) { repository = new Repository(repositoryName); repositories.add(repository); } setUnsavedChanges(); // Record action UndoableAction action = new UndoableAction(ActionConstants.ADD_REPOSITORY_ACTION); action.addValue(UndoConstants.VALUE_NEW_REPOSITORY_NAME, repositoryName); addUndoAction(action); return repository; } COM: <s> adds a new repository if one by the same name doesnt exist </s>
funcom_train/39958559
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void processingInstruction(String target, String data) { if (PI_VERBOSE.equalsIgnoreCase(target)) { Map<String, String> map = parseAttributes(data); String enabled = map.get(PI_NAME_ENABLED); setVerbose(TruthTest.getBooleanTruthValue(enabled)); try { String level = map.get(PI_NAME_LEVEL); setVerboseLevel(Integer.parseInt(level)); } catch (NumberFormatException e) { StringBuffer errorMsg = new StringBuffer(); errorMsg.append("NumberFormatException when parsing level during processing instruction verbose: "); errorMsg.append(map.get(PI_NAME_LEVEL)); System.out.println(errorMsg.toString()); return; } } } COM: <s> processing instruction processing </s>
funcom_train/7733952
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object o) { if (!(o instanceof MonitorPermission)) return false; MonitorPermission other = (MonitorPermission) o; return mask == other.mask && minJobInterval == other.minJobInterval && monId.equals(other.monId) && prefixMonId == other.prefixMonId && varId.equals(other.varId) && prefixVarId == other.prefixVarId; } COM: <s> determines the equality of two code monitor permission code objects </s>
funcom_train/1958006
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel panelControls(){ JPanel panelButton=new JPanel(); JButton button1 = new JButton("Import"); button1.setToolTipText("Save settings and start ConfigImporter"); panelButton.add(button1); button1.setActionCommand("save"); button1.addActionListener(this); JButton button2 = new JButton("Reset"); button2.setToolTipText("Reload default settings"); panelButton.add(button2); button2.setActionCommand("reset"); button2.addActionListener(this); JButton button3 = new JButton("Close"); button3.setToolTipText("Close window"); panelButton.add(button3); button3.setActionCommand("close"); button3.addActionListener(this); return panelButton; } COM: <s> create the panel with the control buttons </s>
funcom_train/15866352
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setStyleclass(String styleclass) { this.setComponentChanged(true); this.styleclass = styleclass; this.eventSupport.fire( new Event(this, "Style set on '" + this.getIdentifier() + "'.", EventType.CHANGED_COMPONENT_UNPOOLABLE_STYLE) ); } COM: <s> set the styleclass </s>
funcom_train/3904527
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private ComponentSpecifications getComponentSpecifications(String name) { if (name == null) { throw new NullPointerException("Component name cannot be null"); } ComponentSpecifications results = (ComponentSpecifications) (componentSpecs.get(name)); if (results == null) { // We've not heard about this component yet, so create new specs results = new ComponentSpecifications(name); componentSpecs.put(name, results); } return results; } COM: <s> look up the specifications for a named component </s>
funcom_train/19869850
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void insertDuplicateEverythingElse() { Person p1 = new Person(); p1.setEmail("z.a@a.com"); // differs from p0 p1.setFirstName("aFirst"); p1.setLastName("aLast"); p1.setLogin("zLogin"); // differs from p0 p1.setPassword("aPassword"); dao.saveOrUpdate(p1); } COM: <s> as long as email and login are different </s>
funcom_train/41384393
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getJPanel13() { if (jPanel13 == null) { jPanel13 = new JPanel(); jPanel13.setLayout(new BorderLayout()); jPanel13.setPreferredSize(new Dimension(120, 0)); jPanel13.setBackground(new Color(10, 16, 40)); jPanel13.add(getJPanel(), BorderLayout.NORTH); jPanel13.add(getJPanel3(), BorderLayout.CENTER); } return jPanel13; } COM: <s> this method initializes j panel13 </s>
funcom_train/14370489
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void deleteWebsite(String deleteMe) throws RollerException { mLogger.debug("try to delete " + deleteMe); UserManager umgr = getRoller().getUserManager(); UserData user = umgr.getUserByUsername(deleteMe); WebsiteData website = (WebsiteData)umgr.getWebsites(user, null, null).get(0); umgr.removeWebsite(website); umgr.removeUser(user); } COM: <s> delete the website created for this test </s>
funcom_train/27821929
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void highlightNextNode() { if (m_currentNode!=-1) { m_currentNode=(m_currentNode+1) % m_highlightedNodes.size(); Node node=(Node)m_orderedHighlightedNodes.get(m_currentNode); centerNodeInView(node); } } COM: <s> highlights the next node </s>
funcom_train/38573837
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addOptionsListener(){ OPTIONS.addOptionsChangeListener(new OptionsChangeListener(){ @Override public void optionsChangeEvent(OptionsChangeEvent event){ if(BACKGROUND_MONITOR.isRunning()) { BACKGROUND_MONITOR.stopBackgroundMonitor(); OPTIONS.setAddTracksInBackgroundRunning(BACKGROUND_MONITOR.isRunning()); } (new OptionsWriteTask(OPTIONS)).execute(); } }); } COM: <s> adds a listener to the top level options object that will write </s>
funcom_train/18582216
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Element createTimeEl(String time) { /* <effectiveTime value="20041103"/> <!--yyyymmdd --> */ /** * @todo implement better null value handling */ Element etimeEl = cdadoc.createElement("effectiveTime"); etimeEl.setAttribute("value", time!=null?time:"19660511"); return etimeEl; } COM: <s> create time el </s>
funcom_train/10482575
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void renameMailbox(String oldName, String newName) throws MessagingException { IMAPCommand command = new IMAPCommand("RENAME"); // add on the encoded mailbox name, as the appropriate token type. command.appendEncodedString(oldName); command.appendEncodedString(newName); // send this, and ignore the response. sendSimpleCommand(command); } COM: <s> rename a mailbox </s>
funcom_train/32979169
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void mouseClicked(MouseEvent e) { /* mouseClicked */ if(dwSP!=null) dwSP.mousePressed(e); else if(dwH!=null) dwH.mousePressed(e); else if(dwRH!=null) dwRH.mousePressed(e); else if(dwCG!=null) dwCG.mouseClicked(e); } /* mouseClicked */ COM: <s> mouse clicked handle mouse click events </s>
funcom_train/43636727
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void trainClassifier() { // NewsCategory Selector classifies individual stories or clusters if( topicSelector == null ) { // configure and train classifier NBStoryClassifier storyClassifier = new NBStoryClassifier("NewsStoryClassifier", trainingDataset); storyClassifier.train(); ClassificationStrategyImpl defaultTopicSelector = new ClassificationStrategyImpl(); defaultTopicSelector.setStoryClassifier(storyClassifier); topicSelector = defaultTopicSelector; } } COM: <s> takes training dataset that contains documents with known topics categories and </s>
funcom_train/49341687
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { if ("SensorCollectionServicePortTypePort".equals(portName)) { setSensorCollectionServicePortTypePortEndpointAddress(address); } else { // Unknown Port Name throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); } } COM: <s> set the endpoint address for the specified port name </s>
funcom_train/40362937
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean fireFrameOnClosing() { for (int i = 0; i < listeners.size(); i++) { GFrameListener listener = (GFrameListener) listeners.get(i); if (!listener.onFrameClosing(new GFrameEvent(this))) { return false; } } return true; } COM: <s> fires the closing event of this frame to its listeners </s>
funcom_train/13676071
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addAttachments(MimeMultipart mmp) { try { for (int i = 0; i < mmp.getCount(); i++) { m_Attachments.addBodyPart((MimeBodyPart) mmp.getBodyPart(i)); } m_Singlepart = false; } catch (Exception ex) { log.error("addAttachments()", ex); } }//addAttachments COM: <s> adds attachments to this tt jwma compose message tt </s>
funcom_train/13814211
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public File getInstanceFile() { File ret = null; Iterator iter = instances.iterator(); while ( iter.hasNext() ) { ColorProfileInstance i = (ColorProfileInstance) iter.next(); File cand = i.getProfileFile(); if ( cand.exists() ) { ret = cand; break; } } return ret; } COM: <s> get an icc file with this color profile </s>
funcom_train/41165959
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void delete(CoWordsCompleteE1 entity) { EntityManagerHelper.log("deleting CoWordsCompleteE1 instance", Level.INFO, null); try { entity = getEntityManager().getReference(CoWordsCompleteE1.class, entity.getWordsCompleteE1Id()); getEntityManager().remove(entity); EntityManagerHelper.log("delete successful", Level.INFO, null); } catch (RuntimeException re) { EntityManagerHelper.log("delete failed", Level.SEVERE, re); throw re; } } COM: <s> delete a persistent co words complete e1 entity </s>
funcom_train/15812603
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void jsFunction_setReceiveMode(Boolean b) { varMap.put(SystemVariables.IS_RECEIVE_MODE.toString(), Boolean.valueOf(b).toString().toUpperCase()); if(Boolean.valueOf(b)) { tracer.println(TracerCode.INFO, "Receive mode."); } else { tracer.println(TracerCode.INFO, "Local mode."); } } COM: <s> true js engine </s>
funcom_train/4923603
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testHttpParametersObject() throws Exception { // Add the template to use parameters object this.source.addHttpTemplate(this.getClassPath("ParametersObject.ofp"), MockHttpParametersObjectTemplate.class, "template"); // Add the HTTP Parameters Object this.source.addHttpParametersObject(MockHttpParametersObject.class); // Start the HTTP Server this.source.openOfficeFloor(); // Ensure provide HTTP parameters this.assertHttpRequest("/template?text=VALUE", 200, "VALUE"); } COM: <s> ensure able to utilise the http parameters object </s>
funcom_train/20944515
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateLookAndFeel() { try { UIManager.setLookAndFeel(currentLookAndFeel); if (isApplet()) { updateThisSwingSet(); } else { for (SwingSet2 ss : swingSets) { ss.updateThisSwingSet(); } } } catch (Exception ex) { System.out.println("Failed loading L&F: " + currentLookAndFeel); System.out.println(ex); } } COM: <s> sets the current l f on each demo module </s>
funcom_train/12156909
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testAddingCookieWithMaxAgeOfZero() { CookieJar cookieJar = new CookieJar(); Cookie cookie1 = createCookie("cookie1", ".mysite.com", "/", "1", COOKIE_EXPIRED); cookieJar.addCookie(cookie1); int expectedSizeOfJar = 0; assertEquals("A cookie with a max age of 0 should NOT be added to jar", expectedSizeOfJar, cookieJar.size()); } COM: <s> test 0 max age cookies are not kept in the cookie jar </s>
funcom_train/4784689
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Customer getCustomer(HttpServletRequest request) { String name = request.getParameter("customerName"); String address = request.getParameter("address"); String phone = request.getParameter("phone"); Customer customer = new Customer(); customer.setName((name == null ? null : name.trim())); customer.setAddress((address == null ? null : address.trim())); customer.setPhone((phone == null ? null : phone.trim())); return customer; } COM: <s> binds the information in the request to a customer object and returns </s>
funcom_train/43326540
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: final public void setupPSIBlastMatrix(PSIBlastMatrices p) { int i = 0; ProfResPSI tri; for (tri=(ProfResPSI)firstRes(); tri!=null; tri=(ProfResPSI)tri.next()) { if (tri.isValidNonGap()) { tri.posScore = new DVector(p.posMatrix.data[i]); tri.posScore.multiply(-1.0); i++; } } setProperty(PolymerProperties.PSI_BLAST_MATRIX); } COM: <s> set up psi blast matrices at each position </s>
funcom_train/21845655
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Value getString(final String fieldName) { /* * Use the active result set to get a field by name */ Value v = null; try { v = new Value(resultSetHandle.getString(fieldName)); } catch (final SQLException e) { lastStatus = new Status(Status.JDBC, "field " + fieldName + " read error " + e); return null; } return v; } COM: <s> get a field from the current row of the result set by name </s>
funcom_train/45775199
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int getColumn(Object control) { String name = (String)Helper.getUnoPropertyValue(UnoDialog2.getModel(control),"Name"); if (name.startsWith( TOPIC )) return 1; if (name.startsWith( RESP )) return 2; if (name.startsWith( TIME )) return 3; if (name.startsWith( LABEL )) return 0; return -1; } COM: <s> returns the column number of the given control </s>
funcom_train/39571583
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSyncType(SyncType[] syncTypes) { if (syncTypes == null || syncTypes.length == 0) { throw new IllegalArgumentException("syncTypes cannot be null or empty"); } this.syncTypes.clear(); this.syncTypes.addAll(Arrays.asList(syncTypes)); } COM: <s> sets the array of sync type </s>
funcom_train/41445959
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { StringBuffer buf = new StringBuffer(); buf.append("EventType["); super.toString(buf); buf.append(",event class=").append(eventClass) .append(']'); return buf.toString(); } COM: <s> get a string representation for this event type component descriptor </s>
funcom_train/47140975
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public JComponent setComponent (JComponent jcmpComponent) { synchronized (getComponentLock()) { JComponent jcmpOld = m_jcmpComponent; m_jcmpComponent = jcmpComponent; synchronized (getDisplayLock()) { if (m_fscDisplay != null) { m_fscDisplay.onFormSheetComponentChanged (this, m_jcmpComponent); } } return jcmpOld; } } COM: <s> set the component for this form sheet </s>
funcom_train/30247953
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean hasLocalPersonModelFlavor(DataFlavor[] flavors) { if (localPersonModelFlavor == null) { return false; } for (int i = 0; i < flavors.length; i++) { if (localPersonModelFlavor.equals(flavors[i])) { return true; } } return false; } COM: <s> does the flavor list have a color flavor </s>
funcom_train/13646911
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void importX509Certificate( KeyStore keystore, InputStream certStream, String alias, Provider provider ) throws Exception{ CertificateFactory factory; if( provider != null ) factory = CertificateFactory.getInstance( "X.509", provider ); else factory = CertificateFactory.getInstance( "X.509"); X509Certificate cert=(X509Certificate)factory.generateCertificate( certStream ); keystore.setCertificateEntry( alias, cert); } COM: <s> imports a x509 certificate into the passed keystore using a special provider </s>
funcom_train/39803902
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void updateZoomable() { if (monthView.isZoomable()) { monthView.add(getCalendarHeaderHandler().getHeaderComponent()); } else { monthView.remove(getCalendarHeaderHandler().getHeaderComponent()); } monthView.revalidate(); monthView.repaint(); } COM: <s> updates state after the month views zoomable property has been changed </s>
funcom_train/46335513
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void opbClearState() { final String methodName = "opbClearState()"; logger.entering(CLASS_NAME, methodName); // set all fields to their initial values id = null; contextName = null; sessionId = null; messageType = null; messageLevel = null; messageSummary = null; messageDetail = null; } // End of opbClearState() COM: <s> resets all field values to their initial values </s>
funcom_train/44167801
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void changeLocation(Location location) { if (location != null && location.getGoodsContainer() == null) { throw new IllegalArgumentException("Goods have to be located in a GoodsContainers."); } if (this.location != null) { this.location.remove(this); } this.location = null; if (location != null) { location.add(this); } this.location = location; } COM: <s> do not use this is going away into the server soon </s>
funcom_train/47677380
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void deleteFileObject(FileObject p_muleLibFolder, String... p_filePaths) throws IOException { for (String filepath : p_filePaths) { String fileName = FilenameUtils.getName(filepath); FileObject saddleComponents = p_muleLibFolder.getFileObject(fileName); if (saddleComponents != null) { saddleComponents.delete(); } } } COM: <s> for each provided file path looks for the filename i </s>
funcom_train/50084054
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { StringBuffer stringContent = new StringBuffer(); stringContent.append("SingleElectron("); stringContent.append(this.hashCode()); if (atom != null) { stringContent.append(", "); stringContent.append(atom.toString()); } stringContent.append(')'); return stringContent.toString(); } COM: <s> returns a one line string representation of this single electron </s>
funcom_train/23868071
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toOrderByString(final Locale locale) { final String [] localizedOrderByColumns = new String[orderByColumns.length]; for (int i = 0; i < orderByColumns.length; ++i) { localizedOrderByColumns[i] = orderByColumns[i].toOrderByString(locale); } return CString.arrayToPlainCsv((Object [])localizedOrderByColumns); } COM: <s> creates a string suitable to be used in an order by clause </s>
funcom_train/27789131
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getDocumentsXML(long[] ids, boolean headers) { MdvDocument[] docs = getDocuments(ids); String res = ""; for (int i=0; i<docs.length; i++) { res = res + docs[i].toXMLString(headers); } return res; } COM: <s> possibly without the document </s>
funcom_train/18104606
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void loadLookup() { if (lookup != null) return; Object[][] contents = getContents(); Hashtable tmp = new Hashtable(contents.length); for (int i = 0; i < contents.length; ++i) { tmp.put(contents[i][0], contents[i][1]); } lookup = tmp; } COM: <s> load the lookup table </s>
funcom_train/28500572
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double getPrefValueDouble( final String pPath, final String pName, final boolean pUserPref ) throws JC_Exception { JC_Propertyable p = getPrefProperty( pPath, pName, pUserPref ); return (Double)p.getValueAs( Double.class ); } COM: <s> get pref value double </s>
funcom_train/2884754
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void send(Object obj, Integer node) { synchronized( links ) { MessageConnection con = (MessageConnection)links.get(node); if( con == null ) { con = partition.connect(node.intValue()); if( con == null ) return; links.put(node, con); } con.sendObject(obj); } } COM: <s> the locator manages connections between nodes </s>
funcom_train/14519920
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private IPublisherSessionLocal getPublisherSession() { if (publishersession == null) { try { IPublisherSessionLocalHome home = (IPublisherSessionLocalHome) getLocator().getLocalHome(IPublisherSessionLocalHome.COMP_NAME); publishersession = home.create(); } catch (Exception e) { throw new EJBException(e); } } return publishersession; } //getPublisherSession COM: <s> gets connection to publisher session bean </s>