__key__
stringlengths
16
21
__url__
stringclasses
1 value
txt
stringlengths
183
1.2k
funcom_train/36411592
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSortComparator(Comparator sortComparator) { if (sortComparator == null) sortComparator = DEFAULT_SORT_COMPARATOR; Comparator oldSortComparator = this.sortComparator; GridBox gb = (GridBox) getParent(); this.sortComparator = sortComparator; ...
funcom_train/30274731
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object getResource(String name) throws ServiceLocatorException { Object resource = null; try { if (homeCache.containsKey(name)) { resource = homeCache.get(name); } else { resource = threeWayLookup(JBOSS_RES_JNDI_PREFIX + name, J2EE_RES_JNDI_PREFIX + name,...
funcom_train/38513231
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getTotalDuration() { int max = 0; if (mProjects == null) return 0; for (Iterator it = mProjects.iterator(); it.hasNext();) { ProjectItem item = (ProjectItem) it.next(); int tmp = item.getEnd(); if (tmp > max) { max = tmp; ...
funcom_train/1572457
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Object F(String _fieldName) { if (_fieldName == null) return null; WOContext ctx = this.context(); if (ctx == null) return null; WORequest rq = ctx.request(); if (rq == null) return null; return rq.formValueForKey(_fieldName); } COM: <s> dirty convenience hack to return the v...
funcom_train/14107817
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void init() throws PSError { try { out.write("% Created by " + net.sf.eps2pgf.Main.getNameVersion() + " "); Date now = new Date(); out.write("on " + now + "\n"); out.write("\\begin{pgfpicture}\n"); } catch (IOException...
funcom_train/44019175
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JMenuItem getEditRedoMenuItem() { if (editRedoMenuItem == null) { editRedoMenuItem = new JMenuItem(); editRedoMenuItem.setText("Redo"); editRedoMenuItem.setMnemonic('R'); editRedoMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Y, MENU_SHORTCUT_KEY_MASK)); editRedoMenuItem.addA...
funcom_train/8460100
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void updateCandidateList(){ candidateDBLPointSet.clear(); usedDBLPointSet.clear(); if(this.packedPostitionBlockPair.size()==0)candidateDBLPointSet.add(new Point(0,0,0)); candidateDBLPointSet.add(new Point(0,currentDeepestY,0)); for(PositionRecurBlockPair packedPair :this.packedPostitionBlockPair...
funcom_train/14238792
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testConstructor() { URI uri = new URI("class://com.mypackage.myfixture"); assertEquals("Scheme not equal", "class", uri.getScheme()); assertEquals("SchemeSpecificPart not equal", "com.mypackage.myfixture", uri.getSchemeSpecificPart()); } COM: <s> test equal...
funcom_train/18006393
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setFields(FdfReader fdf) throws IOException, DocumentException { HashMap fd = fdf.getFields(); for (Iterator i = fields.keySet().iterator(); i.hasNext();) { String f = (String)i.next(); String v = fdf.getFieldValue(f); if (v != null) ...
funcom_train/12193931
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean testString(ByteBuffer data) { boolean matched = false; String b = new String(data.array()); String t = new String(match.getTest().array()); if (match.isCaseInsensitive()) { matched = t.equalsIgnoreCase(b); } else { matched = t.equ...
funcom_train/20363818
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void initBlankBias() { childGroups = new MutableList<ChildSkillGroup>(); childSkills = new MutableList<WeightedChildSkill>(); List<String> children = SkillsManager.getChildrenFor( parentSkill ); Collections.sort( children ); for ( String childName : children ) { WeightedChildSkill wcs = new ...
funcom_train/19352443
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void checkForRDFSClasses() throws SAXException { /* This may not work with imports. SKB */ for (Iterator iter = rdfsClasses.iterator(); iter.hasNext(); ) { URI uri = (URI) iter.next(); //URI uri = (URI) iter.next(); if ( !definitelyClasses.contains( uri ) ) { /*...
funcom_train/45251215
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void populateDecorators() { DecoratorDefinition[] definitions = getAllDefinitions(); checkboxViewer.setInput(definitions); for (int i = 0; i < definitions.length; i++) { checkboxViewer.setChecked(definitions[i], definitions[i] .isEnabled()); ...
funcom_train/21607008
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected int getValidationModeForResource(Resource resource) { int validationModeToUse = getValidationMode(); if (validationModeToUse != VALIDATION_AUTO) { return validationModeToUse; } int detectedMode = detectValidationMode(resource); if (detectedMode != VALIDATION_AUTO) { return detectedMode;...
funcom_train/35080795
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public UserRevisionEntry logRevision (String info, User author) { UserRevisionEntry re = new UserRevisionEntry(); re.setDate (new Date()); re.setInfo (info); re.setUser (this); re.setAuthor (author); getRevisions().add (re); return re; } COM: <s> fa...
funcom_train/42472613
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public JComboBox getCmbPerson() { populateComboBox(); cmbPerson = new JComboBox(names); cmbPerson.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { getPersonName(); sendQuery(); usertab.fie...
funcom_train/5782332
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void save(String file)throws IOException{ PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(file))); for (Enumeration e = v.elements() ; e.hasMoreElements() ;) out.write(((Hunk3)e.nextElement()).convert()); out.flush(); out.close(); } COM: <s> save hunk3...
funcom_train/18748712
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected boolean isNodeMode(MouseEvent evt) { /* added by Carel*/ if (this.getEditor()==null){ return false; } /*end */ return (getEditor().isNodeMode() && getFirstCellForLocation(evt.getX(), evt.getY()) == null); } COM: <s> ca...
funcom_train/11704212
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void bootstrapCPE() throws Exception { registerTypeSystemsWithCasManager(); casPool = new CPECasPool(getPoolSize(), cpeFactory.getResourceManager().getCasManager(), mPerformanceTuningSettings); callTypeSystemInit(); setupProcessingPipeline(); setupConsumerPipeline(); } COM: <s> i...
funcom_train/30172582
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public Point2D findFeatureLocation(int index) { int feature_index = findFeatureIndex(index); if (feature_index != -1) { int properties_index = getPropertyIndex(feature_index); if (properties_index >= 0 && property_extent_index_lookup.at(properties_index) > 0) { ...
funcom_train/2641790
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void reverse(int from, int to) { if (from == to) { return; // nothing to do } if (from > to) { throw new IllegalArgumentException("from cannot be greater than to"); } for (int i = from, j = to - 1; i < j; i++, j--) { ...
funcom_train/21016227
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void reset(CaretLocation caretLocation) { _controllers = new Stack<ElementPath>(); _controllerLocations = new Stack<CaretLocation>(); ElementPath editorPath = EditManager .getControllingElement(caretLocation); IElementEditor editor = EditorRegistry.getEditor(editorPath .getLastElement().ge...
funcom_train/24937400
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void replaceSource(Bus original, Bus replacement) { Node key = null; for (Entry<Node, Bus> entry : sourceCache.entrySet()) { if (entry.getValue() == original) { key = entry.getKey(); break; } } assert key != null : "Could not replace source bus"; putSource(key, replacement); } CO...
funcom_train/10347539
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected String getUrlPath(HttpServletRequest request) throws Exception { String contextPath = request.getContextPath(); String url = request.getRequestURL().toString(); url = url.substring(url.indexOf(contextPath)); url = url.substring(url.indexOf("/", 1), url.lastIndexOf("/")); return url; } COM:...
funcom_train/4427484
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean schedule() { try { // "Synchronous-like" scheduling policy : schedule only 1 action per // actor at each "schedule" (network logical cycle) call Action action = getNextAction(); if (action == null) { return false; } else { execute(action); return true; } } catch (...
funcom_train/42273042
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private PrintStream getInfoStream() throws FileNotFoundException { log.debug("getInfoStream()"); closeInfoStream(); infoStream = new PrintStream(new BufferedOutputStream( new FileOutputStream(new File("index-writer-info-stream.out"), true))); ...
funcom_train/41164225
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void delete(ToHandbook entity) { EntityManagerHelper.log("deleting ToHandbook instance", Level.INFO, null); try { entity = getEntityManager().getReference(ToHandbook.class, entity.getHandbookId()); getEntityManager().remove(entity); EntityManagerHelper.log("delete successful", Level.INFO, nul...
funcom_train/30037713
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int addCoreSubMorphTarget(CalCoreSubMorphTarget subMorphTarget) { if (coreSubMorphTargets == null) coreSubMorphTargets = new Vector<CalCoreSubMorphTarget>(); int subMorphTargetId = coreSubMorphTargets.size(); coreSubMorphTargets.add(subMorphTarget);...
funcom_train/48334605
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean initializeClass (ThreadInfo ti, Instruction continuation) { int pushedFrames = 0; // push clinits of class hierarchy (upwards, since call stack is LIFO) for (ClassInfo ci = this; ci != null; ci = ci.getSuperClass()) { if (ci.pushClinit(ti, continuation)) { continuation ...
funcom_train/41827818
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String loadConnection(URLConnectionAdapter con) throws IOException { String ret = null; if (con == null) { checkContentLengthLimit(request); ret = request.read(); } else { ret = Request.read(con); } if (isVerbose()) JDLogger.g...
funcom_train/32069135
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean removeBankAccount(BankAccount bankAccount) { boolean removedOK = getBankAccounts().remove(bankAccount); if (removedOK) { bankAccount.setBankAgency(null); } else { if (logger.isWarnEnabled()) { logger.warn("remove returned false");...
funcom_train/43245412
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSetTmpStreetAddr2() { System.out.println("setTmpStreetAddr2"); String tmpStreetAddr2 = ""; PatientDemographicsDG5Object instance = new PatientDemographicsDG5Object(); instance.setTmpStreetAddr2(tmpStreetAddr2); // TODO review t...
funcom_train/50940325
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void actionPerformed(ActionEvent e) { if ( e.getActionCommand().equals(i8n.getString("export")) ) { exportActionPerformed(); } else if ( e.getActionCommand().equals(i8n.getString("copy")) ) { copyToClipboardActionPerformed(); } } COM: <s> invoked whe...
funcom_train/19877907
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void showKeyDifferent(Configuration conf){ String[] keyArray1 = this.keys(); String[] keyArray2 = conf.keys(); System.out.println(this.fileName); for(String key: keyArray1){ if(ArrayUtils.indexOf(keyArray2, key) == -1){ System.out.println(key); } } System.out.println("\n" + conf.getF...
funcom_train/49817832
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setDone() { // Update the UI SwingUtilities.invokeLater(new Runnable() { public void run() { stopTimer(); if (config.getAutoDispose()) { dispose(); } else { setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); cancelButton.setEnabled(false); closeButton....
funcom_train/8569811
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void drawOpenPoly (GL gl) { gl.glBegin (GL.GL_LINE_STRIP); gl.glVertex2i (100, 200); gl.glVertex2i (150, 250); gl.glVertex2i (100, 250); gl.glVertex2i (150, 200); gl.glEnd(); } COM: <s> an example of drawing an open polyline </s>
funcom_train/34340877
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public TextField getLimpieza() { if (limpieza == null) {//GEN-END:|43-getter|0|43-preInit // write pre-init user code here limpieza = new TextField("limpieza", null, 32, TextField.ANY);//GEN-LINE:|43-getter|1|43-postInit // write post-init user code here }//...
funcom_train/24376028
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void deleteComposedObjects(Object object) throws RegistryException { super.deleteComposedObjects(object); if (object instanceof IdentifiableType) { IdentifiableType identifiable = (IdentifiableType) object; String id = identifiable.getId(); SlotD...
funcom_train/46741082
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSourceRef(DisplayModel sourceRef) { if (Converter.isDifferent(this.sourceRef, sourceRef)) { DisplayModel oldsourceRef= new DisplayModel(this); oldsourceRef.copyAllFrom(this.sourceRef); this.sourceRef.copyAllFrom(sourceRef); setModified("sourceRef"); firePropertyChange(String.value...
funcom_train/17274781
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void run(Graph<V,E> g) { // TODO Auto-generated method stub running = true; instanceID = instanceCounter++; vertexArray = g.getVertexArray(); this.g = g; controller = new Controller<V,E>(g, pseudoCode, this); runNearestNeighbor(0); //Let's assume ...
funcom_train/2266360
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private JButton getJButton_refreshTName() { if (jButton_refresh == null) { jButton_refresh = new JButton(); jButton_refresh.setText("refresh"); jButton_refresh.setBounds(new java.awt.Rectangle(21,148,149,26)); jButton_refresh .addActionListener(new java.awt.event.ActionListener() { publi...
funcom_train/47827054
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public PI pi(){ try{ Clause c = this.is(PI.rule_n)? this.arg(0).asClause(): this; String name = c.name; if (!_m_parser.isUnquotedAtom(name)) name = "'" + name + "'"; return new PI(name, c.arity()); }catch(Exception e){ throw new IllegalStateException("This should never happen"); } } COM: ...
funcom_train/51571769
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void iimport(String fileName) { String importName = replaceTilde(stripQuotes(replaceTokens(fileName))); if (checkFileName(importName)) { File toImport = new File(importName); importing = true; parse(toImport); importing = false; ...
funcom_train/15928526
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void setUp(String project) throws Exception { PerspectiveUtils.switchToX10Perspective(bot); ProjectUtils.createX10ProjectWithJavaBackEndFromTopMenu(bot, project); SWTBotView pkgView = bot.viewByTitle("Package Explorer"); SWTBotTree pkgTree = pkgView.bot().tree(); SWTBotTreeItem projItem =...
funcom_train/14318184
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void sendHttpResponse(int status, Map<String, String> headers, String contentType, String content, boolean keepAlive) throws IOException { sendHttpResponse(status, headers, contentType, content.getBytes("UTF-8"), keepAlive); } COM: <s> send http response with given status headers content t...
funcom_train/37764069
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String findNameFromDomainInfo(String className, Object obj) { RuleMetaData rule = findRule(className, null, obj, "domain-info"); String name = rule != null ? rule.getParameter("name") : null; return name != null ? name : StringHelper.getShortClassName(className); } COM: <s...
funcom_train/13952787
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public DateRange visibleDateRange() { NSArray<Week> weeks = weekObjects(); NSTimestamp startDate = weeks.objectAtIndex(0).getStartTime(); NSTimestamp endDate = weeks.lastObject().getEndTime(); return new DateRange(startDate, endDate); } COM: <s> returns the date range of a visible calendar wh...
funcom_train/5857497
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void deleteNodeProperty(String nodeName,String key) throws HeroException{ Node nodeA = (Node)nodes.get(nodeName); if (nodeA == null) { throw new HeroException("Node not found Exception: "+nodeName); } try { ProjectDAO.deleteNodePropertyRow(this.getName(),nodeName,key); nodeA.deletePr...
funcom_train/31678516
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int hashCode() { final int m = this.getNumberOfRows(); final int n = this.getNumberOfColumns(); int code = 0; for (int i = m; --i >= 0;) { checkCanceled(); for (int j = n; --j >= 0;) { checkCanceled(); code += get(i, j).hashCode(); } } return code; } COM: <s> returns a hash ...
funcom_train/46759704
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public RefGroupModel getRefGroup(final long refGroupId, final IChainStore chain, final ServiceCall call) throws Exception { IBeanMethod method = new IBeanMethod() { public Object execute() throws Exception { return ReferenceData.getRefGroup(refGroupId, chain, call); }}; return (RefGroupModel) call(method...
funcom_train/42938343
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testInstrumentInvalidClassLoader() throws NotFoundException, CannotCompileException { CtClass ctClass = classPool.get(InvalidClassLoader.class.getName()); try { ClassLoaderInstrumenter.instrument(ctClass); fail("Exception not thrown when defineClass0 method not found"); } catch (IllegalSt...
funcom_train/31356692
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean equals(Object object) { // Variables Module module; // Check for equality if (object instanceof Module && object.hashCode() == hashCode()) { module = (Module) object; if (module.getModuleID().equals(getModuleID()) == true && module.getVersion().equals(getVersion()) == true) { ...
funcom_train/33233529
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public StringItem getPronunciationSI() { if (pronunciationSI == null) {//GEN-END:|77-getter|0|77-preInit // write pre-init user code here pronunciationSI = new StringItem("Pronunciation:", null);//GEN-LINE:|77-getter|1|77-postInit // write post-init user code here }//GEN-BE...
funcom_train/36125658
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setServletRequest(HttpServletRequest servletRequest) { this.servletRequest = servletRequest; /* create and set the request paramaters */ RequestParametersBuilder builder = new RequestParametersBuilder(); String contentType = servletRequest.getContentType(); if (RequestParametersBuilder.is...
funcom_train/11753904
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void processDbOwnershipEvent(DbOwnershipEvent e) throws SQLException { switch (e.getType()) { case DbOwnershipEvent.OWNERSHIP_RELEASED: synchronized (requestLock) { if (poolId.equals(e.getReferenceId())) { System.out.println("Got ownership"); } else { System.out.println("Stolen");...
funcom_train/45247043
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public JNumberFloatField getJNumberFloatFieldProporcaoJTT() { if (jNumberFloatFieldProporcaoJTT == null) { jNumberFloatFieldProporcaoJTT = new JNumberFloatField(); jNumberFloatFieldProporcaoJTT.setLocation(new Point(345, 106)); jNumberFloatFieldProporcaoJTT.setSize(new Dimension(65, 20)); } return...
funcom_train/50956097
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void exitButtonActionPerformed(java.awt.event.ActionEvent evt) { int n = JOptionPane.showConfirmDialog( sp, "Are you sure you want to exit Lesson Builder?","Choose One.", JOptionPane.OK_CANCEL_OPTION); //Ok button if (n == 0){System.exit(0);} ...
funcom_train/1242640
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void doFillIntoGrid(Composite parent, int numColumns) { editorcomp = parent; GridData griddata = new GridData(GridData.FILL_HORIZONTAL); griddata.horizontalSpan = numColumns; editorcomp.setLayoutData(griddata); Label label = getLabelControl(editorcomp); griddata = new GridData(); label....
funcom_train/10618519
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isGlyphExists(char uIndex) { for (int i = 0; i < fontUnicodeRanges.length - 1; i += 2) { if (uIndex <= fontUnicodeRanges[i + 1]) { if (uIndex >= fontUnicodeRanges[i]) { return true; } return false; ...
funcom_train/4122723
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void propertyChange(PropertyChangeEvent event) { if (event.getPropertyName().equals("value")) { final int value = ((Integer) event.getNewValue()).intValue(); if (value != comboBox.getSelectedIndex()) { comboBox.setSelectedIndex(value); ori...
funcom_train/28978689
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String obtainValue(String key) { String value = ""; if (page.controls.get(key) instanceof Text) { value = ((Text) page.controls.get(key)).getText(); } else if (page.controls.get(key) instanceof Combo) { Combo combo = (Combo) page.controls.get(key); value = combo.getItem(combo.getSelection...
funcom_train/9758548
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setAnnotationPainterPreferenceKeys(Object type, String colorKey, String editorKey, String overviewRulerKey, int layer) { AnnotationPreference info= new AnnotationPreference(type, colorKey, editorKey, overviewRulerKey, layer); fAnnotationTypeKeyMap.put(type, info); } COM: <s> sets the preference...
funcom_train/9238090
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toUpperCase(final String input) { final char[] result = input.toCharArray(); for (int i = 0; i < input.length(); ++i) { if (result[i] >= 0 && result[i] < uppercase.length) { result[i] = uppercase[result[i]]; } else { result[i] = result[i]; } } return new String(result); } ...
funcom_train/5608446
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean clearDiskCache() { try { File dir = new File(CACHE_DIR); for (File f : dir.listFiles()) { if (f.isFile()) { f.delete(); } } return true; } catch (Exception x) { severe...
funcom_train/26324690
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public double getAsDouble() { switch (_storedAs) { case DOUBLE: return _double; case LONG: return _long; case OBJECT: if (_object.toString().trim().equals("")) { return 0.0; } els...
funcom_train/19542150
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void run() { try { BufferedImage image = ImageUtil.createCompatibleImage(ImageUtil.getImage(file)); overlayList.add(image); BufferedImage overlay = TokenCompositor.translateOverlay(image, 1); BufferedImage thumb = ImageUtil.createCompatibleImage(overlay, THUMB_SI...
funcom_train/7298224
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private boolean grantXToBin(String unixBinary) throws JdicInitException { try { WebBrowserUtil.trace("will grant a+x to " + runningPath + File.separator + unixBinary); Runtime.getRuntime().exec( "chmod a+x " + runningPath + File.separator + unixBinary); WebBrowserUtil.trace("grant ok"); r...
funcom_train/171392
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String toString(){ String ret=""; if (numeric == VERIFIED_NOTYET) ret = "VERIFIED_NOTYET"; if (numeric == VERIFIED_OK) ret = "VERIFIED_OK"; if (numeric == VERIFIED_REJECTED) ret = "VERIFIED_REJECTED"; ret+="\n"+detailMessage+"\n"; return ret; ...
funcom_train/7754030
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setSpecName (String aSpecName) { String oldValue = specName; String str = aSpecName.trim (); if (str.length () >= 1) specName = str; // fire the property Change this.firePropertyChange (Spectrum.SPECTRUM_NAME_PROPERTY, oldValue, specName); } COM: <s> set t...
funcom_train/22284080
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void init() { fBrowser = (FileBrowserWidget) widget.getWidget("fileBrowser"); textControl = (RichTextBoxWidget) widget.getPresentation().getWidget("textEditorContainer.textControl"); saveDialog = widget.getWidget("toolbar.saveDialog"); fileController = (FileControllerSA) ((Playe...
funcom_train/46817771
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isNominatedOwner() { if (object == null) { return false; } else if (((Task) object).getPeopleLinks().getNominatedOwner() == null) { return false; } return ((Task) object).getPeopleLinks().getNominatedOwner().isRole(); } COM: <s> returns if the nominated owner role i...
funcom_train/44167415
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public UnitType getFastestNavalUnitType() { if (cachedFastestNavalUnitType == null) { int bestValue = -1; for (UnitType t : unitTypeList) { if (t.isNaval() && t.getMovement() > bestValue) { bestValue = t.getMovement(); cac...
funcom_train/26350758
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private Packet createReportPacket(Player p) { // When the final report is created, MM sends a null player to create // the // report. This will handle that issue. if ((p == null) || !doBlind()) { return new Packet(Packet.COMMAND_SENDING_REPORTS, vPhaseReport); ...
funcom_train/18104783
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void open(int handle) { this.handle = handle; try { connectionOpen = true; checkForPermission(getAddress()); } catch (Exception e) { connectionOpen = false; if (e instanceof IOException) { e = new SecurityExceptio...
funcom_train/45622571
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addItemNamePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_OutputType_itemName_feature"), getString("_UI_PropertyDescript...
funcom_train/6459312
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public HashMap getUniqueFields( int field ) { Receipt r = null; HashMap seen = new HashMap(); seen.put( "", new Integer( 1 ) ); for ( Iterator i = filtered.iterator(); i.hasNext(); ) { r = ( Receipt )i.next(); incrementHashMap(seen, r, field); ...
funcom_train/25870801
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setRoute(final String route) { if(route == null) throw new IllegalArgumentException("The origin " + "must not be null."); if(route.length() == 0) throw new IllegalArgumentException("The " + "origin length must not be 0."); this.route = route;...
funcom_train/21188483
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private String parseComment(List commentList, int commentIndex) { StringBuffer comment = new StringBuffer(); comment.append(commentList.get(commentIndex)).append(" "); for (int i = commentIndex + 1; i < commentList.size(); i++) { comment.append(commentList.get(i)).append(" ...
funcom_train/7660257
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testAddAll4() { try { SynchronousQueue q = new SynchronousQueue(); Integer[] ints = new Integer[1]; for (int i = 0; i < 1; ++i) ints[i] = new Integer(i); q.addAll(Arrays.asList(ints)); shouldThrow(); } ...
funcom_train/40337109
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void newGroupSelection(MigrationGroup group) { this.selectedGroup = group; rulesProvider.clear(); if (null != group) { for (MigrationRule<?> rule : group.getMigrationRules()) { rulesProvider.add(rule); } } rules.refresh(false); deselectRule(); } COM: <s> ca...
funcom_train/19544543
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void validateDamageStates(PropertyMap map, String waitState, boolean bleeding, boolean prone) { assertEquals(waitState, map.get("itWaitState")); assertEquals(Boolean.valueOf(bleeding), map.get("health.bleeding")); assertEquals(Boolean.valueOf(prone), map.get("health.prone")); } COM: <s> ...
funcom_train/18718466
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public boolean isSet(final String key) { if (key == null) { throw new IllegalArgumentException(OptionSet.CLASS + ": key may not be null"); } if (!keys.containsKey(key)) { throw new IllegalArgumentException(OptionSet.CLASS + ": unknown key: " + key); } return (keys.get(key)).getResultCou...
funcom_train/3749033
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public String getDatabaseURL() { if (logger.isDebugEnabled()) { logger.debug("getDatabaseURL() - start"); } if (logger.isDebugEnabled()) { logger.debug("getDatabaseURL() - end - return value = " + databaseURL); } return datab...
funcom_train/21405355
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public long insertVideo(long idRoute, double lat, double lon, double h) { ContentValues initialValues = new ContentValues(); initialValues.put(ROUTE_ID, idRoute); initialValues.put(VIDEO_LAT, lat); initialValues.put(VIDEO_LON, lon); initialValues.put(VIDEO_H, h); return db.insert(TABLE_VIDEOS, null, ...
funcom_train/18377969
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void fireRowDepartEvent() { if (rows.size() < 1) { return; } for (Iterator rowChangeListenersIter = parent.rowFocusListeners.iterator(); rowChangeListenersIter.hasNext();) { IRowFocusListener listener = (IRowFocusListener) rowChangeListenersIter.next(); listener.depart(parent, topRow+curre...
funcom_train/22285218
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setObjectArray(String nm, int len, Object[] val) { Object objs[] = val; if (val != null) { System.arraycopy(val, 0, objs = new Object[len], 0, len); } setProperty(WidgetPropertyItem.V_OBJECT_ARRAY, nm, objs, null); } COM: <s> set an object array in this property list </s>
funcom_train/44718393
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private int moveProcess(Workflow wp) { Iterator itr; Task task; itr = wp.getEnabledTasks(); int n=0; while (itr.hasNext()) { task = (Task)itr.next(); try { task.finish(); } catch (TaskException t) { f...
funcom_train/20885291
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testSimpleElementWithListType() { SimpleElementWithListTypeTestDTO dto = new SimpleElementWithListTypeTestDTO(); dto.stringList = new ArrayList<String>(); dto.stringList.add("valid"); check(dto, VALID); dto.stringList.add("not valid"); check(dto, INV...
funcom_train/50330573
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getBlockLen() { switch (sprogType) { case NO_PROMPT_FOUND: case NOT_A_SPROG: case NOT_RECOGNISED: case TIMEOUT: default: return -1; case SPROGV4: case SPROGIIUSB: case SP...
funcom_train/8818410
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void setTitles(String[] titles) { Iterator<Widget> i = panel.iterator(); int idx = 0; if (null != input) { i.next(); // skip the hidden input tag } while (i.hasNext()) { RatingItem sw = (RatingItem) i.next(); sw.setTitle(titles[idx++]); } } COM: <s> sets the...
funcom_train/21999290
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void addStockHoldings(String shareAccountName, HashMap stockHoldings) { Object[] symbols; symbols = stockHoldings.keySet().toArray(); for (int i = 0; i < symbols.length; i++) { StockHolding stockHolding = (StockHolding) stockHoldings.get(symbols[i]); String key = new String(shareAccountName ...
funcom_train/34907974
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void addDusledekPropertyDescriptor(Object object) { itemPropertyDescriptors.add(createItemPropertyDescriptor( ((ComposeableAdapterFactory) adapterFactory) .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Pravidlo_dusledek_feature"), getString("_UI_Pravidlo_dusledek_des...
funcom_train/42555249
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void execute (Scheduling scheduling) throws E2LBasicException { IPersistenceObject dao = null; SchedulingBO schel = null; try { schel = (SchedulingBO) ModelService.getBusinessObjectByBOClassName(SchedulingBO.class.getName()); dao = this.getPersistenceObject(schel.getClass().ge...
funcom_train/45634147
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void transmitSegmentRequest() { // Get the segment number. long segmentNumber; synchronized (synch) { if (segmentsRemaining.isEmpty()) { return; // Exit early if the segments remaining is empty. } segmentNumber = segmentsRema...
funcom_train/32060681
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: private void clickExplore() { Starsystem sys = tf.getSystem(); if (sys == null) { return; } // Find unexplored plantoid Planet planetoid = sys.getFirstUnexploredPlanetoid(sf.game); tf.clearCourse(); tf.sendOnMission( Missi...
funcom_train/17002541
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public short getShort(String name) throws JMSException { checkPriorToEntryRetrieval(name); Object object = mappedEntries.get(name); if (object instanceof Short || object instanceof Byte) { return ( (Number)object).shortValue(); } if (object instanceof String) { ...
funcom_train/42698208
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void insertEdgeToModel() { if(this.isInserted() == false) { ConnectionSet cs = new ConnectionSet(fEdge, fSource.getPort(), fTarget.getPort()); Object[] insert = new Object[] { fEdge }; fModel.getModel().insert(insert, null, cs, null, null); } } COM: <s> inserts this edge into the model </s>...
funcom_train/42718782
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: protected void initialize(ABIFile scfFile) { numOfAnalyzedTraces = 4; //ACGT analyzedTraces = new Trace[numOfAnalyzedTraces]; calledBases = scfFile.getCalledBases().toUpperCase(); calledPeakLocations = scfFile.getCalledPeakLocations(); // Get analyzed data String name; for (int i = 0; i < numOfAnalyze...
funcom_train/22640318
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public int getHeight() { Activity activity = TopActivity.get(); RectF s = CommonDeviceAPIFinder.instance().getProperties().getScreenBounds(); return (int) (activity.getRequestedOrientation() == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE ? s.right : s.bottom); } COM:...
funcom_train/11320331
/tmp/hf-datasets-cache/medium/datasets/31837353763449-config-parquet-and-info-apcl-funcom-java-long-1b0b1ae9/downloads/d42b7d3130dd02820b64692a8810efdf479c66e589141ea4cfe3cb3bba421716
TDAT: public void testInsertOverride() { FeedbackBorder border = new FeedbackBorder(); border.add(new TextField("field1")); try { border.add(new TextField("field2")); fail("FeedbackBorder only allows one control to be added."); } catch (Exception expected) { ...