__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/20439986
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addCompositionPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ESMFWorkspace_composition_feature"), getString("_UI_PropertyDescriptor_description", "_UI_ESMFWorkspace_composition_feature", "_UI_ESMFWorkspace_type"), ESMFPackage.Literals.ESMF_WORKSPACE__COMPOSITION, true, false, true, null, null, null)); } COM: <s> this adds a property descriptor for the composition feature </s>
funcom_train/31119399
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void validateGrid() { for (int a = 0; a < grid.length; a++) { for (int b = 0; b < grid[a].length; b++) { if (grid[a][b] != SOLID && grid[a][b] != EMPTY) grid[a][b] = SOLID; } } } COM: <s> sets all grid to start value of solid or empty only </s>
funcom_train/31028026
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void serverMessage(String message) { String text = this.messageArea.getText(); if(message != null) { if(text.trim().length() > 0) { this.messageArea.setText(this.messageArea.getText() + "\n" + message); } else { this.messageArea.setText(message); } } } COM: <s> called when a message comes from the server </s>
funcom_train/18219787
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addFileActivities(DevelopmentLineContainer branchContainer) { ScmFile newFile; for (Iterator<String> fileIterator = branchContainer .getAffectedFilesKeySet().iterator(); fileIterator.hasNext();) { newFile = branchContainer.getAffectedFile(fileIterator.next()); addFileActivities(getFileID(newFile .getDevelopmentLinePathFileNameAndFileType()), newFile); } } COM: <s> entries for file activity table will be written </s>
funcom_train/8033884
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String connect(String uri, String username, String password) { client = new WattDepotClient(uri, username, password); // Stop right away if we cannot contact server. if (!client.isHealthy()) { return "Failed to connect to " + client.getWattDepotUri(); } // Indicate successful connection. return "Connected to " + client.getWattDepotUri(); } COM: <s> connect method to create connection to a watt depot server </s>
funcom_train/21061123
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean executeInputAction(ActionListener listener, Object source, String actionCommand, int modifiers) { if (listener != null) { // create event ActionEvent evt = new ActionEvent(source, ActionEvent.ACTION_PERFORMED, actionCommand, modifiers); // execute the action listener.actionPerformed(evt); return true; } return false; } COM: <s> executes the specified action repeating and recording it as </s>
funcom_train/41401178
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeMember(UserRO user) { if (membersMap.containsKey(user.getId())) { removedMembersMap.put(user.getId(), user); } else if (addedMembersMap.containsKey(user.getId())) { addedMembersMap.remove(user.getId()); } } COM: <s> adds an user to the removed members list if </s>
funcom_train/869077
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getHref() throws XBRLException { Element root = getDataRootElement(); if (! root.hasAttributeNS(Constants.XLinkNamespace.toString(),"href")) throw new XBRLException("Locators must have xlink:href attributes."); return root.getAttributeNS(Constants.XLinkNamespace.toString(),"href"); } COM: <s> get the raw xlink href attribute value before any resolution </s>
funcom_train/2386467
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void showPreviewOfSelectedPhoto(){ Photo photo = getSelectedPhoto(); if(photo==null){ // No photo is selected photoPreview.setImage(null); return; } photoPreview.setPhoto(photo); PhotoPlayer player = new PhotoPlayer(photoPreview, PhotoPlayer.ICONIFIED_MODE); photoPreview.setSpeedRenderer(true); photoPreview.setAntiAliasing(false); player.start(); } COM: <s> show the photo preview of the selected item </s>
funcom_train/4726866
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void updateMetadataTextArea(JTextArea metadataTextArea, Revision revision) { metadataTextArea.setText("Rev " + revision.getRevisionNumber() + ", " + "by " + revision.getAuthor() + ", " + revision.getDate() + "\n" + revision.getLogMessage().trim()); metadataTextArea.setCaretPosition(0); } COM: <s> populates the text area with metadata from the revision </s>
funcom_train/1171247
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long addColor(String s, Card c, boolean addToColors, boolean bIncrease) { if (bIncrease) Card_Color.increaseTimestamp(); cardColor.add(new Card_Color(new ManaCost(s), c, addToColors, false)); return Card_Color.getTimestamp(); } COM: <s> p add color </s>
funcom_train/7621537
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void detachAllViewsFromParent() { final int count = mChildrenCount; if (count <= 0) { return; } final View[] children = mChildren; mChildrenCount = 0; for (int i = count - 1; i >= 0; i--) { children[i].mParent = null; children[i] = null; } } COM: <s> detaches all views from the parent </s>
funcom_train/20643866
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void toString(int i,StringBuffer sb) { addTab(i,sb); sb.append("+").append(myNode.getTitle()).append("\n"); i++; // tarifs Iterator/*<CompactTreeTarifRef>*/ e0 = getTarifsRefs().iterator(); while (e0.hasNext()) { addTab(i,sb); sb.append("-").append(e0.next()).append("\n"); } // nodes Iterator/*<CompactTarifNodes>*/ e1 = getChildren().iterator(); while (e1.hasNext()) { ((CompactTreeNode) e1.next()).toString(i,sb); } } COM: <s> helper for to string </s>
funcom_train/4290544
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addValuesPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_EnumerationValue_values_feature"), getString("_UI_PropertyDescriptor_description", "_UI_EnumerationValue_values_feature", "_UI_EnumerationValue_type"), CommonPackage.Literals.ENUMERATION_VALUE__VALUES, true, false, false, ItemPropertyDescriptor.REAL_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the values feature </s>
funcom_train/14378558
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void startFrame(Graphics2D g) { if (clearViewEveryFrame) { g.setColor(Color.black); g.fillRect(viewWindow.getLeftOffset(), viewWindow.getTopOffset(), viewWindow.getWidth(), viewWindow.getHeight()); } } COM: <s> indicates the start of rendering of a frame </s>
funcom_train/936642
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public AbstractFile getFileForPath(SimplePath simplePath) { Map map = getFileCache(); AbstractFile af = (AbstractFile) map.get(simplePath); boolean shouldRemove=false; try { shouldRemove = af!=null && !af.exists(); } catch (FileSystemException ex) { shouldRemove=true; } if (shouldRemove) { map.remove(simplePath); log.debug("Removing invalid entry from cache: "+af.getPath()); return null; } return af; } COM: <s> gets the cached abstract file for the simple path </s>
funcom_train/15837639
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getJBtMountActions() { if (jBtMountActions == null) { jBtMountActions = new JPanel(); jBtMountActions.setLayout(new FlowLayout()); jBtMountActions.setBorder(null); jBtMountActions.add(getJButton1(), null); jBtMountActions.add(getJBtDismount(), null); jBtMountActions.add(getJButton(), null); } return jBtMountActions; } COM: <s> this method initializes j bt mount actions </s>
funcom_train/33493209
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JMenuItem getJMenuItem1() { if (jMenuItemQuit == null) { jMenuItemQuit = new JMenuItem(); jMenuItemQuit.setText("Quit"); jMenuItemQuit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { System.exit(0); } }); } return jMenuItemQuit; } COM: <s> this method initializes j menu item1 </s>
funcom_train/825153
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void readSceneBlend(String line) { String[] strings = line.split(" "); if (strings.length < 2) { return; } if (strings[1].equals("alpha_blend")) { this.scene_blend = TextureAttributes.BLEND; } else { scene_blend = 0; } } COM: <s> reads the alpha blend parameter from a line of text </s>
funcom_train/24117689
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSelectedObject(Object anObject) { deselectAll(); if (anObject != null) { int size = getModel().getSize(); int index = 0; while (index < size && !anObject.equals(getModel().getElementAt(index))) { index++; } if (index < size) { checkState.addSelectionInterval(index, index); } } } COM: <s> select the check box of an object </s>
funcom_train/29312697
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void buildShape() { if (grappaNexus == null) { grappaNexus = new GrappaNexus(this); Attribute attr = null; Enumeration enu = listAttrsOfInterest(); while (enu.hasMoreElements()) { attr = getAttribute((String) enu.nextElement()); if (attr != null) { attr.addObserver(grappaNexus); } } } if (grappaNexus == null) { throw new InternalError("grappaNexus did not get created"); } } COM: <s> creates and populates the grappa nexus object for this element </s>
funcom_train/986946
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public StringItem getStringItem10() { if (stringItem10 == null) {//GEN-END:|120-getter|0|120-preInit // write pre-init user code here stringItem10 = new StringItem("Total:", "1200");//GEN-LINE:|120-getter|1|120-postInit // write post-init user code here }//GEN-BEGIN:|120-getter|2| return stringItem10; } COM: <s> returns an initiliazed instance of string item10 component </s>
funcom_train/44712879
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void add(NamedSQLDef qd) { if (m_queries.containsKey(qd.getName())) { qd.error("Duplicate query definition in model " + getName() + ": " + qd.getName()); } m_queries.put(qd.getName(), qd); super.add(qd); } COM: <s> add a named sqldef to this model def </s>
funcom_train/1169468
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public CardList getPossibleAttackers() { CardList list = AllZoneUtil.getPlayerCardsInPlay(AllZone.getComputerPlayer()); list = list.filter(new CardListFilter() { public boolean addCard(Card c) { return CombatUtil.canAttack(c); } }); return list; } COM: <s> p get possible attackers </s>
funcom_train/44839019
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isAuthorized() { if (!isSecured()) { return true; } boolean authorized = true; Iterator itr = contraints.iterator(); while ((itr.hasNext()) && (authorized)) { URISecurityConstraint constraint = (URISecurityConstraint)itr.next(); authorized = constraint.allowAccess(this); } return authorized; } COM: <s> is the user authorized to access the uri pointed to by this request </s>
funcom_train/34342360
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getVolver1() { if (volver1 == null) {//GEN-END:|52-getter|0|52-preInit // write pre-init user code here volver1 = new Command("Back", Command.BACK, 0);//GEN-LINE:|52-getter|1|52-postInit // write post-init user code here }//GEN-BEGIN:|52-getter|2| return volver1; } COM: <s> returns an initiliazed instance of volver1 component </s>
funcom_train/26091665
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getJPanel1() { if (jPanel1 == null) { GridLayout gridLayout = new GridLayout(); gridLayout.setRows(1); jPanel1 = new JPanel(); jPanel1.setLayout(gridLayout); jPanel1.setPreferredSize(new Dimension(3, 18)); jPanel1.setMinimumSize(new Dimension(610, 140)); jPanel1.add(getTxtaSaidaPadrao(), null); } return jPanel1; } COM: <s> this method initializes j panel1 </s>
funcom_train/27824754
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setNewTargetValue(Object newTargetValue) throws KAONException { PropertyInstance newPropertyInstance=m_propertyInstance.getOIModel().getPropertyInstance(m_propertyInstance.getProperty(),m_propertyInstance.getSourceInstance(),newTargetValue); m_propertyInstance=newPropertyInstance; m_isAttribute=m_propertyInstance.getProperty().isAttribute(); } COM: <s> changes the value of the property instance </s>
funcom_train/2586527
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setGlobalMenu(final boolean globalMenu) { this.globalMenu = globalMenu; if (isGlobalMenu()) { setJMenuBar(updateGlobalMenubar()); } else { if (getRootEditorCount () > 0) { setJMenuBar(createEditorMenubar(getRootEditor(getSelectedEditor()))); } } } COM: <s> sets the global menu flag </s>
funcom_train/12866617
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean isSingleLiteral(AST node) { if ((node.getNextSibling() == null) && (node.getType() != JavaTokenTypes.PLUS)) { switch (node.getFirstChild().getType()) { case JavaTokenTypes.STRING_LITERAL: return true; } // end switch } // end if return false; } // end isSingleLiteral() COM: <s> determines wether the given expr node denotes a single literal string </s>
funcom_train/28930746
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void configureEdge(GraphCell edge) { AttributeMap attributes = edge.getAttributes(); if (defaultEdgeFont != null) GraphConstants.setFont(attributes, defaultEdgeFont); if (defaultEndDecoration != GraphConstants.ARROW_NONE) GraphConstants.setLineEnd(attributes, defaultEndDecoration); if (defaultBeginDecoration != GraphConstants.ARROW_NONE) GraphConstants.setLineBegin(attributes, defaultBeginDecoration); if (edge instanceof MutableTreeNode) addPorts((MutableTreeNode) edge, defaultPortLocations); } COM: <s> hook for subclassers to configure the specified edge </s>
funcom_train/51779825
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Navigation loadProject(String projectName) { // File psi = ws.getServiceProcessInfo(projectName); this.currentCompositionPrococess = compManager.getCompositionProcess(user, projectName); /*istSchema = new Schema(mg,user,projectName,psi); compositionFilesIndex.setHttpRepository(istSchema);*/ this.projectName = projectName; //viene fatto in on enter nel CD loadCurrentComposition(); return this.navigate(compositionDesigner); } COM: <s> load a project set the current composition and the project name </s>
funcom_train/9851310
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String GetMessageID(String email) throws MessagingException { MimeMessage tmpMessage = null; Properties tmpProps = System.getProperties(); Session mailSession = Session.getDefaultInstance(tmpProps, null); InputStream tmpSource = new ByteArrayInputStream(email.getBytes()); tmpMessage = new MimeMessage(mailSession, tmpSource); return tmpMessage.getMessageID(); } COM: <s> method for retrieving the message id value from email header </s>
funcom_train/20307456
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean cacheAll(Finder graph, Node predicate) { ExtendedIterator it = graph.find(new TriplePattern(null, predicate, null)); boolean foundsome = it.hasNext(); while (it.hasNext()) { Triple triple = (Triple) it.next(); addRelation(triple); } it.close(); return foundsome; } COM: <s> cache all instances of the given predicate which are </s>
funcom_train/37447741
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object obj) { // Identical to this? if (obj == this) { return true; } if ((obj != null) && (getClass() == obj.getClass())) { // Can safely cast it. return myId.equals(((LockObject) obj).myId); } return false; } COM: <s> compares code obj code with this object according to </s>
funcom_train/643202
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void resetRGHighlightAndVTokens() { for (Iterator<AbstractPetriNetElementModel> iter = getElementContainer() .getRootElements().iterator(); iter.hasNext();) { AbstractPetriNetElementModel current = (AbstractPetriNetElementModel) iter.next(); current.setRGHighlighted(false); if (current instanceof PlaceModel) { ((PlaceModel) current).resetVirtualTokens(); } } } COM: <s> resets all virtual tokens an highlightings which were set from the </s>
funcom_train/17975766
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void logSecurityException( String propertyName, String valueObjectId, SecurityException e ) { this.validationMessage = "Field <" + propertyName + "> for VO def <" + valueObjectId + "> is not accessible."; Logger.getLogger( this.getClass() ).error(this.validationMessage, e); } COM: <s> facility method for logging field access security exception </s>
funcom_train/25080930
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void processViewer( XUIViewRoot viewRoot, EboContext context, boolean buildObjects ) throws boRuntimeException { String viewerName = viewRoot.getViewId(); accessPolicyByPath = new HashMap<String, String>(); idByComponent = new HashMap<String, String>(); instanceCounter = new AtomicLong(0); nrComponents = 0; nrComponentsStored = 0; for ( UIComponent component : viewRoot.getChildren() ) { processComponent( viewerName, context, component, null, buildObjects ); } } COM: <s> process the given viewer </s>
funcom_train/10796285
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Object invoke(StoreQuery q, Object[] args) { validate(q); try { return _meth.invoke(null, args); } catch (OpenJPAException ke) { throw ke; } catch (Exception e) { throw new UserException(_loc.get("method-error", _meth, Exceptions.toString(Arrays.asList(args))), e); } } COM: <s> invoke the internal method with the given arguments returning the </s>
funcom_train/7614556
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public File getTempFontFile()throws IOException{ //???AWT /* File fontFile = File.createTempFile("jFont", ".ttf"); //$NON-NLS-1$ //$NON-NLS-2$ fontFile.deleteOnExit(); return fontFile; */ if(NOT_IMP) throw new NotImplementedException("getTempFontFile not Implemented"); return null; } COM: <s> returns file object created in a directory </s>
funcom_train/43245574
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetMostRecentCareLocation() { System.out.println("setMostRecentCareLocation"); String mostRecentCareLocation = ""; PatientDataDG2Object instance = new PatientDataDG2Object(); instance.setMostRecentCareLocation(mostRecentCareLocation); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } COM: <s> test of set most recent care location method of class org </s>
funcom_train/22267711
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void emulateExtendedInstruction(final CPU6502Instruction instruction) { if (null != getLogger()) { getLogger().warning("Not implemented instruction at $" + Integer.toHexString(this.currentInstructionAddress) + ": $" + Integer.toHexString(this.memory[this.currentInstructionAddress] & 0xff)); } try { Thread.sleep(100); } catch (Exception e) { } } COM: <s> emulate an instruction that does not belong to the standard c64 instruction set </s>
funcom_train/7635617
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void shutdown(GL10 gl) { if ( gl != null) { if (mState > STATE_NEW) { int[] textures = new int[1]; textures[0] = mTextureID; gl.glDeleteTextures(1, textures, 0); mState = STATE_NEW; } } } COM: <s> call when the surface has been destroyed </s>
funcom_train/15954344
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetCharAt() throws BMLException{ String lsValue = "abcdefg"; DataString ldString = new DataString(fBlank); ldString.setString(lsValue); char lcValue[] = new char[7]; ldString.setCharAt(2,'!'); assertEquals('!',ldString.charAt(2)); } COM: <s> test of set char at method </s>
funcom_train/46077604
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void turn(int rightPlus) { while (rightPlus != 0) { facingDir += rightPlus/Math.abs(rightPlus); if (facingDir<0) facingDir = 3; if (facingDir>3) facingDir = 0; rightPlus -= rightPlus/Math.abs(rightPlus); } } COM: <s> turn right clockwise this many times </s>
funcom_train/576
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void addLogTextStyle(final String text, final String stylename) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { try { StyledDocument doc = optimizerLog.getStyledDocument(); doc.insertString(doc.getLength(), text+"\n", doc.getStyle(stylename)); } catch (BadLocationException e) { /* ignore */ } } }); } COM: <s> adds the passed code string code to the log texts of the optimizer </s>
funcom_train/3775312
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void insert(MutableTreeNode child, int index) { if (!(child instanceof ManifestNode)) return; refresh(); if (!insertImpl((ManifestNode) child, index)) return; //Just since there is no save-button on items... getDocument().saveToModel(); refreshNeeded = true; //fireTreeNodesInserted need an index... fireTreeStructureChanged(new TreeModelEvent(this, new TreePath(this))); } COM: <s> inserts a node and saves to model </s>
funcom_train/26379386
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void loadRanges() throws IOException, AreaSyntaxException { for (;;) { _area.setSoftLevelRange(new NumberRange(readNumber(), readNumber())); _area.setHardLevelRange(new NumberRange(readNumber(), readNumber())); if (readLine().charAt(0) == '$') break; } } COM: <s> reads in the area ranges </s>
funcom_train/38993551
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void takeObject(String takeObjectName) throws ConnectionException { ActionRequestOp request = new ActionRequestOp("take"); request.addParameter("object", takeObjectName); sendActionDocument(request); logger.debug("created a document to take the object " + takeObjectName); } COM: <s> send out an action request to take an object to the inventory </s>
funcom_train/40212928
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getJImportButton() { if (jImportButton == null) { jImportButton = new JButton(StringVars.IMPORT_SYMBOL_DIALOG_IMPORT_BUTTON); jImportButton.addActionListener(this); jImportButton.setActionCommand(ACTION_IMPORT); } return jImportButton; } COM: <s> this method initializes j import button </s>
funcom_train/3370625
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setAcceptAllFileFilterUsed(boolean b) { boolean oldValue = useAcceptAllFileFilter; useAcceptAllFileFilter = b; if(!b) { removeChoosableFileFilter(getAcceptAllFileFilter()); } else { removeChoosableFileFilter(getAcceptAllFileFilter()); addChoosableFileFilter(getAcceptAllFileFilter()); } firePropertyChange(ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY, oldValue, useAcceptAllFileFilter); } COM: <s> determines whether the code accept all file filter code is used </s>
funcom_train/2845618
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addAll(AnnotationSelection annotationSelection) { for (int i=0; i<annotationSelection.getNumberOfRegions(); i++) { int n = addRegionToSelection(new ArrayList(annotationSelection.getRegion(i))); if (annotationSelection.getRegion(i) == annotationSelection.getCurrentRegion()) currentRegion = n; } } COM: <s> adds each region in the specified annotation selection to this selection </s>
funcom_train/5347778
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Test reportError(final Throwable thrown, final TestResult result) { String testName = _beforeTests ? "LimeTestSuite - Before Test Errors" : "LimeTestSuite - After Test Errors"; return new TestCase(testName) { protected void runTest() { if ( thrown instanceof AssertionFailedError ) result.addFailure(this, (AssertionFailedError)thrown); else result.addError(this, thrown); } }; } COM: <s> returns a test which will fail and log a warning message </s>
funcom_train/42746388
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void removeSortedFields(final List<FieldFilter> pContent) { // Update the inputs for (FieldFilter lFilter : pContent) { availableInput.add(lFilter.getFieldDescription()); selectedInput.remove(lFilter); } // Update the viewers availableViewer.refresh(); selectedViewer.refresh(); } COM: <s> remove the given fields from the sorted fields list </s>
funcom_train/2028778
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void removeProperties(SessionNode node) throws RepositoryException { PropertyManager propertyManager = node.getPropertyManager(); List properties = propertyManager.getProperties(); for (Iterator iter = properties.iterator(); iter.hasNext();) { SessionProperty property = (SessionProperty) iter.next(); property.getState().remove(property); } } COM: <s> removes properties of a node except those already marked as removed </s>
funcom_train/1104176
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addPojotipiPropertyDescriptor(Object object) { itemPropertyDescriptors.add(createItemPropertyDescriptor( ((ComposeableAdapterFactory) adapterFactory) .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Pojo_pojotipi_feature"), getString( "_UI_PropertyDescriptor_description", "_UI_Pojo_pojotipi_feature", "_UI_Pojo_type"), HarzemliPackage.eINSTANCE.getPojo_Pojotipi(), true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the pojotipi feature </s>
funcom_train/31293884
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void fireOutputUpdate(final SynthesisResult synthesisResult) { final SynthesizedOutputEvent event = new OutputUpdateEvent(this, sessionId, synthesisResult); synchronized (listeners) { final Collection<SynthesizedOutputListener> copy = new java.util.ArrayList<SynthesizedOutputListener>(listeners); for (SynthesizedOutputListener current : copy) { current.outputStatusChanged(event); } } } COM: <s> notifies all listeners that output has been updated </s>
funcom_train/36883969
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void startListen() throws IOException { // Get a server socket (SSL). SSLServerSocket server = (SSLServerSocket) ssf.createServerSocket(port); server.setNeedClientAuth(true); // Start the listener thread. listeningTask = new ListenerRunnable(server, this); Thread worker = new Thread(listeningTask); worker.setName("Listener Thread"); worker.start(); } COM: <s> start listener service </s>
funcom_train/23267803
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetSaldo() { System.out.println("setSaldo"); double saldo = 0.0; Prestamos instance = new Prestamos(); instance.setSaldo(saldo); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } COM: <s> test of set saldo method of class capa negocios </s>
funcom_train/36793407
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean checkException(ChainException e, String expectedException) { boolean notCaught = true; while (true) { String exception = e.getClass().getName(); if (exception.equals(expectedException)) { return (!notCaught); } if (e.prev == null) { return notCaught; } e = (ChainException) e.prev; } } // end of checkException COM: <s> used to verify whether the exception thrown from the bottom layer is the </s>
funcom_train/27829373
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void onUpdate(Event evt) { _currdate = _model.getDate(); _updtcount++; updateMarket(); updateTraders(); /*if(_hideChartsDuringSim){ barPanel.setVisible(true); _simulationProgressBar.setValue((int)(((double)_updtcount/(double)_model.getDataSize())*1000)); }*/ if (evt.isYearEvent()) { updateYearlyReport(false); } _prevdate = _currdate; } COM: <s> updates the market and trader charts </s>
funcom_train/3903688
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean validatePercentType_Min(BigDecimal percentType, DiagnosticChain diagnostics, Map context) { boolean result = percentType.compareTo(PERCENT_TYPE__MIN__VALUE) >= 0; if (!result && diagnostics != null) reportMinViolation(ImsssPackage.Literals.PERCENT_TYPE, percentType, PERCENT_TYPE__MIN__VALUE, true, diagnostics, context); return result; } COM: <s> validates the min constraint of em percent type em </s>
funcom_train/2429069
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Script getLoginScript() { OperationPipeline pipeline = getPipeline(); if (pipeline == null) { return null; } for (PipelineActivity a : pipeline.getActivities()) { if (a instanceof ScriptActivity) { Script script = ((ScriptActivity) a).getContent(); if (script != null && script.isPartOfSalesforceWizard()) { return script; } } } return null; } COM: <s> returns the code script code that calls the login operation </s>
funcom_train/3105396
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Date getMinValue() { // Define the min value for the date to 01/01/1500 00:00:00 if (this.minDateValue == null) { Calendar calendar = Calendar.getInstance(); calendar.clear(); calendar.set(1500, Calendar.JANUARY, 1, 0, 0, 0); this.minDateValue = new Date(calendar.getTimeInMillis()); } return this.minDateValue; } COM: <s> return the minimum date value </s>
funcom_train/50538281
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void onTestFailure(ITestResult tr) { Class<?> real_class=tr.getTestClass().getRealClass(); addTest(tr.getTestClass().getRealClass(), tr); print(old_stderr, "FAIL: ", real_class.getName(), tr.getName()); } COM: <s> invoked each time a test fails </s>
funcom_train/17345579
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean mayRate(String sketchID, String userID) throws ServletException { return excludeSelf(sketchID, userID, TYPE_SKETCH) && // excludeSelfParent(sketchID, userID, TYPE_SKETCH) && // excludeSelfParentParent(sketchID, userID, TYPE_SKETCH) && // excludeSelfRated(sketchID, userID, TYPE_SKETCH); } COM: <s> this is just like the exclude methods </s>
funcom_train/15954492
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testInsertFloat() throws BMLException{ String lsValue = "Good"; DataString ldString = new DataString(fBlank); ldString.setString(lsValue); float lValue = 123.7f; ldString.insert(1,lValue); assertEquals("G123.7ood",ldString.toString()); } COM: <s> test of insert method using offset float </s>
funcom_train/16630302
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public XMLNoteMark getNextMark(int offset, boolean wrap) { Vector<XMLNoteMark> orderedMarks=getOrderedMarks(); int i,n; for(i=0,n=orderedMarks.size();i<n && orderedMarks.get(i).offset()<=offset;i++); if (i==n && wrap) { i=0; } if (i>=n) { return null; } else { return orderedMarks.get(i); } } COM: <s> returns the first xmlnote mark after the given offset </s>
funcom_train/12300900
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addRedPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_RGBType_red_feature"), getString("_UI_PropertyDescriptor_description", "_UI_RGBType_red_feature", "_UI_RGBType_type"), SchemaPackage.Literals.RGB_TYPE__RED, true, false, false, ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the red feature </s>
funcom_train/36171409
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void printXml(String name) { try { if (!name.endsWith(".xml")); name += ".xml"; File file = new File(name); if (!file.exists()) { // create file if needed file.createNewFile(); } // open output FileWriter fout = new FileWriter(file); // write for (JClass x : classList) { fout.write(x.toString("")); fout.flush(); } } catch (IOException e) { e.printStackTrace(); } } COM: <s> prints the class data to an xml file </s>
funcom_train/16380632
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addInputLengthPropertyDescriptor(Object object) { itemPropertyDescriptors.add (new UnsettablePropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_GapDefType_inputLength_feature"), getString("_UI_PropertyDescriptor_description", "_UI_GapDefType_inputLength_feature", "_UI_GapDefType_type"), CTEPackage.Literals.GAP_DEF_TYPE__INPUT_LENGTH, true, false, false, ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the input length feature </s>
funcom_train/23852099
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected BitSet getBitVector(HierarchicalClusterNode<S> node) throws ClusteringException { logger.trace("Entering getBitVector"); Preconditions.checkArgument(isSinglePropertyDistance()); PropertyDefinition propDef = propertyVector.iterator().next(); return node.getContent().getBitFingerprintBitSet(propDef); } COM: <s> extracts the bit vector from a bit vector container </s>
funcom_train/8358744
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateItemValue(Object aValue, int columnIndex, OrderedItem item) { Integer iValue; try { iValue = Integer.valueOf(aValue.toString()); } catch (Exception e) { return; } switch (columnIndex) { case COLUMN_COUNT: if (iValue != item.getCount()) { item.setCount(iValue); } else { return; } break; case COLUMN_MASS: if (iValue != item.getNewMass()) { item.setNewMass(iValue); } else { return; } break; } item.setUpdated(true); persistOrderItem(item); } COM: <s> updating value for the item </s>
funcom_train/15626647
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void fireSelectionChangedEvent() { final G gameObject = selectedGameObject; final G head = gameObject == null ? null : gameObject.getHead(); for (final SelectedSquareModelListener<G, A, R> listener : listenerList.getListeners()) { listener.selectionChanged(selectedMapSquare, head); } } COM: <s> notifies all listeners that the selected map square has changed </s>
funcom_train/14275533
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void build(GeneralizedEquation GE, int readMin, double writeMin, int readMax, double writeMax){ PartialPrint aPrint = new PartialPrint(); int readCursor = readMin; double writeCursor = writeMin; print(GE, aPrint, readCursor, writeCursor, readMin, writeMin, readMax, writeMax); } COM: <s> build the set of prints from the ge </s>
funcom_train/18729527
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Vertex intersection(Vertex vertex) { if (intersects(vertex)) { return vertex; } else { Vertex v = to.minus(from); double length = getLength(); Vertex w = vertex.minus(from); double t = v.dot(w); v.scaleIt(t / (length * length)); return from.add(v); } } COM: <s> finds the intersection between a vertex and this </s>
funcom_train/18128124
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ResponseCtx evaluate(RequestCtx requestCtx) throws IOException { ResponseCtx response = pdp.evaluate(requestCtx); for(Evaluatable eval : evalList){ try { pdp.undeploy(eval.getId()); } catch (Exception e) { log.error("Evaluatable undeploy error ", e); } } // evaluate the request return response; } COM: <s> evaluates the given request and returns the response that the pdp </s>
funcom_train/25290496
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void insertChild(Node child, int index) { if (child instanceof SharedGroup) { throw new IllegalArgumentException(Ding3dI18N.getString("Group2")); } if (isLiveOrCompiled()) { if (! (child instanceof BranchGroup)) throw new RestrictedAccessException(Ding3dI18N.getString("Group6")); if (!this.getCapability(ALLOW_CHILDREN_WRITE)) throw new CapabilityNotSetException(Ding3dI18N.getString("Group14")); } ((GroupRetained)this.retained).insertChild(child, index); } COM: <s> inserts the specified child node in this group nodes list of </s>
funcom_train/35095524
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void convertPoint(Point point, GestureManager<?> manager) { if (manager.getRegisteredComponent() instanceof Component) { SwingUtilities.convertPointToScreen( point, (Component) manager.getRegisteredComponent()); SwingUtilities.convertPointFromScreen(point, renderOn); } } COM: <s> converts the given point from the managers registered components </s>
funcom_train/35021550
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void instanceMethod(int p1, char p2, String p3) { double local_dbl = 3.14d; float local_flt = 3.14f; int local_int = 314; long l = (long) (local_dbl + local_flt) + local_int; if (l == 320) { // BREAKPOINT HERE: 119 System.out.println("That's weird"); } } COM: <s> this is a convenient stopping point </s>
funcom_train/44848655
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setLookup(ILookupWindow inLookup) { if (lookupMap.get(inLookup.getType()) == null) { lookupMap.put(inLookup.getType(), inLookup); } LOG.debug("Setting content lookup of type {}.", inLookup.getType()); //$NON-NLS-1$ } COM: <s> the services binding method </s>
funcom_train/5608837
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String thisQname() { NQname n = getTop(); StringBuilder sb = new StringBuilder(); sb.append(n.name.id); while (n != this) { sb.append("."); n = n.next; sb.append(n.name.id); } return sb.toString(); } COM: <s> returns the qname down to and including this component ending </s>
funcom_train/30075650
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected ModelAndView disallowDuplicateFormSubmission(HttpServletRequest request, HttpServletResponse response) throws Exception { BindException errors = new BindException(formBackingObject(request), getCommandName()); errors.reject("duplicateFormSubmission", null, "Duplicate form submission"); return showForm(request, response, errors); } COM: <s> method disallows duplicate form submission </s>
funcom_train/8313752
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public BattleGroup searchParent(BattleGroup child) { Iterator<BattleGroup> it = children(); while(it.hasNext()) { BattleGroup bg = (BattleGroup) it.next(); if(child == bg) return this; } it = children(); while(it.hasNext()) { BattleGroup result = null; BattleGroup sub = (BattleGroup) it.next(); result = sub.searchParent(child); if(result != null) return result; } return null; } COM: <s> recursively search for the parent battlegroup of the given battlegroup </s>
funcom_train/16557284
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Class getValueClass() { if (valueClass == null) try { valueClass = Class.forName(className); } catch (ClassNotFoundException exception) { Utilities.unexpectedException("org.geotools.factory", "Hints.Key", "isCompatibleValue", exception); valueClass = Object.class; } return valueClass; } COM: <s> returns the expected class for values stored under this key </s>
funcom_train/35361896
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Color getPrefixColor(String prefix, String key, Color Default) { String c = getPrefixProperty(prefix, key, null); if (c == null) { return Default; } try { return Color.decode(c); } catch (NumberFormatException e) { return Default; } } COM: <s> return the color that has the given key prefix </s>
funcom_train/32056702
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetRendererComponent() { System.out.println("testGetRendererComponent"); EdgeRenderer edge = new EdgeRenderer(); JGraph jgraph = new JGraph(); CellView cellview = null; boolean flag = true; boolean flag1 = true; boolean flag2 = true; assertTrue(edge.getRendererComponent(jgraph, cellview, flag, flag1, flag2) == null); } COM: <s> this function tests get renderer component function of edge renderer class </s>
funcom_train/31725016
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getTrackingKey() { String currentTrackingKey = trackingKey; double highestConfidenceLevel = 0; if (trackingKey == null || !stm_id.containsKey(trackingKey)) { Enumeration e = stm_id.keys(); while (e.hasMoreElements()) { trackingKey = (String) e.nextElement(); MemoryObject mo = getToken(trackingKey, 0.50); if ( (mo != null) && (mo.colorlabel.equals(trackingColor)) ){ return trackingKey; } } trackingKey = null; } return trackingKey; } COM: <s> get the current tracking key if the object no longer is in memory </s>
funcom_train/35274768
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addRunConfiguration(Project project, String name, Properties properties) { try { J2SEProjectConfigurations.createConfigurationFiles(project, name, properties, null); } catch (IOException ex) { Exceptions.printStackTrace(ex); } catch (IllegalArgumentException ex) { Exceptions.printStackTrace(ex); } } COM: <s> adds a run configuration works direct no removing </s>
funcom_train/777448
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testJadeBaseSetBadAttributes() { try { AttributeList aList = new AttributeList( 1 ); aList.add( new Attribute("foo","bar")); jadeNil.setAttributes( aList ); fail("didn't get exception trying to set non-existent attribute"); } catch ( RuntimeException re ) { assertTrue(true); } } COM: <s> try to set non existent attributes </s>
funcom_train/1903431
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void loginSuccess() { try { // URL GSH = new URL(authenURL); // create a client object AuthenticationServiceClient client = new AuthenticationServiceClient( authenURL); // client.createEcoGridAuthLevelOnePortType(); sessionId = client.login_action(username, password); assertFalse(sessionId.equals("an unknown error")); } catch (Exception e) { fail("Authentication exception:\n" + e.getMessage()); } }// login COM: <s> method to test login success method </s>
funcom_train/34838638
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int compare(Object o1, Object o2) { Object v1 = getRealValueAt(o1, sortedColumn); Object v2 = getRealValueAt(o2, sortedColumn); int comp = compareValues(v1, v2); if( !ascending ) { comp = -comp; } return comp; } COM: <s> compares its two arguments for order </s>
funcom_train/8059904
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void modifyTagOfWavelet(Wavelet wavelet, String tag, String modifyHow) { appendOperation(OperationType.WAVELET_MODIFY_TAG, wavelet, Parameter.of(ParamsProperty.NAME, tag), Parameter.of(ParamsProperty.MODIFY_HOW, modifyHow)); } COM: <s> modifies a tag in a wavelet </s>
funcom_train/1518946
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private float calcPoint(float t){ //PApplet.println("t:" + t); if(t1 == t2) return v1; t = (t - t1) /(t2 - t1); //PApplet.println("t:" + t); float[] h = hermiteFunctions(t); return h[0] * v1 + h[1] * v2 + h[2] * tan1 + h[3] * tan2; } COM: <s> returns a value from the tcb spline at a specified time </s>
funcom_train/7443850
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addGeneralHeaders(Message message, Series<Parameter> headers) { if (!isPersistent()) { headers.set(HeaderConstants.HEADER_CONNECTION, "close", true); } if (shouldBeChunked(message.getEntity())) { headers.add(HeaderConstants.HEADER_TRANSFER_ENCODING, "chunked"); } HeaderUtils.addGeneralHeaders(message, headers); } COM: <s> adds the general headers from the </s>
funcom_train/9147207
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long readDelta() throws IOException { long numBits = readGamma(); checkDelta(numBits); if (numBits > 63l) { String msg = "Delta code must use <= 63 bits for fixed portion." + " Found number of remaining bits=" + numBits; throw new IOException(msg); } return readRest((int)numBits-1,1l); } COM: <s> reads the next value from the input using an elias delta code </s>
funcom_train/32634158
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeLocallyDeclareable(Set set) { if (type == FOR && initInstr instanceof StoreInstruction) { StoreInstruction storeOp = (StoreInstruction) initInstr; if (storeOp.getLValue() instanceof LocalStoreOperator) { LocalInfo local = ((LocalStoreOperator) storeOp.getLValue()).getLocalInfo(); set.remove(local); } } } COM: <s> remove all variables from set that we can declare inside the </s>
funcom_train/20770307
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: synchronized public void setCenterRadius(int centerRadius) { if(centerRadius<0) centerRadius=0; else if(centerRadius>=surroundRadius) centerRadius=surroundRadius-1; this.centerRadius = centerRadius; getPrefs().putInt("SpatialBandpassFilter.centerRadius",centerRadius); computeOffsets(); } COM: <s> sets the center radius 0 meaning a single pixel </s>
funcom_train/10633715
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSortControl() throws Exception { try { new SortControl((String[]) null, false); fail("NullPointerException expected"); } catch (NullPointerException e) {} try { new SortControl((SortKey[]) null, false); fail("NullPointerException expected"); } catch (NullPointerException e) {} } COM: <s> tests how constructors with arrayas process null </s>
funcom_train/36489475
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void contextInitialized(ServletContextEvent event) { ServletContext context = event.getServletContext(); addContextEntry(context, "order-attribute-names"); addContextEntry(context, "daily-special-item-names"); context.setAttribute("dailySpecialCount", new Integer(0)); } COM: <s> when the web application is loaded record the </s>