__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/34982957
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSex(String newVal) { if ((newVal != null && this.sex != null && (newVal.compareTo(this.sex) == 0)) || (newVal == null && this.sex == null && sex_is_initialized)) { return; } this.sex = newVal; sex_is_modified = true; sex_is_initial...
funcom_train/36242860
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ResponseAPDU sendSelect(short fid) throws CardServiceException { byte[] data = { (byte) ((fid >> 8) & 0x000000FF), (byte) (fid & 0x000000FF) }; CommandAPDU capdu = new CommandAPDU(GSM1111.CLA_GSM, GSM1111.INS_SELECT, (byte) 0x00, (byte) 0x00, data, 0); return transmit(capdu); } COM: <s> se...
funcom_train/28751253
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setOrdernum(Long newVal) { if ((newVal != null && this.ordernum != null && (newVal.compareTo(this.ordernum) == 0)) || (newVal == null && this.ordernum == null && ordernum_is_initialized)) { return; } this.ordernum = newVal; ordernum_is_mo...
funcom_train/3902704
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addRequiredForSatisfiedPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_RollupConsiderationsType_requiredForSatisfied_feature")...
funcom_train/18254992
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void clearCoordinates(java.util.Collection collection) { Iterator iter = collection.iterator(); while (iter.hasNext()) { Location a = (Location) iter.next(); if (getContext().isHome(a) && (a instanceof Node)) { ((Node) a).setCoordinate(null); ...
funcom_train/39535045
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected File getActionDirectory(File projectFile) { File actionsDirectory=null; if(projectFile!=null) { File[] children=projectFile.listFiles(); //getting the actions directory among the child files of the project directory for(File child : children) { if(child!=null && chil...
funcom_train/36365657
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean accept(File f) { if (f.isDirectory()) { return true; } String extension = jpiv2.FileHandling.getFileExtension(f); for(int n=0; n<validExtension.length; n++) { if (extension != null && extension.equalsIgnoreCase(validExtension[n])) { ...
funcom_train/18350478
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void pasteFile(File file) throws IOException { File newFile = new File(currentSelectedFile, file.getName()); while (fileNameExists(currentSelectedFile, newFile)) { newFile = autoRename(newFile); } newFile.createNewFile(); copyFile(file, newFile); ...
funcom_train/31680119
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public L sort(Comparator<E> comparator) { final E[] a = (E[]) fList.toArray(); Arrays.sort(a, fStart, fEnd, comparator); for (int j = fStart; j < fEnd; j++) { fList.set(j, (E) a[j]); } return fList; } COM: <s> sorts the elements of the specified range in place i </s>
funcom_train/41016931
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void photoHidden() { if (showPhoto) { photoImage = null; showPhoto = false; if (Settings.isNokiaTouch) setFullScreenMode(inWelcome); addCommands(); invalidate(INV_SHOW); Display.getDisplay(LDIRMidlet.instance).setCurrent(PlaceDetails.getInstance().getForm()...
funcom_train/32111208
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void init(ServletConfig config) throws ServletException { super.init(config); // load Spring framework Web context WebApplicationContext wac = WebApplicationContextUtils .getRequiredWebApplicationContext(config.getServletContext()); // set bankin...
funcom_train/14011782
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void trimX() { if (gridYSize == 1) { Cell[] cellArray = getCellArray(0, false); for (int i = 0; i < gridXSize; ++i) { if (cellArray[i] == null) { gridXSize = i; } } } } COM: <s> special case tr...
funcom_train/12837197
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void putValue(SessionID sessionID, SessionKey key, Serializable value) throws SessionException { if (SessionID.SYSTEM_SESSION_ID.equals(sessionID)) { createSystemSession(); } // No need to check for a return value. If the sessionID is null or if the session ...
funcom_train/39534096
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void reinitialize() { SVGCanvas canvas=svgHandle.getScrollPane().getSVGCanvas(); if(clips.size()>0) { canvas.removePaintListener(this, true); clips.clear(); } if(selectionItems.size()>0) { //adding all the new clips for(SelectionItem item : selectionItems...
funcom_train/36459264
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int process(Buffer inputBuffer, boolean render) { this.inputBuffer = inputBuffer; /*if (this.inputBuffer.getFormat() == null) { this.inputBuffer.setFormat(inputFormats[0]); } */ try { int status = process(0, render); return status; ...
funcom_train/36994012
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public float getSkill(IThing weapon) { if (weapon == null) { throw new NullPointerException("weapon must not be null"); } Class weaponClass = weapon.getClass(); Float skillValue = weaponSkills.get(weaponClass); return skillValue == null ? 0.0f : ski...
funcom_train/49044632
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addPropertyPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ModifyObjectReaction_property_feature"), getString("_UI_Proper...
funcom_train/11010951
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public XWPFTable getTable(CTTbl ctTbl) { for (int i = 0; i < tables.size(); i++) { if (getTables().get(i).getCTTbl() == ctTbl) { return getTables().get(i); } } return null; } COM: <s> get a table by its cttbl object </s>
funcom_train/44898637
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void causeNoExceptionLocal() { logger.info("causeNoException"); try { getExTestLocal().causeNoException(); } catch (Throwable t) { logger.error("Unexpected exception 0", t); throw new RuntimeException("Unexpected exception 0", t); } ...
funcom_train/1170034
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public CardList getUnblockedAttackers() { CardList list = new CardList(); Iterator<Card> it = map.keySet().iterator(); while (it.hasNext()) { Card attack = it.next(); CardList block = map.get(attack); if (block.size() == 0) list.add(attack); ...
funcom_train/15565999
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected long getNextCounter(){ try{ long counter = 0; File f = new File("ct.bin"); if(f.exists()){ ObjectInputStream is =new ObjectInputStream( new FileInputStream(f) ); counter = is.readLong() + 1; is.close(); } ObjectOutputStream os =new ObjectOutputStream( new FileOutputStream(f...
funcom_train/936032
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getAssemblySitePanel() { if (assemblySitePanel == null) { assemblySitePanel = new JPanel(); assemblySitePanel.setLayout(new BorderLayout()); assemblySitePanel.setBorder(javax.swing.BorderFactory.createEmptyBorder(4,0,4,0)); assemblySitePanel.add(getAssemblySiteLabel(), java.awt.Borde...
funcom_train/44464956
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public View create(Element elem) { Object o = elem.getAttributes().getAttribute(StyleConstants.NameAttribute); if (o instanceof Tag) { Tag kind = (Tag) o; if (kind == Tag.CONTENT) { return new MyHTMLContentView(elem); } } retu...
funcom_train/21473843
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { if ("Migratool".equals(portName)) { setMigratoolEndpointAddress(address); } else { // Unknown Port Name throw new javax.xml.rpc.ServiceE...
funcom_train/50962676
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Term evalAsFunctor(Struct g) throws Throwable { try { for (int i=0; i<primitive_args.length; i++) { primitive_args[i] = g.getTerm(i); } return ((Term)method.invoke(source,primitive_args)); } catch (Exception ex) { throw ex....
funcom_train/2289014
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setExportPath(String exportPath) { if (exportPath.equals(OpenCms.getSystemInfo().getWebApplicationRfsPath())) { // not allowed because a full static export would delete the opencms directory throw new CmsIllegalArgumentException(Messages.get().container(Messages.ER...
funcom_train/22796469
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getJPanelFooter() { if (jPanelFooter == null) { jPanelFooter = new JPanel(); jPanelFooter.setLayout(new BorderLayout()); jPanelFooter.add(jLabelTitle, BorderLayout.SOUTH); jPanelFooter.add(getJPanelFooterButtons(), BorderLayout.CENTER); jPanelFooter.add(getJComboBoxMixers(), Borde...
funcom_train/5669204
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getAppletInfo() { return "PlotLiveDemoApplet " + PlotBox.PTPLOT_RELEASE + " : Demo of PlotLive.\n" + "By: Edward A. Lee, eal@eecs.berkeley.edu\n" + " Christopher Hylands, cxh@eecs.berkeley.edu\n" + "($Id: PlotLiveDemoApplet.java,v 1.1.1....
funcom_train/32094404
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void updateAnzGivens() { Component generatorPanel = getParent().getParent(); if (generatorPanel instanceof ConfigGeneratorPanel) { int anz = 0; if (pattern != null) { for (int i = 0; i < pattern.length; i++) { if (pattern[i]) ...
funcom_train/8861563
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void maybeFireStructureChange(TreePath path, ArrayList<TreePath> expand) { if (expand != null && !expand.isEmpty()) { Enumeration<TreePath> expanded = tree.getExpandedDescendants(path); fireTreeStructureChanged(path); if (expanded != null) while (expanded.hasMoreElements()) tre...
funcom_train/8326082
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Member lookupMemberFromCache(String memberUniqueName) { // first look in defined members for (Member member : getDefinedMembers()) { if (Util.equalName(member.getUniqueName(), memberUniqueName) || Util.equalName( getUniqueNameWithoutAl...
funcom_train/7619087
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public char getChar(String key, char defaultValue) { unparcel(); Object o = mMap.get(key); if (o == null) { return defaultValue; } try { return (Character) o; } catch (ClassCastException e) { typeWarning(key, o, "Character", d...
funcom_train/18958681
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testPipedStreamsFlushImmediately() throws IOException { PipedOutputStream pipedOut = new PipedOutputStream(); PipedInputStream pipedIn = new PipedInputStream(pipedOut); assertEquals(0, pipedIn.available()); pipedOut.write(1); assertEquals(1, pipedIn.available()); pipedOut.write(2); asse...
funcom_train/8338846
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private WabitSwingSession evilDigUpSession() { WabitSwingSession session = null; WabitObject wo = query; while (wo.getParent() != null) { wo = wo.getParent(); } if (wo instanceof WabitWorkspace) { WabitSession owningSession = ((WabitWorkspace) wo...
funcom_train/45243086
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public JNumberFloatField getJNumberFloatFieldRelacaoKimura() { if (jNumberFloatFieldRelacaoKimura == null) { jNumberFloatFieldRelacaoKimura = new JNumberFloatField(); jNumberFloatFieldRelacaoKimura.setLocation(new Point(329, 107)); jNumberFloatFieldRelacaoKimura.setFont(new Font("Arial", Font.PLAIN, 1...
funcom_train/8098042
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addPrunedWordsToStoplist(SimpleTokenizer tokenizer, int minimumCount) { Alphabet currentAlphabet = getDataAlphabet(); for (int feature = 0; feature < currentAlphabet.size(); feature++) { if (counter.get(feature) < minimumCount) { tokenizer.stop((String) currentA...
funcom_train/22307734
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setVerticalAlignment( final int alignment ) { Trace.println( traceChannel_, "setVerticalAlignment(" + alignment + ")" ); switch ( alignment ) { case TableLayout.TOP: case TableLayout.BOTTOM: case TableLayout.CENTER: ...
funcom_train/44161568
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void applyTemplate(ActionEvent ae) { setRefreshData(); this.attributes = ReportStyleProps.getDefaultValues("tableext", this.template); Map sessionMap = FacesContext.getCurrentInstance() .getExternalContext().getSessionMap(); sessionMap.remove("/p...
funcom_train/50737069
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String decryptString(byte[] b) { try { javax.crypto.Cipher cipher = javax.crypto.Cipher.getInstance(this.algorithm); cipher.init(javax.crypto.Cipher.DECRYPT_MODE, this.keySpec); return new String(cipher.doFinal(b)); } catch (Exception e) { log.error("Exception decrypting text: " + toHex...
funcom_train/45692399
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addPartListPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_SampleInPatternInfo_partList_feature"), getString("_UI_Propert...
funcom_train/8064956
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected int countCornersContained(int x, int y, int w, int h) { int cornersHit = 0; if (contains(x, y)) { cornersHit++; } if (contains(x + w, y)) { cornersHit++; } if (contains(x, y + h)) { cornersHit++; } if (contains(x + w, y + h)) { cornersHit++; } return cornersHit; } ...
funcom_train/10680768
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long getTimeout() { if (timeout < 0) { timeout = DEFAULT_TIMEOUT; String buf = System.getProperty("jpda.settings.timeout"); if (buf != null) { try { timeout = Long.parseLong(buf); } catch (NumberFormatExcept...
funcom_train/14661733
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getUpdateValsButton() { if (updateValsButton == null) { updateValsButton = new JButton(); updateValsButton .setText("Update Sampling Configuration (*) after Edit"); updateValsButton.setEnabled(false); updateValsButton.setPreferredSize(new Dimension(310, 26)); updateValsButto...
funcom_train/48936706
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void writeToBZip(int b) throws IOException { //System.out.println("writeToBZip (int b) compressing"); if (bzipstream == null) { bzipstream = new CBZip2OutputStream(output); response.addHeader("Content-Encoding", "bzip"); } bzipstream.write(b); ...
funcom_train/20889669
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int compareTo(TrafficGeneration tgn) { int result = Math.round((float) (this.delay - tgn.getDelay()) * 20); if (result != 0) { return result; } result = this.getSource().compareTo(tgn.getSource()); if (result != 0) { return result; } result = this.getRecipient().compareTo(tgn.get...
funcom_train/1310060
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void notifyCertified(MessageClient client) { MessageQueue certifiedMessages = client.getCertifiedMessageQueue(); while (!certifiedMessages.isEmpty()) { Message message = certifiedMessages.poll(); synchronized (client.getMessageListeners()) { for (MessageListener listener : client.getMessa...
funcom_train/51011158
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int addAnswer() throws Exception { if (answer.equals("")) throw new IllegalDataException("survey.emptyanswer"); try { Connection con = connect(); try { con.setAutoCommit(false); int id = qdb.allocateAnswer(con, qid); adb.insert(con, qid, id, answer, order); con.commit(); ...
funcom_train/7269839
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: // private void addFileTransfer(FileTransfer transfer, List l, List lazy) { // File f = transfer.getFile(); // // if(f == null) { // if(transfer instanceof LazyFileTransfer) // lazy.add(((LazyFileTransfer)transfer).getFileTransfer()); // } else { // ...
funcom_train/531520
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String serverUrl(String str) { int i = str.indexOf("//"); if (i< 0) return str; str = str.substring(i+2); i = str.indexOf("/"); if (i< 0) return str; return str.substring(i); } COM: <s> find the some file </s>
funcom_train/2557426
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Value read(Type type, NodeMap node, Map map) throws Exception { Class actual = readValue(type, node); Class expect = type.getType(); if(expect.isArray()) { return readArray(actual, node); } if(expect != actual) { return new ObjectValue(actual); ...
funcom_train/34851552
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addOnActivatedPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_TransitionBP_onActivated_feature"), getString("_UI_Property...
funcom_train/50335041
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Section getSectionFromBlockAndSeq(jmri.Block b, int seq) { for (int i = 0; i<mTransitSectionList.size(); i++) { TransitSection ts = mTransitSectionList.get(i); if (ts.getSequenceNumber()==seq) { Section s = ts.getSection(); if (s.containsBlock(b)) return s; } } return null; } COM:...
funcom_train/22233291
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setDirection(float x, float y, float z) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_DIRECTION_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("ConeSound3")); ((ConeSoundRetained)this.retained).setDirection(x,y,z); } COM: <s...
funcom_train/3582626
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void initializeLocations() { try { for (Iterator iter = baseGraph.getVertices().iterator(); iter.hasNext(); ) { Vertex v = (Vertex) iter.next(); Coordinates coord = (Coordinates) v.getUserDatum(getBaseKey()); if (coord...
funcom_train/19973322
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void updatePreferences() { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); shadowSd = false; try { shadowSd = prefs.getBoolean("shadowSd", false); } catch (Exception e) { Log.i(TAG, "Pref: bad shadowSd"); } Log.i(TAG, "...
funcom_train/3391356
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void writeConstructorHeader(ConstructorDoc constructor, boolean isFirst) { if (! isFirst) { writer.printMemberHeader(); } writer.println(); String erasureAnchor; if ((erasureAnchor = getErasureAnchor(constructor)) != null) { wr...
funcom_train/24002965
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void println(long x, final AsyncCallback<Boolean> callback) { synchronized (this) { print(x, new AsyncCallback<Boolean>() { public void onSuccess(Boolean b) { newLine(callback); } publ...
funcom_train/18113711
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private synchronized String getNextTag() { int nr = Integer.parseInt(tag.substring(1, tag.length() - 1)); nr++; tag = "" + nr; int nrzeros = 4 - tag.length(); for (int i = 0; i < nrzeros; i++) { tag = "0" + tag; } tag = "a" + tag + " "; return tag; } COM: <s> calculates a new tag </s>
funcom_train/15923098
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Node typeCheck(ContextVisitor tc) { TypeSystem ts = tc.typeSystem(); Type type = null; for (Expr e : elements) { if (type == null) { type = e.type(); } else { try { type = ts.leastCommonAncestor(type, e.type(), tc.context()); } ca...
funcom_train/21014969
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void moveSlider ( int x, int y ) { calcSlider ( ); if ( slideArea.contains ( x, y ) ) { if ( y < yOuter ) { yPointer = yOuter; } else if ( y > ( yOuter + hOuter ) ) { yPointer = yOuter + hOuter; } else { yPointer = y; ...
funcom_train/24595838
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void sync(int fps) { long timeNow; long gapTo; long savedTimeLate; gapTo = 1000 / fps + timeThen; timeNow = System.currentTimeMillis(); savedTimeLate = timeLate; try { while ( gapTo > timeNow + savedTimeLate ) { Thread.sleep(1); timeNow = System.currentTimeMillis(); } } cat...
funcom_train/27975520
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Response handleRequest(final Request request) { Class messageType = request.getClass(); Set<Module> handlers = getFramework().getModuleRegistry().getMessageHandlers( messageType ); if ( handlers.isEmpty() ) { return new Failure( "No handler for message type: " + messageType.getName() ); ...
funcom_train/50688018
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void close() { while (m_hWebSession.getServletWnd_top() != this) { m_hWebSession.getServletWnd_top().close(); } m_hWebSession.m_hServletWnd_top = m_hServletWnd_parent; m_bClosed = true; m_hServletWnd_parent = null; } COM: <s> this method will close this window and all windows...
funcom_train/4544297
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int set(int pos) { while (pos >= capacity) { doubleCapacity(); } int windex = pos >> 5; int mask = 0x80000000 >>> (pos & 0x1F); int word = map[windex]; int result = (word & mask) == 0 ? 0 : 1; ...
funcom_train/2401733
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getRowOriginalPosition(int rowIndex) { Object row = getDataList().get(rowIndex); int position = -1; for (int i = 0; i < getOriginalPositions().size(); i++) { position = i; if (getOriginalPositions().get(i) == row) break; } ...
funcom_train/13286587
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JScrollPane getJScrollPane2() { if (jScrollPane2 == null) { jScrollPane2 = new JScrollPane(); jScrollPane2.setBounds(new Rectangle(15, 194, 587, 169)); jScrollPane2.setViewportView(getBeschreibungTxt()); jScrollPane2.setPreferredSize(new Dimension(230, 18)); } return jScrollPane2; } C...
funcom_train/41096740
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void activateGameManager(){ // turn off GameMenu thread if( _gameManager == null ){ try{ _gameManager = new GameManager(); } catch( Exception e ){ e.printStackTrace(); } } ...
funcom_train/7620067
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void processNextLoader() { LoadListener loader = null; synchronized (mLoaderQueue) { loader = mLoaderQueue.peek(); } if (loader != null) { CallbackProxy proxy = loader.getFrame().getCallbackProxy(); String hostname = loader.proxyAuth...
funcom_train/5804304
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void replaceCurrentAssetRecord(OnmsNode scannedNode) { scannedNode.getAssetRecord().setId(this.getAssetRecord().getId()); scannedNode.setId(this.m_id); //just in case this.setAssetRecord(scannedNode.getAssetRecord()); } COM: <s> simply replaces the current asset record wit...
funcom_train/3512785
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ActionListener getFindInProjectAction() { if(this.findInProjectAction == null) { this.findInProjectAction = new ActionListener() { public void actionPerformed(ActionEvent evt) { TideBrowse.this.doSearch(view, jEdit.getFirstBuffer()); ...
funcom_train/22578479
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void formatException(StringBuilder sb, LoggingEvent event) { String[] s = event.getThrowableStrRep(); if (s != null) { int len = s.length; for(int i = 0; i < len; i++) { sb.append(s[i]); sb.append(Layout.LINE_SEP); } } } COM: <s> format the logging event...
funcom_train/33751177
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String getValidationMessage(Errors errors, String fieldName) { String message = ""; FieldError fieldError = errors.getFieldError(fieldName); if (fieldError != null) { message = messageSource.getMessage(fieldError.getCode(), null, "This field is invalid", ...
funcom_train/15582562
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addExercise(Exercise ex) { if (ex.RecordIndex() == Exercise.RECORDINDEX_UNSET) { System.out.println("Add exercise with record index not set"); RecordStoreManager.WriteExercise(ex); } else { System.out.println("Add exercise with record index s...
funcom_train/26467400
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean contains(MetaType type) { type = getBaseType(type); if (type.isPrimitive()) { return true; } String[] splitted = StringHelper.splitLast(type.getName(), '.'); if (!shouldCreateImport(splitted[0])) { return true; } ...
funcom_train/37144786
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addFlaggedDates(Date... flagged) { // Contract.asNotNull(flagged, "must not be null"); SortedSet<Date> oldFlagged = flaggedDates.getSelection(); if (flagged != null) { for (Date date : flagged) { flaggedDates.addSelectionInterval(date, date); ...
funcom_train/1387276
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void test_RouteSearchBox_Num0() throws Throwable { MainPage mp = (MainPage) getActivity(); final EditText routeSearchBox = (EditText) mp.findViewById(com.busstopalarm.R.id.RouteSearchBox); runTestOnUiThread(new Runnable() { public void run() { routeSearchBox.performClick(); } }); ...
funcom_train/17084423
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getBotOpciones() { if (botOpciones == null) {//GEN-END:|40-getter|0|40-preInit // write pre-init user code here botOpciones = new Command("Opciones", "Configuraciones del Juego", Command.ITEM, 0);//GEN-LINE:|40-getter|1|40-postInit // write post-init ...
funcom_train/17894904
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setConfiguration(long probeId, Map<String, String> configuration) { log.info("setting configuration for probe: " + probeId); Probe probe = probes.get(probeId); probe.setConfiguration(configuration); if (measurementProvider != null) { measurementProvider.setConfiguration(probe, ...
funcom_train/50865795
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void createResupplyMission() { // Create new resupply mission and dispose dialog. Settlement destination = (Settlement) destinationCB.getSelectedItem(); MarsClock arrivalDate = getArrivalDate(); Resupply newResupply = new Resupply(arrivalDate, destination); popu...
funcom_train/18544075
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String addSecondWeaponHead() { String text = ""; if (p_props.containsKey(PropertyNames.SECONDWEAPONHEAD)) { String swhBonus = (String) p_props.get(PropertyNames.SECONDWEAPONHEAD); if (swhBonus.equals("same") || (swhBonus.equals("less"))){ return ...
funcom_train/37414223
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void initResources() throws ServletException { try { resources = MessageResources.getMessageResources(resourceName); } catch (MissingResourceException e) { sLog.error("Cannot load internal resources from '" + resourceName + "'", e); ...
funcom_train/22077102
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean save(Variable variable) throws Exception { Application currentAppli = (Application) ExecutionContext.get().getSession().getAttribute( ConsoleCst.CURRENT_APPLICATION); boolean res = variableService.save(variable,currentAppli.getVariables()); ExecutionContext.get().getSession().setAttribut...
funcom_train/5245110
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void newSentMessage(Message msg) { List<Message> msgl = getOutbox(); boolean done = false; int i = 0; while (i < msgl.size()) { if (msg.compareTo(msgl.get(i)) == 0) { done = true; break; } else if (msg.compareTo(msgl.get(i)) < 0) { msgl.add(i, msg); done = true; break; ...
funcom_train/49626682
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean checkVariant(final Locale locale, final String var) { String variant = null; if ((var != null) && !var.equals("")) { variant = var; } if ((variant == null) && (locale.getVariant() == null)) { return true; } if (((variant != null) && (locale.getVariant() != null)) && variant....
funcom_train/34528781
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void importProject(ProjectDesigner designer, File archiveFile) throws Exception { InforamaContext ctx = InforamaContext.getInstance(); ProjectMgrConfiguration configuration = designer.getConfiguration(); ProjectMgr projectMgr = ctx.getProjectMgr(configuration); String projectName = designer.getPr...
funcom_train/36827154
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void run() { //1. system gets the airports to search from airports = coms.sQLGetAirports(); // 2. system creates the new Search Flights view SearchFlightsView gui = new SearchFlightsView(customer, airports); gui.go(); // 3. system opens the new Search Fligh...
funcom_train/31309331
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setPreferences(String compName, Vector pref, String status) { if(status.equals("0")||status.equals("1")) { setPreferences(compName, "0"); Enumeration e = pref.elements(); while(e.hasMoreElements()) { comps.put(compName+"_"+(String)e.nextElement(), status); } s...
funcom_train/51193200
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSecond(short second) throws OperationNotSupportedException { if (second > 60) { String err = "seconds " + second + " must be less than 60"; throw new IllegalArgumentException(err); } else if (second < 0) { String err = "seconds "+second+" cannot ...
funcom_train/19036525
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public PostFolderCollection getAllPostFolders() { PostFolderCollection allPostFolders = new PostFolderCollection(); Iterator i = this.folders.values().iterator(); StoredPostFolder tempPostFolder; while(i.hasNext()) { tempPostFolder = (StoredPostFolder)i.nex...
funcom_train/31431309
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void setOperations(List<Operation> ops) { List<Operation> ops2 = new ArrayList<Operation>(ops.size()); for (Operation op : ops) { ops2.add(op); } //Collections.copy(ops2, ops); Collections.sort(ops2); this.operations = ops2; } COM: <s> this sorts the list of operations...
funcom_train/31929716
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int readHexValFromBuffer(int start) throws IOException { int result = 0; for (int i = 0; i < 8; i++) { int hexVal = hexToInt(buffer[start + i]); if (hexVal == -1) break; result <<= 4; result |= hexVal; } return result; } COM: <s> read a hexadecimal valu...
funcom_train/2993859
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void setSelectedSwatch(int index) { for (int i=0; i<Ns; i++) { lowerLeftLineColor[i] = Color.black; upperRightLineColor[i] = Color.white; } if (index >= 0) { lowerLeftLineColor[index] = Color.white; upperRightLineColor[index] = Color.black; } repaint(); } ...
funcom_train/12922922
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public VideoFormat getCodec() { VideoFormat value; switch (codec) { case Coder.BIT2 | Coder.BIT0: value = VideoFormat.VP6ALPHA; break; case Coder.BIT2: value = VideoFormat.VP6; break; case Coder.BIT1: value = V...
funcom_train/38224184
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testNest() throws Exception { loadOntology( "/ontologies/nest.xml" ); runCategorisationTest( "/documents/apple.xml", new String[]{ "co=APPLE,sc=100,crel=100,drel=100,defrel=100,span=[1]", "co=VEG,sc=100,crel=100,drel=100,defrel=100,span=[1]", "co=FRUIT,sc=100,crel=100,drel=100,defrel=...
funcom_train/5265191
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public PrivateKey decodeRSAPrivateKey(byte[] ekey) { try { PKCS8EncodedKeySpec spec = new PKCS8EncodedKeySpec(ekey); KeyFactory factory = KeyFactory.getInstance("RSA", "BC"); return (RSAPrivateKey) factory.generatePrivate(spec); } catch (Throwable t) { Logger.getLogger("").log(Level.SEVERE...
funcom_train/16630614
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getButton_add_komplex() { if (button_add_komplex == null) { button_add_komplex = new JButton("add_Komplex"); button_add_komplex.setActionCommand("erstelle"); button_add_komplex.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.Action...
funcom_train/3169437
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void subtractElements(int to, PrimArithmeticArray other, int count, int from) { int n = Math.min(other.count() - from, count() - to); if (count > n) { throw new IndexOutOfBoundsException(); } if (count >= 0) { n = count; } subtractData(to, other, from, n); } COM: <s> arithmetic subtrac...
funcom_train/32959989
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testClearVariablesInPushedContext() { te.setValue("#{var1}", "pie"); te.pushContext(); te.setValue("#{var2}", "zoom"); Object result1 = te.evaluate("#{var1}#{var2}"); // Pie and zoom should be available assertEquals(result1, "piezoom" ); // ClearVariables should only clear pie ...
funcom_train/39167208
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Dimension preferredLayoutSize(Container target) { int membersCnt = target.getComponentCount(); Dimension[] componentPrefSizes = new Dimension[membersCnt]; //store the sizes for(int i = 0; i < membersCnt; i++){ componentPrefSizes[i] = target.getComponent(i).getPreferredSize(); } ...
funcom_train/20364070
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getChildPoints(String childName) { if ( !children.contains(childName) ) { throw new IllegalArgumentException("Unknown child skill : "+childName+" in " + getName()); } else if ( childrenPoints.containsKey(childName) && getPoints()==6 ) { return childrenPoints.get( childName ) ; } else { ...