__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/12077569
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle) { getGraphics().fillArc(x + this.translateX, y + this.translateY, width, height, startAngle, arcAngle); } COM: <s> fills a circular or elliptical arc covering the specified rectangle </s>
funcom_train/23674838
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { StringBuffer buffer = new StringBuffer(); if (cells != null) { for (Element [] coord: cells) { buffer.append(getCoordinateString(coord)); buffer.append(";"); } } else { if (levelDims != null) { for (Dimension d: levelDims.keySet()) { buffer.append(levelDims.get(d)); buffer.append(";"); } } } if (buffer.length() > 0) { return buffer.substring(0, buffer.length() - 1).toString(); } return ""; } COM: <s> returns a string representation of this format range info </s>
funcom_train/2033681
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testObtenerBiblioteca() { System.out.println("obtenerBiblioteca"); Ejemplar ejemplar = new Ejemplar(); Biblioteca instance = new Biblioteca(); Biblioteca expResult = null; Biblioteca result = instance.obtenerBiblioteca(ejemplar); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. } COM: <s> test of obtener biblioteca method of class biblioteca </s>
funcom_train/1406418
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getDrawingControlString(final AxisStyle axisStyle) { final StringBuilder sb = new StringBuilder(); if (axisStyle.drawTickMarks() != null) { sb.append(axisStyle.drawTickMarks() ? DRAW_AXIS_LINE + DRAW_TICK_MARKS : DRAW_AXIS_LINE); } return sb.length() > 0 ? sb.toString() : null; } COM: <s> build the drawing control string </s>
funcom_train/584169
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private FieldWithLabel getJFieldWithLabel() { if ( jFieldWithLabel == null ) { // text = new JTextField(); //text.setColumns( 30 ); jFieldWithLabel = new FieldWithLabel(); jFieldWithLabel.setLabel( "Class name" ); jFieldWithLabel.setJObject( new JTextField() ); jFieldWithLabel.init(); } return jFieldWithLabel; } COM: <s> this method initializes j field with label </s>
funcom_train/46458786
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isSingleVM() { if(singleVM||org.opensourcephysics.display.OSPRuntime.isWebStart()) { return true; } else if(isRoot()) { return false; } LaunchNode parent = (LaunchNode) getParent(); return singleVMOff? false: parent.isSingleVM(); } COM: <s> gets the single vm flag </s>
funcom_train/2288898
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addExportRule(String name, String description) { m_exportRules.add(new CmsStaticExportExportRule( name, description, m_exportTmpRule.getModifiedResources(), m_exportTmpRule.getExportResourcePatterns())); m_exportTmpRule = new CmsStaticExportExportRule("", ""); } COM: <s> adds a new export rule to the configuration </s>
funcom_train/24186165
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetAnonymVars() { for (Map.Entry<String, DCOPProblemInterface<AddableInteger, AddableInteger>> entry : this.trueSubProbs.entrySet()) assertEquals (entry.getValue().getAnonymVars(), this.subProbs.get(entry.getKey()).getAnonymVars()); } COM: <s> test method for problem get anonym vars </s>
funcom_train/43409186
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public BrowsePanel getJStockInnerPanel() { if (jStockInnerPanel == null) { CommonTableModel tableModel = new CommonTableModel( TableModels.STOCK_COLUMNS, TableModels.STOCK_METHODS); StockFilterManager mgr = new StockFilterManager(); tableModel.setList(mgr.getList()); jStockInnerPanel = new BrowsePanel(mgr, tableModel); jStockInnerPanel.setAddEnabled(true); } return jStockInnerPanel; } COM: <s> this method initializes j stock inner panel </s>
funcom_train/51646687
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSourceEdit(MoveSourceEdit edit) { if (fSource != edit) { fSource= edit; fSource.setTargetEdit(this); TextEdit parent= getParent(); while (parent != null) { if (parent == fSource) throw new MalformedTreeException(parent, this, TextEditMessages.getString("MoveTargetEdit.wrong_parent")); //$NON-NLS-1$ parent= parent.getParent(); } } } COM: <s> sets the source edit </s>
funcom_train/45785312
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JComboBox getJcboGrupos() { if (jcboGrupos == null) { jcboGrupos = new JComboBox(); jcboGrupos.setBounds(new Rectangle(148, 27, 240, 20)); jcboGrupos.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { mostrarDatos((Grupos) jcboGrupos.getSelectedItem()); } }); } return jcboGrupos; } COM: <s> this method initializes jcbo grupos </s>
funcom_train/51704553
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void log(Level level, String keyOrMessage, Object arg1, Object arg2){ if (logger.isLoggable(level)){ try { logger.log(level, MessageFormat.format( rb.getString(keyOrMessage), new Object[]{arg1, arg2})); } catch (MissingResourceException mre) { logger.log(level, MessageFormat.format( keyOrMessage, new Object[]{arg1, arg2})); logger.log(Level.FINEST, mre.getLocalizedMessage()); } } } COM: <s> logs a message with dynamic arguments </s>
funcom_train/12157239
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testUnresolvableComponentURI() throws Exception { inputValues.setComputedValue(MCS_INPUT_FORMAT, STYLE_VALUE_FACTORY.getComponentURI(null, "fred")); assetResolverMock.expects.evaluateExpression(fred) .returns(policyReferenceMock); assetResolverMock.expects .resolveText(policyReferenceMock, expectedEncodings) .returns(null); resolver.normalize(inputValues); checkNormalized(supportedProperties, ""); } COM: <s> ensure that a component uri value that cannot be resolved results in the </s>
funcom_train/22549290
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void loadWithNewDirectories(Set<? extends File> shared) { SharingSettings.DIRECTORIES_TO_SHARE.setValue(shared); synchronized(_data.DIRECTORIES_NOT_TO_SHARE) { for(File file : shared) _data.DIRECTORIES_NOT_TO_SHARE.remove(file); } RouterService.getFileManager().loadSettings(); } COM: <s> loads the file manager with a new list of directories </s>
funcom_train/3469723
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void showErrorMessages(List list) { String theText = ""; Iterator iter = list.iterator(); while(iter.hasNext()) { String s = (String)iter.next(); theText = theText + s + (iter.hasNext() ? "\n" : ""); } textPane.setText(theText); setVisible(true); } COM: <s> show a list of messages and block until ok is pressed </s>
funcom_train/38734966
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { String aRtn = ""; aRtn += "Request : " + Request + "\n"; aRtn += "Resource: " + Resource + "\n"; aRtn += "Filename: " + Filename + "\n"; aRtn += "Path : " + Path + "\n"; return aRtn; } COM: <s> return a character representation of the object </s>
funcom_train/22502730
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String createHTMLSelectedEntryTag(Element selectedEntry) { String level = selectedEntry.getAttribute("level"); String fileName = selectedEntry.getAttribute("path") +selectedEntry.getAttribute("file"); String retValue = new String("<p class=\"selp" +level +"\"><a href=\""+fileName+"\" target=\"_self\">"); retValue = retValue + selectedEntry.getAttribute("text"); retValue = retValue + "</a></p>\n"; return retValue; } COM: <s> creates selected html tag s in the virt l navigation </s>
funcom_train/37898718
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setDefaultElementNamespaceSchema(String uri) throws XPathException { // eXist forces the empty element NS as default. if (!defaultElementNamespaceSchema.equals(AnyURIValue.EMPTY_URI)) throw new XPathException("err:XQST0066: default function namespace schema is already set to: '" + defaultElementNamespaceSchema.getStringValue() + "'"); defaultElementNamespaceSchema = new AnyURIValue(uri); } COM: <s> set the default element namespace </s>
funcom_train/27859585
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private double pixelToUnit(double pixels, int unit){ //System.out.print("converting " + pixels + " pixels to "); switch(unit){ case INCH: pixels = pixels / last_dpi; break; case PIXEL: pixels = pixels * dpi/last_dpi; break; case CM: pixels = pixels / last_dpi * CM_PER_INCH; break; case MM: pixels = pixels / last_dpi * MM_PER_INCH; break; } //System.out.println(pixels +" " + units[unit]); return pixels; } COM: <s> converts pixels to the given unit </s>
funcom_train/21986306
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void addMnemonic(int index, int mnemonic) { if (mnemonicToIndexMap == null) { initMnemonics(); } mnemonicInputMap.put(KeyStroke.getKeyStroke(mnemonic, Event.ALT_MASK), "setSelectedIndex"); mnemonicToIndexMap.put(mnemonic, index); } COM: <s> adds the specified mnemonic at the specified index </s>
funcom_train/37610507
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void _removeAuxiliary() { Runnable1<OpenDefinitionsDocument> op = new Runnable1<OpenDefinitionsDocument>() { public void run(OpenDefinitionsDocument d) { _model.removeAuxiliaryFile(d); } }; _processDocs(_model.getDocumentNavigator().getSelectedDocuments(), op); } COM: <s> removes selected auxiliary files </s>
funcom_train/46937540
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getJButtonNextYear() { if (jButtonNextYear == null) { jButtonNextYear = new JButton(); jButtonNextYear.setText(">>"); jButtonNextYear.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { myCalendar.add(Calendar.YEAR, 1); fixData(); fixDisplay(); } }); } return jButtonNextYear; } COM: <s> this method initializes j button next year </s>
funcom_train/13618856
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void initListGroupsToRedirectTasks() { InputStream in= null; try { java.util.Properties access = new java.util.Properties(); in=this.filterConfig.getServletContext().getResourceAsStream("/WEB-INF/access.properties"); access.load(in); String groups = access.getProperty("groups.init.page.tasks"); listGroupsToRedirectTasks = new ArrayList<String>(); if(groups!=null) { for(String group:groups.split(",")) { listGroupsToRedirectTasks.add(group); } } } catch (IOException e) { e.printStackTrace(); }finally{ if(in!=null) { try { in.close(); } catch (IOException e) { e.printStackTrace(); } } } } COM: <s> loads the groups for redirect to tasks page </s>
funcom_train/2903032
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void remove(Object key){ if(launcherTable == null){ return; } FileData fd = null; synchronized(launcherTable){ fd = (FileData)launcherTable.remove(key); } if((fd!=null) && (fd.file!=null)){ StringBuffer sb = new StringBuffer(256); sb = sb.append(ZLocater.getLauncherPropertyPath()); sb = sb.append(File.separator).append(fd.file); File f = new File(sb.toString()); if(f.exists() && !f.delete()){ new JXError(getClass(), "Error removing launcher, "+fd.file); } } } COM: <s> remove a launcher from the manager </s>
funcom_train/9831426
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean checkTypeConstraint(Class<? extends Type<?>> type, String parameterName) { final boolean contains = parameters.containsKey(parameterName); if (contains){ // check that types match Class<? extends Type<?>> t = parameters.get(parameterName); if (!t.equals(type)){ throw new IllegalStateException(getClass()+"'s parent already contains parameter " +parameterName+" of type "+t); } } return !contains; } COM: <s> checks if the parameter name is already contained in the parameters map </s>
funcom_train/36198021
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void recordOccurrence(String fullForm, int occurrence) { frequency++; lastOccurrence = occurrence; if (fullForms.containsKey(fullForm)) { fullForms.get(fullForm).increment(); } else { fullForms.put(fullForm, new Counter()); } if (totalWikipKeyphraseness != 0) { if (fullForm.equals("edge")) System.out.println(fullForm + " was " + totalWikipKeyphraseness); totalWikipKeyphraseness += wikipKeyphraseness; if (fullForm.equals("edge")) System.out.println(fullForm + " now " + totalWikipKeyphraseness); } } COM: <s> where in the document did the candidate occurr again </s>
funcom_train/24531860
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected ExpressionProxy allocate(ParseTreeAllocation allocation, IExpression expression) throws AllocationException { ParseAllocation allocator = new ParseAllocation(domain.getThisType()); try { return allocator.getProxy(allocation.getExpression(), expression); } catch (ProcessingException e) { throw new AllocationException(e.getCause()); } catch (RuntimeException e) { throw new AllocationException(e); } } COM: <s> allocate from a parse tree allocation and an expression </s>
funcom_train/3370845
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Accessible getAccessibleAt(Point p) { int tab = ((TabbedPaneUI) ui).tabForCoordinate(JTabbedPane.this, p.x, p.y); if (tab == -1) { tab = getSelectedIndex(); } return getAccessibleChild(tab); } COM: <s> returns the code accessible code child contained at </s>
funcom_train/23044652
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addTrialsPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_SyncActivity_trials_feature"), getString("_UI_PropertyDescriptor_description", "_UI_SyncActivity_trials_feature", "_UI_SyncActivity_type"), ConceptPackage.Literals.SYNC_ACTIVITY__TRIALS, true, false, false, ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the trials feature </s>
funcom_train/45237994
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setValue(AbstractEntity entity, Object value) { try { setProperty(entity, desc.getName(), value); } catch (Exception e) { logger.error("Failed to set value {} for field {}.{}", new Object[] { value, entityClass.getSimpleName(), desc.getName() }); throw new LablogError(Errors.ERR_INTERNAL, e); } } COM: <s> provides access to the setter method corresponding to this field </s>
funcom_train/19765400
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public StringItem getItem_cellId() { if (item_cellId == null) {//GEN-END:|36-getter|0|36-preInit // write pre-init user code here item_cellId = new StringItem("Cell_id", null);//GEN-LINE:|36-getter|1|36-postInit // write post-init user code here }//GEN-BEGIN:|36-getter|2| return item_cellId; } COM: <s> returns an initiliazed instance of item cell id component </s>
funcom_train/21948784
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void update(Observable clk, Object ticks) { if(ticks == null || theClock == null) return; gameIndex.setGoctusSinceDawn((Double)ticks); notifyTime(); double d = theClock.getGoctusSinceDawn().doubleValue(); NumberFormat form = NumberFormat.getInstance(); addMsg("Time in Goctus:" + form.format(d)); } COM: <s> clock observer code </s>
funcom_train/12835103
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private AgentName findAgent(final String aDisplayName) { final AgentDirectoryService service = LocalServiceManager.getServiceRoot().getAgentDirectoryService(); final AgentDescription desc = service.createAgentDescription(); desc.set(JasConstants.AGENT_DISPLAY_NAME, aDisplayName); try { AgentDescription[] res = service.search(desc); if (res.length > 0) { return res[0].getAgentName(); } } catch (Exception e) { e.printStackTrace(); } return null; } COM: <s> resolves the agent name by the agent display name </s>
funcom_train/35357366
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getRight() { return Math.max(this.p[0].getX(), Math.max(this.p[1].getX(), Math.max(this.p[2].getX(), this.p[3].getX()))); } COM: <s> get rightmost extent of quadrilateral </s>
funcom_train/2581347
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Number getPlotValue(int series, int cat) { Number value = null; if (this.dataExtractOrder == TableOrder.BY_ROW) { value = this.dataset.getValue(series, cat); } else if (this.dataExtractOrder == TableOrder.BY_COLUMN) { value = this.dataset.getValue(cat, series); } return value; } COM: <s> returns the value to be plotted at the interseries of the </s>
funcom_train/48527052
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Object readString(boolean shared) throws IOException, ClassNotFoundException { reader.assertStartTag("string"); String result = new String(reader.getAttribute("value")); if (shared && (reader.getAttribute("id") != null)) putReference(reader.getAttribute("id"), result); reader.readEndTag("string"); return result; } COM: <s> method which reads a string item off of the stream </s>
funcom_train/46416677
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void loadView(String pKey) throws SecurityException, IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException{ if (pKey == null) return; //Find all Action view role List<Base> loadActionView = ctx.getLoadActionsView(pKey); InterceptorActionView interceptor = new InterceptorActionView(); ctx.removeViewAll(); interceptor.actionView(loadActionView, ctx, 1); } COM: <s> desc class that execute action or load the view desc </s>
funcom_train/41281999
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object remove(Object key) { int i,n ; for(i=0,n=0;i<keys.length;i++) { if(n >= nelems) break ; if(keys[i] == null) continue ; if(keys[i].equals(key)) { nelems-- ; Object prev = values[i] ; keys[i] = values[i] = null ; return prev ; } n++ ; } return null ; } COM: <s> removes a key and its value from the dictionary </s>
funcom_train/50768382
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public FilterModule getByName(String name) { FilterModule fm = null; CPSIterator iter = this.getIter(); for(;iter.hasNext();){ fm = ((FilterModuleReference) iter.next()).getRef(); if(fm.getName().equals(name)) break; } if(iter.hasNext()) return fm; else return null; } COM: <s> get a superimposed filter module through its name </s>
funcom_train/41303054
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void advancePanel() { printDiagnostic(this, "advancePanel()"); if (_currentPanelIndex >= _panelList.size()) return; if (_currentPanelIndex >= 0) { remove(_panelList.get(_currentPanelIndex)); } _currentPanelIndex++; if (_currentPanelIndex >= _panelList.size()) _currentPanelIndex = 0; add(_panelList.get(_currentPanelIndex)); validate(); _panelList.get(_currentPanelIndex).advanceScene(); _panelList.get(_currentPanelIndex).repaint(); } COM: <s> advances the scene to the next panel in </s>
funcom_train/1710895
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void outputSection(String section, String refPage,String file) { //write message PrintWriter log_file = null; try { log_file = new PrintWriter( new FileWriter( targetFile, true ) ); log_file.println(refPage+" "+section+" "+file); log_file.flush(); log_file.close(); } catch( Exception e ) { System.err.println( "Exception " + e + " attempting to write to file " + targetFile ); } } COM: <s> called to write to file </s>
funcom_train/24379227
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Node getTypeAsNode(Node node, MathType type) { if (type != null) { QName qname = new QName("http://www.w3.org/1998/Math/MathML", "math"); JAXBElement<MathType> jaxbe = new JAXBElement<MathType>(qname, MathType.class, type); node = getNode(node, jaxbe); } return node; } COM: <s> gets the math type as a dom node </s>
funcom_train/4933366
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void dispatchInferenceCompleted(InferenceEngine engine) { for (final InferenceProgressListener listener : progressListeners) { // Protect from exceptions try { listener.inferenceCompleted(engine.getProject(), engine); } catch (final Exception ex) { // do nothing, just log _log.error("Exception while dispatching event : inferenceCompleted to " + listener, ex); } } } COM: <s> dispatch inference completed events </s>
funcom_train/34272972
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void currentPageChanged() { // update delegating command stack getDelegatingCommandStack().setCurrentCommandStack(getCurrentPage().getCommandStack()); // update zoom actions // getDelegatingZoomManager().setCurrentZoomManager(getZoomManager(getCurrentPage().getGraphicalViewer())); // reinitialize outline page // getOutlinePage().initialize(getCurrentPage()); } COM: <s> indicates that the current page has changed </s>
funcom_train/19407005
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String getAttLinkName(GraphObject alo) throws Exception { Enumeration attLinkArcs = alo.getOutgoingArcs(); while (attLinkArcs.hasMoreElements()) { Arc attLinkArc = (Arc) attLinkArcs.nextElement(); GraphObject att = attLinkArc.getTarget(); if (0 == att.getType().getStringRepr().compareTo("Attribute")) { Node attn = (Node) att; return getNodeName(attn); } } throw new Exception("Attributelink name not found."); } COM: <s> returns the name of an attribute node of the agg data model </s>
funcom_train/1174737
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean hasLost() { if (cantLose()) return false; if (altLose) { return true; } if (poisonCounters >= 10) { altLoseConditionMet("Poison Counters"); return true; } if (cantLoseForZeroOrLessLife()) { return false; } return getLife() <= 0; } COM: <s> p has lost </s>
funcom_train/12790800
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void processFieldAccess(CGNode node, FieldReference f) { if (DEBUG) { Trace.println("processFieldAccess: " + f); } TypeReference t = f.getDeclaringClass(); IClass klass = getClassHierarchy().lookupClass(t); if (klass == null) { } else { processClassInitializer(klass); } } COM: <s> is s is a getstatic or putstatic then potentially add the relevant </s>
funcom_train/35678389
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testPropertyNameFromJaxbType() throws Exception { assertEquals(null, CodeGenUtil.propertyNameFromJaxbType(null)); assertEquals("A", CodeGenUtil.propertyNameFromJaxbType("A")); assertEquals("A", CodeGenUtil.propertyNameFromJaxbType("AType")); } COM: <s> check property name from jaxb name </s>
funcom_train/39001144
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long longValue() { try { //Miscellaneous.println(hexValue(start, end)); return Long.parseLong(hexValue(0, data.length - 1), 16); } catch (Exception d) { d.printStackTrace(); Miscellaneous.exit(); } return 0; } COM: <s> return the 32 bit long value </s>
funcom_train/48229268
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void printInfo() { final double memory = getBytes() / (1024.0 * 1024.0); System.out.printf( "Depth= %7d States= %4.3e Transitions= %4.3e Memory= %-6.3f Errors= %7d\n", maxDepth, (double) store.getStored(), (double) store.getStored() + statesMatched, memory, nrErrors); } COM: <s> prints intermediate information </s>
funcom_train/31906881
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void handleCSSEngineEvent(CSSEngineEvent evt) { try { int [] properties = evt.getProperties(); for (int i=0; i < properties.length; ++i) { handleCSSPropertyChanged(properties[i]); } } catch (Exception ex) { ctx.getUserAgent().displayError(ex); } } COM: <s> invoked when an cssengine event is fired </s>
funcom_train/20508072
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Integer getFontSize(long value, long min, long max) { Double fontSize; if (max == min) { fontSize = new Double(maxFont); } else { fontSize = minFont + ((maxFont - minFont)/ (new Double(max)-min)) * (new Double(value - min)); } return new Long(Math.round(fontSize)).intValue(); } COM: <s> calculate the tag cloud font size given the value and the min max </s>
funcom_train/38329608
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean hasBindings() { Iterator itr = propConditions.iterator(); while (itr.hasNext()) { Object ob = itr.next(); if (ob instanceof BoundConstraint) { return true; } else if (ob instanceof PredicateConstraint) { return ((PredicateConstraint)ob).isPredicateJoin(); } } return false; } COM: <s> if the object condition </s>
funcom_train/3405795
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setContentLanguage(String[] languages) { StringBuffer sb = new StringBuffer(languages[0]); for (int i = 1; i < languages.length; i++) sb.append(',').append(languages[i]); setHeader("Content-Language", sb.toString()); } COM: <s> set the content language header of this mime body part </s>
funcom_train/14378372
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getSideThick(float x, float y) { int frontSide = getSideThin(x - nx / 2, y - ny / 2); if (frontSide == FRONT) { return FRONT; } else if (frontSide == BACK) { int backSide = getSideThin(x + nx / 2, y + ny / 2); if (backSide == BACK) { return BACK; } } return COLLINEAR; } COM: <s> gets the side of this line the specified point is on </s>
funcom_train/3478833
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addNewExceptionEntry() { ExceptionTableEntry thisEntry = new ExceptionTableEntry(); thisEntry.iStartPC = thisEntry.iEndPC = thisEntry.iHandlerPC = 0; thisEntry.iCatchType = 0; thisEntry.cpCatchType = null; codeAttrib.vectExceptionTableEntries.add(thisEntry); } COM: <s> adds a new field in the field list </s>
funcom_train/47304484
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean processBaseHit(TablePane base) throws ObjectDependentException, SQLObjectException { SQLTable baseTable = base.getModel(); if (baseTable.getColumns().size() > 0) { baseTable.removeColumn(0); return false; } else { baseTable.getParent().removeChild(baseTable); return true; } } COM: <s> reduces the size of the given base </s>
funcom_train/38851191
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void run(double frac) { Iterator iter = m_vis.items(m_group); while (iter.hasNext()) { DecoratorItem decorator = (DecoratorItem) iter.next(); VisualItem decoratedItem = decorator.getDecoratedItem(); Rectangle2D bounds = decoratedItem.getBounds(); double x = bounds.getCenterX(); double y = bounds.getCenterY(); setX(decorator, null, x); setY(decorator, null, y); } } COM: <s> runs this action triggering whatever processing this action performs </s>
funcom_train/1539978
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void close() { if (in != null) { try { in.close(); } catch (IOException e) { } } if (out != null) { try { out.close(); } catch (IOException e) { } } if (soc != null) { try { soc.close(); } catch (IOException e) { } } } COM: <s> closes the channel </s>
funcom_train/11023779
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testTransformWithSimpleLongProperty() { BeanToPropertyValueTransformer transformer = new BeanToPropertyValueTransformer("longProperty"); TestBean testBean = new TestBean(); testBean.setLongProperty(expectedLongValue.longValue()); assertEquals(expectedLongValue, transformer.transform(testBean)); } COM: <s> test transform with simple long property </s>
funcom_train/35195113
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public IntArray with(final int newInt) { final int[] newInts = new int[ints.length + 1]; System.arraycopy(ints, 0, newInts, 0, ints.length); newInts[ints.length] = newInt; return new IntArray(newInts); } COM: <s> creates a code int array code with an appended code int code </s>
funcom_train/14012415
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int toMm() { switch (units) { case MM: return value; case CM: return value * 10; case IN: return (int) (value * 25.4); case PT: return (int) ((value / 72) * 25.4); case PC: return (int) ((value / 6) * 25.4); } throw new IllegalStateException("Cannot convert to mm."); } COM: <s> returns the value of the extent in millimeters </s>
funcom_train/48151633
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void update(Observable o, Object arg) { n = getValueSetter(0).getValueAsInt(); spinner.setDivisions(n); rv = new RandomVariable(new DiscreteUniformDistribution(1, n, 1), "N"); rvGraph.setRandomVariable(rv); rvTable.setRandomVariable(rv); reset(); } COM: <s> this method controls the scrollbar for the number of divisions </s>
funcom_train/12812216
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString(String unit) { StringBuffer b = new StringBuffer(32); double v; int i; for (i=0; i<prefix.length; i++) { if (unit.equals(prefix[i])) break; } if (i == prefix.length) i = this.unit; // Default v = this.mjd*factor[i] + offset[i]; this.edit(b, i, v); return(b.toString()); } COM: <s> edit the time in the specified choice </s>
funcom_train/39137833
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void destroy() { sLog.info("signaling ssh process"); try { oConsole.sendSignal("KILL"); } catch (Exception xEx) { sLog.warn("failed to signal process: " + xEx.getMessage(), xEx); } oConsole.disconnect(); } COM: <s> kills the subprocess </s>
funcom_train/3927616
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int skipToNumber( int offset ) { int currentOffset = 0; while ( tokenScannerOffset < numberTokens ) { if ( tokenTypeArray[ tokenScannerOffset ] == NumberToken ) { if ( currentOffset == offset ) { return( tokenScannerOffset ); } else { currentOffset++; } } tokenScannerOffset++; } return( -1 ); } COM: <s> skip to the a specific number token </s>
funcom_train/1057327
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void commandAction(Command c, Displayable d) { if (c == backCommand) { parent.show(); } else if (c == stopCommand) { if (obexSender != null) { obexSender.stop(); } show(); } else if ((c == sendCommand) || (c == List.SELECT_COMMAND)) { obexSender = new ObexTextSender(this); sendMessage(); } else if (c == Alert.DISMISS_COMMAND) { show(); } } COM: <s> responds to commands issued on client or server form </s>
funcom_train/12551161
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean edgeExists(char start, char end) { //Get the edge's indices int my_start = translateCharIndex(start); int my_end = translateCharIndex(end); //Return whether the edge exists or not return my_edgeset[my_start][my_end].isActivated(); } COM: <s> functon edge exists </s>
funcom_train/9387636
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void open(IDevice device) { mDevice = device; Shell parent = getParent(); Shell shell = new Shell(parent, getStyle()); shell.setText("Device Screen Capture"); createContents(shell); shell.pack(); shell.open(); updateDeviceImage(shell); Display display = parent.getDisplay(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } } COM: <s> prepare and display the dialog </s>
funcom_train/10791482
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String getOpenJPA3GeneratedKeyTriggerName(Column col) { Table table = col.getTable(); DBIdentifier sName = DBIdentifier.preCombine(table.getIdentifier(), "TRIG"); return toDBName(getNamingUtil().makeIdentifierValid(sName, table.getSchema(). getSchemaGroup(), maxTableNameLength, true)); } COM: <s> returns a open jpa 3 compatible name for an auto assign trigger </s>
funcom_train/36676007
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void drawConfigLine(String config, String configVal, boolean highLight, Graphics g) { Color defaultColor = MainMenuGraphics.getH1Color(); drawConfigLine(config, configVal, highLight ? HIGHLIGHT_COLOR : defaultColor, defaultColor, g); } COM: <s> paints a config txt and next to it the value on 1 line </s>
funcom_train/44481155
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void print() { PrintStream out = JFSLog.getOut().getStream(); out.println("Name: " + getPath()); if (isDirectory()) { out.println(" List: " + Arrays.asList(getList())); } else { out.println(" Length: " + getLength()); out.println(" Last Modified: " + getLastModified()); } out.println(); } COM: <s> prints information about the specified file to the jfs standard out </s>
funcom_train/26019034
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void sendMsrpReportResponse(String txId, Hashtable<String, String> headers) { try { sendMsrpResponse(MsrpConstants.RESPONSE_OK + " " + MsrpConstants.COMMENT_OK, txId, headers); } catch(Exception e) { if (logger.isActivated()) { logger.error("Can't send MSRP REPORT error", e); } } } COM: <s> receive msrp report response </s>
funcom_train/18112095
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addEthnicOriginPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Person_EthnicOrigin_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Person_EthnicOrigin_feature", "_UI_Person_type"), BioDBPackage.Literals.PERSON__ETHNIC_ORIGIN, true, false, true, null, null, null)); } COM: <s> this adds a property descriptor for the ethnic origin feature </s>
funcom_train/15726205
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isHotkeyHit(Vector3f mousePos) { int pixelsWidth = cubesWidth * Cube.SIZE; if (mousePos.x < pixelsWidth - Cube.SIZE || mousePos.x > pixelsWidth) return false; if (mousePos.y < 0 || mousePos.y > Cube.SIZE) return false; return true; } COM: <s> tests for hit at hotkey area </s>
funcom_train/19801986
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void actionPerformed(ActionEvent someE) { if (tOptionsPanelWrapper.outputToClipBoard()) { StringWriter tStringWriter = new StringWriter(); PrintWriter tWriter = new PrintWriter(tStringWriter); TextOutputRenderer tRenderer = new TextOutputRenderer(tWriter); tRenderer.renderAlterTable(model); setClipboardContents(tStringWriter.toString()); } tDialog.dispose(); } COM: <s> puts dml statements to the clipboard </s>
funcom_train/18600036
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private GaapUser buildGaapUser(User user) { //TODO: Complete with authorities GrantedAuthority[] grantedAuthorities = new GrantedAuthorityImpl[0]; return new GaapUser(user.getUsername(), user.getPassword(), true, false, false, true, grantedAuthorities); } COM: <s> builds a gaap user with </s>
funcom_train/45305069
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void runserver() { try { String s = "Run&compile.bat"; String s1 = (new StringBuilder()).append("./").append(s).toString(); Runtime.getRuntime().exec(s1); } catch (IOException ioexception) { ioexception.printStackTrace(); } } COM: <s> p calls run compile </s>
funcom_train/5233037
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addLogText(String logmessage, int log_level){ log_text += "<font color="+"#"+getLogColor(log_level)+">"+logmessage+"</font><br>"; log_text_area.setText("<html><head></head><body>"+log_text+"</body></html>"); //fix by Aniket Dutta log_text_area.setCaretPosition(log_text_area.getDocument().getLength()); } COM: <s> add input string of the given color to the log console </s>
funcom_train/21845050
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean hasPermission(String permission ) { /* * If we are not in a sandbox and there is no * proxy identity set up, then allow all * permissions. * * If there is a proxy identiy, then go ahead * and check it. */ if( !inSandbox()) { if( this.userIdentity == null ) return true; return userIdentity.hasPermission(permission); } if( getUserIdentity() == null ) return false; return getUserIdentity().hasPermission(permission); } COM: <s> determine if the current user has permission to </s>
funcom_train/1344148
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void refreshGraphicDatas() { final GraphicsManager graphicsManager = GraphicsManager.getCurrentManager(); if ( graphicsManager == null ) return; wallImageHandlers = graphicsManager.getWallImageHandlers (); itemImageHandlers = graphicsManager.getItemImageHandlers (); bombermanPhaseHandlers = graphicsManager.getBombermanPhaseHandlers(); bombPhaseHandlers = graphicsManager.getBombPhaseHandlers (); firePhaseHandlers = graphicsManager.getFirePhaseHandlers (); burningPhaseHandlers = graphicsManager.getBurningPhaseHandlers (); } COM: <s> refreshes the references to the graphic datas </s>
funcom_train/1711300
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String addFonts(String fontDirs, String failed) { StringTokenizer fontPaths = new StringTokenizer(fontDirs, ","); while (fontPaths.hasMoreTokens()) { String fontPath = fontPaths.nextToken(); if (!fontPath.endsWith("/") & !fontPath.endsWith("\\")) fontPath = fontPath + separator; //LogWriter.writeLog("Looking in " + fontPath + " for TT fonts"); addTTDir(fontPath, failed); } return failed; } COM: <s> takes a comma separated list of font directories and add to substitution </s>
funcom_train/17728762
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void makeDirStructure(){ File f = new File(rootDir_); f.mkdir(); new File(incomingDir_).mkdir(); new File(workingDir_).mkdir(); new File(errorDir_).mkdir(); new File(originalsDir_).mkdir(); new File(goBackDir_).mkdir(); new File(logDir_).mkdir(); } COM: <s> creates the directory structure under the root directory if it does not </s>
funcom_train/20932295
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isGood(int time) { if (list.size() < 10) { label = new JLabel("Please enter your name"); return true; } else { for (int i = 0; i < 11; i++) { if((list.get(i).getTime() > time)) { label = new JLabel("Please enter your name"); return true; } } } return false; } COM: <s> check wether the time accomplished is among the top ten scorers </s>
funcom_train/16482749
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void readSettings() { // the window size and position defaults final Rectangle DEFAULT_BOUNDS = new Rectangle(20, 20, 640, 380); final String prefKey = "MainWindow"; //$NON-NLS-1$ Rectangle bounds = MainWindow.loadFrameBounds(prefKey, DEFAULT_BOUNDS); frame.setBounds(bounds); Preferences windowPrefsNode = PCalendar.settings.node(prefKey); notesSplitPane.setDividerLocation(windowPrefsNode.getInt("notesSplit", 150)); //$NON-NLS-1$ } COM: <s> load the stored main window settings </s>
funcom_train/28763176
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setCssfootersize(String newVal) { if ((newVal != null && this.cssfootersize != null && (newVal.compareTo(this.cssfootersize) == 0)) || (newVal == null && this.cssfootersize == null && cssfootersize_is_initialized)) { return; } this.cssfootersize = newVal; cssfootersize_is_modified = true; cssfootersize_is_initialized = true; } COM: <s> setter method for cssfootersize </s>
funcom_train/26206375
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long getProperty(final String key, long defaultValue) { final Object value = get(key); if (value != null) { if (value instanceof String) { defaultValue = Long.parseLong((String) value); } else if (value instanceof Long) { defaultValue = ((Long) value).longValue(); } } return defaultValue; } COM: <s> return the long value for the given code key code </s>
funcom_train/40737813
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String safeParseXml(String xml) { String result = ""; try { result = parseXml(xml); } catch (JDOMException e) { log.error("problem in the dom tree that cannot be traversed by jdom", e); } catch (IOException e) { log.error("Problem reading the provided string containing an xml document", e); } return result; } COM: <s> p used to prevent the caller from having to call exceptions </s>
funcom_train/9859842
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setAdaptationDescription(final AdaptationDescription pAdaptationDescription) { aADTreeModel = new ADTreeModel(pAdaptationDescription); aModelTree.setModel(getADTreeModel()); aModelTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); aModelTree.getSelectionModel().addTreeSelectionListener(this); } COM: <s> set the adaptation description to be used initially </s>
funcom_train/11726761
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void replay(Batch batch) throws PathNotFoundException, ItemNotFoundException, NoSuchNodeTypeException, ValueFormatException, VersionException, LockException, ConstraintViolationException, AccessDeniedException, UnsupportedRepositoryOperationException, RepositoryException { for (Operation operation : recording) { operation.replay(batch); } } COM: <s> replays this batch on the given code batch code </s>
funcom_train/4927127
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getYear(TimeZone zone) { GregorianCalendar calendar = new GregorianCalendar(zone); calendar.setTimeInMillis(calendar().getTimeInMillis()); if (calendar.get(Calendar.ERA) == GregorianCalendar.AD) { return calendar.get(Calendar.YEAR); } else { return -(calendar.get(Calendar.YEAR) - 1); } } COM: <s> returns the year for the inputed time zone </s>
funcom_train/29833445
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void deleteEdge(Edge e) throws GraphElementNotFoundException { assert e != null; // if (e.getGraph()==null) return; if (!getEdges().contains(e)) { return; } // logger.info("deleting edge e from this graph"); ListenerManager listMan = this.getListenerManager(); GraphEvent ga = new GraphEvent(e); if (listMan != null) listMan.preEdgeRemoved(ga); doDeleteEdge(e); if (listMan != null) listMan.postEdgeRemoved(ga); } COM: <s> deletes the given edge from the current graph </s>
funcom_train/9238067
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean callUnknownAction(final String sMessage, final String sTarget, final String sHost) { final CallbackOnUnknownAction cb = (CallbackOnUnknownAction)getCallbackManager().getCallbackType("OnUnknownAction"); if (cb != null) { return cb.call(sMessage, sTarget, sHost); } return false; } COM: <s> callback to all objects implementing the unknown action callback </s>
funcom_train/130726
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void queryWifiMac () { try { sendHeader (PLAYER_MSGTYPE_REQ, PLAYER_WIFI_REQ_MAC, 0); os.flush (); } catch (IOException e) { throw new PlayerException ("[Wifi] : Couldn't request PLAYER_WIFI_REQ_MAC: " + e.toString (), e); } } COM: <s> configuration request player wifi req mac </s>
funcom_train/49078384
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Customer create(){ String ID = null; try { ID = new GUID().generate(); } catch (Exception ex) { ex.printStackTrace(); } Customer cust = new Customer(); cust.setCustGUID(ID); Cache.getInstance().put(ID,cust); cust.setDirty(true); return cust; } COM: <s> creates a customer object that is empty except for an id guid </s>
funcom_train/18111899
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getToolMoveDownButton() { if (toolMoveDownButton == null) { toolMoveDownButton = new JButton(); toolMoveDownButton.setDisabledIcon(new ImageIcon(getClass().getResource("/icons/movedown_disabled.gif"))); toolMoveDownButton.setToolTipText("Move down"); toolMoveDownButton.setIcon(new ImageIcon(getClass().getResource("/icons/movedown.gif"))); toolMoveDownButton.setPreferredSize(new java.awt.Dimension(20,20)); toolMoveDownButton.addActionListener(this); } return toolMoveDownButton; } COM: <s> this method initializes tool move down button </s>
funcom_train/33143138
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addAcceptedValue(AcceptedValue aAcceptedValue) { List tempAcceptedValues = new ArrayList(Arrays.asList(acceptedValues)); tempAcceptedValues.add(aAcceptedValue); acceptedValues = (AcceptedValue[]) tempAcceptedValues.toArray(new AcceptedValue[tempAcceptedValues.size()]); } COM: <s> add a value that will be allowed in the field </s>
funcom_train/7755172
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void showView(final String jsppage) throws Exception { WikiCategoryEngine wce = WikiLocal.getWikiCategoryEngine(); ViewContext tctx = WebLocal.getViewContext(); tctx.setAttribute(WikiConstants.TEMPLATE_JSPPAGE_KEY, jsppage); render(); //WikiProvidedObject wp = WikiUtils.getWikiPage(); //WikiLinkHolder wlh = WikiLocal.getWikiLinkHolder(); } COM: <s> shows a jsp view page by delegating to the </s>
funcom_train/1752874
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void writeObject(Object o) throws IOException { if (o instanceof Text) { Text to = (Text) o; out.write(to.getBytes(), 0, to.getLength()); } else { out.write(o.toString().getBytes(utf8)); } } COM: <s> write the object to the byte stream handling text as a special </s>
funcom_train/27821812
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void stopOrAbortEditing() { if (getEditingInProgress()) { Object value=getEditorComponentValue(m_component); if (m_initialValue==value || (m_initialValue!=null && m_initialValue.equals(value))) abortEditing(); else { if (!stopEditing()) abortEditing(); } } } COM: <s> called to stop or abort editing depending on whether the value has change </s>