__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/33872048
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addSourcePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_linkRegraFuncionalidade_source_feature"), getString("_UI_PropertyDescriptor_description", "_UI_linkRegraFuncionalidade_source_feature", "_UI_linkRegraFuncionalidade_type"), FirPackage.Literals.LINK_REGRA_FUNCIONALIDADE__SOURCE, true, false, true, null, null, null)); } COM: <s> this adds a property descriptor for the source feature </s>
funcom_train/43187055
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public Format matches(Format outs[], Format ins[], PlugIn up, PlugIn down) { Format fmt; if (outs == null) return null; for (int i = 0; i < outs.length; i++) { if ((fmt = matches(outs[i], ins, up, down)) != null) return fmt; } return null; } COM: <s> choose a format among the two input arrays that matches and verify </s>
funcom_train/2586805
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean containsValue(final Object value) { final Iterator e = this.table.values().iterator(); boolean found = false; while (e.hasNext() && !found) { final List v = (List) e.next(); found = v.contains(value); } return found; } COM: <s> tests whether this map contains the given value </s>
funcom_train/24639028
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private DirContext getDirContext() throws NamingException { Singleton singleton = Singleton.getInstance(); Properties env = new Properties(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); env.put(Context.PROVIDER_URL, singleton.getProperty("openldap.provider-url")); env.put(Context.SECURITY_PRINCIPAL, singleton.getProperty("openldap.security-principal")); env.put(Context.SECURITY_CREDENTIALS, singleton.getProperty("openldap.security-credentials")); return new InitialDirContext(env); } COM: <s> restituisce in context per la connessione al server ldap </s>
funcom_train/1957910
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void lookUpHostName(HostCommRenderer host){ if(host.getIpAddress().equals(ATraceRoute.UNREACHABLE_HOST_IP)){ host.setHostName(ATraceRoute.UNREACHABLE_HOST_NAME); } else if(host.getHostName() == null || host.getHostName().equals("") || host.getHostName().equals(host.getIpAddress())){ this.lookUpHosts.lookUpHostName(host); } else{ //do nothing, hostname in known } } COM: <s> look up the host name of a host comm renderer </s>
funcom_train/43038380
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void appendContent(char c) { // Append this way because 'try's are free while (true) { try { contentBuf[contentBufOff] = c; contentBufOff++; break; } catch (ArrayIndexOutOfBoundsException ex) { char[] newBuf = new char[contentBuf.length << 1]; System.arraycopy(contentBuf, 0, newBuf, 0, contentBufOff); contentBuf = newBuf; } } } COM: <s> appends to the content buffer </s>
funcom_train/3832684
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void fill(int noOfInstances) throws Exception { for (int i = 0; i < noOfInstances; i++) { Object o = WFSFactory.createWFSService( capa, dispatcher ); existingInstances++; available.add( o ); // set the start of its life time startLifeTime.put( o, new Long( System.currentTimeMillis() ) ); } } COM: <s> fill the pool with the submitted number of instances </s>
funcom_train/46619272
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Class loadClass(String classname) throws Exception { if (classpath == null) { return Class.forName(classname); } else { AntClassLoader al = getProject().createClassLoader(classpath); Class c = Class.forName(classname, true, al); return c; } } COM: <s> load named class either via the system classloader or a given </s>
funcom_train/17568364
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void showVersion() { //Gets the version of Fingerprint SDK String version = fingerprintSDKSample.getFingerprintSDKVersion(); //displays it an a message dialog. JOptionPane.showMessageDialog(rootPane, version, "Fingerprint SDK Version", JOptionPane.PLAIN_MESSAGE); } COM: <s> this method shows a dialog containing current fingerprint sdk version i </s>
funcom_train/12639881
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int read(byte[] buf, int off, int len) throws IOException { ensureOpen(); if (eos) { return -1; } len = super.read(buf, off, len); if (len == -1) { readTrailer(); eos = true; } else { crc.update(buf, off, len); } return len; } COM: <s> reads uncompressed data into an array of bytes </s>
funcom_train/42464361
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void appendEmail(String email) { if (email != null && email.length() > 0) { StringItem emailItem = new StringItem(null, email + "\n", StringItem.HYPERLINK); emailItem.setDefaultCommand(Commands.getMailCommand()); emailItem.setItemCommandListener(BlyncClient.getMIDlet()); append(emailItem); } } COM: <s> append a clickable email address </s>
funcom_train/14464294
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setFontWeight(int wt) { // 200708207 KSC // see if can find font with this, if not, duplicate it Font f= cloneFont(myxf.getFont()); f.setFontWeight(wt); updateFont(f); // 20071010 KSC: update font for this FormatHandle + handing all necessary links ... /* old way myfont.setFontWeight(wt); */ } COM: <s> set the font weight </s>
funcom_train/3596017
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setLinkType(int linktype) { String val = NiteMetaConstants.corpusLinksLTXML1; if (linktype == XPOINTER_LINKS) { val=NiteMetaConstants.corpusLinksXPointer;} try { Node n = XPathAPI.selectSingleNode(doc, NiteMetaConstants.linksyntaxxpath); if (n!=null) { n.setNodeValue(val); } } catch (TransformerException e) { e.printStackTrace(); } link_type=linktype; } COM: <s> set the type of links this metadata has or will be serialized </s>
funcom_train/42302680
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void launchGraphic(Game game, String playerName) { GameTableWindow gt = GameTableWindowSingleton.getInstance() .getGameTablePanel(); gt.setTitle(game.getName() + " - " + playerName); PlayersTable t = gt.setGame(game); gt.setTurnToPlayer(0); gt.setVisible(true); gt.refreshPanels(t); RegistrationWindowSingleton.getInstance().getRegistrationWindow() .setNotificationDialogNotVisible(); } COM: <s> this function launches the graphics for the game </s>
funcom_train/28500605
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setAutoStartParameters( final String pDefaultInstancePath, final String pAutoRunWhenInput ) throws JC_Exception { if (pDefaultInstancePath!=null) { setProperty( "jecars:DefaultInstancePath", pDefaultInstancePath ); } if (pAutoRunWhenInput!=null) { setProperty( "jecars:AutoRunWhenInput", pAutoRunWhenInput ); } return; } COM: <s> set auto start parameters </s>
funcom_train/19217961
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void pasteNode() { if (_clipboard != null && _lastSelected != null) { final GroupNode parent = getSelectedGroupNode(); final ModelNode copy = _clipboard.getModelNode(); parent.getGroup().add(copy); final MyTreeNode copyNode = _clipboard; parent.add(copyNode); _tree.display(parent); selectNode(copyNode); } } COM: <s> insert the current clipboard node to the tree branch </s>
funcom_train/3703263
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String getDaysOfWeekAsDescription() { int[] daysArr = getDaysOfWeekAsIntArray(); if (daysArr.length <= 0) { return (null); } return (DayOfWeekLib.toConsecutiveDays(daysArr, "-", false)); } // of method COM: <s> get the days of week as a human readable string </s>
funcom_train/25203772
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void readMask(CharString ch, RandomAccessR rar) throws IOException { int cnt = (ch.getActualHints() / 2 - 1) / 8; mask = rar.readUnsignedByte(); for (int i = 0; i < cnt; i++) { mask = mask << 8; mask += rar.readUnsignedByte(); } } COM: <s> read the mask </s>
funcom_train/42382883
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getLinkHopCount() { int linkHops = 0; for(int i = pathFromSeed.length()-1; i>=0; i--) { if(pathFromSeed.charAt(i)==Hop.NAVLINK.getHopChar()) { linkHops++; } } return linkHops; } COM: <s> get the link hop count </s>
funcom_train/33234025
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public StringItem getCardFailedSI() { if (cardFailedSI == null) {//GEN-END:|129-getter|0|129-preInit // write pre-init user code here cardFailedSI = new StringItem("Failed:", null);//GEN-LINE:|129-getter|1|129-postInit // write post-init user code here }//GEN-BEGIN:|129-getter|2| return cardFailedSI; } COM: <s> returns an initiliazed instance of card failed si component </s>
funcom_train/28308627
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void handleError() { String fileName = connector.getErrorDir() + File.separator + connector.getName() + "_error_" + container.getId(); if (!fileToProcess.renameTo(new File(fileName))) { logger.error("Could not rename " + fileToProcess + " to " + fileName); } handleErrorSpecific(); } COM: <s> implements the generic error handling for all handlers moves the file that </s>
funcom_train/15401311
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void removeOverlayPanel() { if (getImagePanel() != null) { if (getImagePanel().isAncestorOf(_overlayPanel)) { getImagePanel().remove(_overlayPanel); } getImagePanel().revalidate(); getImagePanel().repaint(); _overlayPanel = null; } } COM: <s> removes the current overlay panel </s>
funcom_train/28750559
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setOrdercomments(String newVal) { if ((newVal != null && this.ordercomments != null && (newVal.compareTo(this.ordercomments) == 0)) || (newVal == null && this.ordercomments == null && ordercomments_is_initialized)) { return; } this.ordercomments = newVal; ordercomments_is_modified = true; ordercomments_is_initialized = true; } COM: <s> setter method for ordercomments </s>
funcom_train/44398403
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setConnected(boolean b) { connected = b; if (b) { this.setEnabledAt(1, true); jButton.setText("Disonnect"); } else { this.setEnabledAt(1, false); jButton.setText("Connect"); setSelected(false); this.setSelectedIndex(0); } } COM: <s> connected property setter </s>
funcom_train/14615115
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals( Object o ) { if( this == o ) { return true; } if( !( o instanceof SimpleNumber )) { return false; } final SimpleNumber simpleNumber = ( SimpleNumber ) o; if( empty != simpleNumber.empty ) { return false; } if( empty == true ) { return true; } return( numberValue == simpleNumber.numberValue ); } COM: <s> tests this object for equality with the given object </s>
funcom_train/18518287
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setVersionupdatetype(String versionupdatetype) { if (versionupdatetype.equals(versionTypes[POINT_VERSION])) { this.versionupdatetype = POINT_VERSION; } else if (versionupdatetype.equals(versionTypes[MAJOR_VERSION])) { this.versionupdatetype = MAJOR_VERSION; } else if (versionupdatetype.equals(versionTypes[MINOR_VERSION])) { this.versionupdatetype = MINOR_VERSION; } else { this.versionupdatetype = NONE; } } COM: <s> sets the variablename to update the build version </s>
funcom_train/22082475
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getOnLoadEvent() throws SAXException { NodeList nl = ((Document) getOriginalDOM()).getElementsByTagName( "body" ); if (nl.getLength() == 0) return ""; return ((Element) nl.item(0)).getAttribute( "onload" ); } COM: <s> returns the on load event script </s>
funcom_train/35313700
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isCompletelyDirty(JComponent aComponent) { RepaintManager delegate = getDelegate(aComponent); if (delegate != null) { return delegate.isCompletelyDirty(aComponent); } Rectangle r; r = getDirtyRegion(aComponent); if(r.width == Integer.MAX_VALUE && r.height == Integer.MAX_VALUE) return true; else return false; } COM: <s> convenience method that returns true if b a component b will be completely </s>
funcom_train/20899757
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getVoxelValueInt(int x, int y, int z) { int a = (x + this.x * y + this.x * this.y * z); int b = image2[a / Integer.SIZE]; int i = a % Integer.SIZE; return (b >> (Integer.SIZE - 1 - i) & 0x0001); } COM: <s> returns the voxel value from code image2 code </s>
funcom_train/51431907
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testShell() throws Exception { command.setMysqlPath("e:/Ideaconsult/AmbitXT-v2.00/mysql"); MySQLStart shell = new MySQLStart(); shell.runShell(command); Assert.assertNotNull(command.getProcess()); Assert.assertNull(command.getException()); command.setCommand(ICommand.COMMAND.STOP); shell.runShell(command); Assert.assertNotNull(command.getProcess()); Assert.assertNull(command.getException()); } COM: <s> test of a newer implementation of my sqlshell as a </s>
funcom_train/3427898
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toSignature(String lastArgSig) { final StringBuffer buffer = new StringBuffer(); buffer.append('('); if (_argsType != null) { final int n = _argsType.size(); for (int i = 0; i < n; i++) { buffer.append(((Type)_argsType.elementAt(i)).toSignature()); } } return buffer .append(lastArgSig) .append(')') .append(_resultType.toSignature()) .toString(); } COM: <s> returns the signature of this method that results by adding </s>
funcom_train/8638545
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addFont(Font font) { if (font.getBaseFont() != null) { fonts.add(font); return; } BaseFont bf = font.getCalculatedBaseFont(true); Font f2 = new Font(bf, font.getSize(), font.getCalculatedStyle(), font.getColor()); fonts.add(f2); } COM: <s> adds a code font code to be searched for valid characters </s>
funcom_train/22742298
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void pressedButton(boolean pressed) { if (pressed) { btnPressSprite.setFrame(btnSelSprite.getFrame()); btnPressSprite.setPosition(btnSelSprite.getRefPixelX(), btnSelSprite.getRefPixelY()); } btnPressSprite.setVisible(pressed); btnSelSprite.setVisible(!pressed); } COM: <s> button pressed action </s>
funcom_train/652381
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testDoubleClickAfterOpeningCurlyBrace() { mock.expectAndReturn("getDocument", new Document("{ }")); mock.expectAndReturn("getSelectedRange", new Point(1, 0)); mock.expect("setSelectedRange", C.args(C.eq(1), C.eq(1))); strategy.doubleClicked((ITextViewer) mock.proxy()); } COM: <s> verifies that a double click directly after an opening curly brace </s>
funcom_train/4887529
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void sendOwnPlayerData(PlayerData data) { data.setName(main.getSettings().getSelectedCharName()); data.setServername(main.getSettings().getPlayingServer().name()); String dat = RegnumProtokoll.createPlayerData(data); readerThread.sendData(dat); } COM: <s> sends player data to server </s>
funcom_train/13515132
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void remove() { if (index == bulkCache.size() - 1) { _nextNode = null; if (bulkNextNodePos != null) { bulkCache = nextBulk(cachedPages); length = bulkCache.size(); if (length > 0) { index = -1; _nextNode = (NodeInfo) bulkCache.get(0); } } } super.remove(); } COM: <s> remove a node in current bulk </s>
funcom_train/14426231
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addLine(String left, String middle, String right, int leftStyle, int middleStyle,int rightStyle){ // Adding border or not. if (seeBorder){ content.append("|"); } // text dump. appendText(left,leftStyle); content.append("|"); appendText(middle,middleStyle); content.append("|"); appendText(right,rightStyle); // Staring new Line content.append("\n"); } COM: <s> adds a line to the current row </s>
funcom_train/25365685
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addActionPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_RoomEvent_action_feature"), getString("_UI_PropertyDescriptor_description", "_UI_RoomEvent_action_feature", "_UI_RoomEvent_type"), LeveleditorPackage.Literals.ROOM_EVENT__ACTION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the action feature </s>
funcom_train/8804430
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(java.lang.Object ano){ if (this == ano) return true; else if (null == ano) return false; else if (ano.getClass().equals(this.getClass())) return this.reference.equals(((PSioFile)ano).getReference()); else return false; } COM: <s> strong object class and reference string equivalence </s>
funcom_train/34825874
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String simplifiedUnistrok () { String toReturn=Integer.toHexString (simplified) + " " + (char)simplified + " | "; for (Stroke stroke : strokes) { toReturn+=" "+stroke.stroke; } if (filters!=0) { toReturn+=" | "+filters; } return toReturn; } COM: <s> returns the unistrok representation of the simplified character </s>
funcom_train/38813631
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean removeKey() { String key = keys.get(activeRow); // it should a key in the list if (!prop.containsAsKey(key)) { return false; } // we try to remove it from the current language prop.removeKey(key); // update the row in question fireTableCellUpdated(keys.indexOf(key), 0); // update the status bar updateProgressBar(); return true; } COM: <s> removes the key of the active row </s>
funcom_train/41459255
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void queue(DtmfEventImpl evt) { if (queue.size() == size) { queue.poll(); } queue.offer(evt); logger.info(String.format("(%s) Buffer size: %d", detector.getName(), queue.size())); } COM: <s> queues specified event </s>
funcom_train/5381779
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Map getAuthorizationInfo(URL serverUrl, String realm, String authScheme) { Hashtable realmToAuthScheme = (Hashtable) authorizationInfo.get(serverUrl.toString()); if (realmToAuthScheme == null) { return null; } Hashtable authSchemeToInfo = (Hashtable) realmToAuthScheme.get(realm); if (authSchemeToInfo == null) { return null; } return (Map) authSchemeToInfo.get(authScheme.toLowerCase()); } COM: <s> returns the authorization information for the specified protection </s>
funcom_train/33898745
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public String removeNonIntegerChars(String text) { if (text==null) return ""; char[] chars = text.toCharArray(); StringBuffer extracted = new StringBuffer(chars.length); boolean foundDecimal = false; for (int i=0; i< chars.length; i++) { if (chars[i] >= '0' && chars[i] <= '9') { extracted.append(chars[i]); } } return (extracted.toString()); } COM: <s> removes anything that isnt 0 9 including decimals and negative signs </s>
funcom_train/18422689
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Object methodCalled(String method, Object parameters) { try { if(!(parameters instanceof Object[])) { parameters = new Object[] {parameters}; } return methodCalledImpl(method, (Object[])parameters); } catch (Throwable e) { if(e instanceof RuntimeException) throw (RuntimeException)e; throw new RuntimeException("Sorry, must wrap exception, unwrap in your mockobject, or have mockObject call methodCalledImpl instead", e); } } COM: <s> subclasses should call this method when a method on their interface </s>
funcom_train/40451326
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getProperty(SensorData data, String key) { List<Property> propertyList = data.getProperties().getProperty(); for (Property property : propertyList) { if (key.equals(property.getKey())) { return property.getValue(); } } return null; } COM: <s> returns the string value associated with the specified property key </s>
funcom_train/3906788
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void showDialog() { // Do this later because a modal dialog will block SwingUtilities.invokeLater(new Runnable() { public void run() { // Update the Panels _generalPrefsPanel.setFields(_userPrefs); _cpPrefsPanel.setFields(_userPrefs); _mdPrefsPanel.setFields(_userPrefs); _appearancePrefsPanel.setFields(_userPrefs); } }); super.setVisible(true); } COM: <s> this so we can set up the panels </s>
funcom_train/31359737
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void doSomething(int buttonNo, int row) { if (buttonNo < 0 || buttonNo >= reorder.length) return; switch(reorder[buttonNo]){ case ENABLE: start(); break; case DISABLE: stop(); break; case UPGRADE: upgrade(); break; case SHOWME: showme(); break; case ADD: new NewInstanceFrame(connection, server, service.getTitle(), null, getTitle(), true); break; case REMOVE: ComponentModel child = null; row = extensionTable.getSelectedRow(); if (row < 0) return; child = dataModel.get(row); removeExtension((ModuleComponentModel)child); break; } } COM: <s> a button was pushed </s>
funcom_train/11720355
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void printFooter(Context ctx, Iterator iter) { CommandHelper.getOutput(ctx).println(); CommandHelper.getOutput(ctx).println(bundle.getString("word.total")); if (iter instanceof NodeIterator) { printFooter(ctx, (NodeIterator) iter); } else if (iter instanceof PropertyIterator) { printFooter(ctx, (PropertyIterator) iter); } } COM: <s> print the footer </s>
funcom_train/19913307
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String stripNonUsASCII(String text) { if (text == null) return null; char[] data = text.toCharArray(); for (int i = 0; i < data.length; i++) { if (data[i] >= 0x00A0 && data[i] <= 0x00FF) data[i] = ASCII_TRANSLATIONS[data[i] - 0x00A0]; else if (data[i] > 0x007f) data[i] = '_'; } return new String(data); } COM: <s> replaces all characters with unicode not bewteen 0 and 0x007f us ascii </s>
funcom_train/5016679
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void writeCDATA(CDATASection _node, Writer _writer) throws IOException { if ((_writer != null) && (_node != null) && (_node.getData() != null)) { _writer.write("<![CDATA[" + _node.getData() + "]]>"); } } COM: <s> write cdata section to writer </s>
funcom_train/39871173
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setPassword(final Account account, final String password) { if (account == null) throw new IllegalArgumentException("account is null"); try { mService.setPassword(account, password); } catch (RemoteException e) { // won't ever happen throw new RuntimeException(e); } } COM: <s> sets or forgets a saved password </s>
funcom_train/8483844
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ATObject meta_quote(ATContext ctx) throws InterpreterException { return new AGDefExternalMethod(rcvNam_.meta_quote(ctx).asSymbol(), selectorExp_.meta_quote(ctx).asSymbol(), argumentExps_.meta_quote(ctx).asTable(), bodyStmts_.meta_quote(ctx).asBegin(), annotationExps_.meta_quote(ctx).asExpression()); } COM: <s> quoting an external method definition results in a new quoted external method definition </s>
funcom_train/268491
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String nativeSQL(String sql) throws java.sql.SQLException { if (Driver.TRACE) { Object[] args = { sql }; Debug.methodCall(this, "nativeSQL", args); Debug.returnValue(this, "nativeSQL", sql); } return EscapeProcessor.escapeSQL(sql); } COM: <s> a driver may convert the jdbc sql grammar into its systems </s>
funcom_train/18229297
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean add(Object o) { if (o == null) { size++; nullCount++; modcount++; return true; } Entry e = object2Entry(o); if (e != null) { return false; } modcount++; size++; int hash = hashIt(o); Entry next = entries[hash]; iterChain = entries[hash] = new Entry(o, refq, next, iterChain); rehash(); return true; } COM: <s> adds the specified element to this set if it is not already present </s>
funcom_train/17493495
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void parseDocumentation() throws IOException, BadSyntaxException { HTMLDocumentation doc; String id; String url; parser.getWhitespace(); id = parser.getQuoted(); getEOL(); url = parser.getQuoted(); getEOL(); parser.getKeyword("endtext"); getEOX(); doc = new HTMLDocumentation(id, DEBUG); doc.setURL(url); interactionObjects.put(id, doc); } COM: <s> parses the documentation keyword </s>
funcom_train/22780376
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void addAllSubRoot(File dir){ if (dir.isDirectory()) { String[] children = dir.list(); for (int i=0; i<children.length; i++) { addAllSubRoot(new File(dir, children[i])); } } else { File currentFile[] = new File[1]; currentFile[0]=dir; populateClasses(currentFile); } } COM: <s> recursively adds all files that belong to subdirectories of the root </s>
funcom_train/37444117
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void validateConstant(final Object constant) throws InvalidArgumentException { CDebug.checkParameterNotNull(constant, "constant"); if (!constants.containsValue(constant)) { throw new InvalidArgumentException(getResourceBundleName(), MSG_INVALID_CONSTANT, new Object [] {constant}); } } COM: <s> validates that the supplied constant exists </s>
funcom_train/2740088
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void visit(Rule rule) { // visit((Object) rule); //System.out.println("visit "+rule); invokeMethod(rule, "visit"); //smv4valid: Every rule can eventually fire String cond = and(mv.conditions); if(mv.ruleCond.containsKey(rule)) { mv.ruleCond.get(rule).add(cond); } else { List<String> conds = new ArrayList<String>(); conds.add(cond); mv.ruleCond.put(rule, conds); } } COM: <s> visita una regola generica </s>
funcom_train/47555928
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean flush() throws IOException { boolean success = true; try { Item.format(input,0, 0, width, width, true, true); } catch (Overrun o) { success = false; } input.sendOutput(output, 0, 0); output.flush(); input.free(); current = input = new Block(null, 0); return success; } COM: <s> send out the current batch of text to be formatted </s>
funcom_train/1929370
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addConstraintGetDisjunctArrayMethod() { Type arrayType = ArrayType.v(objectType, 1); startMethod("getDisjunctArray", emptyList, arrayType, Modifier.PUBLIC); // return this.disjuncts.toArray(); doReturn(getMethodCallResult(getFieldLocal(getThisLocal(), "disjuncts", setType), "toArray", arrayType)); } COM: <s> add a method with signature object get disjunct array </s>
funcom_train/36905865
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setMyAddress(Sample.Address value) throws CacheException { Dataholder dh = new Dataholder (value); mInternal.setProperty(ii_MyAddress, jj_MyAddress,kk_MyAddress, Database.RET_OBJECT, "MyAddress", dh); return; } COM: <s> sets new value for code my address code </s>
funcom_train/37565682
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void copy(String srcf, String dstf) throws IOException { if (FileUtil.copyContents(nfs, new File(srcf), new File(dstf), true)) { System.out.println("Copied " + srcf + " to " + dstf); } else { System.out.println("Copy failed"); } } COM: <s> copy an ndfs file </s>
funcom_train/47867409
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JTabbedPane getTabbedPane() { if (tabbedPane == null) { tabbedPane = new JTabbedPane(); tabbedPane.addTab("Communications", getTabComm()); tabbedPane.addTab("Password", getTabPassword()); tabbedPane.addTab("Auto Dock", getTabDock()); tabbedPane.setSelectedIndex(0); } return tabbedPane; } COM: <s> this method initializes tabbed pane </s>
funcom_train/14175530
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getMaxWidth() { int back = 0; Collection c = subElements(); Iterator it = c.iterator(); while (it.hasNext()) { Iconed iconed = (Iconed) it.next(); Icon i = iconed.getIcon(); if (i != null) { back = Math.max(i.getIconWidth(), back); } } if (getLogger().isDebugEnabled()) { getLogger().debug("max width of icons is " + back); } return back; } COM: <s> returns the maximal width of all icon instances </s>
funcom_train/34479029
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void initializeRepository() throws SdaiException { virtual = false; active = false; modified = false; committed = false; created_or_imported = false; model_deleted = false; schema_instance_deleted = false; remote_created = false; suppress_short_names = true; temporary = false; internal_usage = false; serverThread = 0; language = null; unresolved_mod_count = 0; unresolved_sch_count = 0; entityExternalData = null; entityRemovedExternalData = null; next_used_identifier = -1; } COM: <s> sets some repository fields with values </s>
funcom_train/31658025
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addNamespaceComponent(JComponent c) { if (FormUtil.hasVariableBinding(this.formModelNode, Variable.URI_RESOURCE) && !namespaces.isEmpty()) { if (namespaces.get(0) != null) { namespaces.add(0, null); } this.namespaceComponent = new NamespaceComponent(this, (NameSpaceImpl[]) namespaces .toArray(new NameSpaceImpl[0])); c.add(this.namespaceComponent); } } COM: <s> adds the namespace component </s>
funcom_train/26484644
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object clone() { Field f = Field.create(null, report, section, typeString(), value, true); f.bounds = new Rectangle(bounds); f.format = (Format)format.clone(); f.format.setField(f); if (border == null) f.border = null; else { f.border = (Border)border.clone(); f.border.setField(f); } return f; } COM: <s> returns a clone </s>
funcom_train/10598420
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ValidatorActionResult getParamResult(Map objectModel) { ValidatorActionResult result = ValidatorActionResult.NOTPRESENT; Map param_result = getResults(objectModel); if (param_result != null) { result = (ValidatorActionResult) param_result.get(current_parameter); } return (result != null? result : ValidatorActionResult.NOTPRESENT); } COM: <s> extracts the validation results from the request attribute </s>
funcom_train/41482709
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getPanelBuscar() { if (panelBuscar == null) { panelBuscar = new JPanel(); panelBuscar.setLayout(new BorderLayout()); panelBuscar.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); panelBuscar.add(getPanelNorteBuscar(), BorderLayout.NORTH); panelBuscar.add(getPanelCentroBuscar(), BorderLayout.CENTER); } return panelBuscar; } COM: <s> this method initializes panel buscar </s>
funcom_train/15867143
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void validatePreparation(Object obj, Errors errors) { String method = "validatePreparation(obj, errors)"; if (logger.isDebugEnabled()) { logger.debug("BEGIN " + method); } ValidationUtils.rejectIfEmptyOrWhitespace(errors, "recipe.preparation", "required", "*"); if (logger.isDebugEnabled()) { logger.debug(errors.getErrorCount() + "errors found"); logger.debug("END " + method); } } COM: <s> validates the preparation text of the new recipe </s>
funcom_train/35716899
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void checkConsistency(StyleRange range) { if (range == null) throw new IllegalArgumentException(); if (fDefaultRange != null) { if (range.start < fDefaultRange.start) range.start= fDefaultRange.start; int defaultEnd= fDefaultRange.start + fDefaultRange.length; int end= range.start + range.length; if (end > defaultEnd) range.length -= (end - defaultEnd); } } COM: <s> checks whether the given range is a subrange of the presentations </s>
funcom_train/10272634
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setHSB(float h, float s, float b) { Color old = baseColor; baseColor = Color.getHSBColor(h, s, b); newColorPanel.setBackground(baseColor); hsb = new float[] { h, s, b }; rgb = null; pcs.firePropertyChange("hsb", old, baseColor); } COM: <s> sets the color to the hsb value </s>
funcom_train/3583892
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double getRankScore(Element e) { MutableDouble rankScore = (MutableDouble) e.getUserDatum(getRankScoreKey()); if (rankScore != null) { return rankScore.doubleValue(); } else { throw new FatalException("setRemoveRankScoresOnFinalize(false) must be called before evaluate()."); } } COM: <s> given an edge or node returns the corresponding rank score </s>
funcom_train/10616786
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testKeyManagementException06() { KeyManagementException tE = new KeyManagementException(null, null); assertNull("getMessage() must return null", tE.getMessage()); assertNull("getCause() must return null", tE.getCause()); } COM: <s> test for code key management exception string throwable code </s>
funcom_train/44475089
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getValue(String name) { String sRet = ""; try { Object o = record.get(name); if (o != null) { sRet = o.toString(); sRet = StringUtil.replaceAll(sRet, "'", "~"); sRet = StringUtil.replaceAll(sRet, "~", "\\'"); } } catch (Throwable t) { System.out.println("getValue( " + name + " )"); t.printStackTrace(); System.exit(1); } return sRet; } COM: <s> method get value </s>
funcom_train/8525533
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private HttpSession createNewSession() { HttpSession session; String sessionKey; do { sessionKey = keyFactory.createSessionKey(); session = store.createSession(sessionKey); if (session == null) { LOG.warn("SessionKeyFactory is providing duplicate keys!!"); } } while (session == null); LOG.debug("New session created"); return session; } COM: <s> establishes a new session with the specified response </s>
funcom_train/8282417
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void registerFactories(GroupManagementService gms) { // when override you may to omit registration of unnecessary factories gms.addActionFactory(new PlannedShutdownActionFactoryImpl(this)); gms.addActionFactory(new JoinNotificationActionFactoryImpl(this)); gms.addActionFactory(new FailureNotificationActionFactoryImpl(this)); gms.addActionFactory(serviceName, new FailureRecoveryActionFactoryImpl( this)); gms.addActionFactory(new MessageActionFactoryImpl(this), serviceName); gms.addActionFactory(new JoinedAndReadyNotificationActionFactoryImpl( this)); } COM: <s> template methods to register for appropriate callbacks </s>
funcom_train/5402840
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void selectNextTreeEntry() { activeEntry.updateBundleOnChanges(); String nextKey = resourceMediator.getBundleGroup().getNextKey(getSelectedKey()); if (nextKey == null) return; Locale currentLocale = activeEntry.getLocale(); resourceMediator.getKeyTree().selectKey(nextKey); focusBundleEntryComposite(currentLocale); } COM: <s> selects the next entry in the </s>
funcom_train/48406764
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addFinishDatePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_PlanningData_finishDate_feature"), getString("_UI_PropertyDescriptor_description", "_UI_PlanningData_finishDate_feature", "_UI_PlanningData_type"), SpemxtcompletePackage.eINSTANCE.getPlanningData_FinishDate(), true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the finish date feature </s>
funcom_train/29711483
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void handleSectionError(CoreException exception) { PDPlugin.getLogger(DesignerSectionDescriptor.class).error("error", exception); exception.printStackTrace(); // String pluginId = PDPlugin.getPluginId(); // String message = MessageFormat.format(SECTION_ERROR, new Object[] { // pluginId}); // IStatus status = new Status(IStatus.ERROR, pluginId, // CommonUIPropertiesStatusCodes.GENERAL_UI_FAILURE, message, // exception); // CommonUIPropertiesPlugin.getPlugin().getLog().log(status); } COM: <s> handle the section error when an issue is found loading from the </s>
funcom_train/20439873
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addDistGridPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ESMFArray_distGrid_feature"), getString("_UI_PropertyDescriptor_description", "_UI_ESMFArray_distGrid_feature", "_UI_ESMFArray_type"), ESMFPackage.Literals.ESMF_ARRAY__DIST_GRID, true, false, true, null, null, null)); } COM: <s> this adds a property descriptor for the dist grid feature </s>
funcom_train/3377168
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getMagic() { // the magic number is always stored in big-endian format ByteOrder order = byteBuffer.order(); byteBuffer.order(ByteOrder.BIG_ENDIAN); // get the magic number byteBuffer.position(PERFDATA_PROLOG_MAGIC_OFFSET); int magic = byteBuffer.getInt(); // restore the byte order byteBuffer.order(order); return magic; } COM: <s> get the magic number </s>
funcom_train/2808456
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public GenericValue makeValue(String entityName, Map fields) { ModelEntity entity = this.getModelEntity(entityName); if (entity == null) { throw new IllegalArgumentException("[GenericDelegator.makeValue] could not find entity for entityName: " + entityName); } GenericValue value = new GenericValue(entity, fields); value.setDelegator(this); return value; } COM: <s> creates a entity in the form of a generic value without persisting it </s>
funcom_train/439932
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void registerResolver(CollisionResolver resolver) { for (CollisionResolver oldResolver: resolvers) { Enum[] enums = oldResolver.resolvesSameEnums(resolver); if (enums != null) { throw new IllegalArgumentException("A resolver aready checks collisions for:" + enums[0] + ":" + enums[1]); } } resolvers.add(resolver); } COM: <s> adds the resolver and starts detecting collisions based on based </s>
funcom_train/3908517
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setAct(Act act) { _act = act; // Lazily set the DataModel if(getDataModel() == null) { setDataModel(act.getDataModel()); } // Set Model ((RolePartSelectorTreeModel)getEditor_TreeModel()).setAct(act); } COM: <s> set the act </s>
funcom_train/17903148
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String buildDriverName(String name) { int count = 0; for (int i = 0, n = drivers.size(); i < n; i++) { DatabaseDriver driver = drivers.get(i); if (driver.getName().startsWith(name)) { count++; } } if (count > 0) { count++; name += " " + count; } return name; } COM: <s> returns the name of a new driver to be added where </s>
funcom_train/3081602
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void drawChild(RenderingContext rc, Component child, Element parent, String containerId) { ComponentSynchronizePeer syncPeer = SynchronizePeerFactory.getPeerForComponent(child.getClass()); if (syncPeer instanceof DomUpdateSupport) { ((DomUpdateSupport) syncPeer).renderHtml(rc, rc.getServerComponentUpdate(), parent, child); } else { syncPeer.renderAdd(rc, rc.getServerComponentUpdate(), containerId, child); } } COM: <s> draws a child component </s>
funcom_train/25305495
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void notifyAdminEnd() throws SitoolsException { try { this.sendMail(order, getContext(), userDetails, task); } catch (SitoolsException e) { // ne rien faire si le mail n'est pas parti OrderAPI.createEvent(order, getContext(), "MAIL_NOT_SEND_TO_USER"); } } COM: <s> notify the administrator </s>
funcom_train/3915258
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testAddResourceAsFile() throws Exception { registerDefaultDatabase(); XMLResource resource = xindiceEmbeddedDatabaseManager.addResourceAsFile(COLLECTION_NAME, xmlFile, RESOURCE_NAME); assertNotNull("XMLResource was null", resource); assertEquals("XMLResource ID wrong", RESOURCE_NAME, resource.getId()); } COM: <s> check we can add an xml file as a resource </s>
funcom_train/2961456
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void propagateZero() throws ContradictionException { if (!(v1.canBeInstantiatedTo(0))) { v0.instantiate(0, this, false); } if (!(v0.canBeInstantiatedTo(0))) { v1.instantiate(0, this, false); } } COM: <s> propagate the fact that v2 z is instantiated to 0 </s>
funcom_train/3749172
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getQueryString() { if (logger.isDebugEnabled()) { logger.debug("getQueryString() - start"); } if (logger.isDebugEnabled()) { logger.debug("getQueryString() - end - return value = " + queryString); } return queryString; } COM: <s> get the hibernate query string to be executed </s>
funcom_train/31871920
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public class FrameWPAY extends FrameW { public String getLongName () { return "Payment URL frame"; } public FrameWPAY (ID3V2Frame frm) { super (frm); } public FrameWPAY (ID3V2Frame frm, DataSource ds) throws SeekPastEndException { super (frm, ds); } public String toString () { return getLongName () + "\nURL : " + url; } } COM: <s> payment url frame </s>
funcom_train/48503058
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void parseHeaderLine(FileItemHeaders headers, String header) { int colonOffset = header.indexOf(':'); if (colonOffset == -1) { return; } String headerName = header.substring(0, colonOffset).trim(); String headerValue = header.substring(header.indexOf(':') + 1).trim(); headers.addHeader(headerName, headerValue); } COM: <s> reads the next header line </s>
funcom_train/40839532
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testExcludePropertyOnBuilder() throws Exception { InstanceGeneratorBuilder<DetailedTestDtoComposite> instanceGeneratorBuilder = getInstanceGeneratorBuilder(DetailedTestDtoComposite.class); instanceGeneratorBuilder.addELPathToIgnore("parent"); InstanceGenerator<DetailedTestDtoComposite> generator = instanceGeneratorBuilder.build(); try { DetailedTestDtoComposite item = generator.generate(); assertNotNull(item); } catch (StackOverflowError e) { fail("shouldn't overflow as the parent path is excluded"); } } COM: <s> test registering a value generator for class propertyname propertytype </s>
funcom_train/3832258
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public WMSCapabilities createCapabilities( URL url ) throws XMLParsingException { try { Reader reader = new InputStreamReader( url.openStream() ); capabilities = createCapabilities( reader ); } catch ( IOException e ) { throw new XMLParsingException( "IOException encountered while parsing " + "WMSCapabilities-Document: " + e.getMessage() ); } return capabilities; } COM: <s> creates a tt wmscapabilities tt instance from the given url </s>
funcom_train/51299719
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isEmptyMenu(int id) { String sql = "SELECT ml.child_id FROM menu_linker ml, menu_tree mt WHERE ml.parent_id = " + id + " AND mt.ref_goods IS NULL AND mt.id = ml.child_id"; ResultSet res = null; try { res = DBAccessor.getInstance().makeSelect(sql); return !res.next(); } catch (SQLException ex) { ex.printStackTrace(); } finally { DBAccessor.getInstance().releaseConnection(res); } return true; } COM: <s> check whether node has child nodes </s>
funcom_train/28753423
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setDistribution(String newVal) { if ((newVal != null && this.distribution != null && (newVal.compareTo(this.distribution) == 0)) || (newVal == null && this.distribution == null && distribution_is_initialized)) { return; } this.distribution = newVal; distribution_is_modified = true; distribution_is_initialized = true; } COM: <s> setter method for distribution </s>
funcom_train/18288068
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void createFieldEditors() { Composite parent = getFieldEditorParent(); addField(new BooleanFieldEditor( PREF_FORCE_JAVA11, "Force Java 1.1 Compliance", parent)); ValueChangeTrackingBooleanFieldEditor useResourcesDirEditor = new ValueChangeTrackingBooleanFieldEditor( PREF_USE_RESOURCES_DIR, "Automatically Use Resources Directory in New Projects", parent); StringFieldEditor resDirectoryEditor = new StringFieldEditor( PREF_RESOURCES_DIR, "Resources Directory:", parent); useResourcesDirEditor.setFieldEditor(resDirectoryEditor); addField(useResourcesDirEditor); addField(resDirectoryEditor); } COM: <s> creates the field editors </s>
funcom_train/39965615
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean isFullHouse() { if ((tripleRank != -1) && (noOfPairs > 0)) { type = HandValueType.FULL_HOUSE; rankings[0] = type.getValue(); rankings[1] = tripleRank; rankings[2] = pairs[0]; return true; } else { return false; } } COM: <s> returns true if this hand contains a full house </s>