__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/23173293
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: @Override public String toString () { StringBuilder sBuilder = new StringBuilder (); sBuilder.append (this.getClass ().getName () + ":\n"); if (this.lIdObjects != null) { for (T t : this.lIdObjects) { sBuilder.append (t); } } return sBuilder.toString (); } COM: <s> returns a string representation of this object </s>
funcom_train/13525734
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getMinIntrinsicHeight() { if (minIntrinsicHeight < 0) { Iterator iter = cells.iterator(); Cell cell; minIntrinsicHeight = 0; while (iter.hasNext()) { cell = (Cell) iter.next(); if (!cell.isMultiRowCell()) { minIntrinsicHeight = Math.max(minIntrinsicHeight, cell .getMinHeight()); } } } return minIntrinsicHeight; } COM: <s> gets the minimum intrinsic height of this row </s>
funcom_train/44890562
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean isStatementListPlaceholderPattern(SimpleNode pattern) { if (pattern.getNumChildren() != 1) return false; SimpleNode child = pattern.getChild(0); if (child.getNumChildren() != 1) return false; child = child.getChild(0); return child.id == PythonGrammarTreeConstants.JJTNAME && this.isStatementListPlaceholder((String) child.getInfo()); } COM: <s> return whether the given pattern node represents a placeholder for a </s>
funcom_train/8367211
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addMonsterSpawn(MapleMonster monster, int mobTime) { Point newpos = calcPointBelow(monster.getPosition()); newpos.y -= 1; SpawnPoint sp = new SpawnPoint(monster, newpos, mobTime); monsterSpawn.add(sp); if (sp.shouldSpawn() || mobTime == -1) { // -1 does not respawn and should not either but force ONE spawn sp.spawnMonster(this); } } COM: <s> not threadsafe please synchronize yourself </s>
funcom_train/44586350
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void findExactTypes(String name, ISearchRequestor storage, int type) { SearchableEnvironmentRequestor requestor = new SearchableEnvironmentRequestor(storage, this.unitToSkip, this.project, this.nameLookup); this.nameLookup.seekTypes(name, null, false, type, requestor); } COM: <s> returns all types whose simple name matches with the given code name code </s>
funcom_train/13384844
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public SyncNode compare() { DirectoryTO localRoot = localDirStore.getDir(0); DirectoryTO worldRoot = worldDirStore.getDir(0); DirectoryTO mediumRoot = mediumDirStore.getDir(0); rootNode = compareDir("", "", localRoot, null, worldRoot, null, mediumRoot, null); return rootNode; } COM: <s> compare local world and medium db annd check also availabe files on </s>
funcom_train/20885114
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testWithIllformedElements() { assertEquals(countDTO(TestDTO.class, createXML(NOT_WELLFORMED, VALID)), 0); assertEquals(countDTO(TestDTO.class, createXML(VALID, NOT_WELLFORMED)), 1); } COM: <s> tests it with different positions of illformed elements </s>
funcom_train/46767739
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void LowlightTab(String name){ System.out.println("lowlighted "+name); try{ consolePanel.setTitleAt(((consolePanel.indexOfTab("<html><font color=\"#FF0000\">"+name+"<font></html>"))),name); if (name.equalsIgnoreCase("Console")){ this.consoleHighlighted=false; } else{ this.errorsHighlighted=false; } } catch (Exception e){ AppendToConsole("lowlight excption in Gui::LowlightTab:"+e.getMessage(),1); e.printStackTrace(); } } COM: <s> change the color of the named tab to black </s>
funcom_train/33814572
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getApagarButton() { if (apagarButton == null) { apagarButton = new JButton(); apagarButton.setText("Apagar"); apagarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed() getFormulario().apagarFormulario(); } }); } return apagarButton; } COM: <s> this method initializes apagar button </s>
funcom_train/20302046
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void skipLine(RandomAccessDictionaryFile file) throws IOException { int c; while (((c = file.read()) != -1) && c != '\n' && c != '\r'); c = file.read(); if (c != '\n' && c != '\r') { file.seek(file.getFilePointer()-1); } } COM: <s> skips the next line in the file </s>
funcom_train/50509832
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void setState(int state) { synchronized(this) { if (_state != state) { getLogger().debug(new LogMessage( "Switching from state {0} to {1}.", new Object[] { new Integer(_state), new Integer(state) } )); _state = state; } } } COM: <s> this method sets the state of the thread </s>
funcom_train/3116930
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setImage(final BufferedImage image) { this.image = image; setFullSizeBounds( IMAGE, new Rectangle2D.Double( image.getMinX(), image.getMinY(), image.getWidth(), image.getHeight())); fireImageChanged(); } COM: <s> sets the image version of this piece of content to the specified image </s>
funcom_train/5809509
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double getValue(String cat, long curTime, long rollingWindow) { double value = 0.0; // get the outages in the last 'rollingWindow' long outageTime = getDownTime(cat, curTime, rollingWindow); if (outageTime < 0) return outageTime; double dOut = outageTime * 1.0; double dRoll = rollingWindow * 1.0; value = 100 * (1 - (dOut / dRoll)); return value; } COM: <s> get the avaialability </s>
funcom_train/4523324
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void addStrutsResultContributors() { StartupManager.getInstance(myProject).runWhenProjectIsInitialized(new Runnable() { public void run() { final StrutsResultContributor[] strutsResultContributors = Extensions.getExtensions(StrutsResultContributor.EP_NAME); StrutsPathReferenceConverterImpl.addResultContributors(strutsResultContributors); } }); } COM: <s> queries all registered extension points for </s>
funcom_train/24558752
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getDescription(Method method, Object[] parms) { StringBuffer returnValue = new StringBuffer("Calling Method : " + method.getName() + "\nwith parameters :\n"); if (parms != null) { for (Object parm : parms) { if (parm != null) { returnValue.append(parm.toString()); } } } return returnValue.toString(); } COM: <s> get the description of the activity </s>
funcom_train/8968558
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void rdiv(Real a) { { recipTmp.mantissa = a.mantissa; recipTmp.exponent = a.exponent; recipTmp.sign = a.sign; }; recipTmp.div(this); { this.mantissa = recipTmp.mantissa; this.exponent = recipTmp.exponent; this.sign = recipTmp.sign; }; } COM: <s> calculates the quotient of code a code and this code real code </s>
funcom_train/27835259
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object rhs) { if (rhs instanceof DBDriver) { return (this.getClassName().equals(((DBDriver) rhs).getClassName()) && this.getFileName().equals(((DBDriver) rhs) .getFileName())); } return false; } COM: <s> two drivers are equal if filename and class name are equal </s>
funcom_train/451371
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public RecorderCount getFreeRecorderCount() { getSession(); logger.info("Sending " + GET_FREE_RECORDER_COUNT.getMythCmdType()); MythPacket ret = sendCommand(GET_FREE_RECORDER_COUNT); assert (1 == ret.getFieldCount()); return (RecorderCount) GET_FREE_RECORDER_COUNT.parse(ret)[0]; } COM: <s> return number of idle capture devices available on backend </s>
funcom_train/11087825
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void add(Document lucDoc, String id) throws IOException { synchronized (directory) { remove(id); IndexWriter writer = new IndexWriter(directory, new SimpleAnalyzer(), IndexWriter.MaxFieldLength.LIMITED); try { writer.addDocument(lucDoc); writer.commit(); } finally { writer.close(); } } } COM: <s> add object to lucene index </s>
funcom_train/44871639
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setFunction(Function f) { if (f == null) throw new IllegalArgumentException( "Function supplied to WrapperFunction object can't be null."); if (func != null && f.getArity() != func.getArity()) throw new IllegalArgumentException( "Attempt to change the arity of a WrapperFunction."); if (derivativeOf != null) throw new IllegalArgumentException( "Can't change the definition of a function that is a derivative of another function."); func = f; params = new double[f.getArity()]; serialNumber++; } COM: <s> set the function that is contained in this wrapper function </s>
funcom_train/27727307
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double clockError(VectorN los, VectorN v, VectorN vGPS, double clockBias){ double rr = GPS_Utils.rangeRate(los, v, vGPS); double error = (1.0 - (rr/GPS_Utils.c)) * clockBias; // double error = noise; // System.out.println("rr = "+rr+" noise = "+noise); return error; } COM: <s> outputs the gyros contribution to the ins error quaternion </s>
funcom_train/16412394
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void handleDetailsDialog() { // update statistics Thread statisticThread = new Thread("Update Statistics") { public void run() { updateStatistics(); } }; statisticThread.start(); Shell detailsShell = new Shell(swtFrameDisp, SWT.DIALOG_TRIM); detailsShell.setText("OAST: Details"); detailsShell.setLayout (new GridLayout ()); ((GridLayout)detailsShell.getLayout ()).numColumns = 1; new DetailsComposite(detailsShell, SWT.NONE, Oast.getDetailsBean()); detailsShell.pack(); detailsShell.open(); detailsShell.update(); } COM: <s> create and fill details frame </s>
funcom_train/5461470
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public DataObject getObject() throws MessagingException, IOException { if (currentDataObjectToReturn >= dataObjectsToReturn.size()) { return null; } else { DataObject result = dataObjectsToReturn.get(currentDataObjectToReturn); currentDataObjectToReturn++; return result; } } COM: <s> returns a data object representing a single message </s>
funcom_train/36142998
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public V get(Queue<String> path) { // we're at a leaf. I think it's appropriate to return // null if there is no data here // although, there should never be a leaf with no data... if (path.size() == 0) { return data; } else { // if there are more dereferencers, get the appropriate child String key = path.poll(); HashTree<K,V> child = children.get(key); if (child != null) { // and hunt return child.get(path); } else { return null; } } } COM: <s> get the value at the node identified by the given path or </s>
funcom_train/16711091
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String validateUserName(final String inputUserName) throws VREBusinessException { if (inputUserName == null) throw new VREBusinessException("No user name defined", new Object[] {}); final String trimmedUserName = inputUserName.trim(); if (trimmedUserName.length() == 0) throw new VREBusinessException(MessageKeys.DATA_INVALID, new Object[] { "Empty user name value" } ); return trimmedUserName; } COM: <s> validate the supplied user name </s>
funcom_train/964626
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testDeserializeConstructedLayout() { FormLayout layout = createSampleLayout(); ByteArrayOutputStream out = new ByteArrayOutputStream(); serialize(out, layout); byte[] bytes = out.toByteArray(); InputStream in = new ByteArrayInputStream(bytes); deserialize(in); } COM: <s> tests the deserialization of a form layout that has just been constructed </s>
funcom_train/46608619
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void update(SwingBoxDocument doc, ElementBox root, Dimension dim) throws IOException { ContentReader rdr = new ContentReader(); List<ElementSpec> elements = rdr.update(root, dim, getCSSBoxAnalyzer()); ElementSpec elementsArray[] = elements.toArray(new ElementSpec[0]); doc.create(elementsArray); } COM: <s> updates layout using new dimensions </s>
funcom_train/23396248
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected CompletionCondition xml2CompletionCondition(Element completionConditionElement) { CompletionCondition completionCondition = BPELFactory.eINSTANCE.createCompletionCondition(); completionCondition.setElement(completionConditionElement); // Set branches element Element branchesElement = getBPELChildElementByLocalName(completionConditionElement, "branches"); if (branchesElement != null) { Branches branches = xml2Branches(branchesElement); completionCondition.setBranches(branches); } return completionCondition; } COM: <s> converts an xml completion condition element to a bpel completion condition object </s>
funcom_train/11643646
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetRuntimeException() throws Exception { BackgroundInitializerTestImpl init = new BackgroundInitializerTestImpl(); RuntimeException rex = new RuntimeException(); init.ex = rex; init.start(); try { init.get(); fail("Exception not thrown!"); } catch (Exception ex) { assertEquals("Runtime exception not thrown", rex, ex); } } COM: <s> tests the get method if background processing causes a runtime </s>
funcom_train/41416994
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void initDeviceScan() { this.isIphone = detectIphoneOrIpod(); this.isAndroidPhone = detectAndroidPhone(); this.isTierTablet = detectTierTablet(); this.isTierIphone = detectTierIphone(); this.isTierRichCss = detectTierRichCss(); this.isTierGenericMobile = detectTierOtherPhones(); } COM: <s> initialize key stored values </s>
funcom_train/9646530
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void updatePauseButtonLabel() { boolean isRunning = !snakeModel.isPaused(); String pauseButtonText = null; if (isRunning || !gameWasStarted) { pauseButtonText = chiefFunction ? "Pause + Minimize (P)" : "Pause (P)"; } else { pauseButtonText = "Continue"; } pauseButton.setText(pauseButtonText); pauseButton.setEnabled(gameWasStarted); } COM: <s> adjust the label on the pause button depending on </s>
funcom_train/31186745
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getView() { String path; if ( currentMode.equals("currentdir") ) { String currentDir = System.getProperty("user.dir"); path = PathEditItem.calculateRelativePath(currentDir, typedIn); } else if ( currentMode.equals("userdir") ) { String userDir = System.getProperty("user.home"); path = PathEditItem.calculateRelativePath(userDir, typedIn); } else { // default is absolute path = txtFileName.getText(); } itemEditing.setPathItem(path); return path; } COM: <s> from the absolute path of the item determine the rest </s>
funcom_train/32056277
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void actionPerformed(ActionEvent e) { Map map = GraphConstants.createMap(); /* FAULT:: Map map=null; */ Map map1 = GraphConstants.createMap(); GraphConstants.setFontStyle(map, Font.HANGING_BASELINE); makeEdit(map1, map); setSelectionAttributes(map); //GraphConstants.setFontStyle() //graphpad.getCurrentDocument(). //setFontStyle(Font.HANGING_BASELINE); } COM: <s> sets the font style to underline when an action is initiated </s>
funcom_train/39407157
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getJButtonCancel() { if (jButtonCancel == null) { jButtonCancel = new JButton(); jButtonCancel.setText("Annuleren"); jButtonCancel.setToolTipText("Annuleren"); jButtonCancel.setMinimumSize(buttonSize); jButtonCancel.setPreferredSize(buttonSize); jButtonCancel.setMaximumSize(buttonSize); jButtonCancel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancel(); } }); } return jButtonCancel; } COM: <s> this method initializes j button cancel </s>
funcom_train/44573569
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public JmlCompilationUnit getSuspendedCUnit(String qName) { int pos = qName.indexOf('$'); JmlCompilationUnit cUnit; if (pos < 0) { cUnit = (JmlCompilationUnit) incompleteTasksByQName.get(qName); } else { cUnit = (JmlCompilationUnit) incompleteTasksByQName.get(qName.substring(0, pos)); } return cUnit; } COM: <s> look for partially processed compilation unit if suspended for the </s>
funcom_train/45623380
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addFindDependenciesPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ResolveAssemblyReferenceType_findDependencies_feature"), getString("_UI_PropertyDescriptor_description", "_UI_ResolveAssemblyReferenceType_findDependencies_feature", "_UI_ResolveAssemblyReferenceType_type"), MSBPackage.eINSTANCE.getResolveAssemblyReferenceType_FindDependencies(), true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the find dependencies feature </s>
funcom_train/25792358
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void registerWithDataComm(DataComm dataComm) { m_dataComm = dataComm; m_dataComm.getBreakPointSync().register((IFileBreakPointListener) this); m_dataComm.getBreakPointSync().register((IBreakPointHitListener) this); m_dataComm.getControlSync().register(this); m_dataComm.getFocusSync().register(this); } COM: <s> register the source file view controller with various datacomm syncronization systems to </s>
funcom_train/9878673
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel createListPanel(Object[] info) { JPanel panel = new JPanel(new BorderLayout()); JList list = new JList(info); JScrollPane scroll = new JScrollPane(list); scroll.setPreferredSize(new Dimension(300, 200)); panel.add(scroll, BorderLayout.CENTER); return panel; } COM: <s> creates a panel with jlist </s>
funcom_train/23791864
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void querySubscriptions() { if(isRegistered) { Object[] arg = {incoming_port, name}; OSCMessage msg = new OSCMessage("/query/subscriptions", arg); out.send(msg); } else { if(verbo > 2) System.err.println("\nSenseWorldDataNetwork warning: the client is not yet registered. Cannot query server."); } } COM: <s> queries the server for all the subscriptions this client has </s>
funcom_train/50487991
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int internalGetPeriod(int month, int monthsPerPeriod) { // // INTERNAL NOTE: // thank's to month based on zero we can use the // division by (months per period) here. // if that should change we would have to // reduce the month by 1. return (month / monthsPerPeriod) + 1; } COM: <s> internal get period function </s>
funcom_train/38251899
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void writeToFile(File name) throws IOException{ FileWriter writer = new FileWriter(name); Iterator it = this._contents.iterator(); SNPFileEntry entry; while(it.hasNext()){ entry = (SNPFileEntry)it.next(); writer.write(entry.toString()+"\n"); } writer.flush(); writer.close(); } COM: <s> writes the snpfile contents into a new text file </s>
funcom_train/13961818
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void dumpCache(String fileName) { fileName = fileName == null ? "dmp.cache": fileName; synchronized(this) { try { ERXFileUtilities.writeInputStreamToFile(new ByteArrayInputStream(cacheToBytes(_cache)), new File(fileName)); } catch(IOException ex) { log.error(ex); } } } COM: <s> means to dump the cache </s>
funcom_train/42536404
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object o){ if(!(o instanceof TypeUse))return false; if(o == this)return true; TypeUse oo = (TypeUse)o; return (((Object)name).equals(oo.name))&&(((Object)tparams).equals(oo.tparams)); } COM: <s> is the given object equal to this type use </s>
funcom_train/8157245
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void saveMove(String move) { // should not store two equal moves in succession if ((gesture.length() > 0) && (gesture.charAt(gesture.length() - 1) == move.charAt(0))) return; gesture.append(move); mouseGestures.fireGestureMovementRecognized(getGesture()); } COM: <s> adds movement to buffer </s>
funcom_train/4630741
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean retrieveHeader(InputQueue input) throws IOException { byte[] header; if (headerReceived) return true; if (input.size() <= MessageHeader.HEADER_SIZE) { return false; } headerBuffer = input.dequeueBytes(MessageHeader.HEADER_SIZE); // getting // the // header headerReceived = true; header = bufferToArray(headerBuffer); this.nextHeader = MessageHeader.readHeader(header); log.debug("Header for next message completely retrieved."); return headerReceived; } COM: <s> reads from the input source and tries to retrieve a message header </s>
funcom_train/1754787
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getMockupData(Parameter parameter) { Type type = parameter.type(); if (type.isPrimitive()) { return PRIMITIVE_MOKCUP.get(type.typeName()); } else { ClassDoc classDoc = type.asClassDoc(); ConstructorDoc[] constructors = classDoc.constructors(); for (ConstructorDoc constructor : constructors) { if (constructor.parameters() == null || constructor.parameters().length == 0) { return "new " + constructor.qualifiedName() + type.dimension() + "()"; } } } return null; } COM: <s> tries to get some mockup data for the given type </s>
funcom_train/9860772
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Object evaluate2(final StatementToken<StatementTokens> pStatement, final SymbolContext pSymbolContext) throws EvaluationException { try { return evaluate3(pStatement, new BlockSymbolContext(pSymbolContext)); } catch (final Exception e) { if (e instanceof EvaluationException) { throw (EvaluationException) e; } throw new EvaluationException(e, pStatement); } } COM: <s> evaluate the given statement token </s>
funcom_train/49330048
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isPartiallySelected (TreePath path) { if (isPathSelected(path, true)) { return false; } TreePath[] selectionPaths = getSelectionPaths(); if (selectionPaths == null) { return false; } for (TreePath selectionPath : selectionPaths) { if (isDescendant(selectionPath, path)) { return true; } } return false; } COM: <s> tests whether there is any selected node in the subtree of given path </s>
funcom_train/35112151
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public JSONObject unblock(String userId) throws PlurkException { try { HttpGet method = (HttpGet) PlurkActionSheet.getInstance() .unblock(config.args().name("user_id").value(userId).getMap()); return JsonUtils.toObject(executor.execute(method)); } catch (Exception e) { throw PlurkException.create(e); } } COM: <s> api blocks unblock </s>
funcom_train/9236240
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void changeFocus(final boolean direction) { int index; //are we going up or down? if (direction) { //up index = changeFocusUp(selectionModel.getMinSelectionIndex()); } else { //down index = changeFocusDown(selectionModel.getMinSelectionIndex()); } selectionModel.setSelectionInterval(index, index); } COM: <s> activates the node above or below the active node in the list </s>
funcom_train/33394996
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void loadResults() { System.out.println("record: "+deviceRecord); TCResPanel pn= new TCResPanel(exefile, this); if(pn.Notrun==false){ tab.addTab("", pn); tab.setSelectedComponent(pn); tab.setTabComponentAt( tab.getSelectedIndex(), TabSet(exefile.getName()) ); } } COM: <s> displays test results in new tab </s>
funcom_train/23411311
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addContextPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_CountsAs_context_feature"), getString("_UI_PropertyDescriptor_description", "_UI_CountsAs_context_feature", "_UI_CountsAs_type"), OMPackage.Literals.COUNTS_AS__CONTEXT, true, false, true, null, null, null)); } COM: <s> this adds a property descriptor for the context feature </s>
funcom_train/18079176
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public File makeDiretoryInDestinationDir(File destinationDir, String makingDirectory){ File directoryForFoto = new File (destinationDir, makingDirectory); if(!directoryForFoto.exists()){ //create dir directoryForFoto.mkdir(); if(!directoryForFoto.isDirectory()){ System.out.print("Can not make Directory: " + directoryForFoto.toString()); return null; } // if(!directoryForFoto.isDirectory()) } // if(!directoryForFoto.exists()) return directoryForFoto; } COM: <s> make directory for foto for fotos and preview in destination dir </s>
funcom_train/7646610
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void ordinaryChars(int low, int hi) { if (low < 0) { low = 0; } if (hi > tokenTypes.length) { hi = tokenTypes.length - 1; } for (int i = low; i <= hi; i++) { tokenTypes[i] = 0; } } COM: <s> specifies that the characters in the range from </s>
funcom_train/23467582
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addBindingPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_InterfaceDescription_binding_feature"), getString("_UI_PropertyDescriptor_description", "_UI_InterfaceDescription_binding_feature", "_UI_InterfaceDescription_type"), SyntaxPackage.Literals.INTERFACE_DESCRIPTION__BINDING, true, false, true, null, null, null)); } COM: <s> this adds a property descriptor for the binding feature </s>
funcom_train/16795248
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addPreviewCheckbox(PlugInFilterRunner pfr) { if (previewCheckbox != null) return; ImagePlus imp = WindowManager.getCurrentImage(); if (imp!=null && imp.isComposite() && ((CompositeImage)imp).getMode()==CompositeImage.COMPOSITE) return; this.pfr = pfr; addCheckbox(previewLabel, false, true); } COM: <s> adds a checkbox labelled preview for automatic preview </s>
funcom_train/17178494
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void cancelPressed() { // change the icon to a "waiting version" mainFrame.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/searchgui.gif"))); waitingDialog.appendReport("\n" + new Date() + "\tSearch Cancelled.\n"); searchWorker.cancelRun(); waitingDialog.setRunCanceled(); runCancelled = true; } COM: <s> method called when the cancel button is pushed </s>
funcom_train/28744032
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public MaterialItemInfo getMaterialItemInfoById(Integer id) throws SimsException { //String errMsg = clsName + ".getMaterialItemInfoById(): "; MaterialItemInfo info; try { local = this.getMaterialItemLocalById(id); info = local.getMaterialItemInfo(); } catch (RuntimeException e) { //Propagate. throw e; } return info; } COM: <s> get material item info object by id </s>
funcom_train/24316155
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void loadProperties() { try { if (logChannel != null) logChannel.write(Logger.DEBUG, "Loading default properties!!! "); loadProperties(DEFAULT_PROPERTIES_FILE_NAME); } catch (Exception ex) { ex.printStackTrace(); if (logChannel != null) logChannel.write(Logger.ERROR, "Property file isn't found!!! "); } } COM: <s> loading properties from default property file </s>
funcom_train/40131206
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void createHeader() { _currentPathPanel = new JPanel(new BorderLayout()); _currentPathPanel.setBackground(_lostfocusColor); _currentPathLabel = new JLabel("C"); //_currentPathLabel.setForeground(Color.WHITE); _currentPathPanel.add(_currentPathLabel, BorderLayout.CENTER); this.add(_currentPathPanel, BorderLayout.NORTH); } COM: <s> create header tab </s>
funcom_train/48526368
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addVisited(NodeHandle handle) { // if (!(this instanceof SubscribeMessage)) System.out.println(this+".addVisited("+handle+")"); if (handle == null) { return; } if (!visited.contains(handle)) { visited.add(handle); } while (toVisit.remove(handle)) { toVisit.remove(handle); } } COM: <s> adds a node to the visited list </s>
funcom_train/41990815
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void predict(RealMatrix F, RealMatrix Q, RealMatrix B, RealMatrix u) { _x = F.multiply(_x).add(B.multiply(u)); _P = F.multiply(_P).multiply(F.transpose()).add(Q); } COM: <s> uses the previous state estimate and the provided motion model to produce </s>
funcom_train/40003519
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void initSounds() { midiPlayer = new MidiPlayer(); soundManager = new SoundManager(PLAYBACK_FORMAT); music = midiPlayer.getSequence("../sounds/music.midi"); boop = soundManager.getSound("../sounds/boop.wav"); bzz = soundManager.getSound("../sounds/fly-bzz.wav"); } COM: <s> loads sounds and music </s>
funcom_train/11342985
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void loadLocale(Properties properties, URL url) throws IOException { InputStream in = null; try { in = url.openStream(); properties.load(in); } finally { if (in != null) { try { in.close(); } catch (IOException ignored) { } } } } COM: <s> loads a locale properties file </s>
funcom_train/11744645
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getConfigurationLocation() { String configurationLocation = configuration .getInitParameter(CONFIGURATION_LOCATION_PARAMETER); if (configurationLocation != null) { return configurationLocation; } String name = configuration.getFilterName(); if (name == null) { return null; } if (!name.endsWith(".xml")) { name = name + ".xml"; } return name; } COM: <s> returns a non null location of an xml cayenne configuration extracted from the </s>
funcom_train/965054
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setHonorsVisibility(boolean b) { boolean oldHonorsVisibility = getHonorsVisibility(); if (oldHonorsVisibility == b) return; honorsVisibility = b; Set componentSet = constraintMap.keySet(); if (componentSet.isEmpty()) return; Component firstComponent = (Component) componentSet.iterator().next(); Container container = firstComponent.getParent(); invalidateAndRepaint(container); } COM: <s> specifies whether invisible components shall be taken into account by </s>
funcom_train/37825710
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JulianCalendar getStartDate() throws InvalidDateException { try { int year = Integer.parseInt(datePanel.yearTextField.getText()); int month = Integer.parseInt(datePanel.monthTextField.getText()); int day = Integer.parseInt(datePanel.dayTextField.getText()); return new JulianCalendar(year, month - 1, day, 0, 0, 1); } catch (Exception ex) { throw new InvalidDateException(ex); } } COM: <s> returns the start date of the calculations </s>
funcom_train/3091529
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean testAttackTolerance() { int cnt = 0; DegreeDistributionRanker ranker = new DegreeDistributionRanker(graph); ranker.evaluate(); Iterator nodeRankingList = ranker.getRankings().iterator(); while (cnt < numNodes) { /* Select a highly-connected node. Deletes all its edges and then delete the node. */ Vertex v = ((NodeRanking)nodeRankingList.next()).vertex; graph.removeEdges(v.getIncidentEdges()); graph.removeVertex(v); /* Increment count if node deleted from the graph */ cnt++; } return true; } // end of testAttackTolerance COM: <s> perform attack tolerance test on the graph </s>
funcom_train/16174678
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getExitCommand() { if (exitCommand == null) {//GEN-END:|16-getter|0|16-preInit // write pre-init user code here exitCommand = new Command("Exit", Command.EXIT, 0);//GEN-LINE:|16-getter|1|16-postInit // write post-init user code here }//GEN-BEGIN:|16-getter|2| return exitCommand; } COM: <s> returns an initiliazed instance of exit command component </s>
funcom_train/9019111
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Size2D arrange(Canvas g2, RectangleConstraint constraint) { Size2D result = new Size2D(); fetchLegendItems(); if (this.items.isEmpty()) { return result; } BlockContainer container = this.wrapper; if (container == null) { container = this.items; } RectangleConstraint c = toContentConstraint(constraint); Size2D size = container.arrange(g2, c); result.height = calculateTotalHeight(size.height); result.width = calculateTotalWidth(size.width); return result; } COM: <s> arranges the contents of the block within the given constraints and </s>
funcom_train/23717630
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getPreferredText(EList<InternationalText> texts) { for (InternationalText text : texts) { if (text.hasLanguage(preferredLang)) { return text.getText(); } } for (InternationalText text : texts) { if (text.hasDefaultLanguage()) { return text.getText(); } } return null; } COM: <s> extract a text from a list of alternatives based on the preferred language </s>
funcom_train/12113478
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void connEtoC5(java.awt.event.ActionEvent arg1) { try { // user code begin {1} // user code end this.cancellaSpeseJButton_ActionPerformed(arg1); // user code begin {2} // user code end } catch (java.lang.Throwable ivjExc) { // user code begin {3} // user code end handleException(ivjExc); } } COM: <s> conn eto c5 cancella spese jbutton </s>
funcom_train/2489296
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void btChoose_actionPerformed(ActionEvent e) { try { if(fchooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) tfPath.setText(fchooser.getSelectedFile().getCanonicalPath()); } catch (IOException ioex) { displayError(bundle.getString("error"), ioex.getLocalizedMessage()); } } COM: <s> sets the file path by calling </s>
funcom_train/44089492
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void init() { sessionParameters = new GPSessionParameters(this); setLayout(new BorderLayout()); setBackground(Color.white); JButton button = new JButton("Start"); button.setIcon(ImageLoader.getImageIcon(Translator.getString("Icon"))); add(button, BorderLayout.CENTER); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { createPad(); } }); button.setPreferredSize(getSize()); createPad(); button.revalidate(); } COM: <s> automatic entry point when deploying jgraphpad as an applet </s>
funcom_train/365750
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void setPolarLocation(NodeItem n, double r, double theta) { double x = m_origin.getX() + r*Math.cos(theta); double y = m_origin.getY() + r*Math.sin(theta); super.setLocation(n,(NodeItem)n.getParent(),x,y); } // COM: <s> set the position of the given node given in polar co ordinates </s>
funcom_train/20823064
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int getDimmerDmxLevel(final long now, final int dimmerIndex) { float level = 0; Dimmer dimmer = context.getShow().getDimmers().get(dimmerIndex); Channel channel = dimmer.getChannel(); if (channel != null) { level = channel.getValue(); } return Dmx.getDmxValue(level); } COM: <s> answer the level for the channel with given index </s>
funcom_train/5688861
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setData(int[][] data) { this.data = data; this.poly = new int[data.length * 2][]; for (int num = 0; num < data.length; num++) { this.poly[2 * num + 0] = new int[(data[num].length - 1) / 2]; this.poly[2 * num + 1] = new int[(data[num].length - 1) / 2]; } } COM: <s> change th data of this object </s>
funcom_train/18894299
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testInvalidContentType() throws Exception { JarContent content = null; MimeType mimeType = null; content = new JarContent(new URL("jar:file:"+libDirectory+"/junit-3.8.1.jar!/bad")); mimeType = content.getContentType(); assertTrue("Expecting mime type of null but found " + mimeType, mimeType == null ); } COM: <s> test invalid content type </s>
funcom_train/20043446
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void _getGopherProxyPort() { String gopherProxyPort = oObj.getGopherProxyPort(); String expectedGopherProxyPort = (String) expectedProxies.get("gopherProxyPort"); tRes.tested("getGopherProxyPort()", gopherProxyPort.equals(expectedGopherProxyPort)); } COM: <s> calls code get gopher proxy port code and verifies its result with </s>
funcom_train/34342836
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public TextField getNroFactura1() { if (NroFactura1 == null) {//GEN-END:|44-getter|0|44-preInit // write pre-init user code here NroFactura1 = new TextField("2-Nro Factura", null, 5, TextField.ANY);//GEN-LINE:|44-getter|1|44-postInit // write post-init user code here }//GEN-BEGIN:|44-getter|2| return NroFactura1; } COM: <s> returns an initiliazed instance of nro factura1 component </s>
funcom_train/48397397
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString(){ String text = ""; int networkSize = neuronList.length; for (int i=0; i< networkSize; i++ ){ text +="Neuron number "+ (i + 1) + ": " + neuronList[i]; if(i < networkSize-1){ text += "\n"; } } return text; } COM: <s> returns a string representation of the coords object </s>
funcom_train/37457010
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void readDatasetFromResources(String datasetFile) throws DatasetException { // always clear previous content clearDatasetContent(); // The file should not be null if (datasetFile == null){ throw new IllegalArgumentException("The name of the file containing the dataset is null and we can't read the dataset."); } File file = new File(DatasetSelectorImpl.class.getResource( datasetFile ).getFile()); extractDatasetFromFile(file); } COM: <s> read the file in the resources containing the dataset content </s>
funcom_train/8088743
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String valuesToString() { StringBuffer text = new StringBuffer(); DecimalFormat decimalFormat = new DecimalFormat("0.000000"); text.append(decimalFormat.format(getConfirmation())); text.append(" "); text.append(decimalFormat.format(getObservedFrequency())); return text.toString(); } COM: <s> return a string giving the confirmation and optimistic estimate of </s>
funcom_train/25062748
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void showData(Panel panel) { _errorLabel.setVisible(false); _loadingLabel.setVisible(false); _noDataLabel.setVisible(false); _seqWithSamplePanel.setVisible(false); _seqWithoutSamplePanel.setVisible(false); panel.setVisible(true); } COM: <s> data state shows the specified panel </s>
funcom_train/4853191
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getBackCommand5() { if (backCommand5 == null) {//GEN-END:|112-getter|0|112-preInit // write pre-init user code here backCommand5 = new Command("Voltar", Command.BACK, 0);//GEN-LINE:|112-getter|1|112-postInit // write post-init user code here }//GEN-BEGIN:|112-getter|2| return backCommand5; } COM: <s> returns an initiliazed instance of back command5 component </s>
funcom_train/50090696
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private double calculateSquaredDistanceBetweenTwoAtoms(org.openscience.cdk.interfaces.IAtom atom1, org.openscience.cdk.interfaces.IAtom atom2) { double distance = 0; double tmp = 0; Point3d firstPoint = atom1.getPoint3d(); Point3d secondPoint = atom2.getPoint3d(); tmp = firstPoint.distance(secondPoint);distance = tmp * tmp; return distance; } COM: <s> evaluate the square of the euclidean distance between two atoms </s>
funcom_train/8615618
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addMessage(ObjectError error) { if (this.session != null) { if (this.session.getAttribute("globalmessages") == null) { this.session.setAttribute("globalmessages", new Messages()); } ((Messages) this.session.getAttribute("globalmessages")).addError(error); } } COM: <s> add a message to the request context </s>
funcom_train/3883220
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean validateDifficultyType_Min(BigInteger difficultyType, DiagnosticChain diagnostics, Map context) { boolean result = difficultyType.compareTo(DIFFICULTY_TYPE__MIN__VALUE) >= 0; if (!result && diagnostics != null) reportMinViolation(ImsMdRootv1p1Package.Literals.DIFFICULTY_TYPE, difficultyType, DIFFICULTY_TYPE__MIN__VALUE, true, diagnostics, context); return result; } COM: <s> validates the min constraint of em difficulty type em </s>
funcom_train/34356633
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void assertTermKnown(URI termURI) { // TODO: caching of terms we already know // can ever terms cease to be known (if no, caching is easy; if yes, cache invalidation would become an issue) if (automaticTermRetrieval && !isTermKnown(termURI)) { Model additionalTerm = retrieveAdditionalTerm(termURI); if (additionalTerm != null) { ontModel.add(additionalTerm, true); } } } COM: <s> ensures that we know the definition of the term i </s>
funcom_train/9101191
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateThesauriTerms(long token, String[] narrowerTerms, String[] likeTerms, String[] broaderTerms) { if (resultsets.containsKey(new Long(token))) { ((SearchResultSet) resultsets.get(new Long(token))).updateThesauriTerms(narrowerTerms, likeTerms, broaderTerms); } } COM: <s> update the resultset with this token with the thesaurus lookups </s>
funcom_train/46792362
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public COSName getFirstFilter() { COSObject nameOrArray; nameOrArray = getFilters(); if (nameOrArray.isNull()) { return null; } if (nameOrArray instanceof COSName) { return (COSName) nameOrArray; } if (nameOrArray instanceof COSArray) { return ((COSArray) nameOrArray).get(0).asName(); } return null; } COM: <s> the filter or the first element of the collection of filters for the </s>
funcom_train/44708547
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setPrimaryEmail(EmailAddress emailAddress) { m_primaryEmail = emailAddress; if (emailAddress == null) { set("primaryEmail", null); } else { set("primaryEmail", emailAddress.getEmailAddress()); addEmailAddress(emailAddress); } } COM: <s> marks the specified email address as this partys </s>
funcom_train/8323720
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getSchemaName() { String schema = null; RolapStar.Table table = getStar().getFactTable(); MondrianDef.Relation relation = table.getRelation(); if (relation instanceof MondrianDef.Table) { MondrianDef.Table mtable = (MondrianDef.Table) relation; schema = mtable.schema; } return schema; } COM: <s> get the database schema name associated with this groups rolap stars </s>
funcom_train/15696968
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addNode (DistributionNode node) throws DistributionConfigurationException { if ((nodes.containsKey(node.getId())) || (components.containsKey(node.getId()))) { throw new DistributionConfigurationException("A node with the same name (" + node.getId() + ") already exists in this process."); } nodes.put(node.getId(), node); } COM: <s> adds a node to this list </s>
funcom_train/23271285
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setLabelFormat(String format) { PiePlot plot = (PiePlot) this.chart.getPlot(); String old = this.labelFormat; this.labelFormat = format; plot.setLabelGenerator(new StandardPieSectionLabelGenerator(format)); firePropertyChange("labelFormat", old, format); } COM: <s> returns the format string for the section labels and fires a </s>
funcom_train/31129619
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void close() throws IOException { if (buff != null) { // !! Alternate implementation: If this is a new file, perhaps only // write the file table information AFTER close() called so // incomplete/partial files don't exist. flush(); File.writeTable(File.listFiles()); // Updates file size for this file. buff = null; } } COM: <s> write the buffer to flash memory and update the file parameters in flash </s>
funcom_train/3774260
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void handle(Callback[] callbacks) throws UnsupportedCallbackException { for (int i = 0; i < callbacks.length; i++) if (callbacks[i] instanceof NameCallback) ( (NameCallback) callbacks[i]).setName(user); else if (callbacks[i] instanceof PasswordCallback) ( (PasswordCallback) callbacks[i]).setPassword(password); else throw new UnsupportedCallbackException(callbacks[i]); } COM: <s> handles the jaas callbacks </s>
funcom_train/37807270
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected long getPagePoolSize(final String configKey) { long pagePoolSize = Core.frostSettings.getLongValue(configKey); if( pagePoolSize <= 0 ) { pagePoolSize = 1024; } pagePoolSize *= 1024L; // provided pagePoolSize is in kb, we want bytes return pagePoolSize; } COM: <s> retrieves the configured page pool size for the provided key in ki b </s>
funcom_train/6267802
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void attachHeader(SIPHeader h) { if (h == null) throw new IllegalArgumentException("null header!"); try { if (h instanceof SIPHeaderList) { SIPHeaderList hl = (SIPHeaderList) h; if (hl.isEmpty()) { return; } } attachHeader(h, false, false); } catch (SIPDuplicateHeaderException ex) { // InternalErrorHandler.handleException(ex); } } COM: <s> attach a header and die if you get a duplicate header exception </s>
funcom_train/39024326
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testCreateObject() throws Exception { System.out.println("createObject"); Class c = null; Object[] params = null; Object expResult = null; Object result = CloneHelper.createObject(c, params); //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 create object method of class clone helper </s>