__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/8264036
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getTextContent() throws DOMException { StringBuffer sb = new StringBuffer(); synchronized(this.treeLock) { ArrayList nl = this.nodeList; if(nl != null) { Iterator i = nl.iterator(); while(i.hasNext()) { Node node = (Node) i.next(); short type = node.getNodeType(); s...
funcom_train/37854349
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Date getWorkingContentsDate() { if (myLocalContentsDate == null) { if (getFile() != null && getKind() == SVNNodeKind.FILE) { myLocalContentsDate = new Date(getFile().lastModified()); } else { myLocalContentsDate = new Date(0); ...
funcom_train/15399618
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private MouseEvent convertMouseEvent(MouseEvent mevt) { if ((getParent() != null) && getParent() instanceof DICOMImagePanel) { // Don't use SwingUtilities.convertMouseEvent. The modifiersEx some // how get changed. MouseEvent e2 = mevt; e2.setSource(getP...
funcom_train/3923667
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString () { StringBuffer ret = new StringBuffer(); Iterator i = requests.iterator(); while ( i.hasNext() ) { ret.append(((Request)i.next()).toLogEntry()); ret.append("\n"); } return ret.toString(); } COM: <s> returns string representation of request log using r...
funcom_train/19891081
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void ignoreCallAidl() { try { telephonyService.silenceRinger(); telephonyService.endCall(); } catch (RemoteException e) { e.printStackTrace(); Log.e("call prom...
funcom_train/1550935
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void changeAssignmentVar(String oldLabel, String newLabel) { if (newLabel.equals(oldLabel)) return; inputVE.setLabel(newLabel); if (oldLabel != null) { input = input.replaceFirst(oldLabel, newLabel); localizedInput = localizedInput.replaceFirst(oldLabel, newLabel); } assignmentVar =...
funcom_train/2903186
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Icon getLargeIconMap(Object key){ if(largeImgTable == null){ largeImgTable = new Hashtable(100); } if(largeImgTable.containsKey(key)){ return (Icon)largeImgTable.get(key); } StringBuffer sb = new StringBuffer(iconPath.toString()).append("48x48").append(File.separator).append(key+".png"); ...
funcom_train/21105560
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JMenuItem getMiOperators() { if (miOperators == null) { miOperators = new JMenuItem("Users"); miOperators.addActionListener(new OperatorsListener()); miOperators.setMnemonic('U'); miOperators.setEnabled(SessionInfo.userAccessLevel <= 1); } return miOperators; } COM...
funcom_train/25049499
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected CurrencyManager getCurrencyManager(String currencyCode) { CurrencyManager moneyAmountProvider = getCurrencyCode2AmountProvider().get(currencyCode); if(moneyAmountProvider == null) { if(log.isWarnEnabled()) { log.warn("Do not know nothing about currency '" ...
funcom_train/2578942
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Paint lookupBoxPaint(int series, int item) { Paint p = getBoxPaint(); if (p != null) { return p; } else { // TODO: could change this to itemFillPaint(). For backwards // compatibility, it might require a useFillPaint flag. ...
funcom_train/24446818
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean deleteDirectory(File directory) { File[] contents = directory.listFiles(); for (int i = 0; i < contents.length; i++) { File next = contents[i]; boolean result = deleteFile(next); if (!result) return false; ...
funcom_train/22284284
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setValue(Object path) { if (path instanceof String) { this.path = (path == null) ? "" : (String)path; } else if (path instanceof URL) { this.path = ((URL)path).toString(); } else if (path == null) { this.path = null; } textBox.setText(this.path); } COM: <s> set the current ...
funcom_train/2290696
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void startEngine() { if (m_engineState != CmsPublishEngineState.ENGINE_STARTED) { m_engineState = CmsPublishEngineState.ENGINE_STARTED; // start publish job if jobs waiting if ((m_currentPublishThread == null) && !m_publishQueue.isEmpty()) { ...
funcom_train/3022376
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void resetPositions() { UMLType[] types = getTypes(); int size = (int)(Math.sqrt(types.length) * 1000); Random r = new Random(); for (int i = 0; i < types.length; i++) { types[i].setLocation(r.nextInt(size), r.nextInt(size)); } } COM: <s> initialises the positi...
funcom_train/34673445
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSaveAndLoadConfiguration() throws Exception { Configuration config; config=new Configuration(); config.setName("Peter"); config.setVersion("1.0"); loader.saveConfiguration(TestNamespace, config); Thread.sleep(10); config=loader.loadCo...
funcom_train/1007290
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int hashCode() { long bits = Double.doubleToLongBits(m00); bits = bits * 31 + Double.doubleToLongBits(m01); bits = bits * 31 + Double.doubleToLongBits(m02); bits = bits * 31 + Double.doubleToLongBits(m10); bits = bits * 31 + Double.doubleToLongBits(m11); bits = bits * 31 + Double.doubleToLongBits...
funcom_train/43245727
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetInsuranceType() { System.out.println("setInsuranceType"); String insuranceType = ""; InsuranceDG1Object instance = new InsuranceDG1Object(); instance.setInsuranceType(insuranceType); // TODO review the generated test code an...
funcom_train/19077243
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void initializeBeanFactory(String resourcePath, boolean fromFile) throws IOException { if (resourcePath == null) { throw new IOException(); } Resource res; if (fromFile) { res = new FileSystemResource(resourcePath); } else { re...
funcom_train/37587256
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void textGetLine1() throws BadLocationException { final String s = "a\n"; _doc.insertString(0, s, null); _doc.setCurrentLocation(2); assertEquals("#0.0", 2, _doc.getCurrentLine()); } COM: <s> test returning second line in a two line document </s>
funcom_train/44561289
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public MatroskaFileFrame getNextFrame() { if (FrameQueue.isEmpty()) { _fillFrameQueue(); } // If FrameQueue is still empty, must be the end of the file if (FrameQueue.isEmpty()) { return null; } return (MatroskaFileFrame)FrameQueue.removeFirst(); } COM: <s> get the next m...
funcom_train/28366812
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public XmlDataAdaptor createChild(String tagName) { Node node = document.createElement(tagName); XmlDataAdaptor childAdaptor = newAdaptor(node); /* NOTE: added 11/21/03 CKA */ this.childNodes.add(childAdaptor.mainNode); mainNode.appendChild(node); ...
funcom_train/17988314
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public EntryMenuPanel getEntryMenuPanel() { // Scan the vertical panels... for (Widget w: m_verticalPanels) { // ...and if we find an entry menu panel... if ((null != w) && (w instanceof EntryMenuPanel)) { // ...return it. return ((EntryMenuPanel) w); } } // If we get here, an entry ...
funcom_train/12847485
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double swe_radnorm(double x) { double y; y = x % SwephData.TWOPI; if (Math.abs(y) < 1e-13) { y = 0; /* Alois fix 11-dec-1999 */ } if( y < 0.0 ) { y += SwephData.TWOPI; } return(y); } COM: <s> normalizes a double to the range 0 </s>
funcom_train/38833432
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void connect() { // use memory-Only Database final String url = "jdbc:hsqldb:mem:toolkit"; try { Class.forName("org.hsqldb.jdbcDriver").newInstance(); connection = DriverManager.getConnection(url, "sa", ""); } catch (final Exception e) { ...
funcom_train/50112724
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String getComment(SoapRequest soapRequest) { String result = " one out of {"; for (int i=0; i<enumList.length; i++) result += "'" + enumList[i] + "', "; result = result.substring(0, result.lastIndexOf(',')) + "} "; ...
funcom_train/34815900
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void bubbleSort(ImageData[] images) { System.out.print("Sorting by BubbleSort..."); for (int end = images.length; end > 1; end --) { for (int current = 0; current < end - 1; current ++) { if (images[current].getNumberOfViews() > images[current+1].getNumberOfViews()) { exchange(images, cu...
funcom_train/10874075
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addTransition(Transition t) { if (numTransitions == transitionsArray.length) { final Transition[] newArray = new Transition[ArrayUtil.oversize(1+numTransitions, RamUsageEstimator.NUM_BYTES_OBJECT_REF)]; System.arraycopy(transitionsArray, 0, newArray, 0, numTransitions); transit...
funcom_train/31702737
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void interactionBegin(int iX, int iY, boolean isShiftDown, boolean isControlDown) { if (isControlDown && isShiftDown) { alignChangeGlobalFont(); } else if (isControlDown) { alignRotateLayer(); } else if (isShiftDown) { alignRotateAxisLabels(); ...
funcom_train/24118332
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void doHelp(Event event) throws InterruptedException { ZksampleMessageUtils.doShowNotImplementedMessage(); // we stop the propagation of the event, because zk will call ALL events // with the same name in the namespace and 'btnHelp' is a standard // button in this application and can often appe...
funcom_train/14322892
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public OpUser getUserById(OpProjectSession session, OpBroker broker, long id) { OpUser user = (broker.getObject(OpUser.class, id)); if (user != null) { return user; } throw new XServiceException(session.newError(ERROR_MAP, OpUserError.USER_NOT_FOUND)); } COM: <s> returns th...
funcom_train/2537987
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private float getWidthXYGlobal() { Vector3D p = this.getWidthXYVectLocal(); Matrix m = new Matrix(this.peerComponent.getGlobalMatrix()); m.removeTranslationFromMatrix(); p.transform(m); return p.length(); // Vector3D[] v = this.getVectorsGlobal(); // float[] minMax = ToolsGeometry.getMinXYMaxXY(v)...
funcom_train/21633573
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean getBoolean(String name, boolean required, boolean defaultValue) { String str = getString(name,required,null); if( str==null ) return defaultValue; if( !str.equalsIgnoreCase("true") && !str.equalsIgnoreCase("false") ) { throw new EncogError("Property " + name + " has an invalid...
funcom_train/32308004
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Temp calleeReg(int callee_idx) { assert callee_done; assert callee_idx < callee_regs.size() && callee_idx >= 0 : "Callee idx=" + callee_idx + " Size=" + callee_regs.size(); return (Temp)callee_regs.get(callee_idx); } COM: <s> return the register for this callee saved register index...
funcom_train/45749914
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addConclusionRulePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Conclusion_conclusionRule_feature"), getString("_UI_Prop...
funcom_train/35081185
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Revision createRevision (User author, String ref, String info) { Revision re = new Revision(); re.setDate (new Date()); re.setInfo (info); re.setRef (ref); re.setAuthor (author); db.save (re); return re; } COM: <s> factory method used to crea...
funcom_train/41582087
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void backspace() { String messageString; if(mCursorIndex > 0) { messageString = "Deleted "+ PRONUNCIATION_MAP.get(""+mEnteredText.get(--mCursorIndex)); mEnteredText.remove(mCursorIndex); } else { messageString = "You are at the start of your text. There is no " + "previous ch...
funcom_train/45918747
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void startScheduler() { logger.info("Starting Scheduler..."); try { tubeletLoader.getContainer().getScheduler().start(); logger.info("Scheduler started."); } catch (SchedulingException se) { throw new RuntimeException("Error while starting Sc...
funcom_train/27730081
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getCalendarDaysAfter(final Date date1, final Date date2) { Date newDate1 = createDate(getYear(date1), getMonth(date1), getDayOfMonth(date1)); Date newDate2 = createDate(getYear(date2), getMonth(date2), getDayOfMonth(date2)); int daysAfter = (new Double(getDaysAfter(newDate1, newDate2))).intValue...
funcom_train/37981890
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public NodeProxy parentWithChild(DocumentImpl doc, NodeId nodeId, boolean directParent, boolean includeSelf) { sort(); lastPart = getPart(doc, false, initalSize); return lastPart == null ? null : lastPart.parentWithChild(doc, nodeId, directParent, includeSelf); } COM: <s> the meth...
funcom_train/46836997
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void showItems(){ jworkItem = null; this.removeAll(); Iterator iter = iConfig.aMainList.iterator(); jworkItem = new JLabel[iConfig.aMainList.size()]; int i=0; while(iter.hasNext()){ oProp = (EBIWorkstationItemsProperties)iter.next(); addWorkstationItem(i,oProp.getClassP...
funcom_train/25308211
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Property getPropertyFromName(String propertyName) { Property result = null; for (Iterator<Property> iterator = getProperties().iterator(); iterator.hasNext() && result == null;) { Property prop = iterator.next(); if (prop.getName().equals(propertyName)) { result = prop; ...
funcom_train/47978940
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public V remove( K mainKey, SK subKey ) { V obj = null; if ( this.containsSubKey( mainKey, subKey ) ) { obj = _innerDoubleMap.get( mainKey ).remove( subKey ); if ( _innerDoubleMap.get( mainKey ).isEmpty() ) { _innerDoubleMap.remove( mainKey ); } } return obj; } COM: <s> removes a value ...
funcom_train/4537072
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String installPack(File pack) { if (!containsEmoticonPList(pack)) { return null; } String name = null; // Copy to the emoticon area try { URLFileSystem.copy(pack.toURI().toURL(), new File( EMOTICON_DIRECTORY, pack.getName())); File rootDirectory = unzipPack(pack, EMOTICON_DIRECT...
funcom_train/42652411
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testClassMapNotModifiable() { ObjectModel model = new ObjectModel(new ApplicationDummy()); try { model.getAllClasses().put("test", new ObjectClassDummy(model)); fail("Classes map should not be modifiable directly"); } catch(UnsupportedOperationExcept...
funcom_train/16951233
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private MembershipFunction fclTreeFuzzifyTermGenBell(Tree tree) { if( debug ) Gpr.debug("Tree: " + tree.toStringTree()); Tree child = tree.getChild(0); double a = Gpr.parseDouble(child); double b = Gpr.parseDouble(tree.getChild(1)); double mean = Gpr.parseDouble(tree.getChild(2)); MembershipFunction ...
funcom_train/23943268
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setKeyStores(Iterable<AdvanceKeyStore> keystores) { this.keystores.clear(); Iterables.addAll(this.keystores, keystores); login.setKeyStores(Interactive.select(keystores, new Func1<AdvanceKeyStore, String>() { @Override public String invoke(AdvanceKeyStore param1) { return param1.name;...
funcom_train/12148231
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getLastModified() { NodeProperty lastModified = getProperty(LAST_MODIFIED); if (lastModified == null) { return null; } else { if (lastModified.getValue() instanceof Date) { return format.format((Date) lastModified.getValue()); ...
funcom_train/38307737
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setLineDash(float phase, float unitsOn, float unitsOff) { if (unitsOff > 0.0F) { cb.setLineDash(unitsOn, unitsOn, phase); } else if (unitsOn > 0.0F) { cb.setLineDash(unitsOn, phase); } else { cb.setLineDash(phase); } } COM: <s> sets the current line dash </s>
funcom_train/22371902
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JLabel getStatusBarDeviceLabel() { if (statusBarDeviceLabel == null) { statusBarDeviceLabel = new JLabel(context.getBean("deviceIcon", IIconFactory.class).getIcon(lookAndFeelManager.getCurrentLookAndFeel().getPaintForSpecialControls())); } return statusBarDeviceLabe...
funcom_train/32316129
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addOwlClassPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ClassAssertion_owlClass_feature"), getString("_UI_PropertyDesc...
funcom_train/31071310
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void initialize() { // set start time startTime = System.currentTimeMillis(); // add initial edges to agenda for (Iterator it = edgeFactory.createInitialEdges().iterator(); it.hasNext(); ) { addEdgeToAgenda((Edge)it.next()); } // sort ...
funcom_train/10599295
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setInternalPipelineDescription(Processor.InternalPipelineDescription desc) { this.processingPipeline = desc.processingPipeline; this.pipelinesManager = desc.pipelineManager; this.lastProcessor = desc.processor; this.internalPipelineDescription = new Processor.Intern...
funcom_train/26018851
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void open() throws IOException { // Open socket connection socket = getSocketConnection(); // Open I/O stream inputStream = socket.getInputStream(); outputStream = socket.getOutputStream(); // Create the chunk receiver receiver = new ChunkReceiver(this, inputStream); receiver.start(); ...
funcom_train/11383011
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void render(Class<? extends SubView> cls) { int saved = context().nestLevel; getInstance(cls).renderPartial(); if (context().nestLevel != saved) { throw new WebAppException("View "+ cls.getSimpleName() +" not complete"); } } COM: <s> render a sub view </s>
funcom_train/21213126
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean suspendService() { serviceError = null; if(getServiceState() == Service.RUNNING) { suspendMaxConnection = maxConnection; suspendMaxConnectionMsg = maxConnectionMsg; maxConnection = 0; maxConnectionMsg = "Service is suspended."; setServiceState(Service.SUSPENDED); logger.log(L...
funcom_train/22969533
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException { PortletContext context = getPortletContext(); String language = request.getLocale().getLanguage(); language = languages.indexOf(language) < 0?defaultLanguage:"_" + language; String url = page + langu...
funcom_train/39196040
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void start(AjaxRequestTarget target) { setVisible(true); add(new DynamicAjaxSelfUpdatingTimerBehavior( Duration.ONE_SECOND) { /** * */ private static final long serialVersionUID = 1L; @Override protected void onPostProcessTarget(AjaxRequestTarget target) { Progressi...
funcom_train/32789576
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setElementType(String sElementType) { // Trim to single word sElementType = sElementType.trim(); int nSpacePos = sElementType.lastIndexOf (' '); if (nSpacePos > -1) { sElementType = sElementType.substring (0, nSpacePos); } m_sElementType = sElementType; ...
funcom_train/42943979
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long getEventCount(long timeStart, long timeEnd) { try { long count = EventData.getRecordCount(this.getAccountName(), this.getDeviceName(), timeStart, timeEnd); return count; } catch (DBException dbe) { dbe.printException(); return -1L; } } COM: <s> ge...
funcom_train/35321654
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean addAll(Collection<? extends E> c) { Object[] a = c.toArray(); int numNew = a.length; ensureCapacityInternal(size + numNew); // Increments modCount System.arraycopy(a, 0, elementData, size, numNew); size += numNew; return numNew != 0; } COM: ...
funcom_train/2585654
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testConstructor() { // try a null source CategoryToPieDataset p1 = new CategoryToPieDataset(null, TableOrder.BY_COLUMN, 0); assertNull(p1.getUnderlyingDataset()); assertEquals(p1.getItemCount(), 0); assertTrue(p1.getKeys().isEmpty()); ...
funcom_train/11753797
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public SubgraphBuilder excludeAttribute(String path) { StringTokenizer tokens = new StringTokenizer(path, "."); SubgraphNode node = rootNode; while (tokens.hasMoreTokens()) { String token = tokens.nextToken(); if (tokens.hasMoreTokens()) { node = node.getChild(token, false); } else { //...
funcom_train/44704821
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean canApplyWorkflow(User user, ContentItem item) { if ( user == null ) { return false; } if ( !hasPermission(user, CMS_EDIT_ITEM) ) { return true; } if ( Workflow.getObjectWorkflowID(item) != null ) { return false; ...
funcom_train/44011639
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testReadAllEmployees() throws Exception { System.out.println("readAllEmployees"); EmployeeDAO instance = new EmployeeDAO(); ArrayList<EmployeeBO> expResult = null; ArrayList<EmployeeBO> result = instance.readAllEmployees(); assertEquals(exp...
funcom_train/9786162
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toMathPiperString(ExpressionValue ev, boolean substituteVariables) { String MathPiperString; if (!ev.isExpressionNode()) { ev = new ExpressionNode(kernel, ev); } MathPiperString = ((ExpressionNode) ev).getCASstring(ExpressionNode.STRING_TYPE_MATH_PIPER, !substituteVariables); ...
funcom_train/25505761
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JComboBox getNumbers() { if (numbers == null) { numbers = new JComboBox(new String[]{}); numbers.addItemListener(new ItemListener() { @Override public void itemStateChanged(ItemEvent e) { if (e.getStateChange() == ItemEvent.SELECTED) { String old = number; number = (Strin...
funcom_train/18149991
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addAttachment(Attachment attachment) { // create the association set if it doesn't exist already if(_attachment == null) _attachment = new AssociationSetImpl<Attachment>(); // add the association to the association set getAttachment().add(attachment); // make the inverse link...
funcom_train/41386570
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Prop findProperty(Property p) { String uri = p.getURI(); Prop prop = getPropertyByURI(uri); if (prop == null) { String name = findNameForProperty(p); prop = getPropertyByURI(uri); if (prop == null) { prop = makeProp(uri, name);...
funcom_train/35047932
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean getLimitWarning() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue) get_store().find_element_user(LIMITWARNING$4, 0); if (target == null) { return false; } return...
funcom_train/41405671
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int compareTo(Object o) { Pair another = (Pair) o; int comp = ((Comparable) first()).compareTo(another.first()); if (comp != 0) { return comp; } else { return ((Comparable) second()).compareTo(another.second()); } } COM: <s> compares this code pair code to another objec...
funcom_train/25565222
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void initView() { JComponent panel = getLayout().initViewsPanel(); getParent().addMultiViews(panel); String[] formNames = getFormNames(); for (int i = 0; i < formNames.length; i++) { String formName = formNames[i]; MultiObjectForm form = getMultiForm(formName); form.initView(); linkFor...
funcom_train/23216834
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addWSDLQueryPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_WSDLLocation_wSDLQuery_feature"), getString("_UI_PropertyDesc...
funcom_train/7995043
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Unscheduled createUnscheduledObject(Element unscheduledEl) throws Exception { String id = unscheduledEl.getChildText("id"); //load the associated userstories Element userstoriesEl = unscheduledEl.getChild("userstories"); List<Element> userstoriesElList = userstoriesEl.getChildren(); ArrayLis...
funcom_train/21116454
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void saveCurrentProperties(String dirName) { try { File dir = new File(dirName); File propFile = new File(dir, DATA_FILE_NAME); propertiesHandler.writePropertiesToFile(properties, propFile); } catch (Exception e) { ...
funcom_train/24218983
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void informSignalListener(Signal signal) { SignalListener.SignalEvent event = new SignalListener.SignalEvent(this, signal); Enumeration enumeration = this.vectorSignalListener.elements(); while (enumeration.hasMoreElements()) { ((SignalListener) enumeration.nextEl...
funcom_train/20215853
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Command getChangePingCommand() { if (changePingCommand == null) {//GEN-END:|141-getter|0|141-preInit // write pre-init user code here changePingCommand = new Command("Change pin...", Command.ITEM, 2);//GEN-LINE:|141-getter|1|141-postInit // write post-init us...
funcom_train/50911385
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isOrthogonal() { for (int i = 0; i < rows - 1; i++) { for (int j = i + 1; j < rows; j++) { double dp = rowDotproduct(i, j); if (!Real.isZero(dp, Real.getEpsilon())) { return false; } } } ...
funcom_train/5346508
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testStringConstructorForNotTimestampedLocs() throws Exception { for(int i=0; i<HugeTestUtils.VALID_NONTIMESTAMPED_LOCS.length; i++) { try { AlternateLocation al = AlternateLocation.create(HugeTestUtils.VALID_NONTIMESTAMPED_LOCS[i]); } catch(IOException e) { fail("failed on loc: ...
funcom_train/13669436
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setWritePosition(long position) { if (position != this.currentWritePositionInWA) { this.currentWritePositionInWA = position; if (currentWriteAction != null) { addWriteAction(currentWriteAction); } this.currentWriteAction = new DefaultWriteAction(position); } else { if (currentW...
funcom_train/47983125
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void requestLogin(Credential credential, boolean singleLogin) { String networkName = credential.getNetworkName(); Log.i(TAG, "Start logging into " + networkName); loop.notifyAboutProgress(networkName); Intent intent = createLoginIntent(credential, singleLogin); l...
funcom_train/9736912
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void init(PostmanNetwork probObj_p) throws NotImplementedException { if (!probObj_p.isDirected()) throw new NotImplementedException ("Only directed graph/network is supported. For mixed and undirected graph/network, use com.jOptima.algorithm.network.postman.LinHeuristicAlgorithm class."); interna...
funcom_train/17248200
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void processImage(imageType image) throws Exception { if (image.hasdata()) { if (!squelch) { ErrorManager.getInstance().addError(Level.WARNING, "Raw data images not supported."); } } if (image.hasinit_from()) { put(image.getid().toString(), getFileName(image .getinit_from()...
funcom_train/23393990
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addDescriptionPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_StateOfWorld_description_feature"), getString("_UI_Property...
funcom_train/20240523
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void trainClassifier(File dir, String... args) throws Exception { for (File file : dir.listFiles()) { if (file.getName().matches("training-data-\\d+.svmlight")) { TKSVMlightClassifierBuilder.train(file.getPath(), args); } } } COM: <s> train the ovasvmtk classifier </s>
funcom_train/48415394
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void init() { if (null == comments) { comments = SnipSpaceFactory.getInstance().getComments(snip); } if (null == users) { users = new HashSet(); Iterator iterator = comments.iterator(); while (iterator.hasNext()) { Snip snip = (Snip) iterator.next(); ...
funcom_train/5618451
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void procedures(PyObject qualifier, PyObject owner, PyObject procedure) { clear(); String q = getMetaDataName(qualifier); String o = getMetaDataName(owner); String p = getMetaDataName(procedure); try { this.fetch.add(getMetaData().getProcedures(q...
funcom_train/18186415
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public User findByLoginAndPassword(String login, String password) { Session session = getSession(); Query query = session.createQuery("from User where lowercase(login) = :login and " + "password = :password"); query.setParameter("login", login.toLowerCase()); query.setParameter("password", passwor...
funcom_train/23411103
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addConceptNamePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Role_conceptName_feature"), getString("_UI_PropertyDescript...
funcom_train/47891569
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Node toXML(Document document) { Node result = document.createElement("config"); for(String key : keySet()) { Property p = properties.get(key); Element propElem = document.createElement("value"); propElem.setTextContent("" + p.value); propElem.setAttribute("id", key); propElem.setAttribu...
funcom_train/7981876
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void position(long p) throws IOException { long blockStart = (input.position() - maxOffset) / buffer.length * buffer.length; long blockEnd = blockStart + maxOffset; if ((p >= blockStart) && (p < blockEnd)) { // Desired position is somewhere inside current b...
funcom_train/19423355
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getDisplayAccessCountInfo() { Locale locale = null; HttpServletRequest req = EaasyStreet.getServletRequest(); if (req != null) { locale = req.getLocale(); } MessageResources appResources = EaasyStreet.getApplicationResources(); return appResources.getMessage(locale, "string.accessCou...
funcom_train/18019164
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected long getCurrentVolumeSize() { if (file == null) { return -1;// FILE_NOT_AVAILABLE; } try { flush(); } catch (IOException e) { e.printStackTrace(); } // create a new instance file = new File(file.getAbsolutePath()); // not the first volume, just return the actual length // and...
funcom_train/9709433
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public QName getSimpleSchemaTypeName(String typeName) { QName qName = (QName) simpleTypetoxsd.get(typeName); if(qName == null){ if((typeName.startsWith("java.lang")||typeName.startsWith("javax.")) && !Exception.class.getName().equals(typeName)){ ...
funcom_train/15452245
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void authenticate(String username, String password) throws UnauthorizedException { try { IAccessControlController accessController = getAccessController(); if(accessController != null){ User user = accessController.getUserByLogin(username); if (!user.getPassword().equal...
funcom_train/47393026
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private ResultSet buildResults(Connection conn, String sql) throws SQLException { System.out.println("building results..."); PreparedStatement st = conn.prepareStatement(sql, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); System.out.println("prepared statement..."); ResultSet results = st.exec...
funcom_train/27711259
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void endOfInput(int entityName, boolean moreToFollow) throws Exception { if (fDTDScanner != null && fScanningDTD){ fDTDScanner.endOfInput(entityName, moreToFollow); } fDispatcher.endOfInput(entityName, moreToFollow); } COM: <s> handle the end of input </s>
funcom_train/14520248
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public HashMap getHardTokenProfileIdToNameMap(Admin admin){ HashMap returnval = new HashMap(); Collection result = null; try{ result = hardtokenprofilehome.findAll(); Iterator i = result.iterator(); while(i.hasNext()){ HardTokenProfileDataLocal next = (HardTokenProfileDataLocal) i.next(); ...
funcom_train/50479019
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean checkFileExists(String relativePath) { IResource resource; if (relativePath.startsWith("/")) { resource = project.getWorkspace().getRoot().findMember(relativePath); } else { resource = project.getFile(relativePath); } if (resource == null || !resource.exists()) ...
funcom_train/15635063
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void write(Element element) throws IOException { Clip clip = new WriterClip(0, 0, element.getWidth(), element .getHeight()); for (y = 0; y < element.getHeight(); y++) { element.writeLine(clip); newLine(); } if (flush == FLUSH_ELE...
funcom_train/29870350
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JMenuItem getJMenuItemCloseAllNotes() { if (jMenuItemCloseAllNotes == null) { jMenuItemCloseAllNotes = new JMenuItem(); jMenuItemCloseAllNotes.setText("Close All Notes"); jMenuItemCloseAllNotes.setMnemonic(KeyEvent.VK_C); jMenuItemCloseAllNotes.addActionListener(getJMenuListener()); } r...