__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/44385421
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean isTestClass(String className) { boolean result = false; try { Class testClass = Class.forName(className); result = (testClass != null) && isTestClass(testClass); } catch (ClassNotFoundException expected) { result = false; } catch (NoClassDefFoundError notFatal) { result = false; } return result; } COM: <s> check if a class name provides a junit test suite </s>
funcom_train/33851836
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setPriorityThreshold(int threshold) { if (threshold != getFilterSettings().getMinPriorityAsInt()) { getFilterSettings().setMinPriority(ProjectFilterSettings.getIntPriorityAsString(threshold)); if (currentAnalysisRun != null) synchAnalysisRun(currentAnalysisRun); } } COM: <s> set the priority threshold for display of bugs in the bug tree </s>
funcom_train/37609696
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void restFlagPref() { switch (ccc.getFlagPref()) { case 'S': fpref.select(1); break; case 'N': fpref.select(2); break; case 'R': fpref.select(3); break; case 'L': fpref.select(4); break; default: fpref.select(0); } } // end restFlagPref() COM: <s> restores the flagged turn preference </s>
funcom_train/3711698
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void startDragging () { dragging = true; box_origin = WCSCursor.getInstance().getWCSPosition(); convertUnits (box_origin); box_corner = new Point2D.Double (box_origin.getX(),box_origin.getY()); computeDeviceBox(); paintRubberBandBox(); showing = false; } COM: <s> starts a dragging operation </s>
funcom_train/3174352
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Point get(String key, Point def) { // Get box dimension int x = get(key+".x", Integer.MAX_VALUE); int y = get(key+".y", Integer.MAX_VALUE); // Missing ? if ( x==Integer.MAX_VALUE || y==Integer.MAX_VALUE ) return def; // Done return new Point(x,y); } COM: <s> returns point parameter by key </s>
funcom_train/22293767
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Date getEndTime(List processSubtree) { long maxTime = Long.MIN_VALUE; for (Iterator i=processSubtree.iterator(); i.hasNext(); ) { Process proc = (Process)i.next(); if (proc.startTime.getTime() + proc.duration > maxTime) { maxTime = proc.startTime.getTime() + proc.duration; } maxTime = Math.max(maxTime, getEndTime(proc.childList).getTime()); } return new Date(maxTime); } COM: <s> returns the end time of the process subtree </s>
funcom_train/45251853
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void attachControls(Control leftControl, Control rightControl) { FormData leftData = new FormData(); leftData.left = new FormAttachment(0, 0); FormData rightData = new FormData(); rightData.left = new FormAttachment( leftControl, convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING)); leftControl.setLayoutData(leftData); rightControl.setLayoutData(rightData); } COM: <s> set the two supplied controls to be beside each other </s>
funcom_train/12282381
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Certificate getCertificate(String alias) { try { checkKeyStore(); if (isKeyStoreExists() && !isKeyStoreEmpty()) { return keyStore.getCertificate(alias); } } catch (Exception e) { log.error("Could not get certificate with alias " + alias + ".", e); } return null; } COM: <s> get a certificate given its alias </s>
funcom_train/2584809
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetSeriesURLGenerator() { CategoryPlot plot = (CategoryPlot) this.chart.getPlot(); CategoryItemRenderer renderer = plot.getRenderer(); StandardCategoryURLGenerator url1 = new StandardCategoryURLGenerator(); renderer.setSeriesItemURLGenerator(0, url1); CategoryURLGenerator url2 = renderer.getItemURLGenerator(0, 0); assertTrue(url2 == url1); } COM: <s> check that setting a url generator for a series does override the </s>
funcom_train/25191905
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void publishEvent (Event event) { if (source == null) { // the property will be set by the RootObject at initialization source = System.getProperty ("giti.isl.processID", "Unknown"); } event.setSource (source); event.setSequenceNumber (++counter); if (logger.isLoggable (Level.INFO)) { logger.info ("Fired event: "+event); } publisher.publish (event); } COM: <s> send an event to all listeners </s>
funcom_train/41605032
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void initBusyPanel() { blurColor = JModalConfiguration.getBlurColor(getContentPane().getBackground()); busyPanel = new JBusyPanel(blurColor, JModalConfiguration.getBlurStyle()); busyPanel.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent mouseEvent) { checkActivationAllowed(); } }); } COM: <s> p initialize blurring glass pane </s>
funcom_train/3524631
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testIsMatchTrue() throws ModelException { address.setCity("Juneau"); address.setState("AK"); address.setZip("99801"); // position list on Juneau zipList.next(); assertTrue("Expected a match",model.isCurrentMatch()); } COM: <s> test for method is match </s>
funcom_train/19454222
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public AbstractjCTMTable getSelectedTable() { Component c = getSelectedComponent(); if(c instanceof JTabbedPane) { c = ((JTabbedPane) c).getSelectedComponent(); } if(c instanceof JSplitPane) { c = ((JSplitPane) c).getLeftComponent(); } c = ((JCTMScrollPane) c).getContainer(); if(c instanceof AbstractjCTMTable) { return (AbstractjCTMTable) c; } else { return null; } } COM: <s> gets the selected table attribute of the tourney container object </s>
funcom_train/20082310
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void doShutdownCluster() { // Consider different messages when there are active jobs String message = "Are you sure to shutdown the cluster ?"; int response = JOptionPane .showConfirmDialog(this, message, "Shutdown Cluster", JOptionPane.YES_NO_OPTION); // User chose 'No' if (response == JOptionPane.NO_OPTION) return; JButton shutdownButton = getUIElement("general.shutdown"); shutdownButton.setEnabled(false); showBusyIcon(); // Shutdown onShutdown(); } COM: <s> invokes the cluster shutdown operation </s>
funcom_train/3832495
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private double calcDistance(double lon1, double lat1, double lon2, double lat2) { double r = 6368.137; double rad = Math.PI/180d; double cose = 0; cose = Math.sin(rad*lon1) * Math.sin(rad*lon2) + Math.cos(rad*lon1) * Math.cos(rad*lon2) * Math.cos(rad*(lat1-lat2)) ; double dist= r * Math.acos(cose); return dist*1000; } COM: <s> calculates the distance between two points in epsg 4326 coodinates </s>
funcom_train/936449
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getActivePluginCount() { int activePlugins = 0; List < PluginData > plugins = getPlugins(); Iterator < PluginData > iterator = plugins.iterator(); while (iterator.hasNext()) { PluginData pluginData = iterator.next(); if (pluginData.getState() == PluginState.STARTED) { activePlugins++; } } return activePlugins; } COM: <s> returns the number of started plug ins </s>
funcom_train/8844504
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setFilterLocation(FilterLocationEnum location) { if ( location == null ) {return;} if ( location == FilterLocationEnum.FILE ) { _gui.getSearchView().rdoSetSelectedFilterFromFile(true); return; } _gui.getSearchView().rdoSetSelectedFilterFromText(true); } COM: <s> sets the filter location </s>
funcom_train/25783153
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void saveSettings() { StringBuffer sb = new StringBuffer(); sb.append(fontToString(A_LISTS)); sb.append(fontToString(A_CONTEXTMENU)); sb.append(fontToString(A_NOTESVIEWER)); MyNotes.properties.put(KEY, sb.toString(), Property.PT_STRING); } COM: <s> saves fonts settings to properties storage </s>
funcom_train/12806201
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void calculateHeights() { maxHeight = 0; for (int k = 0; k < cells.length; ++k) { PdfPCell cell = cells[k]; float height = 0; if (cell == null) { continue; } else { height = cell.getMaxHeight(); if ((height > maxHeight) && (cell.getRowspan() == 1)) maxHeight = height; } } calculated = true; } COM: <s> calculates the heights of each cell in the row </s>
funcom_train/44715186
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeAllGroupAssignees() { Collection groups = getInternalAssignedGroups(); Iterator i = groups.iterator(); Group g; while (i.hasNext()) { g = (Group) i.next(); g.removeFromAssociation(getAssignedGroupAssociation()); } groups.clear(); } COM: <s> removes all groups assigned to this task </s>
funcom_train/8091981
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Capabilities getMultiInstanceCapabilities() { Capabilities result = super.getCapabilities(); result.disableAll(); // attributes result.enable(Capability.NUMERIC_ATTRIBUTES); result.enable(Capability.DATE_ATTRIBUTES); result.enable(Capability.MISSING_VALUES); // class result.disableAllClasses(); result.enable(Capability.NO_CLASS); return result; } COM: <s> returns the capabilities of this multi instance classifier for the </s>
funcom_train/9979893
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void encodeAsBMPString(String value, TypeInformation typeInformation) throws IOException { if (!typeInformation.hasConstraint()) { encodeUnconstrainedRestrictedCharacterString(value, typeInformation, BMPStringInfo.getInstance()); } else { encodeRestrictedCharacterString(value, typeInformation, BMPStringInfo.getInstance()); } } COM: <s> encoding of the restricted character string type bmpstring </s>
funcom_train/3902817
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean validateCompletionThresholdType_Min(BigDecimal completionThresholdType, DiagnosticChain diagnostics, Map context) { boolean result = completionThresholdType.compareTo(COMPLETION_THRESHOLD_TYPE__MIN__VALUE) >= 0; if (!result && diagnostics != null) reportMinViolation(AdlcpV1p3Package.Literals.COMPLETION_THRESHOLD_TYPE, completionThresholdType, COMPLETION_THRESHOLD_TYPE__MIN__VALUE, true, diagnostics, context); return result; } COM: <s> validates the min constraint of em completion threshold type em </s>
funcom_train/8362108
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void updateGUI() { JTabbedPane tabbedPane = ide.getTabbedPane(); int index = ide.findTabIndex(this.configPanel); // if tab containing this document is found if (index >= 0) { tabbedPane.setTitleAt(index, this.name); tabbedPane.setForegroundAt(index, this.isChanged ? Color.blue : Color.black); } } COM: <s> updates gui based on status of this document </s>
funcom_train/17588601
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void postIterationCleanup(String size) { for (String file : config.getOutputs(size)) { if (file.equals("$stdout") || file.equals("$stderr") || file.equals("stderr.log") || file.equals("stdout.log")) { } else { if (!config.isKept(size, file)) deleteFile(new File(scratch, file)); } } } COM: <s> perform post iteration cleanup </s>
funcom_train/37015758
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String registerTool(ToolDTO newTool) { try { String uri = toolService.createTool(newTool); ToolDTO dto = getTool(uri); toolCache.put(uri, dto); } catch (ArchiveException e) { e.printStackTrace(); } catch (RemoteException e) { System.out.println("registerTool(): " + e); } return null; } COM: <s> registers a tool in the toolservice </s>
funcom_train/11024218
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testExecuteWithIndexedProperty() { TestBean testBean = new TestBean(); new BeanPropertyValueChangeClosure("intIndexed[0]", expectedIntegerValue).execute(testBean); assertTrue(expectedIntegerValue.intValue() == testBean.getIntIndexed(0)); } COM: <s> test execute with indexed property </s>
funcom_train/31126447
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void applyMove(Move move) { if(debug)System.out.println("particles applyMove "+move.getMoveType()); maxWeight = 0f; for (int i = 0; i < numParticles; i++) { particles[i].applyMove(move, distanceNoiseFactor, angleNoiseFactor); } if(debug)System.out.println("particles applyMove Exit"); } COM: <s> apply a move to each particle </s>
funcom_train/9542988
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addOperator(JViToPlotable plotable) { Source source = null; if (plotable instanceof ExampleSet) { source = new GivenExampleSet((ExampleSet) plotable); } if (plotable instanceof JMySVMModel) { source = new GivenJMySVMModel((JMySVMModel) plotable); } if (source != null) { JViTo.getApplication().navigator.addSource(source); } } COM: <s> adds an operator for the given code jgiven plotable code </s>
funcom_train/17850182
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void logChannelMap() { for (Channel browserChannel : browserChannelMap.keySet()) { logger.info(String.format(LOG_CHANNEL_MAP, browserChannel.toString(), browserChannel.hashCode(), browserChannelMap.get(browserChannel).toString())); } } COM: <s> log the channel map for debugging purposes </s>
funcom_train/43293783
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean flush() { //only flush if there are enough chars in the buffer if (m_StringBuffer.length() < BUFF_SIZE) { return true; } try { //write buffer m_FileOutputStream.write(m_StringBuffer.toString().getBytes()); //flush output stream m_FileOutputStream.flush(); //clear stringbuffer m_StringBuffer.delete(0, m_StringBuffer.length()); //successful return true; } catch (Exception e) { OutputHandler.writeDebug(e.getMessage()); //not successful return false; } } COM: <s> p flush the text </s>
funcom_train/20044313
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void _getContent() { requiredMethod("setContent()"); String content = oObj.getContent(); log.println("Returned content is \"" + content + "\""); boolean bResult = content.equals(sContent); tRes.tested("getContent()", bResult); } COM: <s> test calls the method and compares returned value to value that was set </s>
funcom_train/3528117
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getCreationDate() { NodeProperty creationDate = getProperty(CREATION_DATE); if (creationDate == null) { return null; } else { if (creationDate.getValue() instanceof Date) { return creationDateFormat.format ((Date) creationDate.getValue()); } return creationDate.getValue().toString(); } } COM: <s> creation date accessor </s>
funcom_train/13750911
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getTLSIdentifier(X509Certificate x509Cert) { String principal = x509Cert.getSubjectX500Principal().getName(); // get CN = ?? e.g. CN = www.postfinance.ch // 1. remove all spaces principal = principal.replaceAll(" ", ""); // 2. get first elements content int startIndex = principal.indexOf("=") + "=".length(); int endIndex = principal.indexOf(",", startIndex); return principal.substring(startIndex, endIndex); } COM: <s> extracts the tls identifier out of the x509 cert by parsing </s>
funcom_train/3365774
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void installDefaults() { super.installDefaults(); String prefix = getPropertyPrefix(); Character echoChar = (Character)UIManager.getDefaults().get(prefix + ".echoChar"); if(echoChar != null) { LookAndFeel.installProperty(getComponent(), "echoChar", echoChar); } } COM: <s> installs the necessary properties on the jpassword field </s>
funcom_train/41812516
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public KElement (Attributes attrs) { this.name = attrs.getValue("NAME"); if (this.name == null) this.name = attrs.getValue("name"); this.rch_class = attrs.getValue("CLASS"); if (this.rch_class == null) rch_class = attrs.getValue("class"); this.core = new Vector(); this.comment = new Vector(); this.original = new Vector(); } COM: <s> constructs a kleio element from an attribute list read from </s>
funcom_train/18655678
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Reply demonstratorJoinLab(String sessionKey, String lab) { Reply reply = null; //Call remote server method to add to lab try { reply = server.demonstratorAddToLab(sessionKey,lab, incomingCommunicator); } catch(RemoteException e) { reply = null; //So that GUIManager knows its an communication issue } return reply; } COM: <s> calls remote method on server to allow demonstrator to start managing the </s>
funcom_train/49330895
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void merge(CenteringRing adjacent, RocketComponent relativeTo) { double v = adjacent.asPositionValue(RocketComponent.Position.TOP, relativeTo); if (positionFromTop < v) { thickness = (v + adjacent.getLength()) - positionFromTop; } else { double tmp = positionFromTop + thickness; positionFromTop = v; thickness = tmp - v; } } COM: <s> merge an adjacent ring </s>
funcom_train/8011739
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getSiteMapActionURL(String logicalName, String actionName, String additionalParms, boolean javaScriptOK) { SiteMap m = SiteMap.getSiteMap(getApplicationName()); if (m == null) return null; else { String name = m.getActionEntry(logicalName, actionName); if (name == null) return null; else return m.getSiteMapURL(getCurrentRequest(), name, additionalParms, javaScriptOK); } } COM: <s> returns the url for a specified logical site map entry action </s>
funcom_train/46455555
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setRowNumberVisible(boolean _rowNumberVisible) { if(dataTableModel.isRowNumberVisible()!=_rowNumberVisible) { if(_rowNumberVisible&&(rowNumberRenderer==null)) { rowNumberRenderer = new RowNumberRenderer(this); } dataTableModel.setRowNumberVisible(_rowNumberVisible); } } COM: <s> sets the display row number flag </s>
funcom_train/41266404
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void save(Unimed entity) { EntityManagerHelper.log("saving Unimed instance", Level.INFO, null); try { getEntityManager().persist(entity); EntityManagerHelper.log("save successful", Level.INFO, null); } catch (RuntimeException re) { EntityManagerHelper.log("save failed", Level.SEVERE, re); throw re; } } COM: <s> perform an initial save of a previously unsaved unimed entity </s>
funcom_train/12191781
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean isFileBased(URI uri) { boolean isFileBased = false; // get the protocol in use String protocol = uri.getScheme().toLowerCase(); // compare this with "file" if (FILE_PROTOCOL.equals(protocol)) { isFileBased = true; } return isFileBased; } COM: <s> returns true if the given url uses the </s>
funcom_train/8633357
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int get(char[] key) { int length = this.keyTable.length, index = CharOperation.hashCode(key) % length; while (this.keyTable[index] != null) { if (CharOperation.equals(this.keyTable[index], key)) return this.valueTable[index]; if (++index == length) { // faster than modulo index = 0; } } return -1; } COM: <s> gets the object associated with the specified key in the </s>
funcom_train/40499904
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ModuleManager create(JavaManager javaManager, Settings settings) { if (moduleManagerInstances.get(javaManager) == null) { moduleManagerInstances.put(javaManager, new ModuleManagerImpl( problemsHandlerProvider.get(), messengerProvider.get(), javaManager, codeRunnerFactoryProvider .get(), false, settings)); } return moduleManagerInstances.get(javaManager); } COM: <s> create a module manager with the given java manager and settings </s>
funcom_train/98218
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private char peekChar() { peeked = true; char c = '\00'; try { int cInt; // REMIND: this is assuming a flat ascii source file. // will need to beef it up at some future point to // understand whether the stream is ascii or something else. cInt = source.read(); peekEOF = (cInt == -1); if (!peekEOF) c = (char)cInt; } catch (IOException ie) { throw ijException.iOException(ie); } peekChar = c; return c; } COM: <s> return the next character in the source stream without </s>
funcom_train/7494325
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void deletePdfFile( int hash){ db.delete( PDF_FILE_TABLE, HASH_ID + "=" + hash ,null ); db.delete( PAGE_TABLE, HASH_ID + "=" + hash ,null ); db.delete( SENTENCE_TABLE, HASH_ID + "=" + hash ,null ); } COM: <s> deletes that page </s>
funcom_train/27844728
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testUnregisterBinding() throws Exception { Binding binding = new MockBinding(); _activemodelwrapper.registerBinding(binding); assertEquals(1, _activemodelwrapper.getBindings().size()); _activemodelwrapper.unregisterBinding(binding); assertEquals(0, _activemodelwrapper.getBindings().size()); } COM: <s> method test unregister binding is testing unregister binding </s>
funcom_train/31655027
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean shouldRun(Calendar c, ScheduledJob schedule){ List months = ScheduleUtils.parseInterval(schedule.getMonthOfYear( )); if(months.get(0).equals(Schedule.ALL)) return true; int today = c.get(Calendar.MONTH); //should it run today? if(months.contains(new Integer(today))) return true; return false; } COM: <s> returns true if the month according to the calendar is indicated </s>
funcom_train/268041
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setAutoCommit(boolean autoCommit) throws SQLException { if (closed) { throw new SQLException(invalidHandleStr); } else { try { mc.setAutoCommit(autoCommit); } catch (SQLException sqlException) { mpc.callListener(MysqlPooledConnection.CONNECTION_ERROR_EVENT, sqlException); throw sqlException; } } } COM: <s> passes call to method on physical connection instance </s>
funcom_train/45519205
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void appendBooleanToXml(Element element, Field field) throws Exception { String fieldName = field.getName(); String fieldValue = String.valueOf(field.getBoolean(this)); String fieldDescription = getFieldDescription(fieldName); String fieldType = "boolean"; createXmlElement(element, fieldType, fieldName, fieldValue, fieldDescription); } COM: <s> append boolean to xml </s>
funcom_train/48495302
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Number getX( int seriesIndex, int binIndex ) { PhetHistogramSeries series = getSeries( seriesIndex ); double startBoundary = series.getStartBoundary( binIndex ); double endBoundary = series.getEndBoundary( binIndex ); final double x = ( startBoundary + endBoundary ) / 2.; return new Double( x ); } COM: <s> returns the x value for a bin </s>
funcom_train/49789291
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void featureInstance(EClass cls, EStructuralFeature ft) { if (!containsKey(cls)) { put(cls, new HashMap<EStructuralFeature, Integer>()); } if (!get(cls).containsKey(ft)) { get(cls).put(ft, 0); } get(cls).put(ft, get(cls).get(ft) + 1); } COM: <s> a feature instance has been found </s>
funcom_train/10844282
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void deactivate(final ComponentContext componentContext) { if ( this.eventHandlerRegistration != null ) { this.eventHandlerRegistration.unregister(); this.eventHandlerRegistration = null; } if ( this.ioProvider != null ) { this.ioProvider.destroy(); this.ioProvider = null; } javaServletContext = null; servletConfig = null; } COM: <s> deactivate this engine </s>
funcom_train/20748104
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setAsciiStream(int index, java.io.InputStream x, int length) { try { prep.setAsciiStream(index, x, length); } catch (SQLException e) { close(false); throw new DatabaseException( e, datasourceName); } } COM: <s> sets the designated parameter to the given input stream which will have </s>
funcom_train/5379486
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void saveEditorValue(CellEditor cellEditor, Item treeItem) { if (cellModifier != null) { String property = null; if (columnProperties != null && columnNumber < columnProperties.length) property = columnProperties[columnNumber]; cellModifier.modify(treeItem, property, cellEditor.getValue()); } } COM: <s> saves the value of the currently active cell editor </s>
funcom_train/18838056
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void processExited() { try { m_streamFlusher.exit(); m_streamFlusher = null; Main.beep(); if( m_process.getException() != null) { m_statusLabel.setText("Problem executing process."); Main.handleException( m_process.getException()); } else { m_statusLabel.setText("Process exited with status " + m_process.getExitStatus()); } m_abortButton.setEnabled(false); m_process = null; } catch( Throwable ex) { Main.handleException( ex); } } COM: <s> called in the event thread after the profiled process exits </s>
funcom_train/27844180
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testClearRevertRule() throws Exception { ConvertRule rule = new ConvertRule(TEST, TEST_LABEL); _ruleConverter.addRevertRule(rule); assertNotNull(_ruleConverter.getRevertRule(TEST)); _ruleConverter.clearRevertRule(TEST); assertNull(_ruleConverter.getRevertRule(TEST)); } COM: <s> method test clear revert rule is testing clear revert rule </s>
funcom_train/19209612
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Connection getConnection() { try { if( ( connection != null ) && connection.isClosed() ) { connection = null; } } catch( Exception ex ) { connection = null; System.err.println( "UploadManager[]:" + ex ); } if( connection == null ) { try { connection = DriverManager.getConnection( ftpdbUrl, ftpdbUser, ftpdbPasswd ); } catch( Exception ex ) { } } return connection; } COM: <s> gets the connection attribute of the upload manager object </s>
funcom_train/30068331
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String retrieveWsKey(User gridsphereUser){ String gsoid = gridsphereUser.getID(); //check whether lsgwuser set already has it String query = "from "+LSGWUser.class.getName() + " as user where user.gsoid='"+gsoid+"'"; try { List res = pm.restoreList(query); if (res.size() == 0){ return null; } LSGWUser lsgwuser = (LSGWUser) res.get(0); String key = lsgwuser.getWskey(); return key; } catch (Exception e){ e.printStackTrace(); return null; } } COM: <s> retrieve the lsgw web service security token for the gridsphere user </s>
funcom_train/42262604
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int fourthRobot(int firstRobot, int secondRobot, int thirdRobot) { int fourthRobot = -1; for (int i=this.firstRobot; i<this.lastRobot; ++i) { if (i!= firstRobot && i != secondRobot && i != thirdRobot) { fourthRobot = i; break; } } return fourthRobot; } COM: <s> fourth robot different from first second third and goal keeper </s>
funcom_train/22636384
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void init(int x, int y) { for (int i = 0; i < sparks.length; ++i) { sparks[i].x = x; sparks[i].y = y; sparks[i].vx = (float) (Math.random() * 60) - 30; sparks[i].vy = (float) (Math.random() * 60) - 30; } } COM: <s> initialized a bomb at a given position </s>
funcom_train/33325300
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int indexOf(char ch, int startIndex) { startIndex = (startIndex < 0 ? 0 : startIndex); if (startIndex >= size) { return -1; } char[] thisBuf = buffer; for (int i = startIndex; i < thisBuf.length; i++) { if (thisBuf[i] == ch) { return i; } } return -1; } COM: <s> searches the string builder to find the first reference to the specified char </s>
funcom_train/20769400
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private E getBackEvent(int k){ if(k>size) return null; int outInd = nextIn-k; if(outInd>=0) return array[outInd]; // event is before this location in array outInd=length+outInd; // array is after this location in array, wraps around to here return array[outInd]; } COM: <s> returns an event added code k code ago </s>
funcom_train/12780657
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected int doLocalRead(WalkContext context, String name) { if (!useLocalValuesForLexicalVars()) { CAstEntity entity = context.top(); Set<String> exposed = entity2ExposedNames.get(entity); if (exposed != null && exposed.contains(name)) { return doLexReadHelper(context, name); } } return context.currentScope().lookup(name).valueNumber(); } COM: <s> get the value number for a name defined locally i </s>
funcom_train/9504773
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JTabbedPane getJTabbedPane() { if (jTabbedPane == null) { jTabbedPane = new JTabbedPane(); jTabbedPane.setBounds(new Rectangle(15, 16, 415, 144)); jTabbedPane.addTab("Summary", null, getJPanel(), null); jTabbedPane.addTab("Network Topology", null, getJPanel1(), null); } return jTabbedPane; } COM: <s> this method initializes j tabbed pane </s>
funcom_train/5662620
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); newChildDescriptors.add (createChildParameter (DirectoryPackage.eINSTANCE.getOrganization_Address(), DirectoryFactory.eINSTANCE.createUSAddress())); newChildDescriptors.add (createChildParameter (DirectoryPackage.eINSTANCE.getOrganization_Address(), DirectoryFactory.eINSTANCE.createCanadianAddress())); } COM: <s> this adds to the collection of </s>
funcom_train/21896001
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void bindPojo(final Object iPojo) { HtmlViewContentForm formForBinding; if (iPojo == null) { formForBinding = null; } else { final SchemaClass classInfo = Roma.schema().getSchemaClass(iPojo.getClass().getSimpleName()); formForBinding = new HtmlViewConfigurableEntityForm(null, new SchemaObject(classInfo), null, this, null, null, null); formForBinding.setContent(formForBinding); bindForm(formForBinding); } } COM: <s> bind the pojo in the screen area </s>
funcom_train/16176796
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addLegend(int dataset, String legend) { if (legend == null || legend.equals("")) return; _legendStrings.addElement(legend); _legendDatasets.addElement(new Integer(dataset)); int color = dataset % _colors.length; dsColorMap.put(dataset, _colors[color]); dsMarkMap.put(dataset, dataset % _MAX_MARKS); } COM: <s> add a legend displayed at the upper right for the specified </s>
funcom_train/39179698
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Set getAnnotationSchemas(){ Set result = new HashSet(); ResourceData rData = (ResourceData)Gate.getCreoleRegister(). get("gate.creole.AnnotationSchema"); if(rData != null){ result.addAll(rData.getInstantiations()); } return result; }//protected Set getAnnotationSchemas() COM: <s> gets all the </s>
funcom_train/51060842
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean matches(CacheableIdentity other) { int len = pairSize(); int olen = other.pairSize(); for (int i = 0; i < len; ++i) { for (int j = 0; j < olen; ++j) { if( getPairs(i).equals( other.getPairs(j) ) ) return true; } } return false; } COM: <s> tests for equivalence among code cacheable identity code s </s>
funcom_train/37422303
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Project findProjectByGlobalId(long pId, String pUrl) throws ClassNotFoundException, SQLException { Vector tVect = findProjectByQuery("select * from project where url = '" + Utility.Replace(pUrl) + "' and idglobalprj="+pId); if (tVect.size() > 0) return (Project) tVect.firstElement(); else return null; } COM: <s> finds the project in the database using the remote id and url </s>
funcom_train/39273696
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isCurrentDay() { Calendar cal = GregorianCalendar.getInstance(); boolean currentYear = mYear == cal.get(Calendar.YEAR); boolean currentMonth = mMonth == cal.get(Calendar.MONTH); boolean currentDay = mDay == cal.get(Calendar.DAY_OF_MONTH); return !isPlaceholder() && currentYear && currentMonth && currentDay; } COM: <s> determine whether this form bean represents the current day </s>
funcom_train/9372795
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getCallState() { try { return getITelephony().getCallState(); } catch (RemoteException ex) { // the phone process is restarting. return CALL_STATE_IDLE; } catch (NullPointerException ex) { // the phone process is restarting. return CALL_STATE_IDLE; } } COM: <s> returns a constant indicating the call state cellular on the device </s>
funcom_train/37831707
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int calculateResistance() { // Using area would make the resistance grow very fast for large corpses double mean = Math.sqrt(getWidth() * getHeight()); // Get a [0, 1[ value for a corpse size index double normalized = 1 - 1 / Math.max(1.0, mean); // Scale between max and min return Math.max(MIN_RESISTANCE, (int) (MAX_RESISTANCE * normalized)); } COM: <s> calculate walking resistance for the corpse </s>
funcom_train/6206336
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void loadJavaDatatype() { if (datatypeFQN != null) { javaDatatype = resolveType(getGaijinFormField().getGaijinProject(), datatypeFQN); if (javaDatatype == null) { getPreGenerationStatus().add(createUnresolvedTypeStatus(datatypeFQN)); } } else { javaDatatype = null; } } COM: <s> load the itype of the fqn specified as the datatype </s>
funcom_train/46062304
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void deleteRefs(CourseNode courseNode) { ReferenceManager refM = ReferenceManager.getInstance(); List courseRefs = refM.getReferences(course); for (Iterator iter = courseRefs.iterator(); iter.hasNext();) { ReferenceImpl ref = (ReferenceImpl) iter.next(); if (!ref.getUserdata().equals(courseNode.getIdent())) continue; refM.delete(ref); break; } } COM: <s> delete references to resourceables of node with ident course node ident </s>
funcom_train/42651542
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: // public void testParseTemplate() { // System.out.println("parseTemplate"); // String template = ""; // EvaluationContext ctx = null; // UIBuilderServerImpl instance = null; // String expResult = ""; // String result = instance.parseTemplate(template, ctx); // 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 parse template method of class uibuilder server impl </s>
funcom_train/25649145
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testRemoveState() { System.out.println("removeState"); ApplicationModelImpl instance = new ApplicationModelImpl(); ExitPoint defaultExitPoint = instance.getExitPoint(); assertNotNull(defaultExitPoint); instance.removeState(defaultExitPoint); assertEquals(defaultExitPoint, instance.getExitPoint()); } COM: <s> tests that the default exit point cannot be removed </s>
funcom_train/15411533
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public PooledThread getBusyThread(String threadName) { synchronized (freeList) { Iterator<PooledThread> it = getBusyThreads(); while (it.hasNext()) { PooledThread pt = (PooledThread) it.next(); if (pt.getName().equals(threadName)) { return pt; } } return null; } } COM: <s> find a thread using its name from the busy list </s>
funcom_train/44289735
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void clear (int start, int end) { checkWidget (); if (start > end) return; if (!(0 <= start && start <= end && end < getItemCount())) { error(SWT.ERROR_INVALID_RANGE); } if (start == 0 && end == getItemCount() - 1) { clearAll(); } else { for (int i=start; i<=end; i++) { clear(i); } } } COM: <s> removes the items from the receiver which are between the given </s>
funcom_train/3086973
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setMenuBackgroundImageProperties(BackgroundImageProperties newValue) { BackgroundImageProperties oldValue = menuBackgroundImageProperties; if (oldValue != null) { oldValue.removePropertyChangeListener(menuPropertyChangeForwarder); } if (newValue != null) { newValue.addPropertyChangeListener(menuPropertyChangeForwarder); } menuBackgroundImageProperties = newValue; firePropertyChange("menuBackgroundImageProperties", oldValue, newValue); } COM: <s> sets the background image properties for this menus drop down box </s>
funcom_train/17049419
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getTrimmedNodeText() { if (_trimmedNodeText == null) { final StringBuilder result = new StringBuilder(); reset(); while (increment(null)) { if (result.length() > 0) result.append(' '); result.append(curText); } _trimmedNodeText = result.toString(); } return _trimmedNodeText; } COM: <s> collect all trimmed text under top node concatenating text across nodes </s>
funcom_train/12905838
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void setDisplayValue (Object value) throws ClassCastException { if(value!=null && !value.toString().equals("") && !StringUtils.isNumber(value.toString())) throw new ClassCastException( "Please put a number into the value attribute"); addAttribute("value",value); } COM: <s> add value attribute as right type to the attributes map </s>
funcom_train/39278422
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getSortValue(Object[] possValues) { return (String)JOptionPane.showInputDialog(mdPanel, "Please select a value to sort by:", "Select value", JOptionPane.PLAIN_MESSAGE, null, possValues, possValues[0]); } COM: <s> returns a value from a set of choices by which to sort data </s>
funcom_train/33607197
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void drawString(String str, C coord, int shiftX, int shiftY, int orientation, PrimitiveStyle<GraphicString> style) { Point2D wp = visometry.getWindowPointOf(coord); GraphicString gs = new GraphicString(str, wp.getX() + shiftX, wp.getY() + shiftY, orientation); style.draw(gr, gs, selected); } COM: <s> draws a string at specified point using specified style </s>
funcom_train/22029170
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addNotEqualsCache(Set set) { /* WLH 6 Nov 97 if (NotEqualsCache == null) { NotEqualsCache = new Set[CACHE_LENGTH]; for (int i=0; i<CACHE_LENGTH; i++) NotEqualsCache[i] = null; LastNotEquals = 0; } NotEqualsCache[LastNotEquals] = set; LastNotEquals = (LastNotEquals + 1) % CACHE_LENGTH; */ } COM: <s> add set to a cache of set s not equal to this </s>
funcom_train/41855900
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public TextField getTfKata() { if (tfKata == null) {//GEN-END:|15-getter|0|15-preInit // write pre-init user code here tfKata = new TextField("Masukkan Kata", "", 32, TextField.ANY);//GEN-LINE:|15-getter|1|15-postInit // write post-init user code here }//GEN-BEGIN:|15-getter|2| return tfKata; } COM: <s> returns an initiliazed instance of tf kata component </s>
funcom_train/39302211
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isApplicableTo(MrcpResourceType type) { if (isGeneric()) { return true; } switch (type) { case DTMFRECOG: return (RECOG_ONLY_HEADER_NAMES.contains(this)); case SPEECHRECOG: return (RECOG_ONLY_HEADER_NAMES.contains(this) || ENROLLMENT_HEADER_NAMES.contains(this)); case SPEECHSYNTH: case BASICSYNTH: return SYNTHESIZER_HEADER_NAMES.contains(this); case RECORDER: return RECORDER_HEADER_NAMES.contains(this); case SPEAKVERIFY: return VERIFICATION_HEADER_NAMES.contains(this); default: throw new AssertionError(type); } } COM: <s> tests whether this header name is applicable to a specified mrcp resource type </s>
funcom_train/41761446
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void save() { saveOption(Constants.PROP_MIN_USAGE_INTERVAL, minUsageInterval); saveOption(Constants.PROP_IGNORE_SYSTEM_DEVS, ignoreSystemDevelopers); saveOption(Constants.PROP_LOCATION_ATTRIBUTE_TYPE_ID, locationAttributeTypeId); saveOption(Constants.PROP_AUTO_DELETE_DAYS, autoDeleteDays); } COM: <s> saves the configuration to global properties </s>
funcom_train/25084383
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double getDouble(int index) throws JSONException { Object o = get(index); try { return o instanceof Number ? ((Number)o).doubleValue() : Double.valueOf((String)o).doubleValue(); } catch (Exception e) { throw new JSONException("JSONArray[" + index + "] "+ExceptionMessage.IS_NOT_A_NUMBER.toString()); } } COM: <s> get the double value associated with an index </s>
funcom_train/8409439
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int isMatch(char[] buffer, int pos, int bufferStart, int bufferEnd) { int len = chars.length; if (pos + len > bufferEnd) { return 0; } for (int i = 0; i < chars.length; i++, pos++) { if (chars[i] != buffer[pos]) { return 0; } } return len; } COM: <s> returns whether or not the given text matches the stored string </s>
funcom_train/29374378
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void add(String name, int[] value) { props.put(name+".length", value.length); for(int i=1; i<value.length; i++){ int n = i-1; props.put(name+"."+n, value[n]); } } COM: <s> adds the int array property </s>
funcom_train/5889407
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void add(Object parent, Object[] newNodes){ ArrayList al = (ArrayList)parent; int indexFrom = al.size(); int indexTo = al.size()+newNodes.length-1; for(int i=0; i<newNodes.length;i++) al.add(newNodes[i]); fireEvent(TreeDataEvent.INTERVAL_ADDED,getPath(parent),indexFrom,indexTo); } COM: <s> append new nodes which parent is code parent code </s>
funcom_train/25417566
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void execute(OperationContext context) throws Exception { IProviderFactory factory = context.getProviderFactory(); IResponseGenerator generator = factory.makeResponseGenerator(context); if (generator == null) { String msg = "IProviderFactory.makeResponseGenerator: instantiation failed."; LOGGER.log(Level.SEVERE,msg); throw new OwsException(msg); } else { generator.generateResponse(context); } } COM: <s> executes a parsed operation request </s>
funcom_train/8311562
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object nextElement() { try { if (hasMoreElements()) { Object node = children.nextElement(); stack.addElement(children); children = navigator.getChildAxisIterator(node); return node; } throw new NoSuchElementException(); } catch (UnsupportedAxisException e) { throw new JaxenRuntimeException(e.getMessage()); } } COM: <s> returns the next descendant node </s>
funcom_train/46759528
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private ISTreeNode getPanelNode(long childPanelId, DisplayModel applicationDialog, ServiceCall call) throws Exception { ApplicationPanelTreeModel treeModel = service.getPanelTreeForChild(childPanelId, applicationDialog, call); return getPanelNode(treeModel, ContextReference.DIALOGBUILDERAPPLICATIONPANEL, call); } COM: <s> get a tree node for the application panel </s>
funcom_train/42464384
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isPasswordOk(String userName, String password) { this.password = password; String login = loadText(BASE, FILE_LOGIN); boolean ok = login.equals("ok"); if (ok) { setLogin(userName, password); } else { this.password = ""; } return ok; } COM: <s> checks the password for the user account </s>
funcom_train/18191336
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addMacro(String name, String command){ if(!macros.containsKey(name)) { // we have a new macro println("/"+name+" {"+command+"} def"); macros.put(name, command); } else { if(!macros.get(name).equals(command)){ //print it as it is different to the one specified before with the same name println("/"+name+" {"+command+"} def"); //replace the one in the map by this one. macros.put(name, command); } } } COM: <s> adds a macro to the eps file </s>
funcom_train/28171219
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testLineTo() { System.out.println("lineTo"); double x1 = 0.0; double y1 = 0.0; BezierPath instance = new BezierPath(); instance.lineTo(x1, y1); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } COM: <s> test of line to method of class org </s>
funcom_train/39912960
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetEh13() { System.out.println("getEh13"); Page1 instance = new Page1(); TextField expResult = null; TextField result = instance.getEh13(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } COM: <s> test of get eh13 method of class timesheetmanagement </s>