__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/21634582
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void createChart() { JFreeChart chart = ChartFactory.createXYLineChart(null, "Result", "Increment", null, PlotOrientation.VERTICAL, true, true, false); ChartPanel chartPanel = new ChartPanel(chart); chartPanel.setPreferredSize(new java.awt.Dimension(600, 360)); chartPanel.setDomainZoomable(t...
funcom_train/48631218
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void makeAlarm() { logger.trace("In makeAlarm."); String tone = properties.getAudioAlert(); logger.debug("Tone: " + tone); if (tone != null && !tone.equalsIgnoreCase("silent") && tone.length() > 0) { Uri ringUri = Uri.parse(tone); Ringtone ring = RingtoneManager.getRingtone(mCtx, ringUr...
funcom_train/5461988
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void crawlDtStartProperty(Property property, Resource parentNode, RDFContainer rdfContainer) { Node propertyValue = getRdfPropertyValue(rdfContainer, property, IcalDataType.NCAL_DATE_TIME); addStatement(rdfContainer, parentNode, NCAL.dtstart, propertyValue); } COM: <s> crawls the d...
funcom_train/1237717
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int fromDegree(Object from, boolean excludeSameVertexEdges) { if (!excludeSameVertexEdges) return degree(from); int count = 0; Object[] vertices = verticesToNeighbors.keySet().toArray(); for (int i=0; i<vertices.length; i++) if (hasEdge(from, vertices[i]) && !vertices[i].equals(from)) ...
funcom_train/2600982
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void configureImpl(final GENE4JJUnitSession jUnitSession) { if(Boolean.FALSE == isConfigured) { final Properties properties = new Properties(); properties.setProperty("log4j.threshold", "debug"); properties.setProperty("log4j.rootLogger", "debug,console,html"); configureConsoleAppender(jU...
funcom_train/3619281
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addCreationTsPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Bug_creationTs_feature"), getString("_UI_PropertyDescriptor_...
funcom_train/37862113
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean hasPreloadedData() { // TODO : log elsewhere ? if (preloadedData) { context.getProfiler().message(this, Profiler.OPTIMIZATIONS, null, "Preloaded NodeSets"); return true; } // if (inUpdate) // return false; // if ((parentDeps & Dependency.LOCAL_VARS) == Dependency.LOCAL_VARS...
funcom_train/43526277
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addCompilationUnitPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Interface_compilationUnit_feature"), getString("_UI_Pro...
funcom_train/7754001
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String details () { StringBuffer sb = new StringBuffer (); sb.append ("Spectrum Name : " ); sb.append ( specName ); sb.append ("\nSpectrum Dimension : " ); sb.append ( specDimension ); sb.append ("\nListed modification date : " ); sb.append ( (new SimpleDateFormat()).format ...
funcom_train/24516139
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void displayTable(){ for(int l=0;l<hashArray.size();l++){ for(int i = 0;i<hashArray.get(l).size();i++){ System.out.println(l+". list: " +((ChecksumPair) (hashArray.get(l).get(i))).toString()); } } } COM: <s> simple me...
funcom_train/2951570
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void paintBaseLine(Graphics g, String s, int x, int y) { FontMetrics fm = g.getFontMetrics(); int width = g.stringWidth(s); int lineWidth = fm.getAscent()/12; g.setLineStyle(Graphics.LINE_SOLID); g.setLineWidth(lineWidth); g.drawLine(x, y, x+width, y);...
funcom_train/23867173
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void readMoonByCriteria() { final MoonSearchCriteria searchCriteria = new MoonSearchCriteria(); searchCriteria.setName(MOON_NAME); searchCriteria.setPosition(MOON_POSITION); final List<Moon> moons = EntityDataAccess.findByCriteria(Moon.class, searchCriteria); a...
funcom_train/50336318
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void resetFrame() { sysName.setText("IAB"+counter++); userName.setText(null); url.setText(null); // format.setText(null); stream.setSelected(false); stream.setEnabled(false); //(true); loopStart.setValue(Long.valueOf(0)); loopEnd.setValue(L...
funcom_train/46436562
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String createBackupFilename() { Date currentDate = new Date(System.currentTimeMillis()); StringBuffer fileNameBuffer = new StringBuffer(BACKUP_FILE_PREFIX); fileNameBuffer.append(BACKUP_DATEFORMAT.format(currentDate)); fileNameBuffer.append(BACKUP_FILE_EXTENSION); return f...
funcom_train/17493521
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getWord() throws IOException, BadSyntaxException { stok.nextToken(); if (stok.ttype == StreamTokenizer.TT_WORD) { return (stok.sval); } else throw (new BadSyntaxException( "Word expected but found something different instead. " ...
funcom_train/39395227
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void mniReportBlockDetailed() { LauncherView.getInstance().showBusy(new Runnable() { public void run() { try { LauncherView.getInstance().addReport(ReportTco.createBlockDetailedTco((TcoObject)getSelectedNode(), ModelUtility.getUsageDuration())); } catch (Throwable e) { handleExcept...
funcom_train/9860445
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public StringBuilder format() { final StringBuilder buf = new StringBuilder(30); buf.append('['); for (int i = 0; i < aAttributes.length; i++) { if (i > 0) { buf.append(", "); } buf.append(aAttributes[i].format()); } buf.append("]"); return buf; } COM: <s> a ...
funcom_train/8012655
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isUpdateable(int col) throws DataStoreException { if (col < 0 || _desc.getColumnCount() == 0) throw new DataStoreException("Specified column (" + col + ") does not exist."); DSColumnDescriptor c = _desc.getColumn(col); return c.isUpdateable(); } COM: <s...
funcom_train/5395368
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetElement() { System.out.println("getElement"); String pName = ""; TableManager instance = new TableManager(); TableElement expResult = null; TableElement result = instance.getElement(pName); assertEquals(expResult, result); ...
funcom_train/50757209
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void run() { while (true) { if (changed) { trackPanel.repaint(); changed = false; try { Thread.sleep(refreshTime); } catch (InterruptedException e) {} } else { timeToRepaint = true; try { Thread.sleep(60000); } catch (Interrupte...
funcom_train/36816892
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void open(File file){ try{ ObjectInputStream in = new ObjectInputStream(new FileInputStream(file)); Vector rowData = (Vector)in.readObject(); Vector columnNames = (Vector)in.readObject(); tableModel.setDataVector(rowData, columnNames); in.close(); //Display the status of the Open file oper...
funcom_train/49626651
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setAndCreateEmptyFile() { try { setFile(File.createTempFile("pulse-upload-", ".tmp", ((ServiceRequestImplConfig) PoorMansCache .getConfiguration(ServiceRequestImpl.class)) .getFileUploadTempDir())); } catch (IOException e) { throw new PulseException( "Cannot create ...
funcom_train/9658749
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ProcessDefinition getProcessDefinition(String processDefinition) throws RemoteException{ log("getProcessDefinition", new Object[]{processDefinition}); try{ ProcessDefinition copy = (ProcessDefinition)getDefinition(processDefinition).clone(); return copy; }catch(Exception e){ e.printSt...
funcom_train/8080622
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private double calcZpure(Instances posInstances, Instances negInstances) { double posWeight = posInstances.sumOfWeights(); double negWeight = negInstances.sumOfWeights(); return (2.0 * (Math.sqrt(posWeight+1.0) + Math.sqrt(negWeight+1.0))) + (m_trainTotalWeight - (posWeight + negWeight))...
funcom_train/28762008
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setCsscalendarsize(String newVal) { if ((newVal != null && this.csscalendarsize != null && (newVal.compareTo(this.csscalendarsize) == 0)) || (newVal == null && this.csscalendarsize == null && csscalendarsize_is_initialized)) { return; } this.cssca...
funcom_train/29287137
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void addRawTextPage() { try { textEditor = new TextEditor(); int index = addPage(getTextEditor(), getEditorInput()); setPageText(index, "Raw XML"); } catch (PartInitException e) { ErrorDialog.openError( getSite().getShell(), "Error creating nested text editor page", null, ...
funcom_train/22355728
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int numberOfShownSkills() { if (!adapter.properties[UnitNodeWrapperDrawPolicy.NUMBER_OF_SHOWN_SKILLS]) return Integer.MAX_VALUE; for (int i = 1; i <= 5; ++i) { if (!adapter.properties[UnitNodeWrapperDrawPolicy.NUMBER_OF_SHOWN_SKILLS + i]) return i - 1; } return 5; }...
funcom_train/3603323
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void start(BundleContext context) throws Exception { super.start(context); /* Setting default properties */ if(Platform.getOS().equals(Platform.OS_WIN32)) { String winDir = getWindir(); if(winDir != null) { getPreferenceStore().setDefault(ExternaltoolsPlugin.FILE_EDITOR_TOOL,winD...
funcom_train/9883194
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Appearance createPointAppearance(Color3f color, float pSize) { Material material = new Material(color, color, color, color, 100.0f); material.setLightingEnable(true); Appearance appearance = new Appearance(); appearance.setPointAttributes(new PointAttributes(pSize, fals...
funcom_train/3946078
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addTypePropertyDescriptor(Object object) { itemPropertyDescriptors.add (new ItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ResourceType_type_feature"), getString("_UI_PropertyDescriptor_descr...
funcom_train/51109651
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int allChildrenCount() { // to avoid cascading fetch, filter prefetched blog entries Collection allBlogEntries = getToBlog().getEntryArray(); int i = 0; Iterator it = allBlogEntries.iterator(); while (it.hasNext()) { Entry next = (Entry) it.next(); ...
funcom_train/21996035
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void serverDetectedInit() throws LauncherException { m_untrusted_user = getDefaultUser(); if (log.isDebugEnabled()) log.debug("MgrLauncher serverDetectedInit: " + HelperMisc.getShortClassName(getClass())); try { registerWithServer...
funcom_train/2243872
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public StatusCommand findStatusCommandByControlID(String controlID) { Element controlElement = queryElementFromXMLById(controlID); if (controlElement == null) { throw new NoSuchButtonException("Cannot find that control with id = " + controlID); } Control control = controlFact...
funcom_train/1164867
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Status retweetStatus(long statusId) throws WeiboException { /*return new Status(http.post(getBaseURL() + "statuses/retweet/" + statusId + ".xml", new PostParameter[0], true), this);*/ return new Status(http.post(getBaseURL() + "statuses/retweet/" + statusId + ".json", ...
funcom_train/13993646
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testCreateByValueObjects02() throws Exception { ValueObjectContainer container = testObject2Manager.createEmptyModel() .getContainer(); ValueObject valueObject = container.addNewValueObject(); valueObject.setValue(TestObject2.TEST_OBJECT, new VOElementValue(...
funcom_train/25026851
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void run() { do { while (!interrupted() && inputstrIndex < inputstr.length()) { try { runPlugIn(); // calls TextTrix to call the run function Thread.sleep(getSpeed() * 1000); // interval inputstrIndex++; // increment the message position } catch (InterruptedException e)...
funcom_train/39367009
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void x1TransformThreaded(int direction, float[] paddedTraces) { // Start all of the threads. for (int i = 0; i < _x1Transformers.length; i++) { _x1Transformers[i].setData(direction, paddedTraces); } // Wait for all of the threads to finish. for (int i = 0; i < _x1Transformers...
funcom_train/4528101
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testNNThroughput() throws Exception { Configuration conf = new Configuration(); FileSystem.setDefaultUri(conf, "hdfs://localhost:" + 0); conf.set("dfs.http.address", "0.0.0.0:0"); NameNode.format(conf); NNThroughputBenchmark.runBenchmark(conf, new String[] {"-op", "all"}); } C...
funcom_train/37422301
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Privilege findPrivilegeByName(String pName) throws ClassNotFoundException, SQLException { Vector tVect = findPrivilegeByQuery("select * from privilege where name = '" + Utility.Replace(pName) + "'"); if (tVect.size() > 0) return (Privilege) tVect.firstElement(); else...
funcom_train/33009490
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { StringBuilder sb = new StringBuilder(getTagBitLength()+200); sb.append("EPC {scheme="); sb.append(getScheme()); sb.append(", bitLength="); sb.append(getBits().getBitLength()); sb.append(", bits=["); sb.append(getBits().toString()); sb.append("], MetaData=["); sb.appen...
funcom_train/31097125
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected PDFInfo makeInfo() { /* * create a PDFInfo with the next object number and add to * list of objects */ PDFInfo pdfInfo = new PDFInfo(++this.objectcount); // set the default producer pdfInfo.setProducer(org.apache.fop.apps.Version.getVersion...
funcom_train/974672
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void recordError(String messageKey, ValidationConstraint constraint, String... strings) { if (strings.length == 1) { getDelegate().setFormComponent((IFormComponent) getComponent(strings[0])); } else { getDelegate().setFormComponent(null); } String message = getMessages().getMessage(mess...
funcom_train/10519327
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addElements(Hashtable map, File basedir, String[] elems){ for (int i = 0; i < elems.length; i++){ CCFile f = new CCFile(basedir, elems[i]); if ( accept(f) ){ map.put(f.getPath(), f); } } } COM: <s> helper method to restric...
funcom_train/194722
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void close() throws IOException{ Iterator iter = signalHandlerMap.keySet().iterator(); while(iter.hasNext()){ SignalDescriptor s = (SignalDescriptor)(iter.next()); SignalHandler handler = (SignalHandler)(this.signalHandlerMap.get(s)); handler...
funcom_train/10590910
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Profile getProfile(Request theRequest) throws IOException, ServletException, Exception { try { CocoonServletRequest servletRequest = new CocoonServletRequest(theRequest); return new Profile(servletRequest); } catch (Exception e) { getLogger().error("D...
funcom_train/43235495
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean checkChart(int[] morpheme, int morphemeLen, int tag, int phoneme, int nextPosition, int nextTagType, String str) { for (int i = 0; i < morphemeLen; i++) { Morpheme morph = chart[morpheme[i]]; if (morph.tag == tag && morph.phoneme == phoneme && morph.nextPosition == nextPosition &...
funcom_train/21210847
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean needToExecute(IFlow current, SRResults results) { m_valueToConfirm = results.m_input; SRResults.Slot slot = results.getIthSlot(0); //first slot of previous question if (slot == null) { return results.m_overallConfidence < m_confirmationThreshold; } return slot.m_confidence < m_confir...
funcom_train/36131938
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean verifyDestinationsPercentage() { double perc = 0; for (Destination d : vehicGenParams.destinationDistribution.keySet()) { perc += vehicGenParams.destinationDistribution.get(d); } System.out.println("Soma da porcentagem dos destinos: " + perc + " gerador: " + id); if ((perc < 99....
funcom_train/22155155
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean drawImage(Image img,int x,int y,Color bgcolor,ImageObserver obs) { return drawImage(img,x,y,img.getWidth(obs),img.getHeight(obs),bgcolor,obs); } COM: <s> draws an image onto the page with a backing colour </s>
funcom_train/15601227
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void p_Init(byte[] Message) { p_ReceiverServiceAddress = (short)((Message[0] << 8) + (Message[1] & 0xFF)); p_SenderServiceAddress = (short)((Message[2] << 8) + (Message[3] & 0xFF)); p_Message = new byte[Message.length-4]; System.arraycopy(Message, 4, p_Message, 0, p_Message.length); } COM: <s...
funcom_train/11728547
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testRemoveCalendarPropertySession() throws Exception { testNode.setProperty(propertyName1, c1); superuser.save(); testNode.setProperty(propertyName1, (Calendar) null); superuser.save(); assertFalse("Removing property with Node.setProperty(String, (Calendar)n...
funcom_train/22304108
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateMenuState() { boolean listHasSelection = this.showTable.hasSelection(); editShowMenuItem.setEnabled(listHasSelection); deleteShowMenuItem.setEnabled(listHasSelection); searchForNewEpisodesMenuItem.setEnabled(listHasSelection); disableShowMenuItem.setEn...
funcom_train/491276
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String join(String separator) throws JSONException { int len = length(); StringBuffer sb = new StringBuffer(); for (int i = 0; i < len; i += 1) { if (i > 0) { sb.append(separator); } sb.append(JSONObject.valueToString(this.myA...
funcom_train/18743986
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private RefreshableMenuItem getDeleteMenuItem() { if (this.deleteGraphItem == null) { this.deleteGraphItem = new RefreshableMenuItem() { @Override protected void refresh(ResourceKind resource) { setAction(getActions().getDeleteAction(reso...
funcom_train/28293144
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void clearSessionState() { if (logger.isDebugEnabled()) { logger.debug(" :: SeqActivityTree --> BEGIN - " + "clearSessionState"); } mActivityMap = null; if (logger.isDebugEnabled()) { logger.debug(" :: SeqActivityTree --> END - " + "clearSessionSta...
funcom_train/25099394
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addCardinalityPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_FeatureGroup_cardinality_feature"), getString("_UI_Property...
funcom_train/47906365
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void prepareComponent() { if (!layoutSynced) { height = font.getHeight() + 2 * padding; if (icon == null) { // Text Label width = font.stringWidth(label) + 2 * padding; } else { // Icon width = icon.getWidth() + 2 * padding; ...
funcom_train/3102478
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void handleContainer(final IContainer container, final IPath path) throws CoreException, IOException { Assertion.valid(container); Assertion.valid(path); if (container.isAccessible()) { final IResource[] resources= container.members(); for (int index= 0; index < resources.length; index++...
funcom_train/26339021
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Chart getChart(int type) { ByteBuffer intBuf = ByteBuffer.allocateDirect(Protocol.intSize * _game.getMaxTurn()); int ret = JavaBridge.serverCall(Protocol.sGetChart + (type << 4), _index, 0, intBuf); if (ret != Protocol.eOK) { return null; } return new...
funcom_train/47432491
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addFlujoCicloPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Ciclo_flujoCiclo_feature"), getString("_UI_PropertyDescripto...
funcom_train/26506966
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean initializeRadio() { controlStream.send ("\n*** Initialize Radio\n"); try { setToFullDuplex(); // Zero offsets and set simplex queryIcomRadio(); // Query radio to set model vars. radioInitialized = true; // If all successful, set init var to true } catch (Exc...
funcom_train/33837116
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean openConnection() { try { Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); conn = DriverManager.getConnection(getUrl(), userName, passWord); } catch (Exception ex) { ex.printStackTrace(); return false; } ...
funcom_train/32869712
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void insertAspect(IType aspect) throws UnreachableException { try { getAspectManager(); // Check if aspect manager is reachable. new ProseClientRunner().insertAspect(aspect, getRun().getAddress(), isActive(), transactionId); ProsePlugin.getDefault().fireAspec...
funcom_train/12758393
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void saveValidators() { saveValidators(changes); deleteValidators(deletes); changes = new HashSet(); deletes = new HashSet(); saveButton.setEnabled(false); cancelButton.setEnabled(false); saveToolbarButton.setEnabled(false); cancelToolbarButton.setEnabled(false); int answer = JOption...
funcom_train/8046569
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean setHeightXYGlobal(float height){ if (height > 0){ Vector3D centerPoint = this.getCenterPointGlobal(); // this.scaleGlobal(1/this.getHeightXYGlobal(), 1/this.getHeightXYGlobal(), 1, centerPoint); // this.scaleGlobal(height, height, 1, centerPoint); float factor = (1f/this.getHeightXYGlo...
funcom_train/5578249
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void mouseClicked(MouseEvent e) { if (e.getSource().equals(backButton)) doAction(CONTINUE); else if (e.getSource().equals(quitButton)) doAction(QUIT); else if (e.getSource().equals(restartButton)) doAction(RESTART); else if (e.getSource().equals(rulesButton)) doAction(RULES); else if...
funcom_train/39786645
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void startGhostTask(GhostTask ghostTask, int interval) { if (ghostTaskQueue != null) { return; } ghostTaskQueue = createTaskQueue(); ContainerContext containerContext = (ContainerContext) getContextProperty(ContainerContext.CONTEXT_PROPERTY_N...
funcom_train/2624967
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); cameras = new ArrayList(); while (true) { final Object each = in.readObject(); if (each != null) { if (each.equals(Boolean....
funcom_train/42396825
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testWriteThrowableWithMessage() { final ClientObjectOutputStream output = createObjectOutputStream(THROWABLE, ThrowableWriter.instance); final String message = "apple"; final Throwable throwable = new Throwable(message); output.writeObject(throwable); final String expectedValues = "1,2,3,...
funcom_train/18953156
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public FieldValueConvertorFactory getFieldValueConvertorFactory() { if (logger.isDebugEnabled()) { logger.debug("getFieldValueConvertorFactory() - start"); } if (logger.isDebugEnabled()) { logger.debug("getFieldValueConvertorFactory - end - return value = " ...
funcom_train/40165987
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void closeLogin() { try { queue.put(new Runnable() { public void run() { if (loginHandler != null) { loginHandler.close(); loginHandler = null; } } })...
funcom_train/38306480
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public NumberFormat getScaleValueFormat() { if (attributes.isDefined(ATTR_SCALE_VALUE_FORMAT)) { return (NumberFormat) attributes.getObject(ATTR_SCALE_VALUE_FORMAT); } if (attributes.isDefined(ATTR_VALUE_FORMAT)) { return (NumberFormat) attributes.getObject(ATTR_VALUE_FORMAT); } ...
funcom_train/24379357
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getTypeAsXML(PromptType type) { String sXML = ""; if (type!=null){ QName qname = new QName("http://www.imsglobal.org/xsd/imsqti_v2p1", "prompt"); JAXBElement<PromptType> jaxbe = new JAXBElement<PromptType>(qname, PromptType.class, type); sXML = getXML(jaxbe); } re...
funcom_train/36108801
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void fireSolverStopped() { if (getListeners().isEmpty()) return; //Do nothing. //Creating event. MacroSolverEvent stopEvent = new MacroSolverEvent(this, getCurrentTime(), MacroSolverEvent.STOP); //Notifying all listeners. Iterator<MacroSolverListener> iterator = getListeners().iterator(); w...
funcom_train/10858279
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testWhitespaceTokenizer() throws Exception { Reader reader = new StringReader("What's this thing do?"); WhitespaceTokenizerFactory factory = new WhitespaceTokenizerFactory(); factory.init(DEFAULT_VERSION_PARAM); Tokenizer stream = factory.create(reader); assertTokenStreamContents...
funcom_train/42524547
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getNumOccurenceOfLiteral(int literal) throws VariableDoesntExistException { if (literal < 0 ? variables.contains(-literal) : variables.contains(literal)) throw new VariableDoesntExistException(); int count = 0; for (int i = 0; i < clauses.size(); i++) { ...
funcom_train/46571824
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String writeLog(){ String result="0"; try { BufferedWriter writer = new BufferedWriter(new FileWriter(getLogPath(), true)); writer.write(this.msgLog); writer.newLine(); writer.close(); res...
funcom_train/45878796
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void getRainTotalSinceReset(CurrentMinMax reading, Date readingTime) throws IOException { byte[] nibbles = device.read(MemoryMap.RAIN_TOTAL, 8); reading.setCurrent(rain(nibbles, 0), RainfallUnit.MILLIMETRE, readingTime); if (!isCurrentOnly(reading)) { reading.setMi...
funcom_train/22101922
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long getMaxCollectionInterval(ResourceGroup g, Integer templateId) { Long max = getResourceGroupDAO().getMaxCollectionInterval(g, templateId); if (max == null) { throw new IllegalArgumentException("Invalid template id =" + ...
funcom_train/50697562
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void launchButton_actionPerformed(ActionEvent e) { if (presFrame == null) { presFrame = new JPresentationFrame(host, this); } presFrame.setVisible(false); presFrame.model.setPresentation(currentPresentation); // there is room to wait here until presentati...
funcom_train/44798170
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void write(final byte[] theBytes, final int off, final int len) throws java.io.IOException { // Encoding suspended? if (suspendEncoding) { super.out.write(theBytes, off, len); return; } for (int i = 0; i < len; i++) { ...
funcom_train/1479018
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean checkBanned(String hostName) { if (hostName == null) { return true; } for (int i = 0; i < bannedHosts.length; i++) { if (bannedHosts[i] != null && (hostName.startsWith(bannedHosts[i]) || hostName.equals(bannedHosts[i]))) { return t...
funcom_train/32775936
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void drawVerticalString(Graphics2D g2d, FontRenderContext fdr, String text, float x, float y) { g2d.rotate(-Math.PI / 2.0); new TextLayout(text,font, fdr).draw(g2d, -y, x); g2d.rotate(Math.PI / 2.0); } COM: <s> draws a text which is rotated by 90 degrees </s>
funcom_train/36983894
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void dispose() { try { // do io streams need to be closed first? if (input != null) input.close(); if (output != null) output.close(); } catch (Exception e) { e.printStackTrace(); } thread = null; input = null; output = null; try { if (socket !=...
funcom_train/1304875
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int readToChar(char theChar, StringBuilder result, int interruptChar) throws IOException { int codePoint = -1; while (true) { codePoint = read(); if (codePoint == -1 || codePoint == theChar || codePoint == interruptChar) break; if (result != null) result.appendCodePoint(codePoi...
funcom_train/22909131
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void copyLocationToAll() { List<ImageInfo> imageList = new ArrayList<ImageInfo>(); for (int iindex = 0; iindex < tableModel.getRowCount(); iindex++) { imageList.add(tableModel.getImageInfo(iindex)); } TaskExecutor.execute(new CopyLocationTask(COPY_LOCATION, COPY_LOCATION_ALL, ...
funcom_train/40327607
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String replaceString(String original, String from, String to) { if ((original!=null) && (from!=null) && (to!=null)) { return replaceString(new StringBuffer(original), from, to).toString(); } else { return original; } } COM: <s> locates and replaces all occurrences of a given stri...
funcom_train/42930261
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void reportCacheStatistics() { log.info("There are " + cacheManager.getCacheNames().length + " active dimension caches"); for (String cacheName : cacheManager.getCacheNames()) { Cache cache = cacheManager.getCache(cacheName); Statistics statistics = cache.getStatistics(); if (log.isInfoEnabl...
funcom_train/46826106
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void transmitToTablePlayer (String usernameTo, int tableNum, ITransmittable transObject) { if (transObject instanceof CommTableMessage) ((CommTableMessage)transObject).setTableNum (tableNum); // Insure that that user is actually in this table Table table = tableList.getTable(tableNum); if (...
funcom_train/4837249
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String shortestMatch(String input) { TrieNode node= root; for (int i= 0; i < input.length(); i++) { node= node.getChild(input.charAt(i)); if (node == null) return null; if (node.isTerminal()) return input.substring(0, i+1); } return null; } COM: <s> re...
funcom_train/15819848
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private URL getEarURL(String moduleFile) { try { Object url = getWarAttribute(moduleFile, "EarURL"); if (url instanceof URL) { return (URL) url; } else { return new URL((String) url); } } catch (MalformedURLExcepti...
funcom_train/3760668
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: synchronized public Profiler newProfiler() { if ((_samplingRate == 0) || (++_sampleCount < _samplingRate)) { return NullProfiler.INSTANCE; } _sampleCount = 0; ActiveProfiler p = (ActiveProfiler) _stack.pop(); if (p != null) { p.reset(); } else { ...
funcom_train/32068412
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean addMailboxs(Collection<Mailbox> mailboxs) { boolean addOk = getMailboxs().addAll(mailboxs); if (addOk) { for(Mailbox mailbox : mailboxs) { mailbox.setEmailAddress((EmailAddress)this); } } else { if (logger.isWarnEnable...
funcom_train/14373549
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private ArrayList intersectLabelBox(LabelBox lb, ArrayList checkLabels) { AccordionTreeDrawer d = (AccordionTreeDrawer) getCell().drawer; ArrayList returnList = new ArrayList(); Iterator iter = checkLabels.iterator(); while (iter.hasNext()) { LabelBox currLabel = (LabelBox) iter.next(); if (lb.ove...
funcom_train/21936984
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Boolean isFragment() { // get the block 4 (if exists) final SwiftBlock4 b4 = this.getBlock4(); if (b4 != null) { final String t202 = b4.getTagValue("202"); final String t203 = b4.getTagValue("203"); // if both tag exists => this is a fragment return (t202 != null && t203 != null ? Boole...
funcom_train/44164176
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Element declineMounds(ServerPlayer serverPlayer, Tile tile) { tile.removeLostCityRumour(); // Others might see rumour disappear ChangeSet cs = new ChangeSet(); cs.add(See.perhaps(), tile); sendToOthers(serverPlayer, cs); return cs.build(serverPlayer); ...
funcom_train/45147133
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void refreshBendpoints(){ List modelConstraint = getSAIConnection().getBendpoints(); List figureConstraint = new ArrayList(); for(int i=0;i<modelConstraint.size();i++){ ConnectionBendpoint cbp = (ConnectionBendpoint)modelConstraint.get(i); RelativeBendpoint rbp = new RelativeBendpoint(getCo...
funcom_train/22184647
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getWindowTitle(boolean labelThreads) { String emailOrThread = "Email"; if (labelThreads && threadSet != null && threadSet.size() > 0) { emailOrThread = "Thread"; } String idText = ""; if (currentEmailMessage != null) { idText += ", Message ID: " + currentEmailMessage.getMid();...
funcom_train/44694624
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getFieldCount() { if (m_BaseLayer != null) { final FeatureCollectionWrapper fc = m_BaseLayer.getFeatureCollectionWrapper(); /** * We assume that the first attribute of the feature is its geometry, and that there is always a geometry */ return fc....
funcom_train/9705923
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setCachedTypes(Types types) { if (USE_SOFT_REFERENCES) { if (softTypes == null || softTypes.get() == null) { if (types != null) { softTypes = new SoftReference(types); } else { // The wsdl has no types ...