__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/9139100
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void writeExternal(ObjectOutput objOut) throws IOException { objOut.writeInt(mSymbolTable.mSymbolToId.size()); Iterator it = mSymbolTable.mSymbolToId.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); objOut.writeUTF(entry.getKey().toString()); obj...
funcom_train/8357633
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JRadioButton getBtnE() { if (btnE == null) { btnE = new JRadioButton(); if(!entropy.isHammingDistance()) { btnE.setSelected(true); } btnE.addMouseListener(new java.awt.event.MouseAdapter() { @Override public void mouseClicked(java.awt.event.MouseEvent e) { ...
funcom_train/18525553
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void parse() throws IOException, SAXException { if (toolbar != null) { InputSource is = LanguageFileLoader.getReference().getLanguageInputStream( LanguageFileLoader.HEADINGTOOLBAR_XML_FILE); if (is != null) { getParser()....
funcom_train/25326339
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void breakloop(UUID traceID, Pcap pcap) { if (lockIndex.containsKey(traceID)) { try { lockIndex.get(traceID).writeLock().lock(); logger.debug("Trying to break pcap loop."); if (pcap != null) { pcap.breakloop(); } } finally { lockIndex.get(traceID).writeLock().unlock(); ...
funcom_train/50221378
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean hasAttributeEditor(int type) { switch (type) { case GraphType.atInteger: case GraphType.atReal: case GraphType.atString: case GraphType.atText: case GraphType.atColor: case GraphType.atType: case GraphT...
funcom_train/15411460
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void checkForWarningSize() { // the the total number of connections that we can add // to the pool before it hits the maximum int availableGrowth = (maxSize - totalConnections()); if (availableGrowth < warningSize) { closeBusyConnections(leakTimeMinutes)...
funcom_train/37401039
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Rectangle getBounds(double scale) { Rectangle b = null; for (int i = 0; i < childs.length; i++) { Rectangle r = childs[i].getBounds(scale); if (b == null) { b = new Rectangle(r); } else { enlargeBounds(r, b); } } bounds = b; return b; } COM: <s> returns ...
funcom_train/45330129
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void assignToMenu (JMenu menu, JComponent before){ mnuParent = menu; mnuInsertBefore = before; Component[] items = mnuParent.getMenuComponents(); for (int i=0; i < items.length; i++ ) { if( items[i].equals(before) ) { mIndex = i; ...
funcom_train/39913412
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetLabel1() { System.out.println("getLabel1"); Page1 instance = new Page1(); Label expResult = null; Label result = instance.getLabel1(); assertEquals(expResult, result); // TODO review the generated test code and remov...
funcom_train/19685547
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void init(SimulatorContext p_context) { /* Initialize the node constructor module */ m_nodeConstructor = NodeConstructor.getInstance(); NodeConstructor.setContext(m_context); /* Initialize the server module */ m_server = SimulatorServer.getInstance(); SimulatorServer.setContext(m_context); ...
funcom_train/2023751
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void loadJobs() { Vector lines; String line; int i; lines = TextFile.load(jobfile); // add " " for empty lines for (i = 0; i < lines.size(); i++) { line = (String) lines.get(i); if (line.equals("")) { ...
funcom_train/5379896
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private InputStream getStream() { InputStream is = null; if (location != null) { is = location.getResourceAsStream(name); } else { try { is = new FileInputStream(name); } catch (FileNotFoundException e) { return null...
funcom_train/24120977
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void read(InputStream in) throws IOException { // size and type already read this.rasterOperation = WMFConstants.readLittleEndianInt(in); this.height = WMFConstants.readLittleEndianShort(in); this.width = WMFConstants.readLittleEndianShort(in); this.y = WMFConsta...
funcom_train/18742661
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean collectNodeNrs() { boolean result = this.usedNrs == null; if (result) { this.usedNrs = new HashSet<Integer>(); for (Object root : getRoots()) { if (root instanceof GraphJVertex) { this.usedNrs.add(((GraphJVertex) root)...
funcom_train/14660798
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private AutoEnableMenu getEstMenu() { if (estMenu == null) { estMenu = new AutoEnableMenu(); estMenu.setText("Estimate"); estMenu.add(priorSpecAction); estMenu.add(initDrawSpecAction); estMenu.add(estimationAction); } return e...
funcom_train/48406843
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addClassKindPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ClassElement_classKind_feature"), getString("_UI_PropertyDesc...
funcom_train/32763829
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean isSymmetric() { int i,j; //loop control variables for (i=0; i<DIM; i++) for (j=i; j<DIM; j++) { if (getElem(i,j) != getElem(j,i) ) return false; } return true; } COM: <s> check if mat...
funcom_train/42822659
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getExpenseDetailsCommand() { if (expenseDetailsCommand == null) {//GEN-END:|112-getter|0|112-preInit // write pre-init user code here expenseDetailsCommand = new Command("Expense Details", Command.SCREEN, 0);//GEN-LINE:|112-getter|1|112-postInit // wr...
funcom_train/5857409
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setProperty(String key, String value) throws HeroException { log.debug("setProperty: key="+key+ " value="+value); try { if (!this.getProperties().containsKey(key)) { ProjectDAO.createProperty(this.getName(),key,value); } this.getProperties().put(key,value); makeDirty(); } ...
funcom_train/48212347
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isPopupVisible() { ComponentListener[] componentListeners = owningFrame.getComponentListeners(); if (Arrays.asList(componentListeners).contains(resizeListener)) { return true; } MouseListener[] mouseListeners = glassPane.getMouseListeners(); if (Arrays.asLis...
funcom_train/39935029
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void connect() throws IOException, InterruptedException { System.out.println("Robot: connect()"); System.out.println("Robot: connect(): Creating new connection"); connection = new Connection(this); System.out.println("Robot: connect(): Starting connection thread"); ...
funcom_train/10948632
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testReverseComparator() { assertEquals("equal", 0, reverse.compare(equalFile1, equalFile2)); assertTrue("less", reverse.compare(moreFile, lessFile) < 0); assertTrue("more", reverse.compare(lessFile, moreFile) > 0); } COM: <s> test the comparator reversed </s>
funcom_train/5863989
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public URIInfo setTimeoutURI(String deviceType, String timeoutURI, int type) { if (deviceType == null) deviceType = "ajax"; TimeoutURIInfo newi = new TimeoutURIInfo(timeoutURI, type); TimeoutURIInfo oldi = (TimeoutURIInfo)_timeoutURIs.put(deviceType, newi); if (oldi != null) newi.auto = oldi.auto; ret...
funcom_train/9941063
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private FlexTable createAttributesFlexTable() { FlexTable attributesFlexTable = new FlexTable(); FlexCellFormatter cellFormatter = attributesFlexTable.getFlexCellFormatter(); attributesFlexTable.addStyleName("cw-FlexTable"); attributesFlexTable.setWidth("32em"); attributesFlexTable.setCellSpacing(5); ...
funcom_train/43894172
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int hashCode() { final int PRIME = 1000003; int result = 0; if (fill != null) { result = (PRIME * result) + fill.hashCode(); } if (stroke != null) { result = (PRIME * result) + stroke.hashCode(); } if (geometryPropertyNa...
funcom_train/44149358
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void saveToXML(Element parent) { base = parent.getOwnerDocument().createElementNS(UDDIElement.XMLNS, UDDIElement.XMLNS_PREFIX + UDDI_TAG); // Save attributes if (bindingKey!=null) { base.setAttribute("bindingKey", bindingKey); } parent.appendChild(base); } COM:...
funcom_train/16480976
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void optimize() { for (Symbol s : nonterminals) { removeWrongLinebreaks(s.graph.l, null, s); if (optimizeGraph) { // remove redundant iter/opts removeRedundancy(s.graph.l, null, s); // remove eps nodes and redundant eps nod...
funcom_train/14093357
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testRunBareDebug() { Throwable t = null; try { Element e = m_fixture.getTestElement(); e.setAttribute("debug", "true"); m_xmlTestCase.runBare(); } catch (Throwable ex) { t = ex; } assertNull(t); } COM: <s> test run bare with debug </s>
funcom_train/18457138
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean isNextStylesheet(int aStartIndex, int aSizeOfList) { boolean isNextStylesheet; int loop; isNextStylesheet = false; for (loop = aStartIndex; loop < aSizeOfList; loop++) { if (((XSLRow)(xslRows.get(loop))).isOnAndNotEmpty()) { isNextStylesheet = true;...
funcom_train/12127538
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setKeyboardFocus(PInputEventListener eventHandler) { PInputEvent focusEvent = new PInputEvent(this, null, null); if (keyboardFocus != null) { dispatchEventToListener(focusEvent, FocusEvent.FOCUS_LOST, keyboardFocus); } keyboardFocus = eventHandler; ...
funcom_train/2766659
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addTickEvent(TickEvent te) throws IndexOutOfBoundsException { Tick t=te.getTick(); //adjust data t.setDuration(t.getDuration()*resolution/divs[t.getTrack()]); ticks[t.getTrack()][0]=ticks[t.getTrack()][1];//save history ticks[t.getTrack()][1]+=t.getDuration();//push tick } COM: <s> musicx...
funcom_train/39484417
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Instruction getInstructionAt (int position) { if (code == null) { return null; } for (int i = 0, l = code.length; i < l; i++) { if ((code[i] != null) && (code[i].getPosition() == position)) { return code[i]; } } throw new JPFException("instruction not found...
funcom_train/46994279
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public HtmlInputHidden getHiddenSelectedFileType() { if (hiddenSelectedFileType != null) { dbgLog.fine("returning hiddenSelectedFileType"+hiddenSelectedFileType.getValue()); } else { dbgLog.fine("hiddenSelectedFileType is null"); } return hiddenSelectedF...
funcom_train/12713633
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double getStep() { double min1=Double.valueOf(getValue(".min")); double min2=min1+Double.valueOf(getValue(".step")); return toSI(min2)-toSI(min1); //Double.valueOf(getValue(".step")); } COM: <s> returns the range step </s>
funcom_train/12300906
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addBluePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_RGBType_blue_feature"), getString("_UI_PropertyDescriptor_descript...
funcom_train/17788534
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean readSignatureBox() throws ErrorException, EOFException, IOException { // Box length int length = in.readInt(); if (length != 12) { return false; } // Box type int boxType = in.readInt(); if (boxType != JPXBoxTypes.SIGNATURE_BOX_TYPE) { return false; } // Box content ...
funcom_train/50926300
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String createUniqueAtomId() { String id = "a1"; if (molecule.getAtomCount() >= 0) { id = molecule.getAtom(0).getId(); if (id != null) { id = id.substring(0, 1); int i = 1; while (true) { String id0 = id + CMLConstants.S_EMPTY + (i); if (molecule.getAtomById(id0) == null) { ...
funcom_train/5379472
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void editElement(Object element, int column) { if (cellEditor != null) applyEditorValue(); setSelection(new StructuredSelection(element), true); Item[] selection = getSelection(); if (selection.length != 1) return; treeItem = selection[0...
funcom_train/43245193
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetEmpStreetAddr3() { System.out.println("setEmpStreetAddr3"); String empStreetAddr3 = ""; EmploymentDataDG1Object instance = new EmploymentDataDG1Object(); instance.setEmpStreetAddr3(empStreetAddr3); // TODO review the generat...
funcom_train/44174438
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void removeTreeItem(final TreeItem<E> item) { if (item == this.root) { poll(); return; } item.cutFromParent(); final PairingHeap<E> priorityQueue = new PairingHeap<E>(this.comparator); priorityQueue.size = 1; // may be WRO...
funcom_train/21022276
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void calculateFrequencies(List<GWTKeyword> keywordsList) { minFrequency = 1; maxFrequency = 1; for (Iterator<GWTKeyword> it = keywordsList.iterator(); it.hasNext();) { GWTKeyword keyword = it.next(); if (minFrequency>keyword.getFrequency()) { minFrequency = keyword.getFrequency(); } ...
funcom_train/50976007
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getNBNumber() { if (mNBNumber == null || mNBNumber.length() == 0) { mNBNumber = mApplet.getParameter("nb_number"); if (mNBNumber == null || mNBNumber.length() == 0) { System.err.println("Could not find nb_number applet parameter!"); } ...
funcom_train/50911247
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(IntArray f) { boolean equal = false; try { checkConformable(f); equal = true; for (int i = 0; i < nelem; i++) { if (array[i] != f.array[i]) { equal = false; break; ...
funcom_train/17084428
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getBotAtras() { if (botAtras == null) {//GEN-END:|43-getter|0|43-preInit // write pre-init user code here botAtras = new Command("Volver", Command.BACK, 0);//GEN-LINE:|43-getter|1|43-postInit configurarJuego(); // write post-init user ...
funcom_train/10805313
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void printMemoryInfo() { Runtime rt = Runtime.getRuntime(); long total = rt.totalMemory(); long free = rt.freeMemory(); long used = total - free; NumberFormat nf = NumberFormat.getInstance(); getLog().warn(_loc.get("mem-info", nf.format(used)...
funcom_train/41722399
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String nextEvent() throws FeederException { try { String nextLine = file.readLine(); if (nextLine != null) { nextLine = nextLine.trim(); if (nextLine.length() > 0) return nextLine; else return null; } else return null; } catch (IOException e) { throw new...
funcom_train/13874866
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addImportedModulePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ModuleImport_importedModule_feature"), getString("_UI_Pr...
funcom_train/38535008
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setEarliestEndTime(int eet, boolean notify) throws PropagationFailureException { if ((!endTimes.isEmpty())&&(endTimes.getMin()<eet)) { if (notify) { ActDelta delta = new ActDelta(); delta.endTimes.add(endTimes.removeEndingBeforeGetDelta(eet)); makeBoundConsistent(delta); notifyDe...
funcom_train/7720620
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void askCallback(String command,String result) { if (command.equals("exit")) { handleExit(result); } else if (command.equals("force-exit")) { forceExit(result); } else if (command.equals("revert")) { ...
funcom_train/23012267
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getThematicMapName() { if (project != null) { Enumeration e2 = project.themes.keys(); for (Enumeration e = project.themes.elements(); e.hasMoreElements();) { String s = (String) e2.nextElement(); if (((String) e.nextElement()).equals(thematicMap)) { retu...
funcom_train/9439811
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public CacheEntry getContactInfo(String numberOrEmail, boolean allowQuery) { if (Mms.isEmailAddress(numberOrEmail)) { return getContactInfoForEmailAddress(numberOrEmail, allowQuery); } else { return getContactInfoForPhoneNumber(numberOrEmail, allowQuery); } ...
funcom_train/22346805
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getName() { // When dbms if (use_dbms) { // is so return dbms_StatsTable; } else { // When local if (use_local) { // is so return local_file; } else { // must be alt return alt_name; ...
funcom_train/23869564
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addPin(Node switchMatrixSink, Pin pin){ StaticSink ss = new StaticSink(switchMatrixSink, pin); String wireName = we.getWireName(switchMatrixSink.wire); if(needHARD1.contains(wireName)){ useTIEOFF.addFirst(ss); } else if(needSLICESource.contains(wireName)){ useSLICE.add(ss); } e...
funcom_train/32716570
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void init(IWorkbench workbench, IStructuredSelection selection) { this.workbench = workbench; this.selection = selection; setWindowTitle(TefkatConfigEditorPlugin.INSTANCE.getString("_UI_Wizard_label")); setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE.getImag...
funcom_train/1711464
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setupTree() { try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); db = dbf.newDocumentBuilder(); } catch (ParserConfigurationException e) { e.printStackTrace(); } doc = db.newDocument(); /**add Adobe comment*/ doc.appendChild(doc.createComment("...
funcom_train/9117232
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ValidationReport validate(Customer customer) { ValidationReport report = reportFactory .createValidationReport(); StatelessKnowledgeSession session = knowledgeBase .newStatelessKnowledgeSession(); session.setGlobal("validationReport", report); session.setGlobal("reportFact...
funcom_train/44011336
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetEmployeeID() { System.out.println("setEmployeeID"); String EmployeeID = ""; EmployeeBO instance = new EmployeeBO(); instance.setEmployeeID(EmployeeID); // TODO review the generated test code and remove the default call to fa...
funcom_train/36012092
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getSelectedFile() { String file = ""; IFile selectedFile = FileResource.getSelectedIFile(); if (selectedFile != null) { IPath selectedPath = selectedFile.getLocation(); if (selectedPath != null) { file = selectedPath.toFile().toString(); } } return fi...
funcom_train/15906736
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void parseExtension(PrintStream log) { String content = this.propertyValue(PROFILE_EXTENSION_CONTENTS); if (content == null || content.isEmpty()) { UmlCom.trace("<b>Error: no content for extension: " + name()); } else { try { ArrayList<String> providedClassStringList = parseExtensionConte...
funcom_train/23719247
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Expression toValue(String text) { if (text.trim().length() == 0) { return null; } else { try { return pf.createParser().parse(text, context); } catch (ExpressionSyntaxException ex) { throw new IllegalArgumentException( ...
funcom_train/3762135
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void initMessageListeners() { m_continueButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { handleContinueButton(); } }); addWindowListener(new WindowAdapter() { pub...
funcom_train/11590848
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isShowImagesToolBox(){ if( isShowAllToolBoxes() ) return true; if (_showImagesToolBox != null) return _showImagesToolBox.booleanValue(); ValueBinding vb = getValueBinding("showImagesToolBox"); return vb != null ? ((Boolean)vb.getVal...
funcom_train/32741676
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object get_char_Value(String fieldName, ResultSet rs, int i) throws SQLException { Object o = base_getValue(fieldName, rs, i); if (o instanceof byte[]) { String a = new String((byte[]) o); } if (o == null) { return o; } if (o ins...
funcom_train/26125588
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean kill() { boolean done = false; try { super.input(Signal.getKillSignal(), 1000L); done = true; } catch (InterruptedException e) { //void } catch (TransitionActivityException e) { //void } catch (UnhandledCond...
funcom_train/49410693
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void validate() { try { for (int i = 0; i < mandatory_list.length; i++) { if (tapeProperties.getProperty(mandatory_list[i]) == null) throw new Exception("mandatory property " + mandatory_list[i] + " is not defined"); ...
funcom_train/37090801
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void showPage(String urlStr) { if (applet == null || externalFrame == null) { System.out.println("No access to web via applet to show page " + urlStr); return; } URL url = getUrl(urlStr); AppletContext appletcontext = applet.getAppletContext(); appletcontext.s...
funcom_train/39983345
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setNewProduct(boolean newProduct){ this.isNewProduct=newProduct; errorLabel.setVisible(false); image.setEditable(newProduct); qtityTxt.setEditable(newProduct); priceTxt.setEditable(newProduct); nameTxt.setEditable(newProduct); descrTxt.setEditable(newProduct); categorieListBox.setEdit...
funcom_train/26016111
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void start() throws IOException { this.isRunning = true; Thread thread = new Thread(this); thread.setDaemon(true); // Issue #32 on java.net thread.setName("UDPMessageProcessorThread"); // Issue #184 thread.setPriority(Thread.MAX_PRIORITY); ...
funcom_train/20798119
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void postTopOfQueue(final QueueItem item) { final SpeakableListener listener = item.getListener(); if (listener == null) { return; } final Object source = item.getSource(); final int id = item.getId(); final BaseSynthesizer synthesizer = queu...
funcom_train/31104848
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void haveFormattedPageSequence(PageSequence pageSequence) { this.pageCount += pageSequence.getPageCount(); if (this.pageSequences == null) { this.pageSequences = new java.util.ArrayList(); } this.pageSequences.add( new PageSequenceResults(page...
funcom_train/21296256
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean compareCurrentCards() { // guard illegal call of this method. if (this.currentCard1 == null || this.currentCard2 == null || this.currentPlayer == null) { throw new IllegalStateException( "Cannot check for pairs if one card is null."); } // save uncovered pair to current user ...
funcom_train/37242342
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void saveXMLFile() { FileDialog fd = new FileDialog(new Frame(), "Save as a jMusic XML file...", FileDialog.SAVE); fd.setFile("FileName.xml"); fd.show(); if (fd.getFile() != null) { jm.util.Write.xml(sco...
funcom_train/4521127
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void save(Usuario entity) { LogUtil.log("saving Usuario instance", Level.INFO, null); try { entityManager.persist(entity); LogUtil.log("save successful", Level.INFO, null); } catch (RuntimeException re) { LogUtil.log("save failed", Level.SEVERE, re); throw re; } } COM: <s> perform an...
funcom_train/8498044
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private BufferedImage loadImage(String res) throws IOException { URL url = TextureLoader.class.getClassLoader().getResource(res); if (url == null) { throw new IOException("Cannot find: " + res); } BufferedImage bufferedImage = ImageIO.read(new BufferedInputStream(getClass(...
funcom_train/2292242
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected CmsWidgetDialogParameter getParameterDefinition(String name) { Iterator i = getWidgets().iterator(); while (i.hasNext()) { // check for all widget parameters CmsWidgetDialogParameter base = (CmsWidgetDialogParameter)i.next(); if (base....
funcom_train/46694144
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testBadCheck_Parameter() { System.out.println("check"); ActorFactory instance = ActorFactory.newInstance(); Parameter parameter = instance.getParameter("ActorID"); boolean expResult = false; boolean result = instance.check(parameter); assertEquals(ex...
funcom_train/14093522
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testProcessElement1() throws XMLException { Element hasFocus = m_fixture.newElement("assertenabled", new String[] { "refid", "test" }); IXMLTestCase tc = m_fixture.getTestCase(); Component comp =...
funcom_train/1940712
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object processRow(ResultSet rs) throws SQLException { ResultSetMetaData metaData = rs.getMetaData(); Map map = new HashMap(); for (int i=1;i<=metaData.getColumnCount();i++) { map.put(metaData.getColumnName(i).toLowerCase(), rs.getObject(i)); } ...
funcom_train/48212788
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addJdbcJar(String jarPath) { logger.debug("Adding jar at path " + jarPath); int count = getJdbcJarCount(); properties.put(JDBC_JAR_BASE+"_"+count, jarPath); setJdbcJarCount(count + 1); classLoader = getClassLoaderFromCache(); } COM: <s> adds the jdbc drive...
funcom_train/21178021
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void createPartControl(Composite parent) { GridData data = new GridData(GridData.FILL_BOTH | SWT.H_SCROLL | SWT.V_SCROLL); data.grabExcessHorizontalSpace = true; data.grabExcessVerticalSpace = true; table = new MetricsTable(parent, SWT.FULL_SELECTION); table.setLayoutData(data); table.packColu...
funcom_train/21437803
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equalsStructure(Glycan og) { if( og==null ) return false; if( root==null ) return (og.root==null); if( !root.subtreeEquals(og.root) ) return false; if( bracket==null ) return og.bracket==null; return bracket.subtreeEquals(og.bracket); } C...
funcom_train/32057264
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testRestoreComponentState() { System.out.println("testRestoreComponentState"); // Add your test code below by replacing the default call to fail. BasicGraphDropTargetListener x = new BasicGraphDropTargetListener(); JComponent j = new JLabel(); // JComponent...
funcom_train/23770570
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toTokenTypeString() { reset(); StringBuffer buf = new StringBuffer(); Object o = LT(1); int type = adaptor.getType(o); while ( type!=Token.EOF ) { buf.append(" "); buf.append(type); consume(); o = LT(1); ...
funcom_train/27905457
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int createVar() { int ret = num_vars++; // we want to keep the work stack at least so large int need = 5 * num_vars + 3; if(work_stack.length < need) work_stack = Array.resize(work_stack, work_stack_tos, need); tree_depth_changed(num_vars); // MUST be called return ret; } COM: <s> create...
funcom_train/3713530
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void readFromSSAP() { ssapController = null; // try { // ssapController = new SSAPDownloadController(this, "VO download"); // ssapController.getJFrame().setVisible(true); // // readFromInternalList(); // } catch (MalformedURLException e) { // ...
funcom_train/10591281
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public SourceValidity getValidity(Source source) { AggregatedValidity validity = new AggregatedValidity(); SourceInspector inspector; final Iterator inspectors = m_inspectors.iterator(); while (inspectors.hasNext()) { inspector = (SourceInspector) inspectors.next();...
funcom_train/33717568
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void transferAllAnchors(AxedChar dst) { for(AxedChar c = firstChar(); c != null; c = c.next()) { if (c.anchors == null) { continue; } for (Anchor a = (Anchor) c.anchors.first; a != null; a = a.next()) { if (!a.empty) { continue; } removeAnchor(a); dst.line.text.htmlText...
funcom_train/50498719
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void startPumps() { if (!inputStreamPump.running) { Thread thread = new Thread(inputStreamPump, "HPROF Data Pump"); thread.setPriority(Thread.NORM_PRIORITY - 1); thread.setDaemon(true); thread.start(); } if (!recordPump.running && headerHasBeenRead()) { Thread thread = new Thread(rec...
funcom_train/3030409
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double method() { double result; do { // Single line comment to start int index = 52; result = 12; for (int ndx = 0; ndx < index; ndx++) { result *= 1.5; // Increase the result } // End for } while (result < 50); // End While // This is an old outdated piece of code // ...
funcom_train/7683905
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testPreconditions() { assertNotNull(mToView); assertEquals(0, mToView.length()); assertNotNull(mSubjectView); assertEquals(0, mSubjectView.length()); assertNotNull(mMessageView); assertEquals(0, mMessageView.length()); } COM: <s> the name test p...
funcom_train/16953641
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void attachDevice(Device device, PhysicalEntity<?> entity) { // device mag niet reeds aan andere physicalEntity zijn toegevoegd if (device == null || entity == null || device.hasPhysicalEntity()) { throw new IllegalArgumentException(); } entity.attachDevice(device); device.setPhysicalEntity(e...
funcom_train/18436380
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testLegendEvents() { DefaultPieDataset dataset = new DefaultPieDataset(); JFreeChart chart = ChartFactory.createPieChart("title", dataset, true); chart.addChangeListener(this); this.lastChartChangeEvent = null; LegendTitle legend = chart.getLegend(); ...
funcom_train/45255844
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void fireWindowClosed(final IWorkbenchWindow window) { if (activatedWindow == window) { // Do not hang onto it so it can be GC'ed activatedWindow = null; } Object list[] = getListeners(); for (int i = 0; i < list.length; i++) { final IWindowListener l = (IWindowListener) list[i]; S...
funcom_train/43233015
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void isReleaseDoubleDefined(final String version, final Date releaseDate) throws DoubleDefinitionException { for (final Release current : this.getReleasePlan()) { if (current.getVersion().equals(version) && current.getReleaseDate().equals(releaseDate)) { throw new DoubleDefinitionException(TextCo...
funcom_train/45838563
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean check() { boolean ret = true; if (componentConfig == null) { ret = false; logger.warn("ComponentConfig for " + this.getClass().getSimpleName() + " was not set "); } if (!init) { ret = false; logger.warn(componentConfig.getId() + " " + this.getClass().getSimpleName() + " was not...
funcom_train/8774244
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isSendVideoEnabled() throws SkypeException { VideoEnabledStatus enabled = VideoEnabledStatus.valueOf(getProperty("VIDEO_STATUS")); switch (enabled) { case VIDEO_NONE: case VIDEO_RECV_ENABLED: return false; case VIDEO_SEND_ENABLED: case...
funcom_train/12561636
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long skip(long n) throws IOException { if (n < 0L) { throw new IllegalArgumentException("skip value is negative"); } /* see the stream has been reached to eof */ int c = get(); if (c == -1) { return 0; } put(c); r...
funcom_train/13847411
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Object setConstraints(Object proxy) { if (proxy == null) { throw new NullPointerException("Proxy cannot be null"); } else if (!methodConstraintsSpecified) { return proxy; } else if (!(proxy instanceof RemoteMethodControl)) { throw new SecurityException( "Proxy must implement Remo...
funcom_train/36046595
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ScriptManager getScriptManager() { if (getSource() instanceof ScriptManager) { return (ScriptManager) getSource(); } if (context != null) { return context.getScriptManager(); } if (getInterpret() != null) { return getInterpret(...
funcom_train/5692484
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Object getter(String methodName) { Object ret = null; try { Method method = this.realTask.getClass().getDeclaredMethod(methodName, null); ret = method.invoke(this.realTask, null); } catch (Exception e) { e.printStackTrace(); ...