__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/1797656
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setWithMappings(Boolean withMappings) { // check if setting to existing value if (this.withMappings == null ? withMappings != null : !this.withMappings.equals(withMappings)) { // set to new value for customer parameter this.withMappings = withMappings; setStringCustomParameter("with-mappings", withMappings == null ? null : withMappings.toString()); } } COM: <s> sets the handle web address mappings </s>
funcom_train/50586203
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private AbstractHTMLTagNode convertTree(Node node) { HTMLRootNode rootNode = new HTMLRootNode(); for (int i = 0; i < node.getChildNodes().getLength(); i++) { rootNode.addTagNodeChild( parseDocument(node.getChildNodes().item(i), rootNode)); } return rootNode; } COM: <s> initialises a htmlroot node and invokes the conversion into a htmltag tree </s>
funcom_train/46459362
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void propertyChange(PropertyChangeEvent e) { String name = e.getPropertyName(); if (name.equals("translation") || name.equals("locale")) refreshGUI(); // forward event to other listeners else firePropertyChange(e.getPropertyName(), e.getOldValue(), e.getNewValue()); } COM: <s> listens for property change events </s>
funcom_train/31801627
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testAll() { CoverFor ci = new CoverFor(); assertEquals(5, ci.simpleFor(0)); assertEquals(9, ci.simpleFor(4)); assertEquals(5, ci.expressionFor(0, 0)); assertEquals(9, ci.expressionFor(4, 8)); assertEquals(10, ci.expressionFor(8, 5)); } COM: <s> covers all the code </s>
funcom_train/38949362
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void run() throws GeneratorException { String ns = ""; if (isService) { new ServiceClientGenerator(clazz, stubClass, writer, ns, generatedFolder).run(); } else { new ComplexTypeGenerator(clazz, writer, generatedFolder).run(); } } COM: <s> loads context class loader and then generates code </s>
funcom_train/33352977
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JToggleButton getJToggleButton83() { if (jToggleButton83 == null) { jToggleButton83 = new JToggleButton(); jToggleButton83.setPreferredSize(new Dimension(42, 20)); jToggleButton83.setText("On"); jToggleButton83.setMargin(new Insets(2, 10, 2, 10)); } return jToggleButton83; } COM: <s> this method initializes j toggle button83 </s>
funcom_train/44804655
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String getLookAndFeelClassNameProperty() { String key = "look-and-feel-class"; // Get platform LookAndFeel String klass = getProperty(SystemInfo.getPlatform() + "-" + key); if (StringUtils.isEmpty(klass)) { // Get cross platform LookAndFeel klass = getProperty("cross-" + key); } if (StringUtils.isEmpty(klass)) { // Get LookAndFeel klass = getProperty(key); } return klass; } COM: <s> get look and feel class name from properties </s>
funcom_train/16304385
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addLayer(Layer layer) { layer.setParentNetwork(this); this.layers = Arrays.copyOf(layers, layers.length + 1); // grow existing layers array to make space for new layer this.layers[layers.length - 1] = layer; // add new layer at the end of array } COM: <s> adds layer to neural network </s>
funcom_train/5243386
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void transformChanged(int type, Transform3D transform) { // callback.transformChanged( PickingCallback.ROTATE, currentTG ); if (currentShape != null) { currentShape.getAppearance().getMaterial().setEmissiveColor( new Color3f(0.2f, 0.2f, 0.2f)); } } COM: <s> callback method from mouse rotate this is used when the picking </s>
funcom_train/25528466
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addText(String sText) { // Split text String[] sWords = gr.demokritos.iit.jinsect.utils.splitToWords(sText); java.util.Iterator iIter = java.util.Arrays.asList(sWords).iterator(); // Add words while (iIter.hasNext()) addWord((String)iIter.next()); } COM: <s> adds all words of a selected text to the list of definitions </s>
funcom_train/26410947
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setForm(ProductVO p) { setProductId(p.getProductId()); setTitle(p.getTitle()); setDesc(p.getDesc()); setPrice(p.getPrice()); setImage(p.getImage()); setSKU(p.getSKU()); setSalePrice(p.getSalePrice()); setOnSale(p.isOnSale()); setVisible(p.isVisible()); } COM: <s> reset all properties to their default values </s>
funcom_train/3394073
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int nextBit(int x) { int windex = x >>> wordshift; if (windex >= bits.length) return -1; int word = bits[windex] & ~((1 << (x & wordmask))-1); while (true) { if (word != 0) return (windex << wordshift) + trailingZeroBits(word); windex++; if (windex >= bits.length) return -1; word = bits[windex]; } } COM: <s> return the index of the least bit position x that is set </s>
funcom_train/14081371
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object getObject(int index) { if (!isInitialized()) initialize(); if (!checkObjIndex(index)){ String msg = "Index " + index + " is out of bounds for Class Domain " + classOfObjects.getName(); throw new IndexOutOfBoundsException(msg); } return objects.get(index); } COM: <s> returns object stored at a given position inside the class domain </s>
funcom_train/26485836
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean save() { boolean bWorked = true; try { FileOutputStream ostream = new FileOutputStream(m_filename); ObjectOutputStream p = new ObjectOutputStream(ostream); p.writeObject(this); ostream.close(); } catch(Exception e) { bWorked = false; } return bWorked; } COM: <s> saves the list to a file </s>
funcom_train/36252122
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void refreshCache() { // Update VM cache try { this.domainName.clear(); this.domainId.clear(); for (VM.Record v : VM.getAllRecords().values()){ this.domainName.put(v.nameLabel, v); this.domainId.put(v.domid.intValue(), v); } } catch (Exception e) { System.err.println("[XenMonitor] Error: getting domains info, refreshing cache."); e.printStackTrace(); } } COM: <s> reload the vm </s>
funcom_train/39911042
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetOver_time() { System.out.println("getOver_time"); Timesheet_hour instance = new Timesheet_hour(); int expResult = 0; int result = instance.getOver_time(); 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 over time method of class buissness </s>
funcom_train/3388200
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void releaseInputStream() throws IOException { /* WARNING: Currently, the UnicastRef.java invoke methods rely * upon this method not throwing an IOException. */ try { if (in != null) { // execute MarshalInputStream "done" callbacks try { in.done(); } catch (RuntimeException e) { } // add saved references to DGC table in.registerRefs(); /* WARNING: The connection being passed to done may have * already been freed. */ in.done(conn); } conn.releaseInputStream(); } finally { in = null; } } COM: <s> release the input stream this would allow some transports to release </s>
funcom_train/25936605
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean subPath(String[] list, String[] candidateSub) { if(candidateSub.length > list.length) { return false; } for(int i = 0; i < candidateSub.length; i++) { if( ! candidateSub[i].equals(list[i])) { return false; } } return true; } COM: <s> this function verifies if the i candidate sub i list of strings </s>
funcom_train/20211106
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addSchedule(Schedule schedule) { if (!(schedule instanceof Schedule)) { throw new ClassCastException( "ContinuumDatabase.addSchedules(schedule) parameter must be instanceof " + Schedule.class.getName()); } getSchedules().add(schedule); } // -- void addSchedule(Schedule) COM: <s> method add schedule </s>
funcom_train/36679182
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void locateMouseOverAreas() { for (int i = 0; i < mouseOverAreas.size(); i++) { int x = getX() + i * tileSize; int y = getY(); MouseOverArea moa = mouseOverAreas.get(i); moa.setLocation(x, y); } } COM: <s> locate the moas from left to right </s>
funcom_train/27683040
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: synchronized protected void openForLog(Log log, int loggingLevel) { // If no logs registered, this must be the first. Open the mechanism. if (logs.size() <= 0) open(log); // If the log isn't already in the set of logs, add it and put out // a notification message if (! logs.contains(log)) { logs.addElement(log); notifyLogOpened(log, loggingLevel); } } COM: <s> logs call this method to register themselves with the mechanism </s>
funcom_train/46994810
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JComboBox getFontName() { if (fontName == null) { fontName = new JComboBox(java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames()); fontName.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { updateTestFont(); } }); } return fontName; } COM: <s> this method initializes font name </s>
funcom_train/22449182
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { StringBuffer result = new StringBuffer(); result.append("[UserPrefsModel"); result.append(" AutoCompleteWords="); result.append(fAutoCompleteWords); result.append(", ShowSimilarAtNotFound="); result.append(fShowSimilarAtNotFound); result.append(", ShowToolTips = "); result.append(fShowToolTips); result.append(']'); return result.toString(); } COM: <s> return string representation of the preferences useful for debugging </s>
funcom_train/15915398
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void test5() throws Throwable { CConstraint c = ConstraintManager.getConstraintSystem().makeCConstraint(); c.addBinding(u,a); c.addBinding(u,v); c=c.substitute(e0,u); System.out.print("(test5: Should print a=v) "); print(c); assertTrue(c.entails(a, v)); } COM: <s> exists u u a u v a v </s>
funcom_train/8132539
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void saveTo(Object dataObject) { // check if there is a change in the context at all... // problems with error reporting... try { validate(); Object value = getConvertedValue(); PropertyAccessor.storeProperty(dataObject, getProperty(), value ); } catch (ValidationException e) { ((Compound)surroundingCompound()).addError(e.getMessage(),getProperty()); } } COM: <s> saves the value to given data object </s>
funcom_train/9708191
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setRelationships(RelatesTo[] list) { if(list == null){ relationships = null; } else{ ArrayList<RelatesTo> arraylist = new ArrayList<RelatesTo>(list.length); for(int i = 0 ; i < list.length ; i++){ arraylist.add(list[i]); } relationships = arraylist; } } COM: <s> set ws addressing relates to items </s>
funcom_train/24429848
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getMaxLineWidth(int start, int len) { int retVal = 0; for (int i = start; i <= start + len; i++) { if (i >= length) { break; } retVal = Math.max(lineInfo[i].width, retVal); } return retVal; } COM: <s> returns the maximum line width in the specified line range </s>
funcom_train/12112895
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void connEtoC20(java.awt.event.ActionEvent arg1) { try { // user code begin {1} // user code end this.okJButton_ActionPerformed(arg1); // user code begin {2} // user code end } catch (java.lang.Throwable ivjExc) { // user code begin {3} // user code end handleException(ivjExc); } } COM: <s> conn eto c20 ok jbutton </s>
funcom_train/21884980
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addAndLeftTermPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_AndTerm_andLeftTerm_feature"), getString("_UI_PropertyDescriptor_description", "_UI_AndTerm_andLeftTerm_feature", "_UI_AndTerm_type"), BoolScriptPackage.Literals.AND_TERM__AND_LEFT_TERM, true, false, false, null, null, null)); } COM: <s> this adds a property descriptor for the and left term feature </s>
funcom_train/26661576
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void init(ServletConfig config) { if (server != null) return; server = MBeanServerLocator.locate(); String s = config.getInitParameter("mppsScpServiceName"); try { mppsScpServiceName = new ObjectName(s); } catch (Exception e) { log.error("Exception in init! ", e); } } COM: <s> iinitialize the mpps service delegator </s>
funcom_train/3378393
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSoTimeout(int timeout) throws SocketException { if ((debug != null) && Debug.isOn("ssl")) { System.out.println(threadName() + ", setSoTimeout(" + timeout + ") called"); } if (self == this) { super.setSoTimeout(timeout); } else { self.setSoTimeout(timeout); } } COM: <s> assigns the socket timeout </s>
funcom_train/11707156
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int remove(int index) { if (index >= this.pos) { throw new ArrayIndexOutOfBoundsException(); } --this.pos; int retval = this.array[index]; for (int i = index; i < this.pos; i++) { this.array[i] = this.array[i + 1]; } return retval; } COM: <s> remove the element at a certain index </s>
funcom_train/18058871
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean fieldHasScale(UID objectId, int fieldNumber) throws RemoteException { synchronized(SO) { SO.rmcCount++; CategorySource cat = (CategorySource) SO.objectMap.get(objectId); try { return cat.fieldHasScale(fieldNumber); } catch(PerformanceException e) { throw new RemoteException(e.getMessage()); } } } COM: <s> indicate whether the field in question has a scale </s>
funcom_train/13502973
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected JournalInputFile openNextFile() throws JournalException { File[] journalFiles = MultiFileJournalHelper .getSortedArrayOfJournalFiles(journalDirectory, filenamePrefix); if (journalFiles.length == 0) { return null; } JournalInputFile nextFile = new JournalInputFile(journalFiles[0]); recoveryLog.log("Opening journal file: '" + nextFile.getFilename() + "'"); return nextFile; } COM: <s> look in the directory for files that match the prefix </s>
funcom_train/40929524
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getVerPreAsignacionCommand() { if (verPreAsignacionCommand == null) {//GEN-END:|301-getter|0|301-preInit // write pre-init user code here verPreAsignacionCommand = new Command("Ver", Command.OK, 0);//GEN-LINE:|301-getter|1|301-postInit // write post-init user code here }//GEN-BEGIN:|301-getter|2| return verPreAsignacionCommand; } COM: <s> returns an initiliazed instance of ver pre asignacion command component </s>
funcom_train/5711983
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { resolutionHorizontal = in.readInt(); resolutionVertical = in.readInt(); coding = in.readInt(); lineLength = in.readInt(); pageLength = in.readInt(); imageWidth = in.readInt(); rawMHData = (byte[]) in.readObject(); } COM: <s> load data of a serialized instance back into the currect instance </s>
funcom_train/8814492
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public JoinBuilder leftJoin(SqlQueryBuilder derivedTable, String alias) { parameters.addAll(derivedTable.parameters); tableList.append(" LEFT JOIN (") .append(derivedTable.sql()) .append(")") .append(" AS ") .append(alias); return new JoinBuilder(); } COM: <s> appends a left join to derived table to the </s>
funcom_train/3987386
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void text(String str, float x, float y, float z) { if (z != 0) translate(0, 0, z); // slow! text(str, x, y); textZ = z; if (z != 0) translate(0, 0, -z); // inaccurate! } COM: <s> same as above but with a z coordinate </s>
funcom_train/38529184
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void zeroAll() { final String classname = getClass().getName(); final String methname = "zeroAll"; LOGGER.entering(classname, methname); LOGGER.info("Zero All"); final List<AbstractHistogram> allHistograms = AbstractHistogram .getHistogramList(); for (AbstractHistogram hist : allHistograms) { hist.setZero(); } broadcaster.broadcast(BroadcastEvent.Command.REFRESH); LOGGER.exiting(classname, methname); } COM: <s> zero all the histograms </s>
funcom_train/41721604
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void addNamesToNameList(String nameA, String nameB) { if (distanceMatrix == null) return; if (!nameList.contains(nameA)) nameList.add(nameA); if (!nameList.contains(nameB)) nameList.add(nameB); if (nameList.size() > distanceMatrix.length) throw new IllegalArgumentException("Too many different names"); } COM: <s> add given names to the list of names of students represented in this </s>
funcom_train/39982032
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void regen() { if (this.regenCoolDown == 0) { this.augmentStat(StatType.CURLIFE, this.getCurrentStat(StatType.LIFEREF)); this.healMana(this.getCurrentStat(StatType.MANAREF)); this.regenCoolDown = 12; } else { this.regenCoolDown--; } } COM: <s> regenerate hp and mp activated due to system timer </s>
funcom_train/44478526
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected TagsMapModel performPostprocessing(TagsMapModel model, List<? extends MappableTag> _tags, Map<String, String[]> params){ TagsMapModel result = model; for(PostProcessor processor : JeromeDLExecuteEngine.getPostProcessors()){ result = processor.process(model, _tags, params, this); } return result; } COM: <s> ivokes all registers post processors </s>
funcom_train/3362370
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void sendNotification(Notification n) { if (emitter instanceof NotificationBroadcasterSupport) ((NotificationBroadcasterSupport) emitter).sendNotification(n); else { final String msg = "Cannot sendNotification when emitter is not an " + "instance of NotificationBroadcasterSupport: " + emitter.getClass().getName(); throw new ClassCastException(msg); } } COM: <s> p sends a notification </s>
funcom_train/50961614
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int findInvalidQueryLines() { boolean valid = false; int i = 1; try { int querySize = myQuery.size(); for ( ; i <= querySize; i++) { QueryLine ql = myQuery.getQueryLine(i); String parsedQueryText = QuerySubmitter.parseQueryLine(ql); } } catch (Exception ex) { return i; } return -1; } COM: <s> find and returns the line number of the first query line that contains </s>
funcom_train/33660085
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JTextField getJTextField3() { if (jTextField3 == null) { jTextField3 = new JTextField(); Calendar cal = Calendar.getInstance(); Integer year = cal.get(Calendar.YEAR); Integer mon = cal.get(Calendar.MONTH) + 1; Integer day = cal.get(Calendar.DAY_OF_MONTH); jTextField3.setText(year + "/" + mon + "/" + day); jTextField3.setEditable(false); } return jTextField3; } COM: <s> this method initializes j text field3 </s>
funcom_train/19825338
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getLogLevel(final Bundle bundle) { // The synchronized block below is needed to work around a bug in // JDK1.2.2 on Linux (with green threads). synchronized (configuration) { Integer res = (Integer) AccessController .doPrivileged(new PrivilegedAction() { public Object run() { return new Integer(getFilterLevel(bundle)); } }); return res.intValue(); } } COM: <s> returns the filter level for a specific bundle </s>
funcom_train/10645769
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected AbstractElement createDefaultRoot() { BranchElement root = (BranchElement)createBranchElement(null, null); root.replace(0, 0, new Element[] { createLeafElement(root, null, getStartPosition().getOffset(), getEndPosition().getOffset()) }); return root; } COM: <s> it is expected that the result is of type </s>
funcom_train/44869070
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private WCMDrawStringBean getFString() { if (fString == null) { fString = new WCMDrawStringBean(); fString.setString("Secant slope = #\nTangent Slope=#"); fString.setNumSize(6); fString.setPositioning(WCMDrawStringBean.TOP_LEFT); Value[] values = new Value[] { getSecantSlope(), getFPrimeOfC() }; fString.setValues(values); } return fString; } COM: <s> this method initializes f string </s>
funcom_train/33831485
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ImageAssert isEqualTo(BufferedImage expected) { if (areEqual(actual, expected)) return this; failIfNull(expected); failIfNotEqual(sizeOf(actual), sizeOf(expected)); if (!hasEqualColor(expected)) fail("images do not have the same color(s)"); return this; } COM: <s> verifies that the actual image is equal to the given one </s>
funcom_train/31346047
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void receiveText(String text) throws LiteXMLParseException { switch (section) { /*case SEC_DATA_SOURCE_SOURCE: - this has been altered conf.dataSources.put(name, text); break;*/ case SEC_DATABASE_PARAM: conf.dbProps.put(name, text); break; case SEC_XML_PARSER: conf.xmlParser = text; default: break; } //System.out.println("Received text: [" + text + "]"); } COM: <s> receive the text that is between the current tag and any upcoming tags </s>
funcom_train/14012089
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSeparatorPosition(Extent newValue) { Extent.validate(newValue, Extent.PX); if (newValue != null && newValue.getValue() < 0) { throw new IllegalArgumentException("Extent value may not be negative."); } setProperty(PROPERTY_SEPARATOR_POSITION, newValue); } COM: <s> sets the position of the pane separator </s>
funcom_train/8711694
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addRegExp(RegExpLiteral re) { if (re == null) codeBug(); if (regexps == null) regexps = new ArrayList<RegExpLiteral>(); regexps.add(re); re.putIntProp(REGEXP_PROP, regexps.size() - 1); } COM: <s> called by irfactory to add a reg exp to the regexp table </s>
funcom_train/40433640
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void exit() { if (seleniumRCStarted) { log.debug("Stopping Selenium RC..."); if (seleniumRCStarted) { seleniumRC.stop(); seleniumRCStarted = false; log.debug("Selenium RC stopped"); } else { log.debug("Selenium RC was already stopped"); } } } COM: <s> stops the selenium rc </s>
funcom_train/49469960
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Integer updateTechnology(Technology t) throws Exception, RaciException { Db db = dbRW(); try { db.begin(); _logger.info("Asset : updateTechnology "+t); checkUserCanModify(db); Integer ret = DbTechnology.updateTechnology(db, t); db.commit(); return ret; } catch (Exception e) { store(e); throw e; } finally { db.safeClose(); } } COM: <s> update a technology will not change technology id or type </s>
funcom_train/7615446
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(ImageGraphicAttribute iga) { if (iga == null) { return false; } if (iga == this) { return true; } return (fOriginX == iga.fOriginX && fOriginY == iga.fOriginY && getAlignment() == iga.getAlignment() && fImage.equals(iga.fImage)); } COM: <s> compares the specified image graphic attribute object with this </s>
funcom_train/40871229
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void setup() { System.out.println("Hello MonitorResourceAgent is ready"); mapSession = new HashMap<String, Session>(Consts.MAX_SESSION_NO); initResourcesCatalog(-1.0); registerToDF(); addBehaviour(new PendingForUserCFP()); /** * New Behaviour for resource monitoring */ addBehaviour(new TickerMonitorResources(this,Consts.UpdateMonitorInterval_msec)); /** * New Behaviour for resource monitoring */ addBehaviour(new TickerReleaseResources(this,Consts.ReleaseResourcesInterval_msec)); } COM: <s> agent initializations li register the resource monitor service in the </s>
funcom_train/9367057
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void assignContactFromPhone(String phoneNumber, boolean lazyLookup) { mContactPhone = phoneNumber; if (!lazyLookup) { mQueryHandler.startQuery(TOKEN_PHONE_LOOKUP, null, Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, mContactPhone), PHONE_LOOKUP_PROJECTION, null, null, null); } else { mContactUri = null; onContactUriChanged(); } } COM: <s> assign a contact based on a phone number </s>
funcom_train/39043775
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void changeStandbyPanel(String port) { standbyHostPanel_.setBorder(BorderFactory.createCompoundBorder( BorderFactory.createEmptyBorder(2, 2, 2, 2), BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(str_standby + " " + port), BorderFactory.createEmptyBorder(2, 2, 2, 2)))); standbyHostPanel_.repaint(); } COM: <s> change the standby port number </s>
funcom_train/35238738
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean checkIsAuthenticated(ForumMessage forumMessage) { boolean allowEdit = false; if (!forumMessage.isEmbedded()) return allowEdit;// forumMessage is null or only has mesageId com.jdon.jivejdon.model.Account account = sessionContextUtil.getLoginAccount(sessionContext); allowEdit = resourceAuthorization.isAuthenticated(forumMessage, account); return allowEdit; } COM: <s> must be often checked every request if use login </s>
funcom_train/35167784
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setChartData(String name, String header, Properties data) { Chart nc = null; ListIterator<Chart> i = charts.listIterator(); while (i.hasNext()) { Chart t = i.next(); if (t.name.equals(name)) { nc = t; break; } } if (nc != null) { nc.addData(header, data); } else { nc = new Chart(name); nc.addData(header, data); charts.add(nc); } } COM: <s> sets chart data from properties object </s>
funcom_train/45076747
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isPointInTime() { DateTime endTime = getEndTime(); if (endTime == null) { return true; } DateTime beginTime = getBeginTime(); if (beginTime == null) { return true; } if (beginTime.toPIDTime() == endTime.toPIDTime()) { return true; } else { return false; } } COM: <s> returns true if the high level observation data is a point in time </s>
funcom_train/5346310
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isHashOnly() { String kt = getKeywordTopic(); String dn = getDisplayName(); return (kt == null || kt.length()> 0) && (dn == null || dn.length() > 0) && getAS().isEmpty() && getXS().isEmpty() && !getExactTopics().isEmpty(); } COM: <s> returns whether the magnet has no other fields set than the hash </s>
funcom_train/37557756
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object getCellEditorValue() { //System.out.println("RDFNodeCellEditor.getCellEditorValue called for: "+value); //System.out.println("RDFNodeCellEditor.getCellEditorValue of class: "+value.getClass().getName()); return value; // tablePanel.standardTableCellEditor.getCellEditorValue(); } COM: <s> returns the value contained in the editor </s>
funcom_train/35837440
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setRenderers() { int count = table.getModel().getColumnCount(); for (int i = 0; i < count; i++) { TableColumn aColumn = table.getColumnModel().getColumn(i); UITableHeaderRenderer headerRenderer = new UITableHeaderRenderer(); aColumn.setHeaderRenderer(headerRenderer); } } COM: <s> set the header renderers for the table column headers </s>
funcom_train/188210
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Division checkIfDivisionExists(Division division) { if (division == null) throw new IllegalArgumentException( "The division to be checked if exists was found null @ DivisionSpringDAO:checkIfDivisionExists "); return (Division) this.getSession().createCriteria(Division.class).add( Expression.eq("standard", division.getStandard())).add( Expression.eq("name", division.getName())).uniqueResult(); } COM: <s> returns a division object if a division already exists with the given </s>
funcom_train/16384024
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: synchronized public void stop(){ if (run_connector){ status=STOP_PENDING; run_connector=false; // tell this.run() thread not to try and reconnect when this.receive_messages() disconnects connected=false; // tell this.receive_messages() to disconnect } if (logger.isDebugEnabled()) logger.debug("CO:"+ossBeanName+":"+this.getClass().getSimpleName()+".stop(): stopping process"); } COM: <s> tells the receiver to cleanly close the connections and stop </s>
funcom_train/28158661
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void drawMultilineClosing(final Point[] points) { if (points.length > 0) { Point prev = points[0]; Point cur; for (int i = 1; i < points.length; i++) { cur = points[i]; drawLine(prev, cur); prev = cur; } drawLine(prev, points[0]); } } COM: <s> draw a freeform line defined by an array of points where the last </s>
funcom_train/41366406
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: final public int register(String a, String v) { HashMap<String,Integer> fs = getFeatureSet().get(a); if (fs==null) { fs = new HashMap<String,Integer>(); getFeatureSet().put(a, fs); fs.put(NONE, 0); getFeatureCounter().put(a, 1); } Integer c = getFeatureCounter().get(a); Integer i = fs.get(v); if (i==null) { fs.put(v, c); c++; getFeatureCounter().put(a,c); return c-1; } else return i; } COM: <s> register an attribute class if it not exists and add a possible value </s>
funcom_train/36190869
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void cleanDb() throws Exception { List<ICtxIdentifier> identifiers; // remove any residue of old tests // attributes identifiers = broker.lookup(CtxModelType.ATTRIBUTE, LOCATION_ATTR_NAME); broker.remove(identifiers); identifiers = broker.lookup(CtxModelType.ATTRIBUTE, ACTIVITY_ATTR_NAME); broker.remove(identifiers); // entities identifiers = broker.lookup(CtxModelType.ENTITY, APPLE_ENTITY_NAME); broker.remove(identifiers); } COM: <s> cleans context database </s>
funcom_train/37820493
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeBranch(Branch deletedBranch, boolean left, boolean right) { try { actionStack.perform(new DeleteBranchAction(deletedBranch, left, right)); synDiaSystem.notifyObservers(); } catch (Exception e) { mainController.showErrorDialog( Messages.getString("ebnf", "SynDiaEditor.Error_InternalError") + Messages.getString("ebnf", "SynDiaEditor.Error_Appendix"), false); } } COM: <s> removes a branch of the syntax diagram system </s>
funcom_train/1589624
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Duration toDurationTo(ReadableInstant endInstant) { long endMillis = DateTimeUtils.getInstantMillis(endInstant); Chronology chrono = DateTimeUtils.getInstantChronology(endInstant); long startMillis = chrono.add(this, endMillis, -1); return new Duration(startMillis, endMillis); } COM: <s> gets the total millisecond duration of this period relative to an </s>
funcom_train/36680354
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setBaseRecolorSpriteSheet(String imgRef, String imgPath, int tileWidth, int tileHeight) { String baseImgRef = loadAwtImg(imgRef, imgPath); Image slickImg = slickImageFactory.createSpriteSheetFromAwtSource(baseImgRef, tileWidth, tileHeight); slickImageLib.addSlickImg(baseImgRef, slickImg); } COM: <s> set the base image as an sprite sheet for recoloring </s>
funcom_train/11010700
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addNewCol() { if (ctTbl.sizeOfTrArray() == 0) { createRow(); } for (int i = 0; i < ctTbl.sizeOfTrArray(); i++) { XWPFTableRow tabRow = new XWPFTableRow(ctTbl.getTrArray(i), this); tabRow.createCell(); } } COM: <s> add a new column for each row in this table </s>
funcom_train/35482386
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Jugger getCurrentJugger() { User currenUser = getCurrentUser(); Jugger result = null; String username = currenUser.getUsername(); if (username != null) { result = juggerDao.searchByUsername(currenUser.getUsername()); if (result == null) { logger.error("No jugger with the '" + username + "' username"); } } return result; } COM: <s> returns the current jugger that is the jugger if exists corrisponding to </s>
funcom_train/21460521
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void fullDecomposition() { for( int i = 1; i <= 3*r; i++ ) { for( int j = 1; j <= 3*r; j++ ) { // i=4;j=4; // System.out.println("i = "+i+" j = "+j); checkFullDecomposition(i,j,true); checkFullDecomposition(i,j,false); } } } COM: <s> decomposes the matrix and computes q and r </s>
funcom_train/28261937
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void execute() { // FIXME: this instruction is not implemented. Just a dummy! System.out .println("[" + cpu.getType() + "] Instruction ARPL_EwGw not implemented! Should only be used in protected mode!"); // Get addresByte (eat it to keep cpu in line if instructions) addressByte = cpu.getByteFromCode(); } COM: <s> adjust rpl field of segment selector </s>
funcom_train/45771435
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean nodeSupported(Node node) { // can use an array later to check all possible tags for // future expansion if (node.getNodeType() == Node.ELEMENT_NODE && node.getNodeName().equals(OfficeConstants.TAG_TABLE_ROW)) { return true; } else { return false; } } COM: <s> overwrite the parent code node supported code method </s>
funcom_train/3122051
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void postOrderToList(BinaryTree current, List list) { if ( current != null ) { postOrderToList( current.getLeft(), list ); postOrderToList( current.getRight(), list ); list.add(current.getData() ); } } // of method COM: <s> a helper method to perform an post order traversal on this tree </s>
funcom_train/39243586
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Profile getModelProfile() { List profiles = adminService.getProfiles(); Profile foundProfile = null; for(Iterator it = profiles.iterator(); it.hasNext();) { Profile jobProfile = (Profile) it.next(); if (jobProfile.getName().equals(requiredProfile)) { foundProfile = jobProfile; break; } } return foundProfile; } COM: <s> get the selected profile model object </s>
funcom_train/21877226
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void writeStatistic(Element element, ResourceWrap instance) throws DepoException { Element statisticElement = element.addElement("statistic"); writeCommon(statisticElement, instance); statisticElement.addElement("metric-name").addText(instance.getStringNotNull(Types.metricName)); statisticElement.addElement("metric-type").addText(instance.getStringNotNull(Types.metricType)); } COM: <s> add the statistic attributes for an entity instance to an entity element </s>
funcom_train/34339485
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public StringItem getStringItem() { if (stringItem == null) {//GEN-END:|16-getter|0|16-preInit // write pre-init user code here stringItem = new StringItem("Hola", "Hola Mundo!");//GEN-LINE:|16-getter|1|16-postInit // write post-init user code here }//GEN-BEGIN:|16-getter|2| return stringItem; } COM: <s> returns an initiliazed instance of string item component </s>
funcom_train/13850568
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String canon(String path) { if (path.regionMatches(true, 0, "http://", 0, 7)) { int i = path.indexOf('/', 7); if (i < 0) path = "/"; else path = path.substring(i); } path = decode(path); if (path == null || path.length() == 0 || path.charAt(0) != '/') return null; return path.substring(1); } COM: <s> canonicalize the path </s>
funcom_train/46158449
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testVideoMeter() { this.addTimeListener(this); new Thread(new Runnable() { public void run() { for (double time = 0.0d; time <= timelineDuration; time += timelineDuration / 120.0d) { setTime(time); try { Thread.sleep(100); } catch (InterruptedException e) { } } } }).start(); } COM: <s> test the video meter by cycling from 0 </s>
funcom_train/44480915
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean matches(HttpServletRequest request) { int currentTime = Calendar.getInstance().get(Calendar.HOUR_OF_DAY); if (startTime > endTime) { if (currentTime < startTime) { currentTime += 24; } return (currentTime >= startTime && currentTime <= endTime+24); } else { return (currentTime >= startTime && currentTime <= endTime); } } COM: <s> making check to see that the time lies between the start and end </s>
funcom_train/12212504
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void processNodeSelectedEvent(JTree t) { IconNode node = (IconNode) t.getLastSelectedPathComponent(); IconBean bean = (IconBean) node.getUserObject(); String nodePath = bean.getTooltip(); // Display if not already being displayed if (!isDisplayed(nodePath)) openNodeInEditor((IconBean) node.getUserObject(), nodePath); else log.debug(nodePath + " is already displayed"); } COM: <s> get the selected node of the navigator pane and verify before </s>
funcom_train/14047328
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private long getSchemeNode(JEANAPI api, long optionNode) { long ret = -4; boolean ok = optionNode > 0 && api.isCategory(optionNode); if (ok) { long[] children = api.getChildren(optionNode); if ((children.length == 1) && api.isGroup(children[0])) { ret = children[0]; } } return ret; } COM: <s> option nodes are categories that have just one group child </s>
funcom_train/21678096
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getAliasedEscapedColumnName() { if (StringUtility.stringHasValue(tableAlias)) { StringBuffer sb = new StringBuffer(); sb.append(tableAlias); sb.append('.'); sb.append(getEscapedColumnName()); return sb.toString(); } else { return getEscapedColumnName(); } } COM: <s> calculates the string to use in select phrases in sql maps </s>
funcom_train/51782205
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void positionNameLabel() { // medium segment List<Line2D> segments = getSegments(); Line2D middlesegment = segments.get(segments.size() / 2); int x = (int) (middlesegment.getX2() + middlesegment.getX1()) / 2; int y = (int) (middlesegment.getY2() + middlesegment.getY1()) / 2; nameLabel.setAbsolutePos(x, y); } COM: <s> sets the position for the name label </s>
funcom_train/40945979
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int getColIndexByKey(String colKey) { // return 0 if asked for rowHeaders if ("0".equals(colKey)) { return 0; } for (int i = 0; i < visibleColOrder.length; i++) { if (visibleColOrder[i].equals(colKey)) { return i; } } return -1; } COM: <s> gives correct column index for given column key cid in uidl </s>
funcom_train/5785657
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void startDTD(QName rootElement, int publicId, int systemId) throws java.lang.Exception { dtdRootElementName = fStringPool.toString(rootElement.rawname); // is this correct? dtdPublicId = fStringPool.toString(publicId); dtdSystemId = fStringPool.toString(systemId); super.startDTD(rootElement, publicId, systemId); } // startDTD(int,int,int) COM: <s> this function will be called when a lt doctype </s>
funcom_train/8059574
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isButtonClicked(List<Event> events) { for (Event event : events) { if (event.getType() == EventType.FORM_BUTTON_CLICKED && LOGIN_BUTTON_ID.equals(FormButtonClickedEvent.as(event).getButtonName())) { return true; } } return false; } COM: <s> checks whether a button in a blip was clicked or not </s>
funcom_train/47130434
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void init(String name, Attributes attributes) { this.name = name; if (attributes != null) { this.attributes = new HashMap(attributes.getLength()); for (int i = 0; i < attributes.getLength(); i++) { this.attributes.put(attributes.getQName(i), attributes.getValue(i)); } } this.parent = this; } COM: <s> initializes this configuration with a name and a set of attributes </s>
funcom_train/47139950
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void closeFormSheet (FormSheet fs) { boolean fExplicit = true; fs.detachDisplay(); if (m_fsCurrent == fs) { m_fsCurrent = null; } else { fExplicit = false; } formSheetClosed(); synchronized (getWaiter()) { getWaiter().notifyAll(); } fireFormSheetRemoved (fs, fExplicit); } COM: <s> close a form sheet </s>
funcom_train/1029153
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testBug28256() throws Exception { try { this.conn.setReadOnly(true); this.stmt.execute("(SELECT 1) UNION (SELECT 2)"); this.conn.prepareStatement("(SELECT 1) UNION (SELECT 2)").execute(); if (versionMeetsMinimum(4, 1)) { ((com.mysql.jdbc.Connection) this.conn).serverPrepareStatement("(SELECT 1) UNION (SELECT 2)").execute(); } } finally { this.conn.setReadOnly(false); } } COM: <s> tests fix for bug 28256 when connection is in read only </s>
funcom_train/9994187
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testCommandAction() throws AssertionFailedException { System.out.println("commandAction"); MainMenu instance = null; Command c_1 = null; Displayable d_1 = null; instance.commandAction(c_1, d_1); fail("The test case is a prototype."); } COM: <s> test of test command action method of class main menu </s>
funcom_train/11390787
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int maximumFpRemove(int[] h) { int maxIndex = Integer.MIN_VALUE; double maxValue = Double.MIN_VALUE; for (int i = 0; i < nbHash; i++) { double fpWeight = getWeight(fpVector[h[i]]); if (fpWeight > maxValue) { maxValue = fpWeight; maxIndex = h[i]; } } return maxIndex; } COM: <s> chooses the bit position that maximizes the number of false positive removed </s>
funcom_train/7803486
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Metric getBestGroup(List candidates) { if (candidates.size() == 0) return null; Metric best = new Metric(null, -999); best.generator = "BasicSelectionHeuristic.Test"; Iterator it = candidates.iterator(); while (it.hasNext()) { Metric test = (Metric)it.next(); if (test.score > best.score) best = test; } // if we didnt find any groups then return a null reply here. if (best.group == null) return null; return best; } COM: <s> returns the selection of best group from the supplied candidate metrics or null </s>
funcom_train/15910930
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public LiteContext install(Graphics2D g) { LiteContext oldContext = new LiteContext(); Map.Entry entry; String id; LiteAttribute attrib; for (Iterator e = attributes.entrySet().iterator(); e.hasNext(); ) { entry = (Map.Entry)e.next(); id = (String) entry.getKey(); attrib = (LiteAttribute) entry.getValue(); if (attrib != null) { //attrib.set(oldContext, attrib.install(g)); oldContext.setAttribute(id, attrib.install(g)); } } return oldContext; } COM: <s> installs all defined attributes in graphics2 d and returns </s>
funcom_train/44109308
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void fireLinkActivated(VRMLLinkNodeType link) { String[] url = link.getUrl(); int size = sensorStatusListeners.size(); for(int i = 0; i < size; i++) { try { SensorStatusListener l = (SensorStatusListener)sensorStatusListeners.get(i); l.linkActivated(url); } catch(Exception e) { System.out.println("Error sending navigation list changed " + e); e.printStackTrace(); } } } COM: <s> fire a link activated event </s>
funcom_train/32316208
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addTargetPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_DataPropertyAssoziation_target_feature"), getString("_UI_PropertyDescriptor_description", "_UI_DataPropertyAssoziation_target_feature", "_UI_DataPropertyAssoziation_type"), OdmPackage.Literals.DATA_PROPERTY_ASSOZIATION__TARGET, true, false, true, null, null, null)); } COM: <s> this adds a property descriptor for the target feature </s>