__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/28118835
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void selectPart(MouseEvent mouseEvent) { pickCanvas.setShapeLocation(mouseEvent); PickResult picked = null; Part part = null; // Get picked part picked = pickCanvas.pickClosest(); if (picked != null) { SceneGraphPath pickedPath = picked.getSceneGraphPath(); part = getPickedPart(pickedPath); } if (part != null) { part.setColour( Environment.getPalette().getCurrentColour() ); } else { } } COM: <s> subclasses shall implement this update function </s>
funcom_train/22673701
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void fireTreeStructureChanged(TreePath treePath) { int len = treeModelListeners.size(); TreeModelEvent e = new TreeModelEvent(this, treePath); for (int i = 0; i < len; i++) { ((TreeModelListener) treeModelListeners.elementAt(i)).treeStructureChanged(e); } } COM: <s> the only event raised by this model is tree structure changed with the </s>
funcom_train/26385089
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void store() { String project; validateProjects(openProjects); Iterator iter = openProjects.iterator(); int cnt = 1; while (iter.hasNext()) { project = (String) iter.next(); Jext.setProperty(OPEN_PROJECTS + cnt++, project); } validateProjects(recentProjects); iter = recentProjects.iterator(); cnt = 1; while (iter.hasNext()) { project = (String) iter.next(); Jext.setProperty(RECENT_PROJECTS + cnt++, project); } Jext.saveXMLProps("Saved by ProjectMaster plugin"); } COM: <s> write the open and recent projects to disk validating each before storing </s>
funcom_train/11125087
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void hardShutdown() throws IOReactorException { synchronized (this.statusMutex) { if (this.status == IOReactorStatus.SHUT_DOWN) { // Already shut down return; } this.status = IOReactorStatus.SHUT_DOWN; } closeNewChannels(); closeActiveChannels(); processClosedSessions(); } COM: <s> attempts force shutdown of this i o reactor </s>
funcom_train/17905205
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void dockedTabReleased(DockedDragEvent e) { if (listeners == null || listeners.size() == 0) { return; } for (int i = 0, k = listeners.size(); i < k; i++) { listeners.get(i).dockedTabReleased(e); } desktopMediator.fireDockedTabReleased(e); } COM: <s> propagates a tab released event to registered </s>
funcom_train/51556746
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Resource getOpenCmsResourcByPath(final String path) { Resource resource = null; try { CmsFile file = null; file = this.adminCms.readFile(path); resource = new ByteArrayResource(file.getContents()); } catch (final CmsException e) { LOG.info("Cannot reading File: " + path); } return resource; } COM: <s> get the content of a open cms resource </s>
funcom_train/39314636
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testCancelActionPerformed() { System.out.println("testCancelActionPerformed"); //ff=new TerpPaint(true); preferences myPrefs=new preferences(ff, true); String s=new String("l"); ActionEvent myEvent=new ActionEvent(s, 1, "hello"); //mypreferences.initComponents(); myPrefs.cancelActionPerformed(myEvent); assertEquals(myPrefs.isVisible(),false); } COM: <s> test of cancel action performed method of class preferences </s>
funcom_train/2579845
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Comparable getSectionKey(int section) { Comparable key = null; if (this.dataset != null) { if (section >= 0 && section < this.dataset.getItemCount()) { key = this.dataset.getKey(section); } } if (key == null) { key = new Integer(section); } return key; } COM: <s> returns a key for the specified section </s>
funcom_train/22232327
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setPlaneT(Vector4f planeT) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_PLANE_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("TexCoordGeneration6")); if (isLive()) ((TexCoordGenerationRetained)this.retained).setPlaneT(planeT); else ((TexCoordGenerationRetained)this.retained).initPlaneT(planeT); } COM: <s> sets the t coordinate plane equation </s>
funcom_train/47275801
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeItem(final String theName) { int n = _myRadioToggles.size(); for (int i = 0; i < n; i++) { if (((Toggle) _myRadioToggles.get(i)).name().equals(theName)) { ((Toggle) _myRadioToggles.get(i)).removeListener(this); _myRadioToggles.remove(i); } } updateValues(false); } COM: <s> remove an item from the radio button check box list </s>
funcom_train/42181121
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setScaleDistance(Float scaleDistance) { if (scaleDistance != this.scaleDistance) { Float oldScaleDistance = this.scaleDistance; this.scaleDistance = scaleDistance; this.propertyChangeSupport.firePropertyChange( Property.SCALE_DISTANCE.toString(), oldScaleDistance, scaleDistance); } } COM: <s> sets the scale distance of the background image </s>
funcom_train/23713787
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void restart() { AFPropertyMsg msg = new AFPropertyMsg(ROLE_RESTART_MSG, true); msg.setReceiverRole(new ActorAddress(schedulerData.getActorDomainName(), "ActorDomain")); schedulerData.getDefaultScheduler().output(msg, null); } COM: <s> soft restarting of the application </s>
funcom_train/36770375
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addUser(String userName) { if (userName == null || userName.length() < 1) { Message.displayMessage("Name cannot be blank", "Test Tracker", JOptionPane.WARNING_MESSAGE); return; } Name name = new Name(userName); if (!adminController.hasUserName(name)) { setSelectedUser(new User(name)); adminController.addUser(name); } else { Message.displayMessage("Name already exists!", "Test Tracker", JOptionPane.WARNING_MESSAGE); } } COM: <s> attempts to add a user </s>
funcom_train/26556906
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object load(Class type, Object id) { Database db = null; Object o = null; try { db = getDatabase(); db.begin(); o = db.load(type, id); db.commit(); } catch (Exception ex) { throw new JDOException("jdo.loadError", new Object[]{type.getName(), id}, ex); } finally { closeDatabase(db); } return o; } COM: <s> load object from database using </s>
funcom_train/26385585
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setElementClass(Class<?> elementClass) { for (int c = 0; c < elementClasses.size(); c++) { if (elementClasses.get(c) == elementClass) { typeList.setSelectedIndex(c); typeList.scrollRectToVisible(typeList.getCellBounds(c, c)); return; } } } COM: <s> set the class for the element </s>
funcom_train/26222074
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void runStartup() { // Init status object. if (null == status) { status = new AgentopiaMarketStatus(); status.exitList = exitList; status.serviteurList = serviteurList; status.agentList = agentList; } // Start serviteurs if they can. for (IAgentopiaServiteur serviteur : serviteurList) { startServiteur(serviteur); } // The flag for running/not running. Killed by shutdown. isThreadRunning = true; } COM: <s> starts the thread run by starting the status object and the serviteurs </s>
funcom_train/24918707
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Transition getTransition(String Id) { Transition tra = getTransitions().getTransition(Id); if (tra == null) { Iterator it = getActivitySets().toElements().iterator(); while (it.hasNext()) { ActivitySet as = (ActivitySet) it.next(); tra = as.getTransition(Id); if (tra != null) { break; } } } return tra; } COM: <s> returns the transition object the member of this elements transitions collection </s>
funcom_train/47138396
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int update(final Settlement settlement) { Object[] params = new Object[] { settlement.getFinancialYear(), new Integer(settlement.getStatus()), new Double(settlement.getOpeningBalance()), settlement.getDescription(), settlement.getCreated(), settlement.getLastChanged(), new Long(settlement.getId()) }; return update(params); } COM: <s> update settlement in database </s>
funcom_train/31466760
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Action getAction(String key) throws MissingListenerException { Action [] actions = getActions(); for (int i = 0; i < actions.length; i++) { if (actions[i].getValue(Action.NAME).equals(key)) { return actions[i]; } } return (Action)this.actions.get(key); } COM: <s> returns the action associated with the given string </s>
funcom_train/46578565
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void provide(final ProcessNode processNode) { EventQueue.invokeLater(new Runnable() { public void run() { if (panel == null || processNode == null) { getInstanceContent().set(Collections.EMPTY_LIST, null); } else { Collection collection = new Vector(); collection.add(processNode); getInstanceContent().set(collection, null); } } }); } COM: <s> provides a process node on the global lookup so that actions are enabled </s>
funcom_train/458758
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String lastCommand() { if (lastCommand == null) return "N/A"; StringBuilder str = new StringBuilder(lastCommand).append("\n"); for (String s : lastSql) str.append(s).append("\n"); return str.toString(); } COM: <s> returns last call to util db routines executed by this instance of </s>
funcom_train/27758985
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void dispose() { while (!isShown) { try { Thread.sleep(100); } catch (Exception e) { // Ignore exceptions here } } wasManualDispose = true; dialog.dispose(); /* Component comp = message[0]; if (comp != null) { while (comp.getParent() != null && !(comp.getParent() instanceof Dialog)) { comp = comp.getParent(); } if (comp != null) { wasManualDispose = true; ((Dialog)comp.getParent()).dispose(); } } */ } COM: <s> disposes the window </s>
funcom_train/39947073
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void SetLogLevel(Integer NewLevel) { CurrentLogLevel = NewLevel; Configuration.SetServerProperty(Plugin.PROPERTY_LOGLEVEL, NewLevel.toString()); Configuration.SaveProperties(); System.out.println("PR: Setting loglevel to " + NewLevel.toString()); } COM: <s> set the current log level </s>
funcom_train/41503226
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void onAuthenticationRequestComplete(String info) { //#debug //# System.out.println("request ok: " + info); if (ServiceConnectionKSoap.OPERATION == ServiceConnectionKSoap.OPERATION_LOGIN) { this.controller.setLoggedIn(true); } else if (ServiceConnectionKSoap.OPERATION == ServiceConnectionKSoap.OPERATION_LOGOUT) { this.controller.exit(); } } COM: <s> called when a valid result is retrieved from the </s>
funcom_train/19387264
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Component getMenuComponent(int n) { int addIndex = (int)(n / m_wrapCount); int addSubIndex = (n % m_wrapCount); JMenu menu = (JMenu)m_addToMenus.get(addIndex); return menu.getMenuComponent(addSubIndex); }//}}} //{{{ getMenuComponentCount() COM: <s> returns the the component in this menu or a submenu </s>
funcom_train/4285499
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addIsSingletonPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Component_isSingleton_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Component_isSingleton_feature", "_UI_Component_type"), ComponentsPackage.Literals.COMPONENT__IS_SINGLETON, true, false, false, ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the is singleton feature </s>
funcom_train/3381708
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String pwd() throws IOException { String answ; issueCommandCheck("PWD"); /* * answer will be of the following format : * * 257 "/" is current directory. */ answ = getResponseString(); if (!answ.startsWith("257")) throw new FtpProtocolException("PWD failed. " + answ); return answ.substring(5, answ.lastIndexOf('"')); } COM: <s> print working directory of remote ftp server </s>
funcom_train/46144461
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ArrayOfBookingTime getQueryWSRequestBookingTime(BookingRequest request) { // CentralBookingWS centralBookingWS = new CentralBookingWS(); // ICentralBookingWS ws = centralBookingWS.getBasicHttpBindingICentralBookingWS(); try { return elvisWebService.getBookingTime(request); // return ws.getBookingTime(request); } catch (ICentralBookingWSGetBookingTimeICFaultFaultFaultMessage ex) { log.error(ex.getMessage(), ex); return null; } } COM: <s> used to retrieve a certain </s>
funcom_train/2853979
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setHolder(Holder h) { holder = h; // null is acceptable if (holder == null) doc = null; else doc = holder.getDocument(); for (int i = 0; i < nodes.size(); i++) { ((Node)nodes.get(i)).setHolder(h); } } COM: <s> change the immediate parent of this list here and in </s>
funcom_train/18254667
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void populate() { for (int i = 0; i < cells.length; i++) { cells[i] = (Node) getContext().getPrototype().clone(); cells[i].setCoordinate(new Coordinate1DDiscrete(i)); } //todo, ensure that unsupportedoperation exceptions are properly thrown collection = Arrays.asList(cells); } COM: <s> populates the space with clones of the prototype agent </s>
funcom_train/51616010
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Iterator getAttributeKeys() throws ReadError { try { Iterator<Object> raw_attributes = new EnumerationIterator(directory.getAttributes("").getIDs()); return new ExcludeIterator<Object>(raw_attributes, "objectClass"); } catch (NamingException exp) { throw new ReadError(exp.toString()); } } COM: <s> return all the valid keys for attributes of this representation </s>
funcom_train/10626703
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testClear() { /* * // Create BeanContext instance BeanContextSupport sup = new * BeanContextSupport(); // Add a child and then clear sup.add(new * Object()); sup.clear(); * * if (!sup.isEmpty()) { fail("The collection of children should be * empty"); } */ } COM: <s> test method clear with no parameters </s>
funcom_train/17828212
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public SQLStatement (String keywords) { this.statement = keywords; String []words = keywords.split("\\s"); this.keyword = words[0]; SQLStatement prevWord = this; for (int i = 1; i < words.length; i++) { prevWord.nextKeyword = new SQLStatement(); prevWord.nextKeyword.keyword = words[i]; prevWord = prevWord.nextKeyword; } } COM: <s> creates a new sqlstatement </s>
funcom_train/34353247
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Model ontologyImportsStatements() { Resource owlOntology = ResourceFactory.createResource(namespaceURI + "owlOntology"); Model model = ModelFactory.createDefaultModel(); model.add(model.createStatement(owlOntology, RDF.type, OWL.Ontology)); model.add(model.createStatement(owlOntology, OWL.imports, owlOntology)); return model; } COM: <s> creates and returns a model containing the statements about importing the owl ontology </s>
funcom_train/18149940
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setBatchTotalNumber(SET<INT> batchTotalNumber) { if(batchTotalNumber instanceof org.hl7.hibernate.ClonableCollection) batchTotalNumber = ((org.hl7.hibernate.ClonableCollection<SET<INT>>) batchTotalNumber).cloneHibernateCollectionIfNecessary(); _batchTotalNumber = batchTotalNumber; } COM: <s> sets the property batch total number </s>
funcom_train/44593198
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean hasPureAnnotation(IMethodBinding methodBinding) { IAnnotationBinding[] annotations = methodBinding.getAnnotations(); for(IAnnotationBinding annotation : annotations) { String typeName = annotation.getAnnotationType().getQualifiedName(); if (typeName.equals(PURE_ANNOTATION_TYPE_NAME) || typeName.equals(MODEL_FIELD_ANNOTATION_TYPE_NAME) || typeName.equals(MODEL_METHOD_ANNOTATION_TYPE_NAME)) return true; } return false; } COM: <s> returns true if method has the </s>
funcom_train/45334021
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public MessageHeader toMessageHeader() { MessageHeader header = new MessageHeader(); header.setSendingFacility(this.getSendingFacility()); header.setSendingApplication(this.getSendingApplication()); header.setReceivingFacility(this.getReceivingApplication()); header.setReceivingApplication(this.getReceivingFacility()); header.setMessageCode(this.getMessageCode()); header.setTriggerEvent(this.getTriggerEvent()); header.setMessageStructure(this.getMessageStructure()); header.setMessgeDate(DateUtil.convertHL7DateToCalender(this .getMessagedate())); return header; } COM: <s> populates code message header code from this hl7 header </s>
funcom_train/13196620
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void textAppend(String string, SimpleAttributeSet simpleAttributeSet) { try { lsd.insertString(lsd.getLength(), string, simpleAttributeSet); scrollPane.getVerticalScrollBar().setValue(scrollPane.getVerticalScrollBar().getMaximum()); } catch (BadLocationException e) { /* ignore */ } } COM: <s> method text append </s>
funcom_train/46058865
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Controller createWysiwygController(UserRequest ureq, WindowControl windowControl, VFSContainer rootContainer, String chosenFile) { return WysiwygFactory.createWysiwygControllerWithInternalLink(ureq, windowControl, rootContainer, chosenFile, getUserActivityLogger(), internalLinkTreeModel); } COM: <s> creates a controller with internal link support </s>
funcom_train/23403375
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addInteractionScenePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_IS2Action_interactionScene_feature"), getString("_UI_PropertyDescriptor_description", "_UI_IS2Action_interactionScene_feature", "_UI_IS2Action_type"), OLCLMapPackage.Literals.IS2_ACTION__INTERACTION_SCENE, true, false, true, null, null, null)); } COM: <s> this adds a property descriptor for the interaction scene feature </s>
funcom_train/39315596
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSquare3ActionPerformed() { System.out.println("testSquare3ActionPerformed"); f.square3ActionPerformed(actionEvent); assertEquals(f.toolBrush.getBrushType(), f.toolBrush.SQUARE3); //assertEquals(f.curBrush,f.square3); //t.square3ActionPerformed(actionEvent); //assertEquals(t.curBrush,t.square3); } COM: <s> test of square3 action performed method of class terp paint </s>
funcom_train/40359588
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testAuthenticateNoAuthenticationManger() throws Exception { instantiator.addConnector(connectorName, new MockConnector(null, null, null, null)); AuthenticationResponse response = manager.authenticate(connectorName, identity); assertNotNull(response); assertFalse(response.isValid()); assertNull(response.getData()); assertNull(response.getGroups()); } COM: <s> test authenticate with no authentication manager </s>
funcom_train/1844732
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void notifyListeners(final PortableTagFilter.Tag t) { List<PortableTagFilter.Listener> list = listenersByTagName.get("*"); if (list != null) { final Iterator<PortableTagFilter.Listener> i = list.iterator(); while (i.hasNext()) i.next().process(t); } list = listenersByTagName.get(t.name.toLowerCase()); if (list != null) { final Iterator<PortableTagFilter.Listener> i = list.iterator(); while (i.hasNext()) i.next().process(t); } } COM: <s> called when a tag parse is completed to notify all listeners interested </s>
funcom_train/4209652
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void accountCreationSuccessful() { registered = true; JOptionPane.showMessageDialog(this, Res.getString("message.account.created"), Res.getString("title.account.created"), JOptionPane.INFORMATION_MESSAGE); dialog.dispose(); } COM: <s> called if the account was created succesfully </s>
funcom_train/36852932
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void login(Properties props) throws IOException { synchronized (this) { if (connectionStateChanging || clientConnection != null) { RuntimeException re = new IllegalStateException( "Session already connected or connecting"); logger.logThrow(Level.FINE, re, re.getMessage()); throw re; } connectionStateChanging = true; } ClientConnector connector = ClientConnector.create(props); connector.connect(connListener); } COM: <s> initiates a login session with the server </s>
funcom_train/10863566
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean removeFacetField(String name) { boolean b = this.remove(FacetParams.FACET_FIELD, name); if (this.get(FacetParams.FACET_FIELD) == null && this.get(FacetParams.FACET_QUERY) == null) { this.setFacet(false); } return b; } COM: <s> remove a facet field </s>
funcom_train/10666508
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Result testIncorrectIndexNames() { try { CompositeType compositeType = CompositeDataSupportTest .getCompositeType(); new TabularType("specific type", "description", compositeType, new String[] { "random value" }); assertTrue(false); } catch (OpenDataException e) { } return result(); } COM: <s> verify that tabular type verifies that index names exist in composite type </s>
funcom_train/12760887
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected JRootPane createRootPane() { KeyStroke stroke = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0); JRootPane rootPane = new JRootPane(); rootPane.registerKeyboardAction( new ActionListener() { public void actionPerformed (ActionEvent ev) { if (onClose()) { choice = CLOSED_OPTION; setVisible(false); } } }, stroke, JComponent.WHEN_IN_FOCUSED_WINDOW); return rootPane; } COM: <s> override this protected funciton to register escape with the root pane </s>
funcom_train/32956760
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getUserName(String userId) { String userName = ""; try { AMIdentity amid = IdUtils.getIdentity(getUserSSOToken(), userId); userName = amid.getName(); } catch (IdRepoException e) { debug.warning("UMChangeUserPasswordModelImpl.getUserName", e); } return userName; } COM: <s> returns user name </s>
funcom_train/23247702
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Properties getStatus() throws IOException { if (myStatus == null) { myStatus = new Properties(); File file = new File(myDirectory, "tmcimport.status.properties"); if (file.exists()) { myStatus.load(new FileReader(file)); } } return myStatus; } COM: <s> load our properties and cache them </s>
funcom_train/11659021
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void endNamespacePrefixes(XMLOutput output) throws SAXException { if ( tagNamespacesMap != null ) { for ( Iterator iter = tagNamespacesMap.keySet().iterator(); iter.hasNext(); ) { String prefix = (String) iter.next(); output.endPrefixMapping(prefix); } } } COM: <s> end the new namespace prefixes mapped for the current element </s>
funcom_train/48377214
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String classifyUtterance(List<ObservationInteger> seq) { String bestMatch = null; double maxProb = -1; for (String tag : tags.keySet()) { TagWrapper tw = tags.get(tag); double prob = tw.getProbability(seq); // System.out.println(tag + " => " + prob); if (prob > maxProb) { bestMatch = tag; maxProb = prob; } } return bestMatch; } COM: <s> classify an utterance given by a sequence </s>
funcom_train/20338498
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public AirportResource getResource(String resourceType, String searchId){ AirportResource found = null; System.out.println("looking for resource "+searchId+" " +resourceType); for(AirportResource r: resources){ System.out.println(r.getResourceId()); if(r.getResourceId().matches(searchId) && r.getResourceId().contains(resourceType)){found = (AirportResource)r;} } return found; } COM: <s> because airplane instantiation implementation required reference to actual airport resource </s>
funcom_train/1834905
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setUrl(final URL newUrl) { this.url = newUrl; this.properties = new Properties(); try { final InputStream stream = this.url.openStream(); this.properties.load(stream); stream.close(); } catch (Exception e) { throw new RuntimeException(e); } } COM: <s> setter of url </s>
funcom_train/18959759
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public void parseArgs(String[] args) { for (int nA = 0; nA < args.length; nA++ ) { if (args[nA].length() > 7 && args[nA].substring(0,7).equals( "--lang=")) { //set the language to the given string TranslationBundle.setLanguage( args[nA].substring(7) ); } } } COM: <s> parses the command line arguments for </s>
funcom_train/47509398
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void save(Permite entity) { EntityManagerHelper.log("saving Permite instance", Level.INFO, null); try { getEntityManager().persist(entity); EntityManagerHelper.log("save successful", Level.INFO, null); } catch (RuntimeException re) { EntityManagerHelper.log("save failed", Level.SEVERE, re); throw re; } } COM: <s> perform an initial save of a previously unsaved permite entity </s>
funcom_train/785609
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean removeIndex(String field) { ColumnEntry e = (ColumnEntry)m_entries.get(field); if ( e == null ) { throw new IllegalArgumentException("Unknown column name: "+field); } if ( e.index == null ) { return false; } else { e.index.dispose(); e.index = null; return true; } } COM: <s> remove the index associated with the given data field column name </s>
funcom_train/24532728
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void applyAttributeSettings(EObject target, EStructuralFeature feature, List values, Object before) { if (!isDead()) { CompoundCommand buildUp = null; if (applyRules) buildUp = propertyAdds(target, feature, values, buildUp); if (buildUp == null) super.applyAttributeSettings(target, feature, values, before); else { buildUp.append(internalApplyAttributeSettings(target, feature, values, before)); internalAppend(buildUp); } } } COM: <s> add values before specified value </s>
funcom_train/37817664
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void paint(Graphics g) { g.setColor(SystemColor.control); g.fill3DRect(0, 0, getWidth(), getHeight(), !mouseOver); g.setColor(Color.WHITE); g.fill3DRect(4, 4, getWidth() - 8, getWidth() - 8, mouseOver); g.fillRect(5, 5, getWidth() - 10, getWidth() - 10); } COM: <s> paints the corner content </s>
funcom_train/14653362
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean existMemoryMap(String mapName) { boolean found = false; int index = 0; int max = memorymaps.size(); while (!found && index < max) { if (mapName.equals(memorymaps.get(index).getName())) { found = true; } index++; } return found; } COM: <s> does memory map with specified name exist </s>
funcom_train/7855958
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Layer createLayer(String name) { int width = getWidth(); int height = getHeight(); int type = ImageState.DEFAULT_ARGB; ArchivableImage image = new ArchivableImage(width, height, type); Layer layer = new Layer(); layer.setImage(image); if (name!=null) { layer.setName(name); image.setReference(name); } return layer; } COM: <s> creates a layer with a blank image from this projects specified </s>
funcom_train/41384509
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getJPanel3() { if (jPanel3 == null) { FlowLayout flowLayout3 = new FlowLayout(); flowLayout3.setVgap(10); jPanel3 = new JPanel(); jPanel3.setLayout(flowLayout3); jPanel3.setPreferredSize(new Dimension(0, 0)); jPanel3.setBackground(new Color(10, 16, 40)); jPanel3.add(getJButtonNew(), null); } return jPanel3; } COM: <s> this method initializes j panel3 </s>
funcom_train/4522365
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean isShiftingAllowed(TimeBarRow row, Interval interval) { if (_intervalModificators == null || _intervalModificators.size() == 0) { return false; } boolean allowed = true; for (IntervalModificator modificator : _intervalModificators) { allowed = allowed && (!modificator.isApplicable(row, interval) || modificator.isShiftingAllowed(row, interval)); } return allowed; } COM: <s> check whether shifting an interval is allowed in general </s>
funcom_train/21612232
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ParseTree parse(String rootProductionName, String in) throws JPParserException { try { return parser.parse(rootProductionName, in); } catch (ParserException pe) { throw new JPParserException("Error while parsing string: '" + in + "'", pe); } } COM: <s> parses a given string on the specified production of the i jpgrammar i </s>
funcom_train/13596277
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getBtnCancel() { if (btnCancel == null) { btnCancel = new JButton(); btnCancel.setText(Messages.getString("GeneralUI.ButtonCancel")); // Generated //$NON-NLS-1$ btnCancel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { closeDialog(); } }); } return btnCancel; } COM: <s> this method initializes btn cancel </s>
funcom_train/12564503
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Object getPropertyState(final int propertyIndex) { switch (propertyIndex) { case GraphicsNode.PROPERTY_FILL: return fill; case GraphicsNode.PROPERTY_STROKE: return stroke; case GraphicsNode.PROPERTY_COLOR: return color; case GraphicsNode.PROPERTY_STROKE_DASH_ARRAY: return getStrokeDashArray(); default: return super.getPropertyState(propertyIndex); } } COM: <s> returns the value of the given object valued property </s>
funcom_train/46937581
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JSpinner getJSpinnerMinutes() { if (jSpinnerMinutes == null) { jSpinnerMinutes = new JSpinner(); SpinnerModel minutes = new SpinnerNumberModel(0, 0, 59, 1); jSpinnerMinutes.setModel(minutes); //code to change the color of the specific item. //((JSpinner.DefaultEditor)jSpinnerMinutes.getEditor()).getTextField().setForeground(Color.red); } return jSpinnerMinutes; } COM: <s> this method initializes j spinner minutes </s>
funcom_train/12117966
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void connEtoC50(java.awt.event.ActionEvent arg1) { try { // user code begin {1} // user code end this.spViveJMenuItem_ActionPerformed(arg1); // user code begin {2} // user code end } catch (java.lang.Throwable ivjExc) { // user code begin {3} // user code end handleException(ivjExc); } } COM: <s> conn eto c50 sp vive jmenu item </s>
funcom_train/21611120
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testEvaluationFailureNoVariableName() { try { interpreter.setValidating(false); interpreter.process( "Print ( var1, var2, var3 );" ); fail(); } catch (InterpreterException ie) { assertEquals("Unespected cause.", ProcessorException.class, ie.getCause().getClass() ); } } COM: <s> tests process failure because variable name is not known </s>
funcom_train/19066236
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void noop() throws IOException, IMAPException { checkState(NON_AUTHENTICATED); IMAPCommand command = new IMAPCommand(tagFactory.nextTag(), "NOOP"); IMAPResponse[] responses = communicate(command); // handle any responses that do not directly // relate to the command for (int i = 0; i < responses.length - 1; i++) { handleResponse(responses[i]); } // Check last response for command success if (!responses[responses.length - 1].isOK()) throwException(responses[responses.length - 1]); } COM: <s> sends the noop command to the server </s>
funcom_train/42906323
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void LSFinterpolate2a_dec(double[] a, double[] lsf1, double[] lsf2, int lsf2P, double coef, int length) { double[] lsftmp = new double[LPC_FILTERORDER]; interpolate(lsftmp, lsf1, lsf2, lsf2P, coef, length); lsf2a(a, lsftmp); } COM: <s> interpolation of lsf coefficients for the decoder </s>
funcom_train/31477240
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void showComponent(String key) { Component newComponent = (Component)components.get(key); if (newComponent == null) return; if (newComponent.equals(current)) return; if (current != null) { remove(current); } current = newComponent; super.add(current, 0, 0); setSize(current.getWidth(), current.getHeight()); current.activated(); } COM: <s> shows the component with the given key </s>
funcom_train/3508673
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void arguments(Writer out) throws IOException { Class[] params = current_callable.getParameterTypes(); for (int i = 0; i < params.length; i++) { if (i > 0) { out.write(", "); } out.write('p'); out.write(Integer.toString(i)); } } COM: <s> callback from method </s>
funcom_train/37074866
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isTypeSyntenyLink(String type) { //List links = getSyntenyLinkedFeatProps(); for (int i=0; i<getLinkedFeatPropsSize(); i++) { // Display type is the apollo feature type (not the result/analysis type) if (getLinkedFeatProp(i).getDisplayType().equals(type)) return true; } return false; } COM: <s> by type we mean apollo feature type not result analysis type </s>
funcom_train/14212369
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean evalPermissions(DispatchContext dctx, Map context) { // old permission checking if (this.containsPermissions()) { Iterator i = this.permissionGroups.iterator(); while (i.hasNext()) { ModelPermGroup group = (ModelPermGroup) i.next(); if (!group.evalPermissions(dctx, context)) { return false; } } return true; } else { return true; } } COM: <s> evaluates permissions for a service </s>
funcom_train/43410160
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getJAddPackagingPanel() { if (jAddPackagingPanel == null) { jAddPackagingPanel = new JPanel(); jAddPackagingPanel.setLayout(new BorderLayout()); jAddPackagingPanel.setToolTipText("Add Packaging"); jAddPackagingPanel.add(getJAddPackagingInnerPanel(), java.awt.BorderLayout.CENTER); } return jAddPackagingPanel; } COM: <s> this method initializes j add packaging panel </s>
funcom_train/1804579
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String checkNamespace(String namespaceUri) { // Walk the stack from the top to find an element with this ns declaration. for (int i = elementStack.size() - 1; i >= 0; --i) { Element element = elementStack.get(i); for (XmlNamespace ns : element.nsDecls) { if (ns.alias != null && ns.uri.equals(namespaceUri)) { return ns.alias; } } } return null; } COM: <s> determines if the specified namespace is declared at the current scope </s>
funcom_train/13504545
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void waitForLockReleased() { int maxWait = 3; for (int i = 0; i < maxWait; i++) { if (!lockAcceptedFile.exists()) { return; } try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } } fail("Lock was not released after " + maxWait + " seconds."); } COM: <s> wait until the lock is released or until the time runs out </s>
funcom_train/5249603
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void createTeams() { ArrayList<Player> players = new ArrayList<Player>(); // defense team players.add(new Player("Defense1")); players.add(new Player("Defense2")); defenseTeam = new Team(Team.TEAM_ROLE_DEFENSE, NUMBER_OF_DEFENSE_ARMIES, players); // attack team players = new ArrayList<Player>(); players.add(new Player("Attack1")); players.add(new Player("Attack2")); attackTeam = new Team(Team.TEAM_ROLE_ATTACK, NUMBER_OF_ATTACK_ARMIES, players); } COM: <s> create the two teams and their players </s>
funcom_train/32909149
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void customizeForNewUser(ApplicationControlList list, ApplicationUserModel m) { Enumeration e1 = list.elements(); while(e1.hasMoreElements()) { ApplicationControlModel acm = (ApplicationControlModel) e1.nextElement(); if (acm.getControlRefDisplay().compareTo("UserLogin")==0) { if (m.getUserId()==0) { acm.setNotLocked(); } else { acm.setLocked(); } } } } COM: <s> override the ability to put in the username </s>
funcom_train/13630001
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public SDLSurface renderTextBlended(String text, SDLColor fg) throws SDLException { SDL_Surface surface = SWIG_SDLTTF.TTF_RenderText_Blended_FAST(swigTTFFont, text, (short)fg.getRed(), (short)fg.getGreen(), (short)fg.getBlue()); return new SDLSurface(surface); } COM: <s> create a 32 bit argb surface and render the given glyph at </s>
funcom_train/46620014
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String asDataString() { String result = getOutputMessageLevel() + "|" + getBuildFileName() + "|" + getTarget(); for (Enumeration e = getProjectTargets().elements(); e.hasMoreElements();) { result = result + "|" + e.nextElement(); } return result; } COM: <s> returns the build info information as string </s>
funcom_train/28633895
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void sendDataEventToListeners(DataEvent dataEvent) { DataEventListener listeners [] = null; synchronized (this) { listeners = new DataEventListener [dataEventListeners.size ()]; dataEventListeners.toArray(listeners); } for (int i = 0; i < listeners.length; i++) { listeners [i].dataEventOccurred(dataEvent); } this.packetCount++; } COM: <s> data events sent to this method will be forwarded to all registered </s>
funcom_train/8377089
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean containsClass(Class<?> clazz) { for (Iterator<Layer> it = this.iterator(); it.hasNext();) { Layer object = it.next(); if (object.getClass().equals(clazz)) { return true; } if (object instanceof LayerSet) { if (((LayerSet) object).containsClass(clazz)) { return true; } } } return false; } COM: <s> checks of this layer set or some of its contained layers contains and </s>
funcom_train/43244873
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetVariantAsObject() { System.out.println("getVariantAsObject"); Variant va = null; Object expResult = null; Object result = BeanTools.getVariantAsObject(va); 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 variant as object method of class org </s>
funcom_train/28471113
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public void writeResourceRec(int handle, Record record) throws IOException { RawRecordInfo data; data = new RawRecordInfo(handle, record.getId(), record.getIndex()); dataFromRec(data, record); verifyResult(SyncWriteResourceRec(data), "Error Writing Resource Rec"); record.setId(data.recId); } COM: <s> writes the passed resource into the open database </s>
funcom_train/50106476
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void run() throws ProcessException { if (logger.isDebugEnabled()) { logger.debug("run() - start"); } getInputAdapter().push(); getPipeline().process(); getOutputAdapter().run(); getOutputAdapter().close(); if (logger.isDebugEnabled()) { logger.debug("run() - end"); } } COM: <s> run the process </s>
funcom_train/7508449
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testEncodeForURL() throws Exception { System.out.println("encodeForURL"); Encoder instance = ESAPI.encoder(); assertEquals(null, instance.encodeForURL(null)); assertEquals("%3Cscript%3E", instance.encodeForURL("<script>")); } COM: <s> test of encode for url method of class org </s>
funcom_train/852669
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void reinit() { CubeMatrix oldMatrix = CubeMatrix.getInstance(); // Creation of a new game with same parameters CubeMatrix newMatrix = CubeMatrix.setInstance( oldMatrix.getWidth(), oldMatrix.getHeight(), oldMatrix.getDepth(), oldMatrix.getBombNbr()); Component[] grids = getComponents(); for (int k = 0; k < grids.length; k++) { if (grids[k] instanceof Grid) { ((Grid) grids[k]).reinit(); } } newMatrix.addObserver(this); newMatrix.setChanged(); } COM: <s> reinitialization of the game </s>
funcom_train/32748261
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int takeAndPublishSnapshot( final String groupID, final String comment ) { try { final LoggerSession loggerSession = _model.getPVLogger().getLoggerSession( groupID ); return loggerSession != null ? (int)loggerSession.takeAndPublishSnapshot( comment ).getId() : -1; } catch( Exception exception ) { return -2; } } COM: <s> take a snapshot and publish it </s>
funcom_train/5078274
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void hookDropTarget() { //Allow the real drop targets to make their changes first. super.hookDropTarget(); //Then force and update since async paints won't occurs during a Drag operation getDropTarget().addDropListener(new DropTargetAdapter() { public void dragEnter(DropTargetEvent event) { flush(); } public void dragLeave(DropTargetEvent event) { flush(); } public void dragOver(DropTargetEvent event) { flush(); } }); } COM: <s> extended to flush paints during drop callbacks </s>
funcom_train/31435385
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void printMessage(String theMessage) { GregorianCalendar currDate = new GregorianCalendar(); jtaPrintArea.append("[" + currDate.get(Calendar.HOUR) + ":" + currDate.get(Calendar.MINUTE) + ":" + currDate.get(Calendar.SECOND) + "] "); jtaPrintArea.append(theMessage + "\n"); } COM: <s> this method takes a string message and displays it </s>
funcom_train/3484615
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void removeFormBean(ActionMapping mapping, HttpServletRequest request) { // Remove the obsolete form bean if (mapping.getAttribute() != null) { if ("request".equals(mapping.getScope())) { request.removeAttribute(mapping.getAttribute()); } else { HttpSession session = request.getSession(); session.removeAttribute(mapping.getAttribute()); } } } COM: <s> convenience method for removing the obsolete form bean </s>
funcom_train/18215282
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void prepareAttachment(HttpServletResponse response, File file, String contentType) { StringBuilder type = new StringBuilder("attachment; filename="); type.append(file.getName()); response.setContentLength((int) file.length()); response.setContentType(contentType); // "application/octet-stream" will open the browser download dialog response.setHeader("Content-Disposition", type.toString()); } COM: <s> creates an http response with the given file as attachment and the given </s>
funcom_train/45803836
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void renderCloseAllButton(Writer out, int topline) throws IOException { out.write("<a href=\"" + ownpage + "topline=0&todo=closeall\" title='Collapse all nodes'><img border=0 src=" + imageurl + "collapse_all.gif></a> "); } COM: <s> experimental renders the close all button at the top bottom of </s>
funcom_train/5434869
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getConvMethod(String type) { if (type.equals("Integer")) return "intValue"; if (type.equals("Byte")) return "byteValue"; if (type.equals("Short")) return "shortValue"; if (type.equals("Long")) return "longValue"; return "error"; } COM: <s> method get conv method </s>
funcom_train/31208198
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Connection getConnection() throws SQLException { try { if(Trace.isEnabled()) Trace.trace(getId()); if(Trace.isEnabled()) Trace.traceResult(conn.getId()); return conn; } catch(Throwable e) { throw convertThrowable(e); } } COM: <s> returns the connection that created this object </s>
funcom_train/2583165
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Comparable getGroup(Comparable key) { if (key == null) { throw new IllegalArgumentException("Null 'key' argument."); } Comparable result = this.defaultGroup; Comparable group = (Comparable) this.keyToGroupMap.get(key); if (group != null) { result = group; } return result; } COM: <s> returns the group that a key is mapped to </s>
funcom_train/3721758
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String encode(Message source, String encoding) throws HL7Exception, EncodingNotSupportedException { myValidator.validate(source); String result = doEncode(source, encoding); myValidator.validate(result, encoding.equals("XML"), source.getVersion()); return result; } COM: <s> formats a message object into an hl7 message string using the given </s>
funcom_train/31009764
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String validate(String xml, String schema) { String xmlURL = SchtrnValidator.system_To_URL(xml); if (xmlURL == null) { System.out.println("The xml file location is not valid: " + xml); System.exit(0); } String schemaURL = SchtrnValidator.system_To_URL(schema); if (schemaURL == null) { System.out.println("The RELAX-NG schema location is not valid: " + schema); System.exit(0); } return validate(new StreamSource(xmlURL), new StreamSource(schemaURL)); } COM: <s> p validate an xml instance document against a relax ng schema that may </s>