__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/40003652
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean hasScripts(GameObject object) { if (object.getName() != null) { String[] names = bsh.getNameSpace().getMethodNames(); for (int i=0; i<names.length; i++) { if (names[i].startsWith(object.getName())) { return true; } } } // none found return false; } COM: <s> checks to see if the specified game object has any </s>
funcom_train/21883969
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getOsarch(final String type, final String name) { final StringBuffer sb = new StringBuffer(); sb.append("node.").append(type + ".").append(name + ".").append(Constants.PROPERTY_NODE_OSARCH_FIELD); return getProject().getProperty(sb.toString()); } COM: <s> returns the os arch </s>
funcom_train/5260900
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addRecognizesPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_OrganizationUnit_recognizes_feature"), getString("_UI_PropertyDescriptor_description", "_UI_OrganizationUnit_recognizes_feature", "_UI_OrganizationUnit_type"), BmmPackage.Literals.ORGANIZATION_UNIT__RECOGNIZES, true, false, true, null, null, null)); } COM: <s> this adds a property descriptor for the recognizes feature </s>
funcom_train/2501407
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String processMessage(String messagekey, String[] params, Locale locale){ ResourceBundle resourceBundle = null; String messageBundle = FacesContext.getCurrentInstance().getApplication().getMessageBundle(); if (messageBundle != null) { resourceBundle = ResourceBundle.getBundle(messageBundle, locale); } String message = null; if (resourceBundle != null){ message = resourceBundle.getString(messagekey); MessageFormat format = new MessageFormat(message, locale); message = format.format(params); } return message; } COM: <s> returns the message of resouce bundle </s>
funcom_train/5599133
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int getOccurence (String s, String occ){ if (! s.contains(occ)) return 0; else { int nbocc = 0; while(s.indexOf(occ) != -1){ s = s.substring(s.indexOf(occ)+1); nbocc++; } return nbocc; } } COM: <s> this method returns a number of occurences occ in the string s </s>
funcom_train/31904156
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void putAll(Map m) { if (m instanceof TranscodingHints) { putAll(((TranscodingHints) m)); } else { Iterator iter = m.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); put(entry.getKey(), entry.getValue()); } } } COM: <s> copies all of the mappings from the specified tt map tt </s>
funcom_train/27817263
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ThreadGroup register(String serverInstanceID ) { if (threadgroups.get(serverInstanceID) != null) { throw new IllegalArgumentException("ServerInstanceID in use"); } ThreadGroup groupToUse = new ThreadGroup(serversRootThreadGroup, serverInstanceID); threadgroups.put(serverInstanceID, groupToUse); return groupToUse; } COM: <s> registers a trusted server with this server thread manager </s>
funcom_train/5382337
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void fireRegistryChangeEvent() { // if there is nothing to say, just bail out if (deltas.isEmpty() || listeners.isEmpty()) return; // for thread safety, create tmp collections Object[] tmpListeners = listeners.getListeners(); Map tmpDeltas = new HashMap(this.deltas); // the deltas have been saved for notification - we can clear them now deltas.clear(); // do the notification asynchronously new ExtensionEventDispatcherJob(tmpListeners, tmpDeltas).schedule(); } COM: <s> broadcasts asynchronously the event to all interested parties </s>
funcom_train/22064478
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getAllEntities() { return "SELECT entity_id, entity_name, relationship_count, entity.text_block_id, parent_id, entity_type, text_block" + " FROM entity LEFT JOIN text_block ON entity.text_block_id = text_block.text_block_id ORDER BY entity_name"; } COM: <s> dataset for all entites </s>
funcom_train/1196112
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void onModuleLoad() { setupRPC(); // Set up the RPC services (new CMF()).initialize(); // Build the UI RootPanel.get("start").setVisible(false); // Get rid of the Please Wait CMF.mPanel.jsniResize(); // Ensure map is the right size CMF.mPanel.recenter(); // Dramatic entrance } COM: <s> this is the entry point method </s>
funcom_train/46742910
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setFormId(Long formId) { if (!(this.formId.longValue() == formId.longValue())) { Long oldformId= 0L; oldformId = this.formId.longValue(); this.formId = formId.longValue(); setModified("formId"); firePropertyChange(String.valueOf(ORDERS_FORMID), oldformId, formId); } } COM: <s> the form the order was placed with </s>
funcom_train/16218506
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean action(long elapsedTime) { if (this.active) { this.currentTick += elapsedTime; if (this.currentTick >= this.delay) { // time elapsed! // currentTick = 0; // synch the current tick to make the next tick accurate this.currentTick -= this.delay; return true; } } return false; } COM: <s> returns true if the timer delay time has been elapsed thus the action </s>
funcom_train/26017166
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setChargingCollectionFunctionAddress(String ccfAddress) throws ParseException { if (ccfAddress == null) throw new NullPointerException( "JAIN-SIP Exception, " + "P-Charging-Function-Addresses, setChargingCollectionFunctionAddress(), the ccfAddress parameter is null."); // setParameter(ParameterNamesIms.CCF, ccfAddress); setMultiParameter(ParameterNamesIms.CCF, ccfAddress); } COM: <s> p set the charging collection function ccf address p </s>
funcom_train/10655570
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetMinimumSpan01() { assertEquals(view.getPreferredSpan(View.X_AXIS), view.getMinimumSpan(View.X_AXIS), 0.000001f); assertEquals(view.getPreferredSpan(View.Y_AXIS), view.getMinimumSpan(View.Y_AXIS), 0.000001f); } COM: <s> tests code get minimum span code with default view setup </s>
funcom_train/36061571
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean waitUntilThreadTerminates( Thread thread, int timeLimitSeconds ){ // 1 -- Loop until the thread terminates int secondsAlive = 0; while( thread != null && thread.isAlive() && (timeLimitSeconds <= 0 || (secondsAlive < timeLimitSeconds))){ try{ Thread.sleep(1000); secondsAlive += 1; } catch(InterruptedException e){ //Ignore, we don't care if the thread is awoken. } } // 2 -- Determine if the thread was successfully terminated return thread != null && thread.isAlive(); } COM: <s> this method loops until the given thread completes </s>
funcom_train/3051032
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean isAggressiveReleaseNoTransactionCheck() { if ( releaseMode == ConnectionReleaseMode.AFTER_STATEMENT ) { return true; } else { boolean inAutoCommitState; try { inAutoCommitState = isAutoCommit(); } catch( SQLException e ) { // assume we are in an auto-commit state inAutoCommitState = true; } return releaseMode == ConnectionReleaseMode.AFTER_TRANSACTION && inAutoCommitState; } } COM: <s> modified version of </s>
funcom_train/51808959
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Enumeration list(HttpServletRequest request, String parameterName) throws PresentationException { VectorSortable ret = new VectorSortable(); try { for (Enumeration e=PrivilegeManager.getDefault().getAllPrivilegeNames().elements(); e.hasMoreElements();) { String priv = (String)e.nextElement(); StringSortable p = new StringSortable(priv); ret.addAscElement(p); } } catch (Exception ex) { throw new PresentationException(ex); } return ret.elements(); } COM: <s> return a list of privilege names as string </s>
funcom_train/7619552
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setBodyProvider(InputStream bodyProvider, int bodyLength) { if (!bodyProvider.markSupported()) { throw new IllegalArgumentException( "bodyProvider must support mark()"); } // Mark beginning of stream bodyProvider.mark(Integer.MAX_VALUE); ((BasicHttpEntityEnclosingRequest)mHttpRequest).setEntity( new InputStreamEntity(bodyProvider, bodyLength)); } COM: <s> supply an input stream that provides the body of a request </s>
funcom_train/5474994
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JTextField getTf_totalvendas() { if (tf_totalvendas == null) { tf_totalvendas = new JTextField(); tf_totalvendas.setBounds(new java.awt.Rectangle(239,466,130,30)); tf_totalvendas.setFont(new java.awt.Font("Dialog", java.awt.Font.BOLD, 24)); tf_totalvendas.setHorizontalAlignment(javax.swing.JTextField.CENTER); tf_totalvendas.setEditable(false); } return tf_totalvendas; } COM: <s> this method initializes j text field5 </s>
funcom_train/31804172
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean addNextDestinationIfNotDuplicated(String destinationURI){ // check params if( destinationURI == null || destinationURI.equals("") ){ // adding this destination does not make sense! return false; } // is the itinerary immutable? if( this.isMmutable() == false) return false; // check if the destination is already contained if( this.destinations.contains(destinationURI) == false ){ this.destinations.add(destinationURI); return true; } else return false; } COM: <s> adds a destination only if it is not already contained in this itinerary </s>
funcom_train/46281737
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void indexField(OmmsIdxField field, Document doc) { Field.Store str = Field.Store.YES; Field.Index idx = Field.Index.ANALYZED; if (!field.isStored()) { str = Field.Store.NO; } if (!field.isIndexed()) { idx = Field.Index.NOT_ANALYZED; } doc.add(new Field(field.name(), field.value(), str, idx)); m_idxDirty = true; } COM: <s> private method that indexes the given field with the given document </s>
funcom_train/25637428
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addReturnType(MethodDoc method, Content htmltree) { Type type = method.returnType(); if (type != null) { Content linkContent = new RawHtml(writer.getLink( new LinkInfoImpl(LinkInfoImpl.CONTEXT_RETURN_TYPE, type))); htmltree.addContent(linkContent); htmltree.addContent(writer.getSpace()); } } COM: <s> add the return type </s>
funcom_train/6433958
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void cleanup(){ //Make dirty false so cleanup isn't double run _dirty = false; //close the I/O streams and the sockets try { inStream.close(); outStream.close(); incomingSocket.close(); }catch (IOException ic) { ic.printStackTrace(); } //Decrement the current number of open connections so someone else may connect currentIncoming--; } COM: <s> closes data streams the socket and decrements the open connection counter </s>
funcom_train/24194725
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void sequencePolicySpawn() { /* First, create an ExecutionTask for all of the childre. */ for (ModelTask t : this.modelChildren) { this.executionChildren.add(t.createExecutor(this.getExecutor(), this)); } /* Then, spawn them all. */ for (ExecutionTask t : this.executionChildren) { t.addTaskListener(this); t.spawn(this.getContext()); } } COM: <s> carries out the spawning process when the policy is </s>
funcom_train/51699119
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Workflow createWorkflowInstance(String workflowDefinitionId, String version) throws WorkflowException { WorkflowPersistence persistence = getPersistenceFactory().createPersistence(); if (persistence == null) { throw new IllegalStateException("No WorkflowPersistence can be found, please use the " + "createWorkflowInstance(String workflowDefinitionId, String version, WorkflowPersistence persist) method"); } return createWorkflowInstance(workflowDefinitionId, version, persistence, null); } COM: <s> create a new workflow instance using default persistence </s>
funcom_train/40424162
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void save(String filename) { File file = new File(filename); String content = this.export(); try { FileWriter fw = new FileWriter(file); fw.write(content); fw.flush(); fw.close(); } catch (IOException e) { System.err.println("Error writing file: " + filename); } } COM: <s> save the graph to a filename </s>
funcom_train/37648546
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testDefaults() { RuleSets rs = new RuleSets(); assertNull("the default rule set should be null", rs.getDefaultRuleSet()); assertNotNull("the rule sets list should not be null", rs.getRuleSets()); assertEquals("The rule sets list should be empty", 0, rs.getRuleSets().size()); } COM: <s> test the defaults of a rule sets object </s>
funcom_train/6451772
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addInitialGoalsInTS() { for (Literal g: initialGoals) { g.makeVarsAnnon(); if (! g.hasSource()) g.addAnnot(BeliefBase.TSelf); getTS().getC().addAchvGoal(g,Intention.EmptyInt); } } COM: <s> includes all initial goals in the agent reasoner </s>
funcom_train/48054111
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getActiveCompositeNodeListenerCount() { if (compositeListeners == null) { return 0; } else { int count = 0; SELECTIONSTATUS status; for (CompositeTreeTableNode n : compositeListeners) { status = n.getSelectionStatus(); if (status == SELECTIONSTATUS.SELECTED || status == SELECTIONSTATUS.SELECTING || status == SELECTIONSTATUS.REVALIDATE) { count++; } } return count; } } COM: <s> determines the number of currently active composite nodes seleted </s>
funcom_train/3772219
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean needToCloseOutput(HttpMethod method) { if (!http11) { if ((method.isStreamedQuery()) && (method.getHeader("Content-Length") == null) && (method.needContentLength())) { return true; } else { return false; } } else { return false; } } COM: <s> return true if the connection should be closed after sending the </s>
funcom_train/29693483
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void receiveEntities(Packet c) { Vector<Entity> newEntities = (Vector<Entity>) c.getObject(0); Vector<Entity> newOutOfGame = (Vector<Entity>) c.getObject(1); // Replace the entities in the game. game.setEntitiesVector(newEntities); if (newOutOfGame != null) { game.setOutOfGameEntitiesVector(newOutOfGame); } } COM: <s> loads the entities from the data in the net command </s>
funcom_train/43326008
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: final static public String getCheckedAnnot(String seq, Printf outfile) { if (seq==null) return null; String raw = getRawAnnot(seq, outfile); // System.out.println("got raw "+raw); if (raw==null) return null; String doneSeq = getSequence(raw); // System.out.println("got seq "+doneSeq); if (doneSeq==null) return null; if (seq.compareTo(doneSeq) != 0) return null; return raw; } COM: <s> gets raw annot for a protein </s>
funcom_train/44415125
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void requestFile(byte[] fileHash){ this.addFileToStatusList(fileHash); this.setFileStatus(fileHash, eDonkeyPeer.FILE_REQUESTING); this.remonteConnection.sendPacket(eDonkeyPacketFactory.getFileRequestPacket(fileHash)); //this.remonteConnection.sendPacket(eDonkeyPacketFactory.getReqFileIDPacket(fileHash)); } COM: <s> check if peer have file </s>
funcom_train/1340522
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addChild(BrainInfo_ID child) { if (child == null) throw new IllegalArgumentException("Child cannot be null."); if (child.getParent() != null) { throw new IllegalArgumentException("Child cannot have multiple parents. Make a copy to include it in 2 trees."); } children.add(child); child.setParent(this); } COM: <s> add the given node to my children </s>
funcom_train/47946415
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getExtractLocationDataTemp() throws MotuException { if (extractFilenameTemp.length() <= 0) { return ""; } StringBuffer stringBuffer = new StringBuffer(); stringBuffer.append(Product.getExtractionPath()); stringBuffer.append(extractFilenameTemp); return stringBuffer.toString(); } COM: <s> gets the output temporary full file name with path </s>
funcom_train/29550337
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetNotebookUriSkeleton() { String expectedNotebookUriSkeleton = "http://" + MindRaider.profile.getHostname() + "/e-mentality/notebook#"; String actualNotebookUriSkeleton = MindRaiderVocabulary .getNotebookUriSkeleton(); assertEquals("actualNotebookUriSkeleton is: " + actualNotebookUriSkeleton, expectedNotebookUriSkeleton, actualNotebookUriSkeleton); } COM: <s> the get notebook uri skeleton test case </s>
funcom_train/11412748
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void collectUnwrappedInputInfo() { unwrappedElementsAndNames = new ArrayList<ParticleInfo>(); if (currentOperation.getInput() != null) { getElementsForParts(currentOperation.getInput(), unwrappedElementsAndNames); } for (ParticleInfo ean : unwrappedElementsAndNames) { inputParameterNames.add(ean.getJavascriptName()); } } COM: <s> visit the input message parts and collect relevant data </s>
funcom_train/3030737
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean addAll(Collection<? extends E> c) { SortedSet<Map.Entry<E, Object>> set = (SortedSet) c; SortedSet<Map.Entry> set2 = (SortedSet<Map.Entry>) c; SortedSet<Map.Entry<E, Object>> set3 = (SortedSet<Map.Entry<E, Object>>) c; } COM: <s> adds a feature to the all attribute of the more tests object </s>
funcom_train/20043106
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void _createPeer() { XWindowPeer the_win = (XWindowPeer) tEnv.getObjRelation("WINPEER"); XToolkit the_kit = (XToolkit) tEnv.getObjRelation("TOOLKIT"); oObj.createPeer(the_kit,the_win); tRes.tested("createPeer()",true); } COM: <s> the objects needed to create peer are obtained </s>
funcom_train/25331611
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void checkInitialized() { if (!initOK) { for (Mapping mapping : mappings) { ObjectType t = mapping.getTargetType(); if (t != null) { if (!this.objectTypeMappings.containsKey(t)) { this.objectTypeMappings.put(t, new MappingSet()); } this.objectTypeMappings.get(t).add((Mapping) mapping); } } } initOK = true; } COM: <s> this is a hack because mybatis seems to set mappings by reflection not </s>
funcom_train/13286553
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JMenuItem getJMenuItem2() { if (jMenuItem2 == null) { jMenuItem2 = new JMenuItem(); jMenuItem2.setText("Datenbank auswählen"); jMenuItem2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { OeffneDB dialog = new OeffneDB(_mainClass); dialog.setVisible(true); } }); } return jMenuItem2; } COM: <s> this method initializes j menu item2 </s>
funcom_train/2500587
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void createTabFolder() { GridData gridData2 = new GridData(); gridData2.verticalAlignment = GridData.FILL; gridData2.grabExcessHorizontalSpace = true; gridData2.grabExcessVerticalSpace = true; gridData2.horizontalSpan = 4; gridData2.horizontalAlignment = GridData.FILL; tabFolder = new TabFolder(this, SWT.NONE); tabFolder.setLayoutData(gridData2); tabFolder.setEnabled(false); } COM: <s> this method initializes tab folder </s>
funcom_train/25501281
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String makeRemoteAccessibleFileFromAlignment(String alignment, String fileName, String fileType) throws KADMOSFault { File tempFile = makeFileFromAlignment(alignment, fileName, fileType); String url = getAlignmentURLPrefix() + File.separator + tempFile.getName(); // Check availability of alignment file if (!isRemoteAccessibility(url)) throw new KADMOSFault("Could not create alignment file."); return url; } COM: <s> creates a remotely accessible file of a string representing an alignment </s>
funcom_train/20324613
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void closeNode(WordNode wn, boolean addToHistory) { try { LinkedHashMap<String ,LinkInformation> neighbours = new LinkedHashMap<String, LinkInformation>(); updateNodeLinks(wn, neighbours, false); wn.setNodeOpen(false); wn.makeFree(); }catch(Exception e){ e.printStackTrace(); } if (addToHistory) { history.add(0, new HistoryObject(HistoryObject.ACTION.CLOSE_NODE, wn.getWord())); } } COM: <s> close node with extra parameters </s>
funcom_train/13811379
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: @Test public void testCallerError() throws Throwable { try { this.init("testCallerError"); reset(); SIPAgent caller = createAgent("caller"); SIPAgent callee = createAgent("callee"); makeCall(); pause(1000); assertThat(caller, has(recvdRequest("INVITE"))); assertThat(callee, is(idle())); caller.sendResponse(180); pause(1000); assertThat(callee, is(idle())); caller.sendResponse(480); pause(1000); assertThat(callee, is(idle())); assertThat(caller, is(disconnected())); assertEquals(getState(), "disconnected"); } catch (Throwable e) { logger.error("test failed", e); throw e; } } COM: <s> test caller returning error </s>
funcom_train/46787038
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addContentPropertyDescriptor(Object object) { itemPropertyDescriptors .add(createItemPropertyDescriptor( ((ComposeableAdapterFactory) adapterFactory) .getRootAdapterFactory(), getResourceLocator(), getString("_UI_SourceCode_content_feature"), getString( "_UI_PropertyDescriptor_description", "_UI_SourceCode_content_feature", "_UI_SourceCode_type"), EZRealtimePackage.Literals.SOURCE_CODE__CONTENT, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the content feature </s>
funcom_train/3611847
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ResultSet execute () throws java.sql.SQLException { return executeQuery ("select Objeto.mensaje, Objeto.detallesMime, Objeto.uuid from Objeto, QueueSalida " + "where Objeto.id=QueueSalida.objeto and QueueSalida.destinacion=" + org.undp.opensite.core.sql.SQLUtils.sqlString (m_id) + "order by fecha;"); } COM: <s> executes the query </s>
funcom_train/3551150
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Integer ejbCreate(int mediaID, String title, String mediaType, int yearOfCreation) throws CreateException { setMediaItemID(new Integer(mediaID)); setTitle(title); setMediaType(mediaType); setYearOfCreation(yearOfCreation); return null; } COM: <s> creates a new media item entity bean </s>
funcom_train/44586893
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void processJavaDelta(IJavaElementDelta delta) { try { this.traverseDelta(delta, null, null); // traverse delta // reset project caches of projects that were affected Iterator iterator = this.projectsToUpdate.iterator(); while (iterator.hasNext()) { JavaProject project = (JavaProject) iterator.next(); project.resetCaches(); } } finally { this.projectsToUpdate = new HashSet(); } } COM: <s> converts a code iresource delta code rooted in a code workspace code into </s>
funcom_train/5597463
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void searchAgain() { if(lastSearch == null) return; if (h != null && h.length > 1) { index = index+1 < h.length ? index + 1 : 0; int offset = h[index].getStartOffset(); try { scrollRectToVisible(viewer.modelToView(offset)); } catch (BadLocationException e) {} } } COM: <s> search again could be used to select the next highlight and </s>
funcom_train/3154219
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void setUp() { _productManager = new ProductManager(); _product1 = new Product("product1", _prodName, _sceneWidth, _sceneHeight); _product2 = new Product("product2", _prodName, _sceneWidth, _sceneHeight); _product3 = new Product("product3", _prodName, _sceneWidth, _sceneHeight); } COM: <s> initializytion for the tests </s>
funcom_train/16706928
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void set(Config conf) { for (Map.Entry<Object, Object> e : conf.entrySet()) { Object val = e.getKey(); if (val == null || !val.equals(e.getValue())) { set((String) e.getKey(), (String) e.getValue()); } } } COM: <s> add the configuration object to this one </s>
funcom_train/46166361
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void connect() { if (btUrl == null || (btUrl.trim().compareTo("") == 0)) { isConnected = false; return; } try { conn = (StreamConnection) Connector.open(btUrl, Connector.READ_WRITE); in = new DataInputStream(conn.openInputStream()); isConnected = true; mode = 0; // wait form some tipe to allow connection to go trough Thread.sleep(1000); } catch (Throwable t) { error = "connect:" + t.toString(); close(); } } COM: <s> connect to the bluetooth device </s>
funcom_train/1773216
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testAddAndOperator_testIfFilterSet() { String filter = "ga:source=@google"; DataQuery dataQuery = TestUtil.getNewDataQuery(); dataQuery.setFilters(filter); Filter.addAndOperator(dataQuery); String expected = filter + ";"; assertTrue(expected.equals(dataQuery.getFilters())); } COM: <s> test adding an and operator if a filter is set </s>
funcom_train/26274787
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JSplitPane getJSplitPane() throws IOException { if (jSplitPane == null) { jSplitPane = new JSplitPane(); //jSplitPane.setBounds(13, 15, 411, 141); jSplitPane.setLeftComponent(getNavigationTree()); jSplitPane.setRightComponent(getResourcePanel()); } return jSplitPane; } COM: <s> this method initializes j split pane </s>
funcom_train/22429372
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JSlider getSliderThreadsPerHost() { if (sliderThreadsPerHost == null) { sliderThreadsPerHost = new JSlider(); sliderThreadsPerHost.setMaximum(Constant.MAX_HOST_CONNECTION); sliderThreadsPerHost.setMinimum(1); sliderThreadsPerHost.setValue(1); sliderThreadsPerHost.setPaintTicks(true); sliderThreadsPerHost.setPaintLabels(true); sliderThreadsPerHost.setMinorTickSpacing(1); sliderThreadsPerHost.setMajorTickSpacing(1); sliderThreadsPerHost.setSnapToTicks(true); sliderThreadsPerHost.setPaintTrack(true); } return sliderThreadsPerHost; } COM: <s> this method initializes slider threads per host </s>
funcom_train/215182
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JMenu createSubmenu(String text) { JMenu submenu = new JMenu(text); submenu.add(new JMenuItem("Item 1")); submenu.add(new JMenuItem("Item 2")); submenu.add(new JMenuItem("Item 3")); return submenu; } COM: <s> creates and answers a submenu labeled with the given text </s>
funcom_train/29548780
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Color getPaintTextColor(TGPanel tgPanel) { if (this == tgPanel.getSelect()) { // @todo driven by color profiles // @todo add this property to the node (each node may have different // text color) // return Color.BLACK; return Color.WHITE; } return textColor; } COM: <s> returns the paint text color for the given tg panel </s>
funcom_train/31874455
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Rectangle displayBox() { if (this.fFigures.size() > 0) { FigureEnumeration k = figures(); Rectangle r = k.nextFigure().displayBox(); while (k.hasMoreElements()) r.add(k.nextFigure().displayBox()); return new Rectangle( r.x - 10, r.y - 10, r.width + 20, r.height + 20); } return new Rectangle(0, 0, 100, 100); } COM: <s> gets the display box </s>
funcom_train/28329366
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected OptimisticConcurrencyException covertOptimisticException(final ObjectOptimisticLockingFailureException e) { //propagate a NexOpen exception for have the oportunity to //handle in a agnostic implementation (Hibernate3 or JPA) final Throwable thr = e.getRootCause(); final String pcn = e.getPersistentClassName(); return new OptimisticConcurrencyException("Optimistic concurrency strategy for write-write conflict for "+pcn, thr); } COM: <s> p coverts a spring </s>
funcom_train/38725846
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isA(Platform p) { if (p != null && p.getId() != null && id != null && p.getId().equals(ANY)) return true; return p != null && id.toString().startsWith(p.getId().toString()); } COM: <s> returns whether this instance is the given platform </s>
funcom_train/46092706
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int getOperatorPriority(Character operator) { Iterator i=getOperators().iterator(); i.next(); //skip int prio=0; while (i.hasNext()) { prio++; if (((String)i.next()).indexOf(operator.toString())>-1) return prio; } return 0; } COM: <s> returns operators priority higher number is higher priority </s>
funcom_train/3986496
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public float bezierTangent(float a, float b, float c, float d, float t) { return (3*t*t * (-a+3*b-3*c+d) + 6*t * (a-2*b+c) + 3 * (-a+b)); } COM: <s> provide the tangent at the given point on the bezier curve </s>
funcom_train/3381314
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getCipherSuite () { if (cachedResponse != null) { return ((SecureCacheResponse)cachedResponse).getCipherSuite(); } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return ((HttpsClient)http).getCipherSuite (); } } COM: <s> returns the cipher suite in use on this connection </s>
funcom_train/22233043
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void getStencilOp(int[] stencilOps) { if (isLiveOrCompiled()) { if (!this.getCapability(ALLOW_STENCIL_ATTRIBUTES_READ)) { throw new CapabilityNotSetException(J3dI18N.getString("RenderingAttributes17")); } } ((RenderingAttributesRetained)this.retained).getStencilOp(stencilOps); } COM: <s> retrieves the current set of stencil operations and copies them </s>
funcom_train/18836071
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void statusUpdate(Long jobID, int state) { int index = this.sessions.indexOf(jobID); String name = this.cgSession.getString(index); name = name.substring(0, name.indexOf('<')!=-1 ? name.indexOf('<')-1 : name.length()); this.cgSession.set(index, name + " <" + LiteStatus.STATES[state] + ">", null); } COM: <s> state has changed update the item </s>
funcom_train/14235580
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object obj) { if (!(obj instanceof UUID)) { return false; } byte[] otherBinaryValue = ((UUID) obj).getValue(); byte[] myBinaryValue = this.getValue(); for (int counter = 0; counter < UUID_LEN; counter++) { if (otherBinaryValue[counter] != myBinaryValue[counter]) { return false; } } return true; } COM: <s> compares for equality </s>
funcom_train/21952057
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void back() { if (inBeginningState()) return; else { String newState = getBackState(mState); if (newState != null) { //checkStateTransition(mState, newState); mState = newState; editorPane.loadState(newState); } } } COM: <s> goes back a state </s>
funcom_train/33848449
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int compare(String lKey, String rKey) { int lCat = categoryOf(lKey); int catDiff = lCat - categoryOf(rKey); if (catDiff != 0 || lCat != 0) return catDiff; // if we get this far we have two unrecognized strings return lKey.compareTo(rKey); } COM: <s> returns a negative integer zero or a positive integer as the left </s>
funcom_train/21014677
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private KnotworkGraph initGraph03() { KnotworkGraph graph = new KnotworkGraph(); // first nodes KnotworkNode n1 = new KnotworkNode(100, 200); KnotworkNode n2 = new KnotworkNode(200, 200); KnotworkNode n3 = new KnotworkNode(75, 92); graph.addVertex(n1); graph.addVertex(n2); graph.addVertex(n3); // then create edges graph.createEdge(n3, n1, Type.UP); graph.createEdge(n2, n1, Type.UP); graph.update(); return graph; } COM: <s> create a graph with 3 nodes and 2 edges forming a l shape </s>
funcom_train/44129307
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void startProcess(String command) throws IOException { logger.debug("executing " + command); p = Runtime.getRuntime().exec(command); ist = new StreamPrinterThread(p.getInputStream()); est = new StreamPrinterThread(p.getErrorStream()); ist.start(); est.start(); } COM: <s> starts a process executing a command </s>
funcom_train/2903048
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void relayData(JXGroup grp, String data){ if((grp==null) || (data==null)){ return; } JXRequest[] req = new JXRequest[1]; JunkTask jt = (JunkTask)JunkSupportedTask.getTaskDescription(JunkSupportedTask.BROADCAST_USER); Vector v = new Vector(3); v.add(grp.getHostName()); v.add(new Integer(grp.getPort())); v.add(data); jt.setParam(v); req[0] = new JXRequest(JunkSupportedTask.JUNK_ID, jt); makeRequest(req); } COM: <s> send a relay broadcast from another source </s>
funcom_train/33792304
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toASCIIString() { StringBuilder sb = new StringBuilder(); sb.append(itsFullPathURI.toASCIIString()); if (!itsOptions.isEmpty()) { sb.append("["); int entry = 0; for (Entry<String, String> m : itsOptions.entrySet()) { if (entry++ > 0) sb.append("; "); sb.append(m.getKey()); sb.append("="); sb.append(m.getValue()); } sb.append("]"); } return sb.toString(); } COM: <s> converts the extended uri back to string format </s>
funcom_train/24089283
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addCharacterisationWorkflowResultItem(DigitalObject inputDigo, List<String> characterisation, long startTime, long endTime, String logInfo){ WorkflowResultItem item = new WorkflowResultItem(WorkflowResultItem.SERVICE_ACTION_CHARACTERISATION,startTime,endTime,logger); item.setInputDigitalObject(inputDigo); if((characterisation!=null)&&(characterisation.size()>0)){ item.setExtractedInformation(characterisation); } item.addLogInfo(logInfo); } COM: <s> document a characterisation specific workflow result item </s>
funcom_train/16626130
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Dimension getLayoutSize(Dimension cell, Container parent) { calculateLayout(); Insets is = parent.getInsets(); int w = (columns - 1) * vgap + columns * cell.width + is.left + is.right; int h = (rows - 1) * hgap + rows * cell.height + is.top + is.bottom; return new Dimension(w, h); } COM: <s> private utility function used to calculate a dimension based on a given </s>
funcom_train/566766
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public GroupReplyList write_attribute_reply(final int rid, final int tmo) throws DevFailed { final Integer rid_obj = new Integer(rid); final Boolean fwd = (Boolean) arp.get(rid_obj); if (fwd == null) { Except.throw_exception("API_BadAsynPollId", "Invalid asynch. request identifier specified", "Group.write_attribute_reply"); } arp.remove(rid_obj); return write_attribute_reply_i(rid, tmo, fwd.booleanValue()); } COM: <s> write attribute reply </s>
funcom_train/28777107
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int lastIndexOf( LuaString s ) { final int slen = s.length(); final int limit = m_offset + m_length - slen; for ( int i = limit; i >= m_offset; --i ) { if ( equals( m_bytes, i, s.m_bytes, s.m_offset, slen ) ) { return i; } } return -1; } COM: <s> find the last index of a string in this string </s>
funcom_train/37227927
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Message readTitleSummaryMessage() throws IOException, XmlPullParserException { // Create the message and initialize its members TitleSummaryMessage message = new TitleSummaryMessage(); // Now read the TitleSummary message.setTitleSummary(readTitleSummary()); // Make sure that the last tag is </message> parser.nextEndTag(MSG_NS, "message"); return message; } COM: <s> reads a title summary message </s>
funcom_train/44165427
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setAvailable(Nation nation, NationState state) { freeColClient.getGame().getNationOptions() .getNations().put(nation, state); freeColClient.getClient() .sendAndWait(DOMMessage.createMessage("setAvailable", "nation", nation.getId(), "state", state.toString())); } COM: <s> sets a nations state </s>
funcom_train/8039617
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetSetTitle() { HTMLLayout layout = new HTMLLayout(); assertEquals("Log4J Log Messages", layout.getTitle()); layout.setTitle(null); assertNull(layout.getTitle()); String newTitle = "A treatise on messages of log persuasion"; layout.setTitle(newTitle); assertEquals(newTitle, layout.getTitle()); } COM: <s> tests get title and set title </s>
funcom_train/50913825
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setString(String s) throws RuntimeException { CMLScalar scalar = (CMLScalar) this.getChildCMLElement(CMLScalar.TAG, 0); if (scalar == null) { scalar = new CMLScalar(s); this.appendChild(scalar); } else { scalar.setXMLContent(s); } } COM: <s> sets string value </s>
funcom_train/8310987
/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 Double.valueOf(o.toString()).doubleValue(); } catch (Exception e) { throw new JSONException("JSONArray[" + index + "] is not a number."); } } COM: <s> get the double value associated with an index </s>
funcom_train/2878091
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String shortName() throws RemoteException { Object key; if (owner.sfParent() == null) { key = SFProcess.getProcessCompound().sfAttributeKeyFor(this); } else { key = owner.sfParent().sfAttributeKeyFor(this); } if (key != null) { return key.toString(); } else { return null; } } COM: <s> get the short name of a component </s>
funcom_train/29538342
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getJButtonMessages() { if (jButtonMessages == null) { jButtonMessages = new JButton(); jButtonMessages.setIcon(new ImageIcon(getClass().getResource("/g/notes.png"))); jButtonMessages.setToolTipText("Configure message routing and display"); jButtonMessages.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { commandDispatcher.dispatch(CommandDispatcher.Command.SHOW_PREFS4MSGS_DIALOG); } }); } return jButtonMessages; } COM: <s> this method initializes j button messages </s>
funcom_train/21214643
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void makeClientHandlerPool(PoolConfig opConfig) throws Exception { logger.finer("Creating ClientHandler pool"); PoolableObjectFactory factory = new ClientHandlerObjectFactory(getBlockingMode()); clientHandlerPool = poolManager.makeClientHandlerPool(factory, opConfig); poolManager.initPool(clientHandlerPool, opConfig); clientHandlerPool = makeQSObjectPool(clientHandlerPool); clientIdentifier.setClientHandlerPool((QSObjectPool)clientHandlerPool); } COM: <s> makes the pool of client handler </s>
funcom_train/50923812
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void deleteColumn(int col) { int ncols = getColumnCount(); if (col >= 0 && col < ncols) { Elements rows = this.getChildElements(CIFRow.TAG); for (int i = 0; i < rows.size(); i++) { CIFRow row = (CIFRow) rows.get(i); CIFTableCell cell = (CIFTableCell) row.getChildElements(CIFTableCell.TAG).get(col); cell.detach(); } List<String> names = this.getNameList(); names.remove(col); setNames(names); } } COM: <s> delete a given column </s>
funcom_train/25188453
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetDescription() throws Exception { System.out.println("getDescription"); JSchema instance = new JSchema(); assertNull(instance.getDescription()); instance.setDescription("aaa"); assertEquals("aaa", instance.getDescription()); instance.setDescription(null); assertNull(instance.getDescription()); } COM: <s> test of get description method of class jschema </s>
funcom_train/32057382
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetMoveable() { System.out.println("testSetMoveable"); jgraph.setMoveable( true ); boolean b = jgraph.isMoveable(); assertEquals( b, true ); jgraph.setMoveable( false ); b = jgraph.isMoveable(); assertEquals( b, false ); } COM: <s> test of set moveable method of class jgraph </s>
funcom_train/13551663
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected int loadZeroY(int addr) { int tmp; load(addr); // read from address addr+=regY; // add index register clock(); // 3 tmp=load(addr & 0xff); // read from effective address * clock(); // 4 // *= page boundary crossing are not handled return tmp; } COM: <s> load zero y page addressing mode </s>
funcom_train/64662
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setContentAt(int col, int row, Object value) { doSetContentAt(col, row, value); for (int i = 0; i < modelChangeListeners.size(); i++) { ModelChangeListener listener = (ModelChangeListener)modelChangeListeners.get(i); listener.modelChanged(col, row, value); } } COM: <s> calls the method code do set content at int int object code </s>
funcom_train/17205649
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isLive(ObjectReference object) { if (object.isNull()) return false; if (Space.isInSpace(SS.SS0, object)) return SS.hi ? SS.copySpace0.isLive(object) : true; if (Space.isInSpace(SS.SS1, object)) return SS.hi ? true : SS.copySpace1.isLive(object); return super.isLive(object); } COM: <s> return true if code obj code is a live object </s>
funcom_train/15941071
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void setup() { // Get agent arguments Object[] args = getArguments(); if (args != null) { if (args.length == 4) { _iterations = Integer.valueOf(args[1].toString()); _fatherName = args[2].toString(); _perfInstance = args[3].toString(); _finalItinerary = new LinkedList<AID>(); addBehaviour(new ControlCode()); } else help(); } else help(); } COM: <s> method to initialise the agent </s>
funcom_train/11533206
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addSourceDir(int scriptingEngine, String sourceDir) { CopyOnWriteArrayList<String> dirs = _sourceDirs.get(scriptingEngine); if (dirs == null) { dirs = new CopyOnWriteArrayList<String>(); _sourceDirs.put(scriptingEngine, dirs); } dirs.add(sourceDir); } COM: <s> add a new source dir for the corresponding scripting engine </s>
funcom_train/17933609
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double optDouble(String key, double defaultValue) { Object o = opt(key); if (o != null) { if (o instanceof Number) { return ((Number)o).doubleValue(); } try { return new Double((String)o).doubleValue(); } catch (Exception e) { return defaultValue; } } return defaultValue; } COM: <s> get an optional double associated with a key or the </s>
funcom_train/12831754
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void controlChanged(Widget widget) { if (widget == signDocument || widget == signSelection) { signXPathLabel.setEnabled(false); signXPathText.setEnabled(false); } else if (widget == signXPath) { signXPathLabel.setEnabled(true); signXPathText.setEnabled(true); } } COM: <s> updates widgets after controls have changed </s>
funcom_train/28151835
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: @Override public String toString() { String s="<"; for(int i=0; i<atoms.size(); i++) { if (i!=0) s=s+", "; s=s+atoms.get(i); } return s+">"; } COM: <s> provides a human readable description of this alloy tuple </s>
funcom_train/50530087
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void configureLog4jProxy() { // Configure log4j to log through this utility class Properties proptemp = new Properties(); proptemp.setProperty("log4j.rootLogger", "ALL, proxy"); // Register our special appender which will send all // log messages to this class proptemp.setProperty("log4j.appender.proxy", ProxyLogAppender.class.getName()); PropertyConfigurator.configure(proptemp); } COM: <s> configures log4j to log through this factory </s>
funcom_train/17773113
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Class getCustomizerClass(Class beanClass) throws ClassNotFoundException { String className = beanClass.getName(); className = className.replaceFirst("Bean$", ""); className = className.concat("Customizer"); return Class.forName(className); } COM: <s> gets the customizer class attribute of the bean set customizer object </s>
funcom_train/25764878
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public double dotProduct(double[] x, double[] y) { if (x.length != y.length) { throw new IllegalArgumentException( "The arrays have a different length: " + x.length + " != " + y.length); } double ret = 0; for (int i = 0; i < x.length; i++) { ret += x[i] * y[i]; } return ret; } COM: <s> the dot product between two vectors x and y is defined by </s>
funcom_train/22183646
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Long getUnsignedLong(int offset) { try{ Long l = 0L; l = u.mergeToUnsignedLong(this, offset, 4); //System.out.println("L: "+l); return l; }catch(NdmnException e){ System.err.println(e); return null; }catch(ArrayIndexOutOfBoundsException e){ System.err.println(e); return null; } } COM: <s> get a long value from offset of the internal byte array </s>