__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/48499422
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ReleaseDTO getRelease() { ReleaseDTO release = new ReleaseDTO(); release.setRelease_id(Integer.parseInt(this.getRelease_id())); release.setName(this.getName()); release.setDescription(this.getDescription()); release.setStart(this.getStartDate()); release.setEnd(this.getEndDate()); if (closed...
funcom_train/6518909
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Document loadXMLFromFile(String filepath) throws Exception { File file = new File(filepath); if (!file.exists()) { throw new Exception( "Specified file does not exist or you do not have access to it."); } DocumentBuilder builder = DocumentBuilderFactory.newInstance() .newDocumentBuild...
funcom_train/40028175
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setObjects(ObjectList<T> objects) { // remove us from old object list if (null!=this.objects && this.objects != objects) this.objects.removeListener(this); // update object list this.objects = objects; // attach this model to object list objects.addListener(this); } COM: <...
funcom_train/21106286
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private MJCheckBox getChBS_Since() { if (chBS_Since == null) { chBS_Since = new MJCheckBox(); chBS_Since.setText("Since"); chBS_Since.setHorizontalTextPosition(javax.swing.SwingConstants.LEADING); } return chBS_Since; } COM: <s> this method initializes mjcheck box </s>
funcom_train/16380070
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean validateNegativePointsType1_Min(float negativePointsType1, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = negativePointsType1 >= NEGATIVE_POINTS_TYPE1__MIN__VALUE; if (!result && diagnostics != null) reportMinViolation(CTEPackage.Literals.NEGATIVE_POINTS_TYPE1,...
funcom_train/37587927
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean addProjectClassPath(File f) { InterpreterJVMRemoteI remote = _state.value().interpreter(false); if (remote == null) { return false; } try { remote.addProjectClassPath(f); return true; } catch (RemoteException e) { _handleRemoteException(e); return false; } } COM: <s> blocks unt...
funcom_train/6489724
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setTitle(Frame f, Run run) { // Generate title for this run. String name = run.getLongDescription(); String title = resources.getProperty("dss.gui.result.title", "RESULT") + ((name == null) ? "" : (": " + name)); f.setTitle(title); } COM:...
funcom_train/12182894
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setTargetSectionEnabled(boolean enabled) { if (supportsTargetedSelection) { Iterator it = targetControls.iterator(); while (it.hasNext()) { Control control = (Control) it.next(); control.setEnabled(enabled); } ...
funcom_train/20400936
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ModelAndView displayStack(HttpServletRequest request, HttpServletResponse response) throws Exception { long taskRunId = getTaskRunId(request); TaskRun taskRun = taskRunManager.get(taskRunId); String message = taskRun.getStackTrace(); return new ModelAndView("display_task_run_message", "me...
funcom_train/35170697
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void resolveReplacementSubTree(Object context) { JMeterTreeNode root = (JMeterTreeNode) context; if (selectedNode == null) { List nodePathList = getNodePath(); if (nodePathList != null && nodePathList.size() > 0) { traverse(root, nodePathList, 1);...
funcom_train/2960118
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void awakeOnEnv(int varIdx, int x) throws ContradictionException { if (varIdx == UNION_SET_INDEX) for (int idx = 0; idx < setVars.length; idx++) setVars[idx].remFromEnveloppe(x, this, false); else decOccurence(x); } COM: <s> default propagati...
funcom_train/45601486
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void redraw() { if (top != null) { top.removeAll(); remove(top); } JMenuBar menu = new JMenuBar(); JMenu file = new JMenu("File"); JMenuItem item = new JMenuItem("Save"); item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, InputEvent.CTRL_DOWN_MASK)); item.addActionListener(...
funcom_train/39871774
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void sync() { if (DebugFlags.WEB_SYNC_MANAGER) { Log.v(LOGTAG, "*** WebSyncManager sync ***"); } if (mHandler == null) { return; } mHandler.removeMessages(SYNC_MESSAGE); Message msg = mHandler.obtainMessage(SYNC_MESSAGE); m...
funcom_train/1169281
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JLabel getTypeLabel() { if (typeLabel == null) { typeLabel = new JLabel(); typeLabel.setText("Type"); typeLabel.setFont(new java.awt.Font("Segoe UI", 0, 14)); } return typeLabel; } COM: <s> p getter for the field code type label code </s...
funcom_train/15399079
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String runJob (JobTemplate jt) throws DrmaaException { if (jt == null) { throw new NullPointerException ("JobTemplate is null"); } else if (jt instanceof JobTemplateImpl) { return this.nativeRunJob (((JobTemplateImpl)jt).getId ()); } else { throw new InvalidJ...
funcom_train/19429520
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addName(String name, JObject value) throws NameError { if (types.containsKey(name)) { throw new NameError(this, "multiple definitions for " + name); } else { types.put(name, value); myPackage.addName(name, value); } } COM: <s> add a name to this sour...
funcom_train/18199074
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getSaveButton() { if (saveButton == null) { saveButton = new JButton(); saveButton.setText("Sauvegarder"); saveButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { save(...
funcom_train/43384745
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void generateColumn(StringBuffer buffer, Players players) { buffer.append("("); Iterator<Player> iter = players.iterator(); while (iter.hasNext()) { Player player = iter.next(); buffer.append(player.getId().toString()); buffer.append("_geld,"); buffer.append(player.getId().toString())...
funcom_train/29771984
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setTaskList(TaskList taskList) { this.taskList = taskList; listView.setListData(this.taskList); repaint(); Iterator iterator = taskList.iterator(); while(iterator.hasNext()){ Task item = (Task) iterator.next(); //DefaultMutableTreeNode taskNode = new DefaultMutableT...
funcom_train/15407527
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setBeanJoinType(DeployBeanPropertyAssocOne<?> beanProp, boolean outerJoin) { String joinType = TableJoin.JOIN; if (outerJoin){// && util.isUseOneToOneOptional()) { joinType = TableJoin.LEFT_OUTER; } DeployTableJoin tableJoin = beanProp.getTableJoin(); tableJoin.setType(joinType); } }...
funcom_train/24087395
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void initializeProject(Plan p) { Hibernate.initialize(p); Hibernate.initialize(p.getAlternativesDefinition()); Hibernate.initialize(p.getSampleRecordsDefinition()); Hibernate.initialize(p.getTree()); initializeNodeRec(p.getTree().getRoot()); log.debug("pl...
funcom_train/36926629
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public NxJoint createJoint(NxJointDesc jointDesc) { long cPtr = JPhysXAdapterJNI.NxScene_createJoint(swigCPtr, this, NxJointDesc.getCPtr(jointDesc), jointDesc); return (cPtr == 0) ? null : new NxJoint(cPtr, false); } COM: <s> to down cast the result you cant use the </s>
funcom_train/32374891
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private LocalRelationshipManager getRelationshipManager(){ LocalRelationshipManager localRelationshipMgr = null; try{ LocalRelationshipManagerHome localRelMgrHome = (LocalRelationshipManagerHome) serviceLocator.getEJBLocalHome(JNDINames.RELATIONSHIP_MANAGER); localRelationshipMgr = (...
funcom_train/35838147
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addBackground(String sImagePath) { if (lblBackgroundLabel != null) removeBackground(); lblBackgroundLabel = new JLabel(); ImageIcon oIcon = UIImages.createImageIcon(sImagePath); lblBackgroundLabel.setIcon(oIcon); lblBackgroundLabel.setLocation(0,0); lblBackgroundLabel.setSize(lblBackg...
funcom_train/20783456
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setPositionMixingFactor(float mixingFactor) { if(mixingFactor<0) mixingFactor=0; if(mixingFactor>1) mixingFactor=1f; this.positionMixingFactor = mixingFactor; m1=1-mixingFactor; getPrefs().putFloat("EyeTracker.positionMixingFactor",mixingFactor); } COM: <s> set...
funcom_train/47140358
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Gate getRollbackGate() { return new Gate() { public Transition getNextTransition (SaleProcess p, User u) { return new Transition() { public Gate perform (SaleProcess p, User u) { DataBasket db = p.getBasket(); if (db != null) { db.rollbac...
funcom_train/6488853
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setModel(ResultNode model, AlternativeSelectionModel selectionModel) { if (this.selectionModel != null) { selectionModel.removeSelectionListener(mySelectionListener); } this.model = model; this.selectionModel = selectionModel; if (selectionModel ...
funcom_train/10671278
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Result testGetVetoableChangeListeners02() { VetoableChangeSupport propertyChangeSupport = new VetoableChangeSupport( "bean1"); propertyChangeSupport.addVetoableChangeListener("property1", new SimpleListener()); assertEquals(propertyChangeSupport ...
funcom_train/51271764
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public QueryVersion getQueryVersion(int version) throws DMCQException { if (queries.containsKey(new Integer(version))) return (QueryVersion) queries.get(new Integer(version)); else throw new DMCQException(ErrorCodes.A0005_EC_CQ_LIFECYCLE_ERROR,"Query:This version of the query does not exist."); } COM: ...
funcom_train/18388920
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testRemoveChild() { System.out.println("removeChild"); Node child1 = new Node(); Node instance = new Node(); instance.addChild(1,child1); Node child2 = new Node(); instance.addChild(2,child2); assertTrue(instance.removeChild(2)); inst...
funcom_train/19326384
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public FoValue traitVisibility(final FObj fobj, final FoContext context) { final PdVisibility property = (PdVisibility) getProperty( FoProperty.VISIBILITY); if (property != null) { return property.getValue(context, fobj); } return PdVisibility.getVal...
funcom_train/33368185
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addOwner(int ownerID) throws SQLException { if (!isOwner(ownerID)) { dbm.exec("insert into ACLOwners (aclID, ownerID) " + "values ('" + getID() + "', '" + ownerID + "')"); } addReader(ownerID); addWriter(ownerID); } COM: <s> adds a group or user to the list of ow...
funcom_train/48869899
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void update(RevenueSource rs, Connection conn) throws DataException, SQLException { super.update(rs, conn); PrintOrder po = (PrintOrder)rs; PreparedStatement ps = conn.prepareStatement("update PRINTS set QUANTITY = ? where PRINTID = ?"); ps.setInt(1, po.getQuantity()); ...
funcom_train/35232931
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void show( ShowMethod method) { switch (method) { case Log: notifyCmd(CommandMessage.messageLogCmd(number)); case Say: notifyCmd(CommandMessage.messageSayCmd(number)); case Show: notifyCmd(CommandMessage.messageDisplayCmd(number, MessageLevel.None)); case ShowLed: notifyCmd(CommandMessage.messag...
funcom_train/19977338
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Integer searchForID(String what, String needle) { Object[] data; try { data = QueryHandler.instanceOf().clone(context, ROWLIMIT).selectLast("ids", new String[]{what, needle, "'"}, true); return Integer.valueOf(data[0].toString()); } catch (Exception ex) ...
funcom_train/18058293
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public float processArg(String arg, float f) { float value; try { value = Float.valueOf(arg).floatValue(); } catch (NumberFormatException e) { if (optErr) System.err.println("processArg cannot process " + arg + " as a float"); return f; ...
funcom_train/17002062
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void performDestinationDirectoryListing() { for (Enumeration e = destinationDirectory.keys(); e.hasMoreElements();) { Gateway g = (Gateway) e.nextElement(); Destinations destinationAtHop = (Destinations) destinationDirectory .get(g); System.ou...
funcom_train/27813101
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void defaultAppWidget(Context context, int[] appWidgetIds) { final Resources res = context.getResources(); final RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.appwidget); views.setTextViewText(R.id.artist, res.getText(R.string.widget_initial_text)); ...
funcom_train/5587857
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean matchesRegex(Map map, String str) { Iterator iter = map.values().iterator(); while (iter.hasNext()) { KeyValue kv = (KeyValue) iter.next(); Pattern regex = (Pattern) kv.getKey(); if (patternMatcher.contains(str, regex)) { return true; } } return fa...
funcom_train/40684304
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testASimpleScatterChart() { loadApi(new Runnable() { public void run() { DataTable data = createDailyActivities(); // Create a minimal scatter chart. Options options = Options.create(); options.setWidth(400); options.setHeight(240); RootPane...
funcom_train/36849368
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public float threatAtThisPoint(final AIFloat3 position) { final int z = (int) position.z / (this.mapUnitToPos * Defines.THREATRES); final int x = (int) position.x / (this.mapUnitToPos * Defines.THREATRES); return this.map[z * this.width + x]; } COM: <s> gives the current threat a...
funcom_train/28215530
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addNamePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_NamedEvent_name_feature"), getString("_UI_PropertyDescriptor_descr...
funcom_train/1733710
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void newItemArrived(RankableItemIF item) { try { log.info("item arrived " + item); DBManager.getDefaultDBManager().addArticle(item.getArticle()); } catch (DatabaseException e) { // TODO Auto-generated catch block e.printStackTrace(); } RssUimaManager.getManager().addArticle(item.getArt...
funcom_train/12159748
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void dispose() { // unregister the change listener with the tracked elements for (Iterator i=trackedElements.iterator(); i.hasNext();) { ((ODOMElement) i.next()).removeChangeListener(changeListener); } //see comment in ODOMEditorContext.dispose() if ...
funcom_train/49427869
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getPreferredInnerHeight() { int bottom = getInnerY(); if(children != null) { for(int i=0,n=children.size() ; i<n ; i++) { Widget child = children.get(i); bottom = Math.max(bottom, child.getBottom()); } } return ...
funcom_train/31343929
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void retry(IDownload pDownload) { if (!mPauzed) { resetDownload(pDownload); // CB TODO, We can't call download here. Use queue job instead. // download(pDownload); } else { Activator.getDefault().getLog().log( new Status(IStatus.INFO, getClass().getName(), IStatus.OK, "Re...
funcom_train/51167655
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void register(Class implClass) throws Exception { synchronized (this) { // Get or create the proxy. Proxy proxy = doGetProxy(implClass.getName()); // Initialize it now. proxy.initialize(); log.info(implClass.getName() + " registered.")...
funcom_train/42476535
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void populateFields() { if (mRowId != PackListDAO.INVALID_KEY_ROWID) { mTitleText.setText(mPl.getName()); } mListView.setAdapter( new ArrayAdapter<String>(this, R.layout.packlist_item, mPl.getList()) ); } COM: <s> populates the gui elements </s>
funcom_train/15608753
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean intersects(FeatureDisplayPriority otherDisplayPriority) { // Check if this contains the minimum of the other... if (this.contains(otherDisplayPriority.getMinPriority())) return true; // Check if this contains the maximum of the other... if (this.contains(otherDisplayPrio...
funcom_train/6297338
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void unregister_server(String name) throws UnknownServerName { ImRServerInfo _server = server_table.getServer(name); String[] _poas = _server.getPOANames(); // remove POAs for (int _i = 0; _i < _poas.length; _i++) server_table.removePOA(_poas[_i]); server_table.removeServer(name); Debug.ou...
funcom_train/40687742
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String urlEncode(String s) throws GoogleReaderException { try { s = URIUtil.encodeQuery(s); /** * Problem with ? in feed url, we should encode it * @author maratische */ s = s.replaceAll("\\?", "%3F"); return s; } catch (URIException e) { throw new GoogleReaderException( ...
funcom_train/36906710
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String disconnect() throws IOException { String response = null; if (serverSender != null) { serverSender.println("quit"); response = getResponseMessage().toString(); serverSender.close(); } if (serverReader != null) { ser...
funcom_train/136536
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void heightSpinnerStateChanged() { if (!isWidthSpinner) { double newHeight = ((Double) heightSpinner.getValue()).doubleValue(); double newWidth = newHeight * imageInfo.getWidthHeightRate(); isHeightSpinner = true; widthSpinner.setValue(newWidth); isHeightSpinner = false; resetWidthHe...
funcom_train/14078627
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getUniqueInstanceId() { int uid = (int) (Math.random() * 1000000); try { if (prefs.getInt(UNIQUE_INSTANCE_ID, 0) == 0) prefs.putInt(UNIQUE_INSTANCE_ID, uid); } catch (Exception e) {} return prefs.getInt(UNIQUE_INSTANCE_ID, uid); } COM: <s> get the unique identifier for this instance o...
funcom_train/28215573
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addPriorityPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_AbstractEvent_priority_feature"), getString("_UI_PropertyDescr...
funcom_train/17465531
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void createAndShowGUI() { //Make sure we have nice window decorations. JFrame.setDefaultLookAndFeelDecorated(true); //Create and set up the window. frame = new JFrame("Login"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Create and set up the content pane. JComponent new...
funcom_train/31936725
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void collectViewPanes(List result, LayoutPart [] parts) { for (int i = 0, length = parts.length; i < length; i++) { LayoutPart part = parts[i]; if (part instanceof ViewPane) { result.add(part); } else if (part instanceof ILayoutContainer) { collectViewPa...
funcom_train/3363826
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void decodeLineStyle(Object lineStyleFlag) { if ( lineStyleFlag == null || lineStyleFlag.equals(LEG_LINE_STYLE_STRING)){ lineStyle = LEG_LINE_STYLE; // default case } else { if ( lineStyleFlag.equals(NO_STYLE_STRING) ) { lineStyle = NO_LINE_STYLE; } else...
funcom_train/45740792
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public StringItem getStringItemReaderInstructions () { if (stringItemReaderInstructions == null) {//GEN-END:|16-getter|0|16-preInit // write pre-init user code here stringItemReaderInstructions = new StringItem ("Instructions:", "Touch a smart poster to read from it...");//GEN-LINE:|16-getter|1|16-pos...
funcom_train/23655772
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void flushImageMetaDataBaseToDisk() { ImageMetaDataDataBaseItemsToUpdateContext imddbituc = ImageMetaDataDataBaseItemsToUpdateContext.getInstance(); if (imddbituc.getLoadedRepositoryPath() != null) { ImageMetaDataDataBaseHandler.updateDataBaseFile(imddbituc.getImageMetaDataBaseItems(), imddbituc.g...
funcom_train/8327133
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void report(CountingAggregationManager am) { System.out.println( "Number of requests: " + am.getRequestCount()); System.out.println( "Number of misses: " + am.getMissCount()); System.out.println( "Hit ratio ---> " + am.getHitRatio()); } C...
funcom_train/45249582
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public StatusHandlerDescriptor getHandlerDescriptor(String statusHandlerId) { StatusHandlerDescriptor descriptor = null; for (Iterator it = statusHandlerDescriptors.iterator(); it.hasNext();) { descriptor = (StatusHandlerDescriptor) it.next(); if (descriptor.getId().equals(statusHandlerId)) { retur...
funcom_train/13499665
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void stop() { if (this.isActive()) { this.myTimer.stop(); this.scoreCollector.evaluateResult(this.perf.counter .getVal()); if (this.doesNotify()) { try { this.perf.controller.notifyActualValue( this.scoreCollector.getScore(), "score"); } catch (Notific...
funcom_train/34760891
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void initArrows() { rightArrow = Arrows.getRightArrow(60, 8); swArrow = Arrows.getSWArrow(33, 26); rightArrow2 = Arrows.getRightArrow(60, 29); neArrow = Arrows.getNEArrow(102, 12); } COM: <s> setup the graphics for the tracer </s>
funcom_train/9559177
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public VariablePath removeFirstPathElement() { if (pathElements.length == 0) { return this; } int newSize = pathElements.length - 1; String[] newPathElements = new String[newSize]; System.arraycopy(this.pathElements, 1, newPathElements, 0, newSize); return new VariablePath(newPathElements); } CO...
funcom_train/322456
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public DaqSystem findDaqSystem(String systemType) { if (systemList == null) return null; if (systemType == null) systemType = acquisitionParameters.daqSystemType; for (int i = 0; i < systemList.size(); i++) { if (systemList.get(i).getSystemType().equals(systemType)) return systemList.get(i); } r...
funcom_train/5435392
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void parseCapabilities(ProtocolArray pc) { Protocol currentProtocol = null; for (int i = 0; i < pc.getNames().length; i++) { switch (pc.getTag()[i]) { case 'L' : _linkProtocol.setLinkProtocol(pc.getNames()[i]); break; case 'A' : currentProtocol = extractAProtocol(pc, current...
funcom_train/20875891
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getStartTimeHeader() { int min = iStartSlot * Constants.SLOT_LENGTH_MIN + Constants.FIRST_SLOT_TIME_MIN; int h = min / 60; int m = min % 60; return (h > 12 ? h - 12 : h) + ":" + (m < 10 ? "0" : "") + m + (h >= 12 ? "p" : "a"); } COM: <s> start time for printi...
funcom_train/3048995
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Configuration addDirectory(File dir) throws MappingException { File[] files = dir.listFiles(); for ( int i = 0; i < files.length ; i++ ) { if ( files[i].isDirectory() ) { addDirectory( files[i] ); } else if ( files[i].getName().endsWith( ".hbm.xml" ) ) { addFile( files[i] ); } } ...
funcom_train/18345546
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void handleSymbolSize(ActionEvent e) { JComboBox cb = (JComboBox)e.getSource(); symbolSize = Integer.valueOf((String)cb.getSelectedItem()); prefs.setProperty("FBSymbolSize", (String)cb.getSelectedItem()); prefsChanged = true; updateDisplay(); } COM: <s> hand...
funcom_train/41763659
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void backspace() { if (cursorPosition == 0) return; String right = str.substring(cursorPosition + 1); String left = str.substring(0, cursorPosition - 1); if (left.indexOf(' ') > -1) { int spacePosition = left.lastIndexOf(' '); str = left.substring(0, spacePosition) + " " + right; curs...
funcom_train/21483598
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void execute() throws Throwable { LOG.debug("About to attempt execution"); checkSerializability(payload); Thread.sleep(timeToCompleteInMs); if (exceptionOnExecute != null) { throw (Throwable) exceptionOnExecute.newInstance(); } AsynchronousCom...
funcom_train/17342924
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setAutoTransition(String startState, String endState) { if (debug) { Debug.out("FSM", "Establishing auto transition for " + startState + " -> " + endState); } states.get(startState).autoTransitionState = endState; addTransition(new Transition("(auto)", startState, endState)); ...
funcom_train/15518695
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public AbstractTabbedDataWriter (String file, Hashtable args) { try { // TODO if was being official, should check if already exists, path // valid, // etc, and give appropriate messages file_name = file; out = new PrintStream (new BufferedOutputStream ( new FileOutputStream (file_name))); ...
funcom_train/9806220
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void removeSingleInstances(Collection<EdifCellInstance> ecis) throws UnsupportedResourceTypeException { int cachedOrigNumInstances = _origNumInstances; cacheCurrentUtilization(); for (EdifCellInstance eci : ecis) { try { removeSingleInstance(eci); ...
funcom_train/5599104
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean asMoreChild(Form f, Value v) { String pathId = v.getPath().getId(); for (Value childValue : f.getValues()) { Path path = childValue.getPath(); Path parent = path.getParent(); if (parent != null && parent.getId().equals(pathId)) { ...
funcom_train/942989
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Locale getLocale() { Locale defaultLocale = Locale.getDefault(); String languageCode = defaultLocale.getLanguage(); String countryCode = defaultLocale.getCountry(); if (language != null) { languageCode = language.getCode(); } if (country != nu...
funcom_train/29726982
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testRenderXhtmlStylesheet() throws Exception { Document xhtmlDocument = testRenderImpl("full-test.xhtml"); assertEquals("html", xhtmlDocument.getRootElement().getName()); assertEquals("text/html", httpServletResponse.getContentType()); } COM: <s> test the xorro view re...
funcom_train/50892195
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void refreshTarget() { int index = targetCombo.getSelectionIndex(); String text = defaultCmds[index]; System.out.println("Set text to " + text); editor.setStringValue(text); IPreferenceStore store = getPreferenceStore(); store.setValue(P_TARGET, text); ...
funcom_train/257113
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void resetTable(int rows) { this.dataSet = new Object[rows][columnNames.length]; // Set boolean false to the three right-most columns as default for (int r = 0; r < rows; r++) for (int c = 1; c < columnNames.length; c++) setValueAt(new Boolean(false), r, c); } COM: <s> resets the table data...
funcom_train/4381348
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean textToSpeech(String text) { boolean result = false; if (Raptor.getInstance().getPreferences().getBoolean( PreferenceKeys.APP_SOUND_ENABLED)) { if (speech == null && Raptor.getInstance().getPreferences().contains( PreferenceKeys.SPEECH_PROCESS_NAME)) { initSpeech(); } ...
funcom_train/41459229
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void resizeLocalBuffer() { //save data in temp array byte[] temp = new byte[available]; System.arraycopy(localBuffer, 0, temp, 0, available); //resize local bufer and restore data localBuffer = new byte[2 * localBuffer.length]; System.ar...
funcom_train/20825814
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void refreshLevelValue() { int newValue = level.getIntValue(); if (levelValue == newValue) { levelValueLabel.setForeground(Color.GREEN); } else { levelValueLabel.setForeground(Color.RED); levelValue = newValue; levelValueL...
funcom_train/44165688
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Element setAvailable(Element element) { Nation nation = getGame().getSpecification() .getNation(element.getAttribute("nation")); NationState state = Enum.valueOf(NationState.class, element.getAttribute("state")); getFreeColCl...
funcom_train/5362228
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private long spreadId(long id) { return (id / halfTheObjects) * halfTheObjects //Step function. + ((id * 16807) % halfTheObjects); //16807 == 7 * 7 * 7 * 7 * 7. 16807 is relatively prime to 50000, 500000 and 5000000. This guarantees that all ids in the range will be covered. } COM: <s> spreads...
funcom_train/2759760
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void jsFunc_alert(Context cx, Scriptable scope, java.lang.Object[] args, Function funObj) { if(args.length != 1) { throw new IllegalArgumentException("alert expects ONE argument."); } String msg = (args[0] == null) ? "<null>" : args[0].toString(); getNavigator(true).getNavigatorCallback().jsAle...
funcom_train/50942103
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Account getAccount(String name){ Vector list = fileData.getAccounts(); for (int i=0; i<list.size() ;i++) { Account item = (Account)list.get(i); if ( item.isEqual(name) ) { return item; } } return null; } COM: <s> r...
funcom_train/29937853
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addNewResource(IResource resource) { Map<DeltaCause, IPath> causes = new HashMap<DeltaCause, IPath>(); causes.put(DeltaCause.CREATION, null); ResourceDelta delta = new ResourceDelta(resource, DeltaStatus.ADDED, causes); resourceDeltas....
funcom_train/1170846
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public CardList generate5ColorDeck() { CardList deck; /* int check; do{ deck = get5ColorDeck(); check = deck.getType("Creature").size(); }while(check < 15 || 25 < check); */ deck = get5ColorDeck(); addLand(deck, 5); if (deck...
funcom_train/7585258
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String callFindExpressionMethodCallType(IType[] receiverType, String methodName, List<Object> args) { if(!this.ready) return null; if(reloadAlways) this.reload(); Value ret = this.callFunction(findExpressionMethodCallType, createClassNamesCollection(receiverType), Quercus.objectToValue...
funcom_train/22742251
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Image getSkinImage(boolean fromstore) throws IOException{ if (fromstore){ byte[] idata = getRecord(3); return Image.createImage(idata,0,idata.length); }else{ return Image.createImage(this.getClass().getResourceAsStream("/" + getAppDataString("skin-name"...
funcom_train/12663623
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object getValue(Object element, String property) { int index = getColumnIndex(property); Property prop = (Property) element; if (index == DEFAULT_INDEX) { return new Boolean(properties.isUsingDefaultValue(prop.getName())); } else if (index == NAME_INDEX) return p...
funcom_train/43424974
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void prefill(Quality quality) { sm = new QualityScaleForm(quality.getScale()); trlm = new TabbedForm(new EstimationContainingTabFactory( EstimationContainingTabFactory.Type.referencelevel, quality)); tbm = new TabbedBreakpointForm(quality); tcbm = new TabbedForm(new EstimationContainingTabF...
funcom_train/32892560
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected HashMap generateFilterMap() { Iterator i = filters.iterator(); HashMap retval = new HashMap(); while ( i.hasNext() ) { Filter f = (Filter)i.next(); retval.put ( new Integer(f.getID()), f ); } return retval; } COM: <s> helper functi...
funcom_train/29819800
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int findIndex(Long key, Comparator<Long> c) { int min = 0; int max = size; while (min < max) { int pos = (min + max) / 2; int comparison = c.compare(key, keys[pos]); if (comparison > 0) { min = pos + 1;...
funcom_train/21174526
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Notation getAnnotationBookmark (Notation n) { Criteria select = new Criteria (); select.set ("type", Notation.ANNOTATION_BOOKMARK); select.set ("convert(varchar(32), body)", n.get ("id")); Vector<Notation> bookmarks = requestNotationDownload (n.getString("author"), "notations", select, Criteria...
funcom_train/48445846
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public MediaImportStatus getImportStatus(String module) { try { return getImportPath(module).accept(MediaType.APPLICATION_JSON).get(MediaImportStatus.class); } catch (UniformInterfaceException e) { if (e.getResponse().getStatus() != 204) { throw e; } } MediaImportStatus mediaImportStatus = n...
funcom_train/29881901
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected JButton createZoomOutButton() { JButton tJButton = createToolBarButton("V221ZoomOut.png", "Zoom Out 2% (Ctrl H)"); tJButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) {mOpenPCLViewer.actionZoomOutOneNotch();} }); return tJButton; } COM...
funcom_train/236234
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public ManagerResponse command(String command, String actionId) { log.fine("command(" + command + "," + actionId + ")"); ManagerAction action = new ManagerAction("Command"); action.addPair("Channel", command); if (actionId != null) action.addPair("ActionId", actionId); ManagerResponse response = s...
funcom_train/18751156
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: // protected GraphTransition createTransition(RuleEvent event, GraphState target) { // if (target instanceof GraphTransition) { // GraphTransition candidate = (GraphTransition) target; // if (candidate.source() == this && candidate.getEvent() == event) { // return candidate; // } // } // return new De...