__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/2586389
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean equalDates(final Calendar c1, final Calendar c2) { if ((c1.get(Calendar.DATE) == c2.get(Calendar.DATE)) && (c1.get(Calendar.MONTH) == c2.get(Calendar.MONTH)) && (c1.get(Calendar.YEAR) == c2.get(Calendar.YEAR))) { return true; } else { return false; } } COM: <s> returns true if the two dates are equal time of day is ignored </s>
funcom_train/17028205
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int countFindAllNames() throws MetadataAccessException { int count = 0; try { Long integerCount = (Long) getSession().createQuery( "select count(distinct dataContainerGroup.name) from " + "DataContainerGroup dataContainerGroup") .uniqueResult(); if (integerCount != null) count = integerCount.intValue(); } catch (HibernateException e) { throw new MetadataAccessException(e); } return count; } COM: <s> this method returns the number of code data container group code names </s>
funcom_train/21656096
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getBtCancelarDesarrollo() { if (btCancelarDesarrollo == null) { btCancelarDesarrollo = new JButton(); btCancelarDesarrollo.setBounds(new Rectangle(631, 534, 150, 30)); btCancelarDesarrollo.setMnemonic('v'); btCancelarDesarrollo.setText("Volver al Menu"); btCancelarDesarrollo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { ControladorPrincipal.mostrarMenuEditarProyecto(); } }); } return btCancelarDesarrollo; } COM: <s> this method initializes bt cancelar desarrollo </s>
funcom_train/38463873
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: synchronized public ObjectData put(ObjectData data) { if(data == null) { throw new NullPointerException("Null data"); } ObjectData oldData = (ObjectData)cache.put(data.getOID(),data); addClassMapping(data); removeClassMapping(oldData); return oldData; } COM: <s> puts an objects data in the cache </s>
funcom_train/3925519
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public void verifyUsage( Hashtable usageTable, TokenEnumerator v, ErrorSummary errorSummary ) { // System.out.println( "verifyUsage, verifyDisabled " + verifyDisabled + ", usageChecksEnabled " + usageChecksEnabled ); if ( verifyDisabled && !usageChecksEnabled ) return; IndexedFaceSetVerifier.verifyUsage( usageTable, v, errorSummary ); } COM: <s> verify coordinate usage in indexed face sets </s>
funcom_train/12564597
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void computeRenderingTile(final Tile tile) { // By default, there is no rendering and the tile is set to reflect // 'no rendering' tile.x = Integer.MIN_VALUE; tile.y = Integer.MIN_VALUE; tile.maxX = Integer.MIN_VALUE; tile.maxY = Integer.MIN_VALUE; } COM: <s> computes this nodes rendering tile </s>
funcom_train/7772457
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JDateChooser getDataRicercaA() { if (dataRicercaA == null) { dataRicercaA = new JDateChooser("dd/MM/yyyy", "##/##/##", '_'); dataRicercaA.setBounds(new Rectangle(125, 38, 112, 24)); dataRicercaA.setDate(new Date()); } return dataRicercaA; } COM: <s> this method initializes data ricerca a </s>
funcom_train/4925230
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testAddMultipleGovernances() { // Create the governance type final GovernanceType<?, ?> governanceType = this .createMock(GovernanceType.class); this.replayMockObjects(); // Create the properties PropertyList properties = OfficeFloorCompiler.newPropertyList(); // Add the governances this.operations.addGovernance("GOVERNANCE", "net.example.ExampleGovernanceSource", properties, governanceType).apply(); this.operations.addGovernance("GOVERNANCE", "net.example.ExampleGovernanceSource", properties, governanceType).apply(); // Validate appropriately added governances this.validateModel(); } COM: <s> ensure able to add multiple </s>
funcom_train/35562213
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean isJUnit3TargetClass(Class<?> clazz) { if (!TestCase.class.isAssignableFrom(clazz)) { return false; } if (!clazz.isMemberClass()) { return true; } if ((clazz.getModifiers() & Modifier.STATIC) == Modifier.STATIC) { return true; } return false; } COM: <s> checks if the class is a target class or not </s>
funcom_train/4509886
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getGroupsBaseDN(String groupname) { try { findGroupDN(groupname, baseDN); return baseDN; } catch (Exception e) { try { if (alternateBaseDN != null) { findGroupDN(groupname, alternateBaseDN); return alternateBaseDN; } } catch (Exception ex) { Log.debug(ex); } } return null; } COM: <s> returns the base dn for the given groupname </s>
funcom_train/582698
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public String getClassDirectory( File projectPath ){ if( projectPath == null ){ projectPath = new File( "." ); } if( new File( projectPath, _CLASS_WEB_DIRECTORY_ ).exists() ){ return _CLASS_WEB_DIRECTORY_; } else if( new File( projectPath, _CLASS_ALONE_DIRECTORY_ ).exists() ){ return _CLASS_ALONE_DIRECTORY_; } else { return "missingClassPath"; } } COM: <s> return standalone class directory or web class directory </s>
funcom_train/13593493
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Node getRandomNode(Coord coord) { Random r = new Random(); IdImpl id = new IdImpl(r.nextInt(net.getNodes().size()*3)); //PARCHE while(net.getNodes().keySet().contains(id)) id = new IdImpl(r.nextInt(net.getNodes().size()*3)); //PARCHE Node result = net.getFactory().createNode(id, coord); return result; } COM: <s> builds a node with a random id at certanly coordinate </s>
funcom_train/23442782
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addSchemaLocationPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ImportType_schemaLocation_feature"), getString("_UI_PropertyDescriptor_description", "_UI_ImportType_schemaLocation_feature", "_UI_ImportType_type"), SchemaPackage.Literals.IMPORT_TYPE__SCHEMA_LOCATION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the schema location feature </s>
funcom_train/35284106
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addModifier(Long ownerOMA, Modifier modifier) { List<Modifier> objectModifiers = this.modifiers.get(ownerOMA); if (objectModifiers == null) { objectModifiers = new ArrayList<Modifier>(); this.modifiers.put(ownerOMA, objectModifiers); } objectModifiers.add(modifier); } COM: <s> this method adds a new modifier to the list </s>
funcom_train/106905
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void putCache(URL url, InputStream in) { try { BufferedReader br = new BufferedReader (new InputStreamReader(in, "ISO-8859-1")); StringBuffer data = new StringBuffer(); char[] buf = new char[4096]; int len; while((len = br.read(buf)) != -1) { data.append(buf,0,len); } String res = data.toString(); cachedData.put(url.toString(), res); } catch (IOException ex) { l.log(Level.SEVERE, "Error writing into cache", ex); } } COM: <s> test code to fill something into the cache </s>
funcom_train/12858338
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void getLobLocator(CodeAssembler a, StorablePropertyInfo info) { if (!info.isLob()) { throw new IllegalArgumentException(); } a.invokeInterface(TypeDesc.forClass(RawSupport.class), "getLocator", TypeDesc.LONG, new TypeDesc[] {info.getStorageType()}); } COM: <s> generates code to get a lob locator value from raw support </s>
funcom_train/20619906
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void run() { while (running) { logger.debug("HeaderModule is still rendering!"); /* * Update and refresh the module * output here. */ try { /* * Wait for new data here. * (e.g. the weather won't cahnge * every 10 seconds. In this case * you could wait longer than a * minute.) */ //wait 20 seconds Thread.sleep(20000); } catch (InterruptedException ex) { logger.debug("HeaderModule was woken up", ex); } } } COM: <s> is executed if a new thread is started </s>
funcom_train/35281692
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void remove(int index){ if (index >= listSize || index < 0) throw new IndexOutOfBoundsException(); listSize --; if (index == listSize){ list[listSize] = null; return; } for (int i = index; i < listSize; i++){ list[i] = list[i+1]; } list[listSize] = null; } COM: <s> remove the light at the given index </s>
funcom_train/34672280
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setBuilders(Builders builders) { int idx; for(idx=getGroupCount()-1; idx>=0 ; idx--) { if (getGroup(idx) instanceof Builders) { break; } } if (idx==-1) { addGroup(builders); } else { setGroup(idx, builders); } } COM: <s> set the builders associated with this configuration </s>
funcom_train/47983347
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void handleChatGroupsMenuSelection() { // mProgressDialog = ProgressDialog.show(this, null, // "Please wait while retrieving groups ..."); if (SessionService.getInstance().getSocialNetworkManagementService(). isAuthenticated(Const.MOBILIS)) { Intent i = new Intent( Const.INTENT_PREFIX + "servicecall.groupsquery"); sendBroadcast(i); } } COM: <s> handles a click on the chat groups menu item sends a groups query </s>
funcom_train/42822728
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getHideCommand() { if (hideCommand == null) {//GEN-END:|186-getter|0|186-preInit // write pre-init user code here hideCommand = new Command("Hide", Command.EXIT, 0);//GEN-LINE:|186-getter|1|186-postInit // write post-init user code here }//GEN-BEGIN:|186-getter|2| return hideCommand; } COM: <s> returns an initiliazed instance of hide command component </s>
funcom_train/14160536
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void processFault(Fault fault) { Jbi4CorbaEndpoint corbaEndpoint = suManager.getStartedEndpoint(this.getMessageExchange().getEndpoint()); corbaEndpoint.getEndpointStatus().incrementReceivedErrors(); String msg=MESSAGES.getString("CRB000212_InOut_Message_exchange_provider_received_FAULT"); LOG.error(msg); } COM: <s> process a code fault code </s>
funcom_train/46793673
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getCookies(String packet) { String par = "Cookie:"; String result=""; int index0 = packet.indexOf(par); if(index0 == -1) return ""; int index1 = packet.indexOf(' ', index0) + 1; int index2 = packet.indexOf('\r', index1); result=packet.substring(index1, index2); return result; } COM: <s> returns a code string code representing name and value of cookies </s>
funcom_train/7589597
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addSolution(int location) { //Increase the solutions in the location specified. hypercubes_[location]++; //Update the most poblated hypercube if (hypercubes_[location] > hypercubes_[mostPopulated_]) mostPopulated_ = location; //if hypercubes[location] becomes to one, then recalculate //the occupied hypercubes if (hypercubes_[location] == 1) this.calculateOccupied(); } //addSolution COM: <s> increases the number of solutions into a specific hypercube </s>
funcom_train/48910214
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JComboBox getComboTipos() { if (comboTipos == null) { comboTipos = new JComboBox(); comboTipos.addItem("Anticipo"); comboTipos.setBounds(new Rectangle(86, 29, 178, 20)); comboTipos.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent e) { if(e.getKeyCode()==KeyEvent.VK_ENTER) txfDetalle.grabFocus(); } }); } return comboTipos; } COM: <s> this method initializes combo tipos </s>
funcom_train/28353275
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setParameter( final LiveParameter parameter ) { if ( parameter == _parameter ) return; // nothing to do if ( _parameter != null ) { _parameter.removeLiveParameterListener( this ); } _parameter = null; clear(); _parameter = parameter; if ( parameter != null ) { _titleView.setText( parameter.getName() ); _designView.setValue( new Double( parameter.getDesignValue() ) ); parameter.addLiveParameterListener( this ); setEnabled( true ); } } COM: <s> set the live parameter to display </s>
funcom_train/23386247
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void clickNext() { if (currentPage == mainView) { notify.postNotification(ApplicationWindow.NOTIFY_CHANGE_CURRENT_PAGE, secondPage); currentPage = secondPage; } else if (currentPage == secondPage) { notify.postNotification(ApplicationWindow.NOTIFY_CHANGE_CURRENT_PAGE, thirdPage); currentPage = thirdPage; } } COM: <s> clicked the next button </s>
funcom_train/7539121
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean isSuperClass(String key) { if (!RubyMixinUtils.isObjectOrKernel(key)) { if (key.equals(klass.getKey())) { return true; } RubyMixinClass superclass = klass.getSuperclass(); while (superclass != null) { final String superClassKey = superclass.getKey(); if (RubyMixinUtils.isObjectOrKernel(superClassKey)) { break; } if (key.equals(superClassKey)) { return true; } superclass = superclass.getSuperclass(); } } return false; } COM: <s> tests that the specified key identifies superclass of the </s>
funcom_train/47945554
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void createProxy(String passPhrase) throws GeneralSecurityException, IOException { if (!proxyExpired()) { return; } CoGProperties properties = CoGProperties.getDefault(); createProxy(properties.getUserCertFile(), properties.getUserKeyFile(), passPhrase, true, true, properties.getProxyFile()); } COM: <s> create a grid proxy w default credentials </s>
funcom_train/10522801
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testScrollableInsensitiveUpdateablepResultSet() throws Exception { try { ResultSet rs = testCtrl.getScrollableResultSet_IU(); fail("This feature has not been impelented in Derby yet (1/19/2005), need to add test case once it has."); } catch (ControlException ce) { assertTrue(true); } } COM: <s> test scrollable result set feature sensitive updateable </s>
funcom_train/12167000
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: // public void testDetermineFormattingSuppresses() { // context.expects.getEnclosingElement().returns(parent); // parent.expects.getOutputState().returns(parentOutputState); // parentOutputState.expects.temporarilySuppressing().returns(true); // // builder.specifiedCurrentContainer = false; // builder.isInactiveGroup = false; // FormattingResult result = builder.determineFormattingResult( // layoutContext, containerInstance); // assertEquals(FormattingResult.SUPPRESS, result); // } COM: <s> verify the failure case </s>
funcom_train/25457567
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getLoadButton() { if (LoadButton == null) { LoadButton = new JButton(); LoadButton.setPreferredSize(new Dimension(200, 30)); LoadButton.setText("Load configuration file"); LoadButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { parentPane.LoadConfigurationFile(LoadConfigFile.getChosenFile()); } }); } return LoadButton; } COM: <s> this method initializes load button </s>
funcom_train/1616752
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int read() throws IOException { synchronized (lock) { ensureOpen(); for (;;) { if (nextChar >= nChars) { fill(); if (nextChar >= nChars) return -1; } if (skipLF) { skipLF = false; if (cb[nextChar] == '\n') { nextChar++; continue; } } return cb[nextChar++]; } } } COM: <s> reads a single character </s>
funcom_train/37005033
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void rename(ASTNode node, String newName) { SimpleName newSimpleName = ast.newSimpleName(newName); // NOTE: doesn't work at the moment (2nd parameter doesn't fit) astRewrite.set(node, SimpleType.NAME_PROPERTY, newSimpleName, null); } COM: <s> this method renames anything which extends </s>
funcom_train/22547699
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void handleNewRequest(ReplyHandler handler, RequestType type) { if(LOG.isDebugEnabled()) LOG.debug("Adding request to handler: " + handler); synchronized(requests) { // We're done. if(finished) { LOG.debug("Already reached maximum failure point, ignoring."); return; } requests.put(handler, Boolean.TRUE); } } COM: <s> stores knowledge that weve requested a network updatable component </s>
funcom_train/50490402
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void initObjects(final Object[] objects) { this.objects = objects; if (objects == null) { clearProperties(); } else { if (firstIndex < 0) { firstIndex = 0; } if (lastIndex < 0 || lastIndex > objects.length) { lastIndex = objects.length; } currentIndex = firstIndex; } } COM: <s> initialize the array of objects that will be iterated through </s>
funcom_train/20118510
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Newt createNewt(String type, Element node, XmlDoc owner, NewtContext context) throws ErrorCodeException { Newt result = null; if (containsType(type)) { result = (Newt) newObject(type); result.init(node, owner, context); } else { throw new NewtNotRegistered("Newt '" + type + "' is not registered", type); } return result; } COM: <s> get new newt by registered type </s>
funcom_train/11665580
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String checkIDRefID () { Iterator iter = fIdRefTable.keySet().iterator(); String key; while (iter.hasNext()) { key = (String) iter.next(); if (!fIdTable.containsKey(key)) { return key; } } return null; } COM: <s> return null if all idref values have a corresponding id value </s>
funcom_train/19401350
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void shutdown() { log.info("will shutdown."); // mark thread for shutdown. this.shutdown = true; while( isAlive() ) { yield(); // yield so that the ConsumerThread can run(). // System.err.print('.'); } log.info("did shutdown."); } COM: <s> shutdown the thread abnormal termination </s>
funcom_train/32746353
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String matchString() { String sd = suddenDeath_ ? " SD" : ""; return date_+league_.getTeam(homeId_)+"-"+league_.getTeam(awayId_)+" "+ Misc.rightString(hGoals_, league_.getMatchWidth(), ' ')+"-"+ Misc.leftString(aGoals_, league_.getMatchWidth(), ' ') + sd; } COM: <s> returns the match as a string </s>
funcom_train/16462660
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void addKeywordMatchCriteria(DetachedCriteria criteria, Keyword keyword) { String keywordString = keyword.getKeyword(); // FIXME this should be case-insensitive Criterion matchKeyword = Restrictions.or( Restrictions.eq(Field.MESSAGE_CONTENT.getFieldName(), keywordString), Restrictions.like(Field.MESSAGE_CONTENT.getFieldName(), keywordString + ' ')); criteria.add(matchKeyword); } COM: <s> augments the supplied criteria with that required to match a keyword </s>
funcom_train/12809534
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setChapterNumber(final int number) { numbers.set(numbers.size() - 1, Integer.valueOf(number)); Object s; for (Iterator<Element> i = iterator(); i.hasNext(); ) { s = i.next(); if (s instanceof Section) { ((Section)s).setChapterNumber(number); } } } COM: <s> changes the chapter number </s>
funcom_train/13404725
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void fillAssemblyList(Vector content) { AssemblyHeader ah = null; listModel = new DefaultListModel(); if (content != null) { for(int i = 0 ; i < content.size() ; i++) { listModel.addElement(content.elementAt(i)); } } myCheck.setSelected(true); myChecked = true; publicCheck.setSelected(true); publicChecked =true; assemblyList.setModel(listModel); } COM: <s> fills the assembly list with the elements of a vector </s>
funcom_train/15563405
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void unassignOperation(Operation op){ for (int walk = op.getScheduledStartTime(); walk < op.completionTime(); walk++) { this.availableResourceCount[walk] += op.getResourceDemand(); int walk_op = 0; while (this.operations[walk][walk_op] != null) { walk_op++; } this.operations[walk][walk_op-1] = null; } } COM: <s> unassign the operation release the resource availability </s>
funcom_train/40234046
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object clone() { try { ArrayOfInt v = (ArrayOfInt) super.clone(); v.elementData = Arrays.copyOf(elementData, size); return v; } catch (CloneNotSupportedException e) { // this shouldn't happen, since we are Cloneable throw new InternalError(); } } COM: <s> returns a shallow copy of this tt array list tt instance </s>
funcom_train/172091
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public CodeException getCodeException(ConstantPoolGen cp) { return new CodeException(start_pc.getPosition(), end_pc.getPosition() + end_pc.getInstruction().getLength(), handler_pc.getPosition(), (catch_type == null)? 0 : cp.addClass(catch_type)); } COM: <s> get code exception object </s>
funcom_train/9361237
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public float measureText(char[] text, int index, int count) { if (!mHasCompatScaling) return native_measureText(text, index, count); final float oldSize = getTextSize(); setTextSize(oldSize*mCompatScaling); float w = native_measureText(text, index, count); setTextSize(oldSize); return w*mInvCompatScaling; } COM: <s> return the width of the text </s>
funcom_train/34675760
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isMarkedForRefer() { if (assessmentSheet==null) { return false; } else if (assessmentSheet.isMarkedForRefer()) { return true; } for(Iterator<Section> it=section.iterator() ; it.hasNext() ; ) { if (it.next().getAssessmentSheet().isMarkedForRefer()) { return true; } } return false; } COM: <s> check if this policy is marked as refer </s>
funcom_train/20045100
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void _removeTemplate() { requiredMethod("renameTemplate()"); boolean res = oObj.removeTemplate("XDocumentTemplates", "ANewTemplate"); log.println("Method returned: " + res); res &= getSubContent(groupContent, "ANewTemplate") == null; tRes.tested("removeTemplate()", res); } COM: <s> test calls the method and checks that group content has no deleted template </s>
funcom_train/37513763
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void createLauncherLayout() { fileModel = new DefaultListModel(); fileList = new JList(fileModel); setJMenuBar(createMenus()); getContentPane().setLayout(new BorderLayout()); getContentPane().add(new GUIFileListPanel( fileList, new OpenHandler()), BorderLayout.NORTH); } COM: <s> creates the environment layout and menus in which other tools can run </s>
funcom_train/26224491
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getFileTransferCookie() { // if this isn't a file transfer message, return null if (!isFileTransfer()) return null; String contents = getContent(); int headerIndex = contents.indexOf ("Invitation-Cookie: "); int headerLength = "Invitation-Cookie: ".length(); String cookie = contents.substring (headerIndex+headerLength, contents.indexOf("\r\n", headerIndex)); return cookie; } COM: <s> finds the file transfer cookie </s>
funcom_train/28210916
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Query nextQuery() { if (_sNextQuery == null) return null; String sReturnQuery = _sNextQuery; int thisLineNo = lineNo; _sNextQuery = doParse(); if (sReturnQuery == null) return null; if (sReturnQuery.startsWith("--")) return nextQuery(); return new BasicQuery(sReturnQuery, thisLineNo); } COM: <s> retrieves the next query in the sequence </s>
funcom_train/18008186
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void writeListElement(ListItem listItem, ByteArrayOutputStream out) throws IOException, DocumentException { Iterator chunks = listItem.getChunks().iterator(); while (chunks.hasNext()) { Chunk ch = (Chunk) chunks.next(); addElement(ch, out); } out.write(escape); out.write(paragraph); } COM: <s> write a code list item code </s>
funcom_train/18136477
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public InputPortCell insertInputPort(InputPort inputPort) { TaskCell taskCell = graphModel.getTaskCell(inputPort.getTask()); InputPortCell inputPortCell = new InputPortCell(inputPort); ParentMap parentMap = new ParentMap(new Object[] { inputPortCell }, taskCell); graphModel.insert(null, null, null, parentMap, null); handleTaskCellSize(taskCell); allignInputPortCells(taskCell); return inputPortCell; } COM: <s> method for inserting an input port </s>
funcom_train/1304042
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getProtocol(boolean normalized) { if (_protocol == null) { final int[] markers = getMarkers(); _protocol = getSubString(0, markers[PROTOCOL_MARKER] + 1); } if (normalized && _nProtocol == null) { _nProtocol = _protocol.toLowerCase().replaceAll("\\\\", "/"); } return normalized ? _nProtocol : _protocol; } COM: <s> get the protocol portion of this url </s>
funcom_train/25365814
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addPostDescriptionPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Room_postDescription_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Room_postDescription_feature", "_UI_Room_type"), LeveleditorPackage.Literals.ROOM__POST_DESCRIPTION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } COM: <s> this adds a property descriptor for the post description feature </s>
funcom_train/50503231
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void load() { voSelectBox.removeAllItems(); List vos = settings.getValueObjects(); Iterator iter = vos.iterator(); while (iter.hasNext()) { ValueObject vo = (ValueObject)iter.next(); voSelectBox.addItem(vo); } } COM: <s> this method loads the editors values </s>
funcom_train/19271696
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public HorizontalAlignment getHorizontalAlignment() { if ((this == TOP_LEFT) || (this == LEFT) || (this == BOTTOM_LEFT)) { return HorizontalAlignment.LEFT; } else if ((this == TOP_RIGHT) || (this == RIGHT) || (this == BOTTOM_RIGHT)) { return HorizontalAlignment.RIGHT; } else { return HorizontalAlignment.CENTER; } } COM: <s> this method gets the horizontal part of the alignment </s>
funcom_train/34672251
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private XMLClassDescriptor createDescriptor(Class type) throws ResolverException { if (!_useIntrospection) { return null; } try { XMLClassDescriptor descriptor = this.getIntrospector().generateClassDescriptor(type); if (descriptor != null) { _descriptorCache.addDescriptor(type.getName(), descriptor); return descriptor; } } catch (MarshalException mx) { throw new ResolverException(mx); } return null; } COM: <s> creates an xmlclass descriptor for the given type by using introspection </s>
funcom_train/34808123
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void initialize() { this.setPreferredSize(new java.awt.Dimension(300,300)); this.setResizable(false); this.setTitle("Specify Query..."); this.setSize(400, 300); this.setContentPane(getJContentPane()); } COM: <s> this method initializes this </s>
funcom_train/20486096
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String isFileNameLegal(String clusterName) { String resultString = LOADCORRECT; if (checkBox.isSelected()) { try { BufferedWriter output = new BufferedWriter(new FileWriter(new File(saveFile.toString(), clusterName))); } catch (Exception e) { resultString = "FILE NAMING ERROR: " + e; } } return resultString; } COM: <s> method for checking whether the selected file is legal are not </s>
funcom_train/27809074
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getCgiMimeType( String name ) { for( int i = 0; i < cgiHandlers.size(); i++ ) { CgiHandler cgiHandler = (CgiHandler)cgiHandlers.elementAt(i); if ( cgiHandler.getName().equals( name ) ) return cgiHandler.getMimeType(); } return "text/plain"; } COM: <s> gets the mime type for the given cgi handler </s>
funcom_train/21015326
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void drawScaledBox ( final double p[] ) { viewBox ( p [0], p [1] ); final double d = graphicsXPoint ( p [0] ); final double e = graphicsYPoint ( p [1] ); g2.drawRect ( (int) d - 3, (int) e - 3, 6, 6 ); } COM: <s> draws a box arround the given point </s>
funcom_train/41164827
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void delete(OpenResponse2 entity) { EntityManagerHelper.log("deleting OpenResponse2 instance", Level.INFO, null); try { entity = getEntityManager().getReference(OpenResponse2.class, entity.getOpenResponseId()); getEntityManager().remove(entity); EntityManagerHelper.log("delete successful", Level.INFO, null); } catch (RuntimeException re) { EntityManagerHelper.log("delete failed", Level.SEVERE, re); throw re; } } COM: <s> delete a persistent open response2 entity </s>
funcom_train/7378964
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void stop() throws UnsupportedOperationException { if (!canBeStopped()) { throw new UnsupportedOperationException("Stop not supported"); } boolean joinit = false; synchronized (lock) { if (thread != null && !stopped) { stopped = true; if (paused) { resume(); } notifyExecutionStopping(); thread.interrupt(); joinit = true; } } if (joinit) { do { try { thread.join(); break; } catch (InterruptedException e) { continue; } } while (true); thread = null; } } COM: <s> stops the ongoing execution </s>
funcom_train/31525716
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void runFinished(Test testSuite) { super.runFinished(testSuite); //System.err.println("Errors: " + pTestResult.errorCount()); //System.err.println("Failures: " + pTestResult.failureCount()); if (pTestResult.errorCount() == 0 && pTestResult.failureCount() == 0) { terminate(); } } COM: <s> indicates that the run has finished </s>
funcom_train/49608818
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void deleteFacilityTypes(String username,EntityManager em,List<FacilityType> vos) throws Throwable { try { for(FacilityType vo: vos) { vo.setDeleted(Consts.FLAG_Y); JPAMethods.merge(em, username, DefaultFieldsCallabacks.getInstance(), vo); } } catch (Throwable ex) { Logger.error(null, ex.getMessage(), ex); throw ex; } } COM: <s> delete logically a facility type </s>
funcom_train/17142898
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public NumberedStream addClosureDefinition(NumberedStream baseStream, Calc1 calc, String columnName) { CalcNumberedStream1 stream = new CalcNumberedStream1(calc, baseStream); ColumnDefinition columnDefinition = new ColumnDefinition(stream, columnName); _rawColumnDefinition.add(columnDefinition); return stream; } COM: <s> create a stream based on another stream and a calc </s>
funcom_train/48150373
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double inverseCDF(double probability) { if (0<=probability && probability <=1) return findRoot(probability, -1.0, -6.0, 6.0); // Distribution.findRoot(double prob, double guess, double xLo, double xHi); else if (probability <0) return 0; else return 1.0; // (1 < probability) } COM: <s> inverse of the cumulative students t distribution function </s>
funcom_train/2695513
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getContactNameByFirstAndLastNames() { StringBuilder sb = new StringBuilder(); sb.append( getFirstName() ); final String lastName = getLastName(); if ( sb.length() > 0 && lastName != null && lastName.length() > 0) { sb.append( " " ); } sb.append( lastName ); return sb.toString(); } COM: <s> evaluates contact name by first and last name </s>
funcom_train/23297745
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void listWriterFormats() { String[] writerFormats = ImageIO.getWriterFormatNames(); System.err.println("\nImageIO Writer Formats: "); for (int ix = 0; ix < writerFormats.length; ix++) { System.err.println(writerFormats[ix]); } } COM: <s> lists the available image io writer formats </s>
funcom_train/22203398
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addTemplateElement(TemplateElement c) { if (templateElements == null) { templateElements = new ArrayList(); } if(log.isDebugEnabled()){ log.debug("Added TemplateElement "+c+" to TemplateAction ["+this+"]"); } templateElements.add(c); } COM: <s> a template element is added to the list of templates that will </s>
funcom_train/34356005
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean canUpdate(Pipeline pipeline) throws DatabaseAccessException { return Vocabulary.ontology().STATUS_NOT_RUNNING_URI.equals(asSesameURI(pipeline.getStatus())) || Vocabulary.ontology().STATUS_EXECUTED_URI.equals(asSesameURI(pipeline.getStatus())) || Vocabulary.ontology().STATUS_EXECUTION_FAILED_URI.equals(asSesameURI(pipeline.getStatus())); } COM: <s> checks whether a pipeline is in a state that allows structural updates </s>
funcom_train/13313548
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void ignoreChanges() { for (Pair<Integer, String> property : changedProperties.keySet()) { String oldValue = configs[property.first].getStringPref(property.second); sync.configChanged(new ConfigChangeEvent(configs[property.first], property.second, oldValue)); } changedProperties.clear(); } COM: <s> rolls back changes that have not been committed into the underlying configuration modules </s>
funcom_train/46929877
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object put(Object key, Object value) { Assert.isNull(key, "Key cannot be null!"); String name = CompoundSyntaxMap.formalize(key.toString()); Object result = null; try { this.setUpLexer(name); result = this.store(value); } catch (Exception ex) { // ex.printStackTrace(); Ptrace.ptrace("warning: " + ex.getMessage()); result = null; } return result; } COM: <s> stores a variable into the context </s>
funcom_train/14115776
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public CommandParameters getCommandParameters(Object action) { GnuParser gnup = new GnuParser(); CommandLine cl; try { cl = gnup.parse(new Options(), getSplittedString(action)); } catch (ParseException ex) { throw new RuntimeException(ex); } return new CommandLineParameters(cl); } COM: <s> returns the command parameters </s>
funcom_train/44387560
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isSuperclass(JModellerClass possibleSubclass) { if (possibleSubclass.mySuperclasses.contains(this)) { return true; } Iterator i = possibleSubclass.getSuperclasses(); while (i.hasNext()) { Object currentObject = i.next(); if (isSuperclass((JModellerClass) currentObject)) { return true; } } return false; } COM: <s> checks whether this class is the superclass of the class to test </s>
funcom_train/32057900
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetInternalFrame() { System.out.println("testSetInternalFrame"); GPGraphpad pad = new GPGraphpad(); GPGraph graph = new GPGraph(); GraphUndoManager undo = new GraphUndoManager(); GPDocument newDoc = new GPDocument(pad, "test", null, graph, null, undo); try { newDoc.setInternalFrame(null); } catch (Exception e) { fail(); } } COM: <s> test of set internal frame method of class gpdocument </s>
funcom_train/9998897
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void readNextToken() throws WVToolException { if (input.hasMoreTokens()) { String token = input.nextToken(); if (token.length() > length) { for (int i = 0; i < token.length() - length + 1; i++) { String ngram = token.substring(i, i + length); currentTokens.add(ngram); } } if ((token.length() <= length) || (useOriginal)) { currentTokens.add(token); } } } COM: <s> read a token from the character stream and store it into current token </s>
funcom_train/36248339
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected FileFieldEditor newFileFieldEditor(String preferenceKey, String label, Composite parent) { FileFieldEditor fieldEditor = new FileFieldEditor(preferenceKey, label, parent); fieldEditor.setPage(this); fieldEditor.setPreferenceStore(this.getPreferenceStore()); fieldEditor.load(); fieldEditor.fillIntoGrid(parent, LAYOUT_COLUMN_WIDTH); return fieldEditor; } COM: <s> creates a new file field editor based on the specified parameters </s>
funcom_train/12175122
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void setMargins(Element divHr) { Styles styles = divHr.getStyles(); MutablePropertyValues propertyValues = styles.getPropertyValues(); // Handle margin-top and margin-bottom propertyValues.setComputedValue(StylePropertyDetails.MARGIN_BOTTOM, marginBottom); propertyValues.setComputedValue(StylePropertyDetails.MARGIN_TOP, marginTop); } COM: <s> append the margin default values if they have not already been set </s>
funcom_train/3418035
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object parseObject(String source) throws ParseException { ParsePosition pos = new ParsePosition(0); Object result = parseObject(source, pos); if (pos.index == 0) { throw new ParseException("Format.parseObject(String) failed", pos.errorIndex); } return result; } COM: <s> parses text from the beginning of the given string to produce an object </s>
funcom_train/8012403
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setAddImage(String imageUrl) { if (_btnAddListForm != null) _boxList.removeHeadingComponent(_btnAddListForm); HtmlSubmitImage i = new HtmlSubmitImage("btnAdd", imageUrl, getPage()); i.addSubmitListener(this); _boxList.addHeadingComponent(_btnAddListForm = i); } COM: <s> replaces default add button if any with an image button </s>
funcom_train/37450456
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Annotation createAnnotation( String reviewerName ) throws IntactException { IntactHelper helper = new IntactHelper(); Institution owner = helper.getInstitution(); CvTopic reviewer = (CvTopic) helper.getObjectByLabel( CvTopic.class, CvTopic.REVIEWER ); Annotation annotation = new Annotation( owner, reviewer, reviewerName ); helper.closeStore(); return annotation; } COM: <s> create an annotation object with cv topic reviewer and description reviewer name </s>
funcom_train/23284464
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setVolume(int vol) throws IOException, UPNPResponseException { ActionMessage message = messageFactory.getMessage("SetVolume"); message.setInputParameter("InstanceID", 0); message.setInputParameter("Channel", "Master"); // can also be LF or RF message.setInputParameter("DesiredVolume", vol); message.service(); } COM: <s> sets the volume to the given </s>
funcom_train/24121377
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void read(InputStream in) throws IOException { // Assume the size has already been read this.width = WMFConstants.readLittleEndianShort(in); this.height = WMFConstants.readLittleEndianShort(in); this.planes = WMFConstants.readLittleEndianShort(in); this.bitCount = WMFConstants.readLittleEndianShort(in); } COM: <s> reads the bitmap core header object from a stream </s>
funcom_train/13717474
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetBasicBlockIdsLength() { System.out.println("testGetBasicBlockIdsLength"); long[] bbids1 = {10,20,30}; bbai1.setBasicBlockIds(bbids1); Assert.assertEquals(3, bbai1.getBasicBlockIdsLength()); } COM: <s> test of get basic block ids length method of class be </s>
funcom_train/38514143
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JRadioButton getJrdoGradientElution() { if (jrdoGradientElution == null) { jrdoGradientElution = new JRadioButton(); jrdoGradientElution.setBounds(new Rectangle(8, 84, 233, 17)); jrdoGradientElution.setSelected(false); jrdoGradientElution.setText("Gradient elution mode"); jrdoGradientElution.setActionCommand("Gradient elution mode"); jrdoGradientElution.setRolloverEnabled(true); jrdoGradientElution.setBackground(Color.white); } return jrdoGradientElution; } COM: <s> this method initializes jrdo gradient elution </s>
funcom_train/16315885
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void optionsFontSelectionMenuItemActionPerformed() { FontSelectionDialog dlg = new FontSelectionDialog(Core.getMainWindow().getApplicationFrame(), Core.getMainWindow().getApplicationFont()); dlg.setVisible(true); if (dlg.getReturnStatus() == FontSelectionDialog.RET_OK_CHANGED) { mainWindow.setApplicationFont(dlg.getSelectedFont()); } } COM: <s> displays the font dialog to allow selecting the font for source target </s>
funcom_train/17006900
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean initTopicCommunication(String topicUUID) { try { // Subscribe Profile profile = clientService.createProfile( TemplateProfileAndSynopsisTypes.STRING, topicUUID); consumer.subscribeTo(profile); } catch (ServiceException e) { log.error("", e); return false; } return true; } COM: <s> publishes subscribes to the specified topic uuid </s>
funcom_train/7866787
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setStatus(String aState) { if (!iLog) { this.lblState.setText(aState); } else { this.txtState.append(this.getTimestamp() + aState + "\n"); this.txtState.setCaretPosition(txtState.getText().length() - 1); } } COM: <s> this method allows the caller to specify the status message </s>
funcom_train/25826907
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private MidiMessage getNoteOnMessage(int channel, int note, int velocity) { try { ShortMessage msg = new ShortMessage(); msg.setMessage(ShortMessage.NOTE_ON, channel, note, velocity); return (MidiMessage) msg; } catch (InvalidMidiDataException e) { e.printStackTrace(); } return null; } COM: <s> get a midi message </s>
funcom_train/42651293
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: // public void testFindDependencies() { // System.out.println("findDependencies"); // Widget widget = null; // UIBuilderServerImpl instance = null; // Collection expResult = null; // Collection result = instance.findDependencies(widget); // 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 find dependencies method of class uibuilder server impl </s>
funcom_train/44839027
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean matchURI(SecuredRequest request) { if (patterns.isEmpty()) { return true; } String uri = request.getContextlessURI(); //System.out.println("Matching URI for : '" + uri + "'"); LogFactory.getLog(URISecurityConstraint.class).trace("matching URI for : '" + uri + "'"); return matchURI(uri); } COM: <s> match the uri with the regex patterns </s>
funcom_train/17687164
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public UserFeed retrieveAllUsers() throws IOException { try { UserFeed userFeed = appClient.retrieveAllUsers(); return userFeed; } catch (AppsForYourDomainException e) { error = e.getErrorCode().toString(); return null; } catch (ServiceException e) { error = e.getMessage(); return null; } } COM: <s> retrieves all of the users in the domain </s>
funcom_train/28878198
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean removeAllPropertyChangeListenerOfProperty(String _p) { if (_p == null) return false; if (pr_.containsKey(_p)) { Vector _prop = (Vector) pr_.get(_p); if ((_prop != null) && (_prop.size() > 0)) { _prop.removeAllElements(); pr_.remove(_p); } else return false; } else return false; return true; } COM: <s> unregisters all the registered listeners for the specified property </s>
funcom_train/18550414
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ProjectTO getProjectByUser(UserTO uto, ProjectTO pto) throws BusinessException{ ProjectTO response = null; try { Vector<ProjectTO> v = dao.getProjectAllocation(uto, pto); if (v!=null && v.size()>0) { response = (ProjectTO)v.get(0); } } catch (DataAccessException e) { throw new BusinessException(e); } return response; } COM: <s> get a project object from data base based on user id </s>
funcom_train/5233547
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public CmdLineHandler getCommandLineHandler() { if(commandLineHandler == null){ commandLineHandler = new VersionCmdLineHandler(ConsoleServicesFacade.CREATOR,new HelpCmdLineHandler(getHelpMessage()+getHelpExamples(),ConsoleServicesFacade.getLicense(),"",COMMAND,getCommandDescription(),getOptions(),getArguments())); commandLineHandler.setDieOnParseError(false); } return commandLineHandler; } COM: <s> override parent method </s>
funcom_train/50076444
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void updateIndex(){ int index = getIndex(); int ifaceIndex; Iterator iter=interfaces.iterator(); SofaaInterface sofIface; while(iter.hasNext()){ sofIface = (SofaaInterface)iter.next(); ifaceIndex = sofIface.getIndex(); if(ifaceIndex>index){ ifaceIndex=index; }else{ ifaceIndex=index-1; } sofIface.setIndex(ifaceIndex); } } COM: <s> computes the index of this component in the worktab </s>
funcom_train/6003
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void writeRow(String[] data) throws IOException { int colCounter = 0; for (int index : selectedColumns){// for all indexes of selectedColumns try { // write values to sheet as text label sheet.addCell(new Label(colCounter,activeRow,data[index])); colCounter++; //increase column number } catch (WriteException e) { throw new IOException(e); } } } COM: <s> writes one row of values to the specified sheet in workbook </s>