__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/29717140
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void createActions() { this.sampleAction = new Action() { @Override public void run() { MessageDialog.openInformation(null, "gted PO File Editor", "Generate xy"); } }; this.sampleAction.setText("Sample Action"); this.sampleAction.setToolTipText("Sample Action tool tip"); this.sampleAction.setImageDescriptor(PlatformUI.getWorkbench() .getSharedImages().getImageDescriptor( IDE.SharedImages.IMG_OBJS_TASK_TSK)); } COM: <s> creates the actions </s>
funcom_train/19142689
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void postJob(Job j, JobListener jl) { JobWrapper w = new JobWrapper(j); // Wrapper that is sent to the client. JobStatus status = new JobStatus(w, jl); // Stores the job's result availableJobs.add(status); // add to queue System.err.println("Job posted: " + j.description() + " " + j); } COM: <s> adds a job to be computed to the queue and a job listener </s>
funcom_train/1147978
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getBackCommand5() { if (backCommand5 == null) {//GEN-END:|164-getter|0|164-preInit // write pre-init user code here backCommand5 = new Command("Back", Command.BACK, 0);//GEN-LINE:|164-getter|1|164-postInit // write post-init user code here }//GEN-BEGIN:|164-getter|2| return backCommand5; } COM: <s> returns an initiliazed instance of back command5 component </s>
funcom_train/32057860
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testAddEllipse() { System.out.println("testAddEllipse"); GPGraphpad pad = new GPGraphpad(); GPMarqueeHandler handler = new GPMarqueeHandler(pad); Object obj = new Object(); Rectangle rec = new Rectangle(); Color color = new Color(1); //pad.getFrame().dispose(); } COM: <s> test of add ellipse method of class gpmarquee handler </s>
funcom_train/1549726
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean removeAll(Collection<?> collection) { if (fast) { synchronized (this) { ArrayList temp = (ArrayList) list.clone(); boolean result = temp.removeAll(collection); list = temp; return (result); } } else { synchronized (list) { return (list.removeAll(collection)); } } } COM: <s> remove from this collection all of its elements that are contained </s>
funcom_train/34807755
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void registerRemoteService(RemoteServiceFactory rsf, Class<?> serviceInterface) { String baseUrl = "http://localhost:8080/hessian"; String url = baseUrl+"/"+serviceInterface.getSimpleName()+"WS"; String protocol = "hessian"; IRemoteServiceRegistration remoteService = rsf.createAndRegisterProxy(serviceInterface, url, protocol, "net.sourceforge.workreporter.config"); remoteServiceRegistration.add(remoteService); } COM: <s> registers a remote service </s>
funcom_train/48504899
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testKeyFromKindAndParent() { Key parent = new Key(kind); Key key = new Key(kind, parent); assertEquals(kind, key.getKind()); assertNull(key.getName()); assertEquals(parent, key.getParent()); assertEquals(0L, key.getId()); } COM: <s> test key from kind and parent </s>
funcom_train/43539756
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void clickRunMenuItem(IUIContext ui, String menuItem) { TestCase.assertNotNull(ui); TestCase.assertNotNull(menuItem); try { ui.click(new MenuItemLocator("&Run/" + menuItem)); //$NON-NLS-1$ } catch (WidgetSearchException wse) { ExceptionHandler.handle(wse); } } COM: <s> click run menu item utility for executing menu items in the run menu </s>
funcom_train/26240340
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void storeAnswer(Answer answer) { int [] ratings = new int[ratingSpinners.length]; for (int i=0; i<ratings.length; i++) { ratings[i] = ((SpinnerNumberModel) ratingSpinners[i].getModel()).getNumber().intValue(); } ((RatingAnswer) answer).setRatings(ratings); } COM: <s> store the user specified ratings in the given answer data container </s>
funcom_train/34580783
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getSetKeysCommand () { if (setKeysCommand == null) {//GEN-END:|140-getter|0|140-preInit // write pre-init user code here setKeysCommand = new Command (lang.getProperty("command.set_keys"), Command.SCREEN, 0);//GEN-LINE:|140-getter|1|140-postInit // write post-init user code here }//GEN-BEGIN:|140-getter|2| return setKeysCommand; } COM: <s> returns an initiliazed instance of set keys command component </s>
funcom_train/45257238
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void setTitleToolTip(String toolTip) { toolTip = Util.safeString(toolTip); //Do not send changes if they are the same if (Util.equals(this.toolTip, toolTip)) { return; } this.toolTip = toolTip; firePropertyChange(IWorkbenchPart.PROP_TITLE); } COM: <s> sets or clears the title tool tip text of this part </s>
funcom_train/13960765
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected D2WContext d2wContextFromBindings() { if (d2wContext == null && !synchronizesVariablesWithBindings()) { d2wContext = (D2WContext)super.valueForBinding(Keys.localContext); if(d2wContext == null) { d2wContext = (D2WContext)super.valueForBinding(Keys.d2wContext); } } return d2wContext; } COM: <s> returns the active d2w context </s>
funcom_train/41070952
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setDateLabelFontSize(int dateLabelFontSize) throws java.beans.PropertyVetoException { int oldDateLabelFontSize = this.dateLabelFontSize; vetoableChangeSupport.fireVetoableChange(PROP_DATELABELFONTSIZE, oldDateLabelFontSize, dateLabelFontSize); this.dateLabelFontSize = dateLabelFontSize; propertyChangeSupport.firePropertyChange(PROP_DATELABELFONTSIZE, oldDateLabelFontSize, dateLabelFontSize); } COM: <s> set the value of date label font size </s>
funcom_train/28954990
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void init() { this.currentDotplot = null; this.noGui = false; this.taskProcessor = new TaskProcessor(); this.configurationRegistry = new ConfigurationRegistry(); this.typeRegistry = new TypeRegistry(); this.typeBindigRegistry = new TypeBindingRegistry(this.typeRegistry); this.setSourceList(new DefaultSourceList()); this.typeTable = new TypeTable(new TokenTable()); this.guiServiceID = ""; } COM: <s> inititializes the code dotplot context code </s>
funcom_train/37444366
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setEntityContext(final EntityContext entityContext) { /* * Technical note: * The context is set before logging so logging functionality can use * the current entity context. */ this.entityContext = entityContext; if (LOGGER.isDebugEnabled()) { LOGGER.debug(getStringID() + "setEntityContext(...)"); } } COM: <s> a container uses this method to pass a reference to the entity context </s>
funcom_train/13246486
/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 == getOkButton() || source == getOldPasswordField() || source == getNewPasswordField() || source == getReNewPasswordField()) { okButton_ActionEvents(); } else { if (source == getCancelButton()) { dispose(); } } } COM: <s> handles action events caused from the code change password dialog code </s>
funcom_train/7526769
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSimpleReCreation() throws Exception { a=createSharedChannel(SINGLETON_1); a.setReceiver(new MyReceiver("A")); a.connect("A"); a.disconnect(); b=createSharedChannel(SINGLETON_1); b.setReceiver(new MyReceiver("A'")); b.connect("A"); } COM: <s> tests that a second channel with the same group name can be </s>
funcom_train/35322304
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object clone() { LinkedList<E> clone = superClone(); // Put clone into "virgin" state clone.first = clone.last = null; clone.size = 0; clone.modCount = 0; // Initialize clone with our elements for (Node<E> x = first; x != null; x = x.next) clone.add(x.item); return clone; } COM: <s> returns a shallow copy of this </s>
funcom_train/4922520
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void writeObject(ObjectOutputStream stream) throws IOException { // Write path and description of file stream.writeObject(this.resourcePath); stream.writeObject(this.contentEncoding); stream.writeObject(this.contentType); String charsetName = (this.charset == null ? null : this.charset.name()); stream.writeObject(charsetName); // // Write state of implementation // this.writeImplementingObject(stream); } COM: <s> due to the </s>
funcom_train/13758711
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setColumn(int col) { String oldRef = _comment.getRef(); CellReference ref = new CellReference(getRow(), col); _comment.setRef(ref.formatAsString()); _comments.referenceUpdated(oldRef, _comment); if(_vmlShape != null) _vmlShape.getClientDataArray(0).setColumnArray(0, new BigInteger(String.valueOf(col))); } COM: <s> set the column of the cell that contains the comment </s>
funcom_train/40731266
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void toggle() { if (children.size() > 0) { open = !open; if (widget != null) { widget.setImage(open ? images.treeOpen() : images.treeClosed()); } for (TreeTableItem child : children) { if (!open) { child.close(); child.row.setVisible(false); } else { child.show(); } } } } COM: <s> opens or closes the current tree item </s>
funcom_train/51222408
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void paint(Graphics2D g) { Color currentColor = g.getColor(); Stroke currentStroke = g.getStroke(); g.setColor(Color.WHITE); g.drawRect(this.rect.x, this.rect.y, this.rect.width, this.rect.height); g.setColor(Color.BLACK); g.setStroke(SELECTION_STROKE); g.drawRect(this.rect.x, this.rect.y, this.rect.width, this.rect.height); g.setStroke(currentStroke); g.setColor(currentColor); } COM: <s> paint the area </s>
funcom_train/7277159
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void shutdown() { //Order matters, as calculateFractionalUptime() depends on the //LAST_SHUTDOWN_TIME property. ApplicationSettings.FRACTIONAL_UPTIME.setValue(calculateFractionalUptime()); ApplicationSettings.LAST_SHUTDOWN_TIME.setValue(clock.now()); int sessions = ApplicationSettings.SESSIONS.getValue(); ApplicationSettings.SESSIONS.setValue( sessions + 1 ); } COM: <s> notifies this that lime wire is shutting down updating permanent </s>
funcom_train/33839884
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void displayFiles(List<FITSFilePOJO> matchingFITSFiles) { Iterator f = matchingFITSFiles.iterator(); while(f.hasNext()) { FITSFilePOJO file = (FITSFilePOJO)f.next(); System.out.println("File Name:->" + file.getFilename() + "Folder Name :->" + file.getFolder()); } } COM: <s> xx display found files </s>
funcom_train/3182983
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void beginEditBugState(WebRequest webRequest) { try { super.logIn(webRequest, "EmrAdmin", "emr123"); super.setupParameters("editBug", webRequest); webRequest.addParameter("bugToEditId", "1"); } catch (Exception e) { logger.debug("Setting test failed", e); fail(e.getMessage()); } } COM: <s> sets necessary parameters for edit bug state in the request </s>
funcom_train/26485765
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean load() { boolean rv = true; try { FileInputStream istream = new FileInputStream(m_filename); ObjectInputStream r = new ObjectInputStream(istream); m_config = (NNTPConfigData)r.readObject(); istream.close(); } catch(Exception x) { rv = false; } return rv; } COM: <s> load the config </s>
funcom_train/976671
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getColWidths() { // Update the list with the current widths for (int col = 0; col < numCols; col++) { colWidth[colMap[col]] = getColWidth(col); } clearCellAdjustments(); // Convert to string StringBuilder sb = new StringBuilder(100); for (int i = 0; i < N_COLUMNS; i++) { if (sb.length() != 0) sb.append(','); sb.append(colWidth[i]); } return sb.toString(); } COM: <s> return the column widths as a comma delimited string for storing in the </s>
funcom_train/4508585
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void processMessage(Message packet) throws UnauthorizedException { // Ensure that connection was secured if TLS was required if (connection.getTlsPolicy() == Connection.TLSPolicy.required && !connection.isSecure()) { closeNeverSecuredConnection(); return; } router.route(packet); session.incrementClientPacketCount(); } COM: <s> process the received message packet </s>
funcom_train/7876193
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setOrientation(int orientation) { if (orientation == this.orientation) { return; } int old = this.orientation; this.orientation = orientation; removeAll(); if (orientation == VERTICAL) { layoutVertical(); } else { layoutHorizontal(); } firePropertyChange("orientation", old, orientation); } COM: <s> changes the orientation horizontal or vertical </s>
funcom_train/178550
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String displayString(Graph funcTree){ String ans=""; if(funcTree.N()==1) ans+="["+((Node)funcTree.getNodeValueNew(funcTree.firstNode())).getName()+"]"; else{ for(EdgeIterator eid=funcTree.edges();eid.hasNext();){ Edge edge=eid.nextEdge(); ans+=((Edge)funcTree.getEdgeValueNew(edge)).toString()+"\n"; } ans=ans.substring(0,ans.length()-1); } return ans; } COM: <s> turn the functional tree into a string representation </s>
funcom_train/21880157
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void processColonyInput(Marshallable bean) { if (bean instanceof IQuery){ logger.debug("processColonyInput: IQuery instance"); IQuery q = (IQuery) bean; setQueryRDF(q.getQueryRDF()); setQueryRDFFormat(q.getQueryRDFFormat()); setDepot(q.getProject()); setQueryResultsFormat(q.getQueryResultsFormat()); } } COM: <s> populate any parameters from a bean received via serialized request from colony </s>
funcom_train/17589034
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int invokeMethod(String objectname, String methodname, String []s_args, int pos) { Object o = store.get(objectname); if (o == null) { System.err.println("no object with name " + objectname); return pos; } return invokeMethod(o, methodname, s_args, pos); } COM: <s> invoke method store return value as last in store </s>
funcom_train/50363917
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void init() throws ServletException { ServletConfig servletConfig = getServletConfig(); prop = new Properties(); for (Enumeration e = servletConfig.getInitParameterNames(); e .hasMoreElements();) { String name = (String) e.nextElement(); String val = servletConfig.getInitParameter(name); prop.setProperty(name, val); } auth = new Authenticator(prop); } COM: <s> called to initialize servlet properties </s>
funcom_train/28752990
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setCdnarxnsvolume(Long newVal) { if ((newVal != null && this.cdnarxnsvolume != null && (newVal.compareTo(this.cdnarxnsvolume) == 0)) || (newVal == null && this.cdnarxnsvolume == null && cdnarxnsvolume_is_initialized)) { return; } this.cdnarxnsvolume = newVal; cdnarxnsvolume_is_modified = true; cdnarxnsvolume_is_initialized = true; } COM: <s> setter method for cdnarxnsvolume </s>
funcom_train/44869324
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private WCMPanelBean getFPanel() { if (fPanel == null) { fLabel = new JLabel(); fLabel.setText(" f(x) = "); fPanel = new WCMPanelBean(); fPanel.setLayout(new BoxLayout(getFPanel(), BoxLayout.X_AXIS)); fPanel.setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3)); fPanel.add(fLabel, null); fPanel.add(getFExprInput(), null); } return fPanel; } COM: <s> this method initializes f panel </s>
funcom_train/20876291
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double getDistanceInMeters(ExamRoom other) { return ((ExamModel)getModel()).getDistanceMetric().getDistanceInMeters(getId(), getCoordX(), getCoordY(), other.getId(), other.getCoordX(), other.getCoordY()); } COM: <s> distance between two rooms </s>
funcom_train/33281479
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int jsxGet_cols() { final String s = getDomNodeOrDie().getAttribute("cols"); try { return Integer.parseInt(s); } catch (final NumberFormatException e) { if (getBrowserVersion().hasFeature(BrowserVersionFeatures.JS_TEXT_AREA_COLS_RETURNS_20)) { return 20; } return -1; } } COM: <s> returns the number of columns in this text area </s>
funcom_train/11719464
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected RemoteNode getRemoteNode(Node node) throws RemoteException { if (node instanceof Version) { return factory.getRemoteVersion((Version) node); } else if (node instanceof VersionHistory) { return factory.getRemoteVersionHistory((VersionHistory) node); } else { return factory.getRemoteNode(node); } } COM: <s> utility method for creating a remote reference for a local node </s>
funcom_train/14462937
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setBytes(byte[] b) { Block[] bs = BlockFactory.getBlocksFromByteArray(b, Block.BIG); if (super.myblocks != null) { myblocks.clear(); lastblock = null; } else { myblocks = new ArrayList(bs.length); } for (int d = 0; d < bs.length; d++) this.addBlock(bs[d]); } COM: <s> set the underlying byte array for this </s>
funcom_train/9942780
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setTags(final DatasetTagSettings datasetSettings) { for (CheckBox checkbox : dataTypeCheckBoxList) { datasetSettings.getDataTypes().put(checkbox.getText(), checkbox.getValue()); } for (CheckBox checkbox : variablesCheckBoxList) { datasetSettings.getVariables().put(checkbox.getText(), checkbox.getValue()); } for (CheckBox checkbox : sourcesCheckBoxList) { datasetSettings.getSources().put(checkbox.getText(), checkbox.getValue()); } } COM: <s> sets the tags </s>
funcom_train/22403464
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String processCall(String payload) throws SerializationException { try { RPCRequest rpcRequest = RPC.decodeRequest(payload, this.getClass()); return RPC.invokeAndEncodeResponse(this, rpcRequest.getMethod(), rpcRequest.getParameters()); } catch (IncompatibleRemoteServiceException ex) { return RPC.encodeResponseForFailure(null, ex); } } COM: <s> process a call originating from the given request </s>
funcom_train/9876822
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateSize(int newWidth, int elementWidth) { int sampleTreeSpace = 0; if (sampleTree!=null) sampleTreeSpace = sampleTree.getHeight(); ((IExperimentHeader)this.expHeader).updateSizes(newWidth, elementWidth); setSizes(newWidth, this.expHeader.getHeight()+sampleTreeSpace); } COM: <s> updates the header sizes </s>
funcom_train/51299517
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean checkEditParams(String sql) { ResultSet res = null; try { res = DBAccessor.getInstance().makeSelect(sql); if (res.next()) { (new DocErrorHandler(null, DocErrorHandler.POSITION_NAME, null)) .showMessage(); return false; } } catch (Exception e) { e.printStackTrace(); return false; } finally { DBAccessor.getInstance().releaseConnection(res); } return true; } COM: <s> check whether such a position exists </s>
funcom_train/2516991
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void resolveDependencies(Stack<PredecessorReference> predecessorReferences, Map<String, Task> projectTasks) { while (predecessorReferences.size() > 0) { PredecessorReference pref = predecessorReferences.pop(); AtomicTask successor = pref.task; Task pred = projectTasks.get(pref.referenceUID); AtomicTask predecessor = (pred instanceof AtomicTask ? (AtomicTask) pred : null); if (predecessor == null) { logger.warn("predecessor " + pref.referenceUID + " not found"); importResults.predecessorNotFound++; } successor.addPredecessor(predecessor); } } COM: <s> builds predecessor and successor links from imported predecessor </s>
funcom_train/28353060
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setFixedCustomParameterValues( final List<CoreParameter> fixedCustomParameters ) { for ( CoreParameter parameter : fixedCustomParameters ) { final String accessorField = parameter.getAccessorField(); final double initialValue = parameter.getInitialValue(); final List<LiveParameter> liveParameters = parameter.getLiveParameters(); for ( LiveParameter liveParameter : liveParameters ) { _scenario.setModelInput( liveParameter.getNode(), accessorField, liveParameter.toPhysical( initialValue ) ); } } } COM: <s> set the initial conditions for the fixed parameters </s>
funcom_train/818129
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void propertyChange ( PropertyChangeEvent e ){ if ( e.getPropertyName() == CytoscapeDesktop.NETWORK_VIEW_CREATED ){ // Add menu to the context dialog CyNetworkView view = ( CyNetworkView )e.getNewValue(); view.addContextMethod( "class phoebe.PNodeView", "metaNodeViewer.ui.AbstractMetaNodeMenu", "getAbstractMetaNodeMenu", new Object[] { view } , CytoscapeInit.getClassLoader() ); } }//propertyChange COM: <s> implements property change listener </s>
funcom_train/37450123
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getDbName() { MetadataManager meta = MetadataManager.getInstance(); PBKey pbkey = meta.getDefaultPBKey(); JdbcConnectionDescriptor jDesc = meta.connectionRepository().getDescriptor(pbkey); if (jDesc.getDbAlias() != null) { return jDesc.getDbAlias(); } return ""; } COM: <s> provides the database name that is being connected to </s>
funcom_train/3362778
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setDocument(Document doc) { if (documentListener != null && getDocument() != null) { getDocument().removeDocumentListener(documentListener); } super.setDocument(doc); if (documentListener == null) { documentListener = new DocumentHandler(); } doc.addDocumentListener(documentListener); } COM: <s> associates the editor with a text document </s>
funcom_train/36460879
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void scaleQuantizationTable(float[][] table) { for (int i = 0; i < BLOCK_SIZE; i++) for (int j = 0; j < BLOCK_SIZE; j++) table[i][j] = table[i][j] * _scaleFactor[i] * _scaleFactor[j] / 8; } COM: <s> this method applies the pre scaling that the idct float float </s>
funcom_train/3945942
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean validateNewSchemaType_Enumeration(String newSchemaType, DiagnosticChain diagnostics, Map context) { boolean result = NEW_SCHEMA_TYPE__ENUMERATION__VALUES.contains(newSchemaType); if (!result && diagnostics != null) reportEnumerationViolation(AdlcpRootv1p2Package.eINSTANCE.getNewSchemaType(), newSchemaType, NEW_SCHEMA_TYPE__ENUMERATION__VALUES, diagnostics, context); return result; } COM: <s> validates the enumeration constraint of em new schema type em </s>
funcom_train/26212884
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object other){ if(other == null){ return false; } if(other instanceof MapPoint == false){ return false; } MapPoint theOther = (MapPoint)other; if(this.mX == theOther.mX && this.mY == theOther.mY){ return true; } else { return false; } } COM: <s> p checks if two map points are equal p </s>
funcom_train/43895710
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { String types = ""; for (int i = 0, ii = getAttributeCount(); i < ii; i++) { types += get(i); if (i < ii) { types += " , "; } } return "FeatureTypeFactory(" + getClass().getName() + ") [ " + types + " ]"; } COM: <s> returns a string representation of this factory </s>
funcom_train/2289981
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setDateLastModified(String resourcename, long dateLastModified, boolean recursive) throws CmsException { CmsResource resource = readResource(resourcename, CmsResourceFilter.IGNORE_EXPIRATION); getResourceType(resource).setDateLastModified(this, m_securityManager, resource, dateLastModified, recursive); } COM: <s> changes the last modified time stamp of a resource </s>
funcom_train/49350058
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getAddRemovePanel() { if (addRemovePanel == null) { GridLayout gridLayout = new GridLayout(); gridLayout.setRows(1); gridLayout.setColumns(2); gridLayout.setHgap(0); gridLayout.setVgap(0); addRemovePanel = new JPanel(); addRemovePanel.setLayout(gridLayout); addRemovePanel.add(getAddButton()); addRemovePanel.add(getRemoveButton()); } return addRemovePanel; } COM: <s> this method initializes add remove panel </s>
funcom_train/48701825
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public SubscriptionModel load() { try { SubscriptionModel model = (SubscriptionModel) s.readObject("Subscription"); model.s = this.s; model.propertyChangeSupport = new PropertyChangeSupport(this); return model; } catch (Exception ex) { s.debugMessage(ex, "Subscription", "load"); } return this; } COM: <s> load the model if no error else return this </s>
funcom_train/4787411
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setCurrentMonth(Date month) { checkWidget(); if ( month == null ) SWT.error(SWT.ERROR_NULL_ARGUMENT); if ( currentMonthCal == null ) { currentMonthCal = Calendar.getInstance(locale); currentMonthCal.setFirstDayOfWeek(firstDayOfWeek); currentMonthCal.setMinimalDaysInFirstWeek(minimalDaysInFirstWeek); } currentMonthCal.setTime(month); trunc(currentMonthCal); currentMonthCal.set(Calendar.DAY_OF_MONTH, 1); refreshDisplay(); } COM: <s> sets a new month to display </s>
funcom_train/11099004
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String createRootDir() { String prefix = getGeneratedRootDirPrefix(); for (int i = 1; true; i++) { File file = new File(prefix + i); if (!file.exists()) { file.mkdirs(); return file.getAbsolutePath(); } } } COM: <s> creates a new root dir </s>
funcom_train/46857936
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void initMapSprites() { logger.debug("initMapSprites"); mapSprites.clear(); activeAnimations.clear(); for (Tile t : map.getAllTiles()) { Unit unit = (Unit) t.getTileMover(); Property property = t.getProperty(); if (unit != null) { loadUnitSprite(unit); } if (property != null) { loadpropertySprite(property); } } } COM: <s> get all the model objects in the map that are visible </s>
funcom_train/19972049
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void drawVertical(Canvas canvas, int col, float x, int width) { graphPaint.setStrokeWidth(width); graphPaint.setColor(col); float bodyY = 0; for (int i = 0; i < NUM_DISP_BODIES; ++i) { canvas.drawLine(x, bodyY, x, bodyY + bodyBarHeight, graphPaint); bodyY += bodyHeight; } } COM: <s> draw in a vertical grid line </s>
funcom_train/11036149
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void initPropertiesMap() { if (properties == null) { // This needs to be a concurrent collection to prevent ConcurrentModificationExcpetions // for async-on-the-wire. It was originally: // properties = new HashMap(DEFAULT_MAP_SIZE); properties = new HashMap<String,Object>(DEFAULT_MAP_SIZE); } } COM: <s> if the properties map has not been allocated yet then allocate it </s>
funcom_train/48875485
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean haveFinished(Jobs jobs) { final StepExecutionState executionState = getState(); return StepExecutionState.STEP_EXECUTION_SUCCESSFUL == executionState || StepExecutionState.STEP_EXECUTION_FAILED == executionState && this.getExecutions().size() >= this.getStep(jobs).getRetries(); } COM: <s> called by master single thread and also by this object </s>
funcom_train/34067859
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void nodeHeightsToLengths(ReRootedNode node, double height) { final double h = node.getHeight(); node.setLength(h >= 0 ? height - h : 1); for (Node child : node.getChildren()) { nodeHeightsToLengths((ReRootedNode)child, node.getHeight()); } } COM: <s> calculate branch lengths from the current node heights </s>
funcom_train/39380378
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getFocusJavaScript() { String id = ""; if (!getRadioList().isEmpty()) { Radio radio = (Radio) getRadioList().get(0); id = radio.getId(); } HtmlStringBuffer buffer = new HtmlStringBuffer(32); buffer.append("setFocus('"); buffer.append(id); buffer.append("');"); return buffer.toString(); } COM: <s> return the radio group focus java script </s>
funcom_train/5341187
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected int addNewResult(TableLine line, SearchResult sr) { int oldCount = line.getLocationCount(); line.addNewResult(sr, METADATA); int newCount = line.getLocationCount(); int added = newCount - oldCount; _numSources += added; return added; } COM: <s> adds sr to line as a new source </s>
funcom_train/2919091
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getInputSequenceDisplay(List labels) { Grammar g = dfa.nfa.grammar; StringBuffer buf = new StringBuffer(); for (Iterator it = labels.iterator(); it.hasNext();) { Label label = (Label) it.next(); buf.append(label.toString(g)); if ( it.hasNext() && g.type!=Grammar.LEXER ) { buf.append(' '); } } return buf.toString(); } COM: <s> given list label return a string with a useful representation </s>
funcom_train/3294537
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getBuilderMaintainer() { String maintainer=getElementAttributeValue("builder","maintainer"); if (maintainer.equals("")) { if (parentBuilder!=null) { maintainer=parentBuilder.getMaintainer(); } else { maintainer="mmbase.org"; } } return maintainer; } COM: <s> retrieve the name of the maintainer of this builder </s>
funcom_train/17680165
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JdbcKeyGeneratorFactory findKeyGenFactory(JdoExtension e) { String fname = e.getString(); try { return keyGenRegistry.getFactory(fname); } catch (Exception x) { throw BindingSupportImpl.getInstance().runtime(x.getMessage() + "\n" + e.getContext(), x); } } COM: <s> find the factory specified in a jdbc key generator extension </s>
funcom_train/37649405
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Control createContents(Composite parent) { // Create parent composite Composite composite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(1, false); layout.verticalSpacing = 10; composite.setLayout(layout); // Create children Group generalGroup = buildGeneralGroup(composite); // Layout children generalGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); buildCPDLauncherButton(composite); return composite; } COM: <s> insert the methods description here </s>
funcom_train/21196428
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean createAllStudentList() { //create the data File, if it doesn't already exist allStudentListFile = new File(getDataDir() + File.separator + "AllStudentsList.txt"); //$NON-NLS-1$ try { allStudentListFile.createNewFile(); } catch (IOException e) { e.printStackTrace(); } return true; } COM: <s> student list file methods file all student list keeps a list of students </s>
funcom_train/46617991
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void addCreatedTask(String type, Task task) { synchronized (createdTasks) { Vector v = (Vector) createdTasks.get(type); if (v == null) { v = new Vector(); createdTasks.put(type, v); } v.addElement(new WeakReference(task)); } } COM: <s> keeps a record of all tasks that have been created so that they </s>
funcom_train/6451536
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public IntendedMeans getIM(Trigger g, Unifier u) { for (IntendedMeans im : intendedMeans) //System.out.println(g + " = "+ im.getTrigger()+" = "+u.unifies(g, im.getTrigger())); if (u.unifies(g, im.getTrigger())) return im; return null; } COM: <s> returns the intended means with te g returns null if there isnt one </s>
funcom_train/16453754
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void saveSettings() { settingsSection.put(SIS_FILE_PATH_SETTING_ID, form.getSisFilePathText().getText()); settingsSection.put(CERT_FILE_PATH_SETTING_ID, form.getCertFilePathText().getText()); settingsSection.put(KEY_FILE_PATH_SETTING_ID, form.getKeyFilePathText().getText()); } COM: <s> saves field values to the workspace settings store for this plugin </s>
funcom_train/5532056
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String removeSpaces(String pOriginalString) { StringBuffer sbNoSpaces = new StringBuffer(); int len = (pOriginalString != null) ? pOriginalString.length() : 0; for (int i = 0; i < len; i++) { char ch = pOriginalString.charAt(i); if (ch != ' ') sbNoSpaces.append(ch); } return sbNoSpaces.toString(); } COM: <s> this function removes embedded spaces in a string concatenating the pieces together </s>
funcom_train/22659392
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void error(Pos pos, String msg) { if(webOutput){ String newMsg = msg + "\n" + printErrorLine(myFile, pos); doError(myFile.getName(), pos.getLine(), newMsg); } else{ doError("Error: " + myFile.getName() + "(" + pos.getLine() + "): " + msg + "\n" + printErrorLine(myFile, pos)); } } COM: <s> outputs a positioned error message </s>
funcom_train/31426301
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double getDoubleValue(UIOperation op, int index) throws WrongArgumentTypeException, ArgumentIndexOutOfBoundsException { IOperationArgument arg = op.getSafeArgument(index); if(arg != null) { if(arg instanceof NumericArgument) { NumericArgument num = (NumericArgument) arg; return num.getDoubleValue(); } else { throw new WrongArgumentTypeException(); } } else { throw new ArgumentIndexOutOfBoundsException(); } } COM: <s> retrieves the double value associated to the nth argument of the given operation </s>
funcom_train/12895486
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeMyProject(IRequestCycle cycle) { Object[] parameters = cycle.getListenerParameters(); Long project = (Long) parameters[0]; List<GenericValue> deletes = getProjectDAO().getMyProject(project, getUserObj().getUserId()); getProjectDAO().removeList(deletes); } COM: <s> remove the project from the users project list </s>
funcom_train/4392814
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean validateBPELVariableNames_MinLength(List<?> bpelVariableNames, DiagnosticChain diagnostics, Map<Object, Object> context) { int length = bpelVariableNames.size(); boolean result = length >= 1; if (!result && diagnostics != null) reportMinLengthViolation(ExecutablePackage.Literals.BPEL_VARIABLE_NAMES, bpelVariableNames, length, 1, diagnostics, context); return result; } COM: <s> validates the min length constraint of em bpel variable names em </s>
funcom_train/18849414
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void waitAllWorkers() { Iterator it; synchronized (workersList) { it = workersList.iterator(); } do { try { while (it.hasNext()) { final RequisitionWorker worker = (RequisitionWorker) it.next(); synchronized (worker) { worker.notify(); worker.interrupt(); } try { worker.join(); } catch (InterruptedException e) { // Ignores } } it = null; } catch (ConcurrentModificationException e) { synchronized (workersList) { it = workersList.iterator(); } } } while (it != null); workersList.clear(); } COM: <s> waits for all workers to die </s>
funcom_train/30005438
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JLabel getUserActionLabel() { if (this.userActionLabel == null) { this.userActionLabel = new JLabel(LanguageController.getInstance().getString(this.plugin, "Test_Execution_Execute_Sequence_User_Action_Label")); } return this.userActionLabel; } COM: <s> gets the user action label </s>
funcom_train/36774290
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private LwjglCanvas initLwjgl() { final LwjglCanvasRenderer canvasRenderer = new LwjglCanvasRenderer(this); final DisplaySettings settings = new DisplaySettings(800, 600, 24, 0, 0, 8, 0, 0, false, false); TextureRendererFactory.INSTANCE.setProvider(new LwjglTextureRendererProvider()); return new LwjglCanvas(canvasRenderer, settings); } COM: <s> setup an lwjgl canvas and canvas renderer </s>
funcom_train/19537110
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public static final FileFilter CLASS_FILTER = new FileFilter() { @Override public String getDescription() { return "Java Class Files (*.class)"; } @Override public boolean accept(File file) { if (file.isDirectory()) return true; String name = file.getName(); if (name.endsWith(".class")) return true; return false; } }; COM: <s> file filter for class files </s>
funcom_train/10875536
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setMaxThreadCount(int count) { if (count < 1) { throw new IllegalArgumentException("count should be at least 1"); } if (count > maxMergeCount) { throw new IllegalArgumentException("count should be <= maxMergeCount (= " + maxMergeCount + ")"); } maxThreadCount = count; } COM: <s> sets the max simultaneous merge threads that should </s>
funcom_train/9869562
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setLogins(Integer newVal) { if ((newVal != null && this.logins != null && (newVal.compareTo(this.logins) == 0)) || (newVal == null && this.logins == null && logins_is_initialized)) { return; } this.logins = newVal; logins_is_modified = true; logins_is_initialized = true; } COM: <s> setter method for logins </s>
funcom_train/10346230
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int readBase128() throws ASN1Exception, IOException { int n; int b; n = 0; while ((b = read()) >= 0) { n = (n << 7) | (b & 0x7f); if ((b & 0x80) == 0) { break; } } if (b < 0) { throw new ASN1Exception("Unexpected EOF, base 128 octet missing!"); } return n; } COM: <s> reads a base 128 number from this input stream </s>
funcom_train/14598365
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { return getClass().getName() + "[" + "user=" + user + ", password=" + password + ", domain=" + domain + ", port=" + port + ", path=" + path + "]"; } COM: <s> writes out the class name and the values of its fields </s>
funcom_train/2927788
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getNamespace(Object node) { String value; try { value = (String) DTMWrapper.dtmNamespaceMethod.invoke(this .getDTM(node), new Object[] { node }); } catch (InvocationTargetException e) { throw new GeneratorError("could not evaluate namespace of node " + node, e.getTargetException()); } catch (Exception e) { throw new GeneratorError("could not evaluate namespace of node " + node, e); } return value; } COM: <s> get xml names namespace uri from dtm </s>
funcom_train/9043067
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void adjustMaxIndex(int i, int j) { if (i > size() - 1) { increase(i); } if (j >= maxVLength) { maxVLength = j + 1; for (int row = 0; row < size(); row++) { get(row).setLength(maxVLength); } } } COM: <s> adjusts the size of the matrix </s>
funcom_train/2759269
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private MountPoint getMountPoint(String path) { if(path == null) { throw new IllegalArgumentException("Cannot get mount pont for null path."); } for(int i = 0; i < _mountPoints.length; i++) { if(path.startsWith(_mountPoints[i].getMountPath())) { return _mountPoints[i]; } } return null; } COM: <s> resolves the mount point for the supplied path </s>
funcom_train/44308197
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void processPair1(AssociationRulesExtractor associationRulesExctractor,Concept object0,Object object1) { if (object1 instanceof Set) { Iterator objects=((Set)object1).iterator(); while (objects.hasNext()) { Concept concept=(Concept)objects.next(); associationRulesExctractor.addTransaction(object0,concept); } } else associationRulesExctractor.addTransaction(object0,(Concept)object1); } COM: <s> processes all pairs of given concept and a conclution object </s>
funcom_train/21619880
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetTotal() { System.out.println("getTotal"); tl.getRevSource().setPrice(30.0); tl.getCoupon().setDiscount(10.0); double expResult = 20.0; double result = tl.getTotal(); assertEquals(expResult, result); } COM: <s> test of get total method of class edu </s>
funcom_train/25072352
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public byte getApplicationId() { if (!isResultResponseMessage()) { throw new IllegalStateException( "This session is not a result response message."); } byte[] packet = (byte[]) packets.elementAt(0); return packet[PACKET_CONTROL_HEADER_SIZE + 1]; } COM: <s> returns the id of the application descriptor for the query that </s>
funcom_train/35838782
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public IView getView(PCSession session, String sViewID) throws SQLException { // DBConnection dbcon = getDatabaseManager().requestConnection(session.getModelName()) ; // // IView view = DBNode.getView(dbcon, sViewID, session.getUserID()); // // getDatabaseManager().releaseConnection(session.getModelName(),dbcon); return null; } COM: <s> returns a view given its id </s>
funcom_train/45502967
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean existsCellAt( int x, int y ) { if( (x < 0) || (x > (this.getWidth() - 1)) ) { return false; } else if( (y < 0) || (y > (this.getHeight() - 1)) ) { return false; } else if( this.getCell( x, y ) == null ) { return false; } else { return true; } } COM: <s> checks whether the cell at position x y of the room </s>
funcom_train/24072378
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public APLModule clone() { APLModule module = new APLModule(iEvents, eEvents, envs, delib, messenger, name, mas, parent, stoppingCond, beliefs, goals, beliefupdates, pgrules, prrules, pcrules, plans, inEnvironment); return module; } COM: <s> creates cloned instance of this module </s>
funcom_train/12178617
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testHorizontalTextThenImage() { // Try text / image. expectDecisionGetters(mockArbitratorDecision, MenuItemRenderedContent.TEXT, mockHorizontalSeparator, MenuItemRenderedContent.IMAGE, null); // Should use the separator. mockArbitratorDecision.expects.use(mockHorizontalSeparator); // Test the object. separatorArbitrator.decide(null, mockArbitratorDecision); } COM: <s> test that the arbitrator will use a horizontal separator between </s>
funcom_train/8214594
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Attribute AddAttribute(String attrName, Object[] nominal_values) { if (myAttributes == null) { myAttributes = new FastVector(); } FastVector temp_nominal_values = new FastVector(nominal_values.length); for (int i = 0; i < nominal_values.length; i++) { temp_nominal_values.addElement(nominal_values[i].toString()); } Attribute tempAttr = new Attribute(attrName, temp_nominal_values); myAttributes.addElement(tempAttr); return tempAttr; } COM: <s> adds a nominal attribute to the attributes set nominal attributes are </s>
funcom_train/5433437
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Vector getBuildable(Vector researched, Hashtable possible) { Vector result = new Vector(); Enumeration e = possible.elements(); while(e.hasMoreElements()) { ChaosTreeItem i = (ChaosTreeItem) e.nextElement(); if(i.isBuildable(researched)) { result.add(i); } } return result; } COM: <s> returns a vector of buildable chaos tree items </s>
funcom_train/30191313
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void valueChanged(TreeSelectionEvent e) { DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent(); if (node == null) return; Object nodeInfo = node.getUserObject(); if (node.isLeaf()) { // BookInfo book = (BookInfo)nodeInfo; // displayURL(book.bookURL); } } COM: <s> required by tree selection listener interface </s>
funcom_train/26572645
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSortedColumn(int columnIndex, boolean descendingSort) { JTable table = getTable(); if(table != null) { // always store the sortedColumn index in terms of the column model // instead of the view, because the view can change as the user // drags columns around. sortedColumn = table.convertColumnIndexToModel(columnIndex); } else { sortedColumn = columnIndex; } this.descendingSort = descendingSort; repaint(); } COM: <s> this method tells a push button table header which column should have </s>
funcom_train/10211615
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void toASCII(PrintWriter pw, boolean addName, String rootName, boolean newLine){ rootName = toASCIIAddRootName(pw,addName, rootName); if(addName) pw.print(", "); pw.print((new Byte(getValue())).toString()); if(newLine) pw.print("\n"); } COM: <s> returns a string representation of the variables value </s>