__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/7772555
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getBtnNuovoPagamento() { if (btnNuovoPagamento == null) { ImageIcon imageIcon = new ImageIcon(getUserDir() + File.separator + "\\resource\\nuovo.png"); btnNuovoPagamento = new JButton(); btnNuovoPagamento.setBounds(new Rectangle(740, 50, 42, 26)); btnNuovoPagamento.setIcon(imageIcon); btnNuovoPagamento.setToolTipText("Nuovo Pagamento"); } return btnNuovoPagamento; } COM: <s> this method initializes btn nuovo pagamento </s>
funcom_train/34996490
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JScrollPane getJScrollPane_files() { if (jScrollPane_files == null) { jScrollPane_files = new JScrollPane(); jScrollPane_files.setBounds(new Rectangle(10, 85, 310, 120)); jScrollPane_files.setViewportView(getJTree_files()); } return jScrollPane_files; } COM: <s> this method initializes j scroll pane </s>
funcom_train/35149836
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Perspective getCurrentPerspective() { String key = MessageFormat.format(CURRENT_PERSPECTIVE_KEY, new Object[] { pageName }); String id = prefs.get(key, DEFAULT_PERSPECTIVE_KEY); Iterator it = perspectives.iterator(); while (it.hasNext()) { Perspective perspective = (Perspective) it.next(); if (id.equals(perspective.getId())) { return perspective; } } return NullPerspective.NULL_PERSPECTIVE; } COM: <s> returns the current perspective or the null perspective instance if no </s>
funcom_train/6226376
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int read() throws IOException { while (true){ synchronized (CircularCharBuffer.this){ if (readerClosed) throw new IOException("Reader has been closed; cannot read from a closed Reader."); int available = available(); if (available > 0){ int result = buffer[readPosition] & 0xffff; readPosition++; if (readPosition == buffer.length){ readPosition = 0; } ensureMark(); return result; } else if (writerClosed){ return -1; } } try { Thread.sleep(100); } catch(Exception x){ throw new IOException("Blocking read operation interrupted."); } } } COM: <s> read a single character </s>
funcom_train/597335
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void noSuccessor() { if (compute == FRAMES) { Label l = new Label(); l.frame = new Frame(); l.frame.owner = l; l.resolve(this, code.length, code.data); previousBlock.successor = l; previousBlock = l; } else { currentBlock.outputStackMax = maxStackSize; } currentBlock = null; } COM: <s> ends the current basic block </s>
funcom_train/49026948
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getAggiungiB() { if (aggiungiB == null) { aggiungiB = new JButton(); aggiungiB.setText("Aggiungi"); aggiungiB.setActionCommand("Aggiungi"); aggiungiB.setIcon(new ImageIcon(getClass().getResource("/icone/add-icon.png"))); aggiungiB.addActionListener(this); aggiungiB.setFont(new Font("Dialog", Font.BOLD, 12)); } return aggiungiB; } COM: <s> this method initializes aggiungi b </s>
funcom_train/8076814
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double similarity(Instance instance1, Instance instance2) throws Exception { // either pass the computation to the external classifier, or do the work yourself if (m_trainable && m_external && m_trained) { return m_metricLearner.getSimilarity(instance1, instance2); } else { return similarityInternal(instance1, instance2); } } COM: <s> returns a dot product similarity value between two instances </s>
funcom_train/38310411
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public File getTemplateFile(HttpServletRequest request) { File templateRootDir = new File(request.getRealPath("/print-templates/")); File templateDir = new File(templateRootDir, "test/print"); File templateFile = new File(templateDir, getName() + ".xml"); if (!templateFile.exists()) { return null; } return templateFile; } COM: <s> gets the template file to use </s>
funcom_train/51615351
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void write(DataRepresentation representation, Object object) throws WriteError { GroupingImpl grouping = (GroupingImpl)object; ERATypes.SORT_LIST.put(representation, "sorts", grouping.getSortsArray()); ERATypes.AGGREGATE_LIST.put(representation, "aggregates", grouping.getAggregatesArray()); ERATypes.FORMATTING.put(representation, "formatting", grouping.getFormatting()); } COM: <s> writes a grouping object to some data representation </s>
funcom_train/2558783
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void writeAttribute(OutputNode node, Object value, Label label) throws Exception { if(value != null) { Decorator decorator = label.getDecorator(); String name = label.getName(context); String text = factory.getText(value); OutputNode done = node.setAttribute(name, text); decorator.decorate(done); } } COM: <s> this write method is used to set the value of the provided object </s>
funcom_train/50155912
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public SuggestionRecord newRecord() { Document doc = null; SuggestionRecord rec = null; try { Document rawDoc = Dom4jUtils.getXmlDocument(newRecordFile); String rootElementName = rawDoc.getRootElement().getName(); doc = Dom4jUtils.localizeXml(rawDoc, rootElementName); rec = new SuggestionRecord(doc); } catch (Exception e) { prtlnErr(e.getMessage()); } return rec; } COM: <s> creates a new </s>
funcom_train/4754430
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void handleStep(final StepInterpolator interpolator, final boolean isLast) { if (steps.size() == 0) { initialTime = interpolator.getPreviousTime(); forward = interpolator.isForward(); } steps.add(interpolator.copy()); if (isLast) { finalTime = interpolator.getCurrentTime(); index = steps.size() - 1; } } COM: <s> handle the last accepted step </s>
funcom_train/45462585
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getBackCommand () { if (backCommand == null) {//GEN-END:|39-getter|0|39-preInit // write pre-init user code here backCommand = new Command ("Back", Command.BACK, 0);//GEN-LINE:|39-getter|1|39-postInit // write post-init user code here }//GEN-BEGIN:|39-getter|2| return backCommand; } COM: <s> returns an initiliazed instance of back command component </s>
funcom_train/44448384
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void play(String filename) { SunAu sn = null; try { sn = new SunAu(new DataInputStream(new FileInputStream(filename))); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } catch (DataFormatException e) { e.printStackTrace(); } auPlayer.playAudio(sn); while (auPlayer.isAlive()) { try { Thread.sleep(20); } catch (InterruptedException e) { e.printStackTrace(); } } } COM: <s> plays an audiofile </s>
funcom_train/49409120
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testReplaceResource() { System.out.println("replaceResource"); ResourceType n = new Resource("n"); ResourceType o = new Resource("o"); Component instance = new Component(); instance.addResource(o); ResourceType result = instance.replaceResource(n, o); assertEquals(result, o); } COM: <s> test of replace resource method of class info </s>
funcom_train/43818352
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object isFinalParamForIdClassAsVariablesForDates() { if (Utilities.getInstance().datesIdJSP != null) { if (!Utilities.getInstance().datesIdJSP.isEmpty() && Utilities.getInstance().datesIdJSP.size() > 0) { return true; } else { return false; } } else { return false; } } COM: <s> checks if is final param for id class as variables for dates </s>
funcom_train/34983008
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setAddress(String newVal) { if ((newVal != null && this.address != null && (newVal.compareTo(this.address) == 0)) || (newVal == null && this.address == null && address_is_initialized)) { return; } this.address = newVal; address_is_modified = true; address_is_initialized = true; } COM: <s> setter method for address </s>
funcom_train/25549582
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void showAddNoticeButton() { int isele = personView.getSelectedIndex(); int mnotice = personView.getMainPaneIndex(); tAddNotice.setEnabled(kontroller.getSchema() != null && tNoticesButton.isSelected() && isele >= mnotice); tDeleteNotice.setEnabled(kontroller.getSchema() != null && tNoticesButton.isSelected() && isele >= mnotice + 2); } COM: <s> enables disables the add notice button </s>
funcom_train/44872080
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void sync(Tie tie, Tieable newest) { if (newest == this) { return; } if (!(newest instanceof Value)) { throw new IllegalArgumentException( "Internal Error: A VariableInput can only sync with Value objects."); } double newVal = ((Value) newest).getVal(); double oldVal = variable.getVal(); if (newVal != oldVal) { variable.setVal(newVal); } serialNumber = newest.getSerialNumber(); } COM: <s> synchronize serial number and value with newest unless this </s>
funcom_train/21051058
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void valueChanged(TreeSelectionEvent e) { DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent(); if (node == null) return; Object nodeInfo = node.getUserObject(); if (node.isLeaf()) { columnInfo book = (columnInfo)nodeInfo; } else { } } COM: <s> required by tree selection listener interface </s>
funcom_train/46575610
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void startBUTTON(NamedNodeMap nnm) throws AppToyException { Button btn = new Button ((Composite)ctx.parent, 0); btn.setText(getAttribute(nnm, "label", "")); ctx.control = btn; processEventAttributes(nnm, "http://apptoy.sf.net/events"); String id = getAttribute(nnm, "id", null); if (id != null) { presenter.addControl(id, new AButton(btn)); } processControlAttributes((Control)ctx.control,nnm); } COM: <s> creates a button control </s>
funcom_train/19102034
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void stateChanged(ChangeEvent e) { log.debug("JReportingGrid.stateChanged() is called: " + e.getSource().toString()); // avoid unnecesary event before showing if(!this.isShowing()) return; if(e.getSource().equals(this.scaleSlider)){ if(this.scaleSlider.getValueIsAdjusting()) return; } this.resetPreview(); } COM: <s> invoked when the target of the listener has changed its state </s>
funcom_train/48621292
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public IrUser getUserForGroup(Long groupId, Long userId) { Session session = hbCrudDAO.getSessionFactory().getCurrentSession(); Query q = session.getNamedQuery("getUserForGroupWorkspaceGroup"); q.setParameter("userId", userId); q.setParameter("groupId", groupId); return (IrUser)q.uniqueResult(); } COM: <s> get a user for the specified group </s>
funcom_train/20900779
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addFriendForUser(String userId, String friendId) { User user = getUser(userId); if(user == null) { throw new RuntimeException("User " + userId + " does not exists"); } Friend friend = new Friend(); friend.setUserId(friendId); user.addFriend(friend); save(); } COM: <s> adds a friend to a user </s>
funcom_train/32758819
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String asString( final Object objectValue ) { if ( objectValue == null ) { return ""; } else if( ((Double)objectValue).isNaN() ) { return "NaN"; } else { final double value = ((Double)objectValue).doubleValue(); final NumberFormat fieldFormat = ( Math.abs( value ) > 10000. || Math.abs( value ) < 0.01 ) ? SCIENTIFIC_FORMAT : FLOAT_FORMAT; return fieldFormat.format( value ); } } COM: <s> get the value as a string </s>
funcom_train/4535632
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void acceptInvitation() { setVisible(false); String name = StringUtils.parseName(room); ConferenceUtils.enterRoomOnSameThread(name, room, password); final TimerTask removeUITask = new SwingTimerTask() { public void doRun() { removeUI(); } }; TaskEngine.getInstance().schedule(removeUITask, 2000); } COM: <s> action taking when a user clicks on the accept button </s>
funcom_train/1193780
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String readString() { final int BUF_SIZE = 100; byte[] byteDest = new byte[BUF_SIZE]; String ret = null; int num = BUF_SIZE; try { while(num == BUF_SIZE) { if((num = in.read(byteDest)) > 0) { ret += new String(byteDest, 0, num); } } } catch (IOException e) { print("Error reading String from " + portName); } return ret; } COM: <s> reads an ascii encoded string from the serial port </s>
funcom_train/46736089
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSystemRef(DisplayModel systemRef) { if (Converter.isDifferent(this.systemRef, systemRef)) { DisplayModel oldsystemRef= new DisplayModel(this, 100083); oldsystemRef.copyAllFrom(this.systemRef); this.systemRef.copyAllFrom(systemRef); setModified("systemRef"); firePropertyChange(String.valueOf(RELATEDRECORDS_SYSTEMREFID), oldsystemRef, systemRef); } } COM: <s> identifies the system which originally created this row if related </s>
funcom_train/46857259
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JTextField getTxtMapLocation() { if (txtMapLocation == null) { txtMapLocation = new JTextField(); txtMapLocation.setPreferredSize(new Dimension(60, 20)); txtMapLocation.setEditable(false); txtMapLocation.setBounds(new Rectangle(71, 34, 273, 19)); } return txtMapLocation; } COM: <s> this method initializes txt map location </s>
funcom_train/18647324
/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 ret=super.equals(obj); if (!ret && getCDLType() != null) { if (obj instanceof CDLTypeRoleProjection) { CDLTypeRoleProjection rp=(CDLTypeRoleProjection)obj; if (rp.getCDLType() != null) { ret = getCDLType().equals(rp.getCDLType()); } } else if (obj instanceof CDLType) { ret = getCDLType().equals((CDLType)obj); } } return(ret); } COM: <s> this method delegates the equals function to the </s>
funcom_train/45243375
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public JTextField getJTextFieldArquivoMisturado() { if (jTextFieldArquivoMisturado == null) { jTextFieldArquivoMisturado = new JTextField(); jTextFieldArquivoMisturado.setLocation(new Point(350, 58)); jTextFieldArquivoMisturado.setEditable(false); jTextFieldArquivoMisturado.setSize(new Dimension(200, 20)); } return jTextFieldArquivoMisturado; } COM: <s> this method initializes j text field arquivo misturado </s>
funcom_train/32355080
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getPropertyValue(Item item, String property) { String[] properties = new String[1]; String[] values = new String[1]; properties[0] = property; try { values = getPropertyValues(item, properties); } catch (NotAPropertyException e) { logger.info("Property exception: " + e.getMessage()); //e.printStackTrace(); } return values[0]; } COM: <s> returns a value for a property </s>
funcom_train/2385878
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public IChatCreateMessage createCreateMessage(int aMessageId, IChatSender aSender, String aLineId, String aReceiver) { IChatCreateMessage createMessage = new IChatCreateMessage(aMessageId, aSender, aLineId, aReceiver); return createMessage; } COM: <s> creates create message </s>
funcom_train/44452157
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean isConsequentReferenced(Consequent consequent) { int index = consequents.indexOf(consequent); for (Reference ref : consequents) { if (ref.isConsequentReferenced(index)) { return true; } } for (Call call : calls) { for (Reference ref : call.getParams()) { if (ref.isConsequentReferenced(index)) { return true; } } } return false; } COM: <s> checks if given consequent is referenced by any other consequent or parameter </s>
funcom_train/2267117
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void dumpHashMap() { logger.debug("Dumping Map Information."); for (Entry<String, Properties> entry : getPropertiesMap().entrySet()) { logger.debug("--> Configuration File: "+ entry.getKey()); logger.debug("Listing properties."); for (Entry e : entry.getValue().entrySet()) { String key = (String) e.getKey(); String value = (String) e.getValue(); logger.debug(key+"="+value); } } } COM: <s> prints the loaded configurations </s>
funcom_train/13957781
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public EOModel _blankModel() { EOModel blankModel = new EOModel(); NSDictionary connectionDictionary = null; if (_model != null) { connectionDictionary = _model.connectionDictionary(); } if (connectionDictionary == null) { connectionDictionary = _adaptorChannel.adaptorContext().adaptor().connectionDictionary(); } blankModel.setConnectionDictionary(connectionDictionary); blankModel.setAdaptorName(_adaptorChannel.adaptorContext().adaptor().name()); return blankModel; } COM: <s> returns a blank eomodel with the connection dictionary from the adaptor </s>
funcom_train/39538384
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setLeftDecoration(JComponent decoration) { if (left != null) topPanel.remove(left); left = decoration; if (left != null) { topPanel.add(left, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); } } COM: <s> adds the given jcomponent as a decoration on the left of the title </s>
funcom_train/41727116
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String getFlagUsage() { StringBuffer sb = new StringBuffer(); sb.append(LONG_FLAG_PREFIX).append(getName()); if (getParameterType() != null) { sb.append('=').append(getParameterDescription()); } return sb.toString(); } COM: <s> make a usage string </s>
funcom_train/5661951
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void rememberParent(QueryNode parent) { Iterator ancestorIterator = parent.ancestorToIndices.keySet().iterator(); while (ancestorIterator.hasNext()) { Object ancestor = ancestorIterator.next(); ancestorToIndices.put( ancestor, parent.ancestorToIndices.get(ancestor)); } ancestorToIndices.put(parent, new Integer(parent.index)); } COM: <s> remembers a nodes parents and its ancestors </s>
funcom_train/33512105
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ResultSet getResultSet(int start, int length) { QueryResultSet resultSet = new QueryResultSet(length); System.arraycopy(docids, start, resultSet.getDocids(), 0, length); System.arraycopy(scores, start, resultSet.getScores(), 0, length); System.arraycopy(occurrences, start, resultSet.getOccurrences(), 0, length); return resultSet; } COM: <s> crops the existing result file and extracts a subset </s>
funcom_train/49211292
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getSeedBottomPanel() { if (seedBottomPanel == null) { seedBottomPanel = new JPanel(); seedBottomPanel.setLayout(new BorderLayout()); seedBottomPanel.setSize(new Dimension(300,80)); seedBottomPanel.setMaximumSize(seedBottomPanel.getSize()); seedBottomPanel.setPreferredSize(seedBottomPanel.getSize()); seedBottomPanel.setMinimumSize(seedBottomPanel.getSize()); seedBottomPanel.add(getJScrollPane()); } return seedBottomPanel; } COM: <s> this method initializes seed bottom panel </s>
funcom_train/9202723
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setMaximumAngle(double maximumAngle) { // make sure the minimum is less than or equal to the maximum if (maximumAngle < this.minimumAngle) throw new IllegalArgumentException("The maximum angle must be greater than or equal to the current minimum angle."); // wake up both bodies this.body1.setAsleep(false); this.body2.setAsleep(false); // set the new target angle this.maximumAngle = maximumAngle; } COM: <s> sets the maximum angle between the two constrained </s>
funcom_train/43245996
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetSourceOfNotification() { System.out.println("getSourceOfNotification"); PatientDataObject instance = new PatientDataObject(); String expResult = ""; String result = instance.getSourceOfNotification(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } COM: <s> test of get source of notification method of class org </s>
funcom_train/51055915
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JList getAttributes() { if (attributes == null) { attributes = new JList(); attributes.setPreferredSize(new java.awt.Dimension(300,300)); attributes.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); attributes.setSize(585, 182); attributes.setLocation(10, 37); attributes.setFont(new java.awt.Font("Times New Roman", java.awt.Font.BOLD, 14)); //$NON-NLS-1$ } return attributes; } COM: <s> this method initializes j list </s>
funcom_train/32305556
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object obj) { Edge e; if (this==obj) return true; if (null==obj) return false; try { e = (Edge) obj; } catch (ClassCastException ignore) { return false; } if (e.from.equals(from) && e.to.equals(to) && e.from_index == from_index /*&& e.to_index == to_index*/) return true; return false; } COM: <s> compares two edges for equality </s>
funcom_train/3927586
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void skipTo( int tokenType ) { int prevToken = tokenScannerOffset; int scanner = tokenScannerOffset; while (( scanner != -1 ) && ( tokenTypeArray[ scanner ] != tokenType )) { prevToken = scanner; scanner = getNextToken(); } tokenScannerOffset = prevToken; } COM: <s> skip to the next token of a particular type </s>
funcom_train/14435824
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JSplitPane getMainSplitPane() { if (mainSplitPane == null) { mainSplitPane = new JSplitPane(); mainSplitPane.setResizeWeight(0.3D); mainSplitPane.setLeftComponent(getLeftSplitPane()); mainSplitPane.setRightComponent(getRightSplitPane()); } return mainSplitPane; } COM: <s> this method initializes main split pane </s>
funcom_train/18514229
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getIndexOfChild(Object parent, Object child) { if (parent.equals(root)) { for (int i = 0; i < groups.size(); i++) { if (groups.get(i) == (String) child) return i; } } for (int i = 0; i < getGroup((String) parent).size(); i++) { if (getGroup((String) parent).get(i).equals(child)) return i; } return -1; } COM: <s> returns index of child </s>
funcom_train/12194962
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetTableName() throws RepositoryException { JDBCRepositoryImpl repository = (JDBCRepositoryImpl) createTestableRepository(); AlternateNames names = new AlternateNames("NORMAL", "SHORT"); String tableName = repository.getAppropriateName(names); assertEquals("The tablename is incorrect", "SHORT", tableName); } COM: <s> test that the get table name method returns the translated </s>
funcom_train/12195535
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String expandDotCharsInString(String value) { StringBuffer buffer = new StringBuffer(value); int pos = value.lastIndexOf('.'); while (pos > 0) { buffer.insert(pos, '\\'); pos = value.lastIndexOf('.', pos - 1); ++deviceSubKeyIndex; } return buffer.toString(); } COM: <s> take the value and expand any </s>
funcom_train/3889287
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addStructurePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_OrganizationType_structure_feature"), getString("_UI_PropertyDescriptor_description", "_UI_OrganizationType_structure_feature", "_UI_OrganizationType_type"), ImscpRootv1p1p2Package.Literals.ORGANIZATION_TYPE__STRUCTURE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the structure feature </s>
funcom_train/12179406
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testExecuteWithInvalidDefaultValue() { DIScanFunction function = new DIScanFunction(); Value result = function.execute(exprContext, accessorMock, INVALID_DEFAULT); // expect the result to be "" because default value was wrong type assertTrue(result instanceof StringValue); assertEquals(EMPTY_VALUE, ((StringValue)result).asJavaString()); } COM: <s> verify that when the default value is invalid the function evaluates to </s>
funcom_train/18213960
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addTitlePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_AggregateMeasurement_title_feature"), getString("_UI_PropertyDescriptor_description", "_UI_AggregateMeasurement_title_feature", "_UI_AggregateMeasurement_type"), EvaluationmodelPackage.Literals.AGGREGATE_MEASUREMENT__TITLE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the title feature </s>
funcom_train/3721531
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void nextSibling(Position pos) { String[] names = pos.parent.getNames(); int i = 0; for (; i < names.length && !names[i].equals(pos.index.name); i++) {} String nextName = names[i+1]; this.next = new Position(pos.parent, nextName, 0); } COM: <s> sets the next location to the next sibling of the given </s>
funcom_train/3561177
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void close() throws DbException { FileLog.singleton().debug("Connection.close", "for db: " + database + " in thread: " + Thread.currentThread().getName() + " Created in thread: " + createdInThread.getName()); try { if (con != null && !con.isClosed()) { con.close(); con = null; } database.notifyClose(this); } catch (SQLException e) { throw new DbException(e); } } COM: <s> closes the connection </s>
funcom_train/48882476
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getBottomPddlPanel() { if (bottomPddlPanel == null) { bottomPddlPanel = new JPanel(new BorderLayout()); bottomPddlPanel.add(getBottomPddlScrollPane(), BorderLayout.CENTER); problemPddlToolBar = new JToolBar(); problemPddlToolBar.setRollover(true); JButton save = new JButton(saveProblemToFile); problemPddlToolBar.add(save); bottomPddlPanel.add(problemPddlToolBar, BorderLayout.NORTH); } return bottomPddlPanel; } COM: <s> this method initializes bottom pddl panel </s>
funcom_train/51252902
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void initializeRounds(int size) { boolean added = false; for (int i = rounds.size(); i < size; ++i) { added = true; Round r = new Round(i, this); for (int j = 0; j < participants.size(); ++j) { r.addNewTurn(); } rounds.add(r); } if (added) { combatChangedSupport.fireRoundAdded(this); } for (CombatCharacter c: participants) { c.initializeTurns(size); } } COM: <s> initializes the rounds collection to contain at lease code size code </s>
funcom_train/6260376
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean isFileChanged() { final File file = generator.getFileName(filePackage, fileName); if ((charArray.size() >= file.length()) && file.exists()) { return !isBuffersEquals(charArray.toCharArray(), getFileContents(file)); } return true; } COM: <s> checks contents of this buffer and file </s>
funcom_train/3559966
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void fillTable(DbIterator rowIt) throws DbException { try { TableUtils.fillSortedTable(tabDataList, rowIt, dataIndexes, 0, 1, true, 0, 2); } catch (DbException e) { System.out.println(e.getMessage()); } initDataTableSizes(); } COM: <s> fills the table with a given db iterator </s>
funcom_train/46790886
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Integer getMaxLen() { COSInteger cosBase = cosGetFieldInheritable(DK_MaxLen).asInteger(); if (cosBase != null) { return Integer.valueOf(cosBase.intValue()); } cosBase = cosGetFieldDescendant(DK_MaxLen).asInteger(); if (cosBase != null) { return Integer.valueOf(cosBase.intValue()); } return null; } COM: <s> the maximum length for this field or code null code if not defined </s>
funcom_train/37610665
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setConsolePort(int i) throws ConsoleException { if (i < CommunicationDefaults.MIN_PORT || i > CommunicationDefaults.MAX_PORT) { throw new DisplayMessageConsoleException( m_resources, "invalidPortNumberError.text", new Object[] { CommunicationDefaults.MIN_PORT, CommunicationDefaults.MAX_PORT, } ); } m_consolePort.set(i); } COM: <s> set the console port </s>
funcom_train/10867379
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void loadPatterns(File f) throws HyphenationException { try { InputSource src = new InputSource(f.toURL().toExternalForm()); loadPatterns(src); } catch (MalformedURLException e) { throw new HyphenationException("Error converting the File '" + f + "' to a URL: " + e.getMessage()); } } COM: <s> read hyphenation patterns from an xml file </s>
funcom_train/29367562
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void init(IWorkbench workbench, IStructuredSelection selection) { this.workbench = workbench; this.selection = selection; setWindowTitle(EDependencyEditorPlugin.INSTANCE .getString("_UI_Wizard_label")); //$NON-NLS-1$ setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE .getImageDescriptor(EDependencyEditorPlugin.INSTANCE .getImage("full/wizban/NewEDependency"))); //$NON-NLS-1$ } COM: <s> this just records the information </s>
funcom_train/37229245
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setAdmitDateTime( String sDateTime ) { TSElement tse = new TSElement( this ); tse.setName( "PV1.44" ); tse.setDateTime( sDateTime ); try { setField( tse, 44 ); } catch( ArrayIndexOutOfBoundsException ae ) { ae.printStackTrace(); } catch( MalformedSegmentException mfe ) { mfe.printStackTrace(); } } COM: <s> set the admit date time of the message to string formatted date time </s>
funcom_train/33069008
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void handleBrowse() { ContainerSelectionDialog dialog = new ContainerSelectionDialog( getShell(), ResourcesPlugin.getWorkspace().getRoot(), false, resource.getString("wizard.message.selectContainer")); if (dialog.open() == ContainerSelectionDialog.OK) { Object[] result = dialog.getResult(); if (result.length == 1) { containerText.setText(((Path)result[0]).toString()); } } } COM: <s> uses the standard container selection dialog to </s>
funcom_train/21997100
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: synchronized public void stop() { if (worker_thread != null) { log.warn("STOP - interrupting worker thread"); keep_running = false; worker_thread = null; } else if (log.isDebugEnabled()) log.debug(thread_name + " is not running, no need to stop"); } COM: <s> cease doing stuff </s>
funcom_train/14583192
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setRoot(String root) throws TemplateException { if ( (root==null) || (!new File(root).isDirectory()) ) throw new TemplateException("root "+root+" not found or not a directory"); if (!root.endsWith("/") ) root+="/"; this.root = root; } COM: <s> sets the root directory for template files </s>
funcom_train/22769337
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public HeaderTreeNode findChild(XElement element) { HeaderTreeNode result = null; final int size = getChildCount(); for( int i = 0 ; i < size ; i++ ) { HeaderTreeNode child = getChild(i); if(child.getElement() == element) { result = child; break; } } return result; } COM: <s> returns child that is the node for the </s>
funcom_train/29768669
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetByteArrayFields() { List<Field> byteArrayFields = VSpector .getByteArrayFields(SuperClassTestChild.class); assertEquals(byteArrayFields.get(0).getName(), "byteArray1"); assertEquals(byteArrayFields.get(1).getName(), "byteArray2"); } COM: <s> test extracting fields of type byte </s>
funcom_train/33780339
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { if ("RecibirSolicitudFabricacion".equals(portName)) { setRecibirSolicitudFabricacionEndpointAddress(address); } else { // Unknown Port Name throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); } } COM: <s> set the endpoint address for the specified port name </s>
funcom_train/12163922
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void doTestSimpleOptGroup() { privateSetUp(); XFSelectAttributes attributes = new XFSelectAttributes(); attributes.setEntryContainerInstance(new PaneInstance(null)); attributes.setName("name"); attributes.setInitial("E"); FormInstance formInstance = new FormInstance( NDimensionalIndex.ZERO_DIMENSIONS); formInstance.setFormat(new Form(null)); attributes.setFormData(formInstance); } COM: <s> test that do select input does not set an access key attribute </s>
funcom_train/16380473
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addTasksPerPagePropertyDescriptor(Object object) { itemPropertyDescriptors.add (new UnsettablePropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ConfigType1_tasksPerPage_feature"), getString("_UI_PropertyDescriptor_description", "_UI_ConfigType1_tasksPerPage_feature", "_UI_ConfigType1_type"), CTEPackage.Literals.CONFIG_TYPE1__TASKS_PER_PAGE, true, false, false, ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the tasks per page feature </s>
funcom_train/33725969
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSample(int index, String filename, float location, float delay) { setSample(index, filename, interpolate(SoundManager.params3D, location, 0), interpolate(SoundManager.params3D, location, 1), interpolate(SoundManager.params3D, location, 2) + delay, interpolate(SoundManager.params3D, location, 3) + delay, 0.06f, 0.005f); } COM: <s> uses a soundlevel of 0 </s>
funcom_train/23973508
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void delete(Session session, Row row) { row = (Row) get(row, false); for (int i = 0; i < indexList.length; i++) { indexList[i].delete(session, this, row); } for (int i = 0; i < subStores.length; i++) { subStores[i].delete(session, row); } row.delete(this); elementCount--; } COM: <s> basic delete with no logging or referential checks </s>
funcom_train/42268012
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void paintComponent( Graphics gc ) { // Paint the background super.paintComponent( gc ); if (thePlot != null) { // Deal with a possible border. Insets insets = getInsets(); int currentWidth = getWidth() - insets.left - insets.right; int currentHeight = getHeight() - insets.top - insets.bottom; Rectangle bounds = new Rectangle(insets.left, insets.top, currentWidth, currentHeight); // Render the plot image. thePlot.draw(gc, this, bounds); } } COM: <s> called automatically by system to paint this component </s>
funcom_train/43471659
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void parseLayoutComponent(String pstrPattern) { digester.addObjectCreate(pstrPattern, PFLAYOUTCOMPONENT_CLAZZ); digester.addBeanPropertySetter(pstrPattern + "/name"); digester.addBeanPropertySetter(pstrPattern + "/active"); parseLabels(pstrPattern + "/title"); digester.addSetNext(pstrPattern + "/title", "setTitle"); parseComponent(pstrPattern + "/component"); digester.addSetNext(pstrPattern + "/component", "setComponent"); } COM: <s> parse the xml for pflayout compent of a pflayout </s>
funcom_train/1546874
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void recodeNaNs(IntDoublePair[] ranks, double value) { for (int i = 0; i < ranks.length; i++) { if (Double.isNaN(ranks[i].getValue())) { ranks[i] = new IntDoublePair( value, ranks[i].getPosition()); } } } COM: <s> recodes na n values to the given value </s>
funcom_train/38809838
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void test_TCM__OrgJdomDocument_addContent_OrgJdomProcessingInstruction() { Element element = new Element("element"); ProcessingInstruction pi = new ProcessingInstruction("test", "comment"); ProcessingInstruction pi2 = new ProcessingInstruction("test", "comment 2"); Document doc = new Document(element); doc.addContent(pi); doc.addContent(pi2); List content = doc.getContent(); assertEquals("wrong number of PI's in List", 3, content.size()); assertEquals("wrong PI", pi, content.get(1)); assertEquals("wrong PI", pi2, content.get(2)); } COM: <s> test the addition of processing instructions to documents </s>
funcom_train/8686652
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setFiles(String filenames) { checkAttributesAllowed(); if (filenames != null && filenames.length() > 0) { StringTokenizer tok = new StringTokenizer( filenames, ", \t\n\r\f", false); while (tok.hasMoreTokens()) { this.filenames.addElement(tok.nextToken()); } } } COM: <s> set the filenames attribute </s>
funcom_train/37516489
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void test_selectInitial_method2() { try { establishTest( SAMPLE_CLASS, false ); parsingController.selectInitial( "multijava" ); parsingController.selectInitial( "multijava" ); fail( "Expected ParsingController.ConfigurationException" ); } catch( ParsingController.KeyException e ) { fail( "Expected ParsingController.ConfigurationException" ); } catch( ParsingController.ConfigurationException e ) { assertTrue( true ); } } COM: <s> should get an exception if we try to select more than once </s>
funcom_train/5526430
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void position (String line, String regexp) { FilePosition p=Tool.getPosition(line,regexp,"(0)","(1)","(2)"); if (p==null) return; if (!matchShow(p.getName())) return; int n=p.getLine(),pos=p.getPos(); if (currentEP()==null) return; currentEP().TD.gotoLine(n-1,pos-1); toFront(); focus(); } COM: <s> this is called from show in files </s>
funcom_train/49269185
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetDeviation() throws AssertionFailedException { System.out.println("getDeviation"); double expResult_1 = (sumOfSquares - sum * sum / size)/(size - 1); double result_1 = instance.getDeviation(); assertTrue(expResult_1 == result_1); } COM: <s> test of test get deviation method of class sample analysis </s>
funcom_train/6203170
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void warning(SAXParseException exception) throws SAXException { Log.logWarningRB( "TMXR_WARNING_WHILE_PARSING", new Object[] { String.valueOf(exception.getLineNumber()), String.valueOf(exception.getColumnNumber()) }); Log.log(exception); } COM: <s> receives notification of a parser warning </s>
funcom_train/19536158
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setCreatureTypes(Collection<CreatureType> theTypes) { Map<String, CreatureType> old = creatureTypes; creatureTypes = new HashMap<String, CreatureType>(); for (CreatureType type : theTypes) creatureTypes.put(type.getName(), type); pcs.firePropertyChange(COMBATANT_TYPE_PROP_NAME, old, creatureTypes); } COM: <s> set all of the creature categories </s>
funcom_train/31480638
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long scanDecimal(long val) throws IOException { int _i = 0; long _l = val; while (tools.isDecDigit(this.nextByte)) { _l = _l * 10 + tools.decvalue(this.nextByte); this.read(); if (_i++ > 8) { throw new NumberFormatException(__me + ".scanDecimal(): Decimal number " + _l + "... too long (>8 bytes)!"); } } return _l; } COM: <s> scan input as a decimal number of some encoding </s>
funcom_train/20342504
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getBackCommand2() { if (backCommand2 == null) {//GEN-END:|77-getter|0|77-preInit // write pre-init user code here backCommand2 = new Command("Back", Command.BACK, 0);//GEN-LINE:|77-getter|1|77-postInit // write post-init user code here }//GEN-BEGIN:|77-getter|2| return backCommand2; } COM: <s> returns an initiliazed instance of back command2 component </s>
funcom_train/3836661
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JSplitPane getJSplitPaneResumedEdited() { if (jSplitPaneResumedEdited == null) { jSplitPaneResumedEdited = new JSplitPane(); jSplitPaneResumedEdited .setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); jSplitPaneResumedEdited.setTopComponent(getJPanelResume()); jSplitPaneResumedEdited.setDividerLocation(100); } return jSplitPaneResumedEdited; } COM: <s> this method initializes j split pane resumed edited </s>
funcom_train/20659731
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JMenuBar getApplicationMenuBar() { if (appJMenuBar == null) { appJMenuBar = new JMenuBar(); appJMenuBar.add(getFileMenu()); appJMenuBar.add(getEditMenu()); appJMenuBar.add(getFunctionsMenu()); appJMenuBar.add(getAdvancedMenu()); appJMenuBar.add(getRoutingMenu()); appJMenuBar.add(getLogMenu()); appJMenuBar.add(getHelpMenu()); } return appJMenuBar; } COM: <s> this method initializes j jmenu bar </s>
funcom_train/26019252
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int waitInvitationAnswer() { if (invitationStatus != INVITATION_NOT_ANSWERED) { return invitationStatus; } if (logger.isActivated()) { logger.debug("Wait session invitation answer"); } // Wait until received response or received timeout try { synchronized(waitUserAnswer) { waitUserAnswer.wait(RINGING_PERIOD * 1000); } } catch(InterruptedException e) { // Nothing to do } return invitationStatus; } COM: <s> wait session invitation answer </s>
funcom_train/28116897
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void destroyDestinations(Map destinations) throws Exception { TestContext context = getContext(); Administrator admin = context.getAdministrator(); Iterator iter = destinations.values().iterator(); while (iter.hasNext()) { try { Destination destination = (Destination) iter.next(); DestinationHelper.destroy(destination, admin); } catch (Exception exception) { _log.error(exception, exception); throw exception; } } } COM: <s> destroy any destinations set up for the test case </s>
funcom_train/29699532
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isInfernoBurning( Coords coords ) { boolean result = false; InfernoTracker tracker = null; // Get the tracker for those coordinates // and see if the fire is still burning. tracker = this.infernos.get( coords ); if ( null != tracker ) { if ( tracker.isStillBurning() ) { result = true; } } return result; } COM: <s> determine if the given coordinates has a burning inferno </s>
funcom_train/25382481
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void cancel(AbstractJobTask jobTask) throws UniversalWorkerException { if (Util.isSet(jobTask)) { this.tasksMap.get(jobTask.getJobTaskId()).cancel(); } else { throw new UniversalWorkerException(Status.CLIENT_ERROR_NOT_FOUND, "The job does not exist."); } } COM: <s> cancel the thread </s>
funcom_train/47986632
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Operation createRemoveLockOperation(Element element) { Operation op = null; String targetId = getNodeId(element); if (targetId == null) return null; Node modNode = element.cloneNode(false); ((Element) modNode).removeAttributeNS(CEFXUtil.CEFX_NAMESPACE, CEFXUtil.CEFX_LOCKED_ATTR_NAME); //TODO reactivate createRemoveLockOperation // op = OperationFactory.newUpdateOperation(targetId, modNode, cefx.getConcurrencyController().getStateVector(), cefx.getClient()); return op; } COM: <s> creates an update operation that will remove the lock attribute and thus </s>
funcom_train/17934671
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private double paretoUnivariate(){ log.debug("Pareto Univariate"); double pr1=pwdistPercentiles[17]; if (pr1==0d){ // search smallest non zero percentile log.debug("radius=0 => search smallest non zero percentile"); for (int i=0;i<pwdistPercentiles.length;i++){ //log.debug(i+" : "+pwdistPercentiles[i]); if (pwdistPercentiles[i]!=0d){ pr1=pwdistPercentiles[i]; break; } } } log.debug("found 1d pareto radius : "+pr1); return pr1; //return pwdistPercentiles[17]; // indices = percentile -1 } COM: <s> returns pareto optimal radius for 1 dimensional data </s>
funcom_train/26531513
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void deleteDefect(String defectNumber) { Defect defects[] = readDefects(); int pos = findDefect(defects, defectNumber); if (pos != -1) { Defect d = defects[pos]; defects[pos] = null; d.number = "DELETE"; updateData(defects, d); save(defects); fireDefectChanged(d); } } COM: <s> delete the named defect from the defect log </s>
funcom_train/7522830
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void set(int frag_id, Message frag) { // don't count an already received fragment (should not happen though because the // reliable transmission protocol(s) below should weed out duplicates if(fragments[frag_id] == null) { fragments[frag_id]=frag; number_of_frags_recvd++; } } COM: <s> adds on fragmentation buffer to the message </s>
funcom_train/28901386
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void removeAxiomsfromOnt(OWLOntology ont, Set<OWLLogicalAxiom> s) { Iterator<OWLLogicalAxiom> iter = s.iterator(); List<RemoveAxiom> removedList = new ArrayList<RemoveAxiom>(); while(iter.hasNext()) { RemoveAxiom removedAxiom = new RemoveAxiom(ont, iter.next()); removedList.add(removedAxiom); } try { manager.applyChanges(removedList); } catch (OWLOntologyChangeException e) { e.printStackTrace(); } } COM: <s> remove a set of owllogical axioms from an ontology </s>
funcom_train/34889557
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getMatchedGroup(int number){ int matchNo = -1; if (number > getNumberOfGroups()) { return(null); } else { for (int i = 0; i < getNumberOfGroups(); i++) { if (getGroup(i) != null) { matchNo++; } if (matchNo == number) { return getGroup(i); } } } return(null); } COM: <s> this version of get matched group accepts only an int as input thereby </s>
funcom_train/8368286
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getClear() { if (Clear == null) {//GEN-END:|293-getter|0|293-preInit // write pre-init user code here Clear = new Command("Leeren", Command.SCREEN, 0);//GEN-LINE:|293-getter|1|293-postInit // write post-init user code here }//GEN-BEGIN:|293-getter|2| return Clear; } COM: <s> returns an initiliazed instance of clear component </s>
funcom_train/45838729
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean next() { ++phaseId; if(nextAdditionalSamples.isEmpty()) { return false; } //logger.info("----------------------------"); logger.trace("Entering phase " + phaseId); current.addAll(nextAdditionalSamples); nextAdditionalSamples.clear(); return true; } COM: <s> attempts to advance </s>