__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/1958660
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public PCNode getPCNode(String name){ for (int i = 0; i < getComponentCount(); i++){ if (getComponent(i) instanceof NwComponent) { NwComponent current = (NwComponent) getComponent(i); if (current instanceof PCNode) { String currentsname = current.getConfig().getAttributeValue("hostname"); if(currentsname.equals(name)) { return (PCNode)current; } } } } return null; } COM: <s> get a node by name which is visible on the panel </s>
funcom_train/26400750
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void stateChanged(ChangeEvent ce) { Object source = ce.getSource(); if (source instanceof SingleSelectionModel) { int index = ((SingleSelectionModel) source).getSelectedIndex(); if (index == 0) { // text editor selected // does nothing } else { // HTML previewer selected updateHtmlEditor(); } } else { System.out.println("Unexpected object state change: " + source.getClass().getName()); } } COM: <s> recognize if the panel selection changes </s>
funcom_train/34240978
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeFromSecondBestChoices(Cell c, Logger log) { int length = _secondBestChoices.size(); for (int i = 0; i < length; i++) { if (_secondBestChoices.get(i) == c) { _secondBestChoices.remove(i); log.debug("removing visited cell from second best choices: " + _secondBestChoices.toString()); } } } COM: <s> remove from the secondbestchoices arraylist in 2n time </s>
funcom_train/45108624
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Boolean isSubScenarioFieldsAreEditable(int testIndexOneBased) throws Exception { ScenarioTreeNode rootScenarioTreeNode = (ScenarioTreeNode) scenarioTree.getRoot(); ScenarioTreeNode subRootScenarioNode = (ScenarioTreeNode) rootScenarioTreeNode.getChildAt(0); selectTest(testIndexOneBased); ParametersPanel parametersPanel = getParametersPanel(); return !parametersPanel.isParametersDisable(subRootScenarioNode); } COM: <s> checks if the parameters of the scenario with the one based index are </s>
funcom_train/4160166
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public StockDataPoint add(StockDataPoint dataPoint) { int index = binarySearch(dataPoint.getDate()); if (index >= 0) { // replace old point at same date, return old pt return this.dataPoints.set(index, dataPoint); } else { // add new point this.dataPoints.add(~index, dataPoint); return null; } } COM: <s> insert data point into history </s>
funcom_train/48393454
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public HandlerRegistration addItemChangedHandler(com.smartgwt.client.widgets.form.events.ItemChangedHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.form.events.ItemChangedEvent.getType()) == 0) setupItemChangedEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.form.events.ItemChangedEvent.getType()); } COM: <s> add a item changed handler </s>
funcom_train/18504163
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void dataChanged(DataSetEvent e) { // If the relation is disabled, we simply quit if (!enabled) return; // Re-Querying the child dataset if needed if (queriedWhenMasterChanged) queryChild(e); // Refreshing the child's parameters childDS.checkProperties(); // Restricting the client dataset input if necessary setChildInputRestriction(); } COM: <s> when more than one rows in the master datasets data has been changed </s>
funcom_train/7978696
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void coalesceUriStrings() { if (this.cachedString != null && this.cachedEscapedURI != null && this.cachedString.length() == this.cachedEscapedURI.length()) { // lengths will only be identical if contents are identical // (deescaping will always shrink length), so coalesce to // use only single cached instance this.cachedString = this.cachedEscapedURI; } } COM: <s> the two string fields cached string and cached escaped uri are </s>
funcom_train/21384912
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Combo createEditableCombo(Composite parent) { Combo combo = new Combo(parent, SWT.NULL); GridData data = new GridData(GridData.FILL_HORIZONTAL); // data.widthHint = IDialogConstants.ENTRY_FIELD_WIDTH; combo.setLayoutData(data); combo.addTraverseListener(new TraverseListener () { public void keyTraversed(TraverseEvent e) { if(e.detail==SWT.TRAVERSE_RETURN ||e.detail==SWT.TRAVERSE_TAB_NEXT){ e.detail = SWT.TRAVERSE_TAB_NEXT; e.doit=true; }else e.doit=false; } }); return combo; } COM: <s> utility method to create an editable combo box </s>
funcom_train/35682773
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void createFieldEditors() { addField(new StringFieldEditor( PreferenceConstants.DEFAULT_CIXS_PACKAGE_NAME_PREFIX, Messages.cixs_package_name_prefix_label + ':', getFieldEditorParent())); addField(new StringFieldEditor( PreferenceConstants.DEFAULT_CIXS_TARGET_DIST_FOLDER, Messages.cixs_distribution_folder_label + ':', getFieldEditorParent())); } COM: <s> creates the field editors </s>
funcom_train/10284304
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setLanguage(TagContent lang) throws TagFormatException { if (lang.getTextContent() == null || !checkExactLength(lang.getTextContent(), 3)) { throw new TagFormatException(); } (new TextFrameEncoding(id3v2, "TLAN", lang, use_compression)).write(); } COM: <s> set language of lyrics read from text content </s>
funcom_train/14016700
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Object createFormObject(RequestContext context) throws Exception { if (getFormObjectClass() == null) { throw new IllegalStateException("Cannot create form object without formObjectClass property being set -- " + "either set formObjectClass or override createFormObject"); } if (logger.isDebugEnabled()) { logger.debug("Creating new instance of form object class [" + getFormObjectClass() + "]"); } return getFormObjectClass().newInstance(); } COM: <s> create the backing form object instance that should be managed by this </s>
funcom_train/23172603
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void initializeModellerAdapter() { String path = "impl.modeller.adapter."; try { Class c = jarLoader.loadClass (path + this.modellerAccessConf, true); this.modellerAdapter = (IModellerAdapter)c.newInstance(); } catch(ClassNotFoundException ex) { ex.printStackTrace(); } catch(InstantiationException ex) { ex.printStackTrace(); } catch(IllegalAccessException ex) { ex.printStackTrace(); } catch(Exception ex) { ex.printStackTrace(); } } COM: <s> a method to load an adapter for the modeller </s>
funcom_train/15867430
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public RolePlayer adoptRole(String roleId, String grId) throws MoiseConsistencyException, MoiseCardinalityException { GroupInstance gr = oe.findGroup(grId); if (gr == null) { throw new MoiseConsistencyException("the group "+grId+" does not exist in the OE"); } return adoptRole(roleId, gr); } COM: <s> adds a role for an agent </s>
funcom_train/14654889
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ArrayDoubleList getTimesFailures_DiscountTimes_Q_MCRhythmDecay_From_Database() { return (timesFailures_DiscountTimes_Q_MCRhythm_DECAY != null ? timesFailures_DiscountTimes_Q_MCRhythm_DECAY : JDBC_ServerThreadManager.getInstance() .selectTimesValuesFromFailures_rhythm_times_qTable( session_id, chunkName)); } COM: <s> get times successes q from db </s>
funcom_train/5446751
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void closePort () { // The following has for effect to notify listeners of the change of status // for the port. try { javax.comm.CommPortIdentifier.getPortIdentifier(this).closePort (); } catch (NoSuchPortException xcpt) { System.err.println ("Unexpected situation in CommPort::closePort () - No such port exception: " + xcpt); xcpt.printStackTrace (); } // endtry } COM: <s> closes the communications port </s>
funcom_train/28473435
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JScrollPane getSnaggingOrderScrollPane() { if (snaggingOrderScrollPane == null) { snaggingOrderScrollPane = new JScrollPane(); snaggingOrderScrollPane.setBounds(new Rectangle(173, 38, 175, 261)); snaggingOrderScrollPane.setViewportView(getSnaggingTree()); snaggingOrderScrollPane.setBorder(BorderFactory.createLineBorder(Color.lightGray)); } return snaggingOrderScrollPane; } COM: <s> this method initializes snagging order scroll pane </s>
funcom_train/50464053
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void centerWindow(Window window) { Dimension win_size = window.getSize(); Dimension desktop_size = getDesktopSize(); int x = (desktop_size.width/2) - (win_size.width/2); int y = (desktop_size.height/2) - (win_size.height/2); window.setLocation(x,y); } COM: <s> center a frame or window on the desktop </s>
funcom_train/41506794
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int hashCode() { if (myRevision >= 0) { return (int) myRevision & 0xFFFFFFFF; } else if (myDate != null) { return myDate.hashCode(); } else if (myName != null) { return myName.hashCode(); } return -1; } COM: <s> evaluates the hash code for this object </s>
funcom_train/5376564
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void copyList(int i) { if (i > size) { throw new IndexOutOfBoundsException(); } int capacity = (size * 3) / 2 + 1; if (capacity < initialCapacity) { capacity = initialCapacity; } ListElement[] newList = new ListElement[capacity]; System.arraycopy(list, 0, newList, 0, i); if (i < size) { System.arraycopy(list, i + 1, newList, i, size - i); } list = newList; } COM: <s> copy the array </s>
funcom_train/37231288
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Element addProbe(Element hostElem, String probe, List<String> argsTypes, List<String> argsValues) { Document hostDoc = hostElem.getOwnerDocument(); Element rrdElem = hostDoc.createElement("probe"); rrdElem.setAttribute("type", probe); hostElem.appendChild(rrdElem); addArgsList(hostDoc, rrdElem, argsTypes, argsValues); return rrdElem; } COM: <s> this method add a probe to the current host document </s>
funcom_train/40729435
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testNextDocument_exception() throws RepositoryException { DocumentList list = getObjectUnderTest(MockConstants.IO_OBJECT_ID, 1); try { Document doc = list.nextDocument(); fail("Expected a LivelinkIOException"); } catch (RepositoryDocumentException e) { fail("Did not expect a RepositoryDocumentException"); } catch (LivelinkIOException e) { assertNull(list.checkpoint()); } } COM: <s> tests a document where fetch version should throw an i o exception </s>
funcom_train/35026761
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void start() { // Init framework bootApplication(); // Start logger.info("Starting engine"); if (engine == null) { throw new ConfigException("No engine defined for the JGF application"); } engine.start(); logger.debug("Directory contains " + directory); logger.info("Bootup process in thread " + Thread.currentThread() + " finished"); } COM: <s> p starts the application </s>
funcom_train/24938065
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void rename(ID id) { String previous_name = toVerilogName(id); id.setIDLogical(previous_name + "_u" + ID.getNextID(previous_name)); // String new_name = toVerilogName(id); // EngineThread.getGenericJob().verbose("Renamed \"" + previous_name + // "\" to \"" + new_name + "\""); } COM: <s> modifies the idnamed object to give it a unique name within the current </s>
funcom_train/3786910
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int lookupIdxBySample(DbSample dbS) { /* lookupIdxBySample */ if(sampleList==null) return(-1); for(int i=0;i<nSamples;i++) if(sampleList[i]==dbS) return(i); return(-1); } /* lookupIdxBySample */ COM: <s> lookup idx by sample lookup index of sample object in condition </s>
funcom_train/37069909
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public List getAnnotationIds() { return selectcol1("SELECT pub_termannotation.id " + " from pub_term, pub_termannotation " + " WHERE pub_term.pub_gene_id =? "+ " and pub_termannotation.subject_term_id=pub_term.id" + " and (pub_termannotation.is_obsolete !='y' "+ " or pub_termannotation.is_obsolete is null )"); } COM: <s> returns a list of annotation ids connected to this term </s>
funcom_train/41748543
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setValue(String value) { this.value = value; if (this.baseText == null) { this.baseText = this.getText(); } if (this.value != null) { this.setText(this.baseText + " " + value); } else { this.setText(this.baseText); } } COM: <s> to set the valud for label text object </s>
funcom_train/23869667
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String getPackageNameProtected(String partName) { String result = null; String rootDevice = getRootDeviceNameProtected(partName); if (rootDevice != null) { int startIndex = partName.toLowerCase().indexOf(rootDevice.substring(2).toLowerCase()); result = partName.substring(startIndex + rootDevice.length() - 2); } return result; } COM: <s> parses a partname that contains both the device and package information </s>
funcom_train/26282726
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int compare(Object left, Object right) { Rank leftRank = (Rank) left; Rank rightRank = (Rank) right; if (leftRank == rightRank) { return 0; } else if (leftRank == Rank.TWO) { return 1; } else if (rightRank == Rank.TWO) { return -1; } else { // this relies on the inherent ordering of ranks return leftRank.compareTo(rightRank); } } COM: <s> compares two ranks by returning an integer whose sign depends on the </s>
funcom_train/10877850
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long getUniqueTermCount() throws IOException { long numTerms = 0; final Fields fields = fields(); if (fields == null) { return 0; } FieldsEnum it = fields.iterator(); while(true) { String field = it.next(); if (field == null) { break; } numTerms += fields.terms(field).getUniqueTermCount(); } return numTerms; } COM: <s> returns the number of unique terms across all fields </s>
funcom_train/50334884
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void close() { synchronized(this.lock) { if (isPreview) { pageImages.addElement(previewImage); // set up first page for display in preview frame // to get the image displayed, put it in an icon and the icon in a label pagenum = 1; displayPage(); } if (page!=null) page.dispose(); if (job != null) job.end(); } } COM: <s> method modified by dennis miller to add preview capability </s>
funcom_train/4917075
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void record_registerAssetMonitor_copyLinkedList() { this.recordReturn(this.monitor, this.monitor.getLinkedListSetOwner(), this.assetManager); this.recordReturn(this.monitor, this.monitor.getPrev(), null); this.recordReturn(this.monitor, this.monitor.getPrev(), null); } COM: <s> records registering the </s>
funcom_train/18348328
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean waitForAuthentication() { while (!this.isAuthenticated() && !owningPro.isShouldStop()) { try { Thread.currentThread().sleep(100); } catch (InterruptedException e) {} } if(!this.isAuthenticated()) { loginDialog.disableCapUserLogin(); } return this.isAuthenticated(); } COM: <s> this method blocks the calling thread until a user has </s>
funcom_train/1584241
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Individual getWorstIndividual() { int worstIndividual = 0; double worstFitness = individuals.get(0).getFitness(); double nextFitness; for (int i=1; i<individuals.size(); i++) { nextFitness = individuals.get(i).getFitness(); if (nextFitness < worstFitness) { worstFitness = nextFitness; worstIndividual = i; } } return individuals.get(worstIndividual); } COM: <s> find and return the least fit individual within this </s>
funcom_train/29289958
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeSurveyStatus(SurveyStatusCMPData data) throws EJBException { try { SurveyStatusCMPLocal surveyStatusLocal = getSurveyStatusCMPLocalHome().findByPrimaryKey(data.getSurvey_status_id()); surveyStatusLocal.remove(); } catch (FinderException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (RemoveException e) { // TODO Auto-generated catch block e.printStackTrace(); } } COM: <s> remove survey busines method </s>
funcom_train/46726813
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void selectProcessor(InterfaceProcessorModel processor) throws Exception { // clear getProcessor().clear(); getProcessor().copyAllFrom(processor); reapplyOkApplyCancelOnChange(); original = processor; getProcessor().resetModified(); // // getProcessor().getSearchResults().clear(); // List<ScriptModel> scripts = InterfaceService.getTransactionProcessingScripts(processor.getTransactionTypeRef().getId()); // getProcessor().getSearchResults().addAll(scripts); refreshAllTablesExcept(ContextReference.INTERFACEMANAGERPROCESSORTABLE); disableOkApplyCancelOnChange(); } COM: <s> copy med to form and make this the original </s>
funcom_train/45379451
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean existNumberInDB(Integer companyID, String number) throws Exception { PhoneNumberFilter filter = new PhoneNumberFilter(); filter.setNumber(number); filter.setCompanyID(companyID); List<PhoneNumberEntity> phones; phones = basicEntityFacade.getPhoneNumberEntityDAOBean().findByFilter(filter); if (phones != null && phones.size() > 0) { return true; } else { return false; } } COM: <s> find phone number </s>
funcom_train/20241790
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void connectDBase(){ try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); }catch(ClassNotFoundException e){ e.printStackTrace(System.err); } try{ con = DriverManager.getConnection(d1+filename+d2); stmt = con.createStatement(); }catch(SQLException e){ e.printStackTrace(System.err); } } COM: <s> bridge source to access data base </s>
funcom_train/42658593
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getPlayerTempo() { // TODO Auto-generated method stub int tempo_p = 0; try { if (tempoControl != null) { tempo_p = tempoControl.getTempo(); } } catch (Exception e) { UIUtils.log("Could not get tempo" + e.toString()); tempo_p = (int) this.midiSequencer.getDefaultMilliBPM(); } return tempo_p; } COM: <s> returns the mmapi player tempo </s>
funcom_train/2481553
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean addActor(Actors actorsRoot, User user) { try { return addActor(actorsRoot, getPersonFromUser(user)); } catch (ExportException e) { Logger.getLogger(ExportCCR.class.getName()).log(Level.SEVERE, null, e); return false; } } COM: <s> adds an user to the actor section in the ccr document </s>
funcom_train/37764413
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getMonthlyWeekDay() { Recurrence r = ((TaskMaintenanceComponent) getComponent()).getRecurrence(); Recurrence.WeekDay monthlyWeekDay = r != null && r instanceof Recurrence.Monthly ? ((Recurrence.Monthly) r).getWeekDay() : null; return monthlyWeekDay != null ? monthlyWeekDay.toString() : null; } COM: <s> getter for property monthly week day </s>
funcom_train/26166491
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public PortalUser ( Object[] user ) { super( VAL ); for ( int i = 0; i < Math.min( VAL._members.length, user.length ); i++ ) _data[ i ] = null == user[ i ] ? new Object[0] : new Object[] { user[ i ] }; } COM: <s> create a new user </s>
funcom_train/20675382
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void union(final Clip c) { if (status == INVALID) return; if (status == EMPTY) { setClip(c); status = INUSE; return; } clip[0] = Math.min(clip[0], c.clip[0]); clip[1] = Math.min(clip[1], c.clip[1]); clip[6] = Math.max(clip[6], c.clip[6]); clip[7] = Math.max(clip[7], c.clip[7]); } COM: <s> union this clip with another clip </s>
funcom_train/25217889
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void showBanner() { if (banner) { String build = "$Revision: 8505 $".replaceAll("[^0-9]", ""); logger.log(Level.INFO, LOCALIZER.format("Banner", build, // System.getProperty("java.version"))); banner = false; } } COM: <s> show the program banner </s>
funcom_train/2434636
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public PluginPositionSelectorController getController() { Receiver<List<SelectedPosition>> callback = new Receiver<List<SelectedPosition>>() { @Override public void handle(List<SelectedPosition> object) { selectionCallback.handle(object); } }; return new ControllerImpl(serverManager, serverCache, model, callback, lock); } COM: <s> returns the controller to use in the plugin selector ui </s>
funcom_train/35677977
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetJavaClassNameAnnotations() { try { assertEquals("com.legstar.xsdc.test.cases.jvmquery.JVMQueryReply", BindingUtil.getJavaClassName( "com.legstar.test.coxb.jvmquery", "JvmQueryReply")); } catch (HostException e) { fail(e.getMessage()); } } COM: <s> test extraction of the target pojo class name from annotations </s>
funcom_train/5382296
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int indexFor(int hash) { // mix the bits to avoid bucket collisions... hash += ~(hash << 15); hash ^= (hash >>> 10); hash += (hash << 3); hash ^= (hash >>> 6); hash += ~(hash << 11); hash ^= (hash >>> 16); return hash & (table.length - 1); } COM: <s> converts the given hash code into an index into the </s>
funcom_train/15555676
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getActionStepsPanel() { if (actionStepsPanel == null) { actionStepsLabel = new JLabel(); actionStepsLabel.setText("Action Steps"); actionStepsLabel.setPreferredSize(new java.awt.Dimension(72,20)); actionStepsPanel = new JPanel(); actionStepsPanel.setLayout(new BorderLayout()); actionStepsPanel.add(actionStepsLabel, java.awt.BorderLayout.NORTH); } return actionStepsPanel; } COM: <s> this method initializes action steps panel </s>
funcom_train/45770540
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public SheetSettings getSettings() { SheetSettings s = new SheetSettings(); s.setCursor(sel.getActiveCell()); if(win2.isFrozen()) { s.setFreeze(p.getFreezePoint()); } else if(win2.isSplit()) { s.setSplit(p.getSplitPoint()); } s.setPaneNumber(p.getPaneNumber()); s.setTopLeft(p.getTop(), p.getLeft()); return s; } COM: <s> returns a code sheet settings code object containing a collection of data </s>
funcom_train/18854991
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean bugExists(int id) throws HibernateException { int count = queryCountValue(" select count(*) from net.sf.jagzilla.hibernate.Bug b where b.id='"+id+"'"); log.debug("count product: "+id+" = "+count); return count>=1; } COM: <s> tells if the given bug exists </s>
funcom_train/3471768
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void applyCustomization(String setting) { EnhancedHashtable<String, String> strokeMap = getCustomization() .getMap(setting, new EnhancedHashtable<String, String>()); for (String keyString : strokeMap.keySet()) { addKeyStroke(keyString, strokeMap.get(keyString)); } } COM: <s> adds the key strokes specified in the customization instance of </s>
funcom_train/24161242
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getPropertiesAsString() { ToStringBuilder.setDefaultStyle(ToStringStyle.SIMPLE_STYLE); return new ToStringBuilder(this).append(getFields()).append(getValue()).append(getDescription()) .append(getFloatValue()).append(getMinimum()).append(getMaximum()).toString(); } COM: <s> return all fields as concatenated string </s>
funcom_train/45026197
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void initTestData(String resource, String classId) { String resourceName = ResourceNameFactory.getInstance().getName( ClassAnalyser.classPackage(this), resource); log.debug("parse() - resource to process: " + resourceName); this.classDataSet = DDTDataRepository.getInstance().get(resourceName, classId); } COM: <s> initialize xml test data for specified class id in resource </s>
funcom_train/50700777
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void logNormal(String message) { try { logDoc.insertString(logDoc.getLength(), "normal", logText.getStyle("NormalIcon")); logDoc.insertString(logDoc.getLength(), message + "\n", logText.getStyle("NormalText")); } catch (BadLocationException ble) { } } COM: <s> print a message to the log </s>
funcom_train/16165444
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void executeJobs() { this.readDatabaseConfig(); this.dbWorker = new DatabaseConnectorWorker(DatabaseConfig.getConfig() .getUsername(), DatabaseConfig.getConfig().getPassword(), DatabaseConfig.getConfig().getHost(), DatabaseConfig .getConfig().getPort(), DatabaseConfig.getConfig() .getDatabase()); this.dbWorker.addPropertyChangeListener(this); this.dbWorker.execute(); } COM: <s> this will try to read the database config first </s>
funcom_train/18293000
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void CopyLayerParameters(Layer layerToCopy) { this.setBiases(layerToCopy.getBiases()); this.setBiasIncrement(layerToCopy.getBiasIncrement()); this.setMomentum(layerToCopy.getMomentum()); this.setLearningRate(layerToCopy.getLearningRate()); this.setWeightCost(layerToCopy.getWeightCost()); } COM: <s> this function sets this layers biases bias increments learning rate </s>
funcom_train/18743671
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean isFinal(HostGraph graph, HostNode node) { for (HostEdge e : graph.edgeSet(node)) { if (e.getRole().equals(EdgeRole.FLAG) && e.label().text().equals("final")) { return true; } } return false; } COM: <s> checks whether the given host node is considered final meaning its </s>
funcom_train/38788789
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int getDataIndex(String attributeName){ DataAttribute[] dataAttributes = this.modelData.getDataAttributes(); for (int i = 0; i < dataAttributes.length; i++) { if(dataAttributes[i].getName().equals(attributeName)){ return i; } } return -1; } COM: <s> finds the index of the corresponding data in the record using data attributes </s>
funcom_train/1589902
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public TimeOfDay setCopy(int value) { int[] newValues = iTimeOfDay.getValues(); newValues = getField().set(iTimeOfDay, iFieldIndex, newValues, value); return new TimeOfDay(iTimeOfDay, newValues); } COM: <s> sets this field in a copy of the time of day </s>
funcom_train/16676821
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public LayoutTree remove(ILayoutPart child) { LayoutTree tree = find(child); if (tree == null) { return this; } LayoutTreeNode oldParent = tree.getParent( ); if (oldParent == null) { // It was the root and the only child of this tree return null; } if (oldParent.getParent( ) == null) { return oldParent.remove(tree); } oldParent.remove(tree); return this; } COM: <s> find a child in the tree and remove it and its parent </s>
funcom_train/19142721
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void saveOrUpdateChart(Chart chart) { Session session = HibernateUtil.currentSession(); Transaction tx = null; try { tx = session.beginTransaction(); session.saveOrUpdate(chart); tx.commit(); } catch (HibernateException e) { HibernateUtil.handleHibernateException(tx, e); } finally { HibernateUtil.closeSession(); } } COM: <s> persists a chart </s>
funcom_train/45334152
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Patient getMrgPatient(Message msgIn) throws ApplicationException, HL7Exception { HL7v231ToBaseConvertor convertor = null; convertor = new HL7v231ToBaseConvertor(msgIn, connection); Patient patientDesc = new Patient(); patientDesc.setPatientIds(convertor.getMrgPatientIds()); patientDesc.setPatientName(convertor.getMrgPatientName()); patientDesc.setPatientAccountNumber(convertor .getMrgpatientAccountNumber()); patientDesc.setVisits(convertor.getMrgVisitList()); return patientDesc; } COM: <s> extracts the merge patient out of a pix merge patient message </s>
funcom_train/25071405
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void normalizeMaxmean(Statistics first, Statistics totalStat) { // normalize maxmean maxmean[0] -= first.getAverage(); maxmean[0] /= first.getStdev(); for (int i = 1; i < maxmean.length; ++i) { maxmean[i] -= totalStat.getAverage(); maxmean[i] /= totalStat.getStdev(); } } COM: <s> normalize maxmean values with the average and standard deviation of </s>
funcom_train/1823177
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getLength(Geometry geometry){ // 2004/03/12 : type 1 (Point) has length 10 if (myShapeType == 1) return 10; // 2004/03/12 : type 21 (PointM) has length 14 if (myShapeType == 21) return 14; // 2004/03/12 : type 11 (PointZ) has length 18 return 18; } COM: <s> calcuates the record length of this object </s>
funcom_train/49321171
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void mouseClicked(MouseEvent m) { int targetCol = convertColumnIndexToModel(getTableHeader().columnAtPoint(m.getPoint())); if (targetCol == _columnToSort) { if (_sortType == ASCENDING) _sortType = DESCENDING; else _columnToSort = -1; } else { _columnToSort = targetCol; _sortType = ASCENDING; } sortAndUpdate(); } COM: <s> if user clicks on column header perform sort and toggle sort ordering </s>
funcom_train/44502303
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void setActionProperty(final UIComponent component) { if (this.action != null) { if (!(component instanceof ActionSource2) || !(this.action instanceof MethodExpression)) { throw new IllegalArgumentException("Component " + component.getClientId(getFacesContext()) + " is no ActionSource"); } ((ActionSource2) component) .setActionExpression((MethodExpression) this.action); } } COM: <s> sets the action property on the associated uicomponent component </s>
funcom_train/46440120
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void filterIndexList(List array, int start_index, int end_index) { for (int index = 0; index < array.size(); index++) { int element = ((Integer) array.get(index)).intValue(); if ((element >= start_index) && (element <= end_index)) { array.remove(index); } } } COM: <s> filters a code xarray integer code </s>
funcom_train/46265098
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetSource() throws AssertionFailedException { System.out.println("setSource"); MassSpectrometerStateEvent instance = new MassSpectrometerStateEvent(); instance.setSource(source); assertEquals(source, instance.getSource()); //fail("The test case is a prototype."); } COM: <s> test of test set source method of class mass spectrometer state event </s>
funcom_train/6022849
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object coerceToUi(Object val, Component comp) { if (val == null) { throw new NullPointerException("val"); } if (val instanceof Set) { return ListModelSet.instance((Set)val); } else if (val instanceof List) { return ListModelList.instance((List)val); } else if (val instanceof Map) { return ListModelMap.instance((Map)val); } else { throw new UiException("Expects only java.util.Set, java.util.List, java.util.Map only. "+val.getClass()); } } COM: <s> convert a set map or list to associated list model </s>
funcom_train/7760706
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Cursor fetchRequest(long rowId) throws SQLException { Cursor mCursor = mDb.query(true, DATABASE_TABLE_MYREQUESTS, new String[] {KEY_ROWID, KEY_REQUEST, KEY_REQUEST_DESCRIPTION}, KEY_ROWID + "=" + rowId, null, null, null, null, null); if (mCursor != null) { mCursor.moveToFirst(); } return mCursor; } COM: <s> return a cursor positioned at the request that matches the given row id </s>
funcom_train/20840581
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private StringBuffer setUpIFQType(String protocoll, String ifqLength, int feed) { StringBuffer output = new StringBuffer(); if (!protocoll.equals("")) { output.append(AdvancedTextProcessing.feed(feed)); if (protocoll.equals("DSR")) output.append("-ifqType CMUPriQueue \\\n"); else output.append("-ifqType " + protocoll + " \\\n"); output.append(AdvancedTextProcessing.feed(feed)); output.append("-ifqLen " + ifqLength + " \\\n"); } return output; } COM: <s> sets the up ifq type </s>
funcom_train/7502556
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void paste(byte[] pasteBytes) { if (isBarGraph_) return; if (startSelection_ < endSelection_) wavWriter_.paste(pasteBytes, adjustBounds(startSelection_), graph_.getXSpace() * graph_.getPoints().length); else wavWriter_.paste(pasteBytes, adjustBounds(endSelection_), graph_.getXSpace() * graph_.getPoints().length); } COM: <s> paste points at position </s>
funcom_train/8368407
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public TextField getTxtFehlerbeschreibung() { if (txtFehlerbeschreibung == null) {//GEN-END:|303-getter|0|303-preInit // write pre-init user code here txtFehlerbeschreibung = new TextField("Fehlerbeschreibung:", null, 1000, TextField.ANY);//GEN-LINE:|303-getter|1|303-postInit // write post-init user code here }//GEN-BEGIN:|303-getter|2| return txtFehlerbeschreibung; } COM: <s> returns an initiliazed instance of txt fehlerbeschreibung component </s>
funcom_train/51044726
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void upgradeTransferProcessing( NetworkConnectionBase peer_connection ) { if( lan_upload_processor.isRegistered( peer_connection )) { 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/38864942
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setReplaceSource(byte src) throws IllegalArgumentException { if (src < -1 || (src > 7 && src != 9)) { throw new IllegalArgumentException( "Replacement data source must be -1, 0, 1, 2, 3, 4, 5, 6, 7 or 9 =" + src); } this.replaceSource = src; } COM: <s> set replacement data source </s>
funcom_train/20645172
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected WorkSheetPanel getWorkSheetPanelAt(int index) { WorkSheetPanel wsp = null; if (index > -1) { WorkSheet ws = owner.getDispatcherCase().getWorkSheetAtIndex(index); if (ws != null) { wsp = owner.getDisplayController().getWorkSheetPanel(ws); } } return wsp; } COM: <s> returns the work sheet panel at index index </s>
funcom_train/6408150
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setTexture(Face face, Texture texture) { if (face == null) { throw new IllegalArgumentException("Face can not be null."); } skyboxQuads[face.ordinal()].clearRenderState(RenderState.StateType.Texture); setTexture(face, texture, 0); } COM: <s> set the texture to be displayed on the given face of the skybox </s>
funcom_train/38512801
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setRootFeature(Feature pRootFeature) { if (rootFeature != pRootFeature) { if (rootFeature != null) { rootFeature.removeListener(this); } rootFeature = pRootFeature; if (rootFeature != null) { rootFeature.addListener(this); applyDescription(); } fireItemChanged(); } } COM: <s> sets the root feature </s>
funcom_train/15580834
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void assertTextInTable(String tableSummaryOrId, String text) { assertTablePresent(tableSummaryOrId); Assert.assertTrue("Could not find: [" + text + "]" + "in table [" + tableSummaryOrId + "]", dialog.isTextInTable(tableSummaryOrId, text)); } COM: <s> assert that supplied text is present in a specific table </s>
funcom_train/39314981
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSpray3ActionPerformed() { System.out.println("testSpray3ActionPerformed"); f.spray3ActionPerformed( actionEvent ); assertEquals(f.curSpray,f.spray3); assertEquals(f.toolSpray.sprayType, 23); //t.spray3ActionPerformed( actionEvent ); //assertEquals(t.curSpray,t.spray3); } COM: <s> test of spray3 action performed method of class terp paint </s>
funcom_train/1653601
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testKeys() { Object[][] sampleObjects = createSampleKeyMultiVal(sampleKeyNumber,sampleMaxValueNumber,sampleIsRandom); MultiValueTable<Object, Object> methodMVTable = fillMultiValueTable(sampleObjects); //TODO: shouldn't it respect keys order? int j = sampleObjects.length-1; Enumeration<Object> methodEnumeration = methodMVTable.keys(); while(methodEnumeration.hasMoreElements()) { assertEquals(sampleObjects[j][0],methodEnumeration.nextElement()); j--;} } COM: <s> tests keys method verifying if all keys inserted are </s>
funcom_train/17675805
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void finishFetchGroups() { int n = fetchGroups == null ? 0 : fetchGroups.length; allFetchGroups = new ArrayList(n); for (int i = n - 1; i >= 0; i--) { FetchGroup g = fetchGroups[i]; g.finish(); addToAllFetchGroups(g); } } COM: <s> init the state field no array for all our fetch groups and create </s>
funcom_train/1025283
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void startDocument(boolean multiObjectMode) throws SAXException { if (this.depth == 0) { // Notify contentHandler of document start. this.contentHandler.startDocument(); if (multiObjectMode) { // Prevent marshalling of each object to fire its own // start/endDocument events. this.depth++; } } } COM: <s> fires the sax start document event towards the configured </s>
funcom_train/25787133
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void doIndent() throws SAXException { if ((this.indentStep > 0) && (this.depth > 0)) { final int n = this.indentStep * this.depth; final char ch[] = new char[n]; for (int i = 0; i < n; i++) { ch[i] = ' '; } characters(ch, 0, n); } } COM: <s> print indentation for the current level </s>
funcom_train/34256922
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void dataRefreshed() { fireCloneChangePending(null); // Note: Don't use getLocalObjectsIterator() as updateCachedObject can // modify underlying cache population - leading to concurrent modification exception Iterator iterator = cloneObjectCache.getLocalObjects().iterator(); while (iterator.hasNext()) { updateCachedObject((FmmObject)iterator.next()); } fireCloneChanged(null); } COM: <s> notifying all have changed </s>
funcom_train/49836277
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void deleteFile(String filename) throws StorageManagerException { try { // invalidate the file's pages from the buffer manager buffer.invalidate(filename); File file = new File(filename); file.delete(); } catch (Exception e) { throw new StorageManagerException("Could not delete file " + filename + ".", e); } } // deleteFile() COM: <s> delete the specified file </s>
funcom_train/3908187
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void updateMenus() { Object[] components = getList().getSelectedValues(); _menuDelete.setEnabled(components.length > 0); _menuMoveUp.setEnabled(components.length > 0); _menuMoveDown.setEnabled(components.length > 0); // Proxy Menu Handlers _deleteHandler.update(); _moveUpHandler.update(); _moveDownHandler.update(); } COM: <s> update the menu items </s>
funcom_train/16912330
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void changeNeuronTypes() { Object selected = cbNeuronType.getSelectedItem(); if (selected != NULL_STRING) { String name = ((ClassDescriptionPair)selected).getSimpleName(); for (int i = 0; i < neuronList.size(); i++) { neuronList.get(i).setUpdateRule(name); } } } COM: <s> change all the neurons from their current type to the new selected type </s>
funcom_train/13725280
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testEquals() { DayTimeDuration dtdA = new DayTimeDuration(true, 1, 2, 3, 4); DayTimeDuration dtdB = new DayTimeDuration(true, 1, 2, 3, 4); assertEquals(true, dtdA.equals(dtdB)); } COM: <s> test the year month shortcut </s>
funcom_train/47141949
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addStock(Stock st) throws DuplicateKeyException { synchronized (getStocksLock()) { if (m_mpStocks.containsKey(st.getName())) { throw new DuplicateKeyException(st.getName()); } m_mpStocks.put(st.getName(), st); st.attach(m_ncStockContext); } } COM: <s> add a stock to the global list of stocks </s>
funcom_train/18787007
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void register(Component component) throws ComponentException { assert (component != null) && !isRegistered(component); components.put(component.getName(), component); switch (state) { case INITIALIZING: case INITIALIZED: component.initialize(); break; case STARTING_UP: case RUNNING: component.initialize(); component.startup(); break; } assert isRegistered(component); } COM: <s> registers a component on the application </s>
funcom_train/18899069
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void outAHelpCommand(AHelpCommand node) { this.setLastError(null); this.setLastAnswer(null); this.setLastMessage(""); // log the command if (logger.isDebugEnabled()) { logger.debug("Processing help command " + node); } // let the user know the help for the selected command this.setLastMessage(HelpPrinter.getHelp(node.getCommandPrefix())); } COM: <s> displays help information to the user </s>
funcom_train/10532994
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetProppertyBySetter() { assertNotNull(outerControl); InnerControlBean innercontrol = outerControl.instantiateNestedControlProgrammatically(); assertNotNull(innercontrol); innercontrol.setName("new name"); innercontrol.setJob("new job"); assertEquals("new name", innercontrol.getNameFromContext()); assertEquals("new job", innercontrol.getJobFromContext()); } COM: <s> tests outer control setting inner control property by setter </s>
funcom_train/50505170
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void init(IProject project){ super.init(project); log.info("Init project for ejbDoclet/cmp task: " + project); if(project.getSettings(RelationshipManager.class)==null) project.addSettings(RelationshipManager.class, new RelationshipManager(project)); } COM: <s> initialization method for this task calls init in the superclass </s>
funcom_train/28753153
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setKnownmolwt(Long newVal) { if ((newVal != null && this.knownmolwt != null && (newVal.compareTo(this.knownmolwt) == 0)) || (newVal == null && this.knownmolwt == null && knownmolwt_is_initialized)) { return; } this.knownmolwt = newVal; knownmolwt_is_modified = true; knownmolwt_is_initialized = true; } COM: <s> setter method for knownmolwt </s>
funcom_train/18484455
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void inputNameClass(String inputNameOfClass) { try { // Instatiate the class. classToInspect = Class.forName(inputNameOfClass); // Collect all of the info about the class. collectInfo(); // Build the XML string and fire it to the outpin. fireXMLString(); } catch (Exception e) { errorPin.fireOutPin(e); } } COM: <s> description input is the name of the class you wish to inspect </s>
funcom_train/3558167
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void layoutContainer(Container parent) { Insets in = getTabAreaInsets(); final int y = in.top + 3; int x = parent.getWidth() - in.right; for (Component c : parent.getComponents()) { Dimension size = c.getPreferredSize(); c.setBounds(x, y, size.width, size.height); x += size.width + 5; } } COM: <s> this is for laying out control buttons </s>
funcom_train/11012921
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testShortLastBlock() throws Exception { String[] files = new String[] { "ShortLastBlock.qwp", "ShortLastBlock.wps" }; for(int i=0; i<files.length; i++) { // Open the file up POIFSFileSystem fs = new POIFSFileSystem( _samples.openResourceAsStream(files[i]) ); // Write it into a temp output array ByteArrayOutputStream baos = new ByteArrayOutputStream(); fs.writeFilesystem(baos); // Check sizes } } COM: <s> test for bug 48898 problem opening an ole2 </s>
funcom_train/37776772
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addKeyField(String attName, String type, boolean autogen) { m_keys.add(attName); if (!autogen) m_nonAutoKeys.add(attName); PropertyMetaData pmd = obtainPropertyMetaData(attName); pmd.m_type = type; pmd.m_primaryKey = true; pmd.m_autogenKey = autogen; } COM: <s> add a primary key field attribute to this meta data object </s>
funcom_train/29420644
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testStatusWithSingleSuccessfulBuild() throws Exception { monitor.setStatus(true); monitorMockControl.replay(); status = new TestCcStatusImpl(monitor, URL_ONE_BUILD_SUCCESSFUL, prefs); assertTrue(status.isBuildClean()); monitorMockControl.verify(); } COM: <s> status should be ok </s>