__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/7292344
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setTimeInMillis( long millis ) { if (millis > MAX_MILLIS) { millis = MAX_MILLIS; } else if (millis < MIN_MILLIS) { millis = MIN_MILLIS; } time = millis; isTimeSet = true; computeFields(); areFieldsSet = true; areAllFieldsSet = true; } COM: <s> sets this calendars current time from the given long value </s>
funcom_train/49320535
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setVar(String name, double value) { for (int i = 0; i < _numVars; i++) { VarValue v = _vars.get(i); if (v.name.equals(name)) { v.value = value; return; } } _vars.add(new VarValue(name, value)); _numVars++; } COM: <s> set the value of the given variable to the given value </s>
funcom_train/36170662
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addTab(List list) { HipsterTable table = new HipsterTable(list); ImageIcon icon = new ImageIcon(Settings.getTabIconPath(list .getIconName())); super.addTab(list.getName(), icon, new JScrollPane(table)); setSelectedIndex(getTabCount() - 1); } COM: <s> adds a tab that displays a list </s>
funcom_train/45773847
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void openStepDialog(int stepIndex) { if (stepIndex < getModel().getStepsSize()) { Vector step = getModel().getStep(stepIndex); if (step != null) { String descrption = (String) step.get(0); String text = (String) step.get(1); initData(stepIndex); setProperties(descrption, text, stepIndex); } } } COM: <s> open step dialog for the specified step </s>
funcom_train/27822963
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String typeToString(int type) { switch (type) { case TYPE_ENTITY_URI: return "u"; case Types.INTEGER: return "i"; case Types.BOOLEAN: return "b"; case Types.VARCHAR: case TYPE_REGULAR_EXPRESSION: case TYPE_LIKE: default: return "t"; } } COM: <s> returns the character representation of the type </s>
funcom_train/18243505
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeDirtinessChangeListener(IDirtinessChangeListener listener) { if (this.dirtinessChangeListeners == null) { synchronized(this) { if (this.dirtinessChangeListeners == null) { this.dirtinessChangeListeners = new Vector<IDirtinessChangeListener>(); } } } this.dirtinessChangeListeners.remove(listener); } COM: <s> describe code remove dirtiness change listener code method here </s>
funcom_train/22403966
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setHeight(String height) { // This exists to deal with an inconsistency in IE's implementation where // it won't accept negative numbers in length measurements assert extractLengthValue(height.trim().toLowerCase()) >= 0 : "CSS heights should not be negative"; DOM.setStyleAttribute(element, "height", height); } COM: <s> sets the objects height </s>
funcom_train/28297941
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isConnectedWithSelection(int p1, int p2,TransBaseSelection[] testSel,int notToTest) { if (isConnected(p1,p2)) return true; // include the actual connection return isSelectionConnected(p1,p2,testSel,notToTest); } COM: <s> says if the given players are connected by the rails consider </s>
funcom_train/10873587
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public BytesRef get(int ord, BytesRef ref) { assert bytesStart != null : "bytesStart is null - not initialized"; assert ord < bytesStart.length: "ord exceeds byteStart len: " + bytesStart.length; return pool.setBytesRef(ref, bytesStart[ord]); } COM: <s> populates and returns a </s>
funcom_train/48529526
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public IdRange ccwHalf() { if (empty) return new IdRange(); if (isFull()) return new IdRange(Id.build(Id.Null), Id.build(Id.Half)); Id newCW = ccw.add(size().shift(1, 0, true)); return new IdRange(ccw, newCW); } COM: <s> get counterclockwise half of the range </s>
funcom_train/13749959
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double getBearingDegrees() throws IOException { _BUFFER[0] = 0; _BUFFER[1] = 0; _BUFFER[2] = 0; capture(); start(); write(_REGISTER_2, 1); start(); read(_BUFFER, 2); stop(); release(); int retVal = (_BUFFER[0] << 8) | _BUFFER[1]; if (retVal > 0) { return (retVal / 10); } else { return (double)0; } } COM: <s> gets the bearing of the compass in degrees </s>
funcom_train/32810043
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Type getSourceTypeGen() { if (sourceType != null && sourceType.eIsProxy()) { InternalEObject oldSourceType = (InternalEObject) sourceType; sourceType = (Type) eResolveProxy(oldSourceType); if (sourceType != oldSourceType) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, ExpressionsPackageImpl.FEATURE_CALL_EXP__SOURCE_TYPE, oldSourceType, sourceType)); } } return sourceType; } COM: <s> begin user doc the code for </s>
funcom_train/20842490
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean addSubscriptionToEventSource(ServiceSubscription subscription) { boolean hasMatchingAction = false; URISet actions = subscription.filterActions; for (Iterator it = actions.iterator(); it.hasNext();) { /* * Add the subscription to each evented operation */ String action = ((URI) it.next()).toString(); DefaultEventSource ev = (DefaultEventSource) service.getEventSource(action); if (ev != null) { ev.addSubscription(subscription); hasMatchingAction = true; } } return hasMatchingAction; } COM: <s> adds service subscription to each matching operation with matching action </s>
funcom_train/10417934
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addWatchedResource(String name) { synchronized (watchedResources) { String results[] = new String[watchedResources.length + 1]; for (int i = 0; i < watchedResources.length; i++) results[i] = watchedResources[i]; results[watchedResources.length] = name; watchedResources = results; } fireContainerEvent("addWatchedResource", name); } COM: <s> add a new watched resource to the set recognized by this context </s>
funcom_train/40390969
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { StringBuilder string = new StringBuilder(); string.append("[ "); for (Entry entry : this.hashMap.entrySet()) { string.append(entry.getKey() + " => " + entry.getValue() + ", "); } return string.toString().substring(0, string.length() - 2) + "]"; } COM: <s> returns a string representation of the object </s>
funcom_train/3670458
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void execute(){ PrimitiveType index = (PrimitiveType)Stack.popOperand(); ReferenceType arrayRef = (ReferenceType)Stack.popOperand(); ArrayInstance array = (ArrayInstance)arrayRef.getValue(); //System.out.println("IALoad array: "+array+" IALoad index: "+index.getValue()); Stack.pushOperand(array.getElement(index.getValue())); } COM: <s> executes the strong code iaload code strong instruction </s>
funcom_train/18243697
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void notifyChangeListeners(ISequenceFacade sequence, int what) { IEditableCollectionListener listener; if (this.changeListeners != null) { Iterator iter = this.changeListeners.iterator(); while (iter.hasNext()) { listener = (IEditableCollectionListener) iter.next(); listener.editableCollectionSequenceChanged(this, sequence, what); } } } COM: <s> notify any registered code ieditable collection listener code s </s>
funcom_train/4628684
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void createDialog(Composite footer) { // Setup the dialog GridData data = new GridData(); data.grabExcessHorizontalSpace = true; data.horizontalAlignment = SWT.FILL; data.horizontalSpan = 2; footer.setLayoutData(data); RowLayout layout = new RowLayout(); layout.justify = true; layout.fill = true; footer.setLayout(layout); Button ok = new Button(footer, SWT.PUSH); ok.setText(" OK "); ok.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { shell.dispose(); } }); shell.setDefaultButton(ok); } COM: <s> shows the dialog </s>
funcom_train/23940441
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setBallInformations() { this.setInformations(ConstantsKeys.BALL_RADIUS, "Ball radius", "ball.radius", true); this.setInformations(ConstantsKeys.BALL_MASS, "Ball mass", "ball.mass", true); this.setInformations(ConstantsKeys.BALL_CHARGE, "Ball permanent charge", "ball.charge", true); } COM: <s> set informations relative to balls constants </s>
funcom_train/14520288
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getHardTokenProfileName(Admin admin, int id){ if (log.isTraceEnabled()) { log.trace(">getHardTokenProfileName(id: " + id + ")"); } String returnval = null; HardTokenProfileDataLocal htp = null; try{ htp = hardtokenprofilehome.findByPrimaryKey(new Integer(id)); if(htp != null){ returnval = htp.getName(); } }catch(FinderException e){} log.trace("<getHardTokenProfileName()"); return returnval; } // getHardTokenProfileName COM: <s> returns a hard token profile name given its id </s>
funcom_train/2967519
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public SConstraint makeEquation(RealExp exp, RealIntervalConstant cst) { // Collect the variables Set<RealVar> collectedVars = new HashSet<RealVar>(16); exp.collectVars(collectedVars); RealVar[] tmpVars = new RealVar[0]; tmpVars = collectedVars.toArray(tmpVars); return createEquation(tmpVars, exp, cst); } COM: <s> makes an equation from an expression and a constant interval </s>
funcom_train/20306873
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean completeFor(TriplePattern query) { if (action instanceof BRWRule) { return ((BRWRule)action).completeFor(query); } else if (action instanceof TransitiveGraphCache) { TransitiveGraphCache tgc = (TransitiveGraphCache)action; Node prop = query.getPredicate(); return prop.equals(tgc.getDirectPredicate()) || prop.equals(tgc.getClosedPredicate()); } return false; } COM: <s> return true if this entry is a complete solution to the given </s>
funcom_train/26509403
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object next() throws NoSuchElementException { if (!hasNext()) throw new NoSuchElementException(); position.push(lastNext,0); lastLeft=null; lastRight=null; lastNext=null; return externalView(position.peek().getObject()); } COM: <s> describe code next code method here </s>
funcom_train/28323031
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void updateTexts(DocumentEvent e) { Document doc = e.getDocument(); if (doc == jTextNome.getDocument()) { // Change in the project name jTextFile.setText(jTextProjectName.getText()+"/"+ jTextNome.getText()+".jgm"); } panel.fireChangeEvent(); // Notify that the panel changed } COM: <s> handles changes in the project name and project directory </s>
funcom_train/14355098
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String addToBasket() { ProductTO selectedProduct = (ProductTO)productsTable.getRowData(); OrderBasketBeans orderBasketBean = (OrderBasketBeans)JSFUtil.getBackingBean(Constants.ORDER_BASKET); OrderItemTO item = new OrderItemTO(selectedProduct, 1); orderBasketBean.addItem(item); log.info("addToBasket pid="+selectedProduct.getPid()); return Constants.SUCCESS; } COM: <s> method name add to basket </s>
funcom_train/14242073
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int countParameters(MBehavioralFeature bf) { Collection c = bf.getParameters(); Iterator it = c.iterator(); int count = 0; while (it.hasNext()) { MParameter p = (MParameter) it.next(); if (MParameterDirectionKind.RETURN.equals(p.getKind())) continue; count++; } return count; } COM: <s> counts the number of parameters that are not return values </s>
funcom_train/31363475
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Vector getValues() { Vector rVector = new Vector(); rVector.add (new Long(lPersonID)); rVector.add (strLabFeeNo); rVector.add (dtDateScanned); rVector.add (dtDateExpires); rVector.add (dtDateUsed); rVector.add (new Integer(iAccountType)); return rVector; } COM: <s> returns a vector of values for all the lab fee fields </s>
funcom_train/34901257
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean setCurrentOption (String option) { if (optionsList != null) { int i = this.getIndexInList(option); if (i != -1) { optionsList.setItemSelected(i, true); setSelectedOptionLabel(option); return true; } } return false; } COM: <s> set current selected option with given a string </s>
funcom_train/51502449
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JRadioButton getJRadioButton5() { if (rbSa == null) { rbSa = new JRadioButton(); rbSa.setText("Samstag"); rbSa.setActionCommand("Sa"); rbSa.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 10)); rbSa.setPreferredSize(new java.awt.Dimension(66,14)); } return rbSa; } COM: <s> this method initializes j radio button5 </s>
funcom_train/38464120
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void createCollection(ObjectFieldData data, StorableClass cls, JSOTransaction jsotx) throws SQLException, StorageException { Collection container = (Collection)data.getData(cls.getContainerValueField()); JSOOID oid = JSOOID.safellyCast(data.getOID()); boolean ordered = !(container instanceof Set); createCollectionElements(oid,container,ordered,jsotx); } COM: <s> creates a collection </s>
funcom_train/50939879
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getProperties(String key) { //ResourceBundle bundle = getBundle(className); ResourceBundle bundle = getBundle(); try { return bundle.getString(key); } catch (MissingResourceException e) { System.err.println("Cannot load '" + key +"'"); System.err.println("Return as " + UNKNOWN_STRING); return UNKNOWN_STRING; } } COM: <s> get the properties for the specify class name and key </s>
funcom_train/45117948
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setView(int view) { boolean enable = true; if (view == TestTreeView.VIEW_RUNNING) { enable = false; } RefreshAction.getInstance().setEnabled(enable); NewScenarioAction.getInstance().setEnabled(enable); OpenScenarioAction.getInstance().setEnabled(enable); CopyScenarioAction.getInstance().setEnabled(enable); SwitchProjectAction.getInstance().setEnabled(enable); SaveFailedSequenceAction.getInstance().setEnabled(enable); InitReportersAction.getInstance().setEnabled(enable); } COM: <s> enable disable all menu bar items based on runner view </s>
funcom_train/376313
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int sendQueueTransmit(final WinPcapSendQueue queue, final int synch) { checkIsActive(); // Check if Pcap.close wasn't called final ByteBuffer buffer = queue.getBuffer(); final int len = queue.getLen(); final int maxlen = queue.getMaxLen(); return sendQueueTransmitPrivate(buffer, len, maxlen, synch); } COM: <s> send a queue of raw packets to the network </s>
funcom_train/23246953
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private double getReducedSpeed(final TrafficMessage aTrafficMessage, final Way aWay) { // TODO these numbers are just guessed TrafficMessage.TYPES type = aTrafficMessage.getType(); switch (type) { case ROADBLOCK: return 1; case TRAFFICJAM: return 30; case SLOWTRAFFIC: return 60; case IGNORED : default: return Double.MAX_VALUE; } } COM: <s> calculate the speed we move with during the given </s>
funcom_train/17772089
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setExportEnabled(DataFlavor flavor, boolean b){ Iterator it = getLinkedFlavors(flavor).iterator(); while(it.hasNext()){ DataFlavor flav = (DataFlavor) it.next(); if(b){ disabledExportFlavors.remove(flav); } else { disabledExportFlavors.add(flav); } } } COM: <s> disables or enables the export of a specific flavor and its </s>
funcom_train/3464797
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getParam(String s, int pos) { StringBuffer sb = new StringBuffer(); if(!(s.charAt(pos) == '-' || isDigit(s.charAt(pos)))) { return ""; } else { sb.append(s.charAt(pos)); } for(int i=pos+1;i<s.length();i++) { char ch = s.charAt(i); if(isDigit(ch)) { sb.append(ch); } else { break; } } return sb.toString(); } COM: <s> gets the numeric paramater of a control </s>
funcom_train/45749991
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addNamePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_NamedElement_name_feature"), getString("_UI_PropertyDescriptor_description", "_UI_NamedElement_name_feature", "_UI_NamedElement_type"), OntoUMLPackage.Literals.NAMED_ELEMENT__NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the name feature </s>
funcom_train/37003989
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void generateProject() { compilationUnits = new ArrayList<CompilationUnit>(); for (String filename : projectFilenames) { int pos = filename.lastIndexOf('.'); String ext = filename.substring(pos+1).toLowerCase(); if (Arrays.asList(fitExtensions).contains(ext)) { fitspecsFilenames.add(filename); } else if (ext.equals(JAVA_EXT)) { compilationUnits.add(generateCode(fileToString(filename))); } } } COM: <s> this method initializes all the project related data structure </s>
funcom_train/43385166
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private PatientBean createPatient(Patient p) { return new PatientBean(p.getSocInsNmb(), p.getTitle(), p .getSalutation(), p.getForeName(), p.getSurName(), p .getStreet(), p.getTownCode(), p.getTown(), p.getBornOn(), p .getSex()); } COM: <s> creates a patient bean object by a given patient domain object </s>
funcom_train/37483099
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void exportData(File newLocation) throws Exception { InputStream in = new FileInputStream(fileLocation); OutputStream out = new FileOutputStream(newLocation); // Transfer bytes from in to out byte[] buf = new byte[1024]; int len; while ((len = in.read(buf)) > 0) { out.write(buf, 0, len); } in.close(); out.close(); } COM: <s> exports the data to the specified location </s>
funcom_train/15399628
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSelection(DICOMImageLayoutNode node) { Enumeration e=_buttonGroup.getElements(); while (e.hasMoreElements()) { ImageLayoutButtonModel model=(ImageLayoutButtonModel) ((JRadioButton) e.nextElement()).getModel(); if (node.equals(model.getNode())) { model.setSelected(true); } } } COM: <s> sets selected layout </s>
funcom_train/7341828
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addResultMap(ResultMap resultMap) { if (resultMaps.containsKey(resultMap.getName())) { throw new SqlMapException("This SQL map already contains an ResultMap named " + resultMap.getName()); } resultMaps.put(resultMap.getName(), resultMap); } COM: <s> adds a named result map </s>
funcom_train/34675282
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testPutOnRiskFail() throws Exception { // create policy Policy policy = new Policy(); policy.setId("pol1"); policy.setPolicyNumber("pol1"); policy.setStatus(PolicyStatus.REFERRED); // run command PutOnRiskCommand command = (PutOnRiskCommand) getCore().newCommand("PutOnRiskService"); command.setPolicyArgRet(policy); try { command.invoke(); } catch (PreconditionException e) { // this is what we like } } COM: <s> test put on risk from refer status </s>
funcom_train/47926087
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void gotoRound(final int i) { assert plan.hasRoundNo(i) : "round with number " + i + " must exist!"; stop(); while (isPlaying) { try { LOG.fine("waiting for round " + currentRoundNo + " to end to go to round " + i); Thread.sleep(500); } catch (final InterruptedException e) { e.printStackTrace(); } } synchronized (this) { currentRoundNo = i; } plan.resetToRound(currentRoundNo); } COM: <s> blocks until current round has ended </s>
funcom_train/12156841
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void doTest(AcceptParser parser, String[] headers, String[] expected) { for (int i = 0; i < headers.length; i++) { parser.addHeaderField(headers[i]); } AcceptParser.Header header = parser.build(); ArrayCheckIterator checkIterator = new ArrayCheckIterator(parser); checkIterator.add(expected); header.forEachAcceptable(checkIterator); } COM: <s> uses the parser instance to parse the headers and assert that the </s>
funcom_train/20115036
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object checkMaxAttr (DBValue dbValue, boolean isIncluded){ if (dbValue.type()== DATE) { Date havingDate = (Date) dbValue.get(); return setMaxDateValue(havingDate,isIncluded); } /*else if (dbValue.type()== TIMESTAMP) { Timestamp stamp = (Timestamp) dbValue.get(); return setMaxTimestampValue(stamp,isIncluded); }*/ return dbValue.get(); } COM: <s> the method checks conformity of attribute value </s>
funcom_train/19239577
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addChildAt(Vector child, int row) { TreeTableTreeNode node = (TreeTableTreeNode) root.elementAt(row); node.addChild(child); if (!node.isCollapsed()) { int firstRow = getPosition(node); super.fireTableRowsInserted(firstRow + node.getChildCount(), firstRow + node.getChildCount()); } } COM: <s> child rows are not counted </s>
funcom_train/44706099
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void process(FormSectionEvent e) throws FormProcessException { FormData data = e.getFormData(); BigDecimal key = (BigDecimal) data.get(m_id.getName()); //check if the object is already deleted for double click protection try { AuthoringStep step = new AuthoringStep(key); step.delete(); } catch (DataObjectNotFoundException ex) { //just ignore it since it is already deleted } } COM: <s> form process listener which deletes an authoring step </s>
funcom_train/25418968
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSelectedContentType(String selectedContentType) { selectedContentType = Val.chkStr(selectedContentType); try{ SearchEngineCSW.AimsContentTypes.valueOf(selectedContentType); } catch(IllegalArgumentException e){ LOG.log(Level.FINER, "selectedContentType = " +selectedContentType +"is not an an arcIMS content type"); } this.selectedContentType = selectedContentType; } COM: <s> sets the selected content type </s>
funcom_train/47819794
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Scanner readLine() throws G8RException, EOFException { StringReader inputStream; try { byte [] line = getLine(); // Empty line will return null if (line.length < 1) return null; inputStream = new StringReader(new String(line, G8RProtocolUtility.ENCODING)); } catch (UnsupportedEncodingException e) { throw new G8RException(e); } return new Scanner(inputStream); } COM: <s> reads to the next r n sequence in stream </s>
funcom_train/38270594
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setXSL(String sslUri, String stylesheetTitle, BrowserInfo browserInfo) throws PortalException { StylesheetSet set = getStylesheetSet(ResourceLoader.getResourceAsURLString(caller.getClass(), sslUri)); set.setMediaProps(mediaProps); String xslUri = set.getStylesheetURI(stylesheetTitle, browserInfo); setXSL(xslUri); } COM: <s> configures the xsl source by choosing the appropriate stylesheet from </s>
funcom_train/7661374
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testTake() { try { DelayQueue q = populatedQueue(SIZE); for (int i = 0; i < SIZE; ++i) { assertEquals(new PDelay(i), ((PDelay)q.take())); } } catch (InterruptedException e){ unexpectedException(); } } COM: <s> take retrieves elements in priority order </s>
funcom_train/14466652
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addTool(final Object tool) { if (tool == null || tools.contains(tool)) return; tools.add(tool); JToggleButton button = new JToggleButton(new AbstractAction(tool.toString()) { private static final long serialVersionUID = 1L; public void actionPerformed(ActionEvent arg0) { setTool(tool); } }); toolButtonGroup.add(button); button.setSelected(tool == this.tool); toolChoices.add(button); pack(); } COM: <s> adds the given tool to a user selectable list </s>
funcom_train/14519756
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private IServiceTimerSessionLocal getServiceTimerSession() { if (servicetimersession == null) { try { IServiceTimerSessionLocalHome servicesessionhome = (IServiceTimerSessionLocalHome) getLocator().getLocalHome(IServiceTimerSessionLocalHome.COMP_NAME); servicetimersession = servicesessionhome.create(); } catch (CreateException e) { throw new EJBException(e); } } return servicetimersession; } //getServiceTimerSession COM: <s> gets connection a service timer session used for timed services </s>
funcom_train/18853230
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private LinkContainer getLinkContainer( HttpServletRequest request ) { if ( _linkContainer == null ) { _linkContainer = (LinkContainer)request.getSession().getServletContext().getAttribute( ApplicationKeys.LINK_CONTAINER ); if ( _log.isDebugEnabled() ) _log.debug("Got reference to the link container from the servlet context and stored it for this action instance."); } return _linkContainer; } COM: <s> convenience method which provides access to the cached link container </s>
funcom_train/25035087
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void gameLoop(){ boolean test = false; while( gameRunning ){ // clear screen GL11.glClear( GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT ); GL11.glMatrixMode( GL11.GL_MODELVIEW ); GL11.glLoadIdentity(); // let subsystem paint if( !test ){ if (callback != null){ callback.frameRendering(); } } Display.update(); if( Display.isCloseRequested() || Keyboard.isKeyDown(Keyboard.KEY_ESCAPE ) ){ gameRunning = false; Display.destroy(); callback.windowClosed(); } } } COM: <s> run the main game loop </s>
funcom_train/14622743
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JMenuItem getExitMenuItem() { if (exitMenuItem == null) { exitMenuItem = new JMenuItem(); exitMenuItem.setText("Exit"); exitMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed() exit(); } }); } return exitMenuItem; } COM: <s> this method initializes j menu item </s>
funcom_train/39212718
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void createCombo2() { GridData gridData1 = new GridData(); gridData1.grabExcessHorizontalSpace = true; gridData1.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL; transferType = new Combo(group1, SWT.READ_ONLY); transferType.setItems(transferTypes); transferType.setLayoutData(gridData1); } COM: <s> this method initializes transfer type </s>
funcom_train/11301380
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void test15() { SimpleDateFormat df = new SimpleDateFormat("HH:mm:ss,S"); long ticks = 11142L * 86400000L; String formatted = df.format(new Date(ticks)); int millisecondStart = CachedDateFormat.findMillisecondStart(ticks, formatted, df); assertEquals(CachedDateFormat.UNRECOGNIZED_MILLISECONDS, millisecondStart); } COM: <s> check pattern location for single s </s>
funcom_train/50091121
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private IAtomContainer getAllPlacedAtoms(IAtomContainer molecule) { IAtomContainer placedAtoms = new org.openscience.cdk.AtomContainer(); for (int i = 0; i < molecule.getAtomCount(); i++) { if (molecule.getAtom(i).getFlag(CDKConstants.ISPLACED)) { placedAtoms.addAtom(molecule.getAtom(i)); } } return placedAtoms; } COM: <s> gets the all placed atoms attribute of the atom placer3 d object </s>
funcom_train/33351935
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addSkyObject(ArrayList<SkyObject> result, int k, String label) { SkyObject so = new PointObject(); so.m_position = generateCoord(k, getNumberOfPoints()); so.m_name = so.m_position.toRADecString(); if (label != null) { so.m_name = label; } result.add(so); } COM: <s> use the index to generate the position of a point object </s>
funcom_train/3845
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean run() { logRunHeader("Parsing css file."); FileInputStream in = null; try { in = new FileInputStream(sourceName); } catch (FileNotFoundException e) { logger.warn("Error reading css file: " + e.getMessage()); return false; } return run(in, sourceName); } COM: <s> perform parsing on the input source </s>
funcom_train/26318624
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getNextEntityNum(GameTurn turn, int start) { for (int i = start + 1; i < entities.size(); i++) { final Entity entity = entities.get(i); if (turn.isValidEntity(entity, this)) { return entity.getId(); } } return getFirstEntityNum(turn); } COM: <s> returns the entity id of the next entity that can move during the </s>
funcom_train/31910640
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean isNodeIncrementEvent(InputEvent e) { // TODO: Improve code readability! return ((e.getID() == nodeIncrementEventID) && ((e instanceof KeyEvent) ? (((KeyEvent) e).getKeyCode() == nodeIncrementEventCode) : true) && ((e.getModifiers() & nodeIncrementEventModifiers) != 0)); } COM: <s> returns true if the input event e is a node increment event </s>
funcom_train/3313011
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void fillFront( Cover c ) throws IllegalArgumentException{ if(c.getType()!=CDFRONT) throw new IllegalArgumentException("Wrong cover type."); if(!title.equals("")) TextElementGenerator.createSingleString(c,title,null,18,50,false,false,false,false); } COM: <s> this method will insert the title </s>
funcom_train/44657651
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void broadcastAuthentication(Authentication authentication) { if( logger.isDebugEnabled() ) logger.debug( "BROADCAST authentication: token=" + authentication ); // Save this for any new beans that we post-process currentAuthentication = authentication; final Iterator iter = getBeansToUpdate( AuthenticationAware.class ).iterator(); while( iter.hasNext() ) { ((AuthenticationAware) iter.next()).setAuthenticationToken( authentication ); } } COM: <s> broadcast an authentication event to all the authentication aware beans </s>
funcom_train/12155438
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getSOPClassUID() { logger.debug("Entering getSOPClassUID()."); // TODO: This chunk of code isn't very clean. Change this ASAP. String sopClassUID = SOP_CLASS_UIDS[sopClassUIDComboBox.getSelectedIndex()]; if (logger.isDebugEnabled()) { logger.debug("Exiting getSOPClassUID(); RV = [" + sopClassUID + "]."); } return sopClassUID; } COM: <s> returns the selected sop class uid </s>
funcom_train/26389169
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void serverAdded(BrowserEvent e) { if (e.getID() == BrowserEvent.SERVER_ADDED) { Server server = (Server) e.getTarget(); deleteServerButton.setEnabled(true); connectButton.setEnabled(true); server.addServerListener(this); serverList.addItem(server); } } COM: <s> invoked when a server is added </s>
funcom_train/51813354
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public JobProduct execute(String providerId) { // take execution time long startMs = System.currentTimeMillis(); JobResult jr = executeJob( providerId ); long endMs = System.currentTimeMillis(); // new job product object JobProduct jp = newJobProduct(); // set JobProduct's properties jp.setDurationMs( endMs - startMs ); jp.setHasFailed( jr instanceof JobFailure ); jp.setJobResult( jr ); jp.setProviderId( providerId ); return jp; } COM: <s> executes the actual code job </s>
funcom_train/44451277
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void set(EditableImage source, Rectangle rect, int x, int y) { int lastX = x + rect.width; int lastY = y + rect.height; for (int cy = y, sy = rect.y; cy < lastY; cy++, sy++) { for (int cx = x, sx = rect.x; cx < lastX; cx++, sx++) { set(cx, cy, source.get(sx, sy)); } } } COM: <s> copies pixels from another image </s>
funcom_train/4078461
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean matchStrings() { Matcher matcher = pattern.matcher(str); if (matcher.matches()) { if (uriTemplateVariables != null) { for (int i = 1; i <= matcher.groupCount(); i++) { String name = this.variableNames.get(i - 1); String value = matcher.group(i); uriTemplateVariables.put(name, value); } } return true; } else { return false; } } COM: <s> main entry point </s>
funcom_train/3990202
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addRuchomosc_oddechowaPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_BadanieOkresowe_ruchomosc_oddechowa_feature"), getString("_UI_PropertyDescriptor_description", "_UI_BadanieOkresowe_ruchomosc_oddechowa_feature", "_UI_BadanieOkresowe_type"), PrzychodniaPackage.Literals.BADANIE_OKRESOWE__RUCHOMOSC_ODDECHOWA, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the ruchomosc oddechowa feature </s>
funcom_train/34197588
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isUsernameExists(final String username) { return (Boolean) getJpaTemplate().execute(new JpaCallback(){ public Object doInJpa(EntityManager entityManager) throws PersistenceException { Query query = entityManager.createNamedQuery("User_findByUsername"); query.setParameter("username", username); return (query.getResultList().size() > 0); } }); } COM: <s> return true if the code username code exists </s>
funcom_train/5427991
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void checkFree(SourceLocation location, String name) { Variable previousDef = find(name); if (previousDef != null) { throw new EvalException(location, "Then name '" + name + "' has been already defined at " + previousDef.defineLocation.toShortString()); } } COM: <s> check if the variable is free </s>
funcom_train/26188589
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addSubcategory(final Category subcategory) { if (subcategories == null) subcategories = new Hashtable(3); subcategories.put(subcategory.getName(),subcategory); ((CategoryImpl) subcategory).setParent(this); ((CategoryImpl) subcategory).setCatalog(getCatalog()); event_dispatcher.categoryAdded(this,subcategory); } COM: <s> adds a local subcategory </s>
funcom_train/35300669
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setFloat(int parameterIndex, float x) throws SQLException { checkParamIndex(parameterIndex); if(params == null){ throw new SQLException("Set initParams() before setFloat"); } params.put(Integer.valueOf(parameterIndex - 1), new Float(x)); } COM: <s> sets the designated parameter to the given code float code in the </s>
funcom_train/22428515
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void connectHost(HttpRequestHeader req) throws IOException { mConn = mPool.connect(req.getHostName(), req.getHostPort(), req.getSecure(), Global.isUseClientCert); mOutSocket = mConn.mSocket; mHostHttpIn = mConn.mHttpIn; mHostHttpOut = mConn.mHttpOut; } COM: <s> create output socket </s>
funcom_train/1591062
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public DateTime toDateTime(DateTimeZone zone) { zone = DateTimeUtils.getZone(zone); Chronology chrono = iChronology.withZone(zone); return new DateTime( getYear(), getMonthOfYear(), getDayOfMonth(), getHourOfDay(), getMinuteOfHour(), getSecondOfMinute(), getMillisOfSecond(), chrono); } COM: <s> converts this object to a date time using the specified zone </s>
funcom_train/39164148
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getString(Annotation ann) { return document.getContent().toString().substring(ann. getStartNode().getOffset().intValue(), ann.getEndNode().getOffset().intValue() ).replaceAll("\\r\\n|\\r|\\n", " "); } COM: <s> given an annotation this method returns the string of that annotation </s>
funcom_train/29504654
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testConcurrency() { try { CoreWSInterface bean = CoreWSLocator.bind(SERVER_HTTP_URL); for (int i = 0; i < N_THREADS; i++) { new Thread(new DocCreationThread("Th"+(i+1),bean)).start(); System.out.println("testConcurrencySingle() - Thread "+(i+1)+" started."); } } catch (Exception e) { System.out.println("testConcurrencySingle() - Failed to execute test: "+e); e.printStackTrace(); } } COM: <s> test for concurrency </s>
funcom_train/324794
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public BinaryHeaderAndFooter getFileHeaderAndFooter(File file) { File indexFile = findIndexFile(file, true); BinaryHeaderAndFooter bhf = null; if (indexFile != null) { bhf = readHeadAndFoot(indexFile); } if (bhf == null || bhf.binaryHeader == null || bhf.binaryFooter == null) { bhf = readHeadAndFoot(file); } return bhf; } COM: <s> run checks on each file </s>
funcom_train/29779002
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setComparator(Comparator<S> comparator) { this.itemComparator = comparator; this.keyComparator = new Comparator<SortMappingKey<S>>() { public int compare(SortMappingKey<S> key1, SortMappingKey<S> key2) { return itemComparator.compare(key1.getSource(), key2.getSource()); } }; } COM: <s> set the tt comparator tt used to virtually sort the source list </s>
funcom_train/26416079
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testConstructor() throws Exception { OutputStream os = new DevNullOutputStream(); ReportWriter writer = new ReportWriter(os); assertSame("output stream not set", os, writer.os); assertEquals("BR set wrong", System.getProperty("line.separator"), writer.getLineSep()); assertTrue("firstTime not set", writer.firstTime); assertNotNull("buffer not initialized", writer.buffer); } COM: <s> see that constructor inits ivars </s>
funcom_train/3890833
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void saveExportPath(String path) { // Get the LD Entry from the Project Index LearningDesignEntry ldEntry = _ldEditor.getLearningDesignDataModel() .getLearningDesignEntry(); ldEntry.setExportPath(path); // Save try { ldEntry.getDataModel().save(); } catch(Exception ex) { ex.printStackTrace(); } } COM: <s> save the export path to the ld entry file </s>
funcom_train/12709259
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public RepositoryEntryDescriptor serializeModelToDB(RepositoryEntryDescriptor aDesc, Dialect aDialect, Connection aConnection, Model aModel) throws Exception { Class theDialectClass = aDialect.getHibernateDialectClass(); aDesc = DictionaryModelSerializer.SERIALIZER.serialize(aDesc, aModel, aConnection, theDialectClass); return aDesc; } COM: <s> save a model to a repository </s>
funcom_train/51821898
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateEgoChooser(GraphProject gp) { egoList.removeAll(); String[] newDat = new String[gp.getNetCount()]; for (int i = 0; i < gp.getNetCount(); i++) { String label = gp.getEgoData(i)[0]; newDat[i] = (i+1) + ": " + label; } egoList.setListData(newDat); } COM: <s> updates the list of egos in the right option panel </s>
funcom_train/8805720
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public IBinding resolveFieldAccessBinding(ASFieldAccess fieldRef) { if (refToBinding.containsKey(fieldRef)) { return refToBinding.get(fieldRef); } IBinding binding = null; try { binding = (IBinding) refToBinding.get(fieldRef); } catch (RuntimeException e) { } if (binding == null) { log.warn("No binding found for " + fieldRef.toString()); return null; } return binding; } COM: <s> resolves a variable binding </s>
funcom_train/1046392
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean foodExistsInDate(String food){ Cursor c = db.query(DATE_TABLE_NAME, null, "name='" + food + "'", null, null, null, "name ASC"); if (c.getCount() != 0){ return true; } return false; } COM: <s> checks to see is a particular food exists in the date db </s>
funcom_train/10865849
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testContractions() throws IOException { Analyzer a = new ItalianAnalyzer(TEST_VERSION_CURRENT); assertAnalyzesTo(a, "dell'Italia", new String[] { "ital" }); assertAnalyzesTo(a, "l'Italiano", new String[] { "ital" }); } COM: <s> test that the elisionfilter is working </s>
funcom_train/27830291
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Job findJob(final long jobId) { for (Job job : jobFutureMap.keySet()) { if (jobId == job.getUid()) { return job; } } // throw new IllegalArgumentException(); LOG.error("No job found for ID " + jobId+" - leftover icon in notification bar?"); return null; } COM: <s> method to search the map and return the job with the given id </s>
funcom_train/4812297
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public JFormattedTextField getTextField(JSpinner spinner) { JComponent editor = spinner.getEditor(); if (editor instanceof JSpinner.DefaultEditor) { return ((JSpinner.DefaultEditor)editor).getTextField(); } else { log.error("Unexpected editor type: " + spinner.getEditor().getClass() + " isn't a descendant of DefaultEditor"); return null; } } COM: <s> return the formatted text field used by the editor or </s>
funcom_train/21616490
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void shutdown() { if (!listening) { System.out.println("Shutdown already called."); } else { System.out.println("Shutdown has been called."); listening = false; } Thread[] threadArray = new Thread[connections.activeCount()]; connections.enumerate(threadArray); for (int x=0;x<threadArray.length;x++) { ((ConnectionThread) threadArray[x]).kill(); } } COM: <s> stops the listening loop and shuts down all connection threads </s>
funcom_train/4174132
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isPrimaryKey(String column) throws SQLException { if (index.containsKey(column)) { return primaryKey[index.get(column).intValue()]; } else { final SQLExceptionState state = SQLExceptionState.COLUMN_NOT_FOUND; throw new SQLException("Column " + column + " does not exist in dataset.", state.name(), state.code()); } } COM: <s> indicates whether the designated column is a part of the primary key </s>
funcom_train/7442659
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Status getStatus(Method method, RepresentationInfo representationInfo) { return getStatus(method, representationInfo != null, (representationInfo == null) ? null : representationInfo .getTag(), (representationInfo == null) ? null : representationInfo.getModificationDate()); } COM: <s> returns the conditional status of a variant using a given method </s>
funcom_train/20388499
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void injectIntoCookiesAwareAction(Object action, Map cookiesMap) { if (action instanceof CookiesAware) { if (LOG.isDebugEnabled()) LOG.debug("action ["+action+"] implements CookiesAware, injecting cookies map ["+cookiesMap+"]"); ((CookiesAware)action).setCookiesMap(cookiesMap); } } COM: <s> hook that set the code cookies map code into action that implements </s>
funcom_train/17637702
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Builder userId(long userId) { if (path != null) { throw new IllegalStateException( "Only one of id, userId, or screenName may be set."); } path("/users/show.json"); return parameter("user_id", Long.toString(userId)); } COM: <s> the user id of a user </s>
funcom_train/3836514
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getJButtonDraw() { if (jButtonDraw == null) { jButtonDraw = new JButton(); jButtonDraw.setText("Draw"); jButtonDraw.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { handleMode = UserEvent.WhanTo_DRAW; } }); } return jButtonDraw; } COM: <s> this method initializes j button draw </s>
funcom_train/40927877
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getVehiculoReparadoNolCommand() { if (vehiculoReparadoNolCommand == null) {//GEN-END:|225-getter|0|225-preInit // write pre-init user code here vehiculoReparadoNolCommand = new Command("NO", Command.CANCEL, 0);//GEN-LINE:|225-getter|1|225-postInit // write post-init user code here }//GEN-BEGIN:|225-getter|2| return vehiculoReparadoNolCommand; } COM: <s> returns an initiliazed instance of vehiculo reparado nol command component </s>
funcom_train/7666294
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object createXPathEvaluator(Document doc) { try { Method getFeatureMethod = doc.getClass().getMethod("getFeature", new Class[] {String.class, String.class}); if (getFeatureMethod != null) { return getFeatureMethod.invoke(doc, new Object[] {"XPath", null}); } } catch (Exception ex) { } return doc; } COM: <s> creates xpath evaluator </s>
funcom_train/10500280
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addArgument(String argument, boolean mayBeInResponseFile) { if (argument != null && argument.length() != 0) { commandLine.createArgument().setValue(argument); if (!mayBeInResponseFile) { argsOnCommandLine.add(argument); } } } COM: <s> add an argument to a command line do nothing if the arg is </s>