__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/34562910
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Iter iter() throws QueryException { try { final Iter iter = iter(root); if(!updating) return iter; final Item i = iter.finish(); updates.apply(); if(context.data != null) context.update(); return i.iter(); } catch(final StackOverflowError ex) { if(Prop.debug) ex.printStackTrace(); Err.or(XPSTACK); return null; } } COM: <s> returns a result iterator </s>
funcom_train/5546073
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: // private void refreshGUIOptions() { //Check if there is a "GuiOptions" object in the session. This object will be placed in the session at the "OptionsPage.jsp" // Object o = getSessionManager().getValue(SESSION_VALUE_GUI_OPTIONS); // if(o==null) // return; // GuiOptions gui = ((GuiOptions)o); //Customize the nav bar. // int iNavBarOrient = gui.getNavBarOrientation(); // customizeNavbar(iNavBarOrient); // } COM: <s> changes the page appearance </s>
funcom_train/26323052
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getFullName() { if (this.fullName == null) { if (this.getParent() != null) { this.fullName = this.getParent().getFullName() + "/" + this.getKey(); } else { this.fullName = "/" + this.getKey(); } } return this.fullName; } COM: <s> this method will return the full name of the node in the tree </s>
funcom_train/12379560
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: // public void setFolder(Folder newValue) { // try { // if (folder != null) { // folder.close(false); // folder = null; // } // folder = newValue; // if (folder != null) { // folder.open(Folder.READ_ONLY); // totalMessages = folder.getMessageCount(); // } // // } catch (MessagingException ex) { // ((Application) getApplicationInstance()).processFatalException(ex); // } // getSelectionModel().clearSelection(); // refresh(); // fireMessageSelection(); // } COM: <s> sets the displayed folder </s>
funcom_train/28471806
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetSubscribedCategory() { CategorySubscription testCatSubcr = new CategorySubscription(); Category testCategory1 = new Category(); Category testCategory2 = new Category(); testCatSubcr.setSubscribedCategory(testCategory1); assertTrue(testCatSubcr.getSubscribedCategory() == testCategory1); testCatSubcr.setSubscribedCategory(testCategory2); assertTrue(testCatSubcr.getSubscribedCategory() == testCategory2); } COM: <s> tries to get and to set a category into category subscription </s>
funcom_train/25946381
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Topic getTopic(String topicName) throws ServiceLocatorException { Topic topic = null; try { topic = (Topic)ic.lookup(topicName); } catch (NamingException ne) { throw new ServiceLocatorException(ne); } catch (Exception e) { throw new ServiceLocatorException(e); } return topic; } COM: <s> this method obtains the topc itself for a caller </s>
funcom_train/11111647
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getType(URL url) throws IOException { InputStream stream = url.openStream(); try { Metadata metadata = new Metadata(); metadata.set(Metadata.RESOURCE_NAME_KEY, url.toString()); return detect(stream, metadata).toString(); } finally { stream.close(); } } COM: <s> determines the mime type of the resource pointed to by the specified url </s>
funcom_train/2386213
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void remove(AlbumType type) throws PhotoAlbumException{ try { // Remove the type super.remove(type); } catch (HibernateException he){ throw new PhotoAlbumException("Could not remove the album type, cause of an Hibernate problem."); } catch (HbnDaoException hde){ throw new PhotoAlbumException("Could not remove the album type."); } } COM: <s> remove an code album type code instance </s>
funcom_train/3119240
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void add(final Connection connection) { final InteractionGraph oldGraph = connection.getInteractionGraph(); if (oldGraph != null) { oldGraph.remove(connection); } connection.setInteractionGraph(this); connections.add(connection); fireElementAdded(connections.size() - 1, connection); } COM: <s> adds the given connection to the interaction graph </s>
funcom_train/9889813
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void updateMaxValues(ISlideData slideData) { float value; value = slideData.getMaxCY3(); if (value > maxCy3) { setMaxCY3(value); } value = slideData.getMaxCY5(); if (value > maxCy5) { setMaxCY5(value); } updateMaxMinRatios(slideData); } COM: <s> updates the data cy3 and cy5 max values </s>
funcom_train/19101073
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void mouseMove(MouseEvent evt, int x, int y) { Figure figure = getActiveView().drawing().findFigure(x, y); if (figure instanceof Transition) { if (figure.getAttribute(FigureAttributeConstant.getConstant("Active")).toString().equals("true")) { getActiveView().setCursor(new AWTCursor(Cursor.HAND_CURSOR)); } } else { getActiveView().setCursor(new AWTCursor(Cursor.DEFAULT_CURSOR)); } } COM: <s> handles mouse moves if the mouse button is up </s>
funcom_train/26677681
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int findPosition(List<DicomObjectType> modified, int position) { if( position<=0 ) return 0; int min = 0; int max = modified.size(); int size = max-1; while(min<size) { int test = (min+max)/2; ImageBean image = (ImageBean) modified.get(test); if( image.getPosition()>position ) { max = test; } else if( image.getPosition() +image.getNumberOfFrames() <= position ) { min = test; } else { return test; } } return -1; } COM: <s> finds the position of the image bean with the given position item </s>
funcom_train/49044747
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addPredicatePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ModifyModelReaction_Predicate_feature"), getString("_UI_PropertyDescriptor_description", "_UI_ModifyModelReaction_Predicate_feature", "_UI_ModifyModelReaction_type"), EventPackage.Literals.MODIFY_MODEL_REACTION__PREDICATE, !((ModelObject) object).isPredefined(), false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the predicate feature </s>
funcom_train/43345116
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void openThreads(int toOpen) { if (toOpen > maxThreads) { toOpen = maxThreads; } if (0 == currentThreadCount) { pool = new LinkedList<ControlRunnable>(); } for (int i = currentThreadCount; i < toOpen; i++) { pool.addFirst(new ControlRunnable(this, i)); } currentThreadCount = toOpen; } COM: <s> open the given number of new threads </s>
funcom_train/42279908
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean hasSubField( MappingFieldPanel subField ) { boolean bFound = subFieldPanels.contains(subField); for( int i = 0; i < subFieldPanels.size(); i++ ) bFound |= ((MappingFieldPanel) subFieldPanels.get(i)).hasSubField(subField); return bFound; } COM: <s> check if this panel or any sub field contains a given sub field </s>
funcom_train/1301648
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long getRemainingEstimate() { long result = super.getRemainingEstimate(); final int cfi = curFileIndex.get(); if (cfi < workFactories.length) { final WorkFactory cwf = workFactories[cfi]; final File cf = files[cfi]; final long curRemainder = cwf.getRemainingEstimate(); result += curRemainder / cf.length() * totalLength; } return result; } COM: <s> get an estimate for the remaining work to do </s>
funcom_train/37435161
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void normalizeAndPrint(final String s, final boolean isAttValue) { final int len = (s != null) ? s.length() : 0; for (int i = 0; i < len; i++) { normalizeAndPrint(s.charAt(i), isAttValue); } } COM: <s> normalizes and prints the given string </s>
funcom_train/12189745
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testConcatTwoStringArgs() throws Exception { Expression exp = compileExpression("concat('con', 'cat')"); Value result = exp.evaluate(context); assertTrue("fn:concat should result in a String value", result instanceof StringValue); assertEquals("fn:concat expression result should be concat", "concat", ((StringValue) result).asJavaString()); } COM: <s> test the concat function with two string args </s>
funcom_train/13874920
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addIsVirtualPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ImperativeCallExp_isVirtual_feature"), getString("_UI_PropertyDescriptor_description", "_UI_ImperativeCallExp_isVirtual_feature", "_UI_ImperativeCallExp_type"), QvtoperationalPackage.Literals.IMPERATIVE_CALL_EXP__IS_VIRTUAL, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the is virtual feature </s>
funcom_train/50961558
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getBookmarkString(int whichString) { if (bookmark==-1) return null; try { rs.relative(bookmark-rs.getRow()); return rs.getString(whichString); } catch (Exception e) { System.err.println("Error getting bookmark: "+e.getMessage()); return null; } } COM: <s> return the values from the result set at column which string </s>
funcom_train/44350047
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private MembershipFunction fclTreeFuzzifyTermSigmoidal(Tree tree) { if (debug) Gpr.debug("Tree: " + tree.toStringTree()); Value gain = new Value(tree.getChild(0), this); Value t0 = new Value(tree.getChild(1), this); MembershipFunction membershipFunction = new MembershipFunctionSigmoidal(gain, t0); return membershipFunction; } COM: <s> parse a tree for sigmoidal membership function </s>
funcom_train/35058032
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String include(String path_to_fragment, String pojoName, Object pojo) throws ServletException { String output = ""; getRequest().setAttribute(pojoName, pojo); output = include(path_to_fragment); getRequest().removeAttribute(pojoName); return output; } COM: <s> renders a jsp fragment </s>
funcom_train/13221261
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getNextBegin() { synchronized (this) { for (int i = 0; i < active.length; i++) { if (!active[i]) { active[i] = true; activeCount++; return i * requestPieceSize; } } // (new Exception("out of beings")).printStackTrace(); return -1; } } COM: <s> returns the index of the next chunk to download </s>
funcom_train/10912367
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateExtentsFromChildren() { int ipd = 0; int bpd = 0; for (int i = 0, len = inlineAreas.size(); i < len; i++) { ipd = Math.max(ipd, inlineAreas.get(i).getAllocIPD()); bpd += inlineAreas.get(i).getAllocBPD(); } setIPD(ipd); setBPD(bpd); } COM: <s> updates the extents of the line area from its children </s>
funcom_train/31702405
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void createGridColors(ICanvas canvas) { normColor = canvas.getColor(); float normGray = (float) canvas.getBackground().getBlue() / 256f; float minorGray = normGray * 0.9f; float majorGray = minorGray * 0.8f; minorTickColor = new Color(minorGray, minorGray, minorGray); majorTickColor = new Color(majorGray, majorGray, majorGray); } COM: <s> creates the grid colors </s>
funcom_train/44772118
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof EventState) { EventState other = (EventState) obj; return this.type == other.type && this.parentUUID.equals(other.parentUUID) && this.childRelPath.equals(other.childRelPath) && this.session.equals(other.session); } return false; } COM: <s> returns code true code if this code event state code is equal to </s>
funcom_train/5395756
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetStartTime() { System.out.println("setStartTime"); long time = 0L; GZipProcess instance = null; instance.setStartTime(time); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } COM: <s> test of set start time method of class org </s>
funcom_train/31213950
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isBound() { if (containsVariables >= 0) return containsVariables == 0; Term[] tt = this.getTerms(); for (int i = 0; i < tt.length; i++) { if( tt[i]==null ) System.err.println("oho"); if (tt[i].containsVariables()) { containsVariables = 1; return false; } } containsVariables = 0; return true; } COM: <s> whether the fact contains variables </s>
funcom_train/4361605
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void resolveGroup() { OppNode top = null; while ((top = (OppNode)oppStack.remove(0)) != null) { // Let it fill its branches top.popValues(nodeStack); // Stick it on the resolved node stack nodeStack.add(0, top); } } COM: <s> resolves all pending opp nodes on the stack until the next group marker </s>
funcom_train/40677635
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void connect(final VALUE_CHANGED listener) { element.connect(VALUE_CHANGED.class, listener, new GstCallback() { @SuppressWarnings("unused") public boolean callback(Pointer colorBalance, ColorBalanceChannel channel, int value) { listener.colorBalanceValueChanged(ColorBalance.this, channel, value); return true; } }); } COM: <s> add a listener for norm changed messages </s>
funcom_train/9726879
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void readString() { int c = nextChar(); //read off the initial " int lastChar = c; c = nextChar(); while ((c > 0) && !((c == '"') && (lastChar != '\\'))) { lastChar = c; c = nextChar(); } } COM: <s> move the pointer past a string enclosed in quotes </s>
funcom_train/43269538
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setShipName(String shipName) { if ((shipName != null) && (shipName.length() > 32)) { throw new IllegalArgumentException("The platformName, " + shipName + ", is longer than the maximum allowed length of 32 characters. "); } this.shipName = shipName; } COM: <s> set the ship name that produces this video archive set </s>
funcom_train/5725592
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateUniversityIndex(UniversityInfo universityInfo) { logger.debug("Starting method updateUniversityIndex"); try { university = universityDao.universityInfoToEntity(universityInfo); if (universityInfo.isEnabled()) { logger.debug("method updateUniversityIndex: updateIndex"); indexerService.updateIndex(university); } else { logger.debug("method updateUniversityIndex: deleteIndex"); deleteUniversityFromIndexCascade(university); } } catch (IndexerApplicationException e) { logger.error(e); } } COM: <s> updates university index entry </s>
funcom_train/18067421
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setCollideId(byte collideId) { byte[] collide=new byte[this.getCollideId().length+1]; int i; for(i=0;i<this.getCollideId().length;i++){ collide[i]=this.getCollideId()[i]; } collide[i]=collideId; this.setCollideId(collide); } COM: <s> adds the collided player to the collide id list </s>
funcom_train/30075647
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected ModelAndView onSubmit(Object command) throws ServletException { // the edited object Vo vo = (Vo) command; // delegate the update to the Business layer getGpir().storeVo(vo); return new ModelAndView(getSuccessView(), "voId", Integer.toString(vo.getId())); } COM: <s> method updates an existing code vo code when the form is committed </s>
funcom_train/40930716
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getLlegadaOrigenCommand() { if (llegadaOrigenCommand == null) {//GEN-END:|338-getter|0|338-preInit // write pre-init user code here llegadaOrigenCommand = new Command("Llegada", Command.OK, 0);//GEN-LINE:|338-getter|1|338-postInit // write post-init user code here }//GEN-BEGIN:|338-getter|2| return llegadaOrigenCommand; } COM: <s> returns an initiliazed instance of llegada origen command component </s>
funcom_train/41150492
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { StringBuffer sb = new StringBuffer(m_rows * (m_columns + 1) ); for (int i = 0; i < m_rows; i++) { for (int j = 0; j < m_columns; j++) { sb.append(get(i, j) ? 1 : 0); } sb.append("\n"); } return sb.toString(); } COM: <s> create a compact string representation of the matrix </s>
funcom_train/9879034
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void addClassificationResultNodes(Frame frame, DefaultMutableTreeNode node, long time, String function, Experiment experiment) { addExpressionImages(node); addCentroidViews(node); addTableViews(node); add3DViewNode(frame, node, experiment); addClusterInfo(node); addGeneralInfoNode(node, time, function); } COM: <s> adds classification nodes into a result tree root </s>
funcom_train/44628355
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: @Test public void testLineComment11() { helpScanner("//@@x\\@@@\nrequires ", new Enum<?>[]{IDENTIFIER,ERROR,MONKEYS_AT,MONKEYS_AT,MONKEYS_AT,EJML,IDENTIFIER}, null,1); checkMessages("/TEST.java:1: A backslash in a JML comment expects to be followed by a valid identifier",6); } COM: <s> test a bad backslash </s>
funcom_train/15859075
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void resetAttribute(String dn, String attrType, String newValue) throws LDAPException { this.ldapAccess.checkConnection(); /* build an attribute */ LDAPAttribute attr = new LDAPAttribute(attrType, newValue.getBytes()); /* build a modification with the attribute */ LDAPModification modification = new LDAPModification(LDAPModification.REPLACE, attr); /* submit the modification to the server */ this.ldapAccess.ldapConnection.modify(dn, modification); } COM: <s> sets the value of an attribute of a specific entry </s>
funcom_train/3411061
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void printComponents(Graphics g) { if (ncomponents > 0) { Component c = component[0]; Point p = c.getLocation(); Dimension vs = getViewportSize(); Insets i = getInsets(); Graphics cg = g.create(); try { cg.clipRect(i.left, i.top, vs.width, vs.height); cg.translate(p.x, p.y); c.printAll(cg); } finally { cg.dispose(); } } } COM: <s> prints the component in this scroll pane </s>
funcom_train/13751090
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void enableAutovalidating(boolean state) { Preferencies.setValue("Autovalidate", new Boolean(state).toString()); m_menu.setAutovalidating(state); this.m_infoGui.setAutovalidation(state); if (state == false) { this.m_capturer.stopCapturing(); } else { if (m_capturer != null) { this.m_capturer.startCapturing(); this.m_infoGui.setAutovalidation(true); } } } COM: <s> enables disables auto validation tcp ip stack capturing </s>
funcom_train/30009263
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetPrintInfo() { System.out.println("setPrintInfo"); boolean info = true; Document instance = new Document(); int expResult = 0; int result = instance.setPrintInfo(info); 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 set print info method of class papyrus </s>
funcom_train/13995552
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testParameterParser() throws Exception { servlet.handleRequest(request, new MockHttpServletResponse()); assertParameter(request, CMD_CREATE_PRESENTATION, COMMAND_PARAMETER); assertParameter(request, "/test/targetpage", PAGE_PARAMETER); assertParameter(request, "detailtest", PRESENTATION_PARAMETER); assertParameter(request, "key$value", FRAGMENT_PARAMETER); } COM: <s> tests that a parameter parser with the correct values is installed in </s>
funcom_train/13690394
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getNordPanel() { if (nordPanel == null) { FlowLayout flowLayout = new FlowLayout(); flowLayout.setAlignment(java.awt.FlowLayout.LEFT); betreffLabel = new JLabel(); betreffLabel.setText(Helper.getMessage("general.labelSubject")); nordPanel = new JPanel(); nordPanel.setLayout(flowLayout); nordPanel.add(betreffLabel, null); nordPanel.add(getBetreffTextField(), null); } return nordPanel; } COM: <s> initializes nord panel </s>
funcom_train/36717338
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: synchronized public boolean addTask(Task t, String s) { int priority; /* Not on a fast path, so this should be acceptable. */ try { priority = Integer.parseInt(s); } catch (NumberFormatException nfe) { priority = 0; } //System.out.println("Adding Task with priority "+priority); t.schedData = new FPData(priority); waitingList.add(t); return true; } COM: <s> add a new task to this schedulers structures </s>
funcom_train/50429653
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void shrinkTable(int numattributes, int offset) { // will probally need to do some modification to this // function to make it work correctly if(numattributes==1) return; double[][] tmp = new double[rows][columns]; numcolumns /= numattributes; for(int i=0;i<numcolumns;i++) { for(int j=0;j<num;j++) { for(int k=0;k<numattributes;k++) { tmp[j][i]+=values[j][k*offset+i]; } } } values = tmp; } COM: <s> this function allows the tables to shrink when a node has </s>
funcom_train/9163013
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private FunctionType function(Unit context, FunctionTypeNode n) { Type returnType = toType(context, n.getReturnType()); List<Type> parameters = new ArrayList<Type>(n.getParameterTypes().size()); for (TypeNode node: n.getParameterTypes()) { parameters.add(toType(context, node)); } FunctionType ft = new FunctionType(this, returnType, parameters); return typeCache.cache(ft); } COM: <s> converts a function type node into a function type </s>
funcom_train/7274681
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void acceptConnection(String word, Socket socket) { boolean allowChats = ChatSettings.CHAT_ENABLED.getValue(); if (!allowChats) { IOUtils.close(socket); return; } if(!spamServices.isAllowed(socket.getInetAddress())) { IOUtils.close(socket); return; } InstantMessenger im = instantMessengerFactory.createIncomingInstantMessenger(socket); im.start(); } COM: <s> invoked by the acceptor to notify this class of a new connection </s>
funcom_train/32943836
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString(){ return userOid.toString() + "|" + userName + "|" + userRealName + "|" + sessionId + "|" + logonTime.toString() + "|" + (logoutTime == null ? "null" : logoutTime.toString()) + "|" + (duration == null ? "null" : duration.toString()); } COM: <s> comnvenient method for displaying all parameters </s>
funcom_train/46491320
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void deconfigure() throws CoreException { IProjectDescription description = getProject().getDescription(); ICommand[] commands = description.getBuildSpec(); for (int i = 0; i < commands.length; ++i) { if (commands[i].getBuilderName().equals(IUnitMetricsConstants.PROJECT_BUILDER)) { description.setBuildSpec((ICommand [])Arrays.remove(commands,i)); getProject().setDescription(description, null); return; } } } COM: <s> deconfigures the nature by removing the unit metrics builder from </s>
funcom_train/39269146
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean isPlural(String searchTerm) { boolean rc = false; if (searchTerm.endsWith("s")) { rc = true; // tentatively if (searchTerm.endsWith("ss")) { // ex: glass rc = false; } else if (searchTerm.endsWith("us")) { // ex: Uranus (But maybe "List_of_uranus" would find a special type of kangaroos?) rc = false; } } return rc; } COM: <s> is the search term plural </s>
funcom_train/195004
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void characters(char[] ch, int start, int length) throws SAXException { if(this.inIdFeature){ this.featString = this.featString + new String(ch, start, length); } else{ super.characters(ch, start, length); } } COM: <s> if we are in a feature with ids then keep characters </s>
funcom_train/16181687
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addMusicObject(MusicObject object) throws IllegalMusicObjectException { if (object instanceof TimeObject) { TimeObject timeObject = (TimeObject) object; duration += timeObject.getDuration(); musicObjects.add(timeObject); } else { throw new IllegalMusicObjectException("This object type is not allowed here"); } } COM: <s> adds an object to the bar </s>
funcom_train/29290103
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean checkGroupOfSurveyId(Integer group_id, String survey_id) throws EJBException { boolean check = false; try { Collection coll = getSurveyCMPLocalHome().findCheckGroupWhereSurveyId(group_id, survey_id); if(coll.size() >0) check = true; } catch (FinderException e) { // TODO Auto-generated catch block e.printStackTrace(); } return check; } COM: <s> check group id of survey id is true or false </s>
funcom_train/45018428
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addDistributionPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_NXdataVariable_distribution_feature"), getString("_UI_PropertyDescriptor_description", "_UI_NXdataVariable_distribution_feature", "_UI_NXdataVariable_type"), NexusPackageImpl.Literals.NXDATA_VARIABLE__DISTRIBUTION, true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the distribution feature </s>
funcom_train/18654208
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public InvocationContext findByTargetMethod( String methodPattern ){ RegexpWrapper regexp = new RegexpWrapper( methodPattern ); Iterator i = invocationContextList.iterator(); while( i.hasNext() ){ InvocationContext invocation = (InvocationContext) i.next(); if ( regexp.containedInString( invocation.getTargetMethod().toString() ) ) return invocation; } return null; } COM: <s> finds the first invocation for a given target method pattern </s>
funcom_train/8048515
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void disableGlobalInputProcessors(Iscene scene){ Set<AbstractGlobalInputProcessor> set = inputProcessorsToScene.keySet(); for (Iterator<AbstractGlobalInputProcessor> iter = set.iterator(); iter.hasNext();) { AbstractGlobalInputProcessor processor = (AbstractGlobalInputProcessor) iter.next(); if (inputProcessorsToScene.get(processor).equals(scene)){ processor.setDisabled(true); } } } COM: <s> disables the global inputprocessors that are associated with the given scene </s>
funcom_train/7528591
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean isParentLockNeeded(Fqn parent, InvocationContext ctx) { ReadCommittedNode parentNodeTmp = (ReadCommittedNode) ctx.lookUpNode(parent); InternalNode in = parentNodeTmp == null ? dataContainer.peekInternalNode(parent, true) : parentNodeTmp.getDelegationTarget(); return isParentLockNeeded(in); } COM: <s> tests if locking the parent is necessary when locking a specific node </s>
funcom_train/19060172
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String createBodyFromParts(String[] parts, String boundary) { // build new message body StringBuffer newBody = new StringBuffer(); for (int i = 0; i < parts.length; i++) { newBody.append("--" + boundary + "\n"); newBody.append(parts[i]); } newBody.append("--" + boundary + "--\n"); return newBody.toString(); } COM: <s> creates a multipart body from different body parts separated by the given </s>
funcom_train/3078359
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public List getAssociatedPostbuilderNames() { if (associatedPostbuilderNames == null) associatedPostbuilderNames = new ArrayList(); Iterator it = associatedPostbuilderNames.iterator(); while (it.hasNext()) { String name = (String) it.next(); if (getProject().getBuilderByName(name) == null) it.remove(); } return associatedPostbuilderNames; } COM: <s> get list of associated post builder names </s>
funcom_train/12561158
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void uCallFreeze() { if (Logging.REPORT_LEVEL <= Logging.INFORMATION) { Logging.report(Logging.INFORMATION, LogChannels.LC_HIGHUI_FORM_LAYOUT, "# in DisplayableLFImpl: uCallFreeze"); } synchronized (Display.LCDUILock) { lCallFreeze(); } } COM: <s> stop any further updates to physical screen because some </s>
funcom_train/18960081
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Country check1(Country b) { Vector neighbours = b.getNeighbours(); Country c = null; for (int i=0; i<neighbours.size(); i++) { if ( ownsNeighbours( (Country)neighbours.elementAt(i)) == false && ((Country)neighbours.elementAt(i)).getOwner() == player) return (Country)neighbours.elementAt(i); } return c; } COM: <s> checks if the player can make a valid tactical move </s>
funcom_train/4364289
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void write(MessageBytes mb) { if (mb.getType() == MessageBytes.T_BYTES) { ByteChunk bc = mb.getByteChunk(); write(bc); } else if (mb.getType() == MessageBytes.T_CHARS) { CharChunk cc = mb.getCharChunk(); write(cc); } else { write(mb.toString()); } } COM: <s> this method will write the contents of the specyfied message bytes </s>
funcom_train/25701626
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void load(String strURL) { String baseFileURL = null; try { baseFileURL = (new File(strURL)).toURL().toString(); } catch (Exception ex) { ex.printStackTrace(); return; } mainScene = x3dBrowser.createX3DFromURL(new String[] { baseFileURL }); x3dBrowser.replaceWorld(mainScene); } COM: <s> load a new scene </s>
funcom_train/28592278
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void closeConnection() { // If port is alread closed just return. if (!open) { return; } // Check to make sure sPort has reference to avoid a NPE. if (sPort != null) { try { // close the i/o streams. os.close(); is.close(); } catch (IOException e) { System.err.println(e); } // Close the port. sPort.close(); // Remove the ownership listener. //portId.removePortOwnershipListener(this); } open = false; } COM: <s> close the port and clean up associated elements </s>
funcom_train/25382459
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public AbstractJobTask getJobTaskById(String jobTaskId) throws UniversalWorkerException { if (Util.isSet(jobTaskId)) { return this.tasksMap.get(jobTaskId); } else { throw new UniversalWorkerException(Status.CLIENT_ERROR_NOT_FOUND, jobTaskId + " does not exist."); } } COM: <s> get a job task from an job identifier </s>
funcom_train/39016497
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void buildPanel() { mMandatoryPanel = buildMandatoryPanel(); mOptionalPanel = buildOptionalPanel(); setLayout(new BorderLayout()); add(mMandatoryPanel, BorderLayout.CENTER); if (mOptionalPanel != null) { add(mOptionalPanel, BorderLayout.SOUTH); } } COM: <s> builds the panel </s>
funcom_train/4809439
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean addUnit(Unit unit) throws SOTSException{ if(unitList.size() >= 10){ throw new SOTSException("This army is full"); } else if(unit.getArmy() != null){ throw new SOTSException("This unit is already in an army"); } else{ unitList.add(unit); unit.setArmy(this); setLists(); return true; } } COM: <s> adds a unit to the list of units in this army </s>
funcom_train/32191243
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String reeplaceAllInstanceIDs(String queryString, Map<String, String> map) { Iterator<String> iterator = map.keySet().iterator(); while (iterator.hasNext()) { String instanceID = iterator.next(); String jiraInstanceURL = map.get(instanceID); queryString = reeplaceInstanceID(queryString, jiraInstanceURL, instanceID); } return queryString; } COM: <s> replaces an lt instance id gt by external id of the instance </s>
funcom_train/40165943
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void close() { if (Thread.currentThread() == this) { closeImpl(); } else { try { queue.put(new Runnable() { public void run() { closeImpl(); } }); } catch (InterruptedException ex) { Logger.getLogger(NetworkController.class.getName()).log(Level.SEVERE, null, ex); } } } COM: <s> gracefully closes and releases all network connections </s>
funcom_train/2430944
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setDuration(ScheduleDuration duration) { if (duration == null) { startDateField.setDate(new Date()); setNoEndDate(); } else { startDateField.setDate(duration.getStartDate()); if (duration.hasEndDate()) { setDurationEndDate(duration.getEndDate()); } else { setNoEndDate(); } } } COM: <s> sets the code schedule duration code object to display in this panel </s>
funcom_train/42773218
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setMessage(String messageString, boolean force) { // must not set null text in a label message = messageString == null ? "" : messageString; //$NON-NLS-1$ if (messageLabel == null || messageLabel.isDisposed()) { return; } if (force || messageLabel.isVisible()) { messageLabel.setToolTipText(message); messageLabel.setText(shortenText(message, messageLabel)); } } COM: <s> set the message in the message label </s>
funcom_train/20553213
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JTextArea getJTextArea() { if (jTextArea == null) { jTextArea = new JTextArea(); jTextArea.setText(fsNoticesString); jTextArea.setFont(new Font("Dialog", Font.PLAIN, 10)); jTextArea.setLineWrap(true); jTextArea.setEditable(false); jTextArea.setSelectionStart(0); jTextArea.setSelectionEnd(0); } return jTextArea; } COM: <s> this method initializes j text area </s>
funcom_train/46414445
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public float getGuaranteedCapacity(String queue) { checkQueue(queue); float result = rmConf.getFloat(toFullPropertyName(queue, "guaranteed-capacity"), DEFAULT_GUARANTEED_CAPACITY); if (result < 0.0 || result > 100.0) { throw new IllegalArgumentException("Illegal capacity for queue " + queue + " of " + result); } return result; } COM: <s> get the guaranteed percentage of the cluster for the specified queue </s>
funcom_train/32829514
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Difference visit(MapDifference mapDifference, String keyString) { for (Map.Entry<Object, Difference> entry : mapDifference.getValueDifferences().entrySet()) { if (objectFormatter.format(entry.getKey()).equals(keyString)) { return entry.getValue(); } } return null; } COM: <s> returns the difference at the given key </s>
funcom_train/16141174
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public boolean restartPolyML() { // System.err.println("restarting polyml..."); try { if (polyMLProcess == null) { polyMLProcess = new PolyMLProcess(getPolyIDECmd()); } else { polyMLProcess.setCmd(getPolyIDECmd()); } polyMLProcess.restartProcess(); return true; } catch (IOException e) { // System.err.println("PolyMLPlugin: Failed to restart PolyML!"); // e.printStackTrace(); polyMLProcess = null; return false; } } COM: <s> restarts poly ml </s>
funcom_train/50155014
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void generateLuceneQueries() { VocabList list = vocab; for ( int i = 0; i < list.item.size(); i++ ) { VocabNode node = (VocabNode)list.item.get( i ); if ( node.list.item.size() > 0 ) { luceneQueries( node.list, node.name.substring( node.name.lastIndexOf( "." ) + 1, node.name.length() ) ); } } } COM: <s> populate the lucene query hash map with the query associated with each spot </s>
funcom_train/965431
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void initComponentDefaults(UIDefaults table) { super.initComponentDefaults(table); Object menuBarBorder = PlasticBorders.getThinRaisedBorder(); Object toolBarBorder = PlasticBorders.getThinRaisedBorder(); Object[] defaults = { "MenuBar.border", menuBarBorder, "ToolBar.border", toolBarBorder, }; table.putDefaults(defaults); } COM: <s> initializes the plastic3 d component defaults </s>
funcom_train/40913864
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean getIsCurrentBatch() { if (batchCursor == null) { return false; } final int batchAlphaIndex = (batchCursor.intValue() - 1) * userSessionModel.getNumberOfAdsPerBatch(); final int batchOmegaIndex = (batchCursor.intValue() * userSessionModel.getNumberOfAdsPerBatch()) - 1; return (getAdvertIndex() >= batchAlphaIndex) && (getAdvertIndex() <= batchOmegaIndex); } COM: <s> this method determines if this batch index is the current batch </s>
funcom_train/1540952
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void scale(double sx, double sy) { currentTransform.scale(sx, sy); try { writeTransform(new AffineTransform(sx, 0, 0, sy, 0, 0)); } catch (IOException e) { handleException(e); } } COM: <s> scales the current transform </s>
funcom_train/10299314
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public Presentation getPresentation(HelpSet hs, String name) { Popup thePopup = new Popup(hs); if (hs != null) { HelpSet.Presentation presentation = null; // get a named presentation if one exists if (name != null) { presentation = hs.getPresentation(name); } // get the default presentation if one exits if (presentation == null) { presentation = hs.getDefaultPresentation(); } // set the presentation // a null is ok here as it will just return. thePopup.setHelpSetPresentation(presentation); } return thePopup; } COM: <s> create a new popup for a given help set and help set </s>
funcom_train/22471321
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public Date lastYear() { GregorianCalendar g = new GregorianCalendar(); Date lastYear = DateTools.encodeDate(g.get(Calendar.DAY_OF_MONTH), g.get(Calendar.MONTH) + 1, g.get(Calendar.YEAR) - 1); return lastYear; } COM: <s> returns the date exactly 1 year ago not including time of the day </s>
funcom_train/46884668
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void expectRE(final String re) throws IOException { String line = readLine(); if (line != null && !Pattern.matches(re, line)) { throw new RuntimeException( "Expected '" + re + "', got '" + line + "'"); } } COM: <s> expect input from xboard which is matched against the supplied </s>
funcom_train/2288453
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void fireEvent(CmsEvent event) { fireEventHandler((List)m_eventListeners.get(event.getTypeInteger()), event); fireEventHandler((List)m_eventListeners.get(I_CmsEventListener.LISTENERS_FOR_ALL_EVENTS), event); } COM: <s> notify all event listeners that a particular event has occurred </s>
funcom_train/8662861
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { StringBuffer sbuf = new StringBuffer(); TypeParameter.toString(sbuf, params); sbuf.append(" extends ").append(superClass); if (interfaces.length > 0) { sbuf.append(" implements "); Type.toString(sbuf, interfaces); } return sbuf.toString(); } COM: <s> returns the string representation </s>
funcom_train/7443364
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Variant getPreferredVariant(List<? extends Variant> variants) { Variant result = null; if ((variants != null) && !variants.isEmpty()) { float bestScore = -1.0F; float current; // Compute the score of each variant for (Variant variant : variants) { current = scoreVariant(variant); if (current > bestScore) { bestScore = current; result = variant; } } } return result; } COM: <s> returns the best variant representation for a given resource according </s>
funcom_train/9367549
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSelected(boolean selected) { if (((mPrivateFlags & SELECTED) != 0) != selected) { mPrivateFlags = (mPrivateFlags & ~SELECTED) | (selected ? SELECTED : 0); if (!selected) resetPressedState(); invalidate(); refreshDrawableState(); dispatchSetSelected(selected); } } COM: <s> changes the selection state of this view </s>
funcom_train/25829694
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void printf(String s) { if (s.length() >= width) super.print(s); else if (justify == LEFT) super.print(s + padding.substring(0, width - s.length())); else super.print( padding.substring(0, width - s.length()) + s); } COM: <s> print a string in a field of the current </s>
funcom_train/46787024
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addPrecedesTasksPropertyDescriptor(Object object) { itemPropertyDescriptors.add(createItemPropertyDescriptor( ((ComposeableAdapterFactory) adapterFactory) .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Task_precedesTasks_feature"), getString( "_UI_PropertyDescriptor_description", "_UI_Task_precedesTasks_feature", "_UI_Task_type"), EZRealtimePackage.Literals.TASK__PRECEDES_TASKS, true, false, true, null, null, null)); } COM: <s> this adds a property descriptor for the precedes tasks feature </s>
funcom_train/13962848
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String recaptchaHTML() { Properties props = new Properties(); // props.setProperty("tabindex", null); String theme = stringValueForBinding("theme"); if (theme != null) { props.setProperty("theme", theme); } String errorMessage = stringValueForBinding("errorMessage"); String html = recaptcha().createRecaptchaHtml(errorMessage, props); return html; } COM: <s> returns the re captcha html chunk to render into the page </s>
funcom_train/14077120
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getAsColonSeparatedList() { String list = ""; boolean first = true; for (Iterator<Category> i = categories.values().iterator(); i.hasNext(); ) if (first) { list += i.next().getId(); first = false; } else list += ":" + i.next().getId(); return list; } COM: <s> return a string containing the category id numbers separated by colons </s>
funcom_train/46739592
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setRoleGroupRef(DisplayModel roleGroupRef) { if (Converter.isDifferent(this.roleGroupRef, roleGroupRef)) { DisplayModel oldroleGroupRef= new DisplayModel(this); oldroleGroupRef.copyAllFrom(this.roleGroupRef); this.roleGroupRef.copyAllFrom(roleGroupRef); setModified("roleGroupRef"); firePropertyChange(String.valueOf(ROLEGROUPS_ROLEGROUPREFID), oldroleGroupRef, roleGroupRef); } } COM: <s> name of the role group e </s>
funcom_train/12844481
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Node createNode(LDAPEntry entry) throws LDAPException { Node node = new Node(); node.setPool(this); node.setDn(entry.getDN()); parseAttributes.toNode(entry, node); /* Set<Attribute> accountStatus = (String[]) node.getValues().g; if (accountStatus !=null && accountStatus.equalsIgnoreCase("active")) { getMailBox(node); } */ recursePath(node); return node; } COM: <s> this method is used to create a node object from an ldap entry </s>
funcom_train/28699446
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected float hyphen_demerits( int factor ) { float hyphen_penalty = line.get_paragraph().get_hyphen_penalty(); if ( line.get_end().is_hyphenated() ) { float local_hyphen_penalty = hyphen_penalty * hyphen_penalty * factor; local_hyphen_penalty += preceding_path.hyphen_demerits( factor * 2 ); return local_hyphen_penalty; } return 0; } COM: <s> calculates and returns the hyphen demerits applying to this </s>
funcom_train/25305701
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean deleteTask(String svaTaskId) { boolean ok = false; SvaTaskModel model = this.storeSvaTask.get(svaTaskId); if (model != null) { this.storeSvaTask.delete(model); this.tasksMap.remove(svaTaskId); ok = true; } return ok; } COM: <s> delete a task </s>
funcom_train/9805247
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Wire connect(EdifPort port, Wire wire) { String portName = Edi2JHDL.JHDL_ID(port.getName()); Wire inner_wire = super.connect(portName, wire); if (port.getDirection() == EdifPort.OUT || port.getDirection() == EdifPort.INOUT) _outputWires.add(inner_wire); return inner_wire; } COM: <s> connects the passed in edif port to the passed in jhdl wire </s>
funcom_train/17679439
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void appendSqlColumn(JdbcColumn col, String alias, CharBuf s) { if (alias != null) { s.append(alias); s.append('.'); } if (col == null) { s.append('*'); } else { s.append(col.name); } } COM: <s> append the name of the column to s </s>
funcom_train/22689637
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getFlipButton() { if (flipButton == null) { flipButton = new JButton(); flipButton.setText("FlipDynamics"); flipButton.setPreferredSize(new Dimension(135, 30)); flipButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { AlgorithmPanel gdp = new AlgorithmPanel(ownerFrame, flipMode, logPath); ownerFrame.setAndShowPanel(gdp); } }); } return flipButton; } COM: <s> this method initializes flip button </s>
funcom_train/46381478
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void sendUpdate() { // send an add component message to all clients. Since the component // already exists, this will just update its server state CellMessage out = CellClientComponentMessage.newAddMessage(cellID, getClientClass(), getClientState(null, null, null)); cellRef.get().sendCellMessage(null, out); } COM: <s> notify clients that the state has been updated </s>