__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/2292225
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getUriTemplate() { String result = ""; try { result = getCms().readPropertyObject(getParamTempfile(), CmsPropertyDefinition.PROPERTY_TEMPLATE, true).getValue( ""); } catch (CmsException e) { LOG.warn(Messages.get().getBundle().key(Messages.LOG_READ_TEMPLATE_PROP_FAILED_0), e); } return result; } COM: <s> returns the open cms vfs uri of the template of the current page </s>
funcom_train/10947286
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void complete(String workEffortId, String partyId, String roleTypeId, Timestamp fromDate, Map<String, Object> result) throws WfException { WfAssignment assign = WfFactory.getWfAssignment(delegator, workEffortId, partyId, roleTypeId, fromDate); if (UtilValidate.isNotEmpty(result)) assign.setResult(result); assign.complete(); } COM: <s> complete an activity assignment and follow the next transition s </s>
funcom_train/29410634
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setColorSchema(IGlobalColorSchema schema){ Iterator<ColorNotice> elements = notices.iterator(); while(elements.hasNext()){ ColorNotice notice = elements.next(); ColorChangeable editPart = notice.getEditPart(); Color foreground = schema.getForeground(editPart.getClass()); Color background = schema.getBackground(editPart.getClass()); if(execute(notice.getEditPart(), foreground, background)){ notice.getEditPart().applyColor(foreground, background); } } } COM: <s> applies the delivered color schema to all elements </s>
funcom_train/18350660
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setCapComponent(CapComponent capComponent) { this.capComponent = capComponent; ok.setEnabled(true); cancel.setEnabled(true); // Bring frame to front ready for user to make context selection Frame frame = JOptionPane.getFrameForComponent(this); frame.setVisible(true); frame.toFront(); frame.requestFocus(); } COM: <s> this method plugs in a single code cap component code </s>
funcom_train/36460102
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setRecordingEvent(Recording recording, EventParent event) { int index = recordings.indexOf(recording); if (index != -1) { if (event != null) { recordings.get(index).setEventUri(event.getId()); } else { recordings.get(index).setEventUri(null); } events.set(index, event); fireTableRowsUpdated(index, index); } } COM: <s> sets the event of a recording </s>
funcom_train/12810097
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void resetMaximum(Writer writer) { println(writer, "maximum: ", maximum_memory_use); println(writer, "total used: ", maximum_memory_use - initial_memory_use); maximum_memory_use = 0l; initial_memory_use = getMemoryUse(); println(writer, "initial memory use: ", initial_memory_use); } COM: <s> resets the maximum memory that is in use </s>
funcom_train/3888214
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addCreateNewPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_StaffType_createNew_feature"), getString("_UI_PropertyDescriptor_description", "_UI_StaffType_createNew_feature", "_UI_StaffType_type"), ImsldV1p0Package.Literals.STAFF_TYPE__CREATE_NEW, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the create new feature </s>
funcom_train/18788143
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getSQLTypeFromMappingsFile(String dialect, String typeName) { MetaClassifier propertyType = model.findClassifier(typeName); if (propertyType != null && propertyType instanceof MetaDatatype) { typeName = translateDatatype((MetaDatatype) propertyType, "SQL", dialect, false); } else { typeName = null; } return typeName; } COM: <s> returns mapped data type </s>
funcom_train/51113146
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JComboBox getSpeedList() { if (speedList == null) { try { speedList = new JComboBox(); speedList.setPreferredSize(new java.awt.Dimension(20,24)); // Generated speedList.addItem("2400"); speedList.addItem("9600"); speedList.addItem("19200"); speedList.addItem("38400"); speedList.addItem("57600"); } catch (java.lang.Throwable e) { // TODO: Something } } return speedList; } COM: <s> this method initializes j combo box </s>
funcom_train/5063724
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void removeConverter(String chanGroup, SKJEventConverter converter) { PriorityQueue pq = null; if (groupEventConverters.containsKey(chanGroup)) { Map m = (Map)groupEventConverters.get(chanGroup); if (m.containsKey(converter.targetClass)) { pq = (PriorityQueue) m.get(converter.targetClass); pq.removeNodeAt(pq.indexOf(converter)); } } } COM: <s> removes an event converter from the connection for a specific channelgroup </s>
funcom_train/15617174
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addEntry(String name, String text, int level) { if (this.status != STATUS_NO_TOC && this.status != STATUS_TOC_INITIALIZED) { this.setStatus(STATUS_TOC_INITIALIZED); } name = this.buildUniqueName(name); TableOfContentsEntry entry = new TableOfContentsEntry(name, text, level); this.getEntries().put(name, entry); if (level < minLevel) { minLevel = level; } } COM: <s> add a new table of contents entry to the table of contents object </s>
funcom_train/51782790
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void editLabel(Label label) { if (label != null) { if (label instanceof MultiLineLabel) { multilineEditor.setFont(diagramEditor.getDrawingContext().getFont( FontType.DEFAULT)); multilineEditor.showEditor(label, diagramEditor.getGraphics()); } else { captionEditor.showEditor(label, diagramEditor.getGraphics()); } } } COM: <s> open an editor for the specified label object </s>
funcom_train/37475961
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean setValue(String ifield, String value, String uname) throws Exception { boolean ret = false; Databit dbit = getDatabit(ifield); if (dbit != null){ ret = dbit.setValue(value, uname); } else { Logger.ERROR("Databit " + ifield + " not found in set " + this.getName()); } return ret; } COM: <s> this method sets values in the dataset </s>
funcom_train/42282947
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public TreeNode removeChild(Object childElement) { for (Iterator<TreeNode> it = children.iterator(); it.hasNext();) { TreeNode node = (TreeNode) it.next(); if(node.element == childElement) { it.remove(); return node; } } return null; } COM: <s> remove a child node </s>
funcom_train/1481327
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object insertWithOverflow(Object element) { if (size < maxSize) { put(element); return null; } else if (size > 0 && !lessThan(element, heap[1])) { Object ret = heap[1]; heap[1] = element; adjustTop(); return ret; } else { return element; } } COM: <s> insert with overflow is the same as insert except its </s>
funcom_train/2610446
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void terminate(String reason) throws XMPPException { if (isClosed()) return; System.out.println("closssinngg State: " + this.getState()); Jingle jout = new Jingle(Jingle.Action.SESSIONTERMINATE); jout.setType("set"); sendFormattedJingle(jout); triggerSessionClosed(reason); } COM: <s> terminates the session with a custom reason </s>
funcom_train/50110522
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { setReceived(this.receivedDate.getDate()); setReview(this.reviewDate.getDate()); setIssued(this.issuedDate.getDate()); return super.validate(actionMapping, httpServletRequest); } COM: <s> set standard properties from any helpers e </s>
funcom_train/37493027
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: /*public void addGoal(String name, ingenias.editor.entities.StateGoal g) { g.setState("pending"); try { this.insert(g); ingenias.jade.graphics.MainInteractionManager .log("Added to mental state a goal " + g.getId(), this.agentName); this.setModified(); } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } }*/ COM: <s> adds a goal to the mental state </s>
funcom_train/45623977
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void initializeContextTypeResolvers() { // global addResolver(new GlobalTemplateVariables.Cursor()); addResolver(new GlobalTemplateVariables.WordSelection()); addResolver(new GlobalTemplateVariables.LineSelection()); addResolver(new GlobalTemplateVariables.Dollar()); addResolver(new GlobalTemplateVariables.Date()); addResolver(new GlobalTemplateVariables.Year()); addResolver(new GlobalTemplateVariables.Time()); addResolver(new GlobalTemplateVariables.User()); // addResolver(new Collection()); addResolver(new Todo()); } COM: <s> initializes the context type resolvers </s>
funcom_train/3370183
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void moveRow(int start, int end, int to) { int shift = to - start; int first, last; if (shift < 0) { first = to; last = end; } else { first = start; last = to + end - start; } rotate(dataVector, first, last + 1, shift); fireTableRowsUpdated(first, last); } COM: <s> moves one or more rows from the inclusive range code start code to </s>
funcom_train/41457654
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setMode(ConnectionMode mode) throws ModeNotSupportedException { if (this.mode != null) { this.mode.deactivate(); } this.mode = convert(mode); if (this.mode != null) { try { this.mode.activate(); } catch (FormatNotSupportedException e) { throw new ModeNotSupportedException(e.getMessage()); } } } COM: <s> changes transmission mode </s>
funcom_train/19230090
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void add(osid.filing.CabinetEntry entry, java.lang.String name) throws osid.filing.FilingException { /* Update the display name in entry with name. Does this make sense? */ entry.updateDisplayName(name); /* Add the element to the Vector array. */ children.addElement(entry); } COM: <s> add the entry to the list of children </s>
funcom_train/7777702
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addFoodItem (MenuItemBean menuItem, FoodItemBean foodItem) throws ErrorBean { try { PreparedStatement stmt = getAddFoodItemSQL(); stmt.setInt(1, menuItem.getId()); stmt.setInt(2, foodItem.getId()); stmt.executeUpdate(); } catch (SQLException e) { throwError( BROKER_INSERT_ERROR, e.getMessage(), this); } } COM: <s> adds a food item to a menu in the database </s>
funcom_train/47520583
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String asMinimalJSON() { return "{\"id\" : \"" + this.id + "\", \"name\" : \"" + this.firstName.replace("\"", "&#34") + " " + this.lastName.replace("\"", "&#34") + "\"}"; } COM: <s> returns the user as a json string with minimal information </s>
funcom_train/22550831
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void validateDownload() { if(shouldValidate(deserializedFromDisk)) { if(downloadSHA1 != null) { RouterService.getContentManager().request(downloadSHA1, new ContentResponseObserver() { public void handleResponse(URN urn, ContentResponseData response) { if(response != null && !response.isOK()) { invalidated = true; stop(); } } }, 5000); } } } COM: <s> validates the current download </s>
funcom_train/14300374
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double posterior_expected_value(DiscreteFunction df) { double ev = 0.0; double p = 0.0; for (int i=0; i<df.values.length; i++) { p += values[i]; ev += values[i] * df.values[i]; } return(ev/p); } COM: <s> obtain posterior expected value of a discrete function </s>
funcom_train/35658051
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addContentTab(String title, Collection<Media> mediaList) { ScrollPanel scrollPanel = new ScrollPanel(); scrollPanel.setSize("100%", "100%"); VerticalPanel vp = new VerticalPanel(); for (Media media : mediaList) { vp.add(media); dragController.makeDraggable(media, media.getDraggable()); content.add(media); } scrollPanel.add(vp); contentTabPanel.add(scrollPanel, title); } COM: <s> adding a tab of content to the tabpanel </s>
funcom_train/3794536
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void debugMe(String str) { String me = str + "->" + _name; __log.debug(me + " I have " + this.getAncestorNumber() + " ancestors"); for (Iterator iter = _sons.iterator(); iter.hasNext();) { CommandContext element = (CommandContext) iter.next(); element.debugMe(me); } } COM: <s> debug method that ouputs to log the number ancestors of the context and </s>
funcom_train/49608776
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void deleteCities(String username,EntityManager em,List<City> vos) throws Throwable { try { for(City vo: vos) { JPAMethods.remove(em, username, DefaultFieldsCallabacks.getInstance(), vo); } } catch (Throwable ex) { Logger.error(null, ex.getMessage(), ex); throw ex; } } COM: <s> delete phisically a city </s>
funcom_train/36558127
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public CharacterParams setPantsColor(float r, float g, float b, float specR, float specG, float specB) { pantsColor[0] = r; pantsColor[1] = g; pantsColor[2] = b; pantsSpecColor[0] = specR; pantsSpecColor[1] = specG; pantsSpecColor[2] = specB; return this; } COM: <s> set the color values for the pants material </s>
funcom_train/51394538
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void computeUnsegmentedExposures() { for (Iterator iter=pes.getSiteFootprintList().iterator(); iter.hasNext(); ) { SiteFootprint pesSf = (SiteFootprint) iter.next(); if (pesSf.getSiteType().isPES) //some Sites have both PES and ES SiteFootprints computePesSfUnsegmented( pesSf); } } COM: <s> call this method if neither the pes or the es is segmented </s>
funcom_train/11421326
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private XmlSchema createSchema() { String tns = mapper.map(getScope()); XmlSchema xmlSchema = schema; if (tns != null) { xmlSchema = manager.getXmlSchema(tns); if (xmlSchema == null) { xmlSchema = manager.createXmlSchema(tns, schemas); } } return xmlSchema; } COM: <s> creates the xml schema corresponding to the module scope if none exists </s>
funcom_train/27770905
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void doAfterChildren(ElementInfo info, String body) throws ParseException { String channelId = getAttribute(CryptoAttributes.CHANNEL_ID, info); config.setChannelId(channelId); SingleChannelCryptoConfigConsumer consumer = (SingleChannelCryptoConfigConsumer)findAncestorOfType( SingleChannelCryptoConfigConsumer.class ); consumer.setCryptoConfig(config); } COM: <s> find the parent of type single channel crypto manager parser or </s>
funcom_train/36011201
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void printAllCitizentsWithMilitaryService(){ printToConsole("\n --------- Method printAllCitizentsWithMilitaryService performed! -------- "); Citizen c=null; StringBuffer result = new StringBuffer(" All Citizents with military service:"); List<Citizen> citizensList=convertMapToList(citizens); for (int i=0;i<citizensList.size();i++){ c=citizensList.get(i); if(c.isMilitaryService()){ result.append("\n" + c.toString()); } } print(result.toString()); } COM: <s> the method print full citizen details if he has military service </s>
funcom_train/28996237
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getGroupNames() { String groupNames = ""; Group[] grps = getGroups(); if (grps != null && grps.length > 0) { for (int i = 0; i < grps.length; i++) { groupNames += grps[i].getName(); if (i < grps.length - 1) { groupNames += ","; } } } return groupNames; } COM: <s> return a comma delimeted string of group names for this user </s>
funcom_train/28501597
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public String getParamFromTL( JD_Taglist pParamsTL, String pTag, int pIndex ) throws Exception { String v = (String)pParamsTL.getData( "$" + pIndex + "." + pTag ); if (v==null) v = (String)pParamsTL.getData( "jecars:$" + pIndex + "." + pTag ); return v; } COM: <s> get param from tl </s>
funcom_train/18955210
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isValid() { if ((text == null) || (text.length() == 0) || (von == null) || (bis == null) || (calendar == null)) { return false; } if (ibis < ivon) { Calendar swp = (Calendar) von.clone(); setVonDate((Calendar) bis.clone()); setBisDate(swp); } return true; } COM: <s> this method checks the validation of the content of this class </s>
funcom_train/15563428
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void buildDirectLinks() { // set the direct predecessor set based on the direct successor set for(int walk_op = 0; walk_op < this.count; walk_op++) { Operation op = this.get(walk_op); for (int walk_suc = 0; walk_suc < op.getDirectSuccessors().count; walk_suc++) { Operation suc = op.getDirectSuccessors().get(walk_suc); OperationSet suc_preSet = suc.getDirectPredecessors(); suc_preSet.add(op); } } } COM: <s> build up the direct predecessor set </s>
funcom_train/2881379
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void refresh(int row) throws Exception { String name = (String) getValueAt(row, 0); Object result = m_main.doAction(new GetAttributeAction(name)); m_propVals.set(row, new Attribute(name, result)); this.fireTableChanged(new TableModelEvent(this, row)); } COM: <s> refresh the value in the specified row </s>
funcom_train/12188862
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testStringWithoutSpaces() throws ExpressionException { final Function function = new NormalizeSpaceFunction(); Value result = function.invoke(expressionContextMock, new Value[]{factory.createStringValue("abc")}); assertTrue(result instanceof StringValue); assertEquals("abc", ((StringValue) result).asJavaString()); } COM: <s> tests if function works correctly for strings without spaces </s>
funcom_train/3183993
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int compareTo(Object o) { if (!o.getClass().equals(this.getClass())) { throw new ClassCastException(); } Address a = (Address) o; //return Worksheet.lastColumn * (r - a.r) + (c - a.c); if (r == a.r) { return c - a.c; } return r - a.r; } COM: <s> compare this addres with the specified object for order </s>
funcom_train/29768730
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getColumnConstraints(MapField field) { String colName = translateFieldToColumn(field, false); String dbType = getTypeMap().map(field.getType()); boolean isId = MapBeanUtils.isIdentity(field); boolean isAutoIncrement = MapBeanUtils.isAutoIncrement(field); String create = getColumnConstraints(colName, dbType, isId, isAutoIncrement); return create; } COM: <s> creates constraints of a db column </s>
funcom_train/18905254
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public List query(List queries) throws QueryException { List answers = new ArrayList(queries.size()); // TODO: The following should be done in parallel, but this will work // for the time being for (Iterator i = queries.iterator(); i.hasNext(); ) { answers.add(query( (Query) i.next())); } return answers; } COM: <s> perform multiple queries on the database </s>
funcom_train/29421579
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Element constructElements(Element element, Document d) { AixmUtil.constructSingleElement(this.type, element, "type"); AixmUtil.constructContainerElement(this.location, element, d, "isLocatedAt", "ElevatedPoint"); return element; } COM: <s> creates a dom4j element representing an aixm runway centreline point time slice </s>
funcom_train/15740761
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setFeedbackDisabled(boolean disabled) { int status = disabled ? FEEDBACK_DISABLED : FEEDBACK_ENABLED; saros.getConfigPrefs().putInt( PreferenceConstants.FEEDBACK_SURVEY_DISABLED, status); saros.saveConfigPrefs(); saros.getPreferenceStore().setValue( PreferenceConstants.FEEDBACK_SURVEY_DISABLED, status); } COM: <s> saves in the global preferences and in the workspace if the feedback is </s>
funcom_train/5529614
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { return (digits(mostSig >> 32, 8) + "-" + digits(mostSig >> 16, 4) + "-" + digits(mostSig, 4) + "-" + digits(leastSig >> 48, 4) + "-" + digits(leastSig, 12)); } COM: <s> returns a 36 character string of six fields separated by hyphens </s>
funcom_train/1549731
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean retainAll(Collection<?> collection) { if (fast) { synchronized (this) { ArrayList temp = (ArrayList) list.clone(); boolean result = temp.retainAll(collection); list = temp; return (result); } } else { synchronized (list) { return (list.retainAll(collection)); } } } COM: <s> remove from this collection all of its elements except those that are </s>
funcom_train/5268736
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object obj) { if(obj == null || (!(obj instanceof CharacterType))){ return false; } CharacterType other = (CharacterType) obj; /* TODO: Do more involved logic here. * need to check if the character matches a different unicode character * that represents the same letter since some arabic letters have 5 * different unicode representations. */ return word.equalsIgnoreCase(other.word); } COM: <s> checks is the obj is the same as this object </s>
funcom_train/28116438
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testInvalidObject() throws Exception { TestContext context = getContext(); BytesMessage message = (BytesMessage) context.getMessage(); try { message.writeObject(new java.math.BigDecimal(0.0)); fail("BytesMessage.writeObject() should only support " + "objectified primitives"); } catch (MessageFormatException expected) { // the expected behaviour } } COM: <s> verifies that attempting to write an invalid object using the </s>
funcom_train/35692231
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void updateFileValueBinding() { try { ValueBinding vb = getValueBinding("file"); if (vb != null) vb.setValue(FacesContext.getCurrentInstance(), getFile()); } catch (Exception e) { log.warn("The InputFile's file attribute has a ValueBinding, whose value could not be set", e); } } COM: <s> in the 1 </s>
funcom_train/35416134
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void startInterpolation() { if (posInterpolation != null) { Vector3f pos = controlled.getLocalTranslation(); posInterpolation.init(pos, desiredPosition); interpolatePosition = true; } if (rotInterpolation != null) { Quaternion rot = controlled.getLocalRotation(); rotInterpolation.init(rot, desiredRotation); rotInterpolation.setAcceleratePastInitial(false); interpolateRotation = true; } setActive(interpolatePosition || interpolateRotation); } COM: <s> you have to ensure that spatials local translation and local rotation </s>
funcom_train/6260335
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void annotation() { println(); println("/*"); println(" * Contains operations that provide the dependent Package, "); println(" * Association and Class proxy objects for a package object."); println(" * For more information see JMI specification."); println("*/"); } COM: <s> generates some comments for generated interface </s>
funcom_train/3883196
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addMetadataschemePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_DocumentRoot_metadatascheme_feature"), getString("_UI_PropertyDescriptor_description", "_UI_DocumentRoot_metadatascheme_feature", "_UI_DocumentRoot_type"), ImsMdRootv1p1Package.Literals.DOCUMENT_ROOT__METADATASCHEME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the metadatascheme feature </s>
funcom_train/28339522
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public PhaseMap compose(PhaseMap mapRight) { PhaseMap mapNew = new PhaseMap(); mapNew.setZeroOrder( this.getZeroOrder().plus( mapRight.getZeroOrder() ) ); mapNew.setFirstOrder( this.getFirstOrder().times( mapRight.getFirstOrder() ) ); return mapNew; } COM: <s> non destructive map composition binary composition of two phase maps </s>
funcom_train/24122920
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private TNode buildTree() { TNode root = new TNode(); root.fNodeName = Variant.BASE_NAME; root.fChilds = new TNode[Variant.values().length]; for(Variant variant : Variant.values()) { TNode node = makeVariantNode(variant); root.fChilds[variant.ordinal()] = node; } return root; } COM: <s> constructs the tree from </s>
funcom_train/25501453
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private double computeSimConf(Correspondence<? extends OWLEntity> alignCorr, Correspondence<? extends OWLEntity> refAlign) throws IllegalArgumentException { if (alignCorr == null || refAlign == null) throw new IllegalArgumentException( "Either one or two Correspondences are null." ); return 1.0 - Math.abs(alignCorr.getConfidence() - refAlign.getConfidence()); } COM: <s> computes similarity of confidence of the reference and alignment </s>
funcom_train/15400275
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addPoint(Point2D p) { Point2D.Double pp = null; // Make it Point2D.Double for BezierCurveFit if (p instanceof Point2D.Double) { pp = (Point2D.Double)p; } else { pp = new Point2D.Double(p.getX(), p.getY()); } _points.add(pp); setGraphicObjectDataset(createGraphicObjectDataset()); } COM: <s> adds point in freehand curve </s>
funcom_train/25988345
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public IRubyObject setValue(int offset, IRubyObject value, int depth) { if (depth > 0) { assertParent(); return parent.setValue(offset, value, depth - 1); } else { assertSetValue(offset, value); return setValueDepthZero(value, offset); } } COM: <s> set value in current dynamic scope or one of its captured scopes </s>
funcom_train/37566146
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Vector getLinks(UTF8 url) throws IOException { Vector records = new Vector(3); Link l = new Link(); l.getURL().set(url); reader.seek(l); while (reader.next(l, NullWritable.get())) { if (url.equals(l.getURL())) { records.add(l); l = new Link(); } else { break; } } return records; } COM: <s> get all the hyperlinks that link to the indicated url </s>
funcom_train/18897610
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private ConstraintExpression newJoinConstraint(Node type, List args) throws KruleStructureException { logger.debug("Building join constraint of type <" + type + ">: " + args); if (type.equals(CONSTRAINT_CONJUNCTION)) { return new ConstraintConjunction(args); } else if (type.equals(CONSTRAINT_DISJUNCTION)) { return new ConstraintDisjunction(args); } throw new KruleStructureException("Unknown constraint type: " + type); } COM: <s> create a new join constraint </s>
funcom_train/28169551
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void updateDrawing() { if (drawing != null) { drawing.fireUndoableEditHappened( CANVAS_FILL_OPACITY.setUndoable(drawing, opacityField.getValue() / 100d, labels) ); drawing.fireUndoableEditHappened( CANVAS_FILL_COLOR.setUndoable(drawing, colorButton.getBackground(), labels) ); } } COM: <s> updates the drawing due to changes made on this panel </s>
funcom_train/1379460
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getPnlCentro() { if (pnlCentro == null) { try { pnlCentro = new JPanel(); pnlCentro.setLayout(new BorderLayout()); // Generated pnlCentro.add(getJDesktopPane(), BorderLayout.CENTER); // Generated } catch (java.lang.Throwable e) { // TODO: Something } } return pnlCentro; } COM: <s> this method initializes pnl centro </s>
funcom_train/47509547
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void save(ExpedienteRecebido entity) { EntityManagerHelper.log("saving ExpedienteRecebido instance", Level.INFO, null); try { getEntityManager().persist(entity); EntityManagerHelper.log("save successful", Level.INFO, null); } catch (RuntimeException re) { EntityManagerHelper.log("save failed", Level.SEVERE, re); throw re; } } COM: <s> perform an initial save of a previously unsaved expediente recebido entity </s>
funcom_train/32640026
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSortEverything() { int start = 0; int end = 7; instance.sort(list, resolver, start, end); test(0,0); test(0,1); test(2,2); test(2,3); test(3,4); test(3,5); test(3,6); test(5,7); } COM: <s> test of sort method of class net </s>
funcom_train/39177323
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void startKeepaliveTask(final String lockToken) { ScheduledFuture<?> future = keepaliveExecutor.scheduleWithFixedDelay( new Runnable() { public void run() { sds.keepaliveLock(lockToken); } }, keepaliveInterval, keepaliveInterval, TimeUnit.SECONDS); keepaliveTasks.put(lockToken, future); } COM: <s> start a task that will make periodic keepalive calls to the doc </s>
funcom_train/22603712
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public CrossTab createCrossTab(List<Object[]> resultSet){ TabularContext tabularCtx=TabularContextFactory.tabularContextInstance(resultSet);//need factory to create TabularContext CrossTabContext crosstabCtx=CrossTabContextFactory.crossTabContextInstance();//need factory to create CrosstabCtx invoke(tabularCtx, crosstabCtx); return crosstabCtx.getCrossTab(); } COM: <s> todo take the result from query </s>
funcom_train/15627567
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Component createUserPanel() { final JComponent panel = new JPanel(new GridBagLayout()); final PreferencesHelper preferencesHelper = new PreferencesHelper(panel); panel.setBorder(createTitledBorder(ActionBuilderUtils.getString(ACTION_BUILDER, "optionsUser"))); userField = new JTextField(globalSettings.getUserName()); preferencesHelper.addComponent(userField); return panel; } COM: <s> creates the sub panel with the user settings </s>
funcom_train/1711618
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setCharacteristic(int characterInt,boolean[] newCharacteristicArray) { /** * 1 = invisible * 2 = hidden * 3 = print * 4 = nozoom * 5= norotate * 6= noview * 7 = read only (ignored by wiget) * 8 = locked * 9 = togglenoview */ if(characterInt==-1){ characteristic = newCharacteristicArray; }else { characteristic[characterInt-1] = true; } } COM: <s> sets the characterstics for this form </s>
funcom_train/27944651
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void gc() { try { iprof.runGC(); } catch (COMMUN_Exception e) { fireVMDisconnected(); } catch (UNAVAILABLE_Exception e) { //PENDING throw new RuntimeException("TODO: handle this: \" Garbage Collection is unavailable\"" + e.getMessage() ); } } COM: <s> performes the garbage collection in the mirrored virtual machine </s>
funcom_train/31526081
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void printSelf(PrettyPrinter printout) throws IOException { SymTabAST array = (SymTabAST)nodeToPrint.getFirstChild(); SymTabAST expr = (SymTabAST)array.getNextSibling(); PrinterFactory.makePrinter(array).print(printout); printout.print("["); PrinterFactory.makePrinter(expr).print(printout); printout.print("]"); } COM: <s> prints an index operator to the printer </s>
funcom_train/4521155
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void save(PerfilesOpciones entity) { LogUtil.log("saving PerfilesOpciones instance", Level.INFO, null); try { entityManager.persist(entity); LogUtil.log("save successful", Level.INFO, null); } catch (RuntimeException re) { LogUtil.log("save failed", Level.SEVERE, re); throw re; } } COM: <s> perform an initial save of a previously unsaved perfiles opciones entity </s>
funcom_train/17773893
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getBitRate() { int br = NULL; if (vbrHeader != null) { br = vbrHeader.getAvgBitrate(); } else if (bitRate == FREE_FORMAT) { br = (ffBitRate > 0) ? ffBitRate : FREE_FORMAT; } else { br = bitRate; } return br; } COM: <s> returns the bitrate of this mpeg </s>
funcom_train/31435401
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setupComponents() { setLayout(new BorderLayout()); tpTimePanel = new TimePanel(); configPanel = new SerialConfigurationPanel(this); add(configPanel, BorderLayout.NORTH); add(tpTimePanel, BorderLayout.CENTER); configPanel.setPortValue(); } COM: <s> setsup the components on the panel </s>
funcom_train/38810041
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void test_TCM__OrgJdomDocType_setPublicID_String() { String publicID = "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"; DocType theDocType = new DocType("anElement"); theDocType.setPublicID(publicID); assertEquals(publicID, theDocType.getPublicID()); } COM: <s> test the setter for public id </s>
funcom_train/31204419
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean _clearTempPasswordForUser(String username) { if (username == null) { return false; } _ec.lock(); EOEnterpriseObject eo; try { eo = EOUtilities.objectMatchingValues(_ec, _authRecordEntityName, new NSDictionary(new Object[] { username }, new String[] { _qualifierKeysSecondary[0] })); } catch (Exception e) { _ec.unlock(); return false; } if (eo == null) return false; eo.takeStoredValueForKey(null, "temppassword"); _ec.saveChanges(); _ec.unlock(); return true; } COM: <s> clear temp password for user </s>
funcom_train/32636006
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void delete() { Session hibernateSession = HibernateController.instance().createSession(); Transaction tx = null; try { tx = hibernateSession.beginTransaction(); hibernateSession.delete(this); tx.commit(); // Clean up the session. hibernateSession.close(); } catch (HibernateException e) { //e.printStackTrace(); try { tx.rollback(); } catch (Exception e2) { // Silent failure. } finally { try { if (hibernateSession != null) hibernateSession.close(); } catch (Exception e3) { // Silent failure. } } } } COM: <s> deletes this volunteer from the database </s>
funcom_train/20372774
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetSecaoIdByName() { System.out.println("GetSecaoIdByName"); int ret = instance.GetSecaoIdByName(38, "Destaque"); System.out.print("Secao Id = " + ret); assertEquals(764, ret); } COM: <s> test of get secao id by name method of class br </s>
funcom_train/7646456
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long length() throws IOException { openCheck(); synchronized (repositionLock) { long currentPosition = fileSystem.seek(fd.descriptor, 0L, IFileSystem.SEEK_CUR); long endOfFilePosition = fileSystem.seek(fd.descriptor, 0L, IFileSystem.SEEK_END); fileSystem.seek(fd.descriptor, currentPosition, IFileSystem.SEEK_SET); return endOfFilePosition; } } COM: <s> returns the length of this file in bytes </s>
funcom_train/32648991
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void createVerticalPaddingThemeTextField() { GridData gridData4 = new GridData(); gridData4.widthHint = 30; verticalPaddingThemeTextField = new ThemeTextField(leftComposite, SWT.NONE); verticalPaddingThemeTextField.setEmbeddedInBindableGroup(false); verticalPaddingThemeTextField.setHelpPage(""); verticalPaddingThemeTextField.setBindingSubPath("verticalSpacing"); verticalPaddingThemeTextField.setLayoutData(gridData4); verticalPaddingThemeTextField.setIntValued(true); } COM: <s> this method initializes vertical padding theme text field </s>
funcom_train/28211997
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void loadFromTMX(File fromHere) { try { FileInputStream istream = new FileInputStream(fromHere); store = new Tmx20().read(istream); istream.close(); modifiedKeys.clear(); stateChanged = false; } catch (Exception e) { JOptionPane.showMessageDialog(null, "TMX Open Failed: " + e.getMessage()); } } COM: <s> open a tmx xml file and load in its data to the gui </s>
funcom_train/35924303
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void sendSIB(IntervalBroadcastInfo info) { SimpleIntervalBroadcastMessage message = new SimpleIntervalBroadcastMessage(); message.setInfo(info); send(message, myRef, info.getDestination()); // MessageInfo messageInfo = new MessageInfo(myRef, info.getDestination(), null, // null, 0); // MarshallMessageEvent marshallMessageEvent = new MarshallMessageEvent( // message, messageInfo); // trigger(marshallMessageEvent); } COM: <s> forwards the responsibility of a sub interval to another node </s>
funcom_train/30237442
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void writeClassFile(String data, String directory, String className, String ext ) throws IOException{ String dirStr = srcDir+SEP+directory; File dir = new File(dirStr); if(!dir.isDirectory()){ dir.mkdirs(); } File f = new File(dir.getAbsolutePath()+SEP+className+ext); if(!f.exists()){ f.createNewFile(); } FileOutputStream fos = new FileOutputStream(f); fos.write(data.getBytes()); } COM: <s> write the class to the file </s>
funcom_train/3701680
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void close() throws IllegalOperatorStateException { // we want to cancel all outstanding queries Iterator keyIter = m_queryRegistry.resultIterator(); while ( keyIter.hasNext() ) { ResultItem ri = (ResultItem)keyIter.next(); cancelQuery(ri); } super.close(); } // COM: <s> closes this operator </s>
funcom_train/23322218
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getVfsWidgetButton(PermissionReportDialog dialog){ StringBuffer result = new StringBuffer(""); //openTreeWin(formName, fieldName, curDoc, showSiteSelector, startSite, includeFiles, projectAware) result.append(dialog.button( "javascript:openTreeWin('main', 'reportVfsUriRoot', document, false, '', false, false);", null, "folder", org.opencms.workplace.Messages.GUI_DIALOG_BUTTON_SEARCH_0, dialog.getSettings().getUserSettings().getEditorButtonStyle())); return result.toString(); } COM: <s> builds vfs widget button and associates it with the dialog </s>
funcom_train/28115732
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void sendMessage(Message message) { int id = message.getID(); String data = message.getData(); int index = clientIDs.indexOf(String.valueOf(id)); if (index >= 0) { ((Connection)connections.elementAt(index)).sendMessage(message); } } COM: <s> sends a message </s>
funcom_train/3986921
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addPage (Page page, boolean insert) { if(!page.isLeaf())return; if(index!=0 && insert) { for (;index>0;index--) try{pagesList.removeFirst();}catch(Exception e) {} index=0; } Page p=null; try { p = getCurrentPage(); }catch (Exception e) {} if(p!=page)pagesList.addFirst(page); if(pagesList.size()>10) pagesList.removeLast(); } COM: <s> insert a new page on the list </s>
funcom_train/14655628
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getJPanelNorth() { if (jPanelNorth == null) { jLabel = new JLabel(); jLabel.setText("Select the source table for the importDefinition"); jPanelNorth = new JPanel(new FlowLayout(FlowLayout.LEFT)); jPanelNorth.add(jLabel, null); } return jPanelNorth; } COM: <s> this method initializes j panel </s>
funcom_train/51615832
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Object create() throws ResourceManagerException { try { return type.get(data); } catch (ReadError error) { throw new ResourceManagerException("Could not read from DataRepresentation: " + error); } catch (ObjectInstantiationError error) { throw new ResourceManagerException("Could not instantiate object: " + error); } } COM: <s> abstract method called when first use is called </s>
funcom_train/42786313
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testLookupInteractionClassString() throws Exception { rti.expects(once()).method("getInteractionClassHandle") .with(eq("iCls")).will(returnValue(1234)); HLAClass iCls = model.createInteractionClass("iCls", null); HLAClass newICls = model.lookupInteractionClass(iCls.getName()); assertNotNull(newICls); assertTrue(iCls == newICls); rti.verify(); } COM: <s> class under test for hlainteraction class lookup interaction class string </s>
funcom_train/48233475
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void retrieve(EventCallbackReceiver receiver) { Logger.log("StadiumDirectory", "retrieve", "Begin"); if(receiver == null) { receiver = this; } EventMiddleware e = new EventMiddleware(-1, Event.OPCODE_RETRIEVE_DEVICES, new String[]{NetConfig.STADIUM_DIRECTORY_IP, NetConfig.STADIUM_DIRECTOR_PORT_RETRIEVE+""}); EventManager.getInstance().requestAction(e, receiver); Logger.log("StadiumDirectory", "retrieve", "End"); } COM: <s> send an retrieve devices to retrieve all devices references </s>
funcom_train/25028582
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void applyDocumentSettings() { StyledDocument doc = getStyledDocument(); // need to remove and re-add the undo manager to properly // undo events after reading in new text doc.removeUndoableEditListener(undoManager); undoManager.discardAllEdits(); doc.addUndoableEditListener(undoManager); applyAutoIndent(); if (doc instanceof AbstractDocument) { AbstractDocument abstracDoc = (AbstractDocument)doc; abstracDoc.setDocumentFilter(getOrMakeDocFilter()); } } COM: <s> applies the current code undo manager code as well as the tab size </s>
funcom_train/11754477
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testExecute() throws Exception { CommandLine cl = new CommandLine(testScript); int exitValue = exec.execute(cl); assertEquals("FOO..", baos.toString().trim()); assertFalse(exec.isFailure(exitValue)); assertEquals(new File("."), exec.getWorkingDirectory()); } COM: <s> the simplest possible test start a script and </s>
funcom_train/50812347
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void cleanShutdown() { infoMessage("Shutting down Bit Communicator Server..."); // do your clean-up here, close all connections final Iterator i = new ArrayList(serverThreads).iterator(); while (i.hasNext()) { ((ServerThread) i.next()).disconnect (); } try { Thread.sleep(2500); } catch (InterruptedException ie) {} infoMessage("Bit Communicator Server stopped."); System.exit(0); } COM: <s> shuts down cleanly the server </s>
funcom_train/35178248
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Collection findAllEntry() { ArrayList values = new ArrayList(); try { Collection col = EntityHomeCache.getInstance().getEntryHome().findAll(); Iterator it = col.iterator(); while (it.hasNext()) { values.add(((EntryLocal) it.next()).getEntryLite()); } } catch (FinderException e) { e.printStackTrace(); } return values; } COM: <s> finds and returns all the entries of the database </s>
funcom_train/3772231
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Vector getRevisions() { Vector v= new Vector(); if (revisionDescriptors != null) { Enumeration enum = revisionDescriptors.enumerateRevisionNumbers(); while (enum.hasMoreElements()) { NodeRevisionNumber nrn = (NodeRevisionNumber)enum.nextElement(); RevisionBean rw = getRevision(nrn); if (rw != null) { v.addElement(rw); } } } return v; } COM: <s> returns the revisions of the node </s>
funcom_train/12563658
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Vector getSuiteMIDlets() { guaranteeSuiteValid("getSuiteMIDlets"); // copy suite's MIDlets vector into another Vector midlets = new Vector(totalMIDlets); for (int i = 0; i < totalMIDlets; i++) { Object o = suiteMIDlets.elementAt(i); midlets.addElement(o); } return midlets; } COM: <s> gets suites midlets </s>
funcom_train/19421770
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void executeGet() { EaasyStreet.logTrace(METHOD_IN + className + GET_METHOD); String key = (String) parameters.get(DataConnector.RECORD_KEY_PARAMETER); executionResults = database.read(key); if (executionResults != null) { responseCode = 0; responseString = "Execution complete"; } else { responseCode = 1; responseString = "Record not on file"; } EaasyStreet.logTrace(METHOD_OUT + className + GET_METHOD); } COM: <s> used to execute the key based get command after all command </s>
funcom_train/43328201
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public File optimizeView(File f) { File rv = null; try { rv = File.createTempFile("ovop",null); rv.delete(); File cachedir = null; cachedir = File.createTempFile("ocache",null); cachedir.delete(); String[] args = new String[6]; args[0] = "-cache"; args[1] = cachedir.getPath(); args[2] = "-inpdb"; args[3] = f.getPath(); args[4] = "-outpdb"; args[5] = rv.getPath(); Ovop prog = new Ovop(); prog.run(args); } catch (Exception e) { rv = null; e.printStackTrace(); } return rv; } COM: <s> given one or more proteins stored in a file will </s>
funcom_train/29817657
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean expireOID(Long oid) { if (active() && committingChanges.changes(oid.longValue())) { try { cref.getConnection().abortTransaction(t); } catch (Exception ce) { LOGGER.log(Level.WARNING, "Exception while aborting optimistic transaction.", ce); } committingChanges.abort(cref); return true; } return false; } COM: <s> this method may only be called while synchronized on ow </s>
funcom_train/2875928
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void bindAddressing() { addressDetails = new AddressDetails(); if (!addressDetails.read(this, AddressingConstants.XMLNS_WSA_2005) && !addressDetails.read(this, AddressingConstants.XMLNS_WSA_2004) && !addressDetails.read(this, AddressingConstants.XMLNS_WSA_2003)) { log.info("No address details found"); } } COM: <s> this extracts the address information from the document </s>