__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/36411592
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSortComparator(Comparator sortComparator) { if (sortComparator == null) sortComparator = DEFAULT_SORT_COMPARATOR; Comparator oldSortComparator = this.sortComparator; GridBox gb = (GridBox) getParent(); this.sortComparator = sortComparator; if (gb != null) gb.firePropertyChange(this, PROPERTY_COLUMN_SORT_COMPARATOR, oldSortComparator, sortComparator); setSortOrder(null); } COM: <s> set the comparator for this column </s>
funcom_train/30274731
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object getResource(String name) throws ServiceLocatorException { Object resource = null; try { if (homeCache.containsKey(name)) { resource = homeCache.get(name); } else { resource = threeWayLookup(JBOSS_RES_JNDI_PREFIX + name, J2EE_RES_JNDI_PREFIX + name, WAS_RES_JNDI_PREFIX + name, null); homeCache.put(name, resource); } } catch (NamingException ne) { throw new ServiceLocatorException(ne); } catch (Exception e) { throw new ServiceLocatorException(e); } return resource; } COM: <s> this method obtains the resource for a caller </s>
funcom_train/38513231
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getTotalDuration() { int max = 0; if (mProjects == null) return 0; for (Iterator it = mProjects.iterator(); it.hasNext();) { ProjectItem item = (ProjectItem) it.next(); int tmp = item.getEnd(); if (tmp > max) { max = tmp; } } return max; } COM: <s> returns the total duration of all projects in months </s>
funcom_train/1572457
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object F(String _fieldName) { if (_fieldName == null) return null; WOContext ctx = this.context(); if (ctx == null) return null; WORequest rq = ctx.request(); if (rq == null) return null; return rq.formValueForKey(_fieldName); } COM: <s> dirty convenience hack to return the value of a form parameter </s>
funcom_train/14107817
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void init() throws PSError { try { out.write("% Created by " + net.sf.eps2pgf.Main.getNameVersion() + " "); Date now = new Date(); out.write("on " + now + "\n"); out.write("\\begin{pgfpicture}\n"); } catch (IOException e) { throw new PSErrorIOError(); } } COM: <s> initialize before any other methods are called </s>
funcom_train/44019175
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JMenuItem getEditRedoMenuItem() { if (editRedoMenuItem == null) { editRedoMenuItem = new JMenuItem(); editRedoMenuItem.setText("Redo"); editRedoMenuItem.setMnemonic('R'); editRedoMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Y, MENU_SHORTCUT_KEY_MASK)); editRedoMenuItem.addActionListener(eventHandler); } return editRedoMenuItem; } COM: <s> return the edit redo menu item </s>
funcom_train/8460100
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateCandidateList(){ candidateDBLPointSet.clear(); usedDBLPointSet.clear(); if(this.packedPostitionBlockPair.size()==0)candidateDBLPointSet.add(new Point(0,0,0)); candidateDBLPointSet.add(new Point(0,currentDeepestY,0)); for(PositionRecurBlockPair packedPair :this.packedPostitionBlockPair){ genCandidateDBLPointList(packedPair); addUsedPointList(packedPair); } candidateDBLPointSet.removeAll(usedDBLPointSet); } COM: <s> update the candidate ep point </s>
funcom_train/14238792
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testConstructor() { URI uri = new URI("class://com.mypackage.myfixture"); assertEquals("Scheme not equal", "class", uri.getScheme()); assertEquals("SchemeSpecificPart not equal", "com.mypackage.myfixture", uri.getSchemeSpecificPart()); } COM: <s> test equality for a message that contains all primitive data types </s>
funcom_train/18006393
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setFields(FdfReader fdf) throws IOException, DocumentException { HashMap fd = fdf.getFields(); for (Iterator i = fields.keySet().iterator(); i.hasNext();) { String f = (String)i.next(); String v = fdf.getFieldValue(f); if (v != null) setField(f, v); } } COM: <s> sets the fields by fdf merging </s>
funcom_train/12193931
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean testString(ByteBuffer data) { boolean matched = false; String b = new String(data.array()); String t = new String(match.getTest().array()); if (match.isCaseInsensitive()) { matched = t.equalsIgnoreCase(b); } else { matched = t.equals(b); } return matched; } COM: <s> test the data against the byte array </s>
funcom_train/20363818
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void initBlankBias() { childGroups = new MutableList<ChildSkillGroup>(); childSkills = new MutableList<WeightedChildSkill>(); List<String> children = SkillsManager.getChildrenFor( parentSkill ); Collections.sort( children ); for ( String childName : children ) { WeightedChildSkill wcs = new WeightedChildSkill(childName); childSkills.add( wcs ); } weighting = new Weighting(); } COM: <s> initialise this bias as a new one </s>
funcom_train/19352443
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void checkForRDFSClasses() throws SAXException { /* This may not work with imports. SKB */ for (Iterator iter = rdfsClasses.iterator(); iter.hasNext(); ) { URI uri = (URI) iter.next(); //URI uri = (URI) iter.next(); if ( !definitelyClasses.contains( uri ) ) { /* Check something here */ URI culprit = uri; if ( isAnonymousNode( culprit.toString() ) ) { culprit = null; } owlFullConstruct( RDF_CLASS, "rdfs:Class used for: " + uri, culprit ); } } } COM: <s> check that anything declared as an rdfs class has been dealt </s>
funcom_train/45251215
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void populateDecorators() { DecoratorDefinition[] definitions = getAllDefinitions(); checkboxViewer.setInput(definitions); for (int i = 0; i < definitions.length; i++) { checkboxViewer.setChecked(definitions[i], definitions[i] .isEnabled()); } } COM: <s> populates the list of decorators </s>
funcom_train/21607008
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected int getValidationModeForResource(Resource resource) { int validationModeToUse = getValidationMode(); if (validationModeToUse != VALIDATION_AUTO) { return validationModeToUse; } int detectedMode = detectValidationMode(resource); if (detectedMode != VALIDATION_AUTO) { return detectedMode; } // Hmm, we didn't get a clear indication... Let's assume XSD, // since apparently no DTD declaration has been found up until // detection stopped (before finding the document's root tag). return VALIDATION_XSD; } COM: <s> gets the validation mode for the specified </s>
funcom_train/35080795
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public UserRevisionEntry logRevision (String info, User author) { UserRevisionEntry re = new UserRevisionEntry(); re.setDate (new Date()); re.setInfo (info); re.setUser (this); re.setAuthor (author); getRevisions().add (re); return re; } COM: <s> factory method used to create a revision entry associated with this user </s>
funcom_train/42472613
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public JComboBox getCmbPerson() { populateComboBox(); cmbPerson = new JComboBox(names); cmbPerson.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { getPersonName(); sendQuery(); usertab.fieldUneditable(); } }); return cmbPerson; } COM: <s> this is the method that will be called from outside </s>
funcom_train/5782332
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void save(String file)throws IOException{ PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(file))); for (Enumeration e = v.elements() ; e.hasMoreElements() ;) out.write(((Hunk3)e.nextElement()).convert()); out.flush(); out.close(); } COM: <s> save hunk3 with normal format at the specified file </s>
funcom_train/18748712
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean isNodeMode(MouseEvent evt) { /* added by Carel*/ if (this.getEditor()==null){ return false; } /*end */ return (getEditor().isNodeMode() && getFirstCellForLocation(evt.getX(), evt.getY()) == null); } COM: <s> callback method to determine whether an event concerns node creation </s>
funcom_train/11704212
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void bootstrapCPE() throws Exception { registerTypeSystemsWithCasManager(); casPool = new CPECasPool(getPoolSize(), cpeFactory.getResourceManager().getCasManager(), mPerformanceTuningSettings); callTypeSystemInit(); setupProcessingPipeline(); setupConsumerPipeline(); } COM: <s> initialize the cpe </s>
funcom_train/30172582
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Point2D findFeatureLocation(int index) { int feature_index = findFeatureIndex(index); if (feature_index != -1) { int properties_index = getPropertyIndex(feature_index); if (properties_index >= 0 && property_extent_index_lookup.at(properties_index) > 0) { return getFeatureProperties(properties_index).location; } } return null; } COM: <s> alisaf method to return the location element of the </s>
funcom_train/2641790
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void reverse(int from, int to) { if (from == to) { return; // nothing to do } if (from > to) { throw new IllegalArgumentException("from cannot be greater than to"); } for (int i = from, j = to - 1; i < j; i++, j--) { swap(i, j); } } COM: <s> reverse the order of the elements in the range of the list </s>
funcom_train/21016227
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void reset(CaretLocation caretLocation) { _controllers = new Stack<ElementPath>(); _controllerLocations = new Stack<CaretLocation>(); ElementPath editorPath = EditManager .getControllingElement(caretLocation); IElementEditor editor = EditorRegistry.getEditor(editorPath .getLastElement().getEditType()); _caretLocation = editor.getLocationTo(editorPath, caretLocation); _controllers.push(editorPath); } COM: <s> resets the linear walker to the given caret location </s>
funcom_train/24937400
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void replaceSource(Bus original, Bus replacement) { Node key = null; for (Entry<Node, Bus> entry : sourceCache.entrySet()) { if (entry.getValue() == original) { key = entry.getKey(); break; } } assert key != null : "Could not replace source bus"; putSource(key, replacement); } COM: <s> redefines the implementation for a given node from the original bus to </s>
funcom_train/10347539
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String getUrlPath(HttpServletRequest request) throws Exception { String contextPath = request.getContextPath(); String url = request.getRequestURL().toString(); url = url.substring(url.indexOf(contextPath)); url = url.substring(url.indexOf("/", 1), url.lastIndexOf("/")); return url; } COM: <s> gets the subdirectory out of the request url </s>
funcom_train/4427484
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean schedule() { try { // "Synchronous-like" scheduling policy : schedule only 1 action per // actor at each "schedule" (network logical cycle) call Action action = getNextAction(); if (action == null) { return false; } else { execute(action); return true; } } catch (OrccRuntimeException ex) { throw new OrccRuntimeException("Runtime exception thrown by actor " + actor.getName(), ex); } } COM: <s> schedule next schedulable action if any </s>
funcom_train/42273042
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private PrintStream getInfoStream() throws FileNotFoundException { log.debug("getInfoStream()"); closeInfoStream(); infoStream = new PrintStream(new BufferedOutputStream( new FileOutputStream(new File("index-writer-info-stream.out"), true))); return infoStream; } COM: <s> create an information stream for the index writer </s>
funcom_train/41164225
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void delete(ToHandbook entity) { EntityManagerHelper.log("deleting ToHandbook instance", Level.INFO, null); try { entity = getEntityManager().getReference(ToHandbook.class, entity.getHandbookId()); getEntityManager().remove(entity); EntityManagerHelper.log("delete successful", Level.INFO, null); } catch (RuntimeException re) { EntityManagerHelper.log("delete failed", Level.SEVERE, re); throw re; } } COM: <s> delete a persistent to handbook entity </s>
funcom_train/30037713
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int addCoreSubMorphTarget(CalCoreSubMorphTarget subMorphTarget) { if (coreSubMorphTargets == null) coreSubMorphTargets = new Vector<CalCoreSubMorphTarget>(); int subMorphTargetId = coreSubMorphTargets.size(); coreSubMorphTargets.add(subMorphTarget); return subMorphTargetId; } COM: <s> add a core sub morph target to the submesh </s>
funcom_train/48334605
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean initializeClass (ThreadInfo ti, Instruction continuation) { int pushedFrames = 0; // push clinits of class hierarchy (upwards, since call stack is LIFO) for (ClassInfo ci = this; ci != null; ci = ci.getSuperClass()) { if (ci.pushClinit(ti, continuation)) { continuation = null; pushedFrames++; } } return (pushedFrames > 0); } COM: <s> perform static initialization of class </s>
funcom_train/41827818
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String loadConnection(URLConnectionAdapter con) throws IOException { String ret = null; if (con == null) { checkContentLengthLimit(request); ret = request.read(); } else { ret = Request.read(con); } if (isVerbose()) JDLogger.getLogger().finest("\r\n" + ret+"\r\n"); return ret; } COM: <s> reads the content behind a con and returns them </s>
funcom_train/32069135
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean removeBankAccount(BankAccount bankAccount) { boolean removedOK = getBankAccounts().remove(bankAccount); if (removedOK) { bankAccount.setBankAgency(null); } else { if (logger.isWarnEnabled()) { logger.warn("remove returned false"); } } return removedOK; } COM: <s> remove the passed bank account from the bank agency collection and unset </s>
funcom_train/43245412
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetTmpStreetAddr2() { System.out.println("setTmpStreetAddr2"); String tmpStreetAddr2 = ""; PatientDemographicsDG5Object instance = new PatientDemographicsDG5Object(); instance.setTmpStreetAddr2(tmpStreetAddr2); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } COM: <s> test of set tmp street addr2 method of class org </s>
funcom_train/50940325
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void actionPerformed(ActionEvent e) { if ( e.getActionCommand().equals(i8n.getString("export")) ) { exportActionPerformed(); } else if ( e.getActionCommand().equals(i8n.getString("copy")) ) { copyToClipboardActionPerformed(); } } COM: <s> invoked when an action occurs </s>
funcom_train/19877907
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void showKeyDifferent(Configuration conf){ String[] keyArray1 = this.keys(); String[] keyArray2 = conf.keys(); System.out.println(this.fileName); for(String key: keyArray1){ if(ArrayUtils.indexOf(keyArray2, key) == -1){ System.out.println(key); } } System.out.println("\n" + conf.getFileName()); for(String key: keyArray2){ if(ArrayUtils.indexOf(keyArray1, key) == -1){ System.out.println(key); } } } COM: <s> p show key different between this and appointing configuration p </s>
funcom_train/49817832
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setDone() { // Update the UI SwingUtilities.invokeLater(new Runnable() { public void run() { stopTimer(); if (config.getAutoDispose()) { dispose(); } else { setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); cancelButton.setEnabled(false); closeButton.setEnabled(true); // If we are done because user hit the cancel button, // say so explicitly. if (haltRequested) { setCancelStatusMsg("Canceled by User"); } } } }); } COM: <s> indicates that the worker task is done processing </s>
funcom_train/8569811
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void drawOpenPoly (GL gl) { gl.glBegin (GL.GL_LINE_STRIP); gl.glVertex2i (100, 200); gl.glVertex2i (150, 250); gl.glVertex2i (100, 250); gl.glVertex2i (150, 200); gl.glEnd(); } COM: <s> an example of drawing an open polyline </s>
funcom_train/34340877
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public TextField getLimpieza() { if (limpieza == null) {//GEN-END:|43-getter|0|43-preInit // write pre-init user code here limpieza = new TextField("limpieza", null, 32, TextField.ANY);//GEN-LINE:|43-getter|1|43-postInit // write post-init user code here }//GEN-BEGIN:|43-getter|2| return limpieza; } COM: <s> returns an initiliazed instance of limpieza component </s>
funcom_train/24376028
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void deleteComposedObjects(Object object) throws RegistryException { super.deleteComposedObjects(object); if (object instanceof IdentifiableType) { IdentifiableType identifiable = (IdentifiableType) object; String id = identifiable.getId(); SlotDAO slotDAO = new SlotDAO(context); slotDAO.setParent(identifiable); //Delete Slots slotDAO.deleteByParent(); } else { int i = 0; } } COM: <s> delete composed objects that have the specified identifiable </s>
funcom_train/46741082
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSourceRef(DisplayModel sourceRef) { if (Converter.isDifferent(this.sourceRef, sourceRef)) { DisplayModel oldsourceRef= new DisplayModel(this); oldsourceRef.copyAllFrom(this.sourceRef); this.sourceRef.copyAllFrom(sourceRef); setModified("sourceRef"); firePropertyChange(String.valueOf(APPLICATIONCONTROLCOLUMNS_SOURCEREFID), oldsourceRef, sourceRef); } } COM: <s> reference qualifying the source of this control </s>
funcom_train/17274781
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void run(Graph<V,E> g) { // TODO Auto-generated method stub running = true; instanceID = instanceCounter++; vertexArray = g.getVertexArray(); this.g = g; controller = new Controller<V,E>(g, pseudoCode, this); runNearestNeighbor(0); //Let's assume we don't assign a starting vertex running = false; } COM: <s> run method executes the algorithm on the graph </s>
funcom_train/2266360
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getJButton_refreshTName() { if (jButton_refresh == null) { jButton_refresh = new JButton(); jButton_refresh.setText("refresh"); jButton_refresh.setBounds(new java.awt.Rectangle(21,148,149,26)); jButton_refresh .addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { refreshDataModel(); } }); } return jButton_refresh; } COM: <s> this method initializes j button refresh </s>
funcom_train/47827054
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public PI pi(){ try{ Clause c = this.is(PI.rule_n)? this.arg(0).asClause(): this; String name = c.name; if (!_m_parser.isUnquotedAtom(name)) name = "'" + name + "'"; return new PI(name, c.arity()); }catch(Exception e){ throw new IllegalStateException("This should never happen"); } } COM: <s> retrieve the predicate indicator code pi code for this clause </s>
funcom_train/51571769
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void iimport(String fileName) { String importName = replaceTilde(stripQuotes(replaceTokens(fileName))); if (checkFileName(importName)) { File toImport = new File(importName); importing = true; parse(toImport); importing = false; log.log(Level.FINER, "iimport: " + fileName); } } COM: <s> processes an imported uncle script </s>
funcom_train/15928526
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setUp(String project) throws Exception { PerspectiveUtils.switchToX10Perspective(bot); ProjectUtils.createX10ProjectWithJavaBackEndFromTopMenu(bot, project); SWTBotView pkgView = bot.viewByTitle("Package Explorer"); SWTBotTree pkgTree = pkgView.bot().tree(); SWTBotTreeItem projItem = pkgTree.getTreeItem(project); projItem.expand(); SWTBotTreeItem srcItem = projItem.getNode("src"); srcItem.expand(); waitForBuildToFinish(); } COM: <s> this method creates the test project </s>
funcom_train/14318184
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void sendHttpResponse(int status, Map<String, String> headers, String contentType, String content, boolean keepAlive) throws IOException { sendHttpResponse(status, headers, contentType, content.getBytes("UTF-8"), keepAlive); } COM: <s> send http response with given status headers content type and content </s>
funcom_train/37764069
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String findNameFromDomainInfo(String className, Object obj) { RuleMetaData rule = findRule(className, null, obj, "domain-info"); String name = rule != null ? rule.getParameter("name") : null; return name != null ? name : StringHelper.getShortClassName(className); } COM: <s> returns the name parameter from the first applicable domain info rule </s>
funcom_train/13952787
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public DateRange visibleDateRange() { NSArray<Week> weeks = weekObjects(); NSTimestamp startDate = weeks.objectAtIndex(0).getStartTime(); NSTimestamp endDate = weeks.lastObject().getEndTime(); return new DateRange(startDate, endDate); } COM: <s> returns the date range of a visible calendar which </s>
funcom_train/5857497
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void deleteNodeProperty(String nodeName,String key) throws HeroException{ Node nodeA = (Node)nodes.get(nodeName); if (nodeA == null) { throw new HeroException("Node not found Exception: "+nodeName); } try { ProjectDAO.deleteNodePropertyRow(this.getName(),nodeName,key); nodeA.deleteProperty(key); } catch (java.sql.SQLException se) { throw new HeroException("Cannot remove node property :"+se.getMessage()); } } COM: <s> describe code delete node property code method here </s>
funcom_train/31678516
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int hashCode() { final int m = this.getNumberOfRows(); final int n = this.getNumberOfColumns(); int code = 0; for (int i = m; --i >= 0;) { checkCanceled(); for (int j = n; --j >= 0;) { checkCanceled(); code += get(i, j).hashCode(); } } return code; } COM: <s> returns a hash code value for this matrix </s>
funcom_train/46759704
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public RefGroupModel getRefGroup(final long refGroupId, final IChainStore chain, final ServiceCall call) throws Exception { IBeanMethod method = new IBeanMethod() { public Object execute() throws Exception { return ReferenceData.getRefGroup(refGroupId, chain, call); }}; return (RefGroupModel) call(method, call); } COM: <s> same transaction return the single ref group model for the primary key </s>
funcom_train/42938343
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testInstrumentInvalidClassLoader() throws NotFoundException, CannotCompileException { CtClass ctClass = classPool.get(InvalidClassLoader.class.getName()); try { ClassLoaderInstrumenter.instrument(ctClass); fail("Exception not thrown when defineClass0 method not found"); } catch (IllegalStateException e) { assertTrue(e.getMessage().indexOf("not found") >=0 ); } } COM: <s> verifies that an exception is thrown by </s>
funcom_train/31356692
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object object) { // Variables Module module; // Check for equality if (object instanceof Module && object.hashCode() == hashCode()) { module = (Module) object; if (module.getModuleID().equals(getModuleID()) == true && module.getVersion().equals(getVersion()) == true) { return true; } // if } // if // Not a match return false; } // equals() COM: <s> check equality of this module with the one specified </s>
funcom_train/33233529
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public StringItem getPronunciationSI() { if (pronunciationSI == null) {//GEN-END:|77-getter|0|77-preInit // write pre-init user code here pronunciationSI = new StringItem("Pronunciation:", null);//GEN-LINE:|77-getter|1|77-postInit // write post-init user code here }//GEN-BEGIN:|77-getter|2| return pronunciationSI; } COM: <s> returns an initiliazed instance of pronunciation si component </s>
funcom_train/36125658
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setServletRequest(HttpServletRequest servletRequest) { this.servletRequest = servletRequest; /* create and set the request paramaters */ RequestParametersBuilder builder = new RequestParametersBuilder(); String contentType = servletRequest.getContentType(); if (RequestParametersBuilder.isMultipart(contentType)) { builder.buildMultiPart(servletRequest); } else { builder.buildCommon(servletRequest); } setRequestParameters(builder.getRequestParameters()); setFileRequestParameters(builder.getFileRequestParameters()); } COM: <s> the servlet request setter sets the servlet request request parameters and </s>
funcom_train/11753904
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void processDbOwnershipEvent(DbOwnershipEvent e) throws SQLException { switch (e.getType()) { case DbOwnershipEvent.OWNERSHIP_RELEASED: synchronized (requestLock) { if (poolId.equals(e.getReferenceId())) { System.out.println("Got ownership"); } else { System.out.println("Stolen"); } requestLock.notifyAll(); } break; case DbOwnershipEvent.REQUEST_OWNERSHIP: yield(e.getSenderId()); } } COM: <s> shuts down all database connections and the database itself yelding the </s>
funcom_train/45247043
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public JNumberFloatField getJNumberFloatFieldProporcaoJTT() { if (jNumberFloatFieldProporcaoJTT == null) { jNumberFloatFieldProporcaoJTT = new JNumberFloatField(); jNumberFloatFieldProporcaoJTT.setLocation(new Point(345, 106)); jNumberFloatFieldProporcaoJTT.setSize(new Dimension(65, 20)); } return jNumberFloatFieldProporcaoJTT; } COM: <s> this method initializes j number float field proporcao jtt </s>
funcom_train/50956097
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void exitButtonActionPerformed(java.awt.event.ActionEvent evt) { int n = JOptionPane.showConfirmDialog( sp, "Are you sure you want to exit Lesson Builder?","Choose One.", JOptionPane.OK_CANCEL_OPTION); //Ok button if (n == 0){System.exit(0);} } COM: <s> exits completely out of the program </s>
funcom_train/1242640
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void doFillIntoGrid(Composite parent, int numColumns) { editorcomp = parent; GridData griddata = new GridData(GridData.FILL_HORIZONTAL); griddata.horizontalSpan = numColumns; editorcomp.setLayoutData(griddata); Label label = getLabelControl(editorcomp); griddata = new GridData(); label.setLayoutData(griddata); spinner = new Spinner(editorcomp, SWT.BORDER); griddata = new GridData(); spinner.setLayoutData(griddata); spinner.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_LIST_BACKGROUND)); } COM: <s> fill the components into the grid </s>
funcom_train/10618519
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isGlyphExists(char uIndex) { for (int i = 0; i < fontUnicodeRanges.length - 1; i += 2) { if (uIndex <= fontUnicodeRanges[i + 1]) { if (uIndex >= fontUnicodeRanges[i]) { return true; } return false; } } return false; } COM: <s> checks whether given glyph belongs to any font supported unicode range </s>
funcom_train/4122723
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void propertyChange(PropertyChangeEvent event) { if (event.getPropertyName().equals("value")) { final int value = ((Integer) event.getNewValue()).intValue(); if (value != comboBox.getSelectedIndex()) { comboBox.setSelectedIndex(value); originalValue = value; } } } COM: <s> updates this ui with the new data from the option </s>
funcom_train/28978689
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String obtainValue(String key) { String value = ""; if (page.controls.get(key) instanceof Text) { value = ((Text) page.controls.get(key)).getText(); } else if (page.controls.get(key) instanceof Combo) { Combo combo = (Combo) page.controls.get(key); value = combo.getItem(combo.getSelectionIndex()); } return value; } COM: <s> finds the value in the dialog fields for the given key </s>
funcom_train/9758548
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setAnnotationPainterPreferenceKeys(Object type, String colorKey, String editorKey, String overviewRulerKey, int layer) { AnnotationPreference info= new AnnotationPreference(type, colorKey, editorKey, overviewRulerKey, layer); fAnnotationTypeKeyMap.put(type, info); } COM: <s> sets the preference keys for the annotation painter </s>
funcom_train/9238090
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toUpperCase(final String input) { final char[] result = input.toCharArray(); for (int i = 0; i < input.length(); ++i) { if (result[i] >= 0 && result[i] < uppercase.length) { result[i] = uppercase[result[i]]; } else { result[i] = result[i]; } } return new String(result); } COM: <s> get the uppercase version of a string for this server </s>
funcom_train/5608446
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean clearDiskCache() { try { File dir = new File(CACHE_DIR); for (File f : dir.listFiles()) { if (f.isFile()) { f.delete(); } } return true; } catch (Exception x) { severe("Failed to clear disk cache: " + x); return false; } } COM: <s> removes all serialized asts from the on disk cache </s>
funcom_train/26324690
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double getAsDouble() { switch (_storedAs) { case DOUBLE: return _double; case LONG: return _long; case OBJECT: if (_object.toString().trim().equals("")) { return 0.0; } else { return new Double(_object.toString().trim()).doubleValue(); } default: throw new NumberFormatException(); } } COM: <s> returns a double representation of this value </s>
funcom_train/19542150
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void run() { try { BufferedImage image = ImageUtil.createCompatibleImage(ImageUtil.getImage(file)); overlayList.add(image); BufferedImage overlay = TokenCompositor.translateOverlay(image, 1); BufferedImage thumb = ImageUtil.createCompatibleImage(overlay, THUMB_SIZE, THUMB_SIZE, null); thumbList.add(thumb); } catch (IOException ioe) { ioe.printStackTrace(); } } COM: <s> load the image and add it to the list </s>
funcom_train/7298224
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean grantXToBin(String unixBinary) throws JdicInitException { try { WebBrowserUtil.trace("will grant a+x to " + runningPath + File.separator + unixBinary); Runtime.getRuntime().exec( "chmod a+x " + runningPath + File.separator + unixBinary); WebBrowserUtil.trace("grant ok"); return true; } catch (IOException ex) { WebBrowserUtil.error(ex.getMessage()); ex.printStackTrace(); throw new JdicInitException(ex.getMessage()); } } COM: <s> grant browser binarys x permission after extracted from </s>
funcom_train/171392
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString(){ String ret=""; if (numeric == VERIFIED_NOTYET) ret = "VERIFIED_NOTYET"; if (numeric == VERIFIED_OK) ret = "VERIFIED_OK"; if (numeric == VERIFIED_REJECTED) ret = "VERIFIED_REJECTED"; ret+="\n"+detailMessage+"\n"; return ret; } COM: <s> returns a string representation of the verification result </s>
funcom_train/7754030
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSpecName (String aSpecName) { String oldValue = specName; String str = aSpecName.trim (); if (str.length () >= 1) specName = str; // fire the property Change this.firePropertyChange (Spectrum.SPECTRUM_NAME_PROPERTY, oldValue, specName); } COM: <s> set the spec name </s>
funcom_train/22284080
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void init() { fBrowser = (FileBrowserWidget) widget.getWidget("fileBrowser"); textControl = (RichTextBoxWidget) widget.getPresentation().getWidget("textEditorContainer.textControl"); saveDialog = widget.getWidget("toolbar.saveDialog"); fileController = (FileControllerSA) ((PlayerFrame) widget.getPlayerFrame()).util.getController(); } COM: <s> establishes references to widgets in the presentation </s>
funcom_train/46817771
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isNominatedOwner() { if (object == null) { return false; } else if (((Task) object).getPeopleLinks().getNominatedOwner() == null) { return false; } return ((Task) object).getPeopleLinks().getNominatedOwner().isRole(); } COM: <s> returns if the nominated owner role is set </s>
funcom_train/44167415
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public UnitType getFastestNavalUnitType() { if (cachedFastestNavalUnitType == null) { int bestValue = -1; for (UnitType t : unitTypeList) { if (t.isNaval() && t.getMovement() > bestValue) { bestValue = t.getMovement(); cachedFastestNavalUnitType = t; } } } return cachedFastestNavalUnitType; } COM: <s> gets the fastest naval unit type in this specification </s>
funcom_train/26350758
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Packet createReportPacket(Player p) { // When the final report is created, MM sends a null player to create // the // report. This will handle that issue. if ((p == null) || !doBlind()) { return new Packet(Packet.COMMAND_SENDING_REPORTS, vPhaseReport); } return new Packet(Packet.COMMAND_SENDING_REPORTS, p.getTurnReport()); } COM: <s> creates a packet containing a vector of reports </s>
funcom_train/18104783
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void open(int handle) { this.handle = handle; try { connectionOpen = true; checkForPermission(getAddress()); } catch (Exception e) { connectionOpen = false; if (e instanceof IOException) { e = new SecurityException("Unknown TCP client"); } try { close0(); } catch (IOException ioe) { // ignore } throw (RuntimeException)e; } registerCleanup(); } COM: <s> create a java connection object from an open tcp socket </s>
funcom_train/45622571
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addItemNamePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_OutputType_itemName_feature"), getString("_UI_PropertyDescriptor_description", "_UI_OutputType_itemName_feature", "_UI_OutputType_type"), MSBPackage.eINSTANCE.getOutputType_ItemName(), true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the item name feature </s>
funcom_train/6459312
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public HashMap getUniqueFields( int field ) { Receipt r = null; HashMap seen = new HashMap(); seen.put( "", new Integer( 1 ) ); for ( Iterator i = filtered.iterator(); i.hasNext(); ) { r = ( Receipt )i.next(); incrementHashMap(seen, r, field); } return seen; } // r.getField( Receipt.ACCOUNT ) COM: <s> gets the unique fields attribute of the receipt table model object </s>
funcom_train/25870801
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setRoute(final String route) { if(route == null) throw new IllegalArgumentException("The origin " + "must not be null."); if(route.length() == 0) throw new IllegalArgumentException("The " + "origin length must not be 0."); this.route = route; } COM: <s> set the route of the bus service </s>
funcom_train/21188483
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String parseComment(List commentList, int commentIndex) { StringBuffer comment = new StringBuffer(); comment.append(commentList.get(commentIndex)).append(" "); for (int i = commentIndex + 1; i < commentList.size(); i++) { comment.append(commentList.get(i)).append(" "); } return comment.toString().trim(); } COM: <s> parse comment from vss history could be multi line </s>
funcom_train/7660257
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testAddAll4() { try { SynchronousQueue q = new SynchronousQueue(); Integer[] ints = new Integer[1]; for (int i = 0; i < 1; ++i) ints[i] = new Integer(i); q.addAll(Arrays.asList(ints)); shouldThrow(); } catch (IllegalStateException success) {} } COM: <s> add all throws ise if no active taker </s>
funcom_train/40337109
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void newGroupSelection(MigrationGroup group) { this.selectedGroup = group; rulesProvider.clear(); if (null != group) { for (MigrationRule<?> rule : group.getMigrationRules()) { rulesProvider.add(rule); } } rules.refresh(false); deselectRule(); } COM: <s> callback when the given </s>
funcom_train/19544543
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void validateDamageStates(PropertyMap map, String waitState, boolean bleeding, boolean prone) { assertEquals(waitState, map.get("itWaitState")); assertEquals(Boolean.valueOf(bleeding), map.get("health.bleeding")); assertEquals(Boolean.valueOf(prone), map.get("health.prone")); } COM: <s> check the states set by taking damage </s>
funcom_train/18718466
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isSet(final String key) { if (key == null) { throw new IllegalArgumentException(OptionSet.CLASS + ": key may not be null"); } if (!keys.containsKey(key)) { throw new IllegalArgumentException(OptionSet.CLASS + ": unknown key: " + key); } return (keys.get(key)).getResultCount() > 0 ? true : false; } COM: <s> check whether a specific option is set i </s>
funcom_train/3749033
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getDatabaseURL() { if (logger.isDebugEnabled()) { logger.debug("getDatabaseURL() - start"); } if (logger.isDebugEnabled()) { logger.debug("getDatabaseURL() - end - return value = " + databaseURL); } return databaseURL; } COM: <s> the strong jdbc strong url of the database we will use </s>
funcom_train/21405355
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long insertVideo(long idRoute, double lat, double lon, double h) { ContentValues initialValues = new ContentValues(); initialValues.put(ROUTE_ID, idRoute); initialValues.put(VIDEO_LAT, lat); initialValues.put(VIDEO_LON, lon); initialValues.put(VIDEO_H, h); return db.insert(TABLE_VIDEOS, null, initialValues); } COM: <s> inserts a new video in the table </s>
funcom_train/18377969
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void fireRowDepartEvent() { if (rows.size() < 1) { return; } for (Iterator rowChangeListenersIter = parent.rowFocusListeners.iterator(); rowChangeListenersIter.hasNext();) { IRowFocusListener listener = (IRowFocusListener) rowChangeListenersIter.next(); listener.depart(parent, topRow+currentRow, currentRow().getRowControl()); } } COM: <s> indicate to listeners that the focus is about to leave the current row </s>
funcom_train/22285218
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setObjectArray(String nm, int len, Object[] val) { Object objs[] = val; if (val != null) { System.arraycopy(val, 0, objs = new Object[len], 0, len); } setProperty(WidgetPropertyItem.V_OBJECT_ARRAY, nm, objs, null); } COM: <s> set an object array in this property list </s>
funcom_train/44718393
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int moveProcess(Workflow wp) { Iterator itr; Task task; itr = wp.getEnabledTasks(); int n=0; while (itr.hasNext()) { task = (Task)itr.next(); try { task.finish(); } catch (TaskException t) { fail("Could not finish Task " + t); } n++; } return n; } COM: <s> moves a workflow process one round of tasks further </s>
funcom_train/20885291
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSimpleElementWithListType() { SimpleElementWithListTypeTestDTO dto = new SimpleElementWithListTypeTestDTO(); dto.stringList = new ArrayList<String>(); dto.stringList.add("valid"); check(dto, VALID); dto.stringList.add("not valid"); check(dto, INVALID); check(dto, VALIDATION_OFF); } COM: <s> tests validation for a simple element value with list type </s>
funcom_train/50330573
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getBlockLen() { switch (sprogType) { case NO_PROMPT_FOUND: case NOT_A_SPROG: case NOT_RECOGNISED: case TIMEOUT: default: return -1; case SPROGV4: case SPROGIIUSB: case SPROGII: return 8; case SPROGIIv3: case SPROG3: case SPROGIV: case SPROG5: case NANO: case SNIFFER: return 16; } } COM: <s> get the flash memory block length for bootloader </s>
funcom_train/8818410
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setTitles(String[] titles) { Iterator<Widget> i = panel.iterator(); int idx = 0; if (null != input) { i.next(); // skip the hidden input tag } while (i.hasNext()) { RatingItem sw = (RatingItem) i.next(); sw.setTitle(titles[idx++]); } } COM: <s> sets the titles on all rating items </s>
funcom_train/21999290
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addStockHoldings(String shareAccountName, HashMap stockHoldings) { Object[] symbols; symbols = stockHoldings.keySet().toArray(); for (int i = 0; i < symbols.length; i++) { StockHolding stockHolding = (StockHolding) stockHoldings.get(symbols[i]); String key = new String(shareAccountName + "/" + stockHolding.getRelatedCounter()); if (!this.stockHoldings.containsKey(key)) this.stockHoldings.put(key, stockHolding); } } COM: <s> add new stock holdings traded in this portfolio </s>
funcom_train/34907974
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addDusledekPropertyDescriptor(Object object) { itemPropertyDescriptors.add(createItemPropertyDescriptor( ((ComposeableAdapterFactory) adapterFactory) .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Pravidlo_dusledek_feature"), getString("_UI_Pravidlo_dusledek_description"), GebzPackage.Literals.PRAVIDLO__DUSLEDEK, true, false, true, null, getString("_UI_SpojePropertyCategory"), null)); } COM: <s> this adds a property descriptor for the dusledek feature </s>
funcom_train/42555249
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void execute (Scheduling scheduling) throws E2LBasicException { IPersistenceObject dao = null; SchedulingBO schel = null; try { schel = (SchedulingBO) ModelService.getBusinessObjectByBOClassName(SchedulingBO.class.getName()); dao = this.getPersistenceObject(schel.getClass().getName()); schel.executeScheduling(dao, scheduling); dao.endTransaction(); } catch (BasicException e) { log.error("execute: "); } } COM: <s> process the scheduling </s>
funcom_train/45634147
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void transmitSegmentRequest() { // Get the segment number. long segmentNumber; synchronized (synch) { if (segmentsRemaining.isEmpty()) { return; // Exit early if the segments remaining is empty. } segmentNumber = segmentsRemaining.removeFirst(); } // Transmit the request. transmitSegmentRequest(segmentNumber); } COM: <s> transmit the next segment request </s>
funcom_train/32060681
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void clickExplore() { Starsystem sys = tf.getSystem(); if (sys == null) { return; } // Find unexplored plantoid Planet planetoid = sys.getFirstUnexploredPlanetoid(sf.game); tf.clearCourse(); tf.sendOnMission( Mission.createExplorationMission(planetoid.getReference()), sf.game); updateTaskforceDisplay(); } COM: <s> sends the taskforce off on an exploration mission to explore the first </s>
funcom_train/17002541
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public short getShort(String name) throws JMSException { checkPriorToEntryRetrieval(name); Object object = mappedEntries.get(name); if (object instanceof Short || object instanceof Byte) { return ( (Number)object).shortValue(); } if (object instanceof String) { return Short.valueOf((String)object).shortValue(); } handleInvalidTypeConversion(object, "short"); return 0; } COM: <s> returns the code short code value with the specified name </s>
funcom_train/42698208
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void insertEdgeToModel() { if(this.isInserted() == false) { ConnectionSet cs = new ConnectionSet(fEdge, fSource.getPort(), fTarget.getPort()); Object[] insert = new Object[] { fEdge }; fModel.getModel().insert(insert, null, cs, null, null); } } COM: <s> inserts this edge into the model </s>
funcom_train/42718782
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void initialize(ABIFile scfFile) { numOfAnalyzedTraces = 4; //ACGT analyzedTraces = new Trace[numOfAnalyzedTraces]; calledBases = scfFile.getCalledBases().toUpperCase(); calledPeakLocations = scfFile.getCalledPeakLocations(); // Get analyzed data String name; for (int i = 0; i < numOfAnalyzedTraces; i++) { name = scfFile.getBaseFromDyeIndex(i+1); analyzedTraces[i] = new Trace(name, Trace.findTraceColor(name), scfFile.getAnalyzedData(i+1)); } } COM: <s> creates an abichromatogram object from the specified abifile object </s>
funcom_train/22640318
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getHeight() { Activity activity = TopActivity.get(); RectF s = CommonDeviceAPIFinder.instance().getProperties().getScreenBounds(); return (int) (activity.getRequestedOrientation() == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE ? s.right : s.bottom); } COM: <s> return the current height of the screen todo implement for real </s>
funcom_train/11320331
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testInsertOverride() { FeedbackBorder border = new FeedbackBorder(); border.add(new TextField("field1")); try { border.add(new TextField("field2")); fail("FeedbackBorder only allows one control to be added."); } catch (Exception expected) { } } COM: <s> check that overriding abstract container field insert control int will </s>