__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/5403629
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object getValueAt( int row, int column ) { switch( column ) { case 0: return ((Issue)vecTableData.elementAt( row )).getNumber(); case 1: return ((Issue)vecTableData.elementAt( row )).getTitle(); default: System.err.println( getClass() + ".getValueAt() :: Invalid column numbe...
funcom_train/51610296
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String executeBlock(String block) { Vector<SimpleScriptParser.ScriptLine> lines; try { lines = (new SimpleScriptParser(new StringReader(block))).parse(); String s = ""; //Script: " + Integer.toString(lines.size()) + " lines"; for(int i=0; i<lines.size();i++) s = s + executeLine(lines.get(...
funcom_train/47506612
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Property readProperty(Cursor pCursor) { Property p = new Property(); p.setId(pCursor.getInt(pCursor.getColumnIndex(PropertyDb.FIELD_ID))); p.setKey(pCursor.getString(pCursor.getColumnIndex(PropertyDb.FIELD_KEY))); p.setValue(pCursor.getString(pCursor.getColumnIndex(PropertyDb.FIELD_VALUE))); re...
funcom_train/24532570
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String isCorrectObject(Object value) { if (value == null) if (!fIsCharacterClass) return PropertysheetMessages.null_invalid_WARN_; // null is invalid for primitives else return null; else if (fDataType.isInstance(value)) return null; else // TODO: Give a more descriptive error me...
funcom_train/5474987
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getJButton3() { if (jButton3 == null) { jButton3 = new JButton(); jButton3.setText("Cancelar"); jButton3.setMnemonic(java.awt.event.KeyEvent.VK_A); jButton3.setIcon(new ImageIcon(getClass().getResource("images/End24.gif"))); jButton3.setFont(new java.awt.Font("Dialog", java.awt.F...
funcom_train/37590257
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void _addValue(T value) { _data.add(value); _tableModel.fireTableRowsInserted(_data.size()-1, _data.size()-1); _table.getSelectionModel().setSelectionInterval(_data.size()-1,_data.size()-1); notifyChangeListeners(); resizeTable(); } COM: <s> add the value to the table update and...
funcom_train/21890479
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void assertPolygonToGraph(String aPolygon, String aGraph, boolean debug) { FPolygon p = createPolygon(aPolygon); Graph g = convertToGraph(p); if (debug) { //Display the polygon and the graph to see what's happened. PolygonViewer.showPolygonViewer(p, g); } assertEquals(aGraph, g.toString()...
funcom_train/44665345
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String createNewReview(ReviewForm review){ String result = Consts.FORWARD_FILE_LIST; try{ getReviewAccess().createReview(review); PeerReview peerReview = createReviewFromForm(review); getNotificationClient().notifyOfNewReview(peerReview,null); }catch (Noti...
funcom_train/37422682
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public User findUserById(long pId)throws ClassNotFoundException, SQLException{ String tSql="select * from user where id_user="+Long.toString(pId); Vector tVect = findUserByQuery(tSql); if (tVect.size() > 0) return (User) tVect.firstElement(); else return null;...
funcom_train/50465058
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected Rectangle getOwnerRect() { if (owner instanceof JWindow) { return ((JWindow) owner).getRootPane().getBounds(); } else if (owner instanceof JFrame) { return ((JFrame) owner).getRootPane().getBounds(); } else { return null; } } COM: <s> get the rec...
funcom_train/44497231
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ResultSequence idiv(ResultSequence arg) throws DynamicError { XSDouble val = (XSDouble) get_single_type(arg, XSDouble.class); if(val.zero()) throw DynamicError.div_zero(null); return ResultSequenceFactory.create_new(new XSInteger((...
funcom_train/16944103
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void createCalendario() { GridLayout gridLayout1 = new GridLayout(); gridLayout1.makeColumnsEqualWidth = true; GridData gridData = new GridData(); gridData.horizontalAlignment = GridData.CENTER; gridData.horizontalSpan = 2; gridData.grabExcessHorizontalSpace = true; gridData.verticalAlignme...
funcom_train/39406178
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public OSSpinner getJTextFieldIOD() { if (OSSpinnerIOD == null) { OSSpinnerIOD = new OSSpinner(0,0,60,0.1,1,false); OSSpinnerIOD.setEnabled(false); OSSpinnerIOD.setToolTipText(getMainFrame().getI18N().translate("Oogdruk")); OSSpinnerIOD.addFocusListener(new FocusStyle()); OSSpinnerIOD.setBorder(...
funcom_train/3412926
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int hashCode() { int result = 0; result = (supportsAlpha ? 2 : 3) + (isAlphaPremultiplied ? 4 : 5) + pixel_bits * 6 + transparency * 7 + numComponents * 8; if (nBits != null) { for (int i = 0; i <...
funcom_train/49455993
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addCommenter(Db db, int modifier) throws Exception { _logger.debug("RaciVulnerability - addCommenter"); rdb = new RaciDb(); rdb.setDb(db); RACI raci = rdb.getRaci(modifier, getRaciObjectId()); if (raci == null) { raci = new RACI(); raci.setC(true); raci.setUserId(modifi...
funcom_train/8165759
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private OutputStream getOutputStream(String path) throws IOException { int dirLength = path.lastIndexOf("/"); // Create directories if(dirLength != -1) { File directory = new File(path.substring(0, dirLength)); directory.mkdirs(); } // Create file File file = new File(path); file.create...
funcom_train/2883070
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void bindNameAndClassname(Prim prim) throws SmartFrogResolutionException, RemoteException { assert prim != null : "no prim parameter"; name = prim.sfResolve(nameRef, name, true); className = prim.sfResolve(classNameRef, className, true); } COM: <s> bind the name and clas...
funcom_train/45077165
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isValidUser(byte[] moniker) { UserData aUser = new UserData(); aUser.userSD = new SessionData(); aUser.userSD.moniker = moniker; aUser = lookupUser(aUser, null, USE_MONIKER); if (debug) System.out.println("TransUserList: isValidUser: "+ aUser); if (aUser != null) return true; else...
funcom_train/29391684
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean putTask(ScheduleTask task) { String taskId = task.task.getJobName(); if ( scheduledTasks.containsKey(taskId) ) { ScheduleTask existingTask = scheduledTasks.get(taskId); if ( null != existingTask ) existingTask.refresh(task); return false; } else { scheduledTasks.put(taskId, task)...
funcom_train/12551065
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void unhighlightNode(char c) { //Get the node's index int my_index = translateCharIndex(c); //If the node isn't activated, we shouldn't change it. if(!my_nodeset[my_index].isActivated()) return; //Toggle the node's highlighting my_nodese...
funcom_train/9877754
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateSelectionText() { infoText = "<html><body><font size = 5><b><u><center>Locus Selection List</center></u></b></font>"; infoText += "<center>Use <b>shift-left-click</b> on a locus arrow to add to the list.<br>"; infoText += "Number of Loci in the List: <b>"+this.model.getRowCount()+"</b></c...
funcom_train/9364599
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void clearCache(boolean includeDiskFiles) { // Note: this really needs to be a static method as it clears cache for all // WebView. But we need mWebViewCore to send message to WebCore thread, so // we can't make this static. mWebViewCore.sendMessage(EventHub.CLEAR_CACHE,...
funcom_train/31357430
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String readLine() throws Exception { // Variables String line = ""; if (isAlive() == true) { try { String s = fromEngine.readLine(); // System.out.println("fromEngine.readLine(): " + s); return s; // read a line from the engine and return it // return fromEngine.re...
funcom_train/36534418
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getSegmentNum(int segmentID) { int segmentNum = 0; try { String selectStatement = "SELECT SegmentNum FROM roadsegment WHERE SegmentID=?;"; PreparedStatement pstmt = con.prepareStatement(selectStatement); pstmt.setInt(1, segmentID); ResultSet result = pstmt.executeQuery(); while (res...
funcom_train/40853443
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Reader getReader() { Reader f; // Normal case: real file to parse if (isFile) { try { f = new FileReader(file); } catch (IOException e) { errors.add(new ConstraintsError( filename, 0, "Can't open \"" + filename + "\"." )); return null; } } // Test case: reading t...
funcom_train/31740676
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void init() { threadPool = this; db = Database.getDatabase(); threadList = new LinkedList(); closed = false; for (int i = 0; i < numThreads; i++) { new WorkerThread().start(); } futureTasks = new TreeMap(); futureTaskThread = new FutureTaskThread(futureTas...
funcom_train/7311001
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Site getSite() { Definition owner = getOwner(); if (owner == null) { return null; } else if (owner == this) { throw new IllegalStateException("Circular definition: " + getName() + " owns itself"); } else { return owner.getSite...
funcom_train/33296771
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testHasMessages() { assertTrue(this.notification.hasMessages(Message.Type.ERROR)); assertTrue(this.notification.hasMessages(Message.Type.WARNING)); assertTrue(this.notification.hasMessages(Message.Type.INFO)); assertTrue(this.notification.hasMessages()); } COM:...
funcom_train/32824883
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void handleClass(IResourceDelta delta, IResource resource) { // If this is a library class, it will be handled elsewhere if (!isLibraryResource(libraryPaths, resource)) { // Collect up the changes so they // can be submitted all at once switch (delta.getKind()) { case IResourceDel...
funcom_train/18273528
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void reset(ActionMapping mapping, HttpServletRequest request) { try { super.reset(mapping, request); UserService userService = new UserServiceImpl(); request.setAttribute(WebKeys.USER_LIST, userService.getUsers()); addBtn = null; } catch (...
funcom_train/18727866
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setAmp(final int amp) { this.groupAmp = amp; if (amp == 0) { return; } final Integer amplitude = amp; for (JaxoObject ob : getObjectList()) { JaxoObjectUtils.setParameter(ob, "amp", Integer.TYPE, amplitude, false); } } ...
funcom_train/36230764
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double getArea() { double area = 0.0; for (int i = 0; i < getNumInnerPoly(); i++) { BasePolygon p = getInnerPoly(i); double tarea = p.getArea() * (p.isHole() ? -1.0 : 1.0); area += tarea; } return area; } COM: <s> return the area of the polygon in square units </s>
funcom_train/18896484
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getLexicalForm() { // Create the default format string String formatString = "'---'dd"; if (hasTimeZone) { formatString += "'Z'"; } // Create a formatter to parse the date SimpleDateFormat formatter = new SimpleDateFormat(formatString); // Apply the formattin...
funcom_train/2878216
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int appendPath(String ref) { if (!(containsKey(PATH)) || (get(PATH) == null)) { put(PATH, new StringBuffer(ref)); } else { ((StringBuffer) get(PATH)).append(ref); } return ((StringBuffer) get(PATH)).length(); } COM: <s> append...
funcom_train/3170842
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isSwitchedOffBy(RegionDelta delta) { return (match(delta.before())) && (!(match(delta.after()))); /* udanax-top.st:66203:Filter methodsFor: 'filtering'! {BooleanVar} isSwitchedOffBy: delta {RegionDelta} "Whether the change switches the state of the filter from on to off. (I.E. Whether t...
funcom_train/10500092
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void sort(List/*<ResourceWithFlags>*/ l) { Collections.sort(l, new Comparator/*<ResourceWithFlags>*/() { public int compare(Object o1, Object o2) { ResourceWithFlags r1 = (ResourceWithFlags) o1; ResourceWithFlags r2 = (ResourceWithFlags...
funcom_train/3373330
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected View getView() { if (!validateIfNecessary()) { return null; } Object lock = lock(); try { View rootView = getRootView(); Element e = getElement(); int start = e.getStartOffset(); ...
funcom_train/21437377
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: static public ResidueType createYCleavage() { ResidueType ret = new ResidueType(); ret.name = "#ycleavage"; ret.description = "Y Cleavage"; ret.superclass = "cleavage"; ret.composition = "H2O"; ret.can_redend = false; ret.can_parent = true; ret.updateMolecule(); return ret...
funcom_train/41563127
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isFundamental() { return type.isPrimitive() || String.class.isAssignableFrom(type) || Date.class.isAssignableFrom(type) || Integer.class.isAssignableFrom(type) || Long.class.isAssignableFrom(type) || BigInteger.class.isAssignableFrom(type) || BigDecimal.class.isAssignableFrom(t...
funcom_train/50296987
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void associateConnection(Object connection) throws ResourceException { if (!connectionSharing) disassociateConnections(); try { ((AbstractConnection) connection).setManagedConnection(this); connectionHandles.add(connection); } catch (...
funcom_train/15627213
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setMaxUndoStates(final int maxUndoStates) { this.maxUndoStates = maxUndoStates; if (maxUndoStates > 0) { for (final UndoModel<G, A, R> undoModel : undoModels.values()) { undoModel.trimToSize(maxUndoStates); } } } COM: <s> sets t...
funcom_train/3292628
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getHostName( String hostname ) { // if hostname == ipaddress, try to get a hostname for it // ------------------------------------------------------ String hn = null; if( hostname != null && !hostname.equals("")) { try { hn = InetAddr...
funcom_train/31296619
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean raise() { for (int index = 0; index < activeState.length; index++) { activeState[index]++; if (activeState[index] >= terminals.length) { // rollover, reset actual value to 0 activeState[index] = 0; if (index == activeState.length - 1) { // uh oh overflow overflow ...
funcom_train/17788319
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void reset() { for (int l = 0; l < states.length; l++) { for (int r = 0; r < states[l].length; r++){ for (int c = 0; c < states[l][r].length; c++) { states[l][r][c] = (int) 0; tagTree[l][r][c] = (int) 0; } } } } COM: <s> sets the code state code and code tag tree code inte...
funcom_train/1385507
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JXTable getTblDDT() { if (tblDDT == null) { try { modelloDdtCarico = new DdtCaricoModel(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } tblDDT = new JXTable(modelloDdtCarico); DBManager.getIstance().addDBStateChange(modelloDdtCarico); ...
funcom_train/17492009
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ClassInfo lookupClass(String cname) throws ClassNotFoundException { if (classPool.contains(cname)) { return classPool.get(cname); } try { return new JavaClassInfo(context.lookupClass(cname, null)); } catch (TreeCompiler.PseudoError e) { return e.getClassI...
funcom_train/27714396
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int getPrevSiblingElement(int nodeIndex) { int siblingIndex = fDeferredDocumentImpl.getPrevSibling(nodeIndex, false); while (siblingIndex != -1) { if (fDeferredDocumentImpl.getNodeType(siblingIndex, false) == Node.ELEMENT_NODE) { return siblingIndex; ...
funcom_train/5593845
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testVersion() { System.out.println("testVersion"); sender.version(); assertEquals("VERSION", bufferToString()); sender.version("*.chatservs.com"); assertEquals("VERSION *.chatservs.com", bufferToString()); } COM: <s> test of version method of c...
funcom_train/27806119
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void MakePapersPanel() { papersPanel = new JPanel(); papersPanelScroll = new JScrollPane(papersPanel); papersPanelScroll .setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); papersPanelScroll .setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER); // pap...
funcom_train/48664269
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String getVarName(String id, int index) { // is it a valid identifier and not a java keyword? if (id == null || !identifierPattern.matcher(id).matches() || javaKeywordsPattern.matcher(id).matches()) { id = "r" + index; } retur...
funcom_train/22127063
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void advanceWorkflow() throws ZKWorkflowRuntimeException { /* * if we're inactive, we can't advance the workflow. Send an exception so we're * forced to deactivate our children. */ if (wAction == null) { throw new ZKWorkflowRuntimeException("inactive trigger can't advance a workflow"); ...
funcom_train/24257430
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setData(ByteBuffer data) { for (int i = 0; i < offsets.length; i++) { if (isLongFormat()) { offsets[i] = data.getInt(); } else { offsets[i] = 2 * ( 0xFFFF & (int) data.getShort()); } } } COM: <s> initialize th...
funcom_train/11104079
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setBindingType(String bindingType) { if (bindingType != null && (bindingType.equals(BINDING_TYPE_METHOD) || bindingType.equals(BINDING_TYPE_VALUE) || bindingType.equals(BINDING_TYPE_EARLY) || bindingType.equals(BINDING_TYPE_NONE))) { ...
funcom_train/18325662
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addSupplierRolePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Association_supplierRole_feature"), getString("_UI_Propert...
funcom_train/29267087
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testBasicSelect() { Table table = getBasicTable(); SelectStatement selectStatement = table.getSelectStatement(); SQLGenerator generator = getSQLGenerator(); generator.setLineTerminator("\n"); String s = generator.getQuery(selectStatement); assertEqua...
funcom_train/51646636
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Node nodeByLine(final int line) throws BadLocationException { /* * Works for any binary search tree. */ int remaining= line; int offset= 0; Node node= fRoot; while (true) { if (node == null) fail(line); if (remaining == node.line) break; if (remaining < node.line) ...
funcom_train/17900610
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private ComponentPanel getPanelCacheObject(Component component) { if (componentPanels == null || componentPanels.size() == 0) { return null; } for (int i = 0, k = componentPanels.size(); i < k; i++) { ComponentPanel object = componentPanels.get(i); i...
funcom_train/50759247
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void endBatch() { runTimer.stop(); if (metrics) { runTimer.show(getRunTitle() + " run"); threadTimer.show(getRunTitle() + " thread"); getAudioPlayer().showMetrics(); long totalMemory = Runtime.getRuntime().totalMemory(); LOGGER.info ("Memory Use : " + (totalMemory - ...
funcom_train/5232479
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void insertTextAtCaret(String prefix){ if(textField!=null && textField.getText()!=null){ StringBuilder sb = new StringBuilder(textField.getText()); if(textField.getSelectedText() != null){ sb.replace(textField.getSelectionStart(), textField.getSelectionEnd(), prefix); }else{ int positio...
funcom_train/4178951
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void notifyTestSuiteElement(final TestSuite suite) { Validate.notNull(suite, "The test suite cannot be null."); Xpp3Dom element = suites.get(suite.hashCode()); if (element == null) { element = new Xpp3Dom("testsuite"); suites.put(suite.hashCode(), element); } writeAtt...
funcom_train/27754827
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void install(BaseEditor baseEditor, IFoldingReciever reciever) { fBaseEditor = baseEditor; fReciever = reciever; fBaseEditor.addRegionHandler(fHandler, fBaseEditor.getParserFactory().getHRCParser().getRegion("def:EmbeddedTag")); fBaseEditor.addEditorListe...
funcom_train/25492800
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public RoadEdge getOutEdge(RoadNode node) { RoadEdge edge = null; Iterator<RoadEdge> it = outEdges.iterator(); while (it.hasNext()) { RoadEdge temp = it.next(); if ((temp.nodeA==this && temp.nodeB==node) || (temp.nodeB==this && temp.nodeA==node)) { edge = temp; break; } } return edg...
funcom_train/34420971
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void processWorkItemRequest(String aWorkItemID) { setContentType(); try { ItemCollection workItem = simpleWorkflowManager .getWorkItem(aWorkItemID); if (workItem != null) { if ("html".equals(sFormat)) printWorkItemHTML(workItem); else if ("xml".equals(sFormat)) printWork...
funcom_train/49651105
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public StringItem getReceivedString() { if (receivedString == null) {//GEN-END:|69-getter|0|69-preInit // write pre-init user code here receivedString = new StringItem("", "cos", Item.PLAIN);//GEN-LINE:|69-getter|1|69-postInit // write post-init user code here ...
funcom_train/39879126
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double getAltitude(double defaultValue) { double altitude = getAttributeDouble(TAG_GPS_ALTITUDE, -1); int ref = getAttributeInt(TAG_GPS_ALTITUDE_REF, -1); if (altitude >= 0 && ref >= 0) { return (double) (altitude * ((ref == 1) ? -1 : 1)); } else { ...
funcom_train/25753812
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void visit(DitaBosMember bosMember) throws BosException { try { if (rewriteLocalUris(bosMember)) { // Do whatever needs to be done to react to pointer // rewriting, such as updating content within a CMS // or writing new files } } catch (AddressingException e) { throw new Bo...
funcom_train/18376191
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void importClass(String className) { int pos = className.lastIndexOf('.'); String simpleName = className.substring(pos + 1); try { Class result = getClass(className); importClass(simpleName, result); } catch (Exception e) {}; } COM: <s> method impo...
funcom_train/10179701
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void doRedirect(String url) throws JspException { HttpServletResponse response = (HttpServletResponse) pageContext.getResponse(); try { response.sendRedirect(url); } catch (IOException e) { TagUtils.getInstance().saveException(pageContext...
funcom_train/41165916
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void save(ToExercise2Group entity) { EntityManagerHelper.log("saving ToExercise2Group instance", Level.INFO, null); try { getEntityManager().persist(entity); EntityManagerHelper.log("save successful", Level.INFO, null); } catch (RuntimeException re) { EntityManagerHelper.log("save failed", ...
funcom_train/36737178
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public SqlLib getLib(String resource) throws SqlLibraryRuntimeException { SqlLib lib = null; if(libraries.containsKey(resource)) { lib = (SqlLib)libraries.get(resource); } else { Reader reader = ReaderUtils.returnReaderFromResource(resource); if(reader != null) { lib = getLib(resource, rea...
funcom_train/4530096
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object o) { if (o == null) { return false; } if (this == o) { return true; } if (!(o instanceof FileStatus)) { return false; } FileStatus other = (FileStatus)o; return this.getPath().equals(other.getPath()); } COM: <s> compare if this ob...
funcom_train/28974389
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { if ("PUGSoap".equals(portName)) { setPUGSoapEndpointAddress(address); } else { // Unknown Port Name throw new javax.xml.rpc.ServiceExcep...
funcom_train/1165211
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Status destroyFavorite(long id) throws WeiboException { // return new Status(http.post(getBaseURL() + "favorites/destroy/" + id + ".xml", true), this); return new Status(http.post(getBaseURL() + "favorites/destroy/" + id + ".json", true)); } COM: <s> un favorites the status specified i...
funcom_train/40943946
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public interface Container { /** * Registers a new action handler for this container * * @param actionHandler * the new handler to be added. */ public void addActionHandler(Action.Handler actionHandler); /** * Removes ...
funcom_train/51717535
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String B_F_ASCII() { if (libelle) { return "classique : 0x30 0x31=>01"; } String result = ""; for (int i = Offset; i < Offset + taille; i++) { if (buffer[i] < 32) { result = result + "."; } else { resu...
funcom_train/16451270
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void loadTranslations(Element translationsElement) { List translationElements = translationsElement.getChildren("translation"); //iterate over all the translations Iterator i = translationElements.iterator(); while(i.hasNext()) { Element translationElement =...
funcom_train/48184926
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void printLfAlts() { for (List<Alt> altSet : edgeFactory.lfAlts) { for (Alt alt : altSet) { out.print("alt[" + alt.altSet + "." + alt.numInSet + "]: "); out.println(Edge.toString(alt.bitset)); } } out.flush(); } COM: <...
funcom_train/37740174
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getNewValueShort () { if (getNewValue() == null) { return null; } if (getNewValue().length() <= 30) { return getNewValue(); } else { return getNewValue().substring(0, 27) + "..."; } } COM: <s> get the start of the n...
funcom_train/1029140
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testBug24360() throws Exception { if (!versionMeetsMinimum(5, 0)) { return; } Connection c = null; Properties props = new Properties(); props.setProperty("useServerPrepStmts", "true"); try { c = getConnectionWithProps(props); this.pstmt = c.prepareStatement("SHOW PROC...
funcom_train/5897710
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setType(String type) { if (!isValid(type)) throw new UiException("Type must be one of the following: " + "pie, line, bar, column, stackbar, stackcolumn"); if (!Objects.equals(_type, type)) { _type = type; invalidate(); // Always redraw } } COM: <s> sets the type of chart </s>
funcom_train/44882794
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void afterPhase(PhaseEvent arg0) { // after the view is restored we can trigger an aquire resource in all // connected datamodels PhaseModelHolder modelHolder = (PhaseModelHolder) FacesUtils .getManagedBean("phaseModelHolder"); Iterator it = modelHolder.getPhaseModelMap().keySet().iterator(); ...
funcom_train/3613092
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getRowCount() { int result = 0; final Iterator it = columns.iterator(); while (it.hasNext()) { final Column column = (Column) it.next(); if (column.getRows() > result) { result = column.getRows(); } } return...
funcom_train/5021782
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void refreshWidgets() { if (hasChanges()) { Display display = ViewUtil.getDisplay(); display.asyncExec(new Runnable() { public void run() { for (XProcessWidget xProcessWidget : getPropertyFieldValues()) { xProce...
funcom_train/22048550
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getVersionStr() { String tTemp = ""; tTemp = "" + (iVersionNumber / 10000000) + "."; tTemp = tTemp + ( (iVersionNumber % 10000000) / 100000) + "."; tTemp = tTemp + ( (iVersionNumber % 100000) / 1000) + "."; tTemp = tTemp + (iVersionNumber % 1000); return tTemp; } COM: <s...
funcom_train/2488619
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testLoad() { String propertiesFileString = "key1=value1\r\nkey2=value2\r\n"; ByteArrayInputStream bais = new ByteArrayInputStream( propertiesFileString.getBytes()); testObject.load(bais); assertEquals("Not the correct value", "value1", testObject.getProperty("key1")); assertEquals...
funcom_train/16707300
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void destroyObject( Object connList ) throws Exception { CosignConnectionList cosignConnectionList = (CosignConnectionList)connList; if ( log.isInfoEnabled() ) { log.info( "[" + cosignConnectionList.getCosignConListId() + "]: destroying cosign connection list" ); } cosignConnectionL...
funcom_train/40399829
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String getServerStatus() throws ServerCommunicationException { Socket socket = new Socket(); InetSocketAddress endPoint = new InetSocketAddress( getRemoteIp(), getRemotePort() ); if ( endPoint.isUnresolved() ) { throw new ServerCommunicationException( "Unable to resolve: " + getRemo...
funcom_train/18550458
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ProjectTO getProjectObject(ProjectTO pto, boolean isLazyLoad) throws BusinessException{ ProjectTO response = null; try { response = (ProjectTO)dao.getProjectById(pto, isLazyLoad); } catch (DataAccessException e) { throw new BusinessException(e); ...
funcom_train/44477782
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Node getObject(Model g) { if (this.subUri != null) return g.createURI(this.subUri); if (this.valueLang != null) return g.createLanguageTagLiteral(this.value, this.valueLang); if (this.valueTypeUri != null) return g.createDatatypeLiteral(this.value, this.valueTypeUri); return g.createPl...
funcom_train/3025234
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Component getTreeCellRendererComponent(JTree p0, Object p1, boolean p2, boolean p3, boolean p4, int p5, boolean p6) { return delegate.getTreeCellRendererComponent(p0, p1, p2, p3, p4, p5, p6); } COM: <s> gets the tree cell renderer component attribute of the </s>
funcom_train/33588767
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JTextField getJTextField_POLineRef() { if (jTextField_POLineRef == null) { jTextField_POLineRef = new JTextField(); jTextField_POLineRef.setColumns(35); jTextField_POLineRef.setBounds(100, 120, 439, 19); } return jTextField_POLineRef; } ...
funcom_train/26464573
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected int valueToMarkerPosition(double value) { int v; if (getOrientation() == HORIZONTAL) { v = getWidth(); } else { v = getHeight(); } int w = (int) ((v - getMarkerLength()) * (value - getScaleStart()) / (getScaleEnd() - getScaleStart())); if (w < 0) { return 0; } if (w > v - ge...
funcom_train/41187593
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public SimpleXHtmlPDFWin createShellWin() { try { createTmpDirectory(); } catch(Exception e) { e.printStackTrace(); } setAdobePath(); shell.setSize(510, 210); shell.setLocation(180, 250); final GridLayout layout = new GridLayout(); layout.numColumns = 2; shell.setLayout(l...
funcom_train/35353370
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected InvocationInterceptor getInvocationInterceptor(StoredProcedure proc) { InvocationInterceptor interceptor = (InvocationInterceptor) CacheManager.getClassFromCache(proc.invocationInterceptor()); if (interceptor == null) { try { interceptor = (InvocationInterceptor) proc.invocationInterceptor()...
funcom_train/50872840
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testGetElements() { OMApplication application = new OMApplication(); application.addElement(new OMInteger("1")); application.addElement(new OMSymbol("a","b")); assertTrue(application.getElements().size() == 2); } COM: <s> test of get elements method of class om...
funcom_train/24532734
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void applyAttributeSettings(EObject target, EStructuralFeature feature, List values) { if (!isDead()) { CompoundCommand buildUp = null; if (applyRules) buildUp = propertyAdds(target, feature, values, buildUp); if (buildUp == null) super.applyAttributeSettings(target, feature, values); ...
funcom_train/25828368
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void storeMemories(List<PerceptionEvent> perceptionEvents) { if (this.agentMemory != null) {// if an agentMemory is set List<AtomicEvent> atomicEvents = new ArrayList<AtomicEvent>( this.internalEvents); atomicEvents.addAll(perceptionEvents); this.agentMemory.storeMemori...
funcom_train/2615804
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean between(Date date, Date start, Date end) { boolean result = false; if (((date.after(start) || date.equals(start))) && ((date.before(end) || date.equals(end))) && (!end.before(start))) { result = true; } return result; } COM: <s> method that checks if a date is between bounds included ...
funcom_train/8553390
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void initialize(Size constraint) { min = constraint.min(); max = constraint.max(); if (min < 0) throw new ValidationException("Min cannot be negative"); if (max < 0) throw new ValidationException("Max cannot be negative"); if (max < min) throw new ValidationExcep...
funcom_train/34339591
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public TextField getArt1() { if (art1 == null) {//GEN-END:|31-getter|0|31-preInit // write pre-init user code here art1 = new TextField("Art1", null, 5, TextField.NUMERIC);//GEN-LINE:|31-getter|1|31-postInit // write post-init user code here }//GEN-BEGIN:|31...