__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/47135595
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addVolumePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_HistPrice_volume_feature"), getString("_UI_PropertyDescriptor_description", "_UI_HistPrice_volume_feature", "_UI_HistPrice_type"), TradingPackage.Literals.HIST_PRICE__VOLUME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the volume feature </s>
funcom_train/22267618
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void writeBlockImpl(final byte[] bytes, final int numBytes) { if (bytes.length > BYTES_PER_SECTOR) { throw new IllegalArgumentException("Block data exceeds block length of " + BYTES_PER_SECTOR + " bytes!"); } System.arraycopy(bytes, 0, this.bytes, getCurrentBlock() * BYTES_PER_SECTOR, numBytes); // the image was modified this.wasModified = true; } COM: <s> write data to the current block </s>
funcom_train/43327277
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void loadFromClassPath() { String fileName = getFileName(); if (fileName==null) return; try { InputStream is = getClass().getResourceAsStream(fileName); if (is==null) throw new IOException(); BufferedReader br = new BufferedReader(new InputStreamReader(new GZIPInputStream(is))); read(br, null); } catch (IOException e) { clear(); } } COM: <s> load in the fold library silently from the classpath </s>
funcom_train/9886664
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public float getMaxRatio(int intensityIndex1, int intensityIndex2, int logState) { float ratio, maxRatio = Float.MIN_VALUE; for (int i = 0; i < size(); i++) { ratio = getSlideDataElement(i).getRatio(intensityIndex1, intensityIndex2, logState); if (ratio > maxRatio) maxRatio = ratio; } return maxRatio; } COM: <s> returns a microarray max ratio value of specified intensities </s>
funcom_train/47948150
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ParameterMetaData findLongitudeIgnoreCase() { ParameterMetaData parameterMetaData = null; for (String name : NetCdfReader.LONGITUDE_NAMES) { parameterMetaData = getParameterMetaDatas(name); if (parameterMetaData != null) { break; } parameterMetaData = getParameterMetaDataFromStandardName(name); if (parameterMetaData != null) { break; } } return parameterMetaData; } COM: <s> finds parameter meta data corresponding to a longitude name </s>
funcom_train/18484772
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void menuHelpAbout_actionPerformed(ActionEvent e) { //set the html help file SOOLCompiler_AboutBox dlg = new SOOLCompiler_AboutBox(this); Dimension dlgSize = dlg.getPreferredSize(); Dimension frmSize = getSize(); Point loc = getLocation(); dlg.setLocation( (frmSize.width - dlgSize.width) / 2 + loc.x, (frmSize.height - dlgSize.height) / 2 + loc.y); dlg.setModal(true); dlg.show(); } COM: <s> help about action performed </s>
funcom_train/8485208
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testTooManyMandatory() throws InterpreterException { // too many arguments: fun2(0,1,2) try { fun2.base_applyInScope(NATTable.atValue(new ATObject[] { NATNumber.ZERO, NATNumber.ONE, NATNumber.atValue(2) }), bindCtx_); fail("Expected XArityMismatch exception"); } catch(XArityMismatch e) { } } COM: <s> tests for too many mandatory arguments </s>
funcom_train/23024825
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSuccessfulRegistration(String directoryId,DirectoryToken directoryToken,String leaseTime,AConcept structuredObject){ registrationBean = new RegistrationBean(); registrationBean.setSuccessfulRegistration(true); registrationBean.setDirectoryId(directoryId); registrationBean.setLeaseTime(leaseTime); registrationBean.setNewDirectoryToken(directoryToken); registrationBean.setStructuredObject(structuredObject); } COM: <s> sets the parameters of a sucessful registration </s>
funcom_train/39564182
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getStateName() { if (isBeforeDownload()) { return "before download"; } else if (isBeforeProcessing()) { return "before processing"; } else if (isAfterProcessing()) { return "after processing"; } else if (isFinished()) { return "finished"; } else { return "invalid page state"; } } COM: <s> returns a code string code containing the name of this state </s>
funcom_train/25010521
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int compareTo(final Spell other) { Integer mine = -1, theirs = -1; Iterator<Integer> iter = order.keySet().iterator(); while (iter.hasNext()) { int key = iter.next(); if (order.get(key).equals(this)) { mine = key; } else if (order.get(key).equals(other)) { theirs = key; } } return mine.compareTo(theirs); } COM: <s> compares with another code spell code for order </s>
funcom_train/17174946
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testRead() throws IOException { Stream llr = new LogicalLineReader(new MultiFileReader(), '#', '\\'); llr.addFile("src/util/test/smallFileWithComments.txt"); assertEquals('u', llr.read()); assertEquals('\n', llr.read()); assertEquals(Stream.END_OF_FILE, llr.read()); } COM: <s> execute the read test </s>
funcom_train/18200651
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean getAdminRight(String userName) { for (JCheckBox check : containterAdmin) { if (check.getActionCommand().replaceFirst("ADMIN_", "").equals(userName)) { return check.isSelected(); } else { continue; } } return false; } COM: <s> returns the admin right of a specific user </s>
funcom_train/12385560
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void curveTo(double x1, double y1, double x2, double y2, double x3, double y3) { this.sb.append( x1 + " " + roty(y1) + " " + x2 + " " + roty(y2) + " " + x3 + " " + roty(y3) + " c\r" ); } COM: <s> add 3 points to the current bezier curve </s>
funcom_train/37433290
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void doOnDisconnect() { Object[] listeners = listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == IOHandlerListener.class) { ((IOHandlerListener) listeners[i + 1]).onDisconnect(this); } } } COM: <s> fires an on disconnect event to all registered listeners </s>
funcom_train/44695107
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Shape getShape() { if (shape == null && points != null) { GeneralPath path = new GeneralPath(); path.moveTo( (float)points[0].getX(), (float)points[0].getY()); for (int i = 1; i <= points.length; ++i) { Point2D p = points[i % points.length]; path.lineTo((float)p.getX(), (float)p.getY()); } path.closePath(); shape = path; } return shape; } COM: <s> constructs and caches the shape of the projected </s>
funcom_train/50042629
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private FilterElement.Operator getOperatorForText(String operatorText) { FilterElement.Operator selected = null; FilterElement.Operator[] operators = FilterElement.Operator.values(); for (FilterElement.Operator operator : operators) { if (operatorText.equals(operator.getValue())) { selected = operator; break; } } return selected; } COM: <s> helper method to convert the string representation of an operator </s>
funcom_train/4362889
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addNotifType(String notifType) { synchronized (notifTypes) { String results[] = new String[notifTypes.length + 1]; System.arraycopy(notifTypes, 0, results, 0, notifTypes.length); results[notifTypes.length] = notifType; notifTypes = results; this.info = null; } } COM: <s> add a new notification type to the set managed by an mbean </s>
funcom_train/40675969
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setPersistenceUnit(String unit) { if (unit != null && unit.length() > 0) { createArg().setValue("-persistenceUnit"); createArg().setValue(unit); log("Enhancer persistenceUnit: " + unit, Project.MSG_VERBOSE); } } COM: <s> set the persistence unit name to enhance </s>
funcom_train/28425844
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void openedConnection(final IConnection con) { Runnable runnable = new Runnable() { public void run() { connections.add(con); int sz = connections.size(); fireTableChanged(new TableModelEvent(FtpConnectionTableModel.this, sz, sz, TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT)); } }; SwingUtilities.invokeLater(runnable); } COM: <s> add a new connection </s>
funcom_train/49409540
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int indexARCFile(String collection, String arcname) throws ArchiveException { int cnt = 0; try { cnt = aw.indexARCFile(collection, arcname); } catch (Exception ex) { throw new ArchiveException( "Error in index arc file " + arcname, ex); } return cnt; } COM: <s> index arcfile generates a cdx index file in arc index dir </s>
funcom_train/20290926
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setType(String tmp) { scope = UNDEFINED; type = ""; if (tmp != null && tmp.length() > 0) { if ("this".equals(tmp)) { scope = THIS; } else if ("all".equals(tmp)) { scope = ALL; } } // Validate the input if (scope != UNDEFINED) { type = tmp; } } COM: <s> sets the type attribute of the search bean object </s>
funcom_train/40359539
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testFindService() { ApplicationContext appContext = context.getApplicationContext(); for (ContextService service : getServicesBeans(appContext).values()) { assertEquals("found expected service", service, context.findService(service.getName())); } assertTrue("null if not found", context.findService("bogus") == null); } COM: <s> tests that services can be retrieved from the context </s>
funcom_train/45947201
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void populate() { Connection connection = null; try { connection = dataSource.getConnection(); createDatabaseSchema(connection); insertTestData(connection); } catch (SQLException e) { throw new RuntimeException("SQL exception occurred acquiring connection", e); } finally { if (connection != null) { try { connection.close(); } catch (SQLException e) { e.printStackTrace(); } } } } COM: <s> populate the test database by creating the database schema from schema </s>
funcom_train/12834541
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected IType chooseType(IType[] types, String mode) { MainTypeSelectionDialog dialog= new MainTypeSelectionDialog(getShell(), types); if (mode.equals(ILaunchManager.DEBUG_MODE)) { dialog.setTitle("Debug"); //$NON-NLS-1$ } else { dialog.setTitle("Run"); //$NON-NLS-1$ } dialog.setMultipleSelection(false); if (dialog.open() == Window.OK) { return (IType)dialog.getFirstResult(); } return null; } COM: <s> prompts the user to select a type </s>
funcom_train/10230809
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void sendUrgent(Cell cell) throws IOException, Exception { if (m_State == STATE_CLOSED) { throw new IOException("circuit alread closed"); } synchronized (m_oSendSync) { if (cell instanceof RelayCell) { cell = m_FirstOR.encryptCell((RelayCell) cell); addToSendCellCounter(-1); } m_FirstORConnection.send(cell); } } COM: <s> urgently sends a cell through the circuit send it directly without </s>
funcom_train/36189232
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object getObjectValue(BundleContext context) { if (m_value == null) { return null; } Class type = null; try { type = PSSProperty.computeType(m_type, context); return PSSProperty.create(type, m_value); } catch (PSSConfigurationException e) { return m_value; // Cannot create the object. } } COM: <s> gets the object value of the current immutable property </s>
funcom_train/48417926
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String removeMe2dayUrls(String text) { Pattern pattern = Pattern.compile("<\\s*a href='http://me2day.net[^>]*>(.*?)<\\s*/\\s*a>", Pattern.CASE_INSENSITIVE); Matcher matcher = pattern.matcher(text); text = matcher.replaceAll(""); text = text.replaceAll("\\[", "").replaceAll("\\]", ""); return text; } COM: <s> removes the me2day urls </s>
funcom_train/39971897
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command generateClaimTileCommand(Card c){ Command com = null; int thisPlayerId=Core.getInstance().getIdOfThisPlayer(); if(c instanceof CreatureCard){ int cardID=Core.getInstance().getIdOfCard(c); com = new Command(CommandType.claimTile, cardID, 0, 0, 0, 0, thisPlayerId); if (CommandValidator.getInstance().validateCommand(com)){ return com; } } com = null; return com; } COM: <s> generates a claim tile command used by the given creature card </s>
funcom_train/34633186
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setTMergeRole(final TMergeNode tMergeRole) { if (tMergeRole == null) throw new ArgumentNullException("tMergeRole"); if ((this.tMergeRole != null) || (this.baseMergeRole != null) || (this.resultMergeRole != null)) throw new RuntimeException("one node can only be associated to one merge role"); this.tMergeRole = tMergeRole; } COM: <s> sets the t merge role </s>
funcom_train/33622141
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getJButton() { if (jButton == null) { jButton = new JButton(); jButton.setBounds(new Rectangle(40, 533, 80, 35)); jButton.setText("Play"); jButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { ControllerLab.getInstance().getTimecontroller().setRunning(true); } }); } return jButton; } COM: <s> this method initializes j button </s>
funcom_train/2889066
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void process(CdlDocument document) throws IOException, CdlException, ParsingException { ParseContext context = document.getParseContext(); for (Import imp : document.getImports()) { CdlDocument imported = context.importDocument(document, imp); //TODO: do we need to do anything with the imported doc? } } COM: <s> process a document </s>
funcom_train/19441899
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testFindEmptyMismatchInEmptyList() { Vector<String> sequence = new Vector<String>(); FindMismatch<String> finder = new FindMismatch<String>(sequence); Iterator<? extends String> iter = finder.fn(new Vector<String>().iterator()); assertFalse(iter.hasNext()); } COM: <s> ensures that comparing an empty list to an empty list doesnt fail </s>
funcom_train/32970237
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Post findPost(int postId) throws BoardObjectNotFoundException { Post res = findPostNE(postId); if (res == null) { throw new BoardObjectNotFoundException("Postagem de ID {0,number,#} não encontrada.", new Integer(postId)); } return res; } COM: <s> retorna uma postagem </s>
funcom_train/43094029
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void removeFigs(Collection c) { Iterator i = c.iterator(); while (i.hasNext()) { Fig obj = (Fig) i.next(); // This should prevent the removeFromDiagram to update the model: obj.setVisible(false); obj.removeFromDiagram(); } } COM: <s> remove this given figs from their diagrams </s>
funcom_train/992539
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void glEvalMesh1 (int mode, int p1, int p2) { if (CC.Mode != None) { CC.gl_error (GL_INVALID_OPERATION, "glEvalMesh1"); return; } switch (mode) { case GL_POINT: case GL_LINE: CC.gl_eval_mesh_1 (mode, p1, p2); break; default: CC.gl_error (GL_INVALID_ENUM, "glEvalMesh1(mode)"); } } COM: <s> glvoid gl eval mesh1 glenum mode glint p1 glint p2 </s>
funcom_train/5522871
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean accept(File directory, String name) { if (directory.length() == 0) { return false; } if (name.endsWith(".icon.png") || name.endsWith(".icon.jpg") || name.endsWith(".icon.jpeg") || name.endsWith(".icon.gif")) { return true; } else { return false; } } COM: <s> accepts or rejects file by name as specified by java </s>
funcom_train/39184086
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void clearColumnValue1(){ crit2CheckBox.setSelected(false); crit2ComboBox1.setSelectedIndex(0); crit2ComboBox2.setSelectedIndex(0); crit2TextField.setText(""); crit2ComboBox1.setEnabled(false); crit2ComboBox2.setEnabled(false); crit2TextField.setEnabled(false); crit2Label.setEnabled(false); } COM: <s> clears the settings for the first column value criteria </s>
funcom_train/1712060
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setFoundTextAreas(Rectangle areas[]){ this.rectAreas=areas; //flag screen for redraw //this one doesn't work //currentManager.addDirtyRegion(this,(int)x1-5,(int)y1-5,(int)(x2-x1)+10,(int)(y2-y1)+10); //currentManager.addDirtyRegion(this,0,0,x_size,y_size); //this.invalidate(); } COM: <s> highlight zones on page for text areas </s>
funcom_train/37035718
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setJspFile(String jspFile) { // if ((jspFile != null) && !jspFile.startsWith("/")) // throw new IllegalArgumentException // (sm.getString("standardWrapper.jspFile.format", jspFile)); String oldJspFile = this.jspFile; this.jspFile = jspFile; support.firePropertyChange("jspFile", oldJspFile, this.jspFile); } COM: <s> set the context relative uri of the jsp file for this servlet </s>
funcom_train/4352331
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void copyPhrase(PhraseObject phrase) { this.wordList.clear(); ListIterator iter = phrase.getIterator(); while (iter.hasNext()) { this.wordList.add(iter.next()); } Iterator iterator = phrase.getLineNumberIterator(); while (iterator.hasNext()) { this.lineNumbers.add(iterator.next()); } } COM: <s> copys a phrase into our list </s>
funcom_train/22318913
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removePropertyNames(String searchRegex) { Pattern pattern = Pattern.compile(searchRegex); for (Iterator i = entrySet().iterator(); i.hasNext();) { Map.Entry e = (Map.Entry) i.next(); String name = (String) e.getKey(); if (pattern.matcher(name).find()) { i.remove(); } } } COM: <s> remove group of names and its value from the propertie map using regex </s>
funcom_train/1501970
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: @Override public boolean add(Event newElement) { final Fraction moment = newElement.getMoment(); ListIterator<Event> iterator = listIterator(); while (iterator.hasNext()) if (iterator.next().getMoment().compareTo(moment) > 0) { iterator.previous(); break; } iterator.add(newElement); return true; } COM: <s> add a new element inserting at the last possible position </s>
funcom_train/26227288
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void analyse(CBodyContext context) throws PositionedError { check(context, context.getLabeledStatement(label) == null, KjcMessages.LABEL_ALREADY_EXISTS, label); CLabeledContext labeledContext; labeledContext = new CLabeledContext(context, context.getEnvironment(), this); body.analyse(labeledContext); labeledContext.close(getTokenReference()); } COM: <s> analyses the statement semantically </s>
funcom_train/37587429
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void uncaughtException(java.lang.Thread t, Throwable e) { _t = t; _e = e; if (_mainThread != null) { // System.err.println("***Uncaught Exception in spawned thread within a MultiThreadedTestCase:"); e.printStackTrace(System.out); _mainThread.interrupt(); } } COM: <s> gets called if an uncaught exception occurs in a thread </s>
funcom_train/43937287
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setStageId(String id) throws StageNotFoundException { try { if (stageManager.getStage(id) == null) { throw new StageNotFoundException(id); } } catch (PipelineException ex) { throw new StageNotFoundException(id, ex); } this.id = id; } COM: <s> sets the id of the stage to create </s>
funcom_train/19246500
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getText(final String message, final Throwable cause) { if (message != null) { if (message.equals(cause.getMessage())) { return message; } if (cause instanceof IOException || cause instanceof NullPointerException) { return message + "; " + cause.toString(); } return message + "; " + cause.getMessage(); } return cause.toString(); } COM: <s> format error message </s>
funcom_train/5260721
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addRealizesPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_BusinessProcess_realizes_feature"), getString("_UI_PropertyDescriptor_description", "_UI_BusinessProcess_realizes_feature", "_UI_BusinessProcess_type"), BmmPackage.Literals.BUSINESS_PROCESS__REALIZES, true, false, true, null, null, null)); } COM: <s> this adds a property descriptor for the realizes feature </s>
funcom_train/9143536
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addClassExtractedFromCode(String className){ String toPut = className.replaceAll("[/\\\\]+", "."); try { if (!this.entities.containsKey(toPut)) { this.entities.put(toPut, new ClassNode(toPut)); } this.classesExtracted.add((ClassNode) this.getEntity(toPut)); } catch (InexistentEntityException e) { e.printStackTrace(); } } COM: <s> adds a class that was extracted from code </s>
funcom_train/9363318
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setQuotaForOrigin(String origin, long quota) { if (origin != null) { if (WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName())) { nativeSetQuotaForOrigin(origin, quota); } else { postMessage(Message.obtain(null, SET_QUOTA_ORIGIN, new Origin(origin, quota))); } } } COM: <s> set the quota for a given origin </s>
funcom_train/23293908
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void callActivationMethod(BundleContext bc,Object service,Class serviceclass) { Method[] methods=serviceclass.getDeclaredMethods(); for (Method m:methods) { if (m.isAnnotationPresent(ActivationMethod.class)) { try { m.invoke(service, new Object[] {} ); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } } COM: <s> looks for methods with the annotation </s>
funcom_train/12809619
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void processTag(final boolean start) { if (start) { nested++; doc.startElement(tag,attributes); } else { // White spaces following new lines need to be ignored in HTML if(newLineHandler.isNewLineTag(tag)) { nowhite = false; } nested--; doc.endElement(tag); } } COM: <s> processes the tag </s>
funcom_train/3302818
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Element findChild(String tag,String attribute,String attributeValue) { for (Node iter=firstChild;iter!=null;iter=iter.followingSibling) if (iter instanceof Element) { Element e=(Element)iter; if (e.tag.equals(tag)) if (attributeValue.equals(e.getAttribute(attribute))) return e; } return null; } COM: <s> find a specific node </s>
funcom_train/279666
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void populateManager(IContributionManager manager, Collection actions, String contributionID) { if (actions != null) { for (Iterator i = actions.iterator(); i.hasNext(); ) { IAction action = (IAction)i.next(); if (contributionID != null) { manager.insertBefore(contributionID, action); } else { manager.add(action); } } } } COM: <s> this populates the specified code manager code with </s>
funcom_train/18827548
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { StringBuffer sb = new StringBuffer(this.getClass().getName()) .append(": ").append(super.toString()); if (cause != null) { sb.append("; caused by: ").append(cause.toString()); } return sb.toString(); } COM: <s> p returns the string representation of this exception </s>
funcom_train/12188847
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testQualifiedVariableEvaluate() throws Exception { NamespacePrefixTracker manager = context.getNamespacePrefixTracker(); manager.startPrefixMapping("p", "http://myNamespace"); context.getCurrentScope().declareVariable( new ImmutableExpandedName("http://myNamespace", "var"), result); Expression exp = compileExpression("$p:var"); assertTrue("Variable expression evaluation failed", exp.evaluate(context) == result); } COM: <s> ensures that a qualified variable reference can be evaluated </s>
funcom_train/41016589
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getAttachmentData(final int attachmentId) { // from attachment id: find corresponding message id (for zip name) AttachmentTO aTO = getAttachment(attachmentId); // stream from zip file to memory ByteArrayOutputStream baos = new ByteArrayOutputStream(2048); streamAttachmentFromZipfile(aTO, baos); String res = baos.toString(); baos = null; return res; } COM: <s> accesses attachment data as string intended to be used for text </s>
funcom_train/1610037
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String viewMetadata() { log.debug("View metadata"); this.eml = (Eml) getRequest().getSession().getAttribute("eml"); this.currentDoc = (File) getRequest().getSession().getAttribute(currentFileSessionAttribute); this.callbackUrl = (String) getRequest().getSession().getAttribute("callbackUrl"); return SUCCESS; } COM: <s> view the metadata for this document </s>
funcom_train/33281991
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public MediaList jsxGet_media() { if (media_ == null) { final CSSStyleSheet parent = jsxGet_parentStyleSheet(); final org.w3c.dom.stylesheets.MediaList ml = getImportRule().getMedia(); media_ = new MediaList(parent, ml); } return media_; } COM: <s> returns the media types that the imported css style sheet applies to </s>
funcom_train/40102978
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void saveFileToTempDirectory(final FileUpload upload, File newFile) { try { newFile.createNewFile(); upload.writeTo(newFile); feedback.info("saved file: " + upload.getClientFileName()); } catch (IOException e) { throw new IllegalStateException("Unable to write file"); } } COM: <s> save the new file to the temp directory </s>
funcom_train/34822827
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addKey(String name, String elt, String type, Class<?> desc) { Key key = new Key(name, elt, type, desc); if (classKeySet.get(elt) == null) { ArrayList<Key> keys = new ArrayList<Key>(); classKeySet.put(elt, keys); } key.setId("k" + index); index++; classKeySet.get(elt).add(key); } COM: <s> add a key to this exporter </s>
funcom_train/30196841
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetLivelloRiconoscibilta() { System.out.println("setLivelloRiconoscibilta"); String livelloRiconoscibilta = "test"; TitoloScolastico instance = new TitoloScolastico(); instance.setLivelloRiconoscibilta(livelloRiconoscibilta); String result = instance.getLivelloRiconoscibilta(); assertEquals("test", result); } COM: <s> test of set livello riconoscibilta method of class com </s>
funcom_train/194219
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JSpinner getMaxTime() { if (maxTime == null) { SpinnerDateModel spinnerDateModel = new SpinnerDateModel(); spinnerDateModel.setCalendarField(Calendar.MINUTE); maxTime = new JSpinner(); maxTime.setUI(new BasicSpinnerUI()); maxTime.setModel(spinnerDateModel); maxTime.setEditor(new JSpinner.DateEditor(maxTime, "mm:ss")); } return maxTime; } COM: <s> this method initializes max time </s>
funcom_train/22047691
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean readXMLObjectFromURL(Class<T> c, URL fileURL) { clearObject(); try { StringBuffer output = this.readXMLStringFromURL(fileURL); return this.readXMLObject(c, output); } catch (FileNotFoundException fnfe) { return false; } } COM: <s> reads an xml file in attempting to use the package and file passed </s>
funcom_train/39164114
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void restoreSelectedTypes(){ TypeSpec typeSpec; while((typeSpec = visibleAnnotationTypes.poll()) != null){ TypeHandler typeHandler = getTypeHandler(typeSpec.setName, typeSpec.type); if (typeHandler != null) { // may have been deleted since typeHandler.setSelected(true); } } } COM: <s> restores the selected types based on the state saved in the </s>
funcom_train/1100069
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void drop(Widget widget, int left, int top) { left = Math.max(0, Math.min(left, dropTarget.getOffsetWidth() - widget.getOffsetWidth())); top = Math.max(0, Math.min(top, dropTarget.getOffsetHeight() - widget.getOffsetHeight())); dropTarget.add(widget, left, top); } COM: <s> programmatically drop a widget on our drop target while obeying the </s>
funcom_train/17892689
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeObjects() { final Iterator iterator = wrappers.values().iterator(); BeanWrapper wrapper; while (iterator.hasNext()) { wrapper = (BeanWrapper)iterator.next(); wrapper.removeMouseListener(this); wrapper.removeMouseMotionListener(this); this.remove(wrapper); } } COM: <s> removes and unregisters all the bean wrappers </s>
funcom_train/48502453
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void lock() throws ConcurrentModificationException { Transaction tx = DatastoreUtil.beginTransaction(ds); try { Lock other = getOrNull(ds, tx, key); if (other != null) { verify(other); } DatastoreUtil.put(ds, tx, toEntity()); tx.commit(); return; } finally { if (tx.isActive()) { tx.rollback(); } } } COM: <s> locks the entity group </s>
funcom_train/19765398
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getCleanCommand() { if (cleanCommand == null) {//GEN-END:|37-getter|0|37-preInit // write pre-init user code here cleanCommand = new Command("\u6E05\u9664", Command.SCREEN, 0);//GEN-LINE:|37-getter|1|37-postInit // write post-init user code here }//GEN-BEGIN:|37-getter|2| return cleanCommand; } COM: <s> returns an initiliazed instance of clean command component </s>
funcom_train/1049455
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getControls() { if (controls == null) { controls = new JPanel(); controls.setLayout(null); controls.setMaximumSize(new java.awt.Dimension(430,30)); controls.setPreferredSize(new java.awt.Dimension(430,30)); controls.setMinimumSize(new java.awt.Dimension(430,30)); controls.add(getSolo(), null); controls.add(getPassOn(), null); controls.setPreferredSize(new java.awt.Dimension(430,25)); controls.setMinimumSize(new java.awt.Dimension(430,25)); controls.setMaximumSize(new java.awt.Dimension(430,25)); } return controls; } COM: <s> this method initializes controls </s>
funcom_train/2739988
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void visitCtlSpecs(List<CtlSpec> ctlSpecs) { ctlList = new ArrayList<String>(); ctlListNames = new ArrayList<String>(); String name; if (ctlSpecs != null) { for (CtlSpec ctlSpec: ctlSpecs) { ctlList.add(tp.visit(ctlSpec.getBody())); name = ctlSpec.getName(); if(name != null) { ctlListNames.add(name); } else { ctlListNames.add(""); } } } } COM: <s> it visits the ctl specifications </s>
funcom_train/10748365
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testIsAnnotationPresent() throws Throwable { assertTrue("case 1", getElement1().isAnnotationPresent(TagAntn.class)); assertTrue("case 2", getElement2().isAnnotationPresent(TagAntn.class)); assertTrue("case 3", getElement2().isAnnotationPresent(ValAntn.class)); } COM: <s> is annotation present class should return true </s>
funcom_train/22975015
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String makeValue(ResultRow row) { int index = 0; StringBuffer result = new StringBuffer(this.firstLiteralPart); while (index < this.columns.size()) { Attribute column = (Attribute) this.columns.get(index); ColumnFunction function = (ColumnFunction) this.columnFunctions.get(index); String value = row.get(column); if (value == null) { return null; } value = function.encode(value); if (value == null) { return null; } result.append(value); result.append(this.literalParts.get(index)); index++; } return result.toString(); } COM: <s> constructs a string from the pattern using the given database row </s>
funcom_train/14092956
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetWindowsJWindow() { SplashScreen splashScreen = new SplashScreen(); flushAWT(); Window[] windows = WindowMonitor.getWindows(); Vector results = new Vector(Arrays.asList(windows)); assertTrue("Windows are not the same", results.contains(splashScreen)); m_window = splashScreen; // register this to be destroyed at the end } COM: <s> validate that we can capture the jwindow </s>
funcom_train/8376083
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void killServer() { try { // System.out.println("TcpServer.killServer()"); // --- stop the server server.close(); // Debug.writeActivity("TCP XML/Flash server stopped"); } catch (IOException ioe) { // Debug.writeActivity("Error while stopping TCP XML/Flash server"); } } COM: <s> stops the tcp server </s>
funcom_train/46136790
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getProjectName() { final String text = getProjectNameText().getText(); final String currentTimeMillis = Long.toString(System.currentTimeMillis()); if (Utility.isEmpty(text)) { return currentTimeMillis; } else { return text + SPACE + currentTimeMillis; } } COM: <s> gets the project name </s>
funcom_train/42087425
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ComicSite getNextComic() { if (allComics.isEmpty()) { return null; } if (current < 0 || ++current >= allComics.size()) { current = 0; } ComicSite cs = allComics.get(current); cs.getStrip().loadImage(); return cs; } COM: <s> moves to and returns the next comic site for display </s>
funcom_train/976351
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void transpose() { double m[][] = new double[matrix[0].length][matrix.length]; for (int i = 0; i < matrix.length; i++) for (int j = 0; j < matrix[i].length; j++) m[j][i] = matrix[i][j]; matrix = new double[m.length][m[0].length]; for (int i = 0; i < m.length; i++) for (int j = 0; j < m[i].length; j++) matrix[i][j] = m[i][j]; } COM: <s> method to transpose a matrix example 1 2 3 4 5 6 would </s>
funcom_train/29580433
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isInPolicy(Element childToCheck) { NodeList nlist1 = ((Element) getParentNode()) .getElementsByTagName("WebDAVRepository"); for (int i = 0; i < nlist.getLength(); i++) { Element child = (Element) nlist1.item(i); if ((childToCheck.getAttribute("Name").equals(child .getAttribute("Name")))) { return true; } } return false; } COM: <s> this method can return true if the connection name variable exists </s>
funcom_train/46314108
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getItemsPerPage() throws CmsException { final String cfg = getConfiguration().get(Configuration.ITEMS_PER_PAGE.getName()); int itemsPerPage; try { itemsPerPage = Integer.parseInt(cfg); } catch (final Exception e) { itemsPerPage = getImageCount(); } return itemsPerPage; } COM: <s> returns the number of items per page to be used </s>
funcom_train/2586864
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object clone() throws CloneNotSupportedException { final AbstractObjectList clone = (AbstractObjectList) super.clone(); if (this.objects != null) { clone.objects = new Object[this.objects.length]; System.arraycopy( this.objects, 0, clone.objects, 0, this.objects.length ); } return clone; } COM: <s> clones the list of objects </s>
funcom_train/44314729
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void init() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setResizable(false); setJMenuBar(initMenu()); logger = Logger.getLogger(this.getClass().getName()); String logLevel = ChessTree.ourProps.getProperty("guiInfo"); logger.setLevel((logLevel.compareTo("on") == 0) ? Level.INFO : Level.SEVERE); addComponentListener(this); addWindowListener(this); } COM: <s> initialize our varibles </s>
funcom_train/1743505
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void onSubmit(FormSubmitEvent event) { /* Perform form validation here */ if (getSearchQuery().equals("")) return; /* Request the search be made */ SearchBox.this.search(); /* Always cancel the submission, since we aren't actually using the form to submit */ event.setCancelled(true); } COM: <s> function called whenever the form is submitted </s>
funcom_train/9769575
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: @Test(expected=IllegalArgumentException.class) public void testConstructorHonor() { Combo[] combos = new Combo[] {this.bamboo_seq, this.bamboo_seq2, this.circle_trp, this.character_trp, this.dragon_pair}; new Scoreentry_TWO_SUITS_ONLY(combos); } COM: <s> check if it fails if one element is a honor combo </s>
funcom_train/22405480
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Panel createPanel(ISerializedWidget serializedWidget, RenderingToolkit toolkit) { SContainer container= (SContainer) serializedWidget; if (container.layout instanceof SGridLayout) { SGridLayout gridLayout= (SGridLayout) container.layout; FlexTable table= new FlexTable(); numColumns= gridLayout.numberOfColumns; return table; } // FlowPanel is the default return new FlowPanel(); } COM: <s> creates and returns the panel to host the child widgets </s>
funcom_train/39172374
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getSelectedAnnotationSetName() { if(otherAS.isEnabled() && otherAS.isSelected()) { selectedAnnotationSetName = (String)annotationSetsNamesCB.getSelectedItem(); } else if(defaultAS.isEnabled()) { selectedAnnotationSetName = DEFAULT_ANNOTATION_SET; } return selectedAnnotationSetName; } COM: <s> returns the currently selected annotation set </s>
funcom_train/120343
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void update(){ super.update() ; JInternalFrame[] iframes = graphpad.getAllFrames(); for (int j = 0; j < menus.size(); j++) { JMenu menu = (JMenu) menus.get(j); menu.removeAll(); for (int i = 0; i < iframes.length; i++) { GPInternalFrame internalFrame = (GPInternalFrame) iframes[i]; menu.add( getMenuComponent( internalFrame.getDocument().getFrameTitle(), internalFrame)); } } } COM: <s> updates the window list at the menu entries </s>
funcom_train/28368574
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void displayTerrainLayers() { final Set<String> layerNames = environment.getLayerNames(); for (final String layerName : layerNames) { if (world.isSpeciesName(layerName)) continue; final OMGraphicHandlerLayer layer = environment.getLayer(layerName); addLayer(layer); } } COM: <s> display terrain layers </s>
funcom_train/23998677
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Button createMapButton( final int levelid, Vec2dInt pos, Image img ) { Button btn = new Button(); btn.setImageNormal( img ); btn.setImageHover( img ); btn.setImagePressed( img ); btn.setPosition( pos.clone() ); btn.addElementListener( new ElementEventListener() { @Override public void onClicked() { msgLevelMission( levelid ); } } ); return btn; } COM: <s> create a map button at given position </s>
funcom_train/18475634
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addAnalysisToDashboard(ActionEvent event) { try { addToCurrentDashboard(); } catch (ProjectContentServiceException e) { logMessage(SEVERITY.SEVERITY_ERROR,ERROR_ADDED_TO_DASHBOARD); logger.error("Error adding analysis to dashboard",e); } logMessage(SEVERITY.SEVERITY_INFO, ADDED_TO_DASHBOARD_SUCCESS,new Object[]{navMenuBean.getDisplayName(analysisPath),dashboardBean.getDashboardName()}); } COM: <s> adds the analysis to the active dashboard </s>
funcom_train/3709892
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void getPositionMetaParameter(Spectrum sp, String ra, String dec) { try { String pos = sp.getHeader().getKeywordValue(ra) + " " + sp.getHeader().getKeywordValue(dec); sp.addMetaParameter(UType.TARGET_POSITION, pos); } catch (Exception e) { } getInstrumentPositionMetaParameter(sp, ra, dec); } COM: <s> populate meta parameters with object position </s>
funcom_train/28753049
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setInsolution(Long newVal) { if ((newVal != null && this.insolution != null && (newVal.compareTo(this.insolution) == 0)) || (newVal == null && this.insolution == null && insolution_is_initialized)) { return; } this.insolution = newVal; insolution_is_modified = true; insolution_is_initialized = true; } COM: <s> setter method for insolution </s>
funcom_train/1849829
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void acceptRepresentation(Representation entity) throws ResourceException { final Document document = getDocumentFromEntity(entity); final ElementCollection fields = new ElementCollection( document.getDocumentElement().getElementsByTagName("field") ); if (fields.isEmpty()) throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST); if (!"NAME".equals(fields.get(0).getAttribute("name"))) throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST); manager.updateGroup(userID, fields.get(0).getTextContent()); } COM: <s> groups group id update a group </s>
funcom_train/51413099
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void initialize(ListCellRenderer renderer) { methodListModel = new DefaultListModel(); methodList = new JList(methodListModel); methodList.setCellRenderer(renderer); methodList.setBorder(BorderFactory.createLoweredBevelBorder()); methodList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); methodList.addMouseListener(this); methodList.addListSelectionListener(this); methodList.addKeyListener(this); setLayout(new GridLayout(1,1)); add(new JScrollPane(methodList)); } COM: <s> initializes the method browse dialog </s>
funcom_train/7613326
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void formatMedia(String formatPath) throws RemoteException { if (mContext.checkCallingOrSelfPermission( android.Manifest.permission.MOUNT_FORMAT_FILESYSTEMS) != PackageManager.PERMISSION_GRANTED) { throw new SecurityException("Requires MOUNT_FORMAT_FILESYSTEMS permission"); } mListener.formatMedia(formatPath); } COM: <s> attempt to format external media </s>
funcom_train/48211955
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void doLoad(List<String> list) { logger.debug("about to start a worker", new Exception()); //$NON-NLS-1$ LoadJDBCDrivers ljd = new LoadJDBCDrivers(list); LoadJDBCDriversWorker worker = new LoadJDBCDriversWorker(ljd); // Create a progress bar to show JDBC driver load progress, and hide when finished ProgressWatcher pw = new ProgressWatcher(progressBar,ljd,progressLabel); pw.setHideLabelWhenFinished(true); pw.start(); new Thread(worker).start(); } COM: <s> loads the given list of driver names into the tree then starts </s>
funcom_train/18050422
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void widgetSelected(SelectionEvent event) { DirectoryDialog dlg = new DirectoryDialog(Display.getCurrent() .getActiveShell()); dlg.setFilterPath(text.getText()); String dir = dlg.open(); if (dir != null) { text.setText(dir); } } COM: <s> called when the browse button is pushed </s>
funcom_train/22718189
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Table findTableByName(String tableName) throws NonExistentObjectException { for (Iterator i = tables.iterator(); i.hasNext(); ) { Table t = (Table)i.next(); if (t.getName().equals(tableName)) return t; } throw new NonExistentObjectException("Table not found ["+tableName+"]"); } COM: <s> finds a table with a given name </s>
funcom_train/23012467
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getPropertyLike(Properties props,String name,String def){ for(Enumeration e=props.propertyNames();e.hasMoreElements();){ String el = (String)e.nextElement(); if(el.startsWith(name)){ return props.getProperty(el,def); } } return def; } COM: <s> searches property with a name that starts with specified symbols and </s>
funcom_train/17772749
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Bean getBeanForName(String name) { Iterator it = iterator(); Bean otherBean = null; /* * checkWhetherBeanWithThisNameAlreadyExists */ while (it.hasNext()) { otherBean = (Bean) it.next(); if (otherBean.getName().equals(name)) { return otherBean; } } return null; } COM: <s> gets the bean for name attribute of the bean set object </s>
funcom_train/2582196
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object obj) { if (obj == null) { return false; } if (obj == this) { return true; } if (!(obj instanceof HistogramType)) { return false; } HistogramType t = (HistogramType) obj; if (!this.name.equals(t.name)) { return false; } return true; } COM: <s> tests this type for equality with an arbitrary object </s>