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
Isotope iso = new Isotope("C");
Isotope iso = builder.newIsotope("C");
public void testClone_MassNumber() { Isotope iso = new Isotope("C"); iso.setMassNumber(12); Isotope clone = (Isotope)iso.clone(); // test cloning of exact mass iso.setMassNumber(13); assertEquals(12, clone.getMassNumber()); }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/738f657b512be44c43499f3ed84e8c5157aef99d/IsotopeTest.java/clean/src/org/openscience/cdk/test/IsotopeTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 10930, 67, 18060, 1854, 1435, 288, 3639, 2585, 18946, 8702, 273, 2089, 18, 2704, 2520, 18946, 2932, 39, 8863, 3639, 8702, 18, 542, 18060, 1854, 12, 2138, 1769, 3639, 2585, 18946, 3236, 273, 261, 2520, 18946, 13, 9699, 18, 14056, 5621, 7734, 368, 1842, 927, 22470, 434, 5565, 8039, 3639, 8702, 18, 542, 18060, 1854, 12, 3437, 1769, 3639, 1815, 8867, 12, 2138, 16, 3236, 18, 588, 18060, 1854, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 1842, 10930, 67, 18060, 1854, 1435, 288, 3639, 2585, 18946, 8702, 273, 2089, 18, 2704, 2520, 18946, 2932, 39, 8863, 3639, 8702, 18, 542, 18060, 1854, 12, 2138, 1769, 3639, 2585, 18946, 3236, 273, 261, 2520, 18946, 13, 9699, 18, 14056, 5621, 7734, 368, 1842, 927, 22470, 434, 5565, 8039, 3639, 8702, 18, 542, 18060, 1854, 12, 3437, 1769, 3639, 1815, 8867, 12, 2138, 16, 3236, 18, 588, 18060, 1854, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private void addExtdirsToClasspath(Path classpath) {
protected void addExtdirsToClasspath(Path classpath) {
private void addExtdirsToClasspath(Path classpath) { if (extdirs == null) { String extProp = System.getProperty("java.ext.dirs"); if (extProp != null) { extdirs = new Path(project, extProp); } else { return; } } String[] dirs = extdirs.list(); for (int i=0; i<dirs.length; i++) { if (!dirs[i].endsWith(File.separator)) { dirs[i] += File.separator; } File dir = project.resolveFile(dirs[i]); FileSet fs = new FileSet(); fs.setDir(dir); fs.setIncludes("*"); classpath.addFileset(fs); } }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/37ed344b385cde54ee62f2e66d347cb243dd6708/Javac.java/clean/src/main/org/apache/tools/ant/taskdefs/Javac.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 527, 2482, 8291, 774, 17461, 12, 743, 10006, 13, 288, 3639, 309, 261, 408, 8291, 422, 446, 13, 288, 5411, 514, 1110, 4658, 273, 2332, 18, 588, 1396, 2932, 6290, 18, 408, 18, 8291, 8863, 5411, 309, 261, 408, 4658, 480, 446, 13, 288, 7734, 1110, 8291, 273, 394, 2666, 12, 4406, 16, 1110, 4658, 1769, 5411, 289, 469, 288, 7734, 327, 31, 5411, 289, 3639, 289, 3639, 514, 8526, 7717, 273, 1110, 8291, 18, 1098, 5621, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 32, 8291, 18, 2469, 31, 277, 27245, 288, 5411, 309, 16051, 8291, 63, 77, 8009, 5839, 1190, 12, 812, 18, 11287, 3719, 288, 7734, 7717, 63, 77, 65, 1011, 1387, 18, 11287, 31, 5411, 289, 5411, 1387, 1577, 273, 1984, 18, 10828, 812, 12, 8291, 63, 77, 19226, 5411, 1387, 694, 2662, 273, 394, 1387, 694, 5621, 5411, 2662, 18, 542, 1621, 12, 1214, 1769, 5411, 2662, 18, 542, 16815, 2932, 7388, 1769, 5411, 10006, 18, 1289, 2697, 278, 12, 2556, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4750, 918, 527, 2482, 8291, 774, 17461, 12, 743, 10006, 13, 288, 3639, 309, 261, 408, 8291, 422, 446, 13, 288, 5411, 514, 1110, 4658, 273, 2332, 18, 588, 1396, 2932, 6290, 18, 408, 18, 8291, 8863, 5411, 309, 261, 408, 4658, 480, 446, 13, 288, 7734, 1110, 8291, 273, 394, 2666, 12, 4406, 16, 1110, 4658, 1769, 5411, 289, 469, 288, 7734, 327, 31, 5411, 289, 3639, 289, 3639, 514, 8526, 7717, 273, 1110, 8291, 18, 1098, 5621, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 32, 8291, 18, 2469, 31, 277, 27245, 288, 5411, 309, 16051, 8291, 63, 77, 8009, 5839, 1190, 12, 812, 18, 11287, 3719, 288, 7734, 7717, 63, 77, 65, 1011, 1387, 2 ]
public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { if (monitor == null) { monitor = new NullProgressMonitor(); } monitor.beginTask(LaunchingMessages.getString("WOJavaLocalApplicationLaunchConfigurationDelegate.Launching..._1"), IProgressMonitor.UNKNOWN); //$NON-NLS-1$ // check for cancellation if (monitor.isCanceled()) { return; } String mainTypeName = verifyMainTypeName(configuration); IVMInstall vm = verifyVMInstall(configuration); IVMRunner runner = vm.getVMRunner(mode); if (runner == null) { if (mode == ILaunchManager.DEBUG_MODE) { abort(MessageFormat.format(LaunchingMessages.getString("WOJavaLocalApplicationLaunchConfigurationDelegate.JRE_{0}_does_not_support_debug_mode._1"), new String[]{vm.getName()}), null, IJavaLaunchConfigurationConstants.ERR_VM_RUNNER_DOES_NOT_EXIST); //$NON-NLS-1$ } else { abort(MessageFormat.format(LaunchingMessages.getString("WOJavaLocalApplicationLaunchConfigurationDelegate.JRE_{0}_does_not_support_run_mode._2"), new String[]{vm.getName()}), null, IJavaLaunchConfigurationConstants.ERR_VM_RUNNER_DOES_NOT_EXIST); //$NON-NLS-1$ } } File workingDir = verifyWorkingDirectory(configuration); String workingDirName = null; if (workingDir != null) { workingDirName = workingDir.getAbsolutePath(); } // Program & VM args String pgmArgs = getProgramArguments(configuration); String vmArgs = getVMArguments(configuration); ExecutionArguments execArgs = new ExecutionArguments(vmArgs, pgmArgs); // VM-specific attributes Map vmAttributesMap = getVMSpecificAttributesMap(configuration); // Classpath String[] classpath = getClasspath(configuration); // Create VM config VMRunnerConfiguration runConfig = new VMRunnerConfiguration(mainTypeName, classpath); //There may be a NullPointerException //In this case we use the program arguments without replacing try { runConfig.setProgramArguments(this.replaceGeneratedByWOLips(execArgs.getProgramArgumentsArray())); } catch(Exception anException){ //May we should show a dialog WOLipsLog.log(anException); runConfig.setProgramArguments(execArgs.getProgramArgumentsArray()); } runConfig.setVMArguments(execArgs.getVMArgumentsArray()); runConfig.setWorkingDirectory(workingDirName); runConfig.setVMSpecificAttributesMap(vmAttributesMap); // Bootpath String[] bootpath = getBootpath(configuration); runConfig.setBootClassPath(bootpath); // check for cancellation if (monitor.isCanceled()) { return; } // stop in main prepareStopInMain(configuration); // Launch the configuration runner.run(runConfig, launch, monitor); // check for cancellation if (monitor.isCanceled()) { return; } // set the default source locator if required setDefaultSourceLocator(launch, configuration); monitor.done(); }
47899 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47899/ce974c3c73c46d576fec9b3718781183363a1c31/WOJavaLocalApplicationLaunchConfigurationDelegate.java/clean/src/wolips-launching/java/org/objectstyle/wolips/launching/WOJavaLocalApplicationLaunchConfigurationDelegate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 8037, 12, 2627, 4760, 1750, 1664, 16, 514, 1965, 16, 467, 9569, 8037, 16, 467, 5491, 7187, 6438, 13, 1216, 30015, 288, 9506, 202, 430, 261, 10259, 422, 446, 13, 288, 1082, 202, 10259, 273, 394, 4112, 5491, 7187, 5621, 202, 202, 97, 9506, 202, 10259, 18, 10086, 2174, 12, 9569, 310, 5058, 18, 588, 780, 2932, 59, 51, 5852, 2042, 3208, 9569, 1750, 9586, 18, 9569, 310, 2777, 67, 21, 6, 3631, 467, 5491, 7187, 18, 14737, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 759, 866, 364, 7272, 202, 202, 430, 261, 10259, 18, 291, 23163, 10756, 288, 1082, 202, 2463, 31, 202, 202, 97, 6862, 25083, 202, 780, 2774, 7947, 273, 3929, 6376, 7947, 12, 7025, 1769, 202, 202, 45, 7397, 6410, 4268, 273, 3929, 7397, 6410, 12, 7025, 1769, 202, 202, 45, 7397, 9709, 8419, 273, 4268, 18, 588, 7397, 9709, 12, 3188, 1769, 202, 202, 430, 261, 18156, 422, 446, 13, 288, 1082, 202, 430, 261, 3188, 422, 467, 9569, 1318, 18, 9394, 67, 7038, 13, 288, 9506, 202, 18623, 12, 1079, 1630, 18, 2139, 12, 9569, 310, 5058, 18, 588, 780, 2932, 59, 51, 5852, 2042, 3208, 9569, 1750, 9586, 18, 46, 862, 14147, 20, 9044, 20657, 67, 902, 67, 13261, 67, 4148, 67, 3188, 6315, 21, 6, 3631, 394, 514, 63, 7073, 3489, 18, 17994, 17767, 3631, 446, 16, 467, 5852, 9569, 1750, 2918, 18, 9712, 67, 7397, 67, 15238, 12196, 67, 3191, 3991, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8037, 12, 2627, 4760, 1750, 1664, 16, 514, 1965, 16, 467, 9569, 8037, 16, 467, 5491, 7187, 6438, 13, 1216, 30015, 288, 9506, 202, 430, 261, 10259, 422, 446, 13, 288, 1082, 202, 10259, 273, 394, 4112, 5491, 7187, 5621, 202, 202, 97, 9506, 202, 10259, 18, 10086, 2174, 12, 9569, 310, 5058, 18, 588, 780, 2932, 59, 51, 5852, 2042, 3208, 9569, 1750, 9586, 18, 9569, 310, 2777, 67, 21, 6, 3631, 467, 5491, 7187, 18, 14737, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 759, 866, 364, 7272, 202, 202, 430, 261, 10259, 18, 291, 23163, 10756, 288, 1082, 202, 2463, 31, 202, 202, 97, 6862, 25083, 202, 780, 2774, 7947, 2 ]
final boolean result[] = { true };
final int result[] = { RESTORE_CODE_OK };
private boolean openPreviousWorkbenchState() { // Read the workbench state file. final File stateFile = getWorkbenchStateFile(); // If there is no state file return false. if (!stateFile.exists()) return false; final boolean result[] = { true }; Platform.run(new SafeRunnableAdapter(WorkbenchMessages.getString("ErrorReadingState")) { //$NON-NLS-1$ public void run() throws Exception { FileInputStream input = new FileInputStream(stateFile); InputStreamReader reader = new InputStreamReader(input, "utf-8"); //$NON-NLS-1$ // Restore the workbench state. IMemento memento = XMLMemento.createReadRoot(reader); String version = memento.getString(IWorkbenchConstants.TAG_VERSION); boolean valid = false; for (int i = 0; i < VERSION_STRING.length; i++) { if(VERSION_STRING[i].equals(version)) { valid = true; break; } } if(!valid) { reader.close(); MessageDialog.openError((Shell) null, WorkbenchMessages.getString("Restoring_Problems"), //$NON-NLS-1$ WorkbenchMessages.getString("Invalid_workbench_state_ve")); //$NON-NLS-1$ stateFile.delete(); result[0] = false; return; } restoreState(memento); reader.close(); } public void handleException(Throwable e) { super.handleException(e); result[0] = false; stateFile.delete(); } }); // ensure at least one window was opened return result[0] && (windowManager.getWindows().length > 0); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/7c7ade3d9d12ea1d98ea1ce4ea38925c1dbe3758/Workbench.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 1696, 8351, 2421, 22144, 1119, 1435, 288, 202, 202, 759, 2720, 326, 1440, 22144, 919, 585, 18, 202, 202, 6385, 1387, 919, 812, 273, 29026, 22144, 1119, 812, 5621, 202, 202, 759, 971, 1915, 353, 1158, 919, 585, 327, 629, 18, 202, 202, 430, 16051, 2019, 812, 18, 1808, 10756, 1082, 202, 2463, 629, 31, 202, 202, 6385, 1250, 563, 8526, 273, 288, 638, 289, 31, 202, 202, 8201, 18, 2681, 12, 2704, 14060, 20013, 4216, 12, 2421, 22144, 5058, 18, 588, 780, 2932, 668, 15714, 1119, 6, 3719, 288, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 482, 918, 1086, 1435, 1216, 1185, 288, 9506, 202, 812, 4348, 810, 273, 394, 11907, 12, 2019, 812, 1769, 9506, 202, 4348, 2514, 2949, 273, 394, 15322, 12, 2630, 16, 315, 3158, 17, 28, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 759, 11197, 326, 1440, 22144, 919, 18, 9506, 202, 3445, 820, 83, 312, 820, 83, 273, 3167, 49, 820, 83, 18, 2640, 1994, 2375, 12, 10530, 1769, 9506, 202, 780, 1177, 273, 312, 820, 83, 18, 588, 780, 12, 45, 2421, 22144, 2918, 18, 7927, 67, 5757, 1769, 9506, 202, 6494, 923, 273, 629, 31, 9506, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 8456, 67, 5804, 18, 2469, 31, 277, 27245, 288, 6862, 202, 430, 12, 5757, 67, 5804, 63, 77, 8009, 14963, 12, 1589, 3719, 288, 25083, 202, 877, 273, 638, 31, 25083, 202, 8820, 31, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 1696, 8351, 2421, 22144, 1119, 1435, 288, 202, 202, 759, 2720, 326, 1440, 22144, 919, 585, 18, 202, 202, 6385, 1387, 919, 812, 273, 29026, 22144, 1119, 812, 5621, 202, 202, 759, 971, 1915, 353, 1158, 919, 585, 327, 629, 18, 202, 202, 430, 16051, 2019, 812, 18, 1808, 10756, 1082, 202, 2463, 629, 31, 202, 202, 6385, 1250, 563, 8526, 273, 288, 638, 289, 31, 202, 202, 8201, 18, 2681, 12, 2704, 14060, 20013, 4216, 12, 2421, 22144, 5058, 18, 588, 780, 2932, 668, 15714, 1119, 6, 3719, 288, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 482, 918, 1086, 1435, 1216, 1185, 288, 9506, 202, 812, 4348, 810, 273, 394, 11907, 12, 2 ]
AST tmp1445_AST_in = (AST)_t;
AST tmp1449_AST_in = (AST)_t;
public final void runstate(AST _t) throws RecognitionException { AST runstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST r = null; AST hnd = null; AST hexp = null; AST __t1082 = _t; r = _t==ASTNULL ? null :(AST)_t; match(_t,RUN); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.runBegin(r); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEFTANGLE: { AST tmp1436_AST_in = (AST)_t; match(_t,LEFTANGLE); _t = _t.getNextSibling(); AST tmp1437_AST_in = (AST)_t; match(_t,LEFTANGLE); _t = _t.getNextSibling(); filenameorvalue(_t); _t = _retTree; AST tmp1438_AST_in = (AST)_t; match(_t,RIGHTANGLE); _t = _t.getNextSibling(); AST tmp1439_AST_in = (AST)_t; match(_t,RIGHTANGLE); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case ASYNCHRONOUS: case IN_KW: case NOERROR_KW: case ON: case PERSISTENT: case SET: case VALUE: case Parameter_list: case TYPELESS_TOKEN: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1104: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PERSISTENT: { AST __t1085 = _t; AST tmp1440_AST_in = (AST)_t; match(_t,PERSISTENT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SET: { AST __t1087 = _t; AST tmp1441_AST_in = (AST)_t; match(_t,SET); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Field_ref: { hnd = _t==ASTNULL ? null : (AST)_t; fld(_t,CQ.UPDATING); _t = _retTree; if ( inputState.guessing==0 ) { action.runPersistentSet(hnd); } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1087; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1085; _t = _t.getNextSibling(); break; } case SET: { AST __t1089 = _t; AST tmp1442_AST_in = (AST)_t; match(_t,SET); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Field_ref: { fld(_t,CQ.UPDATING); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1089; _t = _t.getNextSibling(); break; } case ON: { AST __t1091 = _t; AST tmp1443_AST_in = (AST)_t; match(_t,ON); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; if ((_t.getType()==SERVER)) { AST tmp1444_AST_in = (AST)_t; match(_t,SERVER); _t = _t.getNextSibling(); } else if ((_tokenSet_3.member(_t.getType()))) { } else { throw new NoViableAltException(_t); } } expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TRANSACTION: { AST tmp1445_AST_in = (AST)_t; match(_t,TRANSACTION); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DISTINCT: { AST tmp1446_AST_in = (AST)_t; match(_t,DISTINCT); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1091; _t = _t.getNextSibling(); break; } case IN_KW: { AST __t1095 = _t; AST tmp1447_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); hexp = _t==ASTNULL ? null : (AST)_t; expression(_t); _t = _retTree; _t = __t1095; _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { action.runInHandle(hexp); } break; } case ASYNCHRONOUS: { AST __t1096 = _t; AST tmp1448_AST_in = (AST)_t; match(_t,ASYNCHRONOUS); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SET: { AST __t1098 = _t; AST tmp1449_AST_in = (AST)_t; match(_t,SET); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Field_ref: { fld(_t,CQ.UPDATING); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1098; _t = _t.getNextSibling(); break; } case 3: case EVENTPROCEDURE: case IN_KW: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EVENTPROCEDURE: { AST __t1101 = _t; AST tmp1450_AST_in = (AST)_t; match(_t,EVENTPROCEDURE); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1101; _t = _t.getNextSibling(); break; } case 3: case IN_KW: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case IN_KW: { AST __t1103 = _t; AST tmp1451_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1103; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1096; _t = _t.getNextSibling(); break; } default: { break _loop1104; } } } while (true); } if ( inputState.guessing==0 ) { action.runEnd(r); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Parameter_list: { parameterlist(_t); _t = _retTree; break; } case EOF: case PERIOD: case NOERROR_KW: case VALUE: case TYPELESS_TOKEN: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1107: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp1452_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case VALUE: case TYPELESS_TOKEN: { anyorvalue(_t); _t = _retTree; break; } default: { break _loop1107; } } } while (true); } state_end(_t); _t = _retTree; _t = __t1082; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/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, 1086, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1086, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 202, 202, 9053, 436, 273, 446, 31, 202, 202, 9053, 366, 4880, 273, 446, 31, 202, 202, 9053, 366, 2749, 273, 446, 31, 9506, 202, 9053, 1001, 88, 2163, 11149, 273, 389, 88, 31, 202, 202, 86, 273, 389, 88, 631, 9053, 8560, 692, 446, 294, 12, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 15238, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 3459, 280, 1132, 24899, 88, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 430, 261, 810, 1119, 18, 20885, 310, 631, 20, 262, 288, 1082, 202, 1128, 18, 2681, 8149, 12, 86, 1769, 202, 202, 97, 202, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 9686, 30978, 30, 202, 202, 95, 1082, 202, 9053, 1853, 3461, 5718, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 10066, 30978, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 9053, 1853, 3461, 6418, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1086, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 202, 202, 9053, 436, 273, 446, 31, 202, 202, 9053, 366, 4880, 273, 446, 31, 202, 202, 9053, 366, 2749, 273, 446, 31, 9506, 202, 9053, 1001, 88, 2163, 11149, 273, 389, 88, 31, 202, 202, 86, 273, 389, 88, 631, 9053, 8560, 692, 446, 294, 12, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 15238, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 3459, 280, 1132, 24899, 2 ]
IUndoableOperation removed = (IUndoableOperation)filtered[index]; if (context == GLOBAL_UNDO_CONTEXT || removed.getContexts().length == 1) { /* remove the operation if we are enforcing a global limit or if * the operation only has the specified context
IUndoableOperation removed = (IUndoableOperation) filtered[index]; if (context == GLOBAL_UNDO_CONTEXT || removed.getContexts().length == 1) { /* * remove the operation if we are enforcing a global limit * or if the operation only has the specified context
private void forceUndoLimit(IUndoContext context, int max) { Object[] filtered = filter(undoList, context); int size = filtered.length; if (size > 0) { int index = 0; while (size > max) { IUndoableOperation removed = (IUndoableOperation)filtered[index]; if (context == GLOBAL_UNDO_CONTEXT || removed.getContexts().length == 1) { /* remove the operation if we are enforcing a global limit or if * the operation only has the specified context */ undoList.remove(removed); internalRemove(removed); } else { /* if the operation has multiple contexts and we've reached the limit * for only one of them, then just remove the context, not the operation. */ removed.removeContext(context); } size--; index++; } } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/3bad50e6f68ff26b260565b7df8938cfe4826b83/DefaultOperationHistory.java/buggy/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/operations/DefaultOperationHistory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2944, 31224, 3039, 12, 45, 31224, 1042, 819, 16, 509, 943, 13, 288, 202, 202, 921, 8526, 5105, 273, 1034, 12, 31226, 682, 16, 819, 1769, 202, 202, 474, 963, 273, 5105, 18, 2469, 31, 202, 202, 430, 261, 1467, 405, 374, 13, 288, 1082, 202, 474, 770, 273, 374, 31, 1082, 202, 17523, 261, 1467, 405, 943, 13, 288, 9506, 202, 45, 31224, 429, 2988, 3723, 273, 261, 45, 31224, 429, 2988, 13, 12071, 63, 1615, 15533, 9506, 202, 430, 261, 2472, 422, 7779, 67, 2124, 3191, 67, 13181, 747, 3723, 18, 588, 15518, 7675, 2469, 422, 404, 13, 288, 6862, 202, 20308, 1206, 326, 1674, 309, 732, 854, 570, 29036, 279, 2552, 1800, 578, 309, 25083, 380, 326, 1674, 1338, 711, 326, 1269, 819, 25083, 1195, 6862, 202, 31226, 682, 18, 4479, 12, 14923, 1769, 6862, 202, 7236, 3288, 12, 14923, 1769, 9506, 202, 97, 469, 288, 6862, 202, 20308, 309, 326, 1674, 711, 3229, 5781, 471, 732, 8081, 8675, 326, 1800, 9944, 380, 364, 1338, 1245, 434, 2182, 16, 1508, 2537, 1206, 326, 819, 16, 486, 326, 1674, 18, 25083, 1195, 6862, 202, 14923, 18, 4479, 1042, 12, 2472, 1769, 9506, 202, 97, 9506, 202, 1467, 413, 31, 9506, 202, 1615, 9904, 31, 1082, 202, 97, 202, 202, 97, 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, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2944, 31224, 3039, 12, 45, 31224, 1042, 819, 16, 509, 943, 13, 288, 202, 202, 921, 8526, 5105, 273, 1034, 12, 31226, 682, 16, 819, 1769, 202, 202, 474, 963, 273, 5105, 18, 2469, 31, 202, 202, 430, 261, 1467, 405, 374, 13, 288, 1082, 202, 474, 770, 273, 374, 31, 1082, 202, 17523, 261, 1467, 405, 943, 13, 288, 9506, 202, 45, 31224, 429, 2988, 3723, 273, 261, 45, 31224, 429, 2988, 13, 12071, 63, 1615, 15533, 9506, 202, 430, 261, 2472, 422, 7779, 67, 2124, 3191, 67, 13181, 747, 3723, 18, 588, 15518, 7675, 2469, 422, 404, 13, 288, 6862, 202, 20308, 1206, 326, 1674, 309, 732, 854, 570, 29036, 279, 2552, 1800, 2 ]
private Object condition(TokenStream ts, Source source)
private Object condition(TokenStream ts)
private Object condition(TokenStream ts, Source source) throws IOException, JavaScriptException { Object pn; mustMatchToken(ts, ts.LP, "msg.no.paren.cond"); source.append((char)ts.LP); pn = expr(ts, source, false); mustMatchToken(ts, ts.RP, "msg.no.paren.after.cond"); source.append((char)ts.RP); // there's a check here in jsparse.c that corrects = to == return pn; }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/3d2e81a014b22cf4d1eb8921bd4229c2ca7ff017/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 2269, 12, 1345, 1228, 3742, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 31, 3639, 1297, 2060, 1345, 12, 3428, 16, 3742, 18, 14461, 16, 315, 3576, 18, 2135, 18, 13012, 18, 10013, 8863, 3639, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 14461, 1769, 3639, 11059, 273, 3065, 12, 3428, 16, 1084, 16, 629, 1769, 3639, 1297, 2060, 1345, 12, 3428, 16, 3742, 18, 54, 52, 16, 315, 3576, 18, 2135, 18, 13012, 18, 5205, 18, 10013, 8863, 3639, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 54, 52, 1769, 3639, 368, 1915, 1807, 279, 866, 2674, 316, 3828, 2670, 18, 71, 716, 3434, 87, 273, 358, 422, 3639, 327, 11059, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 1033, 2269, 12, 1345, 1228, 3742, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 31, 3639, 1297, 2060, 1345, 12, 3428, 16, 3742, 18, 14461, 16, 315, 3576, 18, 2135, 18, 13012, 18, 10013, 8863, 3639, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 14461, 1769, 3639, 11059, 273, 3065, 12, 3428, 16, 1084, 16, 629, 1769, 3639, 1297, 2060, 1345, 12, 3428, 16, 3742, 18, 54, 52, 16, 315, 3576, 18, 2135, 18, 13012, 18, 5205, 18, 10013, 8863, 3639, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 54, 52, 1769, 3639, 368, 1915, 1807, 279, 866, 2674, 316, 3828, 2670, 18, 71, 716, 3434, 87, 273, 358, 422, 3639, 327, 11059, 2 ]
private void backwardPass(TrainerScore[] score) { // Now, the backward pass. for (int i = 0; i < graph.size(); i++) { outputProbs[i] = score[i].getScore(); } float[] probNextFrame = probCurrentFrame; probCurrentFrame = new float[graph.size()]; // First, the non-emitting states. Here we go in the opposite // direction as in the forward case. for (int indexNode = 0; indexNode < graph.size(); indexNode++) { Node node = graph.getNode(indexNode); HMMState state = (HMMState) node.getObject(); HMM hmm = state.getHMM(); if (state.isEmitting()) { continue; } // Initialize the current frame probability with log(0f) probCurrentFrame[indexNode] = LogMath.getLogZero(); for (node.startOutgoingEdgeIterator(); node.hasMoreOutgoingEdges(); ) { // Finds out what the next node and next state are Node nextNode = node.nextOutgoingEdge().getSource(); int indexNextNode = graph.indexOf(nextNode); HMMState nextState = (HMMState) nextNode.getObject(); // Make sure that the transition happened from a state // that either is in the same, or is emitting assert ((nextState.isEmitting()) || (nextState == state)); float logTransitionProbability; if (!nextState.isEmitting()) { logTransitionProbability = 0.0f; } else { logTransitionProbability = hmm.getTransitionProbability(state.getState(), nextState.getState()); } // Adds the beta, the transition, and the output prob // from the next state into the current beta probCurrentFrame[indexNode] = logMath.addAsLinear(probCurrentFrame[indexNode], probNextFrame[indexNextNode] + logTransitionProbability); } score[indexNode].setBeta(probCurrentFrame[indexNode]); } // Finally, the emitting states for (int indexNode = 0; indexNode < graph.size(); indexNode++) { Node node = graph.getNode(indexNode); HMMState state = (HMMState) node.getObject(); HMM hmm = state.getHMM(); if (state.isEmitting()) { continue; } // Initialize the current frame probability with log // probability of log(0f) probCurrentFrame[indexNode] = LogMath.getLogZero(); for (node.startOutgoingEdgeIterator(); node.hasMoreOutgoingEdges(); ) { // Finds out what the next node and next state are Node nextNode = node.nextOutgoingEdge().getSource(); int indexNextNode = graph.indexOf(nextNode); HMMState nextState = (HMMState) nextNode.getObject(); // Make sure that the transition happened to a // non-emitting state, or to the same model assert ((!nextState.isEmitting()) || (nextState.getHMM() == hmm)); float logTransitionProbability; if (!nextState.isEmitting()) { logTransitionProbability = 0.0f; } else { logTransitionProbability = hmm.getTransitionProbability(state.getState(), nextState.getState()); } // Adds the beta, the output prob, and the transition // from the next state into the current beta probCurrentFrame[indexNode] = logMath.addAsLinear(probCurrentFrame[indexNode], probNextFrame[indexNextNode] + logTransitionProbability + outputProbs[indexNextNode]); } score[indexNode].setBeta(probCurrentFrame[indexNode]); } }
7874 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7874/c775af7653d7c0a80ae25cfe150dc777d18c398d/BaumWelchLearner.java/buggy/edu/cmu/sphinx/trainer/BaumWelchLearner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 12555, 6433, 12, 1609, 14522, 7295, 8526, 4462, 13, 288, 202, 759, 4494, 16, 326, 12555, 1342, 18, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 2667, 18, 1467, 5621, 277, 27245, 288, 202, 565, 876, 626, 2038, 63, 77, 65, 273, 4462, 63, 77, 8009, 588, 7295, 5621, 202, 97, 202, 5659, 8526, 3137, 2134, 3219, 273, 3137, 3935, 3219, 31, 202, 7748, 3935, 3219, 273, 394, 1431, 63, 4660, 18, 1467, 1435, 15533, 202, 759, 5783, 16, 326, 1661, 17, 18356, 1787, 5493, 18, 13743, 732, 1960, 316, 326, 20759, 202, 759, 4068, 487, 316, 326, 5104, 648, 18, 202, 1884, 261, 474, 770, 907, 273, 374, 31, 770, 907, 411, 2667, 18, 1467, 5621, 770, 907, 27245, 288, 202, 565, 2029, 756, 273, 2667, 18, 588, 907, 12, 1615, 907, 1769, 202, 565, 670, 8206, 1119, 919, 273, 261, 44, 8206, 1119, 13, 756, 18, 588, 921, 5621, 202, 565, 670, 8206, 366, 7020, 273, 919, 18, 588, 44, 8206, 5621, 202, 565, 309, 261, 2019, 18, 291, 17982, 1787, 10756, 288, 202, 202, 17143, 31, 202, 565, 289, 202, 565, 368, 9190, 326, 783, 2623, 11331, 598, 613, 12, 20, 74, 13, 202, 565, 3137, 3935, 3219, 63, 1615, 907, 65, 273, 1827, 10477, 18, 588, 1343, 7170, 5621, 202, 565, 364, 261, 2159, 18, 1937, 24866, 6098, 3198, 5621, 1082, 756, 18, 5332, 7417, 24866, 10697, 5621, 262, 288, 202, 202, 759, 4163, 87, 596, 4121, 326, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12555, 6433, 12, 1609, 14522, 7295, 8526, 4462, 13, 288, 202, 759, 4494, 16, 326, 12555, 1342, 18, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 2667, 18, 1467, 5621, 277, 27245, 288, 202, 565, 876, 626, 2038, 63, 77, 65, 273, 4462, 63, 77, 8009, 588, 7295, 5621, 202, 97, 202, 5659, 8526, 3137, 2134, 3219, 273, 3137, 3935, 3219, 31, 202, 7748, 3935, 3219, 273, 394, 1431, 63, 4660, 18, 1467, 1435, 15533, 202, 759, 5783, 16, 326, 1661, 17, 18356, 1787, 5493, 18, 13743, 732, 1960, 316, 326, 20759, 202, 759, 4068, 487, 316, 326, 5104, 648, 18, 202, 1884, 261, 474, 770, 907, 273, 374, 31, 770, 907, 411, 2667, 2 ]
return null;
return null;
public Object enumSpecifierBegin(Object container) { // TODO Auto-generated method stub return null; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/903e1c11d836b4931095f50fcfff8cb9f57f4551/NewModelBuilder.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/model/NewModelBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 2792, 21416, 8149, 12, 921, 1478, 13, 288, 202, 202, 759, 2660, 8064, 17, 11168, 707, 7168, 202, 202, 2463, 446, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2792, 21416, 8149, 12, 921, 1478, 13, 288, 202, 202, 759, 2660, 8064, 17, 11168, 707, 7168, 202, 202, 2463, 446, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void setStereoParity(int stereoParity) { this.stereoParity = stereoParity; }
public void setStereoParity(int i) { stereoParity = i; }
public void setStereoParity(int stereoParity) { this.stereoParity = stereoParity; }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/a0fe2ba9ebb5b30198ad5632dce2a72cb9cfd6d0/Atom.java/buggy/org/openscience/cdk/Atom.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 13928, 22854, 1553, 560, 12, 474, 29558, 1553, 560, 13, 288, 202, 202, 2211, 18, 334, 822, 83, 1553, 560, 273, 29558, 1553, 560, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 13928, 22854, 1553, 560, 12, 474, 29558, 1553, 560, 13, 288, 202, 202, 2211, 18, 334, 822, 83, 1553, 560, 273, 29558, 1553, 560, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
new NoViableAltException("", 4, 28, input);
new NoViableAltException("", 4, 31, input);
public DFA.State transition(IntStream input) throws RecognitionException { int LA4_28 = input.LA(1); if ( LA4_28==21 ) {return s23;} if ( LA4_28==EOL||LA4_28==15 ) {return s28;} NoViableAltException nvae = new NoViableAltException("", 4, 28, input); throw nvae; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/2c627236020a6a6e3e349b38b1010bfe64567df7/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 509, 2928, 24, 67, 6030, 273, 810, 18, 2534, 12, 21, 1769, 7734, 309, 261, 2928, 24, 67, 6030, 631, 5340, 262, 288, 2463, 272, 4366, 31, 97, 7734, 309, 261, 2928, 24, 67, 6030, 631, 5842, 20081, 2534, 24, 67, 6030, 631, 3600, 262, 288, 2463, 272, 6030, 31, 97, 7734, 17114, 15077, 273, 540, 202, 565, 394, 17114, 2932, 3113, 1059, 16, 8231, 16, 810, 1769, 7734, 604, 15077, 31, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 509, 2928, 24, 67, 6030, 273, 810, 18, 2534, 12, 21, 1769, 7734, 309, 261, 2928, 24, 67, 6030, 631, 5340, 262, 288, 2463, 272, 4366, 31, 97, 7734, 309, 261, 2928, 24, 67, 6030, 631, 5842, 20081, 2534, 24, 67, 6030, 631, 3600, 262, 288, 2463, 272, 6030, 31, 97, 7734, 17114, 15077, 273, 540, 202, 565, 394, 17114, 2932, 3113, 1059, 16, 8231, 16, 810, 1769, 7734, 604, 15077, 31, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
int stop = fullLine.length(); if (fullLine.indexOf("<BR>") != -1 ){ stop = fullLine.indexOf("<BR>");} if (fullLine.indexOf("<br>") != -1 ){ stop = fullLine.indexOf("<br>");} options = options + "<option value=\"" + row + "\" > " + fullLine.substring(0,stop) + "</option>";
int stop = fullLine.length(); if (fullLine.indexOf("<BR>") != -1 ){ stop = fullLine.indexOf("<BR>");} if (fullLine.indexOf("<br>") != -1 ){ stop = fullLine.indexOf("<br>");} options = options + "<option value=\"" + row + "\" > " + fullLine.substring(0,stop) + "</option>";
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { // Lets get the server this request was aimed for String host = req.getHeader("Host") ; String imcServer = Utility.getDomainPref("adminserver",host) ; HttpSession session = req.getSession(); res.setContentType("text/html"); PrintWriter out = res.getWriter(); String whichFile = (String)session.getAttribute("file") ; if (req.getParameter("back")!=null) { String url = MetaInfo.getServletPath(req) + "AdminFortunes"; res.sendRedirect(url) ; return; } if (req.getParameter("save")!=null) { //out.println("okbuttonpushed <br> "); //spara texten till filen //String fortune_path = Utility.getDomainPref("FortunePath",host); File fortune_path = Utility.getDomainPrefPath("FortunePath",host); String readFile = (String)session.getAttribute("file"); File file = new File(fortune_path,readFile + ".txt"); BufferedWriter fileW = new BufferedWriter( new FileWriter(file) ); //out.println("file: " + file + "<br>"); //hmta nuvarande rader Map lines = (Map)session.getAttribute("lines"); Set keyRows = lines.keySet(); Iterator rowIt = keyRows.iterator(); while(rowIt.hasNext()) { Integer row = (Integer)rowIt.next(); // out.println(" lines2: " + lines.get(row) + "<br>" ); //FIX s linjen blir ok med # String fullLine = ((String)lines.get(row)).trim(); String date1 = fullLine.substring(0,6); String date2 = fullLine.substring(7,13); String text = HTMLConv.toHTML(fullLine.substring(14)); //out.println(date1 + "#" + date2 + "#" + text + "#" + "<br>"); fileW.write(date1 + "#" + date2 + "#" + text + "#" ); fileW.newLine(); } fileW.flush(); fileW.close(); //tillbaks till String url = MetaInfo.getServletPath(req) + "AdminFortunes" ; res.sendRedirect(url) ; return; } else { String options = "<option value=\"No_Choice\" selected>-- V&auml;lj Rad --</option>"; String date1 = " "; String date2 = " "; String text = " "; if ((req.getParameter("add")).equals("add")) { //hmta nuvarande rader Map lines = (Map)session.getAttribute("lines"); //hmta parametrar date1 = (req.getParameter("date1")).trim(); date2 = (req.getParameter("date2")).trim(); text = (req.getParameter("text")).trim(); boolean wrong = false; if( !checkDate(date1) ) { date1="Fel datum!"; wrong = true; } if( !checkDate(date2) ) { date2="Fel datum!"; wrong = true; } if( text.length()<1 ) { text="Fel: Du har inte angett texten!"; wrong = true; } if( !wrong ) { //lgg ihop den nya raden String fullLine = date1 + " " + date2 + " " + text; //hitta hgsta radnr int last = 0;//( (Integer)lines.lastKey() ).intValue(); Set keys = lines.keySet(); Iterator rowI = keys.iterator(); while(rowI.hasNext()) { int temp = (((Integer)rowI.next()).intValue()); last = temp>last?temp:last; } //lgg till den nya raden lines.put(new Integer(last+1),fullLine); //spara de nya raderna session.setAttribute("lines",lines); date1 = " "; date2 = " "; text = " "; } Set keyRows = lines.keySet(); Iterator rowIt = keyRows.iterator(); while(rowIt.hasNext()) { Integer row = (Integer)rowIt.next(); // out.println(" lines2: " + lines.get(row) + "<br>" ); String fullLine = (String)lines.get(row); int stop = fullLine.length(); if (fullLine.indexOf("<BR>") != -1 ){ stop = fullLine.indexOf("<BR>");} if (fullLine.indexOf("<br>") != -1 ){ stop = fullLine.indexOf("<br>");} options = options + "<option value=\"" + row + "\" > " + fullLine.substring(0,stop) + "</option>"; // options = options + "<option value=\"" + row + "\" > " + lines.get(row) + "</option>"; } } if (req.getParameter("edit")!=null) { //hmta raden som r markerad String row = req.getParameter("AdminFile") ; Map lines = (Map)session.getAttribute("lines"); if (!row.equals("No_Choice")) { Integer theRow = Integer.decode(row); // out.println("row: " + row + "therow: " + theRow + "<br>"); String fullLine = ((String)lines.get(theRow)).trim(); date1 = fullLine.substring(0,6); date2 = fullLine.substring(7,13); text = fullLine.substring(14); lines.remove(theRow); } Set keyRows = lines.keySet(); Iterator rowIt = keyRows.iterator(); while(rowIt.hasNext()) { //out.println(" lines2: " + lines.get(rowIt.next()) + "<br>" ); Integer rad = (Integer)rowIt.next(); String fullLine = (String)lines.get(rad); int stop = fullLine.length(); if (fullLine.indexOf("<BR>") != -1 ){ stop = fullLine.indexOf("<BR>");} if (fullLine.indexOf("<br>") != -1 ){ stop = fullLine.indexOf("<br>");} options = options + "<option value=\"" + row + "\" > " + fullLine.substring(0,stop) + "</option>"; //options = options + "<option value=\"" + rad + "\" > " + lines.get(rad) + "</option>"; } } if (req.getParameter("remove")!=null) { //out.println("removebuttonpushed <br> "); //hmta nuvarande rader Map lines = (Map)session.getAttribute("lines"); //hmta de rader som ska tas bort String rows[] = req.getParameterValues("AdminFile") ; //ta bort de som ska raderas for(int i=0;i<rows.length;i++) { // out.println("rows: " + rows[i] + "<br>"); if (!rows[i].equals("No_Choice")) { lines.remove(new Integer(rows[i])); } } //spara de nya raderna session.setAttribute("lines",lines); Set keyRows = lines.keySet(); Iterator rowIt = keyRows.iterator(); while(rowIt.hasNext()) { Integer row = (Integer)rowIt.next(); String fullLine = (String)lines.get(row); int stop = fullLine.length(); if (fullLine.indexOf("<BR>") != -1 ){ stop = fullLine.indexOf("<BR>");} if (fullLine.indexOf("<br>") != -1 ){ stop = fullLine.indexOf("<br>");} options = options + "<option value=\"" + row + "\" > " + fullLine.substring(0,stop) + "</option>"; // out.println(" lines: " + lines.get(row) + "<br>" ); //options = options + "<option value=\"" + row + "\" > " + lines.get(row) + "</option>"; } } if (req.getParameter("revert")!=null) { whichFile = (String)session.getAttribute("file") ; //ppna filen med detta namnet String openFile = IMCServiceRMI.getFortune(imcServer,whichFile + ".txt") ; BufferedReader readFile = new BufferedReader( new StringReader( openFile ) ); options = "<option value=\"No_Choice\" selected>-- V&auml;lj Rad --</option>"; Map lines = Collections.synchronizedMap(new TreeMap()); String line = readFile.readLine(); int row = 0; while ( line!=null && !(line.length()<=12) ) { String fullLine = line.replace('#',' '); int stop = fullLine.length(); if (fullLine.indexOf("<BR>") != -1 ){ stop = fullLine.indexOf("<BR>");} if (fullLine.indexOf("<br>") != -1 ){ stop = fullLine.indexOf("<br>");} options = options + "<option value=\"" + row + "\" > " + fullLine.substring(0,stop) + "</option>"; lines.put( new Integer(row) , fullLine ); line = readFile.readLine(); row++; } session.setAttribute("lines",lines); } //Add info for parsing to a Vector and parse it with a template to a htmlString that is printed Vector values = new Vector(); values.add("#date1#"); values.add(date1); values.add("#date2#"); values.add(date2); values.add("#text#"); values.add(text); values.add("#file#"); values.add(whichFile); values.add("#options#"); values.add(options); String parsed = IMCServiceRMI.parseExternalDoc(imcServer, values, "AdminFortuneFile.htm" , "se", "admin"); out.print(parsed); return; } }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/AdminFortuneFile.java/buggy/servlets/AdminFortuneFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 202, 15069, 16517, 16, 1860, 225, 202, 95, 377, 202, 202, 759, 511, 2413, 336, 326, 1438, 333, 590, 1703, 279, 381, 329, 364, 202, 202, 780, 1479, 273, 1111, 18, 588, 1864, 2932, 2594, 7923, 274, 1082, 202, 780, 709, 71, 2081, 273, 13134, 18, 588, 3748, 23218, 2932, 3666, 3567, 3113, 2564, 13, 274, 9506, 202, 2940, 2157, 1339, 273, 1111, 18, 588, 2157, 5621, 9506, 202, 455, 18, 542, 8046, 2932, 955, 19, 2620, 8863, 202, 202, 5108, 2289, 596, 273, 400, 18, 588, 2289, 5621, 9506, 202, 780, 1492, 812, 273, 261, 780, 13, 3184, 18, 588, 1499, 2932, 768, 7923, 274, 9506, 202, 430, 261, 3658, 18, 588, 1662, 2932, 823, 7923, 5, 33, 2011, 13, 202, 202, 95, 1082, 202, 780, 880, 273, 6565, 966, 18, 588, 4745, 743, 12, 3658, 13, 397, 315, 4446, 42, 499, 27490, 14432, 1082, 202, 455, 18, 4661, 5961, 12, 718, 13, 274, 1082, 202, 2463, 31, 202, 202, 97, 6862, 202, 430, 261, 3658, 18, 588, 1662, 2932, 5688, 7923, 5, 33, 2011, 13, 202, 202, 95, 6862, 1082, 202, 759, 659, 18, 8222, 2932, 601, 5391, 6206, 329, 411, 2848, 34, 315, 1769, 1082, 202, 759, 87, 25072, 977, 275, 21364, 661, 275, 1082, 202, 759, 780, 364, 88, 7556, 67, 803, 273, 13134, 18, 588, 3748, 23218, 2932, 42, 499, 7556, 743, 3113, 2564, 1769, 6862, 6862, 202, 812, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 202, 15069, 16517, 16, 1860, 225, 202, 95, 377, 202, 202, 759, 511, 2413, 336, 326, 1438, 333, 590, 1703, 279, 381, 329, 364, 202, 202, 780, 1479, 273, 1111, 18, 588, 1864, 2932, 2594, 7923, 274, 1082, 202, 780, 709, 71, 2081, 273, 13134, 18, 588, 3748, 23218, 2932, 3666, 3567, 3113, 2564, 13, 274, 9506, 202, 2940, 2157, 1339, 273, 1111, 18, 588, 2157, 5621, 9506, 202, 455, 18, 542, 8046, 2932, 955, 19, 2620, 8863, 202, 202, 5108, 2289, 596, 273, 400, 18, 588, 2289, 5621, 9506, 202, 780, 1492, 812, 273, 261, 780, 13, 3184, 18, 588, 1499, 2932, 768, 7923, 274, 2 ]
if (jj_scan_token(MINUSMINUS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_121()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false;
Token xsp; xsp = jj_scanpos; if (jj_3R_269()) { jj_scanpos = xsp; if (jj_3R_270()) { jj_scanpos = xsp; if (jj_3R_271()) { jj_scanpos = xsp; if (jj_3R_272()) return true;
static final private boolean jj_3R_236() { if (jj_scan_token(MINUSMINUS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_121()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/23e69d576250f417c265d779703b8da08a67aaed/CPPParser.java/clean/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 727, 3238, 1250, 10684, 67, 23, 54, 67, 29941, 1435, 288, 3639, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 6236, 3378, 6236, 3378, 3719, 327, 638, 31, 3639, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 3639, 309, 261, 78, 78, 67, 23, 54, 67, 26009, 10756, 327, 638, 31, 3639, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 3639, 327, 629, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 727, 3238, 1250, 10684, 67, 23, 54, 67, 29941, 1435, 288, 3639, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 6236, 3378, 6236, 3378, 3719, 327, 638, 31, 3639, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 3639, 309, 261, 78, 78, 67, 23, 54, 67, 26009, 10756, 327, 638, 31, 3639, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 3639, 327, 629, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Extension extension = readByNumber(number); if (extension != null && !extension.equals(this)) { throw new DomainException("error.extension.already.exists.one.extension.with.same.number"); }
Extension extension = readByNumber(number); if (extension != null && !extension.equals(this)) { throw new DomainException("error.extension.already.exists.one.extension.with.same.number"); }
private void checkNumber(Integer number) { Extension extension = readByNumber(number); if (extension != null && !extension.equals(this)) { throw new DomainException("error.extension.already.exists.one.extension.with.same.number"); } }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/6f5486d955e45522111c2149f7d538ac62a9ad17/Extension.java/clean/src/net/sourceforge/fenixedu/domain/material/Extension.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 866, 1854, 12, 4522, 1300, 13, 288, 3639, 10021, 2710, 273, 855, 858, 1854, 12, 2696, 1769, 3639, 309, 261, 6447, 480, 446, 597, 401, 6447, 18, 14963, 12, 2211, 3719, 288, 5411, 604, 394, 24569, 2932, 1636, 18, 6447, 18, 17583, 18, 1808, 18, 476, 18, 6447, 18, 1918, 18, 14307, 18, 2696, 8863, 3639, 289, 565, 289, 6647, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 918, 866, 1854, 12, 4522, 1300, 13, 288, 3639, 10021, 2710, 273, 855, 858, 1854, 12, 2696, 1769, 3639, 309, 261, 6447, 480, 446, 597, 401, 6447, 18, 14963, 12, 2211, 3719, 288, 5411, 604, 394, 24569, 2932, 1636, 18, 6447, 18, 17583, 18, 1808, 18, 476, 18, 6447, 18, 1918, 18, 14307, 18, 2696, 8863, 3639, 289, 565, 289, 6647, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if ( border.noLeft() ) {
if (border.noLeft()) {
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if ( border.noTop()) { sides -= TOP; } } if ((sides & LEFT) == LEFT) { if ( border.noLeft() ) { sides -= LEFT; } } if ((sides & BOTTOM) == BOTTOM) { if ( border.noBottom()) { sides -= BOTTOM; } } if ((sides & RIGHT) == RIGHT) { if ( border.noRight()) { sides -= RIGHT; } } //Now paint! if ((sides & TOP) == TOP) paintBorderSide(border, g, bounds, sides, TOP, border.topStyle(), xOffset); if ((sides & LEFT) == LEFT) paintBorderSide(border, g, bounds, sides, LEFT, border.leftStyle(), xOffset); if ((sides & BOTTOM) == BOTTOM) paintBorderSide(border, g, bounds, sides, BOTTOM, border.bottomStyle(), xOffset); if ((sides & RIGHT) == RIGHT) paintBorderSide(border, g, bounds, sides, RIGHT, border.rightStyle(), xOffset); }
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/1ca686f10a0033c5e79968a5d664589db0fef2ec/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 12574, 12, 19463, 4972, 16, 509, 22423, 16, 15994, 690, 2885, 2154, 16, 16830, 314, 16, 18018, 1042, 1103, 16, 509, 619, 2335, 13, 288, 3639, 13525, 1396, 694, 5795, 273, 2154, 18, 588, 8107, 12, 5900, 1769, 3639, 309, 14015, 87, 4369, 473, 18680, 13, 422, 18680, 13, 288, 5411, 309, 261, 5795, 18, 2135, 3401, 10756, 288, 7734, 22423, 3947, 18680, 31, 5411, 289, 3639, 289, 3639, 309, 14015, 87, 4369, 473, 9686, 13, 422, 9686, 13, 288, 5411, 309, 261, 8815, 18, 2135, 3910, 10756, 288, 7734, 22423, 3947, 9686, 31, 5411, 289, 3639, 289, 3639, 309, 14015, 87, 4369, 473, 30666, 13, 422, 30666, 13, 288, 5411, 309, 261, 5795, 18, 2135, 10393, 10756, 288, 7734, 22423, 3947, 30666, 31, 5411, 289, 3639, 289, 3639, 309, 14015, 87, 4369, 473, 13135, 13, 422, 13135, 13, 288, 5411, 309, 261, 5795, 18, 2135, 4726, 10756, 288, 7734, 22423, 3947, 13135, 31, 5411, 289, 3639, 289, 3639, 368, 8674, 12574, 5, 3639, 309, 14015, 87, 4369, 473, 18680, 13, 422, 18680, 13, 5411, 12574, 8107, 8895, 12, 8815, 16, 314, 16, 4972, 16, 22423, 16, 18680, 16, 5795, 18, 3669, 2885, 9334, 619, 2335, 1769, 3639, 309, 14015, 87, 4369, 473, 9686, 13, 422, 9686, 13, 5411, 12574, 8107, 8895, 12, 8815, 16, 314, 16, 4972, 16, 22423, 16, 9686, 16, 5795, 18, 4482, 2885, 9334, 619, 2335, 1769, 3639, 309, 14015, 87, 4369, 473, 30666, 13, 422, 30666, 13, 5411, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12574, 12, 19463, 4972, 16, 509, 22423, 16, 15994, 690, 2885, 2154, 16, 16830, 314, 16, 18018, 1042, 1103, 16, 509, 619, 2335, 13, 288, 3639, 13525, 1396, 694, 5795, 273, 2154, 18, 588, 8107, 12, 5900, 1769, 3639, 309, 14015, 87, 4369, 473, 18680, 13, 422, 18680, 13, 288, 5411, 309, 261, 5795, 18, 2135, 3401, 10756, 288, 7734, 22423, 3947, 18680, 31, 5411, 289, 3639, 289, 3639, 309, 14015, 87, 4369, 473, 9686, 13, 422, 9686, 13, 288, 5411, 309, 261, 8815, 18, 2135, 3910, 10756, 288, 7734, 22423, 3947, 9686, 31, 5411, 289, 3639, 289, 3639, 309, 14015, 87, 4369, 473, 30666, 13, 422, 30666, 13, 288, 5411, 309, 261, 5795, 18, 2 ]
if ( featureID >= 0 )
switch ( featureID )
public NotificationChain eInverseRemove( InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs ) { if ( featureID >= 0 ) { switch ( eDerivedStructuralFeatureID( featureID, baseClass ) ) { case AttributePackage.GRADIENT__START_COLOR : return basicSetStartColor( null, msgs ); case AttributePackage.GRADIENT__END_COLOR : return basicSetEndColor( null, msgs ); default : return eDynamicInverseRemove( otherEnd, featureID, baseClass, msgs ); } } return eBasicSetContainer( null, featureID, msgs ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/036e8c78765730b146e5854b9d6c397a296fed86/GradientImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/GradientImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 27050, 425, 16376, 3288, 12, 3186, 8029, 1308, 1638, 16, 1082, 202, 474, 6966, 16, 1659, 23955, 16, 27050, 8733, 262, 202, 95, 202, 202, 430, 261, 6966, 1545, 374, 262, 202, 202, 95, 1082, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 6966, 16, 23955, 262, 262, 1082, 202, 95, 9506, 202, 3593, 3601, 2261, 18, 6997, 17708, 2222, 972, 7570, 67, 10989, 294, 6862, 202, 2463, 5337, 694, 1685, 2957, 12, 446, 16, 8733, 11272, 9506, 202, 3593, 3601, 2261, 18, 6997, 17708, 2222, 972, 4415, 67, 10989, 294, 6862, 202, 2463, 5337, 694, 1638, 2957, 12, 446, 16, 8733, 11272, 9506, 202, 1886, 294, 6862, 202, 2463, 425, 9791, 16376, 3288, 12, 1308, 1638, 16, 6862, 1082, 202, 7238, 734, 16, 6862, 1082, 202, 1969, 797, 16, 6862, 1082, 202, 27439, 11272, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 425, 8252, 694, 2170, 12, 446, 16, 6966, 16, 8733, 11272, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 27050, 425, 16376, 3288, 12, 3186, 8029, 1308, 1638, 16, 1082, 202, 474, 6966, 16, 1659, 23955, 16, 27050, 8733, 262, 202, 95, 202, 202, 430, 261, 6966, 1545, 374, 262, 202, 202, 95, 1082, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 6966, 16, 23955, 262, 262, 1082, 202, 95, 9506, 202, 3593, 3601, 2261, 18, 6997, 17708, 2222, 972, 7570, 67, 10989, 294, 6862, 202, 2463, 5337, 694, 1685, 2957, 12, 446, 16, 8733, 11272, 9506, 202, 3593, 3601, 2261, 18, 6997, 17708, 2222, 972, 4415, 67, 10989, 294, 6862, 202, 2463, 5337, 694, 1638, 2957, 12, 446, 16, 8733, 11272, 9506, 202, 1886, 294, 6862, 202, 2463, 425, 9791, 16376, 3288, 12, 2 ]
for (int i = 1; i < myProduction.size() - 1; i++) { ProductionMarker item = myProduction.get(i); if (item instanceof StartMarker) { while (item.myLexemIndex < myLexems.size() && myWhitespaces.contains(myLexems.get(item.myLexemIndex).getTokenType())) item.myLexemIndex++; } else if (item instanceof DoneMarker || item instanceof ErrorItem) { int prevProductionLexIndex = myProduction.get(i - 1).myLexemIndex; while (item.myLexemIndex > prevProductionLexIndex && item.myLexemIndex < myLexems.size() && myWhitespaces.contains(myLexems.get(item.myLexemIndex - 1).getTokenType())) { item.myLexemIndex--; } } } ASTNode curNode = rootNode; int curToken = 0; int lastErrorIndex = -1; for (int i = 1; i < myProduction.size(); i++) { ProductionMarker item = myProduction.get(i); LOG.assertTrue(curNode != null, "Unexpected end of the production"); int lexIndex = item.myLexemIndex; if (item instanceof StartMarker) { StartMarker marker = (StartMarker)item; curToken = insertLeafs(curToken, lexIndex, curNode); ASTNode childNode; if (marker.myType != ElementType.ERROR_ELEMENT) { childNode = createComposite(marker); } else { childNode = new PsiErrorElementImpl(); if (marker.myDoneMarker instanceof DoneWithErrorMarker) { ((PsiErrorElementImpl)childNode).setErrorDescription(((DoneWithErrorMarker)marker.myDoneMarker).myMessage); } } TreeUtil.addChildren((CompositeElement)curNode, (TreeElement)childNode); curNode = childNode; } else if (item instanceof DoneMarker) { DoneMarker doneMarker = (DoneMarker)item; curToken = insertLeafs(curToken, lexIndex, curNode); LOG.assertTrue(doneMarker.myStart.myType == curNode.getElementType()); curNode = curNode.getTreeParent(); } else if (item instanceof ErrorItem) { curToken = insertLeafs(curToken, lexIndex, curNode); if (curToken == lastErrorIndex) continue; lastErrorIndex = curToken; final PsiErrorElementImpl errorElement = new PsiErrorElementImpl(); errorElement.setErrorDescription(((ErrorItem)item).myMessage); TreeUtil.addChildren((CompositeElement)curNode, errorElement); } } final boolean allTokensInserted = curToken == myLexems.size(); if (!allTokensInserted) { LOG.assertTrue(false, "Not all of the tokens inserted to the tree, parsed text:\n" + myText); } LOG.assertTrue(curNode == null, "Unbalanced tree"); return rootNode;
public ASTNode getTreeBuilt() { StartMarker rootMarker = (StartMarker)myProduction.get(0); final ASTNode rootNode; if (myFileLevelParsing) { rootNode = new FileElement(rootMarker.myType); myCharTable = ((FileElement)rootNode).getCharTable(); } else { rootNode = createComposite(rootMarker); rootNode.putUserData(CharTable.CHAR_TABLE_KEY, myCharTable); } for (int i = 1; i < myProduction.size() - 1; i++) { ProductionMarker item = myProduction.get(i); if (item instanceof StartMarker) { while (item.myLexemIndex < myLexems.size() && myWhitespaces.contains(myLexems.get(item.myLexemIndex).getTokenType())) item.myLexemIndex++; } else if (item instanceof DoneMarker || item instanceof ErrorItem) { int prevProductionLexIndex = myProduction.get(i - 1).myLexemIndex; while (item.myLexemIndex > prevProductionLexIndex && item.myLexemIndex < myLexems.size() && myWhitespaces.contains(myLexems.get(item.myLexemIndex - 1).getTokenType())) { item.myLexemIndex--; } } } ASTNode curNode = rootNode; int curToken = 0; int lastErrorIndex = -1; for (int i = 1; i < myProduction.size(); i++) { ProductionMarker item = myProduction.get(i); LOG.assertTrue(curNode != null, "Unexpected end of the production"); int lexIndex = item.myLexemIndex; if (item instanceof StartMarker) { StartMarker marker = (StartMarker)item; curToken = insertLeafs(curToken, lexIndex, curNode); ASTNode childNode; if (marker.myType != ElementType.ERROR_ELEMENT) { childNode = createComposite(marker); } else { childNode = new PsiErrorElementImpl(); if (marker.myDoneMarker instanceof DoneWithErrorMarker) { ((PsiErrorElementImpl)childNode).setErrorDescription(((DoneWithErrorMarker)marker.myDoneMarker).myMessage); } } TreeUtil.addChildren((CompositeElement)curNode, (TreeElement)childNode); curNode = childNode; } else if (item instanceof DoneMarker) { DoneMarker doneMarker = (DoneMarker)item; curToken = insertLeafs(curToken, lexIndex, curNode); LOG.assertTrue(doneMarker.myStart.myType == curNode.getElementType()); curNode = curNode.getTreeParent(); } else if (item instanceof ErrorItem) { curToken = insertLeafs(curToken, lexIndex, curNode); if (curToken == lastErrorIndex) continue; lastErrorIndex = curToken; final PsiErrorElementImpl errorElement = new PsiErrorElementImpl(); errorElement.setErrorDescription(((ErrorItem)item).myMessage); TreeUtil.addChildren((CompositeElement)curNode, errorElement); } } final boolean allTokensInserted = curToken == myLexems.size(); if (!allTokensInserted) { LOG.assertTrue(false, "Not all of the tokens inserted to the tree, parsed text:\n" + myText); } LOG.assertTrue(curNode == null, "Unbalanced tree"); return rootNode; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/861c681cc7935120b47c55d28c7871a6cd77bffb/PsiBuilderImpl.java/buggy/source/com/intellij/lang/impl/PsiBuilderImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9183, 907, 15867, 16409, 1435, 288, 565, 3603, 7078, 1365, 7078, 273, 261, 1685, 7078, 13, 4811, 31590, 18, 588, 12, 20, 1769, 565, 727, 9183, 907, 10181, 31, 565, 309, 261, 4811, 812, 2355, 13963, 13, 288, 1377, 10181, 273, 394, 1387, 1046, 12, 3085, 7078, 18, 4811, 559, 1769, 1377, 3399, 2156, 1388, 273, 14015, 812, 1046, 13, 3085, 907, 2934, 588, 2156, 1388, 5621, 565, 289, 565, 469, 288, 1377, 10181, 273, 752, 9400, 12, 3085, 7078, 1769, 1377, 10181, 18, 458, 19265, 12, 2156, 1388, 18, 7305, 67, 7775, 67, 3297, 16, 3399, 2156, 1388, 1769, 565, 289, 565, 364, 261, 474, 277, 273, 404, 31, 277, 411, 3399, 31590, 18, 1467, 1435, 300, 404, 31, 277, 27245, 288, 1377, 10856, 349, 7078, 761, 273, 3399, 31590, 18, 588, 12, 77, 1769, 1377, 309, 261, 1726, 1276, 3603, 7078, 13, 288, 3639, 1323, 261, 1726, 18, 4811, 14756, 351, 1016, 411, 3399, 14756, 7424, 18, 1467, 1435, 597, 3399, 2888, 21693, 18, 12298, 12, 4811, 14756, 7424, 18, 588, 12, 1726, 18, 4811, 14756, 351, 1016, 2934, 588, 28675, 1435, 3719, 761, 18, 4811, 14756, 351, 1016, 9904, 31, 1377, 289, 1377, 469, 309, 261, 1726, 1276, 8677, 7078, 747, 761, 1276, 1068, 1180, 13, 288, 3639, 509, 2807, 31590, 14756, 1016, 273, 3399, 31590, 18, 588, 12, 77, 300, 404, 2934, 4811, 14756, 351, 1016, 31, 3639, 1323, 261, 1726, 18, 4811, 14756, 351, 1016, 405, 2807, 31590, 14756, 1016, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9183, 907, 15867, 16409, 1435, 288, 565, 3603, 7078, 1365, 7078, 273, 261, 1685, 7078, 13, 4811, 31590, 18, 588, 12, 20, 1769, 565, 727, 9183, 907, 10181, 31, 565, 309, 261, 4811, 812, 2355, 13963, 13, 288, 1377, 10181, 273, 394, 1387, 1046, 12, 3085, 7078, 18, 4811, 559, 1769, 1377, 3399, 2156, 1388, 273, 14015, 812, 1046, 13, 3085, 907, 2934, 588, 2156, 1388, 5621, 565, 289, 565, 469, 288, 1377, 10181, 273, 752, 9400, 12, 3085, 7078, 1769, 1377, 10181, 18, 458, 19265, 12, 2156, 1388, 18, 7305, 67, 7775, 67, 3297, 16, 3399, 2156, 1388, 1769, 565, 289, 565, 364, 261, 474, 277, 273, 404, 31, 277, 411, 3399, 31590, 18, 1467, 1435, 2 ]
private void generateStreamElement(TEDS teds, String status) { try { if (status == ADD_ACTION) tedsResult = tedsToVirtualSensor.GenerateVS(teds); if (status == REMOVE_ACTION) tedsResult = tedsToVirtualSensor.getTedsToVSResult(teds); StreamElement streamElement = new StreamElement( OUTPUT_FIELD_NAMES, OUTPUT_FIELD_TYPES, new Serializable[] { tedsResult.tedsID, "</center>" + tedsResult.tedsHtmlString + "<center>", status, tedsResult.fileName }, System.currentTimeMillis()); publishData(streamElement); } catch (RuntimeException e1) { e1.printStackTrace(); logger.error(new StringBuilder().append(" ********TEDS ERROR") .toString()); } try { Thread.sleep(3000); } catch (InterruptedException e) { e.printStackTrace(); } }
private void generateStreamElement ( TEDS teds , String status ) { try { if ( status == ADD_ACTION ) tedsResult = tedsToVirtualSensor.GenerateVS( teds ); if ( status == REMOVE_ACTION ) tedsResult = tedsToVirtualSensor.getTedsToVSResult( teds ); StreamElement streamElement = new StreamElement( OUTPUT_FIELD_NAMES , OUTPUT_FIELD_TYPES , new Serializable [ ] { tedsResult.tedsID , "</center>" + tedsResult.tedsHtmlString + "<center>" , status , tedsResult.fileName } , System.currentTimeMillis( ) ); publishData( streamElement ); } catch ( RuntimeException e1 ) { e1.printStackTrace( ); logger.error( new StringBuilder( ).append( " ********TEDS ERROR" ).toString( ) ); } try { Thread.sleep( 3000 ); } catch ( InterruptedException e ) { e.printStackTrace( ); } }
private void generateStreamElement(TEDS teds, String status) { try { if (status == ADD_ACTION) tedsResult = tedsToVirtualSensor.GenerateVS(teds); if (status == REMOVE_ACTION) tedsResult = tedsToVirtualSensor.getTedsToVSResult(teds); StreamElement streamElement = new StreamElement( OUTPUT_FIELD_NAMES, OUTPUT_FIELD_TYPES, new Serializable[] { tedsResult.tedsID, "</center>" + tedsResult.tedsHtmlString + "<center>", status, tedsResult.fileName }, System.currentTimeMillis()); publishData(streamElement); } catch (RuntimeException e1) { // TODO Auto-generated catch block e1.printStackTrace(); logger.error(new StringBuilder().append(" ********TEDS ERROR") .toString()); } try { Thread.sleep(3000); } catch (InterruptedException e) { e.printStackTrace(); } }
45185 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45185/ab5d572cb1d09302baddd69925cced1edd342468/CameraIdentifier.java/buggy/src/gsn/wrappers/ieee1451/CameraIdentifier.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 1228, 1046, 12, 1448, 3948, 268, 9765, 16, 514, 1267, 13, 288, 202, 698, 288, 202, 565, 309, 261, 2327, 422, 11689, 67, 12249, 13, 202, 202, 2344, 87, 1253, 273, 268, 9765, 774, 6466, 22294, 18, 4625, 14640, 12, 2344, 87, 1769, 202, 565, 309, 261, 2327, 422, 26056, 67, 12249, 13, 202, 202, 2344, 87, 1253, 273, 268, 9765, 774, 6466, 22294, 18, 588, 56, 9765, 774, 14640, 1253, 12, 2344, 87, 1769, 202, 565, 3961, 1046, 1407, 1046, 273, 394, 3961, 1046, 12, 1082, 565, 11550, 67, 6776, 67, 16257, 16, 1082, 565, 11550, 67, 6776, 67, 10564, 16, 1082, 565, 394, 13687, 8526, 288, 9506, 565, 268, 9765, 1253, 18, 2344, 87, 734, 16, 9506, 565, 6823, 5693, 2984, 397, 268, 9765, 1253, 18, 2344, 87, 4353, 780, 6862, 565, 397, 3532, 5693, 2984, 16, 1267, 16, 268, 9765, 1253, 18, 17812, 19879, 1082, 565, 2332, 18, 2972, 28512, 10663, 202, 565, 3808, 751, 12, 3256, 1046, 1769, 202, 97, 1044, 261, 11949, 425, 21, 13, 288, 202, 565, 368, 2660, 8064, 17, 11168, 1044, 1203, 202, 565, 425, 21, 18, 1188, 6332, 5621, 202, 565, 1194, 18, 1636, 12, 2704, 3225, 7675, 6923, 2932, 380, 27243, 1448, 3948, 5475, 7923, 1082, 565, 263, 10492, 10663, 202, 97, 202, 698, 288, 202, 565, 4884, 18, 19607, 12, 23, 3784, 1769, 202, 97, 1044, 261, 24485, 503, 425, 13, 288, 202, 565, 425, 18, 1188, 6332, 5621, 202, 97, 565, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 1228, 1046, 12, 1448, 3948, 268, 9765, 16, 514, 1267, 13, 288, 202, 698, 288, 202, 565, 309, 261, 2327, 422, 11689, 67, 12249, 13, 202, 202, 2344, 87, 1253, 273, 268, 9765, 774, 6466, 22294, 18, 4625, 14640, 12, 2344, 87, 1769, 202, 565, 309, 261, 2327, 422, 26056, 67, 12249, 13, 202, 202, 2344, 87, 1253, 273, 268, 9765, 774, 6466, 22294, 18, 588, 56, 9765, 774, 14640, 1253, 12, 2344, 87, 1769, 202, 565, 3961, 1046, 1407, 1046, 273, 394, 3961, 1046, 12, 1082, 565, 11550, 67, 6776, 67, 16257, 16, 1082, 565, 11550, 67, 6776, 67, 10564, 16, 1082, 565, 394, 13687, 8526, 288, 9506, 565, 268, 9765, 1253, 18, 2344, 2 ]
if (log.isLoggable(Level.FINEST)) { long[] abortCreateIDs = new long[createdIDs.size()]; int i = 0; for (long key : createdIDs) { abortCreateIDs[i++] = key;
if (DEBUG) { if (log.isLoggable(Level.FINEST)) { long[] abortCreateIDs = new long[createdIDs.size()]; int i = 0; for (long key : createdIDs) { abortCreateIDs[i++] = key; } Arrays.sort(abortCreateIDs); log.finest("trans nuking " + createdIDs.size() + " partial creates: " + Arrays.toString(abortCreateIDs)); } else { log.finer(txnID + " trans nuking " + createdIDs.size() + " partial creates");
public void abort() { if (log.isLoggable(Level.FINEST)) { long[] abortCreateIDs = new long[createdIDs.size()]; int i = 0; for (long key : createdIDs) { abortCreateIDs[i++] = key; } Arrays.sort(abortCreateIDs); log.finest("trans nuking " + createdIDs.size() + " partial creates: " + Arrays.toString(abortCreateIDs)); } else { log.finer(transactionID + " trans nuking " + createdIDs.size() + " partial creates"); } Set<SGSUUID> listeners = new HashSet<SGSUUID>(); Set<Long> dataspaceLocks = new HashSet<Long>(); for (Long l : createdIDs) { try { if (! dataspaceLocks.contains(l)) { trans.lock(l); dataspaceLocks.add(l); } TSODataHeader hdr = (TSODataHeader) trans.read(l); listeners.addAll(hdr.availabilityListeners); log.finest("destroy invalid " + hdr); trans.destroy(hdr.objectID); trans.destroy(l); lockedObjectsMap.remove(l); } catch (Exception e) { // XXX Remember to throw something at the end e.printStackTrace(); } } for (Long l : deletedIDs) { try { if (! dataspaceLocks.contains(l)) { trans.lock(l); dataspaceLocks.add(l); } TSODataHeader hdr = (TSODataHeader) trans.read(l); listeners.addAll(hdr.availabilityListeners); hdr.free = true; trans.write(l, hdr); lockedObjectsMap.remove(l); log.finest("abort-delete " + hdr); } catch (Exception e) { // XXX Remember to throw something at the end e.printStackTrace(); } } for (Entry<Long, Serializable> entry : lockedObjectsMap.entrySet()) { Long l = entry.getKey(); try { if (! dataspaceLocks.contains(l)) { trans.lock(l); dataspaceLocks.add(l); } TSODataHeader hdr = (TSODataHeader) trans.read(l); listeners.addAll(hdr.availabilityListeners); hdr.free = true; //hdr.createNotCommitted = false; // not needed for everyone trans.write(l, hdr); log.finest("abort-update " + hdr); } catch (NonExistantObjectIDException e) { e.printStackTrace(); } } log.finest("abort commiting txn " + transactionID); trans.commit(); lockedObjectsMap.clear(); createdIDs.clear(); deletedIDs.clear(); ostore.notifyAvailabilityListeners(new ArrayList(listeners)); ostore.deregisterActiveTransaction(this); }
55380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55380/e45187afcd03821b499a8c220fa6f9a88a23be20/TSOTransaction.java/clean/src/com/sun/gi/objectstore/tso/TSOTransaction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 6263, 1435, 288, 202, 430, 261, 1330, 18, 291, 1343, 8455, 12, 2355, 18, 42, 3740, 882, 3719, 288, 202, 565, 1525, 8526, 6263, 1684, 5103, 273, 394, 1525, 63, 4824, 5103, 18, 1467, 1435, 15533, 202, 565, 509, 277, 273, 374, 31, 202, 565, 364, 261, 5748, 498, 294, 2522, 5103, 13, 288, 202, 202, 18623, 1684, 5103, 63, 77, 9904, 65, 273, 498, 31, 202, 565, 289, 202, 565, 5647, 18, 3804, 12, 18623, 1684, 5103, 1769, 202, 565, 613, 18, 926, 395, 2932, 2338, 9244, 79, 310, 315, 397, 2522, 5103, 18, 1467, 1435, 397, 1082, 565, 315, 4702, 3414, 30, 315, 397, 1082, 565, 5647, 18, 10492, 12, 18623, 1684, 5103, 10019, 202, 97, 469, 288, 202, 565, 613, 18, 926, 264, 12, 7958, 734, 397, 315, 906, 9244, 79, 310, 315, 397, 1082, 565, 2522, 5103, 18, 1467, 1435, 397, 315, 4702, 3414, 8863, 202, 97, 3639, 1000, 32, 55, 16113, 5562, 34, 4679, 273, 394, 6847, 32, 55, 16113, 5562, 34, 5621, 3639, 1000, 32, 3708, 34, 5386, 909, 19159, 273, 394, 6847, 32, 3708, 34, 5621, 202, 1884, 261, 3708, 328, 294, 2522, 5103, 13, 288, 202, 565, 775, 288, 202, 202, 430, 16051, 5386, 909, 19159, 18, 12298, 12, 80, 3719, 288, 1082, 565, 906, 18, 739, 12, 80, 1769, 1082, 565, 5386, 909, 19159, 18, 1289, 12, 80, 1769, 202, 202, 97, 202, 202, 56, 3584, 751, 1864, 7723, 273, 261, 56, 3584, 751, 1864, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6263, 1435, 288, 202, 430, 261, 1330, 18, 291, 1343, 8455, 12, 2355, 18, 42, 3740, 882, 3719, 288, 202, 565, 1525, 8526, 6263, 1684, 5103, 273, 394, 1525, 63, 4824, 5103, 18, 1467, 1435, 15533, 202, 565, 509, 277, 273, 374, 31, 202, 565, 364, 261, 5748, 498, 294, 2522, 5103, 13, 288, 202, 202, 18623, 1684, 5103, 63, 77, 9904, 65, 273, 498, 31, 202, 565, 289, 202, 565, 5647, 18, 3804, 12, 18623, 1684, 5103, 1769, 202, 565, 613, 18, 926, 395, 2932, 2338, 9244, 79, 310, 315, 397, 2522, 5103, 18, 1467, 1435, 397, 1082, 565, 315, 4702, 3414, 30, 315, 397, 1082, 565, 5647, 18, 10492, 12, 18623, 1684, 5103, 10019, 2 ]
GetDoc.redirectToExternalDocumentTypeWithAction( getDocument(), response, "new" );
GetDoc.redirectToExternalDocumentTypeWithAction( getDocument(), request, response, "new" );
protected void dispatchOkFromDocumentInformation( HttpServletRequest request, HttpServletResponse response ) throws IOException, ServletException { saveDocument( request ); GetDoc.redirectToExternalDocumentTypeWithAction( getDocument(), response, "new" ); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/87b69f96a6eb89479c3c758ebc78687e1213e054/CreateFormerExternalDocumentPageFlow.java/clean/server/src/com/imcode/imcms/flow/CreateFormerExternalDocumentPageFlow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 3435, 8809, 1265, 2519, 5369, 12, 9984, 590, 16, 12446, 766, 262, 1216, 1860, 16, 16517, 288, 3639, 1923, 2519, 12, 590, 11272, 3639, 968, 1759, 18, 7590, 774, 6841, 2519, 559, 1190, 1803, 12, 9956, 9334, 590, 16, 766, 16, 315, 2704, 6, 11272, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4750, 918, 3435, 8809, 1265, 2519, 5369, 12, 9984, 590, 16, 12446, 766, 262, 1216, 1860, 16, 16517, 288, 3639, 1923, 2519, 12, 590, 11272, 3639, 968, 1759, 18, 7590, 774, 6841, 2519, 559, 1190, 1803, 12, 9956, 9334, 590, 16, 766, 16, 315, 2704, 6, 11272, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
gc.set(Calendar.MONTH, nums[2]);
gc.set(Calendar.MONTH, nums[2]-1);
public void findOldLogFiles() { int slashIndex = baseFilename.lastIndexOf(File.separatorChar); File dir; String prefix; if(slashIndex == -1) { dir = new File(System.getProperty("user.dir")); prefix = baseFilename.toLowerCase(); } else { dir = new File(baseFilename.substring(0, slashIndex)); prefix = baseFilename.substring(slashIndex+1).toLowerCase(); } File[] files = dir.listFiles(); java.util.Arrays.sort(files); long lastStartTime = -1; File oldFile = null; for(int i=0;i<files.length;i++) { File f = files[i]; String name = f.getName(); if(name.toLowerCase().startsWith(prefix)) { if(name.equals(previousFilename)) { Logger.minor(this, "Deleting "+previousFilename); f.delete(); continue; } else if(name.equals(latestFilename)) { Logger.minor(this, "Renaming latest to previous"); f.renameTo(previousFilename); continue; } if(!name.endsWith(".log.gz")) { Logger.minor(this, "Does not end in .log.gz: "+name); f.delete(); continue; } else { name = name.substring(0, name.length()-".log.gz".length()); } name = name.substring(prefix.length()); if(name.length() == 0 || name.charAt(0) != '-') { Logger.minor(this, "Deleting unrecognized: "+name+" ("+f.getPath()+")"); f.delete(); continue; } else name = name.substring(1); String[] tokens = name.split("-"); int[] nums = new int[tokens.length]; for(int j=0;j<tokens.length;j++) { try { nums[j] = Integer.parseInt(tokens[j]); } catch (NumberFormatException e) { Logger.normal(this, "Could not parse: "+tokens[j]+" into number from "+name); // Broken f.delete(); continue; } } // First field: version if(nums[0] != Version.buildNumber) { Logger.minor(this, "Deleting old log from build "+nums[0]+", current="+Version.buildNumber); // Logs that old are useless f.delete(); continue; } GregorianCalendar gc = new GregorianCalendar(); if(nums.length > 1) gc.set(Calendar.YEAR, nums[1]); if(nums.length > 2) gc.set(Calendar.MONTH, nums[2]); if(nums.length > 3) gc.set(Calendar.DAY_OF_MONTH, nums[3]); if(nums.length > 4) gc.set(Calendar.HOUR_OF_DAY, nums[4]); if(nums.length > 5) gc.set(Calendar.MINUTE, nums[5]); long startTime = gc.getTimeInMillis(); if(oldFile != null) { long l = oldFile.length(); OldLogFile olf = new OldLogFile(oldFile, lastStartTime, startTime, l); logFiles.addLast(olf); oldLogFilesDiskSpaceUsage += l; } lastStartTime = -1; oldFile = f; } else { // Nothing to do with us Logger.normal(this, "Unknown file: "+name+" in our log directory"); } } if(oldFile != null) { long l = oldFile.length(); OldLogFile olf = new OldLogFile(oldFile, lastStartTime, System.currentTimeMillis(), l); logFiles.addLast(olf); oldLogFilesDiskSpaceUsage += l; } trimOldLogFiles(); }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/a4fbc0503efa638a45b13ca5767c814868fc6f8f/FileLoggerHook.java/buggy/src/freenet/support/FileLoggerHook.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1104, 7617, 1343, 2697, 1435, 288, 202, 202, 474, 9026, 1016, 273, 1026, 5359, 18, 2722, 31985, 12, 812, 18, 11287, 2156, 1769, 202, 202, 812, 1577, 31, 202, 202, 780, 1633, 31, 202, 202, 430, 12, 12877, 1016, 422, 300, 21, 13, 288, 1082, 202, 1214, 273, 394, 1387, 12, 3163, 18, 588, 1396, 2932, 1355, 18, 1214, 7923, 1769, 1082, 202, 3239, 273, 1026, 5359, 18, 869, 5630, 5621, 202, 202, 97, 469, 288, 1082, 202, 1214, 273, 394, 1387, 12, 1969, 5359, 18, 28023, 12, 20, 16, 9026, 1016, 10019, 1082, 202, 3239, 273, 1026, 5359, 18, 28023, 12, 12877, 1016, 15, 21, 2934, 869, 5630, 5621, 202, 202, 97, 202, 202, 812, 8526, 1390, 273, 1577, 18, 1098, 2697, 5621, 202, 202, 6290, 18, 1367, 18, 12726, 18, 3804, 12, 2354, 1769, 202, 202, 5748, 1142, 13649, 273, 300, 21, 31, 202, 202, 812, 1592, 812, 273, 446, 31, 202, 202, 1884, 12, 474, 277, 33, 20, 31, 77, 32, 2354, 18, 2469, 31, 77, 27245, 288, 1082, 202, 812, 284, 273, 1390, 63, 77, 15533, 1082, 202, 780, 508, 273, 284, 18, 17994, 5621, 1082, 202, 430, 12, 529, 18, 869, 5630, 7675, 17514, 1190, 12, 3239, 3719, 288, 9506, 202, 430, 12, 529, 18, 14963, 12, 11515, 5359, 3719, 288, 6862, 202, 3328, 18, 17364, 12, 2211, 16, 315, 20433, 13773, 11515, 5359, 1769, 6862, 202, 74, 18, 3733, 5621, 6862, 202, 17143, 31, 9506, 202, 97, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1104, 7617, 1343, 2697, 1435, 288, 202, 202, 474, 9026, 1016, 273, 1026, 5359, 18, 2722, 31985, 12, 812, 18, 11287, 2156, 1769, 202, 202, 812, 1577, 31, 202, 202, 780, 1633, 31, 202, 202, 430, 12, 12877, 1016, 422, 300, 21, 13, 288, 1082, 202, 1214, 273, 394, 1387, 12, 3163, 18, 588, 1396, 2932, 1355, 18, 1214, 7923, 1769, 1082, 202, 3239, 273, 1026, 5359, 18, 869, 5630, 5621, 202, 202, 97, 469, 288, 1082, 202, 1214, 273, 394, 1387, 12, 1969, 5359, 18, 28023, 12, 20, 16, 9026, 1016, 10019, 1082, 202, 3239, 273, 1026, 5359, 18, 28023, 12, 12877, 1016, 15, 21, 2934, 869, 5630, 5621, 202, 202, 97, 202, 202, 2 ]
if (returnValue != null) { if (expressionMustRecurse(returnValue, method)) {
if(returnValue != null){ if(expressionMustRecurse(returnValue, method)){
private static boolean statementMustRecurse(PsiStatement statement, PsiMethod method) { if (statement == null) { return false; } if (statement instanceof PsiBreakStatement || statement instanceof PsiContinueStatement || statement instanceof PsiThrowStatement || statement instanceof PsiEmptyStatement || statement instanceof PsiAssertStatement) { return false; } else if (statement instanceof PsiExpressionListStatement) { final PsiExpressionList expressionList = ((PsiExpressionListStatement) statement).getExpressionList(); if (expressionList == null) { return false; } final PsiExpression[] expressions = expressionList.getExpressions(); for(final PsiExpression expression : expressions){ if(expressionMustRecurse(expression, method)){ return true; } } return false; } else if (statement instanceof PsiExpressionStatement) { final PsiExpression expression = ((PsiExpressionStatement) statement).getExpression(); return expressionMustRecurse(expression, method); } else if (statement instanceof PsiDeclarationStatement) { final PsiDeclarationStatement declaration = (PsiDeclarationStatement) statement; final PsiElement[] declaredElements = declaration.getDeclaredElements(); if (declaredElements == null) { return false; } for(final PsiElement declaredElement : declaredElements){ if(declaredElement instanceof PsiLocalVariable){ final PsiLocalVariable variable = (PsiLocalVariable) declaredElement; final PsiExpression initializer = variable.getInitializer(); if(expressionMustRecurse(initializer, method)){ return true; } } } return false; } else if (statement instanceof PsiReturnStatement) { final PsiReturnStatement returnStatement = (PsiReturnStatement) statement; final PsiExpression returnValue = returnStatement.getReturnValue(); if (returnValue != null) { if (expressionMustRecurse(returnValue, method)) { return true; } } return false; } else if (statement instanceof PsiForStatement) { return forStatementMustRecurse((PsiForStatement) statement, method); } else if (statement instanceof PsiForeachStatement) { return foreachStatementMustRecurse((PsiForeachStatement) statement, method); } else if (statement instanceof PsiWhileStatement) { return whileStatementMustRecurse((PsiWhileStatement) statement, method); } else if (statement instanceof PsiDoWhileStatement) { return doWhileStatementMustRecurse((PsiDoWhileStatement) statement, method); } else if (statement instanceof PsiSynchronizedStatement) { final PsiCodeBlock body = ((PsiSynchronizedStatement) statement).getBody(); return codeBlockMustRecurse(body, method); } else if (statement instanceof PsiBlockStatement) { final PsiCodeBlock codeBlock = ((PsiBlockStatement) statement).getCodeBlock(); return codeBlockMustRecurse(codeBlock, method); } else if (statement instanceof PsiLabeledStatement) { return labeledStatementMustRecurse((PsiLabeledStatement) statement, method); } else if (statement instanceof PsiIfStatement) { return ifStatementMustRecurse((PsiIfStatement) statement, method); } else if (statement instanceof PsiTryStatement) { return tryStatementMustRecurse((PsiTryStatement) statement, method); } else if (statement instanceof PsiSwitchStatement) { return switchStatementMustRecurse((PsiSwitchStatement) statement, method); } else // unknown statement type { return false; } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/5d60670c94763ec336e534e66ee87700ab0d35be/RecursionUtils.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/RecursionUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 3021, 10136, 426, 17682, 12, 52, 7722, 3406, 3021, 16, 453, 7722, 1305, 707, 13, 288, 3639, 309, 261, 11516, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 261, 11516, 1276, 453, 7722, 7634, 3406, 747, 7734, 3021, 1276, 453, 7722, 12378, 3406, 747, 7734, 3021, 1276, 453, 7722, 8282, 3406, 747, 7734, 3021, 1276, 453, 7722, 1921, 3406, 747, 7734, 3021, 1276, 453, 7722, 8213, 3406, 13, 288, 5411, 327, 629, 31, 3639, 289, 469, 309, 261, 11516, 1276, 453, 7722, 2300, 682, 3406, 13, 288, 5411, 727, 453, 7722, 2300, 682, 2652, 682, 273, 14015, 52, 7722, 2300, 682, 3406, 13, 3021, 2934, 588, 2300, 682, 5621, 5411, 309, 261, 8692, 682, 422, 446, 13, 288, 7734, 327, 629, 31, 5411, 289, 5411, 727, 453, 7722, 2300, 8526, 8041, 273, 2652, 682, 18, 588, 8927, 5621, 5411, 364, 12, 6385, 453, 7722, 2300, 2652, 294, 8041, 15329, 7734, 309, 12, 8692, 10136, 426, 17682, 12, 8692, 16, 707, 3719, 95, 10792, 327, 638, 31, 7734, 289, 5411, 289, 5411, 327, 629, 31, 3639, 289, 469, 309, 261, 11516, 1276, 453, 7722, 2300, 3406, 13, 288, 5411, 727, 453, 7722, 2300, 2652, 273, 14015, 52, 7722, 2300, 3406, 13, 3021, 2934, 588, 2300, 5621, 5411, 327, 2652, 10136, 426, 17682, 12, 8692, 16, 707, 1769, 3639, 289, 469, 309, 261, 11516, 1276, 453, 7722, 6094, 3406, 13, 288, 5411, 727, 453, 7722, 6094, 3406, 8266, 273, 261, 52, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 3021, 10136, 426, 17682, 12, 52, 7722, 3406, 3021, 16, 453, 7722, 1305, 707, 13, 288, 3639, 309, 261, 11516, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 261, 11516, 1276, 453, 7722, 7634, 3406, 747, 7734, 3021, 1276, 453, 7722, 12378, 3406, 747, 7734, 3021, 1276, 453, 7722, 8282, 3406, 747, 7734, 3021, 1276, 453, 7722, 1921, 3406, 747, 7734, 3021, 1276, 453, 7722, 8213, 3406, 13, 288, 5411, 327, 629, 31, 3639, 289, 469, 309, 261, 11516, 1276, 453, 7722, 2300, 682, 3406, 13, 288, 5411, 727, 453, 7722, 2300, 682, 2652, 682, 273, 14015, 52, 7722, 2300, 682, 3406, 13, 3021, 2934, 588, 2300, 682, 5621, 5411, 309, 2 ]
status.setUserId(userId); status.setRead(Boolean.TRUE);
status.setUserId(getCurrentUser()); status.setRead(new Boolean(read));
public void markMessageReadForUser(String userId, Long topicId, Long messageId) { if (messageId == null || topicId == null || userId == null) { LOG.error("markMessageReadForUser failed with topicId: " + topicId + ", messageId: " + messageId + ", userId:" + userId); throw new IllegalArgumentException("Null Argument"); } LOG.debug("markMessageReadForUser executing with topicId: " + topicId + ", messageId: " + messageId + ", userId:" + userId); UnreadStatus status = new UnreadStatusImpl(); status.setTopicId(topicId); status.setMessageId(messageId); status.setUserId(userId); status.setRead(Boolean.TRUE); getHibernateTemplate().saveOrUpdate(status); }
48936 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48936/91a15e20b517e7a8576af16459a5cbc7e4a1f25c/MessageForumsMessageManagerImpl.java/clean/messageforums-component-shared/src/java/org/sakaiproject/component/app/messageforums/MessageForumsMessageManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2267, 1079, 1994, 19894, 12, 780, 6249, 16, 3407, 3958, 548, 16, 3407, 19090, 13, 288, 3639, 309, 261, 2150, 548, 422, 446, 747, 3958, 548, 422, 446, 747, 6249, 422, 446, 13, 288, 5411, 2018, 18, 1636, 2932, 3355, 1079, 1994, 19894, 2535, 598, 3958, 548, 30, 315, 397, 3958, 548, 397, 3104, 19090, 30, 315, 397, 19090, 397, 3104, 6249, 2773, 397, 6249, 1769, 5411, 604, 394, 2754, 2932, 2041, 5067, 8863, 3639, 289, 3639, 2018, 18, 4148, 2932, 3355, 1079, 1994, 19894, 11274, 598, 3958, 548, 30, 315, 397, 3958, 548, 397, 3104, 19090, 30, 315, 397, 19090, 397, 3104, 6249, 2773, 397, 6249, 1769, 3639, 1351, 896, 1482, 1267, 273, 394, 1351, 896, 1482, 2828, 5621, 3639, 1267, 18, 542, 6657, 548, 12, 10476, 548, 1769, 3639, 1267, 18, 542, 30550, 12, 2150, 548, 1769, 3639, 1267, 18, 542, 10502, 12, 18991, 1769, 3639, 1267, 18, 542, 1994, 12, 5507, 18, 18724, 1769, 7734, 7628, 24360, 2283, 7675, 5688, 10466, 12, 2327, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 2267, 1079, 1994, 19894, 12, 780, 6249, 16, 3407, 3958, 548, 16, 3407, 19090, 13, 288, 3639, 309, 261, 2150, 548, 422, 446, 747, 3958, 548, 422, 446, 747, 6249, 422, 446, 13, 288, 5411, 2018, 18, 1636, 2932, 3355, 1079, 1994, 19894, 2535, 598, 3958, 548, 30, 315, 397, 3958, 548, 397, 3104, 19090, 30, 315, 397, 19090, 397, 3104, 6249, 2773, 397, 6249, 1769, 5411, 604, 394, 2754, 2932, 2041, 5067, 8863, 3639, 289, 3639, 2018, 18, 4148, 2932, 3355, 1079, 1994, 19894, 11274, 598, 3958, 548, 30, 315, 397, 3958, 548, 397, 3104, 19090, 30, 315, 397, 19090, 397, 3104, 6249, 2773, 397, 6249, 1769, 3639, 1351, 896, 1482, 1267, 273, 394, 1351, 2 ]
private static String chkToMsg( int tag, int declLoc ) { String r = null; // Finally, describe the error switch (tag) { case TagConstants.CHKCONSTANTLOCKS: r = ("lock expression may not be constant. "); Assert.notFalse(declLoc != Location.NULL); break; case TagConstants.CHKMODIFIERS: r = ("incorrect use of annotation. "); Assert.notFalse(declLoc != Location.NULL); break; case TagConstants.CHKSUPER: r = ("requires set must be a subset of superclass method's. "); // SNF Thu Jul 22 09:51:43 1999 Assert.notFalse(declLoc != Location.NULL); break; case TagConstants.CHKRACE: r = ("possible race condition. "); // SNF Thu Jul 22 09:51:43 1999 Assert.notFalse(declLoc != Location.NULL); break; case TagConstants.CHKLOCAL: r = (""); // concat this onto something // SNF Thu Jul 22 09:51:43 1999 Assert.notFalse(declLoc != Location.NULL); break; case TagConstants.CHKOVERRIDE: r = ("a local class cannot override method from shared class: "); // SNF Thu Jul 22 09:51:43 1999 Assert.notFalse(declLoc != Location.NULL); break; case TagConstants.CHKBADCAST: r = ("suspicious type error. "); break; case TagConstants.CHKMSG: r = (""); break; case TagConstants.CHKREADONLY: r = (""); break; case TagConstants.CHKSHAREDARRAY: case TagConstants.CHKSHAREDFIELD: case TagConstants.CHKSTATICFIELD: r = (""); break; default: //@ unreachable Assert.fail("Bad tag"); break; } return r; }
46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/88c3a23ce6920080a820fcffe73c2469f7571ad9/ErrorMsg.java/buggy/src/escjava/trunk/ESCTools/Rcc/java/rcc/ast/ErrorMsg.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 15000, 774, 3332, 12, 509, 1047, 16, 509, 3496, 1333, 262, 288, 3639, 514, 436, 273, 446, 31, 3639, 368, 15768, 16, 6401, 326, 555, 3639, 1620, 261, 2692, 13, 288, 3639, 648, 4034, 2918, 18, 1792, 47, 25878, 6589, 55, 30, 5411, 436, 273, 7566, 739, 2652, 2026, 486, 506, 5381, 18, 315, 1769, 5411, 5452, 18, 902, 8381, 12, 8840, 1333, 480, 7050, 18, 8560, 1769, 5411, 898, 31, 3639, 648, 4034, 2918, 18, 1792, 47, 6720, 10591, 55, 30, 5411, 436, 273, 7566, 267, 6746, 999, 434, 3204, 18, 315, 1769, 5411, 5452, 18, 902, 8381, 12, 8840, 1333, 480, 7050, 18, 8560, 1769, 5411, 898, 31, 10792, 648, 4034, 2918, 18, 1792, 47, 13272, 654, 30, 5411, 436, 273, 7566, 18942, 444, 1297, 506, 279, 7931, 434, 12098, 707, 1807, 18, 315, 1769, 5411, 368, 14204, 42, 935, 89, 804, 332, 11201, 21058, 30, 10593, 30, 8942, 404, 11984, 225, 5452, 18, 902, 8381, 12, 8840, 1333, 480, 7050, 18, 8560, 1769, 5411, 898, 31, 10792, 648, 4034, 2918, 18, 1792, 47, 9254, 30, 5411, 436, 273, 7566, 12708, 17996, 2269, 18, 315, 1769, 5411, 368, 14204, 42, 935, 89, 804, 332, 11201, 21058, 30, 10593, 30, 8942, 404, 11984, 225, 5452, 18, 902, 8381, 12, 8840, 1333, 480, 7050, 18, 8560, 1769, 5411, 898, 31, 10792, 648, 4034, 2918, 18, 1792, 47, 14922, 30, 5411, 436, 273, 261, 3660, 1769, 368, 3835, 333, 10170, 5943, 5411, 368, 14204, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 15000, 774, 3332, 12, 509, 1047, 16, 509, 3496, 1333, 262, 288, 3639, 514, 436, 273, 446, 31, 3639, 368, 15768, 16, 6401, 326, 555, 3639, 1620, 261, 2692, 13, 288, 3639, 648, 4034, 2918, 18, 1792, 47, 25878, 6589, 55, 30, 5411, 436, 273, 7566, 739, 2652, 2026, 486, 506, 5381, 18, 315, 1769, 5411, 5452, 18, 902, 8381, 12, 8840, 1333, 480, 7050, 18, 8560, 1769, 5411, 898, 31, 3639, 648, 4034, 2918, 18, 1792, 47, 6720, 10591, 55, 30, 5411, 436, 273, 7566, 267, 6746, 999, 434, 3204, 18, 315, 1769, 5411, 5452, 18, 902, 8381, 12, 8840, 1333, 480, 7050, 18, 8560, 1769, 5411, 898, 31, 10792, 648, 4034, 2918, 18, 2 ]
int constantPoolIndex = bcInfo.getFieldReferenceIndex(); VM_Field field = bcInfo.getFieldReference(constantPoolIndex);
VM_Field field = bcInfo.getFieldReference();
private void generateFrom(int fromIndex) { if (DBG_BB || DBG_SELECTED) { db("generating code into " + currentBBLE + " with runoff " + runoff); } currentBBLE.setGenerated(); endOfBasicBlock = fallThrough = false; lastInstr = null; bcInfo.setInstruction(fromIndex); while (true) { // Must keep currentBBLE.high up-to-date in case we try to jump into // the middle of the block we're currently generating. Simply updating // high once endsBasicBlock is true doesn't enable us to catch this case. currentBBLE.high = instrIndex = bcInfo.bcIndex; int code = bcInfo.getNextInstruction(); if (DBG_BCPARSE) { db("parsing " + instrIndex + " : 0x" + Integer.toHexString(code)); } OPT_Instruction s = null; switch (code) { case JBC_nop: break; case JBC_aconst_null: push(new OPT_NullConstantOperand()); break; case JBC_iconst_m1:case JBC_iconst_0:case JBC_iconst_1: case JBC_iconst_2:case JBC_iconst_3:case JBC_iconst_4: case JBC_iconst_5: push(new OPT_IntConstantOperand(code - JBC_iconst_0)); break; case JBC_lconst_0:case JBC_lconst_1: pushDual(new OPT_LongConstantOperand(code - JBC_lconst_0)); break; case JBC_fconst_0: push(new OPT_FloatConstantOperand(0.f)); break; case JBC_fconst_1: push(new OPT_FloatConstantOperand(1.f)); break; case JBC_fconst_2: push(new OPT_FloatConstantOperand(2.f)); break; case JBC_dconst_0: pushDual(new OPT_DoubleConstantOperand(0.)); break; case JBC_dconst_1: pushDual(new OPT_DoubleConstantOperand(1.)); break; case JBC_bipush: push(new OPT_IntConstantOperand(bcInfo.getByteValue())); break; case JBC_sipush: push(new OPT_IntConstantOperand(bcInfo.getShortValue())); break; case JBC_ldc: push(bcInfo.getConstantOperand(code)); break; case JBC_ldc_w: push(bcInfo.getConstantOperand(code)); break; case JBC_ldc2_w: pushDual(bcInfo.getConstantOperand(code)); break; case JBC_iload: s = do_iload(bcInfo.getLocalNumber()); break; case JBC_lload: s = do_lload(bcInfo.getLocalNumber()); break; case JBC_fload: s = do_fload(bcInfo.getLocalNumber()); break; case JBC_dload: s = do_dload(bcInfo.getLocalNumber()); break; case JBC_aload: s = do_aload(bcInfo.getLocalNumber()); break; case JBC_iload_0:case JBC_iload_1:case JBC_iload_2:case JBC_iload_3: s = do_iload(code - JBC_iload_0); break; case JBC_lload_0:case JBC_lload_1:case JBC_lload_2:case JBC_lload_3: s = do_lload(code - JBC_lload_0); break; case JBC_fload_0:case JBC_fload_1:case JBC_fload_2:case JBC_fload_3: s = do_fload(code - JBC_fload_0); break; case JBC_dload_0:case JBC_dload_1:case JBC_dload_2:case JBC_dload_3: s = do_dload(code - JBC_dload_0); break; case JBC_aload_0:case JBC_aload_1:case JBC_aload_2:case JBC_aload_3: s = do_aload(code - JBC_aload_0); break; case JBC_iaload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.IntArrayType); s = _aloadHelper(INT_ALOAD, ref, index, VM_Type.IntType); } break; case JBC_laload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.LongArrayType); s = _aloadHelper(LONG_ALOAD, ref, index, VM_Type.LongType); } break; case JBC_faload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.FloatArrayType); s = _aloadHelper(FLOAT_ALOAD, ref, index, VM_Type.FloatType); } break; case JBC_daload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.DoubleArrayType); s = _aloadHelper(DOUBLE_ALOAD, ref, index, VM_Type.DoubleType); } break; case JBC_aaload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_Type type = getRefTypeOf(ref).asArray().getElementType(); if (VM.VerifyAssertions) VM.assert(type.isReferenceType()); s = _aloadHelper(REF_ALOAD, ref, index, type); } break; case JBC_baload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_Type type = getArrayTypeOf(ref); if (VM.VerifyAssertions) { VM.assert(type == OPT_ClassLoaderProxy.ByteArrayType || type == OPT_ClassLoaderProxy.BooleanArrayType); } if (type == OPT_ClassLoaderProxy.ByteArrayType) s = _aloadHelper(BYTE_ALOAD, ref, index, VM_Type.ByteType); else s = _aloadHelper(UBYTE_ALOAD, ref, index, VM_Type.BooleanType); } break; case JBC_caload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.CharArrayType); s = _aloadHelper(USHORT_ALOAD, ref, index, VM_Type.CharType); } break; case JBC_saload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.ShortArrayType); s = _aloadHelper(SHORT_ALOAD, ref, index, VM_Type.ShortType); } break; case JBC_istore: s = do_store(bcInfo.getLocalNumber(), popInt()); break; case JBC_lstore: s = do_store(bcInfo.getLocalNumber(), popLong()); break; case JBC_fstore: s = do_store(bcInfo.getLocalNumber(), popFloat()); break; case JBC_dstore: s = do_store(bcInfo.getLocalNumber(), popDouble()); break; case JBC_astore: s = do_astore(bcInfo.getLocalNumber()); break; case JBC_istore_0:case JBC_istore_1:case JBC_istore_2:case JBC_istore_3: s = do_store(code - JBC_istore_0, popInt()); break; case JBC_lstore_0:case JBC_lstore_1:case JBC_lstore_2:case JBC_lstore_3: s = do_store(code - JBC_lstore_0, popLong()); break; case JBC_fstore_0:case JBC_fstore_1:case JBC_fstore_2:case JBC_fstore_3: s = do_store(code - JBC_fstore_0, popFloat()); break; case JBC_dstore_0:case JBC_dstore_1:case JBC_dstore_2:case JBC_dstore_3: s = do_store(code - JBC_dstore_0, popDouble()); break; case JBC_astore_0:case JBC_astore_1:case JBC_astore_2:case JBC_astore_3: s = do_astore(code - JBC_astore_0); break; case JBC_iastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.IntArrayType); s = AStore.create(INT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_Type.IntType), getCurrentGuard()); } break; case JBC_lastore: { OPT_Operand val = popLong(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.LongArrayType); s = AStore.create(LONG_ASTORE, val, ref, index, new OPT_LocationOperand(VM_Type.LongType), getCurrentGuard()); } break; case JBC_fastore: { OPT_Operand val = popFloat(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.FloatArrayType); s = AStore.create(FLOAT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_Type.FloatType), getCurrentGuard()); } break; case JBC_dastore: { OPT_Operand val = popDouble(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.DoubleArrayType); s = AStore.create(DOUBLE_ASTORE, val, ref, index, new OPT_LocationOperand(VM_Type.DoubleType), getCurrentGuard()); } break; case JBC_aastore: { OPT_Operand val = pop(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_Type type = getRefTypeOf(ref).asArray().getElementType(); if (VM.VerifyAssertions) VM.assert(type.isReferenceType()); if (do_CheckStore(ref, val, type)) break; s = AStore.create(REF_ASTORE, val, ref, index, new OPT_LocationOperand(type), getCurrentGuard()); } break; case JBC_bastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_Type type = getArrayTypeOf(ref); if (VM.VerifyAssertions) { VM.assert(type == OPT_ClassLoaderProxy.ByteArrayType || type == OPT_ClassLoaderProxy.BooleanArrayType); } if (type == OPT_ClassLoaderProxy.ByteArrayType) type = VM_Type.ByteType; else type = VM_Type.BooleanType; s = AStore.create(BYTE_ASTORE, val, ref, index, new OPT_LocationOperand(type), getCurrentGuard()); } break; case JBC_castore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.CharArrayType); s = AStore.create(SHORT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_Type.CharType), getCurrentGuard()); } break; case JBC_sastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.ShortArrayType); s = AStore.create(SHORT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_Type.ShortType), getCurrentGuard()); } break; case JBC_pop: stack.pop(); break; case JBC_pop2: stack.pop2(); break; case JBC_dup: { OPT_Operand op1 = stack.pop(); stack.push(op1); s = pushCopy(op1); } break; case JBC_dup_x1: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op1); stack.push(op2); s = pushCopy(op1); } break; case JBC_dup_x2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); stack.push(op1); stack.push(op3); stack.push(op2); s = pushCopy(op1); } break; case JBC_dup2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op2); stack.push(op1); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_dup2_x1: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); stack.push(op2); stack.push(op1); stack.push(op3); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_dup2_x2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); OPT_Operand op4 = stack.pop(); stack.push(op2); stack.push(op1); stack.push(op4); stack.push(op3); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_swap: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op1); stack.push(op2); } break; case JBC_iadd: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_ADD, op1, op2, VM_Type.IntType); } break; case JBC_ladd: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_ADD, op1, op2, VM_Type.LongType); } break; case JBC_fadd: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_ADD, op1, op2, VM_Type.FloatType); } break; case JBC_dadd: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_ADD, op1, op2, VM_Type.DoubleType); } break; case JBC_isub: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SUB, op1, op2, VM_Type.IntType); } break; case JBC_lsub: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SUB, op1, op2, VM_Type.LongType); } break; case JBC_fsub: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_SUB, op1, op2, VM_Type.FloatType); } break; case JBC_dsub: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_SUB, op1, op2, VM_Type.DoubleType); } break; case JBC_imul: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_MUL, op1, op2, VM_Type.IntType); } break; case JBC_lmul: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_MUL, op1, op2, VM_Type.LongType); } break; case JBC_fmul: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_MUL, op1, op2, VM_Type.FloatType); } break; case JBC_dmul: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_MUL, op1, op2, VM_Type.DoubleType); } break; case JBC_idiv: { clearCurrentGuard(); OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); if (do_IntZeroCheck(op2)) break; s = _guardedBinaryHelper(INT_DIV, op1, op2, getCurrentGuard(), VM_Type.IntType); } break; case JBC_ldiv: { clearCurrentGuard(); OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); if (do_LongZeroCheck(op2)) break; s = _guardedBinaryDualHelper(LONG_DIV, op1, op2, getCurrentGuard(), VM_Type.LongType); } break; case JBC_fdiv: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_DIV, op1, op2, VM_Type.FloatType); } break; case JBC_ddiv: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_DIV, op1, op2, VM_Type.DoubleType); } break; case JBC_irem: { clearCurrentGuard(); OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); if (do_IntZeroCheck(op2)) break; s = _guardedBinaryHelper(INT_REM, op1, op2, getCurrentGuard(), VM_Type.IntType); } break; case JBC_lrem: { clearCurrentGuard(); OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); if (do_LongZeroCheck(op2)) break; s = _guardedBinaryDualHelper(LONG_REM, op1, op2, getCurrentGuard(), VM_Type.LongType); } break; case JBC_frem: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_REM, op1, op2, VM_Type.FloatType); } break; case JBC_drem: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_REM, op1, op2, VM_Type.DoubleType); } break; case JBC_ineg: s = _unaryHelper(INT_NEG, popInt(), VM_Type.IntType); break; case JBC_lneg: s = _unaryDualHelper(LONG_NEG, popLong(), VM_Type.LongType); break; case JBC_fneg: s = _unaryHelper(FLOAT_NEG, popFloat(), VM_Type.FloatType); break; case JBC_dneg: s = _unaryDualHelper(DOUBLE_NEG, popDouble(), VM_Type.DoubleType); break; case JBC_ishl: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SHL, op1, op2, VM_Type.IntType); } break; case JBC_lshl: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SHL, op1, op2, VM_Type.LongType); } break; case JBC_ishr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SHR, op1, op2, VM_Type.IntType); } break; case JBC_lshr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SHR, op1, op2, VM_Type.LongType); } break; case JBC_iushr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_USHR, op1, op2, VM_Type.IntType); } break; case JBC_lushr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_USHR, op1, op2, VM_Type.LongType); } break; case JBC_iand: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_AND, op1, op2, VM_Type.IntType); } break; case JBC_land: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_AND, op1, op2, VM_Type.LongType); } break; case JBC_ior: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_OR, op1, op2, VM_Type.IntType); } break; case JBC_lor: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_OR, op1, op2, VM_Type.LongType); } break; case JBC_ixor: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_XOR, op1, op2, VM_Type.IntType); } break; case JBC_lxor: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_XOR, op1, op2, VM_Type.LongType); } break; case JBC_iinc: { int index = bcInfo.getLocalNumber(); s = do_iinc(index, bcInfo.getByteValue()); } break; case JBC_i2l: s = _unaryDualHelper(INT_2LONG, popInt(), VM_Type.LongType); break; case JBC_i2f: s = _unaryHelper(INT_2FLOAT, popInt(), VM_Type.FloatType); break; case JBC_i2d: s = _unaryDualHelper(INT_2DOUBLE, popInt(), VM_Type.DoubleType); break; case JBC_l2i: s = _unaryHelper(LONG_2INT, popLong(), VM_Type.IntType); break; case JBC_l2f: s = _unaryHelper(LONG_2FLOAT, popLong(), VM_Type.FloatType); break; case JBC_l2d: s = _unaryDualHelper(LONG_2DOUBLE, popLong(), VM_Type.DoubleType); break; case JBC_f2i: s = _unaryHelper(FLOAT_2INT, popFloat(), VM_Type.IntType); break; case JBC_f2l: s = _unaryDualHelper(FLOAT_2LONG, popFloat(), VM_Type.LongType); break; case JBC_f2d: s = _unaryDualHelper(FLOAT_2DOUBLE, popFloat(), VM_Type.DoubleType); break; case JBC_d2i: s = _unaryHelper(DOUBLE_2INT, popDouble(), VM_Type.IntType); break; case JBC_d2l: s = _unaryDualHelper(DOUBLE_2LONG, popDouble(), VM_Type.LongType); break; case JBC_d2f: s = _unaryHelper(DOUBLE_2FLOAT, popDouble(), VM_Type.FloatType); break; case JBC_int2byte: s = _unaryHelper(INT_2BYTE, popInt(), VM_Type.ByteType); break; case JBC_int2char: s = _unaryHelper(INT_2USHORT, popInt(), VM_Type.CharType); break; case JBC_int2short: s = _unaryHelper(INT_2SHORT, popInt(), VM_Type.ShortType); break; case JBC_lcmp: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryHelper(LONG_CMP, op1, op2, VM_Type.IntType); } break; case JBC_fcmpl: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_CMPL, op1, op2, VM_Type.IntType); } break; case JBC_fcmpg: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_CMPG, op1, op2, VM_Type.IntType); } break; case JBC_dcmpl: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryHelper(DOUBLE_CMPL, op1, op2, VM_Type.IntType); } break; case JBC_dcmpg: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryHelper(DOUBLE_CMPG, op1, op2, VM_Type.IntType); } break; case JBC_ifeq: s = _intIfHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_ifne: s = _intIfHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_iflt: s = _intIfHelper(OPT_ConditionOperand.LESS()); break; case JBC_ifge: s = _intIfHelper(OPT_ConditionOperand.GREATER_EQUAL()); break; case JBC_ifgt: s = _intIfHelper(OPT_ConditionOperand.GREATER()); break; case JBC_ifle: s = _intIfHelper(OPT_ConditionOperand.LESS_EQUAL()); break; case JBC_if_icmpeq: s = _intIfCmpHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_if_icmpne: s = _intIfCmpHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_if_icmplt: s = _intIfCmpHelper(OPT_ConditionOperand.LESS()); break; case JBC_if_icmpge: s = _intIfCmpHelper(OPT_ConditionOperand.GREATER_EQUAL()); break; case JBC_if_icmpgt: s = _intIfCmpHelper(OPT_ConditionOperand.GREATER()); break; case JBC_if_icmple: s = _intIfCmpHelper(OPT_ConditionOperand.LESS_EQUAL()); break; case JBC_if_acmpeq: s = _refIfCmpHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_if_acmpne: s = _refIfCmpHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_goto: { int offset = bcInfo.getBranchTarget(); if (offset != 3) // skip generating frivolous goto's s = _gotoHelper(offset); } break; case JBC_jsr: s = _jsrHelper(bcInfo.getBranchTarget()); break; case JBC_ret: s = _retHelper(bcInfo.getLocalNumber()); break; case JBC_tableswitch: { OPT_Operand op0 = popInt(); bcInfo.alignSwitch(); int defaultoff = bcInfo.getSwitchDefaultTarget(); int low = bcInfo.getSwitchLowValue(); int high = bcInfo.getSwitchHighValue(); int number = high - low + 1; if (CF_TABLESWITCH && op0 instanceof OPT_IntConstantOperand) { int v1 = ((OPT_IntConstantOperand)op0).value; int offset; if ((v1 < low) || (v1 > high)) offset = defaultoff; else offset = bcInfo.getTableSwitchOffsetForConstant(v1, low, high); bcInfo.skipTableSwitchTargets(number); if (DBG_CF) { db("changed tableswitch to goto because index (" + v1 + ") is constant"); } s = _gotoHelper(offset); break; } s = TableSwitch.create(TABLESWITCH, op0, null, null, new OPT_IntConstantOperand(low), new OPT_IntConstantOperand(high), generateTarget(defaultoff), new OPT_BranchProfileOperand(), number*2); double approxProb = 1/(number+1); // num targets + default for (int i = 0; i < number; ++i) { TableSwitch.setTarget(s, i, generateTarget(bcInfo.getSwitchTarget(i))); TableSwitch. setBranchProfile(s, i, new OPT_BranchProfileOperand(approxProb)); } } break; case JBC_lookupswitch: { OPT_Operand op0 = popInt(); bcInfo.alignSwitch(); int defaultoff = bcInfo.getSwitchDefaultTarget(); int numpairs = bcInfo.getLookupSwitchNumberOfPairs(); if (numpairs == 0) { s = _gotoHelper(defaultoff); break; } if (CF_LOOKUPSWITCH && op0 instanceof OPT_IntConstantOperand) { int v1 = ((OPT_IntConstantOperand)op0).value; int offset = defaultoff; for (int i = 0; i < numpairs; ++i) { int match = bcInfo.getSwitchValue(i); if (match == v1) { offset = bcInfo.getSwitchTarget(i); bcInfo.skipLookupSwitchPairs(numpairs, i + 1); break; // for } else { bcInfo.skipSwitchValue(i); } } if (DBG_CF) { db("changed lookupswitch to goto because index (" + v1 + ") is constant"); } s = _gotoHelper(offset); break; } s = LookupSwitch.create(LOOKUPSWITCH, op0, null, null, generateTarget(defaultoff), new OPT_BranchProfileOperand(),numpairs*3); double approxProb = 1/(numpairs+1); // num targets + default for (int i = 0; i < numpairs; ++i) { LookupSwitch.setMatch(s, i, new OPT_IntConstantOperand (bcInfo.getSwitchValue(i))); LookupSwitch.setTarget(s, i, generateTarget(bcInfo.getSwitchTarget(i))); LookupSwitch. setBranchProfile(s, i, new OPT_BranchProfileOperand(approxProb)); } } break; case JBC_ireturn: _returnHelper(INT_MOVE, popInt()); break; case JBC_lreturn: _returnHelper(LONG_MOVE, popLong()); break; case JBC_freturn: _returnHelper(FLOAT_MOVE, popFloat()); break; case JBC_dreturn: _returnHelper(DOUBLE_MOVE, popDouble()); break; case JBC_areturn: { OPT_Operand op0 = popRef(); if (VM.VerifyAssertions && !op0.isDefinitelyNull()) { VM_Type retType = getRefTypeOf(op0); // fudge to deal with conservative approximation // in OPT_ClassLoaderProxy.proxy.findCommonSuperclass if (retType != VM_Type.JavaLangObjectType) assertIsAssignable(gc.method.getReturnType(), getRefTypeOf(op0)); } _returnHelper(REF_MOVE, op0); } break; case JBC_return: _returnHelper(null, null); break; case JBC_getstatic: { int constantPoolIndex = bcInfo.getFieldReferenceIndex(); VM_Field field = bcInfo.getFieldReference(constantPoolIndex); // use results of field analysis to refine type. VM_Type fieldType = field.getType(); OPT_RegisterOperand t = gc.temps.makeTemp(fieldType); if (field.getType().isClassType() && field.getType().asClass().isLoaded()) { VM_Type concreteType = OPT_FieldAnalysis.getConcreteType(field); if (concreteType != null) { t.setPreciseType(); if (concreteType == fieldType) { t.setDeclaredType(); } else { fieldType = concreteType; t.type = concreteType; } } } boolean unresolved = field.needsDynamicLink(gc.method); if (!unresolved) field = field.resolve(); OPT_Operator operator = unresolved?GETSTATIC_UNRESOLVED:GETSTATIC; s = GetStatic.create(operator, t, makeStaticFieldRef(field)); // optimization: // if the field is final and either initialized or // in the bootimage, then get the value at compile time. // TODO: applying this optimization to Floats or Doubles // causes problems. Figure out why and fix it! if (!fieldType.isDoubleType() && !fieldType.isFloatType()) { if (!unresolved && field.isFinal()) { VM_Class declaringClass = field.getDeclaringClass(); if (declaringClass.isInitialized() || (VM.writingBootImage && declaringClass.isInBootImage())) { try { if (fieldType.isPrimitiveType()) { operator = OPT_IRTools.getMoveOp(field.getType()); OPT_ConstantOperand rhs = OPT_StaticFieldReader.getStaticFieldValue(field); // VM.sysWrite("Replaced getstatic of "+field+" with "+rhs+"\n"); push (rhs, fieldType); s = null; break; } else { if (OPT_StaticFieldReader.isStaticFieldNull(field)) { // VM.sysWrite("Replaced getstatic of "+field+" with <null>\n"); push(new OPT_NullConstantOperand(), fieldType); s = null; break; } else { VM_Type rtType = OPT_StaticFieldReader.getTypeFromStaticField(field); if (rtType == VM_Type.JavaLangStringType) { OPT_ConstantOperand rhs = OPT_StaticFieldReader.getStaticFieldValue(field); // VM.sysWrite("Replaced getstatic of "+field+" with "+rhs+"\n"); push (rhs, fieldType); s = null; break; } else { t.type = rtType; if (rtType != fieldType) t.clearDeclaredType(); t.setPreciseType(); markGuardlessNonNull(t); // VM.sysWrite("Tightened type info for getstatic of "+field+" to "+t+"\n"); } } } } catch (NoSuchFieldException e) { // Sigh, host JDK java.* class didn't have this RVM field. // VM.sysWrite("Field "+field+" does not exist on host JDK\n"); } } } } push(t.copyD2U(), fieldType); if (unresolved) rectifyStateWithErrorHandler(); } break; case JBC_putstatic: { int constantPoolIndex = bcInfo.getFieldReferenceIndex(); VM_Field field = bcInfo.getFieldReference(constantPoolIndex); VM_Type fieldType = field.getType(); OPT_Operand r = pop(fieldType); boolean unresolved = field.needsDynamicLink(gc.method); if (!unresolved) field = field.resolve(); OPT_Operator operator = unresolved?PUTSTATIC_UNRESOLVED:PUTSTATIC; s = PutStatic.create(operator, r, makeStaticFieldRef(field)); if (unresolved) rectifyStateWithErrorHandler(); } break; case JBC_getfield: { OPT_Operand op1 = pop(); clearCurrentGuard(); if (do_NullCheck(op1)) break; int constantPoolIndex = bcInfo.getFieldReferenceIndex(); VM_Field field = bcInfo.getFieldReference(constantPoolIndex); VM_Type fieldType = field.getType(); OPT_RegisterOperand t = gc.temps.makeTemp(fieldType); // use results of field analysis to refine type. if (field.getType().isClassType() && field.getType().asClass().isLoaded()) { VM_Type concreteType = OPT_FieldAnalysis.getConcreteType(field); if (concreteType != null) { t.setPreciseType(); if (concreteType == fieldType) { t.setDeclaredType(); } else { fieldType = concreteType; t.type = concreteType; } } } boolean unresolved = field.needsDynamicLink(gc.method); if (!unresolved) field = field.resolve(); OPT_Operator operator = unresolved?GETFIELD_UNRESOLVED:GETFIELD; s = GetField.create(operator, t, op1, makeInstanceFieldRef(field), getCurrentGuard()); push(t.copyD2U(), fieldType); if (unresolved) rectifyStateWithErrorHandler(); } break; case JBC_putfield: { int constantPoolIndex = bcInfo.getFieldReferenceIndex(); VM_Field field = bcInfo.getFieldReference(constantPoolIndex); VM_Type fieldType = field.getType(); OPT_Operand val = pop(fieldType); OPT_Operand obj = popRef(); clearCurrentGuard(); if (do_NullCheck(obj)) break; boolean unresolved = field.needsDynamicLink(gc.method); if (!unresolved) field = field.resolve(); OPT_Operator operator = unresolved?PUTFIELD_UNRESOLVED:PUTFIELD; s = PutField.create(operator, val, obj, makeInstanceFieldRef(field), getCurrentGuard()); if (unresolved) rectifyStateWithErrorHandler(); } break; case JBC_invokevirtual: { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.beginNewDecision(); OPT_InlineReport.setCallType(OPT_InlineReport.INVOKE_VIRTUAL); } int constantPoolIndex = bcInfo.getMethodReferenceIndex(); VM_Method meth = bcInfo.getMethodReference(constantPoolIndex); if (meth.getDeclaringClass().isAddressType()) { try { OPT_GenerateMagic.generateMagic(this, gc, meth); if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.isMagic(meth); } break; } catch (OPT_MagicNotImplementedException e) { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.unimplementedMagic(Call.getMethod(s).method); } if (gc.options.SKIP_UNKNOWN_MAGIC) { s = _callHelper(OPT_MethodOperand.STATIC(meth, false)); // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); break; } else { throw (e); } } } boolean unresolved = meth.needsDynamicLink(gc.method); if (!unresolved) meth = meth.resolve(); OPT_MethodOperand methOp = OPT_MethodOperand.VIRTUAL(meth, unresolved); s = _callHelper(methOp); if (s == null) { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.instructionNull(); } break; } // try to reduce the number of targets. // If we succeed, we'll update meth, unresolved, // and s's method operand. OPT_Operand ref = Call.getParam(s, 0); boolean receiverClassResolved = false; boolean isExtant = false; VM_Type type = null; if (ref.isRegister()) { isExtant = ref.asRegister().isExtant(); type = ref.asRegister().type; } else if (ref.isStringConstant()) { isExtant = true; type = VM_Type.JavaLangStringType; } else if (VM.VerifyAssertions) VM.assert(false, "unexpected receiver"); receiverClassResolved = type.isResolved(); if ((meth.getDeclaringClass() != type) && type.isClassType()) { VM_Method vmeth = lookupMethod(meth, type.asClass()); if (vmeth != null && vmeth != meth) { // Update meth to be the refined vmeth meth = vmeth; unresolved = meth.needsDynamicLink(gc.method); if (!unresolved) meth = meth.resolve(); Call.setMethod(s, OPT_MethodOperand.VIRTUAL(meth, unresolved, true)); } } if (gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.classUnresolved(unresolved, meth); // If we don't need dynamic linking code, think about inlining if (!unresolved) { // if the type is precise and receiverClassResolved is true // then we know FOR CERTAIN that this call will resolve to meth. // By ensuring that recieverClassResolved, we make sure that // lookupMethod was able to actually search the class hierarchy // and set meth appropriately. VM_Method computedTarget = null; if (receiverClassResolved && ((ref.isStringConstant()) || ref.asRegister().isPreciseType())) { computedTarget = meth; if (gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.isPreciseType(); } OPT_InlineDecision id = shouldInline(s, computedTarget, isExtant); if (maybeInlineMethod(id, s)) { return; } } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokespecial: { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.beginNewDecision(); OPT_InlineReport.setCallType(OPT_InlineReport.INVOKE_SPECIAL); } int constantPoolIndex = bcInfo.getMethodReferenceIndex(); VM_Method meth = bcInfo.getMethodReference(constantPoolIndex); // Note: this is not the usual needsDynamicLink // due to semantics of invokespecial // See comments in VM_OptLinker, OPT_Convert2Low, VM_Linker. boolean unresolved = !meth.getDeclaringClass().isResolved() || (VM_Class.findSpecialMethod(meth) == null); if (!unresolved) meth = meth.resolve(); s = _callHelper(OPT_MethodOperand.SPECIAL(meth, unresolved)); if (s == null) { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.instructionNull(); } break; } if (gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.classUnresolved(unresolved, meth); // If we don't need dynamic linking code, think about inlining if (!unresolved) { if (maybeInlineMethod(shouldInline(s, null, false), s)) { return; } } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokestatic: { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.beginNewDecision(); OPT_InlineReport.setCallType(OPT_InlineReport.INVOKE_STATIC); } int constantPoolIndex = bcInfo.getMethodReferenceIndex(); VM_Method meth = bcInfo.getMethodReference(constantPoolIndex); if (meth.getDeclaringClass().isMagicType() || meth.getDeclaringClass().isAddressType()) { try { OPT_GenerateMagic.generateMagic(this, gc, meth); if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.isMagic(meth); } break; } catch (OPT_MagicNotImplementedException e) { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.unimplementedMagic(Call.getMethod(s).method); } if (gc.options.SKIP_UNKNOWN_MAGIC) { s = _callHelper(OPT_MethodOperand.STATIC(meth, false)); // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); break; } else { throw (e); } } } boolean unresolved = meth.needsDynamicLink(gc.method); if (!unresolved) meth = meth.resolve(); s = _callHelper(OPT_MethodOperand.STATIC(meth, unresolved)); if (gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.classUnresolved(unresolved, meth); // If we don't need dynamic linking code, think about inlining if (!unresolved) { if (maybeInlineMethod(shouldInline(s, null, false), s)) { return; } } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokeinterface: { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.beginNewDecision(); OPT_InlineReport.setCallType(OPT_InlineReport.INVOKE_INTERFACE); } int constantPoolIndex = bcInfo.getMethodReferenceIndex(); VM_Method meth = bcInfo.getMethodReference(constantPoolIndex); bcInfo.eatInvokeInterfaceGarbage(); OPT_MethodOperand methOp = OPT_MethodOperand.INTERFACE(meth, false); s = _callHelper(methOp); if (s == null) { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.instructionNull(); } break; } OPT_RegisterOperand ref = Call.getParam(s, 0).asRegister(); VM_Class refType = ref.type.asClass(); VM_Type interfaceType = meth.getDeclaringClass(); boolean requiresImplementsTest = VM.BuildForIMTInterfaceInvocation || (VM.BuildForITableInterfaceInvocation && VM.DirectlyIndexedITables); // Step 1: handle the possibility of ghost references try { VM_Method resolvedMethodRef = meth.resolveInterfaceMethod(false); if (resolvedMethodRef == null) { if (requiresImplementsTest) { // might be a ghost reference. // Must do the more involved typechecking sequence OPT_RegisterOperand tibPtr = gc.temps.makeTemp(OPT_ClassLoaderProxy.JavaLangObjectArrayType); OPT_Instruction getTib = GuardedUnary.create(GET_OBJ_TIB, tibPtr, ref.copyU2U(), getCurrentGuard()); appendInstruction(getTib); getTib.bcIndex = RUNTIME_SERVICES_BCI; OPT_MethodOperand dtcRoutine = OPT_MethodOperand.STATIC(VM_Entrypoints.unresolvedInvokeinterfaceImplementsTestMethod); OPT_Instruction callCheck = Call.create2(CALL, null, null, dtcRoutine, new OPT_IntConstantOperand(meth.getDictionaryId()), tibPtr.copyD2U()); if (gc.options.NO_CALLEE_EXCEPTIONS) { callCheck.markAsNonPEI(); } appendInstruction(callCheck); callCheck.bcIndex = RUNTIME_SERVICES_BCI; requiresImplementsTest = false; // the above call subsumes the test } } else { meth = resolvedMethodRef; } } catch (VM_ResolutionException e) { // actually can't be thrown when we pass false for canLoad. } // Step 2: Invokeinterface requires a dynamic type check // to ensure that the receiver object actually // implements the interface. This is necessary // because the verifier does not detect incompatible class changes. // If we're building for FastInterfaceInvocation then // this test must be made explicit in the calling sequence. // In the slow interface invocation path, it is handled // deep in the guts of the dispatching code. // NOTE: We don't insert the test here if we are doing to // do a guarded inline of an interface call. That case // is handled within OPT_Inliner.java. However, if // we virtualize the call, we do need to handle the DTC // here, since OPT_Inliner won't have enough information // to determine what the right thing to do is. if (requiresImplementsTest) { // Attempt to avoid inserting the check by seeing if the // known static type of the receiver implements the interface. if (refType.isResolved() && !refType.isInterface()) { byte doesImplement = OPT_ClassLoaderProxy.proxy.includesType(interfaceType, refType); requiresImplementsTest = doesImplement != YES; } } // Step 3: Attempt to resolve the interface call to // a particular virtual method. // Note: step 2 and step 3 are independent // and it is not that case that being able // to do 2 implies 3 or that doing 3 implies 2. VM_Method vmeth; if (refType.isResolved() && !refType.isInterface() && (vmeth = lookupMethod(meth, refType)) != null) { // We're going to virtualize it. Must deal with the DTC here. if (requiresImplementsTest) { appendInstruction(TypeCheck.create(MUST_IMPLEMENT_INTERFACE, ref.copyU2U(), makeTypeOperand(interfaceType), getCurrentGuard())); } boolean unresolved = vmeth.needsDynamicLink(gc.method); if (!unresolved) vmeth = vmeth.resolve(); Call.setMethod(s, OPT_MethodOperand.VIRTUAL(vmeth, unresolved, true)); if (gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.classUnresolved(unresolved, meth); // Think about trying to inline it if (!unresolved) { // if the type is precise, then we know FOR CERTAIN that // this call will resolve to meth VM_Method computedTarget = ref.isPreciseType() ? vmeth : null; if (computedTarget != null && gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.isPreciseType(); OPT_InlineDecision id = shouldInline(s, computedTarget, ref.isExtant()); if (maybeInlineMethod(id, s)) { return; } } } else { // try to inline a predicted target for the interface invocation OPT_InlineDecision id = shouldInline(s, null, false); if (maybeInlineMethod(id, s)) { return; } else { if (requiresImplementsTest) { appendInstruction(TypeCheck.create(MUST_IMPLEMENT_INTERFACE, ref.copyU2U(), makeTypeOperand(interfaceType), getCurrentGuard())); } } } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_xxxunusedxxx: OPT_OptimizingCompilerException.UNREACHABLE(); break; case JBC_new: { int constantPoolIndex = bcInfo.getTypeReferenceIndex(); VM_Type klass = bcInfo.getTypeReference(constantPoolIndex); OPT_TypeOperand klassOp = makeTypeOperand(klass); OPT_RegisterOperand t = gc.temps.makeTemp(klass); t.setPreciseType(); markGuardlessNonNull(t); OPT_Operator operator; if (klass.isInitialized() || klass.asClass().isInBootImage()) { operator = NEW; } else { operator = NEW_UNRESOLVED; } s = New.create(operator, t, klassOp); push(t.copyD2U()); rectifyStateWithErrorHandler(); } break; case JBC_newarray: { byte atype = (byte)bcInfo.getByteValue(); VM_Array array = VM_Array.getPrimitiveArrayType(atype); OPT_TypeOperand arrayOp = makeTypeOperand(array); OPT_RegisterOperand t = gc.temps.makeTemp(array); t.setPreciseType(); markGuardlessNonNull(t); s = NewArray.create(NEWARRAY, t, arrayOp, popInt()); push(t.copyD2U()); VM_Class et = OPT_ClassLoaderProxy.JavaLangNegativeArraySizeExceptionType; rectifyStateWithExceptionHandler(et); } break; case JBC_anewarray: { int constantPoolIndex = bcInfo.getTypeReferenceIndex(); VM_Type elementTypeRef = bcInfo.getTypeReference(constantPoolIndex); VM_Array array = elementTypeRef.getArrayTypeForElementType(); OPT_TypeOperand arrayOp = makeTypeOperand(array); OPT_RegisterOperand t = gc.temps.makeTemp(array); t.setPreciseType(); markGuardlessNonNull(t); s = NewArray.create(NEWARRAY, t, arrayOp, popInt()); push(t.copyD2U()); rectifyStateWithErrorHandler(); VM_Class et = OPT_ClassLoaderProxy.JavaLangNegativeArraySizeExceptionType; rectifyStateWithExceptionHandler(et); } break; case JBC_arraylength: { OPT_Operand op1 = pop(); clearCurrentGuard(); if (do_NullCheck(op1)) break; if (VM.VerifyAssertions) VM.assert(getArrayTypeOf(op1).isArrayType()); OPT_RegisterOperand t = gc.temps.makeTempInt(); s = GuardedUnary.create(ARRAYLENGTH, t, op1, getCurrentGuard()); push(t.copyD2U()); } break; case JBC_athrow: { OPT_Operand op0 = pop(); clearCurrentGuard(); if (do_NullCheck(op0)) break; VM_Type type = getRefTypeOf(op0); if (VM.VerifyAssertions) { // fudge to handle conservative approximation of // OPT_ClassLoaderProxy.proxy.findCommonSuperclass if (type != VM_Type.JavaLangObjectType) assertIsAssignable(VM_Type.JavaLangThrowableType, type); } if (!gc.method.getDeclaringClass().isInterruptible()) { // prevent code motion in or out of uninterruptible code sequence appendInstruction(Empty.create(UNINT_END)); } endOfBasicBlock = true; OPT_BasicBlock definiteTarget = rectifyStateWithExceptionHandler(type, true); if (definiteTarget != null) { appendInstruction(CacheOp.create(SET_CAUGHT_EXCEPTION, op0)); s = Goto.create(GOTO, definiteTarget.makeJumpTarget()); } else { s = Athrow.create(ATHROW, (OPT_RegisterOperand)op0); } } break; case JBC_checkcast: { int constantPoolIndex = bcInfo.getTypeReferenceIndex(); VM_Type typeRef = bcInfo.getTypeReference(constantPoolIndex); boolean classLoading = couldCauseClassLoading(typeRef); OPT_TypeOperand typeOp = makeTypeOperand(typeRef); OPT_Operand op2 = pop(); if (VM.VerifyAssertions) VM.assert(op2.isRef()); if (CF_CHECKCAST && !classLoading) { if (op2.isDefinitelyNull()) { push(op2); if (DBG_CF) db("skipped gen of null checkcast"); break; } VM_Type type = getRefTypeOf(op2); // non-null, null case above if (OPT_ClassLoaderProxy.proxy.includesType(typeRef,type)==YES){ push(op2); if (DBG_CF) db("skipped gen of checkcast of " + op2 + " from " + typeRef + " to " + type); break; } } OPT_RegisterOperand reg = (OPT_RegisterOperand)op2; if (gc.options.NO_CHECKCAST) { // Unsafely eliminate all checkcasts } else { if (classLoading) { s = TypeCheck.create(CHECKCAST_UNRESOLVED, reg, typeOp); } else { if (isNonNull(reg)) { s = TypeCheck.create(CHECKCAST_NOTNULL, reg, typeOp, getGuard(reg)); } else { s = TypeCheck.create(CHECKCAST, reg, typeOp); } } } reg = reg.copyU2U(); reg.type = typeRef; push(reg); VM_Class et = OPT_ClassLoaderProxy.JavaLangClassCastExceptionType; rectifyStateWithExceptionHandler(et); if (classLoading) rectifyStateWithErrorHandler(); } break; case JBC_instanceof: { int constantPoolIndex = bcInfo.getTypeReferenceIndex(); VM_Type typeRef = bcInfo.getTypeReference(constantPoolIndex); boolean classLoading = couldCauseClassLoading(typeRef); OPT_TypeOperand typeOp = makeTypeOperand(typeRef); OPT_Operand op2 = pop(); if (VM.VerifyAssertions) VM.assert(op2.isRef()); if (CF_INSTANCEOF && !classLoading) { if (op2.isDefinitelyNull()) { push(new OPT_IntConstantOperand(0)); if (DBG_CF) db("skipped gen of null instanceof"); break; } VM_Type type = getRefTypeOf(op2); // non-null int answer = OPT_ClassLoaderProxy.proxy.includesType(typeRef, type); if (answer == YES) { if (isNonNull(op2)) { push(new OPT_IntConstantOperand(1)); if (DBG_CF) db("skipped gen of instanceof of " + op2 + " from " + typeRef + " to " + type); break; } else { // !!TODO: For boolean variables, is any non-zero integer // equivalent to true? If so, in this case, we can replace // t <- o2 instanceof type with t <- o2. (SJF) } } else if (answer == NO) { push(new OPT_IntConstantOperand(0)); break; } } OPT_RegisterOperand t = gc.temps.makeTempInt(); if (classLoading) { s = InstanceOf.create(INSTANCEOF_UNRESOLVED, t, typeOp, op2); } else { if (isNonNull(op2)) { s = InstanceOf.create(INSTANCEOF_NOTNULL, t, typeOp, op2, getGuard(op2)); } else { s = InstanceOf.create(INSTANCEOF, t, typeOp, op2); } } push(t.copyD2U()); if (classLoading) rectifyStateWithErrorHandler(); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/b636840796d86d400a7f80ae18aa939fc2b89a95/OPT_BC2IR.java/buggy/rvm/src/vm/compilers/optimizing/ir/conversions/bc2hir/OPT_BC2IR.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 2103, 1265, 12, 474, 15065, 13, 288, 565, 309, 261, 2290, 43, 67, 9676, 747, 2383, 43, 67, 4803, 2056, 13, 288, 1377, 1319, 2932, 3441, 1776, 981, 1368, 315, 397, 783, 9676, 900, 397, 315, 598, 1086, 3674, 315, 397, 1086, 3674, 1769, 565, 289, 565, 783, 9676, 900, 18, 542, 7823, 5621, 565, 20706, 8252, 1768, 273, 4159, 14287, 273, 629, 31, 565, 1142, 382, 701, 273, 446, 31, 565, 6533, 966, 18, 542, 11983, 12, 2080, 1016, 1769, 565, 1323, 261, 3767, 13, 288, 1377, 368, 6753, 3455, 783, 9676, 900, 18, 8766, 731, 17, 869, 17, 712, 316, 648, 732, 775, 358, 11833, 1368, 4202, 368, 326, 7689, 434, 326, 1203, 732, 4565, 4551, 12516, 18, 225, 9587, 1283, 9702, 4202, 368, 3551, 3647, 3930, 8252, 1768, 353, 638, 3302, 1404, 4237, 584, 358, 1044, 333, 648, 18, 1377, 783, 9676, 900, 18, 8766, 273, 16170, 1016, 273, 6533, 966, 18, 13459, 1016, 31, 1377, 509, 981, 273, 6533, 966, 18, 588, 2134, 11983, 5621, 1377, 309, 261, 2290, 43, 67, 16283, 21045, 13, 288, 3639, 1319, 2932, 24979, 315, 397, 16170, 1016, 397, 315, 294, 374, 92, 6, 397, 2144, 18, 869, 14866, 12, 710, 10019, 1377, 289, 1377, 16456, 67, 11983, 272, 273, 446, 31, 1377, 1620, 261, 710, 13, 288, 1377, 648, 804, 16283, 67, 82, 556, 30, 202, 8820, 31, 1377, 648, 804, 16283, 67, 69, 10248, 67, 2011, 30, 202, 6206, 12, 2704, 16456, 67, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 2103, 1265, 12, 474, 15065, 13, 288, 565, 309, 261, 2290, 43, 67, 9676, 747, 2383, 43, 67, 4803, 2056, 13, 288, 1377, 1319, 2932, 3441, 1776, 981, 1368, 315, 397, 783, 9676, 900, 397, 315, 598, 1086, 3674, 315, 397, 1086, 3674, 1769, 565, 289, 565, 783, 9676, 900, 18, 542, 7823, 5621, 565, 20706, 8252, 1768, 273, 4159, 14287, 273, 629, 31, 565, 1142, 382, 701, 273, 446, 31, 565, 6533, 966, 18, 542, 11983, 12, 2080, 1016, 1769, 565, 1323, 261, 3767, 13, 288, 1377, 368, 6753, 3455, 783, 9676, 900, 18, 8766, 731, 17, 869, 17, 712, 316, 648, 732, 775, 358, 11833, 1368, 4202, 368, 326, 7689, 434, 326, 1203, 732, 2 ]
Hashtable table = getProviderMapping();
Hashtable table = getProviderMapping(getSelectedResources());
private IRunnableWithProgress getOperation() { return new WorkspaceModifyOperation() { public void execute(IProgressMonitor monitor) throws InvocationTargetException { try { // maps the selected resources (projects) to their providers Hashtable table = getProviderMapping(); Set keySet = table.keySet(); monitor.beginTask("", keySet.size() * 1000); //$NON-NLS-1$ monitor.setTaskName(Policy.bind("Unmanage.unmanaging")); //$NON-NLS-1$ Iterator iterator = keySet.iterator(); while (iterator.hasNext()) { IProgressMonitor subMonitor = new InfiniteSubProgressMonitor(monitor, 1000); subMonitor.beginTask(null, 100); SVNTeamProvider provider = (SVNTeamProvider)iterator.next(); // get the resources (projects) to unmanage for the given provider List list = (List)table.get(provider); IResource[] providerResources = (IResource[])list.toArray(new IResource[list.size()]); for (int i = 0; i < providerResources.length; i++) { // get the folder for the project IResource resource = providerResources[i]; ISVNLocalFolder folder = SVNWorkspaceRoot.getSVNFolderFor((IContainer) resource); try { if(deleteContent) { folder.unmanage(Policy.subMonitorFor(subMonitor, 10)); } } finally { // We want to remove the nature even if the unmanage operation fails RepositoryProvider.unmap((IProject)resource); } } } } catch (TeamException e) { throw new InvocationTargetException(e); } finally { monitor.done(); } } }; }
6016 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6016/5c09ef577ce75499143239693eebb3544504156b/UnmanageAction.java/buggy/ui/src/org/tigris/subversion/subclipse/ui/actions/UnmanageAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 467, 20013, 1190, 5491, 21162, 1435, 288, 202, 202, 2463, 394, 14396, 11047, 2988, 1435, 288, 1082, 202, 482, 918, 1836, 12, 45, 5491, 7187, 6438, 13, 1216, 15342, 288, 9506, 202, 698, 288, 6862, 202, 759, 7565, 326, 3170, 2703, 261, 13582, 13, 358, 3675, 9165, 10792, 18559, 1014, 273, 16137, 3233, 5621, 6862, 202, 694, 7685, 273, 1014, 18, 856, 694, 5621, 6862, 202, 10259, 18, 10086, 2174, 2932, 3113, 7685, 18, 1467, 1435, 380, 4336, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 10259, 18, 542, 2174, 461, 12, 2582, 18, 4376, 2932, 984, 12633, 18, 318, 81, 940, 310, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 3198, 2775, 273, 7685, 18, 9838, 5621, 6862, 202, 17523, 261, 9838, 18, 5332, 2134, 10756, 288, 25083, 202, 45, 5491, 7187, 720, 7187, 273, 394, 657, 9551, 1676, 5491, 7187, 12, 10259, 16, 4336, 1769, 25083, 202, 1717, 7187, 18, 10086, 2174, 12, 2011, 16, 2130, 1769, 25083, 202, 23927, 1784, 3820, 2249, 2893, 273, 261, 23927, 1784, 3820, 2249, 13, 9838, 18, 4285, 5621, 6862, 1082, 13491, 368, 336, 326, 2703, 261, 13582, 13, 358, 640, 12633, 364, 326, 864, 2893, 13491, 987, 666, 273, 261, 682, 13, 2121, 18, 588, 12, 6778, 1769, 25083, 202, 45, 1420, 8526, 2893, 3805, 273, 261, 45, 1420, 63, 5717, 1098, 18, 31447, 12, 2704, 467, 1420, 63, 1098, 18, 1467, 1435, 19226, 25083, 202, 1884, 261, 474, 277, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 20013, 1190, 5491, 21162, 1435, 288, 202, 202, 2463, 394, 14396, 11047, 2988, 1435, 288, 1082, 202, 482, 918, 1836, 12, 45, 5491, 7187, 6438, 13, 1216, 15342, 288, 9506, 202, 698, 288, 6862, 202, 759, 7565, 326, 3170, 2703, 261, 13582, 13, 358, 3675, 9165, 10792, 18559, 1014, 273, 16137, 3233, 5621, 6862, 202, 694, 7685, 273, 1014, 18, 856, 694, 5621, 6862, 202, 10259, 18, 10086, 2174, 2932, 3113, 7685, 18, 1467, 1435, 380, 4336, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 10259, 18, 542, 2174, 461, 12, 2582, 18, 4376, 2932, 984, 12633, 18, 318, 81, 940, 310, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 2 ]
for (;;) { advance(); switch (nextChar) {
for (;;) { advance(); switch (nextChar) {
public Symbol next_token() throws java.io.IOException { StringBuffer id; boolean ampersandId = false; for (;;) { switch (nextChar) { case '.': switch (lookahead()) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': // We're looking at the '.' on the start of a number, // e.g. .1; fall through to parse a number. break; default: advance(); return makeToken(ParserSym.DOT, "."); } // fall through case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': // Parse a number. Valid examples include 1, 1.2, 0.1, .1, // 1e2, 1E2, 1e-2, 1e+2. Invalid examples include e2, 1.2.3, // 1e2e3, 1e2.3. // // Signs preceding numbers (e.g. -1, +1E-5) are valid, but are // handled by the parser. final int leftOfPoint = 0; final int rightOfPoint = 1; final int inExponent = 2; int n = 0, nDigits = 0, nSign = 0, exponent = 0; double mantissa = 0.0; int state = leftOfPoint; for (;;) { if (nextChar == '.') { if (state == leftOfPoint) { state = rightOfPoint; mantissa = n; n = nDigits = 0; nSign = 1; advance(); } else { // Error: we are seeing a point in the exponent // (e.g. 1E2.3 or 1.2E3.4) or a second point in the // mantissa (e.g. 1.2.3). Return what we've got // and let the parser raise the error. if (state == rightOfPoint) { mantissa += (n * java.lang.Math.pow( 10, -nDigits)); } else { exponent = n * nSign; } return makeNumber(mantissa, exponent); } } else if (nextChar == 'E' || nextChar == 'e') { if (state == inExponent) { // Error: we are seeing an 'e' in the exponent // (e.g. 1.2e3e4). Return what we've got and let // the parser raise the error. exponent = n * nSign; return makeNumber(mantissa, exponent); } else { if (state == leftOfPoint) { mantissa = n; } else { mantissa += (n * java.lang.Math.pow( 10, -nDigits)); } n = nDigits = 0; nSign = 1; advance(); state = inExponent; } } else if ((nextChar == '+' || nextChar == '-') && state == inExponent && nDigits == 0) { // We're looking at the sign after the 'e'. nSign = -nSign; advance(); } else if (nextChar >= '0' && nextChar <= '9') { n = n * 10 + (nextChar - '0'); nDigits++; advance(); } else { // Reached end of number. if (state == leftOfPoint) { mantissa = n; } else if (state == rightOfPoint) { mantissa += (n * java.lang.Math.pow(10, -nDigits)); } else { exponent = n * nSign; } return makeNumber(mantissa, exponent); } } case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': /* parse an identifier */ id = new StringBuffer(); for (;;) { id.append((char)nextChar); advance(); switch (nextChar) { case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case '_': break; default: String strId = id.toString(); Integer i = (Integer) m_resWordsTable.get( strId.toUpperCase()); if (i == null) { // identifier return makeId(strId, false, false); } else { // reserved word return makeRes(i.intValue()); } } } case '&': advance(); if (nextChar == '[') { ampersandId = true; // fall through } else { return makeToken(ParserSym.UNKNOWN, "&"); } case '[': /* parse a delimited identifier */ id = new StringBuffer(); for (;;) { advance(); switch (nextChar) { case ']': advance(); if (nextChar == ']') { // ] escaped with ] - leave them as id.append(']'); id.append(']'); break; } else { // end of identifier if (ampersandId) { ampersandId = false; return makeId(id.toString(), true, true); } else { return makeId(id.toString(), true, false); } } case -1: if (ampersandId) { ampersandId = false; return makeId(id.toString(), true, true); } else { return makeId(id.toString(), true, false); } default: id.append((char)nextChar); } } case ':': advance(); return makeToken(ParserSym.COLON, ":"); case ',': advance(); return makeToken(ParserSym.COMMA, ","); case '=': advance(); return makeToken(ParserSym.EQ, "="); case '<': advance(); switch (nextChar) { case '>': advance(); return makeToken(ParserSym.NE, "<>"); case '=': advance(); return makeToken(ParserSym.LE, "<="); default: return makeToken(ParserSym.LT, "<"); } case '>': advance(); switch (nextChar) { case '=': advance(); return makeToken(ParserSym.GE, ">="); default: return makeToken(ParserSym.GT, ">"); } case '{': advance(); return makeToken(ParserSym.LBRACE, "{"); case '(': advance(); return makeToken(ParserSym.LPAREN, "("); case '}': advance(); return makeToken(ParserSym.RBRACE, "}"); case ')': advance(); return makeToken(ParserSym.RPAREN, ")"); case '+': advance(); return makeToken(ParserSym.PLUS, "+"); case '-': advance(); return makeToken(ParserSym.MINUS, "-"); case '*': advance(); return makeToken(ParserSym.ASTERISK, "*"); case '/': advance(); return makeToken(ParserSym.SOLIDUS, "/"); case '|': advance(); switch (nextChar) { case '|': advance(); return makeToken(ParserSym.CONCAT, "||"); default: return makeToken(ParserSym.UNKNOWN, "|"); } case '"': /* parse a double-quoted string */ id = new StringBuffer(); for (;;) { advance(); switch (nextChar) { case '"': advance(); if( nextChar == '"' ){ // " escaped with " id.append('"'); break; } else { // end of string return makeString(id.toString()); } case -1: return makeString(id.toString()); default: id.append((char)nextChar); } } case '\'': if (inFormula) { inFormula = false; advance(); return makeToken(ParserSym.QUOTE, "'"); } else if (previousSymbol == ParserSym.AS) { inFormula = true; advance(); return makeToken(ParserSym.QUOTE, "'"); } /* parse a single-quoted string */ id = new StringBuffer(); for (;;) { advance(); switch (nextChar) { case '\'': advance(); if (nextChar == '\'') { // " escaped with " id.append('\''); break; } else { // end of string return makeString(id.toString()); } case -1: return makeString(id.toString()); default: id.append((char)nextChar); } } case -1: // we're done return makeToken(ParserSym.EOF, "EOF"); default: /* ignore everything else */ iPrevChar = iChar; advance(); break; } } }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/8bdb99e88a411963eae1a3b53e6fb02505928020/Scanner.java/buggy/src/main/mondrian/olap/Scanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8565, 1024, 67, 2316, 1435, 3639, 1216, 2252, 18, 1594, 18, 14106, 288, 3639, 6674, 612, 31, 3639, 1250, 16946, 414, 464, 548, 273, 629, 31, 3639, 364, 261, 25708, 13, 288, 5411, 1620, 261, 4285, 2156, 13, 288, 5411, 648, 2611, 30, 7734, 1620, 261, 7330, 11617, 10756, 288, 7734, 648, 296, 20, 4278, 648, 296, 21, 4278, 648, 296, 22, 4278, 648, 296, 23, 4278, 648, 296, 24, 4278, 7734, 648, 296, 25, 4278, 648, 296, 26, 4278, 648, 296, 27, 4278, 648, 296, 28, 4278, 648, 296, 29, 4278, 10792, 368, 1660, 4565, 7849, 622, 326, 2611, 603, 326, 787, 434, 279, 1300, 16, 10792, 368, 425, 18, 75, 18, 263, 21, 31, 4159, 3059, 358, 1109, 279, 1300, 18, 10792, 898, 31, 7734, 805, 30, 10792, 8312, 5621, 10792, 327, 1221, 1345, 12, 2678, 11901, 18, 17591, 16, 4585, 1769, 7734, 289, 7734, 368, 4159, 3059, 5411, 648, 296, 20, 4278, 648, 296, 21, 4278, 648, 296, 22, 4278, 648, 296, 23, 4278, 648, 296, 24, 4278, 5411, 648, 296, 25, 4278, 648, 296, 26, 4278, 648, 296, 27, 4278, 648, 296, 28, 4278, 648, 296, 29, 4278, 7734, 368, 2884, 279, 1300, 18, 225, 2364, 10991, 2341, 404, 16, 404, 18, 22, 16, 374, 18, 21, 16, 263, 21, 16, 7734, 368, 404, 73, 22, 16, 404, 41, 22, 16, 404, 73, 17, 22, 16, 404, 73, 15, 22, 18, 225, 1962, 10991, 2341, 425, 22, 16, 404, 18, 22, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8565, 1024, 67, 2316, 1435, 3639, 1216, 2252, 18, 1594, 18, 14106, 288, 3639, 6674, 612, 31, 3639, 1250, 16946, 414, 464, 548, 273, 629, 31, 3639, 364, 261, 25708, 13, 288, 5411, 1620, 261, 4285, 2156, 13, 288, 5411, 648, 2611, 30, 7734, 1620, 261, 7330, 11617, 10756, 288, 7734, 648, 296, 20, 4278, 648, 296, 21, 4278, 648, 296, 22, 4278, 648, 296, 23, 4278, 648, 296, 24, 4278, 7734, 648, 296, 25, 4278, 648, 296, 26, 4278, 648, 296, 27, 4278, 648, 296, 28, 4278, 648, 296, 29, 4278, 10792, 368, 1660, 4565, 7849, 622, 326, 2611, 603, 326, 787, 434, 279, 1300, 16, 10792, 368, 425, 18, 75, 18, 263, 21, 31, 4159, 2 ]
if (1 / x > 0) {
if (1 / x > 0) {
private double js_pow(double x, double y) { if (y == 0) return 1.0; // Java's pow(NaN, 0) = NaN; we need 1 if ((x == 0) && (y < 0)) { if (1 / x > 0) { // x is +0, Java is -oo, we need +oo return Double.POSITIVE_INFINITY; } /* if x is -0 and y is an odd integer, -oo */ int y_int = (int)y; if (y_int == y && (y_int & 0x1) != 0) return Double.NEGATIVE_INFINITY; return Double.POSITIVE_INFINITY; } return Math.pow(x, y); }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/NativeMath.java/buggy/js/rhino/org/mozilla/javascript/NativeMath.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1645, 3828, 67, 23509, 12, 9056, 619, 16, 1645, 677, 13, 288, 540, 309, 261, 93, 422, 374, 13, 327, 404, 18, 20, 31, 282, 368, 5110, 1807, 7602, 12, 21172, 16, 374, 13, 273, 10180, 31, 732, 1608, 404, 3639, 309, 14015, 92, 422, 374, 13, 597, 261, 93, 411, 374, 3719, 288, 5411, 309, 261, 21, 342, 619, 405, 374, 13, 288, 1171, 368, 619, 353, 397, 20, 16, 5110, 353, 300, 5161, 16, 732, 1608, 397, 5161, 7734, 327, 3698, 18, 7057, 16325, 67, 17716, 31, 7734, 289, 5411, 1748, 309, 619, 353, 300, 20, 471, 677, 353, 392, 14800, 3571, 16, 300, 5161, 1195, 5411, 509, 677, 67, 474, 273, 261, 474, 13, 93, 31, 5411, 309, 261, 93, 67, 474, 422, 677, 597, 261, 93, 67, 474, 473, 374, 92, 21, 13, 480, 374, 13, 7734, 327, 3698, 18, 5407, 22421, 67, 17716, 31, 5411, 327, 3698, 18, 7057, 16325, 67, 17716, 31, 3639, 289, 3639, 327, 2361, 18, 23509, 12, 92, 16, 677, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 1645, 3828, 67, 23509, 12, 9056, 619, 16, 1645, 677, 13, 288, 540, 309, 261, 93, 422, 374, 13, 327, 404, 18, 20, 31, 282, 368, 5110, 1807, 7602, 12, 21172, 16, 374, 13, 273, 10180, 31, 732, 1608, 404, 3639, 309, 14015, 92, 422, 374, 13, 597, 261, 93, 411, 374, 3719, 288, 5411, 309, 261, 21, 342, 619, 405, 374, 13, 288, 1171, 368, 619, 353, 397, 20, 16, 5110, 353, 300, 5161, 16, 732, 1608, 397, 5161, 7734, 327, 3698, 18, 7057, 16325, 67, 17716, 31, 7734, 289, 5411, 1748, 309, 619, 353, 300, 20, 471, 677, 353, 392, 14800, 3571, 16, 300, 5161, 1195, 5411, 509, 677, 67, 474, 273, 261, 474, 13, 2 ]
textDestination.setText(c.getDestination().getLocalisation().getVille().toString()); textAppartenance.setText(c.getOrigine().getLocalisation().getVille().toString());
comboOrigine.setSelectedItem(c.getOrigine()); comboDestination.setSelectedItem(c.getDestination());
public Sup_AjoutModifCamion(Camion c, Sup_OngletCamion parent, AccesBDDCamion tableCamions){ super(""); //Comportement lors de la fermeture WindowListener l = new WindowAdapter() { public void windowClosing(WindowEvent e){ boutAnnuler.doClick(); } }; addWindowListener(l); // On indique le titre de la fentre selon le cas de figure : modification ou ajout if(c!=null){ setTitle("Modification d'un camion"); boutValider.setText("Modifier"); camion = c; } else{ setTitle("Ajout d'un camion"); boutValider.setText("Ajouter"); camion = new Camion(); } this.tableCamions = tableCamions; this.parent = parent; // Titres des informations saisir JPanel panneauLabels = new JPanel(new GridLayout(6,1,5,5)); panneauLabels.add(new JLabel("Numro :")); panneauLabels.add(new JLabel("Disponibilit :")); panneauLabels.add(new JLabel("Volume :")); panneauLabels.add(new JLabel("Origine :")); panneauLabels.add(new JLabel("Destination :")); // Champs de saisie des informations JPanel panneauSaisie = new JPanel(new GridLayout(6,1,5,5)); panneauSaisie.add(textNumero); panneauSaisie.add(comboDispo); panneauSaisie.add(textVolume); panneauSaisie.add(textAppartenance); panneauSaisie.add(textDestination); // Boutons d'actions : Valider/Modifier et Annuler JPanel panneauBoutons = new JPanel(new GridLayout(1,2,15,15)); boutValider.addActionListener(this); boutAnnuler.addActionListener(this); panneauBoutons.add(boutValider); panneauBoutons.add(boutAnnuler); // Champ d'avertissement en cas de saisie incomplte JPanel panneauWarning = new JPanel(new GridLayout(1,1,5,5)); textWarning.setEditable(false); textWarning.setForeground(Color.RED); textWarning.setHorizontalAlignment(JTextField.CENTER); textWarning.setBorder(BorderFactory.createLineBorder(Color.black)); panneauWarning.add(textWarning); // Panel regroupant les labels et les champs de saisie JPanel panneauHaut = new JPanel(new BorderLayout(5,5)); panneauHaut.add(panneauLabels,BorderLayout.WEST); panneauHaut.add(panneauSaisie,BorderLayout.CENTER); // On ajoute tous les panneaux secondaires au panneau principal getContentPane().setLayout(new BorderLayout(20,20)); getContentPane().add(panneauHaut,BorderLayout.NORTH); getContentPane().add(panneauBoutons,BorderLayout.CENTER); getContentPane().add(panneauWarning,BorderLayout.SOUTH); // On rajoute un peu d'espace autour des panneaux ((JComponent)getContentPane()).setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); // Si on est dans le cas d'une modification if(c!= null){ // On initialise les champs texte textNumero.setText(c.getNumero()); comboDispo.setSelectedIndex(c.getDisponibilite().intValue()); textVolume.setText(c.getVolume().toString()); textDestination.setText(c.getDestination().getLocalisation().getVille().toString()); textAppartenance.setText(c.getOrigine().getLocalisation().getVille().toString()); } pack(); setAlwaysOnTop(true); setVisible(true); }
56849 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56849/c68f39175935464bc8a4b457786e84e94f6aa0da/Sup_AjoutModifCamion.java/clean/trunk/ihm/supervision/Sup_AjoutModifCamion.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3425, 67, 37, 78, 659, 1739, 430, 39, 301, 285, 12, 39, 301, 285, 276, 16, 3425, 67, 1398, 75, 1810, 39, 301, 285, 982, 16, 12848, 764, 18096, 5528, 301, 285, 1014, 39, 301, 1115, 15329, 202, 202, 9565, 2932, 8863, 9506, 202, 759, 799, 655, 820, 328, 1383, 443, 7125, 284, 1035, 278, 594, 202, 202, 3829, 2223, 328, 273, 394, 6076, 4216, 1435, 288, 1082, 202, 482, 918, 2742, 15745, 12, 3829, 1133, 425, 15329, 9506, 202, 70, 659, 14694, 17040, 18, 2896, 6563, 5621, 1082, 202, 97, 202, 202, 20451, 202, 202, 1289, 3829, 2223, 12, 80, 1769, 202, 202, 759, 2755, 1547, 2161, 884, 268, 23339, 443, 7125, 284, 319, 266, 357, 265, 884, 8697, 443, 7837, 294, 11544, 16694, 24787, 659, 202, 202, 430, 12, 71, 5, 33, 2011, 15329, 1082, 202, 542, 4247, 2932, 13467, 302, 11, 318, 5861, 285, 8863, 1082, 202, 70, 659, 1556, 264, 18, 542, 1528, 2932, 9829, 8863, 1082, 202, 20133, 285, 273, 276, 31, 202, 202, 97, 202, 202, 12107, 95, 1082, 202, 542, 4247, 2932, 37, 78, 659, 302, 11, 318, 5861, 285, 8863, 1082, 202, 70, 659, 1556, 264, 18, 542, 1528, 2932, 37, 78, 14068, 8863, 1082, 202, 20133, 285, 273, 394, 385, 301, 285, 5621, 202, 202, 97, 9506, 202, 2211, 18, 2121, 39, 301, 1115, 273, 1014, 39, 301, 1115, 31, 202, 202, 2211, 18, 2938, 273, 982, 31, 1082, 202, 759, 399, 305, 455, 2832, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3425, 67, 37, 78, 659, 1739, 430, 39, 301, 285, 12, 39, 301, 285, 276, 16, 3425, 67, 1398, 75, 1810, 39, 301, 285, 982, 16, 12848, 764, 18096, 5528, 301, 285, 1014, 39, 301, 1115, 15329, 202, 202, 9565, 2932, 8863, 9506, 202, 759, 799, 655, 820, 328, 1383, 443, 7125, 284, 1035, 278, 594, 202, 202, 3829, 2223, 328, 273, 394, 6076, 4216, 1435, 288, 1082, 202, 482, 918, 2742, 15745, 12, 3829, 1133, 425, 15329, 9506, 202, 70, 659, 14694, 17040, 18, 2896, 6563, 5621, 1082, 202, 97, 202, 202, 20451, 202, 202, 1289, 3829, 2223, 12, 80, 1769, 202, 202, 759, 2755, 1547, 2161, 884, 268, 23339, 443, 7125, 284, 319, 266, 2 ]
myActualValue = new Null("Nothing"); }
myActualValue = new Null("Nothing"); }
public void clearActual() { myActualValue = new Null("Nothing"); }
54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/ExpectationValue.java/buggy/jmock/core/src/org/jmock/expectation/ExpectationValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2424, 11266, 1435, 288, 202, 202, 4811, 11266, 620, 273, 394, 4112, 2932, 23814, 8863, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2424, 11266, 1435, 288, 202, 202, 4811, 11266, 620, 273, 394, 4112, 2932, 23814, 8863, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
protected void transform(byte[] in, int offset) { long x0, x1, x2, x3, x4, x5, x6, x7; x0 = ((long) in[offset++] & 0xFF) | ((long) (in[offset++] & 0xFF) << 8) | ((long) (in[offset++] & 0xFF) << 16) | ((long) (in[offset++] & 0xFF) << 24) | ((long) (in[offset++] & 0xFF) << 32) | ((long) (in[offset++] & 0xFF) << 40) | ((long) (in[offset++] & 0xFF) << 48) | ((long) (in[offset++] & 0xFF) << 56); x1 = ((long) in[offset++] & 0xFF) | ((long) (in[offset++] & 0xFF) << 8) | ((long) (in[offset++] & 0xFF) << 16) | ((long) (in[offset++] & 0xFF) << 24) | ((long) (in[offset++] & 0xFF) << 32) | ((long) (in[offset++] & 0xFF) << 40) | ((long) (in[offset++] & 0xFF) << 48) | ((long) (in[offset++] & 0xFF) << 56); x2 = ((long) in[offset++] & 0xFF) | ((long) (in[offset++] & 0xFF) << 8) | ((long) (in[offset++] & 0xFF) << 16) | ((long) (in[offset++] & 0xFF) << 24) | ((long) (in[offset++] & 0xFF) << 32) | ((long) (in[offset++] & 0xFF) << 40) | ((long) (in[offset++] & 0xFF) << 48) | ((long) (in[offset++] & 0xFF) << 56); x3 = ((long) in[offset++] & 0xFF) | ((long) (in[offset++] & 0xFF) << 8) | ((long) (in[offset++] & 0xFF) << 16) | ((long) (in[offset++] & 0xFF) << 24) | ((long) (in[offset++] & 0xFF) << 32) | ((long) (in[offset++] & 0xFF) << 40) | ((long) (in[offset++] & 0xFF) << 48) | ((long) (in[offset++] & 0xFF) << 56); x4 = ((long) in[offset++] & 0xFF) | ((long) (in[offset++] & 0xFF) << 8) | ((long) (in[offset++] & 0xFF) << 16) | ((long) (in[offset++] & 0xFF) << 24) | ((long) (in[offset++] & 0xFF) << 32) | ((long) (in[offset++] & 0xFF) << 40) | ((long) (in[offset++] & 0xFF) << 48) | ((long) (in[offset++] & 0xFF) << 56); x5 = ((long) in[offset++] & 0xFF) | ((long) (in[offset++] & 0xFF) << 8) | ((long) (in[offset++] & 0xFF) << 16) | ((long) (in[offset++] & 0xFF) << 24) | ((long) (in[offset++] & 0xFF) << 32) | ((long) (in[offset++] & 0xFF) << 40) | ((long) (in[offset++] & 0xFF) << 48) | ((long) (in[offset++] & 0xFF) << 56); x6 = ((long) in[offset++] & 0xFF) | ((long) (in[offset++] & 0xFF) << 8) | ((long) (in[offset++] & 0xFF) << 16) | ((long) (in[offset++] & 0xFF) << 24) | ((long) (in[offset++] & 0xFF) << 32) | ((long) (in[offset++] & 0xFF) << 40) | ((long) (in[offset++] & 0xFF) << 48) | ((long) (in[offset++] & 0xFF) << 56); x7 = ((long) in[offset++] & 0xFF) | ((long) (in[offset++] & 0xFF) << 8) | ((long) (in[offset++] & 0xFF) << 16) | ((long) (in[offset++] & 0xFF) << 24) | ((long) (in[offset++] & 0xFF) << 32) | ((long) (in[offset++] & 0xFF) << 40) | ((long) (in[offset++] & 0xFF) << 48) | ((long) (in[offset] & 0xFF) << 56); // save_abc ::= long aa = a, bb = b, cc = c; // pass(aa, bb, cc, 5) ::= cc ^= x0; aa -= T1[(int) cc & 0xff] ^ T2[(int) (cc >> 16) & 0xff] ^ T3[(int) (cc >> 32) & 0xff] ^ T4[(int) (cc >> 48) & 0xff]; bb += T4[(int) (cc >> 8) & 0xff] ^ T3[(int) (cc >> 24) & 0xff] ^ T2[(int) (cc >> 40) & 0xff] ^ T1[(int) (cc >> 56) & 0xff]; bb *= 5; aa ^= x1; bb -= T1[(int) aa & 0xff] ^ T2[(int) (aa >> 16) & 0xff] ^ T3[(int) (aa >> 32) & 0xff] ^ T4[(int) (aa >> 48) & 0xff]; cc += T4[(int) (aa >> 8) & 0xff] ^ T3[(int) (aa >> 24) & 0xff] ^ T2[(int) (aa >> 40) & 0xff] ^ T1[(int) (aa >> 56) & 0xff]; cc *= 5; bb ^= x2; cc -= T1[(int) bb & 0xff] ^ T2[(int) (bb >> 16) & 0xff] ^ T3[(int) (bb >> 32) & 0xff] ^ T4[(int) (bb >> 48) & 0xff]; aa += T4[(int) (bb >> 8) & 0xff] ^ T3[(int) (bb >> 24) & 0xff] ^ T2[(int) (bb >> 40) & 0xff] ^ T1[(int) (bb >> 56) & 0xff]; aa *= 5; cc ^= x3; aa -= T1[(int) cc & 0xff] ^ T2[(int) (cc >> 16) & 0xff] ^ T3[(int) (cc >> 32) & 0xff] ^ T4[(int) (cc >> 48) & 0xff]; bb += T4[(int) (cc >> 8) & 0xff] ^ T3[(int) (cc >> 24) & 0xff] ^ T2[(int) (cc >> 40) & 0xff] ^ T1[(int) (cc >> 56) & 0xff]; bb *= 5; aa ^= x4; bb -= T1[(int) aa & 0xff] ^ T2[(int) (aa >> 16) & 0xff] ^ T3[(int) (aa >> 32) & 0xff] ^ T4[(int) (aa >> 48) & 0xff]; cc += T4[(int) (aa >> 8) & 0xff] ^ T3[(int) (aa >> 24) & 0xff] ^ T2[(int) (aa >> 40) & 0xff] ^ T1[(int) (aa >> 56) & 0xff]; cc *= 5; bb ^= x5; cc -= T1[(int) bb & 0xff] ^ T2[(int) (bb >> 16) & 0xff] ^ T3[(int) (bb >> 32) & 0xff] ^ T4[(int) (bb >> 48) & 0xff]; aa += T4[(int) (bb >> 8) & 0xff] ^ T3[(int) (bb >> 24) & 0xff] ^ T2[(int) (bb >> 40) & 0xff] ^ T1[(int) (bb >> 56) & 0xff]; aa *= 5; cc ^= x6; aa -= T1[(int) cc & 0xff] ^ T2[(int) (cc >> 16) & 0xff] ^ T3[(int) (cc >> 32) & 0xff] ^ T4[(int) (cc >> 48) & 0xff]; bb += T4[(int) (cc >> 8) & 0xff] ^ T3[(int) (cc >> 24) & 0xff] ^ T2[(int) (cc >> 40) & 0xff] ^ T1[(int) (cc >> 56) & 0xff]; bb *= 5; aa ^= x7; bb -= T1[(int) aa & 0xff] ^ T2[(int) (aa >> 16) & 0xff] ^ T3[(int) (aa >> 32) & 0xff] ^ T4[(int) (aa >> 48) & 0xff]; cc += T4[(int) (aa >> 8) & 0xff] ^ T3[(int) (aa >> 24) & 0xff] ^ T2[(int) (aa >> 40) & 0xff] ^ T1[(int) (aa >> 56) & 0xff]; cc *= 5; // key_schedule ::= x0 -= x7 ^ 0xA5A5A5A5A5A5A5A5L; x1 ^= x0; x2 += x1; x3 -= x2 ^ ((~x1) << 19); x4 ^= x3; x5 += x4; x6 -= x5 ^ ((~x4) >>> 23); x7 ^= x6; x0 += x7; x1 -= x0 ^ ((~x7) << 19); x2 ^= x1; x3 += x2; x4 -= x3 ^ ((~x2) >>> 23); x5 ^= x4; x6 += x5; x7 -= x6 ^ 0x0123456789ABCDEFL; // pass(cc, aa, bb, 7) ::= bb ^= x0; cc -= T1[(int) bb & 0xff] ^ T2[(int) (bb >> 16) & 0xff] ^ T3[(int) (bb >> 32) & 0xff] ^ T4[(int) (bb >> 48) & 0xff]; aa += T4[(int) (bb >> 8) & 0xff] ^ T3[(int) (bb >> 24) & 0xff] ^ T2[(int) (bb >> 40) & 0xff] ^ T1[(int) (bb >> 56) & 0xff]; aa *= 7; cc ^= x1; aa -= T1[(int) cc & 0xff] ^ T2[(int) (cc >> 16) & 0xff] ^ T3[(int) (cc >> 32) & 0xff] ^ T4[(int) (cc >> 48) & 0xff]; bb += T4[(int) (cc >> 8) & 0xff] ^ T3[(int) (cc >> 24) & 0xff] ^ T2[(int) (cc >> 40) & 0xff] ^ T1[(int) (cc >> 56) & 0xff]; bb *= 7; aa ^= x2; bb -= T1[(int) aa & 0xff] ^ T2[(int) (aa >> 16) & 0xff] ^ T3[(int) (aa >> 32) & 0xff] ^ T4[(int) (aa >> 48) & 0xff]; cc += T4[(int) (aa >> 8) & 0xff] ^ T3[(int) (aa >> 24) & 0xff] ^ T2[(int) (aa >> 40) & 0xff] ^ T1[(int) (aa >> 56) & 0xff]; cc *= 7; bb ^= x3; cc -= T1[(int) bb & 0xff] ^ T2[(int) (bb >> 16) & 0xff] ^ T3[(int) (bb >> 32) & 0xff] ^ T4[(int) (bb >> 48) & 0xff]; aa += T4[(int) (bb >> 8) & 0xff] ^ T3[(int) (bb >> 24) & 0xff] ^ T2[(int) (bb >> 40) & 0xff] ^ T1[(int) (bb >> 56) & 0xff]; aa *= 7; cc ^= x4; aa -= T1[(int) cc & 0xff] ^ T2[(int) (cc >> 16) & 0xff] ^ T3[(int) (cc >> 32) & 0xff] ^ T4[(int) (cc >> 48) & 0xff]; bb += T4[(int) (cc >> 8) & 0xff] ^ T3[(int) (cc >> 24) & 0xff] ^ T2[(int) (cc >> 40) & 0xff] ^ T1[(int) (cc >> 56) & 0xff]; bb *= 7; aa ^= x5; bb -= T1[(int) aa & 0xff] ^ T2[(int) (aa >> 16) & 0xff] ^ T3[(int) (aa >> 32) & 0xff] ^ T4[(int) (aa >> 48) & 0xff]; cc += T4[(int) (aa >> 8) & 0xff] ^ T3[(int) (aa >> 24) & 0xff] ^ T2[(int) (aa >> 40) & 0xff] ^ T1[(int) (aa >> 56) & 0xff]; cc *= 7; bb ^= x6; cc -= T1[(int) bb & 0xff] ^ T2[(int) (bb >> 16) & 0xff] ^ T3[(int) (bb >> 32) & 0xff] ^ T4[(int) (bb >> 48) & 0xff]; aa += T4[(int) (bb >> 8) & 0xff] ^ T3[(int) (bb >> 24) & 0xff] ^ T2[(int) (bb >> 40) & 0xff] ^ T1[(int) (bb >> 56) & 0xff]; aa *= 7; cc ^= x7; aa -= T1[(int) cc & 0xff] ^ T2[(int) (cc >> 16) & 0xff] ^ T3[(int) (cc >> 32) & 0xff] ^ T4[(int) (cc >> 48) & 0xff]; bb += T4[(int) (cc >> 8) & 0xff] ^ T3[(int) (cc >> 24) & 0xff] ^ T2[(int) (cc >> 40) & 0xff] ^ T1[(int) (cc >> 56) & 0xff]; bb *= 7; // key_schedule ::= x0 -= x7 ^ 0xA5A5A5A5A5A5A5A5L; x1 ^= x0; x2 += x1; x3 -= x2 ^ ((~x1) << 19); x4 ^= x3; x5 += x4; x6 -= x5 ^ ((~x4) >>> 23); x7 ^= x6; x0 += x7; x1 -= x0 ^ ((~x7) << 19); x2 ^= x1; x3 += x2; x4 -= x3 ^ ((~x2) >>> 23); x5 ^= x4; x6 += x5; x7 -= x6 ^ 0x0123456789ABCDEFL; // pass(bb,cc,aa,9) ::= aa ^= x0; bb -= T1[(int) aa & 0xff] ^ T2[(int) (aa >> 16) & 0xff] ^ T3[(int) (aa >> 32) & 0xff] ^ T4[(int) (aa >> 48) & 0xff]; cc += T4[(int) (aa >> 8) & 0xff] ^ T3[(int) (aa >> 24) & 0xff] ^ T2[(int) (aa >> 40) & 0xff] ^ T1[(int) (aa >> 56) & 0xff]; cc *= 9; bb ^= x1; cc -= T1[(int) bb & 0xff] ^ T2[(int) (bb >> 16) & 0xff] ^ T3[(int) (bb >> 32) & 0xff] ^ T4[(int) (bb >> 48) & 0xff]; aa += T4[(int) (bb >> 8) & 0xff] ^ T3[(int) (bb >> 24) & 0xff] ^ T2[(int) (bb >> 40) & 0xff] ^ T1[(int) (bb >> 56) & 0xff]; aa *= 9; cc ^= x2; aa -= T1[(int) cc & 0xff] ^ T2[(int) (cc >> 16) & 0xff] ^ T3[(int) (cc >> 32) & 0xff] ^ T4[(int) (cc >> 48) & 0xff]; bb += T4[(int) (cc >> 8) & 0xff] ^ T3[(int) (cc >> 24) & 0xff] ^ T2[(int) (cc >> 40) & 0xff] ^ T1[(int) (cc >> 56) & 0xff]; bb *= 9; aa ^= x3; bb -= T1[(int) aa & 0xff] ^ T2[(int) (aa >> 16) & 0xff] ^ T3[(int) (aa >> 32) & 0xff] ^ T4[(int) (aa >> 48) & 0xff]; cc += T4[(int) (aa >> 8) & 0xff] ^ T3[(int) (aa >> 24) & 0xff] ^ T2[(int) (aa >> 40) & 0xff] ^ T1[(int) (aa >> 56) & 0xff]; cc *= 9; bb ^= x4; cc -= T1[(int) bb & 0xff] ^ T2[(int) (bb >> 16) & 0xff] ^ T3[(int) (bb >> 32) & 0xff] ^ T4[(int) (bb >> 48) & 0xff]; aa += T4[(int) (bb >> 8) & 0xff] ^ T3[(int) (bb >> 24) & 0xff] ^ T2[(int) (bb >> 40) & 0xff] ^ T1[(int) (bb >> 56) & 0xff]; aa *= 9; cc ^= x5; aa -= T1[(int) cc & 0xff] ^ T2[(int) (cc >> 16) & 0xff] ^ T3[(int) (cc >> 32) & 0xff] ^ T4[(int) (cc >> 48) & 0xff]; bb += T4[(int) (cc >> 8) & 0xff] ^ T3[(int) (cc >> 24) & 0xff] ^ T2[(int) (cc >> 40) & 0xff] ^ T1[(int) (cc >> 56) & 0xff]; bb *= 9; aa ^= x6; bb -= T1[(int) aa & 0xff] ^ T2[(int) (aa >> 16) & 0xff] ^ T3[(int) (aa >> 32) & 0xff] ^ T4[(int) (aa >> 48) & 0xff]; cc += T4[(int) (aa >> 8) & 0xff] ^ T3[(int) (aa >> 24) & 0xff] ^ T2[(int) (aa >> 40) & 0xff] ^ T1[(int) (aa >> 56) & 0xff]; cc *= 9; bb ^= x7; cc -= T1[(int) bb & 0xff] ^ T2[(int) (bb >> 16) & 0xff] ^ T3[(int) (bb >> 32) & 0xff] ^ T4[(int) (bb >> 48) & 0xff]; aa += T4[(int) (bb >> 8) & 0xff] ^ T3[(int) (bb >> 24) & 0xff] ^ T2[(int) (bb >> 40) & 0xff] ^ T1[(int) (bb >> 56) & 0xff]; aa *= 9; // feedforward ::= a ^= aa; b = bb - b; c += cc; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2b9abb5a0b9bbcfe80809713d541a098ef473321/Tiger.java/clean/core/src/classpath/gnu/gnu/java/security/hash/Tiger.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 6459, 6547, 12, 7229, 8526, 267, 16, 474, 3348, 15329, 5748, 92, 20, 16, 92, 21, 16, 92, 22, 16, 92, 23, 16, 92, 24, 16, 92, 25, 16, 92, 26, 16, 92, 27, 31, 92, 20, 33, 12443, 5748, 13, 267, 63, 3348, 9904, 65, 10, 20, 6356, 14047, 12443, 5748, 21433, 267, 63, 3348, 9904, 65, 10, 20, 6356, 13, 17685, 28, 14047, 12443, 5748, 21433, 267, 63, 3348, 9904, 65, 10, 20, 6356, 13, 17685, 2313, 14047, 12443, 5748, 21433, 267, 63, 3348, 9904, 65, 10, 20, 6356, 13, 17685, 3247, 14047, 12443, 5748, 21433, 267, 63, 3348, 9904, 65, 10, 20, 6356, 13, 17685, 1578, 14047, 12443, 5748, 21433, 267, 63, 3348, 9904, 65, 10, 20, 6356, 13, 17685, 7132, 14047, 12443, 5748, 21433, 267, 63, 3348, 9904, 65, 10, 20, 6356, 13, 17685, 8875, 14047, 12443, 5748, 21433, 267, 63, 3348, 9904, 65, 10, 20, 6356, 13, 17685, 4313, 1769, 92, 21, 33, 12443, 5748, 13, 267, 63, 3348, 9904, 65, 10, 20, 6356, 14047, 12443, 5748, 21433, 267, 63, 3348, 9904, 65, 10, 20, 6356, 13, 17685, 28, 14047, 12443, 5748, 21433, 267, 63, 3348, 9904, 65, 10, 20, 6356, 13, 17685, 2313, 14047, 12443, 5748, 21433, 267, 63, 3348, 9904, 65, 10, 20, 6356, 13, 17685, 3247, 14047, 12443, 5748, 21433, 267, 63, 3348, 9904, 65, 10, 20, 6356, 13, 17685, 1578, 14047, 12443, 5748, 21433, 267, 63, 3348, 9904, 65, 10, 20, 6356, 13, 17685, 7132, 14047, 12443, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 6459, 6547, 12, 7229, 8526, 267, 16, 474, 3348, 15329, 5748, 92, 20, 16, 92, 21, 16, 92, 22, 16, 92, 23, 16, 92, 24, 16, 92, 25, 16, 92, 26, 16, 92, 27, 31, 92, 20, 33, 12443, 5748, 13, 267, 63, 3348, 9904, 65, 10, 20, 6356, 14047, 12443, 5748, 21433, 267, 63, 3348, 9904, 65, 10, 20, 6356, 13, 17685, 28, 14047, 12443, 5748, 21433, 267, 63, 3348, 9904, 65, 10, 20, 6356, 13, 17685, 2313, 14047, 12443, 5748, 21433, 267, 63, 3348, 9904, 65, 10, 20, 6356, 13, 17685, 3247, 14047, 12443, 5748, 21433, 267, 63, 3348, 9904, 65, 10, 20, 6356, 13, 17685, 1578, 14047, 12443, 5748, 21433, 267, 63, 3348, 9904, 65, 2 ]
return (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.CONTIGUOUS_TREE_SELECTION);
return (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.CONTIGUOUS_TREE_SELECTION);
protected boolean isMultiSelectEvent(MouseEvent event) { return (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.CONTIGUOUS_TREE_SELECTION); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/5a6e198e29bad075f4b83d92a28f89fd2d24757d/BasicTreeUI.java/clean/javax/swing/plaf/basic/BasicTreeUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1250, 25129, 3391, 1133, 12, 9186, 1133, 871, 13, 225, 288, 565, 327, 261, 3413, 18, 588, 6233, 1488, 7675, 588, 6233, 2309, 1435, 422, 4202, 4902, 6233, 1488, 18, 6067, 3047, 57, 21667, 67, 26557, 67, 1090, 15445, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1250, 25129, 3391, 1133, 12, 9186, 1133, 871, 13, 225, 288, 565, 327, 261, 3413, 18, 588, 6233, 1488, 7675, 588, 6233, 2309, 1435, 422, 4202, 4902, 6233, 1488, 18, 6067, 3047, 57, 21667, 67, 26557, 67, 1090, 15445, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void testShouldIncludeWhenPatternMatchesDependencyTrailAndTransitivityIsEnabled(boolean reverse) { String groupId = "group"; String artifactId = "artifact"; String depTrailItem = "otherGroup:otherArtifact"; List depTrail = Collections.singletonList( depTrailItem ); ArtifactMockAndControl mac = new ArtifactMockAndControl( groupId, artifactId, depTrail ); mockManager.replayAll(); ArtifactFilter filter = createFilter( depTrail, true ); if ( reverse ) { assertFalse( filter.include( mac.artifact ) ); } else { assertTrue( filter.include( mac.artifact ) ); } mockManager.verifyAll(); }
7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/70d891a8e6f332fc2ed44b13fa0bcdf93310c57f/AssemblyArtifactFilterTCK.java/buggy/maven-assembly-plugin/src/test/java/org/apache/maven/plugin/assembly/filter/AssemblyArtifactFilterTCK.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 14309, 8752, 9434, 3234, 6869, 7787, 18107, 1876, 1429, 20862, 2520, 1526, 12, 6494, 4219, 13, 565, 288, 3639, 514, 6612, 273, 315, 1655, 14432, 3639, 514, 25496, 273, 315, 17706, 14432, 7734, 514, 5993, 18107, 1180, 273, 315, 3011, 1114, 30, 3011, 7581, 14432, 3639, 987, 5993, 18107, 273, 5737, 18, 24487, 682, 12, 5993, 18107, 1180, 11272, 7734, 14022, 9865, 1876, 3367, 5318, 273, 394, 14022, 9865, 1876, 3367, 12, 6612, 16, 25496, 16, 5993, 18107, 11272, 7734, 5416, 1318, 18, 266, 1601, 1595, 5621, 7734, 14022, 1586, 1034, 273, 752, 1586, 12, 5993, 18107, 16, 638, 11272, 3639, 309, 261, 4219, 262, 3639, 288, 5411, 1815, 8381, 12, 1034, 18, 6702, 12, 5318, 18, 17706, 262, 11272, 3639, 289, 3639, 469, 3639, 288, 5411, 1815, 5510, 12, 1034, 18, 6702, 12, 5318, 18, 17706, 262, 11272, 3639, 289, 7734, 5416, 1318, 18, 8705, 1595, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 1842, 14309, 8752, 9434, 3234, 6869, 7787, 18107, 1876, 1429, 20862, 2520, 1526, 12, 6494, 4219, 13, 565, 288, 3639, 514, 6612, 273, 315, 1655, 14432, 3639, 514, 25496, 273, 315, 17706, 14432, 7734, 514, 5993, 18107, 1180, 273, 315, 3011, 1114, 30, 3011, 7581, 14432, 3639, 987, 5993, 18107, 273, 5737, 18, 24487, 682, 12, 5993, 18107, 1180, 11272, 7734, 14022, 9865, 1876, 3367, 5318, 273, 394, 14022, 9865, 1876, 3367, 12, 6612, 16, 25496, 16, 5993, 18107, 11272, 7734, 5416, 1318, 18, 266, 1601, 1595, 5621, 7734, 14022, 1586, 1034, 273, 752, 1586, 12, 5993, 18107, 16, 638, 11272, 3639, 309, 261, 4219, 262, 3639, 288, 5411, 1815, 8381, 12, 1034, 18, 6702, 12, 2 ]
{ return true; }
{ return true; }
public boolean nullsAreSortedAtEnd() throws SQLException { return true; }
49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/6a061da272f04e1463864065f87f1f3fd61d6162/DatabaseMetaData.java/buggy/src/interfaces/jdbc/postgresql/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 27778, 4704, 11739, 861, 1638, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 638, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1250, 27778, 4704, 11739, 861, 1638, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 638, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
assert refSig.charAt(0) == 'L';
public static String getComponentClass(String refSig) { while (refSig.charAt(0) == '[') refSig = refSig.substring(1); assert refSig.charAt(0) == 'L'; //TODO: This method now returns primitive type signatures, is this ok? if (refSig.charAt(0) == 'L') return refSig.substring(1, refSig.length() - 1).replace('/', '.'); return refSig; }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/9017098c704459ec11d04de4839983a2db176738/Analyze.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/Analyze.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 10322, 797, 12, 780, 1278, 8267, 13, 288, 202, 202, 17523, 261, 1734, 8267, 18, 3001, 861, 12, 20, 13, 422, 8375, 13, 1082, 202, 1734, 8267, 273, 1278, 8267, 18, 28023, 12, 21, 1769, 202, 202, 11231, 1278, 8267, 18, 3001, 861, 12, 20, 13, 422, 296, 48, 13506, 9506, 202, 759, 6241, 30, 1220, 707, 2037, 1135, 8225, 618, 14862, 16, 353, 333, 1529, 35, 202, 202, 430, 261, 1734, 8267, 18, 3001, 861, 12, 20, 13, 422, 296, 48, 6134, 1082, 202, 2463, 1278, 8267, 18, 28023, 12, 21, 16, 1278, 8267, 18, 2469, 1435, 300, 404, 2934, 2079, 2668, 19, 2187, 2611, 1769, 202, 202, 2463, 1278, 8267, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 514, 10322, 797, 12, 780, 1278, 8267, 13, 288, 202, 202, 17523, 261, 1734, 8267, 18, 3001, 861, 12, 20, 13, 422, 8375, 13, 1082, 202, 1734, 8267, 273, 1278, 8267, 18, 28023, 12, 21, 1769, 202, 202, 11231, 1278, 8267, 18, 3001, 861, 12, 20, 13, 422, 296, 48, 13506, 9506, 202, 759, 6241, 30, 1220, 707, 2037, 1135, 8225, 618, 14862, 16, 353, 333, 1529, 35, 202, 202, 430, 261, 1734, 8267, 18, 3001, 861, 12, 20, 13, 422, 296, 48, 6134, 1082, 202, 2463, 1278, 8267, 18, 28023, 12, 21, 16, 1278, 8267, 18, 2469, 1435, 300, 404, 2934, 2079, 2668, 19, 2187, 2611, 1769, 202, 202, 2463, 1278, 8267, 31, 202, 2 ]
int index = table.rowAtPoint(e.getPoint()); table.getSelectionModel().setSelectionInterval(index, index);
final Point p = e.getPoint(); int index = tree.getRowForLocation(p.x, p.y); tree.setSelectionRow(index);
public void mouseMoved(MouseEvent e) { int index = table.rowAtPoint(e.getPoint()); table.getSelectionModel().setSelectionInterval(index, index); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/0f8cefb78ccd4dcc13fcf4986a104dd13655e564/PopupChooserBuilder.java/clean/ui/openapi/com/intellij/openapi/ui/popup/PopupChooserBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 7644, 25317, 12, 9186, 1133, 425, 13, 288, 3639, 509, 770, 273, 1014, 18, 492, 861, 2148, 12, 73, 18, 588, 2148, 10663, 3639, 1014, 18, 588, 6233, 1488, 7675, 542, 6233, 4006, 12, 1615, 16, 770, 1769, 1377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4202, 1071, 918, 7644, 25317, 12, 9186, 1133, 425, 13, 288, 3639, 509, 770, 273, 1014, 18, 492, 861, 2148, 12, 73, 18, 588, 2148, 10663, 3639, 1014, 18, 588, 6233, 1488, 7675, 542, 6233, 4006, 12, 1615, 16, 770, 1769, 1377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public Collection<DesignElementDataVector> getDesignElementDataVectors( ExpressionExperiment ee, ArrayDesign ad ) { Collection<BioAssay> bioAssays = ee.getBioAssays(); BioAssayDimension baDim = BioAssayDimension.Factory.newInstance( RandomStringUtils.randomAlphanumeric( 20 ), null, bioAssays, null ); baDim = ( BioAssayDimension ) persisterHelper.persist( baDim ); Collection<DesignElementDataVector> vectors = new HashSet<DesignElementDataVector>(); for ( int quantitationTypeNum = 0; quantitationTypeNum < NUM_QUANTITATION_TYPES; quantitationTypeNum++ ) { QuantitationType quantType = this.getTestPersistentQuantitationType(); for ( CompositeSequence cs : ad.getCompositeSequences() ) { DesignElementDataVector vector = DesignElementDataVector.Factory.newInstance(); double[] data = new double[TEST_ELEMENT_COLLECTION_SIZE / 2]; for ( int j = 0; j < data.length; j++ ) { data[j] = RandomUtils.nextDouble(); } ByteArrayConverter bconverter = new ByteArrayConverter(); byte[] bdata = bconverter.doubleArrayToBytes( data ); vector.setData( bdata ); vector.setDesignElement( cs ); assert cs.getArrayDesign() != null; vector.setExpressionExperiment( ee ); vector.setQuantitationType( quantType ); vector.setBioAssayDimension( baDim ); // we're only creating one vector here, but each design element can have more than one. vectors.add( vector ); cs.setDesignElementDataVectors( vectors ); } } return vectors; }
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/82a1ed0400a9de452efb22e2448075ab0d016ef4/TestPersistentObjectHelper.java/buggy/gemma-testing/src/main/java/ubic/gemma/testing/TestPersistentObjectHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 2200, 32, 15478, 1046, 751, 5018, 34, 2343, 281, 724, 1046, 751, 21680, 12, 5371, 22338, 14657, 16, 1510, 15478, 1261, 262, 288, 2532, 32, 38, 1594, 2610, 528, 34, 25091, 2610, 8271, 273, 14657, 18, 588, 38, 1594, 2610, 8271, 5621, 38, 1594, 2610, 528, 8611, 9846, 5225, 273, 21209, 2610, 528, 8611, 18, 1733, 18, 2704, 1442, 12, 8072, 780, 1989, 18, 9188, 1067, 21183, 12, 4200, 262, 16, 2011, 16, 25091, 2610, 8271, 16, 446, 11272, 12124, 5225, 273, 261, 21209, 2610, 528, 8611, 262, 23861, 2276, 18, 19251, 12, 9846, 5225, 11272, 2532, 32, 15478, 1046, 751, 5018, 34, 10046, 273, 394, 6847, 32, 15478, 1046, 751, 5018, 34, 5621, 1884, 261, 509, 10251, 8773, 559, 2578, 273, 374, 31, 10251, 8773, 559, 2578, 411, 9443, 67, 3500, 6856, 1285, 2689, 67, 10564, 31, 10251, 8773, 559, 2578, 9904, 262, 288, 19471, 8773, 559, 10251, 559, 273, 333, 18, 588, 4709, 11906, 19471, 8773, 559, 5621, 1884, 261, 14728, 4021, 2873, 294, 1261, 18, 588, 9400, 21710, 1435, 262, 288, 15478, 1046, 751, 5018, 3806, 273, 29703, 1046, 751, 5018, 18, 1733, 18, 2704, 1442, 5621, 9056, 8526, 501, 273, 394, 1645, 63, 16961, 67, 10976, 67, 25964, 67, 4574, 342, 576, 15533, 1884, 261, 509, 525, 273, 374, 31, 525, 411, 501, 18, 2469, 31, 525, 9904, 262, 288, 892, 63, 78, 65, 273, 8072, 1989, 18, 4285, 5265, 5621, 97, 8826, 5072, 324, 15747, 273, 394, 7964, 5072, 5621, 7229, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2200, 32, 15478, 1046, 751, 5018, 34, 2343, 281, 724, 1046, 751, 21680, 12, 5371, 22338, 14657, 16, 1510, 15478, 1261, 262, 288, 2532, 32, 38, 1594, 2610, 528, 34, 25091, 2610, 8271, 273, 14657, 18, 588, 38, 1594, 2610, 8271, 5621, 38, 1594, 2610, 528, 8611, 9846, 5225, 273, 21209, 2610, 528, 8611, 18, 1733, 18, 2704, 1442, 12, 8072, 780, 1989, 18, 9188, 1067, 21183, 12, 4200, 262, 16, 2011, 16, 25091, 2610, 8271, 16, 446, 11272, 12124, 5225, 273, 261, 21209, 2610, 528, 8611, 262, 23861, 2276, 18, 19251, 12, 9846, 5225, 11272, 2532, 32, 15478, 1046, 751, 5018, 34, 10046, 273, 394, 6847, 32, 15478, 1046, 751, 5018, 34, 5621, 1884, 261, 509, 10251, 2 ]
Assert.isNotNull(element, ProgressMessages .getString("DeferredTreeContentManager.NotDeferred"));
Assert.isNotNull(element, ProgressMessages.DeferredTreeContentManager_NotDeferred);
public boolean mayHaveChildren(Object element) { Assert.isNotNull(element, ProgressMessages .getString("DeferredTreeContentManager.NotDeferred")); //$NON-NLS-1$ IDeferredWorkbenchAdapter adapter = getAdapter(element); return adapter != null && adapter.isContainer(); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d1f57eedfde1eb6ec283238a9b740df16a329c68/DeferredTreeContentManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/progress/DeferredTreeContentManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 2026, 17944, 4212, 12, 921, 930, 13, 288, 377, 202, 8213, 18, 291, 5962, 12, 2956, 16, 10980, 5058, 7734, 263, 588, 780, 2932, 16886, 2471, 1350, 1318, 18, 1248, 16886, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 467, 16886, 2421, 22144, 4216, 4516, 273, 16679, 12, 2956, 1769, 3639, 327, 4516, 480, 446, 597, 4516, 18, 291, 2170, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 2026, 17944, 4212, 12, 921, 930, 13, 288, 377, 202, 8213, 18, 291, 5962, 12, 2956, 16, 10980, 5058, 7734, 263, 588, 780, 2932, 16886, 2471, 1350, 1318, 18, 1248, 16886, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 467, 16886, 2421, 22144, 4216, 4516, 273, 16679, 12, 2956, 1769, 3639, 327, 4516, 480, 446, 597, 4516, 18, 291, 2170, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
deleteWorkflow(graph.getDescriptor().getName());
graphTabs.removeGraph(graph);
public void closeCurrentWorkflow() { WorkflowGraph graph = graphTabs.getCurrentGraph(); if(graph != null) { deleteWorkflow(graph.getDescriptor().getName()); } //graphTabs.removeGraph(graphTabs.getCurrentGraph()); }
7621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7621/e160e8d061d194e19249b1d32f15b45058e5047e/WorkflowDesigner.java/clean/src/designer/com/opensymphony/workflow/designer/WorkflowDesigner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1746, 3935, 8484, 1435, 225, 288, 565, 11363, 4137, 2667, 273, 2667, 17348, 18, 588, 3935, 4137, 5621, 565, 309, 12, 4660, 480, 446, 13, 565, 288, 1377, 2667, 17348, 18, 4479, 4137, 12, 4660, 1769, 565, 289, 565, 368, 4660, 17348, 18, 4479, 4137, 12, 4660, 17348, 18, 588, 3935, 4137, 10663, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1746, 3935, 8484, 1435, 225, 288, 565, 11363, 4137, 2667, 273, 2667, 17348, 18, 588, 3935, 4137, 5621, 565, 309, 12, 4660, 480, 446, 13, 565, 288, 1377, 2667, 17348, 18, 4479, 4137, 12, 4660, 1769, 565, 289, 565, 368, 4660, 17348, 18, 4479, 4137, 12, 4660, 17348, 18, 588, 3935, 4137, 10663, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
throw new SQLException(pg_stream.ReceiveString(getEncoding()));
throw new SQLException(pg_stream.ReceiveString(encoding));
protected void openConnection(String host, int port, Properties info, String database, String url, Driver d) throws SQLException { // Throw an exception if the user or password properties are missing // This occasionally occurs when the client uses the properties version // of getConnection(), and is a common question on the email lists if(info.getProperty("user")==null) throw new PSQLException("postgresql.con.user"); if(info.getProperty("password")==null) throw new PSQLException("postgresql.con.pass"); this_driver = d; this_url = url; PG_DATABASE = database; PG_PASSWORD = info.getProperty("password"); PG_USER = info.getProperty("user"); PG_PORT = port; PG_HOST = host; PG_STATUS = CONNECTION_BAD; // Now make the initial connection try { pg_stream = new PG_Stream(host, port); } catch (ConnectException cex) { // Added by Peter Mount <peter@retep.org.uk> // ConnectException is thrown when the connection cannot be made. // we trap this an return a more meaningful message for the end user throw new PSQLException ("postgresql.con.refused"); } catch (IOException e) { throw new PSQLException ("postgresql.con.failed",e); } // Now we need to construct and send a startup packet try { // Ver 6.3 code pg_stream.SendInteger(4+4+SM_DATABASE+SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY,4); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MAJOR,2); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MINOR,2); pg_stream.Send(database.getBytes(),SM_DATABASE); // This last send includes the unused fields pg_stream.Send(PG_USER.getBytes(),SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY); // now flush the startup packets to the backend pg_stream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new SQLException(pg_stream.ReceiveString(getEncoding())); case 'R': // Get the type of request areq = pg_stream.ReceiveIntegerR(4); // Get the password salt if there is one if(areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pg_stream.ReceiveChar(); rst[1] = (byte)pg_stream.ReceiveChar(); salt = new String(rst,0,2); DriverManager.println("Salt="+salt); } // now send the auth packet switch(areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: DriverManager.println("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4"); case AUTH_REQ_KRB5: DriverManager.println("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5"); case AUTH_REQ_PASSWORD: DriverManager.println("postgresql: PASSWORD"); pg_stream.SendInteger(5+PG_PASSWORD.length(),4); pg_stream.Send(PG_PASSWORD.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; case AUTH_REQ_CRYPT: DriverManager.println("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt,PG_PASSWORD); pg_stream.SendInteger(5+crypted.length(),4); pg_stream.Send(crypted.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; default: throw new PSQLException("postgresql.con.auth",new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail"); } } while(areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed",e); } // As of protocol version 2.0, we should now receive the cancellation key and the pid int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'K': pid = pg_stream.ReceiveInteger(4); ckey = pg_stream.ReceiveInteger(4); break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(getEncoding())); default: throw new PSQLException("postgresql.con.setup"); } // Expect ReadyForQuery packet beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'Z': break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(getEncoding())); default: throw new PSQLException("postgresql.con.setup"); } // Originally we issued a SHOW DATESTYLE statement to find the databases default // datestyle. However, this caused some problems with timestamps, so in 6.5, we // went the way of ODBC, and set the connection to ISO. // // This may cause some clients to break when they assume anything other than ISO, // but then - they should be using the proper methods ;-) // // We also ask the DB for certain properties (i.e. DatabaseEncoding at this time) // firstWarning = null; java.sql.ResultSet initrset = ExecSQL("set datestyle to 'ISO'; " + "select case when pg_encoding_to_char(1) = 'SQL_ASCII' then 'UNKNOWN' else getdatabaseencoding() end"); String dbEncoding = null; //retrieve DB properties if(initrset.next()) { //handle DatabaseEncoding dbEncoding = initrset.getString(1); //convert from the PostgreSQL name to the Java name if (dbEncoding.equals("SQL_ASCII")) { dbEncoding = "ASCII"; } else if (dbEncoding.equals("UNICODE")) { dbEncoding = "UTF8"; } else if (dbEncoding.equals("LATIN1")) { dbEncoding = "ISO8859_1"; } else if (dbEncoding.equals("LATIN2")) { dbEncoding = "ISO8859_2"; } else if (dbEncoding.equals("LATIN3")) { dbEncoding = "ISO8859_3"; } else if (dbEncoding.equals("LATIN4")) { dbEncoding = "ISO8859_4"; } else if (dbEncoding.equals("LATIN5")) { dbEncoding = "ISO8859_5"; } else if (dbEncoding.equals("LATIN6")) { dbEncoding = "ISO8859_6"; } else if (dbEncoding.equals("LATIN7")) { dbEncoding = "ISO8859_7"; } else if (dbEncoding.equals("LATIN8")) { dbEncoding = "ISO8859_8"; } else if (dbEncoding.equals("LATIN9")) { dbEncoding = "ISO8859_9"; } else if (dbEncoding.equals("EUC_JP")) { dbEncoding = "EUC_JP"; } else if (dbEncoding.equals("EUC_CN")) { dbEncoding = "EUC_CN"; } else if (dbEncoding.equals("EUC_KR")) { dbEncoding = "EUC_KR"; } else if (dbEncoding.equals("EUC_TW")) { dbEncoding = "EUC_TW"; } else if (dbEncoding.equals("KOI8")) { // try first if KOI8_U is present, it's a superset of KOI8_R try { dbEncoding = "KOI8_U"; "test".getBytes(dbEncoding); } catch(UnsupportedEncodingException uee) { // well, KOI8_U is still not in standard JDK, falling back to KOI8_R :( dbEncoding = "KOI8_R"; } } else if (dbEncoding.equals("WIN")) { dbEncoding = "Cp1252"; } else if (dbEncoding.equals("UNKNOWN")) { //This isn't a multibyte database so we don't have an encoding to use //We leave dbEncoding null which will cause the default encoding for the //JVM to be used dbEncoding = null; } else { dbEncoding = null; } } //Set the encoding for this connection //Since the encoding could be specified or obtained from the DB we use the //following order: // 1. passed as a property // 2. value from DB if supported by current JVM // 3. default for JVM (leave encoding null) String passedEncoding = info.getProperty("charSet"); // could be null if (passedEncoding != null) { encoding = passedEncoding; } else { if (dbEncoding != null) { //test DB encoding try { "TEST".getBytes(dbEncoding); //no error the encoding is supported by the current JVM encoding = dbEncoding; } catch (UnsupportedEncodingException uee) { //dbEncoding is not supported by the current JVM encoding = null; } } else { encoding = null; } } // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup firstWarning = null; PG_STATUS = CONNECTION_OK; }
49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/ff21a8e5c86457e205ff7c598b930efd711cb2dc/Connection.java/clean/src/interfaces/jdbc/org/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24982, 12, 780, 1479, 16, 509, 1756, 16, 6183, 1123, 16, 514, 2063, 16, 514, 880, 16, 9396, 302, 13, 1216, 6483, 565, 288, 565, 368, 3743, 392, 1520, 309, 326, 729, 578, 2201, 1790, 854, 3315, 565, 368, 1220, 9145, 345, 285, 1230, 9938, 1347, 326, 1004, 4692, 326, 1790, 1177, 565, 368, 434, 6742, 9334, 471, 353, 279, 2975, 5073, 603, 326, 2699, 6035, 565, 309, 12, 1376, 18, 588, 1396, 2932, 1355, 7923, 631, 2011, 13, 1377, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 1355, 8863, 565, 309, 12, 1376, 18, 588, 1396, 2932, 3664, 7923, 631, 2011, 13, 1377, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 5466, 8863, 565, 333, 67, 7407, 273, 302, 31, 565, 333, 67, 718, 273, 880, 31, 565, 22116, 67, 22366, 273, 2063, 31, 565, 22116, 67, 13784, 273, 1123, 18, 588, 1396, 2932, 3664, 8863, 565, 22116, 67, 4714, 273, 1123, 18, 588, 1396, 2932, 1355, 8863, 565, 22116, 67, 6354, 273, 1756, 31, 565, 22116, 67, 8908, 273, 1479, 31, 565, 22116, 67, 8608, 273, 20695, 67, 16234, 31, 565, 368, 4494, 1221, 326, 2172, 1459, 565, 775, 1377, 288, 202, 8365, 67, 3256, 273, 394, 22116, 67, 1228, 12, 2564, 16, 1756, 1769, 1377, 289, 1044, 261, 5215, 503, 276, 338, 13, 288, 202, 759, 25808, 635, 453, 847, 13076, 411, 84, 847, 36, 266, 736, 84, 18, 3341, 18, 19445, 34, 202, 759, 8289, 503, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24982, 12, 780, 1479, 16, 509, 1756, 16, 6183, 1123, 16, 514, 2063, 16, 514, 880, 16, 9396, 302, 13, 1216, 6483, 565, 288, 565, 368, 3743, 392, 1520, 309, 326, 729, 578, 2201, 1790, 854, 3315, 565, 368, 1220, 9145, 345, 285, 1230, 9938, 1347, 326, 1004, 4692, 326, 1790, 1177, 565, 368, 434, 6742, 9334, 471, 353, 279, 2975, 5073, 603, 326, 2699, 6035, 565, 309, 12, 1376, 18, 588, 1396, 2932, 1355, 7923, 631, 2011, 13, 1377, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 1355, 8863, 565, 309, 12, 1376, 18, 588, 1396, 2932, 3664, 7923, 631, 2011, 13, 1377, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 2 ]
+ " not of an expected type!",
+ " not of an expected type: " + rootEntry,
private void startUpAppPartitions( String eveWkdir ) throws NamingException { OidRegistry oidRegistry = globalRegistries.getOidRegistry(); AttributeTypeRegistry attributeTypeRegistry; attributeTypeRegistry = globalRegistries.getAttributeTypeRegistry(); MatchingRuleRegistry reg = globalRegistries.getMatchingRuleRegistry(); // start getting all the parameters from the initial environment String[] names = ( ( String ) initialEnv.get( PARTITIONS_ENV ) ).split( " " ); for ( int ii = 0; ii < names.length; ii++ ) { // ---------------------------------------------------------------- // create working directory under eve directory for app partition // ---------------------------------------------------------------- String suffix = ( String ) initialEnv.get( SUFFIX_BASE_ENV + names[ii] ); String wkdir = eveWkdir + File.separator + names[ii]; mkdirs( eveWkdir, names[ii] ); // ---------------------------------------------------------------- // create the database/store // ---------------------------------------------------------------- Name upSuffix = new LdapName( suffix ); Normalizer dnNorm = reg.lookup( "distinguishedNameMatch" ).getNormalizer(); Name normSuffix = new LdapName( ( String ) dnNorm.normalize( suffix ) ); Database db = new JdbmDatabase( upSuffix, wkdir ); // ---------------------------------------------------------------- // create the search engine using db, enumerators and evaluators // ---------------------------------------------------------------- ExpressionEvaluator evaluator; evaluator = new ExpressionEvaluator( db, oidRegistry, attributeTypeRegistry ); ExpressionEnumerator enumerator; enumerator = new ExpressionEnumerator( db, evaluator ); SearchEngine eng = new DefaultSearchEngine( db, evaluator, enumerator ); // ---------------------------------------------------------------- // fill up a list with the AttributeTypes for the system indices // ---------------------------------------------------------------- ArrayList attributeTypeList = new ArrayList(); attributeTypeList.add( attributeTypeRegistry.lookup( SystemPartition.ALIAS_OID ) ); attributeTypeList.add( attributeTypeRegistry.lookup( SystemPartition.EXISTANCE_OID ) ); attributeTypeList.add( attributeTypeRegistry.lookup( SystemPartition.HIERARCHY_OID ) ); attributeTypeList.add( attributeTypeRegistry.lookup( SystemPartition.NDN_OID ) ); attributeTypeList.add( attributeTypeRegistry.lookup( SystemPartition.ONEALIAS_OID ) ); attributeTypeList.add( attributeTypeRegistry.lookup( SystemPartition.SUBALIAS_OID ) ); attributeTypeList.add( attributeTypeRegistry.lookup( SystemPartition.UPDN_OID ) ); // ---------------------------------------------------------------- // if user indices are specified add those attribute types as well // ---------------------------------------------------------------- if ( initialEnv.containsKey( INDICES_BASE_ENV + names[ii] ) ) { String[] indices = ( ( String ) initialEnv.get( INDICES_BASE_ENV + names[ii] ) ).split( " " ); for ( int jj = 0; jj < indices.length; jj++ ) { attributeTypeList.add( attributeTypeRegistry.lookup( indices[jj] ) ); } } // ---------------------------------------------------------------- // fire up the appPartition & register it with the next // ---------------------------------------------------------------- AttributeType[] indexTypes = ( AttributeType[] ) attributeTypeList .toArray( new AttributeType[attributeTypeList.size()] ); ApplicationPartition partition = new ApplicationPartition( upSuffix, normSuffix, db, eng, indexTypes ); nexus.register( partition ); // ---------------------------------------------------------------- // add the nexus context entry // ---------------------------------------------------------------- Attributes rootAttrs; Object rootEntry = initialEnv.get( ATTRIBUTES_BASE_ENV + names[ii] ); if ( rootEntry instanceof String ) { rootAttrs = new LockableAttributesImpl(); String ldif = ( ( String ) rootEntry ).trim().replace( '*', '\n' ); ( new LdifParserImpl() ).parse( rootAttrs, ldif ); } else if ( rootEntry instanceof Attributes ) { rootAttrs = ( Attributes ) rootEntry; } else { throw new EveNamingException( "The root entry env property was" + " not of an expected type!", ResultCodeEnum.OTHER ); } partition.add( suffix, normSuffix, rootAttrs ); } }
17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/6145aec35b0ad76940cdbcdde426044070ab5c89/EveContextFactory.java/clean/jndi-provider/src/java/org/apache/eve/jndi/EveContextFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 787, 1211, 3371, 13738, 12, 514, 425, 537, 59, 12979, 262, 1216, 26890, 565, 288, 3639, 28706, 4243, 7764, 4243, 273, 2552, 1617, 22796, 18, 588, 19105, 4243, 5621, 3639, 26414, 4243, 1566, 559, 4243, 31, 3639, 1566, 559, 4243, 273, 2552, 1617, 22796, 18, 588, 19529, 4243, 5621, 3639, 29349, 2175, 4243, 960, 273, 2552, 1617, 22796, 18, 588, 9517, 2175, 4243, 5621, 3639, 368, 787, 8742, 777, 326, 1472, 628, 326, 2172, 3330, 3639, 514, 8526, 1257, 273, 261, 261, 514, 262, 2172, 3491, 18, 588, 12, 20814, 7022, 55, 67, 11986, 262, 262, 18, 4939, 12, 315, 315, 11272, 3639, 364, 261, 509, 6072, 273, 374, 31, 6072, 411, 1257, 18, 2469, 31, 6072, 9904, 262, 3639, 288, 5411, 368, 13420, 18753, 5411, 368, 752, 5960, 1867, 3613, 425, 537, 1867, 364, 595, 3590, 5411, 368, 13420, 18753, 5411, 514, 3758, 273, 261, 514, 262, 2172, 3491, 18, 588, 12, 11726, 13144, 67, 8369, 67, 11986, 397, 1257, 63, 2835, 65, 11272, 5411, 514, 341, 12979, 273, 425, 537, 59, 12979, 397, 1387, 18, 11287, 397, 1257, 63, 2835, 15533, 5411, 18095, 12, 425, 537, 59, 12979, 16, 1257, 63, 2835, 65, 11272, 5411, 368, 13420, 18753, 5411, 368, 752, 326, 2063, 19, 2233, 5411, 368, 13420, 18753, 5411, 1770, 731, 5791, 273, 394, 18053, 461, 12, 3758, 11272, 5411, 8769, 1824, 8800, 14624, 273, 960, 18, 8664, 12, 315, 4413, 14344, 5992, 461, 2060, 6, 262, 18, 588, 16132, 5621, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 787, 1211, 3371, 13738, 12, 514, 425, 537, 59, 12979, 262, 1216, 26890, 565, 288, 3639, 28706, 4243, 7764, 4243, 273, 2552, 1617, 22796, 18, 588, 19105, 4243, 5621, 3639, 26414, 4243, 1566, 559, 4243, 31, 3639, 1566, 559, 4243, 273, 2552, 1617, 22796, 18, 588, 19529, 4243, 5621, 3639, 29349, 2175, 4243, 960, 273, 2552, 1617, 22796, 18, 588, 9517, 2175, 4243, 5621, 3639, 368, 787, 8742, 777, 326, 1472, 628, 326, 2172, 3330, 3639, 514, 8526, 1257, 273, 261, 261, 514, 262, 2172, 3491, 18, 588, 12, 20814, 7022, 55, 67, 11986, 262, 262, 18, 4939, 12, 315, 315, 11272, 3639, 364, 261, 509, 6072, 273, 374, 31, 6072, 411, 1257, 18, 2469, 31, 2 ]
iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop);
iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop);
private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case TokenStream.FUNCTION : { iCodeTop = addByte((byte) TokenStream.CLOSURE, iCodeTop); Node fn = (Node) node.getProp(Node.FUNCTION_PROP); Short index = (Short) fn.getProp(Node.FUNCTION_PROP); iCodeTop = addByte((byte)(index.shortValue() >> 8), iCodeTop); iCodeTop = addByte((byte)(index.shortValue() & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != TokenStream.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNextSibling(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.LABEL : case TokenStream.WITH : case TokenStream.LOOP : case TokenStream.DEFAULT : case TokenStream.BLOCK : case TokenStream.VOID : case TokenStream.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.COMMA : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); break; case TokenStream.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; /* reminder - below we construct new GOTO nodes that aren't linked into the tree just for the purpose of having a node to pass to the addGoto routine. (Parallels codegen here). Seems unnecessary. */ Vector cases = (Vector) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.elementAt(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.SHEQ, iCodeTop); Node target = new Node(TokenStream.TARGET); thisCase.addChildAfter(target, first); Node branch = new Node(TokenStream.IFEQ); branch.putProp(Node.TARGET_PROP, target); iCodeTop = addGoto(branch, TokenStream.IFEQ, iCodeTop); itsStackDepth--; } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(TokenStream.TARGET); defaultNode.getFirstChild().addChildToFront(defaultTarget); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, defaultTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, breakTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } break; case TokenStream.TARGET : { Object lblObect = node.getProp(Node.LABEL_PROP); if (lblObect == null) { int label = markLabel(acquireLabel(), iCodeTop); node.putProp(Node.LABEL_PROP, new Integer(label)); } else { int label = ((Integer)lblObect).intValue(); markLabel(label, iCodeTop); } // if this target has a FINALLY_PROP, it is a JSR target // and so has a PC value on the top of the stack if (node.getProp(Node.FINALLY_PROP) != null) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.EQOP : case TokenStream.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int op = node.getInt(); if (version == Context.VERSION_1_2) { if (op == TokenStream.EQ) op = TokenStream.SHEQ; else if (op == TokenStream.NE) op = TokenStream.SHNE; } iCodeTop = addByte((byte) op, iCodeTop); itsStackDepth--; } break; case TokenStream.NEW : case TokenStream.CALL : { if (itsSourceFile != null && (itsData.itsSourceFile == null || ! itsSourceFile.equals(itsData.itsSourceFile))) itsData.itsSourceFile = itsSourceFile; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); int childCount = 0; short nameIndex = -1; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (nameIndex == -1) { if (child.getType() == TokenStream.NAME) nameIndex = (short)(itsData.itsStringTableIndex - 1); else if (child.getType() == TokenStream.GETPROP) nameIndex = (short)(itsData.itsStringTableIndex - 1); } child = child.getNextSibling(); childCount++; } if (node.getProp(Node.SPECIALCALL_PROP) != null) { // embed line number and source filename iCodeTop = addByte((byte) TokenStream.CALLSPECIAL, iCodeTop); iCodeTop = addByte((byte)(itsLineNumber >> 8), iCodeTop); iCodeTop = addByte((byte)(itsLineNumber & 0xff), iCodeTop); iCodeTop = addString(itsSourceFile, iCodeTop); } else { iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addByte((byte)(nameIndex >> 8), iCodeTop); iCodeTop = addByte((byte)(nameIndex & 0xFF), iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == TokenStream.NEW) childCount -= 1; else childCount -= 2; iCodeTop = addByte((byte)(childCount >> 8), iCodeTop); iCodeTop = addByte((byte)(childCount & 0xff), iCodeTop); if (childCount > itsData.itsMaxArgs) itsData.itsMaxArgs = childCount; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); } break; case TokenStream.NEWLOCAL : case TokenStream.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); } break; case TokenStream.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) iCodeTop = addByte((byte) TokenStream.RETSUB, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); } break; case TokenStream.USETEMP : { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.IFEQ : case TokenStream.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case TokenStream.GOTO : iCodeTop = addGoto(node, (byte) type, iCodeTop); break; case TokenStream.JSR : { /* mark the target with a FINALLY_PROP to indicate that it will have an incoming PC value on the top of the stack. !!! This only works if the target follows the JSR in the tree. !!! */ Node target = (Node)(node.getProp(Node.TARGET_PROP)); target.putProp(Node.FINALLY_PROP, node); iCodeTop = addGoto(node, TokenStream.GOSUB, iCodeTop); } break; case TokenStream.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseTarget = acquireLabel(); iCodeTop = addGoto(falseTarget, TokenStream.IFNE, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(falseTarget, iCodeTop); } break; case TokenStream.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueTarget = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(trueTarget, iCodeTop); } break; case TokenStream.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.GETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.GETSCOPEPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } } break; case TokenStream.DELPROP : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.ADD : case TokenStream.SUB : case TokenStream.MOD : case TokenStream.DIV : case TokenStream.MUL : case TokenStream.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); else badTree(node); } break; case TokenStream.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getInt()) { case TokenStream.VOID : iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); break; case TokenStream.NOT : { int trueTarget = acquireLabel(); int beyond = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.TRUE, iCodeTop); iCodeTop = addGoto(beyond, TokenStream.GOTO, iCodeTop); markLabel(trueTarget, iCodeTop); iCodeTop = addByte((byte) TokenStream.FALSE, iCodeTop); markLabel(beyond, iCodeTop); } break; case TokenStream.BITNOT : iCodeTop = addByte((byte) TokenStream.BITNOT, iCodeTop); break; case TokenStream.TYPEOF : iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); break; case TokenStream.SUB : iCodeTop = addByte((byte) TokenStream.NEG, iCodeTop); break; case TokenStream.ADD : iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); break; default: badTree(node); break; } break; case TokenStream.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.SETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.SETPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETPROP, iCodeTop); itsStackDepth -= 2; } } break; case TokenStream.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth -= 2; break; case TokenStream.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case TokenStream.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = itsVariableTable.getOrdinal(name); if (index == -1) { iCodeTop = addByte((byte) TokenStream.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte) index, iCodeTop); iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPARENT, iCodeTop); break; case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.NAME : case TokenStream.STRING : iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.INC : case TokenStream.DEC : { int childType = child.getType(); switch (childType) { case TokenStream.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); itsStackDepth--; } else { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC), iCodeTop); int i = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte)i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.GETPROP : case TokenStream.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNextSibling(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == TokenStream.GETPROP) iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); else iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.ELEMINC : TokenStream.ELEMDEC), iCodeTop); itsStackDepth--; } break; default : { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.NAMEINC : TokenStream.NAMEDEC), iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } } break; case TokenStream.NUMBER : { double num = node.getDouble(); if (num == 0.0) { iCodeTop = addByte((byte) TokenStream.ZERO, iCodeTop); } else if (num == 1.0) { iCodeTop = addByte((byte) TokenStream.ONE, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.NUMBER, iCodeTop); iCodeTop = addNumber(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case TokenStream.POP : case TokenStream.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case TokenStream.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.NEWSCOPE : iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.LEAVEWITH : iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.TRY : { itsTryDepth++; if (itsTryDepth > itsData.itsMaxTryDepth) itsData.itsMaxTryDepth = itsTryDepth; Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); if (catchTarget == null) { iCodeTop = addByte((byte) TokenStream.TRY, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); } else iCodeTop = addGoto(node, TokenStream.TRY, iCodeTop); int finallyHandler = 0; if (finallyTarget != null) { finallyHandler = acquireLabel(); int theLabel = finallyHandler & 0x7FFFFFFF; itsLabelTable[theLabel].addFixup(iCodeTop); } iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); Node lastChild = null; /* when we encounter the child of the catchTarget, we set the stackDepth to 1 to account for the incoming exception object. */ boolean insertedEndTry = false; while (child != null) { if (catchTarget != null && lastChild == catchTarget) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } /* When the following child is the catchTarget (or the finallyTarget if there are no catches), the current child is the goto at the end of the try statemets, we need to emit the endtry before that goto. */ Node nextSibling = child.getNextSibling(); if (!insertedEndTry && nextSibling != null && (nextSibling == catchTarget || nextSibling == finallyTarget)) { iCodeTop = addByte((byte) TokenStream.ENDTRY, iCodeTop); insertedEndTry = true; } iCodeTop = generateICode(child, iCodeTop); lastChild = child; child = child.getNextSibling(); } itsStackDepth = 0; if (finallyTarget != null) { // normal flow goes around the finally handler stublet int skippy = acquireLabel(); iCodeTop = addGoto(skippy, TokenStream.GOTO, iCodeTop); // on entry the stack will have the exception object markLabel(finallyHandler, iCodeTop); itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); Integer finallyLabel = (Integer)(finallyTarget.getProp(Node.LABEL_PROP)); iCodeTop = addGoto(finallyLabel.intValue(), TokenStream.GOSUB, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.JTHROW, iCodeTop); itsStackDepth = 0; markLabel(skippy, iCodeTop); } itsTryDepth--; } break; case TokenStream.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.THROW, iCodeTop); itsStackDepth--; break; case TokenStream.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) iCodeTop = generateICode(child, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } iCodeTop = addGoto(node, TokenStream.RETURN, iCodeTop); itsStackDepth--; break; case TokenStream.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } else { int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(TokenStream.BINDNAME); node.setType(TokenStream.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.SETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); } } break; case TokenStream.PRIMARY: iCodeTop = addByte((byte) node.getInt(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case TokenStream.ENUMNEXT : { iCodeTop = addByte((byte) TokenStream.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.ENUMDONE : // could release the local here?? break; case TokenStream.OBJECT : { Node regexp = (Node) node.getProp(Node.REGEXP_PROP); int index = ((Integer)(regexp.getProp( Node.REGEXP_PROP))).intValue(); iCodeTop = addByte((byte) TokenStream.OBJECT, iCodeTop); iCodeTop = addByte((byte)(index >> 8), iCodeTop); iCodeTop = addByte((byte)(index & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; default : badTree(node); break; } return iCodeTop; }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/f6c346cc7699c007b0b9b27d9c3cdb5446052c64/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 2029, 15070, 273, 1151, 31, 3639, 1620, 261, 723, 13, 288, 13491, 648, 3155, 1228, 18, 7788, 294, 288, 4766, 18701, 277, 1085, 3401, 273, 527, 3216, 12443, 7229, 13, 3155, 1228, 18, 22693, 55, 4830, 16, 277, 1085, 3401, 1769, 10792, 2029, 2295, 273, 261, 907, 13, 756, 18, 588, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 7925, 770, 273, 261, 4897, 13, 2295, 18, 588, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 277, 1085, 3401, 273, 527, 3216, 12443, 7229, 21433, 1615, 18, 6620, 620, 1435, 1671, 1725, 3631, 277, 1085, 3401, 1769, 10792, 277, 1085, 3401, 273, 527, 3216, 12443, 7229, 21433, 1615, 18, 6620, 620, 1435, 473, 374, 5297, 3631, 277, 1085, 3401, 1769, 4766, 3639, 2097, 2624, 6148, 9904, 31, 10792, 309, 261, 1282, 2624, 6148, 405, 2097, 751, 18, 1282, 2747, 2624, 13, 13491, 2097, 751, 18, 1282, 2747, 2624, 273, 2097, 2624, 6148, 31, 7734, 289, 7734, 898, 31, 5411, 648, 3155, 1228, 18, 10885, 294, 7734, 277, 1085, 3401, 273, 1089, 31063, 12, 2159, 16, 277, 1085, 3401, 1769, 7734, 1323, 261, 3624, 480, 446, 13, 288, 10792, 309, 261, 3624, 18, 588, 559, 1435, 480, 3155, 1228, 18, 7788, 13, 7682, 277, 1085, 3401, 273, 2103, 45, 1085, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 2029, 15070, 273, 1151, 31, 3639, 1620, 261, 723, 13, 288, 13491, 648, 3155, 1228, 18, 7788, 294, 288, 4766, 18701, 277, 1085, 3401, 273, 527, 3216, 12443, 7229, 13, 3155, 1228, 18, 22693, 55, 4830, 16, 277, 1085, 3401, 1769, 10792, 2029, 2295, 273, 261, 907, 13, 756, 18, 588, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 7925, 770, 273, 261, 4897, 13, 2295, 18, 588, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 277, 1085, 3401, 273, 527, 2 ]
public org.quickfix.field.LegCreditRating getLegCreditRating() throws FieldNotFound { org.quickfix.field.LegCreditRating value = new org.quickfix.field.LegCreditRating();
public quickfix.field.LegCreditRating getLegCreditRating() throws FieldNotFound { quickfix.field.LegCreditRating value = new quickfix.field.LegCreditRating();
public org.quickfix.field.LegCreditRating getLegCreditRating() throws FieldNotFound { org.quickfix.field.LegCreditRating value = new org.quickfix.field.LegCreditRating(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteRequestReject.java/buggy/src/java/src/quickfix/fix44/QuoteRequestReject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 16520, 20388, 336, 8329, 16520, 20388, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 16520, 20388, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 16520, 20388, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 16520, 20388, 336, 8329, 16520, 20388, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 16520, 20388, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 16520, 20388, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
digester.addCallMethod("*/" + N_MODULE + "/" + N_PARAMETERS + "/" + I_CmsXmlConfiguration.N_PARAM , "addParameter", 2); digester.addCallParam("*/" + N_MODULE + "/" + N_PARAMETERS + "/" + I_CmsXmlConfiguration.N_PARAM , 0, I_CmsXmlConfiguration.A_NAME); digester.addCallParam("*/" + N_MODULE + "/" + N_PARAMETERS + "/" + I_CmsXmlConfiguration.N_PARAM , 1);
digester.addCallMethod( "*/" + N_MODULE + "/" + N_PARAMETERS + "/" + I_CmsXmlConfiguration.N_PARAM, "addParameter", 2); digester.addCallParam( "*/" + N_MODULE + "/" + N_PARAMETERS + "/" + I_CmsXmlConfiguration.N_PARAM, 0, I_CmsXmlConfiguration.A_NAME); digester.addCallParam("*/" + N_MODULE + "/" + N_PARAMETERS + "/" + I_CmsXmlConfiguration.N_PARAM, 1);
public static void addXmlDigesterRules(Digester digester) { // add class generation rule digester.addObjectCreate("*/" + N_MODULE, CmsModuleXmlHandler.class); digester.addSetNext("*/" + N_MODULE, "setModule"); // add rules for base module information digester.addCallMethod("*/" + N_MODULE, "createdModule", 11); digester.addCallParam("*/" + N_MODULE + "/" + N_NAME, 0); digester.addCallParam("*/" + N_MODULE + "/" + N_NICENAME, 1); digester.addCallParam("*/" + N_MODULE + "/" + N_GROUP, 2); digester.addCallParam("*/" + N_MODULE + "/" + N_CLASS, 3); digester.addCallParam("*/" + N_MODULE + "/" + N_DESCRIPTION, 4); digester.addCallParam("*/" + N_MODULE + "/" + N_VERSION, 5); digester.addCallParam("*/" + N_MODULE + "/" + N_AUTHORNAME, 6); digester.addCallParam("*/" + N_MODULE + "/" + N_AUTHOREMAIL, 7); digester.addCallParam("*/" + N_MODULE + "/" + N_DATECREATED, 8); digester.addCallParam("*/" + N_MODULE + "/" + N_USERINSTALLED, 9); digester.addCallParam("*/" + N_MODULE + "/" + N_DATEINSTALLED, 10); // add rules for module dependencies digester.addCallMethod("*/" + N_MODULE + "/" + N_DEPENDENCIES + "/" + N_DEPENDENCY, "addDependency", 2); digester.addCallParam("*/" + N_MODULE + "/" + N_DEPENDENCIES + "/" + N_DEPENDENCY, 0, I_CmsXmlConfiguration.A_NAME); digester.addCallParam("*/" + N_MODULE + "/" + N_DEPENDENCIES + "/" + N_DEPENDENCY, 1, A_VERSION); // add rules for the module export points digester.addCallMethod("*/" + N_MODULE + "/" + I_CmsXmlConfiguration.N_EXPORTPOINTS + "/" + I_CmsXmlConfiguration.N_EXPORTPOINT, "addExportPoint", 2); digester.addCallParam("*/" + N_MODULE + "/" + I_CmsXmlConfiguration.N_EXPORTPOINTS + "/" + I_CmsXmlConfiguration.N_EXPORTPOINT, 0, I_CmsXmlConfiguration.A_URI); digester.addCallParam("*/" + N_MODULE + "/" + I_CmsXmlConfiguration.N_EXPORTPOINTS + "/" + I_CmsXmlConfiguration.N_EXPORTPOINT, 1, I_CmsXmlConfiguration.A_DESTINATION); // add rules for the module resources digester.addCallMethod("*/" + N_MODULE + "/" + N_RESOURCES + "/" + I_CmsXmlConfiguration.N_RESOURCE, "addResource", 1); digester.addCallParam("*/" + N_MODULE + "/" + N_RESOURCES + "/" + I_CmsXmlConfiguration.N_RESOURCE, 0, I_CmsXmlConfiguration.A_URI); // add rules for the module parameters digester.addCallMethod("*/" + N_MODULE + "/" + N_PARAMETERS + "/" + I_CmsXmlConfiguration.N_PARAM , "addParameter", 2); digester.addCallParam("*/" + N_MODULE + "/" + N_PARAMETERS + "/" + I_CmsXmlConfiguration.N_PARAM , 0, I_CmsXmlConfiguration.A_NAME); digester.addCallParam("*/" + N_MODULE + "/" + N_PARAMETERS + "/" + I_CmsXmlConfiguration.N_PARAM , 1); // generic <param> parameter rules digester.addCallMethod("*/" + I_CmsXmlConfiguration.N_PARAM, I_CmsConfigurationParameterHandler.C_ADD_PARAMETER_METHOD, 2); digester.addCallParam ("*/" + I_CmsXmlConfiguration.N_PARAM, 0, I_CmsXmlConfiguration.A_NAME); digester.addCallParam ("*/" + I_CmsXmlConfiguration.N_PARAM, 1); // add resource type rules from VFS CmsVfsConfiguration.addResourceTypeXmlRules(digester); // add explorer type rules from workplace CmsWorkplaceConfiguration.addExplorerTypeXmlRules(digester); // finally add all rules for backward compatibility with OpenCms 5.0 addXmlDigesterRulesForVersion5Modules(digester); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/f12328204dd4cd4c2d95d0595fb352cd0e93c475/CmsModuleXmlHandler.java/clean/src/org/opencms/module/CmsModuleXmlHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 527, 4432, 4907, 7654, 4478, 12, 4907, 7654, 23821, 13, 288, 3639, 368, 527, 667, 9377, 1720, 3639, 23821, 18, 1289, 921, 1684, 2932, 14, 4898, 397, 423, 67, 12194, 16, 2149, 3120, 4432, 1503, 18, 1106, 1769, 3639, 23821, 18, 1289, 694, 2134, 2932, 14, 4898, 397, 423, 67, 12194, 16, 315, 542, 3120, 8863, 3639, 368, 527, 2931, 364, 1026, 1605, 1779, 3639, 23821, 18, 1289, 1477, 1305, 2932, 14, 4898, 397, 423, 67, 12194, 16, 315, 4824, 3120, 3113, 4648, 1769, 3639, 23821, 18, 1289, 1477, 786, 2932, 14, 4898, 397, 423, 67, 12194, 397, 4016, 397, 423, 67, 1985, 16, 374, 1769, 3639, 23821, 18, 1289, 1477, 786, 2932, 14, 4898, 397, 423, 67, 12194, 397, 4016, 397, 423, 67, 31883, 21150, 16, 404, 1769, 3639, 23821, 18, 1289, 1477, 786, 2932, 14, 4898, 397, 423, 67, 12194, 397, 4016, 397, 423, 67, 8468, 16, 576, 1769, 3639, 23821, 18, 1289, 1477, 786, 2932, 14, 4898, 397, 423, 67, 12194, 397, 4016, 397, 423, 67, 5237, 16, 890, 1769, 3639, 23821, 18, 1289, 1477, 786, 2932, 14, 4898, 397, 423, 67, 12194, 397, 4016, 397, 423, 67, 15911, 16, 1059, 1769, 3639, 23821, 18, 1289, 1477, 786, 2932, 14, 4898, 397, 423, 67, 12194, 397, 4016, 397, 423, 67, 5757, 16, 1381, 1769, 3639, 23821, 18, 1289, 1477, 786, 2932, 14, 4898, 397, 423, 67, 12194, 397, 4016, 397, 423, 67, 7131, 916, 1985, 16, 1666, 1769, 3639, 23821, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 4432, 4907, 7654, 4478, 12, 4907, 7654, 23821, 13, 288, 3639, 368, 527, 667, 9377, 1720, 3639, 23821, 18, 1289, 921, 1684, 2932, 14, 4898, 397, 423, 67, 12194, 16, 2149, 3120, 4432, 1503, 18, 1106, 1769, 3639, 23821, 18, 1289, 694, 2134, 2932, 14, 4898, 397, 423, 67, 12194, 16, 315, 542, 3120, 8863, 3639, 368, 527, 2931, 364, 1026, 1605, 1779, 3639, 23821, 18, 1289, 1477, 1305, 2932, 14, 4898, 397, 423, 67, 12194, 16, 315, 4824, 3120, 3113, 4648, 1769, 3639, 23821, 18, 1289, 1477, 786, 2932, 14, 4898, 397, 423, 67, 12194, 397, 4016, 397, 423, 67, 1985, 16, 374, 1769, 3639, 23821, 18, 1289, 1477, 786, 2932, 14, 4898, 2 ]
return CSearchMessages.getFormattedString( "CSearchOperation.singularDeclarationsPostfix", args );
return CSearchMessages.getFormattedString( "CSearchOperation.singularDeclarationsPostfix", args );
public String getSingularLabel() { String desc = null; //if( _elementPattern != null ){ // desc = _elementPattern.getElementName(); //} else { desc = _stringPattern; //} String [] args = new String [] { desc, _scopeDescription }; if( _limitTo == DECLARATIONS ){ return CSearchMessages.getFormattedString( "CSearchOperation.singularDeclarationsPostfix", args ); //$NON_NLS-1$ } else if( _limitTo == REFERENCES ){ return CSearchMessages.getFormattedString( "CSearchOperation.singularReferencesPostfix", args ); //$NON_NLS-1$ } else { return CSearchMessages.getFormattedString( "CSearchOperation.singularOccurrencesPostfix", args ); //$NON_NLS-1$ } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1738ff26440cb838b4d42f49cb8d29c4cc9babdf/CSearchOperation.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/CSearchOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1322, 17830, 2224, 1435, 288, 202, 202, 780, 3044, 273, 446, 31, 9506, 202, 759, 430, 12, 389, 2956, 3234, 480, 446, 262, 95, 202, 202, 759, 202, 5569, 273, 389, 2956, 3234, 18, 21336, 461, 5621, 202, 202, 759, 97, 469, 288, 1082, 202, 5569, 273, 389, 1080, 3234, 31, 3196, 202, 759, 97, 9506, 202, 780, 5378, 833, 273, 394, 514, 5378, 288, 3044, 16, 389, 4887, 3291, 289, 31, 202, 202, 430, 12, 389, 3595, 774, 422, 2030, 5017, 985, 15297, 262, 95, 1082, 202, 2463, 385, 2979, 5058, 18, 588, 18298, 780, 12, 315, 39, 2979, 2988, 18, 17835, 21408, 24505, 3113, 833, 11272, 4329, 3993, 67, 5106, 17, 21, 8, 202, 202, 97, 469, 309, 12, 389, 3595, 774, 422, 22898, 55, 262, 95, 1082, 202, 2463, 385, 2979, 5058, 18, 588, 18298, 780, 12, 315, 39, 2979, 2988, 18, 17835, 8221, 24505, 3113, 833, 11272, 4329, 3993, 67, 5106, 17, 21, 8, 202, 202, 97, 469, 288, 1082, 202, 2463, 385, 2979, 5058, 18, 588, 18298, 780, 12, 315, 39, 2979, 2988, 18, 17835, 12397, 12228, 24505, 3113, 833, 11272, 4329, 3993, 67, 5106, 17, 21, 8, 202, 202, 97, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1322, 17830, 2224, 1435, 288, 202, 202, 780, 3044, 273, 446, 31, 9506, 202, 759, 430, 12, 389, 2956, 3234, 480, 446, 262, 95, 202, 202, 759, 202, 5569, 273, 389, 2956, 3234, 18, 21336, 461, 5621, 202, 202, 759, 97, 469, 288, 1082, 202, 5569, 273, 389, 1080, 3234, 31, 3196, 202, 759, 97, 9506, 202, 780, 5378, 833, 273, 394, 514, 5378, 288, 3044, 16, 389, 4887, 3291, 289, 31, 202, 202, 430, 12, 389, 3595, 774, 422, 2030, 5017, 985, 15297, 262, 95, 1082, 202, 2463, 385, 2979, 5058, 18, 588, 18298, 780, 12, 315, 39, 2979, 2988, 18, 17835, 21408, 24505, 3113, 833, 11272, 4329, 3993, 67, 5106, 17, 21, 8, 2 ]
receiveMessagesInTransaction = endpoint.getTransactionConfig().getFactory() != null;
String resourceInfo = endpoint.getEndpointURI().getResourceInfo(); boolean topic = (resourceInfo != null && "topic".equalsIgnoreCase(resourceInfo)); if (!topic && endpoint.getTransactionConfig().getFactory() != null) { receiveMessagesInTransaction = true; }
public JmsMessageReceiver(UMOConnector connector, UMOComponent component, UMOEndpoint endpoint) throws InitialisationException { super(connector, component, endpoint, new Long(10)); this.connector = (JmsConnector) connector; this.frequency = PropertiesHelper.getLongProperty(endpoint.getProperties(), "frequency", 10000L); this.reuseConsumer = PropertiesHelper.getBooleanProperty(endpoint.getProperties(), "reuseConsumer", true); this.reuseSession = PropertiesHelper.getBooleanProperty(endpoint.getProperties(), "reuseSession", true); receiveMessagesInTransaction = endpoint.getTransactionConfig().getFactory() != null; try { redeliveryHandler = this.connector.createRedeliveryHandler(); redeliveryHandler.setConnector(this.connector); } catch (Exception e) { throw new InitialisationException(e, this); } }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/1eb501242984802aadd252da327d995c5f61c590/JmsMessageReceiver.java/buggy/providers/jms/src/java/org/mule/providers/jms/JmsMessageReceiver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19870, 1079, 12952, 12, 2799, 51, 7487, 8703, 16, 587, 5980, 1841, 1794, 16, 587, 5980, 3293, 2494, 13, 5411, 1216, 10188, 10742, 503, 565, 288, 3639, 2240, 12, 23159, 16, 1794, 16, 2494, 16, 394, 3407, 12, 2163, 10019, 3639, 333, 18, 23159, 273, 261, 23058, 7487, 13, 8703, 31, 3639, 333, 18, 14092, 273, 6183, 2276, 18, 588, 3708, 1396, 12, 8003, 18, 588, 2297, 9334, 315, 14092, 3113, 12619, 48, 1769, 3639, 333, 18, 266, 1202, 5869, 273, 6183, 2276, 18, 588, 5507, 1396, 12, 8003, 18, 588, 2297, 9334, 315, 266, 1202, 5869, 3113, 638, 1769, 3639, 333, 18, 266, 1202, 2157, 273, 6183, 2276, 18, 588, 5507, 1396, 12, 8003, 18, 588, 2297, 9334, 315, 266, 1202, 2157, 3113, 638, 1769, 5411, 514, 1058, 966, 273, 2494, 18, 588, 3293, 3098, 7675, 588, 1420, 966, 5621, 1250, 3958, 273, 261, 3146, 966, 480, 446, 597, 315, 10476, 9654, 14963, 5556, 12, 3146, 966, 10019, 309, 16051, 10476, 597, 2494, 18, 588, 3342, 809, 7675, 588, 1733, 1435, 480, 446, 13, 288, 6798, 5058, 382, 3342, 273, 638, 31, 289, 3639, 775, 288, 5411, 1755, 292, 4535, 1503, 273, 333, 18, 23159, 18, 2640, 3715, 292, 4535, 1503, 5621, 5411, 1755, 292, 4535, 1503, 18, 542, 7487, 12, 2211, 18, 23159, 1769, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 604, 394, 10188, 10742, 503, 12, 73, 16, 333, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19870, 1079, 12952, 12, 2799, 51, 7487, 8703, 16, 587, 5980, 1841, 1794, 16, 587, 5980, 3293, 2494, 13, 5411, 1216, 10188, 10742, 503, 565, 288, 3639, 2240, 12, 23159, 16, 1794, 16, 2494, 16, 394, 3407, 12, 2163, 10019, 3639, 333, 18, 23159, 273, 261, 23058, 7487, 13, 8703, 31, 3639, 333, 18, 14092, 273, 6183, 2276, 18, 588, 3708, 1396, 12, 8003, 18, 588, 2297, 9334, 315, 14092, 3113, 12619, 48, 1769, 3639, 333, 18, 266, 1202, 5869, 273, 6183, 2276, 18, 588, 5507, 1396, 12, 8003, 18, 588, 2297, 9334, 315, 266, 1202, 5869, 3113, 638, 1769, 3639, 333, 18, 266, 1202, 2157, 273, 6183, 2276, 18, 588, 5507, 1396, 12, 8003, 18, 588, 2 ]
if (line != null && eolcount == 0) { int i = linelen; while (--i >= 0 && line.charAt(i) == CTRLZ) {} if (i < linelen - 1) {
if (eolcount == 0) { int i = line.length(); while (--i >= 0 && line.charAt(i) == CTRLZ) { } if (i < line.length() - 1) {
protected void nextLine() throws BuildException { int ch; int eolcount = 0; eolStr.setLength(0); try { int linelen; reader.mark(INBUFLEN); line = reader.readLine(); if (line == null) { // Eof has been reached linelen = 0; } else { linelen = line.length(); } // Find the EOL character(s) reader.reset(); // an IOException will be thrown reader.skip((long)linelen); reader.mark(INBUFLEN); ch = reader.read(); switch ((char) ch) { case '\r': // Check for \r, \r\n and \r\r\n // Regard \r\r not followed by \n as two lines ++eolcount; eolStr.append('\r'); switch ((char)(ch = reader.read())) { case '\r': if ((char)(ch = reader.read()) == '\n') { eolcount += 2; eolStr.append("\r\n"); } break; case '\n': ++eolcount; eolStr.append('\n'); break; } // end of switch ((char)(ch = reader.read())) break; case '\n': ++eolcount; eolStr.append('\n'); break; } // end of switch ((char) ch) // Reset the position of the file reader reader.reset(); reader.skip((long)eolcount); // if at eolcount == 0 and trailing characters of string // are CTRL-Zs, set eofStr if (line != null && eolcount == 0) { int i = linelen; while (--i >= 0 && line.charAt(i) == CTRLZ) {} if (i < linelen - 1) { // Trailing characters are ^Zs // Construct new line and eofStr eofStr.append(line.substring(i + 1)); line = i < 0 ? null : line.substring(0, i + 1); } } // end of if (eolcount == 0) } catch (IOException e) { throw new BuildException(e); } }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/286537d1f81a29fff0b913229d7750604265ea71/FixCRLF.java/buggy/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 918, 26638, 1435, 5411, 1216, 18463, 288, 5411, 509, 462, 31, 5411, 509, 14775, 1883, 273, 374, 31, 5411, 14775, 1585, 18, 542, 1782, 12, 20, 1769, 5411, 775, 288, 7734, 509, 4739, 292, 275, 31, 7734, 2949, 18, 3355, 12, 706, 3000, 42, 13017, 1769, 7734, 980, 273, 2949, 18, 896, 1670, 5621, 7734, 309, 261, 1369, 422, 446, 13, 288, 10792, 368, 512, 792, 711, 2118, 8675, 10792, 4739, 292, 275, 273, 374, 31, 7734, 289, 7734, 469, 288, 10792, 4739, 292, 275, 273, 980, 18, 2469, 5621, 7734, 289, 4766, 7734, 368, 4163, 326, 19995, 3351, 12, 87, 13, 7734, 2949, 18, 6208, 5621, 7734, 368, 392, 1860, 903, 506, 6718, 7734, 2949, 18, 7457, 12443, 5748, 13, 7511, 292, 275, 1769, 7734, 2949, 18, 3355, 12, 706, 3000, 42, 13017, 1769, 7734, 462, 273, 2949, 18, 896, 5621, 7734, 1620, 14015, 3001, 13, 462, 13, 288, 7734, 648, 2337, 86, 4278, 10792, 368, 2073, 364, 521, 86, 16, 521, 86, 64, 82, 471, 521, 86, 64, 86, 64, 82, 10792, 368, 2526, 1060, 521, 86, 64, 86, 486, 10860, 635, 521, 82, 487, 2795, 2362, 10792, 965, 30951, 1883, 31, 10792, 14775, 1585, 18, 6923, 2668, 64, 86, 8284, 10792, 1620, 14015, 3001, 21433, 343, 273, 2949, 18, 896, 1435, 3719, 288, 10792, 648, 2337, 86, 4278, 13491, 309, 14015, 3001, 21433, 343, 273, 2949, 18, 896, 10756, 422, 2337, 82, 6134, 288, 18701, 14775, 1883, 1011, 576, 31, 18701, 14775, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 918, 26638, 1435, 5411, 1216, 18463, 288, 5411, 509, 462, 31, 5411, 509, 14775, 1883, 273, 374, 31, 5411, 14775, 1585, 18, 542, 1782, 12, 20, 1769, 5411, 775, 288, 7734, 509, 4739, 292, 275, 31, 7734, 2949, 18, 3355, 12, 706, 3000, 42, 13017, 1769, 7734, 980, 273, 2949, 18, 896, 1670, 5621, 7734, 309, 261, 1369, 422, 446, 13, 288, 10792, 368, 512, 792, 711, 2118, 8675, 10792, 4739, 292, 275, 273, 374, 31, 7734, 289, 7734, 469, 288, 10792, 4739, 292, 275, 273, 980, 18, 2469, 5621, 7734, 289, 4766, 7734, 368, 4163, 326, 19995, 3351, 12, 87, 13, 7734, 2949, 18, 6208, 5621, 7734, 368, 392, 1860, 903, 506, 6718, 7734, 2949, 18, 2 ]
Scopes scopes = new Scopes(new String[]{"scope1"}); ServiceInfo service1 = new ServiceInfo(serviceURL1, scopes, null, Locale.getDefault().getLanguage());
ServiceInfo service1 = new ServiceInfo(serviceURL1, Scopes.DEFAULT, null, Locale.getDefault().getLanguage());
public void testRegistrationWithoutDA() throws Exception { StandardServiceAgent sa = new StandardServiceAgent(); sa.setConfiguration(getDefaultConfiguration()); ServiceURL serviceURL1 = new ServiceURL("service:jmx:rmi://ssat4"); Scopes scopes = new Scopes(new String[]{"scope1"}); ServiceInfo service1 = new ServiceInfo(serviceURL1, scopes, null, Locale.getDefault().getLanguage()); sa.register(service1); Collection services = sa.getServices(); assert services != null; assert services.size() == 1; assert service1.getServiceURL().equals(((ServiceInfo)services.iterator().next()).getServiceURL()); sa.start(); try { ServiceURL serviceURL2 = new ServiceURL("service:jmx:ws://ssat5"); ServiceInfo service2 = new ServiceInfo(serviceURL2, new Scopes(new String[]{"scope2"}), null, Locale.getDefault().getLanguage()); sa.register(service2); services = sa.getServices(); assert services != null; assert services.size() == 2; } finally { sa.stop(); } }
6331 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6331/d27166d30cc3b6c11dabd620bba4d02fbcca1a01/StandardServiceAgentTest.java/buggy/livetribe/trunk/livetribe-slp/src/test/java/org/livetribe/slp/api/sa/StandardServiceAgentTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 7843, 8073, 9793, 1435, 1216, 1185, 565, 288, 3639, 8263, 1179, 3630, 7864, 273, 394, 8263, 1179, 3630, 5621, 3639, 7864, 18, 542, 1750, 12, 588, 1868, 1750, 10663, 3639, 1956, 1785, 1156, 1785, 21, 273, 394, 1956, 1785, 2932, 3278, 30, 78, 11023, 30, 8864, 77, 2207, 1049, 270, 24, 8863, 3639, 30729, 8124, 273, 394, 30729, 12, 2704, 514, 63, 7073, 6, 4887, 21, 6, 22938, 3639, 1956, 966, 1156, 21, 273, 394, 1956, 966, 12, 3278, 1785, 21, 16, 8124, 16, 446, 16, 6458, 18, 588, 1868, 7675, 588, 3779, 10663, 3639, 7864, 18, 4861, 12, 3278, 21, 1769, 3639, 2200, 4028, 273, 7864, 18, 588, 5676, 5621, 3639, 1815, 4028, 480, 446, 31, 3639, 1815, 4028, 18, 1467, 1435, 422, 404, 31, 3639, 1815, 1156, 21, 18, 588, 1179, 1785, 7675, 14963, 12443, 12, 1179, 966, 13, 8387, 18, 9838, 7675, 4285, 1435, 2934, 588, 1179, 1785, 10663, 3639, 7864, 18, 1937, 5621, 3639, 775, 3639, 288, 5411, 1956, 1785, 1156, 1785, 22, 273, 394, 1956, 1785, 2932, 3278, 30, 78, 11023, 30, 4749, 2207, 1049, 270, 25, 8863, 5411, 1956, 966, 1156, 22, 273, 394, 1956, 966, 12, 3278, 1785, 22, 16, 394, 30729, 12, 2704, 514, 63, 7073, 6, 4887, 22, 6, 97, 3631, 446, 16, 6458, 18, 588, 1868, 7675, 588, 3779, 10663, 5411, 7864, 18, 4861, 12, 3278, 22, 1769, 5411, 4028, 273, 7864, 18, 588, 5676, 5621, 5411, 1815, 4028, 480, 446, 31, 5411, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7843, 8073, 9793, 1435, 1216, 1185, 565, 288, 3639, 8263, 1179, 3630, 7864, 273, 394, 8263, 1179, 3630, 5621, 3639, 7864, 18, 542, 1750, 12, 588, 1868, 1750, 10663, 3639, 1956, 1785, 1156, 1785, 21, 273, 394, 1956, 1785, 2932, 3278, 30, 78, 11023, 30, 8864, 77, 2207, 1049, 270, 24, 8863, 3639, 30729, 8124, 273, 394, 30729, 12, 2704, 514, 63, 7073, 6, 4887, 21, 6, 22938, 3639, 1956, 966, 1156, 21, 273, 394, 1956, 966, 12, 3278, 1785, 21, 16, 8124, 16, 446, 16, 6458, 18, 588, 1868, 7675, 588, 3779, 10663, 3639, 7864, 18, 4861, 12, 3278, 21, 1769, 3639, 2200, 4028, 273, 7864, 18, 588, 5676, 5621, 3639, 1815, 4028, 480, 2 ]
getRenderingContext().setRootBox(root);
public void doActualLayout(Graphics g) { //Uu.p("doActualLayout called"); this.removeAll(); if (g == null) { return; } if (doc == null) { return; }// set up CSS Context c = newContext(pageInfo, (Graphics2D) g); synchronized (this) { if (this.layout_context != null) this.layout_context.stopRendering(); this.layout_context = c; //HACK: this.initialStackingContext = c.getStackingContext(); } c.setRenderQueue(queue); setRenderWidth((int) c.getExtents().getWidth()); getRenderingContext().getTextRenderer().setupGraphics(c.getGraphics());//TODO: maybe temporary hack if (c.getBlockFormattingContext() != null) c.popBFC();//we set one for the top level before // do the actual layout//Uu.p("doing actual layout here"); Box root = Boxing.preLayout(c, new DomToplevelNode(doc)); setRootBox(root); Boxing.realLayout(c, root, new DomToplevelNode(doc));//Uu.p("body box = " + body_box); if (!c.isStylesAllPopped()) { XRLog.layout(Level.SEVERE, "mismatch in style popping and pushing"); } if (c.shouldStop()) {//interrupted layout return; } XRLog.layout(Level.FINEST, "is a fixed child: " + root.isChildrenExceedBounds()); // if there is a fixed child then we need to set opaque to false// so that the entire viewport will be repainted. this is slower// but that's the hit you get from using fixed layout if (root.isChildrenExceedBounds()) { super.setOpaque(false); } else { super.setOpaque(true); } getRenderingContext().setRootBox(root); XRLog.layout(Level.FINEST, "after layout: " + root); intrinsic_size = new Dimension(getContext().getMaxWidth(), root.height); //Uu.p("intrinsic size = " + intrinsic_size); if (intrinsic_size.width != this.getWidth()) { //Uu.p("intrisic and this widths don't match: " + this.getSize() + " " + intrinsic_size); this.setPreferredSize(new Dimension(intrinsic_size.width, this.getHeight())); //this.setPreferredSize(intrinsic_size); this.revalidate(); } // if doc is shorter than viewport // then stretch canvas to fill viewport exactly // then adjust the body element accordingly if (enclosingScrollPane != null) { if (intrinsic_size.height < enclosingScrollPane.getViewport().getHeight()) { //Uu.p("int height is less than viewport height"); if (enclosingScrollPane.getViewport().getHeight() != this.getHeight()) { this.setPreferredSize(new Dimension(getWidth(), enclosingScrollPane.getViewport().getHeight())); this.revalidate(); } //Uu.p("need to do the body hack"); if (root != null) { root.height = enclosingScrollPane.getViewport().getHeight(); bodyExpandHack(root, root.height); intrinsic_size.height = root.height; } } else { // if doc is taller than viewport if (this.getHeight() != intrinsic_size.height) { this.setPreferredSize(new Dimension(getWidth(), intrinsic_size.height)); this.revalidate(); } } // turn on simple scrolling mode if there's any fixed elements if (root.isFixedDescendant()) { // Uu.p("is fixed"); enclosingScrollPane.getViewport().setScrollMode(JViewport.SIMPLE_SCROLL_MODE); } else { // Uu.p("is not fixed"); enclosingScrollPane.getViewport().setScrollMode(default_scroll_mode); } } if (Configuration.isTrue("xr.use.threads", true)) { queue.dispatchRepaintEvent(new ReflowEvent(ReflowEvent.LAYOUT_COMPLETE)); } this.fireDocumentLoaded(); }
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/0c8a7d8353d6ffe22590674a6ac92af99241b81f/RootPanel.java/clean/src/java/org/xhtmlrenderer/swing/RootPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 11266, 3744, 12, 17558, 314, 13, 288, 3639, 368, 57, 89, 18, 84, 2932, 2896, 11266, 3744, 2566, 8863, 3639, 333, 18, 4479, 1595, 5621, 3639, 309, 261, 75, 422, 446, 13, 288, 5411, 327, 31, 3639, 289, 3639, 309, 261, 2434, 422, 446, 13, 288, 5411, 327, 31, 3639, 289, 759, 444, 731, 6765, 3639, 1772, 276, 273, 28210, 12, 2433, 966, 16, 261, 17558, 22, 40, 13, 314, 1769, 3639, 3852, 261, 2211, 13, 288, 5411, 309, 261, 2211, 18, 6741, 67, 2472, 480, 446, 13, 333, 18, 6741, 67, 2472, 18, 5681, 14261, 5621, 5411, 333, 18, 6741, 67, 2472, 273, 276, 31, 5411, 368, 44, 3649, 30, 5411, 333, 18, 6769, 2624, 310, 1042, 273, 276, 18, 588, 2624, 310, 1042, 5621, 3639, 289, 3639, 276, 18, 542, 3420, 3183, 12, 4000, 1769, 3639, 444, 3420, 2384, 12443, 474, 13, 276, 18, 588, 2482, 4877, 7675, 588, 2384, 10663, 3639, 336, 14261, 1042, 7675, 588, 1528, 6747, 7675, 8401, 17558, 12, 71, 18, 588, 17558, 10663, 759, 6241, 30, 6944, 6269, 11769, 3639, 309, 261, 71, 18, 588, 1768, 23974, 1042, 1435, 480, 446, 13, 276, 18, 5120, 38, 4488, 5621, 759, 1814, 444, 1245, 364, 326, 1760, 1801, 1865, 3639, 368, 741, 326, 3214, 3511, 759, 57, 89, 18, 84, 2932, 2896, 310, 3214, 3511, 2674, 8863, 3639, 8549, 1365, 273, 8549, 310, 18, 1484, 3744, 12, 71, 16, 394, 12965, 3401, 2815, 907, 12, 2434, 10019, 3639, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 11266, 3744, 12, 17558, 314, 13, 288, 3639, 368, 57, 89, 18, 84, 2932, 2896, 11266, 3744, 2566, 8863, 3639, 333, 18, 4479, 1595, 5621, 3639, 309, 261, 75, 422, 446, 13, 288, 5411, 327, 31, 3639, 289, 3639, 309, 261, 2434, 422, 446, 13, 288, 5411, 327, 31, 3639, 289, 759, 444, 731, 6765, 3639, 1772, 276, 273, 28210, 12, 2433, 966, 16, 261, 17558, 22, 40, 13, 314, 1769, 3639, 3852, 261, 2211, 13, 288, 5411, 309, 261, 2211, 18, 6741, 67, 2472, 480, 446, 13, 333, 18, 6741, 67, 2472, 18, 5681, 14261, 5621, 5411, 333, 18, 6741, 67, 2472, 273, 276, 31, 5411, 368, 44, 3649, 30, 5411, 333, 18, 6769, 2 ]
public void testIpInterfaceForeignKeySnmpInterfaceIdOnUpgrade() throws Exception {
public void testIpInterfaceForeignKeySnmpInterfaceIdOnUpgrade() throws Exception {
public void testIpInterfaceForeignKeySnmpInterfaceIdOnUpgrade() throws Exception { if (!isDBTestEnabled()) { return; } m_installer.createSequences(); for (int i = 0; i < 10; i++) { executeSQL("SELECT nextval('opennmsNxtId');"); } addTableFromSQL("distPoller"); addTableFromSQL("node"); // No ID column addTableFromSQLWithReplacements("snmpinterface", new String[][] { new String[] { "(?i)id\\s+INTEGER DEFAULT nextval\\('opennmsNxtId'\\) NOT NULL,", "" }, new String[] { "(?i)CONSTRAINT snmpinterface_pkey primary key \\(id\\),", "" } }); // No snmpInterfaceID column addTableFromSQLWithReplacements("ipinterface", new String[][] { new String[] { "(?i)snmpInterfaceId\\s+integer,", "" }, new String[] { "(?i)CONSTRAINT snmpinterface_fkey1 FOREIGN KEY \\(snmpInterfaceId\\) REFERENCES snmpInterface \\(id\\),", "" } }); executeSQL("INSERT INTO node (nodeId, nodeCreateTime) VALUES ( 1, now() )"); executeSQL("INSERT INTO node (nodeId, nodeCreateTime) VALUES ( 2, now() )"); executeSQL("INSERT INTO snmpInterface (nodeId, ipAddr, snmpIfIndex) VALUES ( 1, '1.2.3.4', 1)"); executeSQL("INSERT INTO ipInterface (nodeId, ipAddr, ifIndex) VALUES ( 1, '1.2.3.4', 1 )"); executeSQL("INSERT INTO ipInterface (nodeId, ipAddr, ifIndex) VALUES ( 2, '1.2.3.9', null )"); m_installer.createTables(); Statement st = m_installer.m_dbconnection.createStatement(); ResultSet rs = st.executeQuery("SELECT snmpInterfaceID from ipInterface"); assertTrue("Could not ResultSet.next() to first result entry", rs.next()); int got = rs.getInt(1); assertFalse("first result should not be null, but was null", rs.wasNull()); assertEquals("ipInterface snmpInterfaceId", 1, got); assertTrue("Could not ResultSet.next() to second result entry", rs.next()); assertFalse("second result should be null, but wasn't null", rs.wasNull()); assertFalse("Too many entries", rs.next()); }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/28ec8d0f53c305460681fe922d064c060141774d/InstallerDBTest.java/clean/opennms-install/src/test/java/org/opennms/install/InstallerDBTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5273, 1358, 15420, 10461, 1291, 1358, 548, 1398, 10784, 1435, 1216, 1185, 288, 3639, 309, 16051, 291, 2290, 4709, 1526, 10756, 288, 5411, 327, 31, 3639, 289, 7734, 312, 67, 20163, 18, 2640, 21710, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1728, 31, 277, 27245, 288, 5411, 1836, 3997, 2932, 4803, 1024, 1125, 2668, 3190, 82, 959, 50, 15239, 548, 8284, 8863, 3639, 289, 7734, 527, 1388, 1265, 3997, 2932, 4413, 5850, 749, 8863, 3639, 527, 1388, 1265, 3997, 2932, 2159, 8863, 7734, 368, 2631, 1599, 1057, 3639, 527, 1388, 1265, 3997, 1190, 28440, 2932, 26527, 5831, 3113, 394, 514, 63, 6362, 65, 288, 7734, 394, 514, 8526, 288, 315, 3680, 77, 13, 350, 1695, 87, 15, 14217, 3331, 1024, 1125, 1695, 2668, 3190, 82, 959, 50, 15239, 548, 11, 1695, 13, 4269, 3206, 16, 3113, 1408, 19879, 7734, 394, 514, 8526, 288, 315, 3680, 77, 13, 15199, 15366, 5831, 67, 84, 856, 3354, 498, 1736, 12, 350, 1695, 3631, 3113, 1408, 289, 5411, 15549, 2868, 368, 2631, 15366, 1358, 734, 1057, 3639, 527, 1388, 1265, 3997, 1190, 28440, 2932, 625, 5831, 3113, 394, 514, 63, 6362, 65, 288, 7734, 394, 514, 8526, 288, 315, 3680, 77, 13, 26527, 1358, 548, 1695, 87, 15, 7745, 16, 3113, 1408, 19879, 7734, 394, 514, 8526, 288, 315, 3680, 77, 13, 15199, 15366, 5831, 67, 74, 856, 21, 478, 8607, 10452, 5311, 1736, 12, 26527, 1358, 548, 1695, 13, 22898, 55, 15366, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5273, 1358, 15420, 10461, 1291, 1358, 548, 1398, 10784, 1435, 1216, 1185, 288, 3639, 309, 16051, 291, 2290, 4709, 1526, 10756, 288, 5411, 327, 31, 3639, 289, 7734, 312, 67, 20163, 18, 2640, 21710, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1728, 31, 277, 27245, 288, 5411, 1836, 3997, 2932, 4803, 1024, 1125, 2668, 3190, 82, 959, 50, 15239, 548, 8284, 8863, 3639, 289, 7734, 527, 1388, 1265, 3997, 2932, 4413, 5850, 749, 8863, 3639, 527, 1388, 1265, 3997, 2932, 2159, 8863, 7734, 368, 2631, 1599, 1057, 3639, 527, 1388, 1265, 3997, 1190, 28440, 2932, 26527, 5831, 3113, 394, 514, 63, 6362, 65, 288, 7734, 394, 514, 8526, 288, 315, 3680, 2 ]
public ChangeType(String name, String className, String fieldName) {
public ChangeType(String name, Field ourField, ChangeType superType) {
public ChangeType(String name, String className, String fieldName) { this.name = name; try { Class clazz = Class.forName(className); this.ourField = clazz.getField(fieldName); } catch (Exception ex) { throw new NestedError(ex, "Couldn't find class or field " + className + "->" + fieldName ); } }
50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/ca3c9ff28c8bc8a4e00b8ec61e5960a13facd802/ChangeType.java/buggy/src/org/biojava/utils/ChangeType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 7576, 559, 12, 780, 508, 16, 2286, 3134, 974, 16, 7576, 559, 26701, 13, 288, 565, 333, 18, 529, 273, 508, 31, 565, 775, 288, 1377, 1659, 4003, 273, 1659, 18, 1884, 461, 12, 12434, 1769, 1377, 333, 18, 477, 974, 273, 4003, 18, 588, 974, 12, 16163, 1769, 565, 289, 1044, 261, 503, 431, 13, 288, 1377, 604, 394, 19071, 668, 12, 338, 16, 3639, 315, 16342, 1404, 1104, 667, 578, 652, 315, 397, 2658, 397, 3639, 315, 2122, 6, 397, 4289, 1377, 11272, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 7576, 559, 12, 780, 508, 16, 2286, 3134, 974, 16, 7576, 559, 26701, 13, 288, 565, 333, 18, 529, 273, 508, 31, 565, 775, 288, 1377, 1659, 4003, 273, 1659, 18, 1884, 461, 12, 12434, 1769, 1377, 333, 18, 477, 974, 273, 4003, 18, 588, 974, 12, 16163, 1769, 565, 289, 1044, 261, 503, 431, 13, 288, 1377, 604, 394, 19071, 668, 12, 338, 16, 3639, 315, 16342, 1404, 1104, 667, 578, 652, 315, 397, 2658, 397, 3639, 315, 2122, 6, 397, 4289, 1377, 11272, 565, 289, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
myHighlighter = createHighlighter(myProject, document, position.getLine());
final RangeHighlighter newHighlighter = createHighlighter(myProject, document, position.getLine()); if (newHighlighter == null) { return false; } final RangeHighlighter oldHighlighter = myHighlighter; myHighlighter = newHighlighter;
protected boolean moveTo(SourcePosition position) { RangeHighlighter oldHighlighter = myHighlighter; Document document = getDocument(); myHighlighter = createHighlighter(myProject, document, position.getLine()); reload(); if(!isValid()) { document.getMarkupModel(myProject).removeHighlighter(myHighlighter); myHighlighter = oldHighlighter; reload(); return false; } document.getMarkupModel(myProject).removeHighlighter(oldHighlighter); DebuggerManagerEx.getInstanceEx(getProject()).getBreakpointManager().breakpointChanged(this); updateUI(); return true; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/a819e8aea696e5dcfbe7bd6445a13fee96cc89ee/BreakpointWithHighlighter.java/buggy/source/com/intellij/debugger/ui/breakpoints/BreakpointWithHighlighter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1250, 13863, 12, 1830, 2555, 1754, 13, 288, 565, 8086, 8573, 23624, 1592, 8573, 23624, 273, 3399, 8573, 23624, 31, 565, 4319, 1668, 273, 9956, 5621, 565, 727, 8086, 8573, 23624, 394, 8573, 23624, 273, 752, 8573, 23624, 12, 4811, 4109, 16, 1668, 16, 1754, 18, 588, 1670, 10663, 309, 261, 2704, 8573, 23624, 422, 446, 13, 288, 327, 629, 31, 289, 727, 8086, 8573, 23624, 1592, 8573, 23624, 273, 3399, 8573, 23624, 31, 3399, 8573, 23624, 273, 394, 8573, 23624, 31, 565, 7749, 5621, 565, 309, 12, 5, 26810, 10756, 288, 1377, 1668, 18, 588, 13111, 1488, 12, 4811, 4109, 2934, 4479, 8573, 23624, 12, 4811, 8573, 23624, 1769, 1377, 3399, 8573, 23624, 273, 1592, 8573, 23624, 31, 1377, 7749, 5621, 1377, 327, 629, 31, 565, 289, 565, 1668, 18, 588, 13111, 1488, 12, 4811, 4109, 2934, 4479, 8573, 23624, 12, 1673, 8573, 23624, 1769, 565, 28645, 1318, 424, 18, 588, 1442, 424, 12, 588, 4109, 1435, 2934, 588, 20552, 1318, 7675, 8820, 1153, 5033, 12, 2211, 1769, 565, 1089, 5370, 5621, 565, 327, 638, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1250, 13863, 12, 1830, 2555, 1754, 13, 288, 565, 8086, 8573, 23624, 1592, 8573, 23624, 273, 3399, 8573, 23624, 31, 565, 4319, 1668, 273, 9956, 5621, 565, 727, 8086, 8573, 23624, 394, 8573, 23624, 273, 752, 8573, 23624, 12, 4811, 4109, 16, 1668, 16, 1754, 18, 588, 1670, 10663, 309, 261, 2704, 8573, 23624, 422, 446, 13, 288, 327, 629, 31, 289, 727, 8086, 8573, 23624, 1592, 8573, 23624, 273, 3399, 8573, 23624, 31, 3399, 8573, 23624, 273, 394, 8573, 23624, 31, 565, 7749, 5621, 565, 309, 12, 5, 26810, 10756, 288, 1377, 1668, 18, 588, 13111, 1488, 12, 4811, 4109, 2934, 4479, 8573, 23624, 12, 4811, 8573, 23624, 1769, 1377, 3399, 8573, 23624, 273, 1592, 8573, 2 ]
initPopupMenu(seat_num, seat_type);
initPopupMenu(seat_num, player.get_ggz_seat_num(), seat_type);
public void alert_player(final int seat_num, final SeatType old_type, final String old_name) { SwingUtilities.invokeLater(new Runnable() { public void run() { JLabel label = playerLabels[seat_num]; Player player = cardClient.get_nth_player(seat_num); if (label == null) { label = new JLabel(player.get_name()); Font f = label.getFont(); label.setFont(f.deriveFont(f.getStyle() ^ Font.BOLD)); label.setForeground(Color.WHITE); table.add(label, new TableConstraints( TableConstraints.PLAYER_LABEL, seat_num)); playerLabels[seat_num] = label; //if (seat_num != 0) { // Listen for click events so as to pop up a menu that // allows users to do things to this seat. label.addMouseListener(new PopupListener()); label.setToolTipText("Right click for options."); //} } else { label.setText(player.get_name());// label.getClientProperty("ggz.cards.popupMenu"); } // Position the labels. SeatType seat_type = player.get_seat_type(); switch (seat_num) { case 0: // Me - south label.setIcon(getPlayerIcon(seat_type)); label.setVerticalAlignment(SwingConstants.TOP); initPopupMenu(seat_num, seat_type); break; case 1: // West label.setIcon(getPlayerIcon(seat_type)); label.setVerticalTextPosition(SwingConstants.BOTTOM); label.setHorizontalTextPosition(SwingConstants.CENTER); label.setHorizontalAlignment(SwingConstants.LEFT); initPopupMenu(seat_num, seat_type); break; case 2: // North label.setIcon(getPlayerIcon(seat_type)); label.setVerticalAlignment(SwingConstants.TOP); initPopupMenu(seat_num, seat_type); break; case 3: // East label.setIcon(getPlayerIcon(seat_type)); label.setVerticalTextPosition(SwingConstants.BOTTOM); label.setHorizontalTextPosition(SwingConstants.CENTER); label.setHorizontalAlignment(SwingConstants.RIGHT); initPopupMenu(seat_num, seat_type); break; default: throw new UnsupportedOperationException( "More than 4 players not supported yet."); } } }); }
45800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45800/23297b98c08218eabfb0ce50651df65538ee0abb/CardGamePanel.java/clean/java/src/ggz/cards/CardGamePanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 6881, 67, 14872, 12, 6385, 509, 695, 270, 67, 2107, 16, 727, 3265, 270, 559, 1592, 67, 723, 16, 5411, 727, 514, 1592, 67, 529, 13, 288, 3639, 26145, 11864, 18, 14407, 20607, 12, 2704, 10254, 1435, 288, 5411, 1071, 918, 1086, 1435, 288, 7734, 21403, 1433, 273, 7291, 5888, 63, 307, 270, 67, 2107, 15533, 7734, 19185, 7291, 273, 5270, 1227, 18, 588, 67, 82, 451, 67, 14872, 12, 307, 270, 67, 2107, 1769, 7734, 309, 261, 1925, 422, 446, 13, 288, 10792, 1433, 273, 394, 21403, 12, 14872, 18, 588, 67, 529, 10663, 10792, 10063, 284, 273, 1433, 18, 588, 5711, 5621, 10792, 1433, 18, 542, 5711, 12, 74, 18, 765, 688, 5711, 12, 74, 18, 588, 2885, 1435, 3602, 10063, 18, 38, 11846, 10019, 10792, 1433, 18, 542, 23206, 12, 2957, 18, 16861, 1769, 10792, 1014, 18, 1289, 12, 1925, 16, 394, 3555, 4878, 12, 18701, 3555, 4878, 18, 52, 22166, 67, 13545, 16, 695, 270, 67, 2107, 10019, 10792, 7291, 5888, 63, 307, 270, 67, 2107, 65, 273, 1433, 31, 10792, 368, 430, 261, 307, 270, 67, 2107, 480, 374, 13, 288, 13491, 368, 13426, 364, 4682, 2641, 1427, 487, 358, 1843, 731, 279, 3824, 716, 13491, 368, 5360, 3677, 358, 741, 9198, 358, 333, 695, 270, 18, 13491, 1433, 18, 1289, 9186, 2223, 12, 2704, 10264, 416, 2223, 10663, 13491, 1433, 18, 542, 29250, 1528, 2932, 4726, 4682, 364, 702, 1199, 1769, 10792, 19363, 7734, 289, 469, 288, 10792, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6881, 67, 14872, 12, 6385, 509, 695, 270, 67, 2107, 16, 727, 3265, 270, 559, 1592, 67, 723, 16, 5411, 727, 514, 1592, 67, 529, 13, 288, 3639, 26145, 11864, 18, 14407, 20607, 12, 2704, 10254, 1435, 288, 5411, 1071, 918, 1086, 1435, 288, 7734, 21403, 1433, 273, 7291, 5888, 63, 307, 270, 67, 2107, 15533, 7734, 19185, 7291, 273, 5270, 1227, 18, 588, 67, 82, 451, 67, 14872, 12, 307, 270, 67, 2107, 1769, 7734, 309, 261, 1925, 422, 446, 13, 288, 10792, 1433, 273, 394, 21403, 12, 14872, 18, 588, 67, 529, 10663, 10792, 10063, 284, 273, 1433, 18, 588, 5711, 5621, 10792, 1433, 18, 542, 5711, 12, 74, 18, 765, 688, 5711, 12, 2 ]
return getResultSet(this, fields, tuples, recv_status, update_count);
return getResultSet(this, fields, tuples, recv_status, update_count, insert_oid);
public java.sql.ResultSet ExecSQL(String sql) throws SQLException { // added Oct 7 1998 to give us thread safety. synchronized(pg_stream) { Field[] fields = null; Vector tuples = new Vector(); byte[] buf = new byte[sql.length()]; int fqp = 0; boolean hfr = false; String recv_status = null, msg; int update_count = 1; SQLException final_error = null; // Commented out as the backend can now handle queries // larger than 8K. Peter June 6 2000 //if (sql.length() > 8192) //throw new PSQLException("postgresql.con.toolong",sql); try { pg_stream.SendChar('Q'); buf = sql.getBytes(); pg_stream.Send(buf); pg_stream.SendChar(0); pg_stream.flush(); } catch (IOException e) { throw new PSQLException("postgresql.con.ioerror",e); } while (!hfr || fqp > 0) { Object tup=null; // holds rows as they are recieved int c = pg_stream.ReceiveChar(); switch (c) { case 'A': // Asynchronous Notify pid = pg_stream.ReceiveInteger(4); msg = pg_stream.ReceiveString(8192); break; case 'B': // Binary Data Transfer if (fields == null) throw new PSQLException("postgresql.con.tuple"); tup = pg_stream.ReceiveTuple(fields.length, true); // This implements Statement.setMaxRows() if(maxrows==0 || tuples.size()<maxrows) tuples.addElement(tup); break; case 'C': // Command Status recv_status = pg_stream.ReceiveString(8192); // Now handle the update count correctly. if(recv_status.startsWith("INSERT") || recv_status.startsWith("UPDATE")) { try { update_count = Integer.parseInt(recv_status.substring(1+recv_status.lastIndexOf(' '))); } catch(NumberFormatException nfe) { throw new PSQLException("postgresql.con.fathom",recv_status); } } if (fields != null) hfr = true; else { try { pg_stream.SendChar('Q'); pg_stream.SendChar(' '); pg_stream.SendChar(0); pg_stream.flush(); } catch (IOException e) { throw new PSQLException("postgresql.con.ioerror",e); } fqp++; } break; case 'D': // Text Data Transfer if (fields == null) throw new PSQLException("postgresql.con.tuple"); tup = pg_stream.ReceiveTuple(fields.length, false); // This implements Statement.setMaxRows() if(maxrows==0 || tuples.size()<maxrows) tuples.addElement(tup); break; case 'E': // Error Message msg = pg_stream.ReceiveString(4096); final_error = new SQLException(msg); hfr = true; break; case 'I': // Empty Query int t = pg_stream.ReceiveChar(); if (t != 0) throw new PSQLException("postgresql.con.garbled"); if (fqp > 0) fqp--; if (fqp == 0) hfr = true; break; case 'N': // Error Notification addWarning(pg_stream.ReceiveString(4096)); break; case 'P': // Portal Name String pname = pg_stream.ReceiveString(8192); break; case 'T': // MetaData Field Description if (fields != null) throw new PSQLException("postgresql.con.multres"); fields = ReceiveFields(); break; case 'Z': // backend ready for query, ignore for now :-) break; default: throw new PSQLException("postgresql.con.type",new Character((char)c)); } } if (final_error != null) throw final_error; return getResultSet(this, fields, tuples, recv_status, update_count); } }
47288 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47288/e3cc370d155c3cbf97f179a98d64c2ce1550e25f/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2252, 18, 4669, 18, 13198, 3889, 3997, 12, 780, 1847, 13, 1216, 6483, 565, 288, 202, 759, 3096, 29482, 2371, 23673, 28, 358, 8492, 584, 2650, 24179, 18, 202, 22043, 12, 8365, 67, 3256, 13, 288, 202, 377, 202, 565, 2286, 8526, 1466, 273, 446, 31, 202, 565, 5589, 10384, 273, 394, 5589, 5621, 202, 565, 1160, 8526, 1681, 273, 394, 1160, 63, 4669, 18, 2469, 1435, 15533, 202, 565, 509, 8508, 84, 273, 374, 31, 202, 565, 1250, 366, 4840, 273, 629, 31, 202, 565, 514, 10665, 67, 2327, 273, 446, 16, 1234, 31, 202, 202, 474, 1089, 67, 1883, 273, 404, 31, 202, 565, 6483, 727, 67, 1636, 273, 446, 31, 202, 377, 202, 565, 368, 9821, 329, 596, 487, 326, 4221, 848, 2037, 1640, 6218, 202, 565, 368, 10974, 2353, 1725, 47, 18, 453, 847, 804, 7556, 1666, 16291, 202, 565, 368, 430, 261, 4669, 18, 2469, 1435, 405, 26730, 13, 202, 565, 368, 12849, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 6738, 932, 3113, 4669, 1769, 202, 565, 775, 202, 202, 95, 1082, 565, 7184, 67, 3256, 18, 3826, 2156, 2668, 53, 8284, 1082, 565, 1681, 273, 1847, 18, 588, 2160, 5621, 1082, 565, 7184, 67, 3256, 18, 3826, 12, 4385, 1769, 1082, 565, 7184, 67, 3256, 18, 3826, 2156, 12, 20, 1769, 1082, 565, 7184, 67, 3256, 18, 11330, 5621, 202, 202, 97, 1044, 261, 14106, 425, 13, 288, 1082, 565, 604, 394, 453, 23116, 2932, 2767, 24330, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2252, 18, 4669, 18, 13198, 3889, 3997, 12, 780, 1847, 13, 1216, 6483, 565, 288, 202, 759, 3096, 29482, 2371, 23673, 28, 358, 8492, 584, 2650, 24179, 18, 202, 22043, 12, 8365, 67, 3256, 13, 288, 202, 377, 202, 565, 2286, 8526, 1466, 273, 446, 31, 202, 565, 5589, 10384, 273, 394, 5589, 5621, 202, 565, 1160, 8526, 1681, 273, 394, 1160, 63, 4669, 18, 2469, 1435, 15533, 202, 565, 509, 8508, 84, 273, 374, 31, 202, 565, 1250, 366, 4840, 273, 629, 31, 202, 565, 514, 10665, 67, 2327, 273, 446, 16, 1234, 31, 202, 202, 474, 1089, 67, 1883, 273, 404, 31, 202, 565, 6483, 727, 67, 1636, 273, 446, 31, 202, 377, 202, 565, 2 ]
private void logon(BwUser val) throws CalFacadeException {
public void logon(BwUser val) throws CalFacadeException {
private void logon(BwUser val) throws CalFacadeException { checkOpen(); throw new CalFacadeUnimplementedException(); }
50848 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50848/3ca74a4186787c892666b07068999190a0136990/CalintfCaldavImpl.java/clean/calendar3/caldavClientApi/src/org/bedework/caldav/client/CalintfCaldavImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 613, 265, 12, 38, 91, 1299, 1244, 13, 1216, 3596, 12467, 503, 288, 565, 866, 3678, 5621, 565, 604, 394, 3596, 12467, 984, 21099, 503, 5621, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 613, 265, 12, 38, 91, 1299, 1244, 13, 1216, 3596, 12467, 503, 288, 565, 866, 3678, 5621, 565, 604, 394, 3596, 12467, 984, 21099, 503, 5621, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
}
}
public void startPrefixMapping(String s, String s1) { }
54445 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54445/e47323e0c50b0c8242590160c0fc5fc7fa54c59d/XFormsUtils.java/buggy/src/java/org/orbeon/oxf/xforms/XFormsUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 918, 787, 2244, 3233, 12, 780, 272, 16, 514, 272, 21, 13, 288, 10792, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5397, 1071, 918, 787, 2244, 3233, 12, 780, 272, 16, 514, 272, 21, 13, 288, 10792, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public Object buildObject(Class clazz, Object[] params) { // Create a wrapper object to do the search with Object o = super.buildObject(clazz, params); // Create the Hibernate query to look it up with String queryText; String queryType; if (o instanceof SimpleNamespace) { queryText = "from Namespace as ns where ns.name = ?"; queryType = "Namespace"; } else if (o instanceof SimpleComparableOntology) { queryText = "from Ontology as o where o.name = ?"; queryType = "Ontology"; } else if (o instanceof SimpleNCBITaxon) { queryText = "from Taxon as o where o.NCBITaxID = ?"; queryType = "Taxon"; } else if (o instanceof SimpleCrossRef) { queryText = "from CrossRef as cr where cr.dbname = ? and cr.accession = ?"; queryType = "CrossRef"; } else if (o instanceof SimpleDocRef) { queryText = "from DocRef as cr where cr.authors = ? and cr.location = ?"; queryType = "DocRef"; } else throw new IllegalArgumentException("Don't know how to handle objects of type "+clazz); // Run the query. try { // Build the query object Object query = this.createQuery.invoke(this.session, new Object[]{queryText}); // Set the parameters for (int i = 0; i < params.length; i++) { query = this.setParameter.invoke(query, new Object[]{new Integer(i), params[i]}); } // Get the results List results = (List)this.list.invoke(query, null); // Return the found object, if found if (results.size()>0) return results.get(0); // Persist and return the wrapper object otherwise else { this.persist.invoke(this.session, new Object[]{queryType,o}); return o; } } catch (Exception e) { // Write a useful message explaining what we were trying to do. It will // be in the form "class(param,param...)". StringBuffer paramsstuff = new StringBuffer(); paramsstuff.append(clazz); paramsstuff.append("("); for (int i = 0; i < params.length; i++) { paramsstuff.append(params[i].toString()); if (i<(params.length-1)) paramsstuff.append(","); } paramsstuff.append(")"); // Throw the exception with our nice message throw new RuntimeException("Error while trying to call new "+paramsstuff,e); } }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/39156c2624daee22ca1714ee4ac60358740087a7/HibernateRichObjectBuilder.java/buggy/src/org/biojavax/bio/db/HibernateRichObjectBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1361, 921, 12, 797, 4003, 16, 1033, 8526, 859, 13, 288, 3639, 368, 1788, 279, 4053, 733, 358, 741, 326, 1623, 598, 3639, 1033, 320, 273, 2240, 18, 3510, 921, 12, 830, 3638, 16, 859, 1769, 3639, 368, 1788, 326, 670, 24360, 843, 358, 2324, 518, 731, 598, 3639, 514, 843, 1528, 31, 3639, 514, 843, 559, 31, 3639, 309, 261, 83, 1276, 4477, 3402, 13, 288, 5411, 843, 1528, 273, 315, 2080, 6005, 487, 3153, 1625, 3153, 18, 529, 273, 692, 14432, 5411, 843, 559, 273, 315, 3402, 14432, 3639, 289, 469, 309, 261, 83, 1276, 4477, 799, 10207, 51, 19610, 13, 288, 5411, 843, 1528, 273, 315, 2080, 29683, 487, 320, 1625, 320, 18, 529, 273, 692, 14432, 5411, 843, 559, 273, 315, 51, 19610, 14432, 3639, 289, 469, 309, 261, 83, 1276, 4477, 50, 8876, 1285, 651, 265, 13, 288, 5411, 843, 1528, 273, 315, 2080, 18240, 265, 487, 320, 1625, 320, 18, 50, 8876, 1285, 651, 734, 273, 692, 14432, 5411, 843, 559, 273, 315, 7731, 265, 14432, 3639, 289, 469, 309, 261, 83, 1276, 4477, 13941, 1957, 13, 288, 5411, 843, 1528, 273, 315, 2080, 19742, 1957, 487, 4422, 1625, 4422, 18, 20979, 273, 692, 471, 4422, 18, 3860, 285, 273, 692, 14432, 5411, 843, 559, 273, 315, 13941, 1957, 14432, 3639, 289, 469, 309, 261, 83, 1276, 4477, 1759, 1957, 13, 288, 5411, 843, 1528, 273, 315, 2080, 3521, 1957, 487, 4422, 1625, 4422, 18, 19368, 273, 692, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1361, 921, 12, 797, 4003, 16, 1033, 8526, 859, 13, 288, 3639, 368, 1788, 279, 4053, 733, 358, 741, 326, 1623, 598, 3639, 1033, 320, 273, 2240, 18, 3510, 921, 12, 830, 3638, 16, 859, 1769, 3639, 368, 1788, 326, 670, 24360, 843, 358, 2324, 518, 731, 598, 3639, 514, 843, 1528, 31, 3639, 514, 843, 559, 31, 3639, 309, 261, 83, 1276, 4477, 3402, 13, 288, 5411, 843, 1528, 273, 315, 2080, 6005, 487, 3153, 1625, 3153, 18, 529, 273, 692, 14432, 5411, 843, 559, 273, 315, 3402, 14432, 3639, 289, 469, 309, 261, 83, 1276, 4477, 799, 10207, 51, 19610, 13, 288, 5411, 843, 1528, 273, 315, 2080, 29683, 487, 320, 1625, 320, 18, 2 ]
public org.quickfix.field.SecurityDesc getSecurityDesc() throws FieldNotFound { org.quickfix.field.SecurityDesc value = new org.quickfix.field.SecurityDesc();
public quickfix.field.SecurityDesc getSecurityDesc() throws FieldNotFound { quickfix.field.SecurityDesc value = new quickfix.field.SecurityDesc();
public org.quickfix.field.SecurityDesc getSecurityDesc() throws FieldNotFound { org.quickfix.field.SecurityDesc value = new org.quickfix.field.SecurityDesc(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/DontKnowTrade.java/clean/src/java/src/quickfix/fix41/DontKnowTrade.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 4217, 19288, 4217, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 4217, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 4217, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 4217, 19288, 4217, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 4217, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 4217, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
throw new AssertError("[BUG] Run again with Asserts.ENABLE_ASSERT=true");
protected IRubyObject invokeMethod(IRubyObject recv, Object[] methodArgs) { if (isRestArgs) { methodArgs = packageRestArgumentsForReflection(methodArgs); } try { return invokeMethod0(recv, methodArgs); } catch (InvocationTargetException e) { if (e.getTargetException() instanceof RaiseException) { throw (RaiseException) e.getTargetException(); } else if (e.getTargetException() instanceof JumpException) { throw (JumpException) e.getTargetException(); } else if (e.getTargetException() instanceof ThreadKill) { // allow it to bubble up throw (ThreadKill) e.getTargetException(); } else if (e.getTargetException() instanceof Exception) { recv.getRuntime().getJavaSupport().handleNativeException(e.getTargetException()); return recv.getRuntime().getNil(); } else { throw (Error) e.getTargetException(); } } catch (IllegalAccessException e) { StringBuffer message = new StringBuffer(); message.append(e.getMessage()); message.append(':'); message.append(" methodName=").append(methodName); message.append(" recv=").append(recv.toString()); message.append(" type=").append(type.getName()); message.append(" methodArgs=["); for (int i = 0; i < methodArgs.length; i++) { message.append(methodArgs[i]); message.append(' '); } message.append(']'); Asserts.notReached(message.toString()); } catch (final IllegalArgumentException e) { throw new RaiseException(recv.getRuntime(), "TypeError", e.getMessage()); } throw new AssertError("[BUG] Run again with Asserts.ENABLE_ASSERT=true"); }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/b72a2862ae5b2f01f9a767ef2ce248fd785857c4/AbstractCallback.java/clean/src/org/jruby/runtime/callback/AbstractCallback.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 15908, 10340, 921, 27632, 12, 7937, 10340, 921, 10665, 16, 1033, 8526, 707, 2615, 13, 288, 377, 202, 430, 261, 291, 5188, 2615, 13, 288, 377, 202, 202, 2039, 2615, 273, 2181, 5188, 4628, 1290, 9801, 12, 2039, 2615, 1769, 377, 202, 97, 3639, 775, 288, 540, 202, 2463, 27632, 20, 12, 18334, 16, 707, 2615, 1769, 3639, 289, 1044, 261, 9267, 14950, 425, 13, 288, 5411, 309, 261, 73, 18, 588, 14950, 1435, 1276, 20539, 503, 13, 288, 7734, 604, 261, 30570, 503, 13, 425, 18, 588, 14950, 5621, 5411, 289, 469, 309, 261, 73, 18, 588, 14950, 1435, 1276, 804, 2801, 503, 13, 288, 7734, 604, 261, 26743, 503, 13, 425, 18, 588, 14950, 5621, 5411, 289, 469, 309, 261, 73, 18, 588, 14950, 1435, 1276, 4884, 19045, 13, 288, 2398, 202, 759, 1699, 518, 358, 21577, 731, 2398, 202, 12849, 261, 3830, 19045, 13, 425, 18, 588, 14950, 5621, 5411, 289, 469, 309, 261, 73, 18, 588, 14950, 1435, 1276, 1185, 13, 288, 7734, 10665, 18, 588, 5576, 7675, 588, 5852, 6289, 7675, 4110, 9220, 503, 12, 73, 18, 588, 14950, 10663, 7734, 327, 10665, 18, 588, 5576, 7675, 588, 12616, 5621, 5411, 289, 469, 288, 7734, 604, 261, 668, 13, 425, 18, 588, 14950, 5621, 5411, 289, 3639, 289, 1044, 261, 12195, 9773, 425, 13, 288, 5411, 6674, 883, 273, 394, 6674, 5621, 5411, 883, 18, 6923, 12, 73, 18, 24906, 10663, 5411, 883, 18, 6923, 2668, 2497, 1769, 5411, 883, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 27632, 12, 7937, 10340, 921, 10665, 16, 1033, 8526, 707, 2615, 13, 288, 377, 202, 430, 261, 291, 5188, 2615, 13, 288, 377, 202, 202, 2039, 2615, 273, 2181, 5188, 4628, 1290, 9801, 12, 2039, 2615, 1769, 377, 202, 97, 3639, 775, 288, 540, 202, 2463, 27632, 20, 12, 18334, 16, 707, 2615, 1769, 3639, 289, 1044, 261, 9267, 14950, 425, 13, 288, 5411, 309, 261, 73, 18, 588, 14950, 1435, 1276, 20539, 503, 13, 288, 7734, 604, 261, 30570, 503, 13, 425, 18, 588, 14950, 5621, 5411, 289, 469, 309, 261, 73, 18, 588, 14950, 1435, 1276, 804, 2801, 503, 13, 288, 7734, 604, 261, 26743, 503, 13, 425, 18, 588, 14950, 5621, 2 ]
else { System.out.println(); } }
InvokerHelper.invokeMethod(object, "println", ArgumentListExpression.EMPTY_ARRAY); }
public void println() { Object object = getProperty("out"); if (object != null) { InvokerHelper.invokeMethod(object, "println", ArgumentListExpression.EMPTY_ARRAY); } else { System.out.println(); } }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/f6dafee96aeb8b02bc5948750fab3f9237439dc0/Script.java/clean/src/main/groovy/lang/Script.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3785, 1435, 288, 3639, 1033, 733, 273, 3911, 2932, 659, 8863, 3639, 309, 261, 1612, 480, 446, 13, 288, 5411, 17602, 264, 2276, 18, 14407, 1305, 12, 1612, 16, 315, 8222, 3113, 5067, 682, 2300, 18, 13625, 67, 8552, 1769, 3639, 289, 3639, 469, 288, 5411, 2332, 18, 659, 18, 8222, 5621, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 3785, 1435, 288, 3639, 1033, 733, 273, 3911, 2932, 659, 8863, 3639, 309, 261, 1612, 480, 446, 13, 288, 5411, 17602, 264, 2276, 18, 14407, 1305, 12, 1612, 16, 315, 8222, 3113, 5067, 682, 2300, 18, 13625, 67, 8552, 1769, 3639, 289, 3639, 469, 288, 5411, 2332, 18, 659, 18, 8222, 5621, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
shell.setText("B.I.R.T Chart Library - Font Definition Dialog:");
shell.setText("Font Definition Dialog:");
public FontDefinitionDialog(FontDefinition fdCurrent, ColorDefinition cdCurrent) { this.fdCurrent = (FontDefinition) EcoreUtil.copy(fdCurrent); this.cdCurrent = (ColorDefinition) EcoreUtil.copy(cdCurrent); this.fdBackup = (FontDefinition) EcoreUtil.copy(fdCurrent); this.cdBackup = (ColorDefinition) EcoreUtil.copy(cdCurrent); shell = new Shell(Display.getCurrent()); GridLayout gridLayout = new GridLayout(); gridLayout.numColumns = 2; shell.setLayout(new FillLayout()); placeComponents(); populateLists(); shell.setText("B.I.R.T Chart Library - Font Definition Dialog:"); shell.setSize(450, 480); shell.open(); while (!shell.isDisposed()) { if (!shell.getDisplay().readAndDispatch()) { shell.getDisplay().sleep(); } } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/3312cd0d7d4efb945ae26dd43efddc7cb433aa3c/FontDefinitionDialog.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FontDefinitionDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10063, 1852, 6353, 12, 5711, 1852, 5194, 3935, 16, 5563, 1852, 7976, 3935, 13, 565, 288, 3639, 333, 18, 8313, 3935, 273, 261, 5711, 1852, 13, 512, 3644, 1304, 18, 3530, 12, 8313, 3935, 1769, 3639, 333, 18, 4315, 3935, 273, 261, 2957, 1852, 13, 512, 3644, 1304, 18, 3530, 12, 4315, 3935, 1769, 3639, 333, 18, 8313, 6248, 273, 261, 5711, 1852, 13, 512, 3644, 1304, 18, 3530, 12, 8313, 3935, 1769, 3639, 333, 18, 4315, 6248, 273, 261, 2957, 1852, 13, 512, 3644, 1304, 18, 3530, 12, 4315, 3935, 1769, 3639, 5972, 273, 394, 19433, 12, 4236, 18, 588, 3935, 10663, 3639, 7145, 3744, 3068, 3744, 273, 394, 7145, 3744, 5621, 3639, 3068, 3744, 18, 2107, 3380, 273, 576, 31, 3639, 5972, 18, 542, 3744, 12, 2704, 14192, 3744, 10663, 3639, 3166, 7171, 5621, 3639, 6490, 7432, 5621, 3639, 5972, 18, 542, 1528, 2932, 5711, 10849, 17242, 2773, 1769, 3639, 5972, 18, 542, 1225, 12, 24, 3361, 16, 1059, 3672, 1769, 3639, 5972, 18, 3190, 5621, 3639, 1323, 16051, 10304, 18, 291, 1669, 7423, 10756, 3639, 288, 5411, 309, 16051, 10304, 18, 588, 4236, 7675, 896, 1876, 5325, 10756, 5411, 288, 7734, 5972, 18, 588, 4236, 7675, 19607, 5621, 5411, 289, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10063, 1852, 6353, 12, 5711, 1852, 5194, 3935, 16, 5563, 1852, 7976, 3935, 13, 565, 288, 3639, 333, 18, 8313, 3935, 273, 261, 5711, 1852, 13, 512, 3644, 1304, 18, 3530, 12, 8313, 3935, 1769, 3639, 333, 18, 4315, 3935, 273, 261, 2957, 1852, 13, 512, 3644, 1304, 18, 3530, 12, 4315, 3935, 1769, 3639, 333, 18, 8313, 6248, 273, 261, 5711, 1852, 13, 512, 3644, 1304, 18, 3530, 12, 8313, 3935, 1769, 3639, 333, 18, 4315, 6248, 273, 261, 2957, 1852, 13, 512, 3644, 1304, 18, 3530, 12, 4315, 3935, 1769, 3639, 5972, 273, 394, 19433, 12, 4236, 18, 588, 3935, 10663, 3639, 7145, 3744, 3068, 3744, 273, 394, 7145, 3744, 5621, 3639, 3068, 3744, 18, 2 ]
assertEquals(t1.IDENTIFIER, ev.getType());
assertEquals(ComparableTerm.IDENTIFIER, ev.getType());
public void testSetIdentifier() { System.out.println("testSetIdentifier"); //can be null try{t1.setDescription(null);}catch(Exception ex){ fail("Not expecting "+ex.getClass().getName());} String ident = "my_ident"; try{ t1.setIdentifier(ident); assertEquals(ident, t1.getIdentifier()); //should generate an event ChangeEvent ev = cr.getEvent(); assertNotNull(ev); //of the correct type assertEquals(t1.IDENTIFIER, ev.getType()); //old value should be null assertNull(ev.getPrevious()); //new should be desc assertEquals(ident, ev.getChange()); }catch(Exception ex){fail("Not expecting "+ex.getClass().getName());} }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/dc62a0a7cf481c21c3be647214959067a3b98f61/SimpleComparableTermTest.java/buggy/tests/org/biojavax/ontology/SimpleComparableTermTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 694, 3004, 1435, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 3813, 694, 3004, 8863, 7734, 368, 4169, 506, 446, 3639, 775, 95, 88, 21, 18, 542, 3291, 12, 2011, 1769, 97, 14683, 12, 503, 431, 15329, 2321, 2932, 1248, 17012, 13773, 338, 18, 588, 797, 7675, 17994, 10663, 97, 7734, 514, 3390, 273, 315, 4811, 67, 6392, 14432, 3639, 775, 95, 5411, 268, 21, 18, 542, 3004, 12, 6392, 1769, 5411, 1815, 8867, 12, 6392, 16, 268, 21, 18, 588, 3004, 10663, 13491, 368, 13139, 2103, 392, 871, 5411, 7576, 1133, 2113, 273, 4422, 18, 588, 1133, 5621, 5411, 25395, 12, 14965, 1769, 5411, 368, 792, 326, 3434, 618, 5411, 1815, 8867, 12, 799, 10207, 4065, 18, 16606, 16, 2113, 18, 588, 559, 10663, 5411, 368, 1673, 460, 1410, 506, 446, 5411, 1815, 2041, 12, 14965, 18, 588, 8351, 10663, 5411, 368, 2704, 1410, 506, 3044, 5411, 1815, 8867, 12, 6392, 16, 2113, 18, 588, 3043, 10663, 3639, 289, 14683, 12, 503, 431, 15329, 6870, 2932, 1248, 17012, 13773, 338, 18, 588, 797, 7675, 17994, 10663, 97, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 1842, 694, 3004, 1435, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 3813, 694, 3004, 8863, 7734, 368, 4169, 506, 446, 3639, 775, 95, 88, 21, 18, 542, 3291, 12, 2011, 1769, 97, 14683, 12, 503, 431, 15329, 2321, 2932, 1248, 17012, 13773, 338, 18, 588, 797, 7675, 17994, 10663, 97, 7734, 514, 3390, 273, 315, 4811, 67, 6392, 14432, 3639, 775, 95, 5411, 268, 21, 18, 542, 3004, 12, 6392, 1769, 5411, 1815, 8867, 12, 6392, 16, 268, 21, 18, 588, 3004, 10663, 13491, 368, 13139, 2103, 392, 871, 5411, 7576, 1133, 2113, 273, 4422, 18, 588, 1133, 5621, 5411, 25395, 12, 14965, 1769, 5411, 368, 792, 326, 3434, 618, 5411, 1815, 8867, 12, 799, 2 ]
DBConnect dbc = new DBConnect( m_conPool, sqlQuery ); dbc.getConnection(); dbc.createStatement();
DBConnect dbc = new DBConnect( m_conPool, sqlQuery ); dbc.getConnection(); dbc.createStatement();
public String[][] sqlQueryMulti( String sqlQuery ) { Vector data = new Vector(); DBConnect dbc = new DBConnect( m_conPool, sqlQuery ); dbc.getConnection(); dbc.createStatement(); data = dbc.executeQuery(); int columns = dbc.getColumnCount(); if( columns == 0 ) return new String[0][0]; int rows = data.size() / columns; dbc.clearResultSet(); dbc.closeConnection(); String result[][] = new String[rows][columns]; for( int i = 0; i < rows; i++ ) { for( int j = 0; j < columns; j++ ) { result[i][j] = null != data.elementAt( i * columns + j ) ? data.elementAt( i * columns + j ).toString() : null; } } return result; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/2b8ca505bb7abac1b4914c5928bf113f742f3bbb/IMCService.java/buggy/server/src/imcode/server/IMCService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 514, 63, 6362, 65, 24451, 5002, 12, 514, 24451, 262, 288, 1377, 5589, 501, 273, 394, 5589, 5621, 1377, 2383, 5215, 9881, 273, 394, 2383, 5215, 12, 312, 67, 591, 2864, 16, 24451, 11272, 1377, 9881, 18, 588, 1952, 5621, 1377, 9881, 18, 2640, 3406, 5621, 1377, 501, 273, 9881, 18, 8837, 1138, 5621, 1377, 509, 2168, 273, 9881, 18, 588, 1494, 1380, 5621, 1377, 309, 12, 2168, 422, 374, 262, 540, 327, 394, 514, 63, 20, 6362, 20, 15533, 1377, 509, 2595, 273, 501, 18, 1467, 1435, 342, 2168, 31, 1377, 9881, 18, 8507, 13198, 5621, 1377, 9881, 18, 4412, 1952, 5621, 1377, 514, 563, 63, 6362, 65, 273, 394, 514, 63, 3870, 6362, 5112, 15533, 1377, 364, 12, 509, 277, 273, 374, 31, 277, 411, 2595, 31, 277, 9904, 262, 288, 540, 364, 12, 509, 525, 273, 374, 31, 525, 411, 2168, 31, 525, 9904, 262, 288, 5411, 563, 63, 77, 6362, 78, 65, 273, 446, 480, 501, 18, 2956, 861, 12, 277, 380, 2168, 397, 525, 262, 692, 501, 18, 2956, 861, 12, 277, 380, 2168, 397, 525, 262, 18, 10492, 1435, 294, 446, 31, 540, 289, 1377, 289, 1377, 327, 563, 31, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 514, 63, 6362, 65, 24451, 5002, 12, 514, 24451, 262, 288, 1377, 5589, 501, 273, 394, 5589, 5621, 1377, 2383, 5215, 9881, 273, 394, 2383, 5215, 12, 312, 67, 591, 2864, 16, 24451, 11272, 1377, 9881, 18, 588, 1952, 5621, 1377, 9881, 18, 2640, 3406, 5621, 1377, 501, 273, 9881, 18, 8837, 1138, 5621, 1377, 509, 2168, 273, 9881, 18, 588, 1494, 1380, 5621, 1377, 309, 12, 2168, 422, 374, 262, 540, 327, 394, 514, 63, 20, 6362, 20, 15533, 1377, 509, 2595, 273, 501, 18, 1467, 1435, 342, 2168, 31, 1377, 9881, 18, 8507, 13198, 5621, 1377, 9881, 18, 4412, 1952, 5621, 1377, 514, 563, 63, 6362, 65, 273, 394, 514, 63, 3870, 6362, 5112, 15533, 2 ]
final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;
final int TRY_SCOPE_SHFT = LOCAL_SHFT + theData.itsMaxLocals;
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK,// sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; double lDbl; int rIntValue; double rDbl;// tryStack[2 * i]: starting pc of catch block// tryStack[2 * i + 1]: starting pc of finally block int[] tryStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : if (tryStackTop == 0) { tryStack = new int[maxTryDepth * 2]; } i = getTarget(iCode, pc + 1); if (i == pc) i = 0; tryStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; tryStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); name = strings[getShort(iCode, pc + 3)]; count = getShort(iCode, pc + 5); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch for (;;) { if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof WrappedException) { Object w = ((WrappedException) ex).unwrap(); if (w instanceof Throwable) { ex = (Throwable) w; continue; } errObj = ex; exType = RUNTIME; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } break; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = tryStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = tryStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; } } if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/7ab2eb958bc5d5b8575262b37554c7e600ccf6e9/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 282, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 326, 751, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 309, 261, 71, 92, 18, 2761, 11599, 4368, 3748, 480, 326, 751, 18, 7462, 3748, 13, 288, 6647, 368, 971, 4373, 3748, 353, 3775, 16, 1089, 2461, 316, 385, 352, 408, 6647, 368, 471, 745, 365, 3613, 394, 2461, 5411, 1033, 5198, 3748, 273, 9494, 18, 2761, 11599, 4368, 3748, 31, 5411, 9494, 18, 2761, 11599, 4368, 3748, 273, 326, 751, 18, 7462, 3748, 31, 5411, 775, 288, 7734, 327, 10634, 12, 71, 92, 16, 2146, 16, 15261, 16, 833, 16, 2295, 1162, 3651, 16, 326, 751, 1769, 5411, 289, 3095, 288, 7734, 9494, 18, 2761, 11599, 4368, 3748, 273, 5198, 3748, 31, 5411, 289, 3639, 289, 3639, 509, 277, 31, 3639, 1033, 8499, 31, 3639, 727, 509, 943, 2624, 273, 326, 751, 18, 1282, 2747, 2624, 31, 3639, 727, 509, 943, 5555, 273, 261, 4293, 1162, 3651, 18, 3175, 1557, 422, 446, 13, 18701, 692, 374, 294, 2295, 1162, 3651, 18, 3175, 1557, 18, 2469, 31, 3639, 727, 509, 943, 1333, 1031, 273, 326, 751, 18, 1282, 2747, 1333, 1031, 31, 3639, 727, 509, 943, 7833, 6148, 273, 326, 751, 18, 1282, 2747, 7833, 6148, 31, 3639, 727, 509, 8350, 67, 2664, 4464, 273, 943, 2624, 31, 3639, 727, 509, 15234, 67, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 282, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 326, 751, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 309, 261, 71, 92, 18, 2761, 11599, 4368, 3748, 480, 326, 751, 18, 7462, 3748, 13, 288, 6647, 368, 971, 4373, 3748, 353, 3775, 16, 1089, 2461, 316, 385, 352, 408, 6647, 368, 471, 745, 365, 3613, 394, 2461, 5411, 1033, 5198, 3748, 273, 9494, 18, 2761, 11599, 4368, 3748, 31, 5411, 9494, 18, 2761, 11599, 4368, 3748, 273, 326, 751, 18, 7462, 3748, 31, 5411, 775, 288, 7734, 327, 10634, 12, 71, 92, 16, 2 ]
if (getSourcespath() == null)
if (getSourcespath() == null) {
public void execute() throws BuildException { CommandlineJava commandline = new CommandlineJava(); if("text".equals(format)) commandline.setClassname("jdepend.textui.JDepend"); else if("xml".equals(format)) commandline.setClassname("jdepend.xmlui.JDepend"); if(_jvm!=null) commandline.setVm(_jvm); if (getSourcespath() == null) throw new BuildException("Missing Sourcepath required argument"); // execute the test and get the return code int exitValue = JDependTask.ERRORS; boolean wasKilled = false; if (! getFork()) { exitValue = executeInVM(commandline); } else { ExecuteWatchdog watchdog = createWatchdog(); exitValue = executeAsForked(commandline,watchdog); // null watchdog means no timeout, you'd better not check with null if (watchdog != null) { //info will be used in later version do nothing for now //wasKilled = watchdog.killedProcess(); } } // if there is an error/failure and that it should halt, stop everything otherwise // just log a statement boolean errorOccurred = exitValue == JDependTask.ERRORS; if (errorOccurred) { if (getHaltonerror()) throw new BuildException("JDepend failed", location); else log("JDepend FAILED", Project.MSG_ERR); } }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/e3b6d1fe768d87352d3d0348638911045fc4668e/JDependTask.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 1216, 18463, 288, 3639, 3498, 1369, 5852, 28305, 273, 394, 3498, 1369, 5852, 5621, 3639, 309, 2932, 955, 9654, 14963, 12, 2139, 3719, 5411, 28305, 18, 542, 20531, 2932, 78, 5817, 18, 955, 4881, 18, 46, 4584, 8863, 3639, 469, 3639, 309, 2932, 2902, 9654, 14963, 12, 2139, 3719, 5411, 28305, 18, 542, 20531, 2932, 78, 5817, 18, 2902, 4881, 18, 46, 4584, 8863, 3639, 309, 24899, 78, 3489, 5, 33, 2011, 13, 5411, 28305, 18, 542, 22143, 24899, 78, 3489, 1769, 3639, 309, 261, 588, 8628, 803, 1435, 422, 446, 13, 288, 5411, 604, 394, 18463, 2932, 4841, 4998, 803, 1931, 1237, 8863, 3639, 368, 1836, 326, 1842, 471, 336, 326, 327, 981, 3639, 509, 2427, 620, 273, 804, 4584, 2174, 18, 29127, 31, 3639, 1250, 1703, 47, 13148, 273, 629, 31, 3639, 309, 16051, 2812, 778, 10756, 288, 5411, 2427, 620, 273, 1836, 382, 7397, 12, 3076, 1369, 1769, 3639, 289, 469, 288, 5411, 7903, 5234, 20330, 4267, 20330, 273, 752, 5234, 20330, 5621, 5411, 2427, 620, 273, 1836, 1463, 22662, 329, 12, 3076, 1369, 16, 7585, 20330, 1769, 5411, 368, 446, 4267, 20330, 4696, 1158, 2021, 16, 1846, 14271, 7844, 486, 866, 598, 446, 5411, 309, 261, 7585, 20330, 480, 446, 13, 288, 7734, 368, 1376, 903, 506, 1399, 316, 5137, 1177, 741, 5083, 364, 2037, 7734, 368, 17416, 47, 13148, 273, 4267, 20330, 18, 79, 13148, 2227, 5621, 5411, 289, 3639, 289, 3639, 368, 309, 1915, 353, 392, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1836, 1435, 1216, 18463, 288, 3639, 3498, 1369, 5852, 28305, 273, 394, 3498, 1369, 5852, 5621, 3639, 309, 2932, 955, 9654, 14963, 12, 2139, 3719, 5411, 28305, 18, 542, 20531, 2932, 78, 5817, 18, 955, 4881, 18, 46, 4584, 8863, 3639, 469, 3639, 309, 2932, 2902, 9654, 14963, 12, 2139, 3719, 5411, 28305, 18, 542, 20531, 2932, 78, 5817, 18, 2902, 4881, 18, 46, 4584, 8863, 3639, 309, 24899, 78, 3489, 5, 33, 2011, 13, 5411, 28305, 18, 542, 22143, 24899, 78, 3489, 1769, 3639, 309, 261, 588, 8628, 803, 1435, 422, 446, 13, 288, 5411, 604, 394, 18463, 2932, 4841, 4998, 803, 1931, 1237, 8863, 3639, 368, 1836, 326, 1842, 471, 336, 326, 327, 981, 2 ]
ScheduledTaskListSynchJob job = new ScheduledTaskListSynchJob(500, manager);
ScheduledTaskListSynchJob job = new ScheduledTaskListSynchJob(10, manager);
public void testScheduledRefreshJob() throws InterruptedException { int counter = 3; ScheduledTaskListSynchJob job = new ScheduledTaskListSynchJob(500, manager); job.run(new NullProgressMonitor()); Thread.sleep(1500); assertTrue(job.getCount() >= counter); job.cancel(); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/e5dab796c6efd0dc2b845a7eaada8eb3254ee0c8/TaskListManagerTest.java/buggy/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskListManagerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 10660, 8323, 2278, 1435, 1216, 7558, 288, 202, 202, 474, 3895, 273, 890, 31, 202, 202, 10660, 2174, 682, 55, 2515, 2278, 1719, 273, 394, 17286, 2174, 682, 55, 2515, 2278, 12, 12483, 16, 3301, 1769, 202, 202, 4688, 18, 2681, 12, 2704, 4112, 5491, 7187, 10663, 202, 202, 3830, 18, 19607, 12, 3600, 713, 1769, 202, 202, 11231, 5510, 12, 4688, 18, 588, 1380, 1435, 1545, 3895, 1769, 202, 202, 4688, 18, 10996, 5621, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 10660, 8323, 2278, 1435, 1216, 7558, 288, 202, 202, 474, 3895, 273, 890, 31, 202, 202, 10660, 2174, 682, 55, 2515, 2278, 1719, 273, 394, 17286, 2174, 682, 55, 2515, 2278, 12, 12483, 16, 3301, 1769, 202, 202, 4688, 18, 2681, 12, 2704, 4112, 5491, 7187, 10663, 202, 202, 3830, 18, 19607, 12, 3600, 713, 1769, 202, 202, 11231, 5510, 12, 4688, 18, 588, 1380, 1435, 1545, 3895, 1769, 202, 202, 4688, 18, 10996, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public Class getType();
Class getType();
public Class getType();
45384 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45384/8402a249ca378792cd10adfab1b769c52ed0997b/Creator.java/clean/java/uk/ltd/getahead/dwr/Creator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1659, 3130, 5621, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1659, 3130, 5621, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Map typedViews = (Map)getPropertyValue(propertyDescriptor.getName() + TYPED_VIEWS, Map.class);
public DefaultGrailsControllerClass(Class clazz) { super(clazz, CONTROLLER); this.uri = SLASH + (StringUtils.isNotBlank(getPackageName()) ? getPackageName().replace('.', '/') + SLASH : "" ) + WordUtils.uncapitalize(getName()); String defaultActionName = (String)getPropertyValue(DEFAULT_CLOSURE_PROPERTY, String.class); if(defaultActionName == null) { defaultActionName = INDEX_ACTION; } this.scaffoldedClass = (Class)getPropertyValue(SCAFFOLDING_PROPERTY, Class.class); if(this.scaffoldedClass != null) { this.scaffolding = true; } else { if(getReference().isReadableProperty(SCAFFOLDING_PROPERTY)) { Object tmp = getReference().getPropertyValue(SCAFFOLDING_PROPERTY); if(tmp instanceof Boolean) { this.scaffolding = ((Boolean)tmp).booleanValue(); } } } Collection closureNames = new ArrayList(); this.uri2viewMap = new HashMap(); this.uri2closureMap = new HashMap(); this.viewNames = new HashMap(); if(this.scaffolding) { for(int i = 0; i < DefaultGrailsScaffolder.ACTION_NAMES.length;i++) { closureNames.add(DefaultGrailsScaffolder.ACTION_NAMES[i]); String viewName = (String)getPropertyValue(DefaultGrailsScaffolder.ACTION_NAMES[i] + VIEW, String.class); // if no explicity view name is specified just use action name if(viewName == null) { viewName =DefaultGrailsScaffolder.ACTION_NAMES[i]; } String tmpUri = uri + SLASH + DefaultGrailsScaffolder.ACTION_NAMES[i]; String viewUri = uri + SLASH + viewName; if (StringUtils.isNotBlank(viewName)) { this.uri2viewMap.put(tmpUri, viewUri); this.viewNames.put( DefaultGrailsScaffolder.ACTION_NAMES[i], viewUri ); } this.uri2closureMap.put(tmpUri, DefaultGrailsScaffolder.ACTION_NAMES[i]); this.uri2closureMap.put(tmpUri + "/**", DefaultGrailsScaffolder.ACTION_NAMES[i]); } } PropertyDescriptor[] propertyDescriptors = getReference().getPropertyDescriptors(); for (int i = 0; i < propertyDescriptors.length; i++) { PropertyDescriptor propertyDescriptor = propertyDescriptors[i]; Closure closure = (Closure)getPropertyValue(propertyDescriptor.getName(), Closure.class); if (closure != null) { closureNames.add(propertyDescriptor.getName()); String closureName = propertyDescriptor.getName(); String viewName = (String)getPropertyValue(propertyDescriptor.getName() + VIEW, String.class); // if no explicity view name is specified just use property name if(viewName == null) { viewName = propertyDescriptor.getName(); } Map typedViews = (Map)getPropertyValue(propertyDescriptor.getName() + TYPED_VIEWS, Map.class); String tmpUri = uri + SLASH + propertyDescriptor.getName(); String viewUri = uri + SLASH + viewName; if (StringUtils.isNotBlank(viewName)) { this.uri2viewMap.put(tmpUri, viewUri); this.viewNames.put( closureName, viewUri ); } closure = (Closure)getPropertyValue(propertyDescriptor.getName(), Closure.class); if (closure != null) { this.uri2closureMap.put(tmpUri, propertyDescriptor.getName()); this.uri2closureMap.put(tmpUri + "/**", propertyDescriptor.getName()); // TODO: This code is likely broken and needs re-thinking as there may be a better way to // handle typed views if (typedViews != null) { for (Iterator iter = typedViews.keySet().iterator(); iter.hasNext();) { String viewType = (String)iter.next(); String typedViewName = (String)typedViews.get(viewType); String typedUri = tmpUri + SLASH + viewType; this.uri2viewMap.put(typedUri, typedViewName); this.uri2closureMap.put(typedUri, propertyDescriptor.getName()); if (defaultActionName != null && defaultActionName.equals(propertyDescriptor.getName())) { this.uri2closureMap.put(uri + SLASH + viewType, propertyDescriptor.getName()); this.uri2viewMap.put(uri + SLASH + viewType, typedViewName); } } } } } } if (defaultActionName != null) { this.uri2closureMap.put(uri, defaultActionName); this.uri2closureMap.put(uri + SLASH, defaultActionName); this.uri2viewMap.put(uri + SLASH, uri + SLASH + defaultActionName); this.uri2viewMap.put(uri,uri + SLASH + defaultActionName); this.viewNames.put( defaultActionName, uri + SLASH + defaultActionName ); } if (closureNames.size() == 1) { String closureName = ((String)closureNames.iterator().next()); this.uri2closureMap.put(uri, this.uri2closureMap.values().iterator().next()); if (!this.uri2viewMap.isEmpty()) { this.uri2viewMap.put(uri, this.uri2viewMap.values().iterator().next()); } Map typedViews = (Map)getPropertyValue(closureName + TYPED_VIEWS, Map.class); if (typedViews != null) { for (Iterator iter = typedViews.keySet().iterator(); iter.hasNext();) { String viewType = (String)iter.next(); String typedViewName = (String)typedViews.get(viewType); this.uri2closureMap.put(uri + SLASH + viewType, this.uri2closureMap.values().iterator().next()); this.uri2viewMap.put(uri + SLASH + viewType, typedViewName); } } } this.uris = (String[])this.uri2closureMap.keySet().toArray(new String[this.uri2closureMap.keySet().size()]); }
47932 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47932/d4bc9a9a81d07afd30a1e16d9855f1804c836fbb/DefaultGrailsControllerClass.java/clean/grails/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsControllerClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2989, 14571, 14573, 2933, 797, 12, 797, 4003, 13, 288, 3639, 2240, 12, 830, 3638, 16, 8020, 25353, 1769, 3639, 333, 18, 1650, 273, 348, 16504, 397, 261, 780, 1989, 18, 291, 1248, 7796, 12, 588, 18308, 10756, 692, 28951, 7675, 2079, 2668, 1093, 16, 2023, 13, 225, 397, 348, 16504, 294, 1408, 262, 397, 9926, 1989, 18, 551, 438, 7053, 554, 12, 17994, 10663, 3639, 514, 805, 31149, 273, 261, 780, 13, 588, 16107, 12, 5280, 67, 22693, 55, 4830, 67, 9900, 16, 514, 18, 1106, 1769, 3639, 309, 12, 1886, 31149, 422, 446, 13, 288, 5411, 805, 31149, 273, 12425, 67, 12249, 31, 3639, 289, 3639, 333, 18, 1017, 7329, 355, 785, 797, 273, 261, 797, 13, 588, 16107, 12, 8754, 2246, 11846, 1360, 67, 9900, 16, 1659, 18, 1106, 1769, 3639, 309, 12, 2211, 18, 1017, 7329, 355, 785, 797, 480, 446, 13, 288, 5411, 333, 18, 31105, 310, 273, 638, 31, 3639, 289, 3639, 469, 288, 540, 202, 430, 12, 588, 2404, 7675, 291, 14151, 1396, 12, 8754, 2246, 11846, 1360, 67, 9900, 3719, 288, 2398, 202, 921, 1853, 273, 13223, 7675, 588, 16107, 12, 8754, 2246, 11846, 1360, 67, 9900, 1769, 2398, 202, 430, 12, 5645, 1276, 3411, 13, 288, 10792, 333, 18, 31105, 310, 273, 14015, 5507, 13, 5645, 2934, 6494, 620, 5621, 540, 1082, 2398, 202, 97, 540, 1082, 540, 202, 97, 3639, 289, 3639, 2200, 7213, 1557, 273, 394, 2407, 5621, 3639, 333, 18, 1650, 22, 1945, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2989, 14571, 14573, 2933, 797, 12, 797, 4003, 13, 288, 3639, 2240, 12, 830, 3638, 16, 8020, 25353, 1769, 3639, 333, 18, 1650, 273, 348, 16504, 397, 261, 780, 1989, 18, 291, 1248, 7796, 12, 588, 18308, 10756, 692, 28951, 7675, 2079, 2668, 1093, 16, 2023, 13, 225, 397, 348, 16504, 294, 1408, 262, 397, 9926, 1989, 18, 551, 438, 7053, 554, 12, 17994, 10663, 3639, 514, 805, 31149, 273, 261, 780, 13, 588, 16107, 12, 5280, 67, 22693, 55, 4830, 67, 9900, 16, 514, 18, 1106, 1769, 3639, 309, 12, 1886, 31149, 422, 446, 13, 288, 5411, 805, 31149, 273, 12425, 67, 12249, 31, 3639, 289, 3639, 333, 18, 1017, 7329, 355, 785, 797, 273, 261, 2 ]
if (value == null) value = RequestUtils.lookup(pageContext, name, property, scope);
public int doEndTag() throws JspException { if( this.value!=null && bodyContent!=null ) throw new JspException( messages.getMessage("define.value", name) ); // Retrieve the required property value Object value = this.value; if (value == null) value = bodyContent.getString(); if (value == null) value = RequestUtils.lookup(pageContext, name, property, scope); // Expose this value as a scripting variable int inScope = PageContext.PAGE_SCOPE; if ("request".equals(toScope)) inScope = PageContext.REQUEST_SCOPE; else if ("session".equals(toScope)) inScope = PageContext.SESSION_SCOPE; else if ("application".equals(toScope)) inScope = PageContext.APPLICATION_SCOPE; pageContext.setAttribute(id, value, inScope); // Continue processing this page return (EVAL_PAGE); }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/029846555f93e87a2c29cd0cec9dd9015721846e/DefineTag.java/buggy/src/share/org/apache/struts/taglib/bean/DefineTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 25633, 1435, 1216, 27485, 288, 3639, 309, 12, 333, 18, 1132, 5, 33, 2011, 597, 1417, 1350, 5, 33, 2011, 262, 7734, 604, 394, 27485, 12, 2743, 18, 24906, 2932, 11255, 18, 1132, 3113, 508, 13, 11272, 3639, 368, 10708, 326, 1931, 1272, 460, 3639, 1033, 460, 273, 333, 18, 1132, 31, 3639, 309, 261, 1132, 422, 446, 13, 2398, 460, 273, 1417, 1350, 18, 588, 780, 5621, 3639, 309, 261, 1132, 422, 446, 13, 2398, 460, 273, 1567, 1989, 18, 8664, 12, 2433, 1042, 16, 508, 16, 1272, 16, 2146, 1769, 3639, 368, 1312, 4150, 333, 460, 487, 279, 2728, 310, 2190, 3639, 509, 316, 3876, 273, 3460, 1042, 18, 11219, 67, 19444, 31, 3639, 309, 7566, 2293, 9654, 14963, 12, 869, 3876, 3719, 5411, 316, 3876, 273, 3460, 1042, 18, 5519, 67, 19444, 31, 3639, 469, 309, 7566, 3184, 9654, 14963, 12, 869, 3876, 3719, 5411, 316, 3876, 273, 3460, 1042, 18, 7042, 67, 19444, 31, 3639, 469, 309, 7566, 3685, 9654, 14963, 12, 869, 3876, 3719, 5411, 316, 3876, 273, 3460, 1042, 18, 25039, 67, 19444, 31, 3639, 21442, 18, 542, 1499, 12, 350, 16, 460, 16, 316, 3876, 1769, 3639, 368, 16773, 4929, 333, 1363, 3639, 327, 261, 41, 2669, 67, 11219, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 25633, 1435, 1216, 27485, 288, 3639, 309, 12, 333, 18, 1132, 5, 33, 2011, 597, 1417, 1350, 5, 33, 2011, 262, 7734, 604, 394, 27485, 12, 2743, 18, 24906, 2932, 11255, 18, 1132, 3113, 508, 13, 11272, 3639, 368, 10708, 326, 1931, 1272, 460, 3639, 1033, 460, 273, 333, 18, 1132, 31, 3639, 309, 261, 1132, 422, 446, 13, 2398, 460, 273, 1417, 1350, 18, 588, 780, 5621, 3639, 309, 261, 1132, 422, 446, 13, 2398, 460, 273, 1567, 1989, 18, 8664, 12, 2433, 1042, 16, 508, 16, 1272, 16, 2146, 1769, 3639, 368, 1312, 4150, 333, 460, 487, 279, 2728, 310, 2190, 3639, 509, 316, 3876, 273, 3460, 1042, 18, 11219, 67, 19444, 31, 2 ]
logger.info("Looking up " + email + " : " + pass); queryStmt.setString(1,email); queryStmt.setString(2,pass);
PreparedStatement pstmt = null; if(pass != null) { logger.info("Looking up " + email + " : " + pass); pstmt = queryStmt; pstmt.setString(1,email); pstmt.setString(2,pass); } else { logger.info("Looking up " + email); pstmt = queryEmailStmt; pstmt.setString(1,email); }
public UserRegistry.User get(String pass, String email) { ResultSet rs = null; synchronized(conn) { try{ logger.info("Looking up " + email + " : " + pass); queryStmt.setString(1,email); queryStmt.setString(2,pass); // First, try to query it back from the DB. rs = queryStmt.executeQuery(); if(!rs.next()) { logger.info(".. no match."); return null; } User u = new UserRegistry.User(); // from params: u.password = pass; u.email = email; // from db: (id,name,userlevel,org) u.id = rs.getInt(1); u.name = rs.getString(2); u.userlevel = rs.getInt(3); u.org = rs.getString(4); // good so far.. if(rs.next()) { // dup returned! logger.severe("Duplicate user for " + email + " - ids " + u.id + " and " + rs.getInt(1)); return null; } return u; } catch (SQLException se) { logger.log(java.util.logging.Level.SEVERE, "UserRegistry: SQL error trying to get " + email + " - " + SurveyMain.unchainSqlException(se),se); return null; } catch (Throwable t) { logger.log(java.util.logging.Level.SEVERE, "UserRegistry: some error trying to get " + email,t); return null; } finally { // close out the RS try { if(rs!=null) { rs.close(); } } catch(SQLException se) { logger.log(java.util.logging.Level.SEVERE, "UserRegistry: SQL error trying to close resultset for: " + email + " - " + SurveyMain.unchainSqlException(se),se); } } // end try } // end synch(conn) } // end get
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/1268698f26b355ea21e5174fc9ab15d019aa17d1/UserRegistry.java/clean/tools/java/org/unicode/cldr/web/UserRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 225, 2177, 4243, 18, 1299, 336, 12, 780, 1342, 16, 514, 2699, 13, 288, 3639, 10842, 3597, 273, 446, 31, 3639, 3852, 12, 4646, 13, 288, 5411, 775, 95, 1171, 1194, 18, 1376, 2932, 9794, 310, 731, 315, 397, 2699, 397, 315, 294, 315, 397, 1342, 1769, 7734, 843, 8952, 18, 542, 780, 12, 21, 16, 3652, 1769, 7734, 843, 8952, 18, 542, 780, 12, 22, 16, 5466, 1769, 7734, 368, 5783, 16, 775, 358, 843, 518, 1473, 628, 326, 2383, 18, 7734, 3597, 273, 843, 8952, 18, 8837, 1138, 5621, 27573, 309, 12, 5, 5453, 18, 4285, 10756, 288, 10792, 1194, 18, 1376, 2932, 838, 1158, 845, 1199, 1769, 10792, 327, 446, 31, 7734, 289, 7734, 2177, 582, 273, 394, 2177, 4243, 18, 1299, 5621, 27573, 368, 628, 859, 30, 7734, 582, 18, 3664, 273, 1342, 31, 7734, 582, 18, 3652, 273, 2699, 31, 7734, 368, 628, 1319, 30, 282, 261, 350, 16, 529, 16, 1355, 2815, 16, 3341, 13, 7734, 582, 18, 350, 273, 3597, 18, 588, 1702, 12, 21, 1769, 7734, 582, 18, 529, 273, 3597, 18, 588, 780, 12, 22, 1769, 7734, 582, 18, 1355, 2815, 273, 3597, 18, 588, 1702, 12, 23, 1769, 7734, 582, 18, 3341, 273, 3597, 18, 588, 780, 12, 24, 1769, 27573, 368, 7494, 1427, 10247, 838, 27573, 309, 12, 5453, 18, 4285, 10756, 288, 10792, 368, 9417, 2106, 5, 10792, 1194, 18, 307, 502, 73, 2932, 11826, 729, 364, 315, 397, 2699, 397, 315, 300, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 2177, 4243, 18, 1299, 336, 12, 780, 1342, 16, 514, 2699, 13, 288, 3639, 10842, 3597, 273, 446, 31, 3639, 3852, 12, 4646, 13, 288, 5411, 775, 95, 1171, 1194, 18, 1376, 2932, 9794, 310, 731, 315, 397, 2699, 397, 315, 294, 315, 397, 1342, 1769, 7734, 843, 8952, 18, 542, 780, 12, 21, 16, 3652, 1769, 7734, 843, 8952, 18, 542, 780, 12, 22, 16, 5466, 1769, 7734, 368, 5783, 16, 775, 358, 843, 518, 1473, 628, 326, 2383, 18, 7734, 3597, 273, 843, 8952, 18, 8837, 1138, 5621, 27573, 309, 12, 5, 5453, 18, 4285, 10756, 288, 10792, 1194, 18, 1376, 2932, 838, 1158, 845, 1199, 1769, 10792, 327, 446, 31, 7734, 289, 7734, 2 ]
static String showRounded(double d, int scale) {
static String showRounded(double d, int scale) {
static String showRounded(double d, int scale) { return new BigDecimal(d). setScale(scale, BigDecimal.ROUND_HALF_DOWN).toString(); }
9203 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9203/a13a53421f6b7cf095f9ff79d547541d8ea582e3/TpcbExample.java/clean/db/examples_java/src/com/sleepycat/examples/db/TpcbExample.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 514, 2405, 54, 12002, 12, 9056, 302, 16, 509, 3159, 13, 565, 288, 3639, 327, 394, 8150, 12, 72, 2934, 5411, 28424, 12, 5864, 16, 8150, 18, 15092, 67, 44, 21497, 67, 12711, 2934, 10492, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 514, 2405, 54, 12002, 12, 9056, 302, 16, 509, 3159, 13, 565, 288, 3639, 327, 394, 8150, 12, 72, 2934, 5411, 28424, 12, 5864, 16, 8150, 18, 15092, 67, 44, 21497, 67, 12711, 2934, 10492, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (filter == null) return false;
} if (filter == null) { return false; }
private boolean preciselyMatches(Object object) { // Get the action filter. IActionFilter filter = null; if (object instanceof IActionFilter) filter = (IActionFilter) object; else if (object instanceof IAdaptable) filter = (IActionFilter) ((IAdaptable) object) .getAdapter(IActionFilter.class); if (filter == null) return false; // Run the action filter. Iterator iter = filterElements.keySet().iterator(); while (iter.hasNext()) { String name = (String) iter.next(); String value = (String) filterElements.get(name); if (!filter.testAttribute(object, name, value)) return false; } return true; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ObjectFilterTest.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ObjectFilterTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 13382, 291, 2357, 6869, 12, 921, 733, 13, 288, 3639, 368, 968, 326, 1301, 1034, 18, 3639, 467, 1803, 1586, 1034, 273, 446, 31, 3639, 309, 261, 1612, 1276, 467, 1803, 1586, 13, 5411, 1034, 273, 261, 45, 1803, 1586, 13, 733, 31, 3639, 469, 309, 261, 1612, 1276, 467, 13716, 429, 13, 5411, 1034, 273, 261, 45, 1803, 1586, 13, 14015, 45, 13716, 429, 13, 733, 13, 10792, 263, 588, 4216, 12, 45, 1803, 1586, 18, 1106, 1769, 3639, 309, 261, 2188, 422, 446, 13, 5411, 327, 629, 31, 3639, 368, 1939, 326, 1301, 1034, 18, 3639, 4498, 1400, 273, 1034, 3471, 18, 856, 694, 7675, 9838, 5621, 3639, 1323, 261, 2165, 18, 5332, 2134, 10756, 288, 5411, 514, 508, 273, 261, 780, 13, 1400, 18, 4285, 5621, 5411, 514, 460, 273, 261, 780, 13, 1034, 3471, 18, 588, 12, 529, 1769, 5411, 309, 16051, 2188, 18, 3813, 1499, 12, 1612, 16, 508, 16, 460, 3719, 7734, 327, 629, 31, 3639, 289, 3639, 327, 638, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 1250, 13382, 291, 2357, 6869, 12, 921, 733, 13, 288, 3639, 368, 968, 326, 1301, 1034, 18, 3639, 467, 1803, 1586, 1034, 273, 446, 31, 3639, 309, 261, 1612, 1276, 467, 1803, 1586, 13, 5411, 1034, 273, 261, 45, 1803, 1586, 13, 733, 31, 3639, 469, 309, 261, 1612, 1276, 467, 13716, 429, 13, 5411, 1034, 273, 261, 45, 1803, 1586, 13, 14015, 45, 13716, 429, 13, 733, 13, 10792, 263, 588, 4216, 12, 45, 1803, 1586, 18, 1106, 1769, 3639, 309, 261, 2188, 422, 446, 13, 5411, 327, 629, 31, 3639, 368, 1939, 326, 1301, 1034, 18, 3639, 4498, 1400, 273, 1034, 3471, 18, 856, 694, 7675, 9838, 5621, 3639, 1323, 261, 2165, 18, 5332, 2134, 2 ]
public org.quickfix.field.EncodedIssuer getEncodedIssuer() throws FieldNotFound { org.quickfix.field.EncodedIssuer value = new org.quickfix.field.EncodedIssuer();
public quickfix.field.EncodedIssuer getEncodedIssuer() throws FieldNotFound { quickfix.field.EncodedIssuer value = new quickfix.field.EncodedIssuer();
public org.quickfix.field.EncodedIssuer getEncodedIssuer() throws FieldNotFound { org.quickfix.field.EncodedIssuer value = new org.quickfix.field.EncodedIssuer(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/MassQuoteAcknowledgement.java/clean/src/java/src/quickfix/fix44/MassQuoteAcknowledgement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 16667, 28799, 16667, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 16667, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 16667, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 16667, 28799, 16667, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 16667, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 16667, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
_body = new PageRenderer(pane, true, _browser);
_body = new PageRenderer(_stackPane, true, _browser);
private void initComponents() { _root = new Composite(_parent, SWT.NONE); _root.setLayout(new GridLayout(1, false)); _header = new Composite(_root, SWT.BORDER); GridData gd = new GridData(GridData.FILL, GridData.FILL, true, false); //gd.heightHint = 32; _header.setLayoutData(gd); _header.setLayout(new GridLayout(6, false)); _headerAvatarDefault = _root.getDisplay().getSystemImage(SWT.ICON_QUESTION); _headerAvatar = _headerAvatarDefault; _headerSubject = new Text(_header, SWT.BORDER | SWT.SINGLE | SWT.READ_ONLY); _headerSubject.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true)); _headerSubject.setText(""); _headerDate = new Label(_header, SWT.NONE); _headerDate.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, true)); _headerAuthor = new Label(_header, SWT.NONE); _headerAuthor.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, true)); Composite metaInfo = new Composite(_header, SWT.NONE); metaInfo.setLayoutData(new GridData(GridData.END, GridData.CENTER, false, true)); metaInfo.setLayout(new GridLayout(3, true)); _headerStatus = new Label(metaInfo, SWT.BORDER); _headerStatus.setLayoutData(new GridData(12, 12)); _headerPrivacy = new Label(metaInfo, SWT.BORDER); _headerPrivacy.setLayoutData(new GridData(12, 12)); _headerInfo = new Label(metaInfo, SWT.BORDER); _headerInfo.setLayoutData(new GridData(12, 12)); _headerInfoMenu = new Menu(_headerInfo); _headerInfo.setMenu(_headerInfoMenu); _headerInfo.addMouseListener(new MouseListener() { public void mouseDoubleClick(MouseEvent mouseEvent) { _headerInfoMenu.setVisible(true); } public void mouseDown(MouseEvent mouseEvent) { _headerInfoMenu.setVisible(true); } public void mouseUp(MouseEvent mouseEvent) { _headerInfoMenu.setVisible(true); } }); _headerPages = new Combo(_header, SWT.DROP_DOWN | SWT.READ_ONLY); _headerPages.setLayoutData(new GridData(GridData.FILL, GridData.FILL, false, false)); _headerPages.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent selectionEvent) { showPage(); } public void widgetSelected(SelectionEvent selectionEvent) { showPage(); } }); _headerActions = new Combo(_header, SWT.DROP_DOWN | SWT.READ_ONLY); _headerActions.setLayoutData(new GridData(GridData.FILL, GridData.FILL, false, false)); _headerActions.add("Action"); // order is tied to ACTION_* _headerActions.add("View"); _headerActions.add("Reply"); _headerActions.add("Reply to author"); _headerActions.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent selectionEvent) { honorAction(); } public void widgetSelected(SelectionEvent selectionEvent) { honorAction(); } }); _attachmentPopup = new AttachmentPreviewPopup(_browser, _root.getShell()); _bodyStack = new StackLayout(); Composite pane = new Composite(_root, SWT.NONE); pane.setLayout(_bodyStack); pane.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true)); //_body = new PageRenderer(_root, true); _body = new PageRenderer(pane, true, _browser); //_body.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true)); _body.setListener(new PageRenderer.PageActionListener() { public void viewScopeMessages(PageRenderer renderer, Hash scope) { if (_browser != null) _browser.view(SyndieURI.createScope(scope)); } public void viewScopeMetadata(PageRenderer renderer, Hash scope) { if (_browser != null) _browser.view(_browser.createManageURI(scope)); } public void view(PageRenderer renderer, SyndieURI uri) { if (_browser != null) _browser.view(uri); } public void bookmark(PageRenderer renderer, SyndieURI uri) {} public void banScope(PageRenderer renderer, Hash scope) {} public void viewImage(PageRenderer renderer, Image img) {} public void ignoreImageScope(PageRenderer renderer, Hash scope) {} public void importReadKey(PageRenderer renderer, Hash referencedBy, Hash keyScope, SessionKey key) {} public void importPostKey(PageRenderer renderer, Hash referencedBy, Hash keyScope, SigningPrivateKey key) {} public void importManageKey(PageRenderer renderer, Hash referencedBy, Hash keyScope, SigningPrivateKey key) {} public void importReplyKey(PageRenderer renderer, Hash referencedBy, Hash keyScope, PrivateKey key) {} public void importArchiveKey(PageRenderer renderer, Hash referencedBy, SyndieURI archiveURI, SessionKey key) {} public void saveAllImages(PageRenderer renderer, Map images) {} public void saveImage(PageRenderer renderer, String suggestedName, Image img) {} public void privateReply(PageRenderer renderer, Hash author, SyndieURI msg) { if (_browser != null) _browser.view(_browser.createPostURI(author, msg, true)); } public void replyToForum(PageRenderer renderer, Hash forum, SyndieURI msg) { if (_browser != null) _browser.view(_browser.createPostURI(forum, msg)); } }); _refs = new ManageReferenceChooser(pane, _browser, false); _bodyStack.topControl = _body.getComposite(); }
27487 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27487/4caf1149f61cd88259d2d90ab9e8078360b1ebac/MessagePreview.java/buggy/src/syndie/gui/MessagePreview.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 3639, 389, 3085, 273, 394, 14728, 24899, 2938, 16, 348, 8588, 18, 9826, 1769, 3639, 389, 3085, 18, 542, 3744, 12, 2704, 7145, 3744, 12, 21, 16, 629, 10019, 7734, 389, 3374, 273, 394, 14728, 24899, 3085, 16, 348, 8588, 18, 38, 7954, 1769, 3639, 7145, 751, 15551, 273, 394, 7145, 751, 12, 6313, 751, 18, 29818, 16, 7145, 751, 18, 29818, 16, 638, 16, 629, 1769, 3639, 368, 19016, 18, 4210, 7002, 273, 3847, 31, 3639, 389, 3374, 18, 542, 3744, 751, 12, 19016, 1769, 3639, 389, 3374, 18, 542, 3744, 12, 2704, 7145, 3744, 12, 26, 16, 629, 10019, 7734, 389, 3374, 23999, 1868, 273, 389, 3085, 18, 588, 4236, 7675, 588, 3163, 2040, 12, 55, 8588, 18, 21745, 67, 4740, 1146, 1769, 3639, 389, 3374, 23999, 273, 389, 3374, 23999, 1868, 31, 7734, 389, 3374, 6638, 273, 394, 3867, 24899, 3374, 16, 348, 8588, 18, 38, 7954, 571, 348, 8588, 18, 20184, 571, 348, 8588, 18, 6949, 67, 10857, 1769, 3639, 389, 3374, 6638, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 16, 7145, 751, 18, 29818, 16, 638, 16, 638, 10019, 3639, 389, 3374, 6638, 18, 542, 1528, 2932, 8863, 7734, 389, 3374, 1626, 273, 394, 5287, 24899, 3374, 16, 348, 8588, 18, 9826, 1769, 3639, 389, 3374, 1626, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 16, 7145, 751, 18, 19835, 16, 629, 16, 638, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 7171, 1435, 288, 3639, 389, 3085, 273, 394, 14728, 24899, 2938, 16, 348, 8588, 18, 9826, 1769, 3639, 389, 3085, 18, 542, 3744, 12, 2704, 7145, 3744, 12, 21, 16, 629, 10019, 7734, 389, 3374, 273, 394, 14728, 24899, 3085, 16, 348, 8588, 18, 38, 7954, 1769, 3639, 7145, 751, 15551, 273, 394, 7145, 751, 12, 6313, 751, 18, 29818, 16, 7145, 751, 18, 29818, 16, 638, 16, 629, 1769, 3639, 368, 19016, 18, 4210, 7002, 273, 3847, 31, 3639, 389, 3374, 18, 542, 3744, 751, 12, 19016, 1769, 3639, 389, 3374, 18, 542, 3744, 12, 2704, 7145, 3744, 12, 26, 16, 629, 10019, 7734, 389, 3374, 23999, 1868, 273, 389, 3085, 18, 588, 4236, 2 ]
public DMDServiceOffer[] findMatchingOffers(DMDServiceOffer query) throws IllegalArgumentException { if (query == null) { throw new IllegalArgumentException(); } List stores = new ArrayList(); List mappers = new ArrayList(); Collection offers = stores_by_mime_.values(); Iterator iter = offers.iterator(); // find all matching stores while (iter.hasNext()) { List offer_list = (List) iter.next(); Iterator list_iter = offer_list.iterator(); while (list_iter.hasNext()) { DMDServiceOffer offer = (DMDServiceOffer) list_iter.next(); if (offer != null) { if (offer.matchesStore(query)) { stores.add(offer); } } } } offers = mappers_by_mime_.values(); iter = offers.iterator(); // find all matching mappers while (iter.hasNext()) { List offer_list = (List) iter.next(); Iterator list_iter = offer_list.iterator(); while (list_iter.hasNext()) { DMDServiceOffer offer = (DMDServiceOffer) list_iter.next(); if (offer != null) { if (offer.matchesMapper(query)) { mappers.add(offer); } } } } int mode = 0; if (query.getProviderClass() != null) { mode |= 1; } if (query.getMIMEType() != null) { mode |= 2; } if (query.getIOMethod() != null || query.getIOMode() != DMDHandler.NO_IO) { mode |= 4; } if (query.getNameMapping() != null) { mode |= 8; } List result_list = new ArrayList(); switch (mode) { // type of service irrelevant case 0: case 1: case 2: case 3: result_list.addAll(stores); result_list.addAll(mappers); break; // stores only case 4: case 5: case 6: case 7: result_list.addAll(stores); break; // mappers only case 8: case 9: case 10: case 11: result_list.addAll(mappers); break; // looking for mapper store combinations case 12: case 13: case 14: case 15: for (int scount = 0; scount < stores.size(); ++scount) { for (int mcount = 0; mcount < mappers.size(); ++mcount) { // create combination offers of stores and mappers // which share provider and MIME type DMDServiceOffer store = (DMDServiceOffer) stores.get(scount); DMDServiceOffer mapper = (DMDServiceOffer) mappers.get(mcount); if (store.matchesStore(mapper)) // provider and MIME equal { result_list.add( new DMDServiceOffer(store.getProviderClass(), store.getMIMEType(), mapper.getNameMapping(), store.getIOMethod(), store.getIOMode())); } } } break; default: break; } if (result_list.size() == 0) { return null; } DMDServiceOffer[] result = new DMDServiceOffer[result_list.size()]; return (DMDServiceOffer[])result_list.toArray(result); }
10978 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10978/96b3cd11a58caed6b76e04c163d9037488289f61/DinomedaTrader.java/buggy/dinomeda/src/org/dinopolis/util/metadata/dinomeda/DinomedaTrader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 463, 6188, 1179, 10513, 8526, 1104, 9517, 7210, 414, 12, 40, 6188, 1179, 10513, 843, 13, 1377, 1216, 2754, 225, 288, 565, 309, 261, 2271, 422, 446, 13, 565, 288, 1377, 604, 394, 2754, 5621, 565, 289, 3639, 987, 9064, 273, 394, 2407, 5621, 565, 987, 852, 10422, 273, 394, 2407, 5621, 3639, 2200, 28641, 273, 9064, 67, 1637, 67, 11757, 27799, 2372, 5621, 565, 4498, 1400, 273, 28641, 18, 9838, 5621, 565, 368, 1104, 777, 3607, 9064, 565, 1323, 261, 2165, 18, 5332, 2134, 10756, 565, 288, 1377, 987, 10067, 67, 1098, 273, 261, 682, 13, 1400, 18, 4285, 5621, 1377, 4498, 666, 67, 2165, 273, 10067, 67, 1098, 18, 9838, 5621, 1377, 1323, 261, 1098, 67, 2165, 18, 5332, 2134, 10756, 1377, 288, 3639, 463, 6188, 1179, 10513, 10067, 273, 261, 40, 6188, 1179, 10513, 13, 666, 67, 2165, 18, 4285, 5621, 3639, 309, 261, 23322, 480, 446, 13, 3639, 288, 1850, 309, 261, 23322, 18, 8436, 2257, 12, 2271, 3719, 1850, 288, 5411, 9064, 18, 1289, 12, 23322, 1769, 1850, 289, 3639, 289, 1377, 289, 565, 289, 565, 28641, 273, 852, 10422, 67, 1637, 67, 11757, 27799, 2372, 5621, 565, 1400, 273, 28641, 18, 9838, 5621, 565, 368, 1104, 777, 3607, 852, 10422, 565, 1323, 261, 2165, 18, 5332, 2134, 10756, 565, 288, 1377, 987, 10067, 67, 1098, 273, 261, 682, 13, 1400, 18, 4285, 5621, 5411, 4498, 666, 67, 2165, 273, 10067, 67, 1098, 18, 9838, 5621, 1377, 1323, 261, 1098, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 463, 6188, 1179, 10513, 8526, 1104, 9517, 7210, 414, 12, 40, 6188, 1179, 10513, 843, 13, 1377, 1216, 2754, 225, 288, 565, 309, 261, 2271, 422, 446, 13, 565, 288, 1377, 604, 394, 2754, 5621, 565, 289, 3639, 987, 9064, 273, 394, 2407, 5621, 565, 987, 852, 10422, 273, 394, 2407, 5621, 3639, 2200, 28641, 273, 9064, 67, 1637, 67, 11757, 27799, 2372, 5621, 565, 4498, 1400, 273, 28641, 18, 9838, 5621, 565, 368, 1104, 777, 3607, 9064, 565, 1323, 261, 2165, 18, 5332, 2134, 10756, 565, 288, 1377, 987, 10067, 67, 1098, 273, 261, 682, 13, 1400, 18, 4285, 5621, 1377, 4498, 666, 67, 2165, 273, 10067, 67, 1098, 18, 9838, 5621, 1377, 1323, 261, 1098, 2 ]
public void setPollingFrequency(long pollingFrequency) {
public void setPollingFrequency(long pollingFrequency) {
public void setPollingFrequency(long pollingFrequency) { this.pollingFrequency = pollingFrequency; }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/a8694feed791240a786f09082dcf342f719e5760/FileConnector.java/buggy/providers/file/src/java/org/mule/providers/file/FileConnector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 24767, 13865, 12, 5748, 13708, 13865, 13, 565, 288, 3639, 333, 18, 3915, 2456, 13865, 273, 13708, 13865, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 444, 24767, 13865, 12, 5748, 13708, 13865, 13, 565, 288, 3639, 333, 18, 3915, 2456, 13865, 273, 13708, 13865, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public org.quickfix.field.UnderlyingInstrRegistry getUnderlyingInstrRegistry() throws FieldNotFound { org.quickfix.field.UnderlyingInstrRegistry value = new org.quickfix.field.UnderlyingInstrRegistry();
public quickfix.field.UnderlyingInstrRegistry getUnderlyingInstrRegistry() throws FieldNotFound { quickfix.field.UnderlyingInstrRegistry value = new quickfix.field.UnderlyingInstrRegistry();
public org.quickfix.field.UnderlyingInstrRegistry getUnderlyingInstrRegistry() throws FieldNotFound { org.quickfix.field.UnderlyingInstrRegistry value = new org.quickfix.field.UnderlyingInstrRegistry(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralInquiryAck.java/buggy/src/java/src/quickfix/fix44/CollateralInquiryAck.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 382, 701, 4243, 10833, 765, 6291, 382, 701, 4243, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 382, 701, 4243, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 382, 701, 4243, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 382, 701, 4243, 10833, 765, 6291, 382, 701, 4243, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 382, 701, 4243, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 382, 701, 4243, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
myShelves = new Vector();
myShelves = new Vector<ShelfImpl>();
public BiomassRSImpl(int pID, String pName) { super(pID, pName); myShelves = new Vector(); myPowerConsumerDefinitionImpl = new PowerConsumerDefinitionImpl(); myAirConsumerDefinitionImpl = new AirConsumerDefinitionImpl(); myPotableWaterConsumerDefinitionImpl = new PotableWaterConsumerDefinitionImpl(); myGreyWaterConsumerDefinitionImpl = new GreyWaterConsumerDefinitionImpl(); myDirtyWaterProducerDefinitionImpl = new DirtyWaterProducerDefinitionImpl(); myAirProducerDefinitionImpl = new AirProducerDefinitionImpl(); myBiomassProducerDefinitionImpl = new BiomassProducerDefinitionImpl(); }
5015 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5015/397a74b47f2f52b66dbe5e307fb37ee5e164487d/BiomassRSImpl.java/buggy/BIOSIM/src/com/traclabs/biosim/server/simulation/food/BiomassRSImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 605, 14642, 428, 13225, 2828, 12, 474, 293, 734, 16, 514, 30026, 13, 288, 3639, 2240, 12, 84, 734, 16, 30026, 1769, 3639, 3399, 1555, 19587, 273, 394, 5589, 32, 1555, 19079, 2828, 34, 5621, 3639, 3399, 13788, 5869, 1852, 2828, 273, 394, 23783, 5869, 1852, 2828, 5621, 3639, 3399, 29752, 5869, 1852, 2828, 273, 394, 432, 481, 5869, 1852, 2828, 5621, 3639, 3399, 18411, 429, 24064, 5869, 1852, 2828, 273, 394, 23435, 429, 24064, 5869, 1852, 2828, 5621, 3639, 3399, 43, 266, 93, 24064, 5869, 1852, 2828, 273, 394, 611, 266, 93, 24064, 5869, 1852, 2828, 5621, 3639, 3399, 10785, 24064, 12140, 1852, 2828, 273, 394, 463, 30012, 24064, 12140, 1852, 2828, 5621, 3639, 3399, 29752, 12140, 1852, 2828, 273, 394, 432, 481, 12140, 1852, 2828, 5621, 3639, 3399, 38, 14642, 428, 12140, 1852, 2828, 273, 394, 605, 14642, 428, 12140, 1852, 2828, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 605, 14642, 428, 13225, 2828, 12, 474, 293, 734, 16, 514, 30026, 13, 288, 3639, 2240, 12, 84, 734, 16, 30026, 1769, 3639, 3399, 1555, 19587, 273, 394, 5589, 32, 1555, 19079, 2828, 34, 5621, 3639, 3399, 13788, 5869, 1852, 2828, 273, 394, 23783, 5869, 1852, 2828, 5621, 3639, 3399, 29752, 5869, 1852, 2828, 273, 394, 432, 481, 5869, 1852, 2828, 5621, 3639, 3399, 18411, 429, 24064, 5869, 1852, 2828, 273, 394, 23435, 429, 24064, 5869, 1852, 2828, 5621, 3639, 3399, 43, 266, 93, 24064, 5869, 1852, 2828, 273, 394, 611, 266, 93, 24064, 5869, 1852, 2828, 5621, 3639, 3399, 10785, 24064, 12140, 1852, 2828, 273, 394, 463, 30012, 24064, 12140, 1852, 2828, 5621, 3639, 3399, 29752, 2 ]
WebsiteData website = roller.getUserManager().retrieveWebsite(form.getWebsiteId());
RollerRequest rreq = RollerRequest.getRollerRequest(request); WebsiteData website = rreq.getWebsite();
public ActionForward resign( ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { YourWebsitesForm form = (YourWebsitesForm)actionForm; Roller roller = RollerFactory.getRoller(); RollerSession rses = RollerSession.getRollerSession(request); UserData user = rses.getAuthenticatedUser(); WebsiteData website = roller.getUserManager().retrieveWebsite(form.getWebsiteId()); PermissionsData perms = roller.getUserManager().getPermissions(website, user); if (perms != null) { // ROLLER_2.0: notify website members that user has resigned perms.remove(); roller.commit(); } ActionMessages msgs = new ActionMessages(); msgs.add(null, new ActionMessage( "yourWebsites.resigned", perms.getWebsite().getHandle())); saveMessages(request, msgs); request.setAttribute("model", new YourWebsitesPageModel(request, response, mapping)); ActionForward forward = mapping.findForward("yourWebsites.page"); return forward; }
46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/e88a7298fad869de833f34902c65a60074eae393/YourWebsitesAction.java/buggy/src/org/roller/presentation/website/actions/YourWebsitesAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 400, 724, 12, 5411, 4382, 3233, 4202, 2874, 16, 5411, 4382, 1204, 1850, 1301, 1204, 16, 5411, 9984, 225, 590, 16, 5411, 12446, 766, 13, 5411, 1216, 1185, 565, 288, 3639, 20471, 3218, 2038, 2997, 1204, 646, 273, 261, 15446, 3218, 2038, 2997, 1204, 13, 1128, 1204, 31, 3639, 11714, 749, 10643, 749, 273, 11714, 749, 1733, 18, 588, 4984, 749, 5621, 3639, 11714, 749, 2157, 436, 2420, 273, 11714, 749, 2157, 18, 588, 4984, 749, 2157, 12, 2293, 1769, 3639, 31109, 729, 273, 436, 2420, 18, 588, 15606, 1299, 5621, 3639, 1660, 12343, 751, 12504, 273, 2398, 10643, 749, 18, 588, 1299, 1318, 7675, 17466, 19186, 12, 687, 18, 588, 19186, 548, 10663, 3639, 15684, 751, 13793, 273, 2398, 10643, 749, 18, 588, 1299, 1318, 7675, 588, 6521, 12, 21868, 16, 729, 1769, 3639, 309, 261, 15969, 480, 446, 13, 540, 288, 5411, 368, 534, 1741, 14668, 67, 22, 18, 20, 30, 5066, 12504, 4833, 716, 729, 711, 400, 724, 329, 2868, 13793, 18, 4479, 5621, 5411, 10643, 749, 18, 7371, 5621, 3639, 289, 7734, 4382, 5058, 8733, 273, 394, 4382, 5058, 5621, 3639, 8733, 18, 1289, 12, 2011, 16, 394, 4382, 1079, 12, 7734, 315, 93, 477, 3218, 2038, 2997, 18, 455, 724, 329, 3113, 13793, 18, 588, 19186, 7675, 588, 3259, 1435, 10019, 3639, 1923, 5058, 12, 2293, 16, 8733, 1769, 7734, 590, 18, 542, 1499, 2932, 2284, 3113, 7734, 394, 20471, 3218, 2038, 2997, 1964, 1488, 12, 2293, 16, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4382, 8514, 400, 724, 12, 5411, 4382, 3233, 4202, 2874, 16, 5411, 4382, 1204, 1850, 1301, 1204, 16, 5411, 9984, 225, 590, 16, 5411, 12446, 766, 13, 5411, 1216, 1185, 565, 288, 3639, 20471, 3218, 2038, 2997, 1204, 646, 273, 261, 15446, 3218, 2038, 2997, 1204, 13, 1128, 1204, 31, 3639, 11714, 749, 10643, 749, 273, 11714, 749, 1733, 18, 588, 4984, 749, 5621, 3639, 11714, 749, 2157, 436, 2420, 273, 11714, 749, 2157, 18, 588, 4984, 749, 2157, 12, 2293, 1769, 3639, 31109, 729, 273, 436, 2420, 18, 588, 15606, 1299, 5621, 3639, 1660, 12343, 751, 12504, 273, 2398, 10643, 749, 18, 588, 1299, 1318, 7675, 17466, 19186, 12, 687, 18, 588, 19186, 548, 10663, 3639, 2 ]
public final void nodeSelected(TreeNode node)
public final void nodeSelected(TreeNode node)
public final void nodeSelected(TreeNode node) { if (isNodeVisible(node)) { invalidateNode(node, true); } }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/234acdada6bb523025df2bf64c707be9ba3f57d5/AbstractTree.java/buggy/wicket/src/java/wicket/markup/html/tree/AbstractTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 756, 7416, 12, 12513, 756, 13, 225, 202, 95, 202, 202, 430, 261, 291, 907, 6207, 12, 2159, 3719, 202, 202, 95, 1082, 202, 5387, 340, 907, 12, 2159, 16, 638, 1769, 202, 202, 97, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 727, 918, 756, 7416, 12, 12513, 756, 13, 225, 202, 95, 202, 202, 430, 261, 291, 907, 6207, 12, 2159, 3719, 202, 202, 95, 1082, 202, 5387, 340, 907, 12, 2159, 16, 638, 1769, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
m_parallelMode = parallel; }
m_parallelMode= parallel; }
public void setParallel(String parallel) { m_parallelMode = parallel; }
46166 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46166/75c0741cfb0fc75ef79c70ec78da0a1cd8144089/TestNGAntTask.java/clean/src/main/org/testng/TestNGAntTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 13056, 12, 780, 7230, 13, 288, 202, 225, 312, 67, 18054, 2309, 273, 7230, 31, 202, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 13056, 12, 780, 7230, 13, 288, 202, 225, 312, 67, 18054, 2309, 273, 7230, 31, 202, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
lPagination.addPage(1, true);
pagination.addPage(1, true);
public String getPageNavigationBar(String pUrlFormatString) { mLog.debug("getPageNavigationBar"); int lMaxPages = 8; lMaxPages = mProp.getPagingGroupSize(lMaxPages); int lCurrentPage = mCurrentPage; int lPageCount = mPageCount; int lStartPage = 1; int lEndPage = lMaxPages; Pagination lPagination = new Pagination(pUrlFormatString); mLog.debug("mPageCount=" + mPageCount); // if no items are found still add pagination? if (lPageCount == 0) { lPagination.addPage(1, true); } if (lCurrentPage < lMaxPages) { lStartPage = 1; lEndPage = lMaxPages; if (lPageCount < lEndPage) { lEndPage = lPageCount; } } else { lStartPage = lCurrentPage; while (lStartPage + lMaxPages > (lPageCount + 1)) { lStartPage--; } lEndPage = lStartPage + (lMaxPages - 1); } if (lCurrentPage != 1) { lPagination.setFirst(new Integer(1)); lPagination.setPrevious(new Integer(lCurrentPage - 1)); } for (int lCounter = lStartPage; lCounter <= lEndPage; lCounter++) { mLog.debug("adding page " + lCounter); lPagination.addPage(lCounter, (lCounter == lCurrentPage)); } if (lCurrentPage != lPageCount) { lPagination.setNext(new Integer(lCurrentPage + 1)); lPagination.setLast(new Integer(lPageCount)); } // format for previous/next banner String lBannerFormat; mLog.debug("lPagination.isOnePage()=" + lPagination.isOnePage()); if (lPagination.isOnePage()) { lBannerFormat = mProp.getPagingBannerOnePage(); } else if (lPagination.isFirst()) { lBannerFormat = mProp.getPagingBannerFirst(); } else if (lPagination.isLast()) { lBannerFormat = mProp.getPagingBannerLast(); } else { lBannerFormat = mProp.getPagingBannerFull(); } mLog.debug("getPageNavigationBar end"); return lPagination.getFormattedBanner( mProp.getPagingPageLink(), mProp.getPagingPageSelected(), mProp.getPagingPageSeparator(), lBannerFormat); }
7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/a9790c1d8af2439920d0b3656a52ccf7292047b0/SmartListHelper.java/buggy/displaytag/src/main/java/org/displaytag/pagination/SmartListHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 8957, 14301, 5190, 12, 780, 293, 1489, 1630, 780, 13, 565, 288, 3639, 312, 1343, 18, 4148, 2932, 588, 1964, 14301, 5190, 8863, 3639, 509, 328, 2747, 5716, 273, 1725, 31, 3639, 328, 2747, 5716, 273, 312, 4658, 18, 588, 52, 5755, 1114, 1225, 12, 80, 2747, 5716, 1769, 3639, 509, 328, 3935, 1964, 273, 28326, 1964, 31, 3639, 509, 328, 1964, 1380, 273, 312, 1964, 1380, 31, 3639, 509, 328, 1685, 1964, 273, 404, 31, 3639, 509, 328, 1638, 1964, 273, 328, 2747, 5716, 31, 3639, 16942, 328, 19224, 273, 394, 16942, 12, 84, 1489, 1630, 780, 1769, 3639, 312, 1343, 18, 4148, 2932, 81, 1964, 1380, 1546, 397, 312, 1964, 1380, 1769, 3639, 368, 309, 1158, 1516, 854, 1392, 4859, 527, 8842, 35, 3639, 309, 261, 80, 1964, 1380, 422, 374, 13, 3639, 288, 5411, 8842, 18, 1289, 1964, 12, 21, 16, 638, 1769, 3639, 289, 3639, 309, 261, 80, 3935, 1964, 411, 328, 2747, 5716, 13, 3639, 288, 5411, 328, 1685, 1964, 273, 404, 31, 5411, 328, 1638, 1964, 273, 328, 2747, 5716, 31, 5411, 309, 261, 80, 1964, 1380, 411, 328, 1638, 1964, 13, 5411, 288, 7734, 328, 1638, 1964, 273, 328, 1964, 1380, 31, 5411, 289, 3639, 289, 3639, 469, 3639, 288, 5411, 328, 1685, 1964, 273, 328, 3935, 1964, 31, 5411, 1323, 261, 80, 1685, 1964, 397, 328, 2747, 5716, 405, 261, 80, 1964, 1380, 397, 404, 3719, 5411, 288, 7734, 328, 1685, 1964, 413, 31, 5411, 289, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8957, 14301, 5190, 12, 780, 293, 1489, 1630, 780, 13, 565, 288, 3639, 312, 1343, 18, 4148, 2932, 588, 1964, 14301, 5190, 8863, 3639, 509, 328, 2747, 5716, 273, 1725, 31, 3639, 328, 2747, 5716, 273, 312, 4658, 18, 588, 52, 5755, 1114, 1225, 12, 80, 2747, 5716, 1769, 3639, 509, 328, 3935, 1964, 273, 28326, 1964, 31, 3639, 509, 328, 1964, 1380, 273, 312, 1964, 1380, 31, 3639, 509, 328, 1685, 1964, 273, 404, 31, 3639, 509, 328, 1638, 1964, 273, 328, 2747, 5716, 31, 3639, 16942, 328, 19224, 273, 394, 16942, 12, 84, 1489, 1630, 780, 1769, 3639, 312, 1343, 18, 4148, 2932, 81, 1964, 1380, 1546, 397, 312, 1964, 1380, 1769, 3639, 368, 2 ]
if(logMINOR) Logger.minor(this, "Received auth packet for "+pn.getPeer()+" (pt="+packetType+", v="+version+", nt="+negType+") (last packet sent "+delta+"ms ago) from "+replyTo+"");
if(logMINOR) Logger.minor(this, "Received auth packet for "+pn.getPeer()+" (pt="+packetType+", v="+version+", nt="+negType+") (last packet sent "+TimeUtil.formatTime(delta, 2, true)+" ago) from "+replyTo+"");
private void processDecryptedAuth(byte[] payload, PeerNode pn, Peer replyTo) { if(logMINOR) Logger.minor(this, "Processing decrypted auth packet from "+replyTo+" for "+pn); if(pn.isDisabled()) { if(logMINOR) Logger.minor(this, "Won't connect to a disabled peer ("+pn+")"); return; // We don't connect to disabled peers } long now = System.currentTimeMillis(); int delta = (int) (now - pn.lastSentPacketTime()); int negType = payload[1]; int packetType = payload[2]; int version = payload[0]; if(logMINOR) Logger.minor(this, "Received auth packet for "+pn.getPeer()+" (pt="+packetType+", v="+version+", nt="+negType+") (last packet sent "+delta+"ms ago) from "+replyTo+""); /* Format: * 1 byte - version number (1) * 1 byte - negotiation type (0 = simple DH, will not be supported when implement JFKi || 1 = StS) * 1 byte - packet type (0-3) */ if(version != 1) { Logger.error(this, "Decrypted auth packet but invalid version: "+version); return; } if((negType < 0) || (negType > 1)) { Logger.error(this, "Decrypted auth packet but unknown negotiation type "+negType+" from "+replyTo+" possibly from "+pn); return; }else if (negType == 0){ // We are gonna do unauthenticated DH FIXME: disable when StS is deployed. if((packetType < 0) || (packetType > 3)) { Logger.error(this, "Decrypted auth packet but unknown packet type "+packetType+" from "+replyTo+" possibly from "+pn); return; } // We keep one DiffieHellmanContext per node ONLY /* * Now, to the real meat * Alice, Bob share a base, g, and a modulus, p * Alice generates a random number r, and: 1: Alice -> Bob: a=g^r * Bob receives this and generates his own random number, s, and: 2: Bob -> Alice: b=g^s * Alice receives this, calculates K = b^r, and: 3: Alice -> Bob: E_K ( H(data) data ) * where data = [ Alice's startup number ] * Bob does exactly the same as Alice for packet 4. * * At this point we are done. */ if(packetType == 0) { // We are Bob // We need to: // - Record Alice's a // - Generate our own s and b // - Send a type 1 packet back to Alice containing this DiffieHellmanContext ctx = processDHZeroOrOne(0, payload, pn); if(ctx == null) return; // Send reply sendFirstHalfDHPacket(1, ctx.getOurExponential(), pn, replyTo); // Send a type 1, they will reply with a type 2 } else if(packetType == 1) { // We are Alice DiffieHellmanContext ctx = processDHZeroOrOne(1, payload, pn); if(ctx == null) return; sendDHCompletion(2, ctx.getCipher(), pn, replyTo); // Send a type 2 } else if(packetType == 2) { // We are Bob // Receiving a completion packet // Verify the packet, then complete // Format: IV E_K ( H(data) data ) // Where data = [ long: bob's startup number ] processDHTwoOrThree(2, payload, pn, replyTo, true); } else if(packetType == 3) { // We are Alice processDHTwoOrThree(3, payload, pn, replyTo, false); } }else if (negType == 1){ // We are gonna do simple StS if((packetType < 0) || (packetType > 3)) { Logger.error(this, "Decrypted auth packet but unknown packet type "+packetType+" from "+replyTo+" possibly from "+pn); return; } // We keep one StationToStationContext per node ONLY /* * Now, to the real meat * * 1a. Alice generates a random number x and computes and sends the exponential g^x to Bob. * * 2a. Bob generates a random number y and computes the exponential g^y. * 2b. Bob computes the shared secret key K = (g^x)^y. * 2c. Bob concatenates the exponentials (g^y, g^x) (order is important), * signs them using his asymmetric key B, and then encrypts them with K. * 2d. He sends the ciphertext along with his own exponential g^y to Alice. * * 3a. Alice computes the shared secret key K = (gy)x. * 3b. Alice decrypts and verifies Bob's signature. * 3c. Alice concatenates the exponentials (g^x, g^y) (order is important), * signs them using her asymmetric key A, and then encrypts them with K. * 3d. She sends the ciphertext to Bob. * * 4. Bob decrypts and verifies Alice's signature. * * Alice and Bob are now mutually authenticated and have a shared secret. * This secret, K, can then be used to encrypt further communication. * * I suggest we add one more phase to simplify the code : 2d is splited up * into two packets so that both alice and bob send the same kind of packets. */ // be carefull with StationToStationContext constructors ; it will be expensive in terms of cpu and can be DoSed, on the other hand, when shall we reset the context ? maybe creating a new packetType ... with a time based restriction if(packetType == 0) { // 0 won't be received, but we need to initialize the exchange StationToStationContext ctx = pn.getKeyAgreementSchemeContext()== null ? new StationToStationContext(node.getMyPrivKey(), pn.peerCryptoGroup, pn.peerPubKey, node.random) : (StationToStationContext)pn.getKeyAgreementSchemeContext(); if(ctx == null) return; pn.setKeyAgreementSchemeContext(ctx); // We send g^x sendFirstStSPacket(1, ctx.getOurExponential(), pn, replyTo); } else if(packetType == 2) { StationToStationContext ctx = pn.getKeyAgreementSchemeContext()== null ? new StationToStationContext(node.getMyPrivKey(), pn.peerCryptoGroup, pn.peerPubKey, node.random) : (StationToStationContext)pn.getKeyAgreementSchemeContext(); if(ctx == null) return; pn.setKeyAgreementSchemeContext(ctx); // We got g^y ctx.setOtherSideExponential(new NativeBigInteger(payload)); // We send E(S(H( our exponential, his exponential))) sendSecondStSPacket(3, ctx, pn, replyTo, payload); } else if(packetType == 1) { StationToStationContext ctx = (StationToStationContext) pn.getKeyAgreementSchemeContext(); if(ctx == null) return; // We got g^x ctx.setOtherSideExponential(new NativeBigInteger(payload)); // We send g^y sendFirstStSPacket(2, ctx.getOurExponential(), pn, replyTo); // We send E(S(H( our exponential, his exponential))) sendSecondStSPacket(3, ctx, pn, replyTo, payload); } else if(packetType == 3) { StationToStationContext ctx = (StationToStationContext) pn.getKeyAgreementSchemeContext(); if(ctx == null) return; if(!ctx.isAuthentificationSuccessfull(payload)) return; // we are done if the above test is sucessfull! } /* * We need some kind of locking above... and maybe some DoS protection */ } }
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/e3e1385af7111953dc0be72e3d64baca37a22231/FNPPacketMangler.java/clean/src/freenet/node/FNPPacketMangler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 1799, 4567, 1730, 12, 7229, 8526, 2385, 16, 10669, 907, 11059, 16, 10669, 30934, 13, 288, 3639, 309, 12, 1330, 6236, 916, 13, 4242, 18, 17364, 12, 2211, 16, 315, 7798, 13794, 1357, 4414, 628, 13773, 10629, 774, 9078, 364, 13773, 7449, 1769, 3639, 309, 12, 7449, 18, 291, 8853, 10756, 288, 540, 202, 430, 12, 1330, 6236, 916, 13, 4242, 18, 17364, 12, 2211, 16, 315, 59, 265, 1404, 3077, 358, 279, 5673, 4261, 7566, 15, 7449, 9078, 2225, 1769, 377, 202, 202, 2463, 31, 225, 368, 1660, 2727, 1404, 3077, 358, 5673, 10082, 377, 202, 97, 7734, 1525, 2037, 273, 2332, 18, 2972, 28512, 5621, 377, 202, 474, 3622, 273, 261, 474, 13, 261, 3338, 300, 11059, 18, 2722, 7828, 6667, 950, 10663, 377, 202, 3639, 509, 4251, 559, 273, 2385, 63, 21, 15533, 3639, 509, 4414, 559, 273, 2385, 63, 22, 15533, 3639, 509, 1177, 273, 2385, 63, 20, 15533, 377, 202, 3639, 309, 12, 1330, 6236, 916, 13, 4242, 18, 17364, 12, 2211, 16, 315, 8872, 1357, 4414, 364, 13773, 7449, 18, 588, 6813, 1435, 9078, 261, 337, 1546, 15, 11482, 559, 15, 3113, 331, 1546, 15, 1589, 15, 3113, 9513, 1546, 15, 14518, 559, 15, 7923, 261, 2722, 4414, 3271, 13773, 950, 1304, 18, 2139, 950, 12, 9878, 16, 576, 16, 638, 13, 9078, 20325, 13, 628, 13773, 10629, 774, 15, 3660, 1769, 7734, 1748, 4077, 30, 540, 380, 404, 1160, 300, 1177, 1300, 261, 21, 13, 540, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1799, 4567, 1730, 12, 7229, 8526, 2385, 16, 10669, 907, 11059, 16, 10669, 30934, 13, 288, 3639, 309, 12, 1330, 6236, 916, 13, 4242, 18, 17364, 12, 2211, 16, 315, 7798, 13794, 1357, 4414, 628, 13773, 10629, 774, 9078, 364, 13773, 7449, 1769, 3639, 309, 12, 7449, 18, 291, 8853, 10756, 288, 540, 202, 430, 12, 1330, 6236, 916, 13, 4242, 18, 17364, 12, 2211, 16, 315, 59, 265, 1404, 3077, 358, 279, 5673, 4261, 7566, 15, 7449, 9078, 2225, 1769, 377, 202, 202, 2463, 31, 225, 368, 1660, 2727, 1404, 3077, 358, 5673, 10082, 377, 202, 97, 7734, 1525, 2037, 273, 2332, 18, 2972, 28512, 5621, 377, 202, 474, 3622, 273, 261, 474, 13, 2 ]
setKeywordBindings(keywordIds);
public PropertyPageNode(RegistryPageContributor contributor, IAdaptable element, Collection keywordIds) { super(contributor.getPageId()); this.contributor = contributor; this.element = element; setKeywordBindings(keywordIds); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/ae3e100ae6878a705a77e44dd4224a8c8afb3d99/PropertyPageNode.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/PropertyPageNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4276, 1964, 907, 12, 4243, 1964, 442, 19293, 31123, 16, 5411, 467, 13716, 429, 930, 16, 2200, 4932, 2673, 13, 288, 3639, 2240, 12, 591, 19293, 18, 588, 23053, 10663, 3639, 333, 18, 591, 19293, 273, 31123, 31, 3639, 333, 18, 2956, 273, 930, 31, 6647, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4276, 1964, 907, 12, 4243, 1964, 442, 19293, 31123, 16, 5411, 467, 13716, 429, 930, 16, 2200, 4932, 2673, 13, 288, 3639, 2240, 12, 591, 19293, 18, 588, 23053, 10663, 3639, 333, 18, 591, 19293, 273, 31123, 31, 3639, 333, 18, 2956, 273, 930, 31, 6647, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Main.debug( "sendShowDocumentCmd from context#" + contextID + " url = " + url );
Main.debug( "sendShowDocumentCmd from context#" + loaderKey + " url = " + url );
public void sendShowDocumentCmd( String contextID, String url ) { Main.debug( "sendShowDocumentCmd from context#" + contextID + " url = " + url ); //length = length of args + 2 for seps + 1 for end + 1 for code int length = contextID.length() + url.length() + 4; char[] chars = new char[ length + 8 ]; //8 for the length of this message char[] tmpchar = getPaddedLength( length ); int index = 0; System.arraycopy( tmpchar, 0, chars, index, tmpchar.length ); index += tmpchar.length; chars[index++] = (char) ShowDocumentCode; chars[index++] = sep; tmpchar = contextID.toCharArray(); System.arraycopy( tmpchar, 0, chars, index, tmpchar.length ); index += tmpchar.length; chars[index++] = sep; tmpchar = url.toCharArray(); System.arraycopy( tmpchar, 0, chars, index, tmpchar.length ); index += tmpchar.length; chars[index++] = sep; signals.print( chars ); }
45545 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45545/b282b3f53e9ec4ef6ab60ab4211bae6dd1fae0f4/KJASProtocolHandler.java/clean/khtml/java/org/kde/kjas/server/KJASProtocolHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1366, 5706, 2519, 5931, 12, 514, 819, 734, 16, 514, 880, 262, 565, 288, 3639, 12740, 18, 4148, 12, 315, 4661, 5706, 2519, 5931, 628, 819, 17133, 397, 4088, 653, 397, 315, 880, 273, 315, 397, 880, 11272, 3639, 368, 2469, 273, 769, 434, 833, 397, 576, 364, 695, 1121, 397, 404, 364, 679, 397, 404, 364, 981, 3639, 509, 769, 273, 819, 734, 18, 2469, 1435, 397, 880, 18, 2469, 1435, 397, 1059, 31, 3639, 1149, 8526, 5230, 273, 394, 1149, 63, 769, 397, 1725, 308, 31, 368, 28, 364, 326, 769, 434, 333, 883, 3639, 1149, 8526, 1853, 3001, 273, 1689, 9665, 1782, 12, 769, 11272, 3639, 509, 770, 273, 374, 31, 3639, 2332, 18, 1126, 3530, 12, 1853, 3001, 16, 374, 16, 5230, 16, 770, 16, 1853, 3001, 18, 2469, 11272, 3639, 770, 1011, 1853, 3001, 18, 2469, 31, 3639, 5230, 63, 1615, 9904, 65, 273, 261, 3001, 13, 9674, 2519, 1085, 31, 3639, 5230, 63, 1615, 9904, 65, 273, 5478, 31, 3639, 1853, 3001, 273, 819, 734, 18, 869, 15936, 5621, 3639, 2332, 18, 1126, 3530, 12, 1853, 3001, 16, 374, 16, 5230, 16, 770, 16, 1853, 3001, 18, 2469, 11272, 3639, 770, 1011, 1853, 3001, 18, 2469, 31, 3639, 5230, 63, 1615, 9904, 65, 273, 5478, 31, 3639, 1853, 3001, 273, 880, 18, 869, 15936, 5621, 3639, 2332, 18, 1126, 3530, 12, 1853, 3001, 16, 374, 16, 5230, 16, 770, 16, 1853, 3001, 18, 2469, 11272, 3639, 770, 1011, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1366, 5706, 2519, 5931, 12, 514, 819, 734, 16, 514, 880, 262, 565, 288, 3639, 12740, 18, 4148, 12, 315, 4661, 5706, 2519, 5931, 628, 819, 17133, 397, 4088, 653, 397, 315, 880, 273, 315, 397, 880, 11272, 3639, 368, 2469, 273, 769, 434, 833, 397, 576, 364, 695, 1121, 397, 404, 364, 679, 397, 404, 364, 981, 3639, 509, 769, 273, 819, 734, 18, 2469, 1435, 397, 880, 18, 2469, 1435, 397, 1059, 31, 3639, 1149, 8526, 5230, 273, 394, 1149, 63, 769, 397, 1725, 308, 31, 368, 28, 364, 326, 769, 434, 333, 883, 3639, 1149, 8526, 1853, 3001, 273, 1689, 9665, 1782, 12, 769, 11272, 3639, 509, 770, 273, 374, 31, 3639, 2332, 2 ]
/*if (mode == MesquiteColorTable.DEFAULT || mode == MesquiteColorTable.COLORS_NO_BW) colors.setColor(i, MesquiteColorTable.getDefaultColor(10,place, MesquiteColorTable.COLORS_NO_BW)); else colors.setColor(i, MesquiteColorTable.getDefaultColor(10,place, mode)); */ colors.setColor(0, colorTable.getColor(s, minState, maxState)); /* if (mode == MesquiteColorTable.DEFAULT || mode == MesquiteColorTable.COLORS_NO_BW) colors.setColor(0, MesquiteColorTable.getColor(s, minState, maxState)); else if (mode == MesquiteColorTable.GRAYSCALE) colors.setColor(0, MesquiteColorTable.getGrayScale(s, minState, maxState)); else colors.setColor(0, MesquiteColorTable.getColor(s, minState, maxState));*/
colors.setColor(i, colorTable.getColor(10, place));
public int getColorsOfState(CharacterState state, ColorDistribution colors, MesquiteColorTable colorTable) { if (colors==null || state == null || ! (state instanceof ContinuousState)) return 0; colors.initialize(); ContinuousState cState = (ContinuousState)state; int colorCount=0; if (cState.getNumItems() == 1) { double s =cState.getValue(0); colors.setWeight(0, 1.0); if (!MesquiteDouble.isCombinable(s)) colors.setColor(0, Color.white); else { int place = (int)(((s-minState)/(maxState-minState))*10); /*if (mode == MesquiteColorTable.DEFAULT || mode == MesquiteColorTable.COLORS_NO_BW) colors.setColor(0, MesquiteColorTable.getDefaultColor(10,place, MesquiteColorTable.COLORS_NO_BW)); else colors.setColor(0, MesquiteColorTable.getDefaultColor(10,place, mode)); */ colors.setColor(0, colorTable.getColor(s, minState, maxState)); /* if (mode == MesquiteColorTable.DEFAULT || mode == MesquiteColorTable.COLORS_NO_BW) colors.setColor(0, MesquiteColorTable.getColor(s, minState, maxState)); else if (mode == MesquiteColorTable.GRAYSCALE) colors.setColor(0, MesquiteColorTable.getGrayScale(s, minState, maxState)); else colors.setColor(0, MesquiteColorTable.getColor(s, minState, maxState));*/ } } else { for (int i=0; i<cState.getNumItems() ; i++) { double s = cState.getValue(i); colors.setWeight(i, 1.0/cState.getNumItems() ); if (!MesquiteDouble.isCombinable(s)) colors.setColor(0, Color.white); else { int place = (int)(((s-minState)/(maxState-minState))*10); /*if (mode == MesquiteColorTable.DEFAULT || mode == MesquiteColorTable.COLORS_NO_BW) colors.setColor(i, MesquiteColorTable.getDefaultColor(10,place, MesquiteColorTable.COLORS_NO_BW)); else colors.setColor(i, MesquiteColorTable.getDefaultColor(10,place, mode)); */ colors.setColor(0, colorTable.getColor(s, minState, maxState)); /* if (mode == MesquiteColorTable.DEFAULT || mode == MesquiteColorTable.COLORS_NO_BW) colors.setColor(0, MesquiteColorTable.getColor(s, minState, maxState)); else if (mode == MesquiteColorTable.GRAYSCALE) colors.setColor(0, MesquiteColorTable.getGrayScale(s, minState, maxState)); else colors.setColor(0, MesquiteColorTable.getColor(s, minState, maxState));*/ } } } return cState.getNumItems() ; }
57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/88e3c75ba71c7c3e23478b1c3ff126ef3c6fe3ab/ContinuousHistory.java/buggy/branches/Mesquite1.x/Mesquite Project/Source/mesquite/cont/lib/ContinuousHistory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 336, 12570, 951, 1119, 12, 7069, 1119, 919, 16, 5563, 9003, 5740, 16, 490, 281, 372, 1137, 2957, 1388, 2036, 1388, 13, 288, 202, 202, 430, 261, 9724, 631, 2011, 747, 919, 422, 446, 747, 401, 261, 2019, 1276, 1816, 16295, 1119, 3719, 1082, 202, 2463, 374, 31, 202, 202, 9724, 18, 11160, 5621, 202, 202, 26509, 1119, 276, 1119, 273, 261, 26509, 1119, 13, 2019, 31, 202, 202, 474, 2036, 1380, 33, 20, 31, 202, 202, 430, 261, 71, 1119, 18, 588, 2578, 3126, 1435, 422, 404, 13, 288, 1082, 202, 9056, 272, 273, 71, 1119, 18, 24805, 12, 20, 1769, 1875, 202, 9724, 18, 542, 6544, 12, 20, 16, 404, 18, 20, 1769, 1082, 202, 430, 16051, 49, 281, 372, 1137, 5265, 18, 291, 24107, 429, 12, 87, 3719, 9506, 202, 9724, 18, 542, 2957, 12, 20, 16, 5563, 18, 14739, 1769, 1082, 202, 12107, 288, 9506, 202, 474, 3166, 273, 261, 474, 13, 12443, 12, 87, 17, 1154, 1119, 13176, 12, 1896, 1119, 17, 1154, 1119, 3719, 14, 2163, 1769, 4697, 202, 20308, 430, 261, 3188, 422, 490, 281, 372, 1137, 2957, 1388, 18, 5280, 747, 1965, 422, 490, 281, 372, 1137, 2957, 1388, 18, 10989, 55, 67, 3417, 67, 38, 59, 13, 6862, 202, 9724, 18, 542, 2957, 12, 20, 16, 490, 281, 372, 1137, 2957, 1388, 18, 588, 1868, 2957, 12, 2163, 16, 964, 16, 490, 281, 372, 1137, 2957, 1388, 18, 10989, 55, 67, 3417, 67, 38, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 336, 12570, 951, 1119, 12, 7069, 1119, 919, 16, 5563, 9003, 5740, 16, 490, 281, 372, 1137, 2957, 1388, 2036, 1388, 13, 288, 202, 202, 430, 261, 9724, 631, 2011, 747, 919, 422, 446, 747, 401, 261, 2019, 1276, 1816, 16295, 1119, 3719, 1082, 202, 2463, 374, 31, 202, 202, 9724, 18, 11160, 5621, 202, 202, 26509, 1119, 276, 1119, 273, 261, 26509, 1119, 13, 2019, 31, 202, 202, 474, 2036, 1380, 33, 20, 31, 202, 202, 430, 261, 71, 1119, 18, 588, 2578, 3126, 1435, 422, 404, 13, 288, 1082, 202, 9056, 272, 273, 71, 1119, 18, 24805, 12, 20, 1769, 1875, 202, 9724, 18, 542, 6544, 12, 20, 16, 404, 18, 20, 1769, 2 ]
Link next = previous.next; Iterator it = collection.iterator(); while (it.hasNext()) { Link newLink = new Link(it.next(), previous, null);
Link<E> next = previous.next; for (E e : collection) { Link<E> newLink = new Link<E>(e, previous, null);
public boolean addAll(int location, Collection collection) { if (location < 0 || location > size) { throw new IndexOutOfBoundsException(); } int adding = collection.size(); if (adding == 0) { return false; } Link previous = voidLink; if (location < (size / 2)) { for (int i = 0; i < location; i++) { previous = previous.next; } } else { for (int i = size; i >= location; i--) { previous = previous.previous; } } Link next = previous.next; Iterator it = collection.iterator(); while (it.hasNext()) { Link newLink = new Link(it.next(), previous, null); previous.next = newLink; previous = newLink; } previous.next = next; next.previous = previous; size += adding; modCount++; return true; }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/514f355cab57dc0370fb319b8d7159248bd0934c/LinkedList.java/buggy/modules/luni/src/main/java/java/util/LinkedList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 5428, 12, 474, 2117, 16, 2200, 1849, 13, 288, 3639, 309, 261, 3562, 411, 374, 747, 2117, 405, 963, 13, 288, 5411, 604, 394, 17768, 5621, 3639, 289, 3639, 509, 6534, 273, 1849, 18, 1467, 5621, 3639, 309, 261, 3439, 422, 374, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 4048, 2416, 273, 918, 2098, 31, 3639, 309, 261, 3562, 411, 261, 1467, 342, 576, 3719, 288, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2117, 31, 277, 27245, 288, 7734, 2416, 273, 2416, 18, 4285, 31, 5411, 289, 3639, 289, 469, 288, 5411, 364, 261, 474, 277, 273, 963, 31, 277, 1545, 2117, 31, 277, 413, 13, 288, 7734, 2416, 273, 2416, 18, 11515, 31, 5411, 289, 3639, 289, 3639, 4048, 1024, 273, 2416, 18, 4285, 31, 3639, 4498, 518, 273, 1849, 18, 9838, 5621, 3639, 1323, 261, 305, 18, 5332, 2134, 10756, 288, 5411, 4048, 394, 2098, 273, 394, 4048, 12, 305, 18, 4285, 9334, 2416, 16, 446, 1769, 5411, 2416, 18, 4285, 273, 394, 2098, 31, 5411, 2416, 273, 394, 2098, 31, 3639, 289, 3639, 2416, 18, 4285, 273, 1024, 31, 3639, 1024, 18, 11515, 273, 2416, 31, 3639, 963, 1011, 6534, 31, 3639, 681, 1380, 9904, 31, 3639, 327, 638, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 5428, 12, 474, 2117, 16, 2200, 1849, 13, 288, 3639, 309, 261, 3562, 411, 374, 747, 2117, 405, 963, 13, 288, 5411, 604, 394, 17768, 5621, 3639, 289, 3639, 509, 6534, 273, 1849, 18, 1467, 5621, 3639, 309, 261, 3439, 422, 374, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 4048, 2416, 273, 918, 2098, 31, 3639, 309, 261, 3562, 411, 261, 1467, 342, 576, 3719, 288, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2117, 31, 277, 27245, 288, 7734, 2416, 273, 2416, 18, 4285, 31, 5411, 289, 3639, 289, 469, 288, 5411, 364, 261, 474, 277, 273, 963, 31, 277, 1545, 2117, 31, 277, 413, 13, 288, 7734, 2416, 273, 2416, 2 ]
if (this.isMultiple) { ChoiceItem item = (ChoiceItem) this.itemsList.get( elementNum ); item.select( selected ); } else { if (selected == false) { return; } ChoiceItem oldSelected = (ChoiceItem) this.itemsList.get( this.selectedIndex ); oldSelected.select( false ); ChoiceItem newSelected = (ChoiceItem) this.itemsList.get( elementNum ); newSelected.select( true ); this.selectedIndex = elementNum; if (this.isPopup) { this.popupItem.setText( newSelected.getText() ); } else if (this.isImplicit) { Screen scr = getScreen(); if (scr != null) { Command selectCmd = this.selectCommand; if (selectCmd == null) { selectCmd = List.SELECT_COMMAND; } scr.callCommandListener( selectCmd ); } } } repaint();
public void setSelectedIndex(int elementNum, boolean selected) { //TODO implement setSelectedIndex }
9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/4e8983ac96e4e1a995d9f8434572c31f4d05d76c/ChoiceGroup.java/buggy/enough-polish-j2me/source/src/de/enough/polish/ui/ChoiceGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 430, 261, 2211, 18, 291, 8438, 13, 288, 16432, 1180, 761, 273, 261, 10538, 1180, 13, 333, 18, 3319, 682, 18, 588, 12, 930, 2578, 11272, 761, 18, 4025, 12, 3170, 11272, 289, 469, 288, 309, 261, 8109, 422, 629, 13, 288, 327, 31, 289, 16432, 1180, 1592, 7416, 273, 261, 10538, 1180, 13, 333, 18, 3319, 682, 18, 588, 12, 333, 18, 8109, 1016, 11272, 1592, 7416, 18, 4025, 12, 629, 11272, 16432, 1180, 394, 7416, 273, 261, 10538, 1180, 13, 333, 18, 3319, 682, 18, 588, 12, 930, 2578, 11272, 394, 7416, 18, 4025, 12, 638, 11272, 333, 18, 8109, 1016, 273, 930, 2578, 31, 309, 261, 2211, 18, 291, 13770, 13, 288, 333, 18, 16086, 1180, 18, 542, 1528, 12, 394, 7416, 18, 588, 1528, 1435, 11272, 289, 469, 309, 261, 2211, 18, 291, 15787, 13, 288, 225, 10146, 11991, 273, 22303, 5621, 309, 261, 24638, 480, 446, 13, 288, 3498, 2027, 5931, 273, 333, 18, 4025, 2189, 31, 309, 261, 4025, 5931, 422, 446, 13, 288, 2027, 5931, 273, 987, 18, 4803, 67, 19104, 31, 289, 11991, 18, 1991, 2189, 2223, 12, 2027, 5931, 11272, 289, 289, 289, 24962, 5621, 918, 430, 261, 2211, 18, 291, 8438, 13, 288, 16432, 1180, 761, 273, 261, 10538, 1180, 13, 333, 18, 3319, 682, 18, 588, 12, 930, 2578, 11272, 761, 18, 4025, 12, 3170, 11272, 289, 469, 288, 309, 261, 8109, 422, 629, 13, 288, 327, 31, 289, 16432, 1180, 1592, 7416, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 430, 261, 2211, 18, 291, 8438, 13, 288, 16432, 1180, 761, 273, 261, 10538, 1180, 13, 333, 18, 3319, 682, 18, 588, 12, 930, 2578, 11272, 761, 18, 4025, 12, 3170, 11272, 289, 469, 288, 309, 261, 8109, 422, 629, 13, 288, 327, 31, 289, 16432, 1180, 1592, 7416, 273, 261, 10538, 1180, 13, 333, 18, 3319, 682, 18, 588, 12, 333, 18, 8109, 1016, 11272, 1592, 7416, 18, 4025, 12, 629, 11272, 16432, 1180, 394, 7416, 273, 261, 10538, 1180, 13, 333, 18, 3319, 682, 18, 588, 12, 930, 2578, 11272, 394, 7416, 18, 4025, 12, 638, 11272, 333, 18, 8109, 1016, 273, 930, 2578, 31, 309, 261, 2211, 18, 291, 13770, 13, 288, 333, 2 ]
.getColorRegistry().get(TaskListColorsAndFonts.THEME_COLOR_ID_TASKLIST_CATEGORY));
.getColorRegistry().get(TaskListColorsAndFonts.THEME_COLOR_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(); } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/c29edb74f603aed39387091c4a60d36044b650be/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, 6862, 202, 20081, 871, 18, 588, 1396, 7675, 14963, 12, 2174, 682, 12570, 1876, 5711, 87, 18, 24644, 958, 67, 10989, 67, 734, 67, 15580, 7085, 67, 24847, 3719, 288, 9506, 202, 4146, 5623, 2471, 2224, 2249, 18, 542, 4457, 21699, 12, 7997, 1318, 18, 588, 3935, 8335, 1435, 25083, 202, 18, 588, 2957, 4243, 7675, 588, 12, 2174, 682, 12570, 1876, 5711, 87, 18, 24644, 958, 67, 10989, 67, 734, 67, 15580, 7085, 67, 24847, 10019, 9506, 202, 9144, 5621, 1082, 202, 97, 202, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 6862, 202, 20081, 871, 18, 588, 1396, 7675, 14963, 12, 2174, 682, 12570, 1876, 5711, 87, 18, 24644, 958, 67, 10989, 67, 734, 67, 15580, 7085, 67, 24847, 3719, 288, 9506, 202, 4146, 5623, 2471, 2224, 2249, 18, 542, 4457, 21699, 12, 7997, 1318, 18, 588, 3935, 8335, 1435, 25083, 202, 18, 588, 2957, 4243, 7675, 588, 12, 2174, 682, 12570, 1876, 5711, 87, 18, 24644, 958, 67, 10989, 67, 734, 67, 15580, 7085, 67, 24847, 10019, 9506, 202, 9144, 5621, 1082, 202, 97, 2 ]
this.ensureIndexIsVisible(index);
private void groupAdded(MetaContactGroup group){ int index = this.listModel.indexOf(group); this.listModel.contentAdded(index, index); this.ensureIndexIsVisible(index); Iterator childContacts = group.getChildContacts(); while(childContacts.hasNext()){ MetaContact contact = (MetaContact)childContacts.next(); int contactIndex = this.listModel.indexOf(contact); this.listModel.contentAdded(contactIndex, contactIndex); this.ensureIndexIsVisible(contactIndex); } Iterator subGroups = group.getSubgroups(); while(subGroups.hasNext()){ MetaContactGroup subGroup = (MetaContactGroup)subGroups.next(); this.groupAdded(subGroup); } }
27035 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27035/12b4ac8332883d26b3e5cabb95aa04f3b9e87900/ContactList.java/clean/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1041, 8602, 12, 2781, 6567, 1114, 1041, 15329, 7734, 509, 770, 273, 333, 18, 1098, 1488, 18, 31806, 12, 1655, 1769, 3639, 333, 18, 1098, 1488, 18, 1745, 8602, 12, 1615, 16, 770, 1769, 1171, 9079, 4498, 1151, 20017, 273, 1041, 18, 588, 1763, 20017, 5621, 7734, 1323, 12, 3624, 20017, 18, 5332, 2134, 10756, 95, 5411, 6565, 6567, 5388, 273, 261, 2781, 6567, 13, 3624, 20017, 18, 4285, 5621, 13491, 509, 5388, 1016, 273, 333, 18, 1098, 1488, 18, 31806, 12, 8994, 1769, 5411, 333, 18, 1098, 1488, 18, 1745, 8602, 12, 8994, 1016, 16, 5388, 1016, 1769, 13491, 333, 18, 15735, 1016, 2520, 6207, 12, 8994, 1016, 1769, 3639, 289, 7734, 4498, 720, 3621, 273, 1041, 18, 588, 1676, 4650, 5621, 7734, 1323, 12, 1717, 3621, 18, 5332, 2134, 10756, 95, 5411, 6565, 6567, 1114, 720, 1114, 273, 261, 2781, 6567, 1114, 13, 1717, 3621, 18, 4285, 5621, 13491, 333, 18, 1655, 8602, 12, 1717, 1114, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 918, 1041, 8602, 12, 2781, 6567, 1114, 1041, 15329, 7734, 509, 770, 273, 333, 18, 1098, 1488, 18, 31806, 12, 1655, 1769, 3639, 333, 18, 1098, 1488, 18, 1745, 8602, 12, 1615, 16, 770, 1769, 1171, 9079, 4498, 1151, 20017, 273, 1041, 18, 588, 1763, 20017, 5621, 7734, 1323, 12, 3624, 20017, 18, 5332, 2134, 10756, 95, 5411, 6565, 6567, 5388, 273, 261, 2781, 6567, 13, 3624, 20017, 18, 4285, 5621, 13491, 509, 5388, 1016, 273, 333, 18, 1098, 1488, 18, 31806, 12, 8994, 1769, 5411, 333, 18, 1098, 1488, 18, 1745, 8602, 12, 8994, 1016, 16, 5388, 1016, 1769, 13491, 333, 18, 15735, 1016, 2520, 6207, 12, 8994, 1016, 1769, 3639, 289, 7734, 4498, 720, 3621, 2 ]
protected void writeTestClasses(WSDLBinding binding) throws Exception {
protected void writeTestClasses() throws Exception {
protected void writeTestClasses(WSDLBinding binding) throws Exception { if (configuration.isWriteTestCase()) { Document classModel = createDOMDocumentForTestCase(binding); TestClassWriter callbackWriter = new TestClassWriter( getOutputDirectory(this.configuration.getOutputLocation(), "test"), this.configuration.getOutputLanguage()); writeClass(classModel, callbackWriter); } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/40bfbf71fb1fee9975ccec667947ae9f8f2681a6/MultiLanguageClientEmitter.java/clean/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1045, 4709, 4818, 1435, 1216, 1185, 288, 3639, 309, 261, 7025, 18, 291, 3067, 4709, 2449, 10756, 288, 5411, 4319, 667, 1488, 273, 752, 8168, 2519, 1290, 4709, 2449, 12, 7374, 1769, 5411, 7766, 797, 2289, 1348, 2289, 273, 10792, 394, 7766, 797, 2289, 12, 18701, 11062, 2853, 12, 2211, 18, 7025, 18, 588, 1447, 2735, 9334, 315, 3813, 6, 3631, 18701, 333, 18, 7025, 18, 588, 1447, 3779, 10663, 5411, 1045, 797, 12, 1106, 1488, 16, 1348, 2289, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4750, 918, 1045, 4709, 4818, 1435, 1216, 1185, 288, 3639, 309, 261, 7025, 18, 291, 3067, 4709, 2449, 10756, 288, 5411, 4319, 667, 1488, 273, 752, 8168, 2519, 1290, 4709, 2449, 12, 7374, 1769, 5411, 7766, 797, 2289, 1348, 2289, 273, 10792, 394, 7766, 797, 2289, 12, 18701, 11062, 2853, 12, 2211, 18, 7025, 18, 588, 1447, 2735, 9334, 315, 3813, 6, 3631, 18701, 333, 18, 7025, 18, 588, 1447, 3779, 10663, 5411, 1045, 797, 12, 1106, 1488, 16, 1348, 2289, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
java.sql.ResultSet dr = connection.ExecSQL("select description from pg_description where objoid="+r.getInt(2));
java.sql.ResultSet dr = connection.ExecSQL(null, "select description from pg_description where objoid="+r.getInt(2));
public java.sql.ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String types[]) throws SQLException { // Handle default value for types if(types==null) types = defaultTableTypes; if(tableNamePattern==null) tableNamePattern="%"; // the field descriptors for the new ResultSet Field f[] = new Field[5]; java.sql.ResultSet r; // ResultSet for the SQL query that we need to do Vector v = new Vector(); // The new ResultSet tuple stuff f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, 32); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, 32); f[3] = new Field(connection, "TABLE_TYPE", iVarcharOid, 32); f[4] = new Field(connection, "REMARKS", iVarcharOid, 32); // Now form the query StringBuffer sql = new StringBuffer("select relname,oid,relkind from pg_class where ("); boolean notFirst=false; for(int i=0;i<types.length;i++) { for(int j=0;j<getTableTypes.length;j++) if(getTableTypes[j][0].equals(types[i])) { if(notFirst) sql.append(" or "); sql.append(getTableTypes[j][1]); notFirst=true; } } // Added by Stefan Andreasen <stefan@linux.kapow.dk> // Now take the pattern into account sql.append(") and relname like '"); sql.append(tableNamePattern.toLowerCase()); sql.append("'"); // Now run the query r = connection.ExecSQL(sql.toString()); byte remarks[]; while (r.next()) { byte[][] tuple = new byte[5][0]; // Fetch the description for the table (if any) java.sql.ResultSet dr = connection.ExecSQL("select description from pg_description where objoid="+r.getInt(2)); if(((org.postgresql.ResultSet)dr).getTupleCount()==1) { dr.next(); remarks = dr.getBytes(1); } else remarks = defaultRemarks; dr.close(); String relKind; switch (r.getBytes(3)[0]) { case 'r': relKind = "TABLE"; break; case 'i': relKind = "INDEX"; break; case 'S': relKind = "SEQUENCE"; break; default: relKind = null; } tuple[0] = null; // Catalog name tuple[1] = null; // Schema name tuple[2] = r.getBytes(1); // Table name tuple[3] = relKind.getBytes(); // Table type tuple[4] = remarks; // Remarks v.addElement(tuple); } r.close(); return new ResultSet(connection, f, v, "OK", 1); }
46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/5383b5d8ed6da5c90bcbdb63401b7d1d75db563d/DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2252, 18, 4669, 18, 13198, 29002, 12, 780, 6222, 16, 514, 1963, 3234, 16, 514, 4775, 3234, 16, 514, 1953, 63, 5717, 1216, 6483, 225, 288, 565, 368, 5004, 805, 460, 364, 1953, 565, 309, 12, 2352, 631, 2011, 13, 1377, 1953, 273, 805, 1388, 2016, 31, 3639, 309, 12, 18033, 3234, 631, 2011, 13, 1377, 4775, 3234, 11613, 14432, 3639, 368, 326, 652, 14215, 364, 326, 394, 10842, 565, 2286, 284, 8526, 273, 394, 2286, 63, 25, 15533, 565, 2252, 18, 4669, 18, 13198, 436, 31, 202, 759, 10842, 364, 326, 3063, 843, 716, 732, 1608, 358, 741, 565, 5589, 331, 273, 394, 5589, 5621, 202, 202, 759, 1021, 394, 10842, 3193, 10769, 3639, 284, 63, 20, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 14130, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 565, 284, 63, 21, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 55, 10390, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 565, 284, 63, 22, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 1985, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 565, 284, 63, 23, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 2399, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 565, 284, 63, 24, 65, 273, 394, 2286, 12, 4071, 16, 315, 862, 12693, 55, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 3639, 368, 4494, 646, 326, 843, 565, 6674, 1847, 273, 394, 6674, 2932, 4025, 1279, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2252, 18, 4669, 18, 13198, 29002, 12, 780, 6222, 16, 514, 1963, 3234, 16, 514, 4775, 3234, 16, 514, 1953, 63, 5717, 1216, 6483, 225, 288, 565, 368, 5004, 805, 460, 364, 1953, 565, 309, 12, 2352, 631, 2011, 13, 1377, 1953, 273, 805, 1388, 2016, 31, 3639, 309, 12, 18033, 3234, 631, 2011, 13, 1377, 4775, 3234, 11613, 14432, 3639, 368, 326, 652, 14215, 364, 326, 394, 10842, 565, 2286, 284, 8526, 273, 394, 2286, 63, 25, 15533, 565, 2252, 18, 4669, 18, 13198, 436, 31, 202, 759, 10842, 364, 326, 3063, 843, 716, 732, 1608, 358, 741, 565, 5589, 331, 273, 394, 5589, 5621, 202, 202, 759, 1021, 394, 10842, 3193, 10769, 3639, 284, 63, 2 ]
private void placeComponents() { FillLayout flMain = new FillLayout();
private void placeComponents( ) { FillLayout flMain = new FillLayout( );
private void placeComponents() { FillLayout flMain = new FillLayout(); flMain.marginHeight = 0; flMain.marginWidth = 0; GridLayout glAttributes = new GridLayout(); glAttributes.horizontalSpacing = 5; glAttributes.verticalSpacing = 5; glAttributes.marginHeight = 7; glAttributes.marginWidth = 7; GridLayout glGeneral = new GridLayout(); glGeneral.numColumns = 2; glGeneral.horizontalSpacing = 5; glGeneral.verticalSpacing = 5; FillLayout flOutline = new FillLayout(); this.setLayout(flMain); if (sGroupName == null || sGroupName.length() == 0) { grpAttributes = new Composite(this, SWT.NONE); } else { grpAttributes = new Group(this, SWT.NONE); ((Group) grpAttributes).setText(sGroupName); } grpAttributes.setLayout(glAttributes); cmpGeneral = new Composite(grpAttributes, SWT.NONE); GridData gdCMPGeneral = new GridData(GridData.FILL_HORIZONTAL); cmpGeneral.setLayoutData(gdCMPGeneral); cmpGeneral.setLayout(glGeneral); boolean bEnableUI = bEnabled; if (bVisibilityEnabled) { cbVisible = new Button(cmpGeneral, SWT.CHECK); GridData gdCBVisible = new GridData(GridData.FILL_HORIZONTAL); gdCBVisible.horizontalSpan = 2; cbVisible.setLayoutData(gdCBVisible); cbVisible.setSelection(this.lblCurrent.isVisible()); cbVisible.setText(Messages .getString("LabelAttributesComposite.Lbl.IsVisible")); //$NON-NLS-1$ cbVisible.addSelectionListener(this); if (bEnabled) { bEnableUI = cbVisible.getSelection(); } } if (bPositionEnabled) { lblPosition = new Label(cmpGeneral, SWT.NONE); GridData gdLBLPosition = new GridData(); lblPosition.setLayoutData(gdLBLPosition); lblPosition.setText(Messages .getString("LabelAttributesComposite.Lbl.Position")); //$NON-NLS-1$ lblPosition.setEnabled(bEnableUI); cmbPosition = new Combo(cmpGeneral, SWT.DROP_DOWN | SWT.READ_ONLY); GridData gdCMBPosition = new GridData(GridData.FILL_BOTH); cmbPosition.setLayoutData(gdCMBPosition); cmbPosition.addSelectionListener(this); cmbPosition.setEnabled(bEnableUI); } lblFont = new Label(cmpGeneral, SWT.NONE); GridData gdLFont = new GridData(); lblFont.setLayoutData(gdLFont); lblFont .setText(Messages .getString("LabelAttributesComposite.Lbl.Font")); //$NON-NLS-1$ lblFont.setEnabled(bEnableUI); fdcFont = new FontDefinitionComposite(cmpGeneral, SWT.NONE, this.fdCurrent, this.cdFont, this.isAlignmentEnabled); GridData gdFDCFont = new GridData(GridData.FILL_BOTH); gdFDCFont.heightHint = fdcFont.getPreferredSize().y; gdFDCFont.widthHint = 96; gdFDCFont.grabExcessVerticalSpace = false; fdcFont.setLayoutData(gdFDCFont); fdcFont.addListener(this); fdcFont.setEnabled(bEnableUI); lblFill = new Label(cmpGeneral, SWT.NONE); GridData gdLFill = new GridData(); lblFill.setLayoutData(gdLFill); lblFill.setText(Messages .getString("LabelAttributesComposite.Lbl.Background")); //$NON-NLS-1$ lblFill.setEnabled(bEnableUI); fccBackground = new FillChooserComposite(cmpGeneral, SWT.NONE, fBackground, false, false); GridData gdFCCBackground = new GridData(GridData.FILL_BOTH); gdFCCBackground.heightHint = fccBackground.getPreferredSize().y; fccBackground.setLayoutData(gdFCCBackground); fccBackground.addListener(this); fccBackground.setEnabled(bEnableUI); if (bShadowEnabled) { lblShadow = new Label(cmpGeneral, SWT.NONE); GridData gdLBLShadow = new GridData(); lblShadow.setLayoutData(gdLBLShadow); lblShadow.setText(Messages .getString("LabelAttributesComposite.Lbl.Shadow")); //$NON-NLS-1$ lblShadow.setEnabled(bEnableUI); fccShadow = new FillChooserComposite(cmpGeneral, SWT.NONE, cdShadow, false, false); GridData gdFCCShadow = new GridData(GridData.FILL_BOTH); fccShadow.setLayoutData(gdFCCShadow); fccShadow.addListener(this); fccShadow.setEnabled(bEnableUI); } grpOutline = new Group(grpAttributes, SWT.NONE); GridData gdGOutline = new GridData(GridData.FILL_HORIZONTAL); gdGOutline.heightHint = 110; grpOutline.setLayoutData(gdGOutline); grpOutline.setText(Messages .getString("LabelAttributesComposite.Lbl.Outline")); //$NON-NLS-1$ grpOutline.setLayout(flOutline); grpOutline.setEnabled(bEnableUI); liacOutline = new LineAttributesComposite(grpOutline, SWT.NONE, laCurrent, true, true, true); liacOutline.addListener(this); liacOutline.setEnabled(bEnableUI); if (bInsetsEnabled == true) { icInsets = new InsetsComposite(grpAttributes, SWT.NONE, insets, sUnits, serviceprovider); GridData gdICInsets = new GridData(GridData.FILL_HORIZONTAL); gdICInsets.heightHint = icInsets.getPreferredSize().y; gdICInsets.grabExcessVerticalSpace = false; icInsets.addListener(this); icInsets.setLayoutData(gdICInsets); icInsets.setEnabled(bEnableUI); } populateLists(); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/500b4482b64451f75339ee5037485c3309647704/LabelAttributesComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/LabelAttributesComposite.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, 2384, 273, 374, 31, 202, 202, 6313, 3744, 5118, 2498, 273, 394, 7145, 3744, 5621, 202, 202, 7043, 2498, 18, 18396, 18006, 273, 1381, 31, 202, 202, 7043, 2498, 18, 17824, 18006, 273, 1381, 31, 202, 202, 7043, 2498, 18, 10107, 2686, 273, 2371, 31, 202, 202, 7043, 2498, 18, 10107, 2384, 273, 2371, 31, 202, 202, 6313, 3744, 5118, 12580, 273, 394, 7145, 3744, 5621, 202, 202, 7043, 12580, 18, 2107, 3380, 273, 576, 31, 202, 202, 7043, 12580, 18, 18396, 18006, 273, 1381, 31, 202, 202, 7043, 12580, 18, 17824, 18006, 273, 1381, 31, 202, 202, 8026, 3744, 1183, 21805, 273, 394, 14192, 3744, 5621, 202, 202, 2211, 18, 542, 3744, 12, 2242, 6376, 1769, 202, 202, 430, 261, 87, 3943, 422, 446, 747, 272, 3943, 18, 2469, 1435, 422, 374, 13, 288, 1082, 202, 17532, 2498, 273, 394, 14728, 12, 2211, 16, 348, 8588, 18, 9826, 1769, 202, 202, 97, 469, 288, 1082, 202, 17532, 2498, 273, 394, 3756, 12, 2211, 16, 348, 8588, 18, 9826, 1769, 1082, 202, 12443, 1114, 13, 14295, 2498, 2934, 542, 1528, 12, 87, 3943, 1769, 202, 202, 97, 202, 202, 17532, 2498, 18, 542, 3744, 12, 7043, 2498, 1769, 202, 202, 9625, 12580, 273, 394, 14728, 12, 17532, 2498, 16, 348, 8588, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2384, 273, 374, 31, 202, 202, 6313, 3744, 5118, 2498, 273, 394, 7145, 3744, 5621, 202, 202, 7043, 2498, 18, 18396, 18006, 273, 1381, 31, 202, 202, 7043, 2498, 18, 17824, 18006, 273, 1381, 31, 202, 202, 7043, 2498, 18, 10107, 2686, 273, 2371, 31, 202, 202, 7043, 2498, 18, 10107, 2384, 273, 2371, 31, 202, 202, 6313, 3744, 5118, 12580, 273, 394, 7145, 3744, 5621, 202, 202, 7043, 12580, 18, 2107, 3380, 273, 576, 31, 202, 202, 7043, 12580, 18, 18396, 18006, 273, 2 ]
return new SReference(role, sourceNode, null, null, extResolveInfo, modelDescriptor.getModelUID(), false);
return new SReference(role, sourceNode, null, null, extResolveInfo, modelDescriptor.getModelUID());
public static SReference getUnresolvedExternalReference(String role, SNode sourceNode, SModelDescriptor modelDescriptor, String extResolveInfo) { LOG.assertLog(sourceNode.getModel().getModelDescriptor() != modelDescriptor); return new SReference(role, sourceNode, null, null, extResolveInfo, modelDescriptor.getModelUID(), false); }
14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/a74e02026bf22498daeacdbb4ecac40d01bd342c/SReference.java/clean/source/jetbrains/mps/smodel/SReference.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 348, 2404, 10833, 11792, 6841, 2404, 12, 780, 2478, 16, 348, 907, 26799, 16, 348, 1488, 3187, 938, 3187, 16, 514, 1110, 8460, 966, 13, 288, 565, 2018, 18, 11231, 1343, 12, 3168, 907, 18, 588, 1488, 7675, 588, 1488, 3187, 1435, 480, 938, 3187, 1769, 565, 327, 394, 348, 2404, 12, 4615, 16, 26799, 16, 446, 16, 446, 16, 1110, 8460, 966, 16, 938, 3187, 18, 588, 1488, 3060, 10663, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 348, 2404, 10833, 11792, 6841, 2404, 12, 780, 2478, 16, 348, 907, 26799, 16, 348, 1488, 3187, 938, 3187, 16, 514, 1110, 8460, 966, 13, 288, 565, 2018, 18, 11231, 1343, 12, 3168, 907, 18, 588, 1488, 7675, 588, 1488, 3187, 1435, 480, 938, 3187, 1769, 565, 327, 394, 348, 2404, 12, 4615, 16, 26799, 16, 446, 16, 446, 16, 1110, 8460, 966, 16, 938, 3187, 18, 588, 1488, 3060, 10663, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
avceTokenList = new LinkedList( avceTokenList.subList( 0, avceTokenList.size() - ( tokensIterated ) ) );
avceTokenList = new LinkedList( avceTokenList.subList( 0, avceTokenList.size() - ( tokensIterated ) ) );
private Artifact buildArtifact( String path, PathLister kickoutLister ) throws Exception { try { StringTokenizer tokens = new StringTokenizer( path, "/\\" ); int numberOfTokens = tokens.countTokens(); if ( numberOfTokens != 3 ) { kickoutLister.addPath(path); return null; } String groupId = tokens.nextToken(); String type = tokens.nextToken(); if ( type.endsWith( "s" ) ) { type = type.substring( 0, type.length() - 1 ); } // contains artifactId, version, classifier, and extension. String avceGlob = tokens.nextToken(); LinkedList avceTokenList = new LinkedList(); StringTokenizer avceTokenizer = new StringTokenizer( avceGlob, "-" ); while ( avceTokenizer.hasMoreTokens() ) { avceTokenList.addLast( avceTokenizer.nextToken() ); } String lastAvceToken = (String) avceTokenList.removeLast(); if ( lastAvceToken.endsWith( ".tar.gz" ) ) { type = "distribution-tgz"; lastAvceToken = lastAvceToken.substring( 0, lastAvceToken.length() - ".tar.gz".length() ); avceTokenList.addLast( lastAvceToken ); } else if ( lastAvceToken.endsWith( ".zip" ) ) { type = "distribution-zip"; lastAvceToken = lastAvceToken.substring( 0, lastAvceToken.length() - ".zip".length() ); avceTokenList.addLast( lastAvceToken ); } else { int extPos = lastAvceToken.lastIndexOf( '.' ); if ( extPos > 0 ) { String ext = lastAvceToken.substring( extPos + 1 ); if ( type.equals( ext ) ) { lastAvceToken = lastAvceToken.substring( 0, extPos ); avceTokenList.addLast( lastAvceToken ); } else { kickoutLister.addPath(path); return null; } } } String validVersionParts = "([Dd][Ee][Vv][_.0-9]*)|" + "([Ss][Nn][Aa][Pp][Ss][Hh][Oo][Tt])|" + "([0-9][_.0-9a-zA-Z]*)|" + "([Gg]?[_.0-9ab]*([Pp][Rr][Ee]|[Rr][Cc]|[Gg]|[Mm])[_.0-9]*)|" + "([Aa][Ll][Pp][Hh][Aa][_.0-9]*)|" + "([Bb][Ee][Tt][Aa][_.0-9]*)|" + "([Rr][Cc][_.0-9]*)|" + "([Tt][Ee][Ss][Tt][_.0-9]*)|" + "([Dd][Ee][Bb][Uu][Gg][_.0-9]*)|" + "([Uu][Nn][Oo][Ff][Ff][Ii][Cc][Ii][Aa][Ll][_.0-9]*)|" + "([Cc][Uu][Rr][Rr][Ee][Nn][Tt])|" + "([Ll][Aa][Tt][Ee][Ss][Tt])|" + "([Ff][Cc][Ss])|" + "([Rr][Ee][Ll][Ee][Aa][Ss][Ee][_.0-9]*)|" + "([Nn][Ii][Gg][Hh][Tt][Ll][Yy])"; // let's discover the version, and whatever's leftover will be either // a classifier, or part of the artifactId, depending on position. // Since version is at the end, we have to move in from the back. Collections.reverse( avceTokenList ); StringBuffer classifierBuffer = new StringBuffer(); StringBuffer versionBuffer = new StringBuffer(); boolean firstVersionTokenEncountered = false; boolean firstToken = true; int tokensIterated = 0; for ( Iterator it = avceTokenList.iterator(); it.hasNext(); ) { String token = (String) it.next(); boolean tokenIsVersionPart = token.matches( validVersionParts ); StringBuffer bufferToUpdate = null; // NOTE: logic in code is reversed, since we're peeling off the back // Any token after the last versionPart will be in the classifier. // Any token UP TO first non-versionPart is part of the version. if ( !tokenIsVersionPart ) { if ( firstVersionTokenEncountered ) { break; } else { bufferToUpdate = classifierBuffer; } } else { firstVersionTokenEncountered = true; bufferToUpdate = versionBuffer; } if ( firstToken ) { firstToken = false; } else { bufferToUpdate.insert( 0, '-' ); } bufferToUpdate.insert( 0, token ); tokensIterated++; } getLogger().debug( "After parsing loop, state of buffers:\no Version Buffer: \'" + versionBuffer + "\'\no Classifier Buffer: \'" + classifierBuffer + "\'\no Number of Tokens Iterated: " + tokensIterated ); // Now, restore the proper ordering so we can build the artifactId. Collections.reverse( avceTokenList ); getLogger().debug( "Before repairing bad version and/or cleaning up used tokens, avce token list is:\n" + avceTokenList ); // if we didn't find a version, then punt. Use the last token // as the version, and set the classifier empty. if ( versionBuffer.length() < 1 ) { if ( avceTokenList.size() > 1 ) { int lastIdx = avceTokenList.size() - 1; versionBuffer.append( avceTokenList.get( lastIdx ) ); avceTokenList.remove( lastIdx ); } else { getLogger().warn( "Cannot parse version from artifact path: \'" + path + "\'." ); getLogger().info( "artifact-version-classifier-extension remaining tokens is: \'" + avceTokenList + "\'" ); } classifierBuffer.setLength( 0 ); } else { getLogger().debug( "Removing " + tokensIterated + " tokens from avce token list." ); // if everything is kosher, then pop off all the classifier and // version tokens, leaving the naked artifact id in the list. avceTokenList = new LinkedList( avceTokenList.subList( 0, avceTokenList.size() - ( tokensIterated ) ) ); } getLogger().debug( "Now, remainder of avce token list is:\n" + avceTokenList ); StringBuffer artifactIdBuffer = new StringBuffer(); firstToken = true; for ( Iterator it = avceTokenList.iterator(); it.hasNext(); ) { String token = (String) it.next(); if ( firstToken ) { firstToken = false; } else { artifactIdBuffer.append( '-' ); } artifactIdBuffer.append( token ); } String artifactId = artifactIdBuffer.toString(); int lastVersionCharIdx = versionBuffer.length() - 1; if ( lastVersionCharIdx > -1 && versionBuffer.charAt( lastVersionCharIdx ) == '-' ) { versionBuffer.setLength( lastVersionCharIdx ); } String version = versionBuffer.toString(); if ( version.length() < 1 ) { version = null; } getLogger().debug( "Extracted artifact information from path:\n" + "groupId: \'" + groupId + "\'\n" + "artifactId: \'" + artifactId + "\'\n" + "type: \'" + type + "\'\n" + "version: \'" + version + "\'\n" + "classifier: \'" + classifierBuffer.toString() + "\'" ); Artifact result = null; if ( classifierBuffer.length() > 0 ) { getLogger().debug( "Creating artifact with classifier." ); result = artifactConstructionSupport.createArtifactWithClassifier( groupId, artifactId, version, Artifact.SCOPE_RUNTIME, type, classifierBuffer.toString() ); } else { result = artifactConstructionSupport.createArtifact( groupId, artifactId, version, Artifact.SCOPE_RUNTIME, type ); } getLogger().debug( "Resulting artifact is: " + result.getId() + " and has classifier of: " + result.getClassifier() + "\n\n" ); return result; } catch ( RuntimeException e ) { getLogger().error( "While parsing artifact path: \'" + path + "\'...\n\n", e ); throw e; } }
11530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11530/6e51d420ed174d20446e7387dab144f9c1a9eed0/LegacyArtifactDiscoverer.java/clean/sandbox/repoclean/src/main/java/org/apache/maven/tools/repoclean/discover/LegacyArtifactDiscoverer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 14022, 1361, 7581, 12, 514, 589, 16, 2666, 18391, 23228, 659, 18391, 262, 3639, 1216, 1185, 565, 288, 3639, 775, 3639, 288, 5411, 16370, 2430, 273, 394, 16370, 12, 589, 16, 2206, 27576, 11272, 5411, 509, 7922, 5157, 273, 2430, 18, 1883, 5157, 5621, 5411, 309, 261, 7922, 5157, 480, 890, 262, 5411, 288, 7734, 23228, 659, 18391, 18, 1289, 743, 12, 803, 1769, 7734, 327, 446, 31, 5411, 289, 5411, 514, 6612, 273, 2430, 18, 4285, 1345, 5621, 5411, 514, 618, 273, 2430, 18, 4285, 1345, 5621, 5411, 309, 261, 618, 18, 5839, 1190, 12, 315, 87, 6, 262, 262, 5411, 288, 7734, 618, 273, 618, 18, 28023, 12, 374, 16, 618, 18, 2469, 1435, 300, 404, 11272, 5411, 289, 5411, 368, 1914, 25496, 16, 1177, 16, 14622, 16, 471, 2710, 18, 5411, 514, 1712, 311, 13499, 273, 2430, 18, 4285, 1345, 5621, 5411, 10688, 1712, 311, 1345, 682, 273, 394, 10688, 5621, 5411, 16370, 1712, 311, 10524, 273, 394, 16370, 12, 1712, 311, 13499, 16, 7514, 11272, 5411, 1323, 261, 1712, 311, 10524, 18, 5332, 7417, 5157, 1435, 262, 5411, 288, 7734, 1712, 311, 1345, 682, 18, 1289, 3024, 12, 1712, 311, 10524, 18, 4285, 1345, 1435, 11272, 5411, 289, 5411, 514, 1142, 3769, 311, 1345, 273, 261, 780, 13, 1712, 311, 1345, 682, 18, 4479, 3024, 5621, 5411, 309, 261, 1142, 3769, 311, 1345, 18, 5839, 1190, 12, 3552, 11718, 18, 9764, 6, 262, 262, 5411, 288, 7734, 618, 273, 315, 16279, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14022, 1361, 7581, 12, 514, 589, 16, 2666, 18391, 23228, 659, 18391, 262, 3639, 1216, 1185, 565, 288, 3639, 775, 3639, 288, 5411, 16370, 2430, 273, 394, 16370, 12, 589, 16, 2206, 27576, 11272, 5411, 509, 7922, 5157, 273, 2430, 18, 1883, 5157, 5621, 5411, 309, 261, 7922, 5157, 480, 890, 262, 5411, 288, 7734, 23228, 659, 18391, 18, 1289, 743, 12, 803, 1769, 7734, 327, 446, 31, 5411, 289, 5411, 514, 6612, 273, 2430, 18, 4285, 1345, 5621, 5411, 514, 618, 273, 2430, 18, 4285, 1345, 5621, 5411, 309, 261, 618, 18, 5839, 1190, 12, 315, 87, 6, 262, 262, 5411, 288, 7734, 618, 273, 618, 18, 28023, 12, 374, 16, 618, 18, 2469, 1435, 300, 2 ]
if (jj_3R_80()) return true;
if (jj_3R_83()) return true;
final private boolean jj_3_28() { if (jj_3R_80()) return true; if (jj_scan_token(DOT)) return true; if (jj_scan_token(CLASS)) return true; return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/3afd4630754ba5d6642f3e8a1c9aa5162eff7e9f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 67, 6030, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 10261, 10756, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 17591, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 5237, 3719, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 67, 6030, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 10261, 10756, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 17591, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 5237, 3719, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ILookupResult result = inquestion.lookup( "a", kinds, null );
ILookupResult result = inquestion.lookup( "a", kinds, null );
public void testCompletionInDestructor() throws Exception { Writer writer = new StringWriter(); writer.write("class SimpleTest{"); writer.write(" public:"); writer.write("SimpleTest();"); writer.write("~SimpleTest();"); writer.write("int a, b, c, aa, bb, cc, abc;"); writer.write("};"); writer.write("SimpleTest::SimpleTest()"); writer.write("{}"); writer.write("SimpleTest::~SimpleTest()"); writer.write("{"); writer.write("/**/a"); writer.write("}"); IASTCompletionNode node = parse( writer.toString(), writer.toString().indexOf("/**/a") + 5 ); assertNotNull(node); assertEquals(node.getCompletionPrefix(), "a"); assertTrue(node.getCompletionScope() instanceof IASTMethod); IASTMethod inquestion = (IASTMethod)node.getCompletionScope(); assertEquals( inquestion.getName(), "~SimpleTest"); assertTrue(inquestion.isDestructor()); assertEquals(node.getCompletionKind(), IASTCompletionNode.CompletionKind.SINGLE_NAME_REFERENCE ); assertNull(node.getCompletionContext()); LookupKind[] kinds = new LookupKind[ 1 ]; kinds[0] = LookupKind.FIELDS; ILookupResult result = inquestion.lookup( "a", kinds, null ); assertEquals(result.getResultsSize(), 3 ); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/d730ff0f947954910a1a59eb5fe977d0983fd23e/CompletionParseTest.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/CompletionParseTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 11238, 382, 6305, 8813, 280, 1435, 1216, 1185, 202, 95, 202, 202, 2289, 2633, 273, 394, 17436, 5621, 202, 202, 6299, 18, 2626, 2932, 1106, 4477, 4709, 95, 8863, 202, 202, 6299, 18, 2626, 2932, 202, 482, 2773, 1769, 202, 202, 6299, 18, 2626, 2932, 5784, 4709, 26994, 1769, 202, 202, 6299, 18, 2626, 2932, 98, 5784, 4709, 26994, 1769, 202, 202, 6299, 18, 2626, 2932, 474, 279, 16, 324, 16, 276, 16, 12391, 16, 7129, 16, 4946, 16, 20011, 4868, 1769, 202, 202, 6299, 18, 2626, 2932, 97, 4868, 1769, 202, 202, 6299, 18, 2626, 2932, 5784, 4709, 2866, 5784, 4709, 1435, 8863, 202, 202, 6299, 18, 2626, 2932, 9338, 1769, 202, 202, 6299, 18, 2626, 2932, 5784, 4709, 2866, 98, 5784, 4709, 1435, 8863, 202, 202, 6299, 18, 2626, 2932, 95, 8863, 202, 202, 6299, 18, 2626, 2932, 26873, 19, 69, 8863, 202, 202, 6299, 18, 2626, 2932, 1532, 1769, 202, 202, 45, 9053, 11238, 907, 756, 273, 1109, 12, 2633, 18, 10492, 9334, 2633, 18, 10492, 7675, 31806, 2932, 26873, 19, 69, 7923, 397, 1381, 11272, 202, 202, 11231, 5962, 12, 2159, 1769, 202, 202, 11231, 8867, 12, 2159, 18, 588, 11238, 2244, 9334, 315, 69, 8863, 202, 202, 11231, 5510, 12, 2159, 18, 588, 11238, 3876, 1435, 1276, 467, 9053, 1305, 1769, 202, 202, 45, 9053, 1305, 316, 4173, 273, 261, 45, 9053, 1305, 13, 2159, 18, 588, 11238, 3876, 5621, 202, 202, 11231, 8867, 12, 316, 4173, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11238, 382, 6305, 8813, 280, 1435, 1216, 1185, 202, 95, 202, 202, 2289, 2633, 273, 394, 17436, 5621, 202, 202, 6299, 18, 2626, 2932, 1106, 4477, 4709, 95, 8863, 202, 202, 6299, 18, 2626, 2932, 202, 482, 2773, 1769, 202, 202, 6299, 18, 2626, 2932, 5784, 4709, 26994, 1769, 202, 202, 6299, 18, 2626, 2932, 98, 5784, 4709, 26994, 1769, 202, 202, 6299, 18, 2626, 2932, 474, 279, 16, 324, 16, 276, 16, 12391, 16, 7129, 16, 4946, 16, 20011, 4868, 1769, 202, 202, 6299, 18, 2626, 2932, 97, 4868, 1769, 202, 202, 6299, 18, 2626, 2932, 5784, 4709, 2866, 5784, 4709, 1435, 8863, 202, 202, 6299, 18, 2626, 2932, 9338, 1769, 202, 202, 2 ]
public static RubyObject[] setupArgs(Ruby ruby, RubyObject self, Node node) { RubyObject[] result = new RubyObject[0];
public static RubyObject[] setupArgs(Ruby ruby, RubyObject self, ArrayNode node) { String file = ruby.getSourceFile(); int line = ruby.getSourceLine();
public static RubyObject[] setupArgs(Ruby ruby, RubyObject self, Node node) { RubyObject[] result = new RubyObject[0]; if (node != null) { RubyObject args = node.eval(ruby, self); String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); if (!(args instanceof RubyArray)) { args = RubyArray.m_newArray(ruby, args); } result = ((RubyArray)args).getList().toRubyArray(); ruby.setSourceFile(file); ruby.setSourceLine(line); } return result; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/ArgsUtil.java/buggy/org/jruby/nodes/util/ArgsUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 921, 8526, 3875, 2615, 12, 54, 10340, 22155, 16, 19817, 921, 365, 16, 2029, 756, 13, 288, 3639, 19817, 921, 8526, 563, 273, 394, 19817, 921, 63, 20, 15533, 7734, 309, 261, 2159, 480, 446, 13, 288, 5411, 19817, 921, 833, 273, 756, 18, 8622, 12, 27768, 16, 365, 1769, 13491, 514, 585, 273, 22155, 18, 588, 31150, 5621, 5411, 509, 980, 273, 22155, 18, 588, 1830, 1670, 5621, 13491, 309, 16051, 12, 1968, 1276, 19817, 1076, 3719, 288, 7734, 833, 273, 19817, 1076, 18, 81, 67, 2704, 1076, 12, 27768, 16, 833, 1769, 5411, 289, 5411, 563, 273, 14015, 54, 10340, 1076, 13, 1968, 2934, 588, 682, 7675, 869, 54, 10340, 1076, 5621, 13491, 22155, 18, 542, 31150, 12, 768, 1769, 5411, 22155, 18, 542, 1830, 1670, 12, 1369, 1769, 10792, 289, 7734, 327, 563, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 19817, 921, 8526, 3875, 2615, 12, 54, 10340, 22155, 16, 19817, 921, 365, 16, 2029, 756, 13, 288, 3639, 19817, 921, 8526, 563, 273, 394, 19817, 921, 63, 20, 15533, 7734, 309, 261, 2159, 480, 446, 13, 288, 5411, 19817, 921, 833, 273, 756, 18, 8622, 12, 27768, 16, 365, 1769, 13491, 514, 585, 273, 22155, 18, 588, 31150, 5621, 5411, 509, 980, 273, 22155, 18, 588, 1830, 1670, 5621, 13491, 309, 16051, 12, 1968, 1276, 19817, 1076, 3719, 288, 7734, 833, 273, 19817, 1076, 18, 81, 67, 2704, 1076, 12, 27768, 16, 833, 1769, 5411, 289, 5411, 563, 273, 14015, 54, 10340, 1076, 13, 1968, 2934, 588, 682, 7675, 869, 54, 10340, 1076, 5621, 13491, 2 ]
if (result != null) { Collection sbs = (Collection) result; state.serviceInfo.setServiceBindings(sbs); serviceInfos.add(state.serviceInfo); } if (state.enum.hasMoreElements()) { state.bs = (BusinessService) state.enum.nextElement(); state.serviceInfo = new ServiceInfo(); state.serviceInfo.setServiceId(state.bs.getServiceKey()); state.serviceInfo.setServiceName(state.bs.getDefaultNameString()); getServiceClassifications(state.bs.getCategoryBag(), state.step4, state.proxy); } else {
Collection serviceInfos = (Collection) result; super.invoke(new ProviderInfo(be.getDefaultNameString(), state.bzClass, serviceInfos)); }};
public void invoke(Object result) { if (result != null) { Collection sbs = (Collection) result; state.serviceInfo.setServiceBindings(sbs); serviceInfos.add(state.serviceInfo); } if (state.enum.hasMoreElements()) { state.bs = (BusinessService) state.enum.nextElement(); state.serviceInfo = new ServiceInfo(); state.serviceInfo.setServiceId(state.bs.getServiceKey()); state.serviceInfo.setServiceName(state.bs.getDefaultNameString()); getServiceClassifications(state.bs.getCategoryBag(), state.step4, state.proxy); } else {
14011 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14011/8dd9238584e68f3f966100e7fde58662c5ffbe73/UDDI4JRegistryQueryServiceComponent.java/clean/servicediscovery/src/org/cougaar/servicediscovery/service/UDDI4JRegistryQueryServiceComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6647, 1071, 918, 4356, 12, 921, 563, 13, 288, 5411, 309, 261, 2088, 480, 446, 13, 288, 2868, 2200, 272, 2038, 273, 261, 2532, 13, 563, 31, 2868, 919, 18, 3278, 966, 18, 542, 1179, 10497, 12, 87, 2038, 1769, 2868, 1156, 7655, 18, 1289, 12, 2019, 18, 3278, 966, 1769, 5411, 289, 5411, 309, 261, 2019, 18, 7924, 18, 5332, 7417, 3471, 10756, 288, 2868, 919, 18, 2038, 273, 261, 13423, 1179, 13, 919, 18, 7924, 18, 4285, 1046, 5621, 2868, 919, 18, 3278, 966, 273, 394, 1956, 966, 5621, 2868, 919, 18, 3278, 966, 18, 542, 29177, 12, 2019, 18, 2038, 18, 588, 1179, 653, 10663, 2868, 919, 18, 3278, 966, 18, 542, 16789, 12, 2019, 18, 2038, 18, 588, 1868, 461, 780, 10663, 2868, 6373, 797, 6640, 12, 2019, 18, 2038, 18, 588, 4457, 5013, 9334, 4405, 202, 2019, 18, 4119, 24, 16, 919, 18, 5656, 1769, 5411, 289, 469, 288, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6647, 1071, 918, 4356, 12, 921, 563, 13, 288, 5411, 309, 261, 2088, 480, 446, 13, 288, 2868, 2200, 272, 2038, 273, 261, 2532, 13, 563, 31, 2868, 919, 18, 3278, 966, 18, 542, 1179, 10497, 12, 87, 2038, 1769, 2868, 1156, 7655, 18, 1289, 12, 2019, 18, 3278, 966, 1769, 5411, 289, 5411, 309, 261, 2019, 18, 7924, 18, 5332, 7417, 3471, 10756, 288, 2868, 919, 18, 2038, 273, 261, 13423, 1179, 13, 919, 18, 7924, 18, 4285, 1046, 5621, 2868, 919, 18, 3278, 966, 273, 394, 1956, 966, 5621, 2868, 919, 18, 3278, 966, 18, 542, 29177, 12, 2019, 18, 2038, 18, 588, 1179, 653, 10663, 2868, 919, 18, 3278, 966, 18, 542, 16789, 12, 2019, 18, 2 ]
try { pis.connect(pos); class MyRunnable implements Runnable { boolean pass;
public void run() { try { int one = pis.read(); pass = true; } catch (IOException e) {} } } ; ReadRunnable readRunnable = new ReadRunnable(); Thread readThread = new Thread(readRunnable); writeThread.start(); readThread.start(); while (readThread.isAlive()) ; writeRunnable.readerAlive = false; assertTrue("reader thread failed to read", readRunnable.pass); while (writeThread.isAlive()) ; assertTrue("writer thread failed to recognize dead reader", writeRunnable.pass);
public void test_receive() { pis = new PipedInputStream(); pos = new PipedOutputStream(); // test if writer recognizes dead reader try { pis.connect(pos); class WriteRunnable implements Runnable { boolean pass = false; boolean readerAlive = true; public void run() { try { pos.write(1); while (readerAlive) ; try { // should throw exception since reader thread // is now dead pos.write(1); } catch (IOException e) { pass = true; } } catch (IOException e) { } } } WriteRunnable writeRunnable = new WriteRunnable(); Thread writeThread = new Thread(writeRunnable); class ReadRunnable implements Runnable { boolean pass; public void run() { try { int one = pis.read(); pass = true; } catch (IOException e) { } } } ; ReadRunnable readRunnable = new ReadRunnable(); Thread readThread = new Thread(readRunnable); writeThread.start(); readThread.start(); while (readThread.isAlive()) ; writeRunnable.readerAlive = false; assertTrue("reader thread failed to read", readRunnable.pass); while (writeThread.isAlive()) ; assertTrue("writer thread failed to recognize dead reader", writeRunnable.pass); } catch (IOException e) { fail("Exception during receive test: " + e.toString()); } // attempt to write to stream after writer closed pis = new PipedInputStream(); pos = new PipedOutputStream(); try { pis.connect(pos); class MyRunnable implements Runnable { boolean pass; public void run() { try { pos.write(1); } catch (IOException e) { pass = true; } } } MyRunnable myRun = new MyRunnable(); synchronized (pis) { t = new Thread(myRun); // thread t will be blocked inside pos.write(1) // when it tries to call the synchronized method pis.receive // because we hold the monitor for object pis t.start(); try { // wait for thread t to get to the call to pis.receive Thread.sleep(100); } catch (InterruptedException e) { } // now we close pos.close(); } // we have exited the synchronized block, so now thread t will make // a call to pis.receive AFTER the output stream was closed, // in which case an IOException should be thrown while (t.isAlive()) { ; } assertTrue( "write failed to throw IOException on closed PipedOutputStream", myRun.pass); } catch (IOException e) { fail("Exception during second part of receive test: " + e.toString()); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/4cabb8a284e891d471dd7549c70691af5c68e790/PipedInputStreamTest.java/clean/modules/luni/src/test/java/tests/api/java/io/PipedInputStreamTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 18149, 1435, 288, 202, 202, 84, 291, 273, 394, 29305, 329, 4348, 5621, 202, 202, 917, 273, 394, 29305, 329, 4632, 5621, 202, 202, 759, 1842, 309, 2633, 14603, 3128, 8363, 2949, 202, 202, 698, 288, 1082, 202, 84, 291, 18, 3612, 12, 917, 1769, 1082, 202, 1106, 2598, 20013, 4792, 10254, 288, 9506, 202, 6494, 1342, 273, 629, 31, 9506, 202, 6494, 2949, 10608, 273, 638, 31, 9506, 202, 482, 918, 1086, 1435, 288, 6862, 202, 698, 288, 25083, 202, 917, 18, 2626, 12, 21, 1769, 25083, 202, 17523, 261, 10530, 10608, 13, 6862, 1082, 202, 31, 25083, 202, 698, 288, 6862, 1082, 202, 759, 1410, 604, 1520, 3241, 2949, 2650, 6862, 1082, 202, 759, 353, 2037, 8363, 6862, 1082, 202, 917, 18, 2626, 12, 21, 1769, 25083, 202, 97, 1044, 261, 14106, 425, 13, 288, 6862, 1082, 202, 5466, 273, 638, 31, 25083, 202, 97, 6862, 202, 97, 1044, 261, 14106, 425, 13, 288, 6862, 202, 97, 9506, 202, 97, 1082, 202, 97, 1082, 202, 3067, 20013, 1045, 20013, 273, 394, 2598, 20013, 5621, 1082, 202, 3830, 1045, 3830, 273, 394, 4884, 12, 2626, 20013, 1769, 1082, 202, 1106, 2720, 20013, 4792, 10254, 288, 9506, 202, 6494, 1342, 31, 9506, 202, 482, 918, 1086, 1435, 288, 6862, 202, 698, 288, 25083, 202, 474, 1245, 273, 293, 291, 18, 896, 5621, 25083, 202, 5466, 273, 638, 31, 6862, 202, 97, 1044, 261, 14106, 425, 13, 288, 6862, 202, 97, 9506, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 18149, 1435, 288, 202, 202, 84, 291, 273, 394, 29305, 329, 4348, 5621, 202, 202, 917, 273, 394, 29305, 329, 4632, 5621, 202, 202, 759, 1842, 309, 2633, 14603, 3128, 8363, 2949, 202, 202, 698, 288, 1082, 202, 84, 291, 18, 3612, 12, 917, 1769, 1082, 202, 1106, 2598, 20013, 4792, 10254, 288, 9506, 202, 6494, 1342, 273, 629, 31, 9506, 202, 6494, 2949, 10608, 273, 638, 31, 9506, 202, 482, 918, 1086, 1435, 288, 6862, 202, 698, 288, 25083, 202, 917, 18, 2626, 12, 21, 1769, 25083, 202, 17523, 261, 10530, 10608, 13, 6862, 1082, 202, 31, 25083, 202, 698, 288, 6862, 1082, 202, 759, 1410, 604, 1520, 3241, 2949, 2650, 6862, 2 ]