__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/50849004
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String getParameter(HttpServletRequest req, String name, boolean nullAllowed) { String result = req.getParameter(name); if ((null != result) && (result.trim().equals(""))) result = null; if ((! nullAllowed) && (null == result)) throw new IllegalArgumentException("Null or empty param [" + name + "] not allowed"); return result; } COM: <s> return a single paremeter </s>
funcom_train/10844401
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void write(String name, byte[] data) throws IOException { final OutputStream os = this.classLoaderWriter.getOutputStream('/' + name.replace('.', '/') + ".class"); os.write(data); os.close(); } COM: <s> write the classfile </s>
funcom_train/10300935
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object put(Object key, Object value) { if (containsKey(key)) { Object other = get(key); if (other instanceof List) { ((List)other).add(value); } else { List l = new ArrayList(); l.add(other); l.add(value); super.put(key, l); } } else { super.put(key,value); } return null; } COM: <s> inserts value into the map for key as a single element or if </s>
funcom_train/25332152
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetAndSetCompoundSet() { DAEnsemblDNASequenceReader instance = new DAEnsemblDNASequenceReader(); assertEquals(instance.getCompoundSet(), compoundSet); instance.setCompoundSet(null); assertNull(instance.getCompoundSet()); instance.setCompoundSet(compoundSet); assertEquals(instance.getCompoundSet(),compoundSet); } COM: <s> test of set compound set method of class daensembl dnasequence reader </s>
funcom_train/34748392
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void close() throws SQLException { // calling close twice should have no effect if (!isClosed()) { try { _pool.returnObject(_key,this); } catch(SQLException e) { throw e; } catch(RuntimeException e) { throw e; } catch(Exception e) { throw new SQLNestedException("Cannot close preparedstatement (return to pool failed)", e); } } } COM: <s> return me to my pool </s>
funcom_train/7702002
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Rule createRule(boolean stop, List<Fact> antecedences, List<Fact> sequences) { int id = -1; for (int i = 0; i < this.kb.size(); i++) { if (id < i) { id = i; } } id++; Rule rule = new Rule(id, stop, antecedences, sequences); return rule; } COM: <s> create a new rule after check for new id </s>
funcom_train/32965702
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object getComputedField( MSColumn col) { ExpressionEvaluator ee = new TrimExpressionEvaluator(); ee.addVariable(getMenuStructure().getNode(), this); MenuData reference = getReference(); if (reference!=null) { ee.addVariable(reference.getMenuStructure().getNode(), reference); } Object val = null; for (String from : col.getFroms()) { val = ee.evaluate(from); if (val!=null) break; } return val; } COM: <s> get a computed field based on froms </s>
funcom_train/30279805
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void onLaunchExceptionFlow(Object currentException) { if(LOG.isTraceEnabled()) { LOG.trace("Entering onLaunchExceptionFlow ..."); } if(!isStubProxy()) { if (!(currentException instanceof UserDisconnectException || type.intValue() == ProxyTaskType.PTT_ISP && !getConnectMedia())) { transferToMediaQueue(currentException); } } } COM: <s> notify proxy task about interrupting inner context and launching exception flow </s>
funcom_train/43503310
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void logout(HttpServletRequest request, HttpServletResponse response, Authentication authentication) { System.out.println("AbstractRememberMeServices...logout"); if (logger.isInfoEnabled()) { logger.info( "Logout of user " + (authentication == null ? "Unknown" : authentication.getName())); } cancelCookie(request, response); } COM: <s> implementation of tt logout handler tt </s>
funcom_train/43094235
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setTargetScope(Object mAssociationEnd, short modifiers) { if ((modifiers & JavaRecognizer.ACC_STATIC) > 0) { Model.getCoreHelper().setTargetScope( mAssociationEnd, Model.getScopeKind().getClassifier()); } else { Model.getCoreHelper().setTargetScope( mAssociationEnd, Model.getScopeKind().getInstance()); } } COM: <s> set the target scope for an association end </s>
funcom_train/1370565
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private SchemeRegistry setupSupportedSchemes() { SchemeRegistry supportedSchemes = new SchemeRegistry(); // Register the "http" protocol scheme, it is required // by the default operator to look up socket factories. SocketFactory sf = PlainSocketFactory.getSocketFactory(); supportedSchemes.register(new Scheme("http", sf, 80)); return supportedSchemes; } COM: <s> performs general setup </s>
funcom_train/28127222
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int getModifiers(KeyEvent e) { return (e.isControlDown() ? VDUInput.KEY_CONTROL : 0) | (e.isShiftDown() ? VDUInput.KEY_SHIFT : 0) | (e.isAltDown() ? VDUInput.KEY_ALT : 0) | (e.isActionKey() ? VDUInput.KEY_ACTION : 0); } COM: <s> gets the modifiers attribute of the swing terminal object </s>
funcom_train/2370133
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addWithEffect(final Component toAdd, final Object constraints) { if (Preference.GRAPHICEFFECTS.isTrue()) { if (constraints != null) { this.constraintTable.put(toAdd, constraints); } this.queueEffect(toAdd, constraints, Effect.APPEAR); } else { this.add(toAdd, constraints); } } COM: <s> this method is like </s>
funcom_train/1953375
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addInterpreterPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_CmdEngine_interpreter_feature"), getString("_UI_PropertyDescriptor_description", "_UI_CmdEngine_interpreter_feature", "_UI_CmdEngine_type"), EnginePackage.Literals.CMD_ENGINE__INTERPRETER, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the interpreter feature </s>
funcom_train/44827538
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public List getAllClassDescriptors() { List all = new ArrayList(); Iterator it = packageDescriptors.iterator(); while (it.hasNext()) { ClassDescriptor[] cDescs = ((PackageDescriptor) it.next()).getClassDescriptors(); for (int i = 0; i < cDescs.length; i++) { all.add(cDescs[i]); } } return all; } COM: <s> get a list of all classes defined in the domain </s>
funcom_train/13596845
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void removeWordFromListModel(Set wordsToRemove) { DefaultListModel currentDefaultListModel = (DefaultListModel) getLstWords() .getModel(); for (Iterator iter = wordsToRemove.iterator(); iter.hasNext();) { String wordToRemove = (String) iter.next(); currentDefaultListModel.removeElement(wordToRemove); } // set the new current model: getLstWords().setModel(currentDefaultListModel); } COM: <s> 26 jul 2006 </s>
funcom_train/2585186
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void test1170825() { TimeSeries s1 = new TimeSeries("Series1"); TimeSeriesCollection dataset = new TimeSeriesCollection(); dataset.addSeries(s1); try { /* TimeSeries s = */ dataset.getSeries(1); } catch (IllegalArgumentException e) { // correct outcome } catch (IndexOutOfBoundsException e) { assertTrue(false); // wrong outcome } } COM: <s> a test for bug report 1170825 </s>
funcom_train/19234697
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int generateSessionNumber() { // generate a random session number not in the list do _sessionNumber = (int) Math.rint(Math.random() * SESSION_RANGE + 1); while (_numbers.contains(new Integer(_sessionNumber))); // save the session number in the list _numbers.add(new Integer(_sessionNumber)); return _sessionNumber; } COM: <s> generate a unique session number each time called </s>
funcom_train/17413367
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean destroy() { boolean success = false; if (!isNewRecord()) { StringBuilder sql = new StringBuilder("DELETE FROM ") //$NON-NLS-1$ .append(getDatabaseTableName(getClass())).append(" WHERE id = ?"); //$NON-NLS-1$ success = getQueryAdministrator().execute(sql.toString(), QueryAdministrator.UNLIMITED_FETCH, get(ID)); if (success) { columnToDataMap.remove(ID); } } return success; } COM: <s> removes the object from the database </s>
funcom_train/42263428
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void paintForeground(SynthContext ctx, Graphics g, int x, int y, int w, int h, AffineTransform transform) { SeaGlassPainter foregroundPainter = style.getForegroundPainter(ctx); if (foregroundPainter != null) { paint(foregroundPainter, ctx, g, x, y, w, h, transform); } } COM: <s> paint the objects foreground </s>
funcom_train/44178047
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public V getOrUse(K key, Supplier<V> supplierOrNull) { V val = get(key); if(val!=null || supplierOrNull == null) { return val; } val = supplierOrNull.get(); V prevVal = putIfAbsent(key, val); if(prevVal!=null) { return prevVal; } return val; } COM: <s> object identity cache get or atomic create method </s>
funcom_train/9730577
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setMinMax() { Rectangle2D b = getLayoutBounds(); if ( m_axis == Constants.X_AXIS ) { m_min = b.getMinX(); m_range = b.getMaxX() - m_min; } else { m_min = b.getMaxY(); m_range = b.getMinY() - m_min; } } COM: <s> set the minimum and maximum pixel values </s>
funcom_train/50372364
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void destroy(Object service_instance) { println("Destroy resource."); try { ((ResourceLifetimePortType) service_instance) .destroy(new Destroy()); } catch (ResourceUnknownFault e) { trace(e); } catch (ResourceNotDestroyedFault e) { trace(e); } catch (ResourceUnavailableFault e){ trace(e); } } COM: <s> wsrf lifetime destroy operation </s>
funcom_train/51646808
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void updateParentBalanceAfterDeletion(Node node, boolean wasLeftChild) { while (node != null) { if (wasLeftChild) node.balance++; else node.balance--; Node parent= node.parent; if (parent != null) wasLeftChild= node == parent.left; switch (node.balance) { case 1: case -1: return; // done, no tree change case -2: if (rebalanceAfterDeletionRight(node.left)) return; break; // propagate up case 2: if (rebalanceAfterDeletionLeft(node.right)) return; break; // propagate up case 0: break; // propagate up default: if (ASSERT) Assert.isTrue(false); } node= parent; } } COM: <s> updates the balance information in the parent chain of node </s>
funcom_train/21964125
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ScopeStartEvent setFinishedBy(ScopeFinishEvent finishedBy) { if (finishedBy.isForced()) { return setFinishedByWithMismatchRecursively(finishedBy); } if (matches(finishedBy)) { _finishedBy = finishedBy; _mismatched = false; return this; } if (!parentMatches(finishedBy)) { return null; } return setFinishedByWithMismatchRecursively(finishedBy); } COM: <s> call to indicate that this scope has been completed by </s>
funcom_train/31169046
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void add(JInternalFrame frame, int x, int y) { if (desktopScrollpane.getNumberOfFrames() < MAX_FRAMES) { desktopScrollpane.add(dListener, frame, x, y); createFrameAssociates((JScrollInternalFrame) frame); } } COM: <s> adds an internal frame to the scrollable desktop pane </s>
funcom_train/11321911
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setParameter(String name, String value) { if (name == null) { throw new IllegalArgumentException("Null name parameter"); } if (value != null) { getParameters().put(name, value); } else { getParameters().remove(name); } } COM: <s> set the button parameter with the given parameter name and value </s>
funcom_train/9688206
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setRowHeight(final int rowHeight) { //System.err.println("Setting row height to " + rowHeight); //new Exception().printStackTrace(); super.setRowHeight(rowHeight); if (tree != null && tree.getRowHeight() != rowHeight) { tree.setRowHeight(getRowHeight()); } } COM: <s> overridden to pass the new row height to the tree </s>
funcom_train/11024209
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testExecuteWithSimpleBytePropertyAndByteValue() { TestBean testBean = new TestBean(); new BeanPropertyValueChangeClosure("byteProperty", expectedByteValue).execute(testBean); assertTrue(expectedByteValue.byteValue() == testBean.getByteProperty()); } COM: <s> test execute with simple byte property and byte value </s>
funcom_train/28116518
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { String result = null; if (_transacted) { result = "TRANSACTED"; } else { switch (_acknowledgeMode) { case Session.AUTO_ACKNOWLEDGE: result = "AUTO_ACKNOWLEDGE"; break; case Session.CLIENT_ACKNOWLEDGE: result = "CLIENT_ACKNOWLEDGE"; break; default: result = "DUPS_OK_ACKNOWLEDGE"; } } return result; } COM: <s> returns a string representation of the acknowledgement type </s>
funcom_train/17009416
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long getLong(byte[] marshalledBytes) throws MarshallingException { ByteArrayInputStream baInputStream = new ByteArrayInputStream( marshalledBytes); DataInputStream din = new DataInputStream(new BufferedInputStream( baInputStream)); if (marshalledBytes == null) { throw new NullPointerException("Specified byte[] is null."); } try { long value = din.readLong(); return value; } catch (IOException ioe) { throw new MarshallingException("Problems un-marshalling long. " + ioe.getMessage()); } } COM: <s> this method converts a code byte code into a code long code </s>
funcom_train/648658
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getJPanel9() { if (jPanel9 == null) { GridLayout gridLayout4 = new GridLayout(); jPanel9 = new JPanel(); jPanel9.setLayout(gridLayout4); gridLayout4.setRows(1); gridLayout4.setColumns(3); gridLayout4.setHgap(8); jPanel9.add(getBtnRunNow(), null); jPanel9.add(getBtnSave(), null); jPanel9.add(getBtnOpen(), null); } return jPanel9; } COM: <s> this method initializes j panel9 </s>
funcom_train/45934135
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public OGoAddress addressWithKey(final String _key) { if (_key == null) return null; final List<OGoAddress> addresses = (List<OGoAddress>) this.valueForKey("addresses"); if (addresses == null) return null; for (OGoAddress address: addresses) { if (_key.equals(address.key())) return address; } return null; } COM: <s> lookup the address with the specified key in the addresses relationship </s>
funcom_train/14092877
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testComponentNullLabelNullIcon() { AbstractButtonFinder finder = new AbstractButtonFinder(null, null); JButton button = new JButton(); setWindow(createJFrame(getName())); getFrame().getContentPane().add(button); packAndShow(getFrame()); assertTrue("Finder is not working", finder.testComponent(button)); } COM: <s> tests the test component method for null label null icon </s>
funcom_train/21017222
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double getMinimumHeight(IComposite composite) { requireNotNull(composite, "@require (composite != null)"); double result = 0; if (elementIndex != NO_ELEMENT) { if (isApplyCellSizeVertical()) { if (minHeight >= 0) { result = minHeight; } else { result = composite.get(elementIndex).getPreferredSize() .getHeight(); } } else { result = composite.get(elementIndex).getHeight(); } } return result; } COM: <s> returns the minimum height the cell needs </s>
funcom_train/12308210
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void pushBatchedEntries() { Job job = new Job(Messages.LogView_AddingBatchedEvents) { protected IStatus run(IProgressMonitor monitor) { for (int i = 0; i < batchedEntries.size(); i++) { if (!monitor.isCanceled()) { LogEntry entry = (LogEntry) batchedEntries.get(i); pushEntry(entry); batchedEntries.remove(i); } } asyncRefresh(true); return Status.OK_STATUS; } }; job.schedule(); } COM: <s> push batched entries to log view </s>
funcom_train/12243412
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void a_closeActiveConstruction(){ GeoConstruction activeConstruction=getActiveConstruction(); if (activeConstruction==null) return; //request if (closeDialog(langStrings.q_AskCloseConstruction+" " +activeConstruction.getName())) { JInternalFrame frames[] = desktop.getAllFrames(); GChildFrame w; for(int i=0;i<frames.length;i++){ w = (GChildFrame)frames[i]; if (w.getConstruction()==activeConstruction) w.dispose(); } activeConstruction.dispose(); mbs1(); } } COM: <s> closes the active construction and all associated child frames </s>
funcom_train/8077349
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { String result = "CrossValidationResultProducer: "; result += getCompatibilityState(); if (m_Instances == null) { result += ": <null Instances>"; } else { result += ": " + Utils.backQuoteChars(m_Instances.relationName()); } return result; } COM: <s> gets a text descrption of the result producer </s>
funcom_train/34965320
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isAuthor(final Long portalPageId) { ISharedPortalPage sharedDashboard = this.configuration .getSharedPortalPage(portalPageId); // if the sharedDashboard is null then the portal page is not shared so // the user should be author if (sharedDashboard == null || sharedDashboard.getAuthor() .equals(getRemoteUser().getName())) { return true; } return false; } COM: <s> returns true if current user is author of portal page specified by </s>
funcom_train/38495839
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getNextName() { //[5] Name ::= (Letter | '_' | ':') (NameChar)* if(endOfData() || !isNameFirstChar(lookNextChar())) { return null; } StringBuffer name = new StringBuffer(""); name.append(getNextChar()); //append the first char getNextNmToken(name); return name.toString(); } COM: <s> reads the name from the current location </s>
funcom_train/27900498
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String makeThumbname(File file, File destDir) { if ( file == null ) return null; String name = Util.encodeFilename(file.getName()); if ( (new File(destDir, "thumb").exists()) ) { name = "thumb/"+name; } return name; } COM: <s> makes a canonical thumbfilename out of a possibly messy input filename </s>
funcom_train/23309365
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public SchedSeries getSeries(Comparable key) { if (key == null) { throw new NullPointerException("Null 'key' argument."); } SchedSeries result = null; int index = getRowIndex(key); if (index >= 0) { result = getSeries(index); } return result; } COM: <s> returns a series from the collection </s>
funcom_train/44165365
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean onScreen(Tile tileToCheck) { if (tileToCheck == null) return false; repositionMapIfNeeded(); return tileToCheck.getY() - 2 > topRow && tileToCheck.getY() + 4 < bottomRow && tileToCheck.getX() - 1 > leftColumn && tileToCheck.getX() + 2 < rightColumn; } COM: <s> checks if the tile units at the given coordinates are displayed </s>
funcom_train/16435252
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addValueToMonth(SSMonth pMonth, SSAccount pAccount, BigDecimal pValue) { BigDecimal current = iBudget.get(pMonth).get(pAccount); if (current != null) { iBudget.get(pMonth).put(pAccount, current.add(pValue)); } else { iBudget.get(pMonth).put(pAccount, pValue); } } COM: <s> add a value to a month </s>
funcom_train/933236
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getMessage(String key, Object args[]) { MessageResources resources = getMessageResources(); if (resources == null) { return null; } // Return the requested message if (args == null) { return (resources.getMessage(getLocale(), key)); } else { return (resources.getMessage(getLocale(), key, args)); } } COM: <s> look up and return a message string based on the specified parameters </s>
funcom_train/50389637
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testStartupTasks()throws Exception{ String config = "src/test/resources/conf/wsrflite-2.xml"; Kernel k=new Kernel(config); ServiceConfigReader r=new ServiceConfigReader(k, new File(config)); r.loadProperties(); r.configureServices(); List<Runnable>tasks=r.getInitTasks(); assertNotNull(tasks); assertEquals(2, tasks.size()); //check ordering assertTrue(tasks.get(1).getClass().getName().endsWith("2")); } COM: <s> tests that the uas </s>
funcom_train/31679202
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void write(CharSequence csq) throws IOException { final int length = csq.length(); for (int i = 0; i < length;) { checkCanceled(); char c = csq.charAt(i++); if (c < 0x80) { _bytes[_index] = (byte) c; if (++_index >= _bytes.length) { flushBuffer(); } } else { write(c); } } } COM: <s> writes the specified character sequence </s>
funcom_train/37854251
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void doAnnotate(File path, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, ISVNAnnotateHandler handler) throws SVNException { doAnnotate(path, pegRevision, startRevision, endRevision, false, false, handler, null); } COM: <s> obtains annotation information for each file text line from a repository </s>
funcom_train/49704775
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getTestString() { StringBuffer buf = new StringBuffer(); for (char i = 0; i < 0xD800; i++) { buf.append(i); } for (char i = 0xF900; i < 0xF8F; i++) { buf.append(i); } return buf.toString(); } COM: <s> generates the interesting string to test </s>
funcom_train/8483476
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void event_objectDisconnected(final ATObjectID objId) { this.receive( new Event("objectDisconnected(" + objId +")") { public void process(Object myself){ //notify myself in case local remote references in this machine register a listener connectionManager_.notifyObjectDisconnected(objId); //broadcast to other virtual machines that an object has disconnected. new CMDObjectDisconnected(objId).broadcast(communicationBus_); } }); } COM: <s> event that signals the manual disconnect of a previously exported and </s>
funcom_train/39304213
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean loadStorageLengthMitList(WizardController controller, Map collectedData) { logger.debug("Loading mitigation project list from file"); controller.setBusy(true); try { new LoadStorageLengthDataMitListAction(collectedData, loadedProjectRegistry, configuration).runWithProgressWindow("Loading data..."); return true; } catch (MitigationAppException mae) { errorPanel = new ErrorWizardPanel(controller, collectedData, mae.getMessage()); return false; } finally { controller.setBusy(false); } } COM: <s> load the mitigation list from the enter storage length mitigat excel tab </s>
funcom_train/4136053
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addWidthPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_BoundingBox_width_feature"), getString("_UI_PropertyDescriptor_description", "_UI_BoundingBox_width_feature", "_UI_BoundingBox_type"), UtilsPackage.Literals.BOUNDING_BOX__WIDTH, true, false, false, ItemPropertyDescriptor.REAL_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the width feature </s>
funcom_train/43429970
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void boardcopy( final Board b ) { this.width = b.width; this.places = b.places; for ( int i=0; i<width+2 ; i++) System.arraycopy(b.board[i],0,board[i],0,b.board[0].length); } COM: <s> copies a code board code b on this code board code </s>
funcom_train/30254466
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addRequestType(String orgname, RequestType requestType) throws SLAdminException { if (LOG.isTraceEnabled()) { LOG.trace("Entering addRequestType ..."); } UserAuthentication userAuthentication = new UserAuthentication(); userAuthentication.loginAsSuperuser(orgname, Constants.DEFAULT_ROLE); try { createWorkItemType(orgname, requestType); addSkillValueToSlSkill(requestType.getName()); McOrganizationManager.update(); } finally { userAuthentication.logout(); } } COM: <s> save new request in db </s>
funcom_train/22353777
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public RootWindow buildDesktop(Map<String, Component> components, File serializedView) { componentsUsed.clear(); for (Component component : components.values()) { componentsUsed.add(component); } // we have a tree of settings and a list of components. Let's build a root window here... return createRootWindow(components, serializedView); } COM: <s> this method builds the desktop </s>
funcom_train/2293006
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setDirectEditProvider(I_CmsDirectEditProvider clazz) { m_directEditProvider = clazz; if (CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info(Messages.get().getBundle().key( Messages.INIT_DIRECT_EDIT_PROVIDER_1, m_directEditProvider.getClass().getName())); } } COM: <s> sets the direct edit provider </s>
funcom_train/21080901
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private List getLowerServers() { List servers = getKnownServers(); for (Iterator iter = servers.iterator(); iter.hasNext();) { Server server = (Server)iter.next(); if (server.getId() <= _localServer.getId()) { iter.remove(); } } return servers; } COM: <s> returns all known servers with an id greater than our own id </s>
funcom_train/16892482
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean visit() { EditPartEdge e; if (visited == VISITING) { return false; } if (visited == VISITED) return true; visited = VISITING; for (Iterator it = edges.iterator(); it.hasNext();) { e = (EditPartEdge) it.next(); // if (e.getSource() == this) if (e.getDest().visit() == false) return false; } visited = VISITED; return true; } COM: <s> returns false if cycle detected </s>
funcom_train/2883414
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void expectAddLeadingSlash(String in, String expected) { String path = LivenessPageChecker.addLeadingSlash(in); assertEquals("Expected leading slash on " + quote(in) + " to be " + quote(expected) + " but got " + quote(path), expected, path); } COM: <s> expect that the result of leading slash edition will be as predicted </s>
funcom_train/45692193
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addArpeggiatorControlPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_GlobalParameters_arpeggiatorControl_feature"), getString("_UI_PropertyDescriptor_description", "_UI_GlobalParameters_arpeggiatorControl_feature", "_UI_GlobalParameters_type"), EsxPackage.Literals.GLOBAL_PARAMETERS__ARPEGGIATOR_CONTROL, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the arpeggiator control feature </s>
funcom_train/10663654
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void suiteStarting(Report report) { if (report == null) { throw new NullPointerException("Parameter report is null."); } if (configuration.contains(Reporter.PRESENT_SUITE_STARTING)) { String stringToReport = "<suiteStarting>\n"; stringToReport += printReport(report); stringToReport += "</suiteStarting>"; pw.println(stringToReport); } } COM: <s> prints information indicating a suite of tests is about to start executing if </s>
funcom_train/37589140
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void _addToOffsetsToQueries(final Query query, final int offset) { List<Query> selectedQueries = _offsetToQueries.get(offset); if (selectedQueries == null) { selectedQueries = new LinkedList<Query>(); _offsetToQueries.put(offset, selectedQueries); } selectedQueries.add(query); } COM: <s> add query offset pair to offset to queries map </s>
funcom_train/39304380
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void storeData(WizardController controller, Map collectedData) throws MitigationAppException { logger.debug("Storing existing conditions (pre-mitigation) data to file"); controller.setBusy(true); try { List<MitigationProject> projectList = (List<MitigationProject>) collectedData.get(ConstCostWizardPanel.KEY_PROJECT_LIST); new StoreConstCostToFileAction(collectedData, projectList, configuration).runWithProgressWindow("Storing cost data..."); } finally { controller.setBusy(false); } } COM: <s> store the construction cost data to a file </s>
funcom_train/22233834
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setDecayFilter(float frequencyCutoff) { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_DECAY_FILTER_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("AuralAttributes30")); ((AuralAttributesRetained)this.retained).setDecayFilter(frequencyCutoff); } COM: <s> set decay filter </s>
funcom_train/9701011
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void updateTableFields(){ String tableName = model.getTableName(); String schemaName = model.getOwner(); Table t = model.getTable(model.getDtpConnection(), schemaName, tableName); List<String> fields = model.getFieldNames(t); model.availableFields().addAll(fields); model.selectedFields().addAll(fields); for (Iterator<String> iterator = fields.iterator(); iterator.hasNext();) { String s = iterator.next(); listUsed.add(s); } } COM: <s> update the model and the field switcher </s>
funcom_train/22758012
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setCubeView(Cube c, Dimension d1, Dimension d2) { table = new PaloBrowserTable(c, d1, d2, this); table.setDefaultEditor(Double.class, new DefaultCellEditor(new JTextField())); if (tabbedPane.getTabCount() > 0) { tabbedPane.removeTabAt(0); } tabbedPane.addTab(c.getName(), new JScrollPane(table)); } COM: <s> sets a new cube view the method creates a new </s>
funcom_train/41099677
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ConceptualCar read(String id) throws DataException { //check to see if the object is in cache, if it is just return it //establish a connection from the pool, then pass that connection along with the string id to the next method //catch any exceptions you may have //return the conceptualCar //RELEASE THE CONNECTION!! } COM: <s> reads an existing conceptual car from the database </s>
funcom_train/1173543
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void refundPaidCost(Card source) { // prereq: isUndoable is called first if (tapCost) source.untap(); else if (untapCost) source.tap(); if (subtractCounterCost) source.addCounterFromNonEffect(counterType, counterAmount); else if (addCounterCost) source.subtractCounter(counterType, counterAmount); // refund chained mana abilities? } COM: <s> p refund paid cost </s>
funcom_train/44733790
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void keyPressed(KeyEvent e) { switch (e.getKeyCode()) { case KeyEvent.VK_PAGE_UP: zoomInOut(1.f); e.consume(); break; case KeyEvent.VK_PAGE_DOWN: zoomInOut(-1.f); e.consume(); break; } } COM: <s> bool on key uint16 k s gui value s </s>
funcom_train/257046
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void enableRsTableSelectionListener(int reqSet) { rsTable[reqSet].getSelectionModel().addListSelectionListener( rsTableSelectionlistener[reqSet]); rsTable[reqSet].getColumnModel().getSelectionModel() .addListSelectionListener(rsTableSelectionlistener[reqSet]); } COM: <s> enables the selection change listener for a requirements sets table </s>
funcom_train/8266594
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long getPollHeartbeatInterval() { int retries = getPollHeartbeatRetries(); long interval = 10 + (HEARTBEAT_INTERVAL_PADDED / retries); try { interval = Long.getLong(POLL_INTERVAL_PROPERTY, interval).longValue(); } catch (Exception e) {} if (interval <= 0) { interval = 10 + (HEARTBEAT_INTERVAL_PADDED / retries); } return interval; } COM: <s> retrieves the interval in milliseconds that tt poll heartbeat tt </s>
funcom_train/12570347
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void releaseChanges(String newText) { String oldText = row.getText(column); if (!oldText.equals(newText)) { String rowText = row.getText(1); if (column == 1) { rowKeyIndexMap.put(newText, rowKeyIndexMap.remove(oldText)); } gateway.textChanged(rowText, table.getColumn(column).getText(), newText); tableCursor.redraw(); fireTableUpdated(); } } COM: <s> release the changes made in the cell editor </s>
funcom_train/9919004
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void loadGeometryShader(URL url) { String shaderSource; try { shaderSource = PApplet.join(PApplet.loadStrings(url.openStream()), "\n"); attachGeometryShader(shaderSource, url.getFile()); } catch (IOException e) { System.err.println("Cannot load file " + url.getFile()); } } COM: <s> loads and compiles the geometry shader contained in the url </s>
funcom_train/22448699
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addIsFinishPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Component_isFinish_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Component_isFinish_feature", "_UI_Component_type"), ModelPackage.Literals.COMPONENT__IS_FINISH, true, false, false, ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the is finish feature </s>
funcom_train/23362241
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ReactionEdge createReactionEdge(Vertex from, Vertex to, KEGGEdge edge) { ReactionEdge reactionEdge = null; reactionEdge = new ReactionEdge(myGraph.createEdge(from, to, true), edge.getKEEGReactionID(), edge.getName()); reactionEdge.setReference(false); reactionEdge.setDirected(true); reactionEdge.hasKEGGEdge(true); reactionEdge.setKeggEdge(edge); pw.addElement(reactionEdge); return reactionEdge; } COM: <s> create directed edge </s>
funcom_train/36780161
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setEnd(final String s) { SimpleDateFormat stf = new SimpleDateFormat("HH:mm:ss"); stf.setTimeZone(TimeZone.getTimeZone("UTC")); try { end = stf.parse(s).getTime(); } catch(ParseException ex) { LogLog.warn("Error parsing end value " + s, ex); } } COM: <s> set end exclusive of time span </s>
funcom_train/37829470
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public StendhalRPZone getZoneAt(final int level, final int wx, final int wy, final Entity entity) { for (final IRPZone izone : this) { final StendhalRPZone zone = (StendhalRPZone) izone; if (zone.isInterior()) { continue; } if (zone.getLevel() != level) { continue; } if (zone.intersects(entity.getArea(wx, wy))) { logger.debug("Contained at :" + zone.getID()); return zone; } } return null; } COM: <s> find the zone that would contain an entity at global coordinates </s>
funcom_train/11678530
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void exception(final NHttpClientConnection conn, final HttpException e) { log.error("HTTP protocol violation : " + e.getMessage()); checkAxisRequestComplete(conn, null, e); shutdownConnection(conn); if (metrics != null) { metrics.incrementFaultsSending(); } } COM: <s> handle http protocol violations encountered while reading from underlying channels </s>
funcom_train/4378226
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void stopCurrentTrack() { if (!radioPlayer.isPlaying()) { return; } if (radioPlayer != null) { try { radioPlayer.stopCurrent(); } catch (MediaException e) { e.printStackTrace(); RSFMUtils.debug("Exception when trying to stop current track: "+e.getMessage(), this); } } else { RSFMUtils.debug("Attempt to stop radio when there is no radio."); throw new IllegalStateException( "Attempt to stop radio where radio is null"); } } COM: <s> tells radio player to stop current track </s>
funcom_train/2628467
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetComponentFromID() { System.out.println("getComponentFromID"); String ID = ""; GUIStructureWrapper instance = null; ComponentTypeWrapper expResult = null; ComponentTypeWrapper result = instance.getComponentFromID(ID); 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 component from id method of class guistructure wrapper </s>
funcom_train/46858449
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void heightTest() { Assert.assertTrue(HeightLevel.MOUNTAINS.getHeight() > forrest.getHeightLevel().getHeight()); Assert.assertTrue(HeightLevel.RIVER.getHeight() < forrest.getHeightLevel().getHeight()); Assert.assertTrue(HeightLevel.OCEAN.getHeight() < HeightLevel.RIVER.getHeight()); } COM: <s> the heigh level enum values are sorted from low to high </s>
funcom_train/18876886
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getJPanelWest() { if (jPanelWest == null) { jLabel2 = new JLabel(); jLabel2.setText("Features"); jPanelWest = new JPanel(); jPanelWest.setLayout(new BorderLayout()); jPanelWest.setPreferredSize(new Dimension(200, 0)); jPanelWest.add(getJScrollPane1(), BorderLayout.CENTER); jPanelWest.add(jLabel2, BorderLayout.NORTH); } return jPanelWest; } COM: <s> this method initializes j panel west </s>
funcom_train/16605298
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void poll(int delta) { if (!soundWorks) { return; } if (paused) { return; } if (music) { if (mod != null) { try { mod.poll(); } catch (OpenALException e) { Log.error("Error with OpenGL MOD Player on this this platform"); Log.error(e); mod = null; } } if (stream != null) { try { stream.update(); } catch (OpenALException e) { Log.error("Error with OpenGL Streaming Player on this this platform"); Log.error(e); mod = null; } } } } COM: <s> poll the streaming system </s>
funcom_train/5344469
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int compareTo(Object o) { LongInterval other = (LongInterval) o; if (this.low != other.low) return (this.low - other.low > Integer.MAX_VALUE) ? Integer.MAX_VALUE : (int) (this.low - other.low); else return (this.high - other.high > Integer.MAX_VALUE) ? Integer.MAX_VALUE : (int) (this.high - other.high); } COM: <s> compares this to another interval by the low element of the interval </s>
funcom_train/32057130
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testUpdate() { System.out.println("testUpdate"); ActionEvent e = null; GPGraphpad gp = new GPGraphpad(); FileExit fe = new FileExit(gp); fe.update(); // empty implementation assertTrue( true ); //gp.getFrame().dispose(); } COM: <s> test of update method of class file exit </s>
funcom_train/4534658
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void updateOutgoingCallPanel() { if (session == null || session.isClosed()) { return; } else if (session instanceof JingleSession) { showAlert(false); if (session.getSessionState() instanceof JingleSessionStatePending) { titleLabel.setText("Calling user. Please wait..."); cancelButton.setVisible(true); } } } COM: <s> updates the ui to reflect the current state </s>
funcom_train/50912477
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public IntSet outOfRange(RealRange r) { int n = size(); IntSet temp = new IntSet(); for (int i = 0; i < n; i++) { if (r.isValid() && !r.includes(array[i])) { temp.addElement(i); } } return temp; } COM: <s> get elements outside a range </s>
funcom_train/51765519
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long isEnoughspaceinfolder1(){ long usablespacefolder = getFolder1().getFolder().getUsableSpace(); // File size to copy from other folder - the file size we will delete from this folder. long spaceneeded = getFolder2().getSizetocopy() - getFolder1().getSizetodelete(); return usablespacefolder - spaceneeded; } COM: <s> returns the estimated usable space in the folder after synchronization </s>
funcom_train/31480802
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Vector getListsMatching(String regexp) { Vector _matches; RE _re; try { _re = new RE(regexp); } catch (REException _e) { throw new IllegalArgumentException(__me + "getListsMatching(): " + "REException: " + _e.getMessage()); } _matches = new Vector(); getListsMatching(_re, _matches, false); return _matches; } COM: <s> recursively search list for any sublists which first element matches a </s>
funcom_train/4530857
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { StringBuffer buffer = new StringBuffer(length); try { synchronized (IBUF) { IBUF.reset(bytes, length); readChars(IBUF, buffer, length); } } catch (IOException e) { throw new RuntimeException(e); } return buffer.toString(); } COM: <s> convert to a string </s>
funcom_train/6487274
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String escape(String param) { StringBuffer buffer=new StringBuffer(param); int index=0; char current; for (int i=0; i<buffer.length(); i++) { current=buffer.charAt(i); if (current=='\\' || current=='\'') { buffer.insert(i, '\\'); i++; } } return buffer.toString(); } COM: <s> this method escapes the param string so it can be used as a </s>
funcom_train/1841014
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String printStreets(HashMap streets) { String s = "\nLocation: " + loc + "\nStreet list:\n----------\n"; Iterator it = segments.iterator(); while (it.hasNext()) { s += ((RoadSegment) it.next()).printStreetName(streets) + "\n"; } return s; } COM: <s> prints the streets at this intersection </s>
funcom_train/1417581
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeMember(String sessionId) { // member to remove ArrayList<Member> rm = new ArrayList<Member>(); synchronized (member) { for (Member m : member) { // if member found session id equals id if (m.getMemberlId().equals(sessionId)) rm.add(m); } } // remove member synchronized (member) { for (Member m : rm) { if (rm != null) member.remove(rm); } } } COM: <s> removes a member from the handler </s>
funcom_train/42527018
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setIDToEObjectMap(Map<String, EObject> idToEObjectMapNew) { if (idToEObjectMapNew.isEmpty()) { if (idToEObjectMap != null) { idToEObjectMap.clear(); } return; } getIDToEObjectMap().clear(); getIDToEObjectMap().putAll(idToEObjectMapNew); } COM: <s> sets a new id to eobject map </s>
funcom_train/11212583
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void sign(final String spiStr) throws ServiceLocationException { final List spiList = stringToList(spiStr, ","); for (int i = 0; i < serviceURLs.length; i++) { final ServiceURL url = serviceURLs[i]; url.sign(spiList); } for (int i = 0; i < extensions.length; i++) { extensions[i].sign(spiStr); } } COM: <s> sign the service reply </s>
funcom_train/39565867
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean addEdge(WiredEdge edge) { synchronized (edges) { PhysicalNode from = edge.srcNode; PhysicalNode to = edge.dstNode; if( from.hasWiredEdge(to) ) return false; if( !from.wired_link || !to.wired_link)return false; reroute = true; from.insertWiredEdge(to, edge); edges.add(edge); } return true; } COM: <s> adds one edge used in the loading saved overlays </s>
funcom_train/22556665
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ System.out.println("Begin doGet"); System.out.println("path info: " + request.getPathInfo()); try { writeXMLResponse(response); } catch (TENCServerException e) { response.sendError(e.getErrorCode(), e.getMessage()); } System.out.println("End doGet"); } COM: <s> handles the http method get </s>
funcom_train/49050931
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeAltToAuditorySignLanguage(String inPrimaryURI) { List signLanguageAltToAud = getAltToAuditorySignLangs(inPrimaryURI); if (signLanguageAltToAud != null) { EquivalentType equiv = getEquivalentFor(inPrimaryURI); JAXBPath.deleteJaxbObject ("/Content/AlternativesToAuditory/SignLanguage", equiv); } } COM: <s> remove the sign language element from the alt to auditory metadata </s>
funcom_train/26206219
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void putAll(final Map map) { for (final Iterator i = map.entrySet().iterator(); i.hasNext();) { final Map.Entry entry = (Map.Entry) i.next(); put(entry.getKey(), entry.getValue()); } } COM: <s> copies all entries from the given map to this map </s>
funcom_train/26213457
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setFollowRedirects(boolean followRedirects) { if (followRedirects == true) { // TODO: EntityEnclosingMethod should inherit from HttpMethodBase rather than GetMethod // Enable exception once the inheritence is fixed //throw new IllegalArgumentException( // "Entity enclosing requests cannot be redirected without user intervention"); } super.setFollowRedirects(false); } COM: <s> entity enclosing requests cannot be redirected without user intervention </s>