__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/16771374
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean get(String filename) { if (!connected) return false; try { SftpProgressMonitor monitor=new WowSyncProgressMonitor(); int mode=ChannelSftp.OVERWRITE; cs.get(filename, filename, monitor, mode); } catch (SftpException e) { System.out.println(filename+" (sftp-get) "+e.getMessage()); return false; } return true; } COM: <s> sftp get command </s>
funcom_train/24002333
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void write(int c,final AsyncCallback<Boolean> callback) { try { synchronized (lock) { ensureOpen(); out.write(c,callback); } } // catch (InterruptedIOException x) { // Thread.currentThread().interrupt(); // } catch (IOException x) { trouble = true; callback.onFailure(x); } } COM: <s> writes a single character </s>
funcom_train/49603765
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void generateShortReport(Class<?> clazz,String groupName,String contextForAnnotations){ HashMap<String, Object> map=getTheMap(clazz, null,false,//false, contextForAnnotations); VelocityDriver.parse("jasper/subreport-short.jrxml.vm", map, config.getOutputReport()+"/"+groupName+"/"+clazz.getSimpleName()+".jrxml"); } COM: <s> generate a short report </s>
funcom_train/46744787
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setLocationRef(DisplayModel locationRef) { if (Converter.isDifferent(this.locationRef, locationRef)) { DisplayModel oldlocationRef= new DisplayModel(this); oldlocationRef.copyAllFrom(this.locationRef); this.locationRef.copyAllFrom(locationRef); setModified("locationRef"); firePropertyChange(String.valueOf(VISITLOCATIONS_LOCATIONREFID), oldlocationRef, locationRef); } } COM: <s> location for the visit </s>
funcom_train/34822808
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void display(String spacer) { Logging.trace(this, "[display]" + spacer + nodeName); if (this.leafs == null && this.swapFilename != null) this.swapFromFile(); if (leafsNames != null) { spacer = spacer.concat(" "); int index; for (index = 0; index < leafsNames.size(); index++) { leafs.get(leafsNames.get(index)).display(spacer); } } } COM: <s> display the url nodes recursively in an idented way </s>
funcom_train/32219149
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double spaceBetween(MovingObject other){ // calculate the space between the centers of both circles double distX = this.x - other.getX(); double distY = this.y - other.getY(); double dist = Math.sqrt(distX*distX + distY*distY); // the space between circles is the distance minus both radii double space = dist - (this.radius + other.getRadius()); return space; } COM: <s> return the space in pixels between this object and the given </s>
funcom_train/32759138
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setLegendKey(String strKey) { for (FunctionGraphsJPanel pnlGraph : this.getAllDataGraphs()) pnlGraph.setLegendKeyString(strKey); for (Data.ANGLE angle : Data.ANGLE.values()) this.mapLgdKey.put(angle, strKey); } COM: <s> sets the legend key to be the given value for all </s>
funcom_train/7618631
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Size getPictureSize() { String pair = get("picture-size"); if (pair == null) return null; String[] dims = pair.split("x"); if (dims.length != 2) return null; return new Size(Integer.parseInt(dims[0]), Integer.parseInt(dims[1])); } COM: <s> returns the dimension setting for pictures </s>
funcom_train/14080133
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { StringBuffer buffer = new StringBuffer( this.size * 23 ); buffer.append( super.toString() ).append( "{\n" ); Object[] values = values(); for (int i = 0; i < values.length; i++) { buffer.append( values[i] ); buffer.append('\n'); } buffer.append('}'); return buffer.toString(); } COM: <s> returns string containing the string representations of all objects of this map </s>
funcom_train/4780198
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public JButton getAddGroupToolbarButton() { if (addGroupToolbarButton == null) { addGroupToolbarButton = new JButton(); addGroupToolbarButton.addActionListener(actionListener); addGroupToolbarButton.setActionCommand(ActionConstants.ADD_GROUP_ACTION); addGroupToolbarButton.setIcon(ResourceUtil.addGroupIcon); addGroupToolbarButton.setText(ResourceUtil.getString("mainframe.button.addgroup")); addGroupToolbarButton.setToolTipText(ResourceUtil.getString("mainframe.button.addgroup.tooltip")); } return addGroupToolbarButton; } COM: <s> this method initializes add group toolbar button </s>
funcom_train/8436218
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean add(Model m) { boolean rval = false; for (Integer i : m) { if (mutable(i)) { rval = add(i) || rval; } else if (!isConnected(i)) { throw new LogicException("Attempting to add non-mutable: " + i); } } return rval; } COM: <s> add all elements of another graph into this one </s>
funcom_train/49026655
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getButtonBar() { if (buttonBar == null) { GridBagConstraints gridBagConstraints5 = new GridBagConstraints(); gridBagConstraints5.insets = new Insets(5, 5, 5, 5); gridBagConstraints5.anchor = GridBagConstraints.CENTER; gridBagConstraints5.fill = GridBagConstraints.HORIZONTAL; buttonBar = new JPanel(); buttonBar.setLayout(new GridBagLayout()); buttonBar.add(getConfermaB(), gridBagConstraints5); } return buttonBar; } COM: <s> this method initializes button bar </s>
funcom_train/44287508
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void broadcastMessage(Exception e) { synchronized (mainFrames) { for (FrameMain frame: mainFrames) frame.addMessage(e); } if (mainFrames.size() == 0) { System.out.print(XMLWrapper.dfLocal.format(new Date()) + " [FAT] "); e.printStackTrace(); } } COM: <s> broadcasts a message to every client connected to the server </s>
funcom_train/16770156
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void compress() { IoBuffer tmp = IoBuffer.allocate(0); tmp.setAutoExpand(true); DeflaterOutputStream deflater = new DeflaterOutputStream(tmp.asOutputStream(), new Deflater(Deflater.BEST_COMPRESSION)); byte[] tmpData = new byte[data.limit()]; data.position(0); data.get(tmpData); try { deflater.write(tmpData); deflater.finish(); } catch (IOException e) { //docs state that free is optional tmp.free(); throw new RuntimeException("could not compress data", e); } finally { if (deflater != null) { try { deflater.close(); } catch (IOException e1) { } } } data.free(); data = tmp; data.flip(); prepareIO(); } COM: <s> compress contents using zlib </s>
funcom_train/51101010
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean hasToOneRelationships(ObjEntity anObjEntity) { if (anObjEntity == null) { return false; } Iterator it = anObjEntity.getRelationships().iterator(); while (it.hasNext()) { Relationship r = (Relationship) it.next(); if (false == r.isToMany()) { return true; } } return false; } COM: <s> returns true if an obj entity contains at least one to one relationship </s>
funcom_train/21333791
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void onDeleteKey(SshAgentDeleteKey msg) throws IOException { if (keystore.deleteKey(msg.getPublicKey(), msg.getDescription())) { sendAgentSuccess(); } else { sendAgentFailure(SshAgentFailure.SSH_AGENT_ERROR_KEY_NOT_FOUND); } } COM: <s> called by the remote side to delete a key from the agent </s>
funcom_train/16308581
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getCommand(Request request) { if (request instanceof ReconnectRequest) { Object view = ((ReconnectRequest) request).getConnectionEditPart() .getModel(); if (view instanceof View) { Integer id = new Integer( PstlVisualIDRegistry.getVisualID((View) view)); request.getExtendedData().put(VISUAL_ID_KEY, id); } } return super.getCommand(request); } COM: <s> extended request data key to hold editpart visual id </s>
funcom_train/4644663
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addValuePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ReferenceModel_value_feature"), getString("_UI_PropertyDescriptor_description", "_UI_ReferenceModel_value_feature", "_UI_ReferenceModel_type"), TassooPackage.Literals.REFERENCE_MODEL__VALUE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the value feature </s>
funcom_train/17901551
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getNextJoin(int axis) { switch (axis) { case LEFT_JOIN: return getNextJoin(verticalLeftJoins); case RIGHT_JOIN: return getNextJoin(verticalRightJoins); case TOP_JOIN: return getNextJoin(horizontalTopJoins); case BOTTOM_JOIN: return getNextJoin(horizontalBottomJoins); } return 0; } COM: <s> p retrieves the next available join point on the </s>
funcom_train/17770513
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Entity e) { return id == e.id && Math.abs(x - e.x) < POSITION_THRESHOLD && Math.abs(y - e.y) < POSITION_THRESHOLD && Math.abs(velocityMagnitude - e.velocityMagnitude) < VELOCITY_MAGNITUDE_THRESHOLD && Math.abs(velocityHeading - e.velocityHeading) < VELOCITY_HEADING_THRESHOLD && Math.abs(rotationSpeed - e.rotationSpeed) < ROTATION_SPEED_THRESHOLD; } COM: <s> note that this is an approximate equals </s>
funcom_train/4506932
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public PacketInterceptor getInterceptor(String workgroup, int index) { List<PacketInterceptor> interceptors = getLocalInterceptors(workgroup); if (interceptors == null) { return null; } if (index < 0 || (index > interceptors.size())) { throw new IndexOutOfBoundsException("Index " + index + " invalid."); } return interceptors.get(index); } COM: <s> return the interceptor at the specified index in the list of currently configured </s>
funcom_train/38518088
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void store() throws DirectorException { DirectoryAccess dir = Directory.getDirectory( "DocExtDocu" ); if( dir == null ) return; dir.ensureOu( "External Documents" ); DBObject dbo = toDBObject(); dbo.completeDN( new DN( "ou=External Documents" ) ); dir.replace( dbo ); } COM: <s> store the current object meta information in the database </s>
funcom_train/22162899
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void registerConnListeners() { Connection conn = getConn(); BasicListenerManager listenerManager = (BasicListenerManager) conn.getListenerManager(); listenerManager.addChannelsListener(this); listenerManager.addConnectionListener(this); listenerManager.addChatListener(this); listenerManager.addPlainTextListener(this); mainPane.addChangeListener(this); } COM: <s> registers all listeners for this plugin </s>
funcom_train/26594395
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void getSum(Object result0, FieldBase newObject) throws DException { try { result = GeneralPurposeStaticClass.computeSum(result0, newObject, dataType); } catch (DException ex) { if (ex.getDseCode().equals("DSE8101")) { promoteDatatype(); getSum(result0, newObject); } else { throw ex; } } } COM: <s> this method performs the addition sum of value passed to the result i </s>
funcom_train/8528717
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean isSkippable(StartElement se) { for (Iterator<?> it = se.getAttributes(); it.hasNext(); ) { Attribute at = (Attribute) it.next(); QName name = at.getName(); if (name.getLocalPart().equals("render") && at.getValue().equals("required")) { return false; } } return skippable.contains(se.getName().getLocalPart()); } COM: <s> returns code true code if code se code have be </s>
funcom_train/7270767
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void add(SearchResult line) { assert line!=null : "Attempting to add null line"; Long key=Long.valueOf(line.getSize()); List<SearchResult> lines = map.get(key); if (lines==null) { lines=new LinkedList<SearchResult>(); map.put(key, lines); } lines.add(line); } COM: <s> adds line to this </s>
funcom_train/3621511
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public MemoryResultSet getForeignKeys(String catalog, String schema, String table) throws SQLException{ DatabaseMetaData metaData = con.getMetaData(); return new MemoryResultSet(metaData.getImportedKeys(catalog, schema, table), new String[]{"PKCOLUMN_NAME", "PKTABLE_NAME", "FKCOLUMN_NAME", "FK_NAME", "KEY_SEQ"}); } COM: <s> get informations about foreign keys references </s>
funcom_train/13274655
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setTimeZone(String timeZone) { if (!timeZone.equals(this.timeZone)) { String oldTimeZone = this.timeZone; this.timeZone = timeZone; this.propertyChangeSupport.firePropertyChange(Property.TIME_ZONE.name(), oldTimeZone, timeZone); } } COM: <s> sets the edited time zone identifier </s>
funcom_train/35218579
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private List getAttributeLines(IClass iClass) { List lines = new ArrayList(); IAttribute[] iAttributes = iClass.getAttributes(); for (int i = 0; i < iAttributes.length; i++) { IAttribute iAttribute = iAttributes[i]; lines.add(getAttributeLine(iAttribute)); } return lines; } COM: <s> get all attribute information </s>
funcom_train/25638055
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void buildMemberSummary(XMLNode node, Content classContentTree) throws Exception { Content memberSummaryTree = writer.getMemberTreeHeader(); configuration.getBuilderFactory(). getMemberSummaryBuilder(writer).buildChildren(node, memberSummaryTree); classContentTree.addContent(writer.getMemberSummaryTree(memberSummaryTree)); } COM: <s> build the member summary contents of the page </s>
funcom_train/20649122
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void expandFromPath(TreePath tp) { STreeNode stn = (STreeNode)tp.getLastPathComponent(); if (!stn.isLeaf()) { this.expandPath(tp); for (int i=0;i<stn.getChildCount();i++) { TreePath nextPath = tp.pathByAddingChild(stn.getChildAt(i)); expandFromPath(nextPath); } } } COM: <s> internal method used by expand all </s>
funcom_train/29538436
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getJButtonResign() { if (jButtonResign == null) { jButtonResign = new JButton(); jButtonResign.setIcon(new ImageIcon(getClass().getResource("/g/whiteflag.png"))); jButtonResign.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { toolbarHandler.buttonPressed(Button.Resign); } }); } return jButtonResign; } COM: <s> this method initializes j button resign </s>
funcom_train/48388043
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setHidden(Boolean hidden) { if(stack == null || !stack.isDrawn()) { setAttribute("hidden", hidden); } else { if(hidden) { stack.hideSection(getName()); } else { stack.showSection(getName()); } } } COM: <s> sections default to the visible state </s>
funcom_train/28461866
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void flushBlock() throws IOException { if (this.debug) { x.java.lang.System.err().println("TarBuffer.flushBlock() called."); } if (this.outStream == null) { throw new IOException("writing to an input buffer"); } if (this.currRecIdx > 0) { this.writeBlock(); } } COM: <s> flush the current data block if it has any data in it </s>
funcom_train/2624916
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setViewOffset(final double x, final double y) { viewTransform.setOffset(x, y); applyViewConstraints(); invalidatePaint(); firePropertyChange(PROPERTY_CODE_VIEW_TRANSFORM, PROPERTY_VIEW_TRANSFORM, null, viewTransform); } COM: <s> set the offset for the view transform applied to the list of layers </s>
funcom_train/32632191
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testFromSerializedGregorianDate() { Calendar base = new GregorianDate(DateUtil.parseDate(SAMPLE_DATE_STRING, false)); Calendar c1 = new GregorianDate(base); Calendar c2 = (Calendar) DeepCopy.copy(c1); assertDate(c1); assertDate(c2); assertEquals(c1, c2); } COM: <s> tests equality of calendars before and after serialization </s>
funcom_train/43358325
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean countClassAccess(final int classAtStackIndex) { String calledClass; try { if (stack.getStackDepth() > classAtStackIndex) { OpcodeStack.Item itm = stack.getStackItem(classAtStackIndex); JavaClass cls = itm.getJavaClass(); if (cls != null) { calledClass = cls.getClassName(); countClassAccess(calledClass); return true; } } } catch (ClassNotFoundException cfne) { bugReporter.reportMissingClass(cfne); } return false; } COM: <s> increment the count of class access of the class on the stack </s>
funcom_train/36785688
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public NoteADT (double frequency) throws IllegalArgumentException { double dFreq = (new BigDecimal(frequency)).round(ROUNDING).doubleValue(); if (!midiTable.containsValue(dFreq)) throw new IllegalArgumentException("The frequency must be a valid half tone frequency between 0.0 and 13000.0 inclusive."); midi = freqTable.get(dFreq); } COM: <s> constructs a code note adt code with a specified frequency </s>
funcom_train/19748589
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void synchronizeTilesStateOnParentsEqualityChange(boolean newDefinitionsAreEqual, TileContainerUtil tileContainerUtil, String oldCpDefinition, Layout layout) { if (newDefinitionsAreEqual) { // became equal tileContainerUtil.deleteDefinition(oldCpDefinition); } else { // became unequal tileContainerUtil.createDefinition(layout.getCpDefinition(), layout.getCpDefinitionParent()); } } COM: <s> makes changes to tiles state creation deletion </s>
funcom_train/45776525
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Cursor getFolderList() { SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); qb.setTables(FOLDER_TABLE_NAME); SQLiteDatabase db = mOpenHelper.getReadableDatabase(); return qb.query(db, null, null, null, null, null, "created ASC"); } COM: <s> returns list of puzzle folders </s>
funcom_train/43213158
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setPassphrase(String passphrase) { throwExceptionIfLocked(); if (passphrase != null) { passphrase = passphrase.trim(); } this.passphrase = passphrase; debugOut("Setting the passphrase to: " + passphrase); if (this.passphrase != null) { this.padding = new BigHash(passphrase.getBytes()).toByteArray(); } else { this.padding = START_VALUE_PADDING; } } COM: <s> p sets the passphrase with which to encrypt the data </s>
funcom_train/18480553
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setNumItersU(int num_iters_u) { if (num_iters_u != this.num_iters_u) { int old = this.num_iters_u ; this.num_iters_u = num_iters_u ; notifyChanged(NUMITERSU,old,num_iters_u) ; createContents() ; } } COM: <s> sets the number of iterations to use for the base </s>
funcom_train/22337296
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void createImageCanvas(final Composite parent) { final GridLayout gridLayout = new GridLayout(); gridLayout.numColumns = 1; parent.setLayout(gridLayout); final GridData gridData = new GridData(); gridData.horizontalAlignment = GridData.FILL; gridData.grabExcessHorizontalSpace = true; gridData.grabExcessVerticalSpace = true; gridData.verticalAlignment = GridData.FILL; imageCanvas = new ImageCanvas(parent, SWT.FLAT); imageCanvas.setLayoutData(gridData); } COM: <s> this method initializes image canvas </s>
funcom_train/37077392
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int addResults(java.util.Collection<SeqFeatureI> features) { int count = 0; for (SeqFeatureI feature : features) { if (!feature.isAnnot() && !getResults().contains(feature)) { getResults().add(feature); count++; } } return count; } COM: <s> adds a collection of results to the list of results </s>
funcom_train/18806445
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public LegendItemCollection getLegendItems() { LegendItemCollection result = new LegendItemCollection(); if (this.subplots != null) { Iterator iterator = this.subplots.iterator(); while (iterator.hasNext()) { CategoryPlot plot = (CategoryPlot) iterator.next(); LegendItemCollection more = plot.getLegendItems(); result.addAll(more); } } return result; } COM: <s> returns a collection of legend items for the plot </s>
funcom_train/50090974
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setForceField(String ffname) throws CDKException { if (ffname == null) { ffname = "mm2"; } try { forceFieldName = ffname; ffc.setForceFieldConfigurator(ffname); parameterSet = ffc.getParameterSet(); } catch (Exception ex1) { logger.error("Problem with ForceField configuration due to>" + ex1.getMessage()); logger.debug(ex1); throw new CDKException("Problem with ForceField configuration due to>" + ex1.getMessage(), ex1); } } COM: <s> sets the force field attribute of the model builder3 d object </s>
funcom_train/14100211
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean epsilonEquals(GVector v1, double epsilon) { if (elementCount != v1.elementCount) return false; double [] v1data = v1.elementData; for (int i = 0; i < elementCount; i++) { if (Math.abs(elementData[i] - v1data[i]) > epsilon) return false; } return true; } COM: <s> returns true if the l infinite distance between this vector </s>
funcom_train/43204956
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getJContentPane() { if (jContentPane == null) { jContentPane = new JPanel(); jContentPane.setLayout(new BorderLayout()); jContentPane.add(getBuyTradesSelector(), BorderLayout.NORTH); jContentPane.add(new JSeparator(SwingConstants.HORIZONTAL)); jContentPane.add(getReconcile(), BorderLayout.SOUTH); } return jContentPane; } COM: <s> this method initializes j content pane </s>
funcom_train/41760822
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Player getPositionOccupier(Position pos) { for (int i = 0; i < maxPlayers; i++) { if (this.playerlist[i] != null) { if (playerlist[i].getPosition().equals(pos)) { return playerlist[i]; } } } /* If it fell out of the loop then no Players were found there * So we return null */ return null; } COM: <s> find the occupier of a board position for collision detection </s>
funcom_train/16616550
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public File getJobsFile() throws FileNotFoundException { File file = new File(homeDir, Definitions.DIRNAME_CONFIG + File.separatorChar + Definitions.FILENAME_JOBS); if (!file.isFile()) { throw new FileNotFoundException("Could not find jobs definition file \"" + file.getAbsolutePath() + "\""); } return file; } COM: <s> returns a file object denoting the quartz jobs configuration file jobs </s>
funcom_train/3006546
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object invoke(Object p_proxy, Method p_method, Object[] p_args) throws Throwable { Object result = null; EJBObject ejbResult = null; if (_serviceKey != null) { return HttpSessionClient.getInstance().invoke(_serviceKey, p_method, p_args); } else { return HttpSessionClient.getInstance().invoke(_service, p_method, p_args); } } COM: <s> this method is called on every call on the interface </s>
funcom_train/28116347
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void verifyMapMessage(MapMessage message) throws Exception { Enumeration iter = message.getMapNames(); if (iter.hasMoreElements()) { // let the expect operation handle the exception String name = (String) iter.nextElement(); expect(message, "getObject", new Object[]{name}, null); } } COM: <s> verify a map message instance has no data </s>
funcom_train/25855087
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void printElement() { System.out.print("Individual - IFS: "); for (String key : _labelFullStrings.keySet()) { String indexFullString = _labelFullStrings.get(key); System.out.print(indexFullString + "(" + key.substring(key.indexOf("#") + 1) + "); "); } System.out.println("(" + LabelizerEnvironment.URI + ": " + getURI() + ")"); } COM: <s> print a friendly version of the ontology individual representation </s>
funcom_train/3581902
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double kurtosis() throws ArithmeticException { if (moments[0] < 4) return Double.NaN; double kFact = (moments[0] - 2) * (moments[0] - 3); double n1 = moments[0] - 1; double v = variance(); return (moments[4] * moments[0] * moments[0] * (moments[0] + 1) / (v * v * n1) - n1 * n1 * 3) / kFact; } COM: <s> the kurtosis measures the sharpness of the distribution near </s>
funcom_train/51168616
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setCreation(Date v) { if ( v != null) this.creation = new Date(v.getYear(), v.getMonth(), v.getDate(), v.getHours(), v.getMinutes(), v.getSeconds()); else this.creation = v; } COM: <s> set the value of creation </s>
funcom_train/4291586
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void evaluateLiteralComparison(ComparisonExpression expr) throws Qvtr2Exception { IEvaluator<Value,?> evaluator = doubleEvaluatorFactory.newEvaluator(expr); if (evaluator == null) evaluator = valuesEvaluatorFactory.newEvaluator(expr); if (evaluator == null) throw new Qvtr2Exception("Unable to find evaluator for expression"); Iterable<Value> lValues = getPropertyValues(expr.getReferencedProperty()); operandsStack.push(evaluateComparison(lValues, evaluator)); } COM: <s> evaluates a comparison expression between a property reference and a literal expression </s>
funcom_train/22163565
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void sessionEstablished(SessionEvent evt) { super.sessionEstablished(evt); Session session = evt.getSession(); mainFrame.setTitle(session.getUser().getUsername() + " at " + session.getServer().getShortName() + " - " + Jin.getInstance().getAppName()); menubar.add(actionsMenu, 1); menubar.add(windowsMenu, 3); } COM: <s> session listener implementation </s>
funcom_train/2501359
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getResourcePathFromCss(String cssLine){ int posInicial = 0; int posFinal = 0; if (cssLine != null){ for (int i=0; i<cssLine.length(); i++){ if (cssLine.charAt(i) == '\"'){ if (posInicial >0) posFinal = i; if (posInicial == 0) posInicial = i+1; } } } return cssLine.substring(posInicial, posFinal); } COM: <s> provide the path of the resource within the css </s>
funcom_train/16463081
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void sendForm(Form form, Collection<Contact> contacts) { // TODO if it is possible, we could send forms directly to people here // Send a text SMS to each contact informing them that a new form is available. // FIXME i18n this String messageContent = "There is a new form available: " + form.getName(); for(Contact c : contacts) { this.frontlineController.sendTextMessage(c.getMsisdn(), messageContent); } } COM: <s> send a form to a collection of contacts </s>
funcom_train/43095419
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean hit(Rectangle r) { int cornersHit = countCornersContained(r.x, r.y, r.width, r.height); if (_filled) { return cornersHit > 0 || intersects(r); } return (cornersHit > 0 && cornersHit < 4) || intersects(r); } COM: <s> necessary since gef contains some errors regarding the hit subject </s>
funcom_train/21850614
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void print() { System.out.println("................ properties memento: " + getBeanClassName() + " .............."); java.util.Iterator iter = m_props.keySet().iterator(); while (iter.hasNext()) { String pname = (String) iter.next(); System.out.println(" " + pname + " = " + m_props.get(pname)); } } COM: <s> prints this object to the console </s>
funcom_train/50775281
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void fireProgress(Object source, String sFileName, int iMin, int iValue, int iMax) { fireProgress(new ProgressEvent(source, ProgressEvent.MESSAGE & ProgressEvent.PROGRESS, sFileName, iMin, iValue, iMax)); } COM: <s> fire an progress event to any registered listeners with </s>
funcom_train/41721876
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setidentityAttributes(Map<String,Object> identityAttributes) { // Create a list of equal weights HashMap<String,Double> identityWeights = new HashMap<String,Double>(); int identitySize = identityAttributes.size(); for (String name : identityAttributes.keySet()) { identityWeights.put(name, (double) 1/identitySize); } // Set the attributes with those weights setIdentityAttributes(identityAttributes,identityWeights); } COM: <s> sets the identity attributes </s>
funcom_train/51295006
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void reloadLanguage() { lbHost.setText(LanguageClass.getValue("general.host")); this.setTitle(LanguageClass.getValue("auth.authentication")); password_label.setText(LanguageClass.getValue("auth.password")); username_label.setText(LanguageClass.getValue("auth.user_name")); choose_db_label.setText(LanguageClass.getValue("auth.db")); btn_cancel.setText(LanguageClass.getValue("general.cancel")); } COM: <s> reset language properties for window components </s>
funcom_train/34105060
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addMethodToMethodConnection(String source, String target) { MemberModel sourceModel = methodModels.get(source); MemberModel targetModel = methodModels.get(target); if (sourceModel != null && targetModel != null) { connectionModels.add(new ConnectionModel(sourceModel, targetModel, true)); } else { palette.addEdge(new Edge(source, target, true)); } } COM: <s> adds a connection between the source method and the </s>
funcom_train/44748525
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setPeptides(Peptide[] peptides) { listModel.clear(); for (int i = 0; i < peptides.length; i++) { listModel.addElement(peptides[i]); } int index = peptideList.getSelectedIndex(); peptideList.setSelectedIndex(index); peptideList.ensureIndexIsVisible(index); } COM: <s> set peptides listed </s>
funcom_train/8073710
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Instances transformedHeader() throws Exception { if (m_independentComponents == null) { // throw new Exception("Independent components hasn't been built yet"); System.out.println("WARNING!! Independent components could not be built, returning original data"); } if (m_transBackToOriginal) { return m_originalSpaceFormat; } else { return m_transformedFormat; } } COM: <s> returns just the header for the transformed data ie </s>
funcom_train/11731676
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addPropertyName(Document doc, Name name) { String fieldName = name.getLocalName(); try { fieldName = resolver.getJCRName(name); } catch (NamespaceException e) { // will never happen } doc.add(new Field(FieldNames.PROPERTIES_SET, false, fieldName, Field.Store.NO, Field.Index.NOT_ANALYZED_NO_NORMS, Field.TermVector.NO)); } COM: <s> adds the property name to the lucene properties set field </s>
funcom_train/29267600
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public NameXmlTransform createNameXmlTransform() { if (nameXmlTransforms == null) { nameXmlTransforms = new ArrayList(); } NameXmlTransform result = ((JAXBXsObjectFactory) getObjectFactory()).newNameXmlTransform(this); nameXmlTransforms.add(result); return result; } COM: <s> p creates a new name xml transform implementation </s>
funcom_train/32649320
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void createIconStackComposite() { GridData gridData5 = new GridData(); gridData5.grabExcessHorizontalSpace = true; gridData5.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL; gridData5.verticalAlignment = org.eclipse.swt.layout.GridData.FILL; gridData5.grabExcessVerticalSpace = true; iconStackComposite = new StackComposite(group, SWT.NONE); iconStackComposite.setLayoutData(gridData5); createNoneComposite(); createSimpleIconConfigurator(); createCustomImageConfigurator(); } COM: <s> this method initializes icon stack composite </s>
funcom_train/12309925
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void initializeDefaultPreferences() { Plugin plugin = UpdateCore.getPlugin(); plugin.getPluginPreferences().setDefault(UpdateCore.P_CHECK_SIGNATURE, true); plugin.getPluginPreferences().setDefault(UpdateCore.P_AUTOMATICALLY_CHOOSE_MIRROR, false); plugin.getPluginPreferences().setDefault(UpdateCore.P_HISTORY_SIZE, UpdateCore.DEFAULT_HISTORY); plugin.getPluginPreferences().setDefault(UpdateCore.P_UPDATE_VERSIONS, UpdateCore.EQUIVALENT_VALUE); } COM: <s> initializes the default preferences settings for this plug in </s>
funcom_train/25717389
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getBinaryInt(int offset, int len) { validate(offset,len=normalizeLength(len)); if(len<=0) return 0; int fsiz=4; for(int i=fsiz;i<8;++i) byteLong[i]=0;//clear temporary byteBuffer.position(offset); byteBuffer.get(byteLong, fsiz, len); for(int i=0;i<fsiz;++i) byteLong[i]=((byteLong[fsiz]<0)?(byte)-1:(byte)0); return byteLongBuffer.getInt(fsiz); } COM: <s> function cobol binary usage number from buffer memory </s>
funcom_train/23182036
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getPlotterName() { PlotterModel pm = plotterHandler.plotterModel; if (pm.isCalibrationMode()) { return "Calibration"; } else if (pm.mapProjection == null) { return "No projection"; } else { return pm.getPlotterMap() != null ? plotterHandler.plotterModel .getPlotterMap().toString() : "World view"; } } COM: <s> returns a name of a </s>
funcom_train/46332239
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected int getRowForPoint(String pname) { int res = -1; if (itsPoints != null) { for (int p = 0; p < itsPoints.size(); p++) { String thiss = (String) itsPoints.get(p); if (thiss != null && thiss.equals(pname)) { res = p; break; } } } return res; } COM: <s> return the row in which the specified point is being displayed </s>
funcom_train/41266281
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void delete(Prounimed entity) { EntityManagerHelper .log("deleting Prounimed instance", Level.INFO, null); try { entity = getEntityManager().getReference(Prounimed.class, entity.getId()); 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 prounimed entity </s>
funcom_train/25914316
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String formatJSONString(JSONArray jsonArray){ if(jsonArray==null) return null; if(jsonArray.length()==0) return "{\"count\":0}"; String jsonString = null; try { JSONObject result = new JSONObject(); compactFeedSize_ = jsonArray.length(); result.put("count", compactFeedSize_); if(svcMode_ == MODE_LOCALSEARCH) result.put("result", jsonArray); else result.put("photo", jsonArray); jsonString = result.toString(); } catch (JSONException e) { e.printStackTrace(); jsonString = "{\"count\":0}"; } return jsonString; } COM: <s> format jsonarray to json string </s>
funcom_train/20620246
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isRoleTypeUsed(){ if (editedRoleType == null){ return false; } OntylogConceptQuery ontyConQuery = DTSAppManager.getQuery().getOntylogConceptQuery(); try { return !ontyConQuery.isRoleTypeUsed(editedRoleType); } catch (DTSException e) { Categories.uiModel().error("Error while finding whether Role Type can be deleted."); } return false; } COM: <s> whether edited role type can be deleted </s>
funcom_train/26021266
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toXml(){ return "<"+TABLE_NAME+">\n"+ "\t<"+Stop.STOP_ID+">"+id+"</"+Stop.STOP_ID+">\n"+ "\t<"+Stop.TITLE+">"+title+"<"+Stop.TITLE+">\n"+ "\t<"+Stop.ROUTE_TYPE+">"+routeTypeId+"</"+Stop.ROUTE_TYPE+">\n"+ "\t<"+Stop.ROUTE+">"+routeId+"</"+Stop.ROUTE+">\n"+ "\t<"+Stop.DIRECTION+">"+directionId+"</"+Stop.DIRECTION+">\n"+ "\t<"+Stop.LAT+">"+lat+"</"+Stop.LAT+">\n"+ "\t<"+Stop.LON+">"+lon+"</"+Stop.LON+">\n"+ "\t<"+Stop.CREATE_DATE+">"+createDate+"</"+Stop.CREATE_DATE+">\n"+ "</"+TABLE_NAME+">\n" ; } COM: <s> dumps current instance values to a string </s>
funcom_train/36994550
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setOwner(final Object owner) { if (this.owner != null) { throw new IllegalStateException("Owner has already been set, and cannot be changed."); } if (owner == null) { throw new IllegalArgumentException("MetaData cannot have a null owner."); } this.owner = new WeakReference<Object>(owner); } COM: <s> sets the owner of this code meta data code </s>
funcom_train/29680016
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int show() { PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() { public void run() { dialog = new MessageDialog(PlatformUI.getWorkbench().getDisplay() .getActiveShell(), title, null, message, style, buttonLabels, 0); result = dialog.open(); } }); return result; } COM: <s> opens the message dialog and returns its result </s>
funcom_train/15518691
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void startModule(MauveFrame frame) { model = (XmfaViewerModel) frame.getModel (); backbone = new ProcessBackboneFile (BackboneListBuilder.getFileByKey(model, model.getXmfa(),"BackboneFile").getAbsolutePath()).getBackboneSegments(); pareContigs (); for (int i = 0; i < model.getSequenceCount(); i++) { SegmentComparator comp = new SegmentComparator (i); Collections.sort(backbone, comp); writeFasta (i); } } COM: <s> called when mauve frame and model are instantiated starts write process </s>
funcom_train/4689032
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testIncorrectProjectName() throws Exception { openCXFendpointWizard(); Util.waitForWindowToAppear(bot, NEW_CXF_ENDPOINT_WINDOW, TestConstants.TIMEOUT_FOR_REFRESHING); bot.text().setText("TestWrongProjectName"); try { Util.waitForButtonToEnable(bot.button(TestConstants.BUTTON_NEXT), TestConstants.TIMEOUT_FOR_ENABLE); fail("Incorrect Project name, but wizard can continue."); } catch (InterruptedException ie) { bot.button(TestConstants.BUTTON_CANCEL).click(); } } COM: <s> trying to create cxf endpoint with incorrect project name </s>
funcom_train/21016327
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addLine(int index) { requireTrue((index >= 0) && (index <= getLineCount()), "@require (0 <= index <= getLineCount())"); for (Cell cell : _cells) { if (cell.line >= index) { cell.line++; } else if ((cell.line < index) && (cell.line + cell.lineSpan > index)) { cell.lineSpan++; } } _lineCount++; reset(); } COM: <s> adds an empty line at the given index </s>
funcom_train/37867556
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Principal getPrincipal(String username) { Account user = null; try { user = service.getAccount(username); } catch (XMLDBException e) { } if (user == null) { user = defaultUser; } // Accumulate the list of roles for this user ArrayList<String> list = new ArrayList<String>(); String[] groups = user.getGroups(); for (int i = 0; i < groups.length; i++) { list.add(groups[i]); } return (Principal) new DefaultXmldbPrinciple(this, username, user.getPassword(), list); } COM: <s> return the principal associated with the given user name </s>
funcom_train/16937239
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeLocalEjb(String name) { entries.remove(name); ContextLocalEjb localEjb = null; synchronized (localEjbs) { localEjb = (ContextLocalEjb) ejbs.remove(name); } if (localEjb != null) { support.firePropertyChange("localEjb", localEjb, null); localEjb.setNamingResources(null); } } COM: <s> remove any local ejb resource reference with the specified name </s>
funcom_train/40627261
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void stop() { if(isActive) { isActive = false; if(myTimer != null) { myTimer.cancel(); } if(myTimeoutTimerTask != null) { myTimeoutTimerTask.cancel(); } if(myTimer != null) { myTimer.purge(); } } } COM: <s> stops the user activity scheduler </s>
funcom_train/50041137
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Alignment next() { if (!hasNext()) { throw new NoSuchElementException(); } Alignments.AlignmentEntry entry; entry = nextEntry; nextEntry = null; // LOG.debug(String.format("next targetIndex: %d position: %d", targetIndex, entry.getPosition())); currentPosition = entry.getPosition(); return new GobyAlignment(this, entry); } COM: <s> return the next alignment </s>
funcom_train/15609246
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public CuratedExon getExonForStartCodon() { if (this.startCodon == null) { return null; } GeometricAlignment codonAlign = startCodon.getOnlyGeometricAlignmentToOnlyAxis(); if (codonAlign == null) { return null; } return (CuratedExon) this.getSubFeatureAtPositionOnAxis( codonAlign.getAxis(), codonAlign.getRangeOnAxis().getStart()); } COM: <s> get the curated exon that contains the start codons start position </s>
funcom_train/8045959
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testProperlyImplementedClass() { final ProperlyImplementedEquals a = new ProperlyImplementedEquals( 200 ); final ProperlyImplementedEquals b = new ProperlyImplementedEquals( 200 ); final ProperlyImplementedEquals c = new ProperlyImplementedEquals( 400 ); final ProperlyImplementedEquals d = new ProperlyImplementedEquals( 200 ) { }; new EqualsTester( a, b, c, d ); } COM: <s> test the good case </s>
funcom_train/47957977
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String lock_filename(_Tile tile){ Generator<TileCoordinate> tiles = meta_grid.tiles(tile.coord); TileCoordinate first_tile = tiles.iterator().next(); //first_tile, _ = tiles.next() return lock_filename(new _Tile(first_tile)); } COM: <s> returns a lock for one fixed tile per metatile </s>
funcom_train/1011753
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void transform() { // DONE Knotspec knotspec; outcpts.setPointer(0); for (knotspec = kspec; knotspec != null; knotspec = knotspec.next) knotspec.istransformed = false; for (knotspec = kspec; knotspec != null; knotspec = knotspec.next) { for (Knotspec kspec2 = kspec; kspec2 != null; kspec2 = kspec2.next) kspec2.kspectotrans = knotspec; kspec.transform(outcpts); knotspec.istransformed = true; } } COM: <s> transforms knotspecs conversion </s>
funcom_train/44684221
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object obj) { boolean equal = false; if (obj instanceof Option) { Option option = (Option) obj; equal = this.name.equals(option.getName()) && this.type.equals(option.getType()) && this.required == option.isRequired() && this.defaultValue == option.defaultValue; } return equal; } COM: <s> overwrite equals because the object </s>
funcom_train/15801684
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void getBrwFilesList(MultiThreadedFolderSearch s) { IBrwFile file = null; Vector filelist = s.getFiles(); //contains File objects //will contain BrwFile objects attached to IBrwFile Vector newList = new Vector(); //loop through the vector and convert to correct IBrwType // implementing // type. for (int i = 0; i < filelist.size(); i++) { file = new BrwFile((File) filelist.get(i)); newList.add(file); } m_fileList = newList; } COM: <s> called at the conclusion of search to convert found file objects to </s>
funcom_train/26245176
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getTerrain(int x, int y) { this.lastUsed = System.currentTimeMillis(); x %= WIDTH; y %= HEIGHT; int t = terrain[x][y]; if (t > -1) { return t; } // Look for sub-sector value. x -= x%8; y-= y%10; if (terrain[x][y] > -1) return terrain[x][y]; // Return sector value. return terrain[0][0]; } COM: <s> read the terrain at this location </s>
funcom_train/29938690
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void reset() { IRule[] rules = getRules(); IToken defaultToken = getDefaultToken(); if ((rules != null) && (rules.length != 0)) { setRules(rules); } if (defaultToken != null) { setDefaultReturnToken(defaultToken); } } COM: <s> resets the configuration </s>
funcom_train/13966122
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setExternalNameForInternalName(String externalName, String internalName) { _setExternalNameForInternalName(externalName, internalName); _setExternalNameForInternalName(ERXLocalizer.englishLocalizer().plurifiedString(externalName, 2), ERXLocalizer.englishLocalizer().plurifiedString(internalName, 2)); } COM: <s> sets the external name for a given internal name </s>
funcom_train/37827483
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void mouseReleased(MouseEvent e) { /** * requires: MouseEvent as a result of the mouse being released. * effects: If the user has control, all of the state information for the visualization is captured and passed * to the ICM group to transmit to the other clients in the session. */ if (!hasControl()) { return; } rw.SetDesiredUpdateRate(0.01); String command = captureCurrentState(); client.transmitCommand(command); } COM: <s> mouse released event handler captures current state of the visualization </s>
funcom_train/44109203
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void fireNavigationListChanged(String[] types, int numTypes) { int size = navigationStateListeners.size(); for(int i = 0; i < size; i++) { try { NavigationStateListener l = (NavigationStateListener)navigationStateListeners.get(i); l.navigationListChanged(types,numTypes); } catch(Exception e) { System.out.println("Error sending navigation list changed " + e); e.printStackTrace(); } } } COM: <s> fire a navigation list changed event </s>
funcom_train/3717964
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addSubApplication(JKFSubApplication subApplication) { buildViewApplicationIdMappings(subApplication.getView(), subApplication .getApplicationId()); createSubApplicationInfo(subApplication); // if this SubApplication is the first or maybe only SubApplication // switch to this SubApplication if (subApplicationInfos.size() == 1) { SubApplicationInfo info = subApplicationInfos.get( subApplication.getApplicationId()); this.switchApplication((ChangeSubApplicationAction) info .getAction()); } } COM: <s> method for registering a code jkfabstract sub application code to this </s>
funcom_train/45750168
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addSourcePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_DirectedRelationship_source_feature"), getString("_UI_PropertyDescriptor_description", "_UI_DirectedRelationship_source_feature", "_UI_DirectedRelationship_type"), OntoUMLPackage.Literals.DIRECTED_RELATIONSHIP__SOURCE, true, false, true, null, null, null)); } COM: <s> this adds a property descriptor for the source feature </s>