__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/1883999
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getJPanel9() { if (this.jPanel9 == null) { this.jPanel9 = new JPanel(); this.jPanel9.setLayout(new FlowLayout()); this.jPanel9.add(this.getRecurseCheckbox(), null); if (this.isStandalone) { this.jPanel9.add(this.getMonitorCheckbox(), null); } } return this.jPanel9; } COM: <s> this method initializes j panel9 </s>
funcom_train/23998591
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean increaseMaxHealth() { int needhoney = checkIncreaseMaxHealth(); if ( needhoney < 0 ) return false; PlayerProfile prof = Storage.get().getActiveProfile(); if ( needhoney > prof.amountHoney ) return false; prof.maxHealth++; prof.amountHoney -= needhoney; Storage.get().saveProfiles(); return true; } COM: <s> increase the max health attribute if possible </s>
funcom_train/30204954
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getJButtonBrowse() { if (jButtonBrowse == null) { jButtonBrowse = new JButton(); jButtonBrowse.setText("Browse"); jButtonBrowse.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { System.out.println("actionPerformed()"); // TODO // Auto-generated // Event stub // actionPerformed() } }); } return jButtonBrowse; } COM: <s> this method initializes j button browse </s>
funcom_train/48337604
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void scheduleTimer() { Event e = new DynamicTuple(null, null); e.set("send", Boolean.TRUE); synchronized (lock) { if (null == timerNotification) { timerNotification = timer.schedule(Timer.FIXED_RATE, SystemUtilities.currentTimeMillis() + period, period, this, e); } } } COM: <s> schedules the timer notification </s>
funcom_train/9026676
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setWarehouseNode(IWarehouseNode warehouseNode) { if (warehouseNode != null) { this.warehouseNode = warehouseNode; } else { IWarehousePluginService warehouseService = DenguesCorePlugin.getDefault().getWarehousePluginService(); this.warehouseNode = warehouseService.getWarehouseViewFactory().createWarehouseNodeFromEMF(name, parentNode, emfStorage); } } COM: <s> sets the warehouse node </s>
funcom_train/50913172
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void finishMakingElement(Element parent) throws RuntimeException { double[] array = this.getXMLContent(); if (array == null) { throw new RuntimeException("line must not be empty"); } else if (array.length != SIZE) { throw new RuntimeException("line must have 16 double components"); } setMatrix(array); } COM: <s> check transform has right shape </s>
funcom_train/5001631
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setLeftCAnalysisProperty(Property analysisProperty){ this.leftCAnalysisProperty = analysisProperty; this.lines=new ArrayList<Line>(Collections.nCopies(nLines, (Line) null));//we could make it less radically. But teh data is cached anyway... if(cache.get(analysisProperty) == null) cache.put(analysisProperty, new CqpDataProxy(analysisProperty)); } COM: <s> set the analysis propertyof the left context </s>
funcom_train/5864864
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String splitPercentInFF() { if (isPercentInFF()) { try { int v = Integer.parseInt( _spacing.substring(0, _spacing.length() - 1).trim()); if (v > 0) return v > 1 ? (v / 2) + "%": "1%"; } catch (Throwable ex) { //ignore if not recognizable } } return null; } COM: <s> bug 1526742 split to half 20 10 if and ff </s>
funcom_train/3276175
/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 (this == obj) return true; if ((obj == null) || (obj.getClass() != this.getClass())) return false; Square s = (Square) obj; return (file == s.file && rank == s.rank); } COM: <s> checks to see of the file and rank are the same </s>
funcom_train/11379466
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setInputQuery(String inputQuery) { inputQuery = inputQuery.trim(); if (inputQuery.endsWith(";")) { inputQuery = inputQuery.substring(0, inputQuery.length() - 1); } conf.set(QUERY_PROP, inputQuery); } COM: <s> get run this query and give the results to mappers </s>
funcom_train/43653608
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void edit() throws VisitorProfileException { visitor = getVisitor(); setPassword(defaultPassword); setConfirmPassword(defaultConfirmPassword); setUserAlias(visitor.getUserAlias()); setAttributes(visitor); // TODO: find this canEditRole boolean canEditRole = true; if (canEditRole) { setAssignedRoles(getRolesForVisitor(visitor, false)); } else { } } COM: <s> retrieves visitor attributes for editting purpose </s>
funcom_train/17785269
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testCustomFieldSerializabilityInheritance(String testName) { delayTestFinish(TEST_DELAY); CustomFieldSerializerTestServiceAsync service = getServiceAsync(testName); service.echo_ManuallySerializedClass( CustomFieldSerializerTestSetFactory.createUnserializableSubclass(), new AsyncCallback() { public void onFailure(Throwable caught) { finishTest(); } public void onSuccess(Object result) { fail("Class UnserializableSubclass should not be serializable"); } }); } COM: <s> test that custom field serializers do not make their subclasses </s>
funcom_train/49954843
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void initForm() { tbfname.setText(user.fname); tblname.setText(user.lname); tbemail.setText(user.email); tbusername.setText(user.username); tbpassword.setText(user.password); tbconfirmpassword.setText(user.password); for (int i = 0; i < lbdepartment.getItemCount(); i++) { if (user.department.value.equals(lbdepartment.getItemText(i))) { lbdepartment.setSelectedIndex(i); break; } } } COM: <s> initialize this form </s>
funcom_train/26383161
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testToStringConverter() { Converter converter=Converter.get(String.class); Object object=converter.convertFromString("TestString"); assertNotNull(object); assertTrue(object instanceof String); assertEquals("TestString",object.toString()); String back=converter.convertToString(object); assertNotNull(back); assertEquals(back,"TestString"); } COM: <s> tests correct conversion for a class with a to string method only string </s>
funcom_train/5855611
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private ByteOrder getByteOrder(String s) { if (s.equals("big endian")) { return ByteOrder.BIG_ENDIAN; } else if (s.equals("little endian")) { return ByteOrder.LITTLE_ENDIAN; } throw new IllegalArgumentException("Invalid byte order: " + s + " ('big endian' or 'little endian')"); } COM: <s> return a byte order object for the given string </s>
funcom_train/5859844
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void execute() throws ServerException { String fspath = normalizedPath.getPath(); //majid WorkSpace ws=this.getWorkSpace(); FSFile fsfile=(FSFile)ws.eval(fspath); VFile vfile=(VFile)fsfile.getVObject(); vfile.receiveFile(packet); } COM: <s> executed in the server </s>
funcom_train/22348327
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setProperty(final String key, final String value) { final int index = keys.indexOf(key); if (index < 0) { // new entry keys.addElement(key); values.addElement(value); } else { // existing entry values.setElementAt(value, index); } } COM: <s> sets the value for a property </s>
funcom_train/29311303
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void loadFromIni(String filename, ProMSplash splash) { try { Properties ini = new Properties(); FileInputStream is = new FileInputStream(filename); Enumeration i; ini.load(is); is.close(); i = ini.propertyNames(); while (i.hasMoreElements()) { String key = (String) i.nextElement(); loadlogFilter(ini.getProperty(key), key, splash); } } catch (FileNotFoundException ex) { } catch (IOException ex) { } } COM: <s> load log filters from ini file </s>
funcom_train/4272722
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateTableColumns(ValueChangeEvent event) { if (event != null && event.getNewValue() != null && event.getNewValue() instanceof Integer) { columns = ((Integer) event.getNewValue()).intValue(); } intValue = 0; cellMap.clear(); generateDataModels(); } COM: <s> updates the table model data </s>
funcom_train/23929089
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void processConfiguration() throws MapPSOConfigurationException { Config.TerminationCondition condition = Config.getMainConfig().getTerminationCondition(); switch( condition ) { case maxIterations: method = new MaxIterations(); break; case noChangeInConfidence: method = new NoChangeInConfidence(); break; default: final String errMsg = "Internal error: unexpected termination condition found in configuration."; logger.fatal( errMsg ); throw new AssertionError( errMsg ); } } COM: <s> sets the method according to the parameter termination </s>
funcom_train/44166651
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void showTilePopup(Tile tile, int x, int y) { if (tile == null) return; TilePopup tp = new TilePopup(freeColClient, gui, tile); if (tp.hasItem()) { tp.show(this, x, y); tp.repaint(); } else if (tile.isExplored()) { showTilePanel(tile); } } COM: <s> shows a tile popup </s>
funcom_train/4644637
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addExtensionPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_AttachmentType_extension_feature"), getString("_UI_PropertyDescriptor_description", "_UI_AttachmentType_extension_feature", "_UI_AttachmentType_type"), TassooPackage.Literals.ATTACHMENT_TYPE__EXTENSION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the extension feature </s>
funcom_train/3423359
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void put(Object key, Object value) { int bucket = (key.hashCode() & 0x7FFFFFFF) % fTableSize; Entry entry = search(key, bucket); // replace old value if (entry != null) { entry.value = value; } // create new entry else { entry = new Entry(key, value, fBuckets[bucket]); fBuckets[bucket] = entry; fNum++; } } COM: <s> adds the key value mapping to the key table </s>
funcom_train/39474528
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void gotoIndex(int index) { if (history.getStartingPlayerIndex() == 2) { index++; } int row = index / 2; int col = index % 2 + 1; jTable.getColumnModel().getSelectionModel().setSelectionInterval(col, col); jTable.getSelectionModel().setSelectionInterval(row, row); } COM: <s> move the selection of the table to the given index </s>
funcom_train/44708460
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeListener(String listenerClass) { DataAssociationCursor cursor = getListenerCursor(); cursor.addFilter(cursor.getFilterFactory().equals("listenerClass", listenerClass)); if (cursor.next()) { DataObject listener = cursor.getDataObject(); ((DataAssociation)get("listener")).remove(listener); } cursor.close(); } COM: <s> removes a listener from the events for this package </s>
funcom_train/18632470
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void close() { for( int i= 0; i < playerPanels.size(); i++) { try { ((PlayerPanel)playerPanels.elementAt(i)).close(); } catch (Exception e) {} } playerPanels.removeAllElements(); for (int i = 0; i < mgrs.size(); i++) { RTPManager mgr= (RTPManager) mgrs.elementAt(i); mgr.removeTargets("Closing session from AVReceiver"); mgr.dispose(); mgr = null; } } COM: <s> close the players and the rtp managers </s>
funcom_train/39911943
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetRh6() { System.out.println("getRh6"); Page1 instance = new Page1(); TextField expResult = null; TextField result = instance.getRh6(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } COM: <s> test of get rh6 method of class timesheetmanagement </s>
funcom_train/14371719
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addDetailQuery (DetailQuery q) { if (q.getBeginDate().equals(beginDate ) && q.getEndDate().equals(endDate) && q.getStrip() == strip && q.getInterval().equals(interval)) { } else { throw new RuntimeException ("Detail query added that does not match with bulk query parameters"); } sources.add(q.getSource()); } COM: <s> adds a detail query to the bulk query </s>
funcom_train/51344575
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void setupLoggingContext() { try { // Note: This _is_ a local method call. UUID serviceUUID = getServiceUUID(); // Will be null until assigned by the service registrar. if (serviceUUID != null) { MDC.put("serviceUUID", serviceUUID); } MDC.put("serviceName", getServiceName()); MDC.put("hostname", getHostname()); } catch(Throwable t) { /* * Ignore. */ } } COM: <s> sets up the </s>
funcom_train/48256829
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void AddIntersection( Interval1df f, Interval1df g, IntersectionType type ) { for( Intersection i : this.intersections ) { if( i.f.ProperlyIntersects( f ) && i.g.ProperlyIntersects( g ) ) return; } this.intersections.addLast( new Intersection( new Interval1df( f ), new Interval1df( g ), type ) ); } COM: <s> adds given intersection to intersection list if not already contained </s>
funcom_train/10515637
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void sort() { if (comparator == null) { if (reverse) { Collections.sort(lines, new Comparator() { public int compare(Object o1, Object o2) { String s1 = (String) o1; String s2 = (String) o2; return (-s1.compareTo(s2)); } }); } else { Collections.sort(lines); } } else { Collections.sort(lines, comparator); } } COM: <s> sorts the read lines code lines code acording to the sorting </s>
funcom_train/48877476
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public TextField getTextField1() { if (textField1 == null) {//GEN-END:|26-getter|0|26-preInit // write pre-init user code here textField1 = new TextField("Mensaje", null, 32, TextField.ANY);//GEN-LINE:|26-getter|1|26-postInit // write post-init user code here }//GEN-BEGIN:|26-getter|2| return textField1; } COM: <s> returns an initiliazed instance of text field1 component </s>
funcom_train/22024306
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void stepSimple(float stepsize){ SimpleStepper.INSTANCE.step(this, time,time + stepsize); time += stepsize; for(int i = 0; i < stepListeners.size(); i++){ stepListeners.get(i).notifyStep(this, time); } } COM: <s> steps the world using simple stepper </s>
funcom_train/47969202
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean removeTab(int tab_id) { try { Statement stmt = getConn().createStatement(); stmt.execute("DELETE FROM Blocknote.data_tabs WHERE id=" + tab_id); stmt.close(); return true; } catch (SQLException ex) { System.err.println(ex.getMessage()); return false; } } COM: <s> ramoves the tab </s>
funcom_train/19660827
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String getStaticField(String className, String fieldName) { try { Class< ? > clazz = Class.forName(className); Field field = clazz.getField(fieldName); return field.get(null).toString(); } catch (Exception e) { throw new RuntimeException("Can not read field " + className + "." + fieldName, e); } } COM: <s> read a final static field in a class using reflection </s>
funcom_train/44694209
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ArrayList getAverageNodePoints(){ //this.allocatePoints(lineToDisplaceList); ArrayList points = new ArrayList(); for (int i = 0; i < this.networkNodes.size(); i++) { DisplacementNetworkNode node = (DisplacementNetworkNode)this.networkNodes.get(i); Point pt = node.calcAveragePoint(); points.add(pt); } return points; } COM: <s> this function needs to proceed allocate points first </s>
funcom_train/18218280
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addConfigBaseFilterPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ValueSpecificationRetrievedValueBugzillaMetrics_configBaseFilter_feature"), getString("_UI_PropertyDescriptor_description", "_UI_ValueSpecificationRetrievedValueBugzillaMetrics_configBaseFilter_feature", "_UI_ValueSpecificationRetrievedValueBugzillaMetrics_type"), QualityModelPackage.Literals.VALUE_SPECIFICATION_RETRIEVED_VALUE_BUGZILLA_METRICS__CONFIG_BASE_FILTER, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the config base filter feature </s>
funcom_train/46326289
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { if ("wscepPort".equals(portName)) { setwscepPortEndpointAddress(address); } else { // Unknown Port Name throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); } } COM: <s> set the endpoint address for the specified port name </s>
funcom_train/27944625
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void resumeThreads() { //PENDING try { iprof.resumeVM(); } catch (COMMUN_Exception e) { fireVMDisconnected(); } catch (UNAVAILABLE_Exception e) { //PENDING throw new RuntimeException("TODO: handle this: \" Resume Threads is unavailable\"" + e.getMessage()); } } COM: <s> resumes all threads in the virtual machine </s>
funcom_train/19749076
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getContainerDescription(TileContainer container) { String name = container.getDefinitionName(); String listName = container.getListName(); HeritableComponentDefinition definition = (HeritableComponentDefinition) initialDefinitions.get(name); PossibleContainer list = (PossibleContainer) definition.getAttribute(listName); return list.getDescription(); } COM: <s> returns a description of a tile container </s>
funcom_train/49128022
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void display(NotificationLevel level, String message) { final JComponent content = createContent(level, message); final NotificationWindow window = new NotificationWindow(timeout, content, provider.getNotificationSize(), provider.getNotificationPosition()); new Thread(window).start(); } COM: <s> displays a message with the specified importance level </s>
funcom_train/44811642
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setColumnNames(String[] columnNames) { if (isProcessingStarted()) { throw new RuntimeException(getCannotModifyMessage()); } if (columnNames == null) { this.columnNames.clear(); return; } for (int i = 0; i < columnNames.length; i++) this.columnNames.put(columnNames[i], new Integer(i)); } COM: <s> specifies an array of strings representing column names matching field </s>
funcom_train/27767094
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isCargoShip() { if (isAlien()) return false; if (cargoTechLevel == 0) return false; if (design == null) return false; if (design.getCargoPoints() > 1) return true; ; if (getCargoQuantity() > 0) return true; if (design.getNumWeapons() > 4) return false; if (design.getCargoPoints() == 1 && (design.getWeaponPoints() > 4 || design.getShieldPoints() > 4)) { return false; } return true; } COM: <s> a ship is a cargo ships if it </s>
funcom_train/11668197
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setScheme(String p_scheme) throws MalformedURIException { if (p_scheme == null) { throw new MalformedURIException( "Cannot set scheme from null string!"); } if (!isConformantSchemeName(p_scheme)) { throw new MalformedURIException("The scheme is not conformant."); } m_scheme = p_scheme.toLowerCase(Locale.ENGLISH); } COM: <s> set the scheme for this uri </s>
funcom_train/16452432
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JSplitPane getJSplitPaneTopBottom() { if (jSplitPaneTopBottom == null) { jSplitPaneTopBottom = new JSplitPane(); jSplitPaneTopBottom.setOrientation(JSplitPane.VERTICAL_SPLIT); jSplitPaneTopBottom.setDividerLocation(260); jSplitPaneTopBottom.setTopComponent(getJSplitPaneTopLeftRight()); jSplitPaneTopBottom .setBottomComponent(getJSplitPaneBottomLeftRight()); jSplitPaneTopBottom.setDividerSize(5); } return jSplitPaneTopBottom; } COM: <s> gets the j split pane top bottom </s>
funcom_train/16604965
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setInterpolator(LinearInterpolator value) { if (value == null) { this.value = null; this.curve = null; } else { this.value = value; curve = convertToCurvePointCurve(value.getCurve()); minSpinner.setValue(new Integer(value.getMin())); maxSpinner.setValue(new Integer(value.getMax())); worldMinY = value.getMin(); worldMaxY = value.getMax(); repaint(); } } COM: <s> set the interpolator being configured </s>
funcom_train/1561338
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void createStatTable(){ // create a statTable according to dialog type if(statDialog.getMode() == StatDialog.MODE_ONEVAR){ statTable = new BasicStatTable(app, statDialog, statDialog.getMode()); } else if(statDialog.getMode() == StatDialog.MODE_REGRESSION){ statTable = new BasicStatTable(app, statDialog, statDialog.getMode()); } else if(statDialog.getMode() == StatDialog.MODE_MULTIVAR){ statTable = new MultiVarStatPanel(app, statDialog); } } COM: <s> creates a table to display summary statistics for the current data set s </s>
funcom_train/8372501
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int countArticles(FilterList fs) { int count = 0; try { Statement stmt = getStatement(); // count rows using the filter ResultSet rs = stmt.executeQuery("SELECT COUNT(*) FROM articles" + fs.getWhereClause(true, Table.ARTICLES)); if (rs.next()) { count = rs.getInt(1); } rs.close(); freeStatement(stmt); } catch (SQLException e) { e.printStackTrace(); } return count; } COM: <s> counts the articles matching a specific filter list </s>
funcom_train/39802129
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getStringAt(TreePath path) { if (path == null) return null; TreeCellRenderer renderer = getDelegatingRenderer().getDelegateRenderer(); if (renderer instanceof StringValue) { return ((StringValue) renderer).getString(path.getLastPathComponent()); } return StringValues.TO_STRING.getString(path.getLastPathComponent()); } COM: <s> returns the string representation of the cell value at the given position </s>
funcom_train/48582370
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public User loadUser(Long id){ //FIXME userEntity is lazy-loaded so we should use "eager fetch strategy" here Entity entity = (Entity) daoSupport.loadEntity(UserEntity.class, id); if (entity == null) { return null; } return (User) container.getComponentInstance(User.class, new Class[] { Entity.class }, new Object[] { entity }); } COM: <s> load user by id </s>
funcom_train/30192082
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public SiestaQMJob(String _idJob, java.io.File _exe, int _nRes, boolean _uC, boolean _uBC, boolean _uCR, boolean _uQzPC) { super(_idJob,_exe, _nRes,_uC, _uBC,_uCR,_uQzPC); } COM: <s> p general constructor for th mndo quantum mechanics job </s>
funcom_train/49410877
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long count() throws IndexException { long cnt = 0; try { cnt = ((BtreeStats) (dbEnvironment.getIdentifierDb().getStats(null))).getLeafNodeCount(); } catch (DatabaseException dbe) { ErrorHandler.error("count", dbe); } return cnt; } COM: <s> list number of identifier recordss </s>
funcom_train/37587262
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setEnabled(boolean isEnabled) { assert EventQueue.isDispatchThread(); boolean old = _isEnabled; super.setEnabled(isEnabled); try { for(BreakpointRequest bpr: _requests) { bpr.setEnabled(isEnabled); } } catch(VMDisconnectedException vmde) { /* just ignore */ } if (_isEnabled!=old) _manager.notifyBreakpointChange(this); } COM: <s> enable disable the breakpoint </s>
funcom_train/44287326
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void xmlIn(BufferedReader uri, FactoryWriterXML out, boolean validating) { try { xmlIn(new InputSource(uri), out, validating); } catch (SAXException e) { System.err.println(uri.toString()); xmlException(e); } } COM: <s> runs the parser based on a buffered reader </s>
funcom_train/36149749
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void resetTabTitles() { for (int i = 0; i < getTabCount(); ++i) { setTitleAt(i, "Datasheet " + (i + 1)); //String title = getTitleAt(i); //if (title.endsWith("*")) // setTitleAt(i, title.substring(0, title.length() - 1)); } } COM: <s> resets the tab titles </s>
funcom_train/4961394
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public SfComponents getComponents(IFile file) throws CoreException { SfModule module = findModule(file); if (module == null) throw new CoreException(new Status(IStatus.ERROR, SfDTCorePlugin.PLUGIN_ID, "Error finding module for component file")); if (module.getComponents() == null) { module.createComponents(file); } return module.getComponents(); } COM: <s> returns the code sf components code for the given file </s>
funcom_train/34067701
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double scaleOnAxis(double value) { double height = timeScale.getHeight(value, tree); if (treeLayout.isAxisReversed()) { return treeBounds.getX() + treeBounds.getWidth() - (height * treeScale); } else { return treeBounds.getX() + (height * treeScale); } } COM: <s> transform a chart co ordinates into a drawing co ordinates </s>
funcom_train/11794595
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public MorseClient getMorseClient() throws CoreException{ String morseClientId = getPreferenceStore().getString(Properties.MORSE_CLIENT_FACTORY); if(morseClientId == null || morseClientId.length() == 0) { IStatus status = new Status(IStatus.ERROR,getBundle().getSymbolicName(), "morseClientId is void"); throw new CoreException(status); } return MorseClientExtension.getInstance().getClientById(morseClientId); } COM: <s> get the current selected client </s>
funcom_train/6262851
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { final StringBuffer buffer = new StringBuffer(50); buffer.append("ConcreteTestRunner [TestSuite: "); buffer.append(testSuite); buffer.append(" - Task: "); buffer.append(task); buffer.append(']'); return buffer.toString(); } COM: <s> returns a string representation of the object </s>
funcom_train/7630477
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void playSoundEffect(int effectType) { if (effectType < 0 || effectType >= NUM_SOUND_EFFECTS) { return; } if (!querySoundEffectsEnabled()) { return; } IAudioService service = getService(); try { service.playSoundEffect(effectType); } catch (RemoteException e) { Log.e(TAG, "Dead object in playSoundEffect"+e); } } COM: <s> plays a sound effect key clicks lid open close </s>
funcom_train/41329705
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testMarshallMirrors() throws MarshalException, ValidationException, IOException { Mirrors mirrors=generateMirrorsElement(); String xmlSettings = XML_PROLOG +"<mirrors xmlns=\"http://maven.apache.org/POM/4.0.0\">" + XML_MIRROR + "</mirrors>"; assertEquals(xmlSettings, mytrim(XMLBinder.toXMLString(mirrors))); } COM: <s> test transformation of mirror bean into xml </s>
funcom_train/28346503
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void write( final Accelerator accelerator ) throws XmlDataAdaptor.WriteException, XmlDataAdaptor.CreationException { String absoluteUrlSpec = absoluteUrlSpec( opticsUrlSpec ); XmlDataAdaptor adaptor = XmlDataAdaptor.newDocumentAdaptor( accelerator, dtdUrlSpec ); adaptor.writeToUrlSpec( absoluteUrlSpec ); } COM: <s> write the accelerator out to the optics file </s>
funcom_train/41266376
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void delete(Tipoiva entity) { EntityManagerHelper.log("deleting Tipoiva instance", Level.INFO, null); try { entity = getEntityManager().getReference(Tipoiva.class, entity.getIvacodigo()); getEntityManager().remove(entity); EntityManagerHelper.log("delete successful", Level.INFO, null); } catch (RuntimeException re) { EntityManagerHelper.log("delete failed", Level.SEVERE, re); throw re; } } COM: <s> delete a persistent tipoiva entity </s>
funcom_train/1193785
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int writeString(String src) { // Convert the argument strings to ASCII byte[] srcAsBytes; try { srcAsBytes = src.getBytes("US-ASCII"); } catch (UnsupportedEncodingException e) { print("US-ASCII is an unsupported character encoding."); print("Unless you are running this on a very strange computer"); print("You should never get this error."); return -1; } return write(srcAsBytes); } COM: <s> writes a string to the serial buffer as ascii encoded characters </s>
funcom_train/17962185
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private CategoryDataset createDataset() { // row keys... final String series1 = "First"; final String series2 = "Second"; // column keys... final String category1 = "Category 1"; // create the dataset... final DefaultCategoryDataset dataset = new DefaultCategoryDataset(); dataset.addValue(1.0, series1, category1); dataset.addValue(5.0, series2, category1); return dataset; } COM: <s> returns a sample dataset </s>
funcom_train/51782867
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean validateInput() { if (!verifyMultiplicity(multiplicityACb)) { multiplicityACb.getEditor().selectAll(); multiplicityACb.requestFocusInWindow(); return false; } if (!verifyMultiplicity(multiplicityBCb)) { multiplicityBCb.getEditor().selectAll(); multiplicityBCb.requestFocusInWindow(); return false; } return true; } COM: <s> validates the input fields </s>
funcom_train/43336864
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Concept getConceptByID(String id) { Iterator<String> dtsIterator = taxonomyMap.keySet().iterator(); while (dtsIterator.hasNext()) { String currTaxonomyName = (String) dtsIterator.next(); TaxonomySchema tmpTaxonomy = (TaxonomySchema) taxonomyMap .get(currTaxonomyName); Concept tmpElement = tmpTaxonomy.getConceptByID(id); if (tmpElement != null) { return tmpElement; } } return null; } COM: <s> returns a concept object to a specific id from the dts </s>
funcom_train/12126286
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Rectangle computePopupBounds(int px, int py, int pw, int ph) { Rectangle2D r = getNodeBoundsInCanvas(); Rectangle sup = super.computePopupBounds(px, py, pw, ph); return new Rectangle((int) r.getX(), (int) r.getMaxY(), (int) sup.getWidth(), (int) sup.getHeight()); } COM: <s> computes the bounds for the popup in piccolo if a pmouse event has </s>
funcom_train/48338338
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void acquire() { synchronized (lock) { if (ACTIVATING != status) { return; } // Reset the fetcher protocol. fetchRound = -1; // Set up scan notifications. if (null == scan) { scan = timer.schedule(Timer.FIXED_RATE, SystemUtilities.currentTimeMillis(), Duration.SECOND, new ScanHandler(), new DynamicTuple()); } } start(); } COM: <s> acquire the resources needed by the emcee application </s>
funcom_train/39973269
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JDialog getAboutDialog() { if (aboutDialog == null) { aboutDialog = new JDialog(getJFrame(), true); aboutDialog.setTitle("About"); aboutDialog.setLocationRelativeTo(getJContentPane()); aboutDialog.setPreferredSize(new Dimension(112, 43)); aboutDialog.setSize(new Dimension(112, 43)); aboutDialog.setContentPane(getAboutContentPane()); } return aboutDialog; } COM: <s> this method initializes about dialog </s>
funcom_train/35761546
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean incHeight(int dY) { int y = scroller.getOffsetHeight(); y += dY; if (y <= lastHeight) { scroller.setHeight("" + y + "px"); //must not have size 0 return true; } if(hasBeenResized) { scroller.setHeight("" + lastHeight + "px"); } else { scroller.setHeight(""); } return false; } COM: <s> increment the height of the this </s>
funcom_train/32779055
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void createAnimation(WaitQueueAnimation waitQueueAnimation) { this.showInAnimation = waitQueueAnimation.animationIsOn(); this.waitQueueAnimationId = waitQueueAnimation.getInternId(); /* if(! WaitingQueue.classContent.exist(waitQueueAnimationId)) throw new SimulationException("WaitQueueAnimationId is unknown! id: "+waitQueueAnimationId); */ } COM: <s> this animation is part of animation of wait queue </s>
funcom_train/19370742
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean quitDialog(){ final int value = JOptionPane.showConfirmDialog(this, "Are you sure you want to quit?", "Quit OwlWatcher", JOptionPane.YES_NO_OPTION); return (value == JOptionPane.YES_OPTION); //just return whether yes was selected } COM: <s> only need one copy of this </s>
funcom_train/46621514
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private MenuItem getShowLogMenuItem() { if (iShowLogMenuItem == null) { try { iShowLogMenuItem = new MenuItem(); iShowLogMenuItem.setLabel("Log"); } catch (Throwable iExc) { handleException(iExc); } } return iShowLogMenuItem; } COM: <s> return the show log menu item property value </s>
funcom_train/44846377
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void uploadToCurrentDir(UploadObject uploadObject) { progressSetSubTaskMessage(String.format("Upload file: %s (%sKB)", uploadObject.getName(), NumberFormat.getInstance().format(uploadObject.getBytes()/1024))); uploadToCurrentDir(uploadObject.getName(), uploadObject.getInputStream()); } COM: <s> just a wrapper to </s>
funcom_train/12155339
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getModality() { logger.debug("Entering getModality()."); String modality = getValueAsString(GROUP_IMAGE_INFO, ELEMENT_MODALITY); if (logger.isDebugEnabled()) { logger.debug("Exiting getModality(); RV = " + (modality != null ? "\"" + modality + "\"" : null) + "."); } return modality; } COM: <s> returns the modality </s>
funcom_train/7309755
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void paintText(Graphics g, JComponent c, Rectangle textRect, String text) { ButtonModel bm = ((AbstractButton)c).getModel(); if(bm.isArmed() && bm.isPressed()) { textRect.x += 1; textRect.y += 1; } super.paintText(g, c, textRect, text); } COM: <s> paints the text a bit lower to the right if were pressed </s>
funcom_train/22387303
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean paraEnd(int dir) { ZZCell nc = c; ZZCell prev = nc; while(nc != null && !isStruct(nc)) { prev = nc; nc = nc.s("d.nile", dir); } if(nc == null) { nc = prev; } else { nc = nc.s("d.nile", -dir); } load(nc); offs = (dir < 0 ? 0 : clen); return true; } COM: <s> shift to paragraph beginning or end </s>
funcom_train/8679354
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Iterator getPrefixes(String uri) { List list = new ArrayList(4); Iterator prefixes = iteratePrefixes(); while (prefixes.hasNext()) { String p = (String)prefixes.next(); String u = resolver.getURIForPrefix(p, true); if (u.equals(uri)) { list.add(p); } } return list.iterator(); } COM: <s> get all the prefixes mapped to a given namespace uri jaxp method </s>
funcom_train/43230667
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void updateBreadcrumb() { final List<BreadcrumbItem> breadcrumbItems = new ArrayList<IBreadcrumbView.BreadcrumbItem>(); for (final Presenter presenter : this.getContext().getApplicationController().getPresenterStack()) { final SimpleCallback callback = new SimpleCallback() { @Override public void callback() { BreadcrumbController.this.gotoPresenter(presenter); } }; final BreadcrumbItem item = new BreadcrumbItem(callback, presenter.getName()); breadcrumbItems.add(item); } this.getBreadcrumb().setContent(breadcrumbItems); } COM: <s> updates the breadcrumb view with the actual presenter stack </s>
funcom_train/7389186
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public StringItem getStringItem10() { if (stringItem10 == null) {//GEN-END:|166-getter|0|166-preInit // write pre-init user code here stringItem10 = new StringItem("Size", creature.getTextSize());//GEN-LINE:|166-getter|1|166-postInit // write post-init user code here }//GEN-BEGIN:|166-getter|2| return stringItem10; } COM: <s> returns an initiliazed instance of string item10 component </s>
funcom_train/24350828
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: @Override public boolean isValid() { boolean result = true; if (fields != null) { Iterator<FieldEditor> e = fields.iterator(); while (e.hasNext() && result) { FieldEditor pe = e.next(); result = result && pe.isValid(); } } return result; } COM: <s> checks if all the field editors on the line are valid </s>
funcom_train/20702225
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private ElementSet getContainedAssociations(Class cls) { ElementSet associations = cls.AssociationEnd(); ElementSet embeddables = new ElementSet(); for (Object object : associations) { AssociationEnd ae = (AssociationEnd) object; if (ClassUtil.isAssociationOneOnOne(ae) && ae.Opposite().isNavigable()) { embeddables.add(ae.Opposite()); }else if (StereoTypeManager.isEmbeddable(ae.Opposite().Class()) ){ embeddables.add(ae.Opposite()); } } return embeddables; } COM: <s> we look for all embedded components and one on one associations </s>
funcom_train/18489276
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ContainerI retrieveInstance() { ContainerI[] containers = null; // Start default container TODO Handle custom containers DefaultContainer container = new DefaultContainer(config.getName()); // Register its configuration container.registerComponentInstance((ComponentI) config); // Load components loadComponents(container, config.getComponents().iterator()); return container; } COM: <s> start containers defined in xml file </s>
funcom_train/41150443
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean smallerOrEqual(Coordinates cc) throws IllegalArgumentException { if (cc.m_coord.length != m_coord.length) { throw new IllegalArgumentException ("Coordinates are not from the same space"); } for (int i = 0; i < m_coord.length; i++) { if (m_coord[i] > cc.m_coord[i]) { return false; } } return true; } COM: <s> checks if code this code is smaller or equal than code cc </s>
funcom_train/50340769
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public LayoutBlock getFacingBlockByMast(SignalMast signalMast, LayoutEditor panel){ LayoutBlock facing = getFacingBlockByMast(signalMast.getUserName(), panel); if(facing == null) facing = getFacingBlockByMast(signalMast.getSystemName(), panel); return facing; } COM: <s> method to return the layout block that a given signal mast is facing </s>
funcom_train/11088952
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void install(String location, Properties props, boolean autoStart) throws Exception { ComponentInstaller installer = doLoadNewInstaller(location, autoStart); try { installer.configure(props); installer.install(); } catch (Exception e) { installer.uninstall(true); throw e; } } COM: <s> install an archive </s>
funcom_train/43318986
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getUserName() { ISecurePreferences prefs = saros.getSecurePrefs(); String username = ""; try { username = prefs.get(PreferenceConstants.USERNAME, ""); } catch (StorageException e) { log.error("Exception while retrieving account: " + e.getMessage()); } return username; } COM: <s> returns the user name from the </s>
funcom_train/40931553
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void notifyToAllOtherActorSession(Event e) { for(Iterator iter = actorSessions.iterator(); iter.hasNext();){ ActorSession actorSession = (ActorSession) iter.next(); if (actorSession.getActorSessionID()!= e.getActorSessionID()) actorSession.raiseEvent(e); } } COM: <s> put the event in event vectors of the application instance </s>
funcom_train/1240725
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void generateWSDL(MessageContext msgContext) throws AxisFault { if (log.isDebugEnabled()) { log.debug("Enter: SimpleChain::generateWSDL"); } invoked = true; doVisiting(msgContext, wsdlVisitor); if (log.isDebugEnabled()) { log.debug("Exit: SimpleChain::generateWSDL"); } } COM: <s> iterate over the chain letting each handler have a crack at </s>
funcom_train/40397855
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void performPost(final String contentType, final String url, final String user, final String pass, final Map<String, String> additionalHeaders, final Map<String, String> params) { this.performRequest(contentType, url, user, pass, additionalHeaders, params, HTTPRequestHelper.POST_TYPE); } COM: <s> perform an http post operation with specified content type </s>
funcom_train/7674246
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void set(int n, int value) { throwIfImmutable(); if (n >= size) { throw new IndexOutOfBoundsException("n >= size()"); } try { values[n] = value; sorted = false; } catch (ArrayIndexOutOfBoundsException ex) { // Translate the exception. if (n < 0) { throw new IllegalArgumentException("n < 0"); } } } COM: <s> sets the value at the given index </s>
funcom_train/18518000
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getSelectCommand1() { if (selectCommand1 == null) {//GEN-END:|42-getter|0|42-preInit // write pre-init user code here selectCommand1 = new Command("Select", Command.OK, 0);//GEN-LINE:|42-getter|1|42-postInit // write post-init user code here }//GEN-BEGIN:|42-getter|2| return selectCommand1; } COM: <s> returns an initiliazed instance of select command1 component </s>
funcom_train/9680151
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testTestConstructor2() { cat.info("Testing DC for Test second constructor"); final BinClass test = (BinClass) getType("Test"); assertEquals( "LOC", 0d, DcMetric.calculate(test.getDeclaredConstructors()[1]), 0.001); cat.info("SUCCESS"); } COM: <s> tests dc for test second constructor </s>
funcom_train/2267533
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public File getARootFileDir(Root root, String dir) throws IOException { /*Root bestRoot = _slave.getDiskSelection().getBestRoot(dir); // to avoid this error SlaveSelectionManager MUST work // synchronized with DiskSelection. if (bestRoot == null) { throw new IOException("No suitable root was found."); } bestRoot.touch(); */ File file = root.getFile(dir); file.mkdirs2(); return file; } COM: <s> get a directory specified by dir under an approperiate root for storing </s>
funcom_train/13525775
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getMaxIntrinsicHeight() { if (maxIntrinsicHeight < 0) { Iterator iter = cells.iterator(); Cell cell; maxIntrinsicHeight = 0; while (iter.hasNext()) { cell = (Cell) iter.next(); if (!cell.isMultiRowCell()) { maxIntrinsicHeight = Math.max(maxIntrinsicHeight, cell .getMaxHeight()); } } } return maxIntrinsicHeight; } COM: <s> gets the maximum intrinsic height of this row </s>
funcom_train/28330052
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object locateReturnValue(final Method m) { final Class<?> returnType = m.getReturnType(); if (isAssignable(returnType, List.class)) { return Collections.emptyList(); } else if (isAssignable(returnType, Set.class)) { return Collections.emptySet(); } else if (isAssignable(returnType, Map.class)) { return Collections.emptyMap(); } return null; } COM: <s> p return code null code value or it is from collections api </s>
funcom_train/5607042
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected int readChunk(int size) { // Prepare the readahead for reading if (size > CHUNK_SIZE) { // More than we can hold; reallocate a larger readahead readahead = ByteBuffer.allocate(size); } else { size = CHUNK_SIZE; readahead.clear().limit(size); } bufferedIO.readinto(readahead); readahead.flip(); return readahead.remaining(); } COM: <s> read a chunk of data of the given size into the readahead </s>
funcom_train/1030998
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ResultSetRow next() throws SQLException { nextRecord(); if (this.nextRow == null && !this.streamerClosed && !this.moreResultsExisted) { this.io.closeStreamer(this); this.streamerClosed = true; } if (this.nextRow != null) { if (this.index != Integer.MAX_VALUE) { this.index++; } } return this.nextRow; } COM: <s> returns the next row </s>
funcom_train/39932407
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void storeOutputDir(String projectName, String outdir, boolean isAbsolute) { m_storage.setValue(projectName + TestNGPluginConstants.S_OUTDIR, outdir); m_storage.setValue(projectName + TestNGPluginConstants.S_ABSOLUTEPATH, isAbsolute); } COM: <s> saves the output directory information </s>