__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/22550525
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean conflicts(URN urn, int fileSize, File... fileName) { if (urn != null && downloadSHA1 != null) { return urn.equals(downloadSHA1); } if (fileSize > 0) { try { File file = incompleteFileManager.getFile(fileName[0].getName(), null, fileSize); return conflictsWithIncompleteFile(file); } catch (IOException e) { } } return false; } COM: <s> returns code true code if this downloaders urn matches the given urn </s>
funcom_train/22076347
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void test10GetMapperErrorNoSource() throws MapperException { try { manager.reset(); manager.addMapper("map", mp1); manager.setConfigured(); manager.start(); Mapper m = manager.getMapper("map"); fail("Should have thrown mapper config exception"); } catch (MapperConfigurationException e) { } } COM: <s> mapper has no source </s>
funcom_train/8811748
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void putSaved(Integer elementDTOId, Boolean savedState) { RequiredValueState state = list.get(elementDTOId); if (state == null) { state = new RequiredValueState(); list.put(elementDTOId, state); } state.setSavedState(savedState); putActual(elementDTOId, savedState); } COM: <s> sets a required element saved value completion in db </s>
funcom_train/181270
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String mapFromTargetString(Object collection, final String attribute) { try { String value = ((ResultSet)collection).getString(attribute); if (((ResultSet)collection).wasNull()) { return null; } else { return value; } } catch(SQLException e) { throw new DeveloperException("Failed to map attribute <" + attribute + ">", null, e); } } COM: <s> maps from b target system java b </s>
funcom_train/8305719
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Fraction divideBy(Fraction fraction) { if (fraction == null) { throw new IllegalArgumentException("The fraction must not be null"); } if (fraction.numerator == 0) { throw new ArithmeticException("The fraction to divide by must not be zero"); } return multiplyBy(fraction.invert()); } COM: <s> p divide the value of this fraction by another </s>
funcom_train/15878434
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void upgradeTransferProcessing( NetworkConnection peer_connection ) { if( peer_connection.isLANLocal() ) { lan_upload_processor.upgradePeerConnection( peer_connection ); lan_download_processor.upgradePeerConnection( peer_connection ); } else { upload_processor.upgradePeerConnection( peer_connection ); download_processor.upgradePeerConnection( peer_connection ); } } COM: <s> upgrade the given connection to high speed network transfer handling </s>
funcom_train/4364087
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void destroy() throws Exception { if( oname != null ) { // Send j2ee.object.deleted notification Notification notification = new Notification("j2ee.object.deleted", this.getObjectName(), sequenceNumber++); broadcaster.sendNotification(notification); } super.destroy(); // Notify our interested LifecycleListeners lifecycle.fireLifecycleEvent(DESTROY_EVENT, null); synchronized (instanceListenersLock) { instanceListeners = new String[0]; } } COM: <s> destroy needs to clean up the context completely </s>
funcom_train/18484529
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setArrayType(String className) { try { Class c = Class.forName(className); if (c == null) { throw new Exception("Could not load class for given string"); } arrayType = c; } catch (Exception e) { System.out.println("ERROR: - " + e); arrayType = Object.class; } } COM: <s> description destroys the previous array </s>
funcom_train/35513131
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean step() { final float[] oldPos = p.clone(); // We need this because we "recalculate" the aircrafts polygon only by simply translate it with the value of step final boolean wasCut = super.step(); // Now we "recalculate" the points of the aircrafts polygon shape.translate( (int) p[ 0 ] - (int) oldPos[ 0 ], (int) p[ 1 ] - (int) oldPos[ 1 ] ); return wasCut; } COM: <s> steps the object </s>
funcom_train/1710653
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int display(Component c, String title) { setSize(400, 200); JPanel popupPanel = new JPanel(); popupPanel.setLayout(new BorderLayout()); popupPanel.add(this, BorderLayout.CENTER); popupPanel.setSize(400, 200); Object[] options = { Messages.getMessage("PdfMessage.Ok"), Messages.getMessage("PdfMessage.Cancel") }; int n = JOptionPane.showOptionDialog( c, popupPanel,title, JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, options, options[0]); return n; } COM: <s> popup display for user to make selection </s>
funcom_train/26213183
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { final StringBuffer sbResult = new StringBuffer(super.toString()); sbResult.append(":"); sbResult.append(this.host == null ? "null" : this.host); sbResult.append(this.domain == null ? "null" : this.domain); return sbResult.toString(); } COM: <s> return a string representation of this object </s>
funcom_train/29055101
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void initProp() { this.prop.add(ERevisionParseProperties.CATEGORIES); this.prop.add(ERevisionParseProperties.EXTERNALLINKS); this.prop.add(ERevisionParseProperties.IMAGES); // this.prop.add(ERevisionParseProperties.LANGLINKS); this.prop.add(ERevisionParseProperties.LINKS); // this.prop.add(ERevisionParseProperties.REVID); // this.prop.add(ERevisionParseProperties.SECTIONS); this.prop.add(ERevisionParseProperties.TEXT); this.prop.add(ERevisionParseProperties.TEMPLATES); } COM: <s> initialize the queries properties </s>
funcom_train/50911017
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean includes(Int2Range r) { if (!isValid() || r == null || !r.isValid()) { return false; } IntRange xr = r.getXRange(); IntRange yr = r.getYRange(); return (xrange.includes(xr) && yrange.includes(yr)); } COM: <s> is one int2 range completely within another </s>
funcom_train/22962476
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void identifiedKey(String keyName, int startIndex, int endIndex) { Position pos = new Position(startIndex,endIndex); if (positions.containsKey(keyName)) { List<Position> value = (List<Position>)positions.get(keyName); value.add(pos); } else { List<Position> value = new ArrayList<Position>(); value.add(pos); positions.put(keyName, value); } } COM: <s> notification that a cetain key has been found </s>
funcom_train/37421223
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void logOff(){ String s = XMLWrapper.wrapLogOff(sessionId); if(DEBUG) System.out.println("GoTClient - logoff:\n"+s); sendToServer(s); if(DEBUG) System.out.println("GoTClient - disconnect:\n"); io.disconnect(); } COM: <s> called when a user logs off </s>
funcom_train/2760520
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void unlock() { _lockCounter --; if(logger.isDebugEnabled()) { logger.debug("TaskExecutionContext.unlock: "+_lockCounter+"=>"+LockGenerator.dump(_lock)); } if(_lockCounter == 0) { doUnlock(_lock); _lock = null; } else if(_lockCounter < 0) { throw new IllegalStateException("Lock counter reached negative value. Unmatched calls to un-/lock."); } } COM: <s> unlocks the execution context </s>
funcom_train/3913197
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean processElement(Element node, int anUolId) throws PropertyException { String nodeName = node.getNodeName(); boolean result = super.processElement(node, anUolId); if (!result && "role-to-monitor".equals(nodeName)) { roleToMonitor = Parser.getTextValue(node); return true; } return false; } COM: <s> this method is called for each element encountered in the xml value </s>
funcom_train/35562462
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public WjrClassItem getClassItem(String className) { checkNotNull(className, "The className parameter is null."); checkState( classItems.containsKey(className), "The %s is not found.", className); return classItems.get(className); } COM: <s> gets the class item from the store </s>
funcom_train/8342538
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addItemListener(final ItemListener il) { if (source != null && !(source instanceof ItemSelectable)) { throw new IllegalArgumentException( "In order to use EventDispatcher for ItemListener's, " + "the source must implement ItemSelectable."); } if (il != null) { listenerList.add(ItemListener.class, il); } } COM: <s> add an item listener </s>
funcom_train/4429116
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String renameFile(String fileName) { String regExpression = "(?i)" + LangKissPreferences.GOOGLE_SYNCHRONIZED_FILE_EXTENSION; String result = fileName.replaceAll(regExpression, ""); if(result.equalsIgnoreCase(fileName)) { result = fileName + LangKissPreferences.GOOGLE_SYNCHRONIZED_FILE_EXTENSION; } return result; } COM: <s> rename the file for google docs </s>
funcom_train/9557058
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateAutoReplyRule(long id, int i, AutoReplyRule autoReplyRule) throws RulesLoadingException { try { AccountEntity account = anAccountEntityHome.findByPrimaryKey(new Long(id)); account.updateAutoReplyRule(i, autoReplyRule); } catch (Exception e) { throw new RulesLoadingException(e.getMessage()); } } COM: <s> updates auto reply rule </s>
funcom_train/300533
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void bindTestWithHtmlEncoding() { this.boundUiString.setDefaultOptions(UiString.OPTION_HTML_ENCODING); this.boundUiString.bind("<cat>"); // bind more params than needed this.boundUiString.bind("others"); // second param encoded assertEquals("Tom & &lt;cat&gt;", this.boundUiString.construct()); } COM: <s> ensures that binding with i html encode i is working properly </s>
funcom_train/43913986
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void handleDescribeFT() { String capName = "DescribeFeatureType"; start(capName); start("SchemaDescriptionLanguage"); element("XMLSCHEMA", null); end("SchemaDescriptionLanguage"); handleDcpType(capName, HTTP_GET); handleDcpType(capName, HTTP_POST); end(capName); } COM: <s> encodes the wfs describe feature type element </s>
funcom_train/18865291
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setDate(Date date) { super.setDate(date); synchronized (mutex) { if (splits != null) { for (int i = 0; i < splits.length; i++) { splits[i].setDate(getDate()); } Arrays.sort(splits); } } } COM: <s> overrides the super </s>
funcom_train/2877946
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void extractComponentName(Prim component) { if (component != null && componentName != null) { Reference reference = new ComponentHelper(component).completeNameOrNull(); componentName = reference != null ? reference.toString() : UNKNOWN_COMPONENT; } else { componentName = UNKNOWN_COMPONENT; } } COM: <s> extract the component name from a component </s>
funcom_train/15491115
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void putPixelValue(int x, int y, double value) { if (x>=0 && x<width && y>=0 && y<height) { if (value>255.0) value = 255; else if (value<0.0) value = 0.0; int gray = (int)(value+0.5); pixels[y*width + x] = 0xff000000 + (gray<<16) + (gray<<8) + gray; } } COM: <s> stores the specified real grayscale value at x y </s>
funcom_train/8689013
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append(namespace != null ? namespace : "(anonymous)"); buffer.append(' '); buffer.append(url != null ? (url + " ") : ""); buffer.append(file != null ? file.getAbsolutePath() : ""); return buffer.toString(); } COM: <s> returns a string representation of the object for error messages </s>
funcom_train/21888836
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getJPanel4() { if (jPanel4 == null) { jPanel4 = new JPanel(); jPanel4.setLayout(null); jPanel4.setName(""); jPanel4.add(getJScrollPane(), null); jPanel4.add(getJRadioButton(), null); jPanel4.add(getJRadioButton1(), null); jPanel4.add(getJPanel6(), null); jPanel4.add(getJPanel7(), null); } return jPanel4; } COM: <s> this method initializes j panel4 </s>
funcom_train/28751130
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setModifierlistid(Long newVal) { if ((newVal != null && this.modifierlistid != null && (newVal.compareTo(this.modifierlistid) == 0)) || (newVal == null && this.modifierlistid == null && modifierlistid_is_initialized)) { return; } this.modifierlistid = newVal; modifierlistid_is_modified = true; modifierlistid_is_initialized = true; } COM: <s> setter method for modifierlistid </s>
funcom_train/20483321
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void saveConfiguration() { Preferences pref = PreferencesManager.getInstance().getPreferencesForSet("FederationPreferences", "Saved"); pref.putString("serverField", serverField.getText()); pref.putString("usernameField", usernameField.getText()); } COM: <s> saves the current configuration of server name username etc </s>
funcom_train/37046379
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addReport( AuctionReport newReport ) { AuctionReport oldReport = report; if ( ! (oldReport instanceof CombiAuctionReport) ) { setReport(new CombiAuctionReport()); if ( oldReport != null ) { ((CombiAuctionReport) report).addReport(oldReport); } } ((CombiAuctionReport) report).addReport(newReport); } COM: <s> add a new market data logger </s>
funcom_train/3526468
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected ServiceAccessException createException(Exception e, Uri uri) { getLogger().log( "Error on " + uri.toString() + ": " + e.getMessage(), LOG_CHANNEL, Logger.ERROR); return new ServiceAccessException(service, e); } COM: <s> overload this method to have a more detailed error handling </s>
funcom_train/38314804
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void deleteFeed(RssFeed feed) { try { feedDAO.deleteFeed(feed); RssFeedJob feedJob = new RssFeedJob(); feedJob.setFeed(feed); SchedulingManager.getInstance().removeTask(feedJob); } catch (PersistenceException e) { log.debug("[JLCP Error] Unable to delete feed with id: " + feed.getId() + " from the system."); } } COM: <s> delete a feed object from the backend </s>
funcom_train/2295678
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public CmsXmlContentValueSequence getValueSequence(String name, Locale locale) { I_CmsXmlSchemaType type = m_contentDefinition.getSchemaType(name); if (type == null) { return null; } return new CmsXmlContentValueSequence(name, type, locale, this); } COM: <s> returns the value sequence for the selected element name in this xml content </s>
funcom_train/23632085
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void select(MouseEvent e) { for(int i = 0; i < events.size(); i++) { EventShape ev = events.get(i); if (ev.contains(e.getPoint())) { ev.selected = true; ev.redrawImage(); selectedEvent = ev; update(); }else{ deselect(); } } if (selectedEvent == null) { parent.switchTopRightCard("Add Event"); } this.repaint(); } COM: <s> selects an event on day canvas </s>
funcom_train/23182772
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Connection getConnection(DBConnector.ConTypes conType) { logger.info("getConnection() - Entry"); Connection con = null; try { con = DBConnector.getInstance().getConnection(conType); } catch (DBException e) { e.printStackTrace(); logger.error("getConnection() - " + e.getMessage()); } logger.info("getConnection() - Exit"); return con; } COM: <s> return connection of a choosed type </s>
funcom_train/8232639
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public StringItem getStringItem8() { if (stringItem8 == null) {//GEN-END:|119-getter|0|119-preInit // write pre-init user code here stringItem8 = new StringItem("Biblioteca P\u00FAblica de Servita", "");//GEN-LINE:|119-getter|1|119-postInit // write post-init user code here }//GEN-BEGIN:|119-getter|2| return stringItem8; } COM: <s> returns an initiliazed instance of string item8 component </s>
funcom_train/25601445
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected UserForm convert(User user) throws Exception { UserForm userForm = (UserForm) super.convert(user); Set<Client> clients = user.getClients(); if (!clients.isEmpty()) { String ids[] = new String[clients.size()]; int ii = 0; for (Client dep : clients) { ids[ii++] = dep.getId().toString(); } userForm.setUserClients(ids); } return userForm; } COM: <s> convert user to form </s>
funcom_train/9705222
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Iterator getDetailEntries() { final Iterator detailEntriesIter = element.getChildElements(); Collection details = new ArrayList(); while (detailEntriesIter.hasNext()) { details.add(new DetailEntryImpl((ElementImpl)detailEntriesIter.next())); } return details.iterator(); } COM: <s> gets a list of the detail entries in this code detail code object </s>
funcom_train/26508883
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setPortalControlStructures(PortalControlStructures pcs) { HttpServletRequest req = pcs.getHttpServletRequest(); uportalBaseURL = req.getScheme()+"://"+req.getServerName()+":"+ req.getServerPort() + req.getContextPath(); } COM: <s> passes portal control structure to the channel </s>
funcom_train/12561157
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void lSetMaxSize(int maxSize) { if (editable) { if (cursor.index >= maxSize) { cursor.index = maxSize; cursor.option = Text.PAINT_USE_CURSOR_INDEX; } } myInfo.isModified = myInfo.scrollY = true; updateTextInfo(); } COM: <s> notifies l amps f of a maximum size change in the corresponding </s>
funcom_train/22108355
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setValue(String key, String val){ if (key == null || val == null) { _log.warn("Invalid key/value found. Key='" + key + "' value='" + val + "'"); return; } this.vals.put(key, val); } COM: <s> setup a key value pair </s>
funcom_train/51782749
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void buildNewStructure(UmlModel aModel) { model = aModel; aModel.addModelListener(this); for (UmlDiagram diagram : model.getDiagrams()) { insertToFolder(diagram); addNameChangeListener((GeneralDiagram) diagram); } nodeStructureChanged(structureFolder); nodeStructureChanged(sequenceFolder); reload(); } COM: <s> build the new tree structure </s>
funcom_train/511216
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void process( String value ) { if( currentOption != null && currentOption.hasArg() ) { if( currentOption.hasArg() ) { tokens.add( value ); currentOption = null; } else if (currentOption.hasArgs() ) { tokens.add( value ); } } else { eatTheRest = true; tokens.add( "--" ); tokens.add( value ); } } COM: <s> p if there is a current option and it can have an argument </s>
funcom_train/4722508
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public EndPoint getEndPoint() { if (this.endPoint == null) { // No end point exists, load the default end point EndPointDAO endPointDAO = new EndPointDAO(); try { this.setEndPoint(endPointDAO.getEndPoint("- undefined")); } catch (Exception e) { this.endPoint = null; } } return this.endPoint; } COM: <s> gets the end point </s>
funcom_train/32958789
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String selectAsLikeness() throws NamingException, GeneralSecurityException { long docId = getRequestParameterAsLong("selectedLikenessId"); if (docId != 0) { getUser().setLikeness(getDocumentLocal().findDocument(docId)); } else { getUser().setLikeness(null); } return "success"; } COM: <s> store the selected likeness in the current user object </s>
funcom_train/2399085
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void processAjaxEvent(AjaxEvent event) throws AbortProcessingException { Chart chart = (Chart) event.getComponent(); FacesContext context = event.getContext(); try { PieSectionEntity entity = explodeSection(chart); AjaxUtils.renderComponentForAjax(chart.getClientId(context)); renderDescription(entity, context); } catch (IOException e) { throw new AbortProcessingException(e); } } COM: <s> invoked when ajax event </s>
funcom_train/45121590
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addEntityPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ComboTable_entity_feature"), getString("_UI_PropertyDescriptor_description", "_UI_ComboTable_entity_feature", "_UI_ComboTable_type"), DictionaryPackage.Literals.COMBO_TABLE__ENTITY, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, getString("_UI_DatabasePropertyCategory"), null)); } COM: <s> this adds a property descriptor for the entity feature </s>
funcom_train/39165502
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public AnnotationSet get(String type) { if(annotsByType == null) indexByType(); AnnotationSet byType = annotsByType.get(type); if (byType==null)return emptyAnnotationSet; // convert the mutable AS into an immutable one return byType.get(); } // get(type) COM: <s> select annotations by type </s>
funcom_train/37826412
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected AssetListValeur createAssetListValeur() throws TechnicalException{ AssetListValeur asset = new AssetListValeur(); ManifestLinkValeur manifLink = new ManifestLinkValeur(); manifLink.setId(getManifestLinkId()); manifLink.setLastUrl(getLastURL()); asset.setManifestLink(new ManifestLinkValeur[]{manifLink}); return asset; } COM: <s> create a asset list valeur used by most of xml file for footer </s>
funcom_train/13596766
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JMenuItem getMiImportDictionary() { if (miImportDictionary == null) { miImportDictionary = new JMenuItem(); miImportDictionary.setText(Messages .getString("DictionaryMakerMain.MenuImportDictionary")); //$NON-NLS-1$ miImportDictionary .addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { importDictionary(); } }); } return miImportDictionary; } COM: <s> this method initializes mi project properties </s>
funcom_train/28651978
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private double distance(Point a, Point b) { return Math.sqrt((a.getX() - b.getX()) * (a.getX() - b.getX()) + (a.getY() - b.getY()) * (a.getY() - b.getY())) ; } COM: <s> returns euclidian distance between point a and point b </s>
funcom_train/17787124
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void readCRLF() throws IOException { int character = read1(); if (character == -1) { endOfStream = true; } else if (character == CR) { character = read1(); if (character == -1) { endOfStream = true; } else if (character != LF) { tempByte = character; rewind = true; } } else if (character == LF) { } else { tempByte = character; rewind = true; } } COM: <s> reads the cr lf </s>
funcom_train/35327655
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setLength(int newLength) { if (newLength < 0) throw new StringIndexOutOfBoundsException(newLength); ensureCapacityInternal(newLength); if (count < newLength) { for (; count < newLength; count++) value[count] = '\0'; } else { count = newLength; } } COM: <s> sets the length of the character sequence </s>
funcom_train/46728138
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void save() throws Exception { validateControls(); if (getControllerPatient().hasNoVisit()) { setControllerPatient(PatientService.getMostRecentVisit(getControllerPatient())); } OrderService.storeOrders(getControllerPatient().getId(), getControllerPatient().getVisitId(), OrderModel.toOrderList(getOrderModel())); okCloseForm(); globalRefreshTable(ContextReference.PATIENTCHARTORDERSVIEWLIST); globalRefreshTable(ContextReference.PATIENTCHARTCHARTINGVIEWLIST); } COM: <s> save the order model variable </s>
funcom_train/31929849
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean branchIfUnordered() { switch (value) { case CMPL_EQUAL: case CMPL_GREATER: case CMPG_LESS: case CMPL_GREATER_EQUAL: case CMPG_LESS_EQUAL: return false; case CMPL_NOT_EQUAL: case CMPL_LESS: case CMPG_GREATER_EQUAL: case CMPG_GREATER: case CMPL_LESS_EQUAL: return true; default: throw new OPT_OptimizingCompilerException("invalid condition " + this); } } COM: <s> will this floating point compare branch if the results are </s>
funcom_train/1151488
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void truncateNow(double sumEta) { if (theta ==0) return; for( Matrix _w : matrices) { if (_w instanceof BetaMatrix) { for(int j=0; j< _w.getNRows(); j++) { truncateRow(_w, j, 1, sumEta); } } } } COM: <s> truncates all matrix elements right now once </s>
funcom_train/25461663
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getPlainStringBeforePos(IDocument doc, int pos) { try{ StringBuilder sb = new StringBuilder(); boolean started = false; for( int i=pos-1; --i>0; ){ char ch = doc.getChar(i); if( Character.isWhitespace(ch) ){ if( started ){ break; }else{ continue; } } started = true; if( Character.isJavaIdentifierPart(ch) ){ sb.append(ch); }else{ break; } } return sb.reverse().toString().trim(); }catch(BadLocationException e){ return ""; } } COM: <s> get string start from the first legal char back to the last </s>
funcom_train/25331472
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testLiesWithinCoordinate() { assertTrue(c1.liesWithinCoordinate(c4)); assertTrue(c1.liesWithinCoordinate(c1)); assertFalse(c4.liesWithinCoordinate(c1)); assertFalse(c7.liesWithinCoordinate(c1)); assertFalse(c7.liesWithinCoordinate(n)); } COM: <s> test of lies within coordinate method of class coordinate </s>
funcom_train/11009283
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setPrintArea(int sheetIndex, int startColumn, int endColumn, int startRow, int endRow) { String reference=getReferencePrintArea(getSheetName(sheetIndex), startColumn, endColumn, startRow, endRow); setPrintArea(sheetIndex, reference); } COM: <s> for the convenience of java programmers maintaining pointers </s>
funcom_train/20890836
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Position getNeighborPosition(NodeId neighborNodeId) { NodeInfo neighborNodeInfo; Position neighborNodePosition; if (neighborNodeId != null) { neighborNodeInfo = this.myWholeNeighborhood.get(neighborNodeId); if (neighborNodeInfo != null) { neighborNodePosition = neighborNodeInfo.getPos(); return neighborNodePosition; } else { LOGGER.info("Houston we have a problem!"); } } else { LOGGER.info("Houston we have a problem!"); } return null; } COM: <s> this method returns the position of a neighbor that this has previously sent </s>
funcom_train/3155564
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private ProductRef createDefaultInputProduct() { Parameter inProdParam = SstRequestElementFactory.getInstance().createDefaultInputProductParameter(); ProductRef ref = null; try { ref = new ProductRef(new URL("file", "", inProdParam.getValueAsText())); } catch (MalformedURLException e) { Debug.trace(e); } return ref; } COM: <s> creates a code product ref code pointing to the sst default input product </s>
funcom_train/28293114
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean getSatisfactionIfActive() { if (_Debug) { System.out.println(" :: SeqActivity --> BEGIN - " + "getSatisfactionIfActive"); System.out.println(" :: SeqActivity --> END - " + "getSatisfactionIfActive"); } return mActiveMeasure; } COM: <s> describes if measure should be used to evaluate satisfaction if the </s>
funcom_train/32057660
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetPortsVisible() { System.out.println("testSetPortsVisible"); jgraph.setPortsVisible( true ); boolean b = jgraph.isPortsVisible(); assertEquals( b, true ); jgraph.setPortsVisible( false ); b = jgraph.isPortsVisible(); assertEquals( b, false ); } COM: <s> test of set ports visible method of class jgraph </s>
funcom_train/43199077
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateKinshipLinks(ArrayList<Integer> kinHouseholds) { try { Integer ID = new Integer(this.id); for (Integer kinHouseholdID : kinHouseholds) { Household kinHousehold = (Household) model.getHouseholdMap().get(kinHouseholdID); if (kinHousehold != null && model.getHouseholdList().contains(kinHousehold)) { kinHousehold.getRelativeHouseholds().add(ID); relativeHouseholds.add(kinHouseholdID); } } } catch (Exception e) {e.printStackTrace();} } COM: <s> add parents kin households to this new household </s>
funcom_train/7275075
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void addBasicGGEPs() { List<NameValue<?>> l = new LinkedList<NameValue<?>>(); l.add(new NameValue<String>(GGEP.GGEP_HEADER_CLIENT_LOCALE, ApplicationSettings.LANGUAGE.getValue())); addGGEPs(l); } COM: <s> adds all basic ggep information to the outgoing ping </s>
funcom_train/25418915
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getAttributeValue(String namespaceURI, String name) { if (this.getAttributes() != null) { XmlAttribute attr = this.getAttributes().find(namespaceURI,name); if (attr != null) return attr.getNodeInfo().getNodeValue(); } return null; } COM: <s> gets a child attribute value </s>
funcom_train/12836379
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private SOAPMessage extractSoap(String aMsg) throws SOAPException { SOAPMessage soapMsg = null; try { MessageFactory factory = MessageFactory.newInstance(); soapMsg = factory.createMessage(null, new ByteArrayInputStream(aMsg.getBytes())); } catch (SOAPException e) { throw e; } catch (IOException e) { e.printStackTrace(); } return soapMsg; } COM: <s> method to exract a soap message from a string representation </s>
funcom_train/29697811
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void reverseFacing() { facing = MovePath.getAdjustedFacing(facing, MovePath.STEP_TURN_RIGHT); facing = MovePath.getAdjustedFacing(facing, MovePath.STEP_TURN_RIGHT); facing = MovePath.getAdjustedFacing(facing, MovePath.STEP_TURN_RIGHT); } COM: <s> for yaws reverse the current facing </s>
funcom_train/7981981
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setDigest(String algorithm) { try { // Reuse extant digest if its sha1 algorithm. if (this.digest == null || !this.digest.getAlgorithm().equals(algorithm)) { setDigest(MessageDigest.getInstance(algorithm)); } } catch (NoSuchAlgorithmException e) { e.printStackTrace(); } } COM: <s> sets a digest function which may be applied to recorded data </s>
funcom_train/17931899
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addRow(ECollection ecol){ Object[] obj = {Integer.toString(ecol.getId()), ecol.getColname(), ecol.getDescription(), ecol.getDateOfCreation()}; data.addElement(obj); ecolshm.put(Integer.toString(ecol.getId()), ecol); int size = getRowCount(); fireTableRowsInserted(size-1,size-1); } COM: <s> adds an ecollection object as a new row </s>
funcom_train/23020335
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean validate(char[] component, int soffset, int eoffset, BitSet generous) { // validate each component by generous characters if (eoffset == -1) { eoffset = component.length - 1; } for (int i = soffset; i <= eoffset; i++) { if (!generous.get(component[i])) { return false; } } return true; } COM: <s> validate the uri characters within a specific component </s>
funcom_train/23937930
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public TopComponent findActiveEditor() { final Object[] resultTC = new Object[1]; if (SwingUtilities.isEventDispatchThread()) { resultTC[0] = findActiveEditorImpl(); } else { SwingUtilities.invokeLater(new Runnable() { public void run() { resultTC[0] = findActiveEditor(); } }); } return (TopComponent) resultTC[0]; } COM: <s> locates active editor top component </s>
funcom_train/49608798
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public WaitingList getWaitingList(String username,EntityManager em,int id) throws Throwable { try { WaitingList vo = JPAMethods.find(username, em, WaitingList.class, id); if (vo==null) throw new Exception("No WaitingList found having id: "+id); return vo; } catch (Throwable ex) { Logger.error(null, ex.getMessage(), ex); throw ex; } } COM: <s> retrieve a specific waiting list </s>
funcom_train/18856912
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testEmptyConstructor() { SymbolPropertyTableDB db = new SimpleSymbolPropertyTableDB(); assertEquals("Database is not empty.", 0, db.numTables()); assertFalse("Database does not return an empty iterator.", db.tableIterator().hasNext()); } COM: <s> test constructor to create an empty database </s>
funcom_train/32985812
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getNameFormatted() throws Exception { StringBuffer name = new StringBuffer(); name.append("<sup>"); name.append(getDBIsotope(1).getAtomicMass()); name.append("</sup>"); name.append(getElementSymbol()); return (name.toString()); } COM: <s> gets the name of the dbspectrum type object formatted for html </s>
funcom_train/37019774
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setChemFile(ChemFile cf) { stop(); setVisible(false); this.inFile = cf; restoreInFile(); if (nframes > 1) { animateAction.setEnabled(true); progressSlider.setMaximum(nframes); currentFrame = 0; } else { animateAction.setEnabled(false); } } COM: <s> set file for the animation at a particular chem file </s>
funcom_train/19063320
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void initContactItem(IContactItem contactItem, String displayName, String emailAddr) { NameParser.Name name = NameParser.getInstance().parseDisplayName(displayName); contactItem.setEmailAddress(emailAddr); contactItem.setFirstName(name.getFirstName()); contactItem.setLastName(name.getLastName()); contactItem.setName(name.toString()); } COM: <s> initialize the icontact item with the specified name and email addr </s>
funcom_train/39216575
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void calcCssClass() { StringBuilder sb = new StringBuilder(32); sb.append(NAVPOINT).append(this.level); if (this.isActive) sb.append(' ').append(ACTIVE_NAVPOINT).append(this.level); setClass(sb.toString()); } COM: <s> recalc and set css class </s>
funcom_train/14229848
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void onCallRedirection(Call call, String reason, Vector contact_list, Message resp) { LOGGER.fine("onCallRedirection()"); if (call!=this.call) { LOGGER.fine("NOT the current call"); return; } LOGGER.info("REDIRECTION ("+reason+")"); call.call(((String)contact_list.elementAt(0))); } COM: <s> callback function called when arriving a 3xx call redirection </s>
funcom_train/20748335
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public AbstractStorableItemGUI dataItemGUI(IStorableItem dataItem) throws SamosirException { if (! (dataItem instanceof JepItem)) { Logger.defaultLogger.log(Logger.ERROR, "JepPlugin.dataItemGUI", "data item passed not instance of JepItem"); throw new SamosirException("item passed not instance of JepItem"); } return new JepItemGUI((JepItem)dataItem); } COM: <s> get a gui for editing a jep item </s>
funcom_train/41731276
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void add(short [] values,Object data) { if (width<=0) { width = values.length; } if (workTemp==null) { workTemp = new Entry[width]; } addInternal(false,-1,workTemp,values,0,data); } COM: <s> adds a monomial to the tree with associated data </s>
funcom_train/37838163
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean leavesZone(final Rectangle2D shape) { final double x = shape.getX(); final double y = shape.getY(); final double w = shape.getWidth(); final double h = shape.getHeight(); if ((x < 0) || (x + w > width)) { return true; } if ((y < 0) || (y + h > height)) { return true; } return false; } COM: <s> check if a rectangle is at least partially outside the map </s>
funcom_train/184623
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double execute(Parameters param) { if(isEnabled()) { Graphics g = (Graphics)param.getObject("graphics"); EnvironmentCell cell = (EnvironmentCell)param.getObject("cell"); g.setColor(cell.getLandColor()); g.fillRect(cell.getX()*Constants.cellWidth, cell.getY()*Constants.cellLength , Constants.cellLength, Constants.cellWidth); } return 0; } COM: <s> draws cell in map window </s>
funcom_train/3593795
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JComponentHandler createDesktopPaneHandler() { // Create a simple handler to wrap the desktop pane. // Everything gets added to that. JComponentHandler h = new JComponentHandler() { protected void createPeer() { this.component = desktopPane; } public void registerAction(String s, NiteAction a) { System.err.println( "Warning, attempt to register an action with a desktop pane"); } }; h.init("", Collections.EMPTY_MAP); return h; } COM: <s> create a ndisplay object handler which wraps the jdesktop pane </s>
funcom_train/2292616
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public List getDefaultActionIds() { List ids = new ArrayList(); Iterator itDefActions = m_defaultActions.iterator(); while (itDefActions.hasNext()) { I_CmsListDirectAction action = (I_CmsListDirectAction)itDefActions.next(); ids.add(action.getId()); } return Collections.unmodifiableList(ids); } COM: <s> returns the default action ids list </s>
funcom_train/20042454
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void _beginOfScript() { String multiScript = "ab" + katakana ; int pos = oObj.beginOfScript(multiScript, 3, ScriptType.ASIAN) ; log.println("Position = " + pos) ; tRes.tested("beginOfScript()", pos == 2) ; } COM: <s> tries to find the begining of the nearest script specified </s>
funcom_train/37229264
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { Iterator i = vFields.iterator(); StringBuffer sb = new StringBuffer(); while( i.hasNext() ) { HL7Element eNext = (HL7Element)i.next(); sb.append( eNext.toString() ); sb.append( getSeparator( FIELD_SEP ) ); } sb.append( "\n" ); return sb.toString(); } COM: <s> output this segment as an hl7 string </s>
funcom_train/49789874
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetEmptyClick() throws Exception { beginAtSitemapThenPage("Target Frame"); { String target = getLabelIDForText("parameter"); assertLabeledFieldEquals(target, ""); } { String target = getLabelIDForText("target"); assertLabeledFieldEquals(target, ""); } // click the button clickButtonWithText("update target"); // still empty { String target = getLabelIDForText("parameter"); assertLabeledFieldEquals(target, ""); } { String target = getLabelIDForText("target"); assertLabeledFieldEquals(target, ""); } assertNoProblem(); } COM: <s> clicking the button will set the target field to since </s>
funcom_train/28507596
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void retrieveCameraRight( Vector3f p_dest ){ m_tCamMtxRX.rotX( m_cameraRx ); m_tCamMtxRY.rotY( m_cameraRy ); m_tCamMtx.mul( m_tCamMtxRY, m_tCamMtxRX ); m_tCamMtx.transform( m_sCamRight, p_dest); } COM: <s> retrieve camera right vector </s>
funcom_train/2293019
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void executeListIndepActions() { if (getList().getMetadata().getItemDetailDefinition(getParamListAction()) != null) { // toggle item details getList().getMetadata().toogleDetailState(getParamListAction()); // lazy initialization initializeDetail(getParamListAction()); } listSave(); } COM: <s> this method should handle the default list independent actions </s>
funcom_train/42129581
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object delete(final Long id) throws ObjectNotFoundException { try { getHibernateTemplate().delete(load(id)); return null; } catch (HibernateObjectRetrievalFailureException e) { Throwable cause = e.getCause(); if (cause instanceof org.hibernate.ObjectNotFoundException) { throw new ObjectNotFoundException(id, cause); } else { throw e; } } } COM: <s> delete the object with the id from persistent storage </s>
funcom_train/51617638
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void stopAutoSched() { autoSchedActive = false; schedCompiler.stopRunning(); schedCompiler.interrupt(); //time to wake up and terminate while( schedCompiler.isRunning() ) { try { Thread.sleep( 250 ); } catch( InterruptedException e ) { /* keep waiting until it is done */ } } refreshState(); } COM: <s> stop automatic scheduling </s>
funcom_train/32150651
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addMaxCardinalityPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_UIContainment_maxCardinality_feature"), getString("_UI_PropertyDescriptor_description", "_UI_UIContainment_maxCardinality_feature", "_UI_UIContainment_type"), UIVocabularyPackage.Literals.UI_CONTAINMENT__MAX_CARDINALITY, true, false, false, ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the max cardinality feature </s>
funcom_train/3023999
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void printCurrentTag(JavaDocComponent current, PrintData printData, boolean onlyDescription, boolean singleLine) { // Print the element printData.setCurrentIsSingle(singleLine); current.print(printData); printData.setCurrentIsSingle(false); if (!onlyDescription && isDescription(current)) { printSpaceAfterDescription(printData); } } COM: <s> prints the current tag </s>
funcom_train/42642904
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addPrintedRepresentationPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ITerm_printedRepresentation_feature"), getString("_UI_PropertyDescriptor_description", "_UI_ITerm_printedRepresentation_feature", "_UI_ITerm_type"), DigitalHPSPackage.Literals.ITERM__PRINTED_REPRESENTATION, true, false, true, null, null, null)); } COM: <s> this adds a property descriptor for the printed representation feature </s>
funcom_train/43245010
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetStateFullName() { System.out.println("setStateFullName"); String stateFullName = ""; StateObject instance = new StateObject(); instance.setStateFullName(stateFullName); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } COM: <s> test of set state full name method of class org </s>
funcom_train/9184660
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void doReconciliation(String tsName, LimeServerID host) { //do the conventional reconciliation jobs CommunicationMgr.get().postEvent( new RemReconcileOp(LimeConstants.RECONCILE_NO_LAZY, LimeConstants.OPEN, tsName, host)); //do the custom reconciliation jobs Iterator it = Reconciliator.reconJobs.iterator(); while(it.hasNext()) { ((ReconciliationJob)it.next()).doReconciliation(tsName, host); } } COM: <s> perform the reconciliation jobs </s>
funcom_train/51639717
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void sessionStarted() { if (!isEnabled()) return; IStatus status; try { IJavaCompletionProposalComputer computer= getComputer(); if (computer == null) // not active yet return; PerformanceStats stats= startMeter(SESSION_STARTED, computer); computer.sessionStarted(); stopMeter(stats, SESSION_ENDED); return; } catch (InvalidRegistryObjectException x) { status= createExceptionStatus(x); } catch (CoreException x) { status= createExceptionStatus(x); } catch (RuntimeException x) { status= createExceptionStatus(x); } fRegistry.informUser(this, status); } COM: <s> notifies the described extension of a proposal computation session start </s>
funcom_train/25663090
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean checkVariable(String varName) { final boolean varExists = variableValues.containsKey(varName); if(!varExists && logger.isDebugEnabled()) { logger.warn(String.format("variable '%s' does not occur in template!", varName)); } return varExists; } COM: <s> checks if a variable occurs in the template </s>