__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/33388700
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testInvalidMovesDice() throws Exception { BackgammonBoardImpl board = new BackgammonBoardImpl(); SamplePlayer player = new SamplePlayer(); DiceImpl dice = new DiceImpl(); for (int i = 0; i < 1; i++) { TestUtil.generateNext(dice); PlayerMove move = player.getMove(board, dice); TestUti...
funcom_train/21955395
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeLogger(String pKey) { if (mMonitoredLogStrings.contains(pKey)) { mMonitoredLogStrings.remove(pKey); Pooka.getResources().removeValueChangeListener(this, pKey + ".logLevel"); getLogger().log(Level.FINE, "removed key " + pKey); } } COM: <s> removes a logger from the...
funcom_train/36012251
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean canFinish() { // return (this.reviewId != null && ((this.reviewers != null) && this.reviewers.size() > 0) // && this.author != null); return reviewIdPage.isPageComplete() && reviewerPage.isPageComplete(); } COM: <s> checks if the wizard can finish </s>
funcom_train/38287561
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public NamespaceManager newUpdatedManager() { Map<String, String> prefixes = getPrefixes(); if (prefixes == null) throw new IllegalStateException("Errors on component."); //$NON-NLS-1$ NamespaceManager child = new NamespaceManager(nsManager); for (String namespace : prefixes.keySet()) { String pref...
funcom_train/37841650
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object getMultiHandle(String serviceName, Class multiHandleClass) throws SynthesisException { if(!handleMap.containsKey(serviceName)) return null; Multihandle retHandle = null; List handleList = (List)handleMap.get(serviceName); if(handleList.size() > 0) { retHandle = M2MI.getMul...
funcom_train/17724424
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void configureActionListener(UIComponent component, String name, String value) { if (value == null) { return; } if (isValueReference(value)) { MethodBinding mb = getFacesContext().getApplication(). createMethodBinding(value...
funcom_train/40542501
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String formatText(String text) { // Replace tabs with spaces text = text.replaceAll("\t", " "); // Replace newlines with spaces (for any platform) text = text.replaceAll("\r\n", " "); text = text.replaceAll("\n", " "); return text; } COM: <s> form...
funcom_train/31022412
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void createTabFolder(Composite container) { folder = new TabFolder(container,SWT.FLAT); folder.setBackground(factory.getBackgroundColor()); folder.setForeground(factory.getForegroundColor()); GridData gd = new GridData(GridData.FILL_BOTH ); gd.horizontalSpan = 2; GridLayout layout = new Gr...
funcom_train/36856102
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long createNote(String title, String lat, String lon) { ContentValues initialValues = new ContentValues(); initialValues.put(KEY_TITLE, title); initialValues.put(KEY_LAT, lat); initialValues.put(KEY_LON, lon); return mDb.insert(DATABASE_TABLE, null, initialValue...
funcom_train/18623926
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Element addKeywords (Element md, Element keywords) throws Exception { Element root = (Element)md.getChild("identificationInfo", gmd).getChildren().get(0); boolean ok = addAfter(root, keywords, "descriptiveKeywords", gmd); if (!ok) { throw new BadXmlResponseEx("The metadata did not have a descri...
funcom_train/5346123
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addXMLToResponse(Response response, FileDesc fd) { List docs = fd.getLimeXMLDocuments(); if( docs.size() == 0 ) return; if( docs.size() == 1 ) response.setDocument((LimeXMLDocument)docs.get(0)); } COM: <s> adds xml to the response </s>
funcom_train/934285
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected HttpServletRequest processMultipart(HttpServletRequest request) { if (!"POST".equalsIgnoreCase(request.getMethod())) { return (request); } String contentType = request.getContentType(); if ( (contentType != null) && contentType.startsWith("multipart/form-data")) { r...
funcom_train/40306390
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void mouseDragged(MouseEvent e) { // if we clicked the right-mouse button before if ( m_bDragEnabled ) m_gui.getRenderer().setRotation((e.getY() - m_pointDragStart.y) / 4, (e.getX() - m_pointDragStart.x) / 4); } COM: <s> called by gui components mouse dragged event </s>
funcom_train/36984324
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void textSize(float size) { if (textFontNative == null) { super.textSize(size); return; } textFontNative = textFontNative.deriveFont(size); g2.setFont(textFontNative); // get the metrics info textFontNativeMetrics = g2.getFontMetrics(textFontNative); } COM: <s> sam...
funcom_train/3560261
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void showDataSets() throws DbException { DbIterator res; if (!isInitialized()) init(); res = prv.getDataSets(null).iterator(); TableUtils.fillSortedTable(tabDataSetList, res, dataSetIndexes, 0); initDataSetTableSizes(); } COM: <s> shows ...
funcom_train/50865765
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getIndex(Comparable key) { int result = -1; Set<Comparable> keys = dataMap.keySet(); if (keys.contains(key)) { int count = 0; Iterator<Comparable> i = keys.iterator(); while (i.hasNext()) { ...
funcom_train/20151906
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void broadcastAsAdmin(String tellType, Collection<User> users, String msg, Object... args) { if (args.length > 0) { msg = MessageFormat.format(msg, args); } command.sendQuietly("admin {0}", adminPass); for (User user : users) { command.sendQuietly("{0} {1} {2}", tellType, user, msg); } c...
funcom_train/5016746
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void error(String _errMessage) { while (actualPage.hasNextPage()) { actualPage = actualPage.getNextPage(); if (actualPage instanceof FinishPage) { FinishPage finishPage = (FinishPage)actualPage; finishPage.setErrorMessage(_errMessage); showActualPage(); ret...
funcom_train/17769543
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addImplicitCollection(Class ownerType, String fieldName, String itemFieldName, Class itemType) { if (implicitCollectionMapper == null) { throw new InitializationException("No " + ImplicitCollectionMapper.class.getName() + " available"); } implicitCollectionMapper.add(ownerType, fieldName, it...
funcom_train/28490648
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Relationship createRelationship(String name, AbstractObject[] obj, String[] role, String[] multiplicity) { Relationship res=getFactory().createRelationship(); res.setName(name); for(int i=0; i<obj.length; i++) { Link link=getFactory().createLink(); link.setLinksTo(obj[i]); link.setRole(r...
funcom_train/3666034
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Item get(final Item key) { int h = key.hashCode; Item i = items[h % items.length]; while (i != null) { if (i.hashCode == h && key.isEqualTo(i)) { return i; } i = i.next; } return null; } COM: <s> returns t...
funcom_train/16651900
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Integer getInteger(AtarrabiConfigParam param) { if (param == null) { return null; } try { String valueString = this.getString(param); if (valueString != null) { return Integer.parseInt(this.getString(param)); } else { return null; } } catch (NumberFormatException e) { log...
funcom_train/3461256
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JarInfo createJarInfo(Vector classList, Vector serList, Manifest mf) { JarInfo jarinfo = null; if (this.useJavaBeanHeader) { jarinfo = createJarInfoFromManifest(classList, serList, mf); } else { jarinfo = createJarInfoFromClassList(classList, serList); } return jarinfo; } COM: <s> ...
funcom_train/8633758
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void branchChainTo(BranchLabel label) { // in order to improve debug attributes for stepping (11431) // we want to inline the jumps to #breakLabel which already got // generated (if any), and have them directly branch to a better // location (the argument label). // we know at this point that t...
funcom_train/17606821
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void loadPages(String filename, final int instance) throws IOException { PDFLoader loader=new PDFLoader(new File(filename), new LoadListener() { @Override public void updateState(float percent) { progress.setValue((int)(percent*100)); } @Override public void completed(PDFLoader ...
funcom_train/2804937
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void paint(Graphics g) { g.setColor(Color.gray); for (int i = 0; i < rectangles.size(); i++) { Rectangle r = (Rectangle)rectangles.elementAt(i); g.fill3DRect(r.x-1,r.y-1,r.width+2,r.height+2,false); } super.paint(g); } COM: <s> manage the repain...
funcom_train/44627641
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testFNotIn() { helpTCF("A.java", "import org.jmlspecs.annotation.*;\n" + "public class A { \n" + " //@ public model JMLDataGroup q;\n" + " @Secret int m; \n" + "} \n" //,"/A.java:4: A secret...
funcom_train/47307841
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getBeanName(String name) { name = getBeanPropertyName(name); StringBuilder sb = new StringBuilder(name.length()); sb.append(Character.toUpperCase(name.charAt(0))); sb.append(name.substring(1)); return sb.toString(); } COM: <s> returns the correctly c...
funcom_train/2676760
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void notifyItemResume(IPlayItem item, int position) { IStreamAwareScopeHandler handler = getStreamAwareHandler(); if (handler != null) { try { handler.streamPlaylistVODItemResume(this, item, position); } catch (Throwable t) { log.error("error notify streamPlaylistVODItemResume", t); ...
funcom_train/8470011
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void finish() { for (Map.Entry<String, String> entry : posTags.entrySet()) { posWriter.println(entry.getKey() + " " + entry.getValue()); } posWriter.flush(); posWriter.close(); writer.flush(); writer.close(); } COM: <s> finalizes the wr...
funcom_train/37062350
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void centerTableData() { DefaultTableCellRenderer renderer = new DefaultTableCellRenderer(); renderer.setHorizontalAlignment(SwingConstants.CENTER); for ( Enumeration e = myTable.getColumnModel().getColumns(); e.hasMoreElements(); ) { ((TableColumn)e.nextElement())....
funcom_train/37507034
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void sendRefresh(ClientAdapter aClientAdapter, String aRefreshURL) { Event refreshEvent = new Event(E_REFRESH); // Set wait time and url for refresh refreshEvent.setField(P_WAIT, "" + getRefreshTimeMillis()); refreshEvent.setField(P_URL, aRefreshURL); try { // Push to client through clie...
funcom_train/6490938
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setDispatchLockerObject(DispatchableLocker locker) { // You know an example of where this is used is for reporting. When // reporting we will not necessarily want a screen representation of // the UI, so locking the window makes little sense. In reporting the // l...
funcom_train/48616642
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String removeFile(){ log.debug("Remove FileId = " + personalFileId); StringTokenizer tokenizer = new StringTokenizer(shareFileIds, ","); StringBuffer buffer = new StringBuffer(); while(tokenizer.hasMoreElements()) { Long fileId = new Long(tokenizer.nextToken()); if (!fi...
funcom_train/3805392
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void processDocumentVersion(Attributes attr){ version = new FeedVersion(); String v_1 = attr.getValue("xmlns"); String v_2 = attr.getValue("version"); version.setNamespace(v_1); if (v_2 != null) version.setVersion(Double.parseDouble(v_2)); else v...
funcom_train/20342154
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public StringItem getStringItem() { if (stringItem == null) {//GEN-END:|18-getter|0|18-preInit // write pre-init user code here stringItem = new StringItem("", null);//GEN-LINE:|18-getter|1|18-postInit // write post-init user code here }//GEN-BEGIN:|18-gette...
funcom_train/32630363
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Base getNotesObject(final Object object) { final Base notesBase; if (object instanceof BaseProxy) { notesBase = ((BaseProxy) object).getNotesObject(); } else if (object instanceof Base) { notesBase = (Base) object; } else { notesBase ...
funcom_train/12127581
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String paramString() { StringBuffer result = new StringBuffer(); result.append("source=" + (source == null ? "null" : source.toString())); result.append(",destination=" + (destination == null ? "null" : destination.toString())); result.append(','); result.app...
funcom_train/23410457
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addInvocablePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_CompositeProcess_invocable_feature"), getString("_UI_Property...
funcom_train/14373243
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void cleanup () throws IOException { canWrite = false; timer.cancel(); bufferedWriter.flush(); bufferedWriter.close(); final String newFileName = filename + ".gz"; final String newFullPath = fullPath + ".gz"; GZIPOutputStream outgzWriter = new GZIPOutputStream(new FileOutputStrea...
funcom_train/457824
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testCreateIllegalProjectLegalTaskName() { tester.startPage(EditProjectPage.class); final FormTester formTester = tester.newFormTester(MARKUP_ID_FORM); formTester.setValue(MARKUP_ID_PROJECT_NAME_TEXTFIELD, PROJECT_NAME_ILLEGAL); formTester.setValue(MARKUP_ID_TASK_NAME, TASK_NAME_LEGAL); form...
funcom_train/23199581
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JPanel getJContentPane() { if (jContentPane == null) { jContentPane = new JPanel(); jContentPane.setLayout(new BorderLayout()); jContentPane.add(getJJToolBarBar(), BorderLayout.NORTH); jContentPane.add(getSampleChart(), BorderLayout.CENTER); ...
funcom_train/39213383
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int isFxpCompleted(FTPClient fxpFtp)throws IOException { String response = fxpFtp.connect.ctlsocket.getFxpResponse(); if (response.equals("")) return 0; else { boolean ok = response.startsWith(COLSE_DATA_CONNECT) && connect.ctlsocket.g...
funcom_train/18896715
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testCloseGraph() throws Exception{ // add in a triple by nodes graph.add(ref1, ref1, ref1); assertFalse(graph.isEmpty()); assertEquals(1, graph.getNumberOfTriples()); // Create iterator. ClosableIterator iter = graph.find(null, null, null); iter.close(); // Close ...
funcom_train/10285834
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setFilesize(TagContent size) throws TagFormatException { if (size.getTextContent() == null || !checkNumeric(size.getTextContent())) { throw new TagFormatException(); } (new TextFrameEncoding(id3v2, "TSIZ", size, use_compression)).write(); } ...
funcom_train/40409404
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetMonthlyLimits() throws Exception { // Create selector. InfoSelector selector = new InfoSelector(); selector.setApiUsageType(ApiUsageType.UNIT_COUNT); ApiUsageInfo apiUsageInfo = service.get(selector); assertNull(apiUsageInfo.getApiUsageRecords()); assertNotNull(apiUs...
funcom_train/8691077
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int handleArgPropertyFile(String[] args, int pos) { try { propertyFiles.addElement(args[++pos]); } catch (ArrayIndexOutOfBoundsException aioobe) { String msg = "You must specify a property filename when " + "using the -propertyfile argument"; ...
funcom_train/5372977
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void deselect (int index) { checkWidget (); /* int selection = OS.SendMessage (handle, OS.CB_GETCURSEL, 0, 0); if (index != selection) return; OS.SendMessage (handle, OS.CB_SETCURSEL, -1, 0); */ selectInput.selectedIndex = -1; sendEvent (SWT.Modify); // widget could be disposed at this point } CO...
funcom_train/14170691
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeFileListProvider(IFileListProvider provider) { // first we have to check if given provider is present if (provider == null) { return; } if (isProviderPresent(resolutionTree, provider)) { if (fileListGenerated) { removeFromFileList(provider, getResolutionTree()); } remov...
funcom_train/9678974
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void saveChoicesFromPropertyEditors(PropertyPersistance persistance){ super.saveChoicesFromPropertyEditors(persistance); for( Iterator i = this.jDevSpecificPropertyList.iterator(); i.hasNext(); ) { ProjectProperty eachProperty = (ProjectProperty)i.next(); eachProperty.saveChoiceFromEd...
funcom_train/4780419
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getGroupGroupMembers(Document document, String groupName) throws AppException, AppException { if (groupName == null) { throw new AppException("application.error.grouprequired"); } StringBuilder builder = new StringBuilder(); Group group = document.findGroup(groupName); if (group == ...
funcom_train/652487
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void adaptToPreferenceChange(PropertyChangeEvent event) { String property = event.getProperty(); Token token = getToken(property); if (token != null) { if (property.endsWith(ITextStylePreferences.SUFFIX_FOREGROUND) || property .endsWith(ITextStylePreferences.SUFFIX_BACKGROUND)) { ...
funcom_train/45232450
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JMenuItem getMniTipoDatiAcq() { if (mniTipoDatiAcq == null) { mniTipoDatiAcq = new JMenuItem(); mniTipoDatiAcq.setText(Messages.getString("VcMainFrame.mnuPurchasingData")); //$NON-NLS-1$ mniTipoDatiAcq.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java...
funcom_train/3371326
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Color getForeground() { AccessibleContext ac = getCurrentAccessibleContext(); if (ac instanceof AccessibleComponent) { return ((AccessibleComponent) ac).getForeground(); } else { Component c = getCurrentComp...
funcom_train/44027155
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void initBottomLinksPanel() { // Header RootPanel header = RootPanel.get("design-new-header"); if (panelBottomLinksWrapper == null){ panelBottomLinksWrapper = new HTMLPanel( "<div class=\"header-bottom-panel-style-wrapper\">" + "<div id=\"header-bottom-panel-style-id\" class=\"header-...
funcom_train/36920974
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double pdf(int x) { double power = x-mean; power = -(power*power)/(2*stdDev*stdDev); double prob = 1/Math.sqrt(2*Math.PI*(stdDev*stdDev)); prob = prob * Math.exp(power); return prob; } COM: <s> returns the probability of some value...
funcom_train/45078375
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private HTree getHashtable( String hashtable) throws IOException { long recid = recman.getNamedObject(hashtable); HTree hash = null; if (recid !=0) hash = HTree.load(recman, recid); else { hash = HTree.createInstance(recman); recman.setNamedObject(hash...
funcom_train/23707425
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Component createToolbar() { if (toolbar == null) { toolbar = new JToolBar(); toolbar.add(createNewBtn()); toolbar.add(createOpenBtn()); toolbar.add(createSaveBtn()); toolbar.add(Box.createHorizontalStrut(5)); toolbar.add...
funcom_train/31358773
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void processPrivateMessageEvent(String recipient, String name, String message) { // display private message for the recipient and sender if (recipient.equals(nickname) || name.equals(nickname)) chatArea.append(name + ": " + message + "\n"); else if (spy) // if spy mode is on, display priva...
funcom_train/51699666
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object getParam(String paramId) { if (strictAccessCheck) { if (params == null) throw new IllegalStateException("Parameters are not defined"); if (!params.containsKey(paramId)) throw new IllegalStateException("Parameter '" + paramId + "' is not defined"); } ...
funcom_train/34796095
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected PrintWriter initWriter(String filename) { if (filename == null || filename.equals("")) { throw new IllegalArgumentException("File name must not be the empty string."); } File file = new File(filename); File dir = file.getParentFile(); if (dir != null) { dir.mkdirs(); } try { ret...
funcom_train/45754177
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void showPageNumber(int curpage, int maxpage) { Intent msg = new Intent(UPDATE_STATUSBAR); msg.putExtra(STATUSBAR_ICON, 7); msg.putExtra(STATUSBAR_ACTION, 1); msg.putExtra("current", curpage); msg.putExtra("max", maxpage); sendBroadcast(msg); } CO...
funcom_train/37860035
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void expand() { Set<DocumentImpl> docs = new HashSet<DocumentImpl>(); for (int i = 0; i <= size; i++) { NodeImpl node = (NodeImpl) values[i]; if (node.getDocument().hasReferenceNodes()) docs.add(node.getDocument()); } for (Documen...
funcom_train/14318174
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void sendUnauthorized() throws IOException { HashMap<String, String> headers = new HashMap<String, String>(); headers.put("WWW-Authenticate", "Basic realm=\"" + BundleMessage.format("UI_DAVMAIL_GATEWAY") + '\"'); sendHttpResponse(HttpStatus.SC_UNAUTHORIZED, headers, null, (byte[...
funcom_train/20891447
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JComboBox getJComboBoxYAxis1() { if ((jComboBoxYAxis1 == null) || (this.reconstruct)) { if (this.yAxes != null) { jComboBoxYAxis1 = new JComboBox(this.yAxes); jComboBoxYAxis1.setSelectedIndex(0); } else { jComboBoxYAxis1 = new JComboBox(); } } return jComboBoxYAxis1; } COM: <...
funcom_train/31127077
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getProductID(){ byte[] buf = new byte[8]; int failed = this.getData(0x10, buf, 8); if(failed!=0) return "failed. "; String str="l:"; for(int i=0; i<8; i++){ str+=(char)buf[i]; } return str; } COM: <s> method used to know the type of the senso...
funcom_train/50325697
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String getUserName(Element elem) { if ( elem.getChild("userName") != null) { return elem.getChild("userName").getText(); } if ( elem.getAttribute("userName") != null) { return elem.getAttribute("userName").getValue(); } return null; } COM:...
funcom_train/39470241
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeNode(BinTreeNode node) { BinTreeNodeP p = (BinTreeNodeP)node; if (p == root) { root = null; } else { fixWeight(p.parent, -getWeight(p)); if (p.parent.left == p) { p.parent.left = null; } else { p.parent.right = null; } p.parent = null; } } COM: <s> removes th...
funcom_train/7826253
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testFire() { System.out.println("fire"); Place place = createPlace(); Transition transition = createTransition(); InhibitorArc instance = new InhibitorArc(place, transition, new InhibitorArcObjectImpl(model)); place.setTokens(0); in...
funcom_train/4509643
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setAdmins(List<JID> admins) { Collection<String> adminList = new ArrayList<String>(); for (JID admin : admins) { adminList.add(admin.toBareJID()); } JiveGlobals.setProperty("admin.authorizedJIDs", StringUtils.collectionToString(adminList)); } COM: <...
funcom_train/16358309
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public void save(String fileName, List list) { String NEW_LINE = System.getProperty("line.separator"); try { FileOutputStream fluxFichier = new FileOutputStream(fileName); for(int i=0; i<list.getItemCount() ; i++) { String s = list.getItem(i); s += NEW_LINE ; fluxFichier....
funcom_train/37015575
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isUser(String who) { try { String[] users = listUsers(); for (int i = 0; i < users.length; i++) { if (who.equals(users[i])) { return true; } } } catch (Exception e) { e.printStackTrace()...
funcom_train/28125758
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removePlugin(Plugin p) throws BackingStoreException { p.tearDown(); m_plugins.remove(p); String prefName = getPrefName(p); if (m_pluginPreferences.nodeExists(prefName)) { m_pluginPreferences.node(prefName).removeNode(); } removeRegistered...
funcom_train/33639563
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public static interface NodeWeighter { /** * Returns the weight for a node, with respect to two adjecent edges. * * @param n The node. * @param e1 First edge. * @param e2 Second edge. * * @return The weight associated with traversing through the node from * the fi...
funcom_train/6330605
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Notation createNotation( String name, String systemID, String publicID ) { NotationProxy notation = null; try { notation = (NotationProxy)database().createObject( NotationImpl.class.getName() ); notation.init( this, name, systemID, publicID ); } catch (Ex...
funcom_train/49262569
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Point getSearchBounds(final boolean isSelection) { if (isSelection) { Point searchBounds = textControl.getSelectionRange(); if (searchBounds.y == 0) { int line = textControl.getLineAtOffset(searchBounds.x); searchBounds.x = textControl.getOffsetAtLine(line); searchBounds.y = textContr...
funcom_train/44769465
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void set(Object paramsAndWhat) { System.out.println( paramsAndWhat); Genotype y = ( Genotype ) paramsAndWhat; Genotype z = new Genotype( "000" ); Class x; z.setFitness( 0.6) ; System.out.println(y +"=y , z="+z + " " + y.compareTo( z ) ); } COM: <s> u...
funcom_train/28170649
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSlashSlashToken(String slashSlash) { if (slashSlash.length() < 1 || slashSlash.length() > 2) { throw new IllegalArgumentException("SlashSlash token must be of length 1 or 2: '"+slashSlash+"'"); } this.slashSlash = slashSlash.toCharArray(); commentChar...
funcom_train/39879861
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int setAuxEffectSendLevel(float level) { if (mState != STATE_INITIALIZED) { return ERROR_INVALID_OPERATION; } // clamp the level if (level < getMinVolume()) { level = getMinVolume(); } if (level > getMaxVolume()) { leve...
funcom_train/9531904
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void addPreferencesItem() { addSeparator(); JMenuItem preferences = new JMenuItem("Preferences"); preferences.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { GetInfo getInfo = new GetInfo(); // getInfo.setVisible(true); // getInfo.se...
funcom_train/42185166
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetModel() { System.out.println("getModel"); WordPlacementList instance = new WordPlacementList(); WordPlacementListModel expResult = null; WordPlacementListModel result = instance.getModel(); assertEquals(expResult, result); // TODO review the g...
funcom_train/33839731
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void fileInit(File myFile, boolean compressed) throws FitsException { try { if (compressed) { FileInputStream str = new FileInputStream(myFile); streamInit(str, true); } else { randomInit(myFile); } } catch (IOException e) { ...
funcom_train/43748068
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JTextArea getPostinTextArea() { if (postinTextArea == null) { postinTextArea = new JTextArea(); postinTextArea.setBounds(new Rectangle(24, 231, 156, 204)); postinTextArea.setBackground(Color.lightGray); postinTextArea.setLineWrap(true); } return postinTextArea; } C...
funcom_train/18113461
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: /*public int addAccount(SmtpAccount account) { if (accounts == null) accounts = new Vector(); for (int i = 0; i < accounts.size(); i++) { Account a = (Account) accounts.elementAt(i); if (a.getAccountName().equals(account.getAccountName())) { return -1; } } accounts.add(account);...
funcom_train/22716192
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setFileId(String fileId) { model.removeAppModelModifyListener(this.fileId, this.appModelModifyListener); this.fileId = fileId; model.addAppModelModifyListenerToFile(this.fileId, this.appModelModifyListener); this.updateTitle(false); ...
funcom_train/28694105
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected PasswordAuthentication getPasswordAuthentication() { JDialog dialog = getDialog(); passwordField.setText( ""); usernameField.setText( ""); hostField.setText( getRequestingHost()); realmField.setText( getRequestingPrompt()); dialog.setLocationRelativeTo( parent); dialog.setVisible( t...
funcom_train/15694853
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String comparePoints() { String name = ""; int points = -1; Iterator iter = (Players.values()).iterator(); while (iter.hasNext()) { SPlayer p = (SPlayer) iter.next(); if (p.poi >= points) { points = p.poi; name = p.name; } } this.run.output(name + " Won with " + points +...
funcom_train/16786156
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private PreparedStatement getInsertStatement() throws RQLException { if (insertStmt == null) { String sql = null; try { sql = "INSERT INTO " + name + " values(?, ?, ?, ?, ?, ?)"; insertStmt = connection.prepareStatement(sql); } catch (SQLException ex) { throw new RQLException("Error in sql...
funcom_train/1773215
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testAddAndOperator_testIfNotSet() { DataQuery dataQuery = TestUtil.getNewDataQuery(); Filter.addAndOperator(dataQuery); assertNull(dataQuery.getFilters()); dataQuery.setFilters(null); Filter.addAndOperator(dataQuery); assertNull(dataQuery.getFilters()); } COM: <s> test n...
funcom_train/44218917
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void initTestViewType() { String tmn = this.getTestMethodName(); String vt = tmn.replaceFirst(DEFAULT_JUNIT_TEST_METHOD_PREFIX, ""); int idx = vt.indexOf("_"); if (idx == -1) { throw new RuntimeException("Invalid test method name: " + tmn); } this.viewType = vt.substring...
funcom_train/22528708
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void load() { File backingFile = getFile(); if(backingFile.exists()) { try { Document doc = JDOMXMLUtils.readXMLFile(backingFile); Element root = doc.getRootElement(); fromJDOM(root); } catch(Exception ...
funcom_train/3888404
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addUsernamePropertyRefPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_EmailDataType_usernamePropertyRef_feature"), getStr...
funcom_train/3878510
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getDepth(int node) { if ( !getNodeTable().isValidRow(node) ) return -1; int depth = 0; if ( node!=m_root && getParent(node) < 0 ) return -1; for ( int i=node; i!=m_root && i>=0; ++depth, i=getParent(i) ); return depth; } COM: <s> get...
funcom_train/28751428
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setReportname(String newVal) { if ((newVal != null && this.reportname != null && (newVal.compareTo(this.reportname) == 0)) || (newVal == null && this.reportname == null && reportname_is_initialized)) { return; } this.reportname = newVal; ...
funcom_train/42131633
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void loadImportedObjects() throws IOException { OsnReader<DataObject> reader = getOsnReader(new QName("imports.dir"), new ArrayDataObjectFactory()); try { if (reader.hasNext()) { importedObjects = osnReader.next(); } } finally { reader.close(); } } COM:...
funcom_train/9361091
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void printShortString(PrintWriter pw) { pw.print('['); pw.print(left); pw.print(','); pw.print(top); pw.print("]["); pw.print(right); pw.print(','); pw.print(bottom); pw.print(']'); } COM: <s> print short representation to given writer </s>
funcom_train/46454642
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { String name = (String) myPropertiesTable.get("name"); if(name!=null) { return name; } String text = this.getClass().getName(); int index = text.lastIndexOf("."); if(index>=0) { text = text.substring(index+1); } return "Unnamed element of typ...
funcom_train/41018175
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean buyTower(int type, double x_coord, double y_coord, double size) { int cost; switch(type){ case 0: cost=Tower_Bullet.INITIAL_BUILD_COST; break; case 1: cost=Tower_Fire.INITIAL_BUILD_COST; break; default:cost=0; break; } if (CREDITS<cost) return false; else{ switch(type){ ...
funcom_train/27761459
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object getPropertyValue(final Object bean) throws BeanException { NestedHelper nh = resolveNesting(bean, null, null); if (nh.isIndexed) { throw new BeanException("Nesting contains an indexed property but no indices were provided"); } Object value = nh.prop...
funcom_train/36191426
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testEx_Neg_Yes(){ Hashtable<String, Object> params = new Hashtable<String, Object>(); params.put("localPolicyDetails", "push"); params.put("remotePolicyDetails", "Agree button"); Object tmp = (Object)feedback.getExplicitFB( FeedbackGUITypes.NEGOTIATI...