__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/34813988
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public HierarchicalClustering (double minRValue, int maxSizeToFlagCluster, StringBuffer results, File pngResultFile, boolean displayClusterPlot){ //set params minimalCorrelationCoefficient = minRValue; this.results = results; this.pngResultFile = pngResultFile; this.maxSizeToFlagCluster = maxSizeToFlagCluster; this.displayClusterPlot = displayClusterPlot; } COM: <s> for integration with cel file quality control app </s>
funcom_train/4924976
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void test_path_MultipleMatch() { final String PATH = "/path"; this.addServicer("FilterOne", PATH + "/*", null); this.addServicer("FilterTwo", PATH + "/*", null); this.record_init("FilterOne", "FilterTwo"); this.record_doFilter("FilterOne", "FilterTwo"); this.doFilter(PATH, null, MappingType.REQUEST, "Servlet"); } COM: <s> ensure exact have multiple match on path </s>
funcom_train/44870994
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JRadioButton getCenterLeft() { if (centerLeft == null) { centerLeft = new JRadioButton(); centerLeft .setHorizontalAlignment(javax.swing.SwingConstants.CENTER); centerLeft .setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); centerLeft.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { if (labelLocation != DrawString.CENTER_LEFT) { firePropertyChange("labelposition", labelLocation, DrawString.CENTER_LEFT); labelLocation = DrawString.CENTER_LEFT; } } }); } return centerLeft; } COM: <s> this method initializes center left </s>
funcom_train/20464143
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { Iterator names = getNames(); StringBuffer str = new StringBuffer("[" + this.getClass().getName() + ": "); while (names.hasNext()) { str.append(names.next()); if (names.hasNext()) { str.append(", "); } } str.append("]"); return str.toString(); } COM: <s> converts this catalog to a string </s>
funcom_train/9090108
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public void assertEquals(String message, Object expected, Object actual) { if (expected == null && actual == null) return; if (expected != null && isEquals(expected, actual)) return; else if (expected instanceof String && actual instanceof String) { String cleanMessage= message == null ? "" : message; throw new ComparisonFailure(cleanMessage, (String)expected, (String)actual); } else failNotEquals(message, expected, actual); } COM: <s> asserts that two objects are equal </s>
funcom_train/31486521
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public PGPAlgorithmFactory (int init) { if ((init & INIT_EMPTY_PUBLICKEY) == 0) DefaultPublicKeyAlgorithms(); if ((init & INIT_EMPTY_COMPRESSOR) == 0) DefaultCompressionAlgorithms(); if ((init & INIT_EMPTY_S2K) == 0) DefaultS2KAlgorithms(); if ((init & INIT_EMPTY_HASH) == 0) DefaultHashAlgorithms(); if ((init & INIT_EMPTY_CIPHER) == 0) DefaultCipherAlgorithms(); } COM: <s> constructor that initializes specific portions </s>
funcom_train/47554429
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Node typeCheck(ContextVisitor tc) throws SemanticException { TypeSystem ts = tc.typeSystem(); Context context = tc.context(); if (! ts.isImplicitCastValid(expr.type(), ts.Int(), context) && ! ts.isImplicitCastValid(expr.type(), ts.Char(), context)) { throw new SemanticException("Switch index must be an integer.", position()); } return this; } COM: <s> type check the statement </s>
funcom_train/3921935
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testAddAttributeWithDefaultValue1() throws Exception { LearningDesign ld = createNewLD(); Attribute att = ld.getLDElement().getAttribute(LD_Core.LEVEL); assertNotNull("Default Attribute was null", att); assertEquals("Default Attribute value was wrong", "A", att.getValue()); } COM: <s> test that the level attribute is added with default value </s>
funcom_train/44136128
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); if(e.getID() == WindowEvent.WINDOW_CLOSING) { OSMMenuFileExit cmd = new OSMMenuFileExit(this, OSMApplication.getDocument()); cmd.runCommand(); } } COM: <s> to make exit possible </s>
funcom_train/2854038
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Interface (String name, String ifaceName, String fieldName) { super (name); // BUT there is no corresponding tag if (ifaceName == null) throw new IllegalArgumentException( "null interface name"); this.ifaceName = ifaceName; if (fieldName == null) throw new IllegalArgumentException("null field name"); this.fieldName = fieldName; } COM: <s> set up an interface providing a short name for use in </s>
funcom_train/13725049
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testStupidRules() throws Exception { final String prog = "q(?X) :- s(?X), not p(?X).\n" + "p(?X) :- r(?X).\n" + "r(?X) :- t(?X).\n" + "?- q(?X)."; assertNull("The trainsformation should fail.", getResult(prog)); } COM: <s> tests whether useless magic predicates magic q f will be created </s>
funcom_train/20313182
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testIsomorphismFile() throws FileNotFoundException { testIsomorphismXMLFile(1,true); testIsomorphismXMLFile(2,true); testIsomorphismXMLFile(3,true); testIsomorphismXMLFile(4,true); testIsomorphismXMLFile(5,false); testIsomorphismXMLFile(6,false); testIsomorphismNTripleFile(7,true); testIsomorphismNTripleFile(8,false); } COM: <s> test isomorphism from file data </s>
funcom_train/10286226
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public NodeList getNodes(String xpathExpression) throws XPathExpressionException { NodeList nodes = null; if (rootNode != null) { nodes = (NodeList) xpath.evaluate(xpathExpression, rootNode, XPathConstants.NODESET); } else if (document != null){ nodes = (NodeList) xpath.evaluate(xpathExpression, document, XPathConstants.NODESET); } return nodes; } COM: <s> read the dom nodes specified by the given xpath expression </s>
funcom_train/42651882
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object resolve(InputParameter param) { ObjectModel model = ModelFacetProxy.require(getApplication()).getModel(); ObjectClass cl = model.getClassBySimpleName(param.getType()); return resolve(cl == null ? param.getType() : cl.getName(), param.getName(), param.isRequired()); } COM: <s> this method resolves the given </s>
funcom_train/45483384
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object getSelectedObject() { // attempt to get the current selection ISelection currentlySelected = this.viewer.getSelection(); Object selected = null; if (null != currentlySelected && currentlySelected instanceof StructuredSelection) { // loop over present entries, look for matches between the selection // and the data. selected = ((StructuredSelection) currentlySelected) .getFirstElement(); } return selected; } COM: <s> gets the selected object from the table viewer or null if nothing is </s>
funcom_train/17892517
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void configureMenu() { add(createFileMenu("File", 'f')); add(createViewMenu("View", 'v')); add(createIconsMenu("Icons", 'i')); add(createHelpMenu("Help", 'h')); } COM: <s> overloaded method to configure the menu </s>
funcom_train/17206908
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void joinCollection() { while (Plan.isCollectionTriggered()) { /* allow a gc thread to run */ Mutator.current().gcSafePoint(); } Mutator mutator = Mutator.current(); if (mutator.isOutOfMemory() && !mutator.isPhysicalAllocationFailure()) { throw new Mutator.OutOfMemory(); } } COM: <s> joins an already requested collection </s>
funcom_train/28116639
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Exception getException() { Exception result = super.getException(); if (result == null) { Iterator iterator = _actions.iterator(); while (iterator.hasNext()) { ThreadedAction action = (ThreadedAction) iterator.next(); result = action.getException(); if (result != null) { break; } } } return result; } COM: <s> returns any exception thrown by </s>
funcom_train/3293300
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Date getBeginOfDay(Date date) throws ParseException { Calendar cal = Calendar.getInstance(); cal.setTime(date); cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); return cal.getTime(); } COM: <s> finds the start of the day </s>
funcom_train/49318506
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected JMenuItem createViewScaleFitToWindowMenuItem() { JMenuItem menuItem = new JMenuItem(_I18N.getString("fitImageInWindow")); menuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { _imageDisplay.scaleToFit(); _imageDisplay.updateImage(); } }); return menuItem; } COM: <s> create the view scale fit image in window menu item </s>
funcom_train/13272200
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void deleteHome(Home home) { int index = this.homes.indexOf(home); if (index != -1) { this.homes = new ArrayList<Home>(this.homes); this.homes.remove(index); this.homesChangeSupport.fireCollectionChanged(home, index, CollectionEvent.Type.DELETE); } } COM: <s> removes a given code home code from the homes list of this application </s>
funcom_train/3935615
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setEnabled(Object inContext) { if (focusInText) { setBaseEnabled(true); return; } //check number of selected items ISelection lSelection = results.getSelection(); if (lSelection.isEmpty()) { setBaseEnabled(false); return; } if (lSelection instanceof StructuredSelection) { setBaseEnabled(((StructuredSelection) lSelection).size() == 1); return; } super.setEnabled(inContext); } COM: <s> enable handler if either the input field has the focus or </s>
funcom_train/21243914
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void openSession(String pstrSMTPHost) { Properties ltheProperties; ltheProperties = new Properties(); //ltheProperties.put("mail.smtp.starttls.enable","true"); ltheProperties.put("mail.smtp.host", pstrSMTPHost); mtheSession = javax.mail.Session.getInstance(ltheProperties, null); mblnSessionOpen = true; } COM: <s> opens a session with a smtp server </s>
funcom_train/33579517
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void runPass(JmeContext jc) { doUpdate(jc); RenderContext<?> rc = jc.getRenderContext(); applyPassStates(rc); jc.getRenderer().setPolygonOffset(zFactor,zOffset); doRender(jc); jc.getRenderer().clearPolygonOffset(); resetOldStates(rc); } COM: <s> executes this pass </s>
funcom_train/49761580
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSearchContexts(IScopeContext[] scopes) { this.searchContexts = scopes; if (scopes == null) { return; } // Assert that the default was not included (we automatically add it to // the end) for (int i = 0; i < scopes.length; i++) { if (scopes[i].equals(defaultContext)) { Assert.isTrue(false, "Do not add the default to the search contexts"); } } } COM: <s> set the search contexts to scopes </s>
funcom_train/20646450
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void notifyBeforeTemplateCompilation( String report, String subreport ) { synchronized ( m_listeners ) { m_switchingStates = true; ListIterator it = m_listeners.listIterator(); while ( it.hasNext() ) { TemplateEventListener l = (TemplateEventListener) it.next(); l.notifyBeforeTemplateCompilation( report, subreport ); } m_switchingStates = false; } } COM: <s> pass the event to all listeners </s>
funcom_train/9833898
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Wire sub(Wire a, Wire b, Wire ci) { Wire s = wire(a.getWidth(), name("sum")); return sub_o(a, b, ci, s, wire(1, name("co")), (String) null); } COM: <s> constructs a new subtractor with no carry out and with a new </s>
funcom_train/18938290
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Executor buildNewNativeExecutor() { Executor instance = null; if (OS.isFamilyUnix()) { instance = new LinuxExecutor(logger); } else if (OS.isFamilyWin9x() || OS.isFamilyWindows() || OS.isFamilyDOS()) { instance = new Win32Executor(logger); } else { throw new ExecutorFactoryException("Unable to build new executor, OS " + System.getProperty("os.name") + " is unsupported"); } return instance; } COM: <s> creates a native os executor </s>
funcom_train/3099058
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Template makeDoneTemplate () { String templateExpression = "done"; Template doneTemplate = (Template) templateCache.get(templateExpression); if (doneTemplate != null) return doneTemplate; DialogFsmEvent doneEvent = dialogFsmEventFactory.makeDialogFsmEvent("done"); doneTemplate = new Template(templateExpression, doneEvent); templateCache.put(templateExpression, doneTemplate); return doneTemplate; } COM: <s> make a done template </s>
funcom_train/20889356
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void processPortedPacket(OperatingSystemPacket packet) throws LayerException { if (packet instanceof RumorRoutingAgentPacket) { processAgentPacket((RumorRoutingAgentPacket) packet); } if (packet instanceof RumorRoutingQueryPacket) { processQueryPacket((RumorRoutingQueryPacket) packet); } if (packet instanceof RumorRoutingResponsePacket) { processResponsePacket((RumorRoutingResponsePacket) packet); } } COM: <s> processes a packet </s>
funcom_train/50877017
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void startQueues() throws JMSException { //initialize the queues with corresponding modules user = new UserQueueReceiver( userSvcs ); account = new AcctQueueReceiver( acctSvcs ); quote = new QuoteQueueReceiver( quoteSvcs ); order = new OrderQueueReceiver( orderSvcs ); trade = new TradeQueueReceiver( tradeSvcs ); } COM: <s> queues should be started only after initializing modules </s>
funcom_train/26509016
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected RootedGraph createGraph() { FlowGraph flowGraph = new FlowGraph(methodName, methodInstrs, methodExceptions); nodesToIndex=nodesToIndex(flowGraph); BasicBlockGraph basicBlockGraph = new BasicBlockGraph(flowGraph); if (stopwatch!=null) stopwatch.split("BB creation"); return basicBlockGraph; } COM: <s> creates a basic block graph for a method </s>
funcom_train/38778654
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void processCommandsForPitch(String currentPitch,String newPitch) throws TextPrinterException { if (!currentPitch.equals(newPitch)) if (!newPitch.equals("")) { String mappedPitch=getBestPitchCommand(newPitch); if (mappedPitch==null) return; mappedPitch=this.replaceParameter(mappedPitch,newPitch); executeCommand(TextPrinter.CMD_PITCH,mappedPitch); } } COM: <s> enable new pitch </s>
funcom_train/14241870
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Collection filterWithActivator(Collection c, MMessage a) { Iterator it = c.iterator(); Vector v = new Vector(); while (it.hasNext()) { MMessage m = (MMessage) it.next(); if (m.getActivator() == a) v.add(m); } return v; } COM: <s> finds the messages in collection c that has message a as activator </s>
funcom_train/5026909
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setupTestHarness() { TestHarness.name(this, TestHarness.CHECKBOX_TREE); TestHarness.name(checkBoxTreeViewer.getTree(), TestHarness.CHECKBOX_TREE_REAL); if (!singleSelectionOnly) { TestHarness.name(selectAllButton, TestHarness.CHECKBOX_TREE_SELECT_ALL); TestHarness.name(unselectAllButton, TestHarness.CHECKBOX_TREE_DESELECT_ALL); } } COM: <s> setting up the export wizard page for abbot </s>
funcom_train/5372059
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Vector searchIndex(String idxname, DBSearch dbs) throws ClassNotFoundException, IOException, NoSuchIndexException { Index idx = (Index)indices.get(idxname); if (idx == null) throw new NoSuchIndexException(idxname); Vector rc = new Vector(); String[] idxk = getIndexKeys("name"); StringBuffer sb = new StringBuffer(idxk.length * 40); Object o; for (int i = 0; i < idxk.length; i++) { o = getObject("name", idxk[i]); if (dbs.matches(o)) rc.addElement(o); } return rc; } COM: <s> get objects matching a given index search pattern using a dbsearch </s>
funcom_train/20245332
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSelectCount(int selectCount) { if (selectCountTF != null) { String selectCountText = "" + selectCount; if (SwingUtilities.isEventDispatchThread()) { selectCountTF.setText(selectCountText); } else { final String finalText = selectCountText; SwingUtilities.invokeLater(new Runnable() { public void run() { selectCountTF.setText(finalText); } }); } } } COM: <s> set the select count </s>
funcom_train/46884839
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int getScale(boolean wtm) { int scale = BitBoard.countBits( board.getMask(wtm, KNIGHT) | board.getMask(wtm, BISHOP)) + 2 * BitBoard.countBits(board.getMask(wtm, ROOK)) + 4 * BitBoard.countBits(board.getMask(wtm, QUEEN)); return MAX_SCALE_PASSED_PAWN - Math.min(MAX_SCALE_PASSED_PAWN, scale); } COM: <s> determine the scale factor for passed pawn evaluation </s>
funcom_train/49339781
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void update(boolean leader, double lat, double lon, byte zone, int easting, int northing, short altitude, float azimuth) { this.leader = leader; this.lat = lat; this.lon = lon; this.zone = zone; this.easting = easting; this.northing = northing; this.altitude = altitude; this.azimuth = azimuth; } COM: <s> updates the walker </s>
funcom_train/22975264
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public InputStream extractRDF(RDFFormat rdfDocWriter, boolean ontology, boolean instances, boolean explicitOnly, boolean niceOutput) throws IOException, AccessDeniedException { return super.extractRDF(rdfDocWriter, ontology, instances, explicitOnly, niceOutput); } COM: <s> extracts data from the repository and reports the triples to the supplied </s>
funcom_train/12735307
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testCacheMaxSize() { int maxCapacity = 1000; XCache cache = new XCache(maxCapacity); assertEquals(maxCapacity, cache.getMaxCacheSize()); cache = new XCache(); assertTrue(maxCapacity != cache.getMaxCacheSize()); cache.setMaxCacheSize(maxCapacity); assertEquals(maxCapacity, cache.getMaxCacheSize()); } COM: <s> here we test maximum capacity of the cache </s>
funcom_train/3862077
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void init(String repositoryName, boolean supportSpiderMap, boolean deleteOldData, String archiveOldData) throws SperowiderInstantiationException { init(repositoryName, supportSpiderMap, deleteOldData, archiveOldData, false, true, BasicTable.MEMORY); } COM: <s> initializes this model with default reporters </s>
funcom_train/24430963
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void mouseClicked(MouseEvent evt) { if (!hasEntities()) return; // iterate buttons until right one was found parentWindow.sameGame.start_time(); for (int i = 0; i < entities.size(); i++) { JButtonX btn = entities.get(i); if (evt.getSource() == btn) { // pass message along try { entityClicked(btn); } catch (InternalFailureException e) { e.printStackTrace(); } // done! evt.consume(); break; } } } COM: <s> this method handles the mouse clicked mouse event by converting the </s>
funcom_train/47985639
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void init(AttributeSet attrs) { TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.WMPAwarenessWidget); subjectID = a.getResourceId(R.styleable.WMPAwarenessWidget_subject, 0); if (subjectID == 0) { Log.e("RadarView", "Subject for RadarView wasn't correctly set! Set the ressource ID of the subject View in your XML layout via the subject attribute."); } a.recycle(); } COM: <s> this method does all necessary initialization stuff </s>
funcom_train/2445914
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public LabelDecorator asLabelDecorator(final Icon icon) { if (labelDecorator == null) { labelDecorator = new LabelDecorator() { @Override public void decorate(Label label) { label.setFont(font); label.setTextColor(color); label.setIcon(icon); } }; } return labelDecorator; } COM: <s> creates a code label decorator code adapter from this code text style code </s>
funcom_train/18846551
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String createPublicProcessFlowNotFoundException(String tscToken, String sequenceFlowID) { PropertyMap propertyMap = new PropertyMap(); DiagnosticsListCreator edg; edg = new DiagnosticsListCreator(); String severityType = DiagnosticsCodes.getErrorDiagnosticsCode(); String exceptionID = "80038"; propertyMap.addPropertyValuePair("sequenceFlowID", sequenceFlowID); String serExMsg = edg.constructErrorDocOneItemParam(tscToken, componentID, severityType, subSystemCode, exceptionID, propertyMap); return serExMsg; } COM: <s> construct public process flow not found exception message </s>
funcom_train/49319037
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void fireChange(ImageChangeEvent e) { Object[] listeners = listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == ChangeListener.class) { ((ChangeListener) listeners[i + 1]).stateChanged(e); } } e.reset(); } COM: <s> notify any listeners of a change in the image or cut levels </s>
funcom_train/36239781
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Response checkForStaleResource(Request request) { if (this.getLastModified() != null) { Response.ResponseBuilder responseBuilder = request.evaluatePreconditions(this.getLastModified()); if (responseBuilder != null) { log.debug("Client-side instance of requested resource is not expired."); return responseBuilder.build(); } } log.debug("Client-side instance of requested resource is stale."); return null; } COM: <s> checks if the resource hold by the client is expired </s>
funcom_train/17604905
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void destroy() { WorkflowResolver resolver = GuiceContainer.getInjector().getInstance(WorkflowResolver.class); List<Class<? extends Workflow>> types = resolver.getTypes(); for (Class<? extends Workflow> type : types) { if (DestroyableWorkflow.class.isAssignableFrom(type)) { ((DestroyableWorkflow) GuiceContainer.getInjector().getInstance(type)).destroy(); } } } COM: <s> closes the workflow instances </s>
funcom_train/20081344
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void notifyJobStart(String jobId) { log.info("[JobService] Starting GridJob " + jobId); // Create ServiceMessage for Job Start Notification ServiceMessage message = new ServiceMessage(jobId, ServiceMessageType.JOB_START); // Send ServiceMessage to GridNodes cluster.getServiceMessageSender().sendServiceMessage(message); log.debug("[ClusterJobService] Notified Job Start {" + jobId + "}"); } COM: <s> notifies that a job has started to all nodes in this cluster </s>
funcom_train/19057994
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setHTML(HTMLDocument html) { mPane = new JTextPane(); mPane.setDoubleBuffered(false); mPane.setContentType("text/html"); mPane.setDocument(html); // "store" html in jTextPane container mStartY = new cCmUnit(0.0); // reset starting position in y-direction } COM: <s> sets the html document to be printed </s>
funcom_train/31689395
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setVirtualFile(VirtualFile vfFile) { this.m_vfFile = vfFile; if(this.getDefinition()!=null && this.getDefinition().getRange() instanceof PropertyRange) { Iterator itor = this.m_values.iterator(); while(itor.hasNext()) { PropertyValue val = (PropertyValue)itor.next(); Iterator itor2 = val.getValue().iterator(); while (itor2.hasNext()) { PropertyInstance propInst = (PropertyInstance) itor2.next(); propInst.setVirtualFile(vfFile); } } } } COM: <s> sets the virtual file which owns this property instance </s>
funcom_train/48336832
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean checkFlushCondition() { if (flushType == TIME) { long tmp = new Date().getTime(); if (lastFlush + flushCondition <= tmp) { return true; } } else if (flushType == DATA) { if (flushCondition <= numStored) { if (DEBUG) { System.out.println("flush is true"); } return true; } } return false; } COM: <s> checks condition under which local data is sent to persistent storage </s>
funcom_train/20422175
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int execute(List<Field> fields, String tableName) throws SQLException { PreparedStatement statement = conn.prepareStatement(getSql(fields, tableName)); int fieldCount = fields.size(); for (int i =0; i< fieldCount; i++) setParameter(fields, statement, i); statement.executeUpdate(); java.sql.ResultSet rs = statement.getGeneratedKeys(); if (rs.next()) return rs.getInt(1); return -1; } COM: <s> returns the id of the newly created row </s>
funcom_train/4257660
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public OutputStream getOutputStream() { return new OutputStream() { @Override public void write(int b) throws IOException { try { if (!queue.offer(b, QUEUE_TIMEOUT, TimeUnit.SECONDS)) { throw new IOException( "Timeout while writing to the queue-based output stream"); } } catch (InterruptedException ie) { throw new IOException( "Interruption occurred while writing in the queue"); } } }; } COM: <s> returns a new output stream that can write into the pipe </s>
funcom_train/7725319
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void checkPermission(Permission perm) { try { super.checkPermission(perm); } catch(AccessControlException ace) { if(grantedPermissions.get(perm) == null) { //System.out.println("LiberalSecurityManager granted permission: "+perm); grantedPermissions.put(perm, perm); } } } COM: <s> override check permission to grant all kind of permissions </s>
funcom_train/17827528
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int skipString(String s, int len, int idx, char quoteType) { while (idx < len) { char ch = s.charAt(idx); if (ch == quoteType) { ++idx; break; } else if (ch == '\\') { idx += 2; } else { ++idx; } } return idx; } COM: <s> given a quoted string skip it </s>
funcom_train/29508288
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getLongFormat() { if (!this.stTib) { return (DDAYNAMES[this.dDayOfWeek - 1] + ", " + DSEASONNAMES[this.dSeason] + " " + this.dDayOfMonth + ", Year of Our Lady of Discord " + this.dYear); } else { return "It's St. Tib's Day, Year of Our Lady of Discord " + this.dYear; } } COM: <s> returns a formated string representing a ddate long format </s>
funcom_train/5340758
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setText(String text) { if(CommonUtils.isJava14OrLater() && !CommonUtils.isMacOSX()) { BAR.setString(text); } else { FontMetrics fm = LABEL.getFontMetrics(LABEL.getFont()); LABEL.setPreferredSize(new Dimension(fm.stringWidth(text), fm.getHeight())); LABEL.setText(text); } } COM: <s> updates the status of this component </s>
funcom_train/33391493
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Object afterInvocation(InterceptorStatusToken token, Object returnedObject) { if (token == null) { // public object return returnedObject; } if (token.isContextHolderRefreshRequired()) { if (logger.isDebugEnabled()) { logger.debug("Reverting to original Authentication: " + token.getAuthentication().toString()); } SecurityContextHolder.getContext().setAuthentication(token.getAuthentication()); } return returnedObject; } COM: <s> completes the work of the tt abstract security interceptor tt after the </s>
funcom_train/43427378
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void asyncDidYouMean(final String words, final AsyncDidYouMeanHandler handler) { synchronized (this) { _words = words; } _threadPool.execute(new Runnable() { @Override public void run() { String result = didYouMean(words); boolean areWordsObsolete = true; synchronized (this) { areWordsObsolete = words != _words; } if (!areWordsObsolete) { // is words are up to date (no other request), send back the // result handler.asyncDidYouMeanResponse(result); _words = null; } } }); } COM: <s> asynchronous did you mean </s>
funcom_train/43245861
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetBNState() { System.out.println("getBNState"); EmergencyContactDG5Object instance = new EmergencyContactDG5Object(); String expResult = ""; String result = instance.getBNState(); 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 bnstate method of class org </s>
funcom_train/37657508
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Vector getList() { LOGGER.entering(getClass().getName(), "getList"); final Vector returnedList = (Vector) locations.clone(); LOGGER.exiting(getClass().getName(), "getList", returnedList); return returnedList; } COM: <s> gets the list of files </s>
funcom_train/4459225
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected InputStream getInputStreamResource(String file, String configLocation) { InputStream is = null; try { is = new FileInputStream(configLocation + file); } catch (FileNotFoundException e) { is = getClass().getClassLoader().getResourceAsStream(file); if (is == null) { try { is = new FileInputStream(file); } catch (FileNotFoundException ex) { } } } return is; } COM: <s> get a file input stream resource </s>
funcom_train/5031589
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void replaceWith(CategoryWrapper newCategoryWrapper) { CategoryType categoryType = newCategoryWrapper.getCategory().getCategoryType(); for (Category category : categoryType.getAllCategories()) { CategoryWrapper categoryWrapper = (CategoryWrapper) DataCacheManager.getWrapperByElement(category); newCategories.remove(categoryWrapper); removedCategories.add(categoryWrapper); } } COM: <s> if there are other categories in the current categories list that are in </s>
funcom_train/28662311
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void hideObject(final Control that, final boolean hideit) { GridData GData = (GridData) that.getLayoutData(); GData.exclude = true && hideit; that.setVisible(true && !hideit); Control[] myArray = {that}; layout(myArray); } COM: <s> excludes a control from the layout calculation </s>
funcom_train/11648013
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void destroy() { if (cacheManagerImplicitlyCreated) { try { net.sf.ehcache.CacheManager cacheMgr = getCacheManager(); cacheMgr.shutdown(); } catch (Exception e) { if (log.isWarnEnabled()) { log.warn("Unable to cleanly shutdown implicitly created CacheManager instance. " + "Ignoring (shutting down)..."); } } cacheManagerImplicitlyCreated = false; } } COM: <s> shuts down the wrapped ehcache cache manager b only if implicitly created b </s>
funcom_train/29377797
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void refreshTree() { String path = getStrippedPath(); removeTreeSelectionListener( modelVisualiserPanel ); removeMouseListener( modelVisualiserPanel ); createTreeComp( null ); if ( path != null ) setSelectedPath( path ); addTreeSelectionListener( modelVisualiserPanel ); addMouseListener( modelVisualiserPanel); } COM: <s> refresh tree model representation </s>
funcom_train/21173990
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String getCurrentTopAddress() { // Get the character offset located at the top of the window int offset = tabbed.getContent().viewToModel( tabbed.getViewport().getViewPosition()); // And ask the content pane to resolve that into an address // for us String addressStart = ContentPane.getAddress(offset, tabbed .getContent().getDocument()); return (addressStart); } COM: <s> compute an address representing the offset viewable at the top of the </s>
funcom_train/8242561
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long parse(String expression) { char unitOfMeasure = expression.toUpperCase().charAt(expression.length() - 1); long unitOfTime = Long.parseLong(expression.substring(0, expression.length() - 1)); for(TimeUnit tUnit : TimeUnit.values()) { if (tUnit.getUnitIndicator() == unitOfMeasure) { return (unitOfTime * tUnit.getMilliseconds()); } } return 0L; } COM: <s> parses an expression in time format and returns its value in milliseconds </s>
funcom_train/24932002
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getStrictUpperBound() { int possibleLower; Set<MAssociationEnd> indirectParents = getIndirectParents(); int strictUpper = this.assocEnd().multiplicity().getRange().getUpper(); for (MAssociationEnd indirectParentAE : indirectParents) { //intersect possibleLower = indirectParentAE.multiplicity().getRange().getUpper(); strictUpper = MMultiplicity.getBiggerNumber(strictUpper, possibleLower); } return strictUpper; } COM: <s> calculates redefine strict upper bound </s>
funcom_train/45834692
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public PrivacyList getDefaultList() { if (defaultList != null) { try { return PrivacyListManager.getInstance().getPrivacyList(getUsername(), defaultList); } catch (UserNotFoundException e) { Log.error(e.getMessage(), e); } } return null; } COM: <s> returns the default privacy list used for the sessions user </s>
funcom_train/14012130
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Component getModalContextRoot() { if (modalComponents == null || modalComponents.size() == 0) { return null; } else { for (int i = modalComponents.size() - 1; i >= 0; --i) { Component component = (Component) modalComponents.get(i); // Ignore invisible components. if (component.isRenderVisible()) { return component; } } return null; } } COM: <s> retrieves the root component of the current modal context or null </s>
funcom_train/37590473
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void indentLines(int selStart, int selEnd, Indenter.IndentReason reason, ProgressMonitor pm) { assert EventQueue.isDispatchThread(); try { _doc.indentLines(selStart, selEnd, reason, pm); setCaretPos(_doc.getCurrentLocation()); } catch (OperationCanceledException oce) { throw new UnexpectedException(oce); } } COM: <s> indent the given selection for the given reason in the current document </s>
funcom_train/46382869
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void initializeTexture () { if (getRenderState(RenderState.RS_TEXTURE) == null) { TextureState ts = DisplaySystem.getDisplaySystem().getRenderer().createTextureState(); ts.setTexture(texture); setRenderState(ts); setModelBound(new BoundingBox()); updateModelBound(); } FloatBuffer tbuf = BufferUtils.createVector2Buffer(4); setTextureCoords(new TexCoords(tbuf)); tbuf.put(0).put(0); tbuf.put(0).put(1); tbuf.put(1).put(1); tbuf.put(1).put(0); } COM: <s> initialize texture attributes </s>
funcom_train/46760673
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public TermConceptModel getTermConcept(final long termConceptId, final IChainStore chain, final ServiceCall call) throws Exception { IBeanMethod method = new IBeanMethod() { public Object execute() throws Exception { return ClinicalData.getTermConcept(termConceptId, chain, call); }}; return (TermConceptModel) call(method, call); } COM: <s> same transaction return the single term concept model for the primary key </s>
funcom_train/12563481
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void updateSuspendStatus() { synchronized (lock) { if (state == SUSPENDING && 0 == dependencies.size()) { suspendImpl(); Enumeration subs = subsystems.elements(); while (subs.hasMoreElements()) { ((Subsystem)subs.nextElement()).suspend(); } state = SUSPENDED; suspended(); } } } COM: <s> checks if there are dependencies that prevent from system suspend </s>
funcom_train/20443397
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getScreenCommand2() { if (screenCommand2 == null) {//GEN-END:|68-getter|0|68-preInit // write pre-init user code here screenCommand2 = new Command("Screen", Command.SCREEN, 0);//GEN-LINE:|68-getter|1|68-postInit // write post-init user code here }//GEN-BEGIN:|68-getter|2| return screenCommand2; } COM: <s> returns an initiliazed instance of screen command2 component </s>
funcom_train/37854704
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void applyTextDelta(InputStream base, OutputStream target, boolean computeCheksum) { reset(); MessageDigest digest = null; try { digest = computeCheksum ? MessageDigest.getInstance("MD5") : null; } catch (NoSuchAlgorithmException e1) { } base = base == null ? SVNFileUtil.DUMMY_IN : base; myApplyBaton = FakeSVNDiffWindowApplyBaton.create(base, target, digest); } COM: <s> starts processing deltas given a base file stream and an output stream </s>
funcom_train/34565733
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean version() throws IOException { if(!consume(VERS)) return false; s(); check('='); s(); final int d = qu(); if(!consume(VERS10) && !consume(VERS11)) error(DECLVERSION); check((char) d); return true; } COM: <s> scans a document version </s>
funcom_train/32138659
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ActiveModuleData pause(DashboardModule mod) { TreeNode tree = (TreeNode)viewer.getInput(); for(int i=0; i<tree.getChildCount(); i++) { if(tree.getChildAt(i).toString().equals(mod.category + "." + mod.display)) { return (ActiveModuleData)(tree.getChildAt(i).getData()); } } return null; } COM: <s> this method handles pausing a module in the active module browser view </s>
funcom_train/46680635
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeInterpolatedTimes(){ for (int pos=0; pos<getNumberOfTimelineItems(); pos++){ TimelineItem tli = getTimelineItemAt(pos); if ((tli.getTime()>=0) && (tli.getType().equals("intp"))){ tli.setTime(-1); } } } COM: <s> remove absolute times that have been interpolated </s>
funcom_train/39955370
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String readContent(String url) throws MalformedURLException, IOException { InputStream content = null; try{ content = (InputStream) new URL(url).getContent(); BufferedReader reader = new BufferedReader(new InputStreamReader(content)); StringBuilder sb = new StringBuilder(); String line = null; while ((line = reader.readLine() ) != null){ sb.append(line); } return sb.toString(); }finally{ if(content!=null){ content.close(); } } } COM: <s> it simply reads http content </s>
funcom_train/46458283
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSelectedNode(LaunchNode node, int pageNumber, java.net.URL url) { node.htmlTabNumber = (url == null && node.getHTMLCount() == 0)? -1: pageNumber; node.htmlURL = url; setSelectedNode(node); } COM: <s> sets the selected node and displays a url </s>
funcom_train/14157004
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void increment(String id) throws IllegalArgumentException { int i = lookup(id); if (i < 0) throw new IllegalArgumentException("increment() : Unable to find specified ID in MatternClock !"); ClockElement ce = (ClockElement) clock.get(i); ce.setValue(ce.getValue() + 1); } COM: <s> increment a specific component of the clock </s>
funcom_train/45483739
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void createButtonArea() { GridLayout layout = new GridLayout(); layout.numColumns = 2; Composite composite = new Composite(this, SWT.None); composite.setLayout(layout); Button button = new Button(composite, SWT.BORDER); button.setText("Edit Goods"); button.addSelectionListener(new EditGoodSelectionListener(this.getShell())); button = new Button(composite, SWT.BORDER); button.setText("Buy Goods"); button.addSelectionListener(new BuyMyGoodsSelectionListener()); } COM: <s> create the area with the buttons </s>
funcom_train/51011126
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int addQuestion() throws Exception { if (quest.equals("")) throw new IllegalDataException("survey.emptyquestion"); try { Connection con = connect(); try { con.setAutoCommit(false); int id = qdb.insert(con, quest, publish, close); con.commit(); return id; } catch (Exception e) { con.rollback(); throw e; } finally { con.close(); } } catch (Exception e) { Log.error(e); throw e; } } COM: <s> adds a question </s>
funcom_train/5593865
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testLusers() { System.out.println("testLusers"); sender.lusers(); assertEquals("LUSERS", bufferToString()); sender.lusers("*.chatservs.com", "server.chatservs.com"); assertEquals("LUSERS *.chatservs.com server.chatservs.com", bufferToString()); } COM: <s> test of lusers method of class net </s>
funcom_train/15624402
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void executeAction(@NotNull final String actionName, @NotNull final ActionListener actionListener) { final JEditTextArea activeTA = control.getActiveTextArea(); if (activeTA != null) { actionListener.actionPerformed(new ActionEvent(activeTA, 0, actionName)); } } COM: <s> executes a named action </s>
funcom_train/18065187
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JMenuBar getJJMenuBar() { if (jJMenuBar == null) { jJMenuBar = new JMenuBar(); jJMenuBar.setName("MenuBar"); jJMenuBar.add(getFileMenu()); jJMenuBar.add(getHelpMenu()); jJMenuBar.add(getToolMenu()); jJMenuBar.add(getEditMenu()); } return jJMenuBar; } COM: <s> this method initializes j jmenu bar </s>
funcom_train/18656016
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int find(java.lang.String item) { for(int index=0;index<this.size();index++){ Object CurrentObject=this.elementAt(index); if(CurrentObject==null) continue; String CurrentObjectName=CurrentObject.toString(); if(CurrentObjectName.compareToIgnoreCase(item)==0) return index; } return -1; // not found } COM: <s> find a element by its name </s>
funcom_train/37141448
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Object getInputValue(int row, int column) { Filter filter = getMappingFilter(); if (filter != null) { return filter.getValueAt(row, column); } if (adapter != null) { return adapter.getValueAt(row, column); } return null; } COM: <s> returns the value of the cell at the specified row and column </s>
funcom_train/26222418
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void clearPanel() { if ( _scroller != null ) { SwingUtilities.invokeLater( new Runnable() { public void run() { _scroller.remove( _button_panel ); AntelopePanel.this.remove( _scroller ); _scroller = null; _button_panel = null; _project_name.setText( "None" ); AntelopePanel.this.repaint(); } } ); } } COM: <s> removes all buttons from this panel and sets the project name label to </s>
funcom_train/37443875
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void createPerformanceTable() throws SQLException { final String createTable = "CREATE TABLE JXPFW_PERFORMANCE(" + "THE_KEY VARCHAR(10),A VARCHAR(20),B VARCHAR(20),C VARCHAR(20)," + "D VARCHAR(20),E VARCHAR(20)," + "CONSTRAINT JXPFW_PERFORMANCE_PK PRIMARY KEY (THE_KEY))"; Database.execute(dataSource, createTable); } COM: <s> creates the performance table </s>
funcom_train/8485507
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testOverloadedInvWithMultipleMatches() { try { // invokes overloadedmatch2(Object|SymbiosisTest) => error atTestObject.impl_invoke(atTestObject, AGSymbol.jAlloc("overloadedmatch2"), NATTable.atValue(new ATObject[] { atTestObject })); fail("Expected a symbiosis exception"); } catch (XSymbiosisFailure e) { // success: expected exception } catch (InterpreterException e) { fail(e.getMessage()); } } COM: <s> invokes an overloaded method where the symbiosis cannot disambiguate automatically </s>
funcom_train/41725885
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean containsPoint(int x, int y) { boolean ptrContained = false; if (iconUp.isVisible() && iconUp.containsPoint(x - left, y - top)) { ptrContained = true; } if (iconDown.isVisible() && iconDown.containsPoint(x - left, y - top)) { ptrContained = true; } return ptrContained || super.containsPoint(x, y); } COM: <s> override the drawables method </s>
funcom_train/5248681
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected IElementHandling getElementHandler(String name) { IModelHandling mdl = null; IElementHandling rt = null; if(creator!=null) { mdl = creator.getModelHandler(); if(mdl!=null) { rt = mdl.getElementHandler(name); if(rt==null) { IElementHandling defaultPackageElement = mdl.getElementHandler( IModelHandling.defaultPackageFileName ); if(defaultPackageElement instanceof IPackageHandling) { rt = ((IPackageHandling)defaultPackageElement) .getElementHandler(name); } } } } return rt; } COM: <s> returns an element handler from the model provided by </s>
funcom_train/18543274
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeDuplicateElements() { String value; for (int i = 0; i < this.size(); i++) { value = (String) this.getElementAt(i); for (int j = 0; j < this.size(); j++) { if (value.equals((String) this.getElementAt(j)) && i != j) { this.remove(j); } } } } COM: <s> removes duplicate entries from the results list </s>
funcom_train/34708757
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getJButtonExpand() { if (jButtonExpand == null) { jButtonExpand = new JButton("+"); jButtonExpand .addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { for (int i = 0; i < annotationsTree.getRowCount(); i++) { annotationsTree.expandRow(i); } } }); } return jButtonExpand; } COM: <s> this method initializes j button expand </s>
funcom_train/46695154
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testBuildingStatus() { System.out.println("buildingStatus"); GraphByID instance = new GraphByID(); assertEquals(State.UNINITIALIZED,instance.buildingStatus()); instance.buildQuery(Pattern.compile(".*")); assertEquals(State.READY,instance.buildingStatus()); } COM: <s> test of building status method of class graph by id </s>