__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/34982747
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setPrice(Long newVal) { if ((newVal != null && this.price != null && (newVal.compareTo(this.price) == 0)) || (newVal == null && this.price == null && price_is_initialized)) { return; } this.price = newVal; price_is_modified = true; pr...
funcom_train/35842561
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void updateOperations() { if (!isOperationsVisible()) { return; } operationsFig.populate(); Rectangle rect = getBounds(); // ouch ugly but that's for a next refactoring // TODO: make setBounds, calcBounds and updateBounds consistent ...
funcom_train/46691060
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addPositivePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_TestModel_positive_feature"), getString("_UI_PropertyDescripto...
funcom_train/37248324
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void handleParameter(String str) { long customValue = 0; try { customValue = Long.parseLong(str); log("Setting up timed cache with interval "+customValue+" seconds "); } catch(Exception e) { log("No normal number was given as parameter to timedrule '"+str+"', falling back to no cacheing")...
funcom_train/50847082
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetCharacterStream() throws Exception { testGetXXX("getCharacterStream"); ResultSet rs = this.newFOROJdbcResultSet(); rs.next(); rs.close(); try { rs.getCharacterStream(1); fail("Allowed getCharacterStream after close()"); ...
funcom_train/32748664
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public List getMPSEventsSince( final Date time ) { synchronized ( _mpsEventBuffer ) { final int count = _mpsEventBuffer.size(); int index; for ( index = 0; index < count; index++ ) { final MPSEvent event = (MPSEvent)_mpsEventBuffer.get( index ); if ( !event.getTimestamp().after( time ) ) { ...
funcom_train/18037114
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Iterator getAncestorOrSelfAxisIterator(Object contextNode) { if (debugging) { log.info("[DocumentNavigator] ancestor or self axis"); } // if (!((StAXNode) contextNode).getXMLEvent().isStartElement()) { // return EMPTY_ITERATOR; // } return ((...
funcom_train/7623753
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int setSinkPriority(String address, int priority) { if (DBG) log("setSinkPriority(" + address + ", " + priority + ")"); try { return mService.setSinkPriority(address, priority); } catch (RemoteException e) { Log.w(TAG, "", e); return Bluetooth...
funcom_train/43384972
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void execute() { if (shiftFile == null || shiftFile.equals("")) { throw new BuildException(MessageUtils.get("no.shift.file")); } if (testsFile == null || testsFile.equals("")) { throw new BuildException(MessageUtils.get("no.tests.file")); } ...
funcom_train/32056410
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void actionPerformed(ActionEvent e) { Object[] cells = getCurrentGraph().getSelectionCells(); if (cells != null) { cells = DefaultGraphModel .getDescendants(getCurrentGraph().getModel(), cells) .toArray(); getCurrentGraph().getModel().remove(cells); ...
funcom_train/18344863
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void saveAsBMP(File bmpFile) throws FileNotFoundException, IOException { BufferedOutputStream os = new BufferedOutputStream(new FileOutputStream(bmpFile)); BMPWriter writer = new BMPWriter(); writer.write(os, srcImg, srcImg.getWidth(mainWindow), srcImg.getHeight(mainWindow)); os.close(); } COM:...
funcom_train/41163947
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void delete(CoSingleText3 entity) { EntityManagerHelper.log("deleting CoSingleText3 instance", Level.INFO, null); try { entity = getEntityManager().getReference(CoSingleText3.class, entity.getSingleTextId()); getEntityManager().remove(entity); EntityManagerHelper.log("delete successful", Leve...
funcom_train/18894703
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Id3Tag getId3Tag(URIReference version) throws QueryException { checkInitialized(); //lazily generate Id3 tag try { if ((id3 == null) || !(id3.getVersion().equals(version))) { id3 = generateId3Tag(version); } return id3; } catch (Exception exception)...
funcom_train/49111161
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isBranchR_LT_X() { for (int i = 0; i < getBranchFormList().size(); i++) { GBranchForm form = (GBranchForm) getBranchFormList().get(i); if (form.isR_LT_X()) { IpssLogger.getLogger().info( "Branch R > X, id " + form.getFromId() + Constants.Token_BranchIdConnectStr +...
funcom_train/4466997
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testAddWidget() { DojoContentPaneModule module = new DojoContentPaneModule(); module.onModuleLoad(); DojoContentPane pane = module.getPane(); int count = pane.getWidgetCount(); Label label = new Label("test"); pane.add(label); assertTrue(count < pane.getWidgetCount()); assertSame(pane...
funcom_train/7607216
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected float computeArea() { this.area = 0; Vector2f v1, v2; for ( int i = 0; i < vertices.length; i++ ) { v1 = vertices[i]; v2 = vertices[(i+1) % vertices.length]; this.area += v1.x * v2.y; this.area -= v2.x * v1.y; } return Math.abs(this.area / 2f); } COM: <s> computes t...
funcom_train/43245159
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetNOKTwoCity() { System.out.println("getNOKTwoCity"); EmergencyContactDG2Object instance = new EmergencyContactDG2Object(); String expResult = ""; String result = instance.getNOKTwoCity(); assertEquals(expResult, result); ...
funcom_train/15566091
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { if ("RTSystemPort".equals(portName)) { setRTSystemPortEndpointAddress(address); } else { // Unknown Port Name throw new javax.xml.rpc.Se...
funcom_train/27702005
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateAsciiStream(String columnName, java.io.InputStream x, int length) throws SQLException { System.out.println("ResultSetAdapter.updateAsciiStream(String columnName, java.io.InputStream x, int length)"); if(dbResultSet != null) dbResultSet.updateAsciiStream(columnName, x, length); ...
funcom_train/5342240
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeSelection() { int[] sel = TABLE.getSelectedRows(); Arrays.sort(sel); for (int counter = sel.length - 1; counter >= 0; counter--) { int i = sel[counter]; DATA_MODEL.remove(i); } clearSelection(); } COM: <s> removes all selec...
funcom_train/12561112
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int lGetSelectedFlags(boolean[] selectedArray_return) { int countSelected = 0; for (int i = 0; i < cg.numOfEls; i++) { selectedArray_return[i] = cg.cgElements[i].selected; if (selectedArray_return[i]) { countSelected++; } } ...
funcom_train/21105500
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private MJButton getBtShowSummary() { if (btShowSummary == null) { btShowSummary = new MJButton(); btShowSummary.setText("Show !"); btShowSummary.setMinimumSize(new java.awt.Dimension(152, 20)); btShowSummary.setPreferredSize(new java.awt.Dimension(152, 20)); } return btShowS...
funcom_train/5380587
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Shell getParentShell() { Shell parent = parentShell.getShell(); int modal = SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL | SWT.PRIMARY_MODAL; if ((getShellStyle() & modal) != 0) { // If this is a modal shell with no parent, pick a shell using defaultMod...
funcom_train/43647135
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void showFAQ() { final HtmlPane faqHtmlDialog = new HtmlPane(ZTerm.class .getResource("docs/faq.html")); //$NON-NLS-1$ final JDialog dialog = faqHtmlDialog.createDialog(view, InternationalMessages .getString("ZTerm.Title_FAQ")); //$NON-NLS-1$ dialog.setSize(640, 400); dialog.setVisible(tr...
funcom_train/22233112
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getDepth() { if (isLiveOrCompiled()) if(!this.getCapability(ImageComponent.ALLOW_SIZE_READ)) throw new CapabilityNotSetException(J3dI18N.getString("ImageComponent3D0")); return ((ImageComponent3DRetained)this.retained).getDepth(); } COM: <s> retrieves ...
funcom_train/32779945
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Row openRow() { if (currentRow != null) { throw new RuntimeException( "There is already an open row. Please close it before opening a new one."); } return currentRow = new Row(new RowCloseCallback() { public FlexReporterBuilder onRowClosed() { if (currentRow == null) { throw new...
funcom_train/1008317
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void trackScreenSurface(SurfaceData sd) { if (!done && sd instanceof D3DWindowSurfaceData) { synchronized (this) { if (d3dwSurfaces == null) { d3dwSurfaces = new ArrayList<D3DWindowSurfaceData>(); } D3DWindowSurfac...
funcom_train/7627622
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int addStaticItem(ListView listView, int textResId) { TextView textView = (TextView) getLayoutInflater().inflate( com.android.internal.R.layout.select_dialog_singlechoice, listView, false); textView.setText(textResId); listView.addHeaderView(textView); m...
funcom_train/13511196
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeRow(Row row){ if (row != null){ int index = this.getRows().indexOf(row); this.getRows().remove(row); ((TableViewModel) this.getModel()).fireTableRowsDeleted(index,index); } } COM: <s> remove one row </s>
funcom_train/14070732
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSaveRoom() { room1.setLocation("foo"); try { logger.info(room1.toString()); dao.saveRoom(room1); RoomVO r2 = dao.getRoom(ROOM1); logger.info(r2.toString()); assertEquals("Not updated",room1,r2); } catch...
funcom_train/22489707
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object clone () { final EOrderedMap result = new EOrderedMap(); result._values = (Vector) _values.clone(); result._keys = new Hashtable(); final Enumeration keyEnum = _keys.keys(); while (keyEnum.hasMoreElements()) { Object nextKey = keyEnum.nextElement(); Object nextIndex = ((Index) _keys...
funcom_train/3612891
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean hasNextLine() throws IOException { if (this.afterEnd) { return false; } if (this.nextLine != null) { return true; } this.nextLine = this.reader.readLine(); if (this.nextLine != null) { return true; } ...
funcom_train/3830001
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public GM_Object removeObject( GM_Object gmo ) { if ( gmo == null ) { return null; } int i = aggregate.indexOf( gmo ); GM_Object gmo_ = null; try { gmo_ = removeObjectAt( i ); } catch ( GM_Exception e ) { Debug.debugExcepti...
funcom_train/34110337
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: // public void decrementHiddenIndexValues(int fromValue) { // for (int i=0; i<dataTable.getRowCount(); i++) { // if (Integer.parseInt(dataTable.getText(i,7))>fromValue) { // dataTable.setText(i, 7, ""+ (Integer.parseInt(dataTable.getText(i,7))-1) ); // } // } // } COM: <s> decrement index values from a ...
funcom_train/20264488
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public V put(E key, V value) { V oldValue = get(key); Integer index = elemToIndex.get(key); if(index==null) { throw new IllegalArgumentException("Element is not in the universe!"); } array[index] = value; r...
funcom_train/4922898
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testLoadNoProperties() { final PropertyConfigurable target = this .createMock(PropertyConfigurable.class); // Test this.replayMockObjects(); // Null for no configuration SourceHttpResourceFactory .loadProperties(null, null, null, null, target); // Empty values for no configura...
funcom_train/44598092
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public BodyDeclaration parseInitializerDeclaration(int start, ModifierSet ms) { Block block = parseMethodBody(); if (block == null) return null; Initializer init = ast.newInitializer(); init.setBody(block); checks.checkModifiers(init.modifiers(),ms,Context.COMPUNIT,Construct.INITBLOCK); ...
funcom_train/3152321
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Map getInitParameterMap() { synchronized (initParameterMapSync) { if (initParameterMap==null) { initParameterMap=new EnumerationMap(servletContext.getInitParameterNames(), new KeyResolver() { publi...
funcom_train/20798105
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void cancelItem(final Object source) { /* * Speakable item = null; synchronized (queue) { int index = * queue.indexOf(source); if (index == 0) { cancelItem(); } else { item = * (Speakable) queue.remove(index); if (item != null) { // * item.postSpeakableCan...
funcom_train/13582198
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void makeVis(){ File driversLog = new File("./drivers.txt"); File visDir = new File("./output/vis"); File eventsFile = new File("./output/vis/events.txt"); if (driversLog.exists()){ visDir.mkdir(); driversLog.renameTo(eventsFile); Events2Snapshot events2Snapshot = new org.matsim.run...
funcom_train/48705755
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public IMD5Node loadMesh(String meshName) { //create a importer for md5 files importer = new MD5Importer(); try { //return null, if the File not found URL meshURL = MD5Importer.class.getClassLoader().getResource("capr/model/data/mesh/" + meshName); //load the Mesh mesh = importer.load...
funcom_train/22102881
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void scheduleEscalation(final EscalationState state) { final long schedTime = state.getNextActionTime(); HQApp.getInstance().addTransactionListener(new TransactionListener() { public void afterCommit(boolean success) { _log.debug("Transaction committ...
funcom_train/24652859
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public CILogonConfiguration createRoot(Resource subject) throws OperatorException { org.cilogon.rdf.CILogonConfiguration root = new org.cilogon.rdf.CILogonConfiguration(getMyThingSession(), subject); root.addType(ROOT_TYPE); root.setLabel("default"); return root; } COM: <s...
funcom_train/22087292
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String decompileFunction(Function fun, int indent) { if (fun instanceof BaseFunction) return ((BaseFunction)fun).decompile(this, indent, false); else return "function " + fun.getClassName() + "() {\n\t[native code]\n}\n"; } COM: <s> decomp...
funcom_train/39408251
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private SearchCustomerToolbar getJPanelCustomerSearch() { if (jPanelCustomerSearch == null) { jPanelCustomerSearch = new SearchCustomerToolbar(true, true, false, false, false, true, false, false, false); jPanelCustomerSearch.setPanel(this.parent); jPanelCustomerSearch.setAlt(this.alt); } retur...
funcom_train/50345724
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void notifyConsistThrottleFound(DccThrottle t) { this.consistThrottle = t; for (int i = 0; i < listeners.size(); i++) { AddressListener l = listeners.get(i); if (log.isDebugEnabled()) log.debug("Notify address...
funcom_train/20044144
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void _refresh(){ xCellForChange.setValue(5); double oldData = xCellForCheck.getValue(); oObj.refresh(); double newData = xCellForCheck.getValue(); log.println("Old data:" + oldData + "; new data:" + newData); tRes.tested("refresh()", oldData != newData);...
funcom_train/41436101
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void clean() { for (ClassPath classPath : classPaths) { classPool.removeClassPath(classPath); } for (String classMade : classesMade) { try { classPool.get(classMade).detach(); } catch (NotFoundException e) { if (logger.isDebugEnabled()) { logger.debug("Failed to detach class ...
funcom_train/48151668
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void reset() { super.reset(); urn.showBalls(0); orderRV.reset(); orderTable.reset(); String recordText = ""; for (int i = 1; i <= sampleSize; i++) recordText = recordText + "\tX(" + i + ")"; getRecordTable().append(recordText); ...
funcom_train/7518244
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void delete(Gasto entity) { EntityManagerHelper.log("deleting Gasto instance", Level.INFO, null); try { entity = getEntityManager().getReference(Gasto.class, entity.getId()); getEntityManager().remove(entity); EntityManagerHelper.log("delete successful", Level.INFO, null); } catch (Run...
funcom_train/2583808
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testEquals2() { IntervalCategoryToolTipGenerator g1 = new IntervalCategoryToolTipGenerator(); StandardCategoryToolTipGenerator g2 = new StandardCategoryToolTipGenerator( IntervalCategoryToolTipGenerator.DEFAULT_TOOL_TIP_FORMAT_STRING,...
funcom_train/16336010
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addMovieFrame() { if (movieMaker == null) { SimUtilities.showMessage("Unable to create frame - use setMovieFileName first"); return; } BufferedImage bufImage = plot.getGraphicsConfiguration().createCompatibleImage(plot.getWidth(), plot.getHeight()); Graphics g = bufImage.getGraphics();...
funcom_train/20803898
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void insertPlainParagraph (XText text, XTextCursor textCursor, String extraText, boolean appendNewParagraph) throws Exception { XPropertySet propertySet = As.XPropertySet (textCursor); textCursor.collapseToEnd(); propertySet.setPropertyValue ("NumberingRules", Any.VOID); textCursor.setString ("T...
funcom_train/19622429
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void reset() { this.life = Constants.PLAYER_DEFAULT_LIVES; this.bombAmount = Constants.PLAYER_DEFAULT_MAX_BOMBS; this.bombRadius = Constants.PLAYER_DEFAULT_BOMB_RADIUS; this.settedBombs = 0; this.myCoord = new ImmutableCell(0, 0); } COM: <s> resets ...
funcom_train/26464711
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void drawHBar(Graphics graphics) throws GUIException { Rectangle dim = getHorizontalBarDimension(); graphics.pushClipArea(dim); int alpha = getBaseColor().a; Color trackColor = getBaseColor().subtract(0x101010); trackColor.a = alpha; Color shadowColor = getBaseColor().subtract(0x303030); ...
funcom_train/10345485
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void verify(X509Certificate cert) throws GeneralSecurityException { if (cert == null) { throw new NullPointerException("Certificate"); } /* * The invariant is that valid certificates enter the loop. The validity * of issuer certs is checked within the loop. */ cert.checkValidity(); if ...
funcom_train/11721077
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean isVersionControlled(DavResource resource) { boolean vc = false; if (resource instanceof VersionControlledResource) { try { vc = ((VersionControlledResource)resource).getVersionHistory() != null; } catch (DavException e) { ...
funcom_train/34594220
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public CommentType insertNewComment(ApplicationType application, CommentType comment) { CommentsType comments = (application.isSetComments() == true) ? application.getComments() : application.addNewComments(); CommentType newComment = comments.addNewComment(); newComment.set(comment);...
funcom_train/3098363
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void scanFunctionQuote() { Integer i; if ( verbosity > 5 ) System.out.println("#'"); if ( (parenLevel > 0) && (parenLevel != readStack.sp) ) readStack.push(consMarkerSymbol); readStack.push(consMarkerSymbol); quoteStack.push(new Intege...
funcom_train/42302548
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean iconDuplicate(String iconNumber, Game g) { boolean b = false; List<PlayerId> l = g.getListOfPlayers(); if (!l.isEmpty()) { Iterator<PlayerId> ite = l.iterator(); while (ite.hasNext() && !b) { PlayerId p = ite.next(); if ((p.getIconNumber()).equals(iconNumber)) { b = true;...
funcom_train/20898649
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setName( String value) throws DBFException { if( value == null) { throw new DBFException( "Field name cannot be null"); } if( value.length() == 0 || value.length() > 10) { throw new DBFException( "Field name should be of length 0-10. Wrong value '"+value+"'"); } this.fieldName = ...
funcom_train/5522880
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void printNode(Node node) { printNode(node, ""); try { output.write("\n\n"); } catch (Exception badPrint) { System.err.println("Error in printNodes: " + badPrint.getMessage() + "\n"); badPrint.printStackTrace(); } } COM: <s> conv...
funcom_train/43894425
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void endAttribute() { int index = attName.lastIndexOf('/'); if (index > -1) { //_log.debug("removing " + attName.substring(index+1)); attName = attName.substring(0, index); } else { attName = ""; } //_log.debug("attName now ...
funcom_train/50640481
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(MetaModelElement.class)) { case UmpPackage.META_MODEL_ELEMENT__TYPE: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false,...
funcom_train/17932937
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JTextField getPapPbhtjTextField() { if (papPbhtjTextField == null) { papPbhtjTextField = new JTextField(); papPbhtjTextField .setHorizontalAlignment(javax.swing.JTextField.RIGHT); // papPbhtjTextField.setPreferredSize(new java.awt.Dimension(100, // 20)); papPbhtjTextField.setText("1...
funcom_train/4745660
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void run() { Logger.getAnonymousLogger().info( "Bundling thread started for AMI at " + dnsName); RemoteControl c = new RemoteControl(); result = c.bundleImage(dnsName, privateKey, credentials, bucket, imageName, use64Bit, doNotify, messageTopic, messageText, messageInfo, privateKeyFil...
funcom_train/42958320
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void actionPerformed(ActionEvent e) { if ("ok".equals(e.getActionCommand())) { Contact contact = new Contact(nameField.getText(), "", "", true); messenger.addFriend(contact); } else if ("cancel".equals(e.getActionCommand())) { } } COM: <s> create the gui and show it </s>
funcom_train/28983158
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public TextField getSettingsSMTPPassword () { if (settingsSMTPPassword == null) {//GEN-END:|84-getter|0|84-preInit // write pre-init user code here settingsSMTPPassword = new TextField ("Password*:", null, 64, TextField.ANY | TextField.PASSWORD);//GEN-LINE:|84-getter|1|84-postInit // write post-init user code h...
funcom_train/27747927
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean getResizable () { checkWidget(); int index = parent.indexOf (this); if (index == -1) return false; int chandle=OS.GTK_CLIST_COLUMN (parent.handle); GtkCListColumn gtkcolumn = new GtkCListColumn (); OS.memmove(gtkcolumn, chandle+index*GtkCListColumn.sizeof, GtkCListColumn.sizeof); return (gtk...
funcom_train/40740029
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void put(Object key, Object value) { dirty = true; Member member = ((PartitionedService)cache.getCacheService()).getKeyOwner(key); UID id = member.getUid(); Map<Object, Object> buf = nodeBuffer.get(id); if (buf == null) { buf = new HashMap<Object, Object>(); nodeBuffer.put(id, buf); } ...
funcom_train/7518242
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void save(Gasto entity) { EntityManagerHelper.log("saving Gasto instance", Level.INFO, null); try { getEntityManager().persist(entity); EntityManagerHelper.log("save successful", Level.INFO, null); } catch (RuntimeException re) { EntityManagerHelper.log("save failed", Level.SEVERE, re); ...
funcom_train/18938008
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Token readParantizer( char theChar, CharReader reader ) { Map<String,Integer> table = CodesTable.getInstance().getParenthetics(); String toTest = "" + theChar; if ( table.containsKey( toTest ) ) { int code = table.get( toTest ).intValue(); this.setCode( code ); this.setLine( reader.getAc...
funcom_train/31934735
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeZoneListener(PoolZoneConnection poolConnection, String objectName, ZoneListener listener) { Properties environment= (Properties)_info.get(poolConnection.getZoneService()); Map listenersByClass= (Map)_listenersByEnvironment.get(environment); EventListenerList listeners= (EventListener...
funcom_train/37075772
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getProperty(String name, int oldOrNew) { Hashtable properties; if (oldOrNew == OLD) properties = oldProperties; else properties = newProperties; if ((properties == null) || (properties.get(name) == null)) { return ""; } else { Vector values = (Vector) p...
funcom_train/50149482
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void clearPersistantDevice(TilesRequestContext tilesContext) { // notify every persistent object of the best choice Iterator allPersistent = getPersistentFactories().iterator(); PersistentDeviceFactory currentPersistentDevice; while (allPersistent.hasNext()) { ...
funcom_train/28992381
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Hashtable getParmsAsHashtable() { Hashtable parms = new Hashtable(); Enumeration keys = parameterKeys(); String k; String[] v; while (keys.hasMoreElements()) { k = (String) keys.nextElement(); v = getParameterValues(k); if (v...
funcom_train/42876452
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void connect() throws IOException { Debug.println("enter connect"); if (id == null) { throw new IllegalStateException("id is not specified"); } Debug.println("id: " + id + ", connection: " + this.hashCode()); node.connectTo(ID.getID(id.getBytes())); Debug.println("ex...
funcom_train/50464090
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void desktopUninstalled() { isInstalled_flag = false; //Remove DND Support removeDNDSupport(); //Hide All Managed Components Iterator _objs = compCollection.getObjectMap().values().iterator(); while(_objs.hasNext()) { Object _obj = _objs.next();...
funcom_train/51813425
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public JobRequest nextJob(int ms) throws InterruptedException { if ( log.isDebugEnabled() ) log.debug( "ms="+ms ); JobRequest ret = (JobRequest) getMediator().getNewJobsQueue().pull( ms ); if ( ret != null ) getMediator().getStats().nextJob( re...
funcom_train/5399648
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void test004Bad() { form = getForm("form_complex_string_001"); values.put("field_001", "000"); values.put("field_002", "00"); values.put("field_003", "0000"); if (validateForm(values)) { fail(MSG_001); } printValues(); } COM: <s> field 001 field 002 field 003 do no...
funcom_train/5725593
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateUniversityIndexOnStatusChange(Long universityId, boolean status) { logger.debug("Starting method updateUniversityIndexOnStatusChange"); try { university = universityDao.load(universityId); if (university.isEnabled()) { logger.debug("method updateUniversityIndexOnStatusChange: upda...
funcom_train/3881846
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getAtomicBaseTypeName() { String typeName = null; XSDTypeDefinition xmlType = getXMLType(); if (xmlType != null) { typeName = xmlType.getRootType().getName(); return (typeName == null) ? xmlType.getName() : typeName; } return "Unkn...
funcom_train/32329014
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void install(final OperationGUI opGUI) { final Collection<? extends Operation<?, ?>> operations; if (gui == null) { operations = new ArrayList<Operation<?, ?>>(); } else { operations = gui.uninstall(); } gui = opGUI; gui.install(op...
funcom_train/42570872
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addTemplatePropertyDescriptor(Object object) { itemPropertyDescriptors.add(createItemPropertyDescriptor( ((ComposeableAdapterFactory) adapterFactory) .getRootAdapterFactory(), getResourceLocator(), getString("_UI_NodeDesc_template_feature"), getString( "_UI_PropertyDescriptor...
funcom_train/29772218
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean dateTest(int days) { Date currentDate = new Date(); double millisPerDay = 1000 * 60 * 60 * 24; int passedDays = (int)((currentDate.getTime() - lastTestDateTime.getTime()) / millisPerDay); return ((passedDays < days) && (lastAnswer == true)); } COM: <s> ret...
funcom_train/19055063
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JSplitPane getM_splitPane2() { if (m_splitPane2 == null) { m_splitPane2 = new JSplitPane(); m_splitPane2.setResizeWeight(1.0D); m_splitPane2.setOneTouchExpandable(true); m_splitPane2.setDividerSize(8); m_splitPane2.setDividerLocation(1000); m_splitPane2.setRightComponent(getM_tabbedPa...
funcom_train/8250165
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void registerJarFiles(File pluginExtractionPath, JarFolders jarFolders) throws RegistrationException { if(jarFolders == null || jarFolders.getJarFolder() == null) { return; } for(JarFolder jarFolder : jarFolders.getJarFolder()) { List<File> files = FileUtils.traverseTree(new File(pluginExt...
funcom_train/33232293
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: // public Connection getQueueConnection(String url) throws SLQueueException { // Connection connection = null; // try { // setActiveMQConnectionFactory(new ActiveMQConnectionFactory(url)); // connection = getActiveMQConnectionFactory().createConnection(); // return (connection); // } // ...
funcom_train/20826796
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Fixtures shuffled() { List<Fixture> list = new ArrayList<Fixture>(); for (int i=0; i < size(); i++) { list.add(get(i)); } Collections.shuffle(list, new Random(1)); Fixtures shuffled = new Fixtures(getDirty()); for (Fixture fixture : list) { ...
funcom_train/23299972
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isEqualOrMoreSpecific(AuthorizationSubject asHigher){ if ( ((this.authUser == asHigher.authUser) || (this.authUser.isDescendent(asHigher.authUser))) && this.isEqualOrMoreSpecificIP(asHigher) && this.isEqualOrMoreSpecificSN(asHigher)) { return true; } else { ...
funcom_train/39358974
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel toChangePanel(){ //we create the panel we are going to return JPanel result = new JPanel(); //we set the layout of the panel result.setLayout(new BoxLayout(result, BoxLayout.X_AXIS)); result.add(wordToChangeLabel); //we add some glue result.add(Box.createRigidArea(new ...
funcom_train/20765558
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: synchronized public void getCameraFrame(int[] imgData, int waitTimeout) throws HardwareInterfaceException { if (!cameraStarted || !CLEyeCameraGetFrame(cameraInstance, imgData, waitTimeout)) { try { // Added to give external thread time to catch up as cannot synchronize dire...
funcom_train/27948171
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addContentListener2(Content c, ContentListener l) { Collection coll = (Collection) contentToCollectionOfContentListeners.get(c); if (coll == null) { coll = new LinkedList(); getDB().contentToCollectionOfContentListeners.put(c, coll); } coll.a...
funcom_train/13952858
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void levelChangedUpdated() { // There is no form, so we must do this manually String levelString = (String) context().request().formValueForKey("level"); int levelIndex = Integer.parseInt(levelString); // If this component was not synchronzing, we would need to change the // value in grid.row()...
funcom_train/20678320
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void closeAllDBConnections(HttpServletRequest request) { ArrayList queryTagList = (ArrayList) request .getAttribute(REQUEST_PARAM_QUERIES); if (queryTagList != null) { Iterator it = queryTagList.iterator(); while (it.hasNext()) { SmithQuery query = ((QueryTagImpl) it.next()).getQuery(); ...
funcom_train/36075535
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean delete(Sessions session) { Connection con = null; try { PreparedStatement ptmt = null; con = DBUtil.getConnection(); ptmt = con.prepareStatement(deleteSessions); ptmt.setString(1, session.getId()); ptmt.executeUpdate(...
funcom_train/4116348
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void reverse() { int[] newBits = new int[bits.length]; int size = this.size; for (int i = 0; i < size; i++) { if (get(size - i - 1)) { newBits[i >> 5] |= 1 << (i & 0x1F); } } bits = newBits; } COM: <s> reverses all bits in the array </s>
funcom_train/41332177
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private MouseListener createMouseListener() { return new MouseAdapter() { @Override public void mousePressed(MouseEvent e) { Point clickPoint = new Point(e.getPoint()); SwingUtilities.convertPointToScreen(clickPoint, fComponent); ...
funcom_train/44152365
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setProbabilityOfSuccess(double p) { if (Double.isNaN(p) || p <= 0.0 || p >= 1.0) { throw new IllegalArgumentException("probability of success must" + "be between 0.0 and 1.0, exclusive."); } this.probabilityOfSuccess = p; } COM: <s> modify ...
funcom_train/14272959
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected PADP_Packet parsePADPacket(GenericPacket data) { if(debugMode) out.println("[PADP] - Parsing incoming PAD Packet."); PADP_Packet pkt = PADP_Packet.bytes2Packet(data.data); pkt.sourceSocket = data.source; pkt.destinationSocket = data.destination; pkt.transactionID = data.transactionID; ...