__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/17048517
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public SearchResult search(QueryContainer queryContainer, int maxHits, LuceneFields luceneFields) throws IOException { final SearchHitCallback searchHitCallback = new SearchHitCallback(luceneFields); final SearchResult searchResult = search(queryContainer, maxHits, searchHitCallback); searchResult.s...
funcom_train/16392732
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Set getAdjacentVertices( List vertices ) { HashSet adjacentVertices = new HashSet( this.getAdjacentVertices( (Vertex) vertices.get(0)) ); int i, size = vertices.size(); for( i = 1; i < size; i++ ) { adjacentVertices.retainAll( this.getAdj...
funcom_train/39535246
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setColorValue(String colorString) { if(colorString!=null && ! colorString.equals("")) { SVGHandle handle=Editor.getEditor().getHandlesManager().getCurrentHandle(); if(handle!=null) { Color color=Editor.getColorChooser().getColor(handle, colorString); if(color!=nul...
funcom_train/32761029
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void validate() { if ( !_summaryController.validate() ) { throw new EntryValidationException( _summaryController.getValidationText() ); } else if ( !_imageController.validate() ) { throw new EntryValidationException( _imageController.getValidationText() ); } else if ( !_attachmentContro...
funcom_train/49456339
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void activateModule(Db db) throws Exception { try { db.enter(); PreparedStatement active = db.prepareStatement("UPDATE e_module SET active=true WHERE class_name = ?"); active.setString(1, getClass().getName()); int res = db.executeUpdate(active); if(res != 1) throw new Exc...
funcom_train/9537777
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Integer open() { // Create the dialog window Shell shell = new Shell(getParent(), getStyle()); shell.setText(getText()); createContents(shell); shell.pack(); shell.open(); Display display = getParent().getDisplay(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { dis...
funcom_train/18131176
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean isPort(String name) { if(language.hasVariablePrefix()){ boolean found = false; Iterator<String> iterator = language.getVariablePrefixes().iterator(); while(!found && iterator.hasNext()){ String prefix = iterator.next(); if(name.startsWith(prefix)){ name = name.substring(prefix...
funcom_train/39102659
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void register(String viewableClassName, LayoutItem layout, boolean isEditor) { Hashtable table = (isEditor ? editorCreatorTable : viewerCreatorTable); CreatorMapEntry entry = (CreatorMapEntry) table.get(viewableClassName); if (entry == null) { entry = new CreatorMap...
funcom_train/28353168
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void addLabeledItem( final Container container, final String label, final Component item, final Color itemColor ) { container.add( new JLabel( label, RIGHT ) ); final Box itemBox = new Box( BoxLayout.X_AXIS ); itemBox.add( Box.createHorizontalGlue() ); if ( itemColor != null ) { item.setFor...
funcom_train/7866070
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void fillArtistCombo() throws SQLException { ResultSet rs = JSongOrganizer.getArtistCombo(); if (artistCombo.getItemCount() != 0) { while (artistCombo.getItemCount() > 1) { artistCombo.removeItemAt(artistCombo.getItemCount() - 1); } } else { artistCombo.addItem(" select artist"); } ...
funcom_train/8407557
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int indexOf(Object key) { key = convertKey(key); int i = 0; for (LinkEntry entry = header.after; entry != header; entry = entry.after, i++) { if (isEqualKey(key, entry.key)) { return i; } } return -1; } COM: <s> gets t...
funcom_train/19081327
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getIdCard(int oldIdCard) { if (activated) { if (next != null) { return ((IdCardModifier) next).getIdCard(op.process(oldIdCard, idCard .getValue(ability, to, null))); } return op.process(oldIdCard, idCard.getValue(ability, to, null)); } if (next != null) { return ((IdCardMod...
funcom_train/3360004
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void login() throws LoginException { loginSucceeded = false; if (subject == null) { subject = new Subject(); } try { if (configProvided) { // module invoked in doPrivileged with creatorAcc invokeCreatorPriv(LOGIN_METHOD); invokeCreatorPriv(COMMIT_METHOD); } else { // modul...
funcom_train/29656370
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setInitData(GeneralDataParameter dataParameter) throws IncorrectParameterTypeException, ParseParameterException { super.setInitData(dataParameter); if (dataParameter instanceof StringDataParameter) { setStringValue(((StringDataParameter) dataParameter).getValue()); ...
funcom_train/49761552
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void contributeToToolBar(IToolBarManager toolBarManager) { toolBarManager.add(getAction(ActionFactory.UNDO.getId())); toolBarManager.add(getAction(ActionFactory.REDO.getId())); toolBarManager.add(getAction(ActionFactory.DELETE.getId())); // toolBarManager.add(getAction(DeployAction.DEPLOY)); } CO...
funcom_train/49323022
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getFriendsTimeline() { String message = ""; String url = "/statuses/friends_timeline.xml"; GetMethod get = new GetMethod(url); try { executeAuthenticatedMethod(get); message = message + get.getResponseBodyAsString(); } catch (URIException e) { message = e.getMessage(); } catch...
funcom_train/32138281
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void run(IAction act) { LogManager.logDebug("Start ExportDataSetAction.run", this); File f = null; IDataSet data = getDataSet(); if(null != data) f = getFile(); if(f != null && data != null) data.writeToFile(f); LogManager.logDebug("End ExportDataSetAction.run", this); } COM: <s> thi...
funcom_train/7385041
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void drawLine(int x0, int y0, int x1, int y1) { Line2D line = new Line2D.Float(x0, y0, x1, y1); if (g.getClipBounds() == null || line.intersects(g.getClipBounds())) { g.draw(line); } } COM: <s> draws the given line if the line is inside the clipping area </s>
funcom_train/48529596
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object obj) { if ((obj == null) || (! (obj instanceof Id))) return false; Id nid = (Id) obj; for (int i = 0; i < nlen; i++) { if (Id[i] != nid.Id[i]) { return false; } } return true; } COM: <s> equality operator for ids </s>
funcom_train/25825855
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int processHits(int hits, int selectionBuffer[]) { if (hits > 0) { /* * Have a look at the content of the selection buffer to understand this * formula. */ int pos = (hits * 4) + ((hits * (hits + 1)) / 2); return selectionBuffer[pos - 1]; } else { re...
funcom_train/18982461
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getRadioID() throws RadioException { this.checkDisposed(); Log("Sent radio id request"); byte[] result = this.performCommand(GET_RADIO_ID, (byte)0xb1); Log("Got radio id reply"); if (result.length != 11) { this.Dispose(); ...
funcom_train/22278865
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isTransparent() { Vector sViews; int i, count; sViews = subviews(); count = sViews.count(); for (i = 0; i < count; i++) { if (((View)subviews().elementAt(i)).isTransparent()) { return true; } } ...
funcom_train/34501977
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addConfigurationParameter(String paramName, String paramValue) { if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().getBundle().key( Messages.ADDING_CONFIGURATION_PARAM_2, paramName, paramValue)); } m_configuration.put(p...
funcom_train/10862718
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addCapturedContent() { for (Map.Entry<String, StringBuilder> entry : fieldBuilders.entrySet()) { if (entry.getValue().length() > 0) { addField(entry.getKey(), entry.getValue().toString(), null); } } } COM: <s> add the per field captured content to the solr document ...
funcom_train/9911985
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: /* private void listAllBroad(TreeNode<E> node, Collection<TreeNode<E>> nodes, int curLevel, int level) { if(level > 0 && curLevel >= level) return; if (node != null) { Collection<TreeNode<E>> temp = node.getChildren(); nodes.addAll(temp); for (TreeNode<E> t : temp) { listAllBroad(t, nodes, curLev...
funcom_train/44283651
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void sendPatch(Patch p) { p.sysex[SY85Constants.SYSEX_BANK_NUMBER_OFFSET] = (byte) 127; p.sysex[SY85Constants.SYSEX_VOICE_NUMBER_OFFSET] = (byte) 0; calculateChecksum(p); sendPatchWorker(p); try { Thread.sleep(100); } catch (Exception e) { ...
funcom_train/19241966
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void createPlaylist() throws IOException { if (null == newPlaylistName) { throw new IllegalArgumentException("No new playlist name given"); } MediaManager manager = getManager(); Playlist pl = manager.newPlaylist(newPlaylistName, mediaType); getManage...
funcom_train/35627342
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSelectedIndex(int si) { selectedIndex = si; UIItem selItem = comboScreen.mainPanel.getSelectedItem(); if (selItem instanceof UILabel) ((UILabel) selItem).setWrappable(false, -1); comboScreen.mainPanel.setSelectedIndex(si); selItem = comboScreen.mainPanel.getSelectedItem(); if (selI...
funcom_train/51188971
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public URL getAbsoluteResource(String absolutePath) { try { File resourceFile = new File(absolutePath).getCanonicalFile(); if (resourceFile.exists()) { return resourceFile.toURI().toURL(); } } catch (IOException e) { logPathExce...
funcom_train/17409904
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void percentRam(int f){ switch (f) { case 0: average= (RAMSIZE-Memleft); percent= average/RAMSIZE; System.out.println("Percentage of RAM used: " + percent*100); break; case 1: OSDriver...
funcom_train/4233841
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void zoomOutDomain(double x, double y) { Plot p = this.chart.getPlot(); if (p instanceof Zoomable) { Zoomable z = (Zoomable) p; z.zoomDomainAxes(this.zoomOutFactor, this.info.getPlotInfo(), translateScreenToJava2D(new Point((int) x, (int) y)),...
funcom_train/28759763
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setBboxbackground(String newVal) { if ((newVal != null && this.bboxbackground != null && (newVal.compareTo(this.bboxbackground) == 0)) || (newVal == null && this.bboxbackground == null && bboxbackground_is_initialized)) { return; } this.bboxbackgr...
funcom_train/2807816
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString() { StringBuffer buf = new StringBuffer(); for (int i = 0; i < structures.length; i++) { if (i == 1) { buf.append(" :- "); } if (i > 1) { buf.append(", "); } buf.append(structure...
funcom_train/50335058
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getDirectionFromSectionAndSeq(Section s, int seq) { for (int i = 0; i<mTransitSectionList.size(); i++) { TransitSection ts = mTransitSectionList.get(i); if ( (ts.getSection() == s) && (ts.getSequenceNumber() == seq) ) { return ts.getDirection(); } } return 0; } COM: <s> gets the d...
funcom_train/37115687
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean removeRange(int fromIndexInclusive, int toIndexExclusive) { checkRemoveModifiable(); checkRange(fromIndexInclusive, toIndexExclusive); if (fromIndexInclusive == toIndexExclusive) { return false; } System.arraycopy(data, toIndexExclusive, data,...
funcom_train/2960736
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void filterGTonVar(IntDomainVar vv0, IntDomainVar vv1) throws ContradictionException { if(cste>=0){ int lbv0 = vv0.getSup() - cste; int ubv0 = vv0.getInf() + cste; // remove interval [lbv0, ubv0] from domain of v0 vv1.removeInterval(lbv0, ubv0, th...
funcom_train/20577217
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void invitationTimedOutEventHandler(InvitationTimedOutEventArgs args) { if (args.getInvitation().getSender().getLogin().equals(this.getLogin()) || args.getInvitation().getDestiny().getLogin().equals(this.getLogin())) { this.send(args.getMessage()); } } COM: <s> handles the invitation timed o...
funcom_train/17201321
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private short get(int logSize) { switch (logSize) { case 0: return slot0; case 1: return slot1; case 2: return slot2; case 3: return (short)Memory.alignUp(getObjectSize(), MAX_SLOT_SIZE); default: VM.sysFail("Invalid slot"); return -1; } } COM: <s> get ...
funcom_train/28686233
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean accept(File directory, String name) { File file = new File(directory, name); if (file.exists() && (file.isDirectory() || file.isHidden())) { return false; } String filename = name.toUpperCase(); return Character.isLetterOrDig...
funcom_train/23247025
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private double calculateDistance(final IDataSet aMap, final RoutingStep aLastStep, final RoutingStep step) { myMetric.setMap(aMap); double cost = myMetric.getCost(step); if (aLastStep != null) cost += myMetric.getCost(aLastStep.getStartNode(), step, aLastStep); ret...
funcom_train/49703545
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void send(final File file) { if (file.isDirectory()) { String[] children = file.list(); for (int i=0; i<children.length; i++) { send(new File(file, children[i])); } } else { sendFile(file); } } COM: <s>...
funcom_train/5375124
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void fillPath (Path path) { if (handle == null) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); if (path == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); /* if (path.handle == null) SWT.error(SWT.ERROR_INVALID_ARGUMENT); initGdip(false, true); int mode = OS.GetPolyFillMode(handle) == OS.WINDING ? Gdip.FillModeWin...
funcom_train/34707769
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateDB(String query) throws SQLException{ Statement statement=null; boolean insertStatus=false; System.out.println("Update Query is " + query); statement=conn.createStatement(); insertStatus=statement.execute(query); if(insertStatus){ System.out.println("Query="+query+"\n Query...
funcom_train/49790112
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetVisibleFalsePersists() throws Exception { IFile sitemap = beginAtSitemapThenPage("Home"); assertNoProblem(); assertTargetVisible(true); assertButtonPresentWithText("set visibility"); // and a text field to set the value { String id = getLabelIDForText("visibility value"); ...
funcom_train/44709340
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setProgress(PageState state, int p) { if (p < -1 || p >= getStepCount()) { throw new IllegalArgumentException( "Expecting an integer between -1 and " + (getStepCount() - 1) + ", but go...
funcom_train/44872240
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean hasControl(int controlCode) { switch (controlCode) { case START_STOP_BUTTON: return (startStopButton != null); case START_BUTTON: return (startButton != null); case STOP_BUTTON: return (stopButton != null); case PAUSE_BUTTON: return (pauseButton != null); case NEXT_BUTTON: ...
funcom_train/3470485
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void nextRandomBytes(byte[] bytes) { int numRequested = bytes.length; int numGot = 0; int rand = 0; while (true) { for (int i = 0; i < 4; i++) { if (numGot == numRequested) { return; } ran...
funcom_train/3175173
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Color getForeground() { // we cached the color so that it's retrieved only once // instead of using this view's attributes we get the // document's stylesheet and ask it for this view's // attributes if (foreground==null) //foreground = doc.getForeground(get...
funcom_train/12195166
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int getFileIndex(File file) { String name = file.getName(); if (name.length() > 1) { // Ignore unknown directory. return -1; } char c = name.charAt(0); if (c < 'a' || c >= ('a' + maxDirsPerDir)) { // Ignore unknown directory....
funcom_train/4422404
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void selectLocation() { final CharSequence[] items = buildItems(); AlertDialog.Builder builder = new AlertDialog.Builder(parent); builder.setTitle(parent.getResources().getString(R.string.select_location)); builder.setItems(items, new DialogInterface.OnClickListener() { public void onClick(Dial...
funcom_train/32630902
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private MemoEntryFormat getViewFormat(final DView view) { String name = view.getName(); if (!fViewFormat.containsKey(name)) { MemoEntryFormat format = new MemoEntryFormat(view); fViewFormat.put(name, format); return format; } return (MemoEntr...
funcom_train/13892836
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public ElementDialog getNewElementDialog(Component component) { while (component != null && !(component instanceof Frame) && !(component instanceof Dialog)) component = component.getParent(); ElementDialog dialog; if (component == null) dialog = new ElementDi...
funcom_train/9804311
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void appendProperties(StringBuffer buf) { if (type!=null) { buf.append(" with ").append(type.name().toLowerCase()); super.appendProperties(buf); if (fill!=null && type.filled) fill.appendProperties(buf); } } COM: <s> gather the prope...
funcom_train/15609424
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void addOidToChangeTraceRefs(Set anOidSet, ChangeTrace aChangeTrace) { for (Iterator oidItr = anOidSet.iterator(); oidItr.hasNext();) { this.oidToChangeTrace.put(oidItr.next(), aChangeTrace); } } COM: <s> add a set of oid references to a change trace </s>
funcom_train/9110475
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public DynamicImageResourceImpl getThumbnailPicture() { if (this.thumbnail == null) { UserUtil.reattach(this.bean); if (this.getBean().getProfilePicture() != null) { // Create thumbnail ImageResize thumb = new ImageResize(this.bean .getProfilePicture().getImage()); this.thumbnail = new ...
funcom_train/24067996
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Message checkBoolean(final int lineCount, final String content) { final Message msg = new Message(); if (!"".equals(content) // may be empty => we will use default value && !"true".equals(content) && !"false".equals(content)) { msg.setMessage("error.import...
funcom_train/3421944
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public XSSimpleTypeDefinition getPrimitiveType() { if (fVariety == VARIETY_ATOMIC && fValidationDV != DV_ANYSIMPLETYPE) { XSSimpleTypeDecl pri = this; // recursively get base, until we reach anySimpleType while (pri.fBase != fAnySimpleType) pri = pri...
funcom_train/41174338
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void center(Shell shell) { Rectangle shellBounds = shell.getDisplay().getPrimaryMonitor().getBounds(); Point winSize = shell.getSize(); shell.setLocation(shellBounds.x + (shellBounds.width - winSize.x) / 2, shellBounds.y + (shellBounds.height - winSize.y) / 2); } COM: <s> move the shell to the ce...
funcom_train/42554554
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setFishEyeFocus(Point p){ myFocusPoint = p; int result = (p.y-this.getY())/myFilesDefaultSize; //System.out.println("FileList : setFishEyeFocus --> y="+getY()+" , result="+result); setFocusFile(myFileList.get(result)); } COM: <s> gives the file on which the fi...
funcom_train/41523720
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String accPrepareGroupPatientsToDelete() { if(getSession().getGroup() != null){ Command cmd = getCommand(LoadGroup.class); ((LoadGroup) cmd).setGroupId(getSession().getGroup().getCode()); cmd = runCommand(cmd); toDelete = new ArrayList<Patient>(((LoadGroup) cmd).getResult().getPatients()); ...
funcom_train/29829294
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public BSPresenceInfo getJIDPresence(JID jid) { if (jid == null || !this.jid.equals(jid.getSimpleJID()) || presences.isEmpty()) return null; String resource = jid.getResource(); if (resource == null || resource.equals("")) retur...
funcom_train/39024167
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testClearNestedCriteria() { System.out.println("clearNestedCriteria"); BasicSearchCriteria instance = new BasicSearchCriteria(); instance.addNestedCriterion(new BasicSearchCriteria()); instance.clearNestedCriteria(); if (instance.nestedCriteria != null && in...
funcom_train/34270632
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void verify() throws AuthenticationException { openConnectionOnce(VERIFY_PREAMBLE, VERIFY_POSTAMBLE); if (currentURLConnection == null) { return; } try { close(); } catch (Throwable t) { String locMessage = "Authenti...
funcom_train/31678687
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public FloatingPoint divide(FloatingPoint that) { if (that._significand.isZero()) return NaN; int pow10 = DIGITS.get() + that._significand.digitLength(); LargeInteger dividend = _significand.times10pow(pow10); return FloatingPoint.valueOf(dividend.divide(that._signi...
funcom_train/17540242
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Properties createPropertiesFromQuery(String query) { Properties properties = new Properties(); for (String pair : query.split(",")) { String[] array = pair.split("="); properties.put(array[0], array[1]); } return properties; } COM: <s> creat...
funcom_train/51294732
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setFocusTransferEnterAction(final JComponent comp) { comp.getActionMap().put("enterAction", new AbstractAction() { public void actionPerformed(ActionEvent e) { comp.transferFocus(); } }); comp.getInputMap(JComponent.WHEN_FOCUSED).put( KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), ...
funcom_train/33519459
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getDateFormat() throws InvalidParameterException { if (!configurations.containsKey(Util.FORMAT_CONFIG)) { throw new InvalidParameterException("No configuration is defined"); } Configuration configuration = configurations.get(Util.FORMAT_CONFIG); if (c...
funcom_train/49626589
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Element getLocaleInfo() { Element locales = new Element("locales"); Collection<java.util.Locale> activeLocales = Lifecycle .getActiveLocales(); for (java.util.Locale locale : Lifecycle.getKnownLocales()) { Element localeElement = new Element("locale").setText(locale .toString()); if ...
funcom_train/45347350
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double unpack(final int r, final int c, final double[][] packed) { final int index = getIndex(r, c); if (index >= 0) { return packed[index / columns][index % columns]; } else if (index > Integer.MIN_VALUE) { return -packed[(-index) / columns][(-index) % c...
funcom_train/42350593
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void send(String message, IoSession session) { if (log.isDebugEnabled()) { StringBuilder sb = new StringBuilder("Sending message \'"); sb.append(message); sb.append("\' to ").append(session.getRemoteAddress()); log.debug(sb.toString()); ...
funcom_train/42188612
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JRadioButton getJRadioButton11() { if (jRadioButton11 == null) { jRadioButton11 = new JRadioButton(); jRadioButton11.setText("Porcentual"); jRadioButton11.setVisible(false); jRadioButton11.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event...
funcom_train/46012983
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void saveLastSimEdited() { if ((user_id != null) && (sim_id != null)) { User user = User.getById(schema, user_id); user.setLastSimEdited(sim_id); user.saveJustUser(schema); } else { Logger.getRootLogger().warn( "attempted to save non-existant sim or user, user/sim:" + user_id +...
funcom_train/3003205
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void selectScript() { Component c = XPontusComponentsUtils.getTopComponent() .getDisplayComponent(); int rep = chooser.showOpenDialog(c); if (rep == JFileChooser.APPROVE_OPTION) { try { String path = choos...
funcom_train/39382988
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void setLanguage(Locale locale) { super.setTitle(Configuration.getString(getClass(),0,locale)); lblAdhocMessage.setText(Configuration.getString(getClass(),1,locale)); this.invalidate(); frame.validate(); } COM: <s> sets the language as configured </s>
funcom_train/1090485
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void compensationComplete() { // typically called by AeActivityCompensateImpl. via comp.Handler when the // compHandler has completed its execution. AeCompensationHandler handler = getCompensationHandler(); getScope().getCoordinationContainer().removeCompensationHa...
funcom_train/2609987
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void triggerResolveEnd() { Iterator iter = getListenersList().iterator(); while (iter.hasNext()) { TransportResolverListener trl = (TransportResolverListener) iter.next(); if (trl instanceof TransportResolverListener.Resolver) { TransportResolver...
funcom_train/16141832
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void deleteDataSourceDatabase(String dataSourceDBName) throws Exception { File dataSourceDB = new File(this.dbPath+"/"+ dataSourceDBName + DATA_SOURCE_DB_OBJ_ID); dataSourceDB.delete(); logger.debug("Deleted Data Source Database with name "+dataSourceDBName); } COM: <s> delet...
funcom_train/23069492
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void initializAvailability(InterviewerDateTuple tuple) { InterviewerAvailability availability = ramSchedulerService.getAvailability(tuple.interviewer, tuple.date, true); List list = getDefaultTimeSlots(tuple.interviewer.getTimeSlotType()); for (Iterator iter = list.iterator(); iter.hasNext();) {...
funcom_train/20768897
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void acquireDevice() throws HardwareInterfaceException { log.log(Level.INFO, "{0} acquiring device for exclusive access", this); int status = gUsbIo.acquireDevice(); if (status != 0) { throw new HardwareInterfaceException("Unable to acquire device for exclusive use: ...
funcom_train/51098838
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void reportError(String title, Throwable th) { th = Util.unwindException(th); logObj.info("Error in " + getClass().getName(), th); JOptionPane.showMessageDialog(getView(), th.getMessage(), title, JOptionPane.ERROR_MESSAGE); ...
funcom_train/48524392
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: // protected void closeSocket(InetSocketAddress addr) { // synchronized (sockets) { // if (sockets.containsKey(addr)) { // ((SocketManager) sockets.get(addr)).shutdown(); // } else { // if (logger.level <= Logger.SEVERE) logger.log( "(SCM) SERIOUS ERROR: Request to close socket to non-...
funcom_train/8084498
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void notifyBatchClustererListeners(BatchClustererEvent ce) { Vector l; synchronized (this) { l = (Vector)m_batchClustererListeners.clone(); } if (l.size() > 0) { for(int i = 0; i < l.size(); i++) { ((BatchClustererListener)l.elementAt(i)).acceptClusterer(ce); } } ...
funcom_train/27761560
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setScope(String scope) { if (StringUtils.isNotEmpty(scope) && !scope.equals(APPLICATION_SCOPE) && !scope.equals(SESSION_SCOPE) && !scope.equals(REQUEST_SCOPE) && !scope.equals(PAGE_SCOPE)) { throw new IllegalArgume...
funcom_train/28262929
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void removeNodes(BNode n) { p.called("removeNodes:"); String[] keys = n.getKeys(); for (String key : keys) { if (key.length() > 0) { String temp = key + "#" + n.getServiceName(); p.out("removed: " + temp, true); adv...
funcom_train/19307401
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean execute(final PsName nameObject) throws PsOperatorException, PsInterpreterException4a { if (!nameObject.isExecutable()) { return false; } if (super.execute(this.interpreter, nameObject)) { return true; } final PsOperator operato...
funcom_train/10298752
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setActivationObject(Object comp) { debug("setActivationObject"); while (comp instanceof MenuComponent) { comp = ((MenuComponent)comp).getParent(); } Window owner = null; if (comp instanceof Frame) { owner = (Window)comp; } e...
funcom_train/49656826
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean matches(Tree t) { reset(); if (!rootPattern.descriptionPattern.matcher(t.label().value()).matches()) { return false; } else { while (find()) { if (t == getMatch()) { return true; } } return false; } } COM: <s> attempts to match ...
funcom_train/38501066
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setAccelerationFactor(int accelerationFactor) { if (_status != Status.STOPPED) { throw new IllegalStateException(); } if (accelerationFactor < 1 || accelerationFactor > 16) { throw new IllegalArgumentException("Acceleration factor must be a value from 1 to 16."); } _a...
funcom_train/5205132
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Command getCommand() { @SuppressWarnings("unchecked") List<IGraphicalEditPart> objects = createOperationSet(); if (objects.isEmpty()){ return null; } for (Object next : objects){ if (next instanceof ConnectionEditPart){ //connections are sync'ed in U2T return null; } if...
funcom_train/973584
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public TextField getTextField() { if (textField == null) {//GEN-END:|123-getter|0|123-preInit // write pre-init user code here textField = new TextField("Saved name", "mygame1", 32, TextField.ANY);//GEN-LINE:|123-getter|1|123-postInit // write post-init user code he...
funcom_train/26382229
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public FilerFileProperties getFileProperties(String file) throws FilerCommunicationException, FilerTimeoutException { FilerPacket p=Request(CMD_ASK_DIR,file.toCharArray()); p=Request(CMD_GET_DIR,dummy); if(p.endOfDir) return null; return new FilerFileProperties(p); } COM:...
funcom_train/37885494
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setDefaultFunctionNamespace(String uri) throws XPathException { //Not sure for the 2nd clause : eXist forces the function NS as default. if (defaultFunctionNamespace != null && !defaultFunctionNamespace.equals(Function.BUILTIN_FUNCTION_NS) && !defaultFunctionNamespace.equals(uri)) throw ...
funcom_train/19322523
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Object getValue(ObjectName objectname) { String s = null; try { s = QueryEval.getMBeanServer().getObjectInstance(objectname).getClassName(); } catch (Exception exception) { log.error("error while QueryEval is evaluating", exception); } ...
funcom_train/35620543
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void createRoomObjects(PhysicsSpace physicsSpace) { StaticPhysicsNode roomObjects = physicsSpace.createStaticNode(); roomObjects.setModelBound(new BoundingBox()); roomObjects.setLocalTranslation(new Vector3f(20, getFloorHeight(), 55)); roomObjects.attachChild( ModelUtil.convertMultipleModelTo...
funcom_train/34271924
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected WindCell cellWithPoint(final GeoLocation start) throws LocationNotInMap { final Iterator<WindCell> wit = cells.iterator(); while (wit.hasNext()) { final WindCell cell = wit.next(); if (cell.doesContain(start)) return cell; } // - No cell contains this location we have to throw an exceptio...
funcom_train/21498238
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setupEventingClient() throws AxisFault { String axis2XML = CLIENT_CONFIG_DIR + File.separator + "conf" + File.separator + "axis2.xml"; ConfigurationContext configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(CLIENT_CONFIG_DIR, axis2XML); ServiceClient serviceCl...
funcom_train/3990048
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addNiezdolnosc_do_pracyPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_HistoriaChoroby_niezdolnosc_do_pracy_feature"), ge...
funcom_train/13994102
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ValidationMessageClass getHighestPriorityClass() { ValidationMessageClass result = null; for (Iterator it = delegate.iterator(); it.hasNext();) { ValidationMessage message = (ValidationMessage) it.next(); if (result == null) { result = message.g...
funcom_train/32158125
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void recycleMemory(ByteBuffer buffer) { if (isPreallocationMode()) { int remaining = buffer.remaining(); if (remaining >= getPreallocatedMinBufferSize()) { synchronized (memoryBuffer) { if (LOG.isLoggable(Level.FINE)) { LOG.fine("recycling " + DataConverter.toFormatedBytesSize(buf...
funcom_train/3024875
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Object removeMethod(SimpleNode node) { int loop = node.jjtGetNumChildren(); for (int ndx = 0; ndx < loop; ndx++) { SimpleNode next = (SimpleNode) node.jjtGetChild(ndx); SimpleNode possible = (SimpleNode) next.jjtGetFirstChild(); if (isFound(possible)) { removeSingle(node, next, ndx); ...