__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/593691
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setBeanclass(Object beanclass) throws StripesJspException { String url = getActionBeanUrl(beanclass); if (url == null) { throw new StripesJspException("The 'beanclass' attribute provided could not be " + "used to identify a valid and configured ActionBean. The value supplied was: " + beanclass); } else { this.binding = url; } } COM: <s> sets the binding attribute by figuring out what action bean class is identified </s>
funcom_train/17118066
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String export() throws ReportException { FileExport fileExport; try { fileExport = new XLSFileExport(FileExport.createFileName(this.promtID, "xls")); fileExport.export(promt); fileExport.createExportFile(); return fileExport.createDownloadLink(); } catch (FileExportException e) { throw new ReportException(e); } } COM: <s> create an xls export file containing all information </s>
funcom_train/48713746
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void mouseUp(GameModel gm, IEMouse ie){ if(selected.getType() == GameArtifact.T_BURDEN){ int id = selected.getID(); int priority = selected.getPriority(); // Existing burdens changed by recursion gm.getRoot().setPriority(id, priority); // Set for future burdens gm.getBurden(new Integer(id)).setPriority(priority); //gm.getMapBurden().get(new Integer(id)).setPriority(priority); } } COM: <s> when the mouse button is released and we need to consider the final </s>
funcom_train/18728565
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testRescale() { final DefaultJaxoVertex v = new DefaultJaxoVertex(); v.setPoint( JaxoObject.Handle.P1, new Point(100, 100)); v.scale(new Point(), 2.f, 2.f); assertEquals(new Point(200, 200), v.getPoint(JaxoObject.Handle.P1)); } COM: <s> test of scale method of class default jaxo vertex </s>
funcom_train/45466136
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean isImportedType(XMLType type, ElementDecl element) { String targetNS = type.getSchema().getTargetNamespace(); if (targetNS != null) { return (element.getSchema().getImportedSchema(targetNS) != null); } return false; } //-- isImportedType COM: <s> determines if a given xmltype is imported by the </s>
funcom_train/4557789
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testCartClickSignUpButton() { repEng.newStep("283", "Cart-Click Sign up button in cart window"); //1. Launch http://hobbes.ontometrics.com/magnetportal/ //2. Click the Manage You Assets link. //3. Click the Publish Magnet link in the Albums/Tracks page. //4. Click the cart icon. //5. Click Sign up button. // There will popup sign up window, sign up button is disabled. } COM: <s> 283 cart click sign up button in cart window </s>
funcom_train/18244079
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setAllChromatogramsOpen(Object pSource) throws SeqdataException { int formerState = this.chromatogramOpennessState; this.chromatogramOpennessState = IAssemblyDisplayPreferences.CHROMATOGRAMS_ALL_OPEN; this.fireChromatogramOpennessChange(pSource, this.chromatogramOpennessState, formerState); // System.out.println(this.getClass().getName() + ": setAllChromatogramsOpen() invoked"); } COM: <s> describe code set all chromatograms open code method here </s>
funcom_train/45882538
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String getTemplateParameter(String name) { if (containsKey("templateParameters")) { List<Map<String, String>> templateParameters = getFieldAsList("templateParameters"); for (Map<String, String> parameter : templateParameters) { if (parameter.get("key").equals(name)) { return parameter.get("value"); } } } return null; } COM: <s> returns the template parameter with the specified name </s>
funcom_train/42044753
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void updateDataSourceModel() { // Retrieve the preferences RimuDBPreferences preferences = (RimuDBPreferences)getWizardData("preferences"); // Load the datasources dataSourceModel.removeAllElements(); ArrayList<DataSourceEntry> dsList = preferences.getDataSources(); if (dsList != null) { Iterator<DataSourceEntry> it = dsList.iterator(); while (it.hasNext()) { DataSourceEntry dataSourceEntry = (DataSourceEntry) it.next(); dataSourceModel.addElement(dataSourceEntry); } } } COM: <s> update the data source model </s>
funcom_train/2883775
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object obj) { if( (obj instanceof SFReferenceAlternateHostsBinderImpl) ) { return false; } else { SFReferenceAlternateHostsBinderImpl binder = (SFReferenceAlternateHostsBinderImpl)obj; return ( overlappingHostLists(hosts, binder.hosts) && name.equals(binder.name) ); } } COM: <s> smart frog reference binders are equal if their references are equal and </s>
funcom_train/28169503
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Connector findConnectableConnector(Figure connectableFigure, Point2D.Double p) { Connector target = (connectableFigure == null) ? null : connectableFigure.findConnector(p, getConnection()); if ((connectableFigure != null) && connectableFigure.canConnect() && !connectableFigure.includes(getOwner()) && getConnection().canConnect(connector, target)) { return target; } return null; } COM: <s> finds a connection end figure </s>
funcom_train/39184281
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ClusterFrame (Project project, Frame parentFrame) { this.project=project; this.parentFrame=parentFrame; expComboBox = new FileComboBox(project,project.EXP); disComboBox = new FileComboBox(project,project.DIS); try { jbInit(); addKeyListenerRecursively(this); } catch (Exception e) { e.printStackTrace(); } } COM: <s> constructs the frame for the user to create a cluster file </s>
funcom_train/3914816
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean shutdown(ILaunchConfigurationWorkingCopy workingCopy){ try { workingCopy.launch(ILaunchManager.RUN_MODE, null); return true; } catch(Exception ex) { LDPlayerPlugin.getDefault().logError(Messages.getString("uk.ac.reload.ldplayer.server.SetupConfiguration.2"), ex); } return false; } COM: <s> runs the shutdown configuration for jboss </s>
funcom_train/8648533
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void cleanup(ResultSet resultSet) { if ( collectionLoadContexts != null ) { CollectionLoadContext collectionLoadContext = ( CollectionLoadContext ) collectionLoadContexts.remove( resultSet ); collectionLoadContext.cleanup(); } if ( entityLoadContexts != null ) { EntityLoadContext entityLoadContext = ( EntityLoadContext ) entityLoadContexts.remove( resultSet ); entityLoadContext.cleanup(); } } COM: <s> release internal state associated with the given result set </s>
funcom_train/5395528
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetStringValue() { System.out.println("getStringValue"); DBPUnsignedByte instance = new DBPUnsignedByte(); String expResult = ""; String result = instance.getStringValue(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } COM: <s> test of get string value method of class org </s>
funcom_train/9675982
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public AssociationId getOther(AssociationId assocId) { if (this.assocId[0].equals(assocId)) return this.assocId[1]; else if (this.assocId[1].equals(assocId)) return this.assocId[0]; else throw new IllegalArgumentException("assocId does not belong to this association"); } COM: <s> returns the other assoc id than the passed one </s>
funcom_train/3517042
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean open() { try { if (exists()) { fileReader = new FileReader(this); bufferedReader = new BufferedReader(fileReader); return true; } } catch (Exception ex) { logger.log(Level.WARNING, ex.getLocalizedMessage(), ex); } return false; } COM: <s> open the underlying system text file </s>
funcom_train/38855871
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void calculateMark() { Float mark = new Float(0); for (Benchmark b : benchmarks) { FieldContainer fc = validateMap.get(b); Float val = Float.parseFloat(fc.getNoteCritere().getValue().toString()) * b.getCoeff(); mark += val; } for (NumberField nf : setMarkMap.values()) { nf.setValue(mark); } } COM: <s> calculate the mark for the user </s>
funcom_train/18049028
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void initializeGracePeriodTimer() { // SV lockout timer this.svGracePeriodTimer = new Timer(1 * MS_PER_S, new ActionListener() { public void actionPerformed(ActionEvent e) { svSecondsCount++; LockoutWarningDialog.this.svWarningLabel .setText(createWarningString(svGracePeriod - svSecondsCount)); if (svSecondsCount == svGracePeriod) { setResumed(false); } } }); this.svGracePeriodTimer.setRepeats(true); } COM: <s> initializes the grace period timer </s>
funcom_train/35136282
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void loadItemsFromProperties(Properties properties) { Set<Object> keys = properties.keySet(); for (Object key : keys) { String idString = (String) key; Identifier id = extractIdentifier(idString); String propertyValue = properties.getProperty(idString); Item item = new Item(id, collection, propertyValue); items.put(id, item); } } COM: <s> loads items from the properties </s>
funcom_train/9979890
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void encodeAsNumericString(String value, TypeInformation typeInformation) throws IOException { if (!typeInformation.hasConstraint()) { encodeUnconstrainedRestrictedCharacterString(value, typeInformation, NumericStringInfo.getInstance()); } else { encodeRestrictedCharacterString(value, typeInformation, NumericStringInfo.getInstance()); } } COM: <s> encoding of the restricted character string type numeric string </s>
funcom_train/27678965
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void runMacro(Program pgm, int macroLoc, String macroName) { this.pgm = pgm; this.macroName = macroName; pc = macroLoc-1; instance = this; batchMode = false; IJ.showStatus("interpreting"); pushGlobals(); if (func==null) func = new Functions(this, pgm); func.plot = null; if (macroLoc==0) doStatements(); else doBlock(); func.updateDisplay(); if (func.plot!=null) func.plot.show(); instance = null; batchMode = false; if (!statusUpdated) IJ.showStatus(""); if (showingProgress) IJ.showProgress(0, 0); } COM: <s> interprets the specified tokenized macro starting at the specified location </s>
funcom_train/36717414
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void childConcurrencyLevel(Task child, int concurrency) { if (!child.equals(root)) { System.out.println("BUG: threadmanager got notification from a non-root edu.bu.cs511.p5.Task."); return; } desiredConcurrency = concurrency; // ready to _try_ and spawn more threads synchronized (concurrencyLock) { concurrencyLock.notify(); } } COM: <s> receive requests and concurrency levels from the root scheduler </s>
funcom_train/46061693
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private List compileSampledTasks() { List sampledTasks = new ArrayList(); List samples = courseEnv.getCoursePropertyManager() .findCourseNodeProperties(node, null, null, PROP_SAMPLED); for (Iterator iter = samples.iterator(); iter.hasNext();) { Property sample = (Property) iter.next(); sampledTasks.add(sample.getStringValue()); } return sampledTasks; } COM: <s> compile a list of tasks marked as sampled </s>
funcom_train/27785820
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public List getStocksHeld() { Set stocksHeld = new HashSet(); for(Iterator iterator = accounts.iterator(); iterator.hasNext();) { Account account = (Account)iterator.next(); if(account.getType() == Account.SHARE_ACCOUNT) { ShareAccount shareAccount = (ShareAccount)account; stocksHeld.addAll(shareAccount.getStockHoldings().keySet()); } } return new ArrayList(stocksHeld); } COM: <s> return a list of all the stocks currently held in the portfolio </s>
funcom_train/10525636
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean replace(Object key, Object oldValue, Object newValue) { if (oldValue == null || newValue == null) throw new NullPointerException(); int hash = hash(key); return segmentFor(hash).replace(key, hash, oldValue, newValue); } COM: <s> replace entry for key only if currently mapped to given value </s>
funcom_train/25798369
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateMovieDetails(final DataResponse<Movie> response, final Movie movie, final Context context) { mHandler.post(new Command<Movie>(response, this) { @Override public void doRun() throws Exception { response.value = video(context).updateMovieDetails(VideoManager.this, movie); } }); } COM: <s> updates the movie object with additional data plot cast etc </s>
funcom_train/8012310
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public HtmlComponent getListComponent(String name) { int elementsSize = _elements.size(); for (int i = 0; i < elementsSize; i++) { BaseListFormComponent blfc = (BaseListFormComponent) _elements.elementAt(i); if (blfc.getName().equals(name) && blfc.getListComponent() != null) { return blfc.getListComponent(); } } return null; } COM: <s> returns component in list box associated with given name or null </s>
funcom_train/35973279
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void sortList(){ boolean swapped = true; int tempScore; String tempName; while(swapped) { swapped = false; for(int i=1; i<scoreListe.length;i++) { if (scoreListe[i]>scoreListe[i-1]) { tempScore = scoreListe[i]; tempName = navneListe[i]; scoreListe[i] = scoreListe[i-1]; navneListe[i] = navneListe[i-1]; scoreListe[i-1] = tempScore; navneListe[i-1] = tempName; swapped = true; } } } } COM: <s> this method sorts the high score list </s>
funcom_train/13596331
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private ExpandedPhonemePanel getExpandedPhonemePanel() { if (expandedPhonemePanel == null) { expandedPhonemePanel = new ExpandedPhonemePanel(); expandedPhonemePanel.setPreferredSize(new Dimension(400, 350)); //was 400 400 expandedPhonemePanel.setSize(400, 350); //expandedPhonemePanel.addPropertyChangeListener("add", this); } return expandedPhonemePanel; } COM: <s> this method initializes expanded phoneme panel </s>
funcom_train/41163098
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void save(ToDictionaryType entity) { EntityManagerHelper.log("saving ToDictionaryType 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 to dictionary type entity </s>
funcom_train/4476552
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int optInt(int index, int defaultValue) { Object o = opt(index); if (o != null) { if (o instanceof Number) { return ((Number) o).intValue(); } try { return Integer.parseInt((String) o); } catch (Exception e) { } } return defaultValue; } COM: <s> get the optional int value associated with an index </s>
funcom_train/10748370
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testClass() throws Throwable { Annotation[] an = test.getAnnotations(); assertNotNull(an); assertEquals("annotations num", 1, an.length); assertEquals("the class annotation", anotherAntnClass, an[0].annotationType()); } COM: <s> tests that the defining classloader is used to lookup class annotations </s>
funcom_train/13551625
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void setP5_(int value) { if ((portDir & 0x20)!=0) { // output port ? if (((portDataOut & value)^value)!=0) remember|=0x20; } if (value!=0) portDataOut|=value; else portDataOut&=~0x20; } COM: <s> set the value of output port 5 by internal operation </s>
funcom_train/26391495
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void write(int b) { byte b1[] = new byte[1]; b1[0]=(byte) b; String s = new String(b1); /** Append if text area, otherwise print error. */ if (null != get_text_area()) { my_text_area.append(s); } else { System.err.println(no_text_area_message()); } } COM: <s> write a byte to the output stream </s>
funcom_train/46457531
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public LaunchPanel setSelectedTab(String path) { if(path==null) { return null; } for(int i = 0; i<tabbedPane.getTabCount(); i++) { LaunchPanel tab = getTab(i); if(path.startsWith(tab.getRootNode().name)) { tabbedPane.setSelectedComponent(tab); return tab; } } return null; } COM: <s> sets the selected tab by name and returns its launch panel </s>
funcom_train/22167904
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected FenixProcess getFenixProcess(String type) throws DataModelException, ProcessException { // Get the process which has generate the information String processId = (String)getParameter(type); if(processId != null) return fdm.getProcess(processId, type); // If the process id is not defined as parameter, then return the process // which has generated this type of information return fdm.getProcess(type); } COM: <s> get the data mode information to use by this action </s>
funcom_train/22433091
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected int getDepth(HttpServletRequest req) { int depth = INFINITY; String depthStr = req.getHeader("Depth"); if (depthStr != null) { if (depthStr.equals("0")) { depth = 0; } else if (depthStr.equals("1")) { depth = 1; } } return depth; } COM: <s> reads the depth header from the request and returns it as a int </s>
funcom_train/19429485
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void findApplicableMethods(JType[] types, Collection c) { for (Enumeration e = signatures.elements(); e.hasMoreElements();) { Signature sig = (Signature) e.nextElement(); if (sig.isApplicableTo(types)) { c.add(sig); } } } COM: <s> appends applicable methods from our set of signatures to a collection </s>
funcom_train/48390036
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public HandlerRegistration addDateChangedHandler(com.smartgwt.client.widgets.calendar.events.DateChangedHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.calendar.events.DateChangedEvent.getType()) == 0) setupDateChangedEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.calendar.events.DateChangedEvent.getType()); } COM: <s> add a date changed handler </s>
funcom_train/17202524
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void removeOsrBarriers(IR ir) { InstructionEnumeration instenum = ir.forwardInstrEnumerator(); while (instenum.hasMoreElements()) { Instruction inst = instenum.next(); // clean the scratObjects of each instruction inst.scratchObject = null; if (OsrBarrier.conforms(inst)) { inst.remove(); } } } COM: <s> remove osr barrier instructions </s>
funcom_train/22920278
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public StringBuffer formatName(final String baseName) { StringBuffer result = null; if(v1 != 0) { result = new StringBuffer(64); result.append(baseName); result.append(": "); if(v2 == 0) { result.append(v1); } else { result.append(v1); result.append("-"); result.append(v2); } } return result; } COM: <s> tries to format a descriptive string for this attribute </s>
funcom_train/6424573
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void loadPlugin(OakPlugin plugin, String[] params, IRCConnection con) { if(con == null)return; serverPlugins.addElement(plugin); plugin.initFullServerPlugin(this, params, String.valueOf(serverPlugins.size()),con); con.registerIRCListener(plugin); } COM: <s> loads a plugin into oak </s>
funcom_train/34589055
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void handlePacket(final Packet packet) { int request = packet.getRequest(); if (request < 0) { // response requestDispatcher.finishRequest(packet); } else if (request == 0) { // handle incoming message EventQueue.invokeLater(new Runnable() { public void run() { messageListeners.fireMessage(packet); } }); } else { // handle incoming request } } COM: <s> handle packets coming in from the wire </s>
funcom_train/10364232
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private ReferenceEntry createEntry(int index, int hashCode, Object key, Object value) { ReferenceEntry newEntry = new ReferenceEntry(this, data[index], hashCode, key, value); data[index] = newEntry; size++; checkCapacity(); return newEntry; } COM: <s> creates a new reference entry </s>
funcom_train/23058053
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testAdd() { System.out.println("add"); final Message message = null; final MessageMapper instance = new MessageMapper(); //instance.add(message); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } COM: <s> test of add method of class message mapper </s>
funcom_train/48499209
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Issue getIssue (IssueBasicDTO issueBasic) { Issue issue = new Issue(); issue.setId(String.valueOf(issueBasic.getIssue_id())); issue.setDescription(issueBasic.getDescription()); issue.setOwner(issueBasic.getOwner()); issue.setStatus(issueBasic.getIssueStatus()); issue.setSeverity(issueBasic.getSeverity()); issue.setCreate(issueBasic.getCreate()); issue.setModified(issueBasic.getModified()); if (issueBasic.isClosed()) issue.setClosed("yes"); return issue; } COM: <s> create an issue bean out of an issue basic dto object </s>
funcom_train/14464133
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String convertFormatString(String pattern) { String ret = (String)this.numericFormatMap.get(pattern); if (ret!=null)return ret; ret = (String)this.currencyFormatMap.get(pattern); if (ret!=null)return ret; ret = (String)this.dateFormatMap.get(pattern); if (ret!=null)return ret; return null; } COM: <s> converts an excel format string to a java format string </s>
funcom_train/2578290
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void applyToXYAnnotation(XYAnnotation annotation) { if (annotation == null) { throw new IllegalArgumentException("Null 'annotation' argument."); } if (annotation instanceof XYTextAnnotation) { XYTextAnnotation xyta = (XYTextAnnotation) annotation; xyta.setFont(this.smallFont); xyta.setPaint(this.itemLabelPaint); } } COM: <s> applies the settings of this theme to the specified annotation </s>
funcom_train/10598792
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testXInclude2() throws Exception { getLogger().debug("testXInclude2"); xincludeTest("resource://org/apache/cocoon/transformation/xinclude-input-2.xml", "resource://org/apache/cocoon/transformation/xinclude-result-2.xml"); } COM: <s> testcase for xinclude simple text include </s>
funcom_train/28486177
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public PortIHFactory getPortFactory() { if (gwssVersion == null) { // use RAW port factory return new RawPortIHFactory(); } try { String className = "com.givaudan.services.client.gws.v" + gwssVersion.replace('.', '_') + ".PortIHFactoryImpl"; return (PortIHFactory) Class.forName(className).newInstance(); } catch (Exception e) { throw new IllegalArgumentException("No PortFactory found: " + e, e); } } COM: <s> obtain a port factory for a specific version of the gwss </s>
funcom_train/34355418
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void uploadToFile(URL url, IPlantFile targetFile, URL callbackURL) throws IOException { preUploadStagingDestructive(targetFile); connection.upload(url, IPlantConstants.IO_SVC + targetFile.getParent(), targetFile.getName(), targetFile.getFormat(), callbackURL); } COM: <s> uploads the contents at the url to the specified i plant file </s>
funcom_train/3155944
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private ParamProperties createParamInfoWeightCoefficient() { ParamProperties paramProps = _defaultFactory.createFloatParamProperties(); paramProps.setDefaultValue(L3Constants.WEIGHT_COEFFICIENT_DEFAULT_VALUE); paramProps.setLabel(L3Constants.WEIGHT_COEFFICIENT_LABEL); paramProps.setDescription(L3Constants.WEIGHT_COEFFICIENT_DESCRIPTION); return paramProps; } COM: <s> creates the parameter information for the parameter weight coefficient </s>
funcom_train/7305907
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public PyObject lookup(String name) { PyObject[] mro = this.mro; for(int i = 0; i < mro.length; i++) { PyObject dict = mro[i].fastGetDict(); if(dict != null) { PyObject obj = dict.__finditem__(name); if(obj != null) return obj; } } return null; } COM: <s> internal lookup for name through mro objects dicts </s>
funcom_train/19398449
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void test_search04() { int nkeys = 0; int maxKeys = 4; byte[][] keys = new byte[][] {}; doSearchTest04( new MutableKeyBuffer(nkeys,keys)); doSearchTest04( new ImmutableKeyBuffer(nkeys,0,keys)); doSearchTest04( new ImmutableKeyBuffer(nkeys,maxKeys,keys)); } COM: <s> test search on empty key buffer </s>
funcom_train/34889592
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String getShorter(String label, int width) { // While label is to long, cut last character. while (smallFont.stringWidth(label + "...") > width - 2) { label = label.substring(0, label.length() - 2); } return label + "..."; } COM: <s> for given width in pixels shorten given string and add </s>
funcom_train/10941165
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isRowSubmit() { if (!"multi".equals(getModelForm().getType())) return false; if (getFieldInfo().getFieldType() != ModelFormField.FieldInfo.CHECK) return false; if (!CheckField.ROW_SUBMIT_FIELD_NAME.equals(getName())) return false; return true; } COM: <s> checks if field is a row submit field </s>
funcom_train/50879478
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setAttributeNames(String[] inAttributeNames){ myComboAttributes.removeAllItems(); if (inAttributeNames == null) return; for (int i=0; i<inAttributeNames.length; i++){ myComboAttributes.addItem(inAttributeNames[i]); } } COM: <s> set the attribute names </s>
funcom_train/23992054
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public StrBuilder appendWithSeparators(Iterator<?> it, String separator) { if (it != null) { separator = ObjectUtils.toString(separator); while (it.hasNext()) { append(it.next()); if (it.hasNext()) { append(separator); } } } return this; } COM: <s> appends an iterator placing separators between each value but </s>
funcom_train/27954742
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void init(IWorkbench workbench, IStructuredSelection selection) { this.workbench = workbench; this.selection = selection; setWindowTitle(MondrianEditPlugin.INSTANCE.getString("_UI_Wizard_label")); setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE.getImageDescriptor(MondrianEditPlugin.INSTANCE.getImage("full/wizban/NewMondrian"))); } COM: <s> this just records the information </s>
funcom_train/24960834
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private double findFeasibility(double[] point) { double result = 0; for (int m = 0; m < constraints.length; m++) { double value = calculate(constraints[m].getText(), point) + (c * Double.parseDouble(norms[m].getText())); if (value > 0) { result += value; } } return (result); } COM: <s> check for feasibility </s>
funcom_train/5395650
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetByteValue() { System.out.println("getByteValue"); DBPByte instance = new DBPByte(); byte expResult = 0; byte result = instance.getByteValue(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } COM: <s> test of get byte value method of class org </s>
funcom_train/14333459
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ParamStringArray getStringArrayParam(String name) throws BatchException { try { ParamStringArray p = (ParamStringArray) params.get(name); if (p == null) { throw new BatchException("Parameter " + name + " not found"); } else { return p; } } catch (ClassCastException e) { throw new BatchException("Parameter " + name + " is not of type String"); } } COM: <s> get a string array parameter by name </s>
funcom_train/21996708
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void executeCommand(Device device, Command cmd) throws RpcException { if (device == null || cmd == null) throw new IllegalArgumentException(); Vector vector = new Vector(); vector.addElement( device.toHash() ); vector.addElement( cmd.toHash() ); execute(EXECUTE_COMMAND, vector); } COM: <s> asynchronously send a command to the driver for a device </s>
funcom_train/50481601
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void paint(Graphics g) { super.paint(g); g.setColor(new Color(200,200,200)); g.draw3DRect(10, 20, getSize().width-20, getSize().height-35, false); g.draw3DRect(11, 21, getSize().width-21, getSize().height-36, true); } COM: <s> overloaded function that draws the border around the panel </s>
funcom_train/1590476
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getShortName(long instant, Locale locale) { if (locale == null) { locale = Locale.getDefault(); } String nameKey = getNameKey(instant); if (nameKey == null) { return iID; } String name = cNameProvider.getShortName(locale, iID, nameKey); if (name != null) { return name; } return printOffset(getOffset(instant)); } COM: <s> gets the short name of this datetime zone suitable for display using </s>
funcom_train/2290428
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public I_CmsXmlConfiguration getConfiguration(Class clazz) { for (int i = 0; i < m_configurations.size(); i++) { I_CmsXmlConfiguration configuration = (I_CmsXmlConfiguration)m_configurations.get(i); if (clazz.equals(configuration.getClass())) { return configuration; } } return null; } COM: <s> returns a specific configuration from the list of initialized configurations </s>
funcom_train/8088152
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void register(Object handler, Class cls, String name) { read().add(cls, XMLSerializationMethodHandler.findReadMethod(handler, "read" + name)); write().add(cls, XMLSerializationMethodHandler.findWriteMethod(handler, "write" + name)); } COM: <s> adds read and write methods for the given class i </s>
funcom_train/20043967
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void _getRangeAddresses() { log.println("Testing getRangeAddresses ..."); CellRangeAddress[] oRanges = oObj.getRangeAddresses(); int howmuch = oRanges.length; tRes.tested("getRangeAddresses()", (howmuch > 2) ); } COM: <s> test calls the method and checks length of returned array </s>
funcom_train/550152
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setComponent(JComponent component) { constraints.gridx = 0; constraints.gridy = 0; constraints.weighty = 1; constraints.weightx = 1; constraints.insets = new Insets(10, 10, 5, 10); if (component instanceof IControlee) { bb.setControlee((IControlee) component); } else { bb.setControlee(this); } getContentPane().add(component, constraints); pack(); } COM: <s> code set component code </s>
funcom_train/12831577
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void createControl(final Composite parent) { Composite container = new Composite(parent, SWT.NULL); FormLayout formLayout = new FormLayout(); container.setLayout(formLayout); createPageContent(container); addListeners(); setControl(container); loadSettings(); PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), "org.eclipse.wst.xml.security.doc.encryptresource"); } COM: <s> creates the wizard page with the layout settings </s>
funcom_train/40675156
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addEntityToCache(OnestoreEntity.EntityProto entityPb) { ByteString key = entityPb.getKey().toByteString(); if (getCache.containsKey(key)) { throw new IllegalStateException("shouldn't load the same entity twice within a transaction"); } getCache.put(key, entityPb); } COM: <s> saves the original value of an entity as returned by the datastore </s>
funcom_train/16218552
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public CollisionManager getCollisionGroup(SpriteGroup group1, SpriteGroup group2) { for (int i = 0; i < this.collisions.length; i++) { if (this.collisions[i].getGroup1() == group1 && this.collisions[i].getGroup2() == group2) { return this.collisions[i]; } } return null; } COM: <s> returns associated collision group that checking collision of </s>
funcom_train/3372445
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void paintChild(Graphics g, Rectangle alloc, int index) { listPainter.paint(g, alloc.x, alloc.y, alloc.width, alloc.height, this, index); super.paintChild(g, alloc, index); } COM: <s> paints one of the children called by paint </s>
funcom_train/49196870
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addExtensionPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_GenFile_extension_feature"), getString("_UI_PropertyDescriptor_description", "_UI_GenFile_extension_feature", "_UI_GenFile_type"), GenmodelPackage.Literals.GEN_FILE__EXTENSION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the extension feature </s>
funcom_train/8987621
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean checkDocIsHardDeleted(Integer docID) throws ApplicationException { boolean isDeleted = false; DmsDocumentDAObject dmsDocumentDAO = new DmsDocumentDAObject(sessionContainer, conn); //if the document not exist, then mean is deleted. isDeleted = !dmsDocumentDAO.checkDocExist(docID); return isDeleted; } COM: <s> checks the document is hard deleted or not </s>
funcom_train/37461435
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getUniparcIdFromSequence(String sequence, String taxonId) throws PicrClientException{ UPEntry upEntry = getUPEntriesForSequence(sequence, taxonId, PicrSearchDatabase.SWISSPROT_VARSPLIC, PicrSearchDatabase.SWISSPROT, PicrSearchDatabase.TREMBL_VARSPLIC, PicrSearchDatabase.TREMBL); if (upEntry == null){ return null; } return upEntry.getUPI(); } COM: <s> gets the uniparc id matching this sequence </s>
funcom_train/18136666
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private DefaultMutableTreeNode getWorkflowNode(Workflow workflow) { int count = specificationNode.getChildCount(); int index = 0; DefaultMutableTreeNode workflowNode = null; while (workflowNode == null && index < count) { DefaultMutableTreeNode currentNode = (DefaultMutableTreeNode) specificationNode .getChildAt(index); if (currentNode.getUserObject() == workflow) { workflowNode = currentNode; } index++; } return workflowNode; } COM: <s> method for getting the tree node for a workflow </s>
funcom_train/25418310
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String prepareForFullViewing(String xml) throws SchemaException { try{ Document dom = loadDom(xml); String sEnclosedXml = lookForEnclosure(dom); if (sEnclosedXml.length() > 0) { return sEnclosedXml; } else { return xml; } } catch (SchemaException e) { throw new SchemaException("Unable to transform document.",e); } } COM: <s> prepare xml for full viewing </s>
funcom_train/22024347
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addVector(Vector v) { if (vectorSize == -1) vectorSize = v.size(); //set the vectorSize if this is the first vector added assert vectorSize == v.size() : "vector is of a differnt size to vectors allready added"; vectors.add(v); } COM: <s> appends a vector to the end of this vector </s>
funcom_train/42382877
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getEmbedHopCount() { int embedHops = 0; for(int i = pathFromSeed.length()-1; i>=0; i--) { if(pathFromSeed.charAt(i)==Hop.NAVLINK.getHopChar()) { break; } embedHops++; } return embedHops; } COM: <s> get the embeded hop count </s>
funcom_train/28476885
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void createDirectoryInGuest(String pathName) throws VixException { VixHandle jobHandle = VixWrapper.VixVM_CreateDirectoryInGuest(vmHandle, pathName, new VixHandle(VixWrapper.VIX_INVALID_HANDLE), null, null); try { /*List result =*/ VixWrapper.VixJob_Wait(jobHandle, Collections.EMPTY_LIST); } finally { VixWrapper.Vix_ReleaseHandle(jobHandle); } } COM: <s> this function creates a directory in the guest operating system </s>
funcom_train/17966448
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Insets getInsets() { return new Insets(Math.abs(stringToInt(this.topValueEditor.getText())), Math.abs(stringToInt(this.leftValueEditor.getText())), Math.abs(stringToInt(this.bottomValueEditor.getText())), Math.abs(stringToInt(this.rightValueEditor.getText()))); } COM: <s> returns the current insets </s>
funcom_train/4149143
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected VariableConverter getVariableConverter(Object value, Class<?> type) { VariableConverter converter = null; Class<?> toType = ConstructorUtils.getWrapper(type); for (VariableConverter variableConverter : getVariableConverters()) { if (variableConverter.canConvert(value, toType)) { converter = variableConverter; break; } } return converter; } COM: <s> get the variable converter for this value and type if there is one </s>
funcom_train/43501105
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testEquals_default() { Variable x = new Variable("n", "x"); Variable y = new Variable("n", "x"); Variable z = new Variable("n", "y"); TestUtils.satisfyEqualsContract(x, y, z); } COM: <s> test the code equals code method for variables with a default value </s>
funcom_train/7308722
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public AudioFileFormat getAudioFileFormat(File file) throws UnsupportedAudioFileException, IOException { InputStream inputStream = null; try { inputStream = new FileInputStream(file); return getAudioFileFormat(inputStream, (int) file.length()); } finally { inputStream.close(); } } COM: <s> obtains the audio file format of the file provided </s>
funcom_train/3679489
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void encodeEnd(FacesContext context) throws IOException { if (context == null) { throw new NullPointerException(); } // Delegate to our associated Renderer if needed if (getRendererType() != null) { super.encodeEnd(context); return; } ResponseWriter writer = context.getResponseWriter(); writer.write("<input type=\"hidden\" name=\"selectedArea\""); writer.write("\">"); writer.write("</map>"); } COM: <s> p renders the code input code tag and the end of </s>
funcom_train/48406909
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addContainersPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ArtifactContainer_Relationship_containers_feature"), getString("_UI_PropertyDescriptor_description", "_UI_ArtifactContainer_Relationship_containers_feature", "_UI_ArtifactContainer_Relationship_type"), SpemxtcompletePackage.eINSTANCE.getArtifactContainer_Relationship_Containers(), true, false, true, null, null, null)); } COM: <s> this adds a property descriptor for the containers feature </s>
funcom_train/26481443
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Object evaluate(Phenotype phenotype, List parameters) { assert(parameters != null && parameters.size() == 3); float split = getFloatParameter(parameters, 0); Area area1 = (Area)parameters.get(1); Area area2 = (Area)parameters.get(2); return new Area(split, true/*horizontal*/, area1, area2); } COM: <s> return an area to describe an area split into two </s>
funcom_train/5237153
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void drawCell(GC gc, int row, int col, Rectangle rect) { if (row < 0 || row >= layoutAdvisor.getRowCount() || col < 0 || col >= layoutAdvisor.getColumnCount() || rect.isEmpty()) { return; } ICellRenderer cellRenderer = cellRendererProvider.getCellRenderer(row, col); cellRenderer.drawCell(gc, rect, row, col); } COM: <s> draw cells only in the area indicated by parameters </s>
funcom_train/49655072
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int computeBaseScore(EventScore score, int builds) throws ConfigurationException { // Only one person has built for the day if (builds == 1) { return 0; } // Everyone has built for the day if ((builds > 0)) { return configManager.getBaseScoreWeight(eventName); } // No one has built for the day else { return penaltyWeight; } } COM: <s> this computes the base score </s>
funcom_train/14092942
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testNullClass() { ComponentFinder finder = new ComponentFinder(null); JButton button = new JButton(); JFrame frame = createJFrame(getName()); frame.getContentPane().add(button); packAndShow(frame); setWindow(frame); assertFalse("Finder is not working", finder.testComponent(button)); } COM: <s> tests the test component method for null class </s>
funcom_train/549914
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object getValueAt(int row, int column) { Object o = adapters.get(row); ICommand command = ((CommandAdapter) o).getCommand(); String header = getColumnName(column); if (DEVICE == header) return getDeviceAlias(command.getDevice()); if (COMMAND == header) return getEntityAlias(command); return "UGLE"; } COM: <s> returns the value to put in the specified row and column </s>
funcom_train/50313118
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Color getBackground (int index) { checkWidget (); int count = Math.max (1, parent.getColumnCount ()); if (0 > index || index > count - 1) return getBackground (); long pixel = cellBackground != null ? cellBackground [index] : -1; return pixel == -1 ? getBackground () : Color.internal_new (display, (int)pixel); } COM: <s> returns the background color at the given column index in the receiver </s>
funcom_train/3409208
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setIssuerNames(Collection<?> names) throws IOException { if (names == null || names.size() == 0) { issuerNames = null; issuerX500Principals = null; } else { HashSet<Object> tempNames = cloneAndCheckIssuerNames(names); // Ensure that we either set both of these or neither issuerX500Principals = parseIssuerNames(tempNames); issuerNames = tempNames; } } COM: <s> strong note strong use </s>
funcom_train/43036097
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void writeMask(Stream str, int maskData) { if (str == null) { return; } if (maskData >= 0x100) { maskData |= 0x10; str.writeByte(maskData & 0xFF); str.writeByte(maskData >> 8); } else { str.writeByte(maskData); } } COM: <s> writes the update mask bits to the client </s>
funcom_train/4694742
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object visit(NewArray newArray) { newArray.getType().setEnclosingScope(newArray.getEnclosingScope()); if (newArray.getType().accept(this) == null) return null; newArray.getSize().setEnclosingScope(newArray.getEnclosingScope()); if (newArray.getSize().accept(this) == null) return null; return true; } COM: <s> new array visitor </s>
funcom_train/11312371
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Properties overrideWithSystemProperties(Properties prop) { Properties ret = new Properties(prop); for ( String key : prop.stringPropertyNames() ) { if ( System.getProperty(key) != null ) { ret.setProperty(key, System.getProperty(key)); } } return ret; } COM: <s> overrides the read properties with the system set properties </s>
funcom_train/50022207
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateClipboard(String content) { PersistenceManager pm = PMF.get().getPersistenceManager(); Long nextVersion; if (this.getId() == null) { this.setContent(content); nextVersion = getNextVersion(); setVersion(nextVersion); try { pm.makePersistent(this); } finally { pm.close(); } } else { try { Clipboard clipboard = pm.getObjectById(Clipboard.class, this .getId()); clipboard.setContent(content); nextVersion = clipboard.getNextVersion(); clipboard.setVersion(nextVersion); setVersion(nextVersion); } finally { pm.close(); } } } COM: <s> update the clipboard content and set the clipboard update time </s>
funcom_train/23385932
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testInit() throws Exception { try { Application.init(new File("/Users/preisler/jriaffe/applications/demo"), new File("/Users/preisler/jriaffe/applications/demo/application.nba")); } catch (Exception ex) { ex.printStackTrace(); fail("Exception thrown in init method."); } } COM: <s> test of init method of class application </s>