__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/2655149
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getToolTipText(MouseEvent evt) { String tip = null; final TreePath path = getPathForLocation(evt.getX(), evt.getY()); if (path != null) { tip = path.getLastPathComponent().toString(); } else { tip = getToolTipText(); } return tip; } COM: <s> return the name of the object that the mouse is currently </s>
funcom_train/9758858
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void installHelpListener() { super.setHelpListener(new HelpListener() { public void helpRequested(HelpEvent e) { HelpListener listener= null; if (fAction != null) { // if we have a handler, see if it has a help listener listener= fAction.getHelpListener(); if (listener == null) // use our own help listener listener= fLocalHelpListener; } if (listener != null) // pass on the event listener.helpRequested(e); } }); } COM: <s> installs the help listener </s>
funcom_train/500766
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private ActionForward performConfig(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response, SystemContext ctx) { try { Showlet showlet = SpecialShowletActionHelper.buildBaseConfig(request, ctx); this.putRequestAttributes(showlet, request, ctx); } catch (Throwable t) { ctx.logThrowable(t, this, "performConfig"); return mapping.findForward("failure"); } return mapping.findForward("success"); } COM: <s> entry point per la configurazione della showlet di erogazione </s>
funcom_train/45411257
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void run(){ QuestionService_Stub service = new QuestionService_Stub(); try{ service._setProperty(Stub.SESSION_MAINTAIN_PROPERTY, new Boolean(true)); String [] response = service.sendQuestions(language); Question [] questions = new ClientQuestion[response.length]; QuestionParser qp = new QuestionParser(); for(int i=0;i<response.length;i++){ questions[i] = qp.parseQuestion(response[i]); //System.out.println(questions[i]); questionRMS.writeQuestion(questions[i]); } }catch(Exception e){ e.printStackTrace(); } } COM: <s> sets the received question as the current question of the game controller </s>
funcom_train/8096305
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSaverCommandlineArgs() { String[] options; options = getCommandlineOptions(false); try { ((OptionHandler) m_Saver).setOptions(options); } catch (Exception e) { e.printStackTrace(); fail("Command line test failed ('" + Utils.arrayToString(options) + "'): " + e.toString()); } } COM: <s> tests the commandline operation of the saver </s>
funcom_train/46189498
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testTrackBackIpAddressOnWhitelist() { blog.getPluginProperties().setProperty(IpAddressListener.WHITELIST_KEY, "127.0.0.1"); blog.getPluginProperties().setProperty(IpAddressListener.BLACKLIST_KEY, ""); listener.trackBackAdded(trackBackEvent); assertTrue(trackBack.isApproved()); assertEquals(0, trackBack.getSpamScore()); } COM: <s> tests a track back from an ip address that is on the whitelist </s>
funcom_train/35949356
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void handleWebSocketFrame(ChannelHandlerContext aCtx, WebSocketFrame aMsg) throws WebSocketRuntimeException { String lTextData = ""; if (aMsg.isBinary()) { // TODO: handle binary data } else if (aMsg.isText()) { lTextData = aMsg.getTextData(); } else { throw new WebSocketRuntimeException("Frame Doesn't contain any type of data"); } mEngine.processPacket(mConnector, new RawPacket(lTextData)); } COM: <s> private method that handles the web socket frame data this method is </s>
funcom_train/51341973
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public JournalIndex createTransient() { final IndexMetadata metadata = new IndexMetadata(UUID.randomUUID()); metadata.setBTreeClassName(JournalIndex.class.getName()); metadata.setTupleSerializer(new TupleSerializer( new ASCIIKeyBuilderFactory(Bytes.SIZEOF_LONG))); return (JournalIndex) BTree.createTransient(/*store, */metadata); } COM: <s> create a transient instance </s>
funcom_train/10552945
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void reopenCore() throws StandardException { boolean constantEval = true; beginTime = getCurrentTimeMillis(); if (SanityManager.DEBUG) SanityManager.ASSERT(isOpen, "RowCountResultSet not open, cannot reopen"); source.reopenCore(); virginal = true; rowsFetched = 0; isOpen = true; numOpens++; openTime += getElapsedMillis(beginTime); } COM: <s> reopen a scan on the table </s>
funcom_train/5854378
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void gotoLocation(final int location) { // here change so that it copes with the first time if (activeCell == -1) { // first time - just call forward to activate // first // cell forward(); } if (location < activeCell) { back(activeCell - location); } if (location > activeCell) { forward(location - activeCell); } } COM: <s> moves the memory inspector to the specified location </s>
funcom_train/44519911
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean process(Message message) { boolean result = true; if(parent != null) { result = parent.process(message); } for(Iterator i=filterList.iterator(); i.hasNext() && result; ) { result = ((MailFilter) i.next()).process(message); } return result; } COM: <s> process this message through all the filters </s>
funcom_train/5793028
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean interfaceInUrl(String addr, String url) { boolean bRet = false; // get list of IPs in this URL List<String> iplist = m_urlIPMap.get(url); if (iplist != null && iplist.size() > 0) { bRet = iplist.contains(addr); } return bRet; } COM: <s> this method is used to determine if the named interface is included in </s>
funcom_train/26324753
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void add(int index, Object obj) { if (_filter.matches(obj)) { int adjusted = getAdjustedIndex(index); _backingList.add(adjusted, obj); _count++; } else { throw new IllegalAddException("Filter won't allow the " + obj.getClass().getName() + " '" + obj + "' to be added to the list"); } } COM: <s> inserts the specified object at the specified position in this list </s>
funcom_train/5729238
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object object) { if (this == object) { return true; } if (!(object instanceof RepositoryFile)) { return false; } final RepositoryFile that = (RepositoryFile) object; if (this.id == null || that.getId() == null || !this.id.equals(that.getId())) { return false; } return true; } COM: <s> returns code true code if the argument is an repository file instance </s>
funcom_train/3674385
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void outputJDOM(Element e, XMLConsumer handler) { NoDocumentFilter filter = new NoDocumentFilter(handler); SAXOutputter out = new SAXOutputter(filter); out.setReportNamespaceDeclarations(true); ArrayList lst = new ArrayList(); lst.add(e); try { out.output(lst); } catch (Exception ex) { log.error("Unable to serialize JDOM element", ex); } } COM: <s> serializes a jdom element </s>
funcom_train/6245562
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean hasMoreMatches(StringBuffer buffer) { if (more == MAYBE) { match = expr.getMatchImpl(input,index,eflags,buffer); if (match != null) { input.move((match.end[0] > 0) ? match.end[0] : 1); index = (match.end[0] > 0) ? match.end[0] + match.offset : index + 1; more = YES; } else more = NO; } return (more == YES); } COM: <s> returns true if there are more matches in the input text </s>
funcom_train/2552134
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void delete(Lane lane) { // first delete records from processing_lanes String query = "DELETE FROM processing_lanes as pl where pl.lane_id = ?"; SQLQuery sql = this.getSession().createSQLQuery(query); sql.setInteger(0, lane.getLaneId()); sql.executeUpdate(); // and then this.getHibernateTemplate().delete(lane); } COM: <s> deletes an instance of lane in the database </s>
funcom_train/3292250
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int getPos(FieldDefs o) { switch (order) { case ORDER_EDIT: { return o.getGUIPos(); } case ORDER_LIST: { return o.getGUIList(); } case ORDER_SEARCH: { return o.getGUISearch(); } default : { return o.getDBPos(); } } } COM: <s> retrieve the postion fo a field defs object </s>
funcom_train/2859258
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void disconnect(Object userData) { String method = "DbLock.disconnect()." + getName(); DbLockUserData data = (DbLockUserData)userData; if (data.log != null) data.log.println(method, "start"); data.resultSets = null; data.dbResults = null; data.log = null; users--; } COM: <s> destroy a connection to this db for a user </s>
funcom_train/40441479
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private GinjectorBindings lowest(Set<GinjectorBindings> sources) { GinjectorBindings lowest = output.getGraph().getOrigin(); while (!sources.contains(lowest)) { lowest = lowest.getParent(); } return Preconditions.checkNotNull(lowest, "Should never make it to null"); } COM: <s> returns the member of </s>
funcom_train/22477455
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean has(String name, Scriptable start) { for (Iterator iter = this.namedPropertyHandlers.iterator(); iter.hasNext();) { NamedPropertyHandler handler = (NamedPropertyHandler) iter.next(); if (handler.has(name, this)) { return true; } } return this.getters.containsKey(name) || super.has(name, start); } COM: <s> indicates whether a property with the specified name exists on this object </s>
funcom_train/11299613
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static protected String getAppenderName(final Appender appender){ String name = appender.getName(); if (name == null || name.trim().length() == 0) { // try to get some form of a name, because null is not allowed (exception), and empty string certainly isn't useful in JMX.. name = appender.toString(); } return name; } COM: <s> get mbean name </s>
funcom_train/16629936
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void validateRulesWithoutCatalyst(){ ArrayList<Rule> rules= this.getRuleTable(); int catalystIndex= 0; for(Rule rule: rules){ if(rule.getCatalystOfRule()==null){ catalystIndex++; if(catalystIndex>1){ rule.setValidRule(false); } } } } COM: <s> only one rule without catalyst is allowed </s>
funcom_train/1444654
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void calculateAttentionToAction() { attentionToAction = AttentionToActionFactory.getAction(getWorld()); // filter if not necessary if (attentionToAction.getCommunicator().getNumber() == this.getWorld() .getSelfRef().getLastHearedPlayer() && this.getWorld().getSelfRef().getLastHearBodyCycle() == this .getWorld().getBodyCycle()) { this.attentionToAction = null; } } COM: <s> this is the default attention to action which should be overridden in </s>
funcom_train/12384765
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { String result = ""; int i, j; for (i = 0; i < n; i++) {//rows for (j = 0; j < m; j++) {//columns result += (M[i][j] + "\t"); } result += "\n"; } return result; } COM: <s> returns a string represantation of the matrix </s>
funcom_train/13993985
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void sendData(String request, byte[] data) { Socket socket = null; try { socket = post(request, data); } catch (UnknownHostException ex) { throw createCommunicationException(ex, request); } catch (IOException ex) { throw createCommunicationException(ex, request); } finally { closeSocket(socket); } } COM: <s> sends the data over the network </s>
funcom_train/37182052
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void enableRefreshButton() { if(rDisplay == null || rDisplay.isDisposed()){ return; } rDisplay.asyncExec( new Runnable() { public void run() { if(refresh == null || refresh.isDisposed()){ return; } refresh.setEnabled(true); } }); }//enableRefreshButton COM: <s> turn the refresh button back on </s>
funcom_train/14228555
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getSymbolsAsString(Symbol[] symbols) { StringBuffer sbuf = new StringBuffer(symbols.length); for(int i=0; i<symbols.length; i++) { char ch = getSymbolAsChar(symbols[i]); sbuf.append(ch); } return sbuf.toString(); } COM: <s> convert an array of </s>
funcom_train/35751330
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void initialize(String searchString) { this.searchString = searchString; this.searchObject = new SearchQuery(); searchString = searchString.trim(); cleanSearchQuery(); filterOR_CHAINKeywords(); filterORKeywords(); filterANDKeywords(); //HAS to be the last step } COM: <s> initialize the tokenizer </s>
funcom_train/29690286
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean accept(File f) { // We always allow directories, regardless of their extension if (f.isDirectory()) { return true; } // Ok, it is a regular file, so check the extension String name = f.getName().toLowerCase(); for (int i = extensions.length - 1; i >= 0; i--) { if (name.endsWith(extensions[i])) { return true; } } return false; } COM: <s> the filtering method </s>
funcom_train/11643644
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testStartMultipleTimes() { BackgroundInitializerTestImpl init = new BackgroundInitializerTestImpl(); assertTrue("Wrong result for start()", init.start()); for (int i = 0; i < 10; i++) { assertFalse("Could start again", init.start()); } checkInitialize(init); } COM: <s> tests invoking start multiple times </s>
funcom_train/51538682
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateScrollIndicator() { if (menuCmds.length > MenuSkin.MAX_ITEMS) { scrollInd.setVerticalScroll(true, (scrollIndex * 100) / (menuCmds.length - MenuSkin.MAX_ITEMS), (MenuSkin.MAX_ITEMS * 100) / menuCmds.length); } else { scrollInd.setVerticalScroll(false, 0, 100); } } COM: <s> updates the scroll indicator </s>
funcom_train/34665756
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setOp(OperatorType value) { op = value; try { ls.lp.setConstrType(this.getIndex(), ((op == OperatorType.EQ) ? LpSolve.EQ : (op == OperatorType.GE) ? LpSolve.GE : LpSolve.LE)); } catch (LpSolveException e) { System.err.println("Error in setConstrType."); } ls.removePresolved(); } COM: <s> sets the operator used for this constraint </s>
funcom_train/45111844
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected WebDriverWrapper getBrowserInstance() throws Exception { WebDriverWrapper webDriverInstance = null; if (webDriver != null) { webDriverInstance = webDriverFactory(WebDriverType.getBrowserTypeFromString(webDriver)); } else { throw new Exception("get Browser instance init Exception,the webDeriver type or the webBrowser type is not init"); } return webDriverInstance; } COM: <s> creates selenium client using sut parameters </s>
funcom_train/33416405
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void readFromObject(final Object data) { // cancel pending edits getTable().cancelEditing(); final Property[] properties = model.getProperties(); for (int i = 0, c = properties.length; i < c; i++) { properties[i].readFromObject(data); } repaint(); } COM: <s> initializes the property sheet from the given object </s>
funcom_train/34005825
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getBIni() { if (bIni == null) { bIni = new JButton(Messages.getString("Front.19")); //$NON-NLS-1$ /* When clicked, retrieve configuration from user input. If valid, proceed */ bIni.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { if (!setConfig()) return; /* Proceed without resuming */ proceed(false); } }); } return bIni; } COM: <s> this method initializes b ini jbutton </s>
funcom_train/19606711
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void update() { TrafficRssReader reader = new TrafficRssReader(); incidents = reader.getIncidents(); incidentMap = new LinkedHashMap<String,Incident>(); if (incidents != null && incidents.size() > 0) { for (Incident incident : incidents ) { incidentMap.put(incident.location, incident); } } } COM: <s> real time update of incidents from a rss feed </s>
funcom_train/43097514
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetAction() { Object action = Model.getCommonBehaviorFactory().createUninterpretedAction(); Model.getCollaborationsHelper().setAction(elem, action); Model.getPump().flushModelEvents(); assertEquals(1, model.getSize()); assertEquals(action, model.getElementAt(0)); } COM: <s> test set action </s>
funcom_train/22204587
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void onDelete() throws Exception { if (m_loc != null) { if (m_loc instanceof org.tm4j.net.ozone.OzoneLocatorBase) { org.tm4j.net.ozone.OzoneLocatorBase oloc = (org.tm4j.net.ozone.OzoneLocatorBase) m_loc; database().deleteObject(oloc); } } } COM: <s> called when this object is deleted from the database </s>
funcom_train/38560629
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int rowWithNegativeElement() { int m = getRowDimension(); int n = getColumnDimension(); int h = -1; for (int i = 0; i < m; i++) { for (int j = 0; j < n; j++) { if (get(i, j) < 0) return i; } } return h; } COM: <s> find the first row with a negative element in a matrix </s>
funcom_train/4125970
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setExploredBy(Player player, boolean explored) { if (player.isIndian()) { return; } if (playerExploredTiles.get(player) == null) { createPlayerExploredTile(player); } getPlayerExploredTile(player).setExplored(explored); updatePlayerExploredTile(player); } COM: <s> sets this code tile code to be explored by the given </s>
funcom_train/40322386
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Button getBotonMover() { if (botonMover == null) { botonMover = new Button(); botonMover.setLabel("Mover"); botonMover.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed() getCustomComponent().setLocation(50, 50); } }); } return botonMover; } COM: <s> this method initializes button iniciar </s>
funcom_train/48580477
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getJButtonTorles() { if (jButtonTorles == null) { jButtonTorles = new JButton(); jButtonTorles.setBounds(new Rectangle(310, 380, 120, 30)); jButtonTorles.setBackground(new Color(238, 200, 200)); jButtonTorles.setText("Törlés"); } return jButtonTorles; } COM: <s> this method initializes j button torles </s>
funcom_train/10519389
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void move(File from, File to) throws BuildException { String[] args = {"move", "-nc", from.getPath(), to.getPath()}; CmdResult res = cleartool(args); if (res.getStatus() != 0) { throw new BuildException(res.getStdErr()); } } COM: <s> move a file to another </s>
funcom_train/32940148
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void openThreads() { Vector threads = new Vector(modConf.getNumOfThreads()); for(int i=0; i < modConf.getNumOfThreads(); i++) { threads.add((Thread) new Thread(threadBox, this)); System.out.println((i + 1) + "Thread Created"); } startThreads(threads); } COM: <s> opens all threads virtual users and starts individual </s>
funcom_train/22353664
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void init(int modifiers, int key) { this.key = key; this.modifiers = modifiers; String s = KeyEvent.getKeyModifiersText(modifiers); if ((s != null) && (s.length() > 0)) { s += ('+' + KeyEvent.getKeyText(key)); } else { s = KeyEvent.getKeyText(key); } setText(s); } COM: <s> changes the value of the field </s>
funcom_train/49753419
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public StringItem getStringItem7() { if (stringItem7 == null) {//GEN-END:|92-getter|0|92-preInit // write pre-init user code here stringItem7 = new StringItem("", "Configuracion de Proxy");//GEN-LINE:|92-getter|1|92-postInit // write post-init user code here }//GEN-BEGIN:|92-getter|2| return stringItem7; } COM: <s> returns an initiliazed instance of string item7 component </s>
funcom_train/38560999
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void checkMatrixDimensions(Matrix b) { /* System.out.println("checkMatixDimensions: B.m=" + B.m + ", m=" + m + "; B.n=" + B.n + ", n=" + n);*/ if (b.m != m || b.n != n) { throw new IllegalArgumentException("Matrix dimensions must agree."); } } COM: <s> throws illegal argument exception if dimensions of a and b differ </s>
funcom_train/37186395
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getGetAllProjectsSqlStatement(boolean displayInfoOnly) { String columns = displayInfoOnly ? UtilityFunctions.join(Project.getDisplayableFields(), ", ") : UtilityFunctions.join(Project.getFields(), ", "); String res = "SELECT " + columns + " FROM " + this.dbName + "." + Project.TABLE_NAME + ";"; return res; } COM: <s> provides the sql statement for the code get all projects code </s>
funcom_train/20891332
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void nodeMove(int nodeID, double newPosX, double newPosY, long startTime, long endTime) { for (MonitorNode mn : this.allNodes.getList()) { if (mn.getNodeId() == nodeID) { mn.setPosX(newPosX); mn.setPosY(newPosY); } } } COM: <s> node moved change the position of node </s>
funcom_train/44013506
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void deleteFeatureEval(Parameters params, String label, int foldId) { for (String type : new String[] { params.getMeasure().getName(), params.getMeasure().getName() + SUFFIX_PROP, params.getMeasure().getName() + SUFFIX_IMPUTED }) this.classifierEvaluationDao.deleteFeatureEvaluation( params.getCorpusName(), params.getConceptSetName(), label, type, foldId, params.getConceptGraphName()); } COM: <s> delete the feature evaluations before we insert them </s>
funcom_train/34630841
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void insertDataProperties() { if (this.currentGoalModelGraph.getVertexCount() > 0) { Collection<IndividualVertex> individualCollection = this.currentGoalModelGraph.getVertices(); if (individualCollection.isEmpty() == false) { for (IndividualVertex individual : individualCollection) { this.insertDataPropertiesForIndividual(individual.getSimpleName()); } // end for } // end if } // end if } COM: <s> inserts all data properties into the data properties map </s>
funcom_train/31454653
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public CollaborillaStatelessClient getStatelessClient() { String serviceRoot = collabConfig.getCollaborillaServiceRoot(); if (serviceRoot != null) { URI couchDbUrl = URI.create(collabConfig.getCollaborillaServiceRoot()); return new CollaborillaCouchDbClient(couchDbUrl.getHost(), couchDbUrl.getPort()); } else { throw new IllegalStateException("Collaborilla Service has not been specified"); } } COM: <s> reads the collaborilla host and port from the conzilla settings and </s>
funcom_train/33637249
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void start() { // Attempt to open socket try { serverSocket = new ServerSocket(PORT); } catch (IOException e) { System.err.println("Could not listen on port: " + PORT); System.exit(-1); } // Listen for connection while (listen) { try { addClient(serverSocket.accept()); } catch (IOException e) { System.err.println("Failed connection attempt on port: " + PORT); } } } COM: <s> will open up a server socket and listen for connections </s>
funcom_train/28922213
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Value get(String attributeName) throws AttributeNotFoundException { for (Value value : this.getValues()) { if (value.getType().getName().equals(attributeName)) { return value; } } throw new AttributeNotFoundException(String.format( "Attribute: %s was not found in entity type: %s, table: %s ", attributeName, this.getType().getName(), this.getType().getTableName())); } COM: <s> map alike accessor for entity </s>
funcom_train/44561431
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void freeResources() { for (DcField field : getFields()) { if (field.getValueType() == DcRepository.ValueTypes._PICTURE) { Picture picture = (Picture) getValue(field.getIndex()); if (picture != null) picture.unload(false); } } } COM: <s> frees the resources hold by this items pictures </s>
funcom_train/14629952
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void removeIncoming() { ConnectionContainer cc = (ConnectionContainer)incomingKey.attachment(); //This will work until we combine the lists clientList.remove(cc.getIdNum()); moduleList.remove(cc.getIdNum()); cc.selfDestruct(); cc = null; } COM: <s> removes a client module from the server by calling </s>
funcom_train/12182302
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void createPolicySelectorControl(final ControlDetails controlDetails) { AttributesDetails attrDetails = controlDetails.attributesDetails; String attributeType = attrDetails.getAttributeType(controlDetails.attribute); if (attributeType == null) { throw new IllegalStateException("Expected an attributeType for " + controlDetails.attribute + " but there was none."); } createPolicySelectorControl(controlDetails, attributeType); } COM: <s> add the policy selector text button to the attributes composite parent </s>
funcom_train/26097459
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void initialize() { this.setLayout(new CardLayout()); this.setName(Constant.messages.getString("ports.options.title")); this.setSize(314, 245); this.add(getPanelPortScan(), getPanelPortScan().getName()); } COM: <s> this method initializes this </s>
funcom_train/6493987
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void execute() throws BuildException { try { if ( _basedir == null ) throw new BuildException( "Input directory is null." ); PostProcessor p = new PostProcessor(); p.setPrefix( _prefix ); p.setStripRunTestsMethod( _strip_run_tests ); p.strip( _basedir ); } catch ( Exception e ) { BuildException be = new BuildException( e ); throw be; } } COM: <s> the method executing the task </s>
funcom_train/31289585
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void start(final BundleContext context) throws Exception { super.start(context); Logger root = Logger.getRootLogger(); PatternLayout layout = new PatternLayout("%6r [%-20.20t] %-5p %30.30c (%6L) %x %m%n"); Appender console = new ConsoleAppender(layout); root.addAppender(console); } COM: <s> this method is called upon plug in activation </s>
funcom_train/43408650
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public JPanel getJStockControlPanel() { if (jStockControlPanel == null) { jStockControlPanel = new JPanel(); jStockControlPanel.setLayout(new BorderLayout()); jStockControlPanel.setToolTipText("Stock Control"); jStockControlPanel.setVisible(true); jStockControlPanel.add(getJStockControlInnerPanel(), java.awt.BorderLayout.CENTER); } return jStockControlPanel; } COM: <s> this method initializes j perform stock control panel </s>
funcom_train/20845334
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getSignature(Method method){ String signature = method.getName()+""; Class[] parameterTypes = method.getParameterTypes(); for (int i = 0; i < parameterTypes.length; i++) { signature = signature+parameterTypes[i]; } signature = signature + ""; signature = method.getReturnType() + signature; signature = Util.removeChars(signature, ILLEGAL_PARAMETER_CHARS); return signature; } COM: <s> builds a signature of a java method </s>
funcom_train/15628695
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setInterpreterValues(@NotNull final Interpreter interpreter, @NotNull final PluginRunMode pluginRunMode) throws EvalError { for (final Map.Entry<String, Object> variable : variables.entrySet()) { interpreter.set(variable.getKey(), variable.getValue()); } interpreter.set("pluginRunMode", pluginRunMode); } COM: <s> adds variables to a </s>
funcom_train/7634987
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setTestProviderStatus(String provider, int status, Bundle extras, long updateTime) { try { mService.setTestProviderStatus(provider, status, extras, updateTime); } catch (RemoteException ex) { Log.e(TAG, "setTestProviderStatus: RemoteException", ex); } } COM: <s> sets mock status values for the given provider </s>
funcom_train/44851793
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public IDPositions convertPositions(MatrixPositions inMatrixPositions) { IDPositions outPositions = new IDPositions(); for (Iterator<?> lPositions = inMatrixPositions.iterator(); lPositions.hasNext();) { MatrixPosition lPosition = (MatrixPosition)lPositions.next(); outPositions.add(new IDPosition(getRowID(lPosition.getRowPosition()), columnIDs[lPosition.getColumnPosition()])); } return outPositions; } COM: <s> converts a collection of matrix positions to id positions </s>
funcom_train/31527268
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void processLabel(SymTabAST tree) { String name = tree.getFirstChildOfType(JavaTokenTypes.IDENT).getText(); LabelDef label = new LabelDef( name, symbolTable.getCurrentScope(), (SymTabAST)tree ); symbolTable.defineLabel( label ); walkTree((SymTabAST)tree.getFirstChild().getNextSibling(), false); } COM: <s> process the given sym tab ast as a label definition </s>
funcom_train/2380608
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void hookMouseListener() { _listener = new MouseAdapter() { public void mouseDown(MouseEvent event) { IPlexObject obj = getPlexObject(event.x, event.y); if(obj != null) { setSelection(new StructuredSelection(obj)); } else { setSelection(StructuredSelection.EMPTY); } } }; getControl().addMouseListener(_listener); } COM: <s> register a mouse listener so we can make selections </s>
funcom_train/47139698
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Value sumSubBasket (String sName, DataBasketCondition dbc, BasketEntryValue bev, Value vInit) { SubDataBasket sdb = null; synchronized (getChildrenLock()) { sdb = (SubDataBasket) m_mpsdbChildren.get (sName); return sdb.sumSubBasket (dbc, bev, vInit); } } COM: <s> sum up all entries in a given subbasket that match the given condition </s>
funcom_train/16755044
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setImportedPreferences(File importedPreferences) { try { this.importedPreferencesMap = PreferencesUtil .createPreferencesFromFile(importedPreferences); // create viewer input with combined, local and remote preferences this.createViewerInput(); } catch (IOException e) { IStatus error = new Status(Status.ERROR, PreferencesUIActivator.PLUGIN_ID, "Unable to create preferences from the imported file", e); ErrorView.addError(error); } } COM: <s> sets the imported preferences </s>
funcom_train/44458848
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testJSONCallingConvention() throws Throwable { String randomLong = HexConverter.toHexString(CallingConventionTests.RANDOM.nextLong()); String randomFive = randomLong.substring(0, 5); // Successful call postJSONRequest(randomFive, true); // Unsuccessful call postJSONRequest(randomFive, false); } COM: <s> test the json calling convention </s>
funcom_train/3814501
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected SentenceHMMState expandUnit(UnitState unit) { SentenceHMMState tail = getHMMStates(unit); // if the unit is a silence unit add a loop back from the // tail silence unit if (unit.getUnit().isSilence()) { // add the loopback, but don't expand it // anymore attachState(tail, unit, logOne, logSilenceInsertionProbability); } return tail; } COM: <s> expands the unit into a set of hmmstates </s>
funcom_train/50381024
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean validate() { if (exactRadioButton.getSelection()) { return checkExact(); } else if (lowerBoundradioButton.getSelection()) { return this.checkLowerBound(); } else if (upperBoundRadioButton.getSelection()) { return this.checkUpperBound(); } else if (rangeRadioButton.getSelection()) { return this.checkBoundValue(); } return false; } COM: <s> controlls the validation of the entered values against the specified </s>
funcom_train/13896888
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int addArea(int permitNum, String building, String room, String classificationEng, String classificationFr, String streetNum, String streetNameEng, String streetNameFr, String municipalityEng, String municipalityFr, String provCode, String postalCode){ AreaWorker areaWorker= new AreaWorker(); return areaWorker.addArea( permitNum, building, room, classificationEng,classificationFr, streetNum, streetNameEng, streetNameFr, municipalityEng, municipalityFr, provCode, postalCode); } COM: <s> this method adds an area to the database </s>
funcom_train/45622802
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addEmitDebugInformationPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_CscType_emitDebugInformation_feature"), getString("_UI_PropertyDescriptor_description", "_UI_CscType_emitDebugInformation_feature", "_UI_CscType_type"), MSBPackage.eINSTANCE.getCscType_EmitDebugInformation(), true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the emit debug information feature </s>
funcom_train/18654903
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void notifyScan() throws JasenException { synchronized(scanlock) { if(updating) { try { scanlock.wait(); } catch (InterruptedException ignore) {} if(!initialized) { throw new JasenException("Cannot access the jASEN engine until it has been intialized!"); } } scansInProgress++; scanlock.notifyAll(); } if(scanListener != null) { scanListener.onScanStart(); } } COM: <s> records the occurrance of a scan </s>
funcom_train/26143559
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void addIncludes(FileSet fs, List artifacts) { for (int i = 0; i < artifacts.size(); i++) { Artifact artifact = (Artifact) artifacts.get(i); PatternSet.NameEntry ne = fs.createInclude(); ne.setName(artifact.getArtifactFile()); } } COM: <s> creates a file set include definition for all the artifacts in the given </s>
funcom_train/38224126
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString(){ StringBuffer sb = new StringBuffer(); sb.append("[Resource uri="); sb.append(uri); sb.append(", name="); sb.append(name); sb.append(", content="); sb.append(getTag(Element.CONTENT_TAG)); sb.append("]"); return sb.toString(); } COM: <s> string representation of a resource </s>
funcom_train/37422340
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int addAdminToMySite(long pIdAdmin, boolean pCommit) throws ClassNotFoundException, SQLException { long tIdSite = findMyIdSite(); String tSql="update mysite set id_admin="+ pIdAdmin; //String tSql="insert into mysite VALUES ("+ tIdSite +", "+ pIdAdmin+")"; return Utility.ExecuteOperation(cConnect,tSql,pCommit); } COM: <s> adds the new administrator to the own site </s>
funcom_train/22470679
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getLivesongimageurl() { Song currentSong = getCurrentSong(); long songid = currentSong == null ? -1 : currentSong.getId(); ILink link = getSongImageService().getLink(false, new Object[] { songid, "livesongimage", "60", "400" }); return link.getURL(); } COM: <s> returns the url for the songimage </s>
funcom_train/43260648
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public StringItem getStringItem() { if (stringItem == null) {//GEN-END:|16-getter|0|16-preInit // write pre-init user code here stringItem = new StringItem("", "", Item.PLAIN);//GEN-LINE:|16-getter|1|16-postInit // write post-init user code here }//GEN-BEGIN:|16-getter|2| return stringItem; } COM: <s> returns an initiliazed instance of string item component </s>
funcom_train/5724522
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object object) { if (this == object) { return true; } if (!(object instanceof RoleAttributeKeyInfo)) { return false; } final RoleAttributeKeyInfo that = (RoleAttributeKeyInfo) object; if (this.id == null || that.getId() == null || !this.id.equals(that.getId())) { return false; } return true; } COM: <s> returns code true code if the argument is an role attribute key info </s>
funcom_train/132688
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public BaseCall reverseComplement( int trace_length ) { char rev_base = DNAUtils.complementChar(base); int rev_peak = trace_length - peak_index - 1; int p = prob_A; prob_A = prob_T; prob_T = p; p = prob_C; prob_C = prob_G; prob_G = p; return new CalledBase(rev_peak, prob_T, prob_G, prob_C, prob_A, rev_base); } COM: <s> produces a complement of this called base </s>
funcom_train/20845981
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void receiveSOAPEnvelope(HTTPRequest request, XMLElement envelope, OutputStream out, Hashtable tmpAttachmentList, IConnection connection) { Log.debug(envelope, "Received the following envelope:"); Enumeration listeners = soapListeners.elements(); while (listeners.hasMoreElements()) { ((ISOAPListener) listeners.nextElement()).receiveSOAPEnvelope(request, envelope, out, tmpAttachmentList, connection); } } COM: <s> pass incoming envelopes to all registered listeners </s>
funcom_train/4920596
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSectionQualifiedName() { // Create sub sections that provide qualified name SubSection subSection = this.node.addSubSection("SUB_SECTION", NotUseSectionSource.class.getName(), SECTION_LOCATION); // Obtain the section qualified name SectionNode subSectionNode = (SectionNode) subSection; String qualifiedName = subSectionNode.getSectionQualifiedName("WORK"); // Validate qualified name assertEquals("Invalid section qualified name", "SECTION.SUB_SECTION.WORK", qualifiedName); } COM: <s> ensure able to get a </s>
funcom_train/9489251
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void drawLabel(Renderer renderer) { for (int i = 0; i < Drawable3D.DRAW_TYPE_MAX; i++) for (Iterator<Drawable3D> d = lists[i].iterator(); d.hasNext();) d.next().drawLabel(renderer, true, false); } COM: <s> draw the labels of objects </s>
funcom_train/49262957
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private ToolTipData getToolTipData(final Point location) { if (currentLocation == location) { return currentData; } currentData = null; currentLocation = location; int offset; try { offset = ((ExpTextEditor) getParent()).getOffsetAtLocation(location); } catch (IllegalArgumentException e) { return null; //If there is no character under given location } for (ToolTipData tipData : tipsData) { if (tipData.matches(offset)) { currentData = tipData; return tipData; } } return null; } COM: <s> gets the tool tip data at the given location </s>
funcom_train/44210451
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private URLConnection getConnection() throws IOException, InterruptedException { URLConnection conn = null; int currentAttempt = 1; while ( (currentAttempt <= _numberOfRetries) && (conn == null) ) { try { conn = _url.openConnection(); } catch (IOException ioexp) { if (currentAttempt <= _numberOfRetries) { conn = null; wait(_retryWait); // wait some time before retrying again... } else { throw ioexp; // Re - launch the exception } } currentAttempt++; } return conn; } COM: <s> returns a new urlconnection object </s>
funcom_train/19036430
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void initializeServer() { if(isConnected()) { try { synchronized(this) { this.getOutputStream().writeInt(ClientMessageCode.INITIALIZESERVER.getIndex()); this.getOutputStream().flush(); } } catch (IOException e) { this.messageFailed(e); } } } COM: <s> initializes the server deleting all data </s>
funcom_train/41523535
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String getMessage(String key){ String text = null; Locale locale = fc.getViewRoot().getLocale(); ClassLoader cl = Thread.currentThread().getContextClassLoader(); String bundleName = fc.getApplication().getMessageBundle(); ResourceBundle bundle = ResourceBundle.getBundle(bundleName, locale, cl); try{ text = bundle.getString(key); } catch(MissingResourceException e){ text = "?? key " + key + " not found ??"; } return text; } COM: <s> get a message from the bundle using the key </s>
funcom_train/3906870
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Icon getLeafIcon(String name, Namespace ns) { // Manifest if(name.equals(CP_Core.MANIFEST)) { return DweezilUIManager.getIcon(ICON_CPSCORM); } // ADL Namespace if(CP_EditorHandler.ADLCP_NAMESPACE_12.equals(ns)) { return DweezilUIManager.getIcon(ICON_ADL); } return super.getLeafIcon(name, ns); } COM: <s> over ride to get the leaf icon </s>
funcom_train/1165324
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ListObject getList(String uid, String listId, boolean auth) throws WeiboException { StringBuilder sb = new StringBuilder(); sb.append(getBaseURL()).append(uid).append("/lists/").append(listId).append(".xml").append("?source=").append(CONSUMER_KEY); String httpMethod = "GET"; String url = sb.toString(); // Response res = http.httpRequest(url, null, auth, httpMethod); return new ListObject(res, this); } COM: <s> obtain list interface </s>
funcom_train/31477109
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean keyEvent(java.awt.event.KeyEvent e, int type) { super.keyEvent(e, type); int keyCode = e.getKeyCode(); if (isEditable()) { if ((type == KEY_PRESSED) && (keyCode == KeyEvent.VK_ENTER)) { insert('\n'); } return true; } return false; } COM: <s> handles key events </s>
funcom_train/26402093
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object obj) { Object value1 = ((ValueImpl)obj).getEncapsulatedValue(); Object value2 = this.getEncapsulatedValue(); boolean returnValue = false; if(null == value1 && null == value2) { returnValue = true; } else { if(value1.equals(value2)) { returnValue = true; } } return returnValue; } COM: <s> indicates whether some other object is equal to this one </s>
funcom_train/8080364
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private double pruningFactor(int num_instances, int num_params) { if (num_instances <= num_params) { return 10.0; // Caution says Yong in his code } return ((double) (num_instances + m_pruningMultiplier * num_params) / (double) (num_instances - num_params)); } COM: <s> compute the pruning factor </s>
funcom_train/34471884
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void onSelectForeignWord() { // Get the selected key (token + key of selected foreign word) final Object[] key = (Object[]) listForeignWords.getSelectedItem() .getValue(); final Token tok = (Token) key[0]; // Mark the selected word in the text txtText.setSelectionRange(tok.getStartPos(), tok.endPos); displayMeanings(); displayLocalWords(); displaySuffixes(); enableButtons(); } COM: <s> when a row is selected from the foreign word list </s>
funcom_train/9530343
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void runQuery(QueryTerm qt, String name) { qt.setInferred(false); RDFQuery q = new RDFQuery(qt); System.out.println("=== "+name+" ===\n* OBD Query:\n "+qt); System.out.println("\n* Autogenerated SPARQL:\n "+q.toSPARQL()+"\n\n"); for (Node n : this.shard.getNodesByQuery(qt)){ System.out.println("Node: " + n.toString()); } } COM: <s> given an obd query object translate it to sparql and write the results </s>
funcom_train/9805961
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int findEarliestPositionToAdd(EdifLibrary add) { for (int i = _libraries.size() - 1; i >= 0; i--) { EdifLibrary lib = _libraries.get(i); Collection<EdifCell> instances = lib.findInstancedLibraryCells(add); if (instances != null && instances.size() > 0) { return i + 1; } } return 0; } COM: <s> return the earliest position to add the library within the collection of </s>
funcom_train/29870014
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JTextField getJSearchAdvancedAllTextField() { if (jSearchAdvancedAllTextField == null) { jSearchAdvancedAllTextField = new JTextField(); jSearchAdvancedAllTextField.addActionListener(new java.awt.event.ActionListener(){ public void actionPerformed(ActionEvent e){ actionJSearchAdvancedSearchButton(); } }); } return jSearchAdvancedAllTextField; } COM: <s> this method initializes j search advanced all text field </s>
funcom_train/207959
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void changeMode(GridFile newGridFile) throws FileNotFoundException, GeneralException { String newPermissions = newGridFile.getUserPermissions().toString() + newGridFile.getGroupPermissions().toString() + newGridFile.getAllPermissions().toString(); logger.error(newGridFile.getAbsolutePathName()); changeMode(newGridFile.getAbsolutePathName(), Integer.parseInt(newPermissions)); } COM: <s> change permissions to a remote file </s>