__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/22496887
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void createTabItems() { buildActivitiesTab(); buildTopicsTab(); buildLecturesTab(); buildSlidesetsTab(); buildFilesTab(); // add tab items to modules tab area addTabItem(activityViewer.getTree(), "Activities"); addTabItem(topicViewer.getTable(), "Topics"); addTabItem(lectureViewer.getTable(), "Lectures"); addTabItem(slidesetViewer.getTable(), "Slides"); addTabItem(fileViewer.getTable(), "Files"); } COM: <s> this method creates the items in the tab panel </s>
funcom_train/41288810
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setText(final String text) { if(!SwingUtilities.isEventDispatchThread()) { try { SwingUtilities.invokeAndWait(new Runnable() { public void run() { setText(text); } }); } catch (Exception e) { e.printStackTrace(); } } try { if(!getText(0, getLength()).equals(text)) { replace(0, getLength(), text, null); } } catch (BadLocationException e) { e.printStackTrace(); } } COM: <s> sets document text according to input text </s>
funcom_train/35669813
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addParentValuesPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_CLPTLine_parentValues_feature"), getString("_UI_PropertyDescriptor_description", "_UI_CLPTLine_parentValues_feature", "_UI_CLPTLine_type"), LCPnetPackage.Literals.CLPT_LINE__PARENT_VALUES, true, false, true, null, null, null)); } COM: <s> this adds a property descriptor for the parent values feature </s>
funcom_train/1530889
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSphereND(GeoPointND M, double r) { defined = ((GeoElement) M).isDefined() && !M.isInfinite(); // check midpoint // check radius if (Kernel.isZero(r)) { r = 0; } else if (r < 0) { defined = false; } if (defined) { setSphereNDMatrix(M, r); setAffineTransform(); } } COM: <s> makes this quadric a sphere with midpoint m and radius r </s>
funcom_train/8994548
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void updateWorkflowRecord(HttpServletRequest request,Integer workflowRecordID) throws ApplicationException{ if(!Utility.isEmpty(workflowRecordID)){ WorkflowRecordDAObject recordDAO = new WorkflowRecordDAObject(this.getSessionContainer(request),this.getConnection(request)); WorkflowRecord record = (WorkflowRecord)recordDAO.getObjectByID(workflowRecordID); recordDAO.updateObject(record); } } COM: <s> update workflow record update count update date updater id </s>
funcom_train/34673285
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testQueryConfig() throws Exception { if (TimeZone.getDefault().getDisplayName(false, TimeZone.SHORT).equals("EST")) { String param=getCore().getParameterValue("TestParameter"); assertNotNull(param); assertEquals("2", param); } } COM: <s> if the timezone in est </s>
funcom_train/12802174
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void startTimeout () { startTime = System.currentTimeMillis(); timeoutTimer = DHT.getScheduler().schedule(new Runnable() { /* (non-Javadoc) * @see java.lang.Runnable#run() */ public void run () { if (!taskFinished) { DHT.logDebug("Task was Killed by Timeout. TaskID: " + taskID); kill(); } } }, DHTConstants.TASK_TIMEOUT, TimeUnit.MILLISECONDS); } COM: <s> starts the timeout timer </s>
funcom_train/42538768
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void disconnect() { try { if (this.dbConn != null && !this.dbConn.isClosed()) { this.dbConn.close(); this.dbConn = null; } } catch (Exception e) { System.err.println("********** COULD NOT CLOSE CONNECTION: " + e.toString()); this.dbConn = null; } } COM: <s> disconnect from the datasource </s>
funcom_train/32869534
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testViewListener() throws PartInitException { int count = ProsePlugin.getDefault().getRunListeners().size(); showView(); try { assertEquals(count + 1, ProsePlugin.getDefault().getRunListeners().size()); } finally { hideView(); } assertEquals(count, ProsePlugin.getDefault().getRunListeners().size()); } COM: <s> test if the view registers an iprose run listener </s>
funcom_train/49608760
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void deleteAdmissionTypes(String username,EntityManager em,List<AdmissionType> vos) throws Throwable { try { for(AdmissionType vo: vos) { vo.setDeleted(Consts.FLAG_Y); JPAMethods.merge(em, username, DefaultFieldsCallabacks.getInstance(), vo); } } catch (Throwable ex) { Logger.error(null, ex.getMessage(), ex); throw ex; } } COM: <s> delete logically a admission type </s>
funcom_train/35744484
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean removeMessageElement(String namespace, MessageElement remove) { Iterator<MessageElement> eachElement = getMessageElementsOfNamespace(namespace); while (eachElement.hasNext()) { MessageElement anElement = eachElement.next(); if (remove == anElement) { eachElement.remove(); // updates mod count return true; } } return false; } COM: <s> remove the first occurrence of the provided message element within the </s>
funcom_train/46327728
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean clearApplicationLoginInfo(ModelApplication modelApp) { if (isClosed) { throw new IllegalStateException(TAG + " is closed."); } return registeredAppDbAdapter.update(modelApp.getDatabaseId(), null, null, null, null, "", ""); } COM: <s> clears the application username and password in the database </s>
funcom_train/40226424
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int resolveColumnIndex(String colProp) { for(int i = 0; i < columns.length; i++) { final Column c = columns[i]; if(c.getPropertyName() != null && c.getPropertyName().equals(colProp)) { return i; } } throw new IllegalArgumentException("Unresolveable column property: " + colProp); } COM: <s> resolves the column index of the given column property </s>
funcom_train/39175629
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private FMeasure getFMeasureValues(gate.iaaplugin.FMeasure source) { FMeasure fm = new FMeasure(); fm.setCorrect(source.correct); fm.setPartiallyCorrect(source.partialCor); fm.setMissing(source.missing); fm.setSpurious(source.spurious); fm.setPrecision(source.precision); fm.setRecall(source.recall); fm.setF1(source.f1); fm.setPrecisionLenient(source.precisionLenient); fm.setRecallLenient(source.recallLenient); fm.setF1Lenient(source.f1Lenient); return fm; } COM: <s> copy values from a gate iaa fmeasure object into the object we return </s>
funcom_train/33264277
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setDisabledImage( Image disabledImage ) { synchronized(getTreeLock()) { if ( this.disabledImage != disabledImage ) { this.disabledImage = disabledImage; if ( this.image == null ) { setImage( disabledImage ); } if ( this.image != null ) { this.image.setDisabledImage( disabledImage ); } } } } COM: <s> sets the disabled image variable </s>
funcom_train/50720944
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testDecode_byteArr() { fail("TODO decode"); byte[] source = null; byte[] expResult = null; byte[] result = Base64.decode(source); 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 decode method of class base64 </s>
funcom_train/11372382
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void shutdown() { shouldRun = false; try { if (infoServer != null) infoServer.stop(); } catch (Exception e) { LOG.warn("Exception shutting down SecondaryNameNode", e); } try { if (checkpointImage != null) checkpointImage.close(); } catch(IOException e) { LOG.warn("Exception while closing CheckpointStorage", e); } } COM: <s> shut down this instance of the datanode </s>
funcom_train/5416965
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String uploadMessage(byte[] content) throws ServiceException { int timeout = (int) ((5 + content.length / 25000) * Constants.MILLIS_PER_SECOND); return getZMailbox().uploadAttachment("message", content, Mime.CT_MESSAGE_RFC822, timeout); } COM: <s> uploads the given message to the remote server using file upload </s>
funcom_train/39467467
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void showMessageDialog(@Nullable final Component parentComponent, @NotNull final String key, final Object... args) { JOptionPane.showMessageDialog(parentComponent, format(key + ".message", args), format(key + ".title", args), getMessageType(key)); } COM: <s> show a localized message dialog </s>
funcom_train/49319477
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSite(SiteDesc site) { _setSite(site); if (_timeZoneId.equals(SITE_TIME)) { _setTimeZone(site.getTimeZone().getDisplayName(), SITE_TIME); } _setDate(_startDate); _updateModel(); _fireChangeEvent(); } COM: <s> set the observatory site description </s>
funcom_train/15465191
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void moveFileToProcessed(File file) throws Exception { String processedDirectoryPath = file.getParent() + File.separator + PROCESSED_DIR_NAME; String simpleFileName = file.getName(); String tgtFileName = processedDirectoryPath + File.separator + simpleFileName; while ((new File(tgtFileName)).exists()) { tgtFileName += "1"; } if (!file.renameTo(new File(tgtFileName))) { throw new Exception("Error moving " + tgtFileName + " to PROCESSED directory."); } } COM: <s> moves the file in the hl7 file directory to the processed directory </s>
funcom_train/9100676
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void save() { if (node == null) { throw new NullPointerException(); } if (frame == null) { throw new NullPointerException(); } node.putInt("state", state); node.putInt("x", x); node.putInt("y", y); node.putInt("width", width); node.putInt("height", height); } COM: <s> store frames localization in a preference node </s>
funcom_train/17731090
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setService(ObservableService service){ // Remove the old one if one exists if (service_ != null) service_.removeServiceListener(myServiceListener_); service_ = service; // Transfer the listener to the newly appointed service. service_.addServiceListener(myServiceListener_); currentStateLabel_.setText(service_.getState().toString()); } COM: <s> sets the value of service </s>
funcom_train/2949876
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { byte code = in.readByte(); setName(in.readUTF()); dashArray = (float[]) in.readObject(); dashPhase = in.readFloat(); float scale = in.readFloat(); stroke = new BasicStroke( in.readFloat(), in.readInt(), in.readInt(), in.readFloat(), dashArray, dashPhase ); setScale(scale); } COM: <s> reads objects fields from the code object input stream code </s>
funcom_train/13960329
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object classForColumn(D2WContext c) { String classForColumn = (c.propertyKey() != null) ? ERXStringUtilities.safeIdentifierName(c.propertyKey()) : ""; classForColumn += (c.componentName() != null) ? " " + c.componentName() : ""; return classForColumn; } COM: <s> a dom class based on the property key and component name </s>
funcom_train/38492770
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int getDevelopment() { int total = 0; for (int i : development) total += i; int random = rand.nextInt(total); total -= random; for (int i=0; i<development.length; i++) { total-=development[i]; if (total <= 0) return i; } return -1; // never happens... } COM: <s> removes a random card from the development </s>
funcom_train/29869916
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JSplitPane getJSplitPane(){ if(jSplitPane == null){ jSplitPane = new JSplitPane(); jSplitPane.setSize(new Dimension(423, 122)); jSplitPane.setTopComponent(getTodoSortPanel()); jSplitPane.setBottomComponent(getJTodoListPanel()); jSplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT); jSplitPane.setDividerLocation(frame.getSettings().todoTabDivider); jSplitPane.setResizeWeight(0.5); } return jSplitPane; } COM: <s> initializes j split pane </s>
funcom_train/31084856
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void drawBeam (Graphics graphics, int beamX, int beamY, int endX) { int endY = (int)(beamY + getSlope() * (endX - beamX)); // Make the beam three thick vertically. for (int i = 0; i < 3; ++i) graphics.drawLine (beamX, beamY - i, endX, endY - i); } COM: <s> draw a beam starting at the beam x beam y and </s>
funcom_train/47314523
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateBB(){ m_centX = (m_pos2.getX() + m_pos1.getX())/2.0f; m_centY = (m_pos2.getY() + m_pos1.getY())/2.0f; m_halfHeight = Math.abs(m_centY - m_pos1.getY()) + m_origHeight/2.0f; m_halfWidth = Math.abs(m_centX - m_pos1.getX()) + m_origWidth/2.0f; } COM: <s> this method will update the bounding boxes based on the new positions </s>
funcom_train/15484146
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean tableExists(String table) throws DatabaseException { boolean result = false; ResultSet rs = null; try { DatabaseMetaData dbm = connection.getMetaData(); String types[] = { "TABLE" }; rs = dbm.getTables(null, null, table, types); result = rs.next(); rs.close(); } catch (SQLException e) { throw (new DatabaseException(e)); } finally { if (rs != null) { try { rs.close(); } catch (SQLException e) { } } } return result; } COM: <s> determine if a table exists </s>
funcom_train/40478718
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private BranchGroup buildWallBG(int x, int z, ValuePlane plane1) { BranchGroup tempBG = new BranchGroup(); tempBG.setCapability(BranchGroup.ALLOW_DETACH); //Build Left Wall if(x != 0){ //ValuePlane plane1 = this.faces[x][z]; ValuePlane plane2 = this.faces[x-1][z]; Plane2d plane = buildSideWall(plane1, plane2); tempBG.addChild(plane); } //Build Bottom Wall if(z != 0){ //ValuePlane plane1 = this.faces[x][z]; ValuePlane plane2 = this.faces[x][z-1]; Plane2d plane = buildBottomWall(plane1, plane2); tempBG.addChild(plane); } return tempBG; } COM: <s> build a wall branch group </s>
funcom_train/46864242
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Collection getCollection(final String pCollectionPid) { Iterator<Collection> tCollectionIter = super.getService().getWorkspacesList().get(0).collectionIterator(); XMLCollection tCurCollection = null; while (tCollectionIter.hasNext()) { tCurCollection = (XMLCollection)tCollectionIter.next(); if (tCurCollection.getCollectionPid().equals(pCollectionPid)) { return tCurCollection; } } return null; } COM: <s> return a collection from the supplied pid assumes there is only one workspace </s>
funcom_train/20150881
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void randomizeOrder(){ int originalSize = this.vectors.size(); List<FeatureVector> randomizedList = new ArrayList<FeatureVector>(originalSize); for(int i = 0; i < originalSize; i++){ int rand = (int) Math.floor( Math.random() * this.vectors.size()); randomizedList.add(this.vectors.remove(rand)); } if (this.vectors.size() == 0 && randomizedList.size() ==originalSize){ this.vectors = randomizedList; this.clusterMap = null; this.neighbourMatrix = null; } else { throw new IllegalStateException(); } } COM: <s> this method reorderes the data in a random way </s>
funcom_train/25472024
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public FPLevel intern() { WeakReference<FPLevel> ref = internMap.get(this); FPLevel ifpl; if (ref != null) { ifpl = ref.get(); if (ifpl != null) { return ifpl; } } ifpl = new FPLevel(this); internMap.put(this, new WeakReference<FPLevel>(this)); return this; } COM: <s> returns a canonical representation for the fplevel object </s>
funcom_train/3472386
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setCurrent(Session session) { if (contains(session)) { setCurrent(sessions.indexOf(session)); } else { getLogger() .error(getLanguage() .getString("CleverPHL.SessionList.Error.InvalidSession") + " " + session.getName()); } } COM: <s> sets the current session </s>
funcom_train/28763226
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setProcessDefinitionId(java.lang.String value) throws com.intersys.objects.CacheException { com.intersys.cache.Dataholder dh = new com.intersys.cache.Dataholder (value); mInternal.setProperty(ii_ProcessDefinitionId, jj_ProcessDefinitionId,kk_ProcessDefinitionId, com.intersys.objects.Database.RET_PRIM, "ProcessDefinitionId", dh); return; } COM: <s> sets new value for code process definition id code </s>
funcom_train/24049507
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addSplitEdges(List edgeList) { // ensure that the list has entries for the first and last point of the // edge addEndpoints(); Iterator it = iterator(); // there should always be at least two entries in the list EdgeIntersection eiPrev = (EdgeIntersection) it.next(); while (it.hasNext()) { EdgeIntersection ei = (EdgeIntersection) it.next(); Edge newEdge = createSplitEdge(eiPrev, ei); edgeList.add(newEdge); eiPrev = ei; } } COM: <s> creates new edges for all the edges that the intersections in this list </s>
funcom_train/25290027
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setScope(Group scope, int index) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_SCOPE_WRITE)) throw new CapabilityNotSetException(Ding3dI18N.getString("ModelClip7")); if (isLive()) ((ModelClipRetained)this.retained).setScope(scope, index); else ((ModelClipRetained)this.retained).initScope(scope, index); } COM: <s> replaces the node at the specified index in this model clip nodes </s>
funcom_train/45469422
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean isPrime(final long candidate) { if ((candidate / 2) * 2 == candidate) { return false; } long stop = candidate / 2; for (long i = FIRST_PRIME_TO_CHECK; i < stop; i += 2) { if ((candidate / i) * i == candidate) { return false; } } return true; } COM: <s> check for prime number </s>
funcom_train/5382007
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void validateRule(ISchedulingRule rule) { //null rule always valid if (rule == null) return; //contains method must be reflexive Assert.isLegal(rule.contains(rule)); //contains method must return false when given an unknown rule Assert.isLegal(!rule.contains(nullRule)); //isConflicting method must be reflexive Assert.isLegal(rule.isConflicting(rule)); //isConflicting method must return false when given an unknown rule Assert.isLegal(!rule.isConflicting(nullRule)); } COM: <s> validates that the given scheduling rule obeys the constraints of </s>
funcom_train/8085405
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Vector getAttributes() { Vector result; int i; result = new Vector(); for (i = 0; i < getInstances().numAttributes(); i++) result.add(getInstances().attribute(i).name()); Collections.sort(result); return result; } COM: <s> returns a list with the attributes </s>
funcom_train/17862363
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getJButtonCancel() { if (jButtonCancel == null) { jButtonCancel = new JButton(); jButtonCancel.setText("Cancel"); jButtonCancel.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { TaskEditor.this.dispose(); } }); } return jButtonCancel; } COM: <s> this method initializes j button cancel </s>
funcom_train/7733902
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void info(String message, Throwable throwable) { LogService logService = (LogService) logServiceTracker.getService(); if (logService != null) { logService.log(LogService.LOG_INFO, message, throwable); } else { LOG.log(Level.INFO, message, throwable); } } COM: <s> publish info message </s>
funcom_train/22032471
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isThisType(byte[] block) { // check that block has value of 0x016033F0 return (block[0] == 0x01 && block[1] == 0x60 && block[2] == 0x33 && block[3] == 0xF0) || (block[0] == 0xF0 && block[1] == 0x33 && block[2] == 0x60 && block[3] == 0x01); } COM: <s> checks if the given block is a valid header for a leica file </s>
funcom_train/17853054
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addUrl(String url, boolean isShortLink) { mIsShortLink = isShortLink; String[] newList = new String[mUrlList.length+1]; System.arraycopy(mUrlList,0,newList,0,mUrlList.length); newList[newList.length-1] = url; mUrlList = newList; } COM: <s> adds the given url to the list </s>
funcom_train/44898272
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void queueForExecution(Call call) { suspendTx("queueForExecution"); synchronized (call) { logger.info("Queuing " + call); queueCall(call); try { call.wait(); } catch (InterruptedException ie) { logger.error("Interrupted in wait", ie); } logger.debug("queueForExecution: received response from " + call); } resumeTx("queueForExecution", call.tx); } COM: <s> queues the call for execution returns only </s>
funcom_train/28126595
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean toggleEditHistoryMode() { m_isEditHistMode = !m_isEditHistMode; getLowerPanelLayout().show(getLowerPanel(), isEditHistMode() ? CALENDAR_PANEL_KEY : DETAIL_PANEL_KEY); refreshTimePlates(); getLogger().debug("History mode toggled."); return m_isEditHistMode; } COM: <s> toggles and returns the edit history mode </s>
funcom_train/47733963
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private double calcScoreMeltingTemperature(double temperature){ double scoreTemperature = 0; double minBorder = 0; double maxBorder = 0; Arrays.sort(annealArray,Collections.reverseOrder()); //Paramters are used to form intervals and gives back the score //where the temperature is still in the interval for(Integer interval : annealArray){ minBorder = 60-interval; maxBorder = 60+interval; if(temperature>=minBorder&&temperature<=maxBorder){ scoreTemperature = anneal.get((double)interval); } } return scoreTemperature; } COM: <s> this method gets the melting temperature for this primer </s>
funcom_train/11729318
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetBoolean() throws RepositoryException { Value val = PropertyUtil.getValue(prop); String str = val.getString(); boolean bool = val.getBoolean(); assertEquals("Wrong conversion from String to Boolean.", new Boolean(bool), Boolean.valueOf(str)); } COM: <s> tests conversion from string type to boolean type </s>
funcom_train/37062736
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void computeGearTable() { double hashValue = 0.0; for ( int i=1; i<=28; i++ ) { hashValue = (1.75 + (i-1)*0.098767) * wheelPerimeter * 0.06; gearTable.put( new Integer(i), new Double(hashValue) ); } } COM: <s> computes the values of the hashtable witch is the factor </s>
funcom_train/9758978
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeVertex(Object vertex) { Set targets= fOut.removeAll(vertex); for (Iterator it= targets.iterator(); it.hasNext();) fIn.remove(it.next(), vertex); Set origins= fIn.removeAll(vertex); for (Iterator it= origins.iterator(); it.hasNext();) fOut.remove(it.next(), vertex); } COM: <s> removes a vertex and all its edges from the graph </s>
funcom_train/46506490
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JMenu getJMenuMainView() { if (jMenuMainView == null) { jMenuMainView = new JMenu(); jMenuMainView.setText("View"); jMenuMainView.setMnemonic(KeyEvent.VK_V); // jMenuMainView.add(getJMenuMainViewLoad()); // jMenuMainView.add(getJMenuMainViewSave()); jMenuMainView.getAccessibleContext().setAccessibleDescription("Manage the workspace"); rebuildViewMenu(); } return jMenuMainView; } COM: <s> this method initializes j menu main view </s>
funcom_train/13487586
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected XmlaOlap4jProxy createProxy(Map<String, String> map) { String cookie = map.get(Property.TESTPROXYCOOKIE.name()); if (cookie != null) { XmlaOlap4jProxy proxy = PROXY_MAP.get(cookie); if (proxy != null) { return proxy; } } return new XmlaOlap4jHttpProxy(this); } COM: <s> creates a proxy with which to talk to send xml web service calls </s>
funcom_train/28757172
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setProjectcode(String newVal) { if ((newVal != null && this.projectcode != null && (newVal.compareTo(this.projectcode) == 0)) || (newVal == null && this.projectcode == null && projectcode_is_initialized)) { return; } this.projectcode = newVal; projectcode_is_modified = true; projectcode_is_initialized = true; } COM: <s> setter method for projectcode </s>
funcom_train/8232087
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getExitCommand2() { if (exitCommand2 == null) {//GEN-END:|107-getter|0|107-preInit // write pre-init user code here exitCommand2 = new Command("Regresar", Command.EXIT, 0);//GEN-LINE:|107-getter|1|107-postInit // write post-init user code here }//GEN-BEGIN:|107-getter|2| return exitCommand2; } COM: <s> returns an initiliazed instance of exit command2 component </s>
funcom_train/14606386
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void adjustPosition(Shell shell) { Rectangle dispArea = shell.getDisplay().getBounds(); Point timerLocation = shell.getLocation(); if (!dispArea.contains(timerLocation)) { int x = timerLocation.x % dispArea.width; int y = timerLocation.y % dispArea.height; shell.setLocation(x, y); } } COM: <s> checks if the timer window is within the limits of the currently active </s>
funcom_train/39367114
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void getShortArray(String key, short values[]) { PropertyDescription property = getTraceProperty(key); setBufferPosition(property); int count = property.getCount(); for(int i = 0; i < count; i++) { values[i] = _buffer.getShort(); } } COM: <s> gets a trace property value as a short array </s>
funcom_train/23216958
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addReadPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_PolicyManagement_read_feature"), getString("_UI_PropertyDescriptor_description", "_UI_PolicyManagement_read_feature", "_UI_PolicyManagement_type"), ContractPackage.Literals.POLICY_MANAGEMENT__READ, true, false, false, ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the read feature </s>
funcom_train/2952708
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public List getAllConfigItems(String extensionPoint) { try { this.lock(); List items = new ArrayList(); for (Iterator it = this.configs.iterator(); it.hasNext(); ) { ConfigSource config = (ConfigSource) it.next(); items.addAll(config.getValidItems(extensionPoint)); } return items; } finally { this.unlock(); } } COM: <s> returns an array of all registered config item objects implementing </s>
funcom_train/20241166
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getCmdScreenGastosReceitas() { if (cmdScreenGastosReceitas == null) {//GEN-END:|214-getter|0|214-preInit // write pre-init user code here cmdScreenGastosReceitas = new Command("Item", Command.SCREEN, 0);//GEN-LINE:|214-getter|1|214-postInit // write post-init user code here }//GEN-BEGIN:|214-getter|2| return cmdScreenGastosReceitas; } COM: <s> returns an initiliazed instance of cmd screen gastos receitas component </s>
funcom_train/36954489
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void deleteProjects(final String[] projectNames) throws CoreException { ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() { public void run(IProgressMonitor monitor) throws CoreException { if (projectNames != null){ for (int i = 0, max = projectNames.length; i < max; i++){ if (projectNames[i] != null) deleteProject(projectNames[i]); } } } }, null); } COM: <s> batch deletion of projects </s>
funcom_train/189293
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void paint ( Graphics g ){ if ( initialized ){ g.setColor( 255, 255, 255 ); g.fillRect( 0, 0, getWidth(), getHeight() ); g.drawImage(ImageUtil.getInstance().loadImage("Splash.png"),0,0,Graphics.TOP|Graphics.LEFT); } } COM: <s> required paint implementation </s>
funcom_train/15914512
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void addDBInfo( ConfigAgentSpecifier agentSpecifier ) { Enumeration keyE = dbInfoProps.keys(); while ( keyE.hasMoreElements() ) { String key = (String)keyE.nextElement(); String val = dbInfoProps.getProperty( key ); agentSpecifier.addArgument( new ConfigArgument( key + NavigatorAgent.EQUALS + val ) ); } } COM: <s> add arguments for database configuration if any </s>
funcom_train/18645110
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean canBeInitiated() { boolean ret=false; if (getRoot() == Boolean.TRUE) { // Check if the trigger message activities for this // root behavior have a 'send', indicating that // the behavior can be initiated (instantiated) java.util.List acts= getNextMessageRelevantActivities(null, true, null, null); java.util.Iterator iter=acts.iterator(); while (ret == false && iter.hasNext()) { if (iter.next() instanceof SendImpl) { ret = true; } } } return(ret); } COM: <s> this method determines whether an instance of this </s>
funcom_train/18111824
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addCreatorOfPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Equipment_CreatorOf_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Equipment_CreatorOf_feature", "_UI_Equipment_type"), BioDBPackage.Literals.EQUIPMENT__CREATOR_OF, true, false, true, null, null, null)); } COM: <s> this adds a property descriptor for the creator of feature </s>
funcom_train/7994247
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addMimeType( String ext, String mimeType) { mimeTypes.put( ext, mimeType); if ( log.isDebugEnabled()) { Formatter formatter = new Formatter(); log.debug( formatter.format( "Adding mime type: <%s> for files extension: <%s>.", mimeType , ext)); } } COM: <s> add new mime type to existing set of available mime types </s>
funcom_train/18219805
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected int writeFolderTableEntry(ScmFolder newFolder, int branchID) { int folderID; folderID = SCMDatabaseVisitor.updateFolderTable(new FolderTableEntry( getDevelopmentLineID(newFolder), newFolder .getDevelopmentLineType(), getEnabledIntValue(newFolder .isEnabled()), newFolder.getName(), newFolder.getPath(), newFolder.getProjectName())); return folderID; } COM: <s> writes a single folder table entry </s>
funcom_train/50552627
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private MutableTreeNode insertNode(final String what, final MutableTreeNode where) { final MutableTreeNode node = new DefaultMutableTreeNode(what); insertNodeInto(node, where, where.getChildCount()); return node; } // insertNode(Node,MutableTreeNode):MutableTreeNode COM: <s> inserts a node and returns a reference to the new node </s>
funcom_train/4289392
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addOperatorPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_BooleanExpression_operator_feature"), getString("_UI_PropertyDescriptor_description", "_UI_BooleanExpression_operator_feature", "_UI_BooleanExpression_type"), RequirementsPackage.Literals.BOOLEAN_EXPRESSION__OPERATOR, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the operator feature </s>
funcom_train/34621612
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Diagram findDiagram(List<Diagram> diagrams, String diagramId) { for (Diagram diagram : diagrams) { XMLResource resource = (XMLResource)diagram.eResource(); String id = resource.getID(diagram); if (id.equals(diagramId)) { return diagram; } } if (!diagrams.isEmpty() && diagramId == null || diagramId.equals("")) { Diagram diagram = diagrams.get(0); return diagram; } return null; } COM: <s> returns the diagram with the matching id </s>
funcom_train/26397166
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void assertExitCodeNot(final int code) throws CruiseControlException { if (exitCode == code) { throw new CruiseControlException( "The command \"" + this.toString() + "\" returned exit code \"" + exitCode + "\".\n" + "Stdout: " + stdout + "Stderr: " + stderr); } } COM: <s> asserts that the exit code of the command is not a given value </s>
funcom_train/13450903
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Vector getLoadedWishes() { Vector result = null; // 'rootWishes' is a property of the wishListform in the // serverapplication final String key = WlCommonConstants.FORM_ATTRIBUTE_LIST_ELEMENTS; if (lastServerResponse.getServerResult().containsKey(key)) { result = (Vector) lastServerResponse.getServerResult().get( key); } return result; } COM: <s> gets the loaded wishes if the last forward performed by the server was </s>
funcom_train/5784056
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeResourceWrapperByInfo(RWInfo rwi) throws CouldntRemoveWrapperException { if (rw_hashtable.get(rwi) != null) { rw_hashtable.remove(rwi); log.debug("resource wrapper removed."); } else { log.error("couldn't remove because object does not exists in the hashtable."); throw new CouldntRemoveWrapperException(); } } COM: <s> remove a resource wrapper from the pool of resources of the drm </s>
funcom_train/41233857
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void undo(int txnum) { BufferMgr buffMgr = Storager.getBufferMgr(); String dbname=logMgr.databaseName(); Buffer buff; try { buff = buffMgr.pin(dbname, blk); } catch (FileNotExistException e) { throw new RuntimeException("can not access block "+blk.toString()); } buff.setInt(offset, val, txnum, -1); buffMgr.unpin(buff); } COM: <s> replaces the specified data value with the value saved in the log record </s>
funcom_train/44163339
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void dropGoods(AIGoods ag) { if (ag.getTransport() != null && ag.getTransport().getMission() instanceof TransportMission) { ((TransportMission)ag.getTransport().getMission()) .removeFromTransportList(ag); } removeAIGoods(ag); ag.dispose(); } COM: <s> drops some goods from the goods list and cancels any transport </s>
funcom_train/28754948
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setCloneid(String newVal) { if ((newVal != null && this.cloneid != null && (newVal.compareTo(this.cloneid) == 0)) || (newVal == null && this.cloneid == null && cloneid_is_initialized)) { return; } this.cloneid = newVal; cloneid_is_modified = true; cloneid_is_initialized = true; } COM: <s> setter method for cloneid </s>
funcom_train/8362792
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String fullUrl(Object pageUrl, Object link) { if (pageUrl != null && link != null) { return CommonUtil.fullUrl(pageUrl.toString(), link.toString()); } throw new BaseException("Cannot make full url for null argumants!"); } COM: <s> calculates full url for specified page url and link </s>
funcom_train/2904326
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Dimension getSuggestedSize(String size){ if(size != null){ if(size.compareTo("16x16")==0){ return new Dimension(24, 30); } else if(size.compareTo("22x22")==0){ return new Dimension(30, 36); } else if(size.compareTo("32x32")==0){ return new Dimension(40, 46); } else if(size.compareTo("48x48")==0){ return new Dimension(56, 62); } else if(size.compareTo("64x64")==0){ return new Dimension(72, 78); } else if(size.compareTo("128x128")==0){ return new Dimension(136, 142); } } return new Dimension(40, 46); } COM: <s> get a suggested component size </s>
funcom_train/46837086
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean showModule(){ try{ //ebiMain._ebifunction.getIEBIToolBarInstance().resetToolBar(); if(!ebiExtension.ebiMain(null)){ return false; } }catch(Exception ex){ ex.printStackTrace(); EBIExceptionDialog.getInstance(EBIPGFactory.printStackTrace(ex)).Show(EBIMessage.NEUTRINO_DEBUG_MESSAGE); } return true; } COM: <s> call the main method ebi main </s>
funcom_train/14327684
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void init(ServletConfig config) throws ServletException { super.init(config); ServletContext con = config.getServletContext(); //Get the full path for the src directory path = con.getRealPath("/"); System.out.println("path=" + path); bexi_path = con.getInitParameter("BEXI_PATH"); System.out.println("BEXI_PATH=" + bexi_path); } COM: <s> initialize global variables </s>
funcom_train/2319401
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ICppUnitLibrary getCppUnitLibrary() { IPreferenceStore preferenceStore = getPreferenceStore(); String currentCppUnitLibraryName = preferenceStore .getString(ICppUnitPreferenceConstants.SELECTED_CPP_UNIT_LIBRARY); ICppUnitLibraryModel cppUnitModel = CppUnitLibrariesPersistentStore.getSharedModel(); ICppUnitLibrary cppUnitLibrary = cppUnitModel.getLibrary(currentCppUnitLibraryName); return cppUnitLibrary; } COM: <s> returns the current selected cpp unit library </s>
funcom_train/38396181
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public double filterBell(double x) { if (x < 0) x = -x; if (x < .5) { return .75-(x*x); } if (x < 1.5) { x = x-1.5; return .5*(x*x); } return 0.; } COM: <s> bell filter used in interpolation </s>
funcom_train/33895915
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getMessage() { if (errorMessage != null) return errorMessage; String message; try { message = rb.getString(errorCode); } catch (MissingResourceException mse) { message = "Can't get the message of the Error Code"; } message = MessageFormat.format(message, (Object[]) errorArgs); return errorCode + ": " + message; } COM: <s> getting error message </s>
funcom_train/30138759
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void populateTable() throws Exception { String[] periods = {Outage.FUTURE, Outage.CURRENT, Outage.RECENT}; for(int i=0;i<periods.length;i++){ System.out.println("OUTAGE FOR "+periods[i]); ArrayList<Outage> outageList = DataFetcher.getOutages(periods[i]); //save updated data, data will only be updated and not deleted saveData(outageList, periods[i]); log.info("merge outage records in period '"+periods[i]+"' : "+outageList.size()); } } COM: <s> fetch remote data populating order is from future recent because </s>
funcom_train/18461107
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Gene newGeneInternal() { try { MutipleIntegerGene result = new MutipleIntegerGene(getConfiguration(), m_lowerBounds, m_upperBounds, m_significance); return result; } catch (InvalidConfigurationException iex) { throw new IllegalStateException(iex.getMessage()); } } COM: <s> provides implementation independent means for creating new gene </s>
funcom_train/3099119
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public State getParentState(State state) { if (state.equals(stateMachine.getTop())) return null; DefaultMutableTreeNode stateTreeNode = (DefaultMutableTreeNode) allStates.get(state); DefaultMutableTreeNode parentTreeNode = (DefaultMutableTreeNode) stateTreeNode.getParent(); return (State) parentTreeNode.getUserObject(); } COM: <s> returns the parent state of the given state or null if </s>
funcom_train/16596070
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void delFFrame(IFFrame frame) { for (int i = 0; i < getEFS().getAllFFrames().length; i++) { if (getEFS().getFFrame(i).equals(frame)) { getEFS().removeFFrame(i); } } updateFFrames(); } COM: <s> remove the fframe of parameter </s>
funcom_train/947569
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String getConfigurationSystemId() { String name = getTestName() + ".xml"; URL url = getClass().getResource(name); if (url == null) { throw new RuntimeException("Failed to locate configuration resource '" + name + "'"); } return url.toExternalForm(); } COM: <s> return the system id absolute url of the configuration file </s>
funcom_train/7343417
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object getObject(Object object, String name) { if (object instanceof Map) { return MAP_PROBE.getObject(object, name); } else if (object instanceof org.w3c.dom.Document) { return DOM_PROBE.getObject(object, name); } else { return BEAN_PROBE.getObject(object, name); } } COM: <s> gets an object from a map or bean </s>
funcom_train/1663546
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void actionPerformed(ActionEvent e) { Object source = e.getSource(); if ((source == okButton) || (source == cancelButton)){ goon = false; if(source == okButton) { if(list.getSelectedValue() == null) return; selectedValue = (ServiceInfo) displayedServiceInfos.get(list.getSelectedValue()); } else cancelledByUser = true; synchronized (this) { notifyAll(); } Logger.info(this, "User has selected : " + selectedValue); } } COM: <s> the user has selected something notify the main loop and process the data </s>
funcom_train/22951783
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getOutputNameFromData(int outputVariable) { String name = ""; Object[] outputAttributes = GlobalData.getInstance().getOAttr().toArray(); OutputAttribute oa = (OutputAttribute) outputAttributes[outputVariable]; name = oa.getName(); return name; } COM: <s> get the name of the output attribute </s>
funcom_train/8790823
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Command createChangeConstrainCommand(ChangeBoundsRequest request, EditPart child, Object constraint) { if ((child instanceof StoryCardEditPart) && (constraint instanceof Rectangle)) { return new StoryCardUpdateSizeLocationCommand((StoryCardModel) child.getModel(), request, (Rectangle) constraint); } return super.createChangeConstraintCommand(request, child, constraint);// } COM: <s> same as the table xylayout policy this is specific to the backlog </s>
funcom_train/17728585
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testServiceView() throws Exception { logger_.info("Running testServiceView..."); JPanel p = new JPanel(new BorderLayout()); MyService svc = new MyService(); ServiceView2 view = new ServiceView2(svc, svc.getStateMachine()); p.add(view); launchInDialog(p); } COM: <s> tests service view </s>
funcom_train/21778383
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addChild(final MDIInternalFrame child) throws IllegalArgumentException { if(this.children == null) { this.children = new ArrayList(3); } if(this.children.contains(child)) { throw new IllegalArgumentException("Attempted to add a child twice"); } this.children.add(child); } COM: <s> add a child to this frame </s>
funcom_train/46024432
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString(){ StringBuffer rtn = new StringBuffer(); rtn.append(getClass().getSimpleName()+"("+getNumEdges()+","+getTotalWeigth()+"):"); for(Edge e: edges){ rtn.append("\n\t"+e); } return rtn.toString(); } COM: <s> returns a string representation of this path </s>
funcom_train/15490916
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void nudge(int key) { switch(key) { case KeyEvent.VK_UP: y--; if (y<0 && (type!=RECTANGLE||clipboard==null)) y = 0; break; case KeyEvent.VK_DOWN: y++; if ((y+height)>=yMax && (type!=RECTANGLE||clipboard==null)) y = yMax-height; break; case KeyEvent.VK_LEFT: x--; if (x<0 && (type!=RECTANGLE||clipboard==null)) x = 0; break; case KeyEvent.VK_RIGHT: x++; if ((x+width)>=xMax && (type!=RECTANGLE||clipboard==null)) x = xMax-width; break; } updateClipRect(); imp.draw(clipX, clipY, clipWidth, clipHeight); oldX = x; oldY = y; showStatus(); } COM: <s> nudge roi one pixel on arrow key press </s>
funcom_train/33331878
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setDate(final int year, final int month, final int day) { setupCalendarIfRequired(); calendar.set(Calendar.YEAR, year); calendar.set(Calendar.MONTH, month - 1); calendar.set(Calendar.DAY_OF_MONTH, day); } COM: <s> sets the date but the time portion is left unchanged </s>
funcom_train/44011324
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetRevSrcID() { System.out.println("getRevSrcID"); CouponBO instance = new CouponBO(); String expResult = ""; String result = instance.getRevSrcID(); 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 rev src id method of class edu </s>
funcom_train/18199021
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getPrefListPanel() { if (prefListPanel == null) { GridLayout gridLayout19 = new GridLayout(); prefListPanel = new JPanel(); prefListPanel.setLayout(gridLayout19); gridLayout19.setRows(1); gridLayout19.setColumns(1); prefListPanel.add(getJScrollPane(), null); } return prefListPanel; } COM: <s> this method initializes j panel1 </s>
funcom_train/51658298
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void install(ContentAssistant contentAssistant, Table table) { fContentAssistant= contentAssistant; fTable= table; if (Helper.okToUse(fTable)) { Shell shell= fTable.getShell(); if (Helper.okToUse(shell)) { fShell= shell; fShell.addShellListener(this); } fTable.addFocusListener(this); fScrollbar= fTable.getVerticalBar(); if (fScrollbar != null) fScrollbar.addSelectionListener(this); } } COM: <s> installs this closer on the given table opened by the given content assistant </s>