rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
&& (mname.equals(name) || mname.equals(nameV));
&& (mname.equals(name) || mname.equals(nameV));
public boolean select(Object value) { gnu.bytecode.Method method = (gnu.bytecode.Method) value; String mname = method.getName(); return ((method.getModifiers() & modmask) == modifiers) && (mname.equals(name) || mname.equals(nameV)); }
36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/199ba666b00f766c5fc703bba6aaa080393b93ba/ClassMethods.java/buggy/gnu/kawa/reflect/ClassMethods.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 2027, 12, 921, 460, 13, 225, 288, 565, 314, 13053, 18, 1637, 16651, 18, 1305, 707, 273, 261, 1600, 89, 18, 1637, 16651, 18, 1305, 13, 460, 31, 565, 514, 312, 529, 273, 707...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 2027, 12, 921, 460, 13, 225, 288, 565, 314, 13053, 18, 1637, 16651, 18, 1305, 707, 273, 261, 1600, 89, 18, 1637, 16651, 18, 1305, 13, 460, 31, 565, 514, 312, 529, 273, 707...
confirm.show();
confirm.setVisible(true);
public void notifyOfBot() { if (GUIPreferences.getInstance().getNagForBotReadme() && !WarningShown) { WarningShown = true; String title = Messages.getString("BotGUI.notifyOfBot.title"); //$NON-NLS-1$ String body = Messages.getString("BotGUI.notifyOfBot.message"); //$NON-NLS-1$ Dimension screenSize = frame.getToolkit().getScreenSize(); frame.pack(); frame.setLocation( screenSize.width / 2 - frame.getSize().width / 2, screenSize.height / 2 - frame.getSize().height / 2); ConfirmDialog confirm = new ConfirmDialog(frame, title, body, true); confirm.show(); if (!confirm.getShowAgain()) { GUIPreferences.getInstance().setNagForBotReadme(false); } if (confirm.getAnswer()) { File helpfile = new File("docs/ai-readme.txt"); //$NON-NLS-1$ new CommonHelpDialog(frame, helpfile).show(); } } }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/26d049695b50784ad795b53718db83368ca9a6fb/BotGUI.java/buggy/megamek/src/megamek/client/bot/ui/AWT/BotGUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5066, 951, 6522, 1435, 288, 3639, 309, 261, 43, 5370, 12377, 18, 588, 1442, 7675, 588, 50, 346, 1290, 6522, 1994, 3501, 1435, 597, 401, 6210, 27042, 13, 288, 5411, 9728, 27042,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5066, 951, 6522, 1435, 288, 3639, 309, 261, 43, 5370, 12377, 18, 588, 1442, 7675, 588, 50, 346, 1290, 6522, 1994, 3501, 1435, 597, 401, 6210, 27042, 13, 288, 5411, 9728, 27042,...
ctx.archiveManager.extractToCache(thisKey, ah.getArchiveType(), result.asBucket(), actx, ah);
ah.extractToCache(result.asBucket(), actx);
public void onSuccess(FetchResult result, ClientGetState state) { try { ctx.archiveManager.extractToCache(thisKey, ah.getArchiveType(), result.asBucket(), actx, ah); } catch (ArchiveFailureException e) { SingleFileFetcher.this.onFailure(new FetchException(e)); } catch (ArchiveRestartException e) { SingleFileFetcher.this.onFailure(new FetchException(e)); } try { handleMetadata(); } catch (MetadataParseException e) { SingleFileFetcher.this.onFailure(new FetchException(e)); } catch (FetchException e) { SingleFileFetcher.this.onFailure(e); } catch (ArchiveFailureException e) { SingleFileFetcher.this.onFailure(new FetchException(e)); } catch (ArchiveRestartException e) { SingleFileFetcher.this.onFailure(new FetchException(e)); } }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/a8dac0519d374c8e66f483db5910bffb9c35fb5e/SingleFileFetcher.java/clean/src/freenet/client/async/SingleFileFetcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 20613, 12, 5005, 1253, 563, 16, 2445, 967, 1119, 919, 13, 288, 1082, 202, 698, 288, 9506, 202, 5900, 18, 10686, 1318, 18, 8004, 774, 1649, 12, 2211, 653, 16, 279, 76, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 20613, 12, 5005, 1253, 563, 16, 2445, 967, 1119, 919, 13, 288, 1082, 202, 698, 288, 9506, 202, 5900, 18, 10686, 1318, 18, 8004, 774, 1649, 12, 2211, 653, 16, 279, 76, ...
containerBuilder.buildContainer(containerRef, null, assembler, "application");
containerBuilder.buildContainer(containerRef, null, assembler, context);
public void contextInitialized(ServletContextEvent event) { ServletContext context = event.getServletContext(); ContainerAssembler assembler = loadAssembler(context); ObjectReference containerRef = new ApplicationScopeObjectReference(context, APPLICATION_CONTAINER); ObjectReference builderRef = new ApplicationScopeObjectReference(context, BUILDER); containerBuilder = new DefaultLifecycleContainerBuilder(); builderRef.set(containerBuilder); containerBuilder.buildContainer(containerRef, null, assembler, "application"); }
9344 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9344/e9de5c19c1cfd046b6960536d66863571a831674/ServletContainerListener.java/clean/trunk/java/servlet/src/java/org/nanocontainer/servlet/ServletContainerListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 819, 11459, 12, 4745, 1042, 1133, 871, 13, 288, 3639, 22717, 819, 273, 871, 18, 588, 4745, 1042, 5621, 3639, 4039, 1463, 5747, 749, 20489, 749, 273, 1262, 1463, 5747, 749, 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, 1071, 918, 819, 11459, 12, 4745, 1042, 1133, 871, 13, 288, 3639, 22717, 819, 273, 871, 18, 588, 4745, 1042, 5621, 3639, 4039, 1463, 5747, 749, 20489, 749, 273, 1262, 1463, 5747, 749, 12, ...
result = frame.result;
ContinuationJump cjump = (ContinuationJump)throwable; if (cjump == null) { result = frame.result; } else { result = cjump.result; }
private static void exitFrame(Context cx, CallFrame frame, Object throwable) { if (frame.idata.itsNeedsActivation) { ScriptRuntime.exitActivationFunction(cx); } if (frame.debuggerFrame != null) { try { if (throwable instanceof Throwable) { frame.debuggerFrame.onExit(cx, true, (Throwable)throwable); } else { Object result; result = frame.result; if (result == UniqueTag.DOUBLE_MARK) { result = ScriptRuntime.wrapNumber(frame.resultDbl); } frame.debuggerFrame.onExit(cx, false, result); } } catch (Throwable ex) { System.err.println("RHINO USAGE WARNING: onExit terminated with exception"); ex.printStackTrace(System.err); } } }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/c4916822f7b034e789467ec296eed5d756c58a06/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 2427, 3219, 12, 1042, 9494, 16, 3049, 3219, 2623, 16, 21394, 1033, 10132, 13, 565, 288, 3639, 309, 261, 3789, 18, 350, 396, 18, 1282, 26419, 14857, 13, 288, 5411, 7739, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2427, 3219, 12, 1042, 9494, 16, 3049, 3219, 2623, 16, 21394, 1033, 10132, 13, 565, 288, 3639, 309, 261, 3789, 18, 350, 396, 18, 1282, 26419, 14857, 13, 288, 5411, 7739, ...
childrenList.add( new LibDirectoryNodeModel( ( (File) children[i] ).getAbsolutePath( ) ) );
childrenList.add( new LibDirectoryNodeModel( ( (File) children[i] ).getAbsolutePath( ) ) );
public Object[] getChildren( ) { if ( childrenList.size( ) > 0 ) { return childrenList.toArray( ); } File file = new File( directoryPath ); if ( !file.exists( ) ) { return new Object[]{Messages .getString( "LibraryExplorerProvider.FolderNotExist" ) //$NON-NLS-1$ }; } if ( file.isDirectory( ) ) { File[] children = file.listFiles( filter ); for ( int i = 0; i < children.length; i++ ) { if ( children[i].isDirectory( ) ) { childrenList.add( new LibDirectoryNodeModel( ( (File) children[i] ).getAbsolutePath( ) ) ); } else { LibraryHandle library; try { library = SessionHandleAdapter.getInstance( ) .getSessionHandle( ).openLibrary( ( (File) children[i] ) .getAbsolutePath( ) ); if ( resourceListener != null ) { library .addResourceChangeListener( resourceListener ); } childrenList.add( library ); } catch ( DesignFileException e ) { } } } return childrenList.toArray( ); } return null; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/f06fb5699fc635c9c62b83fb721c2da353cf68a6/LibDirectoryNodeModel.java/buggy/UI/org.eclipse.birt.report.designer.ui.lib.explorer/src/org/eclipse/birt/report/designer/internal/ui/lib/explorer/model/LibDirectoryNodeModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 8526, 10268, 12, 262, 202, 95, 202, 202, 430, 261, 2325, 682, 18, 1467, 12, 262, 405, 374, 262, 202, 202, 95, 1082, 202, 2463, 2325, 682, 18, 31447, 12, 11272, 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, 1033, 8526, 10268, 12, 262, 202, 95, 202, 202, 430, 261, 2325, 682, 18, 1467, 12, 262, 405, 374, 262, 202, 202, 95, 1082, 202, 2463, 2325, 682, 18, 31447, 12, 11272, 202, 20...
if (TaskListView.getDefault() != null) TaskListView.getDefault().notifyTaskDataChanged();
if (TaskListView.getDefault() != null) TaskListView.getDefault().notifyTaskDataChanged(task);
public void run() { if (TaskListView.getDefault() != null) TaskListView.getDefault().notifyTaskDataChanged(); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/04e28e82233b51ec5dbc77caf8f19bd94749d98b/Task.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/Task.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1086, 1435, 288, 7734, 309, 261, 2174, 682, 1767, 18, 588, 1868, 1435, 480, 446, 13, 3837, 682, 1767, 18, 588, 1868, 7675, 12336, 2174, 751, 5033, 12, 4146, 1769, 5411, 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, 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, 2398, 1071, 918, 1086, 1435, 288, 7734, 309, 261, 2174, 682, 1767, 18, 588, 1868, 1435, 480, 446, 13, 3837, 682, 1767, 18, 588, 1868, 7675, 12336, 2174, 751, 5033, 12, 4146, 1769, 5411, 289, ...
if (contains(offset))
if (offset >= context_directive_start && offset <= context_ends)
public _Context findContextContainingOffset(int offset) { if (!hasSubContexts()) { if (contains(offset)) return this; return null; } _Context[] l = getSubContexts(); for (int i = 0; i < l.length; ++i) { _Context c = l[i]; if (c.contains(offset)) { if (c instanceof _CompositeContext) { _Context trial = ((_CompositeContext) c) .findContextContainingOffset(offset); if (trial == null) return c; return trial; } return c; } } if (contains(offset)) return this; return null; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/5553a5da68de1095a4ba4535e1731ccb6c9b9d77/LocationMap.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/LocationMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 389, 1042, 1104, 1042, 24344, 2335, 12, 474, 1384, 13, 288, 5411, 309, 16051, 5332, 1676, 15518, 10756, 288, 7734, 309, 261, 3348, 1545, 819, 67, 22347, 67, 1937, 597, 1384, 1648, 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, 540, 1071, 389, 1042, 1104, 1042, 24344, 2335, 12, 474, 1384, 13, 288, 5411, 309, 16051, 5332, 1676, 15518, 10756, 288, 7734, 309, 261, 3348, 1545, 819, 67, 22347, 67, 1937, 597, 1384, 1648, 8...
LoggingTool logger = new LoggingTool(true);
LoggingTool logger = new LoggingTool(); LoggingTool.configureLog4j(); logger.dumpSystemProperties();
public static void main(String[] args) { if (args.length < 2) { System.err.println("syntax: SubstructureFinder <SMARTS> <file> <file2> ..."); System.exit(0); } // to make sure the CDK LoggingTool is configured LoggingTool logger = new LoggingTool(true); QueryAtomContainer substructure = null; String smarts = args[0]; try { substructure = SMARTSParser.parse(smarts); } catch (Exception exc) { System.err.println("Problem parsing SMARTS: " + smarts); System.err.println("Error: " + exc.toString()); System.exit(-1); } if (substructure != null) { // loop over all files for (int i=1; i<args.length; i++) { String ifilename = args[i]; try { File input = new File(ifilename); if (!input.isDirectory()) { ChemObjectReader reader = new ReaderFactory().createReader(new FileReader(input)); if (reader.accepts(new Molecule())) { Molecule molecule = (Molecule)reader.read(new Molecule()); if (molecule != null) { boolean matches = UniversalIsomorphismTester.isSubgraph(molecule, substructure); if (matches) { System.out.println(ifilename + ": matches!"); } } } } } catch (Exception exception) { System.err.println(ifilename + ": error="); exception.printStackTrace(); } } } else { System.err.println("No SMARTS given!"); System.exit(-1); } }
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/4da80abce4622cd2a94df73cb82668b6648bbea8/SubstructureFinder.java/buggy/src/org/openscience/cdk/applications/SubstructureFinder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 3639, 309, 261, 1968, 18, 2469, 411, 576, 13, 288, 5411, 2332, 18, 370, 18, 8222, 2932, 14308, 30, 2592, 7627, 8441, 411, 7303, 4928, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8526, 833, 13, 288, 3639, 309, 261, 1968, 18, 2469, 411, 576, 13, 288, 5411, 2332, 18, 370, 18, 8222, 2932, 14308, 30, 2592, 7627, 8441, 411, 7303, 4928, ...
return ReflectionSupport.getDeclaredFields(this); }
return ReflectionSupport.getDeclaredFields(this); }
public Field[] getDeclaredFields() throws SecurityException { return ReflectionSupport.getDeclaredFields(this); }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/df3191f698ef40a339ada630131c294b42a11705/Class.java/buggy/rvm/src/vm/GNUClasspathSupport/java/lang/Class.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2286, 8526, 31202, 1435, 1216, 17780, 288, 202, 2463, 5685, 6289, 18, 588, 18888, 2314, 12, 2211, 1769, 565, 289, 2, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2286, 8526, 31202, 1435, 1216, 17780, 288, 202, 2463, 5685, 6289, 18, 588, 18888, 2314, 12, 2211, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return (Function) compile(scope, in, sourceName, lineno,
return (Function) compile(scope, null, source, sourceName, lineno,
public Function compileFunction(Scriptable scope, String source, String sourceName, int lineno, Object securityDomain) { Reader in = new StringReader(source); try { return (Function) compile(scope, in, sourceName, lineno, securityDomain, true); } catch (IOException ioe) { // Should never happen because we just made the reader // from a String throw new RuntimeException(); } }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/8d78476dde863807579dcd20202decfcfcc9f7f1/Context.java/clean/js/rhino/src/org/mozilla/javascript/Context.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4284, 4074, 2083, 12, 3651, 429, 2146, 16, 514, 1084, 16, 4766, 565, 514, 28337, 16, 509, 7586, 16, 4766, 565, 1033, 4373, 3748, 13, 565, 288, 3639, 5393, 316, 273, 394, 26227, 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, 1071, 4284, 4074, 2083, 12, 3651, 429, 2146, 16, 514, 1084, 16, 4766, 565, 514, 28337, 16, 509, 7586, 16, 4766, 565, 1033, 4373, 3748, 13, 565, 288, 3639, 5393, 316, 273, 394, 26227, 12...
public String exportUsersToString() throws IOException { StringWriter stringWriter = new StringWriter(); XMLWriter writer = null; try { writer = new XMLWriter(stringWriter, OutputFormat.createPrettyPrint()); writer.write(exportUsers()); } catch (IOException ioe) { Log.error(ioe); throw ioe; } finally { if (writer != null) { writer.close(); } } return stringWriter.toString(); }
51636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51636/3e474ee50b4c07e7a7ef66309bd590c4b956cfd1/ImportExportPlugin.java/clean/src/plugins/userImportExport/src/java/org/jivesoftware/messenger/plugin/ImportExportPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 3359, 6588, 5808, 1435, 1216, 1860, 288, 377, 202, 780, 2289, 533, 2289, 273, 394, 17436, 5621, 377, 202, 4201, 2289, 2633, 273, 446, 31, 3639, 775, 288, 202, 3639, 2633, 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, 514, 3359, 6588, 5808, 1435, 1216, 1860, 288, 377, 202, 780, 2289, 533, 2289, 273, 394, 17436, 5621, 377, 202, 4201, 2289, 2633, 273, 446, 31, 3639, 775, 288, 202, 3639, 2633, 273, ...
String foundName = build(name, appletDir.getPath());
String foundName = build(appletDir.getPath(), name);
public boolean exportApplet(boolean replaceHtml) throws Exception { //File appletDir, String exportSketchName, File dataDir) { //String program = textarea.getText(); // create the project directory // pass null for datapath because the files shouldn't be // copied to the build dir.. that's only for the temp stuff File appletDir = new File(folder, "applet"); boolean writeHtml = true; if (appletDir.exists()) { File htmlFile = new File(appletDir, "index.html"); if (htmlFile.exists() && !replaceHtml) { writeHtml = false; } } else { appletDir.mkdirs(); } // build the sketch String foundName = build(name, appletDir.getPath()); // (already reported) error during export, exit this function if (foundName == null) return false; // if name != exportSketchName, then that's weirdness // BUG unfortunately, that can also be a bug in the preproc :( if (!name.equals(foundName)) { PdeBase.showWarning("Error during export", "Sketch name is " + name + " but the sketch\n" + "name in the code was " + foundName, null); return false; } if (writeHtml) { int wide = BApplet.DEFAULT_WIDTH; int high = BApplet.DEFAULT_HEIGHT; //try { PatternMatcher matcher = new Perl5Matcher(); PatternCompiler compiler = new Perl5Compiler(); // this matches against any uses of the size() function, // whether they contain numbers of variables or whatever. // this way, no warning is shown if size() isn't actually // used in the applet, which is the case especially for // beginners that are cutting/pasting from the reference. String sizing = "[\\s\\;]size\\s*\\(\\s*(\\S+)\\s*,\\s*(\\S+)\\s*\\);"; Pattern pattern = compiler.compile(sizing); // adds a space at the beginning, in case size() is the very // first thing in the program (very common), since the regexp // needs to check for things in front of it. PatternMatcherInput input = new PatternMatcherInput(" " + code[0].program); if (matcher.contains(input, pattern)) { MatchResult result = matcher.getMatch(); try { wide = Integer.parseInt(result.group(1).toString()); high = Integer.parseInt(result.group(2).toString()); } catch (NumberFormatException e) { // found a reference to size, but it didn't // seem to contain numbers final String message = "The size of this applet could not automatically be\n" + "determined from your code. You'll have to edit the\n" + "HTML file to set the size of the applet."; PdeBase.showWarning("Could not find applet size", message, null); } } // else no size() command found // handle this in editor instead, rare or nonexistant //} catch (MalformedPatternException e) { //PdeBase.showWarning("Internal Problem", // "An internal error occurred while trying\n" + // "to export the sketch. Please report this.", e); //return false; //} StringBuffer sources = new StringBuffer(); for (int i = 0; i < codeCount; i++) { sources.append("<a href=\'" + code[i].file.getName() + "\">" + code[i].name + "</a> "); } File htmlOutputFile = new File(appletDir, "index.html"); FileOutputStream fos = new FileOutputStream(htmlOutputFile); PrintStream ps = new PrintStream(fos); // @@sketch@@, @@width@@, @@height@@, @@archive@@, @@source@@ InputStream is = PdeBase.getStream("applet.html"); BufferedReader reader = new BufferedReader(new InputStreamReader(is)); String line = null; while ((line = reader.readLine()) != null) { if (line.indexOf("@@") != -1) { StringBuffer sb = new StringBuffer(line); int index = 0; while ((index = sb.indexOf("@@sketch@@")) != -1) { sb.replace(index, index + "@@sketch@@".length(), name); } while ((index = sb.indexOf("@@source@@")) != -1) { sb.replace(index, index + "@@source@@".length(), sources.toString()); } while ((index = sb.indexOf("@@archive@@")) != -1) { sb.replace(index, index + "@@archive@@".length(), name + ".jar"); } while ((index = sb.indexOf("@@width@@")) != -1) { sb.replace(index, index + "@@width@@".length(), String.valueOf(wide)); } while ((index = sb.indexOf("@@height@@")) != -1) { sb.replace(index, index + "@@height@@".length(), String.valueOf(wide)); } line = sb.toString(); } ps.println(line); } reader.close(); ps.flush(); ps.close(); } // copy the source files to the target, since we like // to encourage people to share their code for (int i = 0; i < codeCount; i++) { try { PdeBase.copyFile(code[i].file, new File(appletDir, code[i].file.getName())); } catch (IOException e) { } } // create new .jar file FileOutputStream zipOutputFile = new FileOutputStream(new File(appletDir, name + ".jar")); ZipOutputStream zos = new ZipOutputStream(zipOutputFile); ZipEntry entry; // add the contents of the code folder to the jar // unpacks all jar files //File codeFolder = new File(folder, "code"); if (codeFolder.exists()) { String includes = PdeCompiler.contentsToClassPath(codeFolder); packClassPathIntoZipFile(includes, zos); } // add the appropriate bagel to the classpath String jdkVersion = PdePreferences.get("compiler.jdk_version"); String bagelJar = "lib/export11.jar"; // default if (jdkVersion.equals("1.3") || jdkVersion.equals("1.4")) { bagelJar = "lib/export13.jar"; } //if (jdkVersionStr.equals("1.3")) { bagelJar = "export13.jar" }; //if (jdkVersionStr.equals("1.4")) { bagelJar = "export14.jar" }; packClassPathIntoZipFile(bagelJar, zos); /* // add the contents of lib/export to the jar file // these are the jdk11-only bagel classes String exportDir = ("lib" + File.separator + "export" + File.separator); String bagelClasses[] = new File(exportDir).list(); for (int i = 0; i < bagelClasses.length; i++) { if (!bagelClasses[i].endsWith(".class")) continue; entry = new ZipEntry(bagelClasses[i]); zos.putNextEntry(entry); zos.write(PdeBase.grabFile(new File(exportDir + bagelClasses[i]))); zos.closeEntry(); } */ // TODO these two loops are insufficient. // should instead recursively add entire contents of build folder // the data folder will already be a subdirectory // and the classes may be buried in subfolders if a package name was used // files to include from data directory //if ((dataDir != null) && (dataDir.exists())) { if (dataFolder.exists()) { String dataFiles[] = dataFolder.list(); for (int i = 0; i < dataFiles.length; i++) { // don't export hidden files // skipping dot prefix removes all: . .. .DS_Store if (dataFiles[i].charAt(0) == '.') continue; entry = new ZipEntry(dataFiles[i]); zos.putNextEntry(entry); zos.write(PdeBase.grabFile(new File(dataFolder, dataFiles[i]))); zos.closeEntry(); } } // add the project's .class files to the jar // just grabs everything from the build directory // since there may be some inner classes // (add any .class files from the applet dir, then delete them) String classfiles[] = appletDir.list(); for (int i = 0; i < classfiles.length; i++) { if (classfiles[i].endsWith(".class")) { entry = new ZipEntry(classfiles[i]); zos.putNextEntry(entry); zos.write(PdeBase.grabFile(new File(appletDir, classfiles[i]))); zos.closeEntry(); } } // remove the .class files from the applet folder. if they're not // removed, the msjvm will complain about an illegal access error, // since the classes are outside the jar file. for (int i = 0; i < classfiles.length; i++) { if (classfiles[i].endsWith(".class")) { File deadguy = new File(appletDir, classfiles[i]); if (!deadguy.delete()) { PdeBase.showWarning("Could not delete", classfiles[i] + " could not \n" + "be deleted from the applet folder. \n" + "You'll need to remove it by hand.", null); } } } // close up the jar file zos.flush(); zos.close(); PdeBase.openFolder(appletDir); //} catch (Exception e) { //e.printStackTrace(); //} return true; }
8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/7f5a2857064f54f5ccec93f9588d51554f8d0820/PdeSketch.java/clean/app/PdeSketch.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 3359, 23696, 12, 6494, 1453, 4353, 13, 1216, 1185, 288, 565, 368, 812, 21853, 1621, 16, 514, 3359, 22900, 461, 16, 1387, 24905, 13, 288, 565, 368, 780, 5402, 273, 19691, 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, 282, 1071, 1250, 3359, 23696, 12, 6494, 1453, 4353, 13, 1216, 1185, 288, 565, 368, 812, 21853, 1621, 16, 514, 3359, 22900, 461, 16, 1387, 24905, 13, 288, 565, 368, 780, 5402, 273, 19691, 18, ...
protected void appendToIndexFile(File errorFile, Throwable t) throws IOException {
protected void appendToIndexFile(File errorFile, Throwable t) throws IOException {
protected void appendToIndexFile(File errorFile, Throwable t) throws IOException { File index = new File(directory, "index.html"); BufferedWriter out = new BufferedWriter(new FileWriter(index, true)); writeln(out, new MicroSecondDate()+" <a href="+'"'+errorFile.getName()+'"'+">"+t.getClass().getName()+"</a><br/>"); out.close(); }
52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/31ea5ced6a7560c0a16e053aed85edd01c369190/HTMLReporter.java/buggy/src/edu/sc/seis/fissuresUtil/exceptionHandler/HTMLReporter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 16022, 1016, 812, 12, 812, 555, 812, 16, 4206, 268, 13, 1216, 1860, 288, 3639, 1387, 770, 273, 394, 1387, 12, 5149, 16, 315, 1615, 18, 2620, 8863, 3639, 22490, 596, 273, 394,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16022, 1016, 812, 12, 812, 555, 812, 16, 4206, 268, 13, 1216, 1860, 288, 3639, 1387, 770, 273, 394, 1387, 12, 5149, 16, 315, 1615, 18, 2620, 8863, 3639, 22490, 596, 273, 394,...
return "success";
return "success"; } catch (CalFacadeException cfe) { if (CalFacadeException.duplicateGuid.equals(cfe.getMessage())) { form.getErr().emit("org.bedework.client.error.duplicate.guid"); return "duplicate"; } throw cfe; }
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } CalSvcI svci = form.fetchSvci(); EventInfo ei = findEvent(request, form); if (ei == null) { // Do nothing return "doNothing"; } /* Create an event to act as a reference to the targeted event and copy * the appropriate fields from the target */ BwEventProxy proxy = BwEventProxy.makeAnnotation(ei.getEvent(), ei.getEvent().getOwner()); BwCalendar cal = svci.getPreferredCalendar(); proxy.setOwner(svci.getUser()); svci.addEvent(cal, proxy, null); form.getMsg().emit("org.bedework.client.message.added.eventrefs", 1); BwGoToAction.gotoDateView(this, form, proxy.getDtstart().getDate().substring(0, 8), BedeworkDefs.dayView, debug); form.refreshIsNeeded(); return "success"; }
50848 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50848/95925f26afe3eed9b07ba8b5139e0f624cf14c2d/BwAddEventRefAction.java/buggy/calendar3/webclient/src/org/bedework/webclient/BwAddEventRefAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 741, 1803, 12, 2940, 18572, 590, 16, 7682, 605, 91, 1803, 1204, 646, 13, 1216, 4206, 288, 565, 309, 261, 687, 18, 588, 12978, 10756, 288, 1377, 327, 315, 2896, 23814, 14432, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 741, 1803, 12, 2940, 18572, 590, 16, 7682, 605, 91, 1803, 1204, 646, 13, 1216, 4206, 288, 565, 309, 261, 687, 18, 588, 12978, 10756, 288, 1377, 327, 315, 2896, 23814, 14432, ...
public static void registerVirtualNode(VirtualNode virtualNode, String registrationProtocol, boolean replacePreviousBinding) throws ProActiveException, AlreadyBoundException { if (!(virtualNode instanceof VirtualNodeImpl)) { throw new ProActiveException( "Cannot register such virtualNode since it results from a lookup!"); } if (registrationProtocol == null) { registrationProtocol = System.getProperty( "proactive.communication.protocol"); } String virtualnodeName = virtualNode.getName(); ProActiveRuntime part = RuntimeFactory.getProtocolSpecificRuntime(registrationProtocol); VirtualNode vn = part.getVirtualNode(virtualnodeName); if (vn == null) { throw new ProActiveException("VirtualNode " + virtualnodeName + " has not been yet activated or does not exist! Try to activate it first !"); } part.registerVirtualNode(UrlBuilder.appendVnSuffix(virtualnodeName), replacePreviousBinding); }
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/a5e5e535dec443ddf23a4fb2e4ab651cd70b575d/ProActive.java/buggy/src/org/objectweb/proactive/ProActive.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3845, 6459, 4861, 6466, 907, 12, 6466, 907, 12384, 907, 16, 780, 14170, 5752, 16, 6494, 2079, 8351, 5250, 13, 15069, 626, 3896, 503, 16, 9430, 3499, 503, 95, 430, 12, 5, 12, 12384, 907...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3845, 6459, 4861, 6466, 907, 12, 6466, 907, 12384, 907, 16, 780, 14170, 5752, 16, 6494, 2079, 8351, 5250, 13, 15069, 626, 3896, 503, 16, 9430, 3499, 503, 95, 430, 12, 5, 12, 12384, 907...
public Component getTreeCellRendererComponent(JTree tree,
Component getTreeCellRendererComponent(JTree tree,
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f03053e30bf23122f89e48e88064677b27fdd7c/TreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/TreeCellRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5435, 15867, 4020, 6747, 1841, 12, 46, 2471, 2151, 16, 1082, 202, 921, 460, 16, 1250, 3170, 16, 1250, 8406, 16, 1082, 202, 6494, 7839, 16, 509, 1027, 16, 1250, 711, 9233, 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, 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, 5435, 15867, 4020, 6747, 1841, 12, 46, 2471, 2151, 16, 1082, 202, 921, 460, 16, 1250, 3170, 16, 1250, 8406, 16, 1082, 202, 6494, 7839, 16, 509, 1027, 16, 1250, 711, 9233, 1769...
{ mBOOL(); if (failed) return ;
{ mEND(); if (failed) return ;
public void mTokens() throws RecognitionException { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:10: ( T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | T58 | T59 | T60 | T61 | T62 | T63 | T64 | T65 | T66 | T67 | T68 | T69 | T70 | T71 | T72 | T73 | RHS | WS | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | CURLY_CHUNK | LEFT_PAREN | RIGHT_PAREN | LEFT_SQUARE | RIGHT_SQUARE | MULTI_LINE_COMMENT | MISC ) int alt21=64; alt21 = dfa21.predict(input); switch (alt21) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:10: T26 { mT26(); if (failed) return ; } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:14: T27 { mT27(); if (failed) return ; } break; case 3 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:18: T28 { mT28(); if (failed) return ; } break; case 4 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:22: T29 { mT29(); if (failed) return ; } break; case 5 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:26: T30 { mT30(); if (failed) return ; } break; case 6 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:30: T31 { mT31(); if (failed) return ; } break; case 7 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:34: T32 { mT32(); if (failed) return ; } break; case 8 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:38: T33 { mT33(); if (failed) return ; } break; case 9 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:42: T34 { mT34(); if (failed) return ; } break; case 10 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:46: T35 { mT35(); if (failed) return ; } break; case 11 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:50: T36 { mT36(); if (failed) return ; } break; case 12 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:54: T37 { mT37(); if (failed) return ; } break; case 13 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:58: T38 { mT38(); if (failed) return ; } break; case 14 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:62: T39 { mT39(); if (failed) return ; } break; case 15 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:66: T40 { mT40(); if (failed) return ; } break; case 16 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:70: T41 { mT41(); if (failed) return ; } break; case 17 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:74: T42 { mT42(); if (failed) return ; } break; case 18 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:78: T43 { mT43(); if (failed) return ; } break; case 19 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:82: T44 { mT44(); if (failed) return ; } break; case 20 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:86: T45 { mT45(); if (failed) return ; } break; case 21 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:90: T46 { mT46(); if (failed) return ; } break; case 22 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:94: T47 { mT47(); if (failed) return ; } break; case 23 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:98: T48 { mT48(); if (failed) return ; } break; case 24 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:102: T49 { mT49(); if (failed) return ; } break; case 25 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:106: T50 { mT50(); if (failed) return ; } break; case 26 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:110: T51 { mT51(); if (failed) return ; } break; case 27 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:114: T52 { mT52(); if (failed) return ; } break; case 28 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:118: T53 { mT53(); if (failed) return ; } break; case 29 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:122: T54 { mT54(); if (failed) return ; } break; case 30 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:126: T55 { mT55(); if (failed) return ; } break; case 31 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:130: T56 { mT56(); if (failed) return ; } break; case 32 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:134: T57 { mT57(); if (failed) return ; } break; case 33 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:138: T58 { mT58(); if (failed) return ; } break; case 34 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:142: T59 { mT59(); if (failed) return ; } break; case 35 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:146: T60 { mT60(); if (failed) return ; } break; case 36 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:150: T61 { mT61(); if (failed) return ; } break; case 37 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:154: T62 { mT62(); if (failed) return ; } break; case 38 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:158: T63 { mT63(); if (failed) return ; } break; case 39 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:162: T64 { mT64(); if (failed) return ; } break; case 40 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:166: T65 { mT65(); if (failed) return ; } break; case 41 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:170: T66 { mT66(); if (failed) return ; } break; case 42 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:174: T67 { mT67(); if (failed) return ; } break; case 43 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:178: T68 { mT68(); if (failed) return ; } break; case 44 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:182: T69 { mT69(); if (failed) return ; } break; case 45 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:186: T70 { mT70(); if (failed) return ; } break; case 46 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:190: T71 { mT71(); if (failed) return ; } break; case 47 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:194: T72 { mT72(); if (failed) return ; } break; case 48 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:198: T73 { mT73(); if (failed) return ; } break; case 49 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:202: RHS { mRHS(); if (failed) return ; } break; case 50 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:206: WS { mWS(); if (failed) return ; } break; case 51 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:209: INT { mINT(); if (failed) return ; } break; case 52 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:213: FLOAT { mFLOAT(); if (failed) return ; } break; case 53 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:219: STRING { mSTRING(); if (failed) return ; } break; case 54 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:226: BOOL { mBOOL(); if (failed) return ; } break; case 55 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:231: ID { mID(); if (failed) return ; } break; case 56 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:234: SH_STYLE_SINGLE_LINE_COMMENT { mSH_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 57 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:263: C_STYLE_SINGLE_LINE_COMMENT { mC_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 58 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:291: CURLY_CHUNK { mCURLY_CHUNK(); if (failed) return ; } break; case 59 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:303: LEFT_PAREN { mLEFT_PAREN(); if (failed) return ; } break; case 60 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:314: RIGHT_PAREN { mRIGHT_PAREN(); if (failed) return ; } break; case 61 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:326: LEFT_SQUARE { mLEFT_SQUARE(); if (failed) return ; } break; case 62 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:338: RIGHT_SQUARE { mRIGHT_SQUARE(); if (failed) return ; } break; case 63 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:351: MULTI_LINE_COMMENT { mMULTI_LINE_COMMENT(); if (failed) return ; } break; case 64 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:370: MISC { mMISC(); if (failed) return ; } break; } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/63bc7036e62ae854cec463d59712c173f74e984c/DRLLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 5157, 1435, 1216, 9539, 288, 3639, 368, 463, 31027, 14915, 1695, 10649, 8464, 1695, 10649, 8464, 7482, 1695, 12215, 17, 9576, 1695, 4816, 1695, 5254, 1695, 4683, 1695, 3341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 312, 5157, 1435, 1216, 9539, 288, 3639, 368, 463, 31027, 14915, 1695, 10649, 8464, 1695, 10649, 8464, 7482, 1695, 12215, 17, 9576, 1695, 4816, 1695, 5254, 1695, 4683, 1695, 3341, ...
public void setDateHeader(final String name, final long l) { DateFormat df = DateFormat.getDateInstance(DateFormat.FULL); setHeader(name, df.format(new Date(l))); }
public void setDateHeader(final String name, final long l) { DateFormat df = DateFormat.getDateInstance(DateFormat.FULL); setHeader(name, df.format(new Date(l))); }
public void setDateHeader(final String name, final long l) { DateFormat df = DateFormat.getDateInstance(DateFormat.FULL); setHeader(name, df.format(new Date(l))); }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/9a4b9b48d844a9fd7e8882aa552fcfb06d718660/MockHttpServletResponse.java/clean/wicket/src/java/wicket/protocol/http/MockHttpServletResponse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 17604, 1864, 12, 6385, 514, 508, 16, 727, 1525, 328, 13, 288, 3639, 18371, 3013, 273, 18371, 18, 588, 1626, 1442, 12, 11878, 18, 18111, 1769, 3639, 10859, 12, 529, 16, 3013, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 17604, 1864, 12, 6385, 514, 508, 16, 727, 1525, 328, 13, 288, 3639, 18371, 3013, 273, 18371, 18, 588, 1626, 1442, 12, 11878, 18, 18111, 1769, 3639, 10859, 12, 529, 16, 3013, ...
public long getRoutingBackedOffUntil() { synchronized(routingBackoffSync) { return routingBackedOffUntil; }
public synchronized long getRoutingBackedOffUntil() { return routingBackedOffUntil;
public long getRoutingBackedOffUntil() { synchronized(routingBackoffSync) { return routingBackedOffUntil; } }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/3ac0497dbb550960741cb074f5ce371a7942ad8f/PeerNode.java/clean/src/freenet/node/PeerNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1525, 24740, 310, 2711, 329, 7210, 9716, 1435, 288, 3639, 3852, 12, 16529, 16757, 4047, 13, 288, 1082, 202, 2463, 7502, 2711, 329, 7210, 9716, 31, 202, 202, 97, 202, 97, 2, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1525, 24740, 310, 2711, 329, 7210, 9716, 1435, 288, 3639, 3852, 12, 16529, 16757, 4047, 13, 288, 1082, 202, 2463, 7502, 2711, 329, 7210, 9716, 31, 202, 202, 97, 202, 97, 2, -1...
} else if(patt.extGState != null) {
} else if (patt.extGState != null) {
public boolean equals(Object obj) { if(obj == null) { return false; } if(obj == this) { return true; } if(!(obj instanceof PDFPattern)) { return false; } PDFPattern patt = (PDFPattern)obj; if(patternType != patt.patternType) { return false; } if(paintType != patt.paintType) { return false; } if(tilingType != patt.tilingType) { return false; } if(xStep != patt.xStep) { return false; } if(yStep != patt.yStep) { return false; } if(bBox != null) { if(!bBox.equals(patt.bBox)) { return false; } } else if(patt.bBox != null) { return false; } if(bBox != null) { if(!bBox.equals(patt.bBox)) { return false; } } else if(patt.bBox != null) { return false; } if(xUID != null) { if(!xUID.equals(patt.xUID)) { return false; } } else if(patt.xUID != null) { return false; } if(extGState != null) { if(!extGState.equals(patt.extGState)) { return false; } } else if(patt.extGState != null) { return false; } if(matrix != null) { if(!matrix.equals(patt.matrix)) { return false; } } else if(patt.matrix != null) { return false; } if(resources != null) { if(!resources.equals(patt.resources)) { return false; } } else if(patt.resources != null) { return false; } if(shading != null) { if(!shading.equals(patt.shading)) { return false; } } else if(patt.shading != null) { return false; } if(patternDataStream != null) { if(!patternDataStream.equals(patt.patternDataStream)) { return false; } } else if(patt.patternDataStream != null) { return false; } return true; }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/392781f30969e4da0b510da16b96099a320089ba/PDFPattern.java/clean/src/org/apache/fop/pdf/PDFPattern.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 12, 921, 1081, 13, 288, 3639, 309, 12, 2603, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 12, 2603, 422, 333, 13, 288, 5411, 327, 638, 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, 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, 1606, 12, 921, 1081, 13, 288, 3639, 309, 12, 2603, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 12, 2603, 422, 333, 13, 288, 5411, 327, 638, 31, 3639, 289,...
if (innerUpdatableValue!=null) innerUpdatableValue.setValue(value);
if (innerUpdatableValue!=null) { innerUpdatableValue.setValue(value); }
public void setValue(Object value) { if (innerUpdatableValue!=null) innerUpdatableValue.setValue(value); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/9d125503204eb791fd5d7ba10d10960ac0bbffba/NestedUpdatableValue.java/clean/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/NestedUpdatableValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 5524, 12, 921, 460, 13, 288, 202, 202, 430, 261, 7872, 1211, 3404, 429, 620, 5, 33, 2011, 13, 1082, 282, 3443, 1211, 3404, 429, 620, 18, 542, 620, 12, 1132, 1769, 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, 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, 5524, 12, 921, 460, 13, 288, 202, 202, 430, 261, 7872, 1211, 3404, 429, 620, 5, 33, 2011, 13, 1082, 282, 3443, 1211, 3404, 429, 620, 18, 542, 620, 12, 1132, 1769, 202, ...
public void setOwner(Territory territory, PlayerID id) { if(territory.isWater()) return; String name = territory.getName(); String fileName = "countries/" + name.replace(' ', '_')+ ".png"; Image country = loadImage(fileName); BufferedImage newImage = new BufferedImage(country.getWidth(s_observer), country.getHeight(s_observer), BufferedImage.TYPE_INT_ARGB); newImage.getGraphics().drawImage(country, 0,0, s_observer); LookupOp filter = getLookupOp(id); filter.filter(newImage, newImage); Point p = (Point) m_topCorners.get(name); if(p == null) throw new IllegalStateException("No top corner could be found for:" + name); m_largeMapImage.getGraphics().drawImage(newImage, p.x, p.y, s_observer); if (!territory.isWater()) { TerritoryAttatchment ta = TerritoryAttatchment.get(territory); Graphics g = m_largeMapImage.getGraphics(); FontMetrics fm = g.getFontMetrics(); int x = p.x; int y = p.y; // if (ta.getProduction() > 0) // name += " (" + ta.getProduction() + ")"; x += country.getWidth(s_observer) >> 1; y += country.getHeight(s_observer) >> 1; x -= fm.stringWidth(name) >> 1; y += fm.getAscent() >> 1; g.drawString(name, x, y); if (ta.getProduction() > 0) { String prod = new Integer(ta.getProduction()).toString(); x = p.x + ((country.getWidth(s_observer) - fm.stringWidth(prod))>> 1); y += fm.getLeading() + fm.getAscent(); g.drawString(prod, x, y); } } int smallHeight = (int) (newImage.getHeight() / m_smallLargeRatio) + 3; int smallWidth = (int) (newImage.getWidth() / m_smallLargeRatio) + 3; Image small = newImage.getScaledInstance(smallWidth, smallHeight , Image.SCALE_FAST); Point smallPoint = new Point( (int)( p.x / m_smallLargeRatio), (int) (p.y / m_smallLargeRatio)); m_smallMapImage.getGraphics().drawImage(small, smallPoint.x, smallPoint.y, s_observer); }
8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/65dc97c8bd1d73da6a21d79d5ad468e6bb971a9b/MapImage.java/buggy/src/games/strategy/triplea/image/MapImage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 31309, 12, 56, 25313, 268, 25313, 16, 19185, 734, 612, 13, 202, 95, 202, 202, 430, 12, 88, 25313, 18, 291, 24064, 10756, 1082, 202, 2463, 31, 9506, 202, 780, 508, 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, 918, 31309, 12, 56, 25313, 268, 25313, 16, 19185, 734, 612, 13, 202, 95, 202, 202, 430, 12, 88, 25313, 18, 291, 24064, 10756, 1082, 202, 2463, 31, 9506, 202, 780, 508, 273, ...
}
} NavigationHistoryEntry e= createEntry(page, part, location);
private void addEntry(IEditorPart part, boolean markLocation) { if (ignoreEntries > 0 || part == null) return; INavigationLocation location = null; if(markLocation && part instanceof INavigationLocationProvider) location = ((INavigationLocationProvider)part).createNavigationLocation(); NavigationHistoryEntry e= createEntry(page, part, location); NavigationHistoryEntry current= getEntry(activeEntry); if (current != null && current.editorInfo.memento != null) { current.editorInfo.restoreEditor(); checkDuplicates(current.editorInfo); } if (current == null) { add(e); } else { if(e.mergeInto(current)) { disposeEntry(e); removeForwardEntries(); } else { add(e); } } printEntries("added entry"); //$NON-NLS-1$ updateActions();}
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/30fa537d8b22de3c203d919a2f112b7bc5bc1fc1/NavigationHistory.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/NavigationHistory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 527, 1622, 12, 45, 6946, 1988, 1087, 16, 1250, 2267, 2735, 13, 288, 202, 430, 261, 6185, 5400, 405, 374, 747, 1087, 422, 446, 13, 202, 202, 2463, 31, 202, 202, 706, 6417, 2735, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 918, 527, 1622, 12, 45, 6946, 1988, 1087, 16, 1250, 2267, 2735, 13, 288, 202, 430, 261, 6185, 5400, 405, 374, 747, 1087, 422, 446, 13, 202, 202, 2463, 31, 202, 202, 706, 6417, 2735, ...
if (controller == ANY_CONTROLLER) { for (int i=0;i<controllers.size();i++) { if (isControllerUp(i)) { return true; } return false; } }
public boolean isControllerUp(int controller) { if (controller >= getControllerCount()) { return false; } return ((Controller) controllers.get(controller)).getYAxisValue() < -0.5f; }
47738 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47738/007054e5d45d6f573a8202b570aaef64884b612d/Input.java/buggy/src/org/newdawn/slick/Input.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 309, 261, 5723, 422, 16743, 67, 6067, 25353, 13, 288, 364, 261, 474, 277, 33, 20, 31, 77, 32, 20171, 18, 1467, 5621, 77, 27245, 288, 309, 261, 291, 2933, 1211, 12, 77, 3719,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 309, 261, 5723, 422, 16743, 67, 6067, 25353, 13, 288, 364, 261, 474, 277, 33, 20, 31, 77, 32, 20171, 18, 1467, 5621, 77, 27245, 288, 309, 261, 291, 2933, 1211, 12, 77, 3719,...
assertEqual(result, expecting);
assertEquals(result, expecting);
public void testEmptyStringAndEmptyAnonTemplateAsParameterUsingAngleBracketLexer() throws Exception { String templates = "group test;" +newline+ "top() ::= <<<x(a=\"\", b={})\\>>>"+newline+ "x(a,b) ::= \"a=<a>, b=<b>\""+newline; ; StringTemplateGroup group = new StringTemplateGroup(new StringReader(templates)); StringTemplate a = group.getInstanceOf("top"); String expecting = "a=, b="; String result = a.toString(); assertEqual(result, expecting); }
52527 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52527/158b0f9c5220709dc9d801ee911d1605a906ccaf/TestStringTemplate.java/clean/src/org/antlr/stringtemplate/test/TestStringTemplate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1921, 780, 1876, 1921, 979, 265, 2283, 1463, 1662, 7736, 8467, 11450, 13356, 1435, 1216, 1185, 288, 202, 202, 780, 5539, 273, 9506, 202, 6, 1655, 1842, 4868, 397, 228...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1921, 780, 1876, 1921, 979, 265, 2283, 1463, 1662, 7736, 8467, 11450, 13356, 1435, 1216, 1185, 288, 202, 202, 780, 5539, 273, 9506, 202, 6, 1655, 1842, 4868, 397, 228...
if (isImage) {
if (isImageMediatype) {
public void end(String uri, String localname, String qName) throws SAXException { final ContentHandler contentHandler = handlerContext.getController().getOutput(); final String effectiveId = handlerContext.getEffectiveId(elementAttributes); final XFormsOutputControl xformsOutputControl = handlerContext.isGenerateTemplate() ? null : (XFormsOutputControl) containingDocument.getObjectById(pipelineContext, effectiveId); // The "control" is allowed to be null when xforms:output is in // xforms:label|xforms:hint|xforms:alert|xforms:help, because in that case currently we don't put the control in // the regular hierarchy of controls if (xformsOutputControl == null && !handlerContext.isGenerateTemplate()) return; // xforms:label handleLabelHintHelpAlert(effectiveId, "label", xformsOutputControl); final AttributesImpl newAttributes; final boolean isDateOrTime; final StringBuffer classes = getInitialClasses(localname, elementAttributes, xformsOutputControl); final String mediatypeValue = elementAttributes.getValue("mediatype"); final boolean isImage = mediatypeValue != null && mediatypeValue.startsWith("image/"); final boolean isHTML = (mediatypeValue != null && mediatypeValue.equals("text/html")) || XFormsConstants.XXFORMS_HTML_APPEARANCE_QNAME.equals(getAppearance(elementAttributes)); if (isHTML) { classes.append(" xforms-initially-hidden"); } if (!handlerContext.isGenerateTemplate()) { // Find classes to add isDateOrTime = isDateOrTime(xformsOutputControl.getType()); handleMIPClasses(classes, xformsOutputControl); newAttributes = getAttributes(elementAttributes, classes.toString(), effectiveId); } else { isDateOrTime = false; // Find classes to add newAttributes = getAttributes(elementAttributes, classes.toString(), effectiveId); } // Create xhtml:span or xhtml:div final String xhtmlPrefix = handlerContext.findXHTMLPrefix(); // For IE we need to generate a div here for IE, which doesn't support working with innterHTML on spans. final String enclosingElementLocalname = isHTML ? "div" : "span"; final String enclosingElementQName = XMLUtils.buildQName(xhtmlPrefix, enclosingElementLocalname); contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, enclosingElementLocalname, enclosingElementQName, newAttributes); if (!handlerContext.isGenerateTemplate()) { if (isImage) { // Case of image media type with URI final String imgQName = XMLUtils.buildQName(xhtmlPrefix, "img"); final AttributesImpl imgAttributes = new AttributesImpl(); // @src="..." imgAttributes.addAttribute("", "src", "src", ContentHandlerHelper.CDATA, xformsOutputControl.getValue()); // @f:url-norewrite="true" final String formattingPrefix; final boolean isNewPrefix; { final String existingFormattingPrefix = handlerContext.findFormattingPrefix(); if (existingFormattingPrefix == null || "".equals(existingFormattingPrefix)) { // No prefix is currently mapped formattingPrefix = handlerContext.findNewPrefix(); isNewPrefix = true; } else { formattingPrefix = existingFormattingPrefix; isNewPrefix = false; } imgAttributes.addAttribute(XMLConstants.OPS_FORMATTING_URI, "url-norewrite", XMLUtils.buildQName(formattingPrefix, "url-norewrite"), ContentHandlerHelper.CDATA, "true"); } if (isNewPrefix) contentHandler.startPrefixMapping(formattingPrefix, XMLConstants.OPS_FORMATTING_URI); contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, "img", imgQName, imgAttributes); contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "img", imgQName); if (isNewPrefix) contentHandler.endPrefixMapping(formattingPrefix); } else if (isDateOrTime) { // Display formatted value for dates final String displayValue = xformsOutputControl.getDisplayValueOrValue(); if (displayValue != null) contentHandler.characters(displayValue.toCharArray(), 0, displayValue.length()); } else { // Regular text case final String displayValue = xformsOutputControl.getDisplayValueOrValue(); if (displayValue != null) contentHandler.characters(displayValue.toCharArray(), 0, displayValue.length()); } } contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, enclosingElementLocalname, enclosingElementQName); // xforms:help handleLabelHintHelpAlert(effectiveId, "help", xformsOutputControl); // xforms:alert if (elementAttributes.getValue("value") == null) handleLabelHintHelpAlert(effectiveId, "alert", xformsOutputControl); // xforms:hint handleLabelHintHelpAlert(effectiveId, "hint", xformsOutputControl); }
10097 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10097/a10fad44989ac8a78ccfb7b575e76b4409cf8d68/XFormsOutputHandler.java/clean/src/java/org/orbeon/oxf/xforms/processor/handlers/XFormsOutputHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 679, 12, 780, 2003, 16, 514, 1191, 529, 16, 514, 22914, 13, 1216, 14366, 288, 3639, 727, 3697, 1503, 913, 1503, 273, 1838, 1042, 18, 588, 2933, 7675, 588, 1447, 5621, 3639, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 679, 12, 780, 2003, 16, 514, 1191, 529, 16, 514, 22914, 13, 1216, 14366, 288, 3639, 727, 3697, 1503, 913, 1503, 273, 1838, 1042, 18, 588, 2933, 7675, 588, 1447, 5621, 3639, 7...
}
}
public Avail getDisabledAvail() throws IOException,FileNotFoundException { Properties props = new Properties(); props.load(new FileInputStream(MapPropertiesFactory.mapPropertiesFile)); String disableAvailId = props.getProperty("avail.enable.false.id"); if(disableAvailId ==null){ throw new IllegalStateException("Required Default Status not found."); } Iterator ite = availsMap.values().iterator(); while (ite.hasNext()) { Avail av = (Avail) ite.next(); if (av.getId() == Integer.parseInt(disableAvailId)) return av; } return null; }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/069d0e7b3a96289b7c94aecc6c8a14fee3498895/MapPropertiesFactory.java/buggy/opennms-webapp/src/main/java/org/opennms/web/map/config/MapPropertiesFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8789, 671, 336, 8853, 3769, 671, 1435, 1216, 1860, 16, 812, 3990, 288, 3639, 6183, 3458, 273, 394, 6183, 5621, 3639, 3458, 18, 945, 12, 2704, 11907, 12, 863, 2297, 1733, 18, 1458, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8789, 671, 336, 8853, 3769, 671, 1435, 1216, 1860, 16, 812, 3990, 288, 3639, 6183, 3458, 273, 394, 6183, 5621, 3639, 3458, 18, 945, 12, 2704, 11907, 12, 863, 2297, 1733, 18, 1458, ...
if(log.isInfoEnabled()) log.info("[VIEW_CHANGE] removed " + mbr + " from fragmentation table");
if(log.isDebugEnabled()) log.debug("[VIEW_CHANGE] removed " + mbr + " from fragmentation table");
public void down(Event evt) { switch(evt.getType()) { case Event.MSG: Message msg=(Message)evt.getArg(); long size=msg.size(); if(size > frag_size) { if(log.isInfoEnabled()) log.info("message size is " + size + ", will fragment " + "(frag_size == " + frag_size + ")"); fragment(msg); // Fragment and pass down return; } break; case Event.VIEW_CHANGE: //don't do anything if this dude is sending out the view change //we are receiving a view change, //in here we check for the View view=(View)evt.getArg(); Vector new_mbrs=view.getMembers(), left_mbrs; Address mbr; left_mbrs=Util.determineLeftMembers(members, new_mbrs); members.clear(); members.addAll(new_mbrs); for(int i=0; i < left_mbrs.size(); i++) { mbr=(Address)left_mbrs.elementAt(i); //the new view doesn't contain the sender, he must have left, //hence we will clear all his fragmentation tables fragment_list.remove(mbr); if(log.isInfoEnabled()) log.info("[VIEW_CHANGE] removed " + mbr + " from fragmentation table"); } break; case Event.CONFIG: passDown(evt); if(log.isInfoEnabled()) log.info("received CONFIG event: " + evt.getArg()); handleConfigEvent((HashMap)evt.getArg()); return; } passDown(evt); // Pass on to the layer below us }
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/85b7a7c351493f88f1d6a3045b9cbd0b817f95cd/FRAG.java/clean/src/org/jgroups/protocols/FRAG.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2588, 12, 1133, 6324, 13, 288, 3639, 1620, 12, 73, 11734, 18, 588, 559, 10756, 288, 5411, 648, 2587, 18, 11210, 30, 7734, 2350, 1234, 28657, 1079, 13, 73, 11734, 18, 588, 411...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2588, 12, 1133, 6324, 13, 288, 3639, 1620, 12, 73, 11734, 18, 588, 559, 10756, 288, 5411, 648, 2587, 18, 11210, 30, 7734, 2350, 1234, 28657, 1079, 13, 73, 11734, 18, 588, 411...
public void testContextSensitiveNamedSet() { // For reference. runQueryCheckResult("SELECT {[Measures].[Unit Sales]} ON COLUMNS," + nl + "Order([Promotion Media].Children, [Measures].[Unit Sales], DESC) ON ROWS" + nl + "FROM [Sales]" + nl + "WHERE [Time].[1997]", "Axis #0:" + nl + "{[Time].[1997]}" + nl + "Axis #1:" + nl + "{[Measures].[Unit Sales]}" + nl + "Axis #2:" + nl + "{[Promotion Media].[All Media].[No Media]}" + nl + "{[Promotion Media].[All Media].[Daily Paper, Radio, TV]}" + nl + "{[Promotion Media].[All Media].[Daily Paper]}" + nl + "{[Promotion Media].[All Media].[Product Attachment]}" + nl + "{[Promotion Media].[All Media].[Daily Paper, Radio]}" + nl + "{[Promotion Media].[All Media].[Cash Register Handout]}" + nl + "{[Promotion Media].[All Media].[Sunday Paper, Radio]}" + nl + "{[Promotion Media].[All Media].[Street Handout]}" + nl + "{[Promotion Media].[All Media].[Sunday Paper]}" + nl + "{[Promotion Media].[All Media].[Bulk Mail]}" + nl + "{[Promotion Media].[All Media].[In-Store Coupon]}" + nl + "{[Promotion Media].[All Media].[TV]}" + nl + "{[Promotion Media].[All Media].[Sunday Paper, Radio, TV]}" + nl + "{[Promotion Media].[All Media].[Radio]}" + nl + "Row #0: 195,448" + nl + "Row #1: 9,513" + nl + "Row #2: 7,738" + nl + "Row #3: 7,544" + nl + "Row #4: 6,891" + nl + "Row #5: 6,697" + nl + "Row #6: 5,945" + nl + "Row #7: 5,753" + nl + "Row #8: 4,339" + nl + "Row #9: 4,320" + nl + "Row #10: 3,798" + nl + "Row #11: 3,607" + nl + "Row #12: 2,726" + nl + "Row #13: 2,454" + nl); // For reference. runQueryCheckResult("SELECT {[Measures].[Unit Sales]} ON COLUMNS," + nl + "Order([Promotion Media].Children, [Measures].[Unit Sales], DESC) ON ROWS" + nl + "FROM [Sales]" + nl + "WHERE [Time].[1997].[Q2]", "Axis #0:" + nl + "{[Time].[1997].[Q2]}" + nl + "Axis #1:" + nl + "{[Measures].[Unit Sales]}" + nl + "Axis #2:" + nl + "{[Promotion Media].[All Media].[No Media]}" + nl + "{[Promotion Media].[All Media].[Daily Paper, Radio, TV]}" + nl + "{[Promotion Media].[All Media].[Daily Paper, Radio]}" + nl + "{[Promotion Media].[All Media].[Sunday Paper, Radio]}" + nl + "{[Promotion Media].[All Media].[TV]}" + nl + "{[Promotion Media].[All Media].[Cash Register Handout]}" + nl + "{[Promotion Media].[All Media].[Sunday Paper, Radio, TV]}" + nl + "{[Promotion Media].[All Media].[Product Attachment]}" + nl + "{[Promotion Media].[All Media].[Sunday Paper]}" + nl + "{[Promotion Media].[All Media].[Bulk Mail]}" + nl + "{[Promotion Media].[All Media].[Daily Paper]}" + nl + "{[Promotion Media].[All Media].[Street Handout]}" + nl + "{[Promotion Media].[All Media].[Radio]}" + nl + "{[Promotion Media].[All Media].[In-Store Coupon]}" + nl + "Row #0: 46,582" + nl + "Row #1: 3,490" + nl + "Row #2: 2,704" + nl + "Row #3: 2,327" + nl + "Row #4: 1,344" + nl + "Row #5: 1,254" + nl + "Row #6: 1,108" + nl + "Row #7: 1,085" + nl + "Row #8: 784" + nl + "Row #9: 733" + nl + "Row #10: 651" + nl + "Row #11: 473" + nl + "Row #12: 40" + nl + "Row #13: 35" + nl); // The bottom medium in 1997 is Radio, with $2454 in sales. // The bottom medium in 1997.Q2 is In-Store Coupon, with $35 in sales. runQueryCheckResult( "WITH" + nl + " SET [Bottom Media] AS 'BottomCount([Promotion Media].children, 1, [Measures].[Store Sales])' " + nl + " MEMBER [Measures].[Store Sales for Bottom Media] AS 'Sum([Bottom Media], [Measures].[Store Sales])'" + nl + "SELECT {[Measures].[Store Sales for Bottom Media]} ON COLUMNS," + nl + " {[Time].[1997], [Time].[1997].[Q2]} ON ROWS" + nl + "FROM [Sales]", // MSAS gives different result for Q2 ($86.52) because it uses // the bottom product for the year (Radio) rather than for Q2 // ([In-Store Coupon]). MSAS is probably the correct behavior. "Axis #0:" + nl + "{}" + nl + "Axis #1:" + nl + "{[Measures].[Store Sales for Bottom Media]}" + nl + "Axis #2:" + nl + "{[Time].[1997]}" + nl + "{[Time].[1997].[Q2]}" + nl + "Row #0: 5,213.61" + nl + "Row #1: 83.96" + nl); runQueryCheckResult( "WITH" + nl + " SET [TopMedia] AS 'TopCount([Promotion Media].children, 3, [Measures].[Store Sales])' " + nl + " MEMBER [Measures].[California sales for Top Media] AS 'Sum([TopMedia], [Measures].[Store Sales])'" + nl + "SELECT " + nl + " CrossJoin({[Store], [Store].[USA].[CA]}," + nl + " {[Time].[1997].[Q1], [Time].[1997].[Q2]}) ON COLUMNS," + nl + " {[Product], [Product].children} ON ROWS" + nl + "FROM [Sales]" + nl + "WHERE [Measures].[California sales for Top Media]", // MSAS output differs, because it evaluates named sets with // only the context in the slicer. "Axis #0:" + nl + "{[Measures].[California sales for Top Media]}" + nl + "Axis #1:" + nl + "{[Store].[All Stores], [Time].[1997].[Q1]}" + nl + "{[Store].[All Stores], [Time].[1997].[Q2]}" + nl + "{[Store].[All Stores].[USA].[CA], [Time].[1997].[Q1]}" + nl + "{[Store].[All Stores].[USA].[CA], [Time].[1997].[Q2]}" + nl + "Axis #2:" + nl + "{[Product].[All Products]}" + nl + "{[Product].[All Products].[Drink]}" + nl + "{[Product].[All Products].[Food]}" + nl + "{[Product].[All Products].[Non-Consumable]}" + nl + "Row #0: 111,874.50" + nl + "Row #0: 111,876.59" + nl + "Row #0: 29,482.53" + nl + "Row #0: 33,976.80" + nl + "Row #1: 9,182.00" + nl + "Row #1: 10,018.55" + nl + "Row #1: 2,721.23" + nl + "Row #1: 2,924.44" + nl + "Row #2: 81,218.33" + nl + "Row #2: 80,273.35" + nl + "Row #2: 21,165.50" + nl + "Row #2: 24,642.38" + nl + "Row #3: 21,822.34" + nl + "Row #3: 21,584.69" + nl + "Row #3: 5,595.80" + nl + "Row #3: 6,409.98" + nl); }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/04e646f31dd5b7942980cee630c94f49bdab0e26/NamedSetTest.java/buggy/testsrc/main/mondrian/test/NamedSetTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 1042, 14220, 7604, 694, 1435, 288, 565, 368, 2457, 2114, 18, 565, 1086, 1138, 1564, 1253, 2932, 4803, 288, 63, 23177, 1823, 8009, 63, 2802, 25996, 18322, 6229, 5597, 19639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1042, 14220, 7604, 694, 1435, 288, 565, 368, 2457, 2114, 18, 565, 1086, 1138, 1564, 1253, 2932, 4803, 288, 63, 23177, 1823, 8009, 63, 2802, 25996, 18322, 6229, 5597, 19639,...
protected void notifyFolderListeners(int type, Folder folder) {
protected void notifyFolderListeners(int type) {
protected void notifyFolderListeners(int type, Folder folder) { Iterator it = _folderListeners.iterator(); FolderEvent event = new FolderEvent(this, folder, type); while (it.hasNext()) { FolderListener listener = (FolderListener) it.next(); event.dispatch(listener); } }
6764 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6764/6cb08879b7bab85bd63c251e85695eefb6285f45/Folder.java/clean/javamail/src/java/javax/mail/Folder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 5066, 3899, 5583, 12, 474, 618, 13, 288, 3639, 4498, 518, 273, 389, 5609, 5583, 18, 9838, 5621, 3639, 12623, 1133, 871, 273, 394, 12623, 1133, 12, 2211, 16, 3009, 16, 618, 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, 377, 4750, 918, 5066, 3899, 5583, 12, 474, 618, 13, 288, 3639, 4498, 518, 273, 389, 5609, 5583, 18, 9838, 5621, 3639, 12623, 1133, 871, 273, 394, 12623, 1133, 12, 2211, 16, 3009, 16, 618, 17...
LayoutPackageImpl theLayoutPackage = (LayoutPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof LayoutPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new LayoutPackageImpl());
LayoutPackageImpl theLayoutPackage = (LayoutPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof LayoutPackageImpl ? EPackage.Registry.INSTANCE .getEPackage(eNS_URI) : new LayoutPackageImpl());
public static LayoutPackage init() { if (isInited) return (LayoutPackage)EPackage.Registry.INSTANCE.getEPackage(LayoutPackage.eNS_URI); // Obtain or create and register package LayoutPackageImpl theLayoutPackage = (LayoutPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof LayoutPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new LayoutPackageImpl()); isInited = true; // Initialize simple dependencies XMLTypePackageImpl.init(); // Obtain or create and register interdependencies AttributePackageImpl theAttributePackage = (AttributePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AttributePackage.eNS_URI) instanceof AttributePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AttributePackage.eNS_URI) : AttributePackageImpl.eINSTANCE); ComponentPackageImpl theComponentPackage = (ComponentPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ComponentPackage.eNS_URI) instanceof ComponentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ComponentPackage.eNS_URI) : ComponentPackageImpl.eINSTANCE); TypePackageImpl theTypePackage = (TypePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TypePackage.eNS_URI) instanceof TypePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TypePackage.eNS_URI) : TypePackageImpl.eINSTANCE); DataPackageImpl theDataPackage = (DataPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DataPackage.eNS_URI) instanceof DataPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DataPackage.eNS_URI) : DataPackageImpl.eINSTANCE); ModelPackageImpl theModelPackage = (ModelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI) instanceof ModelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI) : ModelPackageImpl.eINSTANCE); // Create package meta-data objects theLayoutPackage.createPackageContents(); theAttributePackage.createPackageContents(); theComponentPackage.createPackageContents(); theTypePackage.createPackageContents(); theDataPackage.createPackageContents(); theModelPackage.createPackageContents(); // Initialize created meta-data theLayoutPackage.initializePackageContents(); theAttributePackage.initializePackageContents(); theComponentPackage.initializePackageContents(); theTypePackage.initializePackageContents(); theDataPackage.initializePackageContents(); theModelPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theLayoutPackage.freeze(); return theLayoutPackage; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/LayoutPackageImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/impl/LayoutPackageImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 9995, 2261, 1208, 1435, 565, 288, 3639, 309, 261, 291, 2570, 329, 13, 327, 261, 3744, 2261, 13, 41, 2261, 18, 4243, 18, 13341, 18, 588, 41, 2261, 12, 3744, 2261, 18, 73, 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, 760, 9995, 2261, 1208, 1435, 565, 288, 3639, 309, 261, 291, 2570, 329, 13, 327, 261, 3744, 2261, 13, 41, 2261, 18, 4243, 18, 13341, 18, 588, 41, 2261, 12, 3744, 2261, 18, 73, 31...
public Object[] getProposals() { return this.proposals;
public IContentProposal [] getProposals(String contents, int position) { if (contentProposals == null) { contentProposals = new IContentProposal[proposals.length]; for (int i=0; i<proposals.length; i++) { final String proposal = proposals[i]; contentProposals[i] = new IContentProposal() { public String getContent() { return proposal; } public String getDescription() { return null; } public String getLabel() { return null; } public int getCursorPosition() { return proposal.length(); } }; } } return contentProposals;
public Object[] getProposals() { return this.proposals; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/54f5816382677a87ac1d149868af2370808e4f06/SimpleContentProposalProvider.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/SimpleContentProposalProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 8526, 3570, 22536, 1435, 288, 202, 202, 2463, 333, 18, 685, 22536, 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, 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, 225, 202, 482, 1033, 8526, 3570, 22536, 1435, 288, 202, 202, 2463, 333, 18, 685, 22536, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
taskHistoryTreeLabelProvider.setCategoryBackgroundColor(themeManager.getCurrentTheme().getColorRegistry().get(TaskListColorsAndFonts.THEME_COLOR_ID_TASKLIST_CATEGORY));
taskHistoryTreeLabelProvider.setCategoryBackgroundColor(themeManager.getCurrentTheme() .getColorRegistry().get(TaskListColorsAndFonts.THEME_COLOR_ID_TASKLIST_CATEGORY));
public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(IThemeManager.CHANGE_CURRENT_THEME) || event.getProperty().equals(TaskListColorsAndFonts.THEME_COLOR_ID_TASKLIST_CATEGORY)) { taskHistoryTreeLabelProvider.setCategoryBackgroundColor(themeManager.getCurrentTheme().getColorRegistry().get(TaskListColorsAndFonts.THEME_COLOR_ID_TASKLIST_CATEGORY)); refresh(); } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/57b925d86fd44a7384ad1e5ec70ce829303127f5/TaskActivityView.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskActivityView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1272, 3043, 12, 1396, 20930, 871, 13, 288, 1082, 202, 430, 261, 2575, 18, 588, 1396, 7675, 14963, 12, 1285, 76, 4698, 1318, 18, 14473, 67, 15487, 67, 24644, 958, 13, 686...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1272, 3043, 12, 1396, 20930, 871, 13, 288, 1082, 202, 430, 261, 2575, 18, 588, 1396, 7675, 14963, 12, 1285, 76, 4698, 1318, 18, 14473, 67, 15487, 67, 24644, 958, 13, 686...
if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && b.isEnabled() && (b.getBackground() instanceof UIResource)) updateWidthGradient(g, b, b.getParent()); else super.update(g, c);
if ((b.getBackground() instanceof UIResource) && b.isContentAreaFilled() && b.isEnabled()) { ButtonModel m = b.getModel(); String uiKey = "Button.gradient"; if (! isToolbarButton(b)) { if (! m.isArmed() && ! m.isPressed() && isDrawingGradient(uiKey)) { MetalUtils.paintGradient(g, 0, 0, b.getWidth(), b.getHeight(), SwingConstants.VERTICAL, uiKey); paint(g, c); return; } } else if (m.isRollover() && isDrawingGradient(uiKey)) { MetalUtils.paintGradient(g, 0, 0, b.getWidth(), b.getHeight(), SwingConstants.VERTICAL, uiKey); paint(g, c); return; } } super.update(g, c);
public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && b.isEnabled() && (b.getBackground() instanceof UIResource)) updateWidthGradient(g, b, b.getParent()); else super.update(g, c); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/485023bfad3bd45acdb1b2e0f53aad54af5e98af/MetalButtonUI.java/clean/javax/swing/plaf/metal/MetalButtonUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1089, 12, 17558, 314, 16, 29058, 276, 13, 225, 288, 565, 4115, 3616, 324, 273, 261, 7469, 3616, 13, 276, 31, 565, 309, 261, 70, 18, 291, 1350, 5484, 29754, 1435, 3639, 597, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 12, 17558, 314, 16, 29058, 276, 13, 225, 288, 565, 4115, 3616, 324, 273, 261, 7469, 3616, 13, 276, 31, 565, 309, 261, 70, 18, 291, 1350, 5484, 29754, 1435, 3639, 597, ...
if( i < array.length ){ System.arraycopy( array, 0, array, 1, array.length - i ); array[0] = obj; } else {
else {
public static Object[] prepend(Class c, Object[] array, Object obj) { if( obj == null ) return array; if( array == null || array.length == 0){ array = (Object[]) Array.newInstance( c, DEFAULT_LENGTH ); array[0] = obj; return array; } int i = 0; for( ; i < array.length; i++ ){ if( array[i] == null ){ array[i] = obj; return array; } } if( i < array.length ){ System.arraycopy( array, 0, array, 1, array.length - i ); array[0] = obj; } else { Object [] temp = (Object[]) Array.newInstance( c, array.length * 2 ); System.arraycopy( array, 0, temp, 1, array.length ); temp[0] = obj; array = temp; } return array; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/6ac289f8203885031a79a3324dc4b14f52460aef/ArrayUtil.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/util/ArrayUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1033, 8526, 8254, 12, 797, 276, 16, 1033, 8526, 526, 16, 1033, 1081, 13, 288, 202, 202, 430, 12, 1081, 422, 446, 262, 377, 202, 202, 2463, 526, 31, 3639, 309, 12, 526, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 8526, 8254, 12, 797, 276, 16, 1033, 8526, 526, 16, 1033, 1081, 13, 288, 202, 202, 430, 12, 1081, 422, 446, 262, 377, 202, 202, 2463, 526, 31, 3639, 309, 12, 526, ...
State state2 = this.process.addState( "state.1",
State state1 = this.process.addState( "state.1",
public void testAddState_Duplicate() throws Exception { try { State state2 = this.process.addState( "state.1", "state one" ); fail( "Should have thrown DuplicateStateException" ); } catch (DuplicateStateException e) { // expected and correct } }
4520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4520/241b689c021c6a6b32b0bdbc6386a96ae685fa13/ProcessTest.java/clean/blissed/src/java/test/com/werken/blissed/ProcessTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 986, 1119, 67, 11826, 1435, 1216, 1185, 565, 288, 3639, 775, 3639, 288, 5411, 3287, 919, 21, 273, 333, 18, 2567, 18, 1289, 1119, 12, 315, 2019, 18, 21, 3113, 4766, 5375...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 986, 1119, 67, 11826, 1435, 1216, 1185, 565, 288, 3639, 775, 3639, 288, 5411, 3287, 919, 21, 273, 333, 18, 2567, 18, 1289, 1119, 12, 315, 2019, 18, 21, 3113, 4766, 5375...
Set compositeSenoneSet = new HashSet();
Set<Senone> compositeSenoneSet = new HashSet<Senone>();
public SenoneSequence getCompositeSenoneSequence(Unit unit, HMMPosition position) { Context context = unit.getContext(); SenoneSequence compositeSenoneSequence = null; compositeSenoneSequence = (SenoneSequence) compositeSenoneSequenceCache.get(unit.toString()); if (logger.isLoggable(Level.FINE)) { logger.fine("getCompositeSenoneSequence: " + unit.toString() + ((compositeSenoneSequence != null) ? "Cached" : "")); } if (compositeSenoneSequence != null) { return compositeSenoneSequence; } // Iterate through all HMMs looking for // a) An hmm with a unit that has the proper base // b) matches the non-null context List senoneSequenceList = new ArrayList(); // collect all senone sequences that match the pattern for (Iterator i = getHMMIterator(); i.hasNext(); ) { SenoneHMM hmm = (SenoneHMM) i.next(); if (hmm.getPosition() == position) { Unit hmmUnit = hmm.getUnit(); if (hmmUnit.isPartialMatch(unit.getName(), context)) { if (logger.isLoggable(Level.FINE)) { logger.fine("collected: " + hmm.getUnit().toString()); } senoneSequenceList.add(hmm.getSenoneSequence()); } } } // couldn't find any matches, so at least include the CI unit if (senoneSequenceList.size() == 0) { Unit ciUnit = unitManager.getUnit(unit.getName(), unit.isFiller()); SenoneHMM baseHMM = lookupHMM(ciUnit, HMMPosition.UNDEFINED); senoneSequenceList.add(baseHMM.getSenoneSequence()); } // Add this point we have all of the senone sequences that // match the base/context pattern collected into the list. // Next we build a CompositeSenone consisting of all of the // senones in each position of the list. // First find the longest senone sequence int longestSequence = 0; for (int i = 0; i < senoneSequenceList.size(); i++) { SenoneSequence ss = (SenoneSequence) senoneSequenceList.get(i); if (ss.getSenones().length > longestSequence) { longestSequence = ss.getSenones().length; } } // now collect all of the senones at each position into // arrays so we can create CompositeSenones from them // QUESTION: is is possible to have different size senone // sequences. For now lets assume the worst case. List compositeSenones = new ArrayList(); float logWeight = 0.0f; for (int i = 0; i < longestSequence; i++) { Set compositeSenoneSet = new HashSet(); for (int j = 0; j < senoneSequenceList.size(); j++) { SenoneSequence senoneSequence = (SenoneSequence) senoneSequenceList.get(j); if (i < senoneSequence.getSenones().length) { Senone senone = senoneSequence.getSenones()[i]; compositeSenoneSet.add(senone); } } compositeSenones.add(CompositeSenone.create( compositeSenoneSet, logWeight)); } compositeSenoneSequence = SenoneSequence.create(compositeSenones); compositeSenoneSequenceCache.put(unit.toString(), compositeSenoneSequence); if (logger.isLoggable(Level.FINE)) { logger.fine(unit.toString() + " consists of " + compositeSenones.size() + " composite senones"); if (logger.isLoggable(Level.FINEST)) { compositeSenoneSequence.dump("am"); } } return compositeSenoneSequence; }
48839 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48839/3ce9c1d085d2ee5c6670ae82a1d0258a1e0f3582/TiedStateAcousticModel.java/clean/sphinx4/src/sphinx4/edu/cmu/sphinx/linguist/acoustic/tiedstate/TiedStateAcousticModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 1071, 348, 275, 476, 4021, 336, 9400, 55, 275, 476, 4021, 12, 2802, 2836, 16, 2398, 670, 8206, 2555, 1754, 13, 288, 202, 1772, 819, 273, 2836, 18, 29120, 5621, 202, 348, 275, 476, 4021...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1377, 1071, 348, 275, 476, 4021, 336, 9400, 55, 275, 476, 4021, 12, 2802, 2836, 16, 2398, 670, 8206, 2555, 1754, 13, 288, 202, 1772, 819, 273, 2836, 18, 29120, 5621, 202, 348, 275, 476, 4021...
ThisValueFrame frame = getFrame(handle, basicBlock);
ValueNumberFrame frame = getFrame(handle, basicBlock);
public void transferInstruction(InstructionHandle handle, BasicBlock basicBlock, LockCount fact) throws DataflowAnalysisException { Instruction ins = handle.getInstruction(); // Optimization: don't even bother with instructions // other than MONITORENTER and MONITOREXIT if (!(ins instanceof MONITORENTER || ins instanceof MONITOREXIT)) return; // Determine where the "this" reference values are in the frame. // (Note that null is returned if we are analyzing a static method.) ThisValueFrame frame = getFrame(handle, basicBlock); // Get the lock count delta for the instruction int delta = getDelta(ins, frame); int count = fact.getCount() + delta; if (count < 0) throw new DataflowAnalysisException("lock count going negative! " + ins); fact.setCount(count); }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/332385cd5928e7e2a4830ebfaf938f34e6f2c5c2/LockCountAnalysis.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/LockCountAnalysis.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7412, 11983, 12, 11983, 3259, 1640, 16, 7651, 1768, 5337, 1768, 16, 3488, 1380, 5410, 13, 1216, 1910, 2426, 9418, 503, 288, 202, 202, 11983, 2763, 273, 1640, 18, 588, 11983...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7412, 11983, 12, 11983, 3259, 1640, 16, 7651, 1768, 5337, 1768, 16, 3488, 1380, 5410, 13, 1216, 1910, 2426, 9418, 503, 288, 202, 202, 11983, 2763, 273, 1640, 18, 588, 11983...
_t = __t476;
_t = __t477;
public final void defineframestate(AST _t) throws RecognitionException { AST defineframestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST def = null; AST id = null; AST __t463 = _t; def = _t==ASTNULL ? null :(AST)_t; match(_t,DEFINE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NEW: case SHARED: { def_shared(_t); _t = _retTree; break; } case FRAME: case PRIVATE: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRIVATE: { AST tmp1077_AST_in = (AST)_t; match(_t,PRIVATE); _t = _t.getNextSibling(); break; } case FRAME: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1078_AST_in = (AST)_t; match(_t,FRAME); _t = _t.getNextSibling(); id = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { action.frameDef(def, id); } { _loop467: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { form_item(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop467; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case HEADER: { AST __t469 = _t; AST tmp1079_AST_in = (AST)_t; match(_t,HEADER); _t = _t.getFirstChild(); { int _cnt471=0; _loop471: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { display_item(_t); _t = _retTree; } else { if ( _cnt471>=1 ) { break _loop471; } else {throw new NoViableAltException(_t);} } _cnt471++; } while (true); } _t = __t469; _t = _t.getNextSibling(); break; } case BACKGROUND: { AST __t472 = _t; AST tmp1080_AST_in = (AST)_t; match(_t,BACKGROUND); _t = _t.getFirstChild(); { int _cnt474=0; _loop474: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { display_item(_t); _t = _retTree; } else { if ( _cnt474>=1 ) { break _loop474; } else {throw new NoViableAltException(_t);} } _cnt474++; } while (true); } _t = __t472; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case EXCEPT: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t476 = _t; AST tmp1081_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop478: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld1(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop478; } } while (true); } _t = __t476; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WITH: { framephrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.frameStatementEnd(); } _t = __t463; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 4426, 74, 1940, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 4426, 74, 1940, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 4426, 74, 1940, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 4426, 74, 1940, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, ...
public org.quickfix.field.LegProduct getLegProduct() throws FieldNotFound { org.quickfix.field.LegProduct value = new org.quickfix.field.LegProduct();
public quickfix.field.LegProduct getLegProduct() throws FieldNotFound { quickfix.field.LegProduct value = new quickfix.field.LegProduct();
public org.quickfix.field.LegProduct getLegProduct() throws FieldNotFound { org.quickfix.field.LegProduct value = new org.quickfix.field.LegProduct(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/PositionMaintenanceRequest.java/buggy/src/java/src/quickfix/fix44/PositionMaintenanceRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4133, 336, 8329, 4133, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4133, 460, 273, 394, 2358, 18, 19525, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4133, 336, 8329, 4133, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4133, 460, 273, 394, 2358, 18, 19525, ...
return source.getAdapter(NoteEditPart.class) != null || target.getAdapter(NoteEditPart.class) != null ? getConnectorTypes() : Collections.EMPTY_LIST;
if (source.getAdapter(NoteEditPart.class) != null) { INotableEditPart noteable = (INotableEditPart) target .getAdapter(INotableEditPart.class); if (noteable != null && noteable.canAttachNote()) { return getConnectorTypes(); } } else if (target.getAdapter(NoteEditPart.class) != null) { INotableEditPart noteable = (INotableEditPart) source .getAdapter(INotableEditPart.class); if (noteable != null && noteable.canAttachNote()) { return getConnectorTypes(); } } return Collections.EMPTY_LIST;
public List getRelTypesOnSourceAndTarget(IAdaptable source, IAdaptable target) { return source.getAdapter(NoteEditPart.class) != null || target.getAdapter(NoteEditPart.class) != null ? getConnectorTypes() : Collections.EMPTY_LIST; }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/2a87663872986e05466f2a6444f75fe9f3b78283/DiagramModelingAssistantProvider.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui.providers/src/org/eclipse/gmf/runtime/diagram/ui/providers/internal/DiagramModelingAssistantProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 336, 1971, 2016, 1398, 1830, 1876, 2326, 12, 45, 13716, 429, 1084, 16, 1082, 202, 45, 13716, 429, 1018, 13, 288, 9506, 202, 2463, 1084, 18, 588, 4216, 12, 8067, 4666, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 336, 1971, 2016, 1398, 1830, 1876, 2326, 12, 45, 13716, 429, 1084, 16, 1082, 202, 45, 13716, 429, 1018, 13, 288, 9506, 202, 2463, 1084, 18, 588, 4216, 12, 8067, 4666, 198...
synchronized(getImplLock()) { getImpl().extendInvitation(extendTo); }
synchronized (getImplLock()) { getImpl().extendInvitation(extendTo); }
public void extendInvitation(final EMail extendTo) { synchronized(getImplLock()) { getImpl().extendInvitation(extendTo); } }
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/b0c359e8d5f8463c94b80f6fa24548691d18566b/InternalSessionModel.java/buggy/client-model/src/main/java/com/thinkparity/ophelia/model/session/InternalSessionModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2133, 19896, 12, 6385, 512, 6759, 2133, 774, 13, 288, 3639, 3852, 261, 588, 2828, 2531, 10756, 288, 336, 2828, 7675, 14313, 19896, 12, 14313, 774, 1769, 289, 565, 289, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 2133, 19896, 12, 6385, 512, 6759, 2133, 774, 13, 288, 3639, 3852, 261, 588, 2828, 2531, 10756, 288, 336, 2828, 7675, 14313, 19896, 12, 14313, 774, 1769, 289, 565, 289, 2, -100,...
IProblemBinding blah = (IProblemBinding) col.getName(0).resolveBinding();
ICPPClassType blah = (ICPPClassType) col.getName(0).resolveBinding();
public void testBug56516() throws Exception { IASTTranslationUnit tu = parse( "typedef struct blah sb;"); //$NON-NLS-1$ CPPNameCollector col = new CPPNameCollector(); CPPVisitor.visitTranslationUnit( tu, col ); assertEquals( col.size(), 2 ); IProblemBinding blah = (IProblemBinding) col.getName(0).resolveBinding(); ITypedef sb = (ITypedef) col.getName(1).resolveBinding(); assertSame( sb.getType(), blah ); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/ec6276d5ddefd30b4dbabf01a8ec9d3407ce53c1/CompleteParser2Tests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/CompleteParser2Tests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 19865, 4313, 25, 2313, 1435, 1216, 1185, 202, 95, 202, 202, 45, 9053, 6717, 2802, 28325, 273, 1109, 12, 315, 723, 536, 1958, 2811, 9795, 2393, 4868, 1769, 4329, 3993,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19865, 4313, 25, 2313, 1435, 1216, 1185, 202, 95, 202, 202, 45, 9053, 6717, 2802, 28325, 273, 1109, 12, 315, 723, 536, 1958, 2811, 9795, 2393, 4868, 1769, 4329, 3993,...
} else { IStatus locationStatus = existingProject.getWorkspace() .validateProjectLocationURI(existingProject, newPath); if (!locationStatus.isOK()) { return locationStatus.getMessage(); }
if (!locationStatus.isOK()) { return locationStatus.getMessage(); } if (existingProject != null) {
public String checkValidLocation() { if (isDefault()) { return null; } String locationFieldContents = locationPathField.getText(); if (locationFieldContents.length() == 0) { return (IDEWorkbenchMessages.WizardNewProjectCreationPage_projectLocationEmpty); } URI newPath = getProjectLocationURI(); if (newPath == null) { return IDEWorkbenchMessages.ProjectLocationSelectionDialog_locationError; } if (existingProject == null) { IPath projectPath = new Path(locationFieldContents); if (Platform.getLocation().isPrefixOf(projectPath)) { return IDEWorkbenchMessages.WizardNewProjectCreationPage_defaultLocationError; } } else { IStatus locationStatus = existingProject.getWorkspace() .validateProjectLocationURI(existingProject, newPath); if (!locationStatus.isOK()) { return locationStatus.getMessage(); } URI projectPath = existingProject.getLocationURI(); if (projectPath != null && URIUtil.equals(projectPath, newPath)) { return IDEWorkbenchMessages.ProjectLocationSelectionDialog_locationError; } } return null; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/46c75528e9c8343690cf18a0f566f88a14cafe27/ProjectContentsLocationArea.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ProjectContentsLocationArea.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 29969, 2735, 1435, 288, 202, 202, 430, 261, 291, 1868, 10756, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, 780, 2117, 974, 6323, 273, 2117, 743, 974, 18, 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, 225, 202, 482, 514, 29969, 2735, 1435, 288, 202, 202, 430, 261, 291, 1868, 10756, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, 780, 2117, 974, 6323, 273, 2117, 743, 974, 18, 588, ...
return "assignable-from(" + myType + ")";
return "assignable-from(" + (myType != null ? myType : myClassName) + ")";
public String toString(){ return "assignable-from(" + myType + ")"; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/e0e53b60df991e657cdb3f509f498b265bbb9884/AssignableFromFilter.java/clean/source/com/intellij/psi/filters/types/AssignableFromFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1762, 1435, 95, 565, 327, 315, 6145, 429, 17, 2080, 2932, 397, 261, 4811, 559, 480, 446, 692, 3399, 559, 294, 3399, 3834, 13, 397, 7310, 31, 225, 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, 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, 282, 1071, 514, 1762, 1435, 95, 565, 327, 315, 6145, 429, 17, 2080, 2932, 397, 261, 4811, 559, 480, 446, 692, 3399, 559, 294, 3399, 3834, 13, 397, 7310, 31, 225, 289, 2, -100, -100, -100, ...
System.err.println("AJP13 SSL SECURE "+secure);
public void parsedSslSecure(boolean secure) throws IOException { System.err.println("AJP13 SSL SECURE "+secure); _sslSecure=secure; }
13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/2b5e8737f3577d829f822e585435bfe3d7f6cd29/Ajp13Connection.java/clean/trunk/extras/ajp/src/main/java/org/mortbay/jetty/ajp/Ajp13Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 2707, 15840, 12834, 12, 6494, 8177, 13, 1216, 1860, 3639, 288, 8227, 389, 8157, 12834, 33, 8869, 31, 3639, 289, 2, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 2707, 15840, 12834, 12, 6494, 8177, 13, 1216, 1860, 3639, 288, 8227, 389, 8157, 12834, 33, 8869, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
out.append("r\n");
out.append(NEWLINE);
private void writeElementComment(StringBuffer out, Element ee, int common) { if (ee.comment != null) { indent(common, out); out.append("<!--"); out.append(ee.comment); out.append("r\n"); indent(common, out); out.append("-->\r\n"); } }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/6bc578f078e96e734184556dab09979e658632c1/GenerateSidewaysView.java/buggy/tools/java/org/unicode/cldr/icu/GenerateSidewaysView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 918, 28085, 4469, 12, 780, 1892, 596, 16, 3010, 14657, 16, 509, 2975, 13, 288, 1082, 202, 430, 261, 1340, 18, 3469, 480, 446, 13, 288, 7734, 3504, 12, 6054, 16, 596, 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, 3196, 202, 1152, 918, 28085, 4469, 12, 780, 1892, 596, 16, 3010, 14657, 16, 509, 2975, 13, 288, 1082, 202, 430, 261, 1340, 18, 3469, 480, 446, 13, 288, 7734, 3504, 12, 6054, 16, 596, 1769, ...
finally { PhoneManagerFactory.close(phoneManager); }
public void handleForward(IQ iq) { Element phoneElement = iq.getChildElement(); PhoneManager phoneManager = null; try { phoneManager = PhoneManagerFactory.getPhoneManager(); String callSessionID = phoneElement.attributeValue("id"); if(callSessionID == null || "".equals(callSessionID)) { throw new PhoneException("a call 'id' is a required attribute for type FORWARD"); } String extension = phoneElement.elementText("extension"); if(extension != null && !"".equals(extension)) { phoneManager.forward(callSessionID, iq.getFrom().getNode(), extension); } // try dialing by jid else { String targetJID = phoneElement.elementText("jid"); if(targetJID == null) { throw new PhoneException("No extension or jid was specified"); } iq.getFrom().getNode(); phoneManager.forward(callSessionID, iq.getFrom().getNode(), new JID(targetJID)); } //send reply IQ reply = IQ.createResultIQ(iq); reply.setType(IQ.Type.result); PhoneAction phoneAction = new PhoneAction(PhoneAction.Type.FORWARD); reply.setChildElement(phoneAction); send(reply); } catch (PhoneException e) { Log.debug(e); IQ reply = IQ.createResultIQ(iq); reply.setType(IQ.Type.error); PacketError error = new PacketError(PacketError.Condition.undefined_condition, PacketError.Type.cancel, e.getMessage()); reply.setError(error); send(reply); } finally { PhoneManagerFactory.close(phoneManager); } }
11898 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11898/6a2d2c568bc9d7e3a1549e2e67014b2a794b323f/PacketHandler.java/buggy/server/src/java/org/jivesoftware/phone/PacketHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 8514, 12, 45, 53, 24288, 13, 288, 3639, 3010, 7353, 1046, 273, 24288, 18, 588, 1763, 1046, 5621, 3639, 12895, 1318, 7353, 1318, 273, 446, 31, 3639, 775, 288, 5411, 7353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8514, 12, 45, 53, 24288, 13, 288, 3639, 3010, 7353, 1046, 273, 24288, 18, 588, 1763, 1046, 5621, 3639, 12895, 1318, 7353, 1318, 273, 446, 31, 3639, 775, 288, 5411, 7353, ...
SynchronizeAction action1 = new SynchronizeAction(false);
SynchronizeAction action1 = new SynchronizeAction();
protected DefaultActionGroup createActionGroup() { DefaultActionGroup group = new DefaultActionGroup(); group.add(new GotoHomeAction(myFileSystemTree)); group.add(new GotoProjectDirectory(myFileSystemTree)); group.addSeparator(); group.add(new NewFolderAction(myFileSystemTree)); group.add(new FileDeleteAction(myFileSystemTree)); group.addSeparator(); SynchronizeAction action1 = new SynchronizeAction(false); AnAction original = ActionManager.getInstance().getAction(IdeActions.ACTION_SYNCHRONIZE); action1.copyFrom(original); action1.registerCustomShortcutSet(original.getShortcutSet(), myFileSystemTree.getTree()); group.add(action1); group.addSeparator(); group.add(new MyShowHiddensAction()); return group; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/54dc3dac5f475bb7fd62a982d7c0ef8ec0a7ddc6/FileChooserDialogImpl.java/buggy/source/com/intellij/openapi/fileChooser/ex/FileChooserDialogImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 2989, 1803, 1114, 752, 1803, 1114, 1435, 288, 565, 2989, 1803, 1114, 1041, 273, 394, 2989, 1803, 1114, 5621, 565, 1041, 18, 1289, 12, 2704, 611, 6302, 8684, 1803, 12, 4811, 11785, 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, 282, 4750, 2989, 1803, 1114, 752, 1803, 1114, 1435, 288, 565, 2989, 1803, 1114, 1041, 273, 394, 2989, 1803, 1114, 5621, 565, 1041, 18, 1289, 12, 2704, 611, 6302, 8684, 1803, 12, 4811, 11785, 2...
FieldInfo fieldInfo = memberFactory.createFieldInfo(attr);
FieldInfo fieldInfo = memberFactory.createFieldInfo(attr, state);
private void processArchetype (Archetype archetype, FactoryState state) { String typeName = archetype.getName(); ClassInfo classInfo = state.classInfo; classInfo.setSchemaType(new XSClass(state.jClass, typeName)); Schema schema = archetype.getSchema(); classInfo.setNamespaceURI(schema.getTargetNamespace()); //- Handle derived types if (archetype.getSource() != null) { String sourceName = archetype.getSource(); Archetype source = schema.getArchetype(sourceName); if (source != null) { String className = null; ClassInfo cInfo = state.resolve(source); if (cInfo == null) { String packageName = state.jClass.getPackageName(); JClass jClass = createSourceCode(source, state, packageName); cInfo = state.resolve(source); className = jClass.getName(); } else className = cInfo.getJClass().getName(); state.jClass.setSuperClass(className); //-- copy members from super class classInfo.addFieldInfo(cInfo.getAttributeFields()); classInfo.addFieldInfo(cInfo.getElementFields()); classInfo.addFieldInfo(cInfo.getTextField()); } else { //-- will this ever be null, if we have a valid Schema? //-- ignore for now...but add comment in case we //-- ever see it. System.out.print("ClassInfo#init: "); System.out.print("A referenced archetype is null: "); System.out.println(sourceName); } } //---------------------/ //- handle attributes -/ //---------------------/ //-- loop throug each attribute Enumeration enum = archetype.getAttributeDecls(); while (enum.hasMoreElements()) { AttributeDecl attr = (AttributeDecl)enum.nextElement(); FieldInfo fieldInfo = memberFactory.createFieldInfo(attr); handleField(fieldInfo, state); }
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/6f93661f299605a5dd3fe16282fc6992b3f3c0af/SourceFactory.java/clean/trunk/castor-2002/castor/src/main/org/exolab/castor/builder/SourceFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 12269, 5872, 3639, 261, 12269, 5872, 6637, 5872, 16, 7822, 1119, 919, 13, 377, 288, 7734, 514, 8173, 273, 6637, 5872, 18, 17994, 5621, 7734, 19010, 23566, 273, 919, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 12269, 5872, 3639, 261, 12269, 5872, 6637, 5872, 16, 7822, 1119, 919, 13, 377, 288, 7734, 514, 8173, 273, 6637, 5872, 18, 17994, 5621, 7734, 19010, 23566, 273, 919, 18, 1...
if(targetFile.exists()) {
if(this.targetFile.exists()) {
public void update() { targetFile = new java.io.File(toString()+".xml"); if (transfer != null) { Logger.notice(this, "A transfer is already running"); return; } if(modifiable) { FCPClientPut clientPut; Logger.info(this, "Generating index ..."); generateXML(targetFile); if(targetFile.exists()) { Logger.info(this, "Inserting new version"); revision++; clientPut = new FCPClientPut(targetFile, 2, revision, toString(), privateKey, 2, false, 0); transfer = clientPut; clientPut.addObserver(this); queueManager.addQueryToThePendingQueue(clientPut); save(); } else { Logger.warning(this, "Index not generated !"); } setChanged(); notifyObservers(); } else { updateFromFreenet(-1); } }
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/88402a3bc59123261d50a7cfed0ac20de2b772f6/Index.java/buggy/src/thaw/plugins/index/Index.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1089, 1435, 288, 202, 202, 3299, 812, 273, 394, 2252, 18, 1594, 18, 812, 12, 10492, 1435, 9078, 18, 2902, 8863, 202, 202, 430, 261, 13866, 480, 446, 13, 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, 918, 1089, 1435, 288, 202, 202, 3299, 812, 273, 394, 2252, 18, 1594, 18, 812, 12, 10492, 1435, 9078, 18, 2902, 8863, 202, 202, 430, 261, 13866, 480, 446, 13, 288, 1082, 202, ...
else if ( ((LA17_0>='\u0000' && LA17_0<='\t')||(LA17_0>='\u000B' && LA17_0<='\f')||(LA17_0>='\u000E' && LA17_0<='\uFFFE')) ) { alt17=1;
else if ( ((LA15_0>='\u0000' && LA15_0<='\t')||(LA15_0>='\u000B' && LA15_0<='\f')||(LA15_0>='\u000E' && LA15_0<='\uFFFE')) ) { alt15=1;
public void mSH_STYLE_SINGLE_LINE_COMMENT() throws RecognitionException { try { ruleNestingLevel++; int _type = SH_STYLE_SINGLE_LINE_COMMENT; int _start = getCharIndex(); int _line = getLine(); int _charPosition = getCharPositionInLine(); int _channel = Token.DEFAULT_CHANNEL; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1373:4: ( '#' ( options {greedy=false; } : . )* EOL ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1373:4: '#' ( options {greedy=false; } : . )* EOL { match('#'); if (failed) return ; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1373:8: ( options {greedy=false; } : . )* loop17: do { int alt17=2; int LA17_0 = input.LA(1); if ( (LA17_0=='\r') ) { alt17=2; } else if ( (LA17_0=='\n') ) { alt17=2; } else if ( ((LA17_0>='\u0000' && LA17_0<='\t')||(LA17_0>='\u000B' && LA17_0<='\f')||(LA17_0>='\u000E' && LA17_0<='\uFFFE')) ) { alt17=1; } switch (alt17) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1373:35: . { matchAny(); if (failed) return ; } break; default : break loop17; } } while (true); mEOL(); if (failed) return ; if ( backtracking==0 ) { _channel=HIDDEN; } } if ( backtracking==0 ) { if ( token==null && ruleNestingLevel==1 ) { emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1); } } } finally { ruleNestingLevel--; } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/63bc7036e62ae854cec463d59712c173f74e984c/DRLLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 2664, 67, 15066, 67, 20184, 67, 5997, 67, 12200, 1435, 1216, 9539, 288, 3639, 775, 288, 5411, 1720, 50, 10100, 2355, 9904, 31, 5411, 509, 389, 723, 273, 6122, 67, 15066, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 312, 2664, 67, 15066, 67, 20184, 67, 5997, 67, 12200, 1435, 1216, 9539, 288, 3639, 775, 288, 5411, 1720, 50, 10100, 2355, 9904, 31, 5411, 509, 389, 723, 273, 6122, 67, 15066, ...
return ( (ReportElementEditPart) part ).createGuideHandle( );
return ( (ReportElementEditPart) part ).getGuideHandle( );
protected AbstractGuideHandle createGuideHandle( ) { EditPart part = getParent( ); if ( part instanceof ReportElementEditPart ) { return ( (ReportElementEditPart) part ).createGuideHandle( ); } return null; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/c093e9754641d62e23c69f2ba4187e5b60ae0585/ReportElementEditPart.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/editparts/ReportElementEditPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 4115, 17424, 3259, 752, 17424, 3259, 12, 262, 202, 95, 202, 202, 4666, 1988, 1087, 273, 5089, 12, 11272, 202, 202, 430, 261, 1087, 1276, 8706, 1046, 4666, 1988, 262, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 4115, 17424, 3259, 752, 17424, 3259, 12, 262, 202, 95, 202, 202, 4666, 1988, 1087, 273, 5089, 12, 11272, 202, 202, 430, 261, 1087, 1276, 8706, 1046, 4666, 1988, 262, 202, 202, ...
args.set(args.size() - 1, val);
args.add(val);
public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; RubyObject recv = getRecvNode().eval(ruby, self); Node rval = getArgsNode().getHeadNode(); RubyPointer args = ArgsUtil.setupArgs(ruby, self, getArgsNode().getNextNode()); args.remove(args.size() - 1); RubyObject val = recv.funcall("[]", args); if (getMId().equals("||")) { if (val.isTrue()) { return val; } else { val = rval.eval(ruby, self); } } else if (getMId().equals("&&")) { if (val.isFalse()) { return val; } else { val = rval.eval(ruby, self); } } else { val = val.funcall(getMId(), rval.eval(ruby, self)); } args.set(args.size() - 1, val); return recv.funcall("[]=", args); }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/8ee00a248d314b571140a548e14f624cbd1eeae9/OpAsgn1Node.java/clean/org/jruby/nodes/OpAsgn1Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 5302, 12, 54, 10340, 22155, 16, 19817, 921, 365, 13, 288, 3639, 368, 399, 4566, 67, 3373, 1448, 1268, 31, 3639, 19817, 921, 10665, 273, 5561, 19774, 907, 7675, 8622, 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, 1071, 19817, 921, 5302, 12, 54, 10340, 22155, 16, 19817, 921, 365, 13, 288, 3639, 368, 399, 4566, 67, 3373, 1448, 1268, 31, 3639, 19817, 921, 10665, 273, 5561, 19774, 907, 7675, 8622, 12,...
public Task getTask() {
public Task getTask() throws Exception { if ( task == null ) { task = (Task) taskType.newInstance(); task.setProject(project); task.setTaskName(taskName); task.init(); setDynaBean( new ConvertingWrapDynaBean(task) ); }
public Task getTask() { return task; }
51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/3cadede6ec1c9c447827ac93c3b6a4cd9b79e9a9/TaskTag.java/buggy/src/java/org/apache/commons/jelly/tags/ant/TaskTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3837, 11478, 1435, 1216, 1185, 288, 309, 261, 1562, 422, 446, 262, 288, 1562, 273, 261, 2174, 13, 1562, 559, 18, 2704, 1442, 5621, 1562, 18, 542, 4109, 12, 4406, 1769, 1562, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3837, 11478, 1435, 1216, 1185, 288, 309, 261, 1562, 422, 446, 262, 288, 1562, 273, 261, 2174, 13, 1562, 559, 18, 2704, 1442, 5621, 1562, 18, 542, 4109, 12, 4406, 1769, 1562, 18, 5...
MethodPattern methodPattern = Pattern.compileMethodPattern("* meth*()");
MethodPattern methodPattern = Pattern.compileMethodPattern("* meth*(..)");
public void testMatchMethodName2() { MethodPattern methodPattern = Pattern.compileMethodPattern("* meth*()"); assertTrue(methodPattern.matchMethodName("method")); assertTrue(methodPattern.matchMethodName("methods")); assertFalse(methodPattern.matchMethodName("m")); assertFalse(methodPattern.matchMethodName("")); }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/a4954bc086440ee1724b840d06c4279c27d6d1c7/MethodPatternTest.java/clean/aspectwerkz/src/test/test/xmldef/MethodPatternTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2060, 11666, 22, 1435, 288, 3639, 2985, 3234, 707, 3234, 273, 6830, 18, 11100, 1305, 3234, 2932, 14, 7917, 21556, 838, 2225, 1769, 3639, 1815, 5510, 12, 2039, 3234, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2060, 11666, 22, 1435, 288, 3639, 2985, 3234, 707, 3234, 273, 6830, 18, 11100, 1305, 3234, 2932, 14, 7917, 21556, 838, 2225, 1769, 3639, 1815, 5510, 12, 2039, 3234, 18, 1...
new ErrorDialog( Messages.getString( "WizardBase.error.ExceptionEncountered" ), Messages.getString( "WizardBase.error.FollowingExceptionEncountered" ),
new ErrorDialog( Messages.getString( "WizardBase.error.ErrorsEncountered" ), Messages.getString( "WizardBase.error.FollowingErrorEncountered" ),
public void displayException( Throwable t ) { // TODO: Implement linkage with the ErrorDialog new ErrorDialog( Messages.getString( "WizardBase.error.ExceptionEncountered" ), //$NON-NLS-1$ Messages.getString( "WizardBase.error.FollowingExceptionEncountered" ), //$NON-NLS-1$ t ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/3cae224982a492f4523572d47f04851fefb08dbe/WizardBase.java/buggy/core/org.eclipse.birt.core.ui/src/org/eclipse/birt/core/ui/frameworks/taskwizard/WizardBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2562, 503, 12, 4206, 268, 262, 202, 95, 202, 202, 759, 2660, 30, 10886, 1692, 410, 598, 326, 1068, 6353, 202, 202, 2704, 1068, 6353, 12, 4838, 18, 588, 780, 12, 315, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2562, 503, 12, 4206, 268, 262, 202, 95, 202, 202, 759, 2660, 30, 10886, 1692, 410, 598, 326, 1068, 6353, 202, 202, 2704, 1068, 6353, 12, 4838, 18, 588, 780, 12, 315, 27...
model.addRow();
int row = rulesTable.getSelectedRow(); model.addNewRow(row);
void addButton_actionPerformed(ActionEvent e) { CrawlRuleModel model = (CrawlRuleModel) rulesTable.getModel(); model.addRow(); }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/2c5003c8d83554a179e56fc6e7a07c055c35b3ba/CrawlRuleEditor.java/buggy/test/src/org/lockss/devtools/plugindef/CrawlRuleEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 527, 3616, 67, 1128, 13889, 12, 1803, 1133, 425, 13, 288, 565, 385, 15161, 2175, 1488, 938, 273, 261, 39, 15161, 2175, 1488, 13, 2931, 1388, 18, 588, 1488, 5621, 565, 509, 1027, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 527, 3616, 67, 1128, 13889, 12, 1803, 1133, 425, 13, 288, 565, 385, 15161, 2175, 1488, 938, 273, 261, 39, 15161, 2175, 1488, 13, 2931, 1388, 18, 588, 1488, 5621, 565, 509, 1027, 27...
changeListeners.remove(listener);
changeSupport.removeChangeListener(listener);
public synchronized void removeChangeListener(IChangeListener listener) { changeListeners.remove(listener); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservableMap.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/map/AbstractObservableMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 1206, 15744, 12, 45, 15744, 2991, 13, 288, 202, 202, 3427, 5583, 18, 4479, 12, 12757, 1769, 202, 97, 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, 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, 3852, 918, 1206, 15744, 12, 45, 15744, 2991, 13, 288, 202, 202, 3427, 5583, 18, 4479, 12, 12757, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
noex = Constants.NOEX_PRIVATE;
noex = Visibility.PRIVATE;
public void visitDefnNode(DefnNode iVisited) { RubyModule rubyClass = ruby.getRubyClass(); if (rubyClass == null) { throw new TypeError(ruby, "No class to add method."); } //if (ruby_class == getRuby().getObjectClass() && node.nd_mid() == init) { // warn("redefining Object#initialize may cause infinite loop"); //} //if (node.nd_mid() == __id__ || node.nd_mid() == __send__) { // warn("redefining `%s' may cause serious problem", ((RubyId)node.nd_mid()).toName()); //} // ruby_class.setFrozen(true); ICallable method = rubyClass.searchMethod(iVisited.getName()); // RubyObject origin = body.getOrigin(); // if (body != null){ // if (ruby_verbose.isTrue() && ruby_class == origin && body.nd_cnt() == 0) { // rom.rb_warning("discarding old %s", ((RubyId)node.nd_mid()).toName()); // } // if (node.nd_noex() != 0) { /* toplevel */ /* should upgrade to rb_warn() if no super was called inside? */ // rom.rb_warning("overriding global function `%s'", ((RubyId)node.nd_mid()).toName()); // } // } int noex; if (ruby.isScope(Constants.SCOPE_PRIVATE) || iVisited.getName().equals("initialize")) { noex = Constants.NOEX_PRIVATE; } else if (ruby.isScope(Constants.SCOPE_PROTECTED)) { noex = Constants.NOEX_PROTECTED; } else if (rubyClass == ruby.getClasses().getObjectClass()) { noex = iVisited.getNoex(); } else { noex = Constants.NOEX_PUBLIC; } if (method != null && method.getImplementationClass() == rubyClass && (method.getNoex() & Constants.NOEX_UNDEF) != 0) { noex |= Constants.NOEX_UNDEF; } // FIXME Create new method store class. // ScopeNode body = copyNodeScope((ScopeNode)iVisited.getBodyNode(), ruby.getNamespace()); DefaultMethod newMethod = new DefaultMethod(iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), ruby.getNamespace()); rubyClass.addMethod(iVisited.getName(), newMethod, noex); if (ruby.getCurrentMethodScope() == Constants.SCOPE_MODFUNC) { rubyClass.getSingletonClass().addMethod(iVisited.getName(), newMethod, Constants.NOEX_PUBLIC); rubyClass.callMethod("singleton_method_added", builtins.toSymbol(iVisited.getName())); } if (rubyClass.isSingleton()) { rubyClass.getInstanceVariable("__attached__").callMethod("singleton_method_added", builtins.toSymbol(iVisited.getName())); } else { rubyClass.callMethod("method_added", builtins.toSymbol(iVisited.getName())); } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f05423516c2d1bfe54c4363eedb9654f7cfb6898/EvaluateVisitor.java/buggy/org/jruby/evaluator/EvaluateVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 3262, 82, 907, 12, 3262, 82, 907, 277, 30019, 13, 288, 3639, 19817, 3120, 22155, 797, 273, 22155, 18, 588, 54, 10340, 797, 5621, 3639, 309, 261, 27768, 797, 422, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 3262, 82, 907, 12, 3262, 82, 907, 277, 30019, 13, 288, 3639, 19817, 3120, 22155, 797, 273, 22155, 18, 588, 54, 10340, 797, 5621, 3639, 309, 261, 27768, 797, 422, 446, 1...
return context.declaration.getExtractor().getFloatValue( left ) > ((DoubleVariableContextEntry) context).right;
return context.getVariableDeclaration().getExtractor().getFloatValue( left ) > ((DoubleVariableContextEntry) context).right;
public boolean evaluateCachedRight(final VariableContextEntry context, final Object left) { // TODO: we are not handling delta right now... maybe we should return context.declaration.getExtractor().getFloatValue( left ) > ((DoubleVariableContextEntry) context).right; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/b6d27b51773c616f04e39b7d6c5e3cd95aeab255/FloatFactory.java/buggy/drools-core/src/main/java/org/drools/base/evaluators/FloatFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 5956, 9839, 4726, 12, 6385, 7110, 1042, 1622, 819, 16, 4766, 6647, 727, 1033, 2002, 13, 288, 5411, 368, 2660, 30, 732, 854, 486, 5057, 3622, 2145, 2037, 2777, 6944, 732, 1410,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 5956, 9839, 4726, 12, 6385, 7110, 1042, 1622, 819, 16, 4766, 6647, 727, 1033, 2002, 13, 288, 5411, 368, 2660, 30, 732, 854, 486, 5057, 3622, 2145, 2037, 2777, 6944, 732, 1410,...
return longDiv(s);
result = longDiv(s); break;
public static byte simplify(OPT_AbstractRegisterPool regpool, OPT_Instruction s) { switch (s.getOpcode()) { //////////////////// // GUARD operations //////////////////// case GUARD_COMBINE_opcode: return guardCombine(s); //////////////////// // TRAP operations //////////////////// case TRAP_IF_opcode: return trapIf(s); case NULL_CHECK_opcode: return nullCheck(s); case INT_ZERO_CHECK_opcode: return intZeroCheck(s); case LONG_ZERO_CHECK_opcode: return longZeroCheck(s); case CHECKCAST_opcode: return checkcast(regpool, s); case CHECKCAST_UNRESOLVED_opcode: return checkcast(regpool, s); case CHECKCAST_NOTNULL_opcode: return checkcastNotNull(s); case INSTANCEOF_opcode: return instanceOf(regpool, s); case INSTANCEOF_NOTNULL_opcode: return instanceOfNotNull(s); case OBJARRAY_STORE_CHECK_opcode: return objarrayStoreCheck(s); case OBJARRAY_STORE_CHECK_NOTNULL_opcode: return objarrayStoreCheckNotNull(s); case MUST_IMPLEMENT_INTERFACE_opcode: return mustImplementInterface(s); //////////////////// // Conditional moves //////////////////// case INT_COND_MOVE_opcode: return intCondMove(s); case LONG_COND_MOVE_opcode: return longCondMove(s); case FLOAT_COND_MOVE_opcode: return floatCondMove(s); case DOUBLE_COND_MOVE_opcode: return doubleCondMove(s); case REF_COND_MOVE_opcode: return refCondMove(s); case GUARD_COND_MOVE_opcode: return guardCondMove(s); //////////////////// // INT ALU operations //////////////////// case BOOLEAN_NOT_opcode: return booleanNot(s); case BOOLEAN_CMP_INT_opcode: return booleanCmpInt(s); case BOOLEAN_CMP_ADDR_opcode: return booleanCmpAddr(s); case INT_ADD_opcode: return intAdd(s); case INT_AND_opcode: return intAnd(s); case INT_DIV_opcode: return intDiv(s); case INT_MUL_opcode: return intMul(regpool, s); case INT_NEG_opcode: return intNeg(s); case INT_NOT_opcode: return intNot(s); case INT_OR_opcode: return intOr(s); case INT_REM_opcode: return intRem(s); case INT_SHL_opcode: return intShl(s); case INT_SHR_opcode: return intShr(s); case INT_SUB_opcode: return intSub(s); case INT_USHR_opcode: return intUshr(s); case INT_XOR_opcode: return intXor(s); //////////////////// // WORD ALU operations //////////////////// case REF_ADD_opcode: return refAdd(s); case REF_AND_opcode: return refAnd(s); case REF_SHL_opcode: return refShl(s); case REF_SHR_opcode: return refShr(s); case REF_NOT_opcode: return refNot(s); case REF_OR_opcode: return refOr(s); case REF_SUB_opcode: return refSub(s); case REF_USHR_opcode: return regUshr(s); case REF_XOR_opcode: return refXor(s); //////////////////// // LONG ALU operations //////////////////// case LONG_ADD_opcode: return longAdd(s); case LONG_AND_opcode: return longAnd(s); case LONG_CMP_opcode: return longCmp(s); case LONG_DIV_opcode: return longDiv(s); case LONG_MUL_opcode: return longMul(s); case LONG_NEG_opcode: return longNeg(s); case LONG_NOT_opcode: return longNot(s); case LONG_OR_opcode: return longOr(s); case LONG_REM_opcode: return longRem(s); case LONG_SHL_opcode: return longShl(s); case LONG_SHR_opcode: return longShr(s); case LONG_SUB_opcode: return longSub(s); case LONG_USHR_opcode: return longUshr(s); case LONG_XOR_opcode: return longXor(s); //////////////////// // FLOAT ALU operations //////////////////// case FLOAT_ADD_opcode: return floatAdd(s); case FLOAT_CMPG_opcode: return floatCmpg(s); case FLOAT_CMPL_opcode: return floatCmpl(s); case FLOAT_DIV_opcode: return floatDiv(s); case FLOAT_MUL_opcode: return floatMul(s); case FLOAT_NEG_opcode: return floatNeg(s); case FLOAT_REM_opcode: return floatRem(s); case FLOAT_SUB_opcode: return floatSub(s); //////////////////// // DOUBLE ALU operations //////////////////// case DOUBLE_ADD_opcode: return doubleAdd(s); case DOUBLE_CMPG_opcode: return doubleCmpg(s); case DOUBLE_CMPL_opcode: return doubleCmpl(s); case DOUBLE_DIV_opcode: return doubleDiv(s); case DOUBLE_MUL_opcode: return doubleMul(s); case DOUBLE_NEG_opcode: return doubleNeg(s); case DOUBLE_REM_opcode: return doubleRem(s); case DOUBLE_SUB_opcode: return doubleSub(s); //////////////////// // CONVERSION operations //////////////////// case DOUBLE_2FLOAT_opcode: return double2Float(s); case DOUBLE_2INT_opcode: return double2Int(s); case DOUBLE_2LONG_opcode: return double2Long(s); case DOUBLE_AS_LONG_BITS_opcode: return doubleAsLongBits(s); case INT_2DOUBLE_opcode: return int2Double(s); case INT_2BYTE_opcode: return int2Byte(s); case INT_2USHORT_opcode: return int2UShort(s); case INT_2FLOAT_opcode: return int2Float(s); case INT_2LONG_opcode: return int2Long(s); case INT_2ADDRSigExt_opcode: return int2AddrSigExt(s); case INT_2ADDRZerExt_opcode: return int2AddrZerExt(s); //-#if RVM_FOR_64_ADDR case LONG_2ADDR_opcode: return long2Addr(s); //-#endif case INT_2SHORT_opcode: return int2Short(s); case INT_BITS_AS_FLOAT_opcode: return intBitsAsFloat(s); case ADDR_2INT_opcode: return addr2Int(s); case ADDR_2LONG_opcode: return addr2Long(s); case FLOAT_2DOUBLE_opcode: return float2Double(s); case FLOAT_2INT_opcode: return float2Int(s); case FLOAT_2LONG_opcode: return float2Long(s); case FLOAT_AS_INT_BITS_opcode: return floatAsIntBits(s); case LONG_2FLOAT_opcode: return long2Float(s); case LONG_2INT_opcode: return long2Int(s); case LONG_2DOUBLE_opcode: return long2Double(s); case LONG_BITS_AS_DOUBLE_opcode: return longBitsAsDouble(s); //////////////////// // Field operations //////////////////// case ARRAYLENGTH_opcode: return arrayLength(s); case BOUNDS_CHECK_opcode: return boundsCheck(s); case CALL_opcode: return call(s); case GETFIELD_opcode: return getField(s); case GET_OBJ_TIB_opcode: return getObjTib(s); case GET_CLASS_TIB_opcode: return getClassTib(s); case GET_TYPE_FROM_TIB_opcode: return getTypeFromTib(s); case GET_ARRAY_ELEMENT_TIB_FROM_TIB_opcode: return getArrayElementTibFromTib(s); case GET_SUPERCLASS_IDS_FROM_TIB_opcode: return getSuperclassIdsFromTib(s); case GET_DOES_IMPLEMENT_FROM_TIB_opcode: return getDoesImplementFromTib(s); case REF_LOAD_opcode: return refLoad(s); default: return UNCHANGED; } }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/eb4369b6f8fdd0cd15c56bc3cbfa8673171db226/OPT_Simplifier.java/buggy/rvm/src/com/ibm/jikesrvm/opt/OPT_Simplifier.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1160, 16499, 12, 15620, 67, 7469, 3996, 2864, 960, 6011, 16, 16456, 67, 11983, 272, 13, 288, 565, 1620, 261, 87, 18, 588, 22808, 10756, 288, 1377, 368, 3517, 759, 1377, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1160, 16499, 12, 15620, 67, 7469, 3996, 2864, 960, 6011, 16, 16456, 67, 11983, 272, 13, 288, 565, 1620, 261, 87, 18, 588, 22808, 10756, 288, 1377, 368, 3517, 759, 1377, 368, ...
int value1; int value2;
int res1 = 0, res2 = 0; char buf1[] = new char[1024], buf2[] = new char[1024];
public void compareReaders(Reader r1, Reader r2) throws IOException { try { if (r1 == null && r2 == null) { return; } else if (r1 == null) { assertTrue("r1 == null && r2 != null", false); return; } else if (r2 == null) { assertTrue("r1 != null && r2 == null", false); return; } long count = 0; int value1; int value2; while ((value1 = r1.read()) != -1) { value2 = r2.read(); if (value2 == -1) { assertTrue("reader 2 EOF at: " + count, false); } assertTrue("reader 1 value [" + value1 + "] differs from reader 2 value [" + value2 + "] at: " + count, (value1 == value2)); count++; } if (r2.read() != -1) { assertTrue("reader 1 EOF at: " + count, false); } } finally { if (r1 != null) { r1.close(); } if (r2 != null) { r2.close(); } } }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/d4e620b37705bad32b9be345d92f0be6e602bb1b/TestBase.java/clean/trunk/jtds/src/test/net/sourceforge/jtds/test/TestBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3400, 30301, 12, 2514, 436, 21, 16, 5393, 436, 22, 13, 1216, 1860, 288, 3639, 775, 288, 5411, 309, 261, 86, 21, 422, 446, 597, 436, 22, 422, 446, 13, 288, 7734, 327, 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, 918, 3400, 30301, 12, 2514, 436, 21, 16, 5393, 436, 22, 13, 1216, 1860, 288, 3639, 775, 288, 5411, 309, 261, 86, 21, 422, 446, 597, 436, 22, 422, 446, 13, 288, 7734, 327, 31, ...
encoded = true;
void encode() { try { splitfileAlgo.encode(dataBlocks, checkBlocks, CHKBlock.DATA_LENGTH, blockInsertContext.persistentBucketFactory); // Start the inserts for(int i=0;i<checkBlockInserters.length;i++) { if(checkBlocks[i] != null) { // else already finished on creation checkBlockInserters[i] = new SingleBlockInserter(parent.parent, checkBlocks[i], (short)-1, FreenetURI.EMPTY_CHK_URI, blockInsertContext, this, false, CHKBlock.DATA_LENGTH, i + dataBlocks.length, getCHKOnly, false, false, parent.token); checkBlockInserters[i].schedule(); } else { parent.parent.completedBlock(true); } } // Tell parent only after have started the inserts. // Because of the counting. encoded = true; parent.encodedSegment(this); onEncodedSegment(); } catch (IOException e) { InserterException ex = new InserterException(InserterException.BUCKET_ERROR, e, null); finish(ex); } catch (Throwable t) { Logger.error(this, "Caught "+t+" while encoding "+this, t); InserterException ex = new InserterException(InserterException.INTERNAL_ERROR, t, null); finish(ex); } }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/e6accf6fde724c33588e68c749fd47456ab50691/SplitFileInserterSegment.java/clean/src/freenet/client/async/SplitFileInserterSegment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 2017, 1435, 288, 202, 202, 698, 288, 1082, 202, 4939, 768, 22430, 18, 3015, 12, 892, 6450, 16, 866, 6450, 16, 6469, 47, 1768, 18, 4883, 67, 7096, 16, 1203, 4600, 1042, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 2017, 1435, 288, 202, 202, 698, 288, 1082, 202, 4939, 768, 22430, 18, 3015, 12, 892, 6450, 16, 866, 6450, 16, 6469, 47, 1768, 18, 4883, 67, 7096, 16, 1203, 4600, 1042, 18, ...
for(IDSRule rule : (List<IDSRule>) settings.getRules()) { engine.updateRule(rule); }*/
protected void initializeSettings() { log.info("Loading Rules..."); //IDSSettings settings = new IDSSettings(getTid()); //settings = queryDBForSettings(); queryDBForSettings(); if(settings == null || settings.getRules() == null) { settings = new IDSSettings(getTid()); settings.setVariables(IDSRuleManager.defaultVariables); settings.setImmutableVariables(IDSRuleManager.immutableVariables); log.info("Settings was null, loading from file"); String path = System.getProperty("bunnicula.home"); File file = new File(path+"/idsrules"); visitAllFiles(file); settings.setMaxChunks(engine.getMaxChunks()); settings.setRules(ruleList); setIDSSettings(settings); } else log.info("Settings was loaded from DB: " + settings); //setIDSSettings(settings); log.info(ruleList.size() + " rules loaded"); //} IDSStatisticManager.instance().stop(); }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/f81e1f4a7d2db5658724f732284e0ce7d755c59a/IDSTransformImpl.java/clean/tran/ids/main/com/metavize/tran/ids/IDSTransformImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 364, 12, 19516, 2175, 1720, 294, 261, 682, 32, 19516, 2175, 23429, 1947, 18, 588, 4478, 10756, 288, 4073, 18, 2725, 2175, 12, 5345, 1769, 289, 5549, 225, 364, 12, 19516, 2175, 1720, 294, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 364, 12, 19516, 2175, 1720, 294, 261, 682, 32, 19516, 2175, 23429, 1947, 18, 588, 4478, 10756, 288, 4073, 18, 2725, 2175, 12, 5345, 1769, 289, 5549, 225, 364, 12, 19516, 2175, 1720, 294, 261, ...
downloader.doDownload(false);
downloader.doDownload(false,null);
private static void testOverlapCheckSpeed(int rate) { RemoteFileDesc rfd=newRFD(6346, 100); System.out.println("-Measuring time for download at rate "+rate+"..."); uploader1.setRate(rate); long start1=System.currentTimeMillis(); try { HTTPDownloader downloader=new HTTPDownloader( rfd, file, 0, TestFile.length()); downloader.connect(); downloader.doDownload(true); } catch (IOException e) { Assert.that(false, "Unexpected exception: "+e); } catch (OverlapMismatchException e) { Assert.that(false, "Unexpected mismatch"); } long elapsed1=System.currentTimeMillis()-start1; // try{// RandomAccessFile raf = new RandomAccessFile(file,"rw");// raf.seek(300);// raf.write(65);// } catch (IOException io) {// Assert.that(false, "Error programing a spook");// } long start2=System.currentTimeMillis(); try { HTTPDownloader downloader=new HTTPDownloader( rfd, file, 0, TestFile.length()); downloader.connect(); downloader.doDownload(false); } catch (IOException e) { Assert.that(false, "Unexpected exception: "+e); } catch (OverlapMismatchException e) { Assert.that(false, "Unexpected mismatch"); } long elapsed2=System.currentTimeMillis()-start2; System.out.println(" No check="+elapsed2+", check="+elapsed1); }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/aa7722a500c952772fb40e6c20753404a974c9d3/DownloadTester.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/tests/downloader/DownloadTester.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1842, 17411, 1564, 16562, 12, 474, 4993, 13, 288, 3639, 6304, 812, 4217, 436, 8313, 33, 2704, 12918, 40, 12, 4449, 8749, 16, 2130, 1769, 3639, 2332, 18, 659, 18, 8222, 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, 3238, 760, 918, 1842, 17411, 1564, 16562, 12, 474, 4993, 13, 288, 3639, 6304, 812, 4217, 436, 8313, 33, 2704, 12918, 40, 12, 4449, 8749, 16, 2130, 1769, 3639, 2332, 18, 659, 18, 8222, 2...
c = new CommandlineParser(new String[] { "--version" });
c = new CommandlineParser(new String[] { "--version" }, outStream);
public void testParsing() { CommandlineParser c = new CommandlineParser(new String[] { "-e", "hello", "-e", "world" }); assertEquals("hello\nworld\n", c.inlineScript()); assertNull(c.getScriptFileName()); assertEquals("-e", c.displayedFileName()); c = new CommandlineParser(new String[] { "--version" }); assertTrue(c.isShowVersion()); c = new CommandlineParser(new String[] { "-n", "myfile.rb" }); assertTrue(c.isAssumeLoop()); assertEquals("myfile.rb", c.getScriptFileName()); assertEquals("myfile.rb", c.displayedFileName()); c = new CommandlineParser(new String[0]); assertEquals("-", c.displayedFileName()); }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/f321a7dc6c9f0229cc5266d9c2923a04a755be60/TestCommandlineParser.java/clean/test/org/jruby/test/TestCommandlineParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 13963, 1435, 288, 3639, 3498, 1369, 2678, 276, 273, 394, 3498, 1369, 2678, 12, 2704, 514, 8526, 288, 3701, 73, 3113, 315, 23711, 3113, 3701, 73, 3113, 315, 18179, 6, 1554...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13963, 1435, 288, 3639, 3498, 1369, 2678, 276, 273, 394, 3498, 1369, 2678, 12, 2704, 514, 8526, 288, 3701, 73, 3113, 315, 23711, 3113, 3701, 73, 3113, 315, 18179, 6, 1554...
DEBUG ("(POP) XMLValidator.copyAtts: " + param("fromElementType",fromElementType) + param("toElementType",toElementType) + "\n");
if (DEBUG) print("(POP) XMLValidator.copyAtts: " + param("fromElementType",fromElementType) + param("toElementType",toElementType) + "\n");
public void copyAtts(int fromElementType, int toElementType) { //****DEBUG**** DEBUG ("(POP) XMLValidator.copyAtts: " + param("fromElementType",fromElementType) + param("toElementType",toElementType) + "\n"); //****DEBUG**** int fromElement = fStringPool.getDeclaration(fromElementType); int toElement = fStringPool.getDeclaration(toElementType); if (fromElement == -1) return; int chunk = fromElement >> CHUNK_SHIFT; int index = fromElement & CHUNK_MASK; int attDefIndex = fAttlistHead[chunk][index]; while (attDefIndex != -1) { chunk = attDefIndex >> CHUNK_SHIFT; index = attDefIndex & CHUNK_MASK; try { addAttDef(toElement, fAttName[chunk][index], fAttType[chunk][index], fEnumeration[chunk][index], fAttDefaultType[chunk][index], fAttValue[chunk][index], fAttDefIsExternal[chunk][index] != 0); } catch (Exception ex) { } attDefIndex = fNextAttDef[chunk][index]; } }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/3aa2926e7035395f8d1b5e35cb25d4e6aad6a281/XMLValidator.java/clean/src/org/apache/xerces/validators/common/XMLValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1610, 3075, 87, 12, 474, 628, 17481, 16, 509, 358, 17481, 13, 288, 202, 202, 759, 1007, 9394, 1007, 202, 202, 9394, 7566, 12, 30374, 13, 3167, 5126, 18, 3530, 3075, 87, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1610, 3075, 87, 12, 474, 628, 17481, 16, 509, 358, 17481, 13, 288, 202, 202, 759, 1007, 9394, 1007, 202, 202, 9394, 7566, 12, 30374, 13, 3167, 5126, 18, 3530, 3075, 87, 30, ...
f = f.resolve();
f = resolve(f);
public void visitAPUTFIELD(jq_InstanceField f) { super.visitAPUTFIELD(f); f = f.resolve(); Object v = state.pop_A(); vm.putfield_A(state.pop_A(), f, v); }
3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/d12f1e1bc9744829efc71c43906f1f511c2f07d2/Interpreter.java/clean/joeq_native/joeq/Interpreter/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 2203, 1693, 6776, 12, 78, 85, 67, 1442, 974, 284, 13, 288, 5411, 2240, 18, 11658, 2203, 1693, 6776, 12, 74, 1769, 5411, 284, 273, 2245, 12, 74, 1769, 5411, 1033, 331, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 2203, 1693, 6776, 12, 78, 85, 67, 1442, 974, 284, 13, 288, 5411, 2240, 18, 11658, 2203, 1693, 6776, 12, 74, 1769, 5411, 284, 273, 2245, 12, 74, 1769, 5411, 1033, 331, ...
final PsiExpression expression = expressionStatement.getExpression();
final PsiExpression expression = expressionStatement .getExpression();
private boolean statementMustAssignVariable(PsiVariable field, PsiStatement statement, Set<MethodSignature> checkedMethods){ if(statement == null){ return false; } if(statement instanceof PsiBreakStatement || statement instanceof PsiContinueStatement || statement instanceof PsiAssertStatement || statement instanceof PsiEmptyStatement){ return false; } else if(statement instanceof PsiReturnStatement){ final PsiReturnStatement returnStatement = (PsiReturnStatement) statement; final PsiExpression returnValue = returnStatement.getReturnValue(); return expressionMustAssignVariable(field, returnValue, checkedMethods); } else if(statement instanceof PsiThrowStatement){ final PsiThrowStatement throwStatement = (PsiThrowStatement) statement; final PsiExpression exception = throwStatement.getException(); return expressionMustAssignVariable(field, exception, checkedMethods); } else if(statement instanceof PsiExpressionListStatement){ final PsiExpressionListStatement list = (PsiExpressionListStatement) statement; final PsiExpressionList expressionList = list.getExpressionList(); final PsiExpression[] expressions = expressionList.getExpressions(); for(final PsiExpression expression : expressions){ if(expressionMustAssignVariable(field, expression, checkedMethods)){ return true; } } return false; } else if(statement instanceof PsiExpressionStatement){ final PsiExpressionStatement expressionStatement = (PsiExpressionStatement) statement; final PsiExpression expression = expressionStatement.getExpression(); return expressionMustAssignVariable(field, expression, checkedMethods); } else if(statement instanceof PsiDeclarationStatement){ return declarationStatementMustAssignVariable(field, (PsiDeclarationStatement) statement, checkedMethods); } else if(statement instanceof PsiForStatement){ return forStatementMustAssignVariable(field, (PsiForStatement) statement, checkedMethods); } else if(statement instanceof PsiForeachStatement){ return foreachStatementMustAssignVariable(field, (PsiForeachStatement) statement); } else if(statement instanceof PsiWhileStatement){ return whileStatementMustAssignVariable(field, (PsiWhileStatement) statement, checkedMethods); } else if(statement instanceof PsiDoWhileStatement){ return doWhileMustAssignVariable(field, (PsiDoWhileStatement) statement, checkedMethods); } else if(statement instanceof PsiSynchronizedStatement){ final PsiCodeBlock body = ((PsiSynchronizedStatement) statement).getBody(); return cachingBlockMustAssignVariable(field, body, checkedMethods); } else if(statement instanceof PsiBlockStatement){ final PsiCodeBlock codeBlock = ((PsiBlockStatement) statement).getCodeBlock(); return cachingBlockMustAssignVariable(field, codeBlock, checkedMethods); } else if(statement instanceof PsiLabeledStatement){ final PsiLabeledStatement labeledStatement = (PsiLabeledStatement) statement; final PsiStatement statementLabeled = labeledStatement.getStatement(); return statementMustAssignVariable(field, statementLabeled, checkedMethods); } else if(statement instanceof PsiIfStatement){ return ifStatementMustAssignVariable(field, (PsiIfStatement) statement, checkedMethods); } else if(statement instanceof PsiTryStatement){ return tryStatementMustAssignVariable(field, (PsiTryStatement) statement, checkedMethods); } else if(statement instanceof PsiSwitchStatement){ return false; } else // unknown statement type { return false; } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/fc3fc1341db4aa6d26930bf45116ec44c28fc569/InitializationReadUtils.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/InitializationReadUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 3021, 10136, 4910, 3092, 12, 52, 7722, 3092, 652, 16, 4766, 7734, 453, 7722, 3406, 3021, 16, 4766, 7734, 1000, 32, 1305, 5374, 34, 5950, 4712, 15329, 3639, 309, 12, 11516, 422...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 3021, 10136, 4910, 3092, 12, 52, 7722, 3092, 652, 16, 4766, 7734, 453, 7722, 3406, 3021, 16, 4766, 7734, 1000, 32, 1305, 5374, 34, 5950, 4712, 15329, 3639, 309, 12, 11516, 422...
throw new UnsupportedOperationException(); }
throw new UnsupportedOperationException(); }
public Time getTime(int arg0) throws OLAPException { throw new UnsupportedOperationException(); }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/CursorSupport.java/buggy/src/main/mondrian/jolap/CursorSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2647, 6135, 12, 474, 1501, 20, 13, 1216, 531, 48, 2203, 503, 288, 202, 202, 12849, 394, 13172, 5621, 202, 97, 2, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2647, 6135, 12, 474, 1501, 20, 13, 1216, 531, 48, 2203, 503, 288, 202, 202, 12849, 394, 13172, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
ChemFile chemFile = new ChemFile(); try { ChemObjectReader reader; logger.info("Loading: " + inFile); if (inFile.endsWith(".xyz")) { reader = new XYZReader(new FileReader(inFile)); logger.info("Expecting XYZ format..."); } else if (inFile.endsWith(".cml")) { String url = "file:" + System.getProperty("user.dir") + "/" + inFile; reader = new CMLReader(url); logger.info("Expecting CML format..."); } else if (inFile.endsWith(".pdb")) { reader = new PDBReader(new FileReader(inFile)); logger.info("Expecting PDB format..."); } else { reader = new MDLReader(new FileInputStream(inFile)); logger.info("Expecting MDL MolFile format...");
try { sdg.setMolecule((Molecule)mol.clone()); sdg.generateCoordinates(new Vector2d(0,1)); mv.setAtomContainer(sdg.getMolecule()); mv.display(); } catch(Exception exc) { System.out.println("*** Exit due to an unexpected error during coordinate generation ***"); exc.printStackTrace();
public Viewer(String inFile, boolean useJava3D, boolean use3D) { this.useJava3D = useJava3D; this.use3D = use3D; logger = new org.openscience.cdk.tools.LoggingTool(this.getClass().getName()); logger.dumpSystemProperties(); logger.dumpClasspath(); ChemFile chemFile = new ChemFile(); try { ChemObjectReader reader; logger.info("Loading: " + inFile); if (inFile.endsWith(".xyz")) { reader = new XYZReader(new FileReader(inFile)); logger.info("Expecting XYZ format..."); } else if (inFile.endsWith(".cml")) { String url = "file:" + System.getProperty("user.dir") + "/" + inFile; reader = new CMLReader(url); logger.info("Expecting CML format..."); } else if (inFile.endsWith(".pdb")) { reader = new PDBReader(new FileReader(inFile)); logger.info("Expecting PDB format..."); } else { reader = new MDLReader(new FileInputStream(inFile)); logger.info("Expecting MDL MolFile format..."); } chemFile = (ChemFile)reader.read((ChemObject)new ChemFile()); } catch(Exception exc) { logger.error("Error while reading file"); logger.error(exc.toString()); exc.printStackTrace(); System.exit(1); } ChemSequence chemSequence; ChemModel chemModel; SetOfMolecules setOfMolecules; logger.info(" number of sequences: " + chemFile.getChemSequenceCount()); for (int sequence = 0; sequence < chemFile.getChemSequenceCount(); sequence++) { chemSequence = chemFile.getChemSequence(sequence); logger.info(" number of models in sequence " + sequence + ": " + chemSequence.getChemModelCount()); for (int model = 0; model < chemSequence.getChemModelCount(); model++) { chemModel = chemSequence.getChemModel(model); setOfMolecules = chemModel.getSetOfMolecules(); logger.info(" number of molecules in model " + model + ": " + setOfMolecules.getMoleculeCount()); for (int i = 0; i < setOfMolecules.getMoleculeCount(); i++) { Molecule m = setOfMolecules.getMolecule(i); // use Accelerated viewer if 3D coords are available if (GeometryTools.has3DCoordinates(m) && use3D) { logger.info("Viewing with 3D viewer"); boolean viewed = false; if (useJava3D) { logger.debug(".. trying Java3D viewer"); try { JFrame frame = new JFrame("AcceleratedRenderer3DTest"); frame.getContentPane().setLayout(new BorderLayout()); AtomContainer atomContainer = chemModel.getAllInOneContainer(); AcceleratedRenderer3D renderer = new AcceleratedRenderer3D( new AcceleratedRenderer3DModel(atomContainer)); frame.getContentPane().add(renderer, BorderLayout.CENTER); frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); frame.setSize(500,500); frame.setVisible(true); logger.debug(".. done"); viewed = true; } catch (Exception e) { logger.error("Viewing did not succeed!"); logger.error(e.toString()); } } // try to view it without Java3D if (!viewed) { logger.debug(".. trying non-Java3D viewer"); MoleculeViewer3D mv = new MoleculeViewer3D(m); mv.display(); logger.debug(".. done"); } } else if (GeometryTools.has2DCoordinates(m)) { logger.info("Viewing with 2D viewer"); MoleculeViewer2D mv = new MoleculeViewer2D(m); mv.display(); } else { System.out.println("Molecule has no coordinates."); } } } } }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/0a06919741801d4e191547f8003d99a1b2ce6242/Viewer.java/clean/src/org/openscience/cdk/applications/Viewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4441, 264, 12, 780, 316, 812, 16, 1250, 999, 5852, 23, 40, 16, 1250, 999, 23, 40, 13, 288, 3639, 333, 18, 1202, 5852, 23, 40, 273, 999, 5852, 23, 40, 31, 3639, 333, 18, 1202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4441, 264, 12, 780, 316, 812, 16, 1250, 999, 5852, 23, 40, 16, 1250, 999, 23, 40, 13, 288, 3639, 333, 18, 1202, 5852, 23, 40, 273, 999, 5852, 23, 40, 31, 3639, 333, 18, 1202, ...
org.exist.xquery.parser.XQueryAST tmp182_AST = null; tmp182_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp182_AST);
org.exist.xquery.parser.XQueryAST tmp181_AST = null; tmp181_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp181_AST);
public final void rangeExpr() throws RecognitionException, TokenStreamException, XPathException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST rangeExpr_AST = null; additiveExpr(); astFactory.addASTChild(currentAST, returnAST); { switch ( LA(1)) { case LITERAL_to: { org.exist.xquery.parser.XQueryAST tmp182_AST = null; tmp182_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp182_AST); match(LITERAL_to); additiveExpr(); astFactory.addASTChild(currentAST, returnAST); break; } case EOF: case RPAREN: case EQ: case LITERAL_default: case LITERAL_collation: case RCURLY: case COMMA: case LITERAL_empty: case LITERAL_for: case LITERAL_let: case LITERAL_where: case LITERAL_return: case LITERAL_order: case LITERAL_ascending: case LITERAL_descending: case LITERAL_satisfies: case LITERAL_case: case LITERAL_else: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case RPPAREN: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } rangeExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = rangeExpr_AST; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/00430aa4dd6963441696c4ac7250593b74a38b39/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1048, 4742, 1435, 1216, 9539, 16, 3155, 1228, 503, 16, 10172, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 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, 727, 918, 1048, 4742, 1435, 1216, 9539, 16, 3155, 1228, 503, 16, 10172, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5...
if (match.getElement() != null && ((IJavaElement)match.getElement()).getElementType() != IJavaElement.PACKAGE_FRAGMENT && ((IJavaElement)match.getElement()).getElementType() != IJavaElement.PACKAGE_FRAGMENT_ROOT) { Object result = createSearchResult(match); if(result != null){ results.add(result);
if (match.getElement() != null){ int elementType = ((IJavaElement)match.getElement()).getElementType(); if (elementType != IJavaElement.PACKAGE_FRAGMENT && elementType != IJavaElement.PACKAGE_FRAGMENT_ROOT) { Object result = createSearchResult(match); if(result != null){ results.add(result); }
public Object executeSearch (CommandLine _commandLine) throws IOException { List results = new ArrayList(); try{ int context = -1; if(_commandLine.hasOption(Options.CONTEXT_OPTION)){ context = getContext(_commandLine.getValue(Options.CONTEXT_OPTION)); } String project = _commandLine.getValue(Options.NAME_OPTION); String scope = _commandLine.getValue(Options.SCOPE_OPTION); String file = _commandLine.getValue(Options.FILE_OPTION); String offset = _commandLine.getValue(Options.OFFSET_OPTION); String length = _commandLine.getValue(Options.LENGTH_OPTION); String pat = _commandLine.getValue(Options.PATTERN_OPTION); SearchPattern pattern = null; // element search if(file != null && offset != null && length != null){ Position position = new Position( file, Integer.parseInt(offset), Integer.parseInt(length)); IJavaElement element = getElement(position); if(element != null){ // user requested a contextual search. if(context == -1){ context = getElementContextualContext(element); } pattern = SearchPattern.createPattern(element, context); } // pattern search }else if(pat != null){ int type = getType(_commandLine.getValue(Options.TYPE_OPTION)); int matchType = (pat.indexOf('*') != -1 || pat.indexOf('?') != -1) ? SearchPattern.R_PATTERN_MATCH : SearchPattern.R_FULL_MATCH; pattern = SearchPattern.createPattern(pat, type, context, matchType); // bad search request }else{ throw new IllegalArgumentException( Services.getMessage("java_search.indeterminate")); } if(pattern != null){ IJavaProject javaProject = JavaUtils.getJavaProject(project); IType type = null; if(file.endsWith(".java")){ type = JavaUtils.getCompilationUnit(project, file).findPrimaryType(); } List matches = search(pattern, getScope(scope, javaProject, type)); for(Iterator ii = matches.iterator(); ii.hasNext();){ SearchMatch match = (SearchMatch)ii.next(); if (match.getElement() != null && ((IJavaElement)match.getElement()).getElementType() != IJavaElement.PACKAGE_FRAGMENT && ((IJavaElement)match.getElement()).getElementType() != IJavaElement.PACKAGE_FRAGMENT_ROOT) { Object result = createSearchResult(match); if(result != null){ results.add(result); } } } } }catch(Exception e){ return e; } return results; }
46034 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46034/9a1f3891caf8cfde0b620fc1c1ee63304a6891e0/SearchCommand.java/clean/src/java/org/eclim/plugin/jdt/command/search/SearchCommand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 1836, 2979, 261, 21391, 389, 3076, 1670, 13, 565, 1216, 1860, 225, 288, 565, 987, 1686, 273, 394, 2407, 5621, 565, 775, 95, 1377, 509, 819, 273, 300, 21, 31, 1377, 309, 2489...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 1836, 2979, 261, 21391, 389, 3076, 1670, 13, 565, 1216, 1860, 225, 288, 565, 987, 1686, 273, 394, 2407, 5621, 565, 775, 95, 1377, 509, 819, 273, 300, 21, 31, 1377, 309, 2489...
it = pop(); it2 = pop();
if (DEBUG) System.out.println("Long math: " + this); it = pop(); it2 = pop(); try {
public void sawOpcode(DismantleBytecode dbc, int seen) { int register, intConstant; JavaClass cls; String signature; Item it, it2, it3; Constant cons; if (dbc.getPC() == jumpTarget) { jumpTarget = -1; if (!jumpStack.empty()) { List<Item> stackToMerge = jumpStack.pop(); // merge stacks if (stack.size() != stackToMerge.size()) { if (DEBUG) { System.out.println("Bad merging stacks"); System.out.println("current stack: " + stack); System.out.println("jump stack: " + stackToMerge); } } else { if (DEBUG) { System.out.println("Merging stacks"); System.out.println("current stack: " + stack); System.out.println("jump stack: " + stackToMerge); } for(int i = 0; i < stack.size(); i++) stack.set(i, Item.merge(stack.get(i), stackToMerge.get(i))); if (DEBUG) { System.out.println("merged stack: " + stack); } } } } try { switch (seen) { case ALOAD: pushByLocalObjectLoad(dbc, dbc.getRegisterOperand()); break; case ALOAD_0: case ALOAD_1: case ALOAD_2: case ALOAD_3: pushByLocalObjectLoad(dbc, seen - ALOAD_0); break; case DLOAD: pushByLocalLoad("D", dbc.getRegisterOperand()); break; case DLOAD_0: case DLOAD_1: case DLOAD_2: case DLOAD_3: pushByLocalLoad("D", seen - DLOAD_0); break; case FLOAD: pushByLocalLoad("F", dbc.getRegisterOperand()); break; case FLOAD_0: case FLOAD_1: case FLOAD_2: case FLOAD_3: pushByLocalLoad("F", seen - FLOAD_0); break; case ILOAD: pushByLocalLoad("I", dbc.getRegisterOperand()); break; case ILOAD_0: case ILOAD_1: case ILOAD_2: case ILOAD_3: pushByLocalLoad("I", seen - ILOAD_0); break; case LLOAD: pushByLocalLoad("J", dbc.getRegisterOperand()); break; case LLOAD_0: case LLOAD_1: case LLOAD_2: case LLOAD_3: pushByLocalLoad("J", seen - LLOAD_0); break; case GETSTATIC: { Item i = new Item(dbc.getSigConstantOperand(), FieldAnnotation.fromReferencedField(dbc)); push(i); break; } case LDC: case LDC_W: case LDC2_W: cons = dbc.getConstantRefOperand(); pushByConstant(dbc, cons); break; case INSTANCEOF: pop(); push(new Item("I")); break; case ARETURN: case DRETURN: case FRETURN: case IFEQ: case IFNE: case IFLT: case IFLE: case IFGT: case IFGE: case IFNONNULL: case IFNULL: case IRETURN: case LOOKUPSWITCH: case LRETURN: case TABLESWITCH: seenTransferOfControl = true; pop(); break; case MONITORENTER: case MONITOREXIT: case POP: case PUTSTATIC: pop(); break; case IF_ACMPEQ: case IF_ACMPNE: case IF_ICMPEQ: case IF_ICMPNE: case IF_ICMPLT: case IF_ICMPLE: case IF_ICMPGT: case IF_ICMPGE: seenTransferOfControl = true; pop(2); break; case POP2: case PUTFIELD: pop(2); break; case IALOAD: case SALOAD: pop(2); push(new Item("I")); break; case DUP: it = pop(); push(it); push(it); break; case DUP2: it = pop(); it2 = pop(); push(it2); push(it); push(it2); push(it); break; case DUP_X1: it = pop(); it2 = pop(); push(it); push(it2); push(it); break; case DUP_X2: it = pop(); it2 = pop(); signature = it2.getSignature(); if (signature.equals("J") || signature.equals("D")) { push(it); push(it2); push(it); } else { it3 = pop(); push(it); push(it3); push(it2); push(it); } break; case DUP2_X1: it = pop(); it2 = pop(); signature = it.getSignature(); if (signature.equals("J") || signature.equals("D")) { push(it); push(it2); push(it); } else { it3 = pop(); push(it2); push(it); push(it3); push(it2); push(it); } break; case IINC: register = dbc.getRegisterOperand(); it = getLVValue( register ); it2 = new Item("I", new Integer(dbc.getIntConstant())); pushByIntMath( IADD, it, it2); pushByLocalStore(register); break; case ATHROW: pop(); break; case CHECKCAST: case NOP: break; case RET: case RETURN: seenTransferOfControl = true; break; case GOTO: case GOTO_W: //It is assumed that no stack items are present when seenTransferOfControl = true; if (getStackDepth() > 0) { jumpStack.push(new ArrayList<Item>(stack)); pop(); jumpTarget = dbc.getBranchTarget(); } break; case SWAP: Item i1 = pop(); Item i2 = pop(); push(i1); push(i2); break; case ICONST_M1: case ICONST_0: case ICONST_1: case ICONST_2: case ICONST_3: case ICONST_4: case ICONST_5: push(new Item("I", new Integer(seen-ICONST_0))); break; case LCONST_0: case LCONST_1: push(new Item("J", new Long(seen-LCONST_0))); break; case DCONST_0: case DCONST_1: push(new Item("D", new Double(seen-DCONST_0))); break; case FCONST_0: case FCONST_1: case FCONST_2: push(new Item("F", new Float(seen-FCONST_0))); break; case ACONST_NULL: push(new Item()); break; case ASTORE: case DSTORE: case FSTORE: case ISTORE: case LSTORE: pushByLocalStore(dbc.getRegisterOperand()); break; case ASTORE_0: case ASTORE_1: case ASTORE_2: case ASTORE_3: pushByLocalStore(seen - ASTORE_0); break; case DSTORE_0: case DSTORE_1: case DSTORE_2: case DSTORE_3: pushByLocalStore(seen - DSTORE_0); break; case FSTORE_0: case FSTORE_1: case FSTORE_2: case FSTORE_3: pushByLocalStore(seen - FSTORE_0); break; case ISTORE_0: case ISTORE_1: case ISTORE_2: case ISTORE_3: pushByLocalStore(seen - ISTORE_0); break; case LSTORE_0: case LSTORE_1: case LSTORE_2: case LSTORE_3: pushByLocalStore(seen - LSTORE_0); break; case GETFIELD: pop(); push(new Item(dbc.getSigConstantOperand(), FieldAnnotation.fromReferencedField(dbc))); break; case ARRAYLENGTH: pop(); push(new Item("I")); break; case BALOAD: { pop(2); Item v = new Item("I"); v.setSpecialKind(Item.BYTE_ARRAY_LOAD); push(v); break; } case CALOAD: pop(2); push(new Item("I")); break; case DALOAD: pop(2); push(new Item("D")); break; case FALOAD: pop(2); push(new Item("F")); break; case LALOAD: pop(2); push(new Item("J")); break; case AASTORE: case BASTORE: case CASTORE: case DASTORE: case FASTORE: case IASTORE: case LASTORE: case SASTORE: pop(3); break; case BIPUSH: case SIPUSH: push(new Item("I", new Integer((int)dbc.getIntConstant()))); break; case IADD: case ISUB: case IMUL: case IDIV: case IAND: case IOR: case IXOR: case ISHL: case ISHR: case IREM: case IUSHR: it = pop(); it2 = pop(); pushByIntMath(seen, it, it2); break; case INEG: it = pop(); if (it.getConstant() != null) { push(new Item("I", new Integer(-((Integer)it.getConstant()).intValue()))); } else { push(new Item("I")); } break; case LNEG: it = pop(); if (it.getConstant() != null) { push(new Item("J", new Long(-((Long)it.getConstant()).longValue()))); } else { push(new Item("J")); } break; case DNEG: it = pop(); if (it.getConstant() != null) { push(new Item("D", new Double(-((Double)it.getConstant()).doubleValue()))); } else { push(new Item("D")); } break; case LADD: case LSUB: case LMUL: case LDIV: case LAND: case LOR: case LXOR: case LSHL: case LSHR: case LREM: case LUSHR: it = pop(); it2 = pop(); pushByLongMath(seen, it, it2); break; case LCMP: it = pop(); it2 = pop(); if ((it.getConstant() != null) && it2.getConstant() != null) { long l = ((Long)it.getConstant()).longValue(); long l2 = ((Long)it.getConstant()).longValue(); if (l2 < l) push(new Item("I", new Integer(-1))); else if (l2 > l) push(new Item("I", new Integer(1))); else push(new Item("I", new Integer(0))); } else { push(new Item("I")); } break; case FCMPG: case FCMPL: it = pop(); it2 = pop(); if ((it.getConstant() != null) && it2.getConstant() != null) { float f = ((Float)it.getConstant()).floatValue(); float f2 = ((Float)it.getConstant()).floatValue(); if (f2 < f) push(new Item("I", new Integer(-1))); else if (f2 > f) push(new Item("I", new Integer(1))); else push(new Item("I", new Integer(0))); } else { push(new Item("I")); } break; case DCMPG: case DCMPL: it = pop(); it2 = pop(); if ((it.getConstant() != null) && it2.getConstant() != null) { double d = ((Double)it.getConstant()).doubleValue(); double d2 = ((Double)it.getConstant()).doubleValue(); if (d2 < d) push(new Item("I", new Integer(-1))); else if (d2 > d) push(new Item("I", new Integer(1))); else push(new Item("I", new Integer(0))); } else { push(new Item("I")); } break; case FADD: case FSUB: case FMUL: case FDIV: it = pop(); it2 = pop(); pushByFloatMath(seen, it, it2); break; case DADD: case DSUB: case DMUL: case DDIV: case DREM: it = pop(); it2 = pop(); pushByDoubleMath(seen, it, it2); break; case I2B: it = pop(); if (it.getConstant() != null) { push(new Item("I", new Integer((int)((byte)((Integer)it.getConstant()).intValue())))); } else { push(new Item("I")); } break; case I2C: it = pop(); if (it.getConstant() != null) { push(new Item("I", new Integer((int)((char)((Integer)it.getConstant()).intValue())))); } else { push(new Item("I")); } break; case I2D: it = pop(); if (it.getConstant() != null) { push(new Item("D", new Double((double)((Integer)it.getConstant()).intValue()))); } else { push(new Item("D")); } break; case I2F: it = pop(); if (it.getConstant() != null) { push(new Item("F", new Float((float)((Integer)it.getConstant()).intValue()))); } else { push(new Item("F")); } break; case I2L: it = pop(); if (it.getConstant() != null) { push(new Item("J", new Long((long)((Integer)it.getConstant()).intValue()))); } else { push(new Item("J")); } break; case I2S: it = pop(); if (it.getConstant() != null) { push(new Item("I", new Integer((int)((short)((Integer)it.getConstant()).intValue())))); } else { push(new Item("I")); } break; case D2I: it = pop(); if (it.getConstant() != null) { push(new Item("I", new Integer((int)((Integer)it.getConstant()).intValue()))); } else { push(new Item("I")); } break; case D2F: it = pop(); if (it.getConstant() != null) { push(new Item("F", new Float((float)((Double)it.getConstant()).doubleValue()))); } else { push(new Item("F")); } break; case D2L: it = pop(); if (it.getConstant() != null) { push(new Item("J", new Long((long)((Double)it.getConstant()).doubleValue()))); } else { push(new Item("J")); } break; case L2I: it = pop(); if (it.getConstant() != null) { push(new Item("I", new Integer((int)((Long)it.getConstant()).longValue()))); } else { push(new Item("I")); } break; case L2D: it = pop(); if (it.getConstant() != null) { push(new Item("D", new Double((double)((Long)it.getConstant()).longValue()))); } else { push(new Item("D")); } break; case L2F: it = pop(); if (it.getConstant() != null) { push(new Item("F", new Float((float)((Long)it.getConstant()).longValue()))); } else { push(new Item("F")); } break; case F2I: it = pop(); if (it.getConstant() != null) { push(new Item("I", new Integer((int)((Float)it.getConstant()).floatValue()))); } else { push(new Item("I")); } break; case F2D: it = pop(); if (it.getConstant() != null) { push(new Item("D", new Double((double)((Float)it.getConstant()).floatValue()))); } else { push(new Item("D")); } break; case NEW: pushBySignature(dbc.getClassConstantOperand()); break; case NEWARRAY: pop(); signature = BasicType.getType((byte)dbc.getIntConstant()).getSignature(); pushBySignature(signature); break; // According to the VM Spec 4.4.1, anewarray and multianewarray // can refer to normal class/interface types (encoded in // "internal form"), or array classes (encoded as signatures // beginning with "["). case ANEWARRAY: pop(); signature = dbc.getClassConstantOperand(); if (!signature.startsWith("[")) { signature = "L" + signature + ";"; } pushBySignature(signature); break; case MULTIANEWARRAY: int dims = dbc.getIntConstant(); while ((dims--) > 0) { pop(); } signature = dbc.getClassConstantOperand(); if (!signature.startsWith("[")) { signature = "L" + signature + ";"; } pushBySignature(signature); break; case AALOAD: pop(); it = pop(); pushBySignature(it.getElementSignature()); break; case JSR: push(new Item("")); //? break; case INVOKEINTERFACE: case INVOKESPECIAL: case INVOKESTATIC: case INVOKEVIRTUAL: pushByInvoke(dbc, seen != INVOKESTATIC); if (dbc.getNameConstantOperand().equals("nextInt")) { Item i = pop(); i.setSpecialKind(Item.RANDOM_INT); push(i); } break; default: throw new UnsupportedOperationException("OpCode not supported yet" ); } }/* // FIXME: This class currently relies on catching runtime exceptions. // This should be fixed so they don't occur. catch (RuntimeException e) { throw e; }*/ catch (Exception e) { //If an error occurs, we clear the stack and locals. one of two things will occur. //Either the client will expect more stack items than really exist, and so they're condition check will fail, //or the stack will resync with the code. But hopefully not false positives clear(); } finally { if (DEBUG) System.out.println(OPCODE_NAMES[seen] + " stack depth: " + getStackDepth()); } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/0c7b74e6fac05d8abbdd2fb0e26efa97899fa189/OpcodeStack.java/clean/findbugs/src/java/edu/umd/cs/findbugs/OpcodeStack.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 202, 482, 918, 19821, 22808, 12, 1669, 81, 970, 298, 858, 16651, 9881, 16, 509, 5881, 13, 288, 3196, 202, 474, 1744, 16, 509, 6902, 31, 3196, 202, 5852, 797, 2028, 31, 3196, 202, 780, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 202, 482, 918, 19821, 22808, 12, 1669, 81, 970, 298, 858, 16651, 9881, 16, 509, 5881, 13, 288, 3196, 202, 474, 1744, 16, 509, 6902, 31, 3196, 202, 5852, 797, 2028, 31, 3196, 202, 780, ...
30, context.smartFormatDate(info.getLastlogin()));
LABEL_LENGTH, context.smartFormatDate(info.getLastlogin()));
protected void printUserStatus(Context context, UserInfo info) throws ObjectNotFoundException, UnexpectedException { PrintWriter out = context.getOut(); MessageFormatter formatter = context.getMessageFormatter(); PrintUtils.printLabelled(out, formatter.format("status.user.userid"), 30, info.getUserid()); PrintUtils.printLabelled(out, formatter.format("status.user.id"), 30, Long.toString(info.getId())); PrintUtils.printLabelled(out, formatter.format("status.user.name"), 30, info.getName()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.address1"), 30, info.getAddress1()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.address2"), 30, info.getAddress2()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.address3"), 30, info.getAddress3()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.address4"), 30, info.getAddress4()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.phone1"), 30, info.getPhoneno1()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.phone2"), 30, info.getPhoneno2()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.email1"), 30, info.getEmail1()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.email2"), 30, info.getEmail2()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.url"), 30, info.getUrl()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.locale"), 30, info.getLocale().toString()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.time.zone"), 30, info.getTimeZone().getID()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.created"), 30, context.smartFormatDate(info.getCreated())); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.lastlogin"), 30, context.smartFormatDate(info.getLastlogin())); out.println(); // Has the user left a note? // try { out.print(context.getSession().readMagicMessage(MessageManager.ATTR_NOTE, info.getId()).getMessage().getBody()); out.println(); } catch (UnexpectedException e) { // } // List memberships // out.println(); out.println(formatter.format("status.user.memberof")); NameAssociation[] memberships = context.getSession().listMemberships(info.getId()); int top = memberships.length; for(int idx = 0; idx < top; ++idx) out.println(memberships[idx].getName()); }
3907 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3907/5d6559a6f0b4a8181d31aeec4b1b3a6d16ac7415/Status.java/clean/kom/java/nu/rydin/kom/frontend/text/commands/Status.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1172, 1299, 1482, 12, 1042, 819, 16, 25003, 1123, 13, 202, 15069, 1033, 3990, 16, 9649, 503, 202, 95, 202, 202, 5108, 2289, 596, 273, 819, 18, 588, 1182, 5621, 202, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1172, 1299, 1482, 12, 1042, 819, 16, 25003, 1123, 13, 202, 15069, 1033, 3990, 16, 9649, 503, 202, 95, 202, 202, 5108, 2289, 596, 273, 819, 18, 588, 1182, 5621, 202, 202,...
else
else if (treeNode.atom != null && treeNode.atom.flags[CDKConstants.VISITED])
private String getSphereCode(Vector sphereNodes) throws org.openscience.cdk.exception.CDKException { if (sphereNodes == null || sphereNodes.size() < 1) { return ""; } Atom node = null; TreeNode treeNode = null; StringBuffer code = new StringBuffer(); /* * append the tree node code to the HOSECode in * their now determined order, using commas to * separate nodes from different branches */ Atom branch = ((TreeNode) (((TreeNode) sphereNodes.elementAt(0)).source)).atom; Atom nextBranch; int start = 0; StringBuffer tempCode = null; nextBranch = null; for (int i = 0; i < sphereNodes.size(); i++) { treeNode = (TreeNode) sphereNodes.elementAt(i); tempCode = new StringBuffer(); if (!treeNode.source.stopper && treeNode.source.atom != branch) { branch = treeNode.source.atom; code.append(","); } if (!treeNode.source.stopper && treeNode.source.atom == branch) { if (treeNode.bondType <= 4) { tempCode.append(bondSymbols[(int) treeNode.bondType]); } else { throw new CDKException("Unknown bond type"); } if (!treeNode.atom.flags[CDKConstants.VISITED]) { tempCode.append(getElementSymbol(treeNode.symbol)); } else { tempCode.append("&"); treeNode.stopper = true; } code.append(tempCode); treeNode.hSymbol = tempCode.toString(); } treeNode.atom.flags[CDKConstants.VISITED] = true; if (treeNode.source.stopper) treeNode.stopper = true; } code.append(sphereDelimiters[sphere - 1]); return code.toString(); }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/f6fc53e674e96ec3662e440cd18f84a80e53121f/HOSECodeGenerator.java/clean/src/org/openscience/cdk/tools/HOSECodeGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 1322, 9346, 1085, 12, 5018, 20041, 3205, 13, 1216, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 4064, 18, 39, 3398, 503, 202, 95, 202, 202, 430, 261, 87, 9346, 3205, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 1322, 9346, 1085, 12, 5018, 20041, 3205, 13, 1216, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 4064, 18, 39, 3398, 503, 202, 95, 202, 202, 430, 261, 87, 9346, 3205, 4...
logger = new org.openscience.cdk.tools.LoggingTool( this.getClass().getName());
logger = new org.openscience.cdk.tools.LoggingTool(this);
public CMLHandler(CDOInterface cdo) { logger = new org.openscience.cdk.tools.LoggingTool( this.getClass().getName()); conv = new CMLCoreModule(cdo); userConventions = new Hashtable(); xpath = new CMLStack(); conventionStack = new CMLStack(); }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/bbeef9e56c9fda56c154c99294fb490aaa5557cb/CMLHandler.java/clean/src/org/openscience/cdk/io/cml/CMLHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 385, 1495, 1503, 12, 39, 3191, 1358, 276, 2896, 13, 288, 3639, 1194, 273, 394, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 6642, 18, 7735, 6364, 12, 15604, 333, 18, 588, 797, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 385, 1495, 1503, 12, 39, 3191, 1358, 276, 2896, 13, 288, 3639, 1194, 273, 394, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 6642, 18, 7735, 6364, 12, 15604, 333, 18, 588, 797, 7...
public Map<IFile, Boolean> getGeneratedFiles() { return _generatedFiles; }
public Map<IFile, Boolean> getGeneratedFiles(){ return _generatedFiles; }
public Map<IFile, Boolean> getGeneratedFiles() { return _generatedFiles; }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/baf433f0226e8b9036b18a28d560e5a42cb8b949/ProcessorEnvImpl.java/buggy/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/env/ProcessorEnvImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1635, 32, 45, 812, 16, 3411, 34, 4202, 336, 7823, 2697, 1435, 3639, 288, 327, 389, 11168, 2697, 31, 289, 2, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1635, 32, 45, 812, 16, 3411, 34, 4202, 336, 7823, 2697, 1435, 3639, 288, 327, 389, 11168, 2697, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (bond.getAtomAt(0).getPoint2d() == null || bond.getAtomAt(1).getPoint2d() == null)
if (r2dm.getRenderingCoordinate(bond.getAtomAt(0)) == null || r2dm.getRenderingCoordinate(bond.getAtomAt(1)) == null)
public void paintBond(org.openscience.cdk.interfaces.IBond bond, Color bondColor, Graphics2D graphics) { if (bond.getAtomAt(0).getPoint2d() == null || bond.getAtomAt(1).getPoint2d() == null) { return; } if (bond.getStereo() != CDKConstants.STEREO_BOND_NONE && bond.getStereo() != CDKConstants.STEREO_BOND_UNDEFINED) { // Draw stero information if available if (bond.getStereo() >= CDKConstants.STEREO_BOND_UP) { paintWedgeBond(bond, bondColor, graphics); } else { paintDashedWedgeBond(bond, bondColor, graphics); } } else { // Draw bond order when no stereo info is available if (bond.getOrder() == CDKConstants.BONDORDER_SINGLE) { paintSingleBond(bond, bondColor, graphics); } else if (bond.getOrder() == CDKConstants.BONDORDER_DOUBLE) { paintDoubleBond(bond, bondColor, graphics); } else if (bond.getOrder() == CDKConstants.BONDORDER_TRIPLE) { paintTripleBond(bond, bondColor, graphics); } else { // paint all other bonds as single bonds paintSingleBond(bond, bondColor, graphics); } } }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/948cfaa939b42d113ae5ceb65b72ea94d1b4e017/AbstractRenderer2D.java/buggy/src/org/openscience/cdk/renderer/AbstractRenderer2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12574, 9807, 12, 3341, 18, 20346, 71, 6254, 18, 71, 2883, 18, 15898, 18, 45, 9807, 8427, 16, 5563, 8427, 2957, 16, 16830, 22, 40, 17313, 13, 202, 95, 202, 202, 430, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12574, 9807, 12, 3341, 18, 20346, 71, 6254, 18, 71, 2883, 18, 15898, 18, 45, 9807, 8427, 16, 5563, 8427, 2957, 16, 16830, 22, 40, 17313, 13, 202, 95, 202, 202, 430, 261...
if (ext == null) return null;
if (ext == null) { return null; }
private FileEditorMapping getMappingFor(String ext) { if (ext == null) return null; String key = mappingKeyFor(ext); return typeEditorMappings.get(key); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/EditorRegistry.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/EditorRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1387, 6946, 3233, 22575, 1290, 12, 780, 1110, 13, 288, 3639, 309, 261, 408, 422, 446, 13, 5411, 327, 446, 31, 3639, 514, 498, 273, 2874, 653, 1290, 12, 408, 1769, 3639, 327, 618, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1387, 6946, 3233, 22575, 1290, 12, 780, 1110, 13, 288, 3639, 309, 261, 408, 422, 446, 13, 5411, 327, 446, 31, 3639, 514, 498, 273, 2874, 653, 1290, 12, 408, 1769, 3639, 327, 618, ...
public BaseInspectionVisitor buildVisitor() {
public BaseInspectionVisitor buildVisitor(){
public BaseInspectionVisitor buildVisitor() { return new CStyleArrayDeclarationVisitor(); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/bd57f07c33c419f20715b114b71a7e93425b34c9/CStyleArrayDeclarationInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/style/CStyleArrayDeclarationInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3360, 14985, 7413, 1361, 7413, 1435, 95, 3639, 327, 394, 385, 2885, 1076, 6094, 7413, 5621, 565, 289, 2, 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, 377, 1071, 3360, 14985, 7413, 1361, 7413, 1435, 95, 3639, 327, 394, 385, 2885, 1076, 6094, 7413, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
assertEquals( 1, databaseService.sproc_AddUserRole( USER_TEST_ID, ROLE_TEST_ID ) );
public void test_deleteUserRole() { for( int i = 0; i < databaseServices.length; i++ ) { DatabaseService databaseService = databaseServices[i]; assertEquals( 0, databaseService.sproc_DelUserRoles( USER_NEXT_FREE_ID, ROLE_NEXT_FREE_ID ) ); assertEquals( 1, databaseService.sproc_AddUserRole( USER_TEST_ID, ROLE_TEST_ID ) ); assertEquals( 1, databaseService.sproc_DelUserRoles( USER_TEST_ID, ROLE_TEST_ID ) ); } }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/960c2d76a39d3cdba8f4288371993c8dc37ed4e8/TestDatabaseService.java/clean/server/src/imcode/server/db/TestDatabaseService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 67, 3733, 1299, 2996, 1435, 288, 3639, 364, 12, 509, 277, 273, 374, 31, 277, 411, 2063, 5676, 18, 2469, 31, 277, 9904, 262, 288, 5411, 5130, 1179, 2063, 1179, 273, 2063...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 3733, 1299, 2996, 1435, 288, 3639, 364, 12, 509, 277, 273, 374, 31, 277, 411, 2063, 5676, 18, 2469, 31, 277, 9904, 262, 288, 5411, 5130, 1179, 2063, 1179, 273, 2063...
} LinkedList list = leftTuple.getLinkedTuples(); if( list != null ) {
} else { LinkedList list = leftTuple.getLinkedTuples();
public void retractTuple(final ReteTuple leftTuple, final PropagationContext context, final InternalWorkingMemory workingMemory) { final BetaMemory memory = (BetaMemory) workingMemory.getNodeMemory( this ); memory.remove( workingMemory, leftTuple ); final Map matches = leftTuple.getTupleMatches(); if ( !matches.isEmpty() ) { for ( final Iterator it = matches.values().iterator(); it.hasNext(); ) { final TupleMatch tupleMatch = (TupleMatch) it.next(); tupleMatch.getObjectMatches().remove( tupleMatch ); } } LinkedList list = leftTuple.getLinkedTuples(); if( list != null ) { for ( LinkedListNode node = list.getFirst(); node != null; node = node.getNext() ) { ReteTuple tuple = (ReteTuple) ((LinkedListObjectWrapper) node).getObject(); tuple.retractTuple( context, workingMemory ); } } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/c5dd3fac90b69731f45ea30ace07fcf3cc995ba5/NotNode.java/buggy/drools-core/src/main/java/org/drools/reteoo/NotNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 283, 1575, 9038, 12, 6385, 534, 12865, 9038, 2002, 9038, 16, 11794, 727, 1186, 9095, 367, 1042, 819, 16, 11794, 727, 3186, 14836, 6031, 5960, 6031, 13, 288, 3639, 727, 16393, 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, 283, 1575, 9038, 12, 6385, 534, 12865, 9038, 2002, 9038, 16, 11794, 727, 1186, 9095, 367, 1042, 819, 16, 11794, 727, 3186, 14836, 6031, 5960, 6031, 13, 288, 3639, 727, 16393, 6...
replace(cv, desc);
replace(cv, desc); break; case Constants.PUTFIELD: pop(cv, desc); cv.visitInsn(Constants.POP); break; case Constants.GETSTATIC: replace(cv, desc); break; case Constants.PUTSTATIC: pop(cv, desc); break; }
public void visitFieldInsn(int opcode, String owner, String name, String desc) { if (checkName(owner) || checkDesc(desc)) { // System.err.println("visitFieldInsn " + owner + ", " + desc); if (opcode == Constants.GETFIELD || opcode == Constants.PUTFIELD) cv.visitInsn(Constants.POP); replace(cv, desc); } else { cv.visitFieldInsn(opcode, owner, name, desc); } }
4182 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4182/3be40de22d3f9ab4149687671e71ebfd64448b65/DepKillTransformer.java/buggy/jarjar/src/main/com/tonicsystems/jarjar/DepKillTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 974, 11796, 12, 474, 11396, 16, 514, 3410, 16, 514, 508, 16, 514, 3044, 13, 3639, 288, 5411, 309, 261, 1893, 461, 12, 8443, 13, 747, 866, 4217, 12, 5569, 3719, 288, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 974, 11796, 12, 474, 11396, 16, 514, 3410, 16, 514, 508, 16, 514, 3044, 13, 3639, 288, 5411, 309, 261, 1893, 461, 12, 8443, 13, 747, 866, 4217, 12, 5569, 3719, 288, 7...
if (event.getProperty().equals(PartPane.PROP_ZOOMED)) { boolean standby = !((Boolean)event.getNewValue()).booleanValue(); setStandby(standby); }
if (handleZoomEvents) { if (event.getProperty().equals(PartPane.PROP_ZOOMED)) { boolean standby = !((Boolean)event.getNewValue()).booleanValue(); setStandby(standby); } }
private void addPaneListener() { ((PartSite)getSite()).getPane().addPropertyChangeListener(new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(PartPane.PROP_ZOOMED)) { boolean standby = !((Boolean)event.getNewValue()).booleanValue(); setStandby(standby); } } }); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/68f2ee9d1740c8308c8e11f0722f7902a7326582/ViewIntroAdapterPart.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ViewIntroAdapterPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 8485, 2223, 1435, 288, 1082, 202, 12443, 1988, 4956, 13, 588, 4956, 1435, 2934, 588, 8485, 7675, 1289, 1396, 15744, 12, 2704, 467, 1396, 15744, 1435, 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, 1152, 918, 527, 8485, 2223, 1435, 288, 1082, 202, 12443, 1988, 4956, 13, 588, 4956, 1435, 2934, 588, 8485, 7675, 1289, 1396, 15744, 12, 2704, 467, 1396, 15744, 1435, 288, 1082, 202, ...
removeEdge();
DataMapTree dmt = (DataMapTree)contextMenu.getInvoker(); dmt.validateEntry();
public void actionPerformed(ActionEvent e) { removeEdge(); }
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/3469b900d739ba4b8f2ee21abb6fd2b075ff395c/DataMapTree.java/buggy/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/datamap/DataMapTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 5397, 288, 13491, 1910, 863, 2471, 302, 1010, 273, 261, 31982, 2471, 13, 2472, 4599, 18, 588, 24455, 5621, 302, 1010, 18, 5662, 1622, 5621, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1171, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 5397, 288, 13491, 1910, 863, 2471, 302, 1010, 273, 261, 31982, 2471, 13, 2472, 4599, 18, 588, 24455, 5621, 302, 1010, 18, 5662, 1622, 5621, 107...
if (charset == null) charset = "";
if (charset == null) { charset = ""; }
private void createCharset(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(3, false); layout.marginHeight = layout.marginWidth = 0; composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); composite.setLayout(layout); Label label = new Label(composite, SWT.NONE); label.setFont(parent.getFont()); label.setText(WorkbenchMessages.ContentTypes_characterSetLabel); charsetField = new Text(composite, SWT.SINGLE | SWT.BORDER); charsetField.setFont(parent.getFont()); charsetField.setEnabled(false); GridData data = new GridData(GridData.FILL_HORIZONTAL); charsetField.setLayoutData(data); setButton = new Button(composite, SWT.PUSH); setButton.setFont(parent.getFont()); setButton .setText(WorkbenchMessages.ContentTypes_characterSetUpdateLabel); setButton.setEnabled(false); setButton.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) * * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ public void widgetSelected(SelectionEvent e) { try { String text = charsetField.getText().trim(); if (text.length() == 0) text = null; getSelectedContentType().setDefaultCharset(text); setButton.setEnabled(false); } catch (CoreException e1) { ErrorDialog.openError(e.widget.getDisplay() .getActiveShell(), null, null, e1.getStatus()); } } }); charsetField.addKeyListener(new KeyAdapter() { /* * (non-Javadoc) * * @see org.eclipse.swt.events.KeyAdapter#keyReleased(org.eclipse.swt.events.KeyEvent) */ public void keyReleased(KeyEvent e) { IContentType contentType = getSelectedContentType(); String charset = contentType.getDefaultCharset(); if (charset == null) charset = ""; //$NON-NLS-1$ setButton.setEnabled(!charset.equals(charsetField.getText())); } }); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ContentTypesPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ContentTypesPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 752, 9652, 12, 9400, 982, 13, 288, 3639, 14728, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 3639, 7145, 3744, 3511, 273, 394, 7145, 3744, 12, 23, 16, 629,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 752, 9652, 12, 9400, 982, 13, 288, 3639, 14728, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 3639, 7145, 3744, 3511, 273, 394, 7145, 3744, 12, 23, 16, 629,...
if (startOnLoad == null || (Boolean.getBoolean(startOnLoad))) {
if (startOnLoad == null || (Boolean.valueOf(startOnLoad).booleanValue())) {
public void init(ServletConfig cfg) throws javax.servlet.ServletException { super.init(cfg); log("Quartz Initializer Servlet loaded, initializing Scheduler..."); StdSchedulerFactory factory; try { String configFile = cfg.getInitParameter("config-file"); String shutdownPref = cfg.getInitParameter("shutdown-on-unload"); if (shutdownPref != null) performShutdown = Boolean.valueOf(shutdownPref).booleanValue(); // get Properties if (configFile != null) { factory = new StdSchedulerFactory(configFile); } else { factory = new StdSchedulerFactory(); } // Should the Scheduler being started now or later String startOnLoad = cfg .getInitParameter("start-scheduler-on-load"); /* * If the "start-scheduler-on-load" init-parameter is not specified, * the scheduler will be started. This is to maintain backwards * compatability. */ if (startOnLoad == null || (Boolean.getBoolean(startOnLoad))) { // Start now scheduler = factory.getScheduler(); scheduler.start(); log("Scheduler has been started..."); } else { log("Scheduler has not been started. Use scheduler.start()"); } log("Storing the Quartz Scheduler Factory in the servlet context at key: " + QUARTZ_FACTORY_KEY); cfg.getServletContext().setAttribute(QUARTZ_FACTORY_KEY, factory); } catch (Exception e) { log("Quartz Scheduler failed to initialize: " + e.toString()); throw new ServletException(e); } }
15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/a3f8a5f3c572aa3f7c40b9bf7b2496c98387d1f5/QuartzInitializerServlet.java/buggy/src/java/org/quartz/ee/servlet/QuartzInitializerServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1208, 12, 4745, 809, 2776, 13, 1216, 6863, 18, 23231, 18, 4745, 503, 288, 202, 202, 9565, 18, 2738, 12, 7066, 1769, 202, 202, 1330, 2932, 12099, 94, 4378, 3926, 7971, 420...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1208, 12, 4745, 809, 2776, 13, 1216, 6863, 18, 23231, 18, 4745, 503, 288, 202, 202, 9565, 18, 2738, 12, 7066, 1769, 202, 202, 1330, 2932, 12099, 94, 4378, 3926, 7971, 420...
boolean multiple = items.length > 1 || list.getSelectedValue() instanceof GroupFactory;
boolean multiple = items.length > 1 || list.getSelectedValue() instanceof GroupWrapper;
public void mouseReleased(MouseEvent evt) { if (evt.getClickCount() == 1 && evt.isPopupTrigger()) { int index = list.locationToIndex(evt.getPoint()); if (!list.isSelectedIndex(index)) { list.setSelectedIndex(index); } } if (evt.isPopupTrigger() && list.getSelectedIndex() > -1) { // show menus final Object[] items = list.getSelectedValues(); boolean multiple = items.length > 1 || list.getSelectedValue() instanceof GroupFactory; final JPopupMenu menu = new JPopupMenu(); JMenuItem item = new JMenuItem(multiple?"Message all...":"Message");// item.setEnabled(multiple); item.addActionListener(new ActionListener() { /** * Invoked when an action occurs. */ public void actionPerformed(ActionEvent e) { // do the do List <ContactWrapper> allContacts = new ArrayList<ContactWrapper>(items.length); for (Object selected : items) { if (selected instanceof ContactWrapper) { allContacts.add((ContactWrapper) selected); } else if (selected instanceof GroupFactory) { GroupWrapper group = (GroupWrapper) selected; for (int j = 0; j < group.size(); j++) { if (group.get(j) instanceof ContactWrapper) allContacts.add((ContactWrapper) group.get(j)); } } else { System.out.println("This is weird: " + selected.getClass() + ": " + selected); } } if (allContacts.size() == 1) { MessageWindow.openWindow(allContacts.get(0), false); } else MessageGroupWindow.openWindow(allContacts.toArray(new ContactWrapper[allContacts.size()])); } }); menu.add(item); if (list.getSelectedValue() instanceof ContactWrapper) { final JMenuItem itemHide = new JMenuItem("Hide/Unhide (Keep Offline)"); final boolean hide = !((ContactWrapper)list.getSelectedValue()).getPreferences().isHideFromList(); itemHide.addActionListener(new ActionListener() { /** * Invoked when an action occurs. */ public void actionPerformed(ActionEvent e) { // do the do for (Object selected : items) { if (selected instanceof ContactWrapper) { ((ContactWrapper)selected).getPreferences().setHideFromList(hide); ((ContactWrapper)selected).updateDisplayComponent(); } } list.repaint(); } }); menu.add(itemHide); menu.add(ActionAdapter.createMenuItem(MenuManager.COMMAND_BUDDY_REMOVE, new MenuManager.MenuHandler(), 'r')); menu.add(ActionAdapter.createMenuItem(MenuManager.COMMAND_BUDDY_MOVE, new MenuManager.MenuHandler(), 'm')); } // if contact wrapper menu.show(evt.getComponent(), evt.getX(), evt.getY()); } // if more than one selected } // mouseReleased
50053 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50053/7c4d8a61b9ac259be39d27f05e5c2c4687836f2e/PeopleScreen.java/clean/java/ui/com/itbs/aimcer/gui/PeopleScreen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 7644, 26363, 12, 9186, 1133, 6324, 13, 288, 7734, 309, 261, 73, 11734, 18, 588, 6563, 1380, 1435, 422, 404, 597, 6324, 18, 291, 13770, 6518, 10756, 288, 10792, 509, 770, 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, 2398, 1071, 918, 7644, 26363, 12, 9186, 1133, 6324, 13, 288, 7734, 309, 261, 73, 11734, 18, 588, 6563, 1380, 1435, 422, 404, 597, 6324, 18, 291, 13770, 6518, 10756, 288, 10792, 509, 770, 273, ...
connect(uri); try { getWorkManager().scheduleWork(this, WorkManager.INDEFINITE, null, null); } catch (WorkException e) { throw new InitialisationException(new Message(Messages.FAILED_TO_SCHEDULE_WORK), e, this); }
public UdpMessageReceiver(AbstractConnector connector, UMOComponent component, UMOEndpoint endpoint) throws InitialisationException { create(connector, component, endpoint); bufferSize = ((UdpConnector) connector).getBufferSize(); uri = endpoint.getEndpointURI().getUri(); try { inetAddress = InetAddress.getByName(uri.getHost()); } catch (UnknownHostException e) { throw new InitialisationException(new Message("udp", 2, uri), e, this); } connect(uri); try { getWorkManager().scheduleWork(this, WorkManager.INDEFINITE, null, null); } catch (WorkException e) { throw new InitialisationException(new Message(Messages.FAILED_TO_SCHEDULE_WORK), e, this); } }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/5469dd005aa4f69700fdbd3782117cce20e16533/UdpMessageReceiver.java/clean/providers/udp/src/java/org/mule/providers/udp/UdpMessageReceiver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 587, 9295, 1079, 12952, 12, 7469, 7487, 8703, 16, 17311, 587, 5980, 1841, 1794, 16, 17311, 587, 5980, 3293, 2494, 13, 1216, 10188, 10742, 503, 565, 288, 3639, 752, 12, 23159, 16, 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, 377, 1071, 587, 9295, 1079, 12952, 12, 7469, 7487, 8703, 16, 17311, 587, 5980, 1841, 1794, 16, 17311, 587, 5980, 3293, 2494, 13, 1216, 10188, 10742, 503, 565, 288, 3639, 752, 12, 23159, 16, 17...
} else if (theClass.isPrimitive()) {
} else if (declaredClass.isPrimitive()) {
private static void writeObject(DataOutput out, Object instance, Class theClass) throws IOException { if (instance == null) { // null instance = new NullInstance(theClass); theClass = NullInstance.class; } UTF8.writeString(out, theClass.getName()); if (theClass.isArray()) { // array int length = Array.getLength(instance); out.writeInt(length); for (int i = 0; i < length; i++) { writeObject(out, Array.get(instance, i), theClass.getComponentType()); } } else if (theClass == String.class) { // String UTF8.writeString(out, (String)instance); } else if (theClass.isPrimitive()) { // primitive type if (theClass == Boolean.TYPE) { // boolean out.writeBoolean(((Boolean)instance).booleanValue()); } else if (theClass == Character.TYPE) { // char out.writeChar(((Character)instance).charValue()); } else if (theClass == Byte.TYPE) { // byte out.writeByte(((Byte)instance).byteValue()); } else if (theClass == Short.TYPE) { // short out.writeShort(((Short)instance).shortValue()); } else if (theClass == Integer.TYPE) { // int out.writeInt(((Integer)instance).intValue()); } else if (theClass == Long.TYPE) { // long out.writeLong(((Long)instance).longValue()); } else if (theClass == Float.TYPE) { // float out.writeFloat(((Float)instance).floatValue()); } else if (theClass == Double.TYPE) { // double out.writeDouble(((Double)instance).doubleValue()); } else if (theClass == Void.TYPE) { // void } else { throw new IllegalArgumentException("Not a known primitive: "+theClass); } } else if (instance instanceof Writable) { // Writable ((Writable)instance).write(out); } else { throw new IOException("Can't write: " + instance + " as " + theClass); } }
50818 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50818/1e027c52d3746fdda27eb01324ca3994c20e6293/RPC.java/clean/src/java/org/apache/nutch/ipc/RPC.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 16306, 12, 751, 1447, 596, 16, 1033, 791, 16, 21394, 1659, 326, 797, 13, 1216, 1860, 288, 565, 309, 261, 1336, 422, 446, 13, 288, 15604, 368, 446, 1377, 791, 273, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 16306, 12, 751, 1447, 596, 16, 1033, 791, 16, 21394, 1659, 326, 797, 13, 1216, 1860, 288, 565, 309, 261, 1336, 422, 446, 13, 288, 15604, 368, 446, 1377, 791, 273, 394, ...
return CONTINUE; }
return CONTINUE; }
public int execute(Object key, Object value, Object arg) { return CONTINUE; }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/addcb75d5d86d9b1fd628d84d22b74cfc41f078e/RubyObject.java/buggy/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 509, 1836, 12, 921, 498, 16, 1033, 460, 16, 1033, 1501, 13, 288, 10792, 327, 8020, 26725, 31, 7734, 289, 2, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 509, 1836, 12, 921, 498, 16, 1033, 460, 16, 1033, 1501, 13, 288, 10792, 327, 8020, 26725, 31, 7734, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (bEnableStyles) { lblStyle = new Label(cmpContent, SWT.NONE); GridData gdLStyle = new GridData( GridData.HORIZONTAL_ALIGN_BEGINNING); lblStyle.setLayoutData(gdLStyle); lblStyle.setText(Messages .getString("LineAttributesComposite.Lbl.Style")); lblStyle.setEnabled(bEnableUI);
if ( bEnableStyles ) { lblStyle = new Label( cmpContent, SWT.NONE ); GridData gdLStyle = new GridData( GridData.HORIZONTAL_ALIGN_BEGINNING ); lblStyle.setLayoutData( gdLStyle ); lblStyle.setText( Messages.getString( "LineAttributesComposite.Lbl.Style" ) ); lblStyle.setEnabled( bEnableUI );
private void placeComponents() { FillLayout flMain = new FillLayout(); flMain.marginHeight = 0; flMain.marginWidth = 0; GridLayout glContent = new GridLayout(); glContent.verticalSpacing = 5; glContent.horizontalSpacing = 5; glContent.marginHeight = 4; glContent.marginWidth = 4; glContent.numColumns = 6; this.setLayout(flMain); cmpContent = new Composite(this, SWT.NONE); cmpContent.setLayout(glContent); bEnabled = laCurrent.isVisible(); boolean bEnableUI = bEnabled; if (bEnableVisibility) { cbVisible = new Button(cmpContent, SWT.CHECK); GridData gdCBVisible = new GridData(GridData.FILL_HORIZONTAL); gdCBVisible.horizontalSpan = 6; cbVisible.setLayoutData(gdCBVisible); cbVisible.setText(Messages .getString("LineAttributesComposite.Lbl.IsVisible")); //$NON-NLS-1$ cbVisible.setSelection(laCurrent.isVisible()); cbVisible.addSelectionListener(this); if (bEnabled) { bEnableUI = cbVisible.getSelection(); } } if (bEnableStyles) { lblStyle = new Label(cmpContent, SWT.NONE); GridData gdLStyle = new GridData( GridData.HORIZONTAL_ALIGN_BEGINNING); lblStyle.setLayoutData(gdLStyle); lblStyle.setText(Messages .getString("LineAttributesComposite.Lbl.Style")); //$NON-NLS-1$ lblStyle.setEnabled(bEnableUI); cmbStyle = new LineStyleChooserComposite(cmpContent, SWT.DROP_DOWN | SWT.READ_ONLY, getSWTLineStyle(laCurrent.getStyle())); GridData gdCBStyle = new GridData(GridData.FILL_HORIZONTAL); gdCBStyle.horizontalSpan = 5; cmbStyle.setLayoutData(gdCBStyle); cmbStyle.addListener(this); cmbStyle.setEnabled(bEnableUI); } if (bEnableWidths) { lblWidth = new Label(cmpContent, SWT.NONE); GridData gdLWidth = new GridData( GridData.HORIZONTAL_ALIGN_BEGINNING); lblWidth.setLayoutData(gdLWidth); lblWidth.setText(Messages .getString("LineAttributesComposite.Lbl.Width")); //$NON-NLS-1$ lblWidth.setEnabled(bEnableUI); cmbWidth = new LineWidthChooserComposite(cmpContent, SWT.DROP_DOWN | SWT.READ_ONLY, laCurrent.getThickness()); GridData gdCBWidth = new GridData(GridData.FILL_HORIZONTAL); gdCBWidth.horizontalSpan = 5; cmbWidth.setLayoutData(gdCBWidth); cmbWidth.addListener(this); cmbWidth.setEnabled(bEnableUI); } if (bEnableColor) { lblColor = new Label(cmpContent, SWT.NONE); GridData gdLColor = new GridData( GridData.HORIZONTAL_ALIGN_BEGINNING); lblColor.setLayoutData(gdLColor); lblColor.setText(Messages .getString("LineAttributesComposite.Lbl.Color")); //$NON-NLS-1$ lblColor.setEnabled(bEnableUI); cmbColor = new FillChooserComposite(cmpContent, SWT.DROP_DOWN | SWT.READ_ONLY, this.laCurrent.getColor(), false, false); GridData gdCBColor = new GridData(GridData.FILL_HORIZONTAL); gdCBColor.horizontalSpan = 5; cmbColor.setLayoutData(gdCBColor); cmbColor.addListener(this); cmbColor.setEnabled(bEnableUI); } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/c60a4815037b62e9358af2625eb6236e7c979d0f/LineAttributesComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/LineAttributesComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3166, 7171, 1435, 288, 202, 202, 8026, 3744, 1183, 6376, 273, 394, 14192, 3744, 5621, 202, 202, 2242, 6376, 18, 10107, 2686, 273, 374, 31, 202, 202, 2242, 6376, 18, 10107,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3166, 7171, 1435, 288, 202, 202, 8026, 3744, 1183, 6376, 273, 394, 14192, 3744, 5621, 202, 202, 2242, 6376, 18, 10107, 2686, 273, 374, 31, 202, 202, 2242, 6376, 18, 10107,...
} else {
} else {
private void setupRandPartC() { if (j2 < (int) z) { currentChar = ch2; mCrc.updateCRC(ch2); j2++; } else { currentState = RAND_PART_A_STATE; i2++; count = 0; setupRandPartA(); } }
10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/CBZip2InputStream.java/clean/src/main/java/org/codehaus/plexus/archiver/bzip2/CBZip2InputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3875, 54, 464, 1988, 39, 1435, 288, 3639, 309, 261, 78, 22, 411, 261, 474, 13, 998, 13, 288, 5411, 29445, 273, 462, 22, 31, 5411, 312, 39, 1310, 18, 2725, 26803, 12, 343, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 54, 464, 1988, 39, 1435, 288, 3639, 309, 261, 78, 22, 411, 261, 474, 13, 998, 13, 288, 5411, 29445, 273, 462, 22, 31, 5411, 312, 39, 1310, 18, 2725, 26803, 12, 343, ...
public org.quickfix.field.RegistID getRegistID() throws FieldNotFound { org.quickfix.field.RegistID value = new org.quickfix.field.RegistID();
public quickfix.field.RegistID getRegistID() throws FieldNotFound { quickfix.field.RegistID value = new quickfix.field.RegistID();
public org.quickfix.field.RegistID getRegistID() throws FieldNotFound { org.quickfix.field.RegistID value = new org.quickfix.field.RegistID(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/ExecutionReport.java/buggy/src/java/src/quickfix/fix43/ExecutionReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1617, 376, 734, 336, 1617, 376, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1617, 376, 734, 460, 273, 394, 2358,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1617, 376, 734, 336, 1617, 376, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1617, 376, 734, 460, 273, 394, 2358,...
return x.getExpression();
return x.getQualifier();
public ASTNode get() { return x.getExpression(); }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/f7bc2ee5d62baf64b6f044f322b40cdaa75e5dcc/ASTTest.java/clean/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 9183, 907, 336, 1435, 288, 9506, 202, 2463, 619, 18, 588, 2300, 5621, 1082, 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, 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, 1875, 202, 482, 9183, 907, 336, 1435, 288, 9506, 202, 2463, 619, 18, 588, 2300, 5621, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
root = getLocalApiDocRoot(className);
root = apiDocRoot;
private String mapApiDocRoot(String className) { String root = null; if (specifiedPackages.isEmpty() || isSpecifiedPackage(className)) root = getLocalApiDocRoot(className); else root = getExternalApiDocRoot(className); if (root == null) root = ""; return root; }
47201 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47201/79a8c001740f08d96264606e9d548d69f12a9fbf/ClassInfo.java/clean/src/org/umlgraph/doclet/ClassInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 852, 3064, 1759, 2375, 12, 780, 2658, 13, 288, 202, 202, 780, 1365, 273, 446, 31, 202, 202, 430, 261, 13827, 11425, 18, 291, 1921, 1435, 747, 353, 17068, 2261, 12, 12434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 852, 3064, 1759, 2375, 12, 780, 2658, 13, 288, 202, 202, 780, 1365, 273, 446, 31, 202, 202, 430, 261, 13827, 11425, 18, 291, 1921, 1435, 747, 353, 17068, 2261, 12, 12434...
public List getResultFiles() { return resultFiles; }
public List getResultFiles() { return resultFiles; }
public List getResultFiles() { return resultFiles; }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/82f517dadfef099f4d5dcbaf1f1676a345fa6d79/BaseStep.java/buggy/src/be/ibridge/kettle/trans/step/BaseStep.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 8601, 2697, 1435, 288, 202, 202, 2463, 563, 2697, 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, 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, 225, 202, 482, 987, 8601, 2697, 1435, 288, 202, 202, 2463, 563, 2697, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...