rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
public NestedKernel(SVMKernel k) { setNestedKernel(k); } | public NestedKernel() {} | public NestedKernel(SVMKernel k) { setNestedKernel(k); } | 50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/fcbeda1e0bc8dc82a3c505af04fa6bb0330580f8/NestedKernel.java/buggy/src/org/biojava/stats/svm/NestedKernel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
19071,
11286,
12,
55,
7397,
11286,
417,
13,
288,
565,
444,
8649,
11286,
12,
79,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
19071,
11286,
12,
55,
7397,
11286,
417,
13,
288,
565,
444,
8649,
11286,
12,
79,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
key.removeFactHandle( handle ); handle.setEqualityKey( null ); if (key.isEmpty( )) { this.tms.remove( key ); } this.handleFactory.destroyFactHandle( handle ); /* check to see if this is a logically asserted object */ this.assertObject( object, false, ( status == EqualityKey.STATED ) ? false : true, rule, activation ); | doAssertObject( handle, object, propagationContext ); | public void modifyObject( final FactHandle factHandle, final Object object, final Rule rule, final Activation activation ) throws FactException { try { this.getLock( ).lock( ); final PropagationContext propagationContext = new PropagationContextImpl( this.propagationIdCounter++, PropagationContext.MODIFICATION, rule, activation ); final int status = ( (InternalFactHandle) factHandle ).getEqualityKey( ) .getStatus( ); final Object originalObject = this.assertMap.remove( factHandle ); if (originalObject == null) { throw new NoSuchFactObjectException( factHandle ); } // // do subset of retractObject( ) // final InternalFactHandle handle = (InternalFactHandle) factHandle; if (handle.getId( ) == -1) { // can't retract an already retracted handle return; } removePropertyChangeListener( handle ); doRetract( handle, propagationContext ); // Update the equality key, which maintains a list of stated // FactHandles final EqualityKey key = handle.getEqualityKey( ); key.removeFactHandle( handle ); handle.setEqualityKey( null ); // If the equality key is now empty, then remove it if (key.isEmpty( )) { this.tms.remove( key ); } // produces NPE otherwise this.handleFactory.destroyFactHandle( handle ); // // and now assert // /* check to see if this is a logically asserted object */ this.assertObject( object, false, ( status == EqualityKey.STATED ) ? false : true, rule, activation ); this.workingMemoryEventSupport.fireObjectModified( propagationContext, handle, handle.getObject( ), object ); if (!this.factQueue.isEmpty( )) { propagateQueuedActions( ); } } finally { this.getLock( ).unlock( ); } } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/262c79407ddf88c74a119d85b4090bd0ac4b0cfd/LeapsWorkingMemory.java/buggy/drools-core/src/main/java/org/drools/leaps/LeapsWorkingMemory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5612,
921,
12,
727,
29057,
3259,
5410,
3259,
16,
17311,
727,
1033,
733,
16,
17311,
727,
6781,
1720,
16,
17311,
727,
26015,
10027,
262,
1216,
29057,
503,
288,
3639,
775,
288,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5612,
921,
12,
727,
29057,
3259,
5410,
3259,
16,
17311,
727,
1033,
733,
16,
17311,
727,
6781,
1720,
16,
17311,
727,
26015,
10027,
262,
1216,
29057,
503,
288,
3639,
775,
288,
54... |
valueList = ruby.getScope().getLocalValues(); | valueList = null; | public RubyObject call(Ruby ruby, RubyObject recv, String id, RubyPointer args, boolean noSuper) { if (args == null) { args = new RubyPointer(); } CRefNode savedCref = null; // +++ = null; List valueList = null; ruby.getScope().push(); CRefNode lRefValue = getRefValue(); if (lRefValue != null) { savedCref = ruby.getCRef(); // s.a. ruby.setCRef(lRefValue); ruby.getRubyFrame().setCbase(lRefValue); } if (getTable() != null) { valueList = new ArrayList(Collections.nCopies(getTable().size(), ruby.getNil())); ruby.getScope().setLocalValues(valueList); ruby.getScope().setLocalNames(getTable()); } else { valueList = ruby.getScope().getLocalValues(); ruby.getScope().setLocalValues(null); ruby.getScope().setLocalNames(null); } Node callBody = getNextNode(); Node callNode = null; if (callBody.getType() == Constants.NODE_ARGS) { callNode = callBody; callBody = null; } else if (callBody.getType() == Constants.NODE_BLOCK) { callNode = callBody.getHeadNode(); callBody = callBody.getNextNode(); } RubyVarmap.push(ruby); // PUSH_TAG(PROT_FUNC); try { if (callNode != null) { //if (call_node.getType() != Constants.NODE_ARGS) { // rb_bug("no argument-node"); //} int i = callNode.getCount(); if (i > (args != null ? args.size() : 0)) { int size = 0; if (args != null) size = args.size(); throw new RubyArgumentException(ruby, getFile() + ":" + getLine() +"wrong # of arguments(" + size + " for " + i + ")"); } if (callNode.getRest() == -1) { int opt = i; Node optNode = callNode.getOptNode(); while (optNode != null) { opt++; optNode = optNode.getNextNode(); } if (opt < (args != null ? args.size() : 0)) { throw new RubyArgumentException(ruby, "wrong # of arguments(" + args.size() + " for " + opt + ")"); } // +++ ruby.getRubyFrame().setArgs(valueList != null ? new DelegateList(valueList, 2, valueList.size()) : null); // --- } if (valueList != null) { if (i > 0) { for (int j = 0; j < i; j++) { valueList.set(j + 2, args.get(j)); } } args.inc(i); if (callNode.getOptNode() != null) { Node optNode = callNode.getOptNode(); while (optNode != null && args.size() != 0) { ((AssignableNode) optNode.getHeadNode()).assign(ruby, recv, args.getRuby(0), true); args.inc(1); optNode = optNode.getNextNode(); } recv.eval(optNode); } if (callNode.getRest() >= 0) { RubyArray array = null; if (args.size() > 0) { array = RubyArray.newArray(ruby, args); } else { array = RubyArray.newArray(ruby, 0); } valueList.set(callNode.getRest(), array); } } } return recv.eval(callBody); } catch (ReturnException rExcptn) { // +++ jpetersen return ((RubyArray) rExcptn.getReturnValue()).pop(); // --- } finally { RubyVarmap.pop(ruby); ruby.getScope().pop(); if (savedCref != null) { ruby.setCRef(savedCref); } } } | 47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/2f13ba47385b7584839c7f6f6f1abfee251cbe53/ScopeNode.java/clean/org/jruby/nodes/ScopeNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
745,
12,
54,
10340,
22155,
16,
19817,
921,
10665,
16,
514,
612,
16,
19817,
4926,
833,
16,
1250,
1158,
8051,
13,
288,
202,
202,
430,
261,
1968,
422,
446,
13,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
745,
12,
54,
10340,
22155,
16,
19817,
921,
10665,
16,
514,
612,
16,
19817,
4926,
833,
16,
1250,
1158,
8051,
13,
288,
202,
202,
430,
261,
1968,
422,
446,
13,
288,
... |
Member member = memberCalc.evaluateMember(evaluator); return ascendants(member); | final List list = listCalc.evaluateList(evaluator); return addCalculatedMembers(list, evaluator); | public Calc compileCall(FunCall call, ExpCompiler compiler) { final MemberCalc memberCalc = compiler.compileMember(call.getArg(0)); return new AbstractListCalc(call, new Calc[] {memberCalc}) { public List evaluateList(Evaluator evaluator) { Member member = memberCalc.evaluateMember(evaluator); return ascendants(member); } }; } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/5aca340e1cdbb6179077d96383341db48f0997be/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
29128,
4074,
1477,
12,
22783,
1477,
745,
16,
7784,
9213,
5274,
13,
288,
7734,
727,
8596,
25779,
3140,
25779,
273,
13491,
5274,
18,
11100,
4419,
12,
1991,
18,
588,
4117,
12,
20,
100... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
29128,
4074,
1477,
12,
22783,
1477,
745,
16,
7784,
9213,
5274,
13,
288,
7734,
727,
8596,
25779,
3140,
25779,
273,
13491,
5274,
18,
11100,
4419,
12,
1991,
18,
588,
4117,
12,
20,
100... |
d.getContentPane().add(t); | d.getContentPane().add(new JScrollPane(t)); | private static Map _getInputTypeToMenuItemsMap(Map inputTypeToModulesMap, final AnalysisServiceDisplay analysisServiceDisplay) { Map inputTypeToMenuItemMap = new HashMap(); for(Iterator it = inputTypeToModulesMap.keySet().iterator(); it.hasNext(); ) { String type = (String) it.next(); List modules = (List) inputTypeToModulesMap.get(type); if(modules==null) { continue; } ModuleMenuItemAction[] m = new ModuleMenuItemAction[modules.size()]; java.util.Collections.sort(modules, AnalysisServiceUtil.CASE_INSENSITIVE_TASK_NAME_COMPARATOR); for(int i = 0; i < modules.size(); i++) { final AnalysisService svc = (AnalysisService) modules.get(i); m[i] = new ModuleMenuItemAction(svc.getTaskInfo().getName()) { public void actionPerformed(ActionEvent e) { analysisServiceDisplay.loadTask(svc); boolean uniqueSendTo = true; final List matchingInputParameters = new ArrayList(); for(Iterator it = analysisServiceDisplay.getInputFileParameters(); it.hasNext(); ) { ParameterInfo parameterInfo = (ParameterInfo) it.next(); if(isCorrectKind(parameterInfo, kind)) { matchingInputParameters.add(parameterInfo); } } if(matchingInputParameters.size()==1) { ParameterInfo inputParameter = (ParameterInfo) matchingInputParameters.get(0); analysisServiceDisplay.setInputFile(inputParameter.getName(), node); } else if(matchingInputParameters.size() > 1) { final JDialog d = new CenteredDialog(GenePattern.getDialogParent()); TableModel model = new AbstractTableModel() { public int getColumnCount() { return 1; } public int getRowCount() { return matchingInputParameters.size(); } public String getColumnName(int j) { return "Parameter"; } public Class getColumnClass(int j) { return String.class; } public Object getValueAt(int r, int c) { ParameterInfo p = (ParameterInfo) matchingInputParameters.get(r); return p.getName(); } }; final JTable t = new AlternatingColorTable(model); t.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); t.setRowSelectionInterval(0, 0); d.setTitle("Send " + node.toString() + " To"); d.getContentPane().add(t); final JButton ok = new JButton("OK"); final JButton cancel = new JButton("Cancel"); ActionListener listener = new ActionListener() { public void actionPerformed(ActionEvent e) { if(e.getSource()==ok) { int row = t.getSelectedRow(); if(row < 0) { return; } ParameterInfo inputParameter = (ParameterInfo) matchingInputParameters.get(row); analysisServiceDisplay.setInputFile(inputParameter.getName(), node); } d.dispose(); } }; ok.addActionListener(listener); cancel.addActionListener(listener); JPanel buttonPanel = new JPanel(); buttonPanel.add(cancel); buttonPanel.add(ok); d.getRootPane().setDefaultButton(ok); d.getContentPane().add(BorderLayout.SOUTH, buttonPanel); d.setSize(300, 200); d.setVisible(true); d.requestFocus(); } } }; } inputTypeToMenuItemMap.put(type, m); } return inputTypeToMenuItemMap; } | 57344 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57344/1bb63e29dfae36f12b1971b4d3ef35900c4c95e8/SemanticUtil.java/clean/clients/JavaGE/src/org/genepattern/gpge/ui/tasks/SemanticUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
1635,
389,
588,
1210,
559,
774,
4599,
3126,
863,
12,
863,
21092,
774,
7782,
863,
16,
727,
16318,
1179,
4236,
6285,
1179,
4236,
13,
288,
1377,
1635,
21092,
774,
12958,
863,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
1635,
389,
588,
1210,
559,
774,
4599,
3126,
863,
12,
863,
21092,
774,
7782,
863,
16,
727,
16318,
1179,
4236,
6285,
1179,
4236,
13,
288,
1377,
1635,
21092,
774,
12958,
863,
273,... |
public ReduceTaskRunner(Task task, TaskTracker tracker, Configuration conf) { | public ReduceTaskRunner(Task task, TaskTracker tracker, JobConf conf) { | public ReduceTaskRunner(Task task, TaskTracker tracker, Configuration conf) { super(task, tracker, conf); this.mapOutputFile = new MapOutputFile(); this.mapOutputFile.setConf(conf); } | 53958 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53958/b0b617a587ab91305418d13a4a4cb95620c55429/ReduceTaskRunner.java/buggy/src/java/org/apache/hadoop/mapred/ReduceTaskRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
24614,
2174,
9709,
12,
2174,
1562,
16,
3837,
8135,
9745,
16,
3956,
3976,
2195,
13,
288,
565,
2240,
12,
4146,
16,
9745,
16,
2195,
1769,
565,
333,
18,
1458,
1447,
812,
273,
394,
163... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
24614,
2174,
9709,
12,
2174,
1562,
16,
3837,
8135,
9745,
16,
3956,
3976,
2195,
13,
288,
565,
2240,
12,
4146,
16,
9745,
16,
2195,
1769,
565,
333,
18,
1458,
1447,
812,
273,
394,
163... |
return IReportElementConstants.BINDING_COLUMN_PREFIX + "[\"" + DEUtil.escape( columnName ) + "\"]"; | return ExpressionUtil.createJSRowExpression( columnName ); | public static String getColumnExpression( String columnName ) { Assert.isNotNull( columnName ); if ( StringUtil.isBlank( columnName ) ) { return null; } return IReportElementConstants.BINDING_COLUMN_PREFIX + "[\"" + DEUtil.escape( columnName ) + "\"]";//$NON-NLS-1$ //$NON-NLS-2$ } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e263e099ced6cd52030fa439571d59cbf28e3f01/DEUtil.java/buggy/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
6716,
2300,
12,
514,
7578,
262,
202,
95,
202,
202,
8213,
18,
291,
5962,
12,
7578,
11272,
202,
202,
430,
261,
14205,
18,
291,
7796,
12,
7578,
262,
262,
202,
202,
95... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
6716,
2300,
12,
514,
7578,
262,
202,
95,
202,
202,
8213,
18,
291,
5962,
12,
7578,
11272,
202,
202,
430,
261,
14205,
18,
291,
7796,
12,
7578,
262,
262,
202,
202,
95... |
public CmsUser lockedBy(String resource) throws CmsException { return (m_driverManager.lockedBy(m_context, addSiteRoot(resource))); | public CmsUser lockedBy(CmsResource resource) throws CmsException { return (m_driverManager.lockedBy(m_context, resource)); | public CmsUser lockedBy(String resource) throws CmsException { return (m_driverManager.lockedBy(m_context, addSiteRoot(resource))); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/13800bc9901ef233804cde14a40105c18bf67203/CmsObject.java/buggy/src/com/opencms/file/CmsObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
25492,
8586,
858,
12,
780,
1058,
13,
1216,
11228,
288,
3639,
327,
261,
81,
67,
7407,
1318,
18,
15091,
858,
12,
81,
67,
2472,
16,
527,
21889,
12,
3146,
3719,
1769,
565,
289,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
25492,
8586,
858,
12,
780,
1058,
13,
1216,
11228,
288,
3639,
327,
261,
81,
67,
7407,
1318,
18,
15091,
858,
12,
81,
67,
2472,
16,
527,
21889,
12,
3146,
3719,
1769,
565,
289,
2,
-... |
test.TPrx printer = test.TPrxHelper.checkedCast(base); | mono.TPrx printer = mono.TPrxHelper.checkedCast(base); | main(String[] args) { int status = 0; Ice.Communicator ic = null; try { ic = Ice.Util.initialize(args); Ice.ObjectPrx base = ic.stringToProxy( "T:default -p 10000"); test.TPrx printer = test.TPrxHelper.checkedCast(base); if (printer == null) throw new Error("Invalid proxy"); Roi5DRemote r5 = printer.getRoi5D(); Roi4DRemote r4 = (Roi4DRemote) r5.roi4ds.get(0); Roi4DRemote r4_ = (Roi4DRemote) r5.roi4ds.get(0); System.out.println(r4.roi3ds); System.out.println(r4_.roi3ds); } catch (Ice.LocalException e) { e.printStackTrace(); status = 1; } catch (Exception e) { System.err.println(e.getMessage()); status = 1; } if (ic != null) { // Clean up // try { ic.destroy(); } catch (Exception e) { System.err.println(e.getMessage()); status = 1; } } System.exit(status); } | 13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/d075eea85d4fb93ed40f6b4f476d90a0bccaf12a/Client.java/buggy/components/common/test/mono/Client.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2774,
12,
780,
8526,
833,
13,
565,
288,
3639,
509,
1267,
273,
374,
31,
3639,
467,
311,
18,
12136,
318,
8844,
13579,
273,
446,
31,
3639,
775,
288,
5411,
13579,
273,
467,
311,
18,
1304,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2774,
12,
780,
8526,
833,
13,
565,
288,
3639,
509,
1267,
273,
374,
31,
3639,
467,
311,
18,
12136,
318,
8844,
13579,
273,
446,
31,
3639,
775,
288,
5411,
13579,
273,
467,
311,
18,
1304,
... |
suppressionMatcher.addSuppressor( new MethodWarningSuppressor(pattern, clazz, MethodAnnotation.fromVisitedMethod(this))); | suppressionMatcher.addSuppressor(new MethodWarningSuppressor(pattern, clazz, MethodAnnotation.fromVisitedMethod(this))); | private void suppressWarning(String pattern) { String className = getDottedClassName(); ClassAnnotation clazz = new ClassAnnotation(className); if (className.endsWith("package-info") && recursiveDetector == null) suppressionMatcher.addPackageSuppressor( new PackageWarningSuppressor(pattern, getPackageName().replace('/', '.'))); else if (visitingMethod()) suppressionMatcher.addSuppressor( new MethodWarningSuppressor(pattern, clazz, MethodAnnotation.fromVisitedMethod(this))); else if (visitingField()) suppressionMatcher.addSuppressor( new FieldWarningSuppressor(pattern, clazz, FieldAnnotation.fromVisitedField(this))); else suppressionMatcher.addSuppressor( new ClassWarningSuppressor(pattern, clazz)); } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/c94e61968390aa5ab0584a51b7818a39d21ec89b/NoteSuppressedWarnings.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/NoteSuppressedWarnings.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
12257,
6210,
12,
780,
1936,
13,
288,
202,
202,
780,
2658,
273,
2343,
352,
2344,
3834,
5621,
202,
202,
797,
3257,
4003,
273,
394,
1659,
3257,
12,
12434,
1769,
202,
202,
430,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
12257,
6210,
12,
780,
1936,
13,
288,
202,
202,
780,
2658,
273,
2343,
352,
2344,
3834,
5621,
202,
202,
797,
3257,
4003,
273,
394,
1659,
3257,
12,
12434,
1769,
202,
202,
430,
2... |
this.native_fd = native_fd; | vmch = channel; | public SourceChannelImpl (SelectorProvider selectorProvider, int native_fd) { super (selectorProvider); this.native_fd = native_fd; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b178c65c33dbad8dc1c9e11c353aa40d71b61453/PipeImpl.java/buggy/core/src/classpath/gnu/gnu/java/nio/PipeImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4998,
2909,
2828,
261,
4320,
2249,
3451,
2249,
16,
17311,
509,
6448,
67,
8313,
13,
565,
288,
1377,
2240,
261,
9663,
2249,
1769,
1377,
4268,
343,
273,
1904,
31,
565,
289,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4998,
2909,
2828,
261,
4320,
2249,
3451,
2249,
16,
17311,
509,
6448,
67,
8313,
13,
565,
288,
1377,
2240,
261,
9663,
2249,
1769,
1377,
4268,
343,
273,
1904,
31,
565,
289,
2,
-100,
... |
flushLine(fout, indent); | private void printScriptStyle(Out fout, short mode, int indent, Lexer lexer, Node node) { Node content; String commentStart = DEFAULT_COMMENT_START; String commentEnd = DEFAULT_COMMENT_END; boolean hasCData = false; condFlushLine(fout, indent); indent = 0; printTag(lexer, fout, mode, indent, node); flushLine(fout, indent); if (lexer.configuration.xHTML && node.content != null) { AttVal type = node.getAttrByName("type"); if (type != null) { if ("text/javascript".equalsIgnoreCase(type.value)) { commentStart = JS_COMMENT_START; commentEnd = JS_COMMENT_END; } else if ("text/css".equalsIgnoreCase(type.value)) { commentStart = CSS_COMMENT_START; commentEnd = CSS_COMMENT_END; } else if ("text/vbscript".equalsIgnoreCase(type.value)) { commentStart = VB_COMMENT_START; commentEnd = VB_COMMENT_END; } } hasCData = hasCDATA(lexer, node.content); if (!hasCData) { // disable wrapping int savewraplen = lexer.configuration.wraplen; lexer.configuration.wraplen = 0xFFFFFF; // a very large number linelen = addAsciiString(commentStart, linelen); linelen = addAsciiString(CDATA_START, linelen); linelen = addAsciiString(commentEnd, linelen); condFlushLine(fout, indent); // restore wrapping lexer.configuration.wraplen = savewraplen; } } for (content = node.content; content != null; content = content.next) { printTree(fout, (short) (mode | PREFORMATTED | NOWRAP | CDATA), indent, lexer, content); } condFlushLine(fout, indent); if (lexer.configuration.xHTML && node.content != null) { if (!hasCData) { // disable wrapping int savewraplen = lexer.configuration.wraplen; lexer.configuration.wraplen = 0xFFFFFF; // a very large number linelen = addAsciiString(commentStart, linelen); linelen = addAsciiString(CDATA_END, linelen); linelen = addAsciiString(commentEnd, linelen); // restore wrapping lexer.configuration.wraplen = savewraplen; condFlushLine(fout, indent); } } printEndTag(mode, indent, node); flushLine(fout, indent); if (!lexer.configuration.indentContent && node.next != null) { flushLine(fout, indent); } } | 53077 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53077/42f83930c2cac62478f42d22f2f41f78870ae98b/PPrint.java/clean/jtidy/src/main/org/w3c/tidy/PPrint.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1172,
3651,
2885,
12,
1182,
17382,
16,
3025,
1965,
16,
509,
3504,
16,
14234,
8512,
16,
2029,
756,
13,
565,
288,
3639,
2029,
913,
31,
3639,
514,
2879,
1685,
273,
3331,
67,
122... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1172,
3651,
2885,
12,
1182,
17382,
16,
3025,
1965,
16,
509,
3504,
16,
14234,
8512,
16,
2029,
756,
13,
565,
288,
3639,
2029,
913,
31,
3639,
514,
2879,
1685,
273,
3331,
67,
122... | |
final ParsedArguments cmdLine = HELP_INFO.parse(args); final File entry = ARG_DIR.getFile(cmdLine); boolean deleteOk=false; if (!entry.exists()) { System.err.println(entry + " does not exist"); } if(entry.isDirectory()){ final File[] subFile=entry.listFiles(); for(int i=0;i<subFile.length;i++){ final String name=subFile[i].getName(); if(!name.equals(".") && !name.equals("..")){ System.err.println("Directory is not empty"); return; } } } deleteOk=entry.delete(); if(!deleteOk){ System.err.println(entry + " does not deleted"); } | new DeleteCommand().execute(new CommandLine(args), System.in, System.out, System.err); | public static void main(String[] args) throws Exception { final ParsedArguments cmdLine = HELP_INFO.parse(args); final File entry = ARG_DIR.getFile(cmdLine); boolean deleteOk=false; if (!entry.exists()) { System.err.println(entry + " does not exist"); } // for this time, delete only empty directory (wait implementation of -r option) if(entry.isDirectory()){ final File[] subFile=entry.listFiles(); for(int i=0;i<subFile.length;i++){ final String name=subFile[i].getName(); if(!name.equals(".") && !name.equals("..")){ System.err.println("Directory is not empty"); return; } } } deleteOk=entry.delete(); if(!deleteOk){ System.err.println(entry + " does not deleted"); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2017000443d42345d2722c0e3010c0ee595d8e15/DeleteCommand.java/buggy/fs/src/fs/org/jnode/fs/command/DeleteCommand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
202,
202,
6385,
19244,
4628,
1797,
1670,
273,
22557,
52,
67,
5923,
18,
2670,
12,
1968,
1769,
202,
202,
6385,
1387,
124... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
202,
202,
6385,
19244,
4628,
1797,
1670,
273,
22557,
52,
67,
5923,
18,
2670,
12,
1968,
1769,
202,
202,
6385,
1387,
124... |
private static String jsEncode(String string) { if (string == null || string.length() == 0) return "\"\""; int len = string.length(); StringBuffer sb = new StringBuffer(len + 4); sb.append('"'); for (int i = 0; i < len; i += 1) { char c = string.charAt(i); | private static String jsEncode(Object obj) { if (obj == null) return ""; String replacement, str = obj.toString(); StringBuffer sb = null; int i, last, length = str.length(); for (i = 0, last = -1; i < length; i++) { char c = str.charAt(i); | private static String jsEncode(String string) { if (string == null || string.length() == 0) return "\"\""; int len = string.length(); StringBuffer sb = new StringBuffer(len + 4); sb.append('"'); for (int i = 0; i < len; i += 1) { char c = string.charAt(i); switch (c) { case '\\': case '"': sb.append('\\').append(c); break; default: if (c < ' ') sb.append(JS_CHAR_ENCODINGS[c]); else sb.append(c); } } sb.append('"'); return sb.toString(); } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/48649d2941e3cd27615cee6e1211811f6dced4ba/Element.java/clean/ZimbraServer/src/java/com/zimbra/soap/Element.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
760,
514,
3828,
5509,
12,
780,
533,
13,
288,
5411,
309,
261,
1080,
422,
446,
747,
533,
18,
2469,
1435,
422,
374,
13,
7734,
327,
7023,
8530,
31,
5411,
509,
562,
273,
533,
18,
246... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
760,
514,
3828,
5509,
12,
780,
533,
13,
288,
5411,
309,
261,
1080,
422,
446,
747,
533,
18,
2469,
1435,
422,
374,
13,
7734,
327,
7023,
8530,
31,
5411,
509,
562,
273,
533,
18,
246... |
super(item, "Criticism raised: "); } | super(item, "Criticism raised: "); } | public HistoryItemCritique(ToDoItem item) { super(item, "Criticism raised: "); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/HistoryItemCritique.java/clean/src_new/org/argouml/cognitive/critics/HistoryItemCritique.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
16058,
1180,
39,
583,
2161,
12,
774,
3244,
1180,
761,
13,
288,
565,
2240,
12,
1726,
16,
315,
39,
583,
335,
6228,
11531,
30,
315,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
16058,
1180,
39,
583,
2161,
12,
774,
3244,
1180,
761,
13,
288,
565,
2240,
12,
1726,
16,
315,
39,
583,
335,
6228,
11531,
30,
315,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
... |
String shortCut= newQuickMenu.getShortCutString(); | String shortCut = null; if (newQuickMenu != null) { shortCut = newQuickMenu.getShortCutString(); } | private MenuManager createFileMenu() { MenuManager menu = new MenuManager(IDEWorkbenchMessages.getString("Workbench.file"), IWorkbenchActionConstants.M_FILE); //$NON-NLS-1$ menu.add(new GroupMarker(IWorkbenchActionConstants.FILE_START)); { // create the New submenu, using the same id for it as the New action String newText = IDEWorkbenchMessages.getString("Workbench.new"); //$NON-NLS-1$ String newId = ActionFactory.NEW.getId(); MenuManager newMenu = new MenuManager(newText, newId) { public String getMenuText() { String result= super.getMenuText(); String shortCut= newQuickMenu.getShortCutString(); if (shortCut == null) return result; return result + "\t" + shortCut; //$NON-NLS-1$ } }; newMenu.add(new Separator(newId)); this.newWizardMenu = new NewWizardMenu(getWindow()); newMenu.add(this.newWizardMenu); newMenu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS)); menu.add(newMenu); } menu.add(new GroupMarker(IWorkbenchActionConstants.NEW_EXT)); menu.add(new Separator()); menu.add(closeAction); menu.add(closeAllAction); // menu.add(closeAllSavedAction); menu.add(new GroupMarker(IWorkbenchActionConstants.CLOSE_EXT)); menu.add(new Separator()); menu.add(saveAction); menu.add(saveAsAction); menu.add(saveAllAction); menu.add(revertAction); menu.add(new Separator()); menu.add(moveAction); menu.add(renameAction); menu.add(refreshAction); menu.add(new GroupMarker(IWorkbenchActionConstants.SAVE_EXT)); menu.add(new Separator()); menu.add(printAction); menu.add(new GroupMarker(IWorkbenchActionConstants.PRINT_EXT)); menu.add(new Separator()); menu.add(openWorkspaceAction); menu.add(new GroupMarker(IWorkbenchActionConstants.OPEN_EXT)); menu.add(new Separator()); menu.add(importResourcesAction); menu.add(exportResourcesAction); menu.add(new GroupMarker(IWorkbenchActionConstants.IMPORT_EXT)); menu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS)); menu.add(new Separator()); menu.add(propertiesAction); menu.add(ContributionItemFactory.REOPEN_EDITORS.create(getWindow())); menu.add(new GroupMarker(IWorkbenchActionConstants.MRU)); menu.add(new Separator()); menu.add(quitAction); menu.add(new GroupMarker(IWorkbenchActionConstants.FILE_END)); return menu; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/5fab247f52602e9d6d0d778abdd2a7eac94731b7/WorkbenchActionBuilder.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
9809,
1318,
21266,
4599,
1435,
288,
202,
202,
4599,
1318,
3824,
273,
394,
9809,
1318,
12,
10385,
2421,
22144,
5058,
18,
588,
780,
2932,
2421,
22144,
18,
768,
6,
3631,
467,
2421... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
9809,
1318,
21266,
4599,
1435,
288,
202,
202,
4599,
1318,
3824,
273,
394,
9809,
1318,
12,
10385,
2421,
22144,
5058,
18,
588,
780,
2932,
2421,
22144,
18,
768,
6,
3631,
467,
2421... |
if ((fragmentIdentifier == null && s != null) || (s == null && fragmentIdentifier != null) || (s != null && !s.equals(fragmentIdentifier))) { | String s = newURI.getRef(); if ((fragmentIdentifier != s) && ((s == null) || (!s.equals(fragmentIdentifier)))) { | public void openLink(SVGAElement elt) { String show = XLinkSupport.getXLinkShow(elt); String href = XLinkSupport.getXLinkHref(elt); if (show.equals("new")) { fireLinkActivatedEvent(elt, href); if (svgUserAgent != null) { String oldURI = svgDocument.getURL(); ParsedURL newURI = null; // if the anchor element is in an external resource if (elt.getOwnerDocument() != svgDocument) { SVGDocument doc = (SVGDocument)elt.getOwnerDocument(); href = new ParsedURL(doc.getURL(), href).toString(); } newURI = new ParsedURL(oldURI, href); href = newURI.toString(); svgUserAgent.openLink(href, true); } else { JSVGComponent.this.loadSVGDocument(href); } return; } // Avoid reloading if possible. if (svgDocument != null) { // if the anchor element is in an external resource if (elt.getOwnerDocument() != svgDocument) { SVGDocument doc = (SVGDocument)elt.getOwnerDocument(); href = new ParsedURL(doc.getURL(), href).toString(); } ParsedURL oldURI = new ParsedURL(svgDocument.getURL()); ParsedURL newURI = new ParsedURL(oldURI, href); String s = newURI.getRef(); if (newURI.sameFile(oldURI)) { if ((fragmentIdentifier == null && s != null) || (s == null && fragmentIdentifier != null) || (s != null && !s.equals(fragmentIdentifier))) { fragmentIdentifier = s; computeRenderingTransform(); } fireLinkActivatedEvent(elt, newURI.toString()); return; } } fireLinkActivatedEvent(elt, href); if (svgUserAgent != null) { svgUserAgent.openLink(href, false); } else { JSVGComponent.this.loadSVGDocument(href); } } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/e00f09fc15492c247df2aa785334f1d0f7d3e6d7/JSVGComponent.java/clean/sources/org/apache/batik/swing/svg/JSVGComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1696,
2098,
12,
26531,
37,
1046,
11572,
13,
288,
5411,
514,
2405,
273,
1139,
2098,
6289,
18,
588,
60,
2098,
5706,
12,
20224,
1769,
5411,
514,
3897,
273,
1139,
2098,
6289,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1696,
2098,
12,
26531,
37,
1046,
11572,
13,
288,
5411,
514,
2405,
273,
1139,
2098,
6289,
18,
588,
60,
2098,
5706,
12,
20224,
1769,
5411,
514,
3897,
273,
1139,
2098,
6289,
18,
... |
if (row==null ) | if (row == null) | static Bundle find(Context context, int id) throws SQLException { TableRow row = DatabaseManager.find(context, "bundle", id); if (row==null ) { return null; } else { return new Bundle(context, row); } } | 47214 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47214/85c7430ba7691f831fafc420459d280408310eb9/Bundle.java/buggy/dspace/src/org/dspace/content/Bundle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
8539,
1104,
12,
1042,
819,
16,
509,
612,
13,
3639,
1216,
6483,
565,
288,
3639,
3555,
1999,
1027,
273,
5130,
1318,
18,
4720,
12,
2472,
16,
5411,
315,
9991,
3113,
5411,
612,
1769,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
8539,
1104,
12,
1042,
819,
16,
509,
612,
13,
3639,
1216,
6483,
565,
288,
3639,
3555,
1999,
1027,
273,
5130,
1318,
18,
4720,
12,
2472,
16,
5411,
315,
9991,
3113,
5411,
612,
1769,
36... |
private boolean callComponentListener() { // Get any component parameter final String path = request.getParameter("component"); final String pageMapName = request.getParameter("pagemap"); if (path != null) { // Get version number final String versionNumberString = request.getParameter("version"); final int versionNumber = Strings.isEmpty(versionNumberString) ? 0 : Integer .parseInt(versionNumberString); // Get page from path final Page page = session.getPage(pageMapName, path, versionNumber); // Does page exist? if (page != null) { // Execute the user's code invokeInterface(page, path, request.getParameter("interface")); return true; } else { onExpiredPage(); return true; } } return false; } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/7ef64746b93b52e716a5d7c8d1cb114f646ef92d/WebRequestCycle.java/buggy/wicket/src/java/wicket/protocol/http/WebRequestCycle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
745,
1841,
2223,
1435,
202,
95,
202,
202,
759,
968,
1281,
1794,
1569,
202,
202,
6385,
514,
589,
273,
590,
18,
588,
1662,
2932,
4652,
8863,
202,
202,
6385,
514,
1363,
86... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
745,
1841,
2223,
1435,
202,
95,
202,
202,
759,
968,
1281,
1794,
1569,
202,
202,
6385,
514,
589,
273,
590,
18,
588,
1662,
2932,
4652,
8863,
202,
202,
6385,
514,
1363,
86... | ||
return false; | return i == getSelectedIndex(); | public boolean isAccessibleChildSelected(int i) throws NotImplementedException { return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
10451,
1763,
7416,
12,
474,
277,
13,
1377,
1216,
10051,
503,
565,
288,
1377,
327,
277,
422,
16625,
1016,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
10451,
1763,
7416,
12,
474,
277,
13,
1377,
1216,
10051,
503,
565,
288,
1377,
327,
277,
422,
16625,
1016,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
retEnv = SunRound2Client.sendMsg(util, url, soapAction); | retEnv = client.sendMsg(util, url, soapAction); | public void testR2BaseEchoInteger() throws AxisFault { url = "http://explorer.ne.mediaone.net/app/interop/interop"; soapAction = "http://soapinterop.org/"; util = new Round2EchoIntegerClientUtil(); retEnv = SunRound2Client.sendMsg(util, url, soapAction); tempPath = resFilePath + "sunBaseIntegerRes.xml"; compareXML(retEnv, tempPath); } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/95f09abc768fee06d65b12836e31273ac0e15eb3/SSRound2InteropTest.java/clean/modules/integration/itest/test/interop/whitemesa/round2/SSRound2InteropTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
54,
22,
2171,
19704,
4522,
1435,
1216,
15509,
7083,
288,
3639,
880,
273,
315,
2505,
2207,
338,
11766,
18,
4644,
18,
5829,
476,
18,
2758,
19,
2910,
19,
30376,
19,
30376,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
54,
22,
2171,
19704,
4522,
1435,
1216,
15509,
7083,
288,
3639,
880,
273,
315,
2505,
2207,
338,
11766,
18,
4644,
18,
5829,
476,
18,
2758,
19,
2910,
19,
30376,
19,
30376,
... |
{ skipWhitespace (); if (tryRead (')')) { if (readBuffer != saved) handler.verror ("Illegal Group/PE nesting"); dataBufferAppend (")*"); tryRead ('*'); return; } skipWhitespace (); while (!tryRead (")")) { require ('|'); dataBufferAppend ('|'); skipWhitespace (); dataBufferAppend (readNmtoken (true)); skipWhitespace (); } if (readBuffer != saved) handler.verror ("Illegal Group/PE nesting"); require ('*'); dataBufferAppend (")*"); } | { skipWhitespace(); if (tryRead(')')) { if (readBuffer != saved) { handler.verror("Illegal Group/PE nesting"); } dataBufferAppend(")*"); tryRead('*'); return; } skipWhitespace(); while (!tryRead(")")) { require('|'); dataBufferAppend('|'); skipWhitespace(); dataBufferAppend(readNmtoken(true)); skipWhitespace(); } if (readBuffer != saved) { handler.verror("Illegal Group/PE nesting"); } require('*'); dataBufferAppend(")*"); } | private void parseMixed (char saved []) throws Exception { // Check for PCDATA alone. skipWhitespace (); if (tryRead (')')) { // VC: Proper Group/PE Nesting if (readBuffer != saved) handler.verror ("Illegal Group/PE nesting"); dataBufferAppend (")*"); tryRead ('*'); return; } // Parse mixed content. skipWhitespace (); while (!tryRead (")")) { require ('|'); dataBufferAppend ('|'); skipWhitespace (); dataBufferAppend (readNmtoken (true)); skipWhitespace (); } // VC: Proper Group/PE Nesting if (readBuffer != saved) handler.verror ("Illegal Group/PE nesting"); require ('*'); dataBufferAppend (")*"); } | 25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/clean/libjava/gnu/xml/aelfred2/XmlParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
19846,
261,
3001,
5198,
5378,
13,
565,
1216,
1185,
565,
288,
202,
759,
2073,
364,
453,
18375,
24068,
18,
202,
7457,
9431,
261,
1769,
202,
430,
261,
698,
1994,
7707,
2506,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
19846,
261,
3001,
5198,
5378,
13,
565,
1216,
1185,
565,
288,
202,
759,
2073,
364,
453,
18375,
24068,
18,
202,
7457,
9431,
261,
1769,
202,
430,
261,
698,
1994,
7707,
2506,... |
for (Iterator<RefElement> iterator = getInReferences().iterator(); iterator.hasNext();) { RefElement refCaller = iterator.next(); | for (RefElement refCaller : getInReferences()) { | private boolean isCalledOnlyFrom(RefElement refElement, Stack<RefElement> callStack) { if (callStack.contains(this)) return refElement == this ? true : false; if (getInReferences().size() == 0) return false; if (refElement instanceof RefMethod) { RefMethod refMethod = (RefMethod) refElement; for (Iterator<RefMethod> iterator = refMethod.getSuperMethods().iterator(); iterator.hasNext();) { RefMethod refSuper = iterator.next(); if (refSuper.getInReferences().size() > 0) return false; } } callStack.push(this); for (Iterator<RefElement> iterator = getInReferences().iterator(); iterator.hasNext();) { RefElement refCaller = iterator.next(); if (!refCaller.isSuspicious() || !refCaller.isCalledOnlyFrom(refElement, callStack)) { callStack.pop(); return false; } } callStack.pop(); return true; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/44b1444ef611a7223c4ad1fa4fc69f6017017008/RefElement.java/clean/source/com/intellij/codeInspection/reference/RefElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1250,
353,
8185,
3386,
1265,
12,
1957,
1046,
1278,
1046,
16,
7283,
32,
1957,
1046,
34,
745,
2624,
13,
288,
565,
309,
261,
1991,
2624,
18,
12298,
12,
2211,
3719,
327,
1278,
1046,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1250,
353,
8185,
3386,
1265,
12,
1957,
1046,
1278,
1046,
16,
7283,
32,
1957,
1046,
34,
745,
2624,
13,
288,
565,
309,
261,
1991,
2624,
18,
12298,
12,
2211,
3719,
327,
1278,
1046,
4... |
if (DEBUG) { | if (debug) { | public byte[] openBytes(String id, int no) throws FormatException, IOException { if (!id.equals(currentId)) initFile(id); if (no < 0 || no >= getImageCount(id)) { throw new FormatException("Invalid image number: " + no); } String code = codec; if (no >= getImageCount(id) - altPlanes) code = altCodec; boolean doLegacy = useLegacy; if (!doLegacy && !code.equals("raw ") && !code.equals("rle ") && !code.equals("jpeg") && !code.equals("mjpb") && !code.equals("rpza")) { if (DEBUG) { System.out.println("Unsupported codec (" + code + "); using QTJava reader"); } doLegacy = true; } if (doLegacy) { if (legacy == null) legacy = createLegacyReader(); return legacy.openBytes(id, no); } int offset = ((Integer) offsets.get(no)).intValue(); int nextOffset = pixelBytes; scale = ((Integer) offsets.get(0)).intValue(); offset -= scale; if (no < offsets.size() - 1) { nextOffset = ((Integer) offsets.get(no + 1)).intValue(); nextOffset -= scale; } if ((nextOffset - offset) < 0) { int temp = offset; offset = nextOffset; nextOffset = temp; } byte[] pixs = new byte[nextOffset - offset]; in.seek(pixelOffset + offset); in.read(pixs); canUsePrevious = (prevPixels != null) && (prevPlane == no - 1); if (code.equals("jpeg") || code.equals("mjpb")) { return ImageTools.getBytes(openImage(id, no), false, no); } byte[] bytes = uncompress(pixs, code); // on rare occassions, we need to trim the data if (canUsePrevious && (prevPixels.length < bytes.length)) { byte[] temp = bytes; bytes = new byte[prevPixels.length]; System.arraycopy(temp, 0, bytes, 0, bytes.length); } if (flip) { // we need to flip the X and Y axes before displaying byte[] tmp = bytes; bytes = new byte[tmp.length]; int t = width; width = height; height = t; int b = bytes.length / (width * height); if (b % 3 != 0) { for (int i=0; i<width; i++) { for (int j=0; j<height; j++) { for (int k=0; k<b; k++) { bytes[j*width*b + (width - i) + b] = tmp[i*height*b + j + b]; } } } } else { for (int i=0; i<3; i++) { for (int j=0; j<width; j++) { for (int k=0; k<height; k++) { bytes[k*width +i*width*height + (width - j - 1)] = tmp[j*height + k + i*width*height]; } } } } } prevPixels = bytes; prevPlane = no; // determine whether we need to strip out any padding bytes int pad = width % 4; pad = (4 - pad) % 4; if (width * height * (bitsPerPixel / 8) == prevPixels.length) { pad = 0; } if (pad > 0 && !code.equals("rpza")) { bytes = new byte[prevPixels.length - height*pad]; for (int row=0; row<height; row++) { System.arraycopy(prevPixels, row*(width+pad), bytes, row*width, width); } } else if (code.equals("rpza")) { bytes = new byte[prevPixels.length]; int cut = 0; for (int i=width-1; i>=0; i--) { byte[] redColumn = new byte[height]; byte[] greenColumn = new byte[height]; byte[] blueColumn = new byte[height]; for (int j=0; j<cut; j++) { redColumn[j] = prevPixels[(j+height-cut)*width + i]; greenColumn[j] = prevPixels[(j+height-cut)*width + i + width*height]; blueColumn[j] = prevPixels[(j+height-cut)*width + i + 2*width*height]; } for (int j=cut; j<height; j++) { redColumn[j] = prevPixels[j*width + i]; greenColumn[j] = prevPixels[j*width + i + width*height]; blueColumn[j] = prevPixels[j*width + i + 2*width*height]; } if (i > width - 1 - height) cut++; for (int j=0; j<height; j++) { bytes[j*width + i] = redColumn[j]; bytes[j*width + i + width*height] = greenColumn[j]; bytes[j*width + i + 2*width*height] = blueColumn[j]; } } } if (flip) { int t = width; width = height; height = t; } if (bitsPerPixel == 40 || bitsPerPixel == 8) { // invert the pixels for (int i=0; i<bytes.length; i++) { bytes[i] = (byte) (255 - bytes[i]); } return bytes; } else if (bitsPerPixel == 32) { // strip out alpha channel byte[][] data = new byte[3][bytes.length / 4]; for (int i=0; i<data[0].length; i++) { data[0][i] = bytes[4*i + 1]; data[1][i] = bytes[4*i + 2]; data[2][i] = bytes[4*i + 3]; } byte[] rtn = new byte[data.length * data[0].length]; for (int i=0; i<data.length; i++) { System.arraycopy(data[i], 0, rtn, i * data[0].length, data[i].length); } return rtn; } else return bytes; } | 11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/91e7b0ac7354ab4613a4d051bb77360de01aecdc/QTReader.java/buggy/loci/formats/in/QTReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1160,
8526,
1696,
2160,
12,
780,
612,
16,
509,
1158,
13,
565,
1216,
4077,
503,
16,
1860,
225,
288,
565,
309,
16051,
350,
18,
14963,
12,
2972,
548,
3719,
1208,
812,
12,
350,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1160,
8526,
1696,
2160,
12,
780,
612,
16,
509,
1158,
13,
565,
1216,
4077,
503,
16,
1860,
225,
288,
565,
309,
16051,
350,
18,
14963,
12,
2972,
548,
3719,
1208,
812,
12,
350,
1769,
... |
out.println("</tr>"); | out.println("</td></tr>"); | public void doGet( HttpServletRequest req, HttpServletResponse res) throws IOException { res.setContentType("text/html"); PrintWriter out=res.getWriter(); out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">"); out.println("<html>"); out.println("<head>"); out.println("<title>Collection Monitor Stats</title>"); out.println("</head>"); out.println("<body>"); out.println("<H2>Collection Monitor Stats</H2>"); out.println("<form action=\"" + req.getRequestURI() + "\" method =\"post\">"); out.println("<table border=\"2\">"); out.println("<tr>"); out.println( "<input type=\"radio\" name=\"collection\" value=\"Hashtable\"/>Hashtable<br/>" + "<input type=\"radio\" name=\"collection\" value=\"HashSet\"/>HashSet<br/>" + "<input type=\"radio\" name=\"collection\" value=\"HashMap\"/>HashMap<br/>" + "<input type=\"radio\" name=\"collection\" value=\"ArrayList\"/>ArrayList<br/>" + "<input type=\"radio\" name=\"collection\" value=\"IdentityHashMap\"/>IdentityHashMap<br/>" + "<input type=\"radio\" name=\"collection\" value=\"LinkedHashMap\"/>LinkedHashMap<br/>" + "<input type=\"radio\" name=\"collection\" value=\"LinkedHashSet\"/>LinkedHashSet<br/>" + "<input type=\"radio\" name=\"collection\" value=\"LinkedList\"/>LinkedList<br/>" + "<input type=\"radio\" name=\"collection\" value=\"Stack\"/>Stack<br/>" + "<input type=\"radio\" name=\"collection\" value=\"TreeMap\"/>TreeMap<br/>" + "<input type=\"radio\" name=\"collection\" value=\"TreeSet\"/>TreeSet<br/>" + "<input type=\"radio\" name=\"collection\" value=\"Vector\"/>Vector<br/>" + "<input type=\"radio\" name=\"collection\" value=\"WeakHashMap\"/>WeakHashMap<br/>" ); out.println("</tr>"); out.println("<tr><td>Number of rows:"); out.println("</td><td><input name=\"Rows\" type=\"text\" value=\"20\"><br/>"); out.println("</tr>"); out.println("<tr><td>Number of lines in stack trace:"); out.println("</td><td><input name=\"Lines\" type=\"text\" value=\"2\"><br/>"); out.println("</tr>"); out.println("<tr><input type=\"submit\" value=\"Submit\"/></tr>"); out.println("</table>"); out.println("</form>"); out.println("</body></html>"); out.flush(); out.close(); } | 12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/3a97e6530fe13d8c0788d24f8cd1930684e65afd/CollectionMonitorServlet.java/clean/securityservices/src/org/cougaar/core/security/test/memory/CollectionMonitorServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
1377,
9984,
1111,
16,
1377,
12446,
400,
13,
1216,
1860,
288,
1377,
400,
18,
542,
8046,
2932,
955,
19,
2620,
8863,
1377,
14071,
596,
33,
455,
18,
588,
2289,
5621,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
1377,
9984,
1111,
16,
1377,
12446,
400,
13,
1216,
1860,
288,
1377,
400,
18,
542,
8046,
2932,
955,
19,
2620,
8863,
1377,
14071,
596,
33,
455,
18,
588,
2289,
5621,
1... |
for (int i=0; i<getAssociatesLength(); i++) if (areAssociated(i, which)) | for (int i=0; i<taxaA.getNumTaxa(); i++) if (areAssociated(i, which)) | public int getNumAssociates(Taxon taxon){ if (!includedTaxon(taxon)) return 0; int which = taxaA.whichTaxonNumber(taxon); if (which==-1) { //taxon belongs to B; need to look down matrix which = taxaB.whichTaxonNumber(taxon); if (which==-1) return 0; int num = 0; for (int i=0; i<getAssociatesLength(); i++) //counting how many associates if (areAssociated(i, which)) num++; return num; } else { //taxon belongs to A; need to look across matrix int num = 0; for (int i=0; i<getAssociatesLength0(); i++) //counting how many associates if (areAssociated(which,i)) num++; return num; } } | 57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/1c557278be9d12149d6383be28e0e55098cc4cb2/TaxaAssociation.java/buggy/trunk/Mesquite Project/Source/mesquite/assoc/lib/TaxaAssociation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
11187,
28469,
12,
7731,
265,
25458,
15329,
202,
202,
430,
16051,
20405,
7731,
265,
12,
8066,
265,
3719,
1082,
202,
2463,
374,
31,
202,
202,
474,
1492,
273,
5320,
69,
37,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
11187,
28469,
12,
7731,
265,
25458,
15329,
202,
202,
430,
16051,
20405,
7731,
265,
12,
8066,
265,
3719,
1082,
202,
2463,
374,
31,
202,
202,
474,
1492,
273,
5320,
69,
37,
... |
return new SequenceDBSearchHit(subjectID, | return new SequenceDBSearchHit(subjectSeqID, | private SeqSimilaritySearchHit createHit(Map dataMap, Annotation hitAnnotation) throws BioException { String subjectID = (String) dataMap.get("id"); Double score = (Double) dataMap.get("fa_z-score"); Double eValue = (Double) dataMap.get("fa_expect"); Double pValue = (Double) dataMap.get("fa_expect"); // There is only ever one subhit in a Fasta hit List subHits = new ArrayList(); try { Alignment alignment = createAlignment(dataMap); SeqSimilaritySearchSubHit subHit = new SequenceDBSearchSubHit(score.doubleValue(), eValue.doubleValue(), pValue.doubleValue(), alignment); subHits.add(subHit); } catch (IllegalSymbolException ise) { throw new BioException("Failed to create alignment for hit to " + subjectID); } return new SequenceDBSearchHit(subjectID, score.doubleValue(), eValue.doubleValue(), pValue.doubleValue(), subHits, hitAnnotation); } | 50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/12a0a4afbfea0fc76b108f88303a4155d35e4cd9/FastaSearchBuilder.java/clean/src/org/biojava/bio/program/search/FastaSearchBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
14367,
16891,
560,
2979,
13616,
752,
13616,
12,
863,
3639,
501,
863,
16,
25083,
377,
6090,
6800,
3257,
13,
202,
15069,
21209,
503,
565,
288,
202,
780,
3221,
734,
225,
273,
261,
780,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
14367,
16891,
560,
2979,
13616,
752,
13616,
12,
863,
3639,
501,
863,
16,
25083,
377,
6090,
6800,
3257,
13,
202,
15069,
21209,
503,
565,
288,
202,
780,
3221,
734,
225,
273,
261,
780,... |
public ASTFunction(IASTScope scope, String name, int nameEndOffset, List parameters, IASTAbstractDeclaration returnType, IASTExceptionSpecification exception, boolean isInline, boolean isFriend, boolean isStatic, int startOffset, int nameOffset, IASTTemplate ownerTemplate, boolean hasFunctionTryBlock, boolean hasVarArgs ) | public ASTFunction(IASTScope scope, String name, List parameters, IASTAbstractDeclaration returnType, IASTExceptionSpecification exception, boolean isInline, boolean isFriend, boolean isStatic, int startOffset, int startLine, int nameOffset, int nameEndOffset, IASTTemplate ownerTemplate, boolean hasFunctionTryBlock, boolean hasVarArgs, int nameLine ) | public ASTFunction(IASTScope scope, String name, int nameEndOffset, List parameters, IASTAbstractDeclaration returnType, IASTExceptionSpecification exception, boolean isInline, boolean isFriend, boolean isStatic, int startOffset, int nameOffset, IASTTemplate ownerTemplate, boolean hasFunctionTryBlock, boolean hasVarArgs ) { super(ownerTemplate != null ? null : scope ); this.name = name; this.parms = parameters; this.returnType = returnType; this.exceptionSpec = exception; this.isInline = isInline; this.isFriend = isFriend; this.isStatic = isStatic; this.ownerTemplateDeclaration = ownerTemplate; if( ownerTemplate != null ) ownerTemplate.setOwnedDeclaration( this ); offsets.setStartingOffset( startOffset ); offsets.setNameOffset( nameOffset ); qualifiedName = new ASTQualifiedNamedElement( scope, name ); setNameEndOffset(nameEndOffset); this.hasFunctionTryBlock = hasFunctionTryBlock; this.varArgs = hasVarArgs; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/a38f5c4f0dd1208b4df07f8a318b103677fbf77a/ASTFunction.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/quick/ASTFunction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9183,
2083,
12,
45,
9053,
3876,
2146,
16,
514,
508,
16,
509,
508,
1638,
2335,
16,
987,
1472,
16,
467,
9053,
7469,
6094,
9424,
16,
467,
9053,
503,
8615,
1520,
16,
1377,
1082,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9183,
2083,
12,
45,
9053,
3876,
2146,
16,
514,
508,
16,
509,
508,
1638,
2335,
16,
987,
1472,
16,
467,
9053,
7469,
6094,
9424,
16,
467,
9053,
503,
8615,
1520,
16,
1377,
1082,
202,
... |
d.union(child.getPreferredSize(wHint, hHint)); | if (!getObservingVisibility() || child.isVisible()) d.union(child.getPreferredSize(wHint, hHint)); | protected Dimension calculatePreferredSize(IFigure figure, int wHint, int hHint) { if (wHint > -1) wHint = Math.max(0, wHint - figure.getInsets().getWidth()); if (hHint > -1) hHint = Math.max(0, hHint - figure.getInsets().getHeight()); Dimension d = new Dimension(); List children = figure.getChildren(); IFigure child; for (int i = 0; i < children.size(); i++) { child = (IFigure)children.get(i); d.union(child.getPreferredSize(wHint, hHint)); } d.expand(figure.getInsets().getWidth(), figure.getInsets().getHeight()); d.union(getBorderPreferredSize(figure)); return d;} | 11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/30bbf544ae45984c8a0b3cbe688a552eb69c45eb/StackLayout.java/buggy/org.eclipse.draw2d/src/org/eclipse/draw2d/StackLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
13037,
4604,
16028,
1225,
12,
5501,
15906,
7837,
16,
509,
341,
7002,
16,
509,
366,
7002,
13,
288,
202,
430,
261,
91,
7002,
405,
300,
21,
13,
202,
202,
91,
7002,
273,
2361,
18,
1896,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
13037,
4604,
16028,
1225,
12,
5501,
15906,
7837,
16,
509,
341,
7002,
16,
509,
366,
7002,
13,
288,
202,
430,
261,
91,
7002,
405,
300,
21,
13,
202,
202,
91,
7002,
273,
2361,
18,
1896,
... |
public org.quickfix.field.UnderlyingSecurityIDSource getUnderlyingSecurityIDSource() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityIDSource value = new org.quickfix.field.UnderlyingSecurityIDSource(); | public quickfix.field.UnderlyingSecurityIDSource getUnderlyingSecurityIDSource() throws FieldNotFound { quickfix.field.UnderlyingSecurityIDSource value = new quickfix.field.UnderlyingSecurityIDSource(); | public org.quickfix.field.UnderlyingSecurityIDSource getUnderlyingSecurityIDSource() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityIDSource value = new org.quickfix.field.UnderlyingSecurityIDSource(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MassQuote.java/buggy/src/java/src/quickfix/fix43/MassQuote.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
734,
1830,
10833,
765,
6291,
4368,
734,
1830,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
629... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
734,
1830,
10833,
765,
6291,
4368,
734,
1830,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
629... |
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | if (jj_3R_58()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | final private boolean jj_3R_64() { Token xsp; xsp = jj_scanpos; if (jj_3R_71()) { jj_scanpos = xsp; if (jj_3R_72()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/983675edbbab0e381643fec9c2a3e765c2f88830/Parser.java/buggy/src/java/org/apache/velocity/runtime/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
1105,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
11212,
10756,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
1105,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
11212,
10756,
... |
AptDispatchRunnable runnable; | APTDispatchRunnable runnable; | private static APTResult runAPT(final List<AnnotationProcessorFactory> factories, IJavaProject javaProj, IFile file, ICompilationUnit compilationUnit ) { AptDispatchRunnable runnable; if ( file != null ) runnable = new AptDispatchRunnable( file, javaProj, factories ); else runnable = new AptDispatchRunnable( compilationUnit, javaProj, factories ); IWorkspace w = ResourcesPlugin.getWorkspace(); try { w.run( runnable, null ); } catch( CoreException ce ) { // TODO: deal with this exception ce.printStackTrace(); } return runnable.getResult(); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/cacf81a7137174ebdbae2d8edff3e6a2656a3f91/APTDispatch.java/buggy/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/APTDispatch.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
432,
1856,
1253,
1086,
37,
1856,
12,
6385,
987,
32,
3257,
5164,
1733,
34,
17456,
16,
1082,
202,
45,
5852,
4109,
2252,
626,
78,
16,
467,
812,
585,
16,
1875,
202,
45,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
432,
1856,
1253,
1086,
37,
1856,
12,
6385,
987,
32,
3257,
5164,
1733,
34,
17456,
16,
1082,
202,
45,
5852,
4109,
2252,
626,
78,
16,
467,
812,
585,
16,
1875,
202,
45,
19... |
Reader debugReader = new Reader() { Reader myReader = reader; public int read(char cbuf[], int off, int len) throws IOException { int count = myReader.read(cbuf, off, len); if (count > 0) { String str = new String(cbuf, off, count); int index = str.lastIndexOf(">"); if (index != -1) { receivedText.append(str.substring(0, index + 1)); receivedText.append(NEWLINE); if (str.length() > index) { receivedText.append(str.substring(index + 1)); | ObservableReader debugReader = new ObservableReader(reader); readerListener = new ReaderListener() { public void read(String str) { int index = str.lastIndexOf(">"); if (index != -1) { receivedText.append(str.substring(0, index + 1)); receivedText.append(NEWLINE); if (str.length() > index) { receivedText.append(str.substring(index + 1)); } } else { receivedText.append(str); | private void addBasicPanels() { JPanel allPane = new JPanel(); allPane.setLayout(new GridLayout(2, 1)); tabbedPane.add("All Packets", allPane); tabbedPane.setToolTipTextAt(0, "Sent and received packets processed by Smack"); messagesTable = new DefaultTableModel( new Object[] { "Hide", "Timestamp", "", "", "Message", "Type", "To", "From" }, 0) { public boolean isCellEditable(int rowIndex, int mColIndex) { return false; } public Class getColumnClass(int columnIndex) { if (columnIndex == 2 || columnIndex == 3) { return Icon.class; } return super.getColumnClass(columnIndex); } }; JTable table = new JTable(messagesTable); // Allow only single a selection table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); // Hide the first column table.getColumnModel().getColumn(0).setMaxWidth(0); table.getColumnModel().getColumn(0).setMinWidth(0); table.getTableHeader().getColumnModel().getColumn(0).setMaxWidth(0); table.getTableHeader().getColumnModel().getColumn(0).setMinWidth(0); // Set the column "timestamp" size table.getColumnModel().getColumn(1).setMaxWidth(300); table.getColumnModel().getColumn(1).setPreferredWidth(70); // Set the column "direction" icon size table.getColumnModel().getColumn(2).setMaxWidth(50); table.getColumnModel().getColumn(2).setPreferredWidth(30); // Set the column "packet type" icon size table.getColumnModel().getColumn(3).setMaxWidth(50); table.getColumnModel().getColumn(3).setPreferredWidth(30); // Set the column "type" size table.getColumnModel().getColumn(5).setMaxWidth(200); table.getColumnModel().getColumn(5).setPreferredWidth(50); // Set the column "to" size table.getColumnModel().getColumn(6).setMaxWidth(300); table.getColumnModel().getColumn(6).setPreferredWidth(90); // Set the column "from" size table.getColumnModel().getColumn(7).setMaxWidth(300); table.getColumnModel().getColumn(7).setPreferredWidth(90); // Create a table listener that listen for row selection events SelectionListener selectionListener = new SelectionListener(table); table.getSelectionModel().addListSelectionListener(selectionListener); table.getColumnModel().getSelectionModel().addListSelectionListener(selectionListener); allPane.add(new JScrollPane(table)); messageTextArea = new JTextArea(); messageTextArea.setEditable(false); // Add pop-up menu. JPopupMenu menu = new JPopupMenu(); JMenuItem menuItem1 = new JMenuItem("Copy"); menuItem1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { // Get the clipboard Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); // Set the sent text as the new content of the clipboard clipboard.setContents(new StringSelection(messageTextArea.getText()), null); } }); menu.add(menuItem1); // Add listener to the text area so the popup menu can come up. messageTextArea.addMouseListener(new PopupListener(menu)); allPane.add(new JScrollPane(messageTextArea)); // Create UI elements for client generated XML traffic. final JTextArea sentText = new JTextArea(); sentText.setEditable(false); sentText.setForeground(new Color(112, 3, 3)); tabbedPane.add("Raw Sent Packets", new JScrollPane(sentText)); tabbedPane.setToolTipTextAt(1, "Raw text of the sent packets"); // Add pop-up menu. menu = new JPopupMenu(); menuItem1 = new JMenuItem("Copy"); menuItem1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { // Get the clipboard Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); // Set the sent text as the new content of the clipboard clipboard.setContents(new StringSelection(sentText.getText()), null); } }); JMenuItem menuItem2 = new JMenuItem("Clear"); menuItem2.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { sentText.setText(""); } }); // Add listener to the text area so the popup menu can come up. sentText.addMouseListener(new PopupListener(menu)); menu.add(menuItem1); menu.add(menuItem2); // Create UI elements for server generated XML traffic. final JTextArea receivedText = new JTextArea(); receivedText.setEditable(false); receivedText.setForeground(new Color(6, 76, 133)); tabbedPane.add("Raw Received Packets", new JScrollPane(receivedText)); tabbedPane.setToolTipTextAt( 2, "Raw text of the received packets before Smack process them"); // Add pop-up menu. menu = new JPopupMenu(); menuItem1 = new JMenuItem("Copy"); menuItem1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { // Get the clipboard Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); // Set the sent text as the new content of the clipboard clipboard.setContents(new StringSelection(receivedText.getText()), null); } }); menuItem2 = new JMenuItem("Clear"); menuItem2.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { receivedText.setText(""); } }); // Add listener to the text area so the popup menu can come up. receivedText.addMouseListener(new PopupListener(menu)); menu.add(menuItem1); menu.add(menuItem2); // Create a special Reader that wraps the main Reader and logs data to the GUI. Reader debugReader = new Reader() { Reader myReader = reader; public int read(char cbuf[], int off, int len) throws IOException { int count = myReader.read(cbuf, off, len); if (count > 0) { String str = new String(cbuf, off, count); int index = str.lastIndexOf(">"); if (index != -1) { receivedText.append(str.substring(0, index + 1)); receivedText.append(NEWLINE); if (str.length() > index) { receivedText.append(str.substring(index + 1)); } } else { receivedText.append(str); } } return count; } public void close() throws IOException { myReader.close(); } public int read() throws IOException { return myReader.read(); } public int read(char cbuf[]) throws IOException { return myReader.read(cbuf); } public long skip(long n) throws IOException { return myReader.skip(n); } public boolean ready() throws IOException { return myReader.ready(); } public boolean markSupported() { return myReader.markSupported(); } public void mark(int readAheadLimit) throws IOException { myReader.mark(readAheadLimit); } public void reset() throws IOException { myReader.reset(); } }; // Create a special Writer that wraps the main Writer and logs data to the GUI. Writer debugWriter = new Writer() { Writer myWriter = writer; public void write(char cbuf[], int off, int len) throws IOException { myWriter.write(cbuf, off, len); String str = new String(cbuf, off, len); sentText.append(str); if (str.endsWith(">")) { sentText.append(NEWLINE); } } public void flush() throws IOException { myWriter.flush(); } public void close() throws IOException { myWriter.close(); } public void write(int c) throws IOException { myWriter.write(c); } public void write(char cbuf[]) throws IOException { myWriter.write(cbuf); String str = new String(cbuf); sentText.append(str); if (str.endsWith(">")) { sentText.append(NEWLINE); } } public void write(String str) throws IOException { myWriter.write(str); sentText.append(str); if (str.endsWith(">")) { sentText.append(NEWLINE); } } public void write(String str, int off, int len) throws IOException { myWriter.write(str, off, len); str = str.substring(off, off + len); sentText.append(str); if (str.endsWith(">")) { sentText.append(NEWLINE); } } }; // Assign the reader/writer objects to use the debug versions. The packet reader // and writer will use the debug versions when they are created. reader = debugReader; writer = debugWriter; } | 47643 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47643/37a3f14d3b1293770f4fcb7643a31241c2b15ef7/EnhancedDebugger.java/clean/source/org/jivesoftware/smackx/debugger/EnhancedDebugger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
8252,
5537,
87,
1435,
288,
3639,
24048,
777,
8485,
273,
394,
24048,
5621,
3639,
777,
8485,
18,
542,
3744,
12,
2704,
7145,
3744,
12,
22,
16,
404,
10019,
3639,
3246,
2992,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
8252,
5537,
87,
1435,
288,
3639,
24048,
777,
8485,
273,
394,
24048,
5621,
3639,
777,
8485,
18,
542,
3744,
12,
2704,
7145,
3744,
12,
22,
16,
404,
10019,
3639,
3246,
2992,
... |
dataBlockStatus[i].setData(buckets[i]); } for(int i=0;i<checkBlockStatus.length;i++) { checkBlockStatus[i].setData(buckets[i+k]); | Bucket data = buckets[i]; if(data.size() != blockLength) throw new IllegalStateException("Block "+i+": "+data+" : "+dataBlockStatus[i]+" length "+data.size()); dataBlockStatus[i].setData(data); | public void realDecode(SplitfileBlock[] dataBlockStatus, SplitfileBlock[] checkBlockStatus, int blockLength, BucketFactory bf) throws IOException { Logger.minor(this, "Doing decode: "+dataBlockStatus.length+" data blocks, "+checkBlockStatus.length+" check blocks, block length "+blockLength+" with "+this); if(dataBlockStatus.length + checkBlockStatus.length != n) throw new IllegalArgumentException(); if(dataBlockStatus.length != k) throw new IllegalArgumentException(); Buffer[] packets = new Buffer[k]; Bucket[] buckets = new Bucket[n]; DataInputStream[] readers = new DataInputStream[k]; OutputStream[] writers = new OutputStream[k]; int[] toDecode = new int[n-k]; int numberToDecode = 0; // can be less than n-k byte[] realBuffer = new byte[n * STRIPE_SIZE]; for(int i=0;i<n;i++) packets[i] = new Buffer(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE); for(int i=0;i<dataBlockStatus.length;i++) { buckets[i] = dataBlockStatus[i].getData(); long sz = buckets[i].size(); if(sz < blockLength) { if(i != dataBlockStatus.length-1) throw new IllegalArgumentException("All buckets except the last must be the full size"); if(sz < blockLength) buckets[i] = pad(buckets[i], blockLength, bf, (int) sz); else throw new IllegalArgumentException("Too big: "+sz+" bigger than "+blockLength); } if(buckets[i] == null) { buckets[i] = bf.makeBucket(blockLength); writers[i] = buckets[i].getOutputStream(); readers[i] = null; toDecode[numberToDecode++] = i; } else { writers[i] = null; readers[i] = new DataInputStream(buckets[i].getInputStream()); } } for(int i=0;i<checkBlockStatus.length;i++) { buckets[i+k] = checkBlockStatus[i].getData(); if(buckets[i+k] == null) { buckets[i+k] = bf.makeBucket(blockLength); writers[i+k] = buckets[i+k].getOutputStream(); readers[i+k] = null; toDecode[numberToDecode++] = i+k; } else { writers[i+k] = null; readers[i+k] = new DataInputStream(buckets[i+k].getInputStream()); } } if(numberToDecode != toDecode.length) { int[] newToDecode = new int[numberToDecode]; System.arraycopy(toDecode, 0, newToDecode, 0, numberToDecode); toDecode = newToDecode; } if(numberToDecode > 0) { // Do the (striped) decode for(int offset=0;offset<blockLength;offset+=STRIPE_SIZE) { // Read the data in first for(int i=0;i<n;i++) { if(readers[i] != null) { readers[i].readFully(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE); } } // Do the decode // Not shuffled code.decode(packets, toDecode); // packets now contains an array of decoded blocks, in order // Write the data out for(int i=0;i<n;i++) { if(writers[i] != null) writers[i].write(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE); } } } for(int i=0;i<n;i++) { if(writers[i] != null) writers[i].close(); if(readers[i] != null) readers[i].close(); } // Set new buckets only after have a successful decode. // Note that the last data bucket will be overwritten padded. for(int i=0;i<dataBlockStatus.length;i++) { dataBlockStatus[i].setData(buckets[i]); } for(int i=0;i<checkBlockStatus.length;i++) { checkBlockStatus[i].setData(buckets[i+k]); } } | 50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/923f3296489fa89e5c0d76399b6de451cd594133/StandardOnionFECCodec.java/buggy/src/freenet/client/StandardOnionFECCodec.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2863,
6615,
12,
5521,
768,
1768,
8526,
501,
1768,
1482,
16,
5385,
768,
1768,
8526,
866,
1768,
1482,
16,
509,
25367,
16,
7408,
1733,
16222,
13,
1216,
1860,
288,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2863,
6615,
12,
5521,
768,
1768,
8526,
501,
1768,
1482,
16,
5385,
768,
1768,
8526,
866,
1768,
1482,
16,
509,
25367,
16,
7408,
1733,
16222,
13,
1216,
1860,
288,
202,
202,
... |
if(downwards){ for (int k=0;k<numStates;k++) for (int l=0;l<numStates;l++){ prob += ProbsD[k][l]*transitionProbability(i,k,j,l,tree,d); } } else { for (int k=0;k<numStates;k++) for (int l=0;l<numStates;l++) prob += transitionProbability(k,i,l,j,tree,d)*ProbsD[i][j]; } | for (int k=0;k<numStates;k++) for (int l=0;l<numStates;l++){ prob += ProbsD[k][l]*transitionProbability(i,k,j,l,tree,d); } | private double probFromSection(Tree tree, int d, int i, int j, double[][] ProbsD, boolean downwards){ double prob=0; if(downwards){ for (int k=0;k<numStates;k++) for (int l=0;l<numStates;l++){ prob += ProbsD[k][l]*transitionProbability(i,k,j,l,tree,d); } } else { for (int k=0;k<numStates;k++) for (int l=0;l<numStates;l++) prob += transitionProbability(k,i,l,j,tree,d)*ProbsD[i][j]; } return prob; } | 57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/1544ec88de640940fd8fead2d2e67133b4e37191/PagelMatrixModel.java/clean/trunk/Mesquite Project/Source/mesquite/correl/lib/PagelMatrixModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1645,
3137,
1265,
5285,
12,
2471,
2151,
16,
509,
302,
16,
509,
277,
16,
509,
525,
16,
1645,
63,
6362,
65,
1186,
2038,
40,
16,
1250,
2588,
6397,
15329,
202,
202,
9056,
3137,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1645,
3137,
1265,
5285,
12,
2471,
2151,
16,
509,
302,
16,
509,
277,
16,
509,
525,
16,
1645,
63,
6362,
65,
1186,
2038,
40,
16,
1250,
2588,
6397,
15329,
202,
202,
9056,
3137,
... |
public void visitType(Type x) { | public void visitType(/*@ non_null */ Type x) { | public void visitType(Type x) { visitASTNode(x); } | 46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/95ace042c64a5f2e296b44bf47b1d9b53b361217/RShiftVisitor.java/clean/src/escjava/trunk/ESCTools/Javafe/java/javafe/ast/RShiftVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3757,
559,
12,
20308,
36,
1661,
67,
2011,
1195,
1412,
619,
13,
288,
565,
3757,
9053,
907,
12,
92,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3757,
559,
12,
20308,
36,
1661,
67,
2011,
1195,
1412,
619,
13,
288,
565,
3757,
9053,
907,
12,
92,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Session session = (Session)getSession(); | public void checkType(StackFrame frame, String type) throws CDIException { if (type != null && type.length() > 0) { Session session = (Session)getSession(); Target target = (Target)frame.getTarget(); Thread currentThread = (Thread)target.getCurrentThread(); StackFrame currentFrame = currentThread.getCurrentStackFrame(); target.setCurrentThread(frame.getThread(), false); ((Thread)frame.getThread()).setCurrentStackFrame(frame, false); try { MISession miSession = target.getMISession(); CommandFactory factory = miSession.getCommandFactory(); MIPType ptype = factory.createMIPType(type); miSession.postCommand(ptype); MIPTypeInfo info = ptype.getMIPtypeInfo(); if (info == null) { throw new CDIException(CdiResources.getString("cdi.Common.No_answer")); //$NON-NLS-1$ } } catch (MIException e) { throw new MI2CDIException(e); } finally { target.setCurrentThread(currentThread, false); currentThread.setCurrentStackFrame(currentFrame, false); } } else { throw new CDIException(CdiResources.getString("cdi.VariableManager.Unknown_type")); //$NON-NLS-1$ } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/cf5df1e48f5b77c48089345334b7da81d9b28061/VariableManager.java/buggy/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/VariableManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
23008,
12,
2624,
3219,
2623,
16,
514,
618,
13,
1216,
385,
2565,
503,
288,
202,
202,
430,
261,
723,
480,
446,
597,
618,
18,
2469,
1435,
405,
374,
13,
288,
1082,
202,
215... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
23008,
12,
2624,
3219,
2623,
16,
514,
618,
13,
1216,
385,
2565,
503,
288,
202,
202,
430,
261,
723,
480,
446,
597,
618,
18,
2469,
1435,
405,
374,
13,
288,
1082,
202,
215... | |
scheduledStartHour = MylarTaskListPlugin.getMylarCorePrefs().getInt( | scheduledStartHour = MylarTaskListPlugin.getDefault().getPreferenceStore().getInt( | public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(TaskListPreferenceConstants.PLANNING_STARTHOUR) || event.getProperty().equals(TaskListPreferenceConstants.PLANNING_ENDHOUR)) { // event.getProperty().equals(TaskListPreferenceConstants.PLANNING_STARTDAY) scheduledStartHour = MylarTaskListPlugin.getMylarCorePrefs().getInt( TaskListPreferenceConstants.PLANNING_STARTHOUR); scheduledEndHour = MylarTaskListPlugin.getMylarCorePrefs().getInt( TaskListPreferenceConstants.PLANNING_ENDHOUR); } } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/42ccf4da9457897d8441802439e71116889b11bd/TaskListManager.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/provisional/tasklist/TaskListManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1272,
3043,
12,
1396,
20930,
871,
13,
288,
202,
202,
430,
261,
2575,
18,
588,
1396,
7675,
14963,
12,
2174,
682,
9624,
2918,
18,
6253,
11489,
1360,
67,
20943,
2455,
51,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1272,
3043,
12,
1396,
20930,
871,
13,
288,
202,
202,
430,
261,
2575,
18,
588,
1396,
7675,
14963,
12,
2174,
682,
9624,
2918,
18,
6253,
11489,
1360,
67,
20943,
2455,
51,
10... |
out.write((String)bodyResponse); | out.write(bodyResponse.toString()); | public Object call(Object[] args) { if(body1 != null) { Object bodyResponse = body1.call(); if(bodyResponse instanceof String) { try { out.write((String)bodyResponse); } catch (IOException e) { throw new GrailsTagException("I/O error invoking tag library closure ["+methodName+"] as method"); } } } return null; } | 52953 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52953/03eb7c0b6e4194b14465191a5045e08915a4af07/GroovyPage.java/clean/src/web/org/codehaus/groovy/grails/web/pages/GroovyPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
1033,
745,
12,
921,
8526,
833,
13,
288,
10792,
309,
12,
3432,
21,
480,
446,
13,
288,
13491,
1033,
1417,
1064,
273,
1417,
21,
18,
1991,
5621,
13491,
309,
12,
3432,
1064,
1276,
514... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
1033,
745,
12,
921,
8526,
833,
13,
288,
10792,
309,
12,
3432,
21,
480,
446,
13,
288,
13491,
1033,
1417,
1064,
273,
1417,
21,
18,
1991,
5621,
13491,
309,
12,
3432,
1064,
1276,
514... |
for (Iterator it = table.getColumns().iterator(); it.hasNext();) { recurseFONode( (FONode) it.next() ); | if (table.getColumns() != null) { for (Iterator it = table.getColumns().iterator(); it.hasNext();) { recurseFONode( (FONode) it.next() ); } } else { log.warn("No table-columns found on table. RTF output requires that all" + " table-columns for a table are defined. Output will be incorrect."); | private void recurseFONode(FONode foNode) { invokeDeferredEvent(foNode, true); if (foNode instanceof PageSequence) { PageSequence pageSequence = (PageSequence) foNode; Region regionBefore = pagemaster.getRegion(Constants.FO_REGION_BEFORE); if (regionBefore != null) { FONode staticBefore = (FONode) pageSequence.getFlowMap().get( regionBefore.getRegionName()); if (staticBefore != null) { recurseFONode(staticBefore); } } Region regionAfter = pagemaster.getRegion(Constants.FO_REGION_AFTER); if (regionAfter != null) { FONode staticAfter = (FONode) pageSequence.getFlowMap().get( regionAfter.getRegionName()); if (staticAfter != null) { recurseFONode(staticAfter); } } recurseFONode( pageSequence.getMainFlow() ); } else if (foNode instanceof Table) { Table table = (Table) foNode; //recurse all table-columns for (Iterator it = table.getColumns().iterator(); it.hasNext();) { recurseFONode( (FONode) it.next() ); } //recurse table-header if (table.getTableHeader() != null) { recurseFONode( table.getTableHeader() ); } //recurse table-footer if (table.getTableFooter() != null) { recurseFONode( table.getTableFooter() ); } if (foNode.getChildNodes() != null) { for (Iterator it = foNode.getChildNodes(); it.hasNext();) { recurseFONode( (FONode) it.next() ); } } } else if (foNode instanceof ListItem) { ListItem item = (ListItem) foNode; recurseFONode(item.getLabel()); recurseFONode(item.getBody()); } else if (foNode instanceof Footnote) { Footnote fn = (Footnote)foNode; recurseFONode(fn.getFootnoteCitation()); recurseFONode(fn.getFootnoteBody()); } else { //Any other FO-Object: Simply recurse through all childNodes. if (foNode.getChildNodes() != null) { for (Iterator it = foNode.getChildNodes(); it.hasNext();) { FONode fn = (FONode)it.next(); if (log.isTraceEnabled()) { log.trace(" ChildNode for " + fn + " (" + fn.getName() + ")"); } recurseFONode(fn); } } } invokeDeferredEvent(foNode, false); } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/760178986bbe20b9b78ed3bd8957dcd22d6f25f5/RTFHandler.java/clean/src/java/org/apache/fop/render/rtf/RTFHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
11502,
42,
673,
390,
12,
42,
673,
390,
18261,
907,
13,
288,
3639,
4356,
16886,
1133,
12,
617,
907,
16,
638,
1769,
3639,
309,
261,
617,
907,
1276,
3460,
4021,
13,
288,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
11502,
42,
673,
390,
12,
42,
673,
390,
18261,
907,
13,
288,
3639,
4356,
16886,
1133,
12,
617,
907,
16,
638,
1769,
3639,
309,
261,
617,
907,
1276,
3460,
4021,
13,
288,
5411,
... |
runInterpreter(args[i], "command line " + i); | runInterpreter(args[i], "command line " + i, new String[0]); | public static void main (String args[]) { System.out.println(); System.out.println("----------------------------------------------------"); System.out.println("--- WARNING this is an ALPHA version of JRuby!!! ---"); System.out.println("----------------------------------------------------"); System.out.println(); // Benchmark long now = -1; if (args.length == 0) { printUsage(); } else { int lenArg = args.length; for (int i = 0; i < lenArg; i++) { if (args[i].equals("-h") || args[i].equals("-help")) { printUsage(); } else if (args[i].equals("-e")) { if (i++ >= lenArg) { System.err.println("invalid argument " + i); System.err.println(" -e must be followed by an expression to evaluate"); printUsage(); } else { runInterpreter(args[i], "command line " + i); } } else if (args[i].equals("-b")) { // Benchmark now = System.currentTimeMillis(); } else { runInterpreterOnFile(args[i]); } } } // Benchmark if (now != -1) { System.out.println("Runtime: " + (System.currentTimeMillis() - now) + " ms"); } } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/cf644c556d410c47305ebeba5728efa25f7756dc/Main.java/buggy/org/jruby/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
261,
780,
833,
63,
5717,
288,
3639,
2332,
18,
659,
18,
8222,
5621,
3639,
2332,
18,
659,
18,
8222,
2932,
9634,
553,
8863,
3639,
2332,
18,
659,
18,
8222,
2932,
6062,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
261,
780,
833,
63,
5717,
288,
3639,
2332,
18,
659,
18,
8222,
5621,
3639,
2332,
18,
659,
18,
8222,
2932,
9634,
553,
8863,
3639,
2332,
18,
659,
18,
8222,
2932,
6062,... |
public void actionPerformed (ActionEvent e) { try { if (documentationWindow==null) documentationWindow = new DocumentationWindow (); documentationWindow.show (); } catch (Exception ex) {ErrorMsg.reportError ("Error", "Unable to show Documentation)",ex);}; | public void actionPerformed(ActionEvent e) { try { if (documentationWindow == null) documentationWindow = new DocumentationWindow(); documentationWindow.show(); } catch (Exception ex) { ErrorMsg.reportError("Error", "Unable to show Documentation)", ex); } | public void actionPerformed (ActionEvent e) { try { if (documentationWindow==null) documentationWindow = new DocumentationWindow (); documentationWindow.show (); } catch (Exception ex) {ErrorMsg.reportError ("Error", "Unable to show Documentation)",ex);}; } | 7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/e7311a9aa2ac478953975abaa1c0c14e8201c062/PatchEdit.java/clean/JSynthLib/core/PatchEdit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
26100,
261,
1803,
1133,
425,
13,
3639,
288,
202,
565,
775,
5411,
288,
7734,
309,
261,
26941,
3829,
631,
2011,
13,
7323,
3829,
273,
394,
20495,
3829,
261,
1769,
7734,
7323,
3829... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
26100,
261,
1803,
1133,
425,
13,
3639,
288,
202,
565,
775,
5411,
288,
7734,
309,
261,
26941,
3829,
631,
2011,
13,
7323,
3829,
273,
394,
20495,
3829,
261,
1769,
7734,
7323,
3829... |
public void setMethodVisibility(IRubyObject[] methods, int noex) { | public void setMethodVisibility(IRubyObject[] methods, Visibility noex) { | public void setMethodVisibility(IRubyObject[] methods, int noex) { if (getRuntime().getSafeLevel() >= 4 && !isTaint()) { throw new RubySecurityException(getRuntime(), "Insecure: can't change method visibility"); } for (int i = 0; i < methods.length; i++) { exportMethod(methods[i].toId(), noex); } } | 47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/f05423516c2d1bfe54c4363eedb9654f7cfb6898/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19539,
10135,
12,
7937,
10340,
921,
8526,
2590,
16,
27791,
1158,
338,
13,
288,
3639,
309,
261,
588,
5576,
7675,
588,
9890,
2355,
1435,
1545,
1059,
597,
401,
291,
29048,
10756,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19539,
10135,
12,
7937,
10340,
921,
8526,
2590,
16,
27791,
1158,
338,
13,
288,
3639,
309,
261,
588,
5576,
7675,
588,
9890,
2355,
1435,
1545,
1059,
597,
401,
291,
29048,
10756,
... |
TasksUiPlugin.getRepositoryManager().removeRepository(repository, TasksUiPlugin.getDefault().getRepositoriesFilePath()); | TasksUiPlugin.getRepositoryManager().removeRepository(repository, TasksUiPlugin.getDefault().getRepositoriesFilePath()); | protected void tearDown() throws Exception { super.tearDown(); manager.resetTaskList(); TasksUiPlugin.getDefault().getTaskListSaveManager().saveTaskList(true); TasksUiPlugin.getRepositoryManager().removeRepository(repository, TasksUiPlugin.getDefault().getRepositoriesFilePath()); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/1cb1052c30bc9f194fe0dca523c92f432185be83/TaskListManagerTest.java/clean/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListManagerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
268,
2091,
4164,
1435,
1216,
1185,
288,
202,
202,
9565,
18,
736,
297,
4164,
5621,
202,
202,
4181,
18,
6208,
2174,
682,
5621,
202,
202,
6685,
13943,
3773,
18,
588,
1868,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
268,
2091,
4164,
1435,
1216,
1185,
288,
202,
202,
9565,
18,
736,
297,
4164,
5621,
202,
202,
4181,
18,
6208,
2174,
682,
5621,
202,
202,
6685,
13943,
3773,
18,
588,
1868,
... |
addParameter("href", sb.toString()); | protected void evaluateExtraParams() { super.evaluateExtraParams(); //Fix for wwportlet Support -- Added by Henry Hu if (href != null) { String hrefValue = findString(href); String contextPath = request.getContextPath(); StringBuffer sb = new StringBuffer(); String actionUrl = PortletContext.getContext().getActionURL(); if (!TextUtils.stringSet(actionUrl)) { if (hrefValue.startsWith("/") && hrefValue.startsWith(contextPath)) { contextPath = ""; } sb.append(contextPath).append(hrefValue); } else { String actionExtension = (String) Configuration.get("webwork.action.extension"); if (actionExtension == null || "".equals(actionExtension)) { actionExtension = ".action"; } else { actionExtension = "." + actionExtension; } boolean isWebWorkAction = hrefValue.indexOf(actionExtension) >= 0; if (isWebWorkAction) { sb.append(actionUrl).append("?wwXAction=.").append(hrefValue); } else { sb.append(actionUrl).append("?wwLink=").append(hrefValue); } } addParameter("href", sb.toString()); } if (showErrorTransportText != null) { addParameter("showErrorTransportText", findValue(showErrorTransportText, Boolean.class)); } if (errorText != null) { addParameter("errorText", findString(errorText)); } if (notifyTopics != null) { addParameter("notifyTopics", findString(notifyTopics)); } if (afterLoading != null) { addParameter("afterLoading", findString(afterLoading)); } } | 22725 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22725/96799ae5f10383875012683abf8410015d204a27/Href.java/buggy/src/java/com/opensymphony/webwork/components/Href.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
5956,
7800,
1370,
1435,
288,
3639,
2240,
18,
21024,
7800,
1370,
5621,
3639,
368,
8585,
364,
28208,
655,
1810,
13619,
1493,
25808,
635,
670,
275,
1176,
670,
89,
3639,
309,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
5956,
7800,
1370,
1435,
288,
3639,
2240,
18,
21024,
7800,
1370,
5621,
3639,
368,
8585,
364,
28208,
655,
1810,
13619,
1493,
25808,
635,
670,
275,
1176,
670,
89,
3639,
309,
261,
... | |
connector, null, UMOEndpoint.ENDPOINT_TYPE_RECEIVER, null); | connector, null, UMOEndpoint.ENDPOINT_TYPE_RECEIVER, 0, null); | public UMOComponent initialiseComponent(byte txBeginAction, EventCallback callback) throws Exception { UMODescriptor descriptor = new MuleDescriptor(); descriptor.setExceptionListener(new DefaultExceptionStrategy()); descriptor.setName("testComponent"); descriptor.setImplementation(JdbcFunctionalTestComponent.class.getName()); UMOEndpoint endpoint = new MuleEndpoint("testIn", getInDest(), connector, null, UMOEndpoint.ENDPOINT_TYPE_RECEIVER, null); UMOTransactionFactory tf = getTransactionFactory(); UMOTransactionConfig txConfig = new MuleTransactionConfig(); txConfig.setFactory(tf); txConfig.setAction(txBeginAction); UMOEndpoint outProvider = new MuleEndpoint("testOut", getOutDest(), connector, null, UMOEndpoint.ENDPOINT_TYPE_SENDER, null); endpoint.setTransactionConfig(txConfig); descriptor.setOutboundEndpoint(outProvider); descriptor.setInboundEndpoint(endpoint); HashMap props = new HashMap(); props.put("eventCallback", callback); descriptor.setProperties(props); UMOComponent component = MuleManager.getInstance().getModel().registerComponent(descriptor); return component; } | 2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/44e8c7553df229e9bda0006786b4987b8419dcd3/AbstractJdbcTransactionalFunctionalTestCase.java/buggy/tests/integration/src/test/java/org/mule/test/integration/providers/jdbc/AbstractJdbcTransactionalFunctionalTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
587,
5980,
1841,
21301,
1841,
12,
7229,
2229,
8149,
1803,
16,
2587,
2428,
1348,
13,
1082,
202,
15069,
1185,
288,
3639,
587,
6720,
2263,
4950,
273,
394,
490,
725,
3187,
5621,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
587,
5980,
1841,
21301,
1841,
12,
7229,
2229,
8149,
1803,
16,
2587,
2428,
1348,
13,
1082,
202,
15069,
1185,
288,
3639,
587,
6720,
2263,
4950,
273,
394,
490,
725,
3187,
5621,
363... |
public synchronized Reminder getTransaction() | public Reminder getTransaction() | public synchronized Reminder getTransaction() { return Reminder.getReminderForID(reminderID); } | 11042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11042/42f15ce06e127523723133285c793cb25214f02b/ReminderTransfer.java/buggy/trunk/JPAS/src/org/jpas/model/ReminderTransfer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2663,
14055,
15674,
1435,
565,
288,
3639,
327,
2663,
14055,
18,
588,
1933,
14055,
1290,
734,
12,
2764,
14055,
734,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2663,
14055,
15674,
1435,
565,
288,
3639,
327,
2663,
14055,
18,
588,
1933,
14055,
1290,
734,
12,
2764,
14055,
734,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
namespaceSupport.popContext(); | namespaceSupport.endElement(); | public void readImpl(PipelineContext context, ContentHandler contentHandler) { // Read config input final Config config = (Config) readCacheInputAsObject(context, getInputByName(INPUT_CONFIG), new CacheableInputReader() { public Object read(org.orbeon.oxf.pipeline.api.PipelineContext context, ProcessorInput input) { Config result = new Config(); Element configElement = readInputAsDOM4J(context, input).getRootElement(); { Element matchURIElement = configElement.element("match").element("uri"); result.matchURI = (matchURIElement == null) ? null : matchURIElement.getStringValue(); Element matchPrefixElement = configElement.element("match").element("prefix"); result.matchPrefix = (matchPrefixElement == null) ? null : matchPrefixElement.getStringValue(); } { Element replaceURIElement = configElement.element("replace").element("uri"); result.replaceURI = (replaceURIElement == null) ? null : replaceURIElement.getStringValue(); Element replacePrefixElement = configElement.element("replace").element("prefix"); result.replacePrefix = (replacePrefixElement == null) ? null : replacePrefixElement.getStringValue(); } return result; } }); // Do the conversion readInputAsSAX(context, INPUT_DATA, new ForwardingContentHandler(contentHandler) { private NamespaceSupport2 namespaceSupport = new NamespaceSupport2(); public void startElement(String uri, String localname, String qName, Attributes attributes) throws SAXException { namespaceSupport.pushContext(); if (config.matchURI == null || config.matchURI.equals(uri)) { int colonIndex = qName.indexOf(':'); String prefix = (colonIndex == -1) ? "" : qName.substring(0, colonIndex); if (config.matchPrefix == null || config.matchPrefix.equals(prefix)) { // Match: replace prefix or URI or both String newURI = (config.replaceURI == null) ? uri : config.replaceURI; String newQName; if (config.replacePrefix == null) { newQName = qName; } else if (colonIndex == -1) { newQName = config.replacePrefix + ":" + qName; } else { newQName = config.replacePrefix + qName.substring(colonIndex); } checkNamespace(uri, newURI, prefix, (config.replacePrefix == null) ? prefix : config.replacePrefix, true); super.startElement(newURI, localname, newQName, attributes); } else { // No match super.startElement(uri, localname, qName, attributes); } } else { // No match super.startElement(uri, localname, qName, attributes); } } public void endElement(String uri, String localname, String qName) throws SAXException { if (config.matchURI == null || config.matchURI.equals(uri)) { int colonIndex = qName.indexOf(':'); String prefix = (colonIndex == -1) ? "" : qName.substring(0, colonIndex); if (config.matchPrefix == null || config.matchPrefix.equals(prefix)) { // Match: replace prefix or URI or both String newURI = (config.replaceURI == null) ? uri : config.replaceURI; String newQName; if (config.replacePrefix == null) { newQName = qName; } else if (colonIndex == -1) { newQName = config.replacePrefix + ":" + qName; } else { newQName = config.replacePrefix + qName.substring(colonIndex); } super.endElement(newURI, localname, newQName); checkNamespace(uri, newURI, prefix, (config.replacePrefix == null) ? prefix : config.replacePrefix, false); } else { // No match super.endElement(uri, localname, qName); } } else { // No match super.endElement(uri, localname, qName); } namespaceSupport.popContext(); } public void startPrefixMapping(String prefix, String uri) throws SAXException { namespaceSupport.declarePrefix(prefix, uri); super.startPrefixMapping(prefix, uri); } public void endPrefixMapping(String prefix) throws SAXException { super.endPrefixMapping(prefix); } private void checkNamespace(String matchURI, String newURI, String matchPrefix, String newPrefix, boolean start) throws SAXException { if (matchURI.equals(newURI) && !matchPrefix.equals(newPrefix)) { // Changing prefixes but keeping URI if (!isURIInScopeForPrefix(newPrefix, newURI)) { // new prefix -> URI not in scope if (start) { super.startPrefixMapping(newPrefix, newURI); if (namespaceSupport.getURI(newPrefix) == null) namespaceSupport.declarePrefix(newPrefix, newURI); } else { super.endPrefixMapping(newPrefix); } } } } private boolean isURIInScopeForPrefix(String prefix, String uri) { String inScopeURIForPrefix = namespaceSupport.getURI(prefix); return (inScopeURIForPrefix != null) && inScopeURIForPrefix.equals(uri); } }); } | 57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/4815b907b90527af06e12476cfece46be4870d75/QNameConverter.java/buggy/src/java/org/orbeon/oxf/processor/converter/QNameConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
855,
2828,
12,
8798,
1042,
819,
16,
3697,
1503,
913,
1503,
13,
288,
7734,
368,
2720,
642,
810,
7734,
727,
1903,
642,
273,
261,
809,
13,
855,
1649,
1210,
1463,
921,
12,
2472,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
855,
2828,
12,
8798,
1042,
819,
16,
3697,
1503,
913,
1503,
13,
288,
7734,
368,
2720,
642,
810,
7734,
727,
1903,
642,
273,
261,
809,
13,
855,
1649,
1210,
1463,
921,
12,
2472,... |
String[] strings = NutchConf.get().getStrings("plugin.folders"); | String[] strings = nutchConf.getStrings("plugin.folders"); | private String getPluginFolder() { String[] strings = NutchConf.get().getStrings("plugin.folders"); if (strings == null || strings.length == 0) fail("no plugin directory setuped.."); String name = strings[0]; return PluginManifestParser.getPluginFolder(name).toString(); } | 57484 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57484/329ff64e9d7295aff108f85e9a8103f5e5f8f398/TestPluginSystem.java/buggy/src/test/org/apache/nutch/plugin/TestPluginSystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
16319,
3899,
1435,
288,
3639,
514,
8526,
2064,
273,
290,
322,
343,
3976,
18,
588,
7957,
2932,
4094,
18,
16064,
8863,
3639,
309,
261,
10219,
422,
446,
747,
2064,
18,
2469,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
16319,
3899,
1435,
288,
3639,
514,
8526,
2064,
273,
290,
322,
343,
3976,
18,
588,
7957,
2932,
4094,
18,
16064,
8863,
3639,
309,
261,
10219,
422,
446,
747,
2064,
18,
2469,
422,
... |
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run() { // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Signature.SHA1withDSA", gnu.java.security.provider.DSASignature.class.getName()); put("Alg.Alias.Signature.DSS", "SHA1withDSA"); put("Alg.Alias.Signature.DSA", "SHA1withDSA"); put("Alg.Alias.Signature.SHAwithDSA", "SHA1withDSA"); put("Alg.Alias.Signature.DSAwithSHA", "SHA1withDSA"); put("Alg.Alias.Signature.DSAwithSHA1", "SHA1withDSA"); put("Alg.Alias.Signature.SHA/DSA", "SHA1withDSA"); put("Alg.Alias.Signature.SHA-1/DSA", "SHA1withDSA"); put("Alg.Alias.Signature.SHA1/DSA", "SHA1withDSA"); put("Alg.Alias.Signature.OID.1.2.840.10040.4.3", "SHA1withDSA"); put("Alg.Alias.Signature.1.2.840.10040.4.3", "SHA1withDSA"); put("Alg.Alias.Signature.1.3.14.3.2.13", "SHA1withDSA"); put("Alg.Alias.Signature.1.3.14.3.2.27", "SHA1withDSA"); put("Signature.MD2withRSA", MD2withRSA.class.getName()); put("Signature.MD2withRSA ImplementedIn", "Software"); put("Alg.Alias.Signature.md2WithRSAEncryption", "MD2withRSA"); put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.2", "MD2withRSA"); put("Alg.Alias.Signature.1.2.840.113549.1.1.2", "MD2withRSA"); put("Signature.MD4withRSA", MD4withRSA.class.getName()); put("Signature.MD4withRSA ImplementedIn", "Software"); put("Alg.Alias.Signature.md4WithRSAEncryption", "MD4withRSA"); put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.3", "MD4withRSA"); put("Alg.Alias.Signature.1.2.840.113549.1.1.3", "MD4withRSA"); put("Signature.MD5withRSA", MD5withRSA.class.getName()); put("Signature.MD5withRSA ImplementedIn", "Software"); put("Alg.Alias.Signature.md5WithRSAEncryption", "MD5withRSA"); put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.4", "MD5withRSA"); put("Alg.Alias.Signature.1.2.840.113549.1.1.4", "MD5withRSA"); put("Signature.SHA1withRSA", SHA1withRSA.class.getName()); put("Signature.SHA1withRSA ImplementedIn", "Software"); put("Alg.Alias.Signature.sha-1WithRSAEncryption", "SHA1withRSA"); put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.5", "SHA1withRSA"); put("Alg.Alias.Signature.1.2.840.113549.1.1.5", "SHA1withRSA"); // Key Pair Generator put("KeyPairGenerator.DSA", gnu.java.security.provider.DSAKeyPairGenerator.class.getName()); put("KeyPairGenerator.DiffieHellman", DiffieHellmanKeyPairGeneratorImpl.class.getName ()); put("Alg.Alias.KeyPairGenerator.OID.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyPairGenerator.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyPairGenerator.1.3.14.3.2.12", "DSA"); put("Alg.Alias.KeyPairGenerator.DH", "DiffieHellman"); // Key Factory put("KeyFactory.DSA", gnu.java.security.provider.DSAKeyFactory.class.getName()); put("KeyFactory.Encoded", EncodedKeyFactory.class.getName()); put("KeyFactory.Encoded ImplementedIn", "Software"); put("Alg.Alias.KeyFactory.X.509", "Encoded"); put("Alg.Alias.KeyFactory.X509", "Encoded"); put("Alg.Alias.KeyFactory.PKCS#8", "Encoded"); put("Alg.Alias.KeyFactory.PKCS8", "Encoded"); put("KeyFactory.RSA", RSAKeyFactory.class.getName()); put("Alg.Alias.KeyFactory.OID.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyFactory.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyFactory.1.3.14.3.2.12", "DSA"); put("KeyFactory.DiffieHellman", DiffieHellmanKeyFactoryImpl.class.getName()); put("Alg.Alias.KeyFactory.DH", "DiffieHellman"); // Message Digests put("MessageDigest.SHA", gnu.java.security.provider.SHA.class.getName()); put("MessageDigest.MD5", gnu.java.security.provider.MD5.class.getName()); // Format "Alias", "Actual Name" put("Alg.Alias.MessageDigest.SHA1", "SHA"); put("Alg.Alias.MessageDigest.SHA-1", "SHA"); put("Alg.Alias.MessageDigest.SHA-160", "SHA"); // Algorithm Parameters put("AlgorithmParameters.DSA", gnu.java.security.provider.DSAParameters.class.getName()); put("Alg.Alias.AlgorithmParameters.DSS", "DSA"); put("Alg.Alias.AlgorithmParameters.SHAwithDSA", "DSA"); put("Alg.Alias.AlgorithmParameters.OID.1.2.840.10040.4.3", "DSA"); put("Alg.Alias.AlgorithmParameters.1.2.840.10040.4.3", "DSA"); // Algorithm Parameter Generator put("AlgorithmParameterGenerator.DSA", gnu.java.security.provider.DSAParameterGenerator.class.getName()); // SecureRandom put("SecureRandom.SHA1PRNG", gnu.java.security.provider.SHA1PRNG.class.getName()); // CertificateFactory put("CertificateFactory.X509", X509CertificateFactory.class.getName()); put("CertificateFactory.X509 ImplementedIn", "Software"); put("Alg.Alias.CertificateFactory.X.509", "X509"); // CertPathValidator put("CertPathValidator.PKIX", PKIXCertPathValidatorImpl.class.getName()); put("CertPathValidator.PKIX ImplementedIn", "Software"); // CertStore put("CertStore.Collection", CollectionCertStoreImpl.class.getName()); // KeyAgreement put("KeyAgreement.DiffieHellman", gnu.javax.crypto.DiffieHellmanImpl.class.getName()); put("Alg.Alias.KeyAgreement.DH", "DiffieHellman"); // Cipher put("Cipher.RSAES-PKCS1-v1_5", gnu.javax.crypto.RSACipherImpl.class.getName()); put("Alg.Alias.Cipher.RSA", "RSAES-PKCS1-v1_5"); return null; } }); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/5200aefd16debc5177e0a889124f42ee39f14d8c/Gnu.java/buggy/core/src/classpath/gnu/gnu/java/security/provider/Gnu.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
611,
13053,
1435,
225,
288,
565,
2240,
2932,
8318,
57,
3113,
404,
18,
20,
16,
315,
8318,
57,
2893,
331,
21,
18,
20,
19981,
9777,
17,
21,
16,
10852,
25,
16,
463,
5233,
16,
13470,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
611,
13053,
1435,
225,
288,
565,
2240,
2932,
8318,
57,
3113,
404,
18,
20,
16,
315,
8318,
57,
2893,
331,
21,
18,
20,
19981,
9777,
17,
21,
16,
10852,
25,
16,
463,
5233,
16,
13470,... | ||
case REF_IFCMP_opcode: s.operator = INT_IFCMP; case INT_IFCMP_opcode: IfCmp.setVal1(s, asRegInt(IfCmp.getClearVal1(s), s, ir)); IfCmp.setVal2(s, asImmediateOrRegInt(IfCmp.getClearVal2(s), s, ir)); break; case INT_IFCMP2_opcode: IfCmp2.setVal1(s, asRegInt(IfCmp2.getClearVal1(s), s, ir)); IfCmp2.setVal2(s, asImmediateOrRegInt(IfCmp2.getClearVal2(s), s, ir)); break; case REF_IFCMP_opcode: s.operator = LONG_IFCMP; case LONG_IFCMP_opcode: IfCmp.setVal1(s, asRegLong(IfCmp.getClearVal1(s), s, ir)); IfCmp.setVal2(s, asImmediateOrRegLong(IfCmp.getClearVal2(s), s, ir)); break; case BOOLEAN_CMP_opcode: BooleanCmp.setVal2(s, asImmediateOrRegPolymorphic(BooleanCmp.getClearVal2(s),s,ir)); break; case INT_SUB_opcode: Binary.setVal1(s, asRegInt(Binary.getClearVal1(s), s, ir)); break; case LONG_SUB_opcode: Binary.setVal1(s, asRegLong(Binary.getClearVal1(s), s, ir)); break; case INT_SHL_opcode:case INT_SHR_opcode:case INT_USHR_opcode: | case LONG_NEG_opcode: case INT_NEG_opcode: s.operator = REF_NEG; break; case LONG_NOT_opcode: case INT_NOT_opcode: s.operator = REF_NOT; break; case LONG_AND_opcode: case INT_AND_opcode: s.operator = REF_AND; case REF_AND_opcode: Binary.setVal2(s, asImmediateOrRegPolymorphic(Binary.getClearVal2(s), s, ir, false)); break; case LONG_OR_opcode: case INT_OR_opcode: s.operator = REF_OR; case REF_OR_opcode: Binary.setVal2(s, asImmediateOrRegPolymorphic(Binary.getClearVal2(s), s, ir, false)); break; case LONG_XOR_opcode: case INT_XOR_opcode: s.operator = REF_XOR; case REF_XOR_opcode: Binary.setVal2(s, asImmediateOrRegPolymorphic(Binary.getClearVal2(s), s, ir, false)); break; case REF_SHL_opcode: s.operator = (VM.BuildFor32Addr? INT_SHL : LONG_SHL); case LONG_SHL_opcode: case INT_SHL_opcode: | static void perform(OPT_IR ir) { // This code assumes that INT/LONG constant folding in OPT_Simplifier is enabled. // This greatly reduces the number of cases we have to worry about below. if (!(OPT_Simplifier.CF_INT && OPT_Simplifier.CF_LONG)) { throw new OPT_OptimizingCompilerException("Unexpected config!"); } for (OPT_Instruction s = ir.firstInstructionInCodeOrder(); s != null; s = s.nextInstructionInCodeOrder()) { // STEP ONE: Get 'large' constants into a form that the PPC BURS rules // are prepared to deal with. // Constants can't appear as defs, so only scan the uses. // int numUses = s.getNumberOfUses(); if (numUses > 0) { int numDefs = s.getNumberOfDefs(); for (int idx = numDefs; idx < numUses + numDefs; idx++) { OPT_Operand use = s.getOperand(idx); if (use != null) { if (use instanceof OPT_StringConstantOperand) { OPT_RegisterOperand rop = ir.regpool.makeTemp(VM_TypeReference.JavaLangString); OPT_RegisterOperand jtoc = ir.regpool.makeJTOCOp(ir,s); OPT_StringConstantOperand sc = (OPT_StringConstantOperand)use; int offset = sc.index << LOG_BYTES_IN_INT; if (offset == 0) throw new OPT_OptimizingCompilerException("String constant w/o valid JTOC offset"); OPT_LocationOperand loc = new OPT_LocationOperand(offset); //-#if RVM_FOR_32_ADDR s.insertBefore(Load.create(INT_LOAD, rop, jtoc, asImmediateOrRegInt(IC(offset), s, ir), loc)); //-#endif //-#if RVM_FOR_64_ADDR s.insertBefore(Load.create(LONG_LOAD, rop, jtoc, asImmediateOrRegInt(IC(offset), s, ir), loc)); //-#endif s.putOperand(idx, rop.copyD2U()); } else if (use instanceof OPT_LongConstantOperand) { OPT_RegisterOperand rop = ir.regpool.makeTemp(VM_TypeReference.Long); use.clear(); s.insertBefore(Move.create(LONG_MOVE, rop, use)); s.putOperand(idx, rop.copyD2U()); } else if (use instanceof OPT_DoubleConstantOperand) { OPT_RegisterOperand rop = ir.regpool.makeTemp(VM_TypeReference.Double); OPT_RegisterOperand jtoc = ir.regpool.makeJTOCOp(ir,s); OPT_DoubleConstantOperand dc = (OPT_DoubleConstantOperand)use; int index = dc.index; if (index == 0) { index = VM_Statics.findOrCreateDoubleLiteral(Double.doubleToLongBits(dc.value)); } int offset = index << LOG_BYTES_IN_INT; OPT_LocationOperand loc = new OPT_LocationOperand(offset); s.insertBefore(Load.create(DOUBLE_LOAD, rop, jtoc, asImmediateOrRegInt(IC(offset), s, ir), loc)); s.putOperand(idx, rop.copyD2U()); } else if (use instanceof OPT_FloatConstantOperand) { OPT_RegisterOperand rop = ir.regpool.makeTemp(VM_TypeReference.Float); OPT_RegisterOperand jtoc = ir.regpool.makeJTOCOp(ir,s); OPT_FloatConstantOperand fc = (OPT_FloatConstantOperand)use; int index = fc.index; if (index == 0) { index = VM_Statics.findOrCreateFloatLiteral(Float.floatToIntBits(fc.value)); } int offset = index << LOG_BYTES_IN_INT; OPT_LocationOperand loc = new OPT_LocationOperand(offset); s.insertBefore(Load.create(FLOAT_LOAD, rop, jtoc, asImmediateOrRegInt(IC(offset), s, ir), loc)); s.putOperand(idx, rop.copyD2U()); } else if (use instanceof OPT_NullConstantOperand) { //-#if RVM_FOR_32_ADDR s.putOperand(idx, IC(0)); //-#endif //-#if RVM_FOR_64_ADDR s.putOperand(idx, LC(0L)); //-#endif } else if (use instanceof OPT_AddressConstantOperand) { //-#if RVM_FOR_32_ADDR s.putOperand(idx, IC(((OPT_AddressConstantOperand)use).value.toInt())); //-#endif //-#if RVM_FOR_64_ADDR s.putOperand(idx, LC(((OPT_AddressConstantOperand)use).value.toLong())); //-#endif } } } } // Calling OPT_Simplifier.simplify ensures that the instruction is // in normalized form. This reduces the number of cases we have to // worry about (and does last minute constant folding on the off chance // we've missed an opportunity...) OPT_Simplifier.simplify(s); switch (s.getOpcode()) { ////////// // LOAD/STORE ////////// case REF_STORE_opcode: //-#if RVM_FOR_32_ADDR s.operator = INT_STORE; //-#endif //-#if RVM_FOR_64_ADDR s.operator = LONG_STORE; //-#endif // fallthrough! case BYTE_STORE_opcode:case SHORT_STORE_opcode:case INT_STORE_opcode: case LONG_STORE_opcode: // On PowerPC, the value being stored must be in a register Store.setValue(s, asRegPolymorphic(Store.getClearValue(s), s, ir)); // Supported addressing modes are quite limited. Store.setAddress(s, asRegAddress(Store.getClearAddress(s), s, ir)); Store.setOffset(s, asImmediateOrRegAddress(Store.getClearOffset(s), s, ir)); break; case ATTEMPT_INT_opcode: // On PowerPC, the value being stored must be in a register Attempt.setNewValue(s, asRegInt(Attempt.getClearNewValue(s), s, ir)); Attempt.setOldValue(s, null); // not used on powerpc. // Supported addressing modes are quite limited. Attempt.setAddress(s, asRegAddress(Attempt.getClearAddress(s),s,ir)); Attempt.setOffset(s, asRegInt(Attempt.getClearOffset(s),s,ir)); break; case ATTEMPT_ADDR_opcode: // On PowerPC, the value being stored must be in a register Attempt.setNewValue(s, asRegAddress(Attempt.getClearNewValue(s), s, ir)); Attempt.setOldValue(s, null); // not used on powerpc. // Supported addressing modes are quite limited. Attempt.setAddress(s, asRegAddress(Attempt.getClearAddress(s),s,ir)); Attempt.setOffset(s, asRegInt(Attempt.getClearOffset(s),s,ir)); break; case FLOAT_STORE_opcode:case DOUBLE_STORE_opcode: // Supported addressing modes are quite limited. Store.setAddress(s, asImmediateOrRegAddress(Store.getClearAddress(s), s, ir)); Store.setOffset(s, asImmediateOrRegAddress(Store.getClearOffset(s), s, ir)); break; case REF_LOAD_opcode: //-#if RVM_FOR_32_ADDR s.operator = INT_LOAD; //-#endif //-#if RVM_FOR_64_ADDR s.operator = LONG_LOAD; //-#endif // fallthrough! case BYTE_LOAD_opcode:case UBYTE_LOAD_opcode: case SHORT_LOAD_opcode:case USHORT_LOAD_opcode:case INT_LOAD_opcode: case LONG_LOAD_opcode:case FLOAT_LOAD_opcode:case DOUBLE_LOAD_opcode: // Supported addressing modes are quite limited. Load.setAddress(s, asRegAddress(Load.getClearAddress(s), s, ir)); Load.setOffset(s, asImmediateOrRegAddress(Load.getClearOffset(s), s, ir)); break; case PREPARE_INT_opcode: case PREPARE_ADDR_opcode: // Supported addressing modes are quite limited. Prepare.setAddress(s, asRegAddress(Prepare.getAddress(s), s, ir)); Prepare.setOffset(s, asRegInt(Prepare.getOffset(s), s, ir)); break; case REF_MOVE_opcode: //-#if RVM_FOR_32_ADDR s.operator = INT_MOVE; //-#endif //-#if RVM_FOR_64_ADDR s.operator = LONG_MOVE; //-#endif break; case REF_COND_MOVE_opcode: //-#if RVM_FOR_32_ADDR s.operator = INT_COND_MOVE; //-#endif //-#if RVM_FOR_64_ADDR s.operator = LONG_COND_MOVE; //-#endif break; ////////// // INT ALU OPS ////////// // There are some instructions for which LIR2MIR.rules doesn't // seem to expect constant operands at all. case INT_REM_opcode:case INT_DIV_opcode: GuardedBinary.setVal1(s, asRegInt(GuardedBinary.getClearVal1(s), s, ir)); GuardedBinary.setVal2(s, asRegInt(GuardedBinary.getClearVal2(s), s, ir)); break; //-#if RVM_FOR_64_ADDR case LONG_REM_opcode:case LONG_DIV_opcode: GuardedBinary.setVal1(s, asRegLong(GuardedBinary.getClearVal1(s), s, ir)); GuardedBinary.setVal2(s, asRegLong(GuardedBinary.getClearVal2(s), s, ir)); break; //-#endif //-#if RVM_FOR_32_ADDR case REF_IFCMP_opcode: s.operator = INT_IFCMP; // fallthrough! //-#endif case INT_IFCMP_opcode: // val1 can't be a constant, val2 must be small enough. IfCmp.setVal1(s, asRegInt(IfCmp.getClearVal1(s), s, ir)); IfCmp.setVal2(s, asImmediateOrRegInt(IfCmp.getClearVal2(s), s, ir)); break; case INT_IFCMP2_opcode: // val1 can't be a constant, val2 must be small enough. IfCmp2.setVal1(s, asRegInt(IfCmp2.getClearVal1(s), s, ir)); IfCmp2.setVal2(s, asImmediateOrRegInt(IfCmp2.getClearVal2(s), s, ir)); break; //-#if RVM_FOR_64_ADDR case REF_IFCMP_opcode: s.operator = LONG_IFCMP; // fallthrough! case LONG_IFCMP_opcode: // val1 can't be a constant, val2 must be small enough. IfCmp.setVal1(s, asRegLong(IfCmp.getClearVal1(s), s, ir)); IfCmp.setVal2(s, asImmediateOrRegLong(IfCmp.getClearVal2(s), s, ir)); break; //-#endif case BOOLEAN_CMP_opcode: // val2 must be small enough. BooleanCmp.setVal2(s, asImmediateOrRegPolymorphic(BooleanCmp.getClearVal2(s),s,ir)); break; case INT_SUB_opcode: // val1 can't be a constant Binary.setVal1(s, asRegInt(Binary.getClearVal1(s), s, ir)); // val2 isn't be constant (if it were, OPT_Simplifier would have // converted this into an ADD of -Val2). break; //-#if RVM_FOR_64_ADDR case LONG_SUB_opcode: // val1 can't be a constant Binary.setVal1(s, asRegLong(Binary.getClearVal1(s), s, ir)); // val2 isn't be constant (if it were, OPT_Simplifier would have // converted this into an ADD of -Val2). break; //-#endif case INT_SHL_opcode:case INT_SHR_opcode:case INT_USHR_opcode: // Val2 could be a constant, but Val1 apparently can't be. Binary.setVal1(s, asRegInt(Binary.getClearVal1(s), s, ir)); break; //-#if RVM_FOR_64_ADDR case LONG_SHL_opcode:case LONG_SHR_opcode:case LONG_USHR_opcode: // Val2 could be a constant, but Val1 apparently can't be. Binary.setVal1(s, asRegLong(Binary.getClearVal1(s), s, ir)); break; //-#endif // There are other instructions for which LIR2MIR.rules may not // handle constant operands that won't fit in the immediate field. // TODO: Some of these actually might be ok, but for now we'll expand them all. case INT_ADD_opcode:case INT_MUL_opcode: Binary.setVal2(s, asImmediateOrRegInt(Binary.getVal2(s), s, ir)); break; //-#if RVM_FOR_64_ADDR case LONG_ADD_opcode:case LONG_MUL_opcode: Binary.setVal2(s, asImmediateOrRegLong(Binary.getVal2(s), s, ir)); break; //-#endif case INT_AND_opcode:case INT_OR_opcode:case INT_XOR_opcode: { OPT_Operand val = Binary.getVal2(s); if (val instanceof OPT_IntConstantOperand) { OPT_IntConstantOperand ival = (OPT_IntConstantOperand)val; if ((ival.value < 0) || (ival.value > UNSIGNED_UPPER_IMMEDIATE)) { val.instruction = null; OPT_RegisterOperand rop = ir.regpool.makeTempInt(); s.insertBefore(Move.create(INT_MOVE, rop, val)); Binary.setVal2(s, rop.copyD2U()); } } } break; //-#if RVM_FOR_64_ADDR case LONG_AND_opcode:case LONG_OR_opcode:case LONG_XOR_opcode: { OPT_Operand val = Binary.getVal2(s); if (val instanceof OPT_IntConstantOperand) { OPT_IntConstantOperand ival = (OPT_IntConstantOperand)val; if ((ival.value < 0) || (ival.value > UNSIGNED_UPPER_IMMEDIATE)) { val.instruction = null; OPT_RegisterOperand rop = ir.regpool.makeTempLong(); s.insertBefore(Move.create(LONG_MOVE, rop, val)); Binary.setVal2(s, rop.copyD2U()); } } else if (val instanceof OPT_LongConstantOperand) { OPT_LongConstantOperand lval = (OPT_LongConstantOperand)val; if ((lval.value < 0) || (lval.value > UNSIGNED_UPPER_IMMEDIATE)) { val.instruction = null; OPT_RegisterOperand rop = ir.regpool.makeTempLong(); s.insertBefore(Move.create(LONG_MOVE, rop, val)); Binary.setVal2(s, rop.copyD2U()); } else { //immeadiate --> need IntConstant Binary.setVal2(s, new OPT_IntConstantOperand((int)lval.value)); } } } break; //-#endif // Deal with OPT_Simplifier.CF_FLOAT or OPT_Simplifier.CF_DOUBLE being false case INT_2DOUBLE_opcode:case INT_2FLOAT_opcode: case INT_BITS_AS_FLOAT_opcode: Unary.setVal(s, asRegInt(Unary.getVal(s), s, ir)); break; case NULL_CHECK_opcode: NullCheck.setRef(s, asRegAddress(NullCheck.getClearRef(s), s, ir)); break; // Force all call parameters to be in registers case SYSCALL_opcode: case CALL_opcode: { int numArgs = Call.getNumberOfParams(s); for (int i = 0; i < numArgs; i++) { Call.setParam(s, i, asRegPolymorphic(Call.getClearParam(s, i), s, ir)); } } break; case RETURN_opcode: if (Return.hasVal(s)) { Return.setVal(s, asRegPolymorphic(Return.getClearVal(s), s, ir)); } break; } } } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/7cc93af9d6a5e0b2b46637cb314f477b72c14724/OPT_NormalizeConstants.java/clean/rvm/src/vm/arch/powerPC/compilers/optimizing/ir/conversions/lir2mir/OPT_NormalizeConstants.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
3073,
12,
15620,
67,
7937,
9482,
13,
288,
565,
368,
1220,
981,
13041,
716,
6137,
19,
14639,
5381,
11590,
310,
316,
16456,
67,
24490,
1251,
353,
3696,
18,
565,
368,
1220,
18825,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
3073,
12,
15620,
67,
7937,
9482,
13,
288,
565,
368,
1220,
981,
13041,
716,
6137,
19,
14639,
5381,
11590,
310,
316,
16456,
67,
24490,
1251,
353,
3696,
18,
565,
368,
1220,
18825,
... |
public QueryDescr query() throws RecognitionException { QueryDescr query; Token loc=null; String queryName = null; query = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:322:17: ( opt_eol loc= 'query' queryName= word opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) 'end' opt_eol ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:322:17: opt_eol loc= 'query' queryName= word opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) 'end' opt_eol { following.push(FOLLOW_opt_eol_in_query473); opt_eol(); following.pop(); loc=(Token)input.LT(1); match(input,26,FOLLOW_26_in_query479); following.push(FOLLOW_word_in_query483); queryName=word(); following.pop(); following.push(FOLLOW_opt_eol_in_query485); opt_eol(); following.pop(); query = new QueryDescr( queryName, null ); query.setLocation( loc.getLine(), loc.getCharPositionInLine() ); AndDescr lhs = new AndDescr(); query.setLhs( lhs ); lhs.setLocation( loc.getLine(), loc.getCharPositionInLine() ); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:330:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) int alt15=2; switch ( input.LA(1) ) { case 21: int LA15_1 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("330:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 1, input); throw nvae; } break; case EOL: int LA15_2 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("330:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 2, input); throw nvae; } break; case 27: int LA15_3 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("330:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 3, input); throw nvae; } break; case 53: int LA15_4 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("330:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 4, input); throw nvae; } break; case 54: int LA15_5 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("330:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 5, input); throw nvae; } break; case 55: int LA15_6 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("330:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 6, input); throw nvae; } break; case ID: int LA15_7 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("330:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 7, input); throw nvae; } break; case 15: int LA15_8 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("330:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 8, input); throw nvae; } break; case INT: case BOOL: case STRING: case FLOAT: case MISC: case WS: case SH_STYLE_SINGLE_LINE_COMMENT: case C_STYLE_SINGLE_LINE_COMMENT: case MULTI_LINE_COMMENT: case 16: case 17: case 18: case 19: case 20: case 22: case 23: case 24: case 25: case 26: case 28: case 29: case 30: case 31: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: case 50: case 51: case 52: case 56: alt15=1; break; default: NoViableAltException nvae = new NoViableAltException("330:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 0, input); throw nvae; } switch (alt15) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:331:25: {...}? expander_lhs_block[lhs] { if ( !( expander != null ) ) { throw new FailedPredicateException(input, "query", " expander != null "); } following.push(FOLLOW_expander_lhs_block_in_query501); expander_lhs_block(lhs); following.pop(); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:332:27: normal_lhs_block[lhs] { following.push(FOLLOW_normal_lhs_block_in_query509); normal_lhs_block(lhs); following.pop(); } break; } match(input,27,FOLLOW_27_in_query524); following.push(FOLLOW_opt_eol_in_query526); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return query; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/f57cd683a66080d941264e3f98974908a6a489a0/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2770,
16198,
843,
1435,
1216,
9539,
288,
6647,
2770,
16198,
843,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
514,
843,
461,
273,
446,
31,
1171,
202,
202,
2271,
273,
446,
31,
540,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2770,
16198,
843,
1435,
1216,
9539,
288,
6647,
2770,
16198,
843,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
514,
843,
461,
273,
446,
31,
1171,
202,
202,
2271,
273,
446,
31,
540,
20... | ||
if ( DeferredGraphicalViewer.PROPERTY_MARGIN_VISIBILITY.equals( evt.getPropertyName( ) ) ) | if ( DeferredGraphicalViewer.PROPERTY_MARGIN_VISIBILITY .equals( evt.getPropertyName( ) ) ) | public void propertyChange( PropertyChangeEvent evt ) { if ( DeferredGraphicalViewer.PROPERTY_MARGIN_VISIBILITY.equals( evt.getPropertyName( ) ) ) { showMargin = ( (Boolean) evt.getNewValue( ) ).booleanValue( ); refresh( ); markDirty( true ); } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/24637ecc70d1c09ca29010787e8a3b377b2d6876/ReportDesignEditPart.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/editparts/ReportDesignEditPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1272,
3043,
12,
4276,
20930,
6324,
262,
1082,
202,
95,
9506,
202,
430,
261,
12816,
4137,
1706,
18415,
18,
9900,
67,
19772,
7702,
67,
4136,
30310,
18,
14963,
12,
6324,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1272,
3043,
12,
4276,
20930,
6324,
262,
1082,
202,
95,
9506,
202,
430,
261,
12816,
4137,
1706,
18415,
18,
9900,
67,
19772,
7702,
67,
4136,
30310,
18,
14963,
12,
6324,
18,
... |
substitutionGroupElementDeclIndex = | substitutionGroupElementDeclIndex = | private QName traverseElementDecl(Element elementDecl) throws Exception { int contentSpecType = -1; int contentSpecNodeIndex = -1; int typeNameIndex = -1; int scopeDefined = -2; //signal a error if -2 gets gets through //cause scope can never be -2. DatatypeValidator dv = null; String name = elementDecl.getAttribute(SchemaSymbols.ATT_NAME); if ( DEBUGGING ) System.out.println("traversing element decl : " + name ); String ref = elementDecl.getAttribute(SchemaSymbols.ATT_REF); String type = elementDecl.getAttribute(SchemaSymbols.ATT_TYPE); String minOccurs = elementDecl.getAttribute(SchemaSymbols.ATT_MINOCCURS); String maxOccurs = elementDecl.getAttribute(SchemaSymbols.ATT_MAXOCCURS); String dflt = elementDecl.getAttribute(SchemaSymbols.ATT_DEFAULT); String fixed = elementDecl.getAttribute(SchemaSymbols.ATT_FIXED); if(!(dflt.equals("") || fixed.equals(""))) // REVISIT: localize reportGenericSchemaError("an element cannot have both \"fixed\" and \"default\" present at the same time"); String substitutionGroup = elementDecl.getAttribute(SchemaSymbols.ATT_SUBSTITUTIONGROUP); // form attribute String isQName = elementDecl.getAttribute(SchemaSymbols.ATT_FORM); String fromAnotherSchema = null; if (isTopLevel(elementDecl)) { if(name.equals("")) // REVISIT: localize reportGenericSchemaError("globally-declared element must have a name"); else if (!ref.equals("")) // REVISIT: localize reportGenericSchemaError("globally-declared element " + name + " cannot have a ref attribute"); int nameIndex = fStringPool.addSymbol(name); int eltKey = fSchemaGrammar.getElementDeclIndex(fTargetNSURI, nameIndex,TOP_LEVEL_SCOPE); if (eltKey > -1 ) { return new QName(-1,nameIndex,nameIndex,fTargetNSURI); } } // parse out 'block', 'final', 'nullable', 'abstract' String blockSetStr = null; Attr blockAttr = elementDecl.getAttributeNode( SchemaSymbols.ATT_BLOCK ); if (blockAttr != null) blockSetStr = blockAttr.getValue(); int blockSet = parseBlockSet(blockSetStr); if( (blockSetStr != null) && !blockSetStr.equals("") && (!blockSetStr.equals(SchemaSymbols.ATTVAL_POUNDALL) && (((blockSet & SchemaSymbols.RESTRICTION) == 0) && (((blockSet & SchemaSymbols.EXTENSION) == 0) && ((blockSet & SchemaSymbols.SUBSTITUTION) == 0))))) reportGenericSchemaError("The values of the 'block' attribute of an element must be either #all or a list of 'substitution', 'restriction' and 'extension'; " + blockSetStr + " was found"); String finalSetStr = null; Attr finalAttr = elementDecl.getAttributeNode( SchemaSymbols.ATT_FINAL ); if (finalAttr != null) finalSetStr = finalAttr.getValue(); int finalSet = parseFinalSet(finalSetStr); if( (finalSetStr != null) && !finalSetStr.equals("") && (!finalSetStr.equals(SchemaSymbols.ATTVAL_POUNDALL) && (((finalSet & SchemaSymbols.RESTRICTION) == 0) && ((finalSet & SchemaSymbols.EXTENSION) == 0)))) reportGenericSchemaError("The values of the 'final' attribute of an element must be either #all or a list of 'restriction' and 'extension'; " + finalSetStr + " was found"); boolean isNullable = elementDecl.getAttribute (SchemaSymbols.ATT_NULLABLE).equals(SchemaSymbols.ATTVAL_TRUE)? true:false; boolean isAbstract = elementDecl.getAttribute (SchemaSymbols.ATT_ABSTRACT).equals(SchemaSymbols.ATTVAL_TRUE)? true:false; int elementMiscFlags = 0; if (isNullable) { elementMiscFlags += SchemaSymbols.NULLABLE; } if (isAbstract) { elementMiscFlags += SchemaSymbols.ABSTRACT; } // make the property of the element's value being fixed also appear in elementMiscFlags if(!fixed.equals("")) elementMiscFlags += SchemaSymbols.FIXED; //if this is a reference to a global element if (!ref.equals("")) { //REVISIT top level check for ref if (!type.equals("") || (elementMiscFlags > 0) || (finalSetStr != null && finalSet > 0) || (blockSetStr != null && blockSet > 0) || !dflt.equals("") || !fixed.equals("")) reportSchemaError(SchemaMessageProvider.BadAttWithRef, null); if (!name.equals("")) // REVISIT: Localize reportGenericSchemaError("element " + name + " cannot also have a ref attribute"); Element child = XUtil.getFirstChildElement(elementDecl); if(child != null && child.getLocalName().equals(SchemaSymbols.ELT_ANNOTATION)) { if (XUtil.getNextSiblingElement(child) != null) reportSchemaError(SchemaMessageProvider.NoContentForRef, null); else traverseAnnotationDecl(child); } else if (child != null) reportSchemaError(SchemaMessageProvider.NoContentForRef, null); String prefix = ""; String localpart = ref; int colonptr = ref.indexOf(":"); if ( colonptr > 0) { prefix = ref.substring(0,colonptr); localpart = ref.substring(colonptr+1); } int localpartIndex = fStringPool.addSymbol(localpart); String uriString = resolvePrefixToURI(prefix); QName eltName = new QName(prefix != null ? fStringPool.addSymbol(prefix) : -1, localpartIndex, fStringPool.addSymbol(ref), uriString != null ? fStringPool.addSymbol(uriString) : StringPool.EMPTY_STRING); //if from another schema, just return the element QName if (! uriString.equals(fTargetNSURIString) ) { return eltName; } int elementIndex = fSchemaGrammar.getElementDeclIndex(eltName, TOP_LEVEL_SCOPE); //if not found, traverse the top level element that if referenced if (elementIndex == -1 ) { Element targetElement = getTopLevelComponentByName(SchemaSymbols.ELT_ELEMENT,localpart); if (targetElement == null ) { // REVISIT: Localize reportGenericSchemaError("Element " + localpart + " not found in the Schema"); //REVISIT, for now, the QName anyway return eltName; //return new QName(-1,fStringPool.addSymbol(localpart), -1, fStringPool.addSymbol(uriString)); } else { // do nothing here, other wise would cause infinite loop for // <element name="recur"><complexType><element ref="recur"> ... //eltName= traverseElementDecl(targetElement); } } return eltName; } else if (name.equals("")) // REVISIT: Localize reportGenericSchemaError("a local element must have a name or a ref attribute present"); // Handle the substitutionGroup Element substitutionGroupElementDecl = null; int substitutionGroupElementDeclIndex = -1; boolean noErrorSoFar = true; String substitutionGroupUri = null; String substitutionGroupLocalpart = null; String substitutionGroupFullName = null; ComplexTypeInfo substitutionGroupEltTypeInfo = null; DatatypeValidator substitutionGroupEltDV = null; if ( substitutionGroup.length() > 0 ) { if(!ref.equals("")) // REVISIT: Localize reportGenericSchemaError("a local element cannot have a substitutionGroup"); substitutionGroupUri = resolvePrefixToURI(getPrefix(substitutionGroup)); substitutionGroupLocalpart = getLocalPart(substitutionGroup); substitutionGroupFullName = substitutionGroupUri+","+substitutionGroupLocalpart; if ( !substitutionGroupUri.equals(fTargetNSURIString) ) { substitutionGroupEltTypeInfo = getElementDeclTypeInfoFromNS(substitutionGroupUri, substitutionGroupLocalpart); if (substitutionGroupEltTypeInfo == null) { substitutionGroupEltDV = getElementDeclTypeValidatorFromNS(substitutionGroupUri, substitutionGroupLocalpart); if (substitutionGroupEltDV == null) { //TO DO: report error here; noErrorSoFar = false; reportGenericSchemaError("Could not find type for element '" +substitutionGroupLocalpart + "' in schema '" + substitutionGroupUri+"'"); } } } else { substitutionGroupElementDecl = getTopLevelComponentByName(SchemaSymbols.ELT_ELEMENT, substitutionGroupLocalpart); if (substitutionGroupElementDecl == null) { substitutionGroupElementDeclIndex = fSchemaGrammar.getElementDeclIndex(fTargetNSURI, getLocalPartIndex(substitutionGroup),TOP_LEVEL_SCOPE); if ( substitutionGroupElementDeclIndex == -1) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("unable to locate substitutionGroup affiliation element " +substitutionGroup +" in element declaration " +name); } } else { substitutionGroupElementDeclIndex = fSchemaGrammar.getElementDeclIndex(fTargetNSURI, getLocalPartIndex(substitutionGroup),TOP_LEVEL_SCOPE); if ( substitutionGroupElementDeclIndex == -1) { traverseElementDecl(substitutionGroupElementDecl); substitutionGroupElementDeclIndex = fSchemaGrammar.getElementDeclIndex(fTargetNSURI, getLocalPartIndex(substitutionGroup),TOP_LEVEL_SCOPE); } } if (substitutionGroupElementDeclIndex != -1) { substitutionGroupEltTypeInfo = fSchemaGrammar.getElementComplexTypeInfo( substitutionGroupElementDeclIndex ); if (substitutionGroupEltTypeInfo == null) { fSchemaGrammar.getElementDecl(substitutionGroupElementDeclIndex, fTempElementDecl); substitutionGroupEltDV = fTempElementDecl.datatypeValidator; if (substitutionGroupEltDV == null) { //TO DO: report error here; noErrorSoFar = false; reportGenericSchemaError("Could not find type for element '" +substitutionGroupLocalpart + "' in schema '" + substitutionGroupUri+"'"); } } } } } // // resolving the type for this element right here // ComplexTypeInfo typeInfo = null; // element has a single child element, either a datatype or a type, null if primitive Element child = XUtil.getFirstChildElement(elementDecl); if(child != null && child.getLocalName().equals(SchemaSymbols.ELT_ANNOTATION)) { traverseAnnotationDecl(child); child = XUtil.getNextSiblingElement(child); } if(child != null && child.getLocalName().equals(SchemaSymbols.ELT_ANNOTATION)) // REVISIT: Localize reportGenericSchemaError("element declarations can contain at most one annotation Element Information Item"); boolean haveAnonType = false; // Handle Anonymous type if there is one if (child != null) { String childName = child.getLocalName(); if (childName.equals(SchemaSymbols.ELT_COMPLEXTYPE)) { if (child.getAttribute(SchemaSymbols.ATT_NAME).length() > 0) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("anonymous complexType in element '" + name +"' has a name attribute"); } else { // Determine what the type name will be String anonTypeName = genAnonTypeName(child); if (fCurrentTypeNameStack.search((Object)anonTypeName) > - 1) { // A recursing element using an anonymous type int uriInd = StringPool.EMPTY_STRING; if ( isQName.equals(SchemaSymbols.ATTVAL_QUALIFIED)|| fElementDefaultQualified) { uriInd = fTargetNSURI; } int nameIndex = fStringPool.addSymbol(name); QName tempQName = new QName(fCurrentScope, nameIndex, nameIndex, uriInd); fElementRecurseComplex.put(tempQName, anonTypeName); return new QName(-1, nameIndex, nameIndex, uriInd); } else { typeNameIndex = traverseComplexTypeDecl(child); if (typeNameIndex != -1 ) { typeInfo = (ComplexTypeInfo) fComplexTypeRegistry.get(fStringPool.toString(typeNameIndex)); } else { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("traverse complexType error in element '" + name +"'"); } } } haveAnonType = true; child = XUtil.getNextSiblingElement(child); } else if (childName.equals(SchemaSymbols.ELT_SIMPLETYPE)) { if (child.getAttribute(SchemaSymbols.ATT_NAME).length() > 0) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("anonymous simpleType in element '" + name +"' has a name attribute"); } else typeNameIndex = traverseSimpleTypeDecl(child); if (typeNameIndex != -1) { dv = fDatatypeRegistry.getDatatypeValidator(fStringPool.toString(typeNameIndex)); } else { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("traverse simpleType error in element '" + name +"'"); } contentSpecType = XMLElementDecl.TYPE_SIMPLE; haveAnonType = true; child = XUtil.getNextSiblingElement(child); } else if (type.equals("")) { // "ur-typed" leaf contentSpecType = XMLElementDecl.TYPE_ANY; //REVISIT: is this right? //contentSpecType = fStringPool.addSymbol("UR_TYPE"); // set occurrence count contentSpecNodeIndex = -1; } // see if there's something here; it had better be key, keyref or unique. if (child != null) childName = child.getLocalName(); while ((child != null) && ((childName.equals(SchemaSymbols.ELT_KEY)) || (childName.equals(SchemaSymbols.ELT_KEYREF)) || (childName.equals(SchemaSymbols.ELT_UNIQUE)))) { child = XUtil.getNextSiblingElement(child); if (child != null) { childName = child.getLocalName(); } } if (child != null) { // REVISIT: Localize noErrorSoFar = false; reportGenericSchemaError("the content of an element information item must match (annotation?, (simpleType | complexType)?, (unique | key | keyref)*)"); } } // handle type="" here if (haveAnonType && (type.length()>0)) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError( "Element '"+ name + "' have both a type attribute and a annoymous type child" ); } // type specified as an attribute and no child is type decl. else if (!type.equals("")) { String prefix = ""; String localpart = type; int colonptr = type.indexOf(":"); if ( colonptr > 0) { prefix = type.substring(0,colonptr); localpart = type.substring(colonptr+1); } String typeURI = resolvePrefixToURI(prefix); // check if the type is from the same Schema if ( !typeURI.equals(fTargetNSURIString) && !typeURI.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) && typeURI.length() != 0) { // REVISIT, only needed because of resolvePrifixToURI. fromAnotherSchema = typeURI; typeInfo = getTypeInfoFromNS(typeURI, localpart); if (typeInfo == null) { dv = getTypeValidatorFromNS(typeURI, localpart); if (dv == null) { //TO DO: report error here; noErrorSoFar = false; reportGenericSchemaError("Could not find type " +localpart + " in schema " + typeURI); } } } else { typeInfo = (ComplexTypeInfo) fComplexTypeRegistry.get(typeURI+","+localpart); if (typeInfo == null) { dv = getDatatypeValidator(typeURI, localpart); if (dv == null ) if (typeURI.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) && !fTargetNSURIString.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA)) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("type not found : " + typeURI+":"+localpart); } else { Element topleveltype = getTopLevelComponentByName(SchemaSymbols.ELT_COMPLEXTYPE,localpart); if (topleveltype != null) { if (fCurrentTypeNameStack.search((Object)localpart) > - 1) { //then we found a recursive element using complexType. // REVISIT: this will be broken when recursing happens between 2 schemas int uriInd = StringPool.EMPTY_STRING; if ( isQName.equals(SchemaSymbols.ATTVAL_QUALIFIED)|| fElementDefaultQualified) { uriInd = fTargetNSURI; } int nameIndex = fStringPool.addSymbol(name); QName tempQName = new QName(fCurrentScope, nameIndex, nameIndex, uriInd); fElementRecurseComplex.put(tempQName, localpart); return new QName(-1, nameIndex, nameIndex, uriInd); } else { typeNameIndex = traverseComplexTypeDecl( topleveltype ); typeInfo = (ComplexTypeInfo) fComplexTypeRegistry.get(fStringPool.toString(typeNameIndex)); } } else { topleveltype = getTopLevelComponentByName(SchemaSymbols.ELT_SIMPLETYPE, localpart); if (topleveltype != null) { typeNameIndex = traverseSimpleTypeDecl( topleveltype ); dv = getDatatypeValidator(typeURI, localpart); } else { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("type not found : " + typeURI+":"+localpart); } } } } } } // now we need to make sure that our substitution (if any) // is valid, now that we have all the requisite type-related info. if(substitutionGroup.length() > 0) { checkSubstitutionGroupOK(elementDecl, substitutionGroupElementDecl, noErrorSoFar, substitutionGroupElementDeclIndex, typeInfo, substitutionGroupEltTypeInfo, dv, substitutionGroupEltDV); } // this element is ur-type, check its substitutionGroup affiliation. // if there is substitutionGroup affiliation and not type definition found for this element, // then grab substitutionGroup affiliation's type and give it to this element if ( noErrorSoFar && typeInfo == null && dv == null ) { typeInfo = substitutionGroupEltTypeInfo; dv = substitutionGroupEltDV; } if (typeInfo == null && dv==null) { if (noErrorSoFar) { // Actually this Element's type definition is ur-type; contentSpecType = XMLElementDecl.TYPE_ANY; // REVISIT, need to wait till we have wildcards implementation. // ADD attribute wildcards here } else { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError ("untyped element : " + name ); } } // if element belongs to a compelx type if (typeInfo!=null) { contentSpecNodeIndex = typeInfo.contentSpecHandle; contentSpecType = typeInfo.contentType; scopeDefined = typeInfo.scopeDefined; dv = typeInfo.datatypeValidator; } // if element belongs to a simple type if (dv!=null) { contentSpecType = XMLElementDecl.TYPE_SIMPLE; if (typeInfo == null) { fromAnotherSchema = null; // not to switch schema in this case } } // Now we can handle validation etc. of default and fixed attributes, // since we finally have all the type information. if(!fixed.equals("")) dflt = fixed; if(!dflt.equals("")) { if(dv == null) { // in this case validate according to xs:string new StringDatatypeValidator().validate(dflt, null); } else { dv.validate(dflt, null); } if(typeInfo != null && (typeInfo.contentType != XMLElementDecl.TYPE_MIXED && typeInfo.contentType != XMLElementDecl.TYPE_SIMPLE)) { // REVISIT: Localize reportGenericSchemaError ("element " + name + " has a fixed or default value and must have a mixed or simple content model"); } } // // Create element decl // int elementNameIndex = fStringPool.addSymbol(name); int localpartIndex = elementNameIndex; int uriIndex = StringPool.EMPTY_STRING; int enclosingScope = fCurrentScope; //refer to 4.3.2 in "XML Schema Part 1: Structures" if ( isTopLevel(elementDecl)) { uriIndex = fTargetNSURI; enclosingScope = TOP_LEVEL_SCOPE; } else if ( !isQName.equals(SchemaSymbols.ATTVAL_UNQUALIFIED) && (( isQName.equals(SchemaSymbols.ATTVAL_QUALIFIED)|| fElementDefaultQualified ))) { uriIndex = fTargetNSURI; } //There can never be two elements with the same name and different type in the same scope. int existSuchElementIndex = fSchemaGrammar.getElementDeclIndex(uriIndex, localpartIndex, enclosingScope); if ( existSuchElementIndex > -1) { fSchemaGrammar.getElementDecl(existSuchElementIndex, fTempElementDecl); DatatypeValidator edv = fTempElementDecl.datatypeValidator; ComplexTypeInfo eTypeInfo = fSchemaGrammar.getElementComplexTypeInfo(existSuchElementIndex); if ( ((eTypeInfo != null)&&(eTypeInfo!=typeInfo)) || ((edv != null)&&(edv != dv)) ) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("duplicate element decl in the same scope : " + fStringPool.toString(localpartIndex)); } } QName eltQName = new QName(-1,localpartIndex,elementNameIndex,uriIndex); // add element decl to pool int attrListHead = -1 ; // copy up attribute decls from type object if (typeInfo != null) { attrListHead = typeInfo.attlistHead; } int elementIndex = fSchemaGrammar.addElementDecl(eltQName, enclosingScope, scopeDefined, contentSpecType, contentSpecNodeIndex, attrListHead, dv); if ( DEBUGGING ) { /***/ System.out.println("########elementIndex:"+elementIndex+" ("+fStringPool.toString(eltQName.uri)+"," + fStringPool.toString(eltQName.localpart) + ")"+ " eltType:"+type+" contentSpecType:"+contentSpecType+ " SpecNodeIndex:"+ contentSpecNodeIndex +" enclosingScope: " +enclosingScope + " scopeDefined: " +scopeDefined+"\n"); /***/ } fSchemaGrammar.setElementComplexTypeInfo(elementIndex, typeInfo); // REVISIT: should we report error if typeInfo was null? // mark element if its type belongs to different Schema. fSchemaGrammar.setElementFromAnotherSchemaURI(elementIndex, fromAnotherSchema); // set BlockSet, FinalSet, Nullable and Abstract for this element decl fSchemaGrammar.setElementDeclBlockSet(elementIndex, blockSet); fSchemaGrammar.setElementDeclFinalSet(elementIndex, finalSet); fSchemaGrammar.setElementDeclMiscFlags(elementIndex, elementMiscFlags); fSchemaGrammar.setElementDefault(elementIndex, dflt); // setSubstitutionGroupElementFullName fSchemaGrammar.setElementDeclSubstitutionGroupElementFullName(elementIndex, substitutionGroupFullName); // // key/keyref/unique processing // Element ic = XUtil.getFirstChildElementNS(elementDecl, IDENTITY_CONSTRAINTS); if (ic != null) { Integer elementIndexObj = new Integer(elementIndex); Vector identityConstraints = (Vector)fIdentityConstraints.get(elementIndexObj); if (identityConstraints == null) { identityConstraints = new Vector(); fIdentityConstraints.put(elementIndexObj, identityConstraints); } while (ic != null) { if (DEBUG_IC_DATATYPES) { System.out.println("<ICD>: adding ic for later traversal: "+ic); } identityConstraints.addElement(ic); ic = XUtil.getNextSiblingElementNS(ic, IDENTITY_CONSTRAINTS); } } return eltQName; }// end of method traverseElementDecl(Element) | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/87731f2b2070ba79da173a5e6be82410b096d7c5/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
16723,
10080,
1046,
3456,
12,
1046,
930,
3456,
13,
1216,
1185,
288,
3639,
509,
29617,
559,
1377,
273,
300,
21,
31,
3639,
509,
29617,
907,
1016,
273,
300,
21,
31,
3639,
509,
8173,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
16723,
10080,
1046,
3456,
12,
1046,
930,
3456,
13,
1216,
1185,
288,
3639,
509,
29617,
559,
1377,
273,
300,
21,
31,
3639,
509,
29617,
907,
1016,
273,
300,
21,
31,
3639,
509,
8173,
... |
int lastNumberTableIndex, Object securityDomain, | Object securityDomain, | InterpreterData(int lastICodeTop, int lastStringTableIndex, int lastNumberTableIndex, Object securityDomain, boolean useDynamicScope, boolean checkThis) { itsICodeTop = lastICodeTop == 0 ? INITIAL_MAX_ICODE_LENGTH : lastICodeTop * 2; itsICode = new byte[itsICodeTop]; itsStringTable = new String[lastStringTableIndex == 0 ? INITIAL_STRINGTABLE_SIZE : lastStringTableIndex * 2]; itsNumberTable = new double[lastNumberTableIndex == 0 ? INITIAL_NUMBERTABLE_SIZE : lastNumberTableIndex * 2]; itsUseDynamicScope = useDynamicScope; itsCheckThis = checkThis; if (securityDomain == null) Context.checkSecurityDomainRequired(); this.securityDomain = securityDomain; } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/8496f933ce40492352e4565af6fd79ea109a5274/InterpreterData.java/clean/js/rhino/src/org/mozilla/javascript/InterpreterData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
5294,
11599,
751,
12,
474,
1142,
45,
1085,
3401,
16,
509,
1142,
780,
1388,
1016,
16,
5397,
1033,
4373,
3748,
16,
10792,
1250,
999,
9791,
3876,
16,
1250,
866,
2503,
13,
565,
288,
3639,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
5294,
11599,
751,
12,
474,
1142,
45,
1085,
3401,
16,
509,
1142,
780,
1388,
1016,
16,
5397,
1033,
4373,
3748,
16,
10792,
1250,
999,
9791,
3876,
16,
1250,
866,
2503,
13,
565,
288,
3639,
2... |
Object[] adjustmentListeners = adjustmentListenerList.getListenerList(); | Object[] adjustmentListeners = listenerList.getListenerList(); | protected void fireAdjustmentValueChanged(int id, int type, int value) { Object[] adjustmentListeners = adjustmentListenerList.getListenerList(); AdjustmentEvent adjustmentEvent = new AdjustmentEvent(this, AdjustmentEvent.ADJUSTMENT_VALUE_CHANGED, AdjustmentEvent.TRACK, value); for (int i = adjustmentListeners.length - 2; i >= 0; i -= 2) { if (adjustmentListeners[i] == AdjustmentListener.class) ((AdjustmentListener) adjustmentListeners[i + 1]).adjustmentValueChanged(adjustmentEvent); } } | 45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/14511e3ad21013e92c6399b2bd2ec09a8263e33a/JScrollBar.java/clean/libjava/javax/swing/JScrollBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
4452,
19985,
620,
5033,
12,
474,
612,
16,
509,
618,
16,
509,
460,
13,
225,
288,
565,
1033,
8526,
18335,
5583,
273,
2991,
682,
18,
588,
2223,
682,
5621,
565,
17720,
475,
1133,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
4452,
19985,
620,
5033,
12,
474,
612,
16,
509,
618,
16,
509,
460,
13,
225,
288,
565,
1033,
8526,
18335,
5583,
273,
2991,
682,
18,
588,
2223,
682,
5621,
565,
17720,
475,
1133,... |
return display; } | return display; } | public Display getDisplay() { return display; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/9337b828e86179850647141c34d497be28275ed2/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9311,
13854,
1435,
288,
3639,
327,
2562,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9311,
13854,
1435,
288,
3639,
327,
2562,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
} else if (lvNode.end == index.label) { | } else if (lvNode.end == index.labelNode) { | private void updateLocals(final Index index, final Map locals) { for (int i = 0; i < localVariables.size(); ++i) { LocalVariableNode lvNode = (LocalVariableNode) localVariables.get(i); if (lvNode.start == index.label) { locals.put(new Integer(lvNode.index), lvNode.name); } else if (lvNode.end == index.label) { locals.remove(new Integer(lvNode.index)); } } } | 2697 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2697/9172c855702891832150db512a17bbe6ab1f046e/DecompiledMethod.java/clean/eclipse/plugin/src/de/loskutov/bco/asm/DecompiledMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
1333,
1031,
12,
6385,
3340,
770,
16,
727,
1635,
8985,
13,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1191,
6158,
18,
1467,
5621,
965,
77,
13,
288,
5411,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
1333,
1031,
12,
6385,
3340,
770,
16,
727,
1635,
8985,
13,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1191,
6158,
18,
1467,
5621,
965,
77,
13,
288,
5411,
3... |
sourceIndexer.removeIndexChangeListener(this); | protected void tearDown() { try { super.tearDown(); sourceIndexer.removeIndexChangeListener(this); } catch (Exception e1) { } //Delete project if (project.exists()) { try { System.gc(); System.runFinalization(); project.delete(true, monitor); } catch (CoreException e) { fail(getMessage(e.getStatus())); } } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/c394f40e489dd37280520439c09530c1c4a9e61f/CSelectionTestsDOMIndexer.java/clean/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CSelectionTestsDOMIndexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
268,
2091,
4164,
1435,
288,
202,
202,
698,
288,
1082,
202,
9565,
18,
736,
297,
4164,
5621,
1082,
202,
3168,
20877,
18,
4479,
1016,
15744,
12,
2211,
1769,
202,
202,
97,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
268,
2091,
4164,
1435,
288,
202,
202,
698,
288,
1082,
202,
9565,
18,
736,
297,
4164,
5621,
1082,
202,
3168,
20877,
18,
4479,
1016,
15744,
12,
2211,
1769,
202,
202,
97,
1... | |
public MDLWriter(Writer out) throws Exception { | public MDLWriter(Writer out) { | public MDLWriter(Writer out) throws Exception { logger = new LoggingTool(this); try { if (out instanceof BufferedWriter) { writer = (BufferedWriter)out; } else { writer = new BufferedWriter(out); } } catch (Exception exc) { } this.moleculeNumber = 1; } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/edb48df1ceef540d0a2f05f91afd7b4f69d092d7/MDLWriter.java/buggy/src/org/openscience/cdk/io/MDLWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
490,
8914,
2289,
12,
2289,
596,
13,
288,
377,
202,
4901,
273,
394,
10253,
6364,
12,
2211,
1769,
377,
202,
698,
288,
377,
202,
202,
430,
261,
659,
1276,
22490,
13,
288,
7734,
2633,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
490,
8914,
2289,
12,
2289,
596,
13,
288,
377,
202,
4901,
273,
394,
10253,
6364,
12,
2211,
1769,
377,
202,
698,
288,
377,
202,
202,
430,
261,
659,
1276,
22490,
13,
288,
7734,
2633,... |
String [] options = new String [11]; | String [] options = new String [12]; | public String [] getOptions() { String [] options = new String [11]; int current = 0; if (getMakeBinary()) { options[current++] = "-D"; } if (getUseBetterEncoding()) { options[current++] = "-E"; } if (getUseKononenko()) { options[current++] = "-K"; } if (getFindNumBins()) { options[current++] = "-O"; } if (getInvertSelection()) { options[current++] = "-V"; } if (!getUseMDL()) { options[current++] = "-B"; options[current++] = "" + getBins(); } if (!getAttributeIndices().equals("")) { options[current++] = "-R"; options[current++] = getAttributeIndices(); } while (current < options.length) { options[current++] = ""; } return options; } | 4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/16cdf90b8a5a140435505477d1b1227b59215fae/DiscretizeFilter.java/clean/weka/filters/DiscretizeFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
5378,
9849,
1435,
288,
565,
514,
5378,
702,
273,
394,
514,
306,
2138,
15533,
565,
509,
783,
273,
374,
31,
565,
309,
261,
588,
6464,
5905,
10756,
288,
1377,
702,
63,
2972,
990... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
5378,
9849,
1435,
288,
565,
514,
5378,
702,
273,
394,
514,
306,
2138,
15533,
565,
509,
783,
273,
374,
31,
565,
309,
261,
588,
6464,
5905,
10756,
288,
1377,
702,
63,
2972,
990... |
WeblogCategoryData parent = null == cat.getId() ? (WeblogCategoryData)cat.getNewParent() : cat.getParent(); if (null != parent) { List sameNames; try { Session session = ((HibernatePersistenceStrategy)this.strategy).getSession(); Criteria criteria = session.createCriteria(WeblogCategoryAssoc.class); criteria.createAlias("category", "c"); criteria.add(Expression.ne("c.id", cat.getId())); criteria.add(Expression.eq("c.name", cat.getName())); criteria.add(Expression.eq("ancestorCategory", parent)); criteria.add(Expression.eq("relation", Assoc.PARENT)); sameNames = criteria.list(); } catch (HibernateException e) { throw new RollerException(e); } if (sameNames.size() > 0) { return true; | WeblogCategoryData parent = cat.getParent(); if (null != parent) { WeblogCategoryData sibling = null; Iterator siblings = parent.getWeblogCategories().iterator(); while(siblings.hasNext()) { sibling = (WeblogCategoryData) siblings.next(); if(cat.getName().equals(sibling.getName())) { return true; } | public boolean isDuplicateWeblogCategoryName(WeblogCategoryData cat) throws RollerException { // ensure that no sibling categories share the same name WeblogCategoryData parent = null == cat.getId() ? (WeblogCategoryData)cat.getNewParent() : cat.getParent(); if (null != parent) // don't worry about root { List sameNames; try { Session session = ((HibernatePersistenceStrategy)this.strategy).getSession(); Criteria criteria = session.createCriteria(WeblogCategoryAssoc.class); criteria.createAlias("category", "c"); criteria.add(Expression.ne("c.id", cat.getId())); criteria.add(Expression.eq("c.name", cat.getName())); criteria.add(Expression.eq("ancestorCategory", parent)); criteria.add(Expression.eq("relation", Assoc.PARENT)); sameNames = criteria.list(); } catch (HibernateException e) { throw new RollerException(e); } if (sameNames.size() > 0) { return true; } } return false; } | 46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/318020d151f6e6f69d71c7a211f51dde545c002c/HibernateWeblogManagerImpl.java/buggy/src/org/apache/roller/business/hibernate/HibernateWeblogManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
11826,
4079,
1330,
4457,
461,
12,
4079,
1330,
4457,
751,
6573,
13,
565,
1216,
11714,
749,
503,
288,
3639,
368,
3387,
716,
1158,
10841,
6477,
7433,
326,
1967,
508,
3639,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
11826,
4079,
1330,
4457,
461,
12,
4079,
1330,
4457,
751,
6573,
13,
565,
1216,
11714,
749,
503,
288,
3639,
368,
3387,
716,
1158,
10841,
6477,
7433,
326,
1967,
508,
3639,
2... |
public double getLast() { | public String getLast() { | public double getLast() { return last; } | 2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/7a5ef2aace62a25ac69bb9a4b9ce269b43b008e5/StockQuote.java/clean/samples/stockquote/src/java/org/mule/samples/stockquote/StockQuote.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
7595,
1435,
288,
3639,
327,
1142,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
7595,
1435,
288,
3639,
327,
1142,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (IChemFile.class.isInstance(classObject)) return true; | Class[] interfaces = classObject.getInterfaces(); for (int i=0; i<interfaces.length; i++) { if (IChemFile.class.equals(interfaces[i])) return true; } | public boolean accepts(Class classObject) { if (IChemFile.class.isInstance(classObject)) return true; return false; } | 1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/88bfc9fe5f2cc6d9efe9aa5bb99558bde71e619a/Gaussian98Reader.java/buggy/src/org/openscience/cdk/io/Gaussian98Reader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
8104,
12,
797,
667,
921,
13,
288,
202,
202,
430,
261,
45,
20200,
812,
18,
1106,
18,
291,
1442,
12,
1106,
921,
3719,
327,
638,
31,
202,
202,
2463,
629,
31,
202,
97,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
8104,
12,
797,
667,
921,
13,
288,
202,
202,
430,
261,
45,
20200,
812,
18,
1106,
18,
291,
1442,
12,
1106,
921,
3719,
327,
638,
31,
202,
202,
2463,
629,
31,
202,
97,
2... |
if (token == OP_LSS && peek() == '/') return exp; | if (token == EOL_TOKEN || (token == OP_LSS && peek() == '/')) return exp; | Expression parseBinaryExpr(int prio) throws java.io.IOException, SyntaxException { Expression exp; exp = parseUnaryExpr(); for (;;) { if (nesting == 0 && curToken == EOL_TOKEN) return exp; int token = peekOperator(); if (token == OP_LSS && peek() == '/') return exp; // Makes for better error handling. int tokPriority = priority(token); if (tokPriority < prio || tokPriority > (OP_MOD >> 2)) return exp; char saveReadState = pushNesting('%'); getRawToken(); popNesting(saveReadState); if (token == OP_INSTANCEOF) { Expression[] args = { exp, parseDataType() }; exp = new ApplyExp(makeFunctionExp("gnu.xquery.lang.XQParser", "instanceOf"), args); } else { Expression exp2 = parseBinaryExpr(tokPriority+1); if (token == OP_AND) exp = new IfExp(booleanValue(exp), exp2, QuoteExp.falseExp); else if (token == OP_OR) exp = new IfExp(booleanValue(exp), QuoteExp.trueExp, exp2); else exp = makeBinary(token, exp, exp2); } } } | 41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/ff027e277c811e0541472619dfd55162353ce4af/XQParser.java/buggy/gnu/xquery/lang/XQParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
5371,
1109,
5905,
4742,
12,
474,
14705,
83,
13,
1377,
1216,
2252,
18,
1594,
18,
14106,
16,
11517,
503,
225,
288,
565,
5371,
1329,
31,
565,
1329,
273,
1109,
15972,
4742,
5621,
565,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
5371,
1109,
5905,
4742,
12,
474,
14705,
83,
13,
1377,
1216,
2252,
18,
1594,
18,
14106,
16,
11517,
503,
225,
288,
565,
5371,
1329,
31,
565,
1329,
273,
1109,
15972,
4742,
5621,
565,
364,
... |
double tempReal, tempReal2; double sumROC1, periodROC, prevKAMA; int i, today, outIdx, lookbackTotal; int trailingIdx; double trailingValue; | final double constMax = 2.0/(30.0+1.0); final double constDiff = 2.0/(2.0+1.0) - constMax; | public TA_RetCode KAMA(int startIdx, int endIdx, double inReal[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outReal[]) { final double constMax = 2.0 / (30.0 + 1.0); final double constDiff = 2.0 / (2.0 + 1.0) - constMax; double tempReal, tempReal2; double sumROC1, periodROC, prevKAMA; int i, today, outIdx, lookbackTotal; int trailingIdx; double trailingValue; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; if ((int) optInTimePeriod == (Integer.MIN_VALUE )) optInTimePeriod = 30; else if (((int) optInTimePeriod < 2) || ((int) optInTimePeriod > 100000)) return TA_RetCode.TA_BAD_PARAM; outBegIdx.value = 0; outNbElement.value = 0; lookbackTotal = optInTimePeriod + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_KAMA .ordinal()]); if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } sumROC1 = 0.0; today = startIdx - lookbackTotal; trailingIdx = today; i = optInTimePeriod; while (i-- > 0) { tempReal = inReal[today++]; tempReal -= inReal[today]; sumROC1 += Math.abs(tempReal); } prevKAMA = inReal[today - 1]; tempReal = inReal[today]; tempReal2 = inReal[trailingIdx++]; periodROC = tempReal - tempReal2; trailingValue = tempReal2; if ((sumROC1 <= periodROC) || (((-0.00000001) < sumROC1) && (sumROC1 < 0.00000001))) tempReal = 1.0; else tempReal = Math.abs(periodROC / sumROC1); tempReal = (tempReal * constDiff) + constMax; tempReal *= tempReal; prevKAMA = ((inReal[today++] - prevKAMA) * tempReal) + prevKAMA; while (today <= startIdx) { tempReal = inReal[today]; tempReal2 = inReal[trailingIdx++]; periodROC = tempReal - tempReal2; sumROC1 -= Math.abs(trailingValue - tempReal2); sumROC1 += Math.abs(tempReal - inReal[today - 1]); trailingValue = tempReal2; if ((sumROC1 <= periodROC) || (((-0.00000001) < sumROC1) && (sumROC1 < 0.00000001))) tempReal = 1.0; else tempReal = Math.abs(periodROC / sumROC1); tempReal = (tempReal * constDiff) + constMax; tempReal *= tempReal; prevKAMA = ((inReal[today++] - prevKAMA) * tempReal) + prevKAMA; } outReal[0] = prevKAMA; outIdx = 1; outBegIdx.value = today - 1; while (today <= endIdx) { tempReal = inReal[today]; tempReal2 = inReal[trailingIdx++]; periodROC = tempReal - tempReal2; sumROC1 -= Math.abs(trailingValue - tempReal2); sumROC1 += Math.abs(tempReal - inReal[today - 1]); trailingValue = tempReal2; if ((sumROC1 <= periodROC) || (((-0.00000001) < sumROC1) && (sumROC1 < 0.00000001))) tempReal = 1.0; else tempReal = Math.abs(periodROC / sumROC1); tempReal = (tempReal * constDiff) + constMax; tempReal *= tempReal; prevKAMA = ((inReal[today++] - prevKAMA) * tempReal) + prevKAMA; outReal[outIdx++] = prevKAMA; } outNbElement.value = outIdx; return TA_RetCode.TA_SUCCESS; } | 7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/5df8081f2a7211016256c0f481213a987e02947a/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
1475,
2192,
37,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
1082,
202,
474,
2153,
382,
26540,
16,
490,
4522,
596,
24059,
4223,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
1475,
2192,
37,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
1082,
202,
474,
2153,
382,
26540,
16,
490,
4522,
596,
24059,
4223,
... |
return (encode.nextByte() << 8) + encode.nextByte(); } | return (encode.nextByte() << 8) + encode.nextByte(); } | private static int decodeShortUnsignedBigEndian(PtrList encode) { return (encode.nextByte() << 8) + encode.nextByte(); } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/415b1e0db282c02d672a7e34a34a2bea0f69ccb2/Pack.java/clean/src/org/jruby/util/Pack.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
509,
2495,
4897,
13290,
9901,
7583,
12,
5263,
682,
2017,
13,
288,
202,
202,
2463,
261,
3015,
18,
4285,
3216,
1435,
2296,
1725,
13,
397,
2017,
18,
4285,
3216,
5621,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
509,
2495,
4897,
13290,
9901,
7583,
12,
5263,
682,
2017,
13,
288,
202,
202,
2463,
261,
3015,
18,
4285,
3216,
1435,
2296,
1725,
13,
397,
2017,
18,
4285,
3216,
5621,
202,
... |
DocumentImpl document = ((LocalXMLResource) resource).getDocument(); | DocumentImpl document; if (resource.getResourceType().equals("XMLResource")) document = ((LocalXMLResource) resource).getDocument(); else document = ((LocalBinaryResource) resource).getBlob(); | public void setPermissions(Resource resource, Permission perm) throws XMLDBException { org.exist.security.SecurityManager manager = pool.getSecurityManager(); DBBroker broker = null; try { broker = pool.get(user); DocumentImpl document = ((LocalXMLResource) resource).getDocument(); if (!(document.getPermissions().getOwner().equals(user.getName()) || manager.hasAdminPrivileges(user))) throw new XMLDBException( ErrorCodes.PERMISSION_DENIED, "you are not the owner of this resource; owner = " + document.getPermissions().getOwner()); document.setPermissions(perm); broker.saveCollection(collection.getCollection()); } catch (EXistException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e); } catch (PermissionDeniedException e) { throw new XMLDBException(ErrorCodes.PERMISSION_DENIED, e); } finally { pool.release(broker); } } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/542794bb5fd4ba67897c2c2677f4f663483ba69d/LocalUserManagementService.java/buggy/src/org/exist/xmldb/LocalUserManagementService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
6521,
12,
1420,
1058,
16,
8509,
4641,
13,
1216,
26014,
503,
288,
202,
202,
3341,
18,
7398,
18,
7462,
18,
4368,
1318,
3301,
273,
2845,
18,
588,
4368,
1318,
5621,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
6521,
12,
1420,
1058,
16,
8509,
4641,
13,
1216,
26014,
503,
288,
202,
202,
3341,
18,
7398,
18,
7462,
18,
4368,
1318,
3301,
273,
2845,
18,
588,
4368,
1318,
5621,
202,... |
IRubyObject javaUtilities = runtime.getClasses().getObjectClass().getConstant("JavaUtilities"); | IRubyObject javaUtilities = runtime.getObject().getConstant("JavaUtilities"); | public Object call(Object recv, String method, Object[] args) throws BSFException { try { IRubyObject rubyRecv = recv != null ? JavaUtil.convertJavaToRuby(runtime, recv) : runtime.getTopSelf(); IRubyObject[] rubyArgs = JavaUtil.convertJavaArrayToRuby(runtime, args); // Create Ruby proxies for any input arguments that are not primitives. IRubyObject javaUtilities = runtime.getClasses().getObjectClass().getConstant("JavaUtilities"); for (int i = 0; i < rubyArgs.length; i++) { IRubyObject obj = rubyArgs[i]; if (obj instanceof JavaObject) { rubyArgs[i] = javaUtilities.callMethod("wrap", new IRubyObject[] { obj, runtime.newString(obj.getClass().getName()) }); } } IRubyObject result = rubyRecv.callMethod(method, rubyArgs); return convertToJava(result, Object.class); } catch (Exception excptn) { printException(runtime, excptn); throw new BSFException(BSFException.REASON_EXECUTION_ERROR, excptn.getMessage(), excptn); } } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/ca6b16e996ea9af83ce593594b9c69b9364a9924/JRubyEngine.java/buggy/src/org/jruby/javasupport/bsf/JRubyEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
745,
12,
921,
10665,
16,
514,
707,
16,
1033,
8526,
833,
13,
1216,
605,
22395,
503,
288,
3639,
775,
288,
5411,
15908,
10340,
921,
22155,
28470,
273,
10665,
480,
446,
692,
5110,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
745,
12,
921,
10665,
16,
514,
707,
16,
1033,
8526,
833,
13,
1216,
605,
22395,
503,
288,
3639,
775,
288,
5411,
15908,
10340,
921,
22155,
28470,
273,
10665,
480,
446,
692,
5110,... |
private Composite createTitleArea(Composite parent) { // Create the title area which will contain // a title, message, and image. int margins = 2; titleArea = new Composite(parent, SWT.NONE); FormLayout layout = new FormLayout(); layout.marginHeight = margins; layout.marginWidth = margins; titleArea.setLayout(layout); // Get the background color for the title area Display display = parent.getDisplay(); Color background = JFaceColors.getBannerBackground(display); GridData layoutData = new GridData(GridData.FILL_HORIZONTAL); layoutData.heightHint = JFaceResources.getImage(PREF_DLG_TITLE_IMG).getBounds().height + (margins * 3); titleArea.setLayoutData(layoutData); titleArea.setBackground(background); final Color borderColor = new Color(titleArea.getDisplay(), ViewForm.borderOutsideRGB); titleArea.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { e.gc.setForeground(borderColor); Rectangle bounds = titleArea.getClientArea(); bounds.height = bounds.height - 2; bounds.width = bounds.width - 1; e.gc.drawRectangle(bounds); } }); // Add a dispose listener titleArea.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { if (titleAreaColor != null) titleAreaColor.dispose(); borderColor.dispose(); } }); // Message label messageArea = new DialogMessageArea(); messageArea.createContents(titleArea); final IPropertyChangeListener fontListener = new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if (JFaceResources.BANNER_FONT.equals(event.getProperty())) updateMessage(); if (JFaceResources.DIALOG_FONT.equals(event.getProperty())) { updateMessage(); Font dialogFont = JFaceResources.getDialogFont(); updateTreeFont(dialogFont); Control[] children = ((Composite) buttonBar).getChildren(); for (int i = 0; i < children.length; i++) children[i].setFont(dialogFont); } } }; titleArea.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent event) { JFaceResources.getFontRegistry().removeListener(fontListener); } }); JFaceResources.getFontRegistry().addListener(fontListener); // Title image titleImage = new Label(titleArea, SWT.LEFT); titleImage.setBackground(background); titleImage.setImage(JFaceResources.getImage(PREF_DLG_TITLE_IMG)); FormData imageData = new FormData(); imageData.right = new FormAttachment(100); imageData.top = new FormAttachment(0); imageData.bottom = new FormAttachment(100); titleImage.setLayoutData(imageData); messageArea.setTitleLayoutData(createMessageAreaData()); messageArea.setMessageLayoutData(createMessageAreaData()); return titleArea; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/be95edd129a1deef61176d5d63fd605f9dfe18a5/PreferenceDialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
799,
1724,
557,
602,
4247,
5484,
12,
799,
1724,
881,
817,
15329,
202,
202,
759,
1996,
270,
546,
278,
1280,
834,
2219,
76,
1354,
20194,
28744,
202,
202,
759,
270,
1280,
16,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
799,
1724,
557,
602,
4247,
5484,
12,
799,
1724,
881,
817,
15329,
202,
202,
759,
1996,
270,
546,
278,
1280,
834,
2219,
76,
1354,
20194,
28744,
202,
202,
759,
270,
1280,
16,
21... | ||
if (calEvent.isNew() || calEvent.isModified()) { session = openSession(); if (calEvent.isNew()) { CalEvent calEventModel = new CalEvent(); calEventModel.setEventId(calEvent.getEventId()); calEventModel.setGroupId(calEvent.getGroupId()); calEventModel.setCompanyId(calEvent.getCompanyId()); calEventModel.setUserId(calEvent.getUserId()); calEventModel.setUserName(calEvent.getUserName()); calEventModel.setCreateDate(calEvent.getCreateDate()); calEventModel.setModifiedDate(calEvent.getModifiedDate()); calEventModel.setTitle(calEvent.getTitle()); calEventModel.setDescription(calEvent.getDescription()); calEventModel.setStartDate(calEvent.getStartDate()); calEventModel.setEndDate(calEvent.getEndDate()); calEventModel.setDurationHour(calEvent.getDurationHour()); calEventModel.setDurationMinute(calEvent.getDurationMinute()); calEventModel.setAllDay(calEvent.getAllDay()); calEventModel.setTimeZoneSensitive(calEvent.getTimeZoneSensitive()); calEventModel.setType(calEvent.getType()); calEventModel.setRepeating(calEvent.getRepeating()); calEventModel.setRecurrence(calEvent.getRecurrence()); calEventModel.setRemindBy(calEvent.getRemindBy()); calEventModel.setFirstReminder(calEvent.getFirstReminder()); calEventModel.setSecondReminder(calEvent.getSecondReminder()); session.save(calEventModel); session.flush(); } else { CalEvent calEventModel = (CalEvent)session.get(CalEvent.class, calEvent.getPrimaryKey()); if (calEventModel != null) { calEventModel.setGroupId(calEvent.getGroupId()); calEventModel.setCompanyId(calEvent.getCompanyId()); calEventModel.setUserId(calEvent.getUserId()); calEventModel.setUserName(calEvent.getUserName()); calEventModel.setCreateDate(calEvent.getCreateDate()); calEventModel.setModifiedDate(calEvent.getModifiedDate()); calEventModel.setTitle(calEvent.getTitle()); calEventModel.setDescription(calEvent.getDescription()); calEventModel.setStartDate(calEvent.getStartDate()); calEventModel.setEndDate(calEvent.getEndDate()); calEventModel.setDurationHour(calEvent.getDurationHour()); calEventModel.setDurationMinute(calEvent.getDurationMinute()); calEventModel.setAllDay(calEvent.getAllDay()); calEventModel.setTimeZoneSensitive(calEvent.getTimeZoneSensitive()); calEventModel.setType(calEvent.getType()); calEventModel.setRepeating(calEvent.getRepeating()); calEventModel.setRecurrence(calEvent.getRecurrence()); calEventModel.setRemindBy(calEvent.getRemindBy()); calEventModel.setFirstReminder(calEvent.getFirstReminder()); calEventModel.setSecondReminder(calEvent.getSecondReminder()); session.flush(); } else { calEventModel = new CalEvent(); calEventModel.setEventId(calEvent.getEventId()); calEventModel.setGroupId(calEvent.getGroupId()); calEventModel.setCompanyId(calEvent.getCompanyId()); calEventModel.setUserId(calEvent.getUserId()); calEventModel.setUserName(calEvent.getUserName()); calEventModel.setCreateDate(calEvent.getCreateDate()); calEventModel.setModifiedDate(calEvent.getModifiedDate()); calEventModel.setTitle(calEvent.getTitle()); calEventModel.setDescription(calEvent.getDescription()); calEventModel.setStartDate(calEvent.getStartDate()); calEventModel.setEndDate(calEvent.getEndDate()); calEventModel.setDurationHour(calEvent.getDurationHour()); calEventModel.setDurationMinute(calEvent.getDurationMinute()); calEventModel.setAllDay(calEvent.getAllDay()); calEventModel.setTimeZoneSensitive(calEvent.getTimeZoneSensitive()); calEventModel.setType(calEvent.getType()); calEventModel.setRepeating(calEvent.getRepeating()); calEventModel.setRecurrence(calEvent.getRecurrence()); calEventModel.setRemindBy(calEvent.getRemindBy()); calEventModel.setFirstReminder(calEvent.getFirstReminder()); calEventModel.setSecondReminder(calEvent.getSecondReminder()); session.save(calEventModel); session.flush(); } } calEvent.setNew(false); calEvent.setModified(false); } | session = openSession(); session.saveOrUpdate(calEvent); session.flush(); calEvent.setNew(false); | public com.liferay.portlet.calendar.model.CalEvent update( com.liferay.portlet.calendar.model.CalEvent calEvent) throws SystemException { Session session = null; try { if (calEvent.isNew() || calEvent.isModified()) { session = openSession(); if (calEvent.isNew()) { CalEvent calEventModel = new CalEvent(); calEventModel.setEventId(calEvent.getEventId()); calEventModel.setGroupId(calEvent.getGroupId()); calEventModel.setCompanyId(calEvent.getCompanyId()); calEventModel.setUserId(calEvent.getUserId()); calEventModel.setUserName(calEvent.getUserName()); calEventModel.setCreateDate(calEvent.getCreateDate()); calEventModel.setModifiedDate(calEvent.getModifiedDate()); calEventModel.setTitle(calEvent.getTitle()); calEventModel.setDescription(calEvent.getDescription()); calEventModel.setStartDate(calEvent.getStartDate()); calEventModel.setEndDate(calEvent.getEndDate()); calEventModel.setDurationHour(calEvent.getDurationHour()); calEventModel.setDurationMinute(calEvent.getDurationMinute()); calEventModel.setAllDay(calEvent.getAllDay()); calEventModel.setTimeZoneSensitive(calEvent.getTimeZoneSensitive()); calEventModel.setType(calEvent.getType()); calEventModel.setRepeating(calEvent.getRepeating()); calEventModel.setRecurrence(calEvent.getRecurrence()); calEventModel.setRemindBy(calEvent.getRemindBy()); calEventModel.setFirstReminder(calEvent.getFirstReminder()); calEventModel.setSecondReminder(calEvent.getSecondReminder()); session.save(calEventModel); session.flush(); } else { CalEvent calEventModel = (CalEvent)session.get(CalEvent.class, calEvent.getPrimaryKey()); if (calEventModel != null) { calEventModel.setGroupId(calEvent.getGroupId()); calEventModel.setCompanyId(calEvent.getCompanyId()); calEventModel.setUserId(calEvent.getUserId()); calEventModel.setUserName(calEvent.getUserName()); calEventModel.setCreateDate(calEvent.getCreateDate()); calEventModel.setModifiedDate(calEvent.getModifiedDate()); calEventModel.setTitle(calEvent.getTitle()); calEventModel.setDescription(calEvent.getDescription()); calEventModel.setStartDate(calEvent.getStartDate()); calEventModel.setEndDate(calEvent.getEndDate()); calEventModel.setDurationHour(calEvent.getDurationHour()); calEventModel.setDurationMinute(calEvent.getDurationMinute()); calEventModel.setAllDay(calEvent.getAllDay()); calEventModel.setTimeZoneSensitive(calEvent.getTimeZoneSensitive()); calEventModel.setType(calEvent.getType()); calEventModel.setRepeating(calEvent.getRepeating()); calEventModel.setRecurrence(calEvent.getRecurrence()); calEventModel.setRemindBy(calEvent.getRemindBy()); calEventModel.setFirstReminder(calEvent.getFirstReminder()); calEventModel.setSecondReminder(calEvent.getSecondReminder()); session.flush(); } else { calEventModel = new CalEvent(); calEventModel.setEventId(calEvent.getEventId()); calEventModel.setGroupId(calEvent.getGroupId()); calEventModel.setCompanyId(calEvent.getCompanyId()); calEventModel.setUserId(calEvent.getUserId()); calEventModel.setUserName(calEvent.getUserName()); calEventModel.setCreateDate(calEvent.getCreateDate()); calEventModel.setModifiedDate(calEvent.getModifiedDate()); calEventModel.setTitle(calEvent.getTitle()); calEventModel.setDescription(calEvent.getDescription()); calEventModel.setStartDate(calEvent.getStartDate()); calEventModel.setEndDate(calEvent.getEndDate()); calEventModel.setDurationHour(calEvent.getDurationHour()); calEventModel.setDurationMinute(calEvent.getDurationMinute()); calEventModel.setAllDay(calEvent.getAllDay()); calEventModel.setTimeZoneSensitive(calEvent.getTimeZoneSensitive()); calEventModel.setType(calEvent.getType()); calEventModel.setRepeating(calEvent.getRepeating()); calEventModel.setRecurrence(calEvent.getRecurrence()); calEventModel.setRemindBy(calEvent.getRemindBy()); calEventModel.setFirstReminder(calEvent.getFirstReminder()); calEventModel.setSecondReminder(calEvent.getSecondReminder()); session.save(calEventModel); session.flush(); } } calEvent.setNew(false); calEvent.setModified(false); } return calEvent; } catch (HibernateException he) { throw new SystemException(he); } finally { closeSession(session); } } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/CalEventPersistence.java/clean/portal-ejb/src/com/liferay/portlet/calendar/service/persistence/CalEventPersistence.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
532,
18,
10256,
15164,
18,
655,
1810,
18,
11650,
18,
2284,
18,
3005,
1133,
1089,
12,
202,
202,
832,
18,
10256,
15164,
18,
655,
1810,
18,
11650,
18,
2284,
18,
3005,
1133,
1443,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
532,
18,
10256,
15164,
18,
655,
1810,
18,
11650,
18,
2284,
18,
3005,
1133,
1089,
12,
202,
202,
832,
18,
10256,
15164,
18,
655,
1810,
18,
11650,
18,
2284,
18,
3005,
1133,
1443,... |
xsp = jj_scanpos; if (jj_3R_335()) { jj_scanpos = xsp; if (jj_3R_336()) { jj_scanpos = xsp; if (jj_3R_337()) return true; } | while (true) { xsp = jj_scanpos; if (jj_3R_346()) { jj_scanpos = xsp; break; } | final private boolean jj_3R_325() { Token xsp; xsp = jj_scanpos; if (jj_3R_335()) { jj_scanpos = xsp; if (jj_3R_336()) { jj_scanpos = xsp; if (jj_3R_337()) return true; } } return false; } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/0b7f9842c42a34509d077a5e1d655daf0b8192d6/Parser.java/clean/dynamicjava/src/koala/dynamicjava/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
1578,
25,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
3707,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
1578,
25,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
3707,
25... |
case org.postgis.Geometry.POLYGON : | case org.postgis.Geometry.POLYGON: | protected void writeGeometry(Geometry geom, ValueSetter dest) { final int dimension = getCoordDim(geom); if (dimension < 2 || dimension > 4) { throw new IllegalArgumentException("Unsupported geometry dimensionality: " + dimension); } // write endian flag dest.setByte(dest.endian); // write typeword final int plaintype = getWKBType(geom); int typeword = plaintype; if (dimension == 3 || dimension == 4) { typeword |= 0x80000000; } if (dimension == 4) { typeword |= 0x40000000; } if (checkSrid(geom)) { typeword |= 0x20000000; } dest.setInt(typeword); if (checkSrid(geom)) { dest.setInt(geom.getFactory().getSRID()); } switch (plaintype) { case org.postgis.Geometry.POINT : writePoint((Point) geom, dest); break; case org.postgis.Geometry.LINESTRING : writeLineString((LineString) geom, dest); break; case org.postgis.Geometry.POLYGON : writePolygon((Polygon) geom, dest); break; case org.postgis.Geometry.MULTIPOINT : writeMultiPoint((MultiPoint) geom, dest); break; case org.postgis.Geometry.MULTILINESTRING : writeMultiLineString((MultiLineString) geom, dest); break; case org.postgis.Geometry.MULTIPOLYGON : writeMultiPolygon((MultiPolygon) geom, dest); break; case org.postgis.Geometry.GEOMETRYCOLLECTION : writeCollection((GeometryCollection) geom, dest); break; default : throw new IllegalArgumentException("Unknown Geometry Type: " + plaintype); } } | 4075 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4075/41fcfc0c6f5c916cd545baeb76efa9eb43421e15/JtsBinaryWriter.java/clean/jdbc2/jtssrc/org/postgis/jts/JtsBinaryWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1045,
9823,
12,
9823,
7364,
16,
1445,
8465,
1570,
13,
288,
3639,
727,
509,
4968,
273,
19850,
517,
5225,
12,
10049,
1769,
3639,
309,
261,
11808,
411,
576,
747,
4968,
405,
1059,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1045,
9823,
12,
9823,
7364,
16,
1445,
8465,
1570,
13,
288,
3639,
727,
509,
4968,
273,
19850,
517,
5225,
12,
10049,
1769,
3639,
309,
261,
11808,
411,
576,
747,
4968,
405,
1059,
... |
return getUser(user.getUsername()); | public User saveUser(final User user) { if (user.getId() == null) { Long pk = (Long) getSqlMapClientTemplate().queryForObject("getUserId", null); if (pk == null) { pk = new Long(0); } user.setId(new Long(pk.longValue() + 1)); if (logger.isDebugEnabled()) { logger.debug("user's id: " + user.getId()); } getSqlMapClientTemplate().update("addUser", user); addUserRoles(user); } else { getSqlMapClientTemplate().update("updateUser", user); deleteUserRoles(user); addUserRoles(user); } // Have to call getUser here b/c the user might still have duplicate // roles. The preventDups logic can't remove items b/c it'll throw // a java.util.ConcurrentModificationException. Cleaner solutions // welcome. ;-) return getUser(user.getUsername()); } | 3521 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3521/5a85c7a969483c66e89f40fc75bcdfc10887d96f/UserDAOiBatis.java/buggy/extras/ibatis/src/dao/org/appfuse/dao/ibatis/UserDAOiBatis.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2177,
1923,
1299,
12,
6385,
2177,
729,
13,
288,
3639,
309,
261,
1355,
18,
26321,
1435,
422,
446,
13,
288,
5411,
3407,
2365,
273,
7734,
261,
3708,
13,
17789,
863,
1227,
2283,
7675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2177,
1923,
1299,
12,
6385,
2177,
729,
13,
288,
3639,
309,
261,
1355,
18,
26321,
1435,
422,
446,
13,
288,
5411,
3407,
2365,
273,
7734,
261,
3708,
13,
17789,
863,
1227,
2283,
7675,
... | |
if (child_box.clear_left || child_box.clear_right) { | if (child_box.getStyle().isCleared()) { | public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o = contentIterator.next(); if (o instanceof FirstLineStyle) {//can actually only be the first object in list block.firstLineStyle = ((FirstLineStyle) o).getStyle(); //put it into the Context so it gets used on the first line c.addFirstLineStyle(block.firstLineStyle); continue; } if (o instanceof FirstLetterStyle) {//can actually only be the first or second object in list block.firstLetterStyle = ((FirstLetterStyle) o).getStyle(); continue; } Content currentContent = (Content) o; Box child_box = null; //TODO:handle run-ins. For now, treat them as blocks // update the counter for printing OL list items //TODO:handle counters correctly c.setListCounter(c.getListCounter() + 1); // execute the layout and get the return bounds //c.parent_box = box; //c.placement_point = new Point(0, box.height); c.translate(0, box.height); //child_box = Boxing.layout(c, currentContent); child_box = Boxing.preLayout(c, currentContent); //Uu.p("did pre layout on : " + child_box); //Uu.p("adding the child: " + child_box); child_box.list_count = c.getListCounter(); // set the child_box location child_box.x = 0; double initialY = box.height; child_box.y = (int) initialY; //Uu.p("set child box y to: " + child_box); box.addChild(child_box); Boxing.realLayout(c, child_box, currentContent); box.propagateChildProperties(child_box); c.translate(0, -box.height); //JMM. new code to handle the 'clear' property // if clear set if (child_box.clear_left || child_box.clear_right) {//Uu.p("doing a clear on: " + child_box); // get the distance we have to move it down int down = 0; //Uu.p("down = " + down); if (child_box.clear_left) { //Uu.p("left clear"); //Uu.p("left down = " + c.getPersistentBFC().getLeftDownDistance(child_box)); down = Math.max(down, c.getBlockFormattingContext().getLeftDownDistance(child_box)); } //Uu.p("down = " + down); if (child_box.clear_right) { //Uu.p("right clear"); //Uu.p("right down = " + c.getPersistentBFC().getRightDownDistance(child_box)); down = Math.max(down, c.getBlockFormattingContext().getRightDownDistance(child_box)); } //Uu.p("down = " + down); int diff = down - child_box.y; //Uu.p("child box.y = " + child_box.y); //Uu.p("diff = " + diff); if (diff > 0) { // move child box down child_box.y = down; // adjust parent box box.height += diff; } } //joshy fix the 'fixed' stuff later // if fixed or abs then don't modify the final layout bounds // because fixed elements are removed from normal flow if (child_box.fixed) { // put fixed positioning in later Fixed.positionFixedChild(c, child_box); } if (child_box.absolute) { Absolute.positionAbsoluteChild(c, child_box); } // skip adjusting the parent box if the child // doesn't affect flow layout if (LayoutUtil.isOutsideNormalFlow(child_box)) { continue; } // increase the final layout width if the child was greater box.adjustWidthForChild(child_box.getWidth()); c.addMaxWidth(box.getWidth()); // increase the final layout height by the height of the child box.height += (child_box.y - initialY) + child_box.height; c.addMaxHeight(box.height + box.y + (int) c.getOriginOffset().getY()); if (c.shouldStop()) { System.out.println("doing a quick stop"); break; } //Uu.p("alerting that there is a box available"); Dimension max_size = new Dimension(c.getMaxWidth(), c.getMaxHeight()); if (c.isInteractive() && !c.isPrint()) { if (Configuration.isTrue("xr.incremental.enabled", false) && c.isRenderQueueAvailable()) { c.getRenderQueue().dispatchRepaintEvent(new ReflowEvent(ReflowEvent.MORE_BOXES_AVAILABLE, box, max_size)); } int delay = Configuration.valueAsInt("xr.incremental.debug.layoutdelay", 0); if (delay > 0) { //Uu.p("sleeping for: " + delay); try { Uu.sleep(delay); } catch (Exception ex) { Uu.p("sleep was interrupted in BlockBoxing.layoutContent()!"); } } } } c.addMaxWidth(box.getWidth()); c.setListCounter(old_counter); if (block.firstLineStyle != null) { //pop it in case it wasn't used c.popFirstLineStyle(); } } | 8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/d78edbe00854320b48eb4ef97095b253df533dd8/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
3511,
1350,
12,
1042,
276,
16,
8549,
3919,
16,
987,
913,
682,
16,
8549,
1203,
13,
288,
3639,
368,
2911,
364,
326,
666,
1516,
3639,
509,
1592,
67,
7476,
273,
276,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
3511,
1350,
12,
1042,
276,
16,
8549,
3919,
16,
987,
913,
682,
16,
8549,
1203,
13,
288,
3639,
368,
2911,
364,
326,
666,
1516,
3639,
509,
1592,
67,
7476,
273,
276,
18,
5... |
String ds_name = attr.getAlias(); if (ds_name.length() > MAX_DS_NAME_LENGTH) { if (log.isEnabledFor(Priority.WARN)) log.warn("buildDataSourceList: alias '" + attr.getAlias() + "' exceeds 19 char maximum for RRD data source names, truncating."); char[] temp = ds_name.toCharArray(); ds_name = String.copyValueOf(temp, 0, MAX_DS_NAME_LENGTH); } ds.setName(ds_name); | String ds_name = attr.getAlias(); if (ds_name.length() > MAX_DS_NAME_LENGTH) { if (log.isEnabledFor(Priority.WARN)) log.warn("buildDataSourceList: alias '" + attr.getAlias() + "' exceeds 19 char maximum for RRD data source names, truncating."); char[] temp = ds_name.toCharArray(); ds_name = String.copyValueOf(temp, 0, MAX_DS_NAME_LENGTH); } ds.setName(ds_name); | private HashMap buildDataSourceList(String collectionName, List attributeList) { // Log4j category // Category log = ThreadCategory.getInstance(getClass()); // Retrieve the RRD expansion data source list which contains all // the expansion data source's. Use this list as a basis // for building a data source list for the current interface. // HashMap dsList = new HashMap(); // Loop through the MBean object list to be collected for this interface // and add a corresponding RRD data source object. In this manner // each interface will have RRD files create which reflect only the data // sources pertinent to it. // Iterator o = attributeList.iterator(); while (o.hasNext()) { Attrib attr = (Attrib) o.next(); RRDDataSource ds = null; // Verify that this object has an appropriate "integer" data type // which can be stored in an RRD database file (must map to one of // the supported RRD data source types: COUNTER or GAUGE). String ds_type = RRDDataSource.mapType(attr.getType()); if (ds_type != null) { // Passed!! Create new data source instance for this MBean // object // Assign heartbeat using formula (2 * step) and hard code // min & max values to "U" ("unknown"). ds = new RRDDataSource(); ds.setHeartbeat(2 * JMXDataCollectionConfigFactory .getInstance().getStep(collectionName)); // For completeness, adding a minval option to the variable. String ds_minval = attr.getMinval(); if (ds_minval == null) { ds_minval = "U"; } ds.setMax(ds_minval); // In order to handle counter wraps, we need to set a max // value for the variable. String ds_maxval = attr.getMaxval(); if (ds_maxval == null) { ds_maxval = "U"; } ds.setMax(ds_maxval); ds.setInstance(collectionName); // Truncate MBean object name/alias if it exceeds 19 char max // for // RRD data source names. String ds_name = attr.getAlias(); if (ds_name.length() > MAX_DS_NAME_LENGTH) { if (log.isEnabledFor(Priority.WARN)) log.warn("buildDataSourceList: alias '" + attr.getAlias() + "' exceeds 19 char maximum for RRD data source names, truncating."); char[] temp = ds_name.toCharArray(); ds_name = String.copyValueOf(temp, 0, MAX_DS_NAME_LENGTH); } ds.setName(ds_name); // Map MBean object data type to RRD data type ds.setType(ds_type); // Assign the data source object identifier and instance //ds.setName(attr.getName()); ds.setOid(attr.getName()); if (log.isDebugEnabled()) log.debug("buildDataSourceList: ds_name: " + ds.getName() + " ds_oid: " + ds.getOid() + "." + ds.getInstance() + " ds_max: " + ds.getMax() + " ds_min: " + ds.getMin()); // Add the new data source to the list dsList.put(attr.getName(), ds); } else if (log.isEnabledFor(Priority.WARN)) { log.warn("buildDataSourceList: Data type '" + attr.getType() + "' not supported. Only integer-type data may be stored in RRD."); log.warn("buildDataSourceList: MBean object '" + attr.getAlias() + "' will not be mapped to RRD data source."); } } return dsList; } | 25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/1f4f928b8a779619247bb7d93f766dffb9cb8651/JMXCollector.java/clean/src/services/org/opennms/netmgt/collectd/JMXCollector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4317,
1361,
8597,
682,
12,
780,
17137,
16,
987,
1566,
682,
13,
288,
3639,
368,
1827,
24,
78,
3150,
3639,
368,
3639,
9856,
613,
273,
4884,
4457,
18,
588,
1442,
12,
588,
797,
10663,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4317,
1361,
8597,
682,
12,
780,
17137,
16,
987,
1566,
682,
13,
288,
3639,
368,
1827,
24,
78,
3150,
3639,
368,
3639,
9856,
613,
273,
4884,
4457,
18,
588,
1442,
12,
588,
797,
10663,... |
rubyFrame = rubyFrame.getPrev(); | rubyFrame = getRubyFrame().getPrev(); | public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = ruby.getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (rubyBlock == null)) { throw new RuntimeException("yield called out of block"); } RubyVarmap.push(ruby); pushClass(); RubyBlock block = rubyBlock.getTmp(); Frame frame = block.frame; frame.setPrev(rubyFrame); rubyFrame = frame; VALUE old_cref = ruby_cref; ruby_cref = (NODE)rubyFrame.getCbase(); RubyScope oldScope = ruby.rubyScope; ruby.rubyScope = block.scope; rubyBlock.pop(); if ((block.flags & RubyBlock.BLOCK_D_SCOPE) != 0) { dynamicVars = new RubyVarmap(null, null, block.dynamicVars); } else { dynamicVars = block.dynamicVars; } ruby_class = (klass != null) ? klass : block.klass; if (klass == null) { self = (RubyObject)block.self; } NODE node = block.body; if (block.var != null) { // try { if (block.var == NODE.ONE) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray)value).length() != 0) { throw new RubyArgumentException("wrong # of arguments ("+ ((RubyArray)value).length() + " for 0)"); } } else { if (block.var.nd_type() == NODE_MASGN) { massign(self, block.var, value, acheck); } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray)value).length() == 1) { value = ((RubyArray)value).entry(0); } assign(self, block.var, value, acheck); } } // } catch () { // goto pop_state; // } } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray)value).length() == 1) { value = ((RubyArray)value).entry(0); } } rubyIter.push(block.iter); while (true) { try { if (node == null) { result = ruby.getNil(); } else if (node.nd_type() == NODE_CFUNC || node.nd_type() == NODE_IFUNC) { if (value == null) { value = RubyArray.m_newArray(ruby, 0); } result = ((RubyCallbackMethod)node.nd_cfnc()).execute(value, new RubyObject[] {(RubyObject)node.nd_tval(), self}, ruby); } else { result = eval(self, node); } break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { result = ruby.getNil(); break; } catch (BreakException bExcptn) { break; } catch (ReturnException rExcptn) { break; } } // pop_state: rubyIter.pop(); popClass(); RubyVarmap.pop(ruby); rubyBlock.setTmp(block); rubyFrame = rubyFrame.getPrev(); ruby_cref = (NODE)old_cref; // if (ruby_scope->flag & SCOPE_DONT_RECYCLE) // scope_dup(old_scope); ruby.rubyScope = oldScope; /* * if (state) { * if (!block->tag) { * switch (state & TAG_MASK) { * case TAG_BREAK: * case TAG_RETURN: * jump_tag_but_local_jump(state & TAG_MASK); * break; * } * } * JUMP_TAG(state); * } */ return result; } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/f220dcff8a7e427e32a7f1f1bc78f38876b83620/RubyInterpreter.java/buggy/org/jruby/interpreter/RubyInterpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
2824,
20,
12,
54,
10340,
921,
460,
16,
19817,
921,
365,
16,
19817,
3120,
7352,
16,
1250,
279,
1893,
13,
288,
3639,
19817,
921,
563,
273,
22155,
18,
588,
12616,
5621,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
2824,
20,
12,
54,
10340,
921,
460,
16,
19817,
921,
365,
16,
19817,
3120,
7352,
16,
1250,
279,
1893,
13,
288,
3639,
19817,
921,
563,
273,
22155,
18,
588,
12616,
5621,
7... |
buildFallback(); | if (!buildFallback()) if (_settings.isExploratory()) refreshBuilders(3, 4); else refreshBuilders(1, 4); | public void tunnelFailed(PooledTunnelCreatorConfig cfg) { if (_log.shouldLog(Log.WARN)) _log.warn(toString() + ": Tunnel failed: " + cfg); int remaining = 0; LeaseSet ls = null; synchronized (_tunnels) { _tunnels.remove(cfg); if (_settings.isInbound() && (_settings.getDestination() != null) ) ls = locked_buildNewLeaseSet(); remaining = _tunnels.size(); if (_lastSelected == cfg) { _lastSelected = null; _lastSelectionPeriod = 0; } } _lifetimeProcessed += cfg.getProcessedMessagesCount(); if (_settings.isInbound() && (_settings.getDestination() != null) ) { if (ls != null) { _context.clientManager().requestLeaseSet(_settings.getDestination(), ls); } else { if (_log.shouldLog(Log.WARN)) _log.warn(toString() + ": unable to build a new leaseSet on failure (" + remaining + " remaining), request a new tunnel"); if (remaining < _settings.getBackupQuantity() + _settings.getQuantity()) buildFallback(); } } refreshBuilders(); } | 27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/ab4f3008cb78a7ef0ea6b25b04e9b6eeb83f8443/TunnelPool.java/buggy/router/java/src/net/i2p/router/tunnel/pool/TunnelPool.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
14825,
2925,
12,
52,
22167,
20329,
10636,
809,
2776,
13,
288,
3639,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
27999,
3719,
5411,
389,
1330,
18,
8935,
12,
10492,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
14825,
2925,
12,
52,
22167,
20329,
10636,
809,
2776,
13,
288,
3639,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
27999,
3719,
5411,
389,
1330,
18,
8935,
12,
10492,
1435,
... |
protected void execute(final IProgressMonitor monitor) throws CoreException { PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable(){ public void run() { BugReportPostHandler form = new BugReportPostHandler(); form.setPrefix(BugReportPostHandler.FORM_PREFIX_BUG_218); form.setPrefix2(BugReportPostHandler.FORM_PREFIX_BUG_220); form.setPostfix(BugReportPostHandler.FORM_POSTFIX_216); form.setPostfix2(BugReportPostHandler.FORM_POSTFIX_218); try { setURL(form, "post_bug.cgi"); // go through all of the attributes and add them to the bug post Iterator<Attribute> itr = model.getAttributes().iterator(); while (itr.hasNext()) { Attribute a = itr.next(); if (a != null && a.getParameterName() != null && a.getParameterName().compareTo("") != 0 && !a.isHidden()) { String key = a.getName(); String value = null; // get the values from the attribute if (key.equalsIgnoreCase("OS")) { value = a.getValue(); } else if (key.equalsIgnoreCase("Version")) { value = a.getValue(); } else if (key.equalsIgnoreCase("Severity")) { value = a.getValue(); } else if (key.equalsIgnoreCase("Platform")) { value = a.getValue(); } else if (key.equalsIgnoreCase("Component")) { value = a.getValue(); } else if (key.equalsIgnoreCase("Priority")) { value = a.getValue(); } else if (key.equalsIgnoreCase("URL")) { value = a.getValue(); } else if (key.equalsIgnoreCase("Assign To") || key.equalsIgnoreCase("Assigned To")) { value = a.getValue(); } // add the attribute to the bug post if (value == null) value = ""; form.add(a.getParameterName(), value); } else if (a != null && a.getParameterName() != null && a.getParameterName().compareTo("") != 0 && a.isHidden()) { // we have a hidden attribute, add it to the posting form.add(a.getParameterName(), a.getValue()); } } // set the summary, and description // add the summary to the bug post form.add("short_desc", model.getSummary()); // dummy target milestone form.add("target_milestone", "---"); if (BugzillaPlugin.getDefault().isServerCompatability220()) { form.add("bug_status", "NEW"); } // format the description of the bug so that it is roughly in 80 // character lines formatDescription(); if (model.getDescription().length() != 0) { // add the new comment to the bug post if there is some text in // it form.add("comment", model.getDescription()); } // update the bug on the server try { id = form.post(); if (id != null) { sentSuccessfully = true; } } catch (BugzillaException e) { MessageDialog .openError( null, "I/O Error", "Bugzilla could not post your bug."); BugzillaPlugin.log(e); } catch (PossibleBugzillaFailureException e) { WebBrowserDialog .openAcceptAgreement( null, "Possible Bugzilla Client Failure", "Bugzilla may not have posted your bug.\n" + e.getMessage(), form.getError()); BugzillaPlugin.log(e); } catch (LoginException e) { // if we had an error with logging in, display an error MessageDialog .openError( null, "Posting Error", "Bugzilla could not post your bug since your login name or password is incorrect." + "\nPlease check your settings in the bugzilla preferences. "); sentSuccessfully = false; } } catch (MalformedURLException e) { MessageDialog .openError( null, "Unsupported Protocol", "The server that was specified for Bugzilla is not supported by your JVM." + "\nPlease make sure that you are using a JDK that supports SSL."); BugzillaPlugin.log(e); sentSuccessfully = false; } } }); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/f1213ea5e2cf811886d1cddc204b0d844e76584d/AbstractBugWizard.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/wizard/AbstractBugWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1117,
225,
918,
225,
1836,
12,
6385,
225,
467,
5491,
7187,
225,
6438,
13,
225,
1216,
225,
30015,
225,
288,
9506,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
4236,
7675,
8389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1117,
225,
918,
225,
1836,
12,
6385,
225,
467,
5491,
7187,
225,
6438,
13,
225,
1216,
225,
30015,
225,
288,
9506,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
4236,
7675,
8389,
... | ||
public boolean isSet(org.quickfix.field.InstrAttribType field) | public boolean isSet(quickfix.field.InstrAttribType field) | public boolean isSet(org.quickfix.field.InstrAttribType field) { return isSetField(field); } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityDefinition.java/clean/src/java/src/quickfix/fix44/SecurityDefinition.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
382,
701,
12399,
559,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
382,
701,
12399,
559,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tokenType1 = (!iterator.atEnd() ? iterator.getTokenType():null); | tokenType1 = (!iterator.atEnd() ? getToken(iterator) :null); | private static String getTagName(CharSequence fileText, HighlighterIterator iterator) { IElementType tokenType = iterator.getTokenType(); String name = null; if (tokenType == XmlTokenType.XML_START_TAG_START) { { boolean wasWhiteSpace = false; iterator.advance(); IElementType tokenType1 = (!iterator.atEnd() ? iterator.getTokenType():null); if (tokenType1 == JavaTokenType.WHITE_SPACE) { wasWhiteSpace = true; iterator.advance(); tokenType1 = (!iterator.atEnd() ? iterator.getTokenType():null); } if (tokenType1 == XmlTokenType.XML_TAG_NAME || tokenType1 == XmlTokenType.XML_NAME ) { name = fileText.subSequence(iterator.getStart(), iterator.getEnd()).toString(); } if (wasWhiteSpace) iterator.retreat(); iterator.retreat(); } } else if (tokenType == XmlTokenType.XML_TAG_END || tokenType == XmlTokenType.XML_EMPTY_ELEMENT_END) { { int count = 0; while (true) { iterator.retreat(); count++; if (iterator.atEnd()) break; IElementType tokenType1 = iterator.getTokenType(); if (tokenType1 == XmlTokenType.XML_NAME) { iterator.retreat(); tokenType1 = iterator.getTokenType(); if (tokenType1 == JavaTokenType.WHITE_SPACE) { iterator.retreat(); tokenType1 = iterator.getTokenType(); iterator.advance(); } iterator.advance(); if (tokenType1 == XmlTokenType.XML_START_TAG_START || tokenType1== XmlTokenType.XML_END_TAG_START) { name = fileText.subSequence(iterator.getStart(), iterator.getEnd()).toString(); break; } } else if (tokenType1 == XmlTokenType.XML_TAG_NAME) { name = fileText.subSequence(iterator.getStart(), iterator.getEnd()).toString(); break; } } for (int i = 0; i < count; i++) { iterator.advance(); } } } return name; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/f85099f52d2dfd21d1505b4db03c208994901fae/BraceMatchingUtil.java/clean/source/com/intellij/codeInsight/highlighting/BraceMatchingUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
514,
336,
8520,
12,
2156,
4021,
585,
1528,
16,
15207,
23624,
3198,
2775,
13,
288,
565,
467,
17481,
22302,
273,
2775,
18,
588,
28675,
5621,
565,
514,
508,
273,
446,
31,
565,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
514,
336,
8520,
12,
2156,
4021,
585,
1528,
16,
15207,
23624,
3198,
2775,
13,
288,
565,
467,
17481,
22302,
273,
2775,
18,
588,
28675,
5621,
565,
514,
508,
273,
446,
31,
565,
3... |
} else { return bigNorm(getRuntime(), getValue().pow((int) other.getLongValue())); | public RubyNumeric op_pow(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_pow(other); } else { return bigNorm(getRuntime(), getValue().pow((int) other.getLongValue())); } } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/buggy/src/org/jruby/RubyBignum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
1061,
67,
23509,
12,
7937,
10340,
921,
818,
13,
288,
3639,
19817,
9902,
1308,
273,
6389,
620,
12,
2107,
1769,
3639,
309,
261,
3011,
1276,
19817,
4723,
13,
288,
5411,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
1061,
67,
23509,
12,
7937,
10340,
921,
818,
13,
288,
3639,
19817,
9902,
1308,
273,
6389,
620,
12,
2107,
1769,
3639,
309,
261,
3011,
1276,
19817,
4723,
13,
288,
5411,
32... | |
long length = (long)getLengthProperty(thisObj); | long length = getLengthProperty(thisObj); | private static String toStringHelper(Context cx, Scriptable thisObj, boolean toSource, boolean toLocale) throws JavaScriptException { /* It's probably redundant to handle long lengths in this * function; StringBuffers are limited to 2^31 in java. */ long length = (long)getLengthProperty(thisObj); StringBuffer result = new StringBuffer(256); // whether to return '4,unquoted,5' or '[4, "quoted", 5]' String separator; if (toSource) { result.append('['); separator = ", "; } else { separator = ","; } boolean haslast = false; long i = 0; boolean toplevel, iterating; if (cx.iterating == null) { toplevel = true; iterating = false; cx.iterating = new ObjToIntMap(31); }else { toplevel = false; iterating = cx.iterating.has(thisObj); } // Make sure cx.iterating is set to null when done // so we don't leak memory try { if (!iterating) { cx.iterating.put(thisObj, 0); // stop recursion. for (i = 0; i < length; i++) { if (i > 0) result.append(separator); Object elem = getElem(thisObj, i); if (elem == null || elem == Undefined.instance) { haslast = false; continue; } haslast = true; if (elem instanceof String) { String s = (String)elem; if (toSource) { result.append('\"'); result.append(ScriptRuntime.escapeString(s)); result.append('\"'); } else { result.append(s); } } else { if (toLocale && elem != Undefined.instance && elem != null) { Scriptable obj = ScriptRuntime. toObject(cx, thisObj, elem); Object tls = ScriptRuntime. getProp(obj, "toLocaleString", thisObj); elem = ScriptRuntime.call(cx, tls, elem, ScriptRuntime.emptyArgs); } result.append(ScriptRuntime.toString(elem)); } } } }finally { if (toplevel) { cx.iterating = null; } } if (toSource) { //for [,,].length behavior; we want toString to be symmetric. if (!haslast && i > 0) result.append(", ]"); else result.append(']'); } return result.toString(); } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/5f6a565762eea9efee2aee1297e0f938ac7edf63/NativeArray.java/clean/js/rhino/src/org/mozilla/javascript/NativeArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
1762,
2276,
12,
1042,
9494,
16,
22780,
15261,
16,
29159,
1250,
358,
1830,
16,
1250,
358,
3916,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1748,
2597,
1807,
8656,
19530,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
1762,
2276,
12,
1042,
9494,
16,
22780,
15261,
16,
29159,
1250,
358,
1830,
16,
1250,
358,
3916,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1748,
2597,
1807,
8656,
19530,
3... |
static String trimTextBlock(InputStream is, String delimiter) { String content= JavaCompareUtilities.readString(is); | static String trimTextBlock(String content, String delimiter) { | static String trimTextBlock(InputStream is, String delimiter) { String content= JavaCompareUtilities.readString(is); if (content != null) { String[] lines= Strings.convertIntoLines(content); if (lines != null) { Strings.trimIndentation(lines, JavaCompareUtilities.getTabSize()); return Strings.concatenate(lines, delimiter); } } return null; } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/842e720a9cde68ec64ec235fc48c4158cc8f5bc0/JavaHistoryAction.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaHistoryAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
514,
2209,
1528,
1768,
12,
4348,
353,
16,
514,
5654,
13,
288,
202,
202,
780,
913,
33,
5110,
8583,
11864,
18,
896,
780,
12,
291,
1769,
202,
202,
430,
261,
1745,
480,
446,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
514,
2209,
1528,
1768,
12,
4348,
353,
16,
514,
5654,
13,
288,
202,
202,
780,
913,
33,
5110,
8583,
11864,
18,
896,
780,
12,
291,
1769,
202,
202,
430,
261,
1745,
480,
446,
13... |
if (jj_scan_token(85)) { | if (jj_3R_277()) { | final private boolean jj_3R_274() { Token xsp; xsp = jj_scanpos; if (jj_scan_token(85)) { jj_scanpos = xsp; if (jj_scan_token(84)) { jj_scanpos = xsp; if (jj_scan_token(91)) { jj_scanpos = xsp; if (jj_scan_token(92)) return true; } } } if (jj_3R_266()) return true; return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/d443fc629d3f9538d4772fc74e3c6afa936e3ced/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5324,
24,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
22,
4700... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5324,
24,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
22,
4700... |
Model.getCoreHelper().setStereotype(clone, stereo); | public Object/*MModelElement*/ getElement(Object targetModel) { // // if phantom then // we need to possibly recreate the package structure // in the target model if (thisIsAPhantom && targetModel != null) { Object/*MNamespace*/ targetNS = findNamespace( Model.getFacade().getNamespace(element), targetModel); Object/*MModelElement*/ clone = null; try { clone = element.getClass().getConstructor( new Class[] {}).newInstance(new Object[] {}); Model.getCoreHelper().setName( clone, Model.getFacade().getName(element)); // TODO: MULTIPLESTEREOTYPES Object stereo = CollectionUtil.getFirstItemOrNull( Model.getFacade().getStereotypes(element)); Model.getCoreHelper().setStereotype(clone, stereo); if (Model.getFacade().isAStereotype(clone)) { Model.getExtensionMechanismsHelper().setBaseClass(clone, Model.getFacade().getBaseClass(element)); } Model.getCoreHelper().addOwnedElement(targetNS, clone); element = clone; } catch (Exception ex) { ex.printStackTrace(); } thisIsAPhantom = false; } return element; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/8ba8acaf4914aba6e4c9d3a3691b9420ba04785f/UMLComboBoxEntry.java/buggy/src_new/org/argouml/uml/ui/UMLComboBoxEntry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
20308,
49,
1488,
1046,
5549,
7426,
12,
921,
1018,
1488,
13,
288,
3639,
368,
3639,
368,
225,
309,
25474,
1508,
3639,
368,
565,
732,
1608,
358,
10016,
23052,
326,
2181,
3695,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
20308,
49,
1488,
1046,
5549,
7426,
12,
921,
1018,
1488,
13,
288,
3639,
368,
3639,
368,
225,
309,
25474,
1508,
3639,
368,
565,
732,
1608,
358,
10016,
23052,
326,
2181,
3695,
36... | |
Float x = new Float((String) metadata.get("X origin (in um)")); Float y = new Float((String) metadata.get("Y origin (in um)")); Float z = new Float((String) metadata.get("Z origin (in um)")); | Float x = (Float) metadata.get("X origin (in um)"); Float y = (Float) metadata.get("Y origin (in um)"); Float z = (Float) metadata.get("Z origin (in um)"); | protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessFile(id, "r"); // read in the image header data header = new byte[1024]; in.read(header); int endian = DataTools.bytesToShort(header, 96, 2, true); little = endian == LITTLE_ENDIAN; numImages = DataTools.bytesToInt(header, 8, 4, little); int extSize = DataTools.bytesToInt(header, 92, 4, little); extHeader = new byte[extSize]; in.read(extHeader); Integer sizeX = new Integer(DataTools.bytesToInt(header, 0, 4, little)); Integer sizeY = new Integer(DataTools.bytesToInt(header, 4, 4, little)); metadata.put("ImageWidth", sizeX); metadata.put("ImageHeight", sizeY); metadata.put("NumberOfImages", new Integer(DataTools.bytesToInt(header, 8, 4, little))); int pixelType = DataTools.bytesToInt(header, 12, 4, little); String pixel; String omePixel; switch (pixelType) { case 0: pixel = "8 bit unsigned integer"; omePixel = "Uint8"; break; case 1: pixel = "16 bit signed integer"; omePixel = "int16"; break; case 2: pixel = "32 bit floating point"; omePixel = "float"; break; case 3: pixel = "32 bit complex"; omePixel = "Uint32"; break; case 4: pixel = "64 bit complex"; omePixel = "float"; break; case 6: pixel = "16 bit unsigned integer"; omePixel = "Uint16"; break; default: pixel = "unknown"; omePixel = "Uint8"; } if (ome != null) { OMETools.setPixels(ome, sizeX, sizeY, null, null, null, omePixel, new Boolean(!little), null); } metadata.put("PixelType", pixel); metadata.put("Sub-image starting point (X)", new Integer( DataTools.bytesToInt(header, 16, 4, little))); metadata.put("Sub-image starting point (Y)", new Integer( DataTools.bytesToInt(header, 20, 4, little))); metadata.put("Sub-image starting point (Z)", new Integer( DataTools.bytesToInt(header, 24, 4, little))); metadata.put("Pixel sampling size (X)", new Integer( DataTools.bytesToInt(header, 28, 4, little))); metadata.put("Pixel sampling size (Y)", new Integer( DataTools.bytesToInt(header, 32, 4, little))); metadata.put("Pixel sampling size (Z)", new Integer( DataTools.bytesToInt(header, 36, 4, little))); metadata.put("X element length (in um)", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 40, 4, little)))); metadata.put("Y element length (in um)", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 44, 4, little)))); metadata.put("Z element length (in um)", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 48, 4, little)))); metadata.put("X axis angle", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 52, 4, little)))); metadata.put("Y axis angle", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 56, 4, little)))); metadata.put("Z axis angle", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 60, 4, little)))); metadata.put("Column axis sequence", new Integer( DataTools.bytesToInt(header, 64, 4, little))); metadata.put("Row axis sequence", new Integer( DataTools.bytesToInt(header, 68, 4, little))); metadata.put("Section axis sequence", new Integer( DataTools.bytesToInt(header, 72, 4, little))); metadata.put("Wavelength 1 min. intensity", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 76, 4, little)))); metadata.put("Wavelength 1 max. intensity", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 80, 4, little)))); metadata.put("Wavelength 1 mean intensity", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 84, 4, little)))); metadata.put("Space group number", new Integer( DataTools.bytesToInt(header, 88, 4, little))); metadata.put("Number of Sub-resolution sets", new Integer( DataTools.bytesToInt(header, 132, 2, little))); metadata.put("Z axis reduction quotient", new Integer( DataTools.bytesToInt(header, 134, 2, little))); metadata.put("Wavelength 2 min. intensity", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 136, 4, little)))); metadata.put("Wavelength 2 max. intensity", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 140, 4, little)))); metadata.put("Wavelength 3 min. intensity", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 144, 4, little)))); metadata.put("Wavelength 3 max. intensity", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 148, 4, little)))); metadata.put("Wavelength 4 min. intensity", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 152, 4, little)))); metadata.put("Wavelength 4 max. intensity", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 156, 4, little)))); int type = DataTools.bytesToShort(header, 160, 2, little); String imageType; switch (type) { case 0: imageType = "normal"; break; case 1: imageType = "Tilt-series"; break; case 2: imageType = "Stereo tilt-series"; break; case 3: imageType = "Averaged images"; break; case 4: imageType = "Averaged stereo pairs"; break; default: imageType = "unknown"; } metadata.put("Image Type", imageType); metadata.put("Lens ID Number", new Integer(DataTools.bytesToShort( header, 162, 2, little))); metadata.put("Wavelength 5 min. intensity", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 172, 4, little)))); metadata.put("Wavelength 5 max. intensity", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 176, 4, little)))); int numT = DataTools.bytesToShort(header, 180, 2, little); metadata.put("Number of timepoints", new Integer(numT)); if (ome != null) OMETools.setSizeT(ome, numT); int sequence = DataTools.bytesToInt(header, 182, 4, little); String imageSequence; String dimOrder; switch (sequence) { case 0: imageSequence = "ZTW"; dimOrder = "XYZTC"; break; case 1: imageSequence = "WZT"; dimOrder = "XYCZT"; break; case 2: imageSequence = "ZWT"; dimOrder = "XYZCT"; break; default: imageSequence = "unknown"; dimOrder = "XYZTC"; } metadata.put("Image sequence", imageSequence); if (ome != null) OMETools.setDimensionOrder(ome, dimOrder); metadata.put("X axis tilt angle", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 184, 4, little)))); metadata.put("Y axis tilt angle", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 188, 4, little)))); metadata.put("Z axis tilt angle", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 192, 4, little)))); int numW = DataTools.bytesToShort(header, 196, 2, little); metadata.put("Number of wavelengths", new Integer(numW)); if (ome != null) OMETools.setSizeC(ome, numW); int numZ = numImages / (numW * numT); metadata.put("Number of focal planes", new Integer(numZ)); if (ome != null) OMETools.setSizeZ(ome, numZ); metadata.put("Wavelength 1 (in nm)", new Integer(DataTools.bytesToShort( header, 198, 2, little))); metadata.put("Wavelength 2 (in nm)", new Integer(DataTools.bytesToShort( header, 200, 2, little))); metadata.put("Wavelength 3 (in nm)", new Integer(DataTools.bytesToShort( header, 202, 2, little))); metadata.put("Wavelength 4 (in nm)", new Integer(DataTools.bytesToShort( header, 204, 2, little))); metadata.put("Wavelength 5 (in nm)", new Integer(DataTools.bytesToShort( header, 206, 2, little))); metadata.put("X origin (in um)", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 208, 4, little)))); metadata.put("Y origin (in um)", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 212, 4, little)))); metadata.put("Z origin (in um)", new Float(Float.intBitsToFloat( DataTools.bytesToInt(header, 216, 4, little)))); int numTitles = DataTools.bytesToInt(header, 220, 4, little); if (ome != null) { Float x = new Float((String) metadata.get("X origin (in um)")); Float y = new Float((String) metadata.get("Y origin (in um)")); Float z = new Float((String) metadata.get("Z origin (in um)")); OMETools.setStageLabel(ome, null, x, y, z); } for (int i=1; i<=10; i++) { metadata.put("Title " + i, new String(header, 224 + 80*(i-1), 80)); } if (ome != null) { OMETools.setDescription(ome, (String) metadata.get("Title 1")); } } | 49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/b64df73743ab9e8bb0b0dee6c322b54174d7eea5/DeltavisionReader.java/clean/loci/formats/DeltavisionReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
316,
273,
394,
8072,
26933,
12,
350,
16,
315,
86,
8863,
565,
368,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
316,
273,
394,
8072,
26933,
12,
350,
16,
315,
86,
8863,
565,
368,... |
CVS cvs2 = new CVS(); | CVS cvs2 = new MockCVS("1.11.16"); | public void testGetPropertiesOnlyModifications() throws IOException, ParseException { CVS cvs = new CVS(); cvs.setMailAliases(new Hashtable()); cvs.setProperty("property"); cvs.setPropertyOnDelete("propertyOnDelete"); String logName = "cvslog1-11mods.txt"; BufferedInputStream input = new BufferedInputStream(loadTestLog(logName)); cvs.parseStream(input); input.close(); Hashtable table = cvs.getProperties(); assertNotNull("Table of properties shouldn't be null.", table); assertEquals("Should be one property.", 1, table.size()); assertTrue("Property was not set.", table.containsKey("property")); //negative test CVS cvs2 = new CVS(); cvs2.setMailAliases(new Hashtable()); cvs2.setPropertyOnDelete("propertyOnDelete"); input = new BufferedInputStream(loadTestLog(logName)); cvs2.parseStream(input); input.close(); table = cvs2.getProperties(); assertNotNull("Table of properties shouldn't be null.", table); assertEquals("Shouldn't be any properties.", 0, table.size()); } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/1e56bf7eb709dbc4fec58c75db4e833b9a19585c/CVSTest.java/clean/main/test/net/sourceforge/cruisecontrol/sourcecontrols/CVSTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
2297,
3386,
28340,
1435,
5411,
1216,
1860,
16,
10616,
288,
3639,
385,
14640,
276,
6904,
273,
394,
385,
14640,
5621,
3639,
276,
6904,
18,
542,
6759,
9667,
12,
2704,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
2297,
3386,
28340,
1435,
5411,
1216,
1860,
16,
10616,
288,
3639,
385,
14640,
276,
6904,
273,
394,
385,
14640,
5621,
3639,
276,
6904,
18,
542,
6759,
9667,
12,
2704,
1... |
public ISourcePosition getPosition(LexerSource source, ISourcePosition startPosition); | public ISourcePosition getPosition(ISourcePosition startPosition, boolean inclusive); | public ISourcePosition getPosition(LexerSource source, ISourcePosition startPosition); | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/b1293eda8454686e846e2a9837b348e2983bb423/ISourcePositionFactory.java/buggy/src/org/jruby/lexer/yacc/ISourcePositionFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
1830,
2555,
14441,
12,
13356,
1830,
1084,
16,
467,
1830,
2555,
23549,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
1830,
2555,
14441,
12,
13356,
1830,
1084,
16,
467,
1830,
2555,
23549,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
decDatas[opposing].data.right.alignment = SWT.CENTER; decDatas[opposing].data.right.control = decData.label; | decDatas[opposing].data.left.alignment = SWT.CENTER; decDatas[opposing].data.left.control = decData.label; | private void updateControlAttachments(int index, FieldDecorationData decData) { FormData formData = (FormData) control.getLayoutData(); int newWidth = widthOf(decData.decoration.getImage()); // opposing represents the location of the decoration above or below // the one in question. int opposing; switch (index) { case LEFT_TOP: case LEFT_BOTTOM: if (index == LEFT_TOP) { opposing = LEFT_BOTTOM; } else { opposing = LEFT_TOP; } if (decDatas[opposing] == null) { // No decorator on the opposing side. // Attach the control to this decorator formData.left = new FormAttachment(decData.label); } else if (decDatas[opposing].data.width < newWidth) { // Decorator on opposing side is the smaller one. Attach // control to the new one. formData.left = new FormAttachment(decData.label); // Center align the smaller one relative to the larger one. decDatas[opposing].data.left.alignment = SWT.CENTER; decDatas[opposing].data.left.control = decData.label; } else { // The new decorator is the smaller one. Keep the // control attached to the opposing one. formData = null; // Horizontally center the smaller one relative to the larger one. decData.data.left.alignment = SWT.CENTER; decData.data.left.control = decDatas[opposing].label; } break; /* * The only real difference in right side cases is that we are attaching * the right side of the control to the wider decoration rather than the * left side of the control. Other concerns (horizontally aligning the * smaller decoration relative to the larger one) are the same. */ case RIGHT_TOP: case RIGHT_BOTTOM: if (index == RIGHT_TOP) { opposing = RIGHT_BOTTOM; } else { opposing = RIGHT_TOP; } if (decDatas[opposing] == null) { // No decorator on the opposing side. // Attach the control to this decorator. formData.right = new FormAttachment(decData.label); } else if (decDatas[opposing].data.width < newWidth) { // Decorator on opposing side is the smaller one. Attach // control to the new one. formData.right = new FormAttachment(decData.label); // Center align the smaller one to the larger one. // Note that this could be done using the left or right // attachment, we use the right since it is already // created for all right-side decorations. decDatas[opposing].data.right.alignment = SWT.CENTER; decDatas[opposing].data.right.control = decData.label; } else { // The new decorator is the smaller one. Keep the // control attached to the opposing one. formData = null; // Horizontally center align the smaller one to the // larger one. decData.data.right.alignment = SWT.CENTER; decData.data.right.control = decDatas[opposing].label; } break; default: return; } if (formData != null) { // Form data was updated. control.setLayoutData(formData); form.layout(); } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/df5bcd37c73174e94a49b4618f9df99ae6e646b3/DecoratedField.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
3367,
12961,
12,
474,
770,
16,
2286,
7859,
367,
751,
2109,
751,
13,
288,
202,
202,
30079,
14224,
273,
261,
30079,
13,
3325,
18,
588,
3744,
751,
5621,
202,
202,
474... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
3367,
12961,
12,
474,
770,
16,
2286,
7859,
367,
751,
2109,
751,
13,
288,
202,
202,
30079,
14224,
273,
261,
30079,
13,
3325,
18,
588,
3744,
751,
5621,
202,
202,
474... |
--locked; if(locked==0) this.notifyAll(); if(locked<0) { locked = 0; throw new RuntimeException("INode has been unlocked more than locked"); } } | --locked; if (locked == 0) this.notifyAll(); if (locked < 0) { locked = 0; throw new RuntimeException( "INode has been unlocked more than locked"); } } | public synchronized void decLocked() { --locked; if(locked==0) this.notifyAll(); if(locked<0) { //What!?? locked = 0; throw new RuntimeException("INode has been unlocked more than locked"); } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/4fe0410e3d1e4dea160852289195cd6981c0f456/INode.java/buggy/fs/src/fs/org/jnode/fs/ext2/INode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
2109,
8966,
1435,
288,
202,
202,
413,
15091,
31,
202,
202,
430,
12,
15091,
631,
20,
13,
1082,
202,
2211,
18,
12336,
1595,
5621,
202,
202,
430,
12,
15091,
32,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
2109,
8966,
1435,
288,
202,
202,
413,
15091,
31,
202,
202,
430,
12,
15091,
631,
20,
13,
1082,
202,
2211,
18,
12336,
1595,
5621,
202,
202,
430,
12,
15091,
32,
20,
... |
"element:CompletionSuperClass.Inner completion:Inner relevance:"+(R_DEFAULT + R_CASE + R_CLASS), | "element:CompletionSuperClass.Inner completion:Inner relevance:"+(R_DEFAULT + R_INTERESTING + R_CASE + R_CLASS), | public void testCompletionSuperType() throws JavaModelException { CompletionTestsRequestor requestor = new CompletionTestsRequestor(); ICompilationUnit cu= getCompilationUnit("Completion", "src", "", "CompletionSuperType.java"); String str = cu.getSource(); String completeBehind = "CompletionSuperClass."; int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); cu.codeComplete(cursorLocation, requestor); assertEquals( "element:CompletionSuperClass.Inner completion:Inner relevance:"+(R_DEFAULT + R_CASE + R_CLASS), requestor.getResults());} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/19f877ebda77ddbed491e9995da1ca3e7aa021c9/CompletionTests.java/buggy/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/CompletionTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1842,
11238,
8051,
559,
1435,
1216,
5110,
1488,
503,
288,
202,
11238,
4709,
8943,
280,
590,
280,
273,
394,
20735,
4709,
8943,
280,
5621,
202,
45,
19184,
2802,
15985,
33,
336,
19184,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1842,
11238,
8051,
559,
1435,
1216,
5110,
1488,
503,
288,
202,
11238,
4709,
8943,
280,
590,
280,
273,
394,
20735,
4709,
8943,
280,
5621,
202,
45,
19184,
2802,
15985,
33,
336,
19184,
... |
advisor.initialize(getWorkbenchConfigurer()); | advisor.basicInitialize(getWorkbenchConfigurer()); | private boolean init(Display display) { // setup debug mode if required. if (WorkbenchPlugin.getDefault().isDebugging()) { WorkbenchPlugin.DEBUG = true; ModalContext.setDebugMode(true); } // create workbench window manager windowManager = new WindowManager(); IIntroRegistry introRegistry = WorkbenchPlugin.getDefault().getIntroRegistry(); if (introRegistry.getIntroCount() > 0) { IProduct product = Platform.getProduct(); if (product != null) { introDescriptor = (IntroDescriptor) introRegistry.getIntroForProduct(product.getId()); } } // begin the initialization of the activity, command, and context // managers workbenchActivitySupport = new WorkbenchActivitySupport(); workbenchCommandSupport = new WorkbenchCommandSupport(this); workbenchContextSupport = new WorkbenchContextSupport(this); workbenchCommandSupport.getCommandManager().addCommandManagerListener( commandManagerListener); workbenchContextSupport.getContextManager().addContextManagerListener( contextManagerListener); initializeCommandResolver(); addWindowListener(windowListener); // end the initialization of the activity, command, and context // managers // allow the workbench configurer to initialize getWorkbenchConfigurer().init(); initializeImages(); initializeFonts(); initializeColors(); initializeApplicationColors(); // now that the workbench is sufficiently initialized, let the advisor // have a turn. advisor.initialize(getWorkbenchConfigurer()); // configure use of color icons in toolbars boolean useColorIcons = getPreferenceStore().getBoolean(IPreferenceConstants.COLOR_ICONS); ActionContributionItem.setUseColorIconsInToolbars(useColorIcons); // initialize workbench single-click vs double-click behavior initializeSingleClickOption(); // deadlock code boolean avoidDeadlock = true; String[] commandLineArgs = Platform.getCommandLineArgs(); for (int i = 0; i < commandLineArgs.length; i++) { if (commandLineArgs[i].equalsIgnoreCase("-allowDeadlock")) //$NON-NLS-1$ avoidDeadlock = false; } if (avoidDeadlock) { UILockListener uiLockListener = new UILockListener(display); Platform.getJobManager().setLockListener(uiLockListener); display.setSynchronizer(new UISynchronizer(display, uiLockListener)); } // initialize activity helper. TODO why does this belong here and not // up further in the main initialization section for activities? activityHelper = ActivityPersistanceHelper.getInstance(); // attempt to restore a previous workbench state try { UIStats.start(UIStats.RESTORE_WORKBENCH, "Workbench"); //$NON-NLS-1$ advisor.preStartup(); int restoreCode = openPreviousWorkbenchState(); if (restoreCode == RESTORE_CODE_EXIT) { return false; } if (restoreCode == RESTORE_CODE_RESET) { openFirstTimeWindow(); }// if (!advisor.openWindows()) {// return false;// } } finally { UIStats.end(UIStats.RESTORE_WORKBENCH, "Workbench"); //$NON-NLS-1$ } forceOpenPerspective(); isStarting = false; return true; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/4c21e5e4020ce9a967fbe0bdd0fcd2fef60efb78/Workbench.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
1208,
12,
4236,
2562,
13,
288,
202,
202,
759,
3875,
1198,
1965,
309,
1931,
18,
202,
202,
430,
261,
2421,
22144,
3773,
18,
588,
1868,
7675,
291,
2829,
1998,
10756,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
1208,
12,
4236,
2562,
13,
288,
202,
202,
759,
3875,
1198,
1965,
309,
1931,
18,
202,
202,
430,
261,
2421,
22144,
3773,
18,
588,
1868,
7675,
291,
2829,
1998,
10756,
288,
... |
if (currentDepth == 1) | nextAtom = bonds[f].getConnectedAtom(root); /* try | static void depthFirstSearch(AtomContainer ac, Atom root, String currentPath, int currentDepth) { Bond[] bonds = ac.getConnectedBonds(root); Atom nextAtom = null; String newPath = null; currentDepth++; for (int f = 0; f < bonds.length; f++) { if (currentDepth == 1) { for (int g = 0; g < ac.getAtomCount(); g++) { ac.getAtomAt(g).setFlag(CDKConstants.VISITED, false); } root.setFlag(CDKConstants.VISITED, true); } nextAtom = bonds[f].getConnectedAtom(root); if (!nextAtom.getFlag(CDKConstants.VISITED)) { newPath = new String(currentPath); if (bonds[f].getFlag(CDKConstants.ISAROMATIC)) { newPath += ":"; } else if (bonds[f].getOrder() == 1) { newPath += "-"; } else if (bonds[f].getOrder() == 2) { newPath += "="; } else if (bonds[f].getOrder() == 3) { newPath += "#"; } newPath += nextAtom.getSymbol(); nextAtom.setFlag(CDKConstants.VISITED, true); checkAndStore(newPath); if (currentDepth == searchDepth) { return; } if (currentDepth < searchDepth) { depthFirstSearch(ac, nextAtom, newPath, currentDepth); } } } } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/6dbd05295b319887961a99946a9a4241c6040802/Fingerprinter.java/buggy/src/org/openscience/cdk/fingerprint/Fingerprinter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
918,
3598,
3759,
2979,
12,
3641,
2170,
1721,
16,
7149,
1365,
16,
514,
18027,
16,
509,
783,
6148,
13,
202,
95,
202,
202,
9807,
8526,
15692,
273,
1721,
18,
588,
8932,
26090,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
918,
3598,
3759,
2979,
12,
3641,
2170,
1721,
16,
7149,
1365,
16,
514,
18027,
16,
509,
783,
6148,
13,
202,
95,
202,
202,
9807,
8526,
15692,
273,
1721,
18,
588,
8932,
26090,
12... |
String configFormat = System.getProperty("org.cougaar.core.node.InitializationComponent"); if (!"XML".equals(configFormat)) { | if (!includesDefaultComponents) { | private List readDescsFromConfig() { List l = new ArrayList(); // get ".ini" descriptions ComponentInitializerService cis = (ComponentInitializerService) sb.getService(this, ComponentInitializerService.class, null); try { ComponentDescription[] descs = cis.getComponentDescriptions( localAgent.toString(), Agent.INSERTION_POINT); int n = (descs == null ? 0 : descs.length); for (int i = 0; i < n; i++) { l.add(descs[i]); } } catch (ComponentInitializerService.InitializerException cise) { if (log.isInfoEnabled()) { log.info("\nUnable to add "+localAgent+"'s components", cise); } } finally { sb.releaseService(this, ComponentInitializerService.class, cis); } String configFormat = System.getProperty("org.cougaar.core.node.InitializationComponent"); if (!"XML".equals(configFormat)) { // backwards compatibility for non-XML configs! // // convert to component descriptions, for priority-based sorting ComponentDescriptions descs = new ComponentDescriptions(l); // add hard-coded "template" components and convert into // sorted list l = DefaultComponents.getHardCodedComponents(descs, isNode); } // return list of ComponentDescriptions and StateTuples return l; } | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/acdaf9aef2111808018ed8104dd26f266592614f/FindComponentsEarly.java/clean/core/src/org/cougaar/core/agent/FindComponentsEarly.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
987,
855,
4217,
87,
22102,
1435,
288,
565,
987,
328,
273,
394,
2407,
5621,
565,
368,
336,
3552,
8767,
6,
15550,
565,
5435,
14729,
1179,
276,
291,
273,
261,
1841,
14729,
1179,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
987,
855,
4217,
87,
22102,
1435,
288,
565,
987,
328,
273,
394,
2407,
5621,
565,
368,
336,
3552,
8767,
6,
15550,
565,
5435,
14729,
1179,
276,
291,
273,
261,
1841,
14729,
1179,
13,
... |
public DeleteCommand(OsmPrimitive osm) { CollectBackReferencesVisitor v = new CollectBackReferencesVisitor(Main.ds); osm.visit(v); data.addAll(v.data); data.add(osm); | public DeleteCommand(Collection<OsmPrimitive> data) { this.data = data; | public DeleteCommand(OsmPrimitive osm) { CollectBackReferencesVisitor v = new CollectBackReferencesVisitor(Main.ds); osm.visit(v); data.addAll(v.data); data.add(osm); } | 2204 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2204/368d365905b2cc9169f4c778f2416875cf2d3266/DeleteCommand.java/buggy/src/org/openstreetmap/josm/command/DeleteCommand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2504,
2189,
12,
51,
4808,
9840,
1140,
81,
13,
288,
202,
202,
10808,
2711,
8221,
7413,
331,
273,
394,
9302,
2711,
8221,
7413,
12,
6376,
18,
2377,
1769,
202,
202,
538,
81,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2504,
2189,
12,
51,
4808,
9840,
1140,
81,
13,
288,
202,
202,
10808,
2711,
8221,
7413,
331,
273,
394,
9302,
2711,
8221,
7413,
12,
6376,
18,
2377,
1769,
202,
202,
538,
81,
18,
... |
public void initVolumeDescriptors() throws IOException { int currentLBN = 16; byte[] buff = new byte[ISO9660FileSystem.DefaultLBNSize]; while(true) { this.readFromLBN(currentLBN,0,buff,0,ISO9660FileSystem.DefaultLBNSize); VolumeDescriptor vd = new VolumeDescriptor(this,buff); if(vd.getType() == VolumeDescriptor.VolumeSetTerminator_TYPE) return; if(vd.getType() == VolumeDescriptor.PrimaryVolumeDescriptor_TYPE) { this.setVolumeDescriptor(vd); } /* if(vd.getType() == VolumeDescriptor.SupplementaryVolumeDescriptor_TYPE) { this.setVolumeDescriptor(vd); } */ currentLBN++; } } | public void initVolumeDescriptors() throws IOException { int currentLBN = 16; byte[] buff = new byte[ ISO9660FileSystem.DefaultLBNSize]; while (true) { this.readFromLBN(currentLBN, 0, buff, 0, ISO9660FileSystem.DefaultLBNSize); VolumeDescriptor vd = new VolumeDescriptor(this, buff); if (vd.getType() == VolumeDescriptor.VolumeSetTerminator_TYPE) return; if (vd.getType() == VolumeDescriptor.PrimaryVolumeDescriptor_TYPE) { this.setVolumeDescriptor(vd); } /* * if(vd.getType() == * VolumeDescriptor.SupplementaryVolumeDescriptor_TYPE) { * this.setVolumeDescriptor(vd); } */ currentLBN++; } } | public void initVolumeDescriptors() throws IOException { int currentLBN = 16; byte[] buff = new byte[ISO9660FileSystem.DefaultLBNSize]; while(true) { // read the LB this.readFromLBN(currentLBN,0,buff,0,ISO9660FileSystem.DefaultLBNSize); VolumeDescriptor vd = new VolumeDescriptor(this,buff); if(vd.getType() == VolumeDescriptor.VolumeSetTerminator_TYPE) return; if(vd.getType() == VolumeDescriptor.PrimaryVolumeDescriptor_TYPE) { this.setVolumeDescriptor(vd); } /* if(vd.getType() == VolumeDescriptor.SupplementaryVolumeDescriptor_TYPE) { this.setVolumeDescriptor(vd); } */ currentLBN++; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/ISO9660Volume.java/clean/fs/src/fs/org/jnode/fs/iso9660/ISO9660Volume.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
4545,
12705,
1435,
1216,
1860,
202,
95,
202,
202,
474,
783,
12995,
50,
273,
2872,
31,
202,
202,
7229,
8526,
6139,
273,
394,
1160,
63,
12609,
10525,
4848,
11785,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
4545,
12705,
1435,
1216,
1860,
202,
95,
202,
202,
474,
783,
12995,
50,
273,
2872,
31,
202,
202,
7229,
8526,
6139,
273,
394,
1160,
63,
12609,
10525,
4848,
11785,
18,
... |
public HostObject(WorldObject parent, BasicMonitoredObject monitoredHost, DataAssociation asso) { | public HostObject(WorldObject parent, BasicMonitoredObject monitoredHost, MonitoredObjectSet objectSet) { | public HostObject(WorldObject parent, BasicMonitoredObject monitoredHost, DataAssociation asso) { super(parent); this.asso = asso; // Test if there is port defined, then remove it to see if hostname exists try { this.hostname = monitoredHost.getFullName(); String shortHostname = UrlBuilder.getHostNameorIP(java.net.InetAddress.getByName( UrlBuilder.removePortFromHost(hostname))); this.monitoredHost = monitoredHost; //controller.log("HostObject "+this.hostname+ " created"); } catch (java.net.UnknownHostException e) { this.hostname = monitoredHost.getFullName(); controller.warn("Hostname " + hostname + " failed reverse lookup."); }// if ("ibis".equals(protocol)) {// this.nodeFinder = new IbisHostNodeFinder(controller);// } else if ("http".equals(protocol)) {// this.nodeFinder = new HttpHostNodeFinder(controller);// } else {// this.nodeFinder = new RMIHostNodeFinder(controller);// } } | 23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/3c8dcbce5b12b18f3cb7fa6f4a4cf723face3153/HostObject.java/buggy/src/org/objectweb/proactive/ic2d/data/HostObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4893,
921,
12,
18071,
921,
982,
16,
7651,
11415,
20425,
921,
28651,
2594,
16,
9041,
20425,
921,
694,
733,
694,
13,
288,
3639,
2240,
12,
2938,
1769,
3639,
333,
18,
428,
83,
273,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4893,
921,
12,
18071,
921,
982,
16,
7651,
11415,
20425,
921,
28651,
2594,
16,
9041,
20425,
921,
694,
733,
694,
13,
288,
3639,
2240,
12,
2938,
1769,
3639,
333,
18,
428,
83,
273,
15... |
this.context = new AuthenticationContext(this); | this.context.init(this); | public UserHandler(HandlerConfiguration handler) { this.handler = handler; this.context = new AuthenticationContext(this); } | 46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/b956c801de001ce6f7f6836ed94a5d647ac884c9/UserHandler.java/buggy/src/blocks/authentication-fw/java/org/apache/cocoon/webapps/authentication/user/UserHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2177,
1503,
12,
1503,
1750,
1838,
13,
288,
3639,
333,
18,
4176,
273,
1838,
31,
3639,
333,
18,
2472,
18,
2738,
12,
2211,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2177,
1503,
12,
1503,
1750,
1838,
13,
288,
3639,
333,
18,
4176,
273,
1838,
31,
3639,
333,
18,
2472,
18,
2738,
12,
2211,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
296, 297, -1, -1, 338, 262, 263, 264, 0, 343, 267, 268, 269, -1, 271, -1, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, -1, 0, -1, -1, 343, -1, 41, -1, -1, 44, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, -1, 41, 343, -1, 44, -1, | 296, 297, -1, 338, -1, 0, -1, -1, 343, -1, 41, -1, -1, 44, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, -1, 41, 343, -1, 44, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, 93, 58, 59, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 125, -1, -1, 41, 93, -1, 44, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 125, -1, -1, 41, -1, -1, 44, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, | private static final short[] yyCheck3() { return new short[] { -1, -1, 10, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 0, -1, -1, -1, -1, -1, -1, -1, 281, 282, 10, -1, -1, 124, 125, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 58, 59, 333, 334, -1, 63, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, 93, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, -1, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, -1, -1, 93, 94, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 38, -1, -1, 41, -1, 43, 44, 45, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, 326, 62, 63, 329, 330, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, -1, 0, 343, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38, -1, -1, 41, -1, 43, 44, 45, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 124, 125, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, 38, -1, 338, 41, -1, -1, 44, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, 37, 38, -1, 93, 94, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38, -1, 60, 41, 62, 63, 44, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38, -1, -1, 41, -1, -1, 44, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 124, 125, -1, -1, -1, -1, -1, 281, 282, -1, -1, 94, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, 0, -1, -1, -1, -1, -1, -1, -1, 281, 282, 10, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 58, 59, 60, -1, 62, 63, -1, 338, -1, -1, -1, -1, 343, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 318, 319, 320, 321, 322, 323, 324, 93, 94, 327, 328, -1, -1, -1, -1, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, 125, -1, -1, -1, -1, -1, 281, 282, -1, 94, -1, 96, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, -1, -1, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, 0, 293, 294, 295, 296, 297, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 41, -1, -1, 44, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, 58, 59, 60, -1, 62, 63, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, 0, 293, 294, 295, 296, 297, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 41, -1, -1, 44, -1, 338, -1, 125, -1, -1, 343, 304, 305, -1, -1, 308, -1, 58, 59, 60, -1, 62, 63, 316, 317, 318, 319, 320, 321, -1, 323, 324, 0, -1, 327, -1, -1, -1, 331, 332, 333, 334, 10, -1, -1, -1, -1, -1, -1, -1, -1, 344, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, 125, -1, -1, -1, -1, -1, 281, 282, -1, -1, 41, -1, -1, 44, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 58, 59, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, -1, -1, -1, -1, 93, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, 125, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, -1, -1, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, 0, -1, -1, -1, -1, -1, -1, -1, 281, 282, 10, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 58, 59, -1, -1, -1, 63, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, 93, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, 125, -1, 41, -1, -1, 44, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 325, 326, -1, 63, 329, 330, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, -1, 0, 343, 41, -1, -1, 44, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 125, -1, -1, 0, -1, -1, -1, -1, -1, -1, 58, 59, -1, 10, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, 41, 93, -1, 44, -1, -1, -1, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, 58, 59, -1, 10, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, 125, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, 41, 93, -1, 44, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 325, 326, -1, 63, 329, 330, -1, -1, -1, -1, -1, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 93, -1, -1, 58, 59, -1, -1, -1, 63, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 262, 263, 264, -1, 125, 267, 268, 269, -1, 271, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 325, 326, -1, -1, 329, 330, 293, 294, 295, 296, 297, -1, -1, 338, 262, 263, 264, 125, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 325, 326, -1, -1, 329, 330, -1, 281, 282, -1, -1, -1, -1, 338, -1, -1, 290, 291, 343, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 325, 326, -1, -1, 329, 330, -1, 281, 282, -1, -1, -1, -1, 338, -1, -1, 290, 291, 343, 293, 294, 295, 296, 297, 0, -1, 262, 263, 264, -1, -1, 267, 268, 269, 10, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, 0, -1, 338, 41, -1, -1, 44, 343, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 338, 41, -1, -1, 44, 343, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 41, -1, -1, 44, -1, -1, -1, 125, 10, -1, -1, -1, -1, 93, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 41, -1, -1, 44, -1, -1, 125, 10, -1, -1, -1, -1, -1, 93, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 41, -1, -1, 44, -1, -1, -1, 125, 10, -1, -1, -1, -1, -1, 93, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 125, -1, -1, -1, -1, -1, 93, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, 125, -1, 281, 282, -1, -1, -1, 93, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 125, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, -1, 262, 263, 264, 343, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 338, 262, 263, 264, 0, 343, 267, 268, 269, -1, 271, -1, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, -1, 0, -1, -1, 343, -1, 41, -1, -1, 44, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, -1, 41, 343, -1, 44, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, 93, 58, 59, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 125, -1, -1, 41, 93, -1, 44, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 125, -1, -1, 41, -1, -1, 44, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, 41, -1, -1, 44, -1, 10, -1, -1, -1, -1, -1, 125, -1, -1, -1, 93, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, 93, 58, 59, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, 0, -1, -1, 281, 282, -1, -1, 125, -1, -1, 10, 93, 290, 291, -1, 293, 294, 295, 296, 297, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, 41, -1, 125, 44, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, 93, -1, -1, 338, -1, -1, 290, 291, 343, 293, 294, 295, 296, 297, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 125, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, 0, -1, -1, 281, 282, -1, -1, -1, -1, -1, 10, -1, 290, 291, -1, 293, 294, 295, 296, 297, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, 0, -1, -1, 281, 282, 41, -1, -1, 44, -1, 10, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, 338, -1, -1, -1, -1, 343, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, 93, 58, 59, 338, -1, -1, -1, -1, 343, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, -1, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, 94, -1, 125, -1, -1, -1, 93, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 124, -1, -1, -1, -1, -1, -1, -1, 125, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 343, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 0, 91, -1, -1, 94, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, 124, 125, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, 91, -1, -1, 94, 290, 291, -1, 293, 294, 295, 296, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 125, -1, -1, -1, -1, -1, -1, -1, 281, 282, 124, 125, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, -1, -1, -1, -1, 333, 334, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 343, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, 290, 291, 281, 293, 294, 295, 296, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 37, 38, 338, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, 0, 47, -1, -1, -1, -1, 91, -1, -1, 94, 10, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 124, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 91, -1, 0, 94, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, 41, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, 91, -1, -1, 94, 10, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, 124, 125, 41, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 125, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 0, -1, 338, 93, -1, -1, -1, -1, -1, -1, 10, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, 318, 319, 320, 321, 322, 323, 324, 325, -1, 327, 328, -1, -1, -1, 125, 333, 334, -1, 290, 291, 41, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, 337, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 290, 291, -1, 293, 294, 295, 296, 297, 281, 0, 125, -1, -1, -1, -1, -1, -1, 290, 291, 10, 293, 294, 295, 296, 297, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 59, 60, 61, 62, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, 0, -1, 290, 291, -1, 293, 294, 295, 296, 297, 10, -1, -1, -1, -1, -1, -1, 91, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, 91, 290, 291, 94, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 124, 125, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, 336, -1, -1, 339, 340, 341, 342, -1, 126, -1, 346, 347, 348, 349, 350, 351, 33, -1, 290, 291, 356, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, 33, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 256, 257, 258, 259, 260, 261, 59, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, }; } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/clean/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
23,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
300,
21,
16,
282,
300,
21,
16,
282,
1728,
16,
282,
300,
21,
16,
225,
890,
8942,
16,
282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
23,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
300,
21,
16,
282,
300,
21,
16,
282,
1728,
16,
282,
300,
21,
16,
225,
890,
8942,
16,
282,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.