__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/9765781
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isMoleculeLoaded() { MoleculeInterface m = java3dUniverse.getMolecule(); if (m == null) { JOptionPane.showMessageDialog(this.getParentFrame(), "Load Molecule first!", "Warning", JOptionPane.WARNING_MESSAGE); return false; } return true; } COM: <s> checks whether molecule loaded or not </s>
funcom_train/19378184
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void process(String expression) throws IOException { String methodName = "process"; ExceptionUtils.checkEmpty(methodName, "expression", expression); try { Lexer lexer = new Lexer(new PushbackReader(new StringReader(expression))); OclParser parser = new OclParser(lexer); Start startNode = parser.parse(); this.translatedExpression = new Expression(expression); startNode.apply(this); } catch (ParserException ex) { throw new OclParserException(ex.getMessage()); } catch (LexerException ex) { throw new OclParserException(ex.getMessage()); } } COM: <s> parses the expression and applies this translator to it </s>
funcom_train/29313975
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static final public String fromCamelNotation(final String prefix, final String name) { final int length = prefix == null ? 0 : prefix.length(); String s = ""; for (int j = length; j < name.length(); j++) { final char c = name.charAt(j); if (Character.isUpperCase(c)) { if (j > length) s += "-"; s += Character.toLowerCase(c); } else s += c; } return s; } COM: <s> transform a string to camel notation </s>
funcom_train/13260017
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void trSelf() { for ( int r = 1; r < 4; r++ ) { for ( int c = 0; c < r; c++ ) { float t = get( c, r ); set( c, r, get( r, c ) ); set( r, c, t ); } } } COM: <s> self transposes the matrix </s>
funcom_train/39261743
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getTex() { String regex = String.format("%s|%s|%s", "(?<=[A-Z])(?=[A-Z][a-z])", "(?<=[^A-Z])(?=[A-Z])", "(?<=[A-Za-z])(?=[^A-Za-z])" ); String[] str = this.getRoleName().split(regex); String outStr = "{{" + str[0] + "}{" + str[1]+ "}}"; if (str.length > 2) { outStr += "_" + "{" + str[2].substring(1) + "}"; } return outStr; } COM: <s> get a tex representation of this flux object </s>
funcom_train/26474901
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object getValue(Object row) { if (this.attribute == null) return null; if (this.columnAttribute == null) { this.columnAttribute = this.getAttributeForColumn(this.attribute); } if (this.columnAttribute.equals(this.attribute)) return ViewModelManager.getValue(this, this.attribute); else return ModelManager.getValue(row, this.columnAttribute, this); } COM: <s> returns the value for this code column code from the specified row </s>
funcom_train/39305352
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Workbook getReadonlyWorkbook(File inputFile) throws ExcelException { try { // check the file (throws an exception if there's an error) inputFile = FileUtils.checkFile(inputFile); // retrieve the workbook return Workbook.getWorkbook(inputFile, workbookSettings); } catch (IOException ioe) { throw new ExcelException(ioe); } catch (BiffException be) { throw new ExcelException(be); } } COM: <s> get a reference to a read only excel workbook </s>
funcom_train/3813134
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private HypothesisUtterance nextUtterance() throws IOException { String line = reader.readLine(); if (line != null) { utteranceCount++; HypothesisUtterance utterance = new HypothesisUtterance(line); if (utterance.getWordCount() <= 0) { return nextUtterance(); } else { return utterance; } } else { return null; } } COM: <s> returns the next available hypothesis utterance </s>
funcom_train/49402607
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private File createIndexFile(File bamFile) throws IOException { final File bamIndexFile = File.createTempFile("Bai.", ".bai"); final SAMFileReader bam = new SAMFileReader(bamFile); BuildBamIndex.createIndex(bam, bamIndexFile); verbose ("Wrote BAM Index file " + bamIndexFile); return bamIndexFile; } COM: <s> generates the index file using the latest java index generating code </s>
funcom_train/4780132
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public JPanel getAccessRuleActionsPanel() { if (accessRuleActionsPanel == null) { accessRuleActionsPanel = new JPanel(new FlowLayout(FlowLayout.LEFT)); accessRuleActionsPanel.add(getAddAccessRuleButton()); accessRuleActionsPanel.add(getAddProjectAccessRulesButton()); accessRuleActionsPanel.add(getEditAccessRuleButton()); accessRuleActionsPanel.add(getDeleteAccessRuleButton()); } return accessRuleActionsPanel; } COM: <s> this method initializes access rule actions panel </s>
funcom_train/43548953
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public OutputStream setContent() throws XmldbException { try { return new InsertStream(this); } catch (IOException e) { String msg = String.format("Could not store document: '%s'", this); LOG.error(msg, e); throw new XmldbException(msg, e); } } COM: <s> sets the documents content using an output stream </s>
funcom_train/7266943
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void start() { if (shutdown.get()) { throw new IllegalStateException(); } for (int i = 0; i < MAX_BUFFERS && (i == 0 || i * BUFFER_SIZE + 1 <= remaining); i++) { bufferPool.add(bufferCache.getHeap(BUFFER_SIZE)); } spawnJobs(); } COM: <s> starts the processing queue that reads the file </s>
funcom_train/25659907
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public BLoMoResult combine( BLoMoResult arg ) { return new BLoMoResult( continueProcessingAll && arg.continueProcessingAll, continueProcessingThis && arg.continueProcessingThis, BLoMoResultType.values()[Math.min(type.ordinal(), arg.type.ordinal())], continueTestingAll && arg.continueTestingAll, continueTestingThis && arg.continueTestingThis, rollbackAll || arg.rollbackAll, rollbackThis || arg.rollbackThis ); } COM: <s> combines two results </s>
funcom_train/25710163
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int runDemarcationsCI() { String[] command = { binaryDirectory + "demarcationsCI" + binaryExtension, workingDirectory + "demarcationsIn.dat", workingDirectory + "demarcationsOut.dat", Boolean.toString(masterVariables.getDebug()) }; return runApplication("Demarcations CI", command, true); } COM: <s> runs the demarcations confidence interval application </s>
funcom_train/5380666
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void initializeBounds() { if (resizeListener != null) { shell.removeListener(SWT.Resize, resizeListener); } if (resizeHasOccurred) { // Check if shell size has been set already. return; } Point size = getInitialSize(); Point location = getInitialLocation(size); shell.setBounds(getConstrainedShellBounds(new Rectangle(location.x, location.y, size.x, size.y))); } COM: <s> initializes the location and size of this windows swt shell after it has </s>
funcom_train/49262781
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void register(final PartTabFolder tabFolder) { //TODO View parts drag and drop // tabFolder.addMouseListener(new MouseAdapter() { // @Override // public void mouseDown(final MouseEvent e) { // initializeDrag(tabFolder, tabFolder.getObject(e.x, e.y)); // } // @Override // public void mouseUp(final MouseEvent e) { // finalizeDrag(); // } // }); } COM: <s> registers a tab folder to allow drag and drop on it </s>
funcom_train/25943834
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private PluginServiceConnection connectToPlugin(String pluginClass) { PluginServiceConnection conn = new PluginServiceConnection(); boolean connSuccess = ctx.bindService(new Intent(pluginClass), conn, Context.BIND_AUTO_CREATE); int timeToWait = TIME_TO_WAIT_FOR_PLUGIN_CONNECTION; while (conn.plugin == null && timeToWait > 0) { // Logger.DEBUG(TAG, "plugin connection : " + // conn.plugin); timeToWait -= 100; try { Thread.sleep(100); } catch (InterruptedException e) { } } return conn; } COM: <s> connects to plugin via aidl and returns plugin service connection for use </s>
funcom_train/30075670
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected ModelAndView onSubmit(Object command) throws ServletException { Architecture architecture = (Architecture) command; // delegate the insert to the Business layer getGpir().storeArchitecture(architecture); return new ModelAndView(getSuccessView(), "architectureId", Integer.toString(architecture.getId())); } COM: <s> method inserts a new code architecture code </s>
funcom_train/28024892
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setEnumeratedProperty (final String key, final String[] values) { int i; for (i=0; i < values.length; i++) { this.setProperty(key + delimiter + i, values[i]); } while (this.getProperty(key + delimiter + i) != null) { this.remove(key + delimiter + i); i++; } } COM: <s> assigns the supplied array of string values to the supplied key </s>
funcom_train/31056839
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void renderDisconnectFromAll( Agent a, Agent[] incoming, Agent[] outgoing ) { for( int i=0; i < outgoing.length; i++ ) renderDisconnectAgents( a, outgoing[i] ); for( int i=0; i < incoming.length; i++ ) renderDisconnectAgents( incoming[i], a ); } COM: <s> this method needs to be implemented for when an agent disconnects from all </s>
funcom_train/28378580
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void debugf(final String format, final Object... args) { if (Level.DEBUG.value <= level.value) { try { log(Level.DEBUG.name, new Formatter().format(format, args)); } catch (Exception e) { log(Level.DEBUG.name, format, args, e); } } } COM: <s> log a formatted message with the given object or primitive arguments if </s>
funcom_train/25665364
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void showProcessedCount(int newCount) { if (this.processedCountItem == null) { this.processedCountItem = new StringItem("Processed count:", "0"); append( processedCountItem ); } this.processedCountItem.setText( String.valueOf(newCount) ); } COM: <s> show the cout of records restored so far to the user </s>
funcom_train/49757359
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addRoomListener(UPBRoomListenerI theListener, UPBRoomI forRoom) { synchronized(roomListenerList) { for (QualifiedRoomListener roomListener: roomListenerList) { if (roomListener.theListener != theListener) continue; if (roomListener.theRoom != forRoom) continue; // Listener already exists return; } roomListenerList.add(new QualifiedRoomListener(theListener, forRoom)); } } COM: <s> add a upb room listener for a specific room </s>
funcom_train/37207567
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testRavenEnabledBeanConstruction() { ApplicationContext context = new RavenAwareClassPathXmlApplicationContext( "applicationContext.xml"); Object o = context.getBean("ravenTestBean"); System.out.println(o.toString()); System.out.println(o.getClass().getClassLoader().toString()); assertEquals(o.getClass().getName(), "net.sf.taverna.t2.workflowmodel.processor.dispatch.layers.ErrorBounce"); context.getBean("testSPI"); } COM: <s> test verbose form of context configuration and instantiation of a remote </s>
funcom_train/50504776
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void save() { String roleName = roleNameField.getText(); String desc = roleDescField.getText(); if (role == null) { role = manager.addSecurityRole(roleName, desc); } else { role.setName(roleName); role.setDescription(desc); } } COM: <s> saves the gui inputs to the security role bean </s>
funcom_train/13320018
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String moveSelectedLeft() { for (Object id : this.selectedActionsForDelete) { for (SelectItem item : this.assignedActions) { if (item.getValue().equals(id.toString())) { this.assignedActions.remove(item); } } } return BeansUtils.ADD_ROLE_NAVIGATION; } COM: <s> this method is used to remove selected actions from list </s>
funcom_train/13863413
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int compare(TableColumn tc1, TableColumn tc2) { int rank1 = Integer.MAX_VALUE; if (tc1.isSetDefaultColumnRank()) rank1 = tc1.getDefaultColumnRank(); int rank2 = Integer.MAX_VALUE; if (tc2.isSetDefaultColumnRank()) rank2 = tc2.getDefaultColumnRank(); if (rank1<rank2) return -1; if (rank1>rank2) return 1; String title1 = ""; if (tc1.isSetDcTitle()) title1 = tc1.getDcTitle(); String title2 = ""; if (tc2.isSetDcTitle()) title2 = tc2.getDcTitle(); return title1.compareTo(title2); } COM: <s> order by rank smallest first then title name </s>
funcom_train/3944305
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Position join(LengthVector v) { Amount<Length> newX = positionX.plus(v.getLengthX()); Amount<Length> newY = positionY.plus(v.getLengthY()); Amount<Length> newZ = positionZ.plus(v.getLengthZ()); return fromXYZVectors(newX, newY, newZ); } COM: <s> creates a new position that is this position translated by </s>
funcom_train/32908545
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isFreshCache(Object key, DbCalendar mostRecent) { try { sync.requestRead(); boolean fresh = false; if (cachedresults.containsKey(key)) { DbCalendar cachedMostRecent = cachedresults.get(key).mostRecentDate; if (mostRecent.getTimeInMillis() <= cachedMostRecent.getTimeInMillis()) { fresh = true; } else { fresh = false; } } else { fresh = false; } return fresh; } finally { sync.readFinished(); } } COM: <s> determines if there is a cached list and it is not stale </s>
funcom_train/12646416
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addNotify() { synchronized (getTreeLock()) { if (parent != null && parent.peer == null) { parent.addNotify(); } if (peer == null) peer = ((PeerBasedToolkit) getToolkit()).createFileDialog(this); super.addNotify(); } } COM: <s> creates the file dialogs peer </s>
funcom_train/38787416
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void orders_clear() { for (Order o : orderqueue) { //unsubscribe!!! o.unsubscribe(); } if (orderAble()) { orderqueue.clear(); //order.target = new OrderTarget(0,0); //order.ordertype = Order.OrderType.empty; } } COM: <s> clear orders of the ship </s>
funcom_train/2288537
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setOldWebAppUrl(String webAppUrl) { if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().getBundle().key(Messages.LOG_IMPORTEXPORT_SET_OLD_WEBAPP_URL_1, webAppUrl)); } m_webAppUrl = webAppUrl; } COM: <s> sets the url of a 4 </s>
funcom_train/43903964
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int count(final Object metadata, final int max) { assert type.isInstance(metadata); int count = 0; for (int i = 0; i < getters.length; i++) { if (!isEmpty(get(getters[i], metadata))) { if (++count >= max) { break; } } } return count; } COM: <s> counts the number of non null properties </s>
funcom_train/32057868
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetButtonRectangle() { System.out.println("testGetButtonRectangle"); GPGraphpad pad = new GPGraphpad(); GPMarqueeHandler handler = new GPMarqueeHandler(pad); assertEquals("getButtonRectangle failed", handler.getButtonRectangle() != null, true); //pad.getFrame().dispose(); } COM: <s> test of get button rectangle method of class gpmarquee handler </s>
funcom_train/24140384
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public QualitySequence decode(String fastqQualities) { ByteBuffer buffer = ByteBuffer.allocate(fastqQualities.length()); for(int i=0; i<fastqQualities.length(); i++){ buffer.put(decode(fastqQualities.charAt(i)).getValue()); } return new EncodedQualitySequence( qualityCodec, PhredQuality.valueOf(buffer.array())); } COM: <s> decode the given fastq quality encoded string </s>
funcom_train/3990045
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addCzy_pierwsze_zachorowaniePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_HistoriaChoroby_czy_pierwsze_zachorowanie_feature"), getString("_UI_PropertyDescriptor_description", "_UI_HistoriaChoroby_czy_pierwsze_zachorowanie_feature", "_UI_HistoriaChoroby_type"), PrzychodniaPackage.Literals.HISTORIA_CHOROBY__CZY_PIERWSZE_ZACHOROWANIE, true, false, false, ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the czy pierwsze zachorowanie feature </s>
funcom_train/5858969
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Vector getFSObjectsAsString() { Vector v = new Vector(); for(Iterator i = fsobjs.values().iterator(); i.hasNext();) { FSObject fso = (FSObject) i.next(); v.addElement(new ActiveUserProperty(fso)); } return v; } COM: <s> returns a list of active user property </s>
funcom_train/14416531
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void close() { if (!iClose) { iClose = true; try { iServerSocket.close(); iServerSocket = null; } catch (Exception e) { Logger logger = SessionProperties.getGlobalProperties().getLogger(); if (logger.isLoggable(Level.WARNING)) { logger.log(Level.WARNING, "Exception while closing server socket", e); } } } } COM: <s> shuts down the server </s>
funcom_train/2903297
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void clearSelection(String id){ if(id == null){ return; } if(current != null){ LineBorder border = new LineBorder(current.getForegroundData(), 1, true); Border margin = new EmptyBorder(2, 3, 2, 3); current.setBorder(new CompoundBorder(margin, border)); } if(!ids.contains(id)){ current = null; } } COM: <s> clear current selected switcher selection </s>
funcom_train/21688974
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void convertUtf8ToIso() { this.name = convertUtf8ToIso(name); this.author = convertUtf8ToIso(author); this.keywords = convertUtf8ToIso(keywords); this.description = convertUtf8ToIso(description); this.code = convertUtf8ToIso(code); this.example = convertUtf8ToIso(example); } COM: <s> convert utf8 to iso 8859 1 </s>
funcom_train/14120883
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Object getOne(Class clazz, String name) { Criteria crit = getHibernateTemplate().getSessionFactory().getCurrentSession().createCriteria(clazz); crit.add(Restrictions.eq("name", name)); List l = crit.list(); Object result; if (l.size() == 0) result = null; else result = l.get(0); return result; } COM: <s> gets first system variable from possible list of system variables with the </s>
funcom_train/15801973
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String readInputLine() throws IOException { StringBuffer buf = new StringBuffer(1024); int c; boolean skip = false; while ((c=in.read()) != -1) { if (c == '\r') switch (c=in.read()) { case -1: case '\n': break; default: in.unread(c); } if (c == '\n') break; if (buf.length() == 1024) skip = true; if (!skip) buf.append((char)c); } return buf.toString(); } COM: <s> reads a command from the client </s>
funcom_train/12333116
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getDOI(int doiType) throws Exception { Call call = service.createCall(); call.setTargetEndpointAddress(endpointAddress); call.setOperationName(operationName); String doi = (String)call.invoke(new Object[] { new Integer(doiType) }); return doi; } //- getDOI COM: <s> gets a new doi from the doiserver </s>
funcom_train/777460
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetPlatformObjectNameString() throws JademxException { JadeAgent jadeAgent = platformMBean.getAgent( AGENT_LOCAL_NAME_PINGER2); String actualPN = jadeAgent.getPlatformObjectNameString(); assertEquals("expected platform ObjectName string \""+ PINGER2_EXPECTED_PLATFORM_OBJECT_NAME_STRING+ "\" but got \""+actualPN+"\"", PINGER2_EXPECTED_PLATFORM_OBJECT_NAME_STRING,actualPN); } COM: <s> test getting agents platforms object name string </s>
funcom_train/8803800
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int replaceString ( String from, String to){ cpinfo cpi, pool[] = constant_pool; int len = pool.length, changes = 0; for ( short cc = 0; cc < len; cc++){ cpi = pool[cc]; if ( TYPE_STRING == cpi.type){ cpi = pool[cpi.arg1_idx]; if ( from.equals(cpi.strValue)){ cpi.strValue = to; changes += 1; } } } return changes; } COM: <s> replace all strings matching from with to </s>
funcom_train/8930836
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object obj) { // Compare handles. if (this == obj) return true; // Compare class. if (!(obj instanceof DrillFrame)) return false; // Compare contents. DrillFrame oOther = (DrillFrame)obj; return ((fElement == oOther.fElement) && (fPropertyName.equals(oOther.fPropertyName))); } COM: <s> compares two objects for equality </s>
funcom_train/35806402
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: /* * private JPanel getJPanelInfos() { if (jPanelInfos == null) { jPanelInfos = new JPanel(); BorderLayout jPanelInfosLayout = new BorderLayout(); jPanelInfos.setLayout(jPanelInfosLayout); jPanelInfos.addMouseListener(vueDetaillePanelMouseAdapter); jPanelInfos.add(getJInfosEditorPane(), BorderLayout.CENTER); } return jPanelInfos; } COM: <s> this method initializes j panel infos </s>
funcom_train/17250588
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void fetchData() throws IOException { if (!eos) { // copy (bufsize) bytes from compressed stream to syncState. int index = syncState.buffer(bufsize); int bytes = in.read(syncState.data, index, bufsize); syncState.wrote(bytes); if (bytes == 0) { eos = true; } } } COM: <s> copys data from input stream to sync state </s>
funcom_train/10977983
/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 (!(o instanceof MessagesMap)) { return (false); } MessagesMap other = (MessagesMap) o; if (!messages.equals(other.getMessages())) { return (false); } if (locale == null) { return (other.getLocale() == null); } else { return (locale.equals(other.getLocale())); } } COM: <s> p the code equals code method checks whether equal </s>
funcom_train/12179329
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testInvokeMultipleIndexes() throws Exception { Expression expression = parser.parse(getFunctionQName() + "('name',1,2,3,4)"); formatReferenceFinderMock.expects .getFormatReference("name", new int[]{1,2,3,4}) .returns(formatReferenceMock); doTestFunction(expression); } COM: <s> name and multiple indexes </s>
funcom_train/21297164
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JLabel getSpeechLbl(){ if(speechAreaLbl == null) { speechAreaLbl = new JLabel("<html>Enter Text Here and Emma will say it!<br>Hit Enter to Send",JLabel.CENTER); speechAreaLbl.setBounds(getVolume().getX()+getVolume().getWidth()+10, 10, txtSpchPanel.getWidth()/(2), txtSpchPanel.getHeight()-280); } return speechAreaLbl; } COM: <s> this method initializes speech area lbl </s>
funcom_train/26018088
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setTTLParam(int ttl) { if (ttl <= 0) throw new IllegalArgumentException("Bad ttl value"); if (uriParms != null) { NameValue nv = new NameValue("ttl", Integer.valueOf(ttl)); uriParms.set(nv); } } COM: <s> sets the value of the code ttl code parameter </s>
funcom_train/19913245
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void processProperty(AbstractFile file, Prop toProcess) { assert toProcess != null; if (!this.hasProperty(toProcess.getName())) { values.put(toProcess.getName(), new Integer(toProcess.operate(file))); Prop[] copy = new Prop[propertyResolvers.length + 1]; System.arraycopy(propertyResolvers, 0, copy, 0, propertyResolvers.length); copy[copy.length - 1] = toProcess; this.propertyResolvers = copy; } } COM: <s> this method will add the given property to the statistics if not already </s>
funcom_train/9804336
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String processOutput(InputStream stdout) { try { img = ImageIO.read(stdout); } catch (IOException ex) { return "Unable to create PNG image: "+ex.getMessage(); } if (img==null) return "Unable to create image from the gnuplot output. Null image created."; return null; } COM: <s> read the produced image from gnuplot standard output </s>
funcom_train/44466762
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Icon getIcon(){ if(getViewedObject()==null){ return getViewer().getIconFactory().getSystemIcon(IconFactory.SYSTEM_ICON_MISSING_16); }else{ return getViewer().getIconFactory().getIconForClass(getViewedObject().getClass()); } } COM: <s> returns the icon returned by the icon factory for the class of the </s>
funcom_train/21998732
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private QuoteTimeSeries getDayVolume() { if (dayVolumeGraphSource == null) { dayVolumeGraphSource = quoteDatasetBundle.getQuoteDataset(contractCounter) .getVolumeTimeSeries(); } // else { // dayVolumeGraphSource = new // GraphableQuoteFunctionSource(OHLCVQuoteDataset.getQuoteDataset(quoteBundle, // Quote.DAY_VOLUME)); // } return dayVolumeGraphSource; } COM: <s> returns day volume graph xyplot source for input to graph xyplot </s>
funcom_train/18111853
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getToolMoveUpButton() { if (toolMoveUpButton == null) { toolMoveUpButton = new JButton(); toolMoveUpButton.setIcon(new ImageIcon(getClass().getResource("/icons/moveup.gif"))); toolMoveUpButton.setToolTipText("Move up"); toolMoveUpButton.setDisabledIcon(new ImageIcon(getClass().getResource("/icons/moveup_disabled.gif"))); toolMoveUpButton.setPreferredSize(new java.awt.Dimension(20,20)); toolMoveUpButton.addActionListener(this); } return toolMoveUpButton; } COM: <s> this method initializes tool move up button </s>
funcom_train/40616082
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int readInt() { byte[] buff = data; int x = (buff[pos] << 24) + ((buff[pos+1] & 0xff) << 16) + ((buff[pos+2] & 0xff) << 8) + (buff[pos+3] & 0xff); pos += 4; return x; } COM: <s> read an integer at the current position </s>
funcom_train/8437011
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testAddNonOccInstance() { System.out.println("addNonOccInstance"); String relation = "relation"; String term1 = "term1"; String term2 = "term2"; DataSet instance = new DataSet(termList); instance.prepRelation(relation, atts.iterator()); instance.addNonOccInstance(relation, term1, term2); } COM: <s> test of add non occ instance method of class nii </s>
funcom_train/36987431
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Renderer createRenderer(Graphics g) { ((Graphics2D) g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, _antiAliasing ? RenderingHints.VALUE_ANTIALIAS_ON : RenderingHints.VALUE_ANTIALIAS_OFF); ((Graphics2D) g).setTransform(_transformation); return ((Graphics2DRenderer) Factory.create(_renderer)) .init((Graphics2D) g); } COM: <s> creates an instance of </s>
funcom_train/130211
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void resetOdometry () { try { sendHeader (PLAYER_MSGTYPE_REQ, 1); /* 1 byte payload */ os.writeByte (PLAYER_POSITION3D_RESET_ODOM_REQ); os.flush (); } catch (Exception e) { System.err.println ("[Position3D] : Couldn't send " + "PLAYER_POSITION3D_RESET_ODOM_REQ command: " + e.toString ()); } } COM: <s> configuration request reset odometry </s>
funcom_train/8662630
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int addLoadParameters(CtClass[] params, int offset) { int stacksize = 0; if (params != null) { int n = params.length; for (int i = 0; i < n; ++i) stacksize += addLoad(stacksize + offset, params[i]); } return stacksize; } COM: <s> appends instructions for loading all the parameters onto the </s>
funcom_train/9409432
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetWriteHoldCount() { ReentrantReadWriteLock lock = new ReentrantReadWriteLock(); for(int i = 1; i <= SIZE; i++) { lock.writeLock().lock(); assertEquals(i,lock.getWriteHoldCount()); } for(int i = SIZE; i > 0; i--) { lock.writeLock().unlock(); assertEquals(i-1,lock.getWriteHoldCount()); } } COM: <s> get write hold count returns number of recursive holds </s>
funcom_train/7387628
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void redraw(mxCellState state) { if (state != null) { Rectangle dirty = state.getBoundingBox().getRectangle(); repaintTripleBuffer(new Rectangle(dirty)); dirty = SwingUtilities.convertRectangle(graphControl, dirty, this); repaint(dirty); } } COM: <s> updates the buffer if one exists and repaints the given cell state </s>
funcom_train/48401264
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setGraphics(Graphics graphics) { this.graphics = graphics; // Calculate column widths and row height at 100% zoom int numColumns = getColumnCount(); columnWidths = new int[columns.size()]; for(int c = 0; c < numColumns; c++) { columnWidths[c] = getColumnWidth(graphics, c) + (2 * xPadding); } rowHeight = graphics.getFontMetrics().getHeight() + (2 * yPadding); } COM: <s> sets the graphics object </s>
funcom_train/4364296
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean startsWithStringArray(String sArray[], String value) { if (value == null) return false; for (int i = 0; i < sArray.length; i++) { if (value.startsWith(sArray[i])) { return true; } } return false; } COM: <s> checks if any entry in the string array starts with the specified value </s>
funcom_train/12097738
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void readLine() throws EOFException, IOException { if (line == null) { line = m_reader.readLine(); /* * this strips platform specific line * ending */ if (line == null) { /* null means EOF, yet another inconsistent Java convention. */ throw new EOFException(); } else { line += '\n'; /* apply standard line end for parser to find */ lineCount++; } } } // end of readLine COM: <s> make sure a line is available for parsing </s>
funcom_train/50487441
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void sampleActionToAll() { // Perform the action on this component here // Call each sub-component to perform the same action Element subComponent; Iterator it = getSubComponentIterator(); while (it.hasNext()) { subComponent = (Element)it.next(); subComponent.sampleActionToAll(); } } COM: <s> perform action on component and its children </s>
funcom_train/5395856
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testReadUnsignedShort() throws Exception { System.out.println("readUnsignedShort"); BlockDataInputStream instance = null; int expResult = 0; int result = instance.readUnsignedShort(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } COM: <s> test of read unsigned short method of class org </s>
funcom_train/34526317
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeFragments(List<Integer> toBeRemoved) { // remove fragment descriptors List<DocumentFragmentDesc> list1 = new LinkedList<DocumentFragmentDesc>(); for (Integer idx : toBeRemoved) { if (idx < fragmentDescriptors.size()) { list1.add(fragmentDescriptors.get(idx)); } } fragmentDescriptors.removeAll(list1); // remove fragments List<Document> list2 = new LinkedList<Document>(); for (Integer idx : toBeRemoved) { if (idx < fragments.size()) { list2.add(fragments.get(idx)); } } fragments.removeAll(list2); } COM: <s> removes the fragments located at the specified indexes </s>
funcom_train/18745282
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void removeFromNodeOutEdgeMap(Map<N,Set<E>> currentMap, E edge) { if (currentMap != null) { Set<E> edgeSet = currentMap.get(edge.source()); if (edgeSet != null) { edgeSet.remove(edge); } } } COM: <s> removes an outgoing edge from a given node to edgeset mapping </s>
funcom_train/10644094
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setPosition(final Component c, final int position) { int layer = getLayer(c); int index = getIndexOf(c); if (index == -1) { // do nothing if c is not in the container return; } setLayer(c, layer, position); } COM: <s> sets the position of the component inside its layer </s>
funcom_train/15406292
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toStringFormat() { if (list.isEmpty()) { return null; } StringBuilder sb = new StringBuilder(); for (int i = 0; i < list.size(); i++) { Property property = list.get(i); if (i > 0) { sb.append(", "); } sb.append(property.toStringFormat()); } return sb.toString(); } COM: <s> returns the order by in string format </s>
funcom_train/10616966
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSignerStringIdentityScope() throws Exception { Signer s = new SignerStub("sss4", IdentityScope.getSystemScope()); assertNotNull(s); assertEquals("sss4", s.getName()); assertSame(IdentityScope.getSystemScope(), s.getScope()); assertNull(s.getPrivateKey()); } COM: <s> verify signer string identity scope creates instance </s>
funcom_train/10977727
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getOnsubmit() { if (this.onsubmit != null) { return (this.onsubmit); } ValueBinding vb = getValueBinding("onsubmit"); if (vb != null) { return ((String) vb.getValue(getFacesContext())); } else { return (null); } } COM: <s> p return the java script to execute on form submit </s>
funcom_train/12178582
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetValue() throws Exception { doTestGetValue(StyleValueFactory.getDefaultInstance().getLength( null, 1.3, LengthUnit.PX), "1"); doTestGetValue(FontSizeKeywords.XX_SMALL, null); doTestGetValue(StyleValueFactory.getDefaultInstance().getLength( null, 1.44, LengthUnit.EM), null); } COM: <s> test the get line height method </s>
funcom_train/9994179
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testCommandAction() throws AssertionFailedException { System.out.println("commandAction"); Editor instance = null; Command c_1 = null; Displayable d_1 = null; instance.commandAction(c_1, d_1); fail("The test case is a prototype."); } COM: <s> test of test command action method of class editor </s>
funcom_train/16794913
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void autoOutline(int startX, int startY, double lower, double upper, int mode) { lowerThreshold = (float)lower; upperThreshold = (float)upper; autoOutline(startX, startY, 0.0, mode|THRESHOLDED_MODE); } COM: <s> traces an object defined by lower and upper threshold values </s>
funcom_train/32776840
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean insert(Signal signal) { int i = -1; if (isEmpty()) { this.queue.add(signal); i = 0; } else { i = Collections.binarySearch(queue, signal, signalIdentityComparator); if (i < 0) { i = -(i + 1); // Index to insert signal at queue.add(i, signal); } } return (i == 0); // returns true if s was inserted as first element } COM: <s> inserts a signal in the queue sorted in time ascending order </s>
funcom_train/47021289
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getExitLoadingPage() { if (exitLoadingPage == null) {//GEN-END:|143-getter|0|143-preInit // write pre-init user code here exitLoadingPage = new Command(getLocalizedString("Cancel"), Command.CANCEL, 1);//GEN-LINE:|143-getter|1|143-postInit // write post-init user code here }//GEN-BEGIN:|143-getter|2| return exitLoadingPage; } COM: <s> returns an initiliazed instance of exit loading page component </s>
funcom_train/2369681
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeEntry(final RepositoryEntry entry) { if (this.dataTable.containsKey(entry.getKey())) { final RepositoryEntry reallyRemoved = this.dataTable.remove(entry.getKey()); synchronized (this.listener) { for (final RepositoryListener current : this.listener) { current.entryRemoved(this, reallyRemoved); } } } } COM: <s> removes an entry </s>
funcom_train/28171131
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetCenter() { System.out.println("getCenter"); BezierPath instance = new BezierPath(); Point2D.Double expResult = null; Point2D.Double result = instance.getCenter(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } COM: <s> test of get center method of class org </s>
funcom_train/15453696
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isAccessGranted(Set levels) { boolean granted = !isRestricted(); if (levels != null && !granted) { Iterator itLevels = levels.iterator(); while (itLevels.hasNext() && !granted){ AccessLevel accessLevel = (AccessLevel) itLevels.next(); granted = accessLevels.contains(accessLevel); } } return granted; } COM: <s> verify when one of the access levels has granted access to this functionality </s>
funcom_train/1676060
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean setTargetBin() { targetBin = null; targetIndex = 0; boolean isDup = (dupBin != null); dupKey = null; if (isDup) { targetBin = dupBin; targetIndex = dupIndex; dupKey = dupBin.getDupKey(); } else { targetBin = bin; targetIndex = index; } return isDup; } COM: <s> figure out which bin index set to use </s>
funcom_train/23711378
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void display_session_id(SSL ssl) { byte[] session_id = ssl.getSessionId(); if (session_id.length > 0) { System.out.println("-----BEGIN SSL SESSION PARAMETERS-----"); bytesToHex(session_id); System.out.println("-----END SSL SESSION PARAMETERS-----"); } } COM: <s> display what session id we have </s>
funcom_train/22404007
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setWidth(String width) { // This exists to deal with an inconsistency in IE's implementation where // it won't accept negative numbers in length measurements assert extractLengthValue(width.trim().toLowerCase()) >= 0 : "CSS widths should not be negative"; DOM.setStyleAttribute(element, "width", width); } COM: <s> sets the objects width </s>
funcom_train/42775429
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void send(MidiMessage message, long timeStamp) { ShortMessage sm = (ShortMessage)message; try{ midiEventsModel.add(new MIDIEvent(timeStamp, sm.getCommand(), sm.getData1(), sm.getData2(), sm.getChannel())); } catch(InvalidMidiDataException ex){ MsgHandler.error(ex.getMessage()); ex.printStackTrace(); } } COM: <s> called when the receiver receives a midi message </s>
funcom_train/39138399
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int compareTo(Object o) { if (o == null) { throw new NullPointerException("compared object is null"); } if (o instanceof InlineProperties) { return ((InlineProperties) o).getPreference() - getPreference(); } else { throw new ClassCastException("compared object is not a " + InlineProperties.class); } } COM: <s> compares this object with the specified object for order </s>
funcom_train/19245025
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addPredicate(final int size, final Predicate predicate) { if (getPredicateSize(size) == 0) { if (predicatePool.size() <= size) { for (int i = predicatePool.size(); i <= size; i++) { predicatePool.add(new ArrayList()); } } } List list = (List) predicatePool.get(size); list.add(predicate); } COM: <s> add a predicate for interpreting predicate variables </s>
funcom_train/8632657
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void accept(ISourceType[] sourceTypes, PackageBinding packageBinding, AccessRestriction accessRestriction) { this.problemReporter.abortDueToInternalError( Messages.bind(Messages.abort_againstSourceModel, new String[] { String.valueOf(sourceTypes[0].getName()), String.valueOf(sourceTypes[0].getFileName()) })); } COM: <s> add additional source types </s>
funcom_train/4540534
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void resetRowId() throws HsqlException { if (isCached &&!isText) { return; } rowIdSequence = new NumberSequence(null, 0, 1, Types.BIGINT); RowIterator it = rowIterator(null); while (it.hasNext()) { Row row = it.next(); int pos = (int) rowIdSequence.getValue(); row.setPos(pos); } } COM: <s> necessary when over integer </s>
funcom_train/48463138
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setActiveDiagramPanel(String diagramFilePath) { if (diagramFilePath == null) return; JTabbedPane tp = getTabbedPane(); Component[] components = tp.getComponents(); for (int i = 0; i < components.length; i++) { if (components[i] instanceof DiagramPanel) { DiagramPanel dPanel = (DiagramPanel) components[i]; String filePath = dPanel.getFilePath(); if (diagramFilePath.equals(filePath)) { tp.setSelectedComponent(dPanel); return; } } } } COM: <s> looks for an opened diagram from its file path and focus it </s>
funcom_train/1104190
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addMindegerPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Alan_mindeger_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Alan_mindeger_feature", "_UI_Alan_type"), HarzemliPackage.eINSTANCE.getAlan_Mindeger(), true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, getString("_UI_validasyonPropertyCategory"), null)); } COM: <s> this adds a property descriptor for the mindeger feature </s>
funcom_train/47022139
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getOkCommand1() { if (okCommand1 == null) {//GEN-END:|207-getter|0|207-preInit // write pre-init user code here okCommand1 = new Command(getLocalizedString("More Info"), Command.OK, 0);//GEN-LINE:|207-getter|1|207-postInit // write post-init user code here }//GEN-BEGIN:|207-getter|2| return okCommand1; } COM: <s> returns an initiliazed instance of ok command1 component </s>
funcom_train/38552291
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void resetTimer(long timerTime) { if(timerTime < 1) { throw new Cube42IllegalArgumentException( ThreadSystemCodes.TIMER_THREAD_TIME_TO_SMALL, new Object[] {new Long(timerTime)}); } else { this.timing = true; this.timerTime = timerTime; this.thread.interrupt(); } } COM: <s> resets the timer on the thread </s>
funcom_train/45935960
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void navWithinPage() { List<String> letters = new Vector<String>(); String letterLink; for (Object letter : CONF.indexBuilder.elements()) { letterLink = (curLetter.equals(letter)) ? letter.toString() : linkToLabelHref(letter.toString(), "index-" + letter + CONF.ext); letters.add(letterLink); } print(open("td id=\"WithinPage\"")); printUnorderedListWithLast(letters); println(close("td")); } COM: <s> creates links to index pages for each letter with documented symbols </s>
funcom_train/36149693
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double density(double x) { if (x <= 0) return 0; return Math.pow(0.5, v/2) / Math.exp(SpecialFunctions.gammln(v/2)) * Math.pow(x, v/2 - 1) * Math.exp(-x/2); } COM: <s> returns the density of the distribution at x </s>
funcom_train/5735687
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean logout() throws LoginException { if (subject.isReadOnly()) { cleanState(); throw new LoginException ("Subject is read-only"); } Set principals = subject.getPrincipals(); principals.remove(x500Principal); principals.remove(userPrincipal); if (authzIdentity != null) { principals.remove(authzPrincipal); } // clean out state cleanState(); succeeded = false; commitSucceeded = false; x500Principal = null; userPrincipal = null; authzPrincipal = null; if (debug) { System.out.println("\t\t[LdapLoginModule] logged out Subject"); } return true; } COM: <s> logout a user </s>
funcom_train/4285007
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean checkPatternExists(RelationCallExp relationCallExp, DiagnosticChain diagnostics, Map<Object, Object> context) { Pattern pattern = getPattern(relationCallExp); if (pattern != null) return true; Object[] messageSubstitutions = new Object[] { getObjectLabel(relationCallExp, context) }; appendError(diagnostics, relationCallExp, QVTRelationMessages._UI_RelationCallExp_PatternDoesNotExist, messageSubstitutions); return false; } COM: <s> validates the pattern exists constraint of em relation call exp em </s>
funcom_train/3337783
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private InputStream openFileStream(File file) { InputStream ret = null; if (file.getName().equals("-")) { ret = stdin; } else { ret = IOUtils.openInputStream(file); if (ret == null) { err.format(ERR_FILE, file); } } return ret; } COM: <s> attempt to open a file writing an error message on failure </s>