rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
slot.setDisplayNameID( "Data Sets" ); slot.setName( "dataSets" ); slot.setMultipleCardinality( true ); slot.addType( ReportDesignConstants.DATA_SOURCE_ELEMENT ); label.addSlot( slot ); | MetadataTestUtil.setDisplayNameKey( slot, "Data Sets" ); MetadataTestUtil.setName( slot, "dataSets" ); MetadataTestUtil.setMultipleCardinality( slot, true ); MetadataTestUtil.addType( slot, ReportDesignConstants.DATA_SOURCE_ELEMENT ); MetadataTestUtil.addSlot( label, slot ); | public void testAddSlotToElement( ) { // Get an element from dictionary ElementDefn label = (ElementDefn) MetaDataDictionary.getInstance( ) .getElement( ReportDesignConstants.LABEL_ITEM ); assertEquals( 0, label.getSlotCount( ) ); // Add one slot SlotDefn slot = new SlotDefn( ); slot.setDisplayNameID( "Data Sets" ); //$NON-NLS-1$ slot.setName( "dataSets" ); //$NON-NLS-1$ slot.setMultipleCardinality( true ); slot.addType( ReportDesignConstants.DATA_SOURCE_ELEMENT ); label.addSlot( slot ); assertEquals( 1, label.getSlotCount( ) ); // Add another slot label.addSlot( slot ); assertEquals( 2, label.getSlotCount( ) ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/0115a332efae7883ec3d1205f01f11f15df413fc/ElementDefnTest.java/buggy/model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/metadata/ElementDefnTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
986,
8764,
774,
1046,
12,
262,
202,
95,
202,
202,
759,
968,
392,
930,
628,
3880,
202,
202,
1046,
3262,
82,
1433,
273,
261,
1046,
3262,
82,
13,
27512,
10905,
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,
225,
202,
482,
918,
1842,
986,
8764,
774,
1046,
12,
262,
202,
95,
202,
202,
759,
968,
392,
930,
628,
3880,
202,
202,
1046,
3262,
82,
1433,
273,
261,
1046,
3262,
82,
13,
27512,
10905,
18,
5... |
this.pkg = isCaseSensitive ? pkg : CharOperation.toLowerCase(pkg); if (isCaseSensitive || enclosingTypeNames == null) { this.enclosingTypeNames = enclosingTypeNames; } else { int length = enclosingTypeNames.length; this.enclosingTypeNames = new char[length][]; for (int i = 0; i < length; i++){ this.enclosingTypeNames[i] = CharOperation.toLowerCase(enclosingTypeNames[i]); } } this.simpleName = isCaseSensitive ? simpleName : CharOperation.toLowerCase(simpleName); this.classOrInterface = classOrInterface; this.needsResolve = pkg != null && enclosingTypeNames != null; | public TypeDeclarationPattern( char[] pkg, char[][] enclosingTypeNames, char[] simpleName, char classOrInterface, int matchMode, boolean isCaseSensitive) { super(matchMode, isCaseSensitive); this.pkg = isCaseSensitive ? pkg : CharOperation.toLowerCase(pkg); if (isCaseSensitive || enclosingTypeNames == null) { this.enclosingTypeNames = enclosingTypeNames; } else { int length = enclosingTypeNames.length; this.enclosingTypeNames = new char[length][]; for (int i = 0; i < length; i++){ this.enclosingTypeNames[i] = CharOperation.toLowerCase(enclosingTypeNames[i]); } } this.simpleName = isCaseSensitive ? simpleName : CharOperation.toLowerCase(simpleName); this.classOrInterface = classOrInterface; this.needsResolve = pkg != null && enclosingTypeNames != null;} | 12408 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12408/97695ccc3a078d804bc7df2ed83ae543abea2e44/TypeDeclarationPattern.java/clean/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/TypeDeclarationPattern.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1412,
6094,
3234,
12,
202,
3001,
8526,
3475,
16,
202,
3001,
63,
6362,
65,
16307,
559,
1557,
16,
202,
3001,
8526,
4143,
461,
16,
202,
3001,
667,
1162,
1358,
16,
202,
474,
845,
2309,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1412,
6094,
3234,
12,
202,
3001,
8526,
3475,
16,
202,
3001,
63,
6362,
65,
16307,
559,
1557,
16,
202,
3001,
8526,
4143,
461,
16,
202,
3001,
667,
1162,
1358,
16,
202,
474,
845,
2309,
16,... | |
Map pushers; synchronized(pushObservers) { pushers = new HashMap(pushObservers); pushObservers.clear(); } for(Iterator i = pushers.values().iterator(); i.hasNext(); ) { | List pushObservers = pushes.getAllAndClear(); for(Iterator i = pushObservers.iterator(); i.hasNext(); ) { | private void killAllWorkers() { List workers = getAllWorkers(); // cannot interrupt while iterating through the main list, because that // could cause ConcurrentMods. for (Iterator iter = workers.iterator(); iter.hasNext();) { DownloadWorker doomed = (DownloadWorker) iter.next(); doomed.interrupt(); } Map pushers; synchronized(pushObservers) { pushers = new HashMap(pushObservers); pushObservers.clear(); } // cannot iterate over pushObservers because shutdown may attempt // to remove from it. for(Iterator i = pushers.values().iterator(); i.hasNext(); ) { HTTPConnectObserver next = (HTTPConnectObserver)i.next(); next.shutdown(); } } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/e9fed1b324ca5e2eae31dea559710ddd249677ed/ManagedDownloader.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/downloader/ManagedDownloader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
8673,
1595,
15252,
1435,
288,
3639,
987,
9798,
273,
5514,
15252,
5621,
7734,
368,
2780,
13123,
1323,
13099,
3059,
326,
2774,
666,
16,
2724,
716,
3639,
368,
3377,
4620,
15242,
173... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8673,
1595,
15252,
1435,
288,
3639,
987,
9798,
273,
5514,
15252,
5621,
7734,
368,
2780,
13123,
1323,
13099,
3059,
326,
2774,
666,
16,
2724,
716,
3639,
368,
3377,
4620,
15242,
173... |
stateChange(CLASS_LOADED); | stateChange(CLASS_LOADED); Object object = null; | void createApplet() { panel = new KJASAppletPanel(); frame = new JFrame(windowName); // under certain circumstances, it may happen that the // applet is not embedded but shown in a separate window. // think of konqueror running under fvwm or gnome. // than, the user should have the ability to close the window. frame.addWindowListener ( new WindowAdapter() { public void windowClosing(WindowEvent e) { me.destroyApplet(); } } ); frame.getContentPane().add( "Center", panel ); frame.pack(); frame.setVisible(true); loader.addStatusListener(panel); runThread = new Thread ( new Runnable() { public void run() { //this order is very important and took a long time //to figure out- don't modify it unless there are //real bug fixes // till 2002 09 18 // commented out the synchronized block because // it leads to a deadlock of the JVM with // j2re 1.4.1 //synchronized( me ) { try { appletClass = loader.loadClass( className ); } catch (Exception e) { Main.kjas_err("Class could not be loaded: " + className, e); setFailed(e.toString()); return; } if (Thread.interrupted()) return; stateChange(CLASS_LOADED); try { synchronized (appletClass) { app = (Applet) appletClass.newInstance(); } } catch( InstantiationException e ) { Main.kjas_err( "Could not instantiate applet", e ); setFailed(e.toString()); return; } catch( IllegalAccessException e ) { Main.kjas_err( "Could not instantiate applet", e ); setFailed(e.toString()); return; } //} // synchronized if (Thread.interrupted()) return; app.setStub( me ); stateChange(INSTANCIATED); app.setVisible(false); panel.setApplet( app ); app.setSize(appletSize.getWidth() > 0 ? appletSize : panel.getSize()); try { app.init(); } catch (Error er) { Main.info("Error " + er.toString() + " during applet initialization"); er.printStackTrace(); setFailed(er.toString()); return; } catch (Exception ex) { Main.info("Exception " + ex.toString() + " during applet initialization"); ex.printStackTrace(); setFailed(ex.toString()); return; } if (Thread.interrupted()) return; stateChange(INITIALIZED); loader.removeStatusListener(panel); app.setVisible(true); //panel.validate(); // stop the loading... animation panel.stopAnimation(); // create a new thread, so we know, when the applet was started /*Thread appletThread = new KJASAppletThread(me, "KJAS-Applet-" + appletID + "-" + appletName); appletThread.start(); state = STARTED; context.showStatus("Applet " + appletName + " started.");*/ } } , "KJAS-AppletStub-" + appletID + "-" + appletName); runThread.setContextClassLoader(loader); runThread.start(); } | 45545 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45545/6f611e66cd6be9441f9a344ac15ab77d6489ca32/KJASAppletStub.java/clean/khtml/java/org/kde/kjas/server/KJASAppletStub.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
752,
23696,
1435,
288,
3639,
6594,
273,
394,
1475,
46,
3033,
23696,
5537,
5621,
3639,
2623,
273,
394,
804,
3219,
12,
5668,
461,
1769,
3639,
368,
3613,
8626,
29951,
2639,
16,
518,
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,
918,
752,
23696,
1435,
288,
3639,
6594,
273,
394,
1475,
46,
3033,
23696,
5537,
5621,
3639,
2623,
273,
394,
804,
3219,
12,
5668,
461,
1769,
3639,
368,
3613,
8626,
29951,
2639,
16,
518,
202... |
Object val) throws CalFacadeException; | Object val, boolean debug) throws CalFacadeException; | public void initialise(String userid, CallBack cb, Object val) throws CalFacadeException; | 50848 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50848/63264e887bd2ff8e71a6eedc91b0039364a7c220/UserAuth.java/buggy/calendar3/calFacade/src/org/bedework/calfacade/svc/UserAuth.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
21301,
12,
780,
6709,
16,
3049,
2711,
2875,
16,
7682,
1033,
1244,
13,
1216,
3596,
12467,
503,
31,
2,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
21301,
12,
780,
6709,
16,
3049,
2711,
2875,
16,
7682,
1033,
1244,
13,
1216,
3596,
12467,
503,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
throw new RuntimeException(e.toString()); | throw new DbcpException(e); | public Connection createConnection() { try { return _driver.connect(_connectUri,_props); } catch(SQLException e) { throw new RuntimeException(e.toString()); } } | 50976 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50976/fb0daa2dedafffab350ddb069e54de21ca3f2b3c/DriverConnectionFactory.java/buggy/src/java/org/apache/commons/dbcp/DriverConnectionFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4050,
27870,
1435,
288,
3639,
775,
288,
5411,
327,
389,
7407,
18,
3612,
24899,
3612,
3006,
16,
67,
9693,
1769,
3639,
289,
1044,
12,
23116,
425,
13,
288,
5411,
604,
394,
8408,
4057,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4050,
27870,
1435,
288,
3639,
775,
288,
5411,
327,
389,
7407,
18,
3612,
24899,
3612,
3006,
16,
67,
9693,
1769,
3639,
289,
1044,
12,
23116,
425,
13,
288,
5411,
604,
394,
8408,
4057,
... |
initializeLookAndFeel(); | this.initializeLookAndFeel(); | public boolean initGraphics() { initializeLookAndFeel(); IconBox.loadIcons(); mainWindow = new MainWindow(this); configWindow = new ConfigWindow(this); configWindow.setVisible(false); return true; } | 47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/88402a3bc59123261d50a7cfed0ac20de2b772f6/Core.java/clean/src/thaw/core/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1208,
17558,
1435,
288,
202,
202,
11160,
9794,
1876,
2954,
292,
5621,
202,
202,
5554,
3514,
18,
945,
27510,
5621,
202,
202,
5254,
3829,
273,
394,
12740,
3829,
12,
2211,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
1208,
17558,
1435,
288,
202,
202,
11160,
9794,
1876,
2954,
292,
5621,
202,
202,
5554,
3514,
18,
945,
27510,
5621,
202,
202,
5254,
3829,
273,
394,
12740,
3829,
12,
2211,
17... |
{ emitCatchEnd(); } | emitCatchEnd(); | public void emitFinallyStart() { emitTryEnd(); if (try_stack.try_type != null) { emitCatchEnd(); } readPC = PC; try_stack.end_pc = PC; pushScope(); Type except_type = Type.pointer_type; Variable except = addLocal(except_type); emitCatchStart(null); pushType(except_type); emitStore(except); emitGoto(try_stack.finally_subr, 168); // jsr emitLoad(except); emitThrow(); //emitCatchEnd(); //if (try_stack.finally_subr == null) // error(); try_stack.finally_subr.define(this); Type ret_addr_type = Type.pointer_type; try_stack.finally_ret_addr = addLocal(ret_addr_type); pushType(ret_addr_type); emitStore(try_stack.finally_ret_addr); } | 40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/27dbaa42eb5c75386b13a6fda269d28ca12f210b/CodeAttr.java/clean/gnu/bytecode/CodeAttr.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3626,
29987,
1685,
1435,
225,
288,
565,
3626,
7833,
1638,
5621,
565,
309,
261,
698,
67,
3772,
18,
698,
67,
723,
480,
446,
13,
1377,
288,
202,
18356,
14842,
1638,
5621,
1377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
3626,
29987,
1685,
1435,
225,
288,
565,
3626,
7833,
1638,
5621,
565,
309,
261,
698,
67,
3772,
18,
698,
67,
723,
480,
446,
13,
1377,
288,
202,
18356,
14842,
1638,
5621,
1377,
... |
if (ClusterBackend.debugPrint) | if (ClusterBackend.debugging) | void combineInit() { int node_id; if (combine_ptr + 1 >= loop_start) return; init(); if (ClusterBackend.debugPrint) { System.out.println("-------------------------------------"); System.out.println("----------- COMBINING ---------------"); System.out.println("-------------------------------------"); } for (int curr = 0; curr < combine_ptr; curr++) { node_id = 0; for (int y = 0; y < ph; y++) { HashSet<SIROperator> p = sched.getAllOperatorsInPhase(y); Iterator<SIROperator> it = p.iterator(); while (it.hasNext()) { SIROperator oper = it.next(); int id = NodeEnumerator.getSIROperatorId(oper); int exec = ((Integer)phases.get(curr).get(node_id)).intValue(); int _iter = iteration.get(oper).intValue(); List<Tape> in = RegisterStreams.getNodeInStreams(oper); List<Tape> out = RegisterStreams.getNodeOutStreams(oper); for (int z = 0; z < in.size(); z++) { Tape ns = in.get(z); if (ns != null) { SIROperator src = NodeEnumerator.getOperator(ns.getSource()); int qsize = queue_size.get(makeVector(src, oper)).intValue(); qsize -= getPop(oper, z) * exec; queue_size.put(makeVector(src, oper), new Integer(qsize)); } } for (int z = 0; z < out.size(); z++) { Tape ns = out.get(z); if (ns != null) { SIROperator dst = NodeEnumerator.getOperator(ns.getDest()); int qsize = queue_size.get(makeVector(oper, dst)).intValue(); qsize += getPush(oper, z) * exec; queue_size.put(makeVector(oper, dst), new Integer(qsize)); } } for (int z = 0; z < exec; z++, _iter++) { if (!(oper instanceof SIRFilter)) continue; HashSet<LatencyConstraint> cons = LatencyConstraints.getOutgoingConstraints((SIRFilter)oper); Iterator<LatencyConstraint> ci = cons.iterator(); while (ci.hasNext()) { //System.out.println("latency constraint"); LatencyConstraint c = ci.next(); SIRFilter dst = (SIRFilter)c.getReceiver(); boolean down = LatencyConstraints.isMessageDirectionDownstream((SIRFilter)oper, (SIRFilter)dst); int init_c = c.getSourceInit(); if (down) { if (_iter >= init_c) { int s_steady = c.getSourceSteadyExec(); int cycle = (_iter - init_c) / s_steady; int offs = (_iter - init_c) % s_steady; int dep = c.getDependencyData(offs); if (dep > 0) { int cc = dep + cycle * c.getDestSteadyExec(); credit.put(dst, new Integer(cc)); if (ClusterBackend.debugPrint) System.out.println("Send credit: "+cc); } } } else { int s_steady = c.getSourceSteadyExec(); int cycle = _iter / s_steady; int offs = _iter % s_steady; int dep = c.getDependencyData(offs); if (dep > 0) { int cc = dep + cycle * c.getDestSteadyExec(); credit.put(dst, new Integer(cc)); if (ClusterBackend.debugPrint) System.out.println("Send credit: "+cc); } } } } iteration.put(oper, new Integer(_iter)); } } } boolean success = true; node_id = 0; Vector<Integer> new_phase = new Vector<Integer>(); for (int y = 0; y < ph; y++) { HashSet<SIROperator> p = sched.getAllOperatorsInPhase(y); Iterator<SIROperator> it = p.iterator(); while (it.hasNext()) { SIROperator oper = it.next(); int id = NodeEnumerator.getSIROperatorId(oper); int steady_count = ((Integer)phases.get(combine_ptr).get(node_id)).intValue() + ((Integer)phases.get(combine_ptr+1).get(node_id)).intValue(); node_id++; int _iter = iteration.get(oper).intValue(); int _credit = credit.get(oper).intValue(); int exec = steady_count; if (_credit >= 0 && _iter + steady_count > _credit) { exec = _credit - _iter; } int input = 2000000000; List<Tape> in = RegisterStreams.getNodeInStreams(oper); List<Tape> out = RegisterStreams.getNodeOutStreams(oper); for (int z = 0; z < in.size(); z++) { Tape ns = in.get(z); if (ns != null) { SIROperator src = NodeEnumerator.getOperator(ns.getSource()); int qsize = queue_size.get(makeVector(src, oper)).intValue(); int peek = getPeek(oper, z); int pop = getPop(oper, z); if (peek < pop) peek = pop; int extra = peek - pop; int can = (qsize-extra)/pop; if (can < 0) can = 0; if (can < input) input = can; } } if (input < exec) exec = input; //System.out.println("CREDIT = "+_credit+" INPUT = "+input+" EXEC = "+exec); for (int z = 0; z < in.size(); z++) { Tape ns = in.get(z); if (ns != null) { SIROperator src = NodeEnumerator.getOperator(ns.getSource()); int qsize = queue_size.get(makeVector(src, oper)).intValue(); qsize -= getPop(oper, z) * exec; queue_size.put(makeVector(src, oper), new Integer(qsize)); } } for (int z = 0; z < out.size(); z++) { Tape ns = out.get(z); if (ns != null) { SIROperator dst = NodeEnumerator.getOperator(ns.getDest()); int qsize = queue_size.get(makeVector(oper, dst)).intValue(); qsize += getPush(oper, z) * exec; queue_size.put(makeVector(oper, dst), new Integer(qsize)); } } if (ClusterBackend.debugPrint) System.out.println(oper.getName()+" Exec = "+exec+"/"+steady_count); if (exec < steady_count) success = false; new_phase.add(new Integer(exec)); // push exec count to phase vector for (int z = 0; z < exec; z++, _iter++) { if (!(oper instanceof SIRFilter)) continue; HashSet<LatencyConstraint> cons = LatencyConstraints.getOutgoingConstraints((SIRFilter)oper); Iterator<LatencyConstraint> ci = cons.iterator(); while (ci.hasNext()) { //System.out.println("latency constraint"); LatencyConstraint c = ci.next(); SIRFilter dst = (SIRFilter)c.getReceiver(); boolean down = LatencyConstraints.isMessageDirectionDownstream((SIRFilter)oper, (SIRFilter)dst); int init_c = c.getSourceInit(); if (down) { if (_iter >= init_c) { int s_steady = c.getSourceSteadyExec(); int cycle = (_iter - init_c) / s_steady; int offs = (_iter - init_c) % s_steady; int dep = c.getDependencyData(offs); //System.out.println("dep = "+dep); //System.out.println("c = "+cycle); //System.out.println("o = "+offs); if (dep > 0) { int cc = dep + cycle * c.getDestSteadyExec(); credit.put(dst, new Integer(cc)); if (ClusterBackend.debugPrint) System.out.println("Send credit: "+cc); } } } else { int s_steady = c.getSourceSteadyExec(); int cycle = _iter / s_steady; int offs = _iter % s_steady; int dep = c.getDependencyData(offs); if (dep > 0) { int cc = dep + cycle * c.getDestSteadyExec(); credit.put(dst, new Integer(cc)); if (ClusterBackend.debugPrint) System.out.println("Send credit: "+cc); } } } } iteration.put(oper, new Integer(_iter)); } } if (ClusterBackend.debugPrint) System.out.println(success?"SUCCESS":"FAILED"); if (success) { phases.set(combine_ptr, new_phase); phases.remove(combine_ptr+1); loop_start--; } else { combine_ptr++; } } | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/f1197ac29a976f6015baaa30c8e231cc5cf68a9f/Greedy.java/buggy/streams/src/at/dms/kjc/cluster/Greedy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
8661,
2570,
1435,
288,
3639,
509,
756,
67,
350,
31,
3639,
309,
261,
14082,
67,
6723,
397,
404,
1545,
2798,
67,
1937,
13,
327,
31,
3639,
1208,
5621,
3639,
309,
261,
3629,
7172,
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,
377,
918,
8661,
2570,
1435,
288,
3639,
509,
756,
67,
350,
31,
3639,
309,
261,
14082,
67,
6723,
397,
404,
1545,
2798,
67,
1937,
13,
327,
31,
3639,
1208,
5621,
3639,
309,
261,
3629,
7172,
18,
... |
codeSource); | new CodeSource(entry.codeBase, entry.certificates)); | protected Class findClassInternal(String name) throws ClassNotFoundException { if (!validate(name)) throw new ClassNotFoundException(name); String tempPath = name.replace('.', '/'); String classPath = tempPath + ".class"; ResourceEntry entry = null; entry = findResourceInternal(name, classPath); if (entry == null) throw new ClassNotFoundException(name); Class clazz = entry.loadedClass; if (clazz != null) return clazz; synchronized (this) { if (entry.binaryContent == null && entry.loadedClass == null) throw new ClassNotFoundException(name); } // Looking up the package String packageName = null; int pos = name.lastIndexOf('.'); if (pos != -1) packageName = name.substring(0, pos); Package pkg = null; if (packageName != null) { pkg = getPackage(packageName); // Define the package (if null) if (pkg == null) { if (entry.manifest == null) { definePackage(packageName, null, null, null, null, null, null, null); } else { definePackage(packageName, entry.manifest, entry.codeBase); } } } // Create the code source object CodeSource codeSource = new CodeSource(entry.codeBase, entry.certificates); if (securityManager != null) { // Checking sealing if (pkg != null) { boolean sealCheck = true; if (pkg.isSealed()) { sealCheck = pkg.isSealed(entry.codeBase); } else { sealCheck = (entry.manifest == null) || !isPackageSealed(packageName, entry.manifest); } if (!sealCheck) throw new SecurityException ("Sealing violation loading " + name + " : Package " + packageName + " is sealed."); } } synchronized (this) { if (entry.loadedClass == null) { clazz = defineClass(name, entry.binaryContent, 0, entry.binaryContent.length, codeSource); entry.loadedClass = clazz; entry.binaryContent = null; entry.source = null; entry.codeBase = null; entry.manifest = null; entry.certificates = null; } else { clazz = entry.loadedClass; } } return clazz; } | 26330 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/26330/79631bba45a132c8c614355cc11303fc113ffb0e/WebappClassLoader.java/clean/java/org/apache/catalina/loader/WebappClassLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1659,
1104,
797,
3061,
12,
780,
508,
13,
3639,
1216,
10403,
288,
3639,
309,
16051,
5662,
12,
529,
3719,
5411,
604,
394,
10403,
12,
529,
1769,
3639,
514,
1906,
743,
273,
508,
18,
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,
4750,
1659,
1104,
797,
3061,
12,
780,
508,
13,
3639,
1216,
10403,
288,
3639,
309,
16051,
5662,
12,
529,
3719,
5411,
604,
394,
10403,
12,
529,
1769,
3639,
514,
1906,
743,
273,
508,
18,
2... |
return url; | } /** * @see wicket.Component#getPath() */ public String getPath() { reset(); return super.getPath(); | protected AbstractImage getJunctionImage(final DefaultMutableTreeNode node) { if (!node.isLeaf()) { // we want the image to be dynamically, yet resolving to a application // static image. IModel imgModel = new Model() { public Object getObject() { final String url; if(isExpanded(node)) { url = getRequestCycle().urlFor( JUNCTION_IMG_MINUS, IResourceListener.class); } else { url = getRequestCycle().urlFor( JUNCTION_IMG_PLUS, IResourceListener.class); } return url; } }; LocalImage img = new LocalImage(JUNCTION_IMAGE_NAME, imgModel); return img; } else { String url = getRequestCycle().urlFor(JUNCTION_IMG_BLANK, IResourceListener.class); LocalImage img = new LocalImage(JUNCTION_IMAGE_NAME, url); return img; } } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/fa621b043e832e6b9e223ce5c860a5c1d39efd4c/IndentTree.java/buggy/wicket/src/java/wicket/markup/html/tree/IndentTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4115,
2040,
9285,
418,
2040,
12,
6385,
2989,
19536,
12513,
756,
13,
202,
95,
202,
202,
430,
16051,
2159,
18,
291,
9858,
10756,
202,
202,
95,
1082,
202,
759,
732,
2545,
326,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4115,
2040,
9285,
418,
2040,
12,
6385,
2989,
19536,
12513,
756,
13,
202,
95,
202,
202,
430,
16051,
2159,
18,
291,
9858,
10756,
202,
202,
95,
1082,
202,
759,
732,
2545,
326,
1... |
public PerspectiveDropTarget(Object draggedObject, Point location, Rectangle dragRectangle) { | public PerspectiveDropTarget(Object draggedObject, Point location, Rectangle dragRectangle) { | public PerspectiveDropTarget(Object draggedObject, Point location, Rectangle dragRectangle) { update(draggedObject, location, dragRectangle); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/04aabdd41be60938c86dabee86663a60046dd26c/PerspectiveSwitcher.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PerspectiveSwitcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
453,
414,
16772,
7544,
2326,
12,
921,
8823,
2423,
921,
16,
4686,
2117,
16,
225,
13264,
8823,
19463,
13,
288,
6862,
202,
2725,
12,
15997,
2423,
921,
16,
2117,
16,
8823,
19463,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
453,
414,
16772,
7544,
2326,
12,
921,
8823,
2423,
921,
16,
4686,
2117,
16,
225,
13264,
8823,
19463,
13,
288,
6862,
202,
2725,
12,
15997,
2423,
921,
16,
2117,
16,
8823,
19463,
... |
assertEquals(6, values.length); | assertEquals(24, values.length); | public void testGetSchoolTypesValues() throws Exception { try { List<Record> records = createSamples(); facade.doUpdate(records); String[] values = facade.getSchoolTypesValues(); assertEquals(6, values.length); } catch (Exception e) { e.printStackTrace(); fail(); } } | 11670 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11670/8fd87b1d6bddb6ad852866d330e81432e4979d46/RepositoryFacadeTest.java/buggy/trunk/src/test/java/org/metaz/repository/RepositoryFacadeTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
967,
55,
343,
1371,
2016,
1972,
1435,
27573,
1216,
1185,
225,
288,
565,
775,
288,
1377,
987,
32,
2115,
34,
3853,
273,
752,
13239,
5621,
1377,
11270,
18,
2896,
1891,
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,
282,
1071,
918,
1842,
967,
55,
343,
1371,
2016,
1972,
1435,
27573,
1216,
1185,
225,
288,
565,
775,
288,
1377,
987,
32,
2115,
34,
3853,
273,
752,
13239,
5621,
1377,
11270,
18,
2896,
1891,
12,
... |
private String getChildElementValue(final PipelineContext pipelineContext, QName qName) { // NOTE: This returns an HTML string. final XFormsControls xformsControls = containingDocument.getXFormsControls(); // Check that there is a current child element final Element childElement = controlElement.element(qName); if (childElement == null) return null; // Child element becomes the new binding String result = null; xformsControls.setBinding(pipelineContext, this); xformsControls.pushBinding(pipelineContext, childElement); { final XFormsControls.BindingContext currentBindingContext = xformsControls.getCurrentBindingContext(); // "the order of precedence is: single node binding attributes, linking attributes, inline text." // Try to get single node binding if (currentBindingContext.isNewBind()) { final NodeInfo currentNode = currentBindingContext.getSingleNode(); if (currentNode != null) result = XFormsInstance.getValueForNode(currentNode); } // Try to get value attribute // NOTE: This is an extension attribute not standard in XForms 1.0 or 1.1 if (result == null) { final String valueAttribute = childElement.attributeValue("value"); if (valueAttribute != null) { final List currentNodeset = currentBindingContext.getNodeset(); if (currentNodeset != null && currentNodeset.size() > 0) { final String tempResult = containingDocument.getEvaluator().evaluateAsString(pipelineContext, currentNodeset, currentBindingContext.getPosition(), valueAttribute, Dom4jUtils.getNamespaceContextNoDefault(childElement), null, containingDocument.getXFormsControls().getFunctionLibrary(), null); result = XMLUtils.escapeXMLMinimal(tempResult); } else { result = ""; } } } // Try to get linking attribute // NOTE: This is deprecated in XForms 1.1 if (result == null) { final String srcAttributeValue = childElement.attributeValue("src"); if (srcAttributeValue != null) { try { // TODO: should cache this? final String tempResult = XFormsUtils.retrieveSrcValue(srcAttributeValue); result = XMLUtils.escapeXMLMinimal(tempResult); } catch (IOException e) { // Dispatch xforms-link-error to model final XFormsModel currentModel = currentBindingContext.getModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsLinkErrorEvent(currentModel, srcAttributeValue, childElement, e)); } } } // Try to get inline value if (result == null) { System.out.println("..."); final StringBuffer sb = new StringBuffer(); // Visit the subtree and serialize // NOTE: It is a litte funny to do our own serialization here, but the alternative is to build a DOM // and serialize it, which is not trivial because of the possible interleaved xforms:output's Dom4jUtils.visitSubtree(childElement, new Dom4jUtils.VisitorListener() { public void startElement(Element element) { if (element.getQName().equals(XFormsConstants.XFORMS_OUTPUT_QNAME)) { // This is an xforms:output final XFormsOutputControl outputControl = new XFormsOutputControl(containingDocument, null, element, element.getName(), null); outputControl.setBindingContext(currentBindingContext); outputControl.evaluate(pipelineContext); // Escape only if the mediatype is not HTML if (!"text/html".equals(outputControl.getMediatype())) sb.append(XMLUtils.escapeXMLMinimal(outputControl.getDisplayValueOrValue())); else sb.append(outputControl.getDisplayValueOrValue()); } else { // This is a regular element, just serialize the start tag to no namespace sb.append('<'); sb.append(element.getName()); final List attributes = element.attributes(); if (attributes.size() > 0) { for (Iterator i = attributes.iterator(); i.hasNext();) { final Attribute currentAttribute = (Attribute) i.next(); sb.append(' '); sb.append(currentAttribute.getName()); sb.append("=\""); sb.append(currentAttribute.getValue()); sb.append('"'); } } sb.append('>'); } } public void endElement(Element element) { if (!element.getQName().equals(XFormsConstants.XFORMS_OUTPUT_QNAME)) { // This is a regular element, just serialize the end tag to no namespace sb.append("</"); sb.append(element.getName()); sb.append('>'); } } public void text(Text text) { sb.append(XMLUtils.escapeXMLMinimal(text.getStringValue())); } }); result = sb.toString(); } } xformsControls.popBinding(); return result; } | 57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/5808cd7915199543a0d92a8b38748c550c55fba5/XFormsControl.java/buggy/src/java/org/orbeon/oxf/xforms/control/XFormsControl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
3238,
282,
514,
282,
8154,
1046,
620,
12,
6385,
282,
13671,
1042,
282,
5873,
1042,
16,
282,
16723,
282,
22914,
13,
282,
288,
13491,
368,
282,
5219,
30,
282,
1220,
282,
1135,
282,
392,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3238,
282,
514,
282,
8154,
1046,
620,
12,
6385,
282,
13671,
1042,
282,
5873,
1042,
16,
282,
16723,
282,
22914,
13,
282,
288,
13491,
368,
282,
5219,
30,
282,
1220,
282,
1135,
282,
392,
... | ||
double apol = 0; int atomicNumber = 0; try { ifac = IsotopeFactory.getInstance(); Element element = null; Atom[] atoms = container.getAtoms(); String symbol = null; for (int i = 0; i < atoms.length; i++) { symbol = container.getAtomAt(i).getSymbol(); element = ifac.getElement(symbol); atomicNumber = element.getAtomicNumber(); apol += polarizabilities[atomicNumber]; } return new DescriptorValue(getSpecification(), getParameterNames(), getParameters(), new DoubleResult(apol)); } catch (Exception ex1) { logger.debug(ex1); throw new CDKException("Problems with IsotopeFactory due to " + ex1.toString()); } } | double apol = 0; int atomicNumber = 0; try { ifac = IsotopeFactory.getInstance(); Element element = null; Atom[] atoms = container.getAtoms(); String symbol = null; for (int i = 0; i < atoms.length; i++) { symbol = container.getAtomAt(i).getSymbol(); element = ifac.getElement(symbol); atomicNumber = element.getAtomicNumber(); apol += polarizabilities[atomicNumber]; } return new DescriptorValue(getSpecification(), getParameterNames(), getParameters(), new DoubleResult(apol)); } catch (Exception ex1) { logger.debug(ex1); throw new CDKException("Problems with IsotopeFactory due to " + ex1.toString()); } } | public DescriptorValue calculate(AtomContainer container) throws CDKException { double apol = 0; int atomicNumber = 0; try { ifac = IsotopeFactory.getInstance(); Element element = null; Atom[] atoms = container.getAtoms(); String symbol = null; for (int i = 0; i < atoms.length; i++) { symbol = container.getAtomAt(i).getSymbol(); element = ifac.getElement(symbol); atomicNumber = element.getAtomicNumber(); apol += polarizabilities[atomicNumber]; } return new DescriptorValue(getSpecification(), getParameterNames(), getParameters(), new DoubleResult(apol)); } catch (Exception ex1) { logger.debug(ex1); throw new CDKException("Problems with IsotopeFactory due to " + ex1.toString()); } } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/4bc2c11fccaec888ecd7ae5d5a9705014f7ebbca/APolDescriptor.java/buggy/src/org/openscience/cdk/qsar/APolDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12823,
620,
4604,
12,
3641,
2170,
1478,
13,
1216,
24570,
288,
202,
202,
9056,
513,
355,
273,
374,
31,
202,
202,
474,
7960,
1854,
273,
374,
31,
202,
202,
698,
288,
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,
225,
202,
482,
12823,
620,
4604,
12,
3641,
2170,
1478,
13,
1216,
24570,
288,
202,
202,
9056,
513,
355,
273,
374,
31,
202,
202,
474,
7960,
1854,
273,
374,
31,
202,
202,
698,
288,
1082,
202,
... |
atrClausula = Clausula(); errDeNega = atrClausula.getErr(); tipoNega = atrClausula.getTipo(); | atrDeClausula = Clausula(); errDeNega = atrDeClausula.getErr(); | public Atributos Nega() throws Exception{ System.out.println("Nega"); Atributos a = new Atributos(); boolean errDeNega = true; String tipoNega = ""; Atributos atrClausula; Token tk; Token aux = new Token(); tk = lexico.getNextToken(); tk = lexico.lexer(Tipos.TKNOT); if (!tk.equals(aux)){ atrClausula = Clausula(); errDeNega = atrClausula.getErr(); tipoNega = atrClausula.getTipo(); genOpNot(); } else{ atrClausula = Clausula(); errDeNega = atrClausula.getErr(); tipoNega = atrClausula.getTipo(); } a.setErr(errDeNega); a.setTipo(tipoNega); return a; } | 10474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10474/607fe0347d565e290f4f50c945e527feb5f375fe/Sintactico.java/buggy/plg/procesador/Sintactico.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
432,
665,
322,
538,
423,
11061,
1435,
1216,
1185,
95,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
50,
11061,
8863,
202,
202,
37,
665,
322,
538,
279,
273,
394,
432,
665,
322,
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,
225,
202,
482,
432,
665,
322,
538,
423,
11061,
1435,
1216,
1185,
95,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
50,
11061,
8863,
202,
202,
37,
665,
322,
538,
279,
273,
394,
432,
665,
322,
5... |
new double[]{0.93,0.75,0.1, 1.0,0.6,0.1}); | new double[]{0.93,0.75,0.1,1.0,0.6,0.1}); | public void testSampleExtractionTest() { SpanFeatureExtractor fe = new Recommended.TokenFE(); doExtractionTest( new SequenceAnnotatorLearner( new CMMLearner(new VotedPerceptron(), 3), fe), new double[]{0.93,0.75,0.1, 1.0,0.6,0.1}); doExtractionTest( new SequenceAnnotatorLearner( new CMMLearner(new SVMLearner(), 3), fe), new double[]{0.93,1.0,0.1, 1.0,1.0,0.1} ); } | 51753 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51753/855f10f0be51395949365698948f282cc1e1495c/SampleExtractionTest.java/clean/test/edu/cmu/minorthird/text/learn/SampleExtractionTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
8504,
25757,
4709,
1435,
225,
288,
202,
202,
6952,
4595,
10958,
1656,
273,
394,
25546,
3934,
18,
1345,
8090,
5621,
202,
202,
2896,
25757,
4709,
12,
394,
8370,
11280,
639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1842,
8504,
25757,
4709,
1435,
225,
288,
202,
202,
6952,
4595,
10958,
1656,
273,
394,
25546,
3934,
18,
1345,
8090,
5621,
202,
202,
2896,
25757,
4709,
12,
394,
8370,
11280,
639,
... |
public RubyBoolean respond_to(RubySymbol sym) { | public RubyBoolean respond_to(RubyObject methodName) { String name; if (methodName instanceof RubySymbol) { name = ((RubySymbol) methodName).toId(); } else if (methodName instanceof RubyString) { name = ((RubyString) methodName).getValue(); } else { throw new ArgumentError(getRuby(), "not a symbol"); } | public RubyBoolean respond_to(RubySymbol sym) { //Look in cache CacheEntry ent = getRuby().getMethodCache().getEntry(getRubyClass(), sym.toId()); if (ent != null) { //Check to see if it's private and we're not including privates(return false) //otherwise return true return ruby.getTrue(); } //Get from instance IMethod method = getRubyClass().searchMethod(sym.toId()); if (method != null) { return ruby.getTrue(); } return ruby.getFalse(); } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/4e4c0a90262b62b83d3fc5717371745bcc928c2b/RubyObject.java/clean/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
5507,
6846,
67,
869,
12,
54,
10340,
921,
4918,
13,
288,
514,
508,
31,
309,
261,
2039,
461,
1276,
19817,
5335,
13,
288,
508,
273,
14015,
54,
10340,
5335,
13,
4918,
2934,
869... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5507,
6846,
67,
869,
12,
54,
10340,
921,
4918,
13,
288,
514,
508,
31,
309,
261,
2039,
461,
1276,
19817,
5335,
13,
288,
508,
273,
14015,
54,
10340,
5335,
13,
4918,
2934,
869... |
public PermissionDescriptor(Element permission) { init(permission); | public PermissionDescriptor() { | public PermissionDescriptor(Element permission) { init(permission); } | 7621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7621/4c41edce1cb52c59a232efb4c9d5ba120d2558ba/PermissionDescriptor.java/buggy/src/java/com/opensymphony/workflow/loader/PermissionDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8509,
3187,
12,
1046,
4132,
13,
288,
3639,
1208,
12,
9827,
1769,
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,... | [
1,
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,
8509,
3187,
12,
1046,
4132,
13,
288,
3639,
1208,
12,
9827,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
public Type retrieve( Class type, Object key ) { Session session = null; try { Type retval; session = openSession(); Transaction tx = session.beginTransaction(); retval = (Type) session.get( type, (Serializable) key ); tx.commit(); //session.close(); return retval; } catch (Exception e) { //e.printStackTrace(); LOG.error( e ); try { if( session != null && session.isOpen() ) { if ( session.isConnected() ) session.connection().rollback(); session.close(); } } catch( Exception ignore ) { LOG.error( ignore ); } try { if (sessionFactory!=null) { sessionFactory.close(); sessionFactory=null; } } catch( Exception ignore ) { LOG.error( ignore ); } return null; } } | 51637 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51637/8b7e6c005d18c6dc6d02b4588af401617a55c949/DelegatedHibernateDAO.java/buggy/yawl/src/au/edu/qut/yawl/persistence/dao/DelegatedHibernateDAO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
56,
8300,
3333,
537,
12,
2009,
345,
27273,
16,
921,
856,
15329,
1082,
202,
2157,
3184,
33,
2011,
31,
1082,
202,
698,
95,
9506,
202,
56,
8300,
278,
1125,
31,
9506,
202,
3184,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3196,
202,
482,
56,
8300,
3333,
537,
12,
2009,
345,
27273,
16,
921,
856,
15329,
1082,
202,
2157,
3184,
33,
2011,
31,
1082,
202,
698,
95,
9506,
202,
56,
8300,
278,
1125,
31,
9506,
202,
3184,
... | ||
this.name = value; } | this.name = value; } | public void setName(String value) { this.name = value; } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/99f335ad4dfc53503a1890e981ff118c3c404811/InsertTag.java/buggy/src/share/org/apache/struts/taglib/tiles/InsertTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6788,
12,
780,
460,
13,
288,
202,
202,
2211,
18,
529,
273,
460,
31,
202,
97,
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,
... | [
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
6788,
12,
780,
460,
13,
288,
202,
202,
2211,
18,
529,
273,
460,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public void execute() { dssArray = DisplayUtils.getComponents(dataSetSeismogram); if(dssArray.length < 2){// in case only one component was available completion = false; return; } ChannelId[] channelGroup = new ChannelId[dssArray.length]; for(int counter = 0; counter < dssArray.length; counter++) { channelGroup[counter] = dssArray[counter].getRequestFilter().channel_id; } for(int counter = 0; counter < dssArray.length; counter++) { String counterOrientation = DisplayUtils.getOrientationName(channelGroup[counter].channel_code); for(int subcounter = counter+1; subcounter < dssArray.length; subcounter++) { boolean horizPlane = isHorizontalPlane(dssArray[counter].getRequestFilter().channel_id, dssArray[subcounter].getRequestFilter().channel_id, dssArray[counter].getDataSet()); String subCounterOrientation = DisplayUtils.getOrientationName(channelGroup[subcounter].channel_code); String orientationString; DataSetSeismogram hSeis,vSeis; //From display util determined orientation, lay the seismograms //out in the particle motion view if(counterOrientation.equals(DisplayUtils.UP)){//Up always goes vertical vSeis = dssArray[counter]; hSeis = dssArray[subcounter]; orientationString = counterOrientation + "-" + subCounterOrientation; }else if(counterOrientation.equals(DisplayUtils.EAST)){//East always goes horizontal vSeis = dssArray[subcounter]; hSeis = dssArray[counter]; orientationString = subCounterOrientation + "-" + counterOrientation; }else{//counterOrientation must be North if(subCounterOrientation.equals(DisplayUtils.EAST)){//North goes vertical with East vSeis = dssArray[counter]; hSeis = dssArray[subcounter]; orientationString = counterOrientation + "-" + subCounterOrientation; }else{//North goes horizontal with Up vSeis = dssArray[subcounter]; hSeis = dssArray[counter]; orientationString = subCounterOrientation + "-" + counterOrientation; } } particleMotionDisplay.getView().add(hSeis, vSeis, tc, displayColor, orientationString, horizPlane); } } completion = true; } | 52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/ce5022aaf4719514ac6ce4e87697297490695185/ParticleMotionDisplayThread.java/clean/src/edu/sc/seis/fissuresUtil/display/ParticleMotionDisplayThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
90,
11359,
561,
557,
624,
1435,
95,
72,
1049,
1076,
33,
4236,
1989,
18,
588,
7171,
12,
892,
694,
1761,
6228,
5553,
1769,
430,
12,
72,
1049,
1076,
18,
2469,
32,
22,
15329,
759,
267,
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,
1071,
90,
11359,
561,
557,
624,
1435,
95,
72,
1049,
1076,
33,
4236,
1989,
18,
588,
7171,
12,
892,
694,
1761,
6228,
5553,
1769,
430,
12,
72,
1049,
1076,
18,
2469,
32,
22,
15329,
759,
267,
3... | ||
if (thisObj == (Scriptable)args[0].getPrototype()) | if (thisObj == ((Scriptable)args[0]).getPrototype()) | public static Object jsFunction_isPrototypeOf(Context cx, Scriptable thisObj, Object[] args, Function funObj) { if (args.length != 0) if (args[0] instanceof Scriptable) if (thisObj == (Scriptable)args[0].getPrototype()) return Boolean.TRUE; return Boolean.FALSE; } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/e7cd7580aab7b960803d3130cd2134c883a63a27/NativeObject.java/buggy/src/org/mozilla/javascript/NativeObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
3828,
2083,
67,
291,
15846,
951,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
10402,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
309,
261,
1968,
18,
2469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
3828,
2083,
67,
291,
15846,
951,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
10402,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
309,
261,
1968,
18,
2469,
... |
return PsiManager.getInstance(file.getProject()).findDirectory( ProjectRootManager.getInstance(file.getProject()).getFileIndex().getContentRootForFile(file.getVirtualFile()) ); | final VirtualFile contentRootForFile = ProjectRootManager.getInstance(project).getFileIndex().getContentRootForFile(file.getVirtualFile()); if (contentRootForFile!=null) { return PsiManager.getInstance(project).findDirectory(contentRootForFile); } | public PsiElement getDefaultContext (PsiElement element) { Project project = element.getProject(); PsiFile file = element.getContainingFile(); if (!file.isPhysical()) file = file.getOriginalFile(); if (file == null) return null; final WebModuleProperties properties = (WebModuleProperties)WebUtil.getWebModuleProperties(file); if (myPathString.startsWith(SEPARATOR_STRING)) { if (properties != null) { return JspManager.getInstance(project).findWebDirectoryElementByPath("/", properties); } else { return PsiManager.getInstance(file.getProject()).findDirectory( ProjectRootManager.getInstance(file.getProject()).getFileIndex().getContentRootForFile(file.getVirtualFile()) ); } } else { final PsiDirectory dir = file.getContainingDirectory(); if (dir != null) { if (properties != null) { return JspManager.getInstance(project).findWebDirectoryByFile(dir.getVirtualFile(), properties); } else { return dir; } } } return null; } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/5248f293b90f5eca89c3eb900d71dc882378f231/FileReferenceSet.java/buggy/source/com/intellij/psi/impl/source/resolve/reference/impl/providers/FileReferenceSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
453,
7722,
1046,
4829,
1042,
261,
52,
7722,
1046,
930,
13,
288,
565,
5420,
1984,
273,
930,
18,
588,
4109,
5621,
565,
453,
7722,
812,
585,
273,
930,
18,
588,
24344,
812,
5621,
565,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
453,
7722,
1046,
4829,
1042,
261,
52,
7722,
1046,
930,
13,
288,
565,
5420,
1984,
273,
930,
18,
588,
4109,
5621,
565,
453,
7722,
812,
585,
273,
930,
18,
588,
24344,
812,
5621,
565,... |
if (msgPkt.getBodies().isEmpty() && msgPkt.getExtensions().isEmpty() && msgPkt.getSubjects().isEmpty() && msgPkt.getThreadID() == null) | if (msgPkt.getBodies().isEmpty() && msgPkt.getExtensions().isEmpty() && msgPkt.getSubjects().isEmpty() && msgPkt.getThreadID() == null) | public void handle(Socket socket, ConnectionContext connCtx) throws IOException { UnmarshallingContext uctx = streamCtx.getUnmarshallingContext(); // start incoming data packet reading and outgoing packet queue sending try { while (!shutdown) { while (paused && !shutdown) synchronized (this) { try { wait(); } catch (InterruptedException ex) { // intentionally left empty } } if (shutdown) break; queue.resume(); streamCtx.getReader().startLogging(); // purposely synchronize because of possible multithread // accessing issue synchronized (uctx) { uctx.next(); } IStanzaPacket packet = null; if (!paused) { // parse incoming data if (uctx.currentEvent() == UnmarshallingContext.END_DOCUMENT) { break; } else if (uctx.isEnd()) { continue; } else if (uctx.isAt(NS_XMPP_CLIENT, PRESENCE_ELEMENT_NAME)) { packet = (IStanzaPacket) JiBXUtil.unmarshallObject(uctx, PresencePacket.class); } else if (uctx.isAt(NS_XMPP_CLIENT, MESSAGE_ELEMENT_NAME)) { MessagePacket msgPkt = (MessagePacket) JiBXUtil.unmarshallObject(uctx, MessagePacket.class); // according to XMPP, message stanza with no child // element // or unknown namespace extensions should be ignored // This translates to this API ignoring message stanzas // with no child elements // and no extensions in this API. if (msgPkt.getBodies().isEmpty() && msgPkt.getExtensions().isEmpty() && msgPkt.getSubjects().isEmpty() && msgPkt.getThreadID() == null) streamCtx.getReader().flushIgnoredDataToLog(); else packet = msgPkt; } else if (uctx.isAt(NS_XMPP_CLIENT, IQ_ELEMENT_NAME)) { IQPacket iqpkt = (IQPacket) JiBXUtil.unmarshallObject(uctx, IQPacket.class); // according to XMPP, if an entity receives an IQ stanza // of type "get" or "set" containing a child element // qualified by a namespace it does not understand, the // entity SHOULD return an IQ stanza of type "error" // with an error condition of <service-unavailable/>. // Here, it is ignored as well. In addition, an // error packet is also sent back to the user, as // specified by the specs. if (IQPacket.class.getName().equals(iqpkt.getClass().getName()) && (IQPacket.TYPE_SET.equals(iqpkt.getType()) || IQPacket.TYPE_GET.equals(iqpkt.getType()))) { if (log.isDebugEnabled()) log.debug("Found IQ packet with unknown extension inside. Ignoring and sending unavailable error packet reply..."); streamCtx.getReader().flushIgnoredDataToLog(); IQPacket errpkt = new IQPacket(); errpkt.setTo(iqpkt.getFrom()); errpkt.setId(iqpkt.getId()); // TODO: For now, the return result does not include // the original packet request data. XMPP specs // RECOMMENDS includes the original packet request // data. StanzaErrorPacket error = new StanzaErrorPacket(); error.setCondition(ErrorCode.C_SERVICE_UNAVAILABLE); error.setErrorType(StanzaErrorPacket.CANCEL); errpkt.setError(error); try { queuePacket(errpkt, false); } catch (SendPacketFailedException ex) { // intentionally empty (will never get thrown) } } else { packet = iqpkt; } } else if (uctx.isAt(NS_JABBER_STREAM, ERROR_ELEMENT_NAME)) { // stream level error received = close stream ErrorPacket errorPkt = (ErrorPacket) JiBXUtil.unmarshallObject(uctx, ErrorPacket.class); XMPPStanzaErrorException ex = new XMPPStanzaErrorException("Stream error", errorPkt); IOException ioex = new IOException(); ioex.initCause(ex); throw ioex; } else { uctx.skipElement(); streamCtx.getReader().flushIgnoredDataToLog(); } // match packets with those in queue in case any packets are // waiting for replies if (packet != null) { packet = queue.packetReceived(packet); if (listenerManager != null) listenerManager.firePacketReceived(packet); streamCtx.getReader().flushLog(); } } } } catch (JiBXException ex) { // intentionally left empty if (log.isInfoEnabled()) log.info("Error while reading incoming data. Likely stream is closed due to shutdown or error", ex); } finally { // error reading incoming data (maybe connection closed) shutdown(); endStream(); IOUtil.closeSocket(streamCtx.getSocket()); } } | 13024 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13024/8aa5f83e7598eea04256ed347903a98b5b4bc4ad/XMPPConnectionHandler.java/buggy/feridian/trunk/modules/xmpp/src/com/echomine/xmpp/impl/XMPPConnectionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1640,
12,
4534,
2987,
16,
4050,
1042,
1487,
6442,
13,
1216,
1860,
288,
3639,
1351,
12201,
310,
1042,
582,
5900,
273,
1407,
6442,
18,
588,
984,
12201,
310,
1042,
5621,
3639,
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,
377,
1071,
918,
1640,
12,
4534,
2987,
16,
4050,
1042,
1487,
6442,
13,
1216,
1860,
288,
3639,
1351,
12201,
310,
1042,
582,
5900,
273,
1407,
6442,
18,
588,
984,
12201,
310,
1042,
5621,
3639,
368... |
return propertyList.get("font-size").getLength().mvalue(); | return propertyList.get("font-size").getLength().getValue(); | public int getBaseLength() { switch (iBaseType) { case FONTSIZE: return propertyList.get("font-size").getLength().mvalue(); case INH_FONTSIZE: return propertyList.getInherited("font-size").getLength().mvalue(); //case CONTAINING_BOX: // depends on property?? inline-progression vs block-progression //return parentFO.getContentWidth(); case CONTAINING_REFAREA: // example: start-indent, end-indent { //FONode fo; //for (fo = parentFO; fo != null && !fo.generatesReferenceAreas(); // fo = fo.getParent()); //return (((fo != null) && (fo instanceof FObj)) ? ((FObj)fo).getContentWidth() : 0); return 0; } case CUSTOM_BASE: //log.debug("!!! LengthBase.getBaseLength() called on CUSTOM_BASE type !!!"); return 0; default: //log.error("Unknown base type for LengthBase."); return 0; } } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/eef12c894b3a6b778bd8cc21a0da2dc0faa4e00f/LengthBase.java/buggy/src/org/apache/fop/datatypes/LengthBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
8297,
1782,
1435,
288,
3639,
1620,
261,
77,
2171,
559,
13,
288,
3639,
648,
27104,
4574,
30,
5411,
327,
1272,
682,
18,
588,
2932,
5776,
17,
1467,
20387,
588,
1782,
7675,
24805,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
8297,
1782,
1435,
288,
3639,
1620,
261,
77,
2171,
559,
13,
288,
3639,
648,
27104,
4574,
30,
5411,
327,
1272,
682,
18,
588,
2932,
5776,
17,
1467,
20387,
588,
1782,
7675,
24805,
... |
public void setLayout (LayoutManager layout) { /* FIXME */ } | public void setLayout(LayoutManager mgr) { layoutMgr = mgr; } | public void setLayout (LayoutManager layout) { /* FIXME */ } | 1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/42de8277e53eabea04a48598c12ed6d488412a7b/Container.java/clean/libjava/java/awt/Container.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
18479,
261,
3744,
1318,
3511,
13,
225,
288,
1748,
9852,
1195,
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,... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
18479,
261,
3744,
1318,
3511,
13,
225,
288,
1748,
9852,
1195,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public FSOutputStream createRaw(File f, boolean overwrite, short replication) | public FSOutputStream createRaw(Path f, boolean overwrite, short replication) | public FSOutputStream createRaw(File f, boolean overwrite, short replication) throws IOException { return dfs.create(getPath(f), overwrite, replication); } | 48130 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48130/ee01fef4b4fb82c7492a4a747793839a4d14cd39/DistributedFileSystem.java/clean/src/java/org/apache/hadoop/dfs/DistributedFileSystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9247,
4632,
752,
4809,
12,
743,
284,
16,
1250,
6156,
16,
3025,
11335,
13,
1377,
1216,
1860,
288,
1377,
327,
13868,
18,
2640,
12,
588,
743,
12,
74,
3631,
6156,
16,
11335,
1769,
565... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
9247,
4632,
752,
4809,
12,
743,
284,
16,
1250,
6156,
16,
3025,
11335,
13,
1377,
1216,
1860,
288,
1377,
327,
13868,
18,
2640,
12,
588,
743,
12,
74,
3631,
6156,
16,
11335,
1769,
565... |
public static int getDelimiterOffset(String line, int start,String delimiter){ int offset = 0; for (int i = start; i < line.length(); i++){ offset++; if (line.substring(i,i+1).equals(delimiter)){ return offset; } } return -1; | public static int getDelimiterOffset(String line, int start, String delimiter) { int offset = 0; for (int i = start; i < line.length(); i++) { offset++; if (line.substring(i, i + 1).equals(delimiter)) { return offset; } } return -1; | public static int getDelimiterOffset(String line, int start,String delimiter){ int offset = 0; for (int i = start; i < line.length(); i++){ offset++; if (line.substring(i,i+1).equals(delimiter)){ return offset; } } return -1; } | 8836 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8836/73647f36b9ada99ead4f9d0f67e459369342ca74/ParserUtils.java/buggy/PZFileReader/com/pz/reader/util/ParserUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
18531,
4340,
2335,
12,
780,
980,
16,
509,
787,
16,
780,
5654,
15329,
4202,
509,
1384,
273,
374,
31,
4202,
364,
261,
474,
277,
273,
787,
31,
277,
411,
980,
18,
2469,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
18531,
4340,
2335,
12,
780,
980,
16,
509,
787,
16,
780,
5654,
15329,
4202,
509,
1384,
273,
374,
31,
4202,
364,
261,
474,
277,
273,
787,
31,
277,
411,
980,
18,
2469,
56... |
debugOptions = options; | public void setDebugOptions(int options) { // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3606b7996ab5dbdf4a0195418025163510897b5d/DebugGraphics.java/buggy/core/src/classpath/javax/javax/swing/DebugGraphics.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1198,
1320,
273,
702,
31,
1198,
1320,
273,
702,
31,
1071,
4148,
1320,
273,
702,
31,
918,
4148,
1320,
273,
702,
31,
444,
2829,
1320,
12,
474,
4148,
1320,
273,
702,
31,
702,
13,
4148,
1320,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1198,
1320,
273,
702,
31,
1198,
1320,
273,
702,
31,
1071,
4148,
1320,
273,
702,
31,
918,
4148,
1320,
273,
702,
31,
444,
2829,
1320,
12,
474,
4148,
1320,
273,
702,
31,
702,
13,
4148,
1320,
... | |
return (XPath)m_whitespacePreservingElements.elementAt(i); | return (XPath) m_whitespacePreservingElements.elementAt(i); | public XPath getPreserveSpace(int i) throws ArrayIndexOutOfBoundsException { if(null == m_whitespacePreservingElements) throw new ArrayIndexOutOfBoundsException(); return (XPath)m_whitespacePreservingElements.elementAt(i); } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/Stylesheet.java/buggy/src/org/apache/xalan/templates/Stylesheet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
10172,
1689,
455,
6527,
3819,
12,
474,
277,
13,
565,
1216,
1510,
30548,
225,
288,
565,
309,
12,
2011,
422,
312,
67,
18777,
12236,
264,
6282,
3471,
13,
1377,
604,
394,
1510,
30548,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10172,
1689,
455,
6527,
3819,
12,
474,
277,
13,
565,
1216,
1510,
30548,
225,
288,
565,
309,
12,
2011,
422,
312,
67,
18777,
12236,
264,
6282,
3471,
13,
1377,
604,
394,
1510,
30548,
... |
return AttributeFactory.eINSTANCE.convertToString( AttributePackage.eINSTANCE.getAnchor( ), | return convertAnchorToString( AttributePackage.Literals.ANCHOR, | public String convertAnchorObjectToString( EDataType eDataType, Object instanceValue ) { return AttributeFactory.eINSTANCE.convertToString( AttributePackage.eINSTANCE.getAnchor( ), instanceValue ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/036e8c78765730b146e5854b9d6c397a296fed86/AttributeFactoryImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/AttributeFactoryImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1765,
11605,
921,
5808,
12,
20807,
11479,
16,
1082,
202,
921,
13523,
262,
202,
95,
202,
202,
2463,
3601,
1733,
18,
73,
13341,
18,
6283,
5808,
12,
3601,
2261,
18,
73,
1334... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1765,
11605,
921,
5808,
12,
20807,
11479,
16,
1082,
202,
921,
13523,
262,
202,
95,
202,
202,
2463,
3601,
1733,
18,
73,
13341,
18,
6283,
5808,
12,
3601,
2261,
18,
73,
1334... |
if(f.getName().endsWith(".jar")) { for( Enumeration e=(new JarFile(f)).entries(); e.hasMoreElements(); ) { ZipEntry entry = (ZipEntry)e.nextElement(); if( ! entry.isDirectory() && entry.getName().endsWith(".class")) { | if (f.getName().endsWith(".jar")) { for ( Enumeration e = (new JarFile(f)).entries(); e.hasMoreElements(); ) { ZipEntry entry = (ZipEntry) e.nextElement(); if ( !entry.isDirectory() && entry.getName().endsWith(".class")) { | private int countFiles(File f, boolean subdirectories) throws Exception { if( f.isDirectory() && subdirectories) { return countDirectory(f); } else { if(f.getName().endsWith(".class")) { return 1; } else { int total = 0; if(f.getName().endsWith(".jar")) { for( Enumeration e=(new JarFile(f)).entries(); e.hasMoreElements(); ) { ZipEntry entry = (ZipEntry)e.nextElement(); if( ! entry.isDirectory() && entry.getName().endsWith(".class")) { total++; } } } return total; } } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/5cee6094c7b77e3bcf6338f68456e6e531e781b7/ClassfileImport.java/buggy/modules/classfile/src/org/argouml/uml/reveng/classfile/ClassfileImport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
1056,
2697,
12,
812,
284,
16,
1250,
31220,
13,
1216,
1185,
288,
202,
430,
12,
284,
18,
291,
2853,
1435,
597,
31220,
13,
288,
202,
565,
327,
1056,
2853,
12,
74,
1769,
202,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
1056,
2697,
12,
812,
284,
16,
1250,
31220,
13,
1216,
1185,
288,
202,
430,
12,
284,
18,
291,
2853,
1435,
597,
31220,
13,
288,
202,
565,
327,
1056,
2853,
12,
74,
1769,
202,
9... |
}else | } else | private void insertNode( String treatedPath ) { boolean isAttribute = isAttribute(treatedPath); //Remove the leading "/" then split the path. String[] path = treatedPath.replaceFirst("/","").split("/"); //If the path specified an attribute then re-build the path array so that it can divid element and //its attribute to two array items. if( isAttribute ) { String[] temp = path[path.length - 1].split("\\Q[@\\E"); assert temp.length == 2; String[] temp1 = new String[ path.length + 1]; for( int i = 0; i < path.length - 1; i ++) { temp1[i] = path[i]; } temp1[temp1.length - 2] = temp[0]; temp1[temp1.length - 1] = temp[1].replaceAll("\\Q]\\E",""); path = temp1; } //The parentNode ATreeNode parentNode = root; //Iterate each path array element, find or create its countpart node instance. for( int i = 0; i < path.length; i ++) { //This variable hosts the node instance that matches the given path array item value. ATreeNode matchedNode = null; for( int j = 0; j < parentNode.getChildren().length; j++) { if( ((ATreeNode)parentNode.getChildren()[j]).getValue().equals( path[i] )) { matchedNode = (ATreeNode)parentNode.getChildren()[j]; break; } } if( matchedNode != null ) { parentNode = matchedNode; }else { matchedNode = new ATreeNode(); if((i == path.length - 1) && isAttribute) { matchedNode.setType( ATreeNode.ATTRIBUTE_TYPE ); } else { matchedNode.setType( ATreeNode.ELEMENT_TYPE); } matchedNode.setValue( path[i]); matchedNode.setParent( parentNode ); parentNode = matchedNode; } } } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/145a679d5a271527073531183c90d5bb2a955ab0/SchemaPopulationUtil.java/buggy/data/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/util/ui/SchemaPopulationUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2243,
907,
12,
514,
13974,
743,
262,
202,
95,
202,
202,
6494,
353,
1499,
273,
353,
1499,
12,
27427,
690,
743,
1769,
9506,
202,
759,
3288,
326,
7676,
4016,
1508,
1416,
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,
225,
202,
1152,
918,
2243,
907,
12,
514,
13974,
743,
262,
202,
95,
202,
202,
6494,
353,
1499,
273,
353,
1499,
12,
27427,
690,
743,
1769,
9506,
202,
759,
3288,
326,
7676,
4016,
1508,
1416,
32... |
rsp_list = _req.getResults(); | rsp_list=_req.getResults(); | public Object sendMessage(Message msg, int mode, long timeout) throws TimeoutException, SuspectedException { Vector mbrs = new Vector(); RspList rsp_list = null; Object dest = msg.getDest(); Rsp rsp; GroupRequest _req = null; if (dest == null) { if (log.isErrorEnabled()) { log.error("the message's destination is null, " + "cannot send message"); } return null; } mbrs.addElement(dest); // dummy membership (of destination address) _req = new GroupRequest(msg, corr, mbrs, mode, timeout, 0); _req.execute(); if (mode == GroupRequest.GET_NONE) { return null; } rsp_list = _req.getResults(); if (rsp_list.size() == 0) { if (log.isWarnEnabled()) { log.warn(" response list is empty"); } return null; } if (rsp_list.size() > 1) { if (log.isWarnEnabled()) { log.warn("response list contains " + "more that 1 response; returning first response !"); } } rsp = (Rsp) rsp_list.elementAt(0); if (rsp.wasSuspected()) { throw new SuspectedException(dest); } if (!rsp.wasReceived()) { throw new TimeoutException(); } return rsp.getValue(); } | 49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/595c1743692efa6e4226a77afcc832561ea81eb9/MessageDispatcher.java/clean/src/org/jgroups/blocks/MessageDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
15399,
12,
1079,
1234,
16,
509,
1965,
16,
1525,
2021,
13,
1216,
23334,
16,
348,
407,
1789,
503,
288,
3639,
5589,
312,
2848,
87,
273,
394,
5589,
5621,
3639,
534,
1752,
682,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15399,
12,
1079,
1234,
16,
509,
1965,
16,
1525,
2021,
13,
1216,
23334,
16,
348,
407,
1789,
503,
288,
3639,
5589,
312,
2848,
87,
273,
394,
5589,
5621,
3639,
534,
1752,
682,
1... |
item.setText(parts[i].getTitle()); | if(parts[i].isDirty()) item.setText("*" + parts[i].getTitle()); else item.setText(parts[i].getTitle()); | protected void addItems(Table table,WorkbenchPage page) { IEditorPart parts[] = page.getSortedEditors(); for (int i = parts.length - 1; i >= 0 ; i--) { TableItem item = null; if(parts[i] instanceof IEditorPart) { item = new TableItem(table,SWT.NONE); item.setText(parts[i].getTitle()); item.setImage(parts[i].getTitleImage()); item.setData(parts[i]); } }} | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/2674f77faeef32aafb0925d86279381f5cb628c2/CycleEditorAction.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/CycleEditorAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
527,
3126,
12,
1388,
1014,
16,
2421,
22144,
1964,
1363,
13,
288,
202,
45,
6946,
1988,
2140,
8526,
273,
1363,
18,
588,
11739,
4666,
1383,
5621,
202,
1884,
261,
474,
277,
273,
2140,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
527,
3126,
12,
1388,
1014,
16,
2421,
22144,
1964,
1363,
13,
288,
202,
45,
6946,
1988,
2140,
8526,
273,
1363,
18,
588,
11739,
4666,
1383,
5621,
202,
1884,
261,
474,
277,
273,
2140,
... |
newnode = newdoctype; break; | newnode = newdoctype; break; | public Node importNode(Node source, boolean deep) throws DOMException { NodeImpl newnode=null; // Sigh. This doesn't work; too many nodes have private data that // would have to be manually tweaked. May be able to add local // shortcuts to each nodetype. Consider ????? // if(source instanceof NodeImpl && // !(source instanceof DocumentImpl)) // { // // Can't clone DocumentImpl since it invokes us... // newnode=(NodeImpl)source.cloneNode(false); // newnode.ownerDocument=this; //} //else int type = source.getNodeType(); switch (type) { case ELEMENT_NODE: { Element newelement = createElement(source.getNodeName()); NamedNodeMap srcattr = source.getAttributes(); if (srcattr != null) { for(int i = 0; i < srcattr.getLength(); i++) { newelement.setAttributeNode( (AttrImpl)importNode(srcattr.item(i), true)); } } newnode = (NodeImpl)newelement; break; } case ATTRIBUTE_NODE: { newnode = (NodeImpl)createAttribute(source.getNodeName()); // Kids carry value break; } case TEXT_NODE: { newnode = (NodeImpl)createTextNode(source.getNodeValue()); break; } case CDATA_SECTION_NODE: { newnode = (NodeImpl)createCDATASection(source.getNodeValue()); break; } case ENTITY_REFERENCE_NODE: { newnode = (NodeImpl)createEntityReference(source.getNodeName()); deep = false; // ????? Right Thing? // Value implied by doctype, so we should not copy it // -- instead, refer to local doctype, if any. break; } case ENTITY_NODE: { Entity srcentity = (Entity)source; EntityImpl newentity = (EntityImpl)createEntity(source.getNodeName()); newentity.setPublicId(srcentity.getPublicId()); newentity.setSystemId(srcentity.getSystemId()); newentity.setNotationName(srcentity.getNotationName()); // Kids carry additional value newnode = newentity; break; } case PROCESSING_INSTRUCTION_NODE: { newnode = (ProcessingInstructionImpl)createProcessingInstruction(source.getNodeName(), source.getNodeValue()); break; } case COMMENT_NODE: { newnode = (NodeImpl)createComment(source.getNodeValue()); break; } case DOCUMENT_TYPE_NODE: { DocumentTypeImpl doctype = (DocumentTypeImpl)source; DocumentTypeImpl newdoctype = (DocumentTypeImpl)createDocumentType( doctype.getNodeName(), doctype.getPublicId(), doctype.getSystemId() ); // Values are on NamedNodeMaps NamedNodeMap smap = ((DocumentType)source).getEntities(); NamedNodeMap tmap = newdoctype.getEntities(); if(smap != null) { for(int i = 0; i < smap.getLength(); i++) { tmap.setNamedItem((EntityImpl)importNode(smap.item(i), true)); } } smap = ((DocumentType)source).getNotations(); tmap = newdoctype.getNotations(); if (smap != null) { for(int i = 0; i < smap.getLength(); i++) { tmap.setNamedItem((NotationImpl)importNode(smap.item(i), true)); } } // NOTE: At this time, the DOM definition of DocumentType // doesn't cover Elements and their Attributes. domimpl's // extentions in that area will not be preserved, even if // copying from domimpl to domimpl. We could special-case // that here. Arguably we should. Consider. ????? newnode = newdoctype; break; } case DOCUMENT_FRAGMENT_NODE: { newnode = (NodeImpl)createDocumentFragment(); // No name, kids carry value break; } case NOTATION_NODE: { Notation srcnotation = (Notation)source; NotationImpl newnotation = (NotationImpl)createNotation(source.getNodeName()); newnotation.setPublicId(srcnotation.getPublicId()); newnotation.setSystemId(srcnotation.getSystemId()); // Kids carry additional value newnode = newnotation; // No name, no value break; } case DOCUMENT_NODE : // Document can't be child of Document default: { // Unknown node type throw new DOMExceptionImpl(DOMException.HIERARCHY_REQUEST_ERR, "DOM006 Hierarchy request error"); } } // If deep, replicate and attach the kids. if (deep) { for (Node srckid = source.getFirstChild(); srckid != null; srckid = srckid.getNextSibling()) { newnode.appendChild(importNode(srckid, true)); } } return newnode; } // importNode(Node,boolean):Node | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/fd788f496dd24d0d34e5ecb1936da8999ed6c269/DocumentImpl.java/clean/src/org/apache/xerces/dom/DocumentImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
1930,
907,
12,
907,
1084,
16,
1250,
4608,
13,
3639,
1216,
4703,
503,
288,
377,
202,
907,
2828,
29267,
33,
2011,
31,
377,
202,
759,
348,
2031,
18,
1220,
3302,
1404,
1440,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
1930,
907,
12,
907,
1084,
16,
1250,
4608,
13,
3639,
1216,
4703,
503,
288,
377,
202,
907,
2828,
29267,
33,
2011,
31,
377,
202,
759,
348,
2031,
18,
1220,
3302,
1404,
1440,
31,... |
} | public static RubyArray createBacktrace(Ruby ruby, int level) { RubyFrame frame = ruby.getRubyFrame(); RubyArray backtrace = RubyArray.newArray(ruby); if (level < 0) { StringBuffer sb = new StringBuffer(100); if (frame.getLastFunc() != null) { sb.append(ruby.getSourceFile()).append(':').append(ruby.getSourceLine()); sb.append(":in '").append(frame.getLastFunc()).append('\''); } else if (ruby.getSourceLine() == 0) { sb.append(ruby.getSourceFile()); } else { sb.append(ruby.getSourceFile()).append(':').append(ruby.getSourceLine()); } backtrace.push(RubyString.newString(ruby, sb.toString())); } else { while (level-- > 0) { frame = frame.getPrev(); if (frame == null) { return RubyArray.nilArray(ruby); } } } while (frame != null && frame.getFile() != null) { StringBuffer sb = new StringBuffer(100); if (frame.getPrev() != null && frame.getPrev().getLastFunc() != null) { sb.append(frame.getFile()).append(':').append(frame.getLine()); sb.append(":in '").append(frame.getPrev().getLastFunc()).append('\''); } else { sb.append(frame.getFile()).append(':').append(frame.getLine()); } backtrace.push(RubyString.newString(ruby, sb.toString())); frame = frame.getPrev(); } return backtrace; } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/043fa4419ad506aa6f8843684eb8114b226fe4b5/RaiseException.java/buggy/org/jruby/exceptions/RaiseException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
1076,
752,
2711,
5129,
12,
54,
10340,
22155,
16,
509,
1801,
13,
288,
3639,
19817,
3219,
2623,
273,
22155,
18,
588,
54,
10340,
3219,
5621,
3639,
19817,
1076,
13902,
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,
377,
1071,
760,
19817,
1076,
752,
2711,
5129,
12,
54,
10340,
22155,
16,
509,
1801,
13,
288,
3639,
19817,
3219,
2623,
273,
22155,
18,
588,
54,
10340,
3219,
5621,
3639,
19817,
1076,
13902,
273,
... | |
if (option.equals("-categories")) { | if (option.equals("-categories") || option.equals("-hmcm")) { keyMode = argv[arg]; | public static void main(String[] argv) throws Exception { if (argv.length < 1) { usage(); } int arg = 0; String categoryList = ""; boolean diffMode = false; while (arg < argv.length - 1) { String option = argv[arg]; if (option.equals("-categories")) { ++arg; if (arg >= argv.length) throw new IllegalArgumentException("-categories option requires argument"); categoryList = argv[arg]; } else if (option.equals("-diff")) { diffMode = true; } else break; ++arg; } if (arg >= argv.length) usage(); String filename = argv[arg++]; CountBugs countBugs = new CountBugs(filename); countBugs.setCategories(categoryList); countBugs.execute(); if (diffMode) { if (arg >= argv.length) usage(); CountBugs countBugs2 = new CountBugs(argv[arg++]); countBugs2.setCategories(categoryList); countBugs2.execute(); countBugs.diffCounts(countBugs2); } countBugs.printCounts(System.out, diffMode); if (!diffMode) System.out.println("Total:\t" + countBugs.getTotal()); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/6ab9552e363a328a33e3cf3e382472f55fc1c1cd/CountBugs.java/clean/findbugs/src/java/edu/umd/cs/findbugs/CountBugs.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
5261,
13,
1216,
1185,
288,
202,
202,
430,
261,
19485,
18,
2469,
411,
404,
13,
288,
1082,
202,
9167,
5621,
202,
202,
97,
202,
202,
474,
1501,
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,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
5261,
13,
1216,
1185,
288,
202,
202,
430,
261,
19485,
18,
2469,
411,
404,
13,
288,
1082,
202,
9167,
5621,
202,
202,
97,
202,
202,
474,
1501,
2... |
{ return treeState.getRowHeight(); } | { return treeState.getRowHeight(); } | protected int getRowHeight() { return treeState.getRowHeight(); } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/f71ada05aa98432b7634671fbae8b77fd2a7c713/BasicTreeUI.java/clean/libraries/javalib/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
509,
11835,
2686,
1435,
202,
95,
202,
202,
2463,
2151,
1119,
18,
588,
1999,
2686,
5621,
202,
97,
2,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
509,
11835,
2686,
1435,
202,
95,
202,
202,
2463,
2151,
1119,
18,
588,
1999,
2686,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
rs.close(); | public void testCallableStatementCall1() throws Exception { CallableStatement cstmt = con.prepareCall("{call sp_who}"); makeTestTables(cstmt); makeObjects(cstmt, 8); ResultSet rs = cstmt.executeQuery(); dump(rs); cstmt.close(); rs.close(); } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/31239e9062bef524a204bbd17ef75857ed26f1f9/CallableStatementTest.java/buggy/src/test/net/sourceforge/jtds/test/CallableStatementTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
11452,
3406,
1477,
21,
1435,
1216,
1185,
288,
3639,
10464,
3406,
276,
10589,
273,
356,
18,
9366,
1477,
2932,
95,
1991,
1694,
67,
3350,
83,
1532,
1769,
3639,
1221,
4709,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11452,
3406,
1477,
21,
1435,
1216,
1185,
288,
3639,
10464,
3406,
276,
10589,
273,
356,
18,
9366,
1477,
2932,
95,
1991,
1694,
67,
3350,
83,
1532,
1769,
3639,
1221,
4709,
6... | |
public Message marshalResponse(Object returnObject, Object[] holderObjects, OperationDescription operationDesc) | public Message marshalResponse(Object returnObject, Object[] holderObjects, OperationDescription operationDesc, Protocol protocol) | public Message marshalResponse(Object returnObject, Object[] holderObjects, OperationDescription operationDesc) throws WebServiceException { // TODO Unsupported throw new UnsupportedOperationException(); } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/ffe73e708d58b0c967f263c4551617c6fa6c78e7/RPCLitMethodMarshallerImpl.java/buggy/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/RPCLitMethodMarshallerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2350,
10893,
1064,
12,
921,
327,
921,
16,
1033,
8526,
10438,
4710,
16,
4189,
3291,
1674,
4217,
16,
4547,
1771,
13,
5411,
1216,
2999,
15133,
288,
3639,
368,
2660,
7221,
3639,
604,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2350,
10893,
1064,
12,
921,
327,
921,
16,
1033,
8526,
10438,
4710,
16,
4189,
3291,
1674,
4217,
16,
4547,
1771,
13,
5411,
1216,
2999,
15133,
288,
3639,
368,
2660,
7221,
3639,
604,
39... |
delBTN.setBackground(BACK_COLOR); | delBTN.setOpaque(false); | public NotePanel(MetadataPane.TablePanel tp) { super(); tableP = tp; setBackground(BACK_COLOR); Vector noteEleList = getNoteElements(); DefaultListModel thisModel = new DefaultListModel(); noteList = new ClickableList(thisModel,this); noteList.addListSelectionListener(this); if (noteEleList != null) { for(int i = 0;i<noteEleList.size();i++) { Element e = (Element) noteEleList.get(i); thisModel.addElement(e.getAttribute("Name")); } } // buggy...// if (thisModel.getSize() > 0) noteList.setSelectedIndex(0); JScrollPane jScroll = new JScrollPane(noteList); jScroll.setPreferredSize(new Dimension(150,100)); textArea = new JTextArea(); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); textArea.getDocument().addDocumentListener(noteList); JScrollPane jNoteScroll = new JScrollPane(textArea); jNoteScroll.setPreferredSize(new Dimension(450,100)); jNoteScroll.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); FormLayout layout = new FormLayout( "pref, 5dlu, pref:grow, 5dlu, pref, 5dlu, pref", "pref,2dlu,pref"); PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); if (thisModel.size() == 0) nameLabel = new JLabel("Name", NO_NOTES_BULLET, JLabel.LEFT); else nameLabel = new JLabel("Name", NOTES_BULLET, JLabel.LEFT); noteLabel = new JLabel("Notes", NO_NOTES_BULLET, JLabel.LEFT); Font thisFont = nameLabel.getFont(); thisFont = new Font(thisFont.getFontName(), Font.BOLD,thisFont.getSize()); nameLabel.setFont(thisFont); thisFont = noteLabel.getFont(); thisFont = new Font(thisFont.getFontName(), Font.BOLD,thisFont.getSize()); noteLabel.setFont(thisFont); JButton addBTN = new JButton("New Note"); addBTN.setPreferredSize(new Dimension(100,17)); addBTN.setActionCommand("add"); addBTN.addActionListener(noteList); addBTN.setToolTipText("Add a new note to the \"Name\" list."); addBTN.setForeground(MetadataPane.ADD_COLOR); addBTN.setBackground(BACK_COLOR); JButton delBTN = new JButton("Delete Note"); delBTN.setPreferredSize(new Dimension(100,17)); delBTN.setActionCommand("remove"); delBTN.addActionListener(noteList); delBTN.setToolTipText("Delete the note selected in the \"Name\" list."); delBTN.setForeground(MetadataPane.DELETE_COLOR); delBTN.setBackground(BACK_COLOR); builder.add(nameLabel, cc.xy(1,1, "left,center")); builder.add(noteLabel, cc.xy(3,1, "left,center")); builder.add(addBTN, cc.xy(5,1, "left,center")); builder.add(delBTN, cc.xy(7,1, "left,center")); builder.add(jScroll, cc.xy(1,3, "fill,center")); builder.add(jNoteScroll, cc.xyw(3,3,5, "fill,center")); builder.getPanel().setBackground(BACK_COLOR); add(builder.getPanel()); setVisible(false); if(noteEleList != null) setVisible(true); } | 11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/6298bc44d12f634ef846a5bb08de557962763ff0/NotePanel.java/buggy/loci/ome/notebook/NotePanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3609,
5537,
12,
2277,
8485,
18,
1388,
5537,
8071,
13,
288,
202,
225,
2240,
5621,
202,
21114,
225,
1014,
52,
273,
8071,
31,
202,
225,
31217,
12,
8720,
67,
10989,
1769,
202,
211... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3609,
5537,
12,
2277,
8485,
18,
1388,
5537,
8071,
13,
288,
202,
225,
2240,
5621,
202,
21114,
225,
1014,
52,
273,
8071,
31,
202,
225,
31217,
12,
8720,
67,
10989,
1769,
202,
211... |
view.getTextArea().grabFocus(); | view.getTextArea().requestFocus(); | public void run() { view.getTextArea().grabFocus(); if(act == null) { if(finalCmd != null) { view.getStatus().setMessageAndClear( jEdit.getProperty( "view.action.no-completions")); } } else { view.getInputHandler().setRepeatCount(repeatCount); view.getInputHandler().invokeAction(act); } } | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/2b85a2aa5aa9138969febf87dd786a71619d4189/ActionBar.java/buggy/org/gjt/sp/jedit/gui/ActionBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
1435,
1082,
202,
95,
9506,
202,
1945,
18,
588,
1528,
5484,
7675,
2752,
70,
9233,
5621,
9506,
202,
430,
12,
621,
422,
446,
13,
9506,
202,
95,
6862,
202,
430,
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,
1875,
202,
482,
918,
1086,
1435,
1082,
202,
95,
9506,
202,
1945,
18,
588,
1528,
5484,
7675,
2752,
70,
9233,
5621,
9506,
202,
430,
12,
621,
422,
446,
13,
9506,
202,
95,
6862,
202,
430,
12,
... |
m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); | m_report.println( org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); | private void mergePages() throws CmsException { int size = m_foldersEqualnames.size(); if (size > 0) { m_report.println(Messages.get().container(Messages.RPT_MERGE_PAGES_BEGIN_1, String.valueOf(size)) , I_CmsReport.C_FORMAT_HEADLINE); String defaultLocale = CmsLocaleManager.getDefaultLocale().toString(); String locale2 = m_cms.readPropertyObject(getParamFolder2(), "locale", true).getValue(defaultLocale); // lock the source and the target folder m_report.print(Messages.get().container(Messages.RPT_LOCK_FOLDER_0), I_CmsReport.C_FORMAT_NOTE); m_report.print(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_ARGUMENT_1, getParamFolder1())); m_report.print(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_DOTS_0)); m_cms.lockResource(getParamFolder1()); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); m_report.print(Messages.get().container(Messages.RPT_LOCK_FOLDER_0), I_CmsReport.C_FORMAT_NOTE); m_report.print(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_ARGUMENT_1, getParamFolder2())); m_report.print(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_DOTS_0)); m_cms.lockResource(getParamFolder2()); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); // now loop through all collected resources int count = 1; Iterator i = m_foldersEqualnames.iterator(); while (i.hasNext()) { String resFolder1Name = (String)i.next(); try { String resFolder2Name = getResourceNameInOtherFolder(resFolder1Name, getParamFolder1(), getParamFolder2()); m_report.print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_SUCCESSION_2, String.valueOf(count++), String.valueOf(size)), I_CmsReport.C_FORMAT_NOTE); m_report.print(Messages.get().container(Messages.RPT_PROCESS_0), I_CmsReport.C_FORMAT_NOTE); m_report.print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_ARGUMENT_1, resFolder1Name)); m_report.print(Messages.get().container(Messages.RPT_DOUBLE_ARROW_0), I_CmsReport.C_FORMAT_NOTE); m_report.print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_ARGUMENT_1, resFolder2Name)); m_report.println(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_DOTS_0)); // get the content of the resource in folder1 String locale = m_cms.readPropertyObject(resFolder1Name, "locale", true).getValue(defaultLocale); m_report.print(Messages.get().container(Messages.RPT_READ_CONTENT_2, resFolder1Name, locale), I_CmsReport.C_FORMAT_NOTE); CmsResource resFolder1 = m_cms.readResource(resFolder1Name, CmsResourceFilter.IGNORE_EXPIRATION); CmsFile fileFolder1 = CmsFile.upgrade(resFolder1, m_cms); CmsXmlPage pageFolder1 = CmsXmlPageFactory.unmarshal(m_cms, fileFolder1); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); // get the content of the resource in folder2 locale = m_cms.readPropertyObject(resFolder2Name, "locale", true).getValue(defaultLocale); m_report.print(Messages.get().container(Messages.RPT_READ_CONTENT_2, resFolder2Name, locale), I_CmsReport.C_FORMAT_NOTE); CmsResource resFolder2 = m_cms.readResource(resFolder2Name, CmsResourceFilter.IGNORE_EXPIRATION); CmsFile fileFolder2 = CmsFile.upgrade(resFolder2, m_cms); CmsXmlPage pageFolder2 = CmsXmlPageFactory.unmarshal(m_cms, fileFolder2); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); // now get all the text elements from the resource in folder 2 which match the the locale of folder 2 Locale loc = new Locale(locale2); List textElements2 = pageFolder2.getNames(loc); Iterator j = textElements2.iterator(); while (j.hasNext()) { String textElementName = (String) j.next(); m_report.print(Messages.get().container(Messages.RPT_PROCESS_TEXT_ELEM_1, textElementName), I_CmsReport.C_FORMAT_NOTE); // get the text element from the resource in folder 2... String textElement = pageFolder2.getValue(textElementName, loc).getStringValue(m_cms); // and set it in the resource in folder 1... // WARNING: An existing content will be overwritten! if (!pageFolder1.hasValue(textElementName, loc)) { pageFolder1.addValue(textElementName, loc); } pageFolder1.setStringValue(m_cms, textElementName, loc, textElement); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); } // the resource in folder 1 now has all text elements in both locales, so update it in the vfs m_report.print(Messages.get().container(Messages.RPT_WRITE_CONTENT_1, resFolder1Name), I_CmsReport.C_FORMAT_NOTE); fileFolder1.setContents(pageFolder1.marshal()); m_cms.writeFile(fileFolder1); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); // save all properties from the resource in folder2 m_report.print(Messages.get().container(Messages.RPT_READ_PROPERTIES_1, resFolder2Name), I_CmsReport.C_FORMAT_NOTE); List properties = m_cms.readPropertyObjects(resFolder2Name, false); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); // the next thing to do is to delete the old resource in folder 2 m_report.print(Messages.get().container(Messages.RPT_DELETE_PAGE_1, resFolder2Name), I_CmsReport.C_FORMAT_NOTE); m_cms.deleteResource(resFolder2Name, I_CmsConstants.C_DELETE_OPTION_PRESERVE_SIBLINGS); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); // copy a sibling of the resource from folder 1 to folder 2 m_report.print(Messages.get().container(Messages.RPT_COPY_2, resFolder1Name, resFolder2Name), I_CmsReport.C_FORMAT_NOTE); m_cms.copyResource(resFolder1Name, resFolder2Name, I_CmsConstants.C_COPY_AS_SIBLING); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); // restore the properties at the sibling in folder 2 m_report.print(Messages.get().container(Messages.RPT_RESORE_PROPERTIES_1, resFolder2Name), I_CmsReport.C_FORMAT_NOTE); m_cms.writePropertyObjects(resFolder2Name, properties); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); resFolder1 = null; resFolder2 = null; fileFolder1 = null; fileFolder2 = null; pageFolder1 = null; pageFolder2 = null; } catch (CmsException e) { m_report.println(e); } } // lock the source and the target folder m_report.print(Messages.get().container(Messages.RPT_UNLOCK_1, getParamFolder1()), I_CmsReport.C_FORMAT_NOTE); m_cms.unlockResource(getParamFolder1()); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); m_report.print(Messages.get().container(Messages.RPT_UNLOCK_1, getParamFolder2()), I_CmsReport.C_FORMAT_NOTE); m_cms.unlockResource(getParamFolder2()); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); m_report.println(Messages.get().container(Messages.RPT_MERGE_PAGES_END_0), I_CmsReport.C_FORMAT_HEADLINE); } } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/41dcaa9d1a1b8f8fa6c1dd9a04fc8532eb83ebb7/CmsMergePages.java/buggy/src-modules/org/opencms/workplace/tools/content/CmsMergePages.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2691,
5716,
1435,
1216,
11228,
288,
3639,
509,
963,
273,
312,
67,
16064,
5812,
1973,
18,
1467,
5621,
3639,
309,
261,
1467,
405,
374,
13,
288,
13491,
312,
67,
6006,
18,
8222,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2691,
5716,
1435,
1216,
11228,
288,
3639,
509,
963,
273,
312,
67,
16064,
5812,
1973,
18,
1467,
5621,
3639,
309,
261,
1467,
405,
374,
13,
288,
13491,
312,
67,
6006,
18,
8222,
... |
int nf = pg_stream.ReceiveInteger(2), i; | int nf = pg_stream.ReceiveIntegerR(2), i; | private Field[] ReceiveFields() throws SQLException { int nf = pg_stream.ReceiveInteger(2), i; Field[] fields = new Field[nf]; for (i = 0 ; i < nf ; ++i) { String typname = pg_stream.ReceiveString(8192); int typid = pg_stream.ReceiveInteger(4); int typlen = pg_stream.ReceiveInteger(2); fields[i] = new Field(this, typname, typid, typlen); } return fields; } | 46563 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46563/4e9dd952966b600951f05ab2913b5b97936d42ba/Connection.java/buggy/src/interfaces/jdbc/postgresql/Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
2286,
8526,
17046,
2314,
1435,
1216,
6483,
225,
288,
565,
509,
13958,
273,
7184,
67,
3256,
18,
11323,
4522,
54,
12,
22,
3631,
277,
31,
565,
2286,
8526,
1466,
273,
394,
2286,
63,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2286,
8526,
17046,
2314,
1435,
1216,
6483,
225,
288,
565,
509,
13958,
273,
7184,
67,
3256,
18,
11323,
4522,
54,
12,
22,
3631,
277,
31,
565,
2286,
8526,
1466,
273,
394,
2286,
63,
8... |
try { | try { | public void submitToRepository() { submitButton.setEnabled(false); showBusy(true); if (isDirty()) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { doSave(new NullProgressMonitor()); } }); } BugzillaReportSubmitForm bugzillaReportSubmitForm; try { if (taskData.isLocallyCreated()) { boolean wrap = IBugzillaConstants.BugzillaServerVersion.SERVER_218.equals(repository.getVersion()); bugzillaReportSubmitForm = BugzillaReportSubmitForm.makeNewBugPost(repository.getUrl(), repository .getUserName(), repository.getPassword(), editorInput.getProxySettings(), repository .getCharacterEncoding(), taskData, wrap); } else { bugzillaReportSubmitForm = BugzillaReportSubmitForm.makeExistingBugPost(taskData, repository.getUrl(), repository.getUserName(), repository.getPassword(), editorInput.getProxySettings(), removeCC, repository.getCharacterEncoding()); } } catch (UnsupportedEncodingException e) { // should never get here but just in case... MessageDialog.openError(null, "Posting Error", "Ensure proper encoding selected in " + TaskRepositoriesView.NAME + "."); return; } final BugzillaRepositoryConnector bugzillaRepositoryConnector = (BugzillaRepositoryConnector) TasksUiPlugin .getRepositoryManager().getRepositoryConnector(BugzillaCorePlugin.REPOSITORY_KIND); JobChangeAdapter submitJobListener = new JobChangeAdapter() { public void done(final IJobChangeEvent event) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { if (event.getJob().getResult().getCode() == Status.OK && event.getJob().getResult().getMessage() != null) {// // Attach context if (getAttachContext()) { final AbstractRepositoryTask modifiedTask = (AbstractRepositoryTask) TasksUiPlugin .getTaskListManager() .getTaskList() .getTask( AbstractRepositoryTask.getHandle(repository.getUrl(), taskData.getId())); IWorkbench wb = PlatformUI.getWorkbench(); IProgressService ps = wb.getProgressService(); try { ps.busyCursorWhile(new IRunnableWithProgress() { public void run(IProgressMonitor pm) { try { bugzillaRepositoryConnector.attachContext(repository, modifiedTask, "", TasksUiPlugin.getDefault().getProxySettings()); } catch (Exception e) { MylarStatusHandler.fail(e, "Failed to attach task context.\n\n" + e.getMessage(), true); } } }); } catch (InvocationTargetException e1) { MylarStatusHandler.fail(e1.getCause(), "Failed to attach task context.\n\n" + e1.getMessage(), true); } catch (InterruptedException e1) { // ignore } // IWorkbenchSite site = // BugzillaTaskEditor.this.getEditor().getSite(); // if (site instanceof IEditorSite) { // IStatusLineManager statusLineManager = // ((IEditorSite)site).getActionBars().getStatusLineManager(); // IProgressMonitor pm = // statusLineManager.getProgressMonitor(); // pm.beginTask("Attaching context", // IProgressMonitor.UNKNOWN); // pm.worked(1); // try { // bugzillaRepositoryConnector.attachContext(repository, // modifiedTask, "", TasksUiPlugin // .getDefault().getProxySettings()); // } catch (Exception e) { // MylarStatusHandler.fail(e, "Failed to attach // task context.\n\n"+e.getMessage(), true); // } // pm.done(); // // } } close(); return; } else if (event.getJob().getResult().getCode() == Status.INFO) { WebBrowserDialog.openAcceptAgreement(null, IBugzillaConstants.REPORT_SUBMIT_ERROR, event .getJob().getResult().getMessage(), event.getJob().getResult().getException() .getMessage()); submitButton.setEnabled(true); BugzillaTaskEditor.this.showBusy(false); } else if (event.getJob().getResult().getCode() == Status.ERROR) { MessageDialog.openError(null, IBugzillaConstants.REPORT_SUBMIT_ERROR, event.getResult() .getMessage()); submitButton.setEnabled(true); BugzillaTaskEditor.this.showBusy(false); } } }); } }; submissionHandler.submitBugReport(bugzillaReportSubmitForm, submitJobListener, false, false); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/d8cf4a085d2950342ae5851d555f0eb0fa73e0b8/BugzillaTaskEditor.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4879,
774,
3305,
1435,
288,
202,
202,
9297,
3616,
18,
542,
1526,
12,
5743,
1769,
202,
202,
4500,
29289,
12,
3767,
1769,
202,
202,
430,
261,
291,
10785,
10756,
288,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4879,
774,
3305,
1435,
288,
202,
202,
9297,
3616,
18,
542,
1526,
12,
5743,
1769,
202,
202,
4500,
29289,
12,
3767,
1769,
202,
202,
430,
261,
291,
10785,
10756,
288,
1082,
... |
if(t == null) { | if(t == null || !t.isAlive()) { | void start() { if(t == null) { t=new Thread(this, "UDP.OutgoingPacketHandler thread"); t.setDaemon(true); t.start(); } } | 50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/dcbfbb7544cca747537450da32f70f440e9afc59/UDP.java/buggy/src/org/jgroups/protocols/UDP.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
787,
1435,
288,
5411,
309,
12,
88,
422,
446,
747,
401,
88,
18,
291,
10608,
10756,
288,
7734,
268,
33,
2704,
4884,
12,
2211,
16,
315,
20352,
18,
24866,
6667,
1503,
2650,
8863,
7734,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
787,
1435,
288,
5411,
309,
12,
88,
422,
446,
747,
401,
88,
18,
291,
10608,
10756,
288,
7734,
268,
33,
2704,
4884,
12,
2211,
16,
315,
20352,
18,
24866,
6667,
1503,
2650,
8863,
7734,... |
LOG.warn("loading " + p); | if (LOG.isDebugEnabled()) { LOG.debug("loading " + p); } | Map load(Session ssn) { Collection paths = m_signature.getPaths(); LinkedList remaining = new LinkedList(); for (Iterator it = paths.iterator(); it.hasNext(); ) { Path path = (Path) it.next(); for (; ; path = path.getParent()) { if (!remaining.contains(path)) { remaining.add(path); } if (m_signature.isSource(path)) { break; } } } HashMap values = new HashMap(); int before; do { before = remaining.size(); OUTER: for (Iterator it = remaining.iterator(); it.hasNext(); ) { Path p = (Path) it.next(); LOG.warn("loading " + p); ObjectType type = m_signature.getType(p); Adapter adapter = ssn.getRoot().getAdapter(type); Collection props = type.getImmediateProperties(); if (props.size() == 0) { values.put(p, get(p)); it.remove(); } else { PropertyMap pmap = new PropertyMap(type); for (Iterator iter = props.iterator(); iter.hasNext(); ) { Property prop = (Property) iter.next(); Path kp = Path.add(p, prop.getName()); if (values.containsKey(kp)) { pmap.put(prop, values.get(kp)); } else if (m_signature.isFetched(kp)) { continue OUTER; } } Object obj = null; if (!pmap.isNull()) { Object previous = null; if (type.isKeyed()) { previous = ssn.getObject (adapter.getSessionKey(type, pmap)); if (previous != null) { ObjectType prevType = adapter.getObjectType(previous); if (type.equals(prevType) || prevType.isSubtypeOf(type)) { obj = previous; } else if (!type.isSubtypeOf(prevType)) { throw new IllegalStateException ("object of wrong type in session " + type + " " + prevType); } } } if (obj == null) { obj = adapter.getObject(type, pmap); if (previous != obj) { ssn.use(obj); } } } values.put(p, obj); it.remove(); } } } while (remaining.size() < before); if (remaining.size() > 0) { throw new IllegalStateException ("unable to load the following paths: " + remaining + "\nsignature: " + m_signature); } HashMap cursorValues = new HashMap(); for (Iterator it = values.entrySet().iterator(); it.hasNext(); ) { Map.Entry me = (Map.Entry) it.next(); Path p = (Path) me.getKey(); Object value = me.getValue(); if (m_signature.isSource(p)) { cursorValues.put(p, value); continue; } Property prop = m_signature.getProperty(p); if (prop.getContainer().isKeyed() && !prop.isCollection()) { Object container = values.get(p.getParent()); if (container == null) { if (value == null) { continue; } else { throw new IllegalStateException ("container of " + p + " is null"); } } ssn.load(container, prop, value); } else { cursorValues.put(p, value); } } return cursorValues; } | 12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/2e98e5f975065a0b0c5b784847deb35648f16b9d/RecordSet.java/clean/archive/qgen/src/com/redhat/persistence/RecordSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1635,
1262,
12,
2157,
5202,
82,
13,
288,
3639,
2200,
2953,
273,
312,
67,
8195,
18,
588,
4466,
5621,
202,
13174,
682,
4463,
273,
394,
10688,
5621,
202,
1884,
261,
3198,
518,
273,
2953,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1635,
1262,
12,
2157,
5202,
82,
13,
288,
3639,
2200,
2953,
273,
312,
67,
8195,
18,
588,
4466,
5621,
202,
13174,
682,
4463,
273,
394,
10688,
5621,
202,
1884,
261,
3198,
518,
273,
2953,
1... |
iVisited.accept(_Payload); | _Payload.visitZSuperNode(iVisited); | public void visitZSuperNode(ZSuperNode iVisited) { iVisited.accept(_Payload); } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/043fa4419ad506aa6f8843684eb8114b226fe4b5/DefaultIteratorVisitor.java/clean/org/jruby/nodes/visitor/DefaultIteratorVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
62,
8051,
907,
12,
62,
8051,
907,
277,
30019,
13,
288,
202,
202,
77,
30019,
18,
9436,
24899,
6110,
1769,
202,
97,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
62,
8051,
907,
12,
62,
8051,
907,
277,
30019,
13,
288,
202,
202,
77,
30019,
18,
9436,
24899,
6110,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
while(!allTransfersCompleted) { try { wait(10*1000); } catch (InterruptedException e) { } | if(cw != null) { while(!allTransfersCompleted) { try { wait(10*1000); } catch (InterruptedException e) { } } } else { allTransfersCompleted = true; | private void finish(int code, PeerNode next) { Logger.minor(this, "Finished: "+code+" on "+this, new Exception("debug")); if(status != NOT_FINISHED) throw new IllegalStateException("finish() called with "+code+" when was already "+status); setStatusTime = System.currentTimeMillis(); if(code == ROUTE_NOT_FOUND && nodesWaitingForCompletion.isEmpty()) code = ROUTE_REALLY_NOT_FOUND; status = code; synchronized(this) { notifyAll(); } Logger.minor(this, "Set status code: "+getStatusString()); // Now wait for transfers, or for downstream transfer notifications. synchronized(this) { while(!allTransfersCompleted) { try { wait(10*1000); } catch (InterruptedException e) { // Try again } } } synchronized(this) { notifyAll(); } Logger.minor(this, "Returning from finish()"); } | 46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/6455389420efb8add0eddbd5fb06a55c94e80fd7/InsertSender.java/buggy/src/freenet/node/InsertSender.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4076,
12,
474,
981,
16,
10669,
907,
1024,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
10577,
30,
13773,
710,
9078,
603,
13773,
2211,
16,
394,
1185,
2932,
4148,
7923,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4076,
12,
474,
981,
16,
10669,
907,
1024,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
10577,
30,
13773,
710,
9078,
603,
13773,
2211,
16,
394,
1185,
2932,
4148,
7923,
1... |
Icon posterClarifier = thePoster.getClarifier(); if (posterClarifier != null) { return posterClarifier; } return null; | return thePoster.getClarifier(); | public Icon getClarifier() { Icon posterClarifier = thePoster.getClarifier(); if (posterClarifier != null) { return posterClarifier; } return null; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/3e4f17f38fe33adb648b96409106895462372b51/ToDoItem.java/clean/src_new/org/argouml/cognitive/ToDoItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
16011,
1927,
7901,
1251,
1435,
288,
202,
5554,
1603,
264,
2009,
297,
1251,
273,
326,
3349,
264,
18,
588,
2009,
297,
1251,
5621,
202,
430,
261,
2767,
264,
2009,
297,
1251,
480,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
16011,
1927,
7901,
1251,
1435,
288,
202,
5554,
1603,
264,
2009,
297,
1251,
273,
326,
3349,
264,
18,
588,
2009,
297,
1251,
5621,
202,
430,
261,
2767,
264,
2009,
297,
1251,
480,
446,
... |
log.error(e); | System.err.println(e); | public static void main(String args[]) { MulticastSocket sock; InetAddress mcast_addr=null, bind_addr=null; DatagramPacket packet; byte buf[]=null; byte[] recv_buf; String tmp; int port=5555; try { for(int i=0; i < args.length; i++) { tmp=args[i]; if("-help".equals(tmp)) { help(); return; } if("-bind_addr".equals(tmp)) { bind_addr=InetAddress.getByName(args[++i]); continue; } if("-mcast_addr".equals(tmp)) { mcast_addr=InetAddress.getByName(args[++i]); continue; } if("-port".equals(tmp)) { port=Integer.parseInt(args[++i]); continue; } help(); return; } if(mcast_addr == null) mcast_addr=InetAddress.getByName("224.0.0.150"); } catch(Exception ex) { log.error(ex); return; } try { sock=new MulticastSocket(port); if(bind_addr != null) sock.setInterface(bind_addr); sock.joinGroup(mcast_addr); System.out.println("Socket=" + sock.getLocalAddress() + ':' + sock.getLocalPort() + ", bind interface=" + sock.getInterface()); while(true) { buf=new byte[256]; packet=new DatagramPacket(buf, buf.length); sock.receive(packet); recv_buf=packet.getData(); System.out.println(new String(recv_buf) + " [sender=" + packet.getAddress().getHostAddress() + ':' + packet.getPort() + ']'); byte[] buf2="Hello from Bela".getBytes(); DatagramPacket rsp=new DatagramPacket(buf2, buf2.length, packet.getAddress(), packet.getPort()); sock.send(rsp); } } catch(Exception e) { log.error(e); } } | 47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/5ad015d9a78e1da3350d9b398b46b2f5d4508564/McastReceiverTest.java/buggy/tests/other/org/jgroups/tests/McastReceiverTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
3639,
7778,
12544,
4534,
7313,
31,
3639,
14218,
312,
4155,
67,
4793,
33,
2011,
16,
1993,
67,
4793,
33,
2011,
31,
3639,
6168,
17049,
66... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
780,
833,
63,
5717,
288,
3639,
7778,
12544,
4534,
7313,
31,
3639,
14218,
312,
4155,
67,
4793,
33,
2011,
16,
1993,
67,
4793,
33,
2011,
31,
3639,
6168,
17049,
66... |
DisplayEditor3D display_editor = new DisplayEditor3D(); | DisplayEditor display_editor = new DisplayEditor(); | private void showMainPanel() { ClassLoader loader = BeanJarClassLoader.instance(); DefaultControlPanelModel model = new DefaultControlPanelModel(); model.add("D i s p l a y", new ImageIcon(loader.getResource("org/vrjuggler/vrjconfig/images/display64.png"))); model.add("S i m u l a t o r", new ImageIcon(loader.getResource("org/vrjuggler/vrjconfig/images/simulator64.png"))); model.add("C l u s t e r", new ImageIcon(loader.getResource("org/vrjuggler/vrjconfig/images/cluster64.png"))); model.add("D e v i c e s", new ImageIcon(loader.getResource("org/vrjuggler/vrjconfig/images/devices64.png"))); model.add("A u d i o", new ImageIcon(loader.getResource("org/vrjuggler/vrjconfig/images/audio64.png"))); ControlPanel new_control = new ControlPanel(); new_control.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { ControlPanel control = (ControlPanel)evt.getSource(); Object value = control.getModel().getElementAt(evt.getID()); String item = (String)value; if (item.equals("D e v i c e s")) { showDevicesPanel(); } else if (item.equals("D i s p l a y")) { DisplayEditor3D display_editor = new DisplayEditor3D(); display_editor.setConfigContext(context); pushCurrentBack(display_editor); } else if (item.equals("C l u s t e r")) { JDialog dlg = new JDialog( (Frame)SwingUtilities.getAncestorOfClass(Frame.class, ControlPanelView.this), "Sim Device Editor", true); dlg.getContentPane().setLayout(new BorderLayout()); SimAnalogDeviceEditor editor = new SimAnalogDeviceEditor(context); List chunks = getConfigBroker().getChunks(context); ConfigChunk device = (ConfigChunk)ConfigUtilities.getChunksWithName(chunks, "Analog Simulator").get(0); editor.setDevice(device); dlg.getContentPane().add(editor, BorderLayout.CENTER); dlg.pack(); dlg.setVisible(true); } } }); new_control.setModel(model); new_control.setTitle("Choose a category"); new_control.setWatermark(new ImageIcon(loader.getResource("org/vrjuggler/vrjconfig/images/watermark_logo.png"))); pushCurrentBack(new_control); } | 49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/8dd647b06da8ee3ab4842b6ef5ef3b6d3b9c16b1/ControlPanelView.java/buggy/modules/vrjuggler/vrjconfig/org/vrjuggler/vrjconfig/ControlPanelView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
2405,
6376,
5537,
1435,
282,
288,
1377,
9403,
4088,
273,
7704,
10813,
7805,
18,
1336,
5621,
1377,
2989,
3367,
5537,
1488,
938,
273,
394,
2989,
3367,
5537,
1488,
5621,
1377,
938,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
2405,
6376,
5537,
1435,
282,
288,
1377,
9403,
4088,
273,
7704,
10813,
7805,
18,
1336,
5621,
1377,
2989,
3367,
5537,
1488,
938,
273,
394,
2989,
3367,
5537,
1488,
5621,
1377,
938,
... |
public void removeTriangle(Object node) | public void removeTriangle(QueueItem node) | public void removeTriangle(Object node) { if(!(node instanceof TreeNode)) throw new RuntimeException("Not a TreeNode"); triQueue.remove(node); } | 46075 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46075/b66104acbbcca8ab1f6799fedcc4176924fbc233/TreeQueueManager.java/clean/src/java/org/j3d/terrain/roam/TreeQueueManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
31506,
12,
3183,
1180,
756,
13,
565,
288,
3639,
309,
12,
5,
12,
2159,
1276,
20270,
3719,
5411,
604,
394,
3235,
2932,
1248,
279,
20270,
8863,
3639,
6882,
3183,
18,
4479,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
31506,
12,
3183,
1180,
756,
13,
565,
288,
3639,
309,
12,
5,
12,
2159,
1276,
20270,
3719,
5411,
604,
394,
3235,
2932,
1248,
279,
20270,
8863,
3639,
6882,
3183,
18,
4479,
... |
if ( ( publicId != null && publicId.equals( _dtdInfo[ i ].publicId ) ) || ( systemId != null && systemId.equals( _dtdInfo[ i ].systemId ) ) ) { return new InputSource( getClass().getResourceAsStream( _dtdInfo[ i ].resource ) ); | if ( publicId != null && publicId.equals( _dtdInfo[ i ].publicId ) ) { source = new InputSource( getClass().getResourceAsStream( _dtdInfo[ i ].resource ) ); source.setPublicId(publicId); return source; } if ( systemId != null && systemId.equals( _dtdInfo[ i ].systemId ) ) { source = new InputSource( getClass().getResourceAsStream( _dtdInfo[ i ].resource ) ); source.setSystemId(systemId); return source; | public InputSource resolveEntity( String publicId, String systemId ) throws IOException, SAXException { int i; InputSource source; // First, resolve all the DTD/schema. for ( i = 0 ; i < _dtdInfo.length ; ++i ) { if ( ( publicId != null && publicId.equals( _dtdInfo[ i ].publicId ) ) || ( systemId != null && systemId.equals( _dtdInfo[ i ].systemId ) ) ) { return new InputSource( getClass().getResourceAsStream( _dtdInfo[ i ].resource ) ); } } // If a resolver was specified, use it. if ( _resolver != null ) { source = _resolver.resolveEntity( publicId, systemId ); if ( source != null ) return source; } // Can't resolve public id, but might be able to resolve relative // system id, since we have a base URI. if ( systemId != null && _baseUrl != null ) { URL url; try { url = new URL( systemId ); return new InputSource( url.openStream() ); } catch ( MalformedURLException except ) { try { url = new URL( _baseUrl, systemId ); return new InputSource( url.openStream() ); } catch ( MalformedURLException ex2 ) { } } return null; } // No resolving. return null; } | 3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/85b153c6605b29bbf1c3881fd21ab630ecf7e186/DTDResolver.java/clean/trunk/castor-2002/castor/src/main/org/exolab/castor/util/DTDResolver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
23699,
2245,
1943,
12,
514,
1071,
548,
16,
514,
30083,
262,
3639,
1216,
1860,
16,
14366,
565,
288,
3639,
509,
540,
277,
31,
3639,
23699,
1084,
31,
3639,
368,
5783,
16,
2245,
777,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23699,
2245,
1943,
12,
514,
1071,
548,
16,
514,
30083,
262,
3639,
1216,
1860,
16,
14366,
565,
288,
3639,
509,
540,
277,
31,
3639,
23699,
1084,
31,
3639,
368,
5783,
16,
2245,
777,
... |
final Set<PsiMethod> processedMethods) | Set<PsiMethod> pendingMethods) | private boolean isInSynchronizedContext(PsiReference reference, Set<PsiMethod> methodsAlwaysSynchronized, Set<PsiMethod> methodsNotAlwaysSynchronized, final Set<PsiMethod> processedMethods) { final PsiElement element = reference.getElement(); if(PsiTreeUtil.getParentOfType(element, PsiSynchronizedStatement.class) != null){ return true; } final PsiMethod method = PsiTreeUtil .getParentOfType(element, PsiMethod.class); if(method == null){ return false; } if (processedMethods.contains(method)) return true; processedMethods.add(method); if(method.hasModifierProperty(PsiModifier.SYNCHRONIZED)){ return true; } return methodIsAlwaysUsedSynchronized(method, methodsAlwaysSynchronized, methodsNotAlwaysSynchronized, processedMethods); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/1c66bd07c76b86e4314f2eee7acc5ea7824f6729/VariableAccessVisitor.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/threading/VariableAccessVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
8048,
55,
15666,
1042,
12,
52,
7722,
2404,
2114,
16,
4766,
5411,
1000,
32,
52,
7722,
1305,
34,
2590,
18806,
55,
15666,
16,
4766,
5411,
1000,
32,
52,
7722,
1305,
34,
2590,
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,
377,
3238,
1250,
8048,
55,
15666,
1042,
12,
52,
7722,
2404,
2114,
16,
4766,
5411,
1000,
32,
52,
7722,
1305,
34,
2590,
18806,
55,
15666,
16,
4766,
5411,
1000,
32,
52,
7722,
1305,
34,
2590,
12... |
try { Method getEncoding = fDocument.getClass().getMethod("getInputEncoding", new Class[] {}); if (getEncoding != null) { encoding = (String) getEncoding.invoke(fDocument, (Object[]) null); } } catch (Exception e) { } | String encoding = _getInputEncoding(node); | public boolean writeToURI(Node node, String URI) throws LSException{ if (node == null){ return false; } Method getXmlVersion = null; XMLSerializer ser = null; String ver = null; String encoding = null; Document fDocument =(node.getNodeType() == Node.DOCUMENT_NODE) ? (Document) node : node.getOwnerDocument(); // this should run under JDK 1.1.8... try { getXmlVersion = fDocument.getClass().getMethod("getXmlVersion", new Class[] {}); if (getXmlVersion != null) { ver = (String) getXmlVersion.invoke(fDocument, (Object[]) null); } } catch (Exception e) { // no way to test the version... // ignore the exception } if (ver != null && ver.equals("1.1")) { if (xml11Serializer == null) { xml11Serializer = new XML11Serializer(); initSerializer(xml11Serializer); } // copy setting from "main" serializer to XML 1.1 serializer copySettings(serializer, xml11Serializer); ser = xml11Serializer; } else { ser = serializer; } try { Method getEncoding = fDocument.getClass().getMethod("getInputEncoding", new Class[] {}); if (getEncoding != null) { encoding = (String) getEncoding.invoke(fDocument, (Object[]) null); } } catch (Exception e) { // ignore the exception } if (encoding == null) { try { Method getEncoding = fDocument.getClass().getMethod("getXmlEncoding", new Class[] {}); if (getEncoding != null) { encoding = (String) getEncoding.invoke(fDocument, (Object[]) null); } } catch (Exception e) { // ignore the exception } if (encoding == null) { encoding = "UTF-8"; } } try { prepareForSerialization(ser, node); ser._format.setEncoding(encoding); // URI was specified. Handle relative URIs. String expanded = XMLEntityManager.expandSystemId(URI, null, true); URL url = new URL(expanded != null ? expanded : URI); OutputStream out = null; String protocol = url.getProtocol(); String host = url.getHost(); // Use FileOutputStream if this URI is for a local file. if (protocol.equals("file") && (host == null || host.length() == 0 || host.equals("localhost"))) { out = new FileOutputStream(getPathWithoutEscapes(url.getFile())); } // Try to write to some other kind of URI. Some protocols // won't support this, though HTTP should work. else { URLConnection urlCon = url.openConnection(); urlCon.setDoInput(false); urlCon.setDoOutput(true); urlCon.setUseCaches(false); // Enable tunneling. if (urlCon instanceof HttpURLConnection) { // The DOM L3 LS CR says if we are writing to an HTTP URI // it is to be done with an HTTP PUT. HttpURLConnection httpCon = (HttpURLConnection) urlCon; httpCon.setRequestMethod("PUT"); } out = urlCon.getOutputStream(); } ser.setOutputByteStream(out); if (node.getNodeType() == Node.DOCUMENT_NODE) ser.serialize((Document) node); else if (node.getNodeType() == Node.DOCUMENT_FRAGMENT_NODE) ser.serialize((DocumentFragment) node); else if (node.getNodeType() == Node.ELEMENT_NODE) ser.serialize((Element) node); else return false; } catch (LSException lse) { // Rethrow LSException. throw lse; } catch (RuntimeException e) { if (e == DOMNormalizer.abort){ // stopped at user request return false; } throw (LSException) DOMUtil.createLSException(LSException.SERIALIZE_ERR, e).fillInStackTrace(); } catch (Exception e) { if (ser.fDOMErrorHandler != null) { DOMErrorImpl error = new DOMErrorImpl(); error.fException = e; error.fMessage = e.getMessage(); error.fSeverity = DOMError.SEVERITY_ERROR; ser.fDOMErrorHandler.handleError(error); } throw (LSException) DOMUtil.createLSException(LSException.SERIALIZE_ERR, e).fillInStackTrace(); } return true; } //writeURI | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/79051c332f89b308cf564a9b0e070bbc49227002/DOMSerializerImpl.java/clean/src/org/apache/xml/serialize/DOMSerializerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
12870,
3098,
12,
907,
756,
16,
514,
3699,
13,
1216,
29204,
503,
95,
3639,
309,
261,
2159,
422,
446,
15329,
5411,
327,
629,
31,
3639,
289,
3639,
2985,
28504,
1444,
273,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12870,
3098,
12,
907,
756,
16,
514,
3699,
13,
1216,
29204,
503,
95,
3639,
309,
261,
2159,
422,
446,
15329,
5411,
327,
629,
31,
3639,
289,
3639,
2985,
28504,
1444,
273,
446,
... |
databaseProductName = comm.getString(nameLen); | databaseProductName = comm.getString(nameLen, encoder); | private PacketResult processLoginAck() throws net.sourceforge.jtds.jdbc.TdsException, java.io.IOException { getSubPacketLength(); // Packet length if( tdsVer == Tds.TDS70 ) { comm.skip(5); int nameLen = comm.getByte(); databaseProductName = comm.getString(nameLen); databaseProductVersion = ("0" + (databaseMajorVersion=comm.getByte()) + ".0" + comm.getByte() + ".0" + ((256 * (comm.getByte()+1)) + comm.getByte())); } else { comm.skip(5); short nameLen = comm.getByte(); databaseProductName = comm.getString(nameLen); comm.skip(1); databaseProductVersion = ("" + (databaseMajorVersion=comm.getByte()) + "." + comm.getByte()); comm.skip(1); } if (databaseProductName.length() > 1 && -1 != databaseProductName.indexOf('\0')) { int last = databaseProductName.indexOf('\0'); databaseProductName = databaseProductName.substring(0, last); } return new PacketResult(TDS_LOGINACK); } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/97164a0afa05dda770bcb5e79a95c97cd975d5f7/Tds.java/clean/src/main/net/sourceforge/jtds/jdbc/Tds.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
11114,
1253,
1207,
5358,
11931,
1435,
2398,
1216,
2901,
18,
3168,
1884,
908,
18,
78,
88,
2377,
18,
24687,
18,
56,
2377,
503,
16,
2252,
18,
1594,
18,
14106,
565,
288,
3639,
7040,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11114,
1253,
1207,
5358,
11931,
1435,
2398,
1216,
2901,
18,
3168,
1884,
908,
18,
78,
88,
2377,
18,
24687,
18,
56,
2377,
503,
16,
2252,
18,
1594,
18,
14106,
565,
288,
3639,
7040,
6... |
public static ValueLinkApi getInstance(GenericDelegator delegator, Properties props) { return getInstance(delegator, props, false); | public static ValueLinkApi getInstance(GenericDelegator delegator, Properties props, boolean reload) { String merchantId = (String) props.get("payment.valuelink.merchantId"); if (props == null) { throw new IllegalArgumentException("Properties cannot be null"); } ValueLinkApi api = (ValueLinkApi) objectCache.get(merchantId); if (api == null || reload) { synchronized(ValueLinkApi.class) { api = (ValueLinkApi) objectCache.get(merchantId); if (api == null || reload) { api = new ValueLinkApi(delegator, props); objectCache.put(merchantId, api); } } } if (api == null) { throw new RuntimeException("Runtime problems with ValueLinkApi; unable to create instance"); } return api; | public static ValueLinkApi getInstance(GenericDelegator delegator, Properties props) { return getInstance(delegator, props, false); } | 55411 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55411/123e21403fe4a296eca2d0a5773e2c661b11dba7/ValueLinkApi.java/buggy/applications/accounting/src/org/ofbiz/accounting/thirdparty/valuelink/ValueLinkApi.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1445,
2098,
3064,
3694,
12,
7014,
15608,
639,
11158,
639,
16,
6183,
3458,
13,
288,
3639,
327,
3694,
12,
3771,
1332,
639,
16,
3458,
16,
629,
1769,
565,
289,
2,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1445,
2098,
3064,
3694,
12,
7014,
15608,
639,
11158,
639,
16,
6183,
3458,
13,
288,
3639,
327,
3694,
12,
3771,
1332,
639,
16,
3458,
16,
629,
1769,
565,
289,
2,
-100,
-100,
-10... |
child.setAttribute(WSDLPump.XSD_TYPE, relaventElementInSchemaReferedByPart.getAttribute(WSDLPump.XSD_TYPE)); | child.setAttribute(WSDLPump.XSD_TYPE, relaventElementInSchemaReferedByPart.getAttribute(WSDLPump.XSD_TYPE)); | private QName generateReferenceQname(Message wsdl4jMessage) { QName referenceQName = null; if (wsdl4jMessage.getParts().size() > 1) { Map parts = wsdl4jMessage.getParts(); Iterator i = parts.keySet().iterator(); Part thisPart = (Part)(parts.get(i.next())); if (thisPart.getElementName() != null) { throw new RuntimeException( "We don't support multiple element parts in a WSDL message"); } // Multipart Message // NOTE (gdaniels) : It appears this code is taking multiple // part declarations and "wrapping" them into a single schema // type. This is fine for RPC style stuff, but should not be // happening for document style. // TODO : sanity check // Check whether this message parts have been made to a type Iterator multipartListIterator = this.resolvedMultipartMessageList.iterator(); boolean multipartAlreadyResolved = false; while (multipartListIterator.hasNext() && !multipartAlreadyResolved) { QName temp = (QName) multipartListIterator.next(); multipartAlreadyResolved = wsdl4jMessage.getQName().equals(temp); } if (multipartAlreadyResolved) { //This message with multiple parts has resolved and a new type has been //made out of it earlier. //FIXME Actual element name should it be xs:, if yes change the qname added to the //resolvedmessage list too. referenceQName = wsdl4jMessage.getQName(); } else { //Get the list of multiparts of the message and create a new Element //out of it and add it to the schema. Element schemaElement = null; WSDLTypes types = womDefinition.getTypes(); //If types is null create a new one to be used for multipart //resolution if any. if (null == types) { DocumentBuilder documentBuilder = null; try { documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); } catch (ParserConfigurationException e) { throw new RuntimeException(e); } Document newDoc = documentBuilder.newDocument(); Element newSchemaElement = newDoc.createElementNS("http://www.w3.org/2001/XMLSchema", "schema"); types = wsdlComponentFactory.createTypes(); ExtensionFactory extensionFactory = wsdlComponentFactory.createExtensionFactory(); org.apache.wsdl.extensions.Schema typesElement = (org.apache.wsdl.extensions.Schema) extensionFactory.getExtensionElement( ExtensionConstants.SCHEMA); typesElement.setElelment(newSchemaElement); types.addExtensibilityElement(typesElement); this.womDefinition.setTypes(types); } // Iterator schemaEIIterator = types.getExtensibilityElements() .iterator(); while (schemaEIIterator.hasNext()) { WSDLExtensibilityElement temp = (WSDLExtensibilityElement) schemaEIIterator.next(); if (ExtensionConstants.SCHEMA.equals(temp.getType())) { schemaElement = ((org.apache.wsdl.extensions.Schema) temp).getElelment(); break; } } schemaElement.setAttribute(WSDLPump.XMLNS_AXIS2WRAPPED, schemaElement.getAttribute(WSDLPump.XSD_TARGETNAMESPACE)); Document doc = schemaElement.getOwnerDocument(); String name = wsdl4jMessage.getQName().getLocalPart(); Element newType = doc.createElementNS(WSDLPump.NAMESPACE_XMLSCHEMA, WSDLPump.XSD_COMPLEXTYPE); newType.setAttribute(WSDLPump.XSD_NAME, name); Element cmplxContent = doc.createElementNS(WSDLPump.NAMESPACE_XMLSCHEMA, WSDLPump.XSD_SEQUENCE); Element child; Element relaventElementInSchemaReferedByPart = null; Iterator iterator = parts.keySet().iterator(); while (iterator.hasNext()) { Part part = (Part) parts.get(iterator.next()); QName elementName = part.getElementName(); if (null == elementName) { elementName = part.getTypeName(); } NodeList allSchemaElements = schemaElement.getChildNodes(); for(int idx = 0; idx < allSchemaElements.getLength(); idx++){ if(allSchemaElements.item(idx).getNodeType() == Node.ELEMENT_NODE && allSchemaElements.item(idx).getLocalName().equals(WSDLPump.XSD_ELEMENT) && elementName.getLocalPart().equals(((Element)allSchemaElements.item(idx)).getAttribute(WSDLPump.XSD_NAME))){ relaventElementInSchemaReferedByPart = (Element)allSchemaElements.item(idx); break; } } child = doc.createElementNS(WSDLPump.NAMESPACE_XMLSCHEMA, WSDLPump.XSD_ELEMENT); child.setAttribute(WSDLPump.XSD_NAME, elementName.getLocalPart()); if(null != relaventElementInSchemaReferedByPart){ child.setAttribute(WSDLPump.XSD_TYPE, relaventElementInSchemaReferedByPart.getAttribute(WSDLPump.XSD_TYPE)); }else{ child.setAttribute(WSDLPump.XSD_TYPE, elementName.getLocalPart()); } cmplxContent.appendChild(child); } newType.appendChild(cmplxContent); schemaElement.appendChild(newType); Element newElement = doc.createElementNS(WSDLPump.NAMESPACE_XMLSCHEMA, WSDLPump.XSD_ELEMENT); newElement.setAttribute(WSDLPump.XSD_NAME, wsdl4jMessage.getQName().getLocalPart()); newElement.setAttribute(WSDLPump.XSD_TYPE, "axis2wrapped:"+wsdl4jMessage.getQName().getLocalPart()); schemaElement.appendChild(newElement); //Now since a new type is created augmenting the parts add the QName //of the newly created type as the messageReference's name. referenceQName = wsdl4jMessage.getQName(); //Add this message as a resolved message, so that incase some other //operation refer to the same message the if above will take a hit //and the cashed QName can be used instead of creating another type //for the same message. this.resolvedMultipartMessageList.add(wsdl4jMessage.getQName()); } } else { //Only one part so copy the QName of the referenced type. Iterator outputIterator = wsdl4jMessage.getParts().values().iterator(); if (outputIterator.hasNext()) { Part outPart = ((Part) outputIterator.next()); QName typeName; if (null != (typeName = outPart.getTypeName())) { referenceQName = typeName; } else { referenceQName = outPart.getElementName(); } } } return referenceQName; } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/75a39e698ad064999b536c0847ee45b2f0a756cd/WSDLPump.java/buggy/modules/wsdl/src/org/apache/axis2/wsdl/builder/wsdl4j/WSDLPump.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
16723,
2103,
2404,
53,
529,
12,
1079,
17642,
24,
78,
1079,
13,
288,
3639,
16723,
2114,
13688,
273,
446,
31,
3639,
309,
261,
4749,
5761,
24,
78,
1079,
18,
588,
4305,
7675,
1467,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
2404,
53,
529,
12,
1079,
17642,
24,
78,
1079,
13,
288,
3639,
16723,
2114,
13688,
273,
446,
31,
3639,
309,
261,
4749,
5761,
24,
78,
1079,
18,
588,
4305,
7675,
1467,
14... |
"import javax.microedition.lcdui.Image; " + "import de.enough.polish.ui.*;"; | "import javax.microedition.lcdui.Image"; this.completeMidp2 = this.defaultPackageCompleteMidp2 + "; import de.enough.polish.ui.*;"; | public ImportConverter() { // init import statements to translate from the J2ME- to the polish-GUI: HashMap toPolish = new HashMap(); toPolish.put( "javax.microedition.lcdui.Choice", "de.enough.polish.ui.Choice; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.ChoiceGroup", "de.enough.polish.ui.ChoiceGroup; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.CustomItem", "de.enough.polish.ui.CustomItem; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.DateField", "de.enough.polish.ui.DateField; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.Form", "de.enough.polish.ui.Form; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.Gauge", "de.enough.polish.ui.Gauge; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.ImageItem", "de.enough.polish.ui.ImageItem; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.Item", "de.enough.polish.ui.Item; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.ItemCommandListener", "de.enough.polish.ui.ItemCommandListener; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.ItemStateListener", "de.enough.polish.ui.ItemStateListener; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.List", "de.enough.polish.ui.List; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.Screen", "de.enough.polish.ui.Screen; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.Spacer", "de.enough.polish.ui.Spacer; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.StringItem", "de.enough.polish.ui.StringItem; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.Style", "de.enough.polish.ui.Style; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.TextBox", "de.enough.polish.ui.TextBox; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.TextField", "de.enough.polish.ui.TextField; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.Ticker", "de.enough.polish.ui.Ticker; import de.enough.polish.ui.StyleSheet"); this.midp2ToPolish = toPolish; this.siemensColorGameApiToPolish = new HashMap( toPolish ); this.siemensColorGameApiToPolish.put( "javax.microedition.lcdui.game.GameCanvas", "com.siemens.mp.color_game.GameCanvas; import de.enough.polish.ui.StyleSheet" ); this.siemensColorGameApiToPolish.put( "javax.microedition.lcdui.game.Layer", "com.siemens.mp.color_game.Layer; import de.enough.polish.ui.StyleSheet" ); this.siemensColorGameApiToPolish.put( "javax.microedition.lcdui.game.LayerManager", "com.siemens.mp.color_game.LayerManager; import de.enough.polish.ui.StyleSheet" ); this.siemensColorGameApiToPolish.put( "javax.microedition.lcdui.game.TiledLayer", "com.siemens.mp.color_game.TiledLayer; import de.enough.polish.ui.StyleSheet" ); this.siemensColorGameApiToPolish.put( "javax.microedition.lcdui.game.Sprite", "de.enough.polish.ui.game.Sprite; import de.enough.polish.ui.StyleSheet"); this.polishToSiemensColorGameApi = new HashMap(); this.polishToSiemensColorGameApi.put( "javax.microedition.lcdui.game.GameCanvas", "com.siemens.mp.color_game.GameCanvas; import de.enough.polish.ui.StyleSheet" ); this.polishToSiemensColorGameApi.put( "javax.microedition.lcdui.game.Layer", "com.siemens.mp.color_game.Layer; import de.enough.polish.ui.StyleSheet" ); this.polishToSiemensColorGameApi.put( "javax.microedition.lcdui.game.LayerManager", "com.siemens.mp.color_game.LayerManager; import de.enough.polish.ui.StyleSheet" ); this.polishToSiemensColorGameApi.put( "javax.microedition.lcdui.game.TiledLayer", "com.siemens.mp.color_game.TiledLayer; import de.enough.polish.ui.StyleSheet" ); this.polishToSiemensColorGameApi.put( "javax.microedition.lcdui.game.Sprite", "de.enough.polish.ui.game.Sprite; import de.enough.polish.ui.StyleSheet"); toPolish = new HashMap( toPolish ); toPolish.put( "javax.microedition.lcdui.game.GameCanvas", "de.enough.polish.ui.game.GameCanvas; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.game.Layer", "de.enough.polish.ui.game.Layer; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.game.LayerManager", "de.enough.polish.ui.game.LayerManager; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.game.Sprite", "de.enough.polish.ui.game.Sprite; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.game.TiledLayer", "de.enough.polish.ui.game.TiledLayer; import de.enough.polish.ui.StyleSheet"); toPolish.put( "javax.microedition.lcdui.game.*", "de.enough.polish.ui.game.*; import de.enough.polish.ui.StyleSheet"); this.midp1ToPolish = toPolish; // that was peanuts now the tricky part comes: // when javax.microedition.lcdui.* is imported, there are still // some base classes which cannot be implemented by the polish framework, // these have to be inserted as well: this.completeMidp1 = "import javax.microedition.lcdui.CommandListener; " + "import javax.microedition.lcdui.Alert; " + "import javax.microedition.lcdui.AlertType; " + "import javax.microedition.lcdui.Canvas; " + "import javax.microedition.lcdui.Command; " + "import javax.microedition.lcdui.Display; " + "import javax.microedition.lcdui.Displayable; " + "import javax.microedition.lcdui.Font; " + "import javax.microedition.lcdui.Graphics; " + "import javax.microedition.lcdui.Image; " + "import de.enough.polish.ui.*;"; this.completeMidp2 = "import javax.microedition.lcdui.CommandListener; " + "import javax.microedition.lcdui.Alert; " + "import javax.microedition.lcdui.AlertType; " + "import javax.microedition.lcdui.Canvas; " + "import javax.microedition.lcdui.Command; " + "import javax.microedition.lcdui.Display; " + "import javax.microedition.lcdui.Displayable; " + "import javax.microedition.lcdui.Font; " + "import javax.microedition.lcdui.Graphics; " + "import javax.microedition.lcdui.Image; " + "import de.enough.polish.ui.*;"; // init import statements to translate from the polish- to the J2ME-GUI: HashMap toJavax = new HashMap(); toJavax.put( "de.enough.polish.ui.*", "javax.microedition.lcdui.*" ); // add all javaxToPolish-elements switched over: Set set = toPolish.keySet(); for (Iterator iter = set.iterator(); iter.hasNext();) { String key = (String) iter.next(); toJavax.put( toPolish.get(key), key ); } this.polishToMidp2 = new HashMap( toJavax ); // add game-API for MIDP/1.0 devices: toJavax.put( "javax.microedition.lcdui.game.GameCanvas", "de.enough.polish.ui.game.GameCanvas"); toJavax.put( "javax.microedition.lcdui.game.Layer", "de.enough.polish.ui.game.Layer"); toJavax.put( "javax.microedition.lcdui.game.LayerManager", "de.enough.polish.ui.game.LayerManager"); toJavax.put( "javax.microedition.lcdui.game.Sprite", "de.enough.polish.ui.game.Sprite"); toJavax.put( "javax.microedition.lcdui.game.TiledLayer", "de.enough.polish.ui.game.TiledLayer"); toJavax.put( "javax.microedition.lcdui.game.*", "de.enough.polish.ui.game.*"); this.polishToMidp1 = toJavax; } | 9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/3b8c8b6c4d94de23963f563b591ccfed1277b62e/ImportConverter.java/clean/enough-polish-build/source/src/de/enough/polish/preprocess/ImportConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6164,
5072,
1435,
288,
202,
202,
759,
1208,
1930,
6317,
358,
4204,
628,
326,
804,
22,
958,
17,
358,
326,
2952,
1468,
17,
43,
5370,
30,
202,
202,
8658,
358,
5850,
1468,
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,
225,
202,
482,
6164,
5072,
1435,
288,
202,
202,
759,
1208,
1930,
6317,
358,
4204,
628,
326,
804,
22,
958,
17,
358,
326,
2952,
1468,
17,
43,
5370,
30,
202,
202,
8658,
358,
5850,
1468,
273,
... |
public void replaceOperation(IUndoableOperation operation, IUndoableOperation [] replacements) { // check the undo history first. int index = undoList.indexOf(operation); if (index > -1) { undoList.remove(operation); internalRemove(operation); ArrayList allContexts = new ArrayList(replacements.length); for (int i=0; i<replacements.length; i++) { IUndoContext [] opContexts = replacements[i].getContexts(); for (int j=0; j < opContexts.length; j++ ) { allContexts.add(opContexts[j]); } undoList.add(index, replacements[i]); notifyAdd(replacements[i]); } // recheck all the limits. We do this at the end so the index doesn't change during replacement for (int i=0; i<allContexts.size(); i++) { IUndoContext context = (IUndoContext)allContexts.get(i); forceUndoLimit(context, getLimit(context)); } // look in the redo history } else { index = redoList.indexOf(operation); if (index == -1) return; ArrayList allContexts = new ArrayList(replacements.length); redoList.remove(operation); internalRemove(operation); for (int i=0; i<replacements.length; i++) { IUndoContext [] opContexts = replacements[i].getContexts(); for (int j=0; j < opContexts.length; j++ ) { allContexts.add(opContexts[j]); } redoList.add(index, replacements[i]); notifyAdd(replacements[i]); } // recheck all the limits. We do this at the end so the index doesn't change during replacement for (int i=0; i<allContexts.size(); i++) { IUndoContext context = (IUndoContext)allContexts.get(i); forceRedoLimit(context, getLimit(context)); } } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/3bad50e6f68ff26b260565b7df8938cfe4826b83/DefaultOperationHistory.java/clean/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/operations/DefaultOperationHistory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1453,
2988,
12,
45,
31224,
429,
2988,
1674,
16,
467,
31224,
429,
2988,
5378,
11413,
13,
288,
202,
202,
759,
866,
326,
15436,
4927,
1122,
18,
202,
202,
474,
770,
273,
1543... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1453,
2988,
12,
45,
31224,
429,
2988,
1674,
16,
467,
31224,
429,
2988,
5378,
11413,
13,
288,
202,
202,
759,
866,
326,
15436,
4927,
1122,
18,
202,
202,
474,
770,
273,
1543... | ||
prevEditorAction = ActionFactory.PREVIOUS_EDITOR.create(getWindow()); | prevEditorAction = ActionFactory.PREVIOUS_EDITOR.create(window); | protected void makeActions(IWorkbenchWindow window) { // @issue should obtain from ConfigurationItemFactory statusLineItem = new StatusLineContributionItem("ModeContributionItem"); //$NON-NLS-1$ newWizardAction = ActionFactory.NEW.create(getWindow()); register(newWizardAction); newWizardDropDownAction = IDEActionFactory.NEW_WIZARD_DROP_DOWN .create(getWindow()); register(newWizardDropDownAction); importResourcesAction = ActionFactory.IMPORT.create(getWindow()); register(importResourcesAction); exportResourcesAction = ActionFactory.EXPORT.create(getWindow()); register(exportResourcesAction); buildAllAction = IDEActionFactory.BUILD.create(getWindow()); register(buildAllAction); cleanAction = IDEActionFactory.BUILD_CLEAN.create(getWindow()); register(cleanAction); toggleAutoBuildAction = IDEActionFactory.BUILD_AUTOMATICALLY .create(getWindow()); register(toggleAutoBuildAction); saveAction = ActionFactory.SAVE.create(getWindow()); register(saveAction); saveAsAction = ActionFactory.SAVE_AS.create(getWindow()); register(saveAsAction); saveAllAction = ActionFactory.SAVE_ALL.create(getWindow()); register(saveAllAction); undoAction = ActionFactory.UNDO.create(getWindow()); register(undoAction); redoAction = ActionFactory.REDO.create(getWindow()); register(redoAction); cutAction = ActionFactory.CUT.create(getWindow()); register(cutAction); copyAction = ActionFactory.COPY.create(getWindow()); register(copyAction); pasteAction = ActionFactory.PASTE.create(getWindow()); register(pasteAction); printAction = ActionFactory.PRINT.create(getWindow()); register(printAction); selectAllAction = ActionFactory.SELECT_ALL.create(getWindow()); register(selectAllAction); findAction = ActionFactory.FIND.create(getWindow()); register(findAction); closeAction = ActionFactory.CLOSE.create(getWindow()); register(closeAction); closeAllAction = ActionFactory.CLOSE_ALL.create(getWindow()); register(closeAllAction); closeAllSavedAction = ActionFactory.CLOSE_ALL_SAVED.create(getWindow()); register(closeAllSavedAction); helpContentsAction = ActionFactory.HELP_CONTENTS.create(getWindow()); register(helpContentsAction); aboutAction = ActionFactory.ABOUT.create(getWindow()); aboutAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_OBJS_DEFAULT_PROD)); register(aboutAction); openPreferencesAction = ActionFactory.PREFERENCES.create(getWindow()); register(openPreferencesAction); addBookmarkAction = IDEActionFactory.BOOKMARK.create(getWindow()); register(addBookmarkAction); addTaskAction = IDEActionFactory.ADD_TASK.create(getWindow()); register(addTaskAction); deleteAction = ActionFactory.DELETE.create(getWindow()); register(deleteAction); AboutInfo[] infos = IDEWorkbenchPlugin.getDefault().getFeatureInfos(); // See if a welcome page is specified for (int i = 0; i < infos.length; i++) { if (infos[i].getWelcomePageURL() != null) { quickStartAction = IDEActionFactory.QUICK_START .create(getWindow()); register(quickStartAction); break; } } // See if a tips and tricks page is specified for (int i = 0; i < infos.length; i++) { if (infos[i].getTipsAndTricksHref() != null) { tipsAndTricksAction = IDEActionFactory.TIPS_AND_TRICKS .create(getWindow()); register(tipsAndTricksAction); break; } } // Actions for invisible accelerators showViewMenuAction = ActionFactory.SHOW_VIEW_MENU.create(getWindow()); register(showViewMenuAction); showPartPaneMenuAction = ActionFactory.SHOW_PART_PANE_MENU .create(getWindow()); register(showPartPaneMenuAction); nextEditorAction = ActionFactory.NEXT_EDITOR.create(getWindow()); register(nextEditorAction); prevEditorAction = ActionFactory.PREVIOUS_EDITOR.create(getWindow()); register(prevEditorAction); ActionFactory.linkCycleActionPair(nextEditorAction, prevEditorAction); nextPartAction = ActionFactory.NEXT_PART.create(getWindow()); register(nextPartAction); prevPartAction = ActionFactory.PREVIOUS_PART.create(getWindow()); register(prevPartAction); ActionFactory.linkCycleActionPair(nextPartAction, prevPartAction); nextPerspectiveAction = ActionFactory.NEXT_PERSPECTIVE .create(getWindow()); register(nextPerspectiveAction); prevPerspectiveAction = ActionFactory.PREVIOUS_PERSPECTIVE .create(getWindow()); register(prevPerspectiveAction); ActionFactory.linkCycleActionPair(nextPerspectiveAction, prevPerspectiveAction); activateEditorAction = ActionFactory.ACTIVATE_EDITOR .create(getWindow()); register(activateEditorAction); maximizePartAction = ActionFactory.MAXIMIZE.create(getWindow()); register(maximizePartAction); minimizePartAction = ActionFactory.MINIMIZE.create(getWindow()); register(minimizePartAction); workbenchEditorsAction = ActionFactory.SHOW_OPEN_EDITORS .create(getWindow()); register(workbenchEditorsAction); workbookEditorsAction = ActionFactory.SHOW_WORKBOOK_EDITORS .create(getWindow()); register(workbookEditorsAction); hideShowEditorAction = ActionFactory.SHOW_EDITOR.create(getWindow()); register(hideShowEditorAction); savePerspectiveAction = ActionFactory.SAVE_PERSPECTIVE .create(getWindow()); register(savePerspectiveAction); editActionSetAction = ActionFactory.EDIT_ACTION_SETS .create(getWindow()); register(editActionSetAction); lockToolBarAction = ActionFactory.LOCK_TOOL_BAR.create(getWindow()); register(lockToolBarAction); resetPerspectiveAction = ActionFactory.RESET_PERSPECTIVE .create(getWindow()); register(resetPerspectiveAction); closePerspAction = ActionFactory.CLOSE_PERSPECTIVE.create(getWindow()); register(closePerspAction); closeAllPerspsAction = ActionFactory.CLOSE_ALL_PERSPECTIVES .create(getWindow()); register(closeAllPerspsAction); forwardHistoryAction = ActionFactory.FORWARD_HISTORY .create(getWindow()); register(forwardHistoryAction); backwardHistoryAction = ActionFactory.BACKWARD_HISTORY .create(getWindow()); register(backwardHistoryAction); revertAction = ActionFactory.REVERT.create(getWindow()); register(revertAction); refreshAction = ActionFactory.REFRESH.create(getWindow()); register(refreshAction); propertiesAction = ActionFactory.PROPERTIES.create(getWindow()); register(propertiesAction); quitAction = ActionFactory.QUIT.create(getWindow()); register(quitAction); moveAction = ActionFactory.MOVE.create(getWindow()); register(moveAction); renameAction = ActionFactory.RENAME.create(getWindow()); register(renameAction); goIntoAction = ActionFactory.GO_INTO.create(getWindow()); register(goIntoAction); backAction = ActionFactory.BACK.create(getWindow()); register(backAction); forwardAction = ActionFactory.FORWARD.create(getWindow()); register(forwardAction); upAction = ActionFactory.UP.create(getWindow()); register(upAction); nextAction = ActionFactory.NEXT.create(getWindow()); nextAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_ETOOL_NEXT_NAV)); register(nextAction); previousAction = ActionFactory.PREVIOUS.create(getWindow()); previousAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_ETOOL_PREVIOUS_NAV)); register(previousAction); buildProjectAction = IDEActionFactory.BUILD_PROJECT.create(getWindow()); register(buildProjectAction); openProjectAction = IDEActionFactory.OPEN_PROJECT.create(getWindow()); register(openProjectAction); closeProjectAction = IDEActionFactory.CLOSE_PROJECT.create(getWindow()); register(closeProjectAction); openWorkspaceAction = IDEActionFactory.OPEN_WORKSPACE .create(getWindow()); register(openWorkspaceAction); projectPropertyDialogAction = IDEActionFactory.OPEN_PROJECT_PROPERTIES .create(getWindow()); register(projectPropertyDialogAction); if (getWindow().getWorkbench().getIntroManager().hasIntro()) { introAction = ActionFactory.INTRO.create(window); register(introAction); } String showInQuickMenuId = "org.eclipse.ui.navigate.showInQuickMenu"; //$NON-NLS-1$ showInQuickMenu = new QuickMenuAction(showInQuickMenuId) { protected void fillMenu(IMenuManager menu) { menu.add(ContributionItemFactory.VIEWS_SHOW_IN .create(getWindow())); } }; register(showInQuickMenu); final String newQuickMenuId = "org.eclipse.ui.file.newQuickMenu"; //$NON-NLS-1$ newQuickMenu = new QuickMenuAction(newQuickMenuId) { protected void fillMenu(IMenuManager menu) { menu.add(new NewWizardMenu(getWindow())); } }; register(newQuickMenu); pinEditorContributionItem = ContributionItemFactory.PIN_EDITOR .create(getWindow()); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1bde0643dd187b23bf57cd332e0997f6c371aaa1/WorkbenchActionBuilder.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1221,
6100,
12,
45,
2421,
22144,
3829,
2742,
13,
288,
3639,
368,
632,
13882,
1410,
7161,
628,
4659,
1180,
1733,
3639,
1267,
30038,
273,
394,
2685,
1670,
442,
4027,
1180,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1221,
6100,
12,
45,
2421,
22144,
3829,
2742,
13,
288,
3639,
368,
632,
13882,
1410,
7161,
628,
4659,
1180,
1733,
3639,
1267,
30038,
273,
394,
2685,
1670,
442,
4027,
1180,
2932,
... |
if (dense != null && 0 <= index && index < dense.length) { dense[index] = value; return; } super.put(index, start, value); | super.put(id, start, value); | public void put(int index, Scriptable start, Object value) { // only set the array length if given an array index (ECMA 15.4.0) if (this.length <= index) { // avoid overflowing index! this.length = (long)index + 1; } if (dense != null && 0 <= index && index < dense.length) { dense[index] = value; return; } super.put(index, start, value); } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/032b7f4436573637adbecdd4a87a1f7f49395249/NativeArray.java/buggy/js/rhino/org/mozilla/javascript/NativeArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1378,
12,
474,
770,
16,
22780,
787,
16,
1033,
460,
13,
288,
3639,
368,
1338,
444,
326,
526,
769,
309,
864,
392,
526,
770,
261,
7228,
5535,
4711,
18,
24,
18,
20,
13,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1378,
12,
474,
770,
16,
22780,
787,
16,
1033,
460,
13,
288,
3639,
368,
1338,
444,
326,
526,
769,
309,
864,
392,
526,
770,
261,
7228,
5535,
4711,
18,
24,
18,
20,
13,
3639,
... |
protected boolean formatValue( Object value, String formatStr, StyleDesign style, StringBuffer formattedStr ) { if ( value == null ) { return false; } assert style != null && formattedStr != null; assert context.getLocale( ) != null; if ( ( value instanceof Number ) ) { NumberFormatter numberFormat; if ( formatStr == null || formatStr.length( ) == 0 ) { numberFormat = style.getNumberFormatObject( ); //initial number-format for the first time if ( numberFormat == null ) { numberFormat = new NumberFormatter( context.getLocale( ) ); formatStr = style.getNumberFormat( ); if ( formatStr != null ) { numberFormat.applyPattern( formatStr ); } style.setNumberFormatObject( numberFormat ); } else { formatStr = numberFormat.getPattern( ); } } else //deal with value-of for text item { numberFormat = new NumberFormatter( context.getLocale( ) ); numberFormat.applyPattern( formatStr ); } formattedStr.append( numberFormat.format( ( (Number) value ) .doubleValue( ) ) ); } else if ( value instanceof Date ) { DateFormatter dateFormat; if ( formatStr == null || formatStr.length( ) == 0 ) { dateFormat = style.getDateFormatObject( ); //initial date-format for the first time if ( dateFormat == null ) { dateFormat = new DateFormatter( context.getLocale( ) ); formatStr = style.getDateTimeFormat( ); if ( formatStr != null ) { dateFormat.applyPattern( formatStr ); } style.setDateFormatObject( dateFormat ); } else { formatStr = dateFormat.getPattern( ); } } else //deal with value-of for text item { dateFormat = new DateFormatter( context.getLocale( ) ); dateFormat.applyPattern( formatStr ); } formattedStr.append( dateFormat.format( (Date) value ) ); } else if ( value instanceof String ) { StringFormatter stringFormat; if ( formatStr == null || formatStr.length( ) == 0 ) { stringFormat = style.getStringFormatObject( ); //initial string-format for the first time if ( stringFormat == null ) { stringFormat = new StringFormatter( ); //use default stringFormat stringFormat.setLocale( context.getLocale( ) ); //get format pattern from style formatStr = style.getStringFormat( ); if ( formatStr != null ) { stringFormat.applyPattern( formatStr ); } style.setStringFormatObject( stringFormat ); } else { formatStr = stringFormat.getPattern( ); } } else //deal with value-of for text item { stringFormat = new StringFormatter( ); stringFormat.setLocale( context.getLocale( ) ); stringFormat.applyPattern( formatStr ); } formattedStr.append( stringFormat.format( value.toString( ) ) ); } else { formattedStr.append( value.toString( ) ); return false; } if ( formatStr == null || formatStr.length( ) == 0 ) { return false; } return true; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/5e9b56cf7b8135282c03b97d8af0909f1c511509/StyledItemExecutor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/StyledItemExecutor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
740,
620,
12,
1033,
460,
16,
514,
740,
1585,
16,
1082,
202,
2885,
15478,
2154,
16,
6674,
4955,
1585,
262,
202,
95,
202,
202,
430,
261,
460,
422,
446,
262,
202,
202,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
740,
620,
12,
1033,
460,
16,
514,
740,
1585,
16,
1082,
202,
2885,
15478,
2154,
16,
6674,
4955,
1585,
262,
202,
95,
202,
202,
430,
261,
460,
422,
446,
262,
202,
202,
9... | ||
c.gridwidth = GridBagConstraints.REMAINDER; c.gridheight = GridBagConstraints.REMAINDER; | public PropPanelString() { super("String"); GridBagLayout gb = new GridBagLayout(); setLayout(gb); GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.BOTH; c.weightx = 0.0; c.ipadx = 3; c.ipady = 3; c.gridx = 0; c.gridwidth = 1; c.gridy = 0; gb.setConstraints(_nameLabel, c); add(_nameLabel); c.weightx = 1.0; c.gridx = 1; //c.gridwidth = GridBagConstraints.REMAINDER; c.gridy = 0; gb.setConstraints(_nameField, c); add(_nameField); _nameField.getDocument().addDocumentListener(this); _nameField.setEditable(false); // needs-more-work: set font? } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/7e071908303156a4909ef9f4cea1501d452216c3/PropPanelString.java/buggy/src_new/org/argouml/uml/diagram/ui/PropPanelString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
276,
18,
5222,
2819,
273,
13075,
18,
862,
5535,
14822,
31,
276,
18,
5222,
4210,
273,
13075,
18,
862,
5535,
14822,
31,
276,
18,
5222,
2819,
273,
13075,
18,
862,
5535,
14822,
31,
276,
18,
5222... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
276,
18,
5222,
2819,
273,
13075,
18,
862,
5535,
14822,
31,
276,
18,
5222,
4210,
273,
13075,
18,
862,
5535,
14822,
31,
276,
18,
5222,
2819,
273,
13075,
18,
862,
5535,
14822,
31,
276,
18,
5222... | |
System.out.println("adding bootclasspath [" + path +"]" ); | public ClassLoader getClassLoader() { if (this.classLoader == null) { String[] bootClassPaths = this.classPath.getBootClassPaths(); AntClassLoader acl = new AntClassLoader(); //acl.addPathElement( this.bootClassPath ); for ( int i=0; i < bootClassPaths.length; i++ ) { String path = bootClassPaths[i]; //REMOVEME System.out.println("adding bootclasspath [" + path +"]" ); acl.addPathElement( path ); } String[] classPaths = this.classPath.getClassPaths(); for (int i=0; i < classPaths.length; i++ ) { String path = classPaths[i]; //REMOVEME System.out.println("adding classpath [" + path +"]" ); acl.addPathElement( path ); } acl.addPathElement( this.classesDir ); //System.out.println( "Classpath for device [" + this.identifier + "]: " + acl.getClasspath() ); this.classLoader = acl; } return this.classLoader; } | 9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/1032515ab4f1f605dfbe53924ad3a6aa1706911f/Device.java/buggy/build/source/src/de/enough/polish/Device.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
9403,
14352,
1435,
288,
202,
202,
430,
261,
2211,
18,
1106,
2886,
422,
446,
13,
288,
1082,
202,
780,
8526,
4835,
797,
4466,
273,
333,
18,
1106,
743,
18,
588,
15817,
797,
4466,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9403,
14352,
1435,
288,
202,
202,
430,
261,
2211,
18,
1106,
2886,
422,
446,
13,
288,
1082,
202,
780,
8526,
4835,
797,
4466,
273,
333,
18,
1106,
743,
18,
588,
15817,
797,
4466,... | |
calculateExceptionsThrownForForExpression((PsiForStatement) statement, exceptionTypes); | calculateExceptionsThrownForForExpression( (PsiForStatement) statement, exceptionTypes); | private static void calculateExceptionsThrownForStatement(PsiStatement statement, Set<PsiType> exceptionTypes){ if(statement == null){ return; } if(statement instanceof PsiBreakStatement || statement instanceof PsiContinueStatement){ // don't do anything } else if(statement instanceof PsiReturnStatement){ final PsiReturnStatement returnStatement = (PsiReturnStatement) statement; final PsiExpression returnValue = returnStatement.getReturnValue(); if(returnValue != null){ calculateExceptionsThrown(returnValue, exceptionTypes); } } else if(statement instanceof PsiThrowStatement){ calculateExceptionsThrownForThrowStatement((PsiThrowStatement) statement, exceptionTypes); } else if(statement instanceof PsiExpressionListStatement){ final PsiExpressionListStatement listStatement = (PsiExpressionListStatement) statement; calculateExceptionsThrownForExpressionListStatement(listStatement, exceptionTypes); } else if(statement instanceof PsiExpressionStatement){ final PsiExpressionStatement expStatement = (PsiExpressionStatement) statement; final PsiExpression expression = expStatement.getExpression(); calculateExceptionsThrown(expression, exceptionTypes); } else if(statement instanceof PsiAssertStatement){ final PsiAssertStatement assertStatement = (PsiAssertStatement) statement; calculateExceptionsThrownForAssertStatement(assertStatement, exceptionTypes); } else if(statement instanceof PsiDeclarationStatement){ final PsiDeclarationStatement declStatement = (PsiDeclarationStatement) statement; calculateExceptionsThrownForDeclarationStatemt(declStatement, exceptionTypes); } else if(statement instanceof PsiForStatement){ calculateExceptionsThrownForForExpression((PsiForStatement) statement, exceptionTypes); } else if(statement instanceof PsiWhileStatement){ calculateExceptionsThrownForWhileStatement((PsiWhileStatement) statement, exceptionTypes); } else if(statement instanceof PsiDoWhileStatement){ calculateExceptionsThrownForDoWhileStatement((PsiDoWhileStatement) statement, exceptionTypes); } else if(statement instanceof PsiSynchronizedStatement){ calculateExceptionsThrownForSynchronizedStatement((PsiSynchronizedStatement) statement, exceptionTypes); } else if(statement instanceof PsiBlockStatement){ final PsiBlockStatement block = (PsiBlockStatement) statement; calculateExceptionsThrownForBlockStatement(block, exceptionTypes); } else if(statement instanceof PsiLabeledStatement){ final PsiLabeledStatement labeledStatement = (PsiLabeledStatement) statement; calculateExceptionsThrownForLabeledStatement(labeledStatement, exceptionTypes); } else if(statement instanceof PsiIfStatement){ final PsiIfStatement ifStatement = (PsiIfStatement) statement; calculateExceptionsThrownForIfStatement(ifStatement, exceptionTypes); } else if(statement instanceof PsiTryStatement){ final PsiTryStatement tryStatement = (PsiTryStatement) statement; calculateExceptionsThrownForTryStatement(tryStatement, exceptionTypes); } else if(statement instanceof PsiSwitchStatement){ final PsiSwitchStatement switchStatement = (PsiSwitchStatement) statement; calculateExceptionsThrownForSwitchStatement(switchStatement, exceptionTypes); } } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/9c01b8e09c5dc949e20032c1ec0280d5b15fc659/ExceptionUtils.java/clean/plugins/IntentionPowerPak/src/com/siyeh/ipp/exceptions/ExceptionUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
4604,
11416,
29591,
1290,
3406,
12,
52,
7722,
3406,
3021,
16,
4766,
17311,
1000,
32,
52,
7722,
559,
34,
1520,
2016,
15329,
3639,
309,
12,
11516,
422,
446,
15329,
5411,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
4604,
11416,
29591,
1290,
3406,
12,
52,
7722,
3406,
3021,
16,
4766,
17311,
1000,
32,
52,
7722,
559,
34,
1520,
2016,
15329,
3639,
309,
12,
11516,
422,
446,
15329,
5411,
327... |
loadAndCompare(test, "Instant.dat"); inlineCompare(test); | loadAndCompare(test, "Instant.dat", false); inlineCompare(test, false); | public void testSerializedInstant() throws Exception { Instant test = new Instant(); loadAndCompare(test, "Instant.dat"); inlineCompare(test); } | 52859 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52859/226795703795b4e4031ca3cd76ca304d23916976/TestSerialization.java/clean/JodaTime/src/test/org/joda/time/TestSerialization.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
15134,
10675,
1435,
1216,
1185,
288,
3639,
11190,
1842,
273,
394,
11190,
5621,
3639,
1262,
1876,
8583,
12,
3813,
16,
315,
10675,
18,
3404,
8863,
3639,
6370,
8583,
12,
3813,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
1842,
15134,
10675,
1435,
1216,
1185,
288,
3639,
11190,
1842,
273,
394,
11190,
5621,
3639,
1262,
1876,
8583,
12,
3813,
16,
315,
10675,
18,
3404,
8863,
3639,
6370,
8583,
12,
3813,... |
if ( scaledImage == null ) { prepareScaledImage(); | if ( xformImage == null ) { prepareXformImage(); | public void paint( Graphics g ) { if ( scaledImage == null ) { prepareScaledImage(); } Graphics2D g2 = (Graphics2D) g; g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); if ( scaledImage != null ) { g2.drawImage( scaledImage, new AffineTransform(1f,0f,0f,1f,0,0), null ); } } | 50360 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50360/e5f2678cd533d88c73e552c9c1ce4b2963978d47/PhotoView.java/buggy/src/photovault/swingui/PhotoView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12574,
12,
16830,
314,
262,
288,
202,
430,
261,
12304,
2040,
422,
446,
262,
288,
202,
565,
2911,
55,
12825,
2040,
5621,
202,
97,
202,
17558,
22,
40,
314,
22,
273,
261,
17558,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12574,
12,
16830,
314,
262,
288,
202,
430,
261,
12304,
2040,
422,
446,
262,
288,
202,
565,
2911,
55,
12825,
2040,
5621,
202,
97,
202,
17558,
22,
40,
314,
22,
273,
261,
17558,... |
Set bc = new HashSet(Arrays.asList(new Class[]{ComponentB.class, ComponentC.class})); assertTrue(nested.contains(new UnsatisfiableDependenciesException(ComponentA.class, bc))); Set d = new HashSet(Arrays.asList(new Class[]{ComponentD.class})); assertTrue(nested.contains(new UnsatisfiableDependenciesException(ComponentE.class, d))); | public void testAggregatedVerificationException() { MutablePicoContainer pico = createPicoContainer(); pico.registerComponentImplementation(ComponentA.class); pico.registerComponentImplementation(ComponentE.class); try { pico.verify(); fail("we expect a PicoVerificationException"); } catch (PicoVerificationException e) { List nested = e.getNestedExceptions(); assertEquals(2, nested.size()); Set bc = new HashSet(Arrays.asList(new Class[]{ComponentB.class, ComponentC.class})); assertTrue(nested.contains(new UnsatisfiableDependenciesException(ComponentA.class, bc))); Set d = new HashSet(Arrays.asList(new Class[]{ComponentD.class})); assertTrue(nested.contains(new UnsatisfiableDependenciesException(ComponentE.class, d))); } } | 9344 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9344/9ee7fdf8c55ca000c7d0ba65a9f0a7383a200b1c/AbstractPicoContainerTestCase.java/clean/trunk/java/picocontainer/src/test/org/picocontainer/tck/AbstractPicoContainerTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6078,
690,
13483,
503,
1435,
288,
3639,
10960,
52,
10764,
2170,
293,
10764,
273,
752,
52,
10764,
2170,
5621,
3639,
293,
10764,
18,
4861,
1841,
13621,
12,
1841,
37,
18,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6078,
690,
13483,
503,
1435,
288,
3639,
10960,
52,
10764,
2170,
293,
10764,
273,
752,
52,
10764,
2170,
5621,
3639,
293,
10764,
18,
4861,
1841,
13621,
12,
1841,
37,
18,
11... | |
} else if ( dpct == DataPointComponentType.SERIES_VALUE_LITERAL ) { | public final SeriesRenderingHints getSeriesRenderingHints( Series seOrthogonal ) throws ChartException, IllegalArgumentException { if ( seOrthogonal == null || seOrthogonal.getClass( ) == SeriesImpl.class ) { // EMPTY PLOT RENDERING TECHNIQUE return null; } final EList elCategories = cwoa.getSeriesDefinitions( ); if ( elCategories.size( ) != 1 ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.DATA_FORMAT, "exception.cwoa.single.series.definition", //$NON-NLS-1$ Messages.getResourceBundle( rtc.getULocale( ) ) ); } final SeriesDefinition sd = (SeriesDefinition) elCategories.get( 0 ); final List al = sd.getRunTimeSeries( ); if ( al.size( ) != 1 ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.DATA_FORMAT, "exception.cwoa.single.runtime.series", //$NON-NLS-1$ Messages.getResourceBundle( rtc.getULocale( ) ) ); } final Series seBase = (Series) al.get( 0 ); final DataSetIterator dsiBaseValues = new DataSetIterator( seBase.getDataSet( ) ); final DataSetIterator dsiOrthogonalValues = new DataSetIterator( seOrthogonal.getDataSet( ) ); DataPointHints[] dpha = null; if ( dsiBaseValues.size( ) != dsiOrthogonalValues.size( ) ) // DO NOT // COMPUTE // DATA // POINT // HINTS FOR // OUT-OF-SYNC // DATA { logger.log( ILogger.INFORMATION, Messages.getString( "exception.data.outofsync", //$NON-NLS-1$ new Object[]{ new Integer( dsiBaseValues.size( ) ), new Integer( dsiOrthogonalValues.size( ) ) }, rtc.getULocale( ) ) ); } else { final int iCount = dsiOrthogonalValues.size( ); dpha = new DataPointHints[iCount]; // OPTIMIZED PRE-FETCH FORMAT SPECIFIERS FOR ALL DATA POINTS final DataPoint dp = seOrthogonal.getDataPoint( ); final EList el = dp.getComponents( ); DataPointComponent dpc; DataPointComponentType dpct; FormatSpecifier fsBase = null, fsOrthogonal = null, fsSeries = null, fsPercentile = null; for ( int i = 0; i < el.size( ); i++ ) { dpc = (DataPointComponent) el.get( i ); dpct = dpc.getType( ); if ( dpct == DataPointComponentType.BASE_VALUE_LITERAL ) { fsBase = dpc.getFormatSpecifier( ); if ( fsBase == null ) // BACKUP { fsBase = sd.getFormatSpecifier( ); } } else if ( dpct == DataPointComponentType.ORTHOGONAL_VALUE_LITERAL ) { fsOrthogonal = dpc.getFormatSpecifier( ); if ( fsOrthogonal == null && seOrthogonal.eContainer( ) instanceof SeriesDefinition ) { fsOrthogonal = ( (SeriesDefinition) seOrthogonal.eContainer( ) ).getFormatSpecifier( ); } } else if ( dpct == DataPointComponentType.SERIES_VALUE_LITERAL ) { fsSeries = dpc.getFormatSpecifier( ); } else if ( dpct == DataPointComponentType.PERCENTILE_ORTHOGONAL_VALUE_LITERAL ) { fsPercentile = dpc.getFormatSpecifier( ); } } UserDataSetHints udsh = new UserDataSetHints( seOrthogonal.getDataSets( ) ); udsh.reset( ); double total = 0; // get total orthogonal value. for ( int i = 0; i < iCount; i++ ) { Object v = dsiOrthogonalValues.next( ); if ( v instanceof Number ) { total += ( (Number) v ).doubleValue( ); } else if ( v instanceof NumberDataElement ) { total += ( (NumberDataElement) v ).getValue( ); } } dsiOrthogonalValues.reset( ); for ( int i = 0; i < iCount; i++ ) { Object orthValue = dsiOrthogonalValues.next( ); Object percentileValue = null; if ( total != 0 ) { if ( orthValue instanceof Number ) { percentileValue = new Double( ( (Number) orthValue ).doubleValue( ) / total ); } else if ( orthValue instanceof NumberDataElement ) { percentileValue = new Double( ( (NumberDataElement) orthValue ).getValue( ) / total ); } } else { percentileValue = new Double ( 0 ); } dpha[i] = new DataPointHints( dsiBaseValues.next( ), orthValue, seOrthogonal.getSeriesIdentifier( ), percentileValue, seOrthogonal.getDataPoint( ), fsBase, fsOrthogonal, fsSeries, fsPercentile, i, null, -1, rtc ); udsh.next( dpha[i] ); } } return new SeriesRenderingHints( this, dpha, dsiBaseValues, dsiOrthogonalValues ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/65c7a4aef75a07b56d9cec83d077f59629977738/PlotWithoutAxes.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withoutaxes/PlotWithoutAxes.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
9225,
14261,
13368,
336,
6485,
14261,
13368,
12,
1082,
202,
6485,
695,
1162,
451,
28396,
262,
1216,
14804,
503,
16,
1082,
202,
31237,
202,
95,
202,
202,
430,
261,
695,
1162... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
9225,
14261,
13368,
336,
6485,
14261,
13368,
12,
1082,
202,
6485,
695,
1162,
451,
28396,
262,
1216,
14804,
503,
16,
1082,
202,
31237,
202,
95,
202,
202,
430,
261,
695,
1162... | |
throw new RubyNameException(ruby, name + " is not struct member"); | throw new NameError(ruby, name + " is not struct member"); | private RubyObject getByName(String name) { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); if (member.isNil()) { throw new RubyBugException("uninitialized struct"); } for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).toId().equals(name)) { return values[i]; } } throw new RubyNameException(ruby, name + " is not struct member"); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyStruct.java/clean/org/jruby/RubyStruct.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
19817,
921,
30027,
12,
780,
508,
13,
288,
3639,
19817,
1076,
3140,
273,
261,
54,
10340,
1076,
13,
3694,
3092,
12,
1106,
951,
9334,
10425,
5990,
972,
8863,
3639,
309,
261,
5990,
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,
377,
3238,
19817,
921,
30027,
12,
780,
508,
13,
288,
3639,
19817,
1076,
3140,
273,
261,
54,
10340,
1076,
13,
3694,
3092,
12,
1106,
951,
9334,
10425,
5990,
972,
8863,
3639,
309,
261,
5990,
18,
... |
INode(String name, INode parent, Block blocks[]) { | INode(String name, Block blocks[], short replication) { | INode(String name, INode parent, Block blocks[]) { this.name = name; this.parent = parent; this.blocks = blocks; } | 48130 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48130/ba0ca973d8fbf49c1b7c2d29e7763226576364e8/FSDirectory.java/buggy/src/java/org/apache/hadoop/dfs/FSDirectory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
21176,
12,
780,
508,
16,
3914,
4398,
63,
6487,
3025,
11335,
13,
288,
5411,
333,
18,
529,
273,
508,
31,
5411,
333,
18,
2938,
273,
982,
31,
5411,
333,
18,
7996,
273,
4398,
31,
3639,
289... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
540,
21176,
12,
780,
508,
16,
3914,
4398,
63,
6487,
3025,
11335,
13,
288,
5411,
333,
18,
529,
273,
508,
31,
5411,
333,
18,
2938,
273,
982,
31,
5411,
333,
18,
7996,
273,
4398,
31,
3639,
289... |
ArchiveContext actx, int recursionLevel, Bucket returnBucket) throws FetchException, MetadataParseException { | ArchiveContext actx, int recursionLevel, Bucket returnBucket, boolean dontTellParent) throws FetchException, MetadataParseException { | public SplitFileFetcher(Metadata metadata, GetCompletionCallback rcb, ClientGetter parent, FetcherContext newCtx, LinkedList decompressors, ClientMetadata clientMetadata, ArchiveContext actx, int recursionLevel, Bucket returnBucket) throws FetchException, MetadataParseException { this.finished = false; this.returnBucket = returnBucket; this.fetchContext = newCtx; this.archiveContext = actx; this.decompressors = decompressors; this.clientMetadata = clientMetadata; this.cb = rcb; this.recursionLevel = recursionLevel + 1; this.parent = parent; if(parent.isCancelled()) throw new FetchException(FetchException.CANCELLED); overrideLength = metadata.dataLength(); this.splitfileType = metadata.getSplitfileType(); splitfileDataBlocks = metadata.getSplitfileDataKeys(); splitfileCheckBlocks = metadata.getSplitfileCheckKeys(); splitUseLengths = metadata.splitUseLengths(); int blockLength = splitUseLengths ? -1 : NodeCHK.BLOCK_SIZE; if(splitfileType == Metadata.SPLITFILE_NONREDUNDANT) { // Don't need to do much - just fetch everything and piece it together. blocksPerSegment = -1; checkBlocksPerSegment = -1; segmentCount = 1; } else if(splitfileType == Metadata.SPLITFILE_ONION_STANDARD) { byte[] params = metadata.splitfileParams(); if(params == null || params.length < 8) throw new MetadataParseException("No splitfile params"); blocksPerSegment = Fields.bytesToInt(params, 0); checkBlocksPerSegment = Fields.bytesToInt(params, 4); if(blocksPerSegment > fetchContext.maxDataBlocksPerSegment || checkBlocksPerSegment > fetchContext.maxCheckBlocksPerSegment) throw new FetchException(FetchException.TOO_MANY_BLOCKS_PER_SEGMENT, "Too many blocks per segment: "+blocksPerSegment+" data, "+checkBlocksPerSegment+" check"); segmentCount = (splitfileDataBlocks.length / blocksPerSegment) + (splitfileDataBlocks.length % blocksPerSegment == 0 ? 0 : 1); // Onion, 128/192. // Will be segmented. } else throw new MetadataParseException("Unknown splitfile format: "+splitfileType); this.maxTempLength = fetchContext.maxTempLength; Logger.minor(this, "Algorithm: "+splitfileType+", blocks per segment: "+blocksPerSegment+", check blocks per segment: "+checkBlocksPerSegment+", segments: "+segmentCount); segments = new SplitFileFetcherSegment[segmentCount]; // initially null on all entries if(segmentCount == 1) { segments[0] = new SplitFileFetcherSegment(splitfileType, splitfileDataBlocks, splitfileCheckBlocks, this, archiveContext, fetchContext, maxTempLength, splitUseLengths, recursionLevel); } else { int dataBlocksPtr = 0; int checkBlocksPtr = 0; for(int i=0;i<segments.length;i++) { // Create a segment. Give it its keys. int copyDataBlocks = Math.min(splitfileDataBlocks.length - dataBlocksPtr, blocksPerSegment); int copyCheckBlocks = Math.min(splitfileCheckBlocks.length - checkBlocksPtr, checkBlocksPerSegment); FreenetURI[] dataBlocks = new FreenetURI[copyDataBlocks]; FreenetURI[] checkBlocks = new FreenetURI[copyCheckBlocks]; if(copyDataBlocks > 0) System.arraycopy(splitfileDataBlocks, dataBlocksPtr, dataBlocks, 0, copyDataBlocks); if(copyCheckBlocks > 0) System.arraycopy(splitfileCheckBlocks, checkBlocksPtr, checkBlocks, 0, copyCheckBlocks); dataBlocksPtr += copyDataBlocks; checkBlocksPtr += copyCheckBlocks; segments[i] = new SplitFileFetcherSegment(splitfileType, dataBlocks, checkBlocks, this, archiveContext, fetchContext, maxTempLength, splitUseLengths, recursionLevel+1); } } } | 46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/5172c6eaf3d3ff5aaaf0703e2a38ccebe1b75ec3/SplitFileFetcher.java/buggy/src/freenet/client/async/SplitFileFetcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5385,
812,
16855,
12,
2277,
1982,
16,
968,
11238,
2428,
4519,
70,
16,
2445,
8461,
982,
16,
1082,
202,
16855,
1042,
394,
6442,
16,
10688,
16824,
1383,
16,
2445,
2277,
1004,
2277,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5385,
812,
16855,
12,
2277,
1982,
16,
968,
11238,
2428,
4519,
70,
16,
2445,
8461,
982,
16,
1082,
202,
16855,
1042,
394,
6442,
16,
10688,
16824,
1383,
16,
2445,
2277,
1004,
2277,... |
public void test03FailAuthenticateUser() throws Exception { cat.debug(">test03FailAuthenticateUser()"); // user that we know exists... Object obj1 = ctx.lookup("UserData"); UserDataHome userhome = (UserDataHome) javax.rmi.PortableRemoteObject.narrow(obj1, UserDataHome.class); UserDataPK pk = new UserDataPK("foo"); UserDataRemote data = userhome.findByPrimaryKey(pk); // Set status to GENERATED so authentication will fail data.setStatus(UserDataRemote.STATUS_GENERATED); boolean authfailed = false; try { UserAuthData auth = remote.authenticateUser("foo", "foo123"); } catch (Exception e) { authfailed = true; } assertTrue("Authentication succeeded when it should have failed.", authfailed); cat.debug("<test03FailAuthenticateUser()"); } | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/951eff5b1c47ce667465cb23f1aed9d3a0292d2f/TestAuthenticationSession.java/buggy/src/java/se/anatom/ejbca/ca/auth/junit/TestAuthenticationSession.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3813,
4630,
3754,
17618,
1299,
1435,
15069,
503,
95,
2574,
18,
4148,
2932,
34,
3813,
4630,
3754,
17618,
1299,
1435,
8863,
759,
1355,
19056,
1814,
79,
3338,
1808,
2777,
921,
2603,
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,
1071,
6459,
3813,
4630,
3754,
17618,
1299,
1435,
15069,
503,
95,
2574,
18,
4148,
2932,
34,
3813,
4630,
3754,
17618,
1299,
1435,
8863,
759,
1355,
19056,
1814,
79,
3338,
1808,
2777,
921,
2603,
21,... | ||
String i = (String)ii.next(); sb.append(i); | AbcClass i = (AbcClass)ii.next(); sb.append(i.getJvmName()); | public String toString() { StringBuffer sb = new StringBuffer(); sb.append("declare parents: "); sb.append(getClasses()); sb.append(" implements "); Iterator ii = getInterfaces().iterator(); while (ii.hasNext()) { String i = (String)ii.next(); sb.append(i); if (ii.hasNext()) { sb.append(", "); } } sb.append(";"); return sb.toString(); } | 236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/c70f720b2fd2c2b27100f43877d6f53474a306b3/DeclareParentsImpl.java/clean/aop/abc/src/abc/weaving/aspectinfo/DeclareParentsImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
202,
18366,
18,
6923,
2932,
29554,
6298,
30,
315,
1769,
202,
18366,
18,
6923,
12,
588,
4818,
10663,
202,
18366,
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,
377,
1071,
514,
1762,
1435,
288,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
202,
18366,
18,
6923,
2932,
29554,
6298,
30,
315,
1769,
202,
18366,
18,
6923,
12,
588,
4818,
10663,
202,
18366,
18,... |
{ return createEObjectAdapter(); } | { return createEObjectAdapter(); } | public Object defaultCase(EObject object) { return createEObjectAdapter(); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/bdab78403751f288b76844a99f50b999c34fb491/LayoutAdapterFactory.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/util/LayoutAdapterFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
12566,
12,
8029,
733,
13,
3639,
288,
5411,
327,
752,
8029,
4216,
5621,
3639,
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,
... | [
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
12566,
12,
8029,
733,
13,
3639,
288,
5411,
327,
752,
8029,
4216,
5621,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
td = data.get(sel); for ( Iterator<Character> it = td.getChars().iterator(); it.hasNext(); ) { res.append(it.next()); if (it.hasNext()) res.append(","); | td = data.get(backend.get(sel)); for ( Character c : td.getChars() ) { res.append(c); res.append(","); | public void run() { // listpanel enthlt die Liste mit allen Transitionen, darunter ein // Textfeld zur Bearbeitung der Transitionszeichen transList = new JList(); transChars = new JTextField(); listMod = new DefaultListModel(); for (int i = 0 ; i < data.size() ; i++ ) { listMod.addElement(data.get(i)); } transList.setModel(listMod); transList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); JPanel listPanel = new JPanel(); listPanel.setLayout(new BorderLayout()); listPanel.add(transList, BorderLayout.CENTER); listPanel.add(transChars, BorderLayout.SOUTH); JPanel buttonPanel = new JPanel(); buttonPanel.setLayout(new GridLayout(1,3)); delButton = new JButton(java.util.ResourceBundle.getBundle("global").getString("remove")); updateButton = new JButton(java.util.ResourceBundle.getBundle("global").getString("update")); okButton = new JButton(java.util.ResourceBundle.getBundle("global").getString("OK")); buttonPanel.add(okButton); buttonPanel.add(updateButton); buttonPanel.add(delButton); okButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { dispose(); } }); delButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { int sel = transList.getSelectedIndex(); if (sel!=-1) { // !!!! wir arbeiten auf der Originalreferenz, die Transition ist dann // tatschlich hin :) data.remove(sel); listMod.remove(sel); transList.setSelectedIndex(listMod.size()-1); if (listMod.isEmpty()) { delButton.setEnabled(false); } } } }); updateButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { Vector<Character> newChars; int sel = transList.getSelectedIndex(); if (sel!=-1) { newChars = AutWindow.parseTransChars(transChars.getText()); // wenn != null, war zumindest ein sinniges Zeichen dabei if (newChars!=null) { data.get(sel).setChars(newChars); listMod.setElementAt(data.get(sel).toString(), sel); } } } }); transList.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent lEvent) { int sel = transList.getSelectedIndex(); TransitionData td; StringBuffer res = new StringBuffer(); // da wir vom User erwarten das er die Zeichen so eingibt wie wir // es gerne htten, mssen auch wir wohl oder bel den Char-Vec etwas anhbschen if (sel!=-1) { td = data.get(sel); for ( Iterator<Character> it = td.getChars().iterator(); it.hasNext(); ) { res.append(it.next()); if (it.hasNext()) res.append(","); } transChars.setText(res.toString()); } } }); getContentPane().setLayout(new BorderLayout()); getContentPane().add(listPanel, BorderLayout.CENTER); getContentPane().add(buttonPanel, BorderLayout.SOUTH); setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); pack(); setLocation(80,80); setSize(250,200); setVisible(true); } | 11750 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11750/e52bc9bb7a81f5b8a747c29cc00e1456e4c54c6e/TransEdit.java/buggy/src/gui/dialogs/TransEdit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
7734,
368,
666,
13916,
3281,
76,
5618,
10387,
987,
73,
20310,
777,
275,
16515,
275,
16,
302,
297,
318,
387,
16315,
3639,
368,
3867,
74,
488,
998,
295,
25892,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
1435,
288,
7734,
368,
666,
13916,
3281,
76,
5618,
10387,
987,
73,
20310,
777,
275,
16515,
275,
16,
302,
297,
318,
387,
16315,
3639,
368,
3867,
74,
488,
998,
295,
25892,
... |
return _isPeer; | return isLeaf; | public boolean isClientSupernodeConnection() { return _isPeer; } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/4a647ca4ee63bf260dff1b2167d911eaccc8770a/BusyLeafQRTUpdateTest.java/buggy/components/gnutella-core/src/test/java/com/limegroup/gnutella/BusyLeafQRTUpdateTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
353,
1227,
8051,
2159,
1952,
1435,
288,
5411,
327,
31356,
31,
3639,
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,
... | [
1,
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,
540,
1071,
1250,
353,
1227,
8051,
2159,
1952,
1435,
288,
5411,
327,
31356,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
final PsiElement firstReferenceScope; firstReferenceScope = ScopeUtils.getParentOfTypes(referenceElement, ScopeUtils.TYPES); | final PsiElement firstReferenceScope= ScopeUtils.getParentOfTypes(referenceElement, ScopeUtils.TYPES); | protected void doFix(Project project, ProblemDescriptor descriptor) throws IncorrectOperationException { final PsiElement variableIdentifier = descriptor.getPsiElement(); final PsiVariable variable = (PsiVariable)variableIdentifier.getParent(); assert variable != null; final PsiManager manager = variable.getManager(); final PsiSearchHelper searchHelper = manager.getSearchHelper(); final PsiReference[] references = searchHelper.findReferences(variable, variable.getUseScope(), false); final PsiReference firstReference = references[0]; final PsiElement referenceElement = firstReference.getElement(); PsiElement commonParent = ScopeUtils.getCommonParent(references); assert commonParent != null; final PsiExpression initializer = variable.getInitializer(); if (initializer != null) { final PsiElement variableScope = ScopeUtils.getParentOfTypes(variable, ScopeUtils.TYPES); assert variableScope != null; commonParent = ScopeUtils.moveOutOfLoops(commonParent, variableScope); if (commonParent == null) { return; } } final PsiElement firstReferenceScope; firstReferenceScope = ScopeUtils.getParentOfTypes(referenceElement, ScopeUtils.TYPES); assert firstReferenceScope != null; final PsiElement location; PsiDeclarationStatement newDeclaration; if (firstReferenceScope.equals(commonParent)) { location = referenceElement; newDeclaration = moveDeclarationToLocation(variable, location); } else { final PsiElement commonParentChild = ScopeUtils.getChildWhichContainsElement(commonParent, referenceElement); assert commonParentChild != null; location = ScopeUtils.findInsertionPoint(commonParentChild, variable); assert location != null; newDeclaration = createNewDeclaration(variable, initializer); newDeclaration = (PsiDeclarationStatement)commonParent.addAfter(newDeclaration, location); } removeOldVariable(variable); highlightElement(newDeclaration); } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/9396a08aa214b58ce2fa1491742223b5adb618d3/TooBroadScopeInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/style/TooBroadScopeInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
918,
741,
8585,
12,
4109,
1984,
16,
21685,
3187,
4950,
13,
7734,
1216,
657,
6746,
10602,
3639,
288,
5411,
727,
453,
7722,
1046,
2190,
3004,
273,
10792,
4950,
18,
588,
52,
7722,
1046... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
918,
741,
8585,
12,
4109,
1984,
16,
21685,
3187,
4950,
13,
7734,
1216,
657,
6746,
10602,
3639,
288,
5411,
727,
453,
7722,
1046,
2190,
3004,
273,
10792,
4950,
18,
588,
52,
7722,
1046... |
instance = new MetalTreeUI(); instances.put(component, instance); | instance = new MetalTreeUI(); instances.put(component, instance); | public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalTreeUI instance; if (o == null) { instance = new MetalTreeUI(); instances.put(component, instance); } else instance = (MetalTreeUI) o; return instance; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
5435,
5370,
752,
5370,
12,
46,
1841,
1794,
13,
225,
288,
565,
309,
261,
10162,
422,
446,
13,
1377,
3884,
273,
394,
4317,
5621,
565,
1033,
320,
273,
3884,
18,
588,
12,
4652,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
5435,
5370,
752,
5370,
12,
46,
1841,
1794,
13,
225,
288,
565,
309,
261,
10162,
422,
446,
13,
1377,
3884,
273,
394,
4317,
5621,
565,
1033,
320,
273,
3884,
18,
588,
12,
4652,
... |
public void setLocation(int x, int y) | public void setLocation(Point p) | public void setLocation(int x, int y) { this.x = x; this.y = y; } | 1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/3fe1c14284ce32b79d0e66441aec6a45a77ff684/Rectangle.java/buggy/libjava/java/awt/Rectangle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
21751,
12,
2148,
293,
13,
225,
288,
565,
333,
18,
92,
273,
619,
31,
565,
333,
18,
93,
273,
677,
31,
225,
289,
2,
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,
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,
282,
1071,
918,
21751,
12,
2148,
293,
13,
225,
288,
565,
333,
18,
92,
273,
619,
31,
565,
333,
18,
93,
273,
677,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
tabFolder.getControl().setVisible(isVisible); | folder.getTabFolder().getControl().setVisible(isVisible); | public void setVisible(boolean isVisible) { tabFolder.getControl().setVisible(isVisible); IPresentablePart current = getSite().getSelectedPart(); if (current != null) { current.setVisible(true); } if (isVisible) { layout(true); } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/a44e3679b294ff539fce71b7e835499b2c444fa7/TabbedStackPresentation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/newapi/TabbedStackPresentation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
16697,
12,
6494,
20453,
13,
288,
3639,
3009,
18,
588,
5661,
3899,
7675,
588,
3367,
7675,
542,
6207,
12,
291,
6207,
1769,
3639,
2971,
1581,
429,
1988,
783,
273,
11021,
7675,
588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16697,
12,
6494,
20453,
13,
288,
3639,
3009,
18,
588,
5661,
3899,
7675,
588,
3367,
7675,
542,
6207,
12,
291,
6207,
1769,
3639,
2971,
1581,
429,
1988,
783,
273,
11021,
7675,
588... |
public static void assertEquals(ITable expectedTable, ITable actualTable) throws Exception | public static void assertEquals(IDataSet expectedDataSet, IDataSet actualDataSet) throws Exception | public static void assertEquals(ITable expectedTable, ITable actualTable) throws Exception { Assertion.assertEquals(expectedTable, actualTable); } | 2032 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2032/6273be403064cf9a41d6a4420170cc382377a45f/DataSetUtils.java/clean/src/java/org/dbunit/dataset/DataSetUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1815,
8867,
12,
1285,
429,
2665,
1388,
16,
467,
1388,
3214,
1388,
13,
5411,
1216,
1185,
565,
288,
3639,
9067,
18,
11231,
8867,
12,
3825,
1388,
16,
3214,
1388,
1769,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
760,
918,
1815,
8867,
12,
1285,
429,
2665,
1388,
16,
467,
1388,
3214,
1388,
13,
5411,
1216,
1185,
565,
288,
3639,
9067,
18,
11231,
8867,
12,
3825,
1388,
16,
3214,
1388,
1769,
565,
... |
public void createPartControl(Composite parent) { FormToolkit toolkit = new FormToolkit(parent.getDisplay()); ScrolledForm sform = toolkit.createScrolledForm(parent); Composite editorComposite = sform.getBody(); editorComposite.setLayout(new GridLayout()); GridData gridData = new GridData(); gridData.horizontalAlignment = GridData.FILL_BOTH; gridData.grabExcessHorizontalSpace = true; gridData.grabExcessVerticalSpace = true; editorComposite.setLayoutData(gridData); createSummarySection(editorComposite, toolkit, editorInput.getReportStartDate()); String label = LABEL_PAST_ACTIVITY; List<ITask> allTasks = new ArrayList<ITask>(); allTasks.addAll(editorInput.getCompletedTasks()); allTasks.addAll(editorInput.getInProgressTasks()); SashForm sashForm = new SashForm(editorComposite, SWT.VERTICAL); sashForm.setLayout(new GridLayout()); sashForm.setLayoutData(new GridData(GridData.FILL_BOTH)); activityContentProvider = new TaskActivityContentProvider(editorInput); final TableViewer activityViewer = createTableSection(sashForm, toolkit, label, activityColumnNames, activityColumnWidths, activitySortConstants); activityViewer.setContentProvider(activityContentProvider); activityViewer.setLabelProvider(new TaskPlannerLabelProvider()); setSorters(activityColumnNames, activitySortConstants, activityViewer.getTable(), activityViewer, false); activityViewer.setInput(editorInput); activityViewer.addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { updateLabels(); } }); MenuManager activityContextMenuMgr = new MenuManager("#ActivityPlannerPopupMenu"); activityContextMenuMgr.setRemoveAllWhenShown(true); activityContextMenuMgr.addMenuListener(new IMenuListener() { public void menuAboutToShow(IMenuManager manager) { TaskActivityEditorPart.this.fillContextMenu(activityViewer, manager); } }); Menu menu = activityContextMenuMgr.createContextMenu(activityViewer.getControl()); activityViewer.getControl().setMenu(menu); getSite().registerContextMenu(activityContextMenuMgr, activityViewer); planContentProvider = new PlannedTasksContentProvider(editorInput); final TableViewer planViewer = createTableSection(sashForm, toolkit, LABEL_PLANNED_ACTIVITY, planColumnNames, planColumnWidths, planSortConstants); planViewer.setContentProvider(planContentProvider); planViewer.setLabelProvider(new TaskPlanLabelProvider()); createPlanCellEditorListener(planViewer.getTable(), planViewer); planViewer.setCellModifier(new PlannedTasksCellModifier(planViewer)); initDrop(planViewer, planContentProvider); setSorters(planColumnNames, planSortConstants, planViewer.getTable(), planViewer, true); planViewer.setInput(editorInput); planViewer.addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { updateLabels(); } }); MenuManager planContextMenuMgr = new MenuManager("#PlanPlannerPopupMenu"); planContextMenuMgr.setRemoveAllWhenShown(true); planContextMenuMgr.addMenuListener(new IMenuListener() { public void menuAboutToShow(IMenuManager manager) { TaskActivityEditorPart.this.fillContextMenu(planViewer, manager); } }); Menu planMenu = planContextMenuMgr.createContextMenu(planViewer.getControl()); planViewer.getControl().setMenu(planMenu); getSite().registerContextMenu(planContextMenuMgr, planViewer); totalEstimatedHoursLabel = toolkit.createLabel(editorComposite, LABEL_ESTIMATED + "0 hours ", SWT.NULL); createButtons(editorComposite, toolkit, planViewer, planContentProvider); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/294cb122e3d7fb6215909ec1cc4061efcdc50581/TaskActivityEditorPart.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/planner/ui/TaskActivityEditorPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
2640,
1988,
3367,
12,
799,
1724,
881,
817,
15329,
202,
202,
1204,
6364,
8691,
6738,
8691,
33,
2704,
1204,
6364,
8691,
12,
2938,
18,
588,
4236,
10663,
202,
202,
1541,
25054... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
2640,
1988,
3367,
12,
799,
1724,
881,
817,
15329,
202,
202,
1204,
6364,
8691,
6738,
8691,
33,
2704,
1204,
6364,
8691,
12,
2938,
18,
588,
4236,
10663,
202,
202,
1541,
25054... | ||
private static void activateMemberView() { | private void activateMemberView() { | private static void activateMemberView() { inGroupView = false; memberViewAction.setChecked(true); groupViewAction.setChecked(false); } | 13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/0864a0a4f629d02327c19937554983b1f76d1da3/Visualiser.java/buggy/org.eclipse.contribution.visualiser/src/org/eclipse/contribution/visualiser/views/Visualiser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
10235,
4419,
1767,
1435,
288,
202,
202,
267,
1114,
1767,
273,
629,
31,
202,
202,
5990,
1767,
1803,
18,
542,
11454,
12,
3767,
1769,
202,
202,
1655,
1767,
1803,
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,
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,
918,
10235,
4419,
1767,
1435,
288,
202,
202,
267,
1114,
1767,
273,
629,
31,
202,
202,
5990,
1767,
1803,
18,
542,
11454,
12,
3767,
1769,
202,
202,
1655,
1767,
1803,
18,
5... |
void popFrame() { | private void popFrame() { | void popFrame() { frameStack.pop(); } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/e4c74a91b5c4165a9c90cde4d7b2ddd72e81af8d/Dim.java/buggy/toolsrc/org/mozilla/javascript/tools/debugger/Dim.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
1843,
3219,
1435,
288,
5411,
2623,
2624,
18,
5120,
5621,
3639,
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... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
1843,
3219,
1435,
288,
5411,
2623,
2624,
18,
5120,
5621,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
public org.quickfix.field.LegSymbolSfx getLegSymbolSfx() throws FieldNotFound { org.quickfix.field.LegSymbolSfx value = new org.quickfix.field.LegSymbolSfx(); | public quickfix.field.LegSymbolSfx getLegSymbolSfx() throws FieldNotFound { quickfix.field.LegSymbolSfx value = new quickfix.field.LegSymbolSfx(); | public org.quickfix.field.LegSymbolSfx getLegSymbolSfx() throws FieldNotFound { org.quickfix.field.LegSymbolSfx value = new org.quickfix.field.LegSymbolSfx(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/Quote.java/clean/src/java/src/quickfix/fix44/Quote.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
5335,
55,
19595,
336,
8329,
5335,
55,
19595,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
5335,
55,
19595,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8329,
5335,
55,
19595,
336,
8329,
5335,
55,
19595,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
5335,
55,
19595,
... |
public boolean setExecutable(boolean executable, boolean ownerOnly) { chmod("x", executable, ownerOnly); return SUCCESS; } | public boolean setExecutable(boolean executable, boolean ownerOnly) { chmod("x", executable, ownerOnly); return SUCCESS; } | public boolean setExecutable(boolean executable, boolean ownerOnly) { chmod("x", executable, ownerOnly); return SUCCESS; } | 48130 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48130/e10b40e8014547113799b2653164e8c990d41209/MustangFile.java/buggy/src/contrib/streaming/src/java/org/apache/hadoop/streaming/MustangFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
444,
17709,
12,
6494,
9070,
16,
1250,
3410,
3386,
13,
377,
288,
1377,
13413,
2932,
92,
3113,
9070,
16,
3410,
3386,
1769,
1377,
327,
16561,
31,
565,
289,
2,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
444,
17709,
12,
6494,
9070,
16,
1250,
3410,
3386,
13,
377,
288,
1377,
13413,
2932,
92,
3113,
9070,
16,
3410,
3386,
1769,
1377,
327,
16561,
31,
565,
289,
2,
-100,
-100,
-100,
... |
JPanel panel = new JPanel(new BorderLayout()); panel.add(textScrollPane, BorderLayout.CENTER); panel.add(box, BorderLayout.SOUTH); | public JComponent createInputPanel() { textPane = new TextPane(); textPane.setPreferredSize(new Dimension(200, 0)); textPane.setBackground(Color.white); textPane.setBorder(null); textPane.setFont(new Font(EditorPreferences.getEditorFont(), Font.PLAIN, EditorPreferences.getEditorFontSize())); textPane.setText(""); textPane.setEditable(false); TextUtils.createTabs(textPane); JScrollPane textScrollPane = new JScrollPane(textPane); textScrollPane.setWheelScrollingEnabled(true); JButton tokenButton = new JButton(IconManager.shared().getIconTokens()); tokenButton.setToolTipText("Show/hide tokens boxes"); tokenButton.setFocusable(false); tokenButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { player.inputText.setDrawTokensBox(!player.inputText.isDrawTokensBox()); textPane.repaint(); Statistics.shared().recordEvent(Statistics.EVENT_DEBUGGER_TOGGLE_INPUT_TOKENS); } }); Box box = Box.createHorizontalBox(); box.add(Box.createHorizontalGlue()); box.add(tokenButton); JPanel panel = new JPanel(new BorderLayout()); panel.add(textScrollPane, BorderLayout.CENTER); panel.add(box, BorderLayout.SOUTH); return panel; } | 4430 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4430/3029d954794e560a3676aa391be237fe6c91f4af/Debugger.java/buggy/src/org/antlr/works/debugger/Debugger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29058,
752,
1210,
5537,
1435,
288,
3639,
977,
8485,
273,
394,
3867,
8485,
5621,
3639,
977,
8485,
18,
542,
16028,
1225,
12,
2704,
13037,
12,
6976,
16,
374,
10019,
3639,
977,
8485,
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,
377,
1071,
29058,
752,
1210,
5537,
1435,
288,
3639,
977,
8485,
273,
394,
3867,
8485,
5621,
3639,
977,
8485,
18,
542,
16028,
1225,
12,
2704,
13037,
12,
6976,
16,
374,
10019,
3639,
977,
8485,
18... | |
indexForm = (DynaActionForm) form; | public ActionForward chooseForViewRoom( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(false); DynaActionForm indexForm = (DynaActionForm) form; IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW); GestorServicos gestor = GestorServicos.manager(); // get selected execution period Object argsReadExecutionPeriods[] = { }; ArrayList executionPeriods = (ArrayList) gestor.executar( userView, "ReadExecutionPeriods", argsReadExecutionPeriods); ComparatorChain chainComparator = new ComparatorChain(); chainComparator.addComparator(new BeanComparator("infoExecutionYear.year")); chainComparator.addComparator(new BeanComparator("semester")); Collections.sort(executionPeriods, chainComparator); Integer index = (Integer) indexForm.get("index"); InfoExecutionPeriod selectedInfoExecutionPeriod = null; if (executionPeriods != null && index != null) { selectedInfoExecutionPeriod = (InfoExecutionPeriod) executionPeriods.get(index.intValue()); request.setAttribute( SessionConstants.EXECUTION_PERIOD, selectedInfoExecutionPeriod); request.setAttribute( SessionConstants.EXECUTION_PERIOD_OID, selectedInfoExecutionPeriod.getIdInternal()); } // set form with selected value if (selectedInfoExecutionPeriod != null) { indexForm = (DynaActionForm) form; indexForm.set( "index", new Integer( executionPeriods.indexOf(selectedInfoExecutionPeriod))); } // create execution periods label/value bean ArrayList executionPeriodsLabelValueList = new ArrayList(); for (int i = 0; i < executionPeriods.size(); i++) { InfoExecutionPeriod infoExecutionPeriod = (InfoExecutionPeriod) executionPeriods.get(i); executionPeriodsLabelValueList.add( new LabelValueBean( infoExecutionPeriod.getName() + " - " + infoExecutionPeriod.getInfoExecutionYear().getYear(), "" + i)); } request.setAttribute( SessionConstants.LABELLIST_EXECUTIONPERIOD, executionPeriodsLabelValueList); // read lessons of (previously selected) room in selected executionPeriod InfoRoom infoRoom = null; Object argsReadRoomByOID[] = new Object[1]; if (request.getParameter(SessionConstants.ROOM_OID) != null) { argsReadRoomByOID[0] = new Integer(request.getParameter(SessionConstants.ROOM_OID)); } else { } try { infoRoom = (InfoRoom) ServiceUtils.executeService( null, "ReadRoomByOID", argsReadRoomByOID); } catch (FenixServiceException e) { throw new FenixActionException(); } request.setAttribute(SessionConstants.ROOM, infoRoom); request.setAttribute(SessionConstants.ROOM_OID, infoRoom.getIdInternal()); Object argsReadLessons[] = { selectedInfoExecutionPeriod, infoRoom }; try { List lessons; lessons = (List) ServiceUtils.executeService( null, "LerAulasDeSalaEmSemestre", argsReadLessons); if (lessons != null) { request.setAttribute(SessionConstants.LESSON_LIST_ATT, lessons); } } catch (FenixServiceException e) { throw new FenixActionException(); } return mapping.findForward("viewRoom"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/9cac7225861fcf1e1b88c1374eca8e4997ff2fc0/ExecutionPeriodDA.java/clean/src/ServidorApresentacao/Action/sop/ExecutionPeriodDA.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
8514,
9876,
1290,
1767,
13646,
12,
202,
202,
1803,
3233,
2874,
16,
202,
202,
1803,
1204,
646,
16,
202,
202,
2940,
18572,
590,
16,
202,
202,
2940,
29910,
766,
13,
202,
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,
4382,
8514,
9876,
1290,
1767,
13646,
12,
202,
202,
1803,
3233,
2874,
16,
202,
202,
1803,
1204,
646,
16,
202,
202,
2940,
18572,
590,
16,
202,
202,
2940,
29910,
766,
13,
202,
20... | |
if (!cfg.manuallyImplement(sym.getName()) && !isUnimplemented) { CMethodBindingEmitter cEmitter = makeCEmitter(specialBinding, overloaded, (binding != specialBinding), cfg.implPackageName(), cfg.implClassName(), cWriter()); allEmitters.add(cEmitter); | if (!cfg.manuallyImplement(sym.getName()) && !isUnimplemented) { if (binding.needsBody()) { PrintWriter output = cfg.allStatic() ? javaWriter() : javaImplWriter(); JavaMethodBindingEmitter wrappedEntryPoint = new JavaMethodBindingEmitter(specialBinding, output, cfg.runtimeExceptionType(), true); wrappedEntryPoint.addModifier(JavaMethodBindingEmitter.PRIVATE); wrappedEntryPoint.addModifier(JavaMethodBindingEmitter.STATIC); wrappedEntryPoint.addModifier(JavaMethodBindingEmitter.NATIVE); allEmitters.add(wrappedEntryPoint); | protected Iterator generateMethodBindingEmitters(FunctionSymbol sym) throws Exception { ArrayList/*<FunctionEmitter>*/ allEmitters = new ArrayList(1); try { // Get Java binding for the function MethodBinding mb = bindFunction(sym, null, null); // Expand all void* arguments List bindings = expandMethodBinding(mb); boolean overloaded = (bindings.size() > 1); if (overloaded) { // resize ahead of time for speed allEmitters.ensureCapacity(bindings.size()); } // List of the indices of the arguments in this function that should be // expanded to the same type when binding functions with multiple void* // arguments List mirrorIdxs = cfg.mirroredArgs(sym.getName()); for (Iterator iter = bindings.iterator(); iter.hasNext(); ) { MethodBinding binding = (MethodBinding) iter.next(); // Honor the MirrorExpandedBindingArgs directive in .cfg files if (mirrorIdxs != null) { assert(mirrorIdxs.size() >= 2); // sanity check. boolean typesMatch = true; int argIndex = ((Integer)mirrorIdxs.get(0)).intValue(); JavaType leftArgType = binding.getJavaArgumentType(argIndex); for (int i = 1; i < mirrorIdxs.size(); ++i) { argIndex = ((Integer)mirrorIdxs.get(i)).intValue(); JavaType rightArgType = binding.getJavaArgumentType(argIndex); if (!(leftArgType.equals(rightArgType))) { typesMatch = false; break; } leftArgType = rightArgType; } // Don't emit the binding if the specified args aren't the same type if (!typesMatch) { continue; } // skip this binding } // Try to create an NIOBuffer variant for this expanded binding. If // it's the same as the original binding, then we'll be able to emit // the binding like any normal binding because no special binding // generation (wrapper methods, etc) will be necessary. MethodBinding specialBinding = binding.createNIOBufferVariant(); if (cfg.allStatic() && binding.hasContainingType()) { // This should not currently happen since structs are emitted using a different mechanism throw new IllegalArgumentException("Cannot create binding in AllStatic mode because method has containing type: \"" + binding + "\""); } boolean isUnimplemented = cfg.isUnimplemented(binding.getName()); if (cfg.emitImpl()) { // Generate the emitter for the method which may do conversion // from type wrappers to NIO Buffers or which may call the // underlying function directly JavaMethodBindingImplEmitter entryPoint = new JavaMethodBindingImplEmitter(binding, (cfg.allStatic() ? javaWriter() : javaImplWriter()), cfg.runtimeExceptionType(), isUnimplemented); entryPoint.addModifier(JavaMethodBindingEmitter.PUBLIC); if (cfg.allStatic()) { entryPoint.addModifier(JavaMethodBindingEmitter.STATIC); } if (!isUnimplemented && !binding.needsBody()) { entryPoint.addModifier(JavaMethodBindingEmitter.NATIVE); } entryPoint.setReturnedArrayLengthExpression(cfg.returnedArrayLength(binding.getName())); allEmitters.add(entryPoint); } if (cfg.emitInterface()) { // Generate an emitter that will emit just the interface to the function JavaMethodBindingEmitter entryPointInterface = new JavaMethodBindingEmitter(binding, javaWriter(), cfg.runtimeExceptionType()); entryPointInterface.addModifier(JavaMethodBindingEmitter.PUBLIC); entryPointInterface.setReturnedArrayLengthExpression(cfg.returnedArrayLength(binding.getName())); allEmitters.add(entryPointInterface); } if (cfg.emitImpl() && binding.needsBody() && !isUnimplemented) { // Generate the method which calls the underlying function // after unboxing has occurred PrintWriter output = cfg.allStatic() ? javaWriter() : javaImplWriter(); JavaMethodBindingEmitter wrappedEntryPoint = new JavaMethodBindingEmitter(specialBinding, output, cfg.runtimeExceptionType(), true); wrappedEntryPoint.addModifier(JavaMethodBindingEmitter.PRIVATE); wrappedEntryPoint.addModifier(JavaMethodBindingEmitter.STATIC); // Doesn't really matter wrappedEntryPoint.addModifier(JavaMethodBindingEmitter.NATIVE); allEmitters.add(wrappedEntryPoint); } // If the user has stated that the function will be // manually implemented, then don't auto-generate a function body. if (cfg.emitImpl()) { if (!cfg.manuallyImplement(sym.getName()) && !isUnimplemented) { CMethodBindingEmitter cEmitter = makeCEmitter(specialBinding, overloaded, (binding != specialBinding), cfg.implPackageName(), cfg.implClassName(), cWriter()); allEmitters.add(cEmitter); } } } // end iteration over expanded bindings } catch (Exception e) { throw new RuntimeException( "Error while generating bindings for \"" + sym + "\"", e); } return allEmitters.iterator(); } | 46813 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46813/661fec76c5ccd030016d66675024ec604752ccda/JavaEmitter.java/buggy/src/net/java/games/gluegen/JavaEmitter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
4498,
2103,
1305,
5250,
17982,
5432,
12,
2083,
5335,
5382,
13,
1216,
1185,
288,
565,
2407,
20308,
32,
2083,
13476,
34,
5549,
777,
17982,
5432,
273,
394,
2407,
12,
21,
1769,
565,
775... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4498,
2103,
1305,
5250,
17982,
5432,
12,
2083,
5335,
5382,
13,
1216,
1185,
288,
565,
2407,
20308,
32,
2083,
13476,
34,
5549,
777,
17982,
5432,
273,
394,
2407,
12,
21,
1769,
565,
775... |
private final static void declareImages( ) { // common icons declareImage( ISharedImages.IMG_OBJS_ERROR_TSK, ICONS_PATH + PROGRESS_PATH + "error_tsk.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_OBJ_FOLDER, ICONS_PATH + OBJ16_PATH + "fldr_obj.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_COPY, ICONS_PATH + ETOOL16_PATH + "copy_edit.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_CUT, ICONS_PATH + ETOOL16_PATH + "cut_edit.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_UNDO, ICONS_PATH + ETOOL16_PATH + "undo_edit.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_REDO, ICONS_PATH + ETOOL16_PATH + "redo_edit.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_PASTE, ICONS_PATH + ETOOL16_PATH + "paste_edit.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_DELETE, ICONS_PATH + ETOOL16_PATH + "delete_edit.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NEW_REPORT, ICONS_PATH + OBJ16_PATH + "new_report.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_REPORT_FILE, ICONS_PATH + EVIEW16_PATH + "report.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_QUIK_EDIT, ICONS_PATH + EVIEW16_PATH + "quick_edit.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_REPORT_PERSPECTIVE, ICONS_PATH + EVIEW16_PATH + "report_perspective.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_REPORT_PROJECT, ICONS_PATH + OBJ16_PATH + "report_project.gif" ); //$NON-NLS-1$ //element icons declareImage( IReportGraphicConstants.ICON_ELEMENT_CELL, ICONS_PATH + OBJ16_PATH + "cell.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_DATA, ICONS_PATH + OBJ16_PATH + "data.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_DATA_SET, ICONS_PATH + OBJ16_PATH + "data_set.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_DATA_SOURCE, ICONS_PATH + OBJ16_PATH + "data_source.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_ODA_DATA_SET, ICONS_PATH + OBJ16_PATH + "data_set.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_ODA_DATA_SOURCE, ICONS_PATH + OBJ16_PATH + "data_source.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_SCRIPT_DATA_SET, ICONS_PATH + OBJ16_PATH + "data_set.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_SCRIPT_DATA_SOURCE, ICONS_PATH + OBJ16_PATH + "data_source.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_GRID, ICONS_PATH + PAL_PATH + "grid.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_TEXTDATA, ICONS_PATH + PAL_PATH + "textdata.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_GROUP, ICONS_PATH + OBJ16_PATH + "group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_IMAGE, ICONS_PATH + PAL_PATH + "image.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LABEL, ICONS_PATH + PAL_PATH + "label.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LINE, ICONS_PATH + OBJ16_PATH + "line.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LIST, ICONS_PATH + PAL_PATH + "list.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LIST_GROUP, ICONS_PATH + OBJ16_PATH + "list_group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMNET_MASTERPAGE, ICONS_PATH + OBJ16_PATH + "master_page.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMNET_GRAPHICMASTERPAGE, ICONS_PATH + EVIEW16_PATH + "master_page.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_PARAMETER, ICONS_PATH + OBJ16_PATH + "parameter.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_PARAMETER_GROUP, ICONS_PATH + OBJ16_PATH + "parameter_group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_CASCADING_PARAMETER_GROUP, ICONS_PATH + OBJ16_PATH + "parameter_group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_ROW, ICONS_PATH + OBJ16_PATH + "row.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_SCALAR_PARAMETER, ICONS_PATH + OBJ16_PATH + "parameter.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMNET_SIMPLE_MASTERPAGE, ICONS_PATH + EVIEW16_PATH + "master_page.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_STYLE, ICONS_PATH + OBJ16_PATH + "style.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_TABLE, ICONS_PATH + PAL_PATH + "table.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_TABLE_GROUP, ICONS_PATH + OBJ16_PATH + "table_group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_TEXT, ICONS_PATH + PAL_PATH + "text.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LIBRARY, ICONS_PATH + OBJ16_PATH + "library.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LIBRARY_REFERENCED, ICONS_PATH + OBJ16_PATH + "library_referenced.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_THEME, ICONS_PATH + OBJ16_PATH + "theme.gif" ); //$NON-NLS-1$ //outline icons declareImage( IReportGraphicConstants.ICON_NODE_BODY, ICONS_PATH + OBJ16_PATH + "body_icon.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_MASTERPAGES, ICONS_PATH + OBJ16_PATH + "master_pages.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_STYLES, ICONS_PATH + OBJ16_PATH + "styles.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_HEADER, ICONS_PATH + OBJ16_PATH + "header.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_DETAILS, ICONS_PATH + OBJ16_PATH + "details.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_FOOTER, ICONS_PATH + OBJ16_PATH + "footer.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_GROUPS, ICONS_PATH + OBJ16_PATH + "group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_GROUP_HEADER, ICONS_PATH + OBJ16_PATH + "group_header.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_GROUP_FOOTER, ICONS_PATH + OBJ16_PATH + "group_footer.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_LIBRARIES, ICONS_PATH + OBJ16_PATH + "library_folder.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_THEMES, ICONS_PATH + OBJ16_PATH + "theme.gif" ); //$NON-NLS-1$ // layout icons declareImage( IReportGraphicConstants.ICON_LAYOUT_NORMAL, ICONS_PATH + EVIEW16_PATH + "normal_page.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_LAYOUT_MASTERPAGE, ICONS_PATH + EVIEW16_PATH + "master_page.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_LAYOUT_RULER, ICONS_PATH + EVIEW16_PATH + "show_rulers.gif" ); //$NON-NLS-1$ // border icons declareImage( IReportGraphicConstants.ICON_BORDER_ALL, ICONS_PATH + OBJ16_PATH + "borders_frame.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_BORDER_BOTTOM, ICONS_PATH + OBJ16_PATH + "border_bottom.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_BORDER_TOP, ICONS_PATH + OBJ16_PATH + "border_top.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_BORDER_LEFT, ICONS_PATH + OBJ16_PATH + "border_left.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_BORDER_RIGHT, ICONS_PATH + OBJ16_PATH + "border_right.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_BORDER_NOBORDER, ICONS_PATH + OBJ16_PATH + "border_none.gif" ); //$NON-NLS-1$ // missing image icons declareImage( IReportGraphicConstants.ICON_MISSING_IMG, ICONS_PATH + PROGRESS_PATH + "missing_image.gif" ); //$NON-NLS-1$ // data explore icons declareImage( IReportGraphicConstants.ICON_DATA_EXPLORER_VIEW, ICONS_PATH + EVIEW16_PATH + "data_explorer_view.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_DATA_SETS, ICONS_PATH + OBJ16_PATH + "data_set_folder.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_DATA_SOURCES, ICONS_PATH + OBJ16_PATH + "data_source_folder.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_PARAMETERS, ICONS_PATH + OBJ16_PATH + "parameter_folder.gif" ); //$NON-NLS-1$ //********************************************************** //expression icons declareImage( IReportGraphicConstants.ICON_EXPRESSION_DATA_TABLE, ICONS_PATH + OBJ16_PATH + "data_table.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_DATA_COLUMN, ICONS_PATH + OBJ16_PATH + "data_column.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_OPERATOR, ICONS_PATH + OBJ16_PATH + "operator.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_GLOBAL, ICONS_PATH + OBJ16_PATH + "global.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_METHOD, ICONS_PATH + OBJ16_PATH + "method.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_STATIC_METHOD, ICONS_PATH + OBJ16_PATH + "static_method.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_MEMBER, ICONS_PATH + OBJ16_PATH + "property.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_STATIC_MEMBER, ICONS_PATH + OBJ16_PATH + "static_property.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_BUILDER, ICONS_PATH + OBJ16_PATH + "expression.gif" ); //$NON-NLS-1$ //data wizards declareImage( IReportGraphicConstants.ICON_WIZARD_DATASOURCE, ICONS_PATH + WIZBAN_PATH + "datasource_wizard.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_WIZARD_DATASET, ICONS_PATH + WIZBAN_PATH + "dataset_wizard.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_WIZARDPAGE_DATASETSELECTION, ICONS_PATH + WIZBAN_PATH + "dataset_wizard_table.gif" ); //$NON-NLS-1$ /////////////////////attribute image declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_FONT_WIDTH, ICONS_PATH + OBJ16_PATH + "bold.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_FONT_WIDTH + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "bold_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_FONT_STYLE, ICONS_PATH + OBJ16_PATH + "italic.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_FONT_STYLE + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "italic_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_UNDERLINE, ICONS_PATH + OBJ16_PATH + "underline.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_UNDERLINE + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "underline_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_LINE_THROUGH, ICONS_PATH + OBJ16_PATH + "lineSthrough.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_LINE_THROUGH + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "lineSthrough_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_NONE, ICONS_PATH + OBJ16_PATH + "border_none.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_FRAME, ICONS_PATH + OBJ16_PATH + "border_frame.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_LEFT, ICONS_PATH + OBJ16_PATH + "border_left.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_RIGHT, ICONS_PATH + OBJ16_PATH + "border_right.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_TOP, ICONS_PATH + OBJ16_PATH + "border_top.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_BOTTOM, ICONS_PATH + OBJ16_PATH + "border_bottom.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_CENTER, ICONS_PATH + OBJ16_PATH + "center_align.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_CENTER + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "center_align_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_JUSTIFY, ICONS_PATH + OBJ16_PATH + "justified_align.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_JUSTIFY + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "justified_align_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_LEFT, ICONS_PATH + OBJ16_PATH + "left_align.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_LEFT + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "left_align_disabled.gif" );//$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_RIGHT, ICONS_PATH + OBJ16_PATH + "right_align.gif" );//$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_RIGHT + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "right_align_disabled.gif" );//$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TOP_MARGIN, ICONS_PATH + MISC_PATH + "top_margin.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BOTTOM_MARGIN, ICONS_PATH + MISC_PATH + "bottom_margin.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_LEFT_MARGIN, ICONS_PATH + MISC_PATH + "left_margin.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_RIGHT_MARGIN, ICONS_PATH + MISC_PATH + "right_margin.gif" ); //$NON-NLS-1$ //********************************************************** //Preview icons declareImage( IReportGraphicConstants.ICON_PREVIEW_PARAMETERS, ICONS_PATH + PROGRESS_PATH + "params_ecl_show.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_PREVIEW_PARAMETERS_HIDE, ICONS_PATH + PROGRESS_PATH + "params_ecl_hide.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_PREVIEW_REFRESH, ICONS_PATH + ETOOL16_PATH + "refresh.gif" ); //$NON-NLS-1$ //Auto Text Icon declareImage( IReportGraphicConstants.ICON_AUTOTEXT, ICONS_PATH + OBJ16_PATH + "autotext.gif" ); //$NON-NLS-1$ //Parameter dialog icon declareImage( IReportGraphicConstants.ICON_DEFAULT, ICONS_PATH + OBJ16_PATH + "default.gif" ); //$NON-NLS-1$ //Data editor dialog icons declareImage(IReportGraphicConstants.ICON_DATAEDIT_DLG_TITLE_BANNER, ICONS_PATH + OBJ16_PATH + "prop_dialog_title.gif" ); //$NON-NLS-1$ //Open file icon declareImage( IReportGraphicConstants.ICON_OPEN_FILE, ICONS_PATH + ETOOL16_PATH + "open_file.gif" ); //$NON-NLS-1$ declareImage("TableRowSelector", ICONS_PATH + OBJ16_PATH + "tablerowselector.gif" ); //$NON-NLS-1$ //$NON-NLS-2$ } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/60b230da700eb9288c79f8829a45e89ad331053f/ReportPlatformUIImages.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/ReportPlatformUIImages.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
760,
918,
14196,
8946,
12,
262,
202,
95,
202,
202,
759,
2975,
17455,
202,
202,
29554,
2040,
12,
467,
7887,
8946,
18,
3445,
43,
67,
5704,
6479,
67,
3589,
67,
8047,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
760,
918,
14196,
8946,
12,
262,
202,
95,
202,
202,
759,
2975,
17455,
202,
202,
29554,
2040,
12,
467,
7887,
8946,
18,
3445,
43,
67,
5704,
6479,
67,
3589,
67,
8047,
47,
... | ||
Report rpt = new Report(); runTestFromString15(TEST1, new FooRule(), rpt); assertEquals(0, rpt.size()); runTestFromString15(TEST2, new FooRule(), rpt); assertEquals(0, rpt.size()); } | Report rpt = new Report(); runTestFromString(TEST1, new FooRule(), rpt, SourceType.JAVA_15); assertEquals(0, rpt.size()); runTestFromString(TEST2, new FooRule(), rpt, SourceType.JAVA_15); assertEquals(0, rpt.size()); } | public void testClassLevelSuppression() throws Throwable { Report rpt = new Report(); runTestFromString15(TEST1, new FooRule(), rpt); assertEquals(0, rpt.size()); runTestFromString15(TEST2, new FooRule(), rpt); assertEquals(0, rpt.size()); } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/4e45de9075eeb015245ff09f8f8c58cf0f98bbf3/SuppressWarningsTest.java/buggy/pmd/regress/test/net/sourceforge/pmd/SuppressWarningsTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
797,
2355,
3088,
1337,
1435,
1216,
4206,
288,
3639,
8706,
31656,
273,
394,
8706,
5621,
3639,
1086,
4709,
9193,
3600,
12,
16961,
21,
16,
394,
23077,
2175,
9334,
31656,
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,
377,
1071,
918,
1842,
797,
2355,
3088,
1337,
1435,
1216,
4206,
288,
3639,
8706,
31656,
273,
394,
8706,
5621,
3639,
1086,
4709,
9193,
3600,
12,
16961,
21,
16,
394,
23077,
2175,
9334,
31656,
1769,... |
readGradeForm(data, state); | readGradeForm(data, state, "read"); | private boolean alertGlobalNavigation(SessionState state, RunData data) { String mode = (String) state.getAttribute(STATE_MODE); ParameterParser params = data.getParameters(); if (mode.equals(MODE_STUDENT_VIEW_SUBMISSION) || mode.equals(MODE_STUDENT_PREVIEW_SUBMISSION) || mode.equals(MODE_STUDENT_VIEW_GRADE) || mode.equals(MODE_INSTRUCTOR_NEW_EDIT_ASSIGNMENT) || mode.equals(MODE_INSTRUCTOR_DELETE_ASSIGNMENT) || mode.equals(MODE_INSTRUCTOR_GRADE_SUBMISSION) || mode.equals(MODE_INSTRUCTOR_PREVIEW_GRADE_SUBMISSION) || mode.equals(MODE_INSTRUCTOR_PREVIEW_ASSIGNMENT) || mode.equals(MODE_INSTRUCTOR_VIEW_ASSIGNMENT)) { if (state.getAttribute(ALERT_GLOBAL_NAVIGATION) == null) { addAlert(state, rb.getString("alert.globalNavi")); state.setAttribute(ALERT_GLOBAL_NAVIGATION, Boolean.TRUE); if (mode.equals(MODE_STUDENT_VIEW_SUBMISSION)) { // retrieve the submission text (as formatted text) boolean checkForFormattingErrors = true; // the student is submitting something - so check for errors String text = processFormattedTextFromBrowser(state, params.getCleanString(VIEW_SUBMISSION_TEXT), checkForFormattingErrors); state.setAttribute(VIEW_SUBMISSION_TEXT, text); if (params.getString(VIEW_SUBMISSION_HONOR_PLEDGE_YES) != null) { state.setAttribute(VIEW_SUBMISSION_HONOR_PLEDGE_YES, "true"); } state.setAttribute(FilePickerHelper.FILE_PICKER_TITLE_TEXT, rb.getString("gen.addatt")); // TODO: file picker to save in dropbox? -ggolden // User[] users = { UserDirectoryService.getCurrentUser() }; // state.setAttribute(ResourcesAction.STATE_SAVE_ATTACHMENT_IN_DROPBOX, users); } else if (mode.equals(MODE_INSTRUCTOR_NEW_EDIT_ASSIGNMENT)) { setNewAssignmentParameters(data, false); } else if (mode.equals(MODE_INSTRUCTOR_GRADE_SUBMISSION)) { readGradeForm(data, state); } return true; } } return false; } // alertGlobalNavigation | 2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/0a36dcd0c42d95c18f892c93e60958aca0a14764/AssignmentAction.java/buggy/assignment/assignment-tool/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
6881,
5160,
14301,
12,
2157,
1119,
919,
16,
1939,
751,
501,
13,
202,
95,
202,
202,
780,
1965,
273,
261,
780,
13,
919,
18,
588,
1499,
12,
7998,
67,
7038,
1769,
202,
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,
1152,
1250,
6881,
5160,
14301,
12,
2157,
1119,
919,
16,
1939,
751,
501,
13,
202,
95,
202,
202,
780,
1965,
273,
261,
780,
13,
919,
18,
588,
1499,
12,
7998,
67,
7038,
1769,
202,
20... |
if(isJdk14() || JAVADOC_ANNOTATION_TYPE.equals(m_target)) { AnnotationConfiguration.getInstance().getAnnotationFinder().addSourceDirs(m_sourceDirs); } | AnnotationConfiguration.getInstance().getAnnotationFinder().initialize(); | public void run() { // lazy scan sourcedirs if needed if(isJdk14() || JAVADOC_ANNOTATION_TYPE.equals(m_target)) { AnnotationConfiguration.getInstance().getAnnotationFinder().addSourceDirs(m_sourceDirs); } List<ISuite> suiteRunners = null; // // Slave mode // if (m_clientPort != 0) { waitForSuites(); } // // Regular mode // else if (m_hostFile == null) { suiteRunners = runSuitesLocally(); for (IReporter reporter : m_reporters) { reporter.generateReport(m_suites, suiteRunners, m_outputDir); } } // // Master mode // else { suiteRunners = runSuitesRemotely(); for (IReporter reporter : m_reporters) { reporter.generateReport(m_suites, suiteRunners, m_outputDir); } } // HINT: check if anything was run int runMethodsCount = 0; if(null != suiteRunners) { for(ISuite suite: suiteRunners) { runMethodsCount += suite.getInvokedMethods().size(); } } if(runMethodsCount == 0) { setStatus(HAS_NO_TEST); if (TestRunner.getVerbose() > 1) { System.err.println("[TestNG] No tests found. Nothing was run"); } } } | 47060 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47060/b75a6679665013f047f910c141d44ac8212eb311/TestNG.java/clean/src/main/org/testng/TestNG.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
1435,
288,
565,
368,
7962,
4135,
1084,
8291,
309,
3577,
565,
309,
12,
291,
46,
2883,
3461,
1435,
747,
804,
5856,
1880,
10809,
67,
24922,
67,
2399,
18,
14963,
12,
81,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1086,
1435,
288,
565,
368,
7962,
4135,
1084,
8291,
309,
3577,
565,
309,
12,
291,
46,
2883,
3461,
1435,
747,
804,
5856,
1880,
10809,
67,
24922,
67,
2399,
18,
14963,
12,
81,
67... |
final AnAction action = new GetFromVcsAction(); action.actionPerformed(new AnActionEvent(e, new DataContext() { public Object getData(String dataId) { if (DataConstants.PROJECT.equals(dataId)) { return null; } return button; } }, ActionPlaces.UNKNOWN, new PresentationFactory().getPresentation(action), actionManager, 0)); | final GetFromVcsAction action = new GetFromVcsAction(); action.actionPerformed(button, e); | private WelcomeScreen() { // Create Plugins Panel myPluginsPanel = new PluginsPanel(new GridBagLayout()); myPluginsPanel.setBackground(PLUGINS_PANEL_COLOR); JLabel pluginsCaption = new JLabel("Plugins"); pluginsCaption.setFont(CAPTION_FONT); pluginsCaption.setForeground(CAPTION_COLOR); JLabel installedPluginsCaption = new JLabel("Installed Plugins"); installedPluginsCaption.setFont(LINK_FONT); installedPluginsCaption.setForeground(CAPTION_COLOR); JPanel pluginsListPanel = new JPanel(new GridBagLayout()); pluginsListPanel.setBackground(PLUGINS_PANEL_COLOR); JPanel topPluginsPanel = new JPanel(new GridBagLayout()); topPluginsPanel.setBackground(PLUGINS_PANEL_COLOR); //Create the list of installed plugins PluginDescriptor[] myInstalledPlugins = PluginManager.getPlugins(); if (myInstalledPlugins == null || myInstalledPlugins.length == 0) { addListItemToPlugins(pluginsListPanel, "<html><i>No plugins currently installed.</i></html>", null, null, null, null); } else { for (int i = 0; i < myInstalledPlugins.length; i++) { PluginDescriptor plugin = myInstalledPlugins[i]; addListItemToPlugins(pluginsListPanel, plugin.getName(), plugin.getDescription(), plugin.getVendorLogoPath(), plugin.getPluginClassLoader(), plugin.getUrl()); // TODO[pti]: check whether plugin has a welcome-action, and if yes, add it to 'ourPluginsWithActions' ArrayList } } GridBagConstraints gBC = new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(17, 25, 0, 0), 0, 0); topPluginsPanel.add(pluginsCaption, gBC); JLabel emptyLabel_1 = new JLabel(); emptyLabel_1.setBackground(PLUGINS_PANEL_COLOR); gBC = new GridBagConstraints(1, 0, 1, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0); topPluginsPanel.add(emptyLabel_1, gBC); gBC = new GridBagConstraints(2, 0, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(13, 0, 0, 10), 0, 0); MyActionButton openPluginManager = new PluginsActionButton(OPEN_PLUGINS_ICON, null) { protected void onPress(InputEvent e) { ShowSettingsUtil.getInstance().editConfigurable(myPluginsPanel, PluginManagerConfigurable.getInstance()); } public Dimension getMaximumSize() { return OPEN_PLUGIN_MANAGER_SIZE; } public Dimension getMinimumSize() { return OPEN_PLUGIN_MANAGER_SIZE; } public Dimension getPreferredSize() { return OPEN_PLUGIN_MANAGER_SIZE; } }; openPluginManager.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); topPluginsPanel.add(openPluginManager, gBC); openPluginManager.setupWithinPanel(myPluginsPanel, PLUGINS_GROUP, myPluginsButtonsCount, 0); myPluginsButtonsCount++; gBC = new GridBagConstraints(0, 1, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(15, 25, 0, 0), 0, 0); topPluginsPanel.add(installedPluginsCaption, gBC); JLabel emptyLabel_2 = new JLabel(); emptyLabel_2.setBackground(PLUGINS_PANEL_COLOR); gBC = new GridBagConstraints(1, 1, 2, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0); topPluginsPanel.add(emptyLabel_2, gBC); gBC = new GridBagConstraints(0, 0, 1, 1, 0.5, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0); myPluginsPanel.add(topPluginsPanel, gBC); gBC = new GridBagConstraints(0, 1, 1, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 5, 0, 0), 0, 0); myPluginsPanel.add(pluginsListPanel, gBC); JPanel emptyPanel_1 = new JPanel(); emptyPanel_1.setBackground(PLUGINS_PANEL_COLOR); gBC = new GridBagConstraints(0, 2, 1, 1, 1, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0); myPluginsPanel.add(emptyPanel_1, gBC); JScrollPane myPluginsScrollPane = ScrollPaneFactory.createScrollPane(myPluginsPanel); myPluginsScrollPane.setBorder(BorderFactory.createLineBorder(GRAY_BORDER_COLOR)); myPluginsScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); myPluginsScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); // Create Main Manel for Quick Start and Documentation myMainPanel = new JPanel(new GridBagLayout()); myMainPanel.setBackground(MAIN_PANEL_COLOR); ActionGroupDescriptor quickStarts = new ActionGroupDescriptor("Quick Start", 0); MyActionButton newProject = new MyActionButton(NEW_PROJECT_ICON, null) { protected void onPress(InputEvent e) { ProjectUtil.createNewProject(null); } }; quickStarts.addButton(newProject, "Create New Project", "Start the \"New Project\" Wizard that will guide you through " + "the steps that are necessary to create a new project."); final ActionManager actionManager = ActionManager.getInstance(); MyActionButton openRecentProject = new ButtonWithExtension(REOPEN_RECENT_ICON, null) { protected void onPress(InputEvent e, final MyActionButton button) { final AnAction action = new RecentProjectsAction(); action.actionPerformed(new AnActionEvent(e, new DataContext() { public Object getData(String dataId) { if (DataConstants.PROJECT.equals(dataId)) { return null; } return button; } }, ActionPlaces.UNKNOWN, new PresentationFactory().getPresentation(action), actionManager, 0)); } }; quickStarts.addButton(openRecentProject, "Reopen Recent Project...", "You can open one of the most recent " + "projects you were working with. Click the icon " + "or link to select a project from the list."); MyActionButton getFromVCS = new ButtonWithExtension(FROM_VCS_ICON, null) { protected void onPress(InputEvent e, final MyActionButton button) { final AnAction action = new GetFromVcsAction(); action.actionPerformed(new AnActionEvent(e, new DataContext() { public Object getData(String dataId) { if (DataConstants.PROJECT.equals(dataId)) { return null; } return button; } }, ActionPlaces.UNKNOWN, new PresentationFactory().getPresentation(action), actionManager, 0)); } }; quickStarts.addButton(getFromVCS, "Get Project From Version Control...", "You can check out an entire project from " + "a Version Control System. Click the icon to " + "select CVS or Subversion."); quickStarts.appendActionsFromGroup((DefaultActionGroup)actionManager.getAction(IdeActions.GROUP_WELCOME_SCREEN_QUICKSTART)); ActionGroupDescriptor docsGroup = new ActionGroupDescriptor("Documentation", 1); MyActionButton readHelp = new MyActionButton(READ_HELP_ICON, null) { protected void onPress(InputEvent e) { HelpManagerImpl.getInstance().invokeHelp(""); } }; docsGroup.addButton(readHelp, "Read Help", "Open IntelliJ IDEA \"Help Topics\" in a new window."); MyActionButton defaultKeymap = new MyActionButton(KEYMAP_ICON, null) { protected void onPress(InputEvent e) { try { BrowserUtil.launchBrowser(KEYMAP_URL); } catch (IllegalThreadStateException ex) { // it's not a problem } } }; docsGroup.addButton(defaultKeymap, "Default Keymap", "Open PDF file with the default keymap reference card."); docsGroup.appendActionsFromGroup((DefaultActionGroup)actionManager.getAction(IdeActions.GROUP_WELCOME_SCREEN_DOC));// TODO[pti]: before adding Quick Start and Documentation panes to the main panel, check for plugins with welcome actions and add them to the appropriate panes JPanel emptyPanel_2 = new JPanel(); emptyPanel_2.setBackground(MAIN_PANEL_COLOR); final JPanel quickStartPanel = quickStarts.getPanel(); quickStartPanel.add(emptyPanel_2, new GridBagConstraints(0, quickStarts.getIdx() + 2, 2, 1, 1, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); JPanel emptyPanel_3 = new JPanel(); emptyPanel_3.setBackground(MAIN_PANEL_COLOR); final JPanel docsPanel = docsGroup.getPanel(); docsPanel.add(emptyPanel_3, new GridBagConstraints(0, docsGroup.getIdx() + 2, 2, 1, 1, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); // Fill Main Panel with Quick Start and Documentation lists gBC = new GridBagConstraints(0, 0, 1, 1, 1, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 30, 0, 0), 0, 0); myMainPanel.add(quickStartPanel, gBC); gBC = new GridBagConstraints(1, 0, 1, 1, 1, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 15, 0, 0), 0, 0); myMainPanel.add(docsPanel, gBC); myMainPanel.setPreferredSize(new Dimension(650, 450)); JScrollPane myMainScrollPane = ScrollPaneFactory.createScrollPane(myMainPanel); myMainScrollPane.setBorder(null); myMainScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); myMainScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); // Create caption pane JPanel topPanel = new JPanel(new GridBagLayout()) { public void paint(Graphics g) { Icon welcome = CAPTION_IMAGE; welcome.paintIcon(null, g, 0, 0); g.setColor(CAPTION_BACKGROUND); g.fillRect(welcome.getIconWidth(), 0, this.getWidth() - welcome.getIconWidth(), welcome.getIconHeight()); super.paint(g); } }; topPanel.setOpaque(false); JPanel transparentTopPanel = new JPanel(); transparentTopPanel.setOpaque(false); topPanel.add(transparentTopPanel, new GridBagConstraints(0, 0, 1, 1, 1, 0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); topPanel.add(new JLabel(DEVELOP_SLOGAN), new GridBagConstraints(1, 0, 1, 1, 0, 0, GridBagConstraints.SOUTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 10), 0, 0)); // Create the base welcome panel myWelcomePanel = new JPanel(new GridBagLayout()); myWelcomePanel.setBackground(MAIN_PANEL_BACKGROUND); gBC = new GridBagConstraints(0, 0, 3, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(10, 5, 0, 5), 0, 0); myWelcomePanel.add(topPanel, gBC); gBC = new GridBagConstraints(0, 1, 2, 1, 1.4, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(15, 15, 15, 0), 0, 0); myWelcomePanel.add(myMainScrollPane, gBC); gBC = new GridBagConstraints(2, 1, 1, 1, 0.6, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(15, 15, 15, 15), 0, 0); myWelcomePanel.add(myPluginsScrollPane, gBC); } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/a45ec0e180c32c9f2a96c85c33771141193e3b86/WelcomeScreen.java/clean/source/com/intellij/openapi/wm/impl/welcomeScreen/WelcomeScreen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
678,
16312,
7956,
1435,
288,
565,
368,
1788,
26849,
23641,
565,
3399,
9461,
5537,
273,
394,
26849,
5537,
12,
2704,
7145,
5013,
3744,
10663,
565,
3399,
9461,
5537,
18,
542,
8199,
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,
282,
3238,
678,
16312,
7956,
1435,
288,
565,
368,
1788,
26849,
23641,
565,
3399,
9461,
5537,
273,
394,
26849,
5537,
12,
2704,
7145,
5013,
3744,
10663,
565,
3399,
9461,
5537,
18,
542,
8199,
12,
... |
for (int wClass=0; wClass<config.nClasses; wClass++) | /*for (int wClass=0; wClass<config.nClasses; wClass++) | private void calcProto(Output outputs, DataHolder data) { //calculate prototypes for each class: for (int wClass=0; wClass<config.nClasses; wClass++) { double sumProbThisClass = 0; for (int wSample=0; wSample<data.nSamples; wSample++) { prob[wClass][wSample] = Math.pow(outputs.getArray(wClass)[wSample], m); sumProbThisClass += prob[wClass][wSample]; } for (int wVar=0; wVar<data.nVars; wVar++) { prototypes[wClass][wVar] = 0; for (int wSample=0; wSample<data.nSamples; wSample++) { prototypes[wClass][wVar] += prob[wClass][wSample] * data.getDataVect(wVar+1)[wSample]; } //if (sumProbThisClass!=0) prototypes[wClass][wVar] /= sumProbThisClass; } } } | 12140 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12140/d177990c48e508a3b6d2cdf5b5f0a41e6f0851bf/FitnessClusteringGroup.java/clean/branches/clustering/src/gpalta/clustering/FitnessClusteringGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
7029,
6262,
12,
1447,
6729,
16,
1910,
6064,
501,
13,
565,
288,
3639,
368,
11162,
450,
3307,
989,
364,
1517,
667,
30,
3639,
1748,
1884,
261,
474,
341,
797,
33,
20,
31,
341,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7029,
6262,
12,
1447,
6729,
16,
1910,
6064,
501,
13,
565,
288,
3639,
368,
11162,
450,
3307,
989,
364,
1517,
667,
30,
3639,
1748,
1884,
261,
474,
341,
797,
33,
20,
31,
341,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.