rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
ArrayList result= new ArrayList();
public void handleSelectVariableButton(){ if (model.getComponent().getComponentTypeId().equals(IModuleConstants.JST_WEB_MODULE)){ IPath existingPath[] = new Path[0]; IPath[] paths = BuildPathDialogAccess.chooseVariableEntries(getShell(), existingPath); if (paths != null) { ArrayList result= new ArrayList(); for (int i = 0; i < paths.length; i++) { IPath resolvedPath= JavaCore.getResolvedVariablePath(paths[i]); java.io.File file = new java.io.File(resolvedPath.toOSString()); if( file.isFile() && file.exists()){ String type = VirtualArchiveComponent.VARARCHIVETYPE + IPath.SEPARATOR; IVirtualComponent archive = ComponentCore.createArchiveComponent( model.getComponent().getProject(), type + paths[i].toString()); ArrayList vlist = new ArrayList(); IVirtualReference[] oldrefs = model.getComponent().getReferences(); for (int j = 0; j < oldrefs.length; j++) { IVirtualReference ref = (IVirtualReference) oldrefs[j]; vlist.add(ref); } //To do: check if archive component already exists IVirtualReference ref = ComponentCore.createReference( model.getComponent(), archive, new Path("/WEB-INF/lib") ); vlist.add(ref); IVirtualReference[] refs = new IVirtualReference[vlist.size()]; for (int j = 0; j < vlist.size(); j++) { IVirtualReference tmpref = (IVirtualReference) vlist.get(j); refs[j] = tmpref; } model.getComponent().setReferences(refs); ClasspathElement element = createClassPathElement(archive, file.getName()); ClassPathSelection selection = createClassPathSelectionForExternalJar(element); createBuildPathOperationForExternalJar(selection); WorkspaceModifyComposedOperation composed = new WorkspaceModifyComposedOperation(createBuildPathOperationForExternalJar(selection)); try { new ProgressMonitorDialog(getShell()).run(true, true, composed); } catch (InvocationTargetException ex) { String title = ManifestUIResourceHandler.getString("An_internal_error_occurred_ERROR_"); //$NON-NLS-1$ String msg = title; if (ex.getTargetException() != null && ex.getTargetException().getMessage() != null) msg = ex.getTargetException().getMessage(); MessageDialog.openError(this.getShell(), title, msg); org.eclipse.jem.util.logger.proxy.Logger.getLogger().logError(ex); } catch (InterruptedException e) { // cancelled } model.getClassPathSelectionForWLPs().getClasspathElements().add(element); }else{ //display error } } refresh(); } } }
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/400589a66d34c4730bcb83324cab614e73177f89/WebLibDependencyPropertiesPage.java/buggy/plugins/org.eclipse.jst.j2ee.ui/j2ee_ui/org/eclipse/jst/j2ee/internal/WebLibDependencyPropertiesPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 3391, 3092, 3616, 1435, 95, 9506, 202, 430, 261, 2284, 18, 588, 1841, 7675, 588, 1841, 11731, 7675, 14963, 12, 45, 3120, 2918, 18, 46, 882, 67, 14778, 67, 12194, 3719, 95, 1082, 202, 45, 743, 2062, 743, 8526, 273, 394, 2666, 63, 20, 15533, 1082, 202, 45, 743, 8526, 2953, 273, 225, 3998, 743, 6353, 1862, 18, 25777, 3092, 5400, 12, 588, 13220, 9334, 2062, 743, 1769, 25083, 202, 430, 261, 4481, 480, 446, 13, 288, 9506, 202, 19558, 563, 33, 394, 2407, 5621, 9506, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 2953, 18, 2469, 31, 277, 27245, 288, 6862, 202, 45, 743, 4640, 743, 33, 5110, 4670, 18, 588, 12793, 3092, 743, 12, 4481, 63, 77, 19226, 25083, 202, 6290, 18, 1594, 18, 812, 585, 273, 394, 2252, 18, 1594, 18, 812, 12, 11792, 743, 18, 869, 4618, 780, 10663, 6862, 202, 430, 12, 585, 18, 291, 812, 1435, 597, 585, 18, 1808, 10756, 95, 25083, 202, 780, 618, 273, 7269, 7465, 1841, 18, 7716, 10586, 8188, 27062, 397, 467, 743, 18, 4550, 31, 6862, 6862, 9506, 202, 45, 6466, 1841, 5052, 273, 5435, 4670, 18, 2640, 7465, 1841, 12, 938, 18, 588, 1841, 7675, 588, 4109, 9334, 618, 397, 6862, 6862, 202, 4481, 63, 77, 8009, 10492, 10663, 6862, 6862, 9506, 202, 19558, 331, 1098, 273, 394, 2407, 5621, 25083, 202, 45, 6466, 2404, 8526, 1592, 9316, 273, 938, 18, 588, 1841, 7675, 588, 8221, 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, 225, 202, 482, 918, 1640, 3391, 3092, 3616, 1435, 95, 9506, 202, 430, 261, 2284, 18, 588, 1841, 7675, 588, 1841, 11731, 7675, 14963, 12, 45, 3120, 2918, 18, 46, 882, 67, 14778, 67, 12194, 3719, 95, 1082, 202, 45, 743, 2062, 743, 8526, 273, 394, 2666, 63, 20, 15533, 1082, 202, 45, 743, 8526, 2953, 273, 225, 3998, 743, 6353, 1862, 18, 25777, 3092, 5400, 12, 588, 13220, 9334, 2062, 743, 1769, 25083, 202, 430, 261, 4481, 480, 446, 13, 288, 9506, 202, 19558, 563, 33, 394, 2407, 5621, 9506, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 2953, 18, 2469, 31, 277, 27245, 288, 6862, 202, 45, 743, 4640, 743, 33, 5110, 4670, 18, 588, 2 ]
assertNumberOf("proposals", proposals.size(), 1);
assertNumberOfProposals(proposals, 1);
public void testInvertEquals20() throws Exception { IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null); StringBuffer buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("public class E {\n"); buf.append(" public void foo() {\n"); buf.append(" String s= null;\n"); buf.append(" \"a\".equals(s = \"a\");\n"); buf.append(" }\n"); buf.append("}\n"); ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null); String str= "equals"; AssistContext context= getCorrectionContext(cu, buf.toString().indexOf(str), 0); List proposals= collectAssists(context, FILTER_EQ); assertNumberOf("proposals", proposals.size(), 1); assertCorrectLabels(proposals); CUCorrectionProposal proposal= (CUCorrectionProposal) proposals.get(0); String preview= getPreviewContent(proposal); buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("public class E {\n"); buf.append(" public void foo() {\n"); buf.append(" String s= null;\n"); buf.append(" (s = \"a\").equals(\"a\");\n"); buf.append(" }\n"); buf.append("}\n"); assertEqualString(preview, buf.toString()); cu= pack1.createCompilationUnit("E.java", buf.toString(), true, null); context= getCorrectionContext(cu, buf.toString().indexOf(str), 0); proposals= collectAssists(context, FILTER_EQ); assertNumberOf("proposals", proposals.size(), 1); assertCorrectLabels(proposals); proposal= (CUCorrectionProposal) proposals.get(0); preview= getPreviewContent(proposal); buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("public class E {\n"); buf.append(" public void foo() {\n"); buf.append(" String s= null;\n"); buf.append(" \"a\".equals(s = \"a\");\n"); buf.append(" }\n"); buf.append("}\n"); assertEqualString(preview, buf.toString()); }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/f58ac11acc69b326ae8f8fd67172f0d11bd7f7b5/AssistQuickFixTest.java/clean/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 382, 1097, 8867, 3462, 1435, 1216, 1185, 288, 3639, 467, 2261, 7456, 2298, 21, 33, 284, 1830, 3899, 18, 2640, 2261, 7456, 2932, 3813, 21, 3113, 629, 16, 446, 1769, 3639, 6674, 1681, 33, 394, 6674, 5621, 3639, 1681, 18, 6923, 2932, 5610, 1842, 21, 9747, 82, 8863, 3639, 1681, 18, 6923, 2932, 482, 667, 512, 18890, 82, 8863, 3639, 1681, 18, 6923, 2932, 565, 1071, 918, 8431, 1435, 18890, 82, 8863, 3639, 1681, 18, 6923, 2932, 3639, 514, 272, 33, 446, 9747, 82, 8863, 3639, 1681, 18, 6923, 2932, 3639, 1239, 69, 2412, 18, 14963, 12, 87, 273, 1239, 69, 2412, 20472, 82, 8863, 3639, 1681, 18, 6923, 2932, 565, 289, 64, 82, 8863, 3639, 1681, 18, 6923, 2932, 6280, 82, 8863, 3639, 467, 19184, 2802, 15985, 33, 2298, 21, 18, 2640, 19184, 2802, 2932, 41, 18, 6290, 3113, 1681, 18, 10492, 9334, 629, 16, 446, 1769, 7734, 514, 609, 33, 315, 14963, 14432, 3639, 4725, 376, 1042, 819, 33, 18399, 9329, 1042, 12, 6319, 16, 1681, 18, 10492, 7675, 31806, 12, 701, 3631, 374, 1769, 3639, 987, 450, 22536, 33, 3274, 2610, 1486, 12, 2472, 16, 8919, 67, 27247, 1769, 7734, 1815, 9226, 626, 22536, 12, 685, 22536, 16, 404, 1769, 3639, 1815, 16147, 5888, 12, 685, 22536, 1769, 7734, 18759, 20884, 14592, 14708, 33, 261, 16001, 20884, 14592, 13, 450, 22536, 18, 588, 12, 20, 1769, 3639, 514, 10143, 33, 336, 11124, 1350, 12, 685, 8016, 1769, 3639, 1681, 33, 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, 382, 1097, 8867, 3462, 1435, 1216, 1185, 288, 3639, 467, 2261, 7456, 2298, 21, 33, 284, 1830, 3899, 18, 2640, 2261, 7456, 2932, 3813, 21, 3113, 629, 16, 446, 1769, 3639, 6674, 1681, 33, 394, 6674, 5621, 3639, 1681, 18, 6923, 2932, 5610, 1842, 21, 9747, 82, 8863, 3639, 1681, 18, 6923, 2932, 482, 667, 512, 18890, 82, 8863, 3639, 1681, 18, 6923, 2932, 565, 1071, 918, 8431, 1435, 18890, 82, 8863, 3639, 1681, 18, 6923, 2932, 3639, 514, 272, 33, 446, 9747, 82, 8863, 3639, 1681, 18, 6923, 2932, 3639, 1239, 69, 2412, 18, 14963, 12, 87, 273, 1239, 69, 2412, 20472, 82, 8863, 3639, 1681, 18, 6923, 2932, 565, 289, 64, 82, 8863, 2 ]
private String readParameter(CmsMultipartInputStreamHandler in, String boundary) throws IOException { StringBuffer sbuf = new StringBuffer(); String line; while((line = in.readLine()) != null) { if(line.startsWith(boundary)) { break; } // add the \r\n in case there are many lines sbuf.append(line + "\r\n"); } if(sbuf.length() == 0) { // nothing read return null; } // cut off the last line's \r\n sbuf.setLength(sbuf.length() - 2); // no URL decoding needed return sbuf.toString(); }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/0c3e657a5f42a0d2e112baf8e27a8717ab4cb25c/CmsRequestHttpServlet.java/buggy/src/com/opencms/core/CmsRequestHttpServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 855, 1662, 12, 4747, 12024, 4348, 1503, 316, 16, 514, 7679, 13, 1216, 1860, 288, 3639, 6674, 2393, 696, 273, 394, 6674, 5621, 3639, 514, 980, 31, 3639, 1323, 12443, 1369, 273, 316, 18, 896, 1670, 10756, 480, 446, 13, 288, 5411, 309, 12, 1369, 18, 17514, 1190, 12, 16604, 3719, 288, 7734, 898, 31, 5411, 289, 13491, 368, 527, 326, 521, 86, 64, 82, 316, 648, 1915, 854, 4906, 2362, 5411, 2393, 696, 18, 6923, 12, 1369, 397, 1548, 86, 64, 82, 8863, 3639, 289, 3639, 309, 12, 87, 4385, 18, 2469, 1435, 422, 374, 13, 288, 13491, 368, 5083, 855, 5411, 327, 446, 31, 3639, 289, 7734, 368, 6391, 3397, 326, 1142, 980, 1807, 521, 86, 64, 82, 3639, 2393, 696, 18, 542, 1782, 12, 87, 4385, 18, 2469, 1435, 300, 576, 1769, 7734, 368, 1158, 1976, 13547, 3577, 3639, 327, 2393, 696, 18, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 855, 1662, 12, 4747, 12024, 4348, 1503, 316, 16, 514, 7679, 13, 1216, 1860, 288, 3639, 6674, 2393, 696, 273, 394, 6674, 5621, 3639, 514, 980, 31, 3639, 1323, 12443, 1369, 273, 316, 18, 896, 1670, 10756, 480, 446, 13, 288, 5411, 309, 12, 1369, 18, 17514, 1190, 12, 16604, 3719, 288, 7734, 898, 31, 5411, 289, 13491, 368, 527, 326, 521, 86, 64, 82, 316, 648, 1915, 854, 4906, 2362, 5411, 2393, 696, 18, 6923, 12, 1369, 397, 1548, 86, 64, 82, 8863, 3639, 289, 3639, 309, 12, 87, 4385, 18, 2469, 1435, 422, 374, 13, 288, 13491, 368, 5083, 855, 5411, 327, 446, 31, 3639, 289, 7734, 368, 6391, 3397, 326, 1142, 980, 1807, 2 ]
if(messages != null && messages.length > 0) {
if((messages != null) && (messages.length > 0)) {
private void realRun() { long now = System.currentTimeMillis(); lastTimeInSeconds = (int) (now / 1000); PeerManager pm = node.peers; PeerNode[] nodes = pm.myPeers; // Run the time sensitive status updater separately for(int i = 0; i < nodes.length; i++) { PeerNode pn = nodes[i]; // Only routing backed off nodes should need status updating since everything else // should get updated immediately when it's changed if(pn.getPeerNodeStatus() == Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF) { pn.setPeerNodeStatus(now); } } node.maybeLogPeerNodeStatusSummary(now); node.maybeUpdateOldestNeverConnectedPeerAge(now); node.maybeStartAReadyARKFetcher(now); node.maybeUpdatePeerManagerUserAlertStats(now); long nextActionTime = Long.MAX_VALUE; long oldTempNow = now; for(int i=0;i<nodes.length;i++) { PeerNode pn = nodes[i]; lastReceivedPacketFromAnyNode = Math.max(pn.lastReceivedPacketTime(), lastReceivedPacketFromAnyNode); if(pn.isConnected()) { if(pn.shouldDisconnectNow()) { pn.forceDisconnect(); continue; } // Is the node dead? if(now - pn.lastReceivedPacketTime() > pn.maxTimeBetweenReceivedPackets()) { Logger.error(this, "Disconnecting from "+pn+" - haven't received packets recently"); pn.disconnected(); continue; } // Any urgent notifications to send? long urgentTime = pn.getNextUrgentTime(); // Should spam the logs, unless there is a deadlock if(urgentTime < Long.MAX_VALUE) Logger.minor(this, "Next urgent time: "+urgentTime+" for "+pn.getDetectedPeer()); if(urgentTime <= now) { // Send them try { pn.sendAnyUrgentNotifications(); } catch (PacketSequenceException e) { Logger.error(this, "Caught "+e+" - disconnecting", e); pn.forceDisconnect(); } } else { nextActionTime = Math.min(nextActionTime, urgentTime); } // Any packets to resend? for(int j=0;j<2;j++) { KeyTracker kt; if(j == 0) kt = pn.getCurrentKeyTracker(); else if(j == 1) kt = pn.getPreviousKeyTracker(); else break; // impossible if(kt == null) continue; ResendPacketItem[] resendItems = kt.grabResendPackets(); if(resendItems == null) continue; for(int k=0;k<resendItems.length;k++) { ResendPacketItem item = resendItems[k]; if(item == null) continue; try { Logger.minor(this, "Resending "+item.packetNumber+" to "+item.kt); node.packetMangler.processOutgoingPreformatted(item.buf, 0, item.buf.length, item.kt, item.packetNumber, item.callbacks, 0); } catch (KeyChangedException e) { Logger.error(this, "Caught "+e+" resending packets to "+kt); pn.requeueResendItems(resendItems); break; } catch (NotConnectedException e) { Logger.normal(this, "Caught "+e+" resending packets to "+kt); pn.requeueResendItems(resendItems); break; } catch (PacketSequenceException e) { Logger.error(this, "Caught "+e+" - disconnecting", e); pn.forceDisconnect(); } catch (WouldBlockException e) { Logger.error(this, "Impossible: "+e, e); } } } if(node.packetMangler == null) continue; // Any messages to send? MessageItem[] messages = null; messages = pn.grabQueuedMessageItems(); if(messages != null && messages.length > 0) { long l = Long.MAX_VALUE; int sz = 56; // overhead; FIXME should be a constant or something for(int j=0;j<messages.length;j++) { if(l > messages[j].submitted) l = messages[j].submitted; sz += 2 + /* FIXME only 2? */ messages[j].getData(node.packetMangler, pn).length; } if(l + 100 > now && sz < 1024) { // Don't send immediately if(nextActionTime > (l+100)) nextActionTime = l+100; pn.requeueMessageItems(messages, 0, messages.length, true, "TrafficCoalescing"); } else { for(int j=0;j<messages.length;j++) { Logger.minor(this, "PS Sending: "+(messages[j].msg == null ? "(not a Message)" : messages[j].msg.getSpec().getName())); if (messages[j].msg != null) { pn.addToLocalNodeSentMessagesToStatistic(messages[j].msg); } } // Send packets, right now, blocking, including any active notifications node.packetMangler.processOutgoingOrRequeue(messages, pn, true, false); continue; } } // Need to send a keepalive packet? if(now - pn.lastSentPacketTime() > Node.KEEPALIVE_INTERVAL) { Logger.minor(this, "Sending keepalive"); // Force packet to have a sequence number. Message m = DMT.createFNPVoid(); pn.addToLocalNodeSentMessagesToStatistic(m); node.packetMangler.processOutgoingOrRequeue(new MessageItem[] { new MessageItem(m, null, 0, null) }, pn, true, true); } } else { // Not connected // Send handshake if necessary long beforeHandshakeTime = System.currentTimeMillis(); if(pn.shouldSendHandshake()) node.packetMangler.sendHandshake(pn); long afterHandshakeTime = System.currentTimeMillis(); if((afterHandshakeTime - beforeHandshakeTime) > (2*1000)) Logger.error(this, "afterHandshakeTime is more than 2 seconds past beforeHandshakeTime ("+(afterHandshakeTime - beforeHandshakeTime)+") in PacketSender working with "+pn.getPeer()+" named "+pn.getName()); } long tempNow = System.currentTimeMillis(); if((tempNow - oldTempNow) > (5*1000)) Logger.error(this, "tempNow is more than 5 seconds past oldTempNow ("+(tempNow - oldTempNow)+") in PacketSender working with "+pn.getPeer()+" named "+pn.getName()); oldTempNow = tempNow; } if(now - lastClearedOldSwapChains > 10000) { node.lm.clearOldSwapChains(); lastClearedOldSwapChains = now; } long oldNow = System.currentTimeMillis(); // Send may have taken some time now = System.currentTimeMillis(); lastTimeInSeconds = (int) (now / 1000); if((now - oldNow) > (10*1000)) Logger.error(this, "now is more than 10 seconds past oldNow ("+(now - oldNow)+") in PacketSender"); Vector jobsToRun = null; synchronized(timedJobsByTime) { while(!timedJobsByTime.isEmpty()) { Long tRun = (Long) timedJobsByTime.firstKey(); if(tRun.longValue() <= now) { if(jobsToRun == null) jobsToRun = new Vector(); Object o = timedJobsByTime.remove(tRun); if(o instanceof Runnable[]) { Runnable[] r = (Runnable[]) o; for(int i=0;i<r.length;i++) jobsToRun.add(r[i]); } else { Runnable r = (Runnable) o; jobsToRun.add(r); } } else break; } } if(jobsToRun != null) for(int i=0;i<jobsToRun.size();i++) { Runnable r = (Runnable) jobsToRun.get(i); Logger.minor(this, "Running "+r); if(r instanceof FastRunnable) { // Run in-line try { r.run(); } catch (Throwable t) { Logger.error(this, "Caught "+t+" running "+r, t); } } else { Thread t = new Thread(r, "Scheduled job: "+r); t.setDaemon(true); t.start(); } } long sleepTime = nextActionTime - now; // 200ms maximum sleep time sleepTime = Math.min(sleepTime, 200); if(now - node.startupTime > 60*1000*5) { if(now - lastReceivedPacketFromAnyNode > Node.ALARM_TIME) { Logger.error(this, "Have not received any packets from any node in last "+Node.ALARM_TIME/1000+" seconds"); lastReportedNoPackets = now; } } if(sleepTime > 0) { try { synchronized(this) { Logger.minor(this, "Sleeping for "+sleepTime); wait(sleepTime); } } catch (InterruptedException e) { // Ignore, just wake up. Probably we got interrupt()ed // because a new packet came in. } } }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/PacketSender.java/clean/src/freenet/node/PacketSender.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2863, 1997, 1435, 288, 3639, 1525, 2037, 273, 2332, 18, 2972, 28512, 5621, 3639, 31323, 17840, 273, 261, 474, 13, 261, 3338, 342, 4336, 1769, 3639, 10669, 1318, 7430, 273, 756, 18, 30502, 31, 3639, 10669, 907, 8526, 2199, 273, 7430, 18, 4811, 14858, 31, 3639, 368, 1939, 326, 813, 16692, 1267, 7760, 18190, 3639, 364, 12, 474, 277, 273, 374, 31, 277, 411, 2199, 18, 2469, 31, 277, 27245, 288, 5411, 10669, 907, 11059, 273, 2199, 63, 77, 15533, 5411, 368, 5098, 7502, 20732, 3397, 2199, 1410, 1608, 1267, 9702, 3241, 7756, 469, 5411, 368, 1410, 336, 3526, 7636, 1347, 518, 1807, 3550, 5411, 309, 12, 7449, 18, 588, 6813, 907, 1482, 1435, 422, 2029, 18, 1423, 654, 67, 8744, 67, 8608, 67, 1457, 1693, 1360, 67, 8720, 2056, 67, 8797, 13, 288, 7734, 11059, 18, 542, 6813, 907, 1482, 12, 3338, 1769, 5411, 289, 3639, 289, 3639, 756, 18, 19133, 1343, 6813, 907, 1482, 4733, 12, 3338, 1769, 3639, 756, 18, 19133, 1891, 7617, 395, 50, 6084, 8932, 6813, 9692, 12, 3338, 1769, 3639, 756, 18, 19133, 1685, 37, 8367, 9584, 16855, 12, 3338, 1769, 3639, 756, 18, 19133, 1891, 6813, 1318, 1299, 13298, 4195, 12, 3338, 1769, 3639, 1525, 1024, 1803, 950, 273, 3407, 18, 6694, 67, 4051, 31, 3639, 1525, 1592, 7185, 8674, 273, 2037, 31, 3639, 364, 12, 474, 277, 33, 20, 31, 77, 32, 4690, 18, 2469, 31, 77, 27245, 288, 5411, 10669, 907, 11059, 273, 2199, 63, 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, 2863, 1997, 1435, 288, 3639, 1525, 2037, 273, 2332, 18, 2972, 28512, 5621, 3639, 31323, 17840, 273, 261, 474, 13, 261, 3338, 342, 4336, 1769, 3639, 10669, 1318, 7430, 273, 756, 18, 30502, 31, 3639, 10669, 907, 8526, 2199, 273, 7430, 18, 4811, 14858, 31, 3639, 368, 1939, 326, 813, 16692, 1267, 7760, 18190, 3639, 364, 12, 474, 277, 273, 374, 31, 277, 411, 2199, 18, 2469, 31, 277, 27245, 288, 5411, 10669, 907, 11059, 273, 2199, 63, 77, 15533, 5411, 368, 5098, 7502, 20732, 3397, 2199, 1410, 1608, 1267, 9702, 3241, 7756, 469, 5411, 368, 1410, 336, 3526, 7636, 1347, 518, 1807, 3550, 5411, 309, 12, 7449, 18, 588, 6813, 907, 1482, 1435, 422, 2029, 2 ]
125, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, 93, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 41, 311, 312, 313, 314, 0, -1, 317, 318, 319, -1, -1, -1, -1, -1, 10, -1, 58, 59, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, 41, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, 125, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 293, 294, 295, 296, 297, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1,
-1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 41, 311, 312, 313, 314, 0, 316, 317, 318, -1, -1, -1, -1, -1, -1, 10, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, 341, -1, 343, 344, 345, -1, 347, -1, -1, -1, 351, -1, -1, -1, -1, 41, -1, -1, 359, -1, -1, 93, 363, 364, 365, 366, 367, 368, -1, -1, 0, -1, 58, 59, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, -1, -1, -1, 41, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, -1, -1, -1, -1, 281, 282, 125, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 125, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, 318, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 338, -1, -1, 341, -1, 343, 344, 345, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, 363, 364, 365, 366, 367, 368, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 293, 294, 295, 296, 297, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1,
private static final short[] yyCheck4() { return new short[] { 125, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, 93, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 41, 311, 312, 313, 314, 0, -1, 317, 318, 319, -1, -1, -1, -1, -1, 10, -1, 58, 59, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, 41, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, 125, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 293, 294, 295, 296, 297, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, 343, 344, 345, 346, -1, -1, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 359, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, -1, 308, -1, -1, -1, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, 363, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, 363, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, -1, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, 343, -1, -1, -1, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, -1, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, }; }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/a404cb04ade8bbc527b55cf473199686102428e1/YyTables.java/clean/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1564, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 30616, 16, 225, 9131, 23, 16, 225, 576, 5193, 16, 225, 576, 7140, 16, 225, 576, 5292, 16, 225, 9131, 27, 16, 225, 576, 5482, 16, 225, 576, 6675, 16, 282, 300, 21, 16, 282, 300, 21, 16, 6647, 576, 9975, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 31007, 16, 225, 576, 10689, 16, 225, 31360, 16, 225, 11631, 16, 225, 26403, 16, 6647, 22072, 16, 225, 890, 4630, 16, 225, 27499, 16, 225, 5196, 25, 16, 225, 5196, 26, 16, 225, 5196, 27, 16, 225, 5196, 28, 16, 225, 5196, 29, 16, 282, 20170, 16, 225, 890, 2499, 16, 6647, 890, 2138, 16, 225, 890, 3437, 16, 225, 890, 3461, 16, 565, 374, 16, 282, 300, 21, 16, 225, 890, 4033, 16, 225, 890, 2643, 16, 225, 890, 3657, 16, 282, 300, 21, 16, 282, 300, 21, 16, 5411, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 1728, 16, 282, 300, 21, 16, 282, 17066, 16, 282, 14995, 16, 225, 30616, 16, 282, 300, 21, 16, 282, 300, 21, 16, 5411, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 225, 890, 5520, 16, 282, 300, 21, 16, 282, 300, 21, 16, 6647, 890, 9452, 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, 565, 3238, 760, 727, 3025, 8526, 9016, 1564, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 30616, 16, 225, 9131, 23, 16, 225, 576, 5193, 16, 225, 576, 7140, 16, 225, 576, 5292, 16, 225, 9131, 27, 16, 225, 576, 5482, 16, 225, 576, 6675, 16, 282, 300, 21, 16, 282, 300, 21, 16, 6647, 576, 9975, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 31007, 16, 225, 576, 10689, 16, 225, 31360, 16, 225, 11631, 16, 225, 26403, 16, 6647, 22072, 16, 225, 890, 4630, 16, 225, 27499, 16, 225, 5196, 25, 16, 225, 5196, 26, 16, 225, 5196, 27, 16, 225, 5196, 28, 16, 225, 2 ]
manageForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword });
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException { boolean advancedDarknetOutputEnabled = core.getToadletContainer().isAdvancedDarknetEnabled(); HTTPRequest request = new HTTPRequest(uri); if (request.getParam("newbookmark").length() > 0) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Add a Bookmark"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("Confirm Bookmark Addition")); HTMLNode addForm = ctx.getPageMaker().getContentNode(infobox).addChild("form", new String[] { "action", "method" }, new String[] { "/", "post" }); addForm.addChild("#", "Please confirm that you want to add the key " + request.getParam("newbookmark") + " to your bookmarks and enter the description that you would prefer:"); addForm.addChild("br"); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "key", request.getParam("newbookmark") }); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "text", "name", request.getParam("desc") }); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "addbookmark", "Add bookmark" }); this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } else if (request.getParam(GenericReadFilterCallback.magicHTTPEscapeString).length() > 0) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Link to external resources"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode warnbox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-warning", "External link")); HTMLNode externalLinkForm = ctx.getPageMaker().getContentNode(warnbox).addChild("form", new String[] { "action", "method" }, new String[] { "/", "post" }); // FIXME: has request.getParam(GenericReadFilterCallback.magicHTTPEscapeString) been sanityzed ? final String target = request.getParam(GenericReadFilterCallback.magicHTTPEscapeString); externalLinkForm.addChild("#", "Please confirm that you want to go to " + target + ". WARNING: You are leaving FREENET! Clicking on this link WILL seriously jeopardize your anonymity!. It is strongly recommended not to do so!"); externalLinkForm.addChild("br"); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", GenericReadFilterCallback.magicHTTPEscapeString, target }); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "Go", "Go to the specified link" }); this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } else if (request.isParameterSet("managebookmarks")) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Bookmark Manager"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-normal", "My Bookmarks")); HTMLNode infoboxContent = ctx.getPageMaker().getContentNode(infobox); Enumeration e = bookmarks.getBookmarks(); if (!e.hasMoreElements()) { infoboxContent.addChild("#", "You currently do not have any bookmarks defined."); } else { HTMLNode manageForm = infoboxContent.addChild("form", new String[] { "action", "method" }, new String[] { ".", "post" }); HTMLNode bookmarkList = manageForm.addChild("ul", "id", "bookmarks"); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); HTMLNode bookmark = bookmarkList.addChild("li", "style", "clear: right;"); /* TODO */ bookmark.addChild("input", new String[] { "type", "name", "value", "style" }, new String[] { "submit", "delete_" + b.hashCode(), "Delete", "float: right;" }); bookmark.addChild("input", new String[] { "type", "name", "value", "style" }, new String[] { "submit", "edit_" + b.hashCode(), "Edit", "float: right;" }); bookmark.addChild("a", "href", '/' + b.getKey(), b.getDesc()); } manageForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); manageForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "managebookmarks", "yes" }); } contentNode.addChild(createBookmarkEditForm(ctx.getPageMaker(), MODE_ADD, null, "", "")); this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; }else if (request.isParameterSet("exit")) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Node Shutdown"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-query", "Node Shutdown")); HTMLNode content = ctx.getPageMaker().getContentNode(infobox); content.addChild("p").addChild("#", "Are you sure you wish to shut down your Freenet node?"); HTMLNode shutdownForm = content.addChild("p").addChild("form", new String[] { "action", "method" }, new String[] { "/", "POST" }); shutdownForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); shutdownForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); shutdownForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "shutdownconfirm", "Shut down" }); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; }else if (request.isParameterSet("restart")) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Node Restart"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-query", "Node Restart")); HTMLNode content = ctx.getPageMaker().getContentNode(infobox); content.addChild("p").addChild("#", "Are you sure you want to restart your Freenet node?"); HTMLNode restartForm = content.addChild("p").addChild("form", new String[] { "action", "method" }, new String[] { "/", "POST" }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "restartconfirm", "Restart" }); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } HTMLNode pageNode = ctx.getPageMaker().getPageNode("Freenet FProxy Homepage of " + node.getMyName()); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); if(node.isTestnetEnabled()) { HTMLNode testnetBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-alert", "Testnet Mode!")); HTMLNode testnetContent = ctx.getPageMaker().getContentNode(testnetBox); testnetContent.addChild("#", "This node runs in testnet mode. This WILL seriously jeopardize your anonymity!"); } String useragent = (String)ctx.getHeaders().get("user-agent"); if (useragent != null) { useragent = useragent.toLowerCase(); if ((useragent.indexOf("msie") > -1) && (useragent.indexOf("opera") == -1)) { HTMLNode browserWarningBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-alert", "Security Risk!")); HTMLNode browserWarningContent = ctx.getPageMaker().getContentNode(browserWarningBox); browserWarningContent.addChild("#", "You appear to be using Microsoft Internet Explorer. This means that some sites within Freenet may be able to compromise your anonymity!"); } } // Alerts contentNode.addChild(core.alerts.createAlerts()); // Fetch-a-key box HTMLNode fetchKeyBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-normal", "Fetch a Key")); HTMLNode fetchKeyContent = ctx.getPageMaker().getContentNode(fetchKeyBox); fetchKeyContent.addAttribute("id", "keyfetchbox"); HTMLNode fetchKeyForm = fetchKeyContent.addChild("form", new String[] { "action", "method" }, new String[] { "/", "get" }); fetchKeyForm.addChild("#", "Key: "); fetchKeyForm.addChild("input", new String[] { "type", "size", "name" }, new String[] { "text", "80", "key" }); fetchKeyForm.addChild("input", new String[] { "type", "value" }, new String[] { "submit", "Fetch" }); // Bookmarks HTMLNode bookmarkBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-normal", "My Bookmarks")); HTMLNode bookmarkContent = ctx.getPageMaker().getContentNode(bookmarkBox); Enumeration e = bookmarks.getBookmarks(); if (!e.hasMoreElements()) { bookmarkContent.addChild("#", "You currently do not have any bookmarks defined."); } else { HTMLNode bookmarkList = bookmarkContent.addChild("ul", "id", "bookmarks"); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); bookmarkList.addChild("li").addChild("a", "href", '/' + b.getKey(), b.getDesc()); } } bookmarkContent.addChild("div", "id", "bookmarkedit").addChild("a", new String[] { "href", "class" }, new String[] { "?managebookmarks", "interfacelink" }, "Edit my bookmarks"); // Version info and Quit Form HTMLNode versionBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-information", "Version Information & Node Control")); HTMLNode versionContent = ctx.getPageMaker().getContentNode(versionBox); versionContent.addChild("#", "Freenet " + Version.nodeVersion + " Build #" + Version.buildNumber() + " r" + Version.cvsRevision); versionContent.addChild("br"); if(NodeStarter.extBuildNumber < NodeStarter.RECOMMENDED_EXT_BUILD_NUMBER) { versionContent.addChild("#", "Freenet-ext Build #" + NodeStarter.extBuildNumber + '(' + NodeStarter.RECOMMENDED_EXT_BUILD_NUMBER + ") r" + NodeStarter.extRevisionNumber); } else { versionContent.addChild("#", "Freenet-ext Build #" + NodeStarter.extBuildNumber + " r" + NodeStarter.extRevisionNumber); } versionContent.addChild("br"); HTMLNode shutdownForm = versionContent.addChild("form", new String[] { "action", "method" }, new String[] { ".", "GET" }); shutdownForm.addChild("input", new String[] { "type", "name" }, new String[] { "hidden", "exit" }); shutdownForm.addChild("input", new String[] { "type", "value" }, new String[] { "submit", "Shutdown the node" }); if(node.isUsingWrapper()){ HTMLNode restartForm = versionContent.addChild("form", new String[] { "action", "method" }, new String[] { ".", "GET" }); restartForm.addChild("input", new String[] { "type", "name" }, new String[] { "hidden", "restart" }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "restart2", "Restart the node" }); } // Activity HTMLNode activityBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-information", "Current Activity")); HTMLNode activityContent = ctx.getPageMaker().getContentNode(activityBox); HTMLNode activityList = activityContent.addChild("ul", "id", "activity"); activityList.addChild("li", "Inserts: " + node.getNumInserts()); activityList.addChild("li", "Requests: " + node.getNumRequests()); activityList.addChild("li", "Transferring Requests: " + node.getNumTransferringRequests()); if (advancedDarknetOutputEnabled) { activityList.addChild("li", "ARK Fetch Requests: " + node.getNumARKFetchers()); } this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); }
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/7b992ac7b46f4eaaf97e9e0e1b7e5c18e1c89deb/WelcomeToadlet.java/buggy/src/freenet/clients/http/WelcomeToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 288, 202, 202, 6494, 16111, 40, 1313, 2758, 1447, 1526, 273, 2922, 18, 588, 774, 361, 1810, 2170, 7675, 291, 23618, 40, 1313, 2758, 1526, 5621, 9506, 202, 23891, 590, 273, 394, 25238, 12, 1650, 1769, 202, 202, 430, 261, 2293, 18, 588, 786, 2932, 2704, 3618, 3355, 20387, 2469, 1435, 405, 374, 13, 288, 1082, 202, 4870, 907, 1363, 907, 273, 1103, 18, 588, 1964, 12373, 7675, 588, 1964, 907, 2932, 986, 279, 20258, 3355, 8863, 1082, 202, 4870, 907, 913, 907, 273, 1103, 18, 588, 1964, 12373, 7675, 588, 1350, 907, 12, 2433, 907, 1769, 1082, 202, 4870, 907, 1123, 2147, 273, 913, 907, 18, 1289, 1763, 12, 5900, 18, 588, 1964, 12373, 7675, 588, 966, 2147, 2932, 11269, 20258, 3355, 1436, 608, 7923, 1769, 1082, 202, 4870, 907, 527, 1204, 273, 1103, 18, 588, 1964, 12373, 7675, 588, 1350, 907, 12, 1376, 2147, 2934, 1289, 1763, 2932, 687, 3113, 394, 514, 8526, 288, 315, 1128, 3113, 315, 2039, 6, 19879, 394, 514, 8526, 288, 2206, 3113, 315, 2767, 6, 15549, 1082, 202, 1289, 1204, 18, 1289, 1763, 2932, 7, 3113, 315, 8496, 6932, 716, 1846, 2545, 358, 527, 326, 498, 315, 397, 590, 18, 588, 786, 2932, 2704, 3618, 3355, 7923, 397, 315, 358, 3433, 13696, 87, 471, 6103, 326, 2477, 716, 1846, 4102, 13256, 2773, 1769, 1082, 202, 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, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 288, 202, 202, 6494, 16111, 40, 1313, 2758, 1447, 1526, 273, 2922, 18, 588, 774, 361, 1810, 2170, 7675, 291, 23618, 40, 1313, 2758, 1526, 5621, 9506, 202, 23891, 590, 273, 394, 25238, 12, 1650, 1769, 202, 202, 430, 261, 2293, 18, 588, 786, 2932, 2704, 3618, 3355, 20387, 2469, 1435, 405, 374, 13, 288, 1082, 202, 4870, 907, 1363, 907, 273, 1103, 18, 588, 1964, 12373, 7675, 588, 1964, 907, 2932, 986, 279, 20258, 3355, 8863, 1082, 202, 4870, 907, 913, 907, 273, 1103, 18, 588, 1964, 12373, 7675, 588, 1350, 907, 12, 2 ]
throw new DataException(ResourceConstants.INVALID_TOP_BOTTOM_N + MAX_N_VALUE);
throw new DataException( ResourceConstants.INVALID_TOP_BOTTOM_N, new Integer( MAX_N_VALUE ) );
public boolean evaluate( Context cx, Scriptable scope ) throws DataException { if( filterPassController.getForceReset() ) { doReset(); filterPassController.setForceReset( false ); } if ( N == -1 ) { // Create a new evaluator // Evaluate N (which is operand1) at this time Object n_object = null; if( helper != null ) { try { n_object = helper.evaluate( n_expr ); } catch ( BirtException e1 ) { throw new DataException( e1.getLocalizedMessage( ) ); } } else ScriptEvalUtil.evalExpr( n_expr, cx, scope, "Filter", 0 ); double n_value = -1; try { n_value = DataTypeUtil.toDouble( n_object ).doubleValue(); } catch ( BirtException e ) { // conversion error throw new DataException(ResourceConstants.INVALID_TOP_BOTTOM_ARGUMENT, e); } // First time; calculate N based on updated row count if( n_percent ) { if( n_value < 0 || n_value > 100) throw new DataException(ResourceConstants.INVALID_TOP_BOTTOM_PERCENT_ARGUMENT); N = (int)Math.round( n_value / 100 * filterPassController.getRowCount() ); } else { if( n_value < 0 ) throw new DataException(ResourceConstants.INVALID_TOP_BOTTOM_N_ARGUMENT); N = (int)n_value; } if ( N > MAX_N_VALUE ) throw new DataException(ResourceConstants.INVALID_TOP_BOTTOM_N + MAX_N_VALUE); } // Evaluate operand expression Object value = ScriptEvalUtil.evalExpr( op_expr, cx, scope, "Filter", 0 ); if ( filterPassController.getPassLevel( ) == FilterPassController.FIRST_PASS ) { return doFirstPass( value ); } else if ( filterPassController.getPassLevel( ) == FilterPassController.SECOND_PASS ) { return doSecondPass( ); } return false; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/aa1215320a35d6570405f72294b77d0b6cb27347/NEvaluator.java/buggy/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/script/NEvaluator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 5956, 12, 1772, 9494, 16, 22780, 2146, 262, 1216, 1910, 503, 202, 95, 202, 202, 430, 12, 1034, 6433, 2933, 18, 588, 10997, 7013, 1435, 262, 202, 202, 95, 1082, 202, 2896, 7013, 5621, 1082, 202, 2188, 6433, 2933, 18, 542, 10997, 7013, 12, 629, 11272, 202, 202, 97, 9506, 202, 430, 261, 423, 422, 300, 21, 262, 202, 202, 95, 1082, 202, 759, 1788, 279, 394, 18256, 1082, 202, 759, 18176, 423, 261, 12784, 353, 9886, 21, 13, 622, 333, 813, 1082, 202, 921, 290, 67, 1612, 273, 446, 31, 1082, 202, 430, 12, 4222, 480, 446, 262, 1082, 202, 95, 9506, 202, 698, 9506, 202, 95, 6862, 202, 82, 67, 1612, 273, 4222, 18, 21024, 12, 290, 67, 8638, 11272, 9506, 202, 97, 9506, 202, 14683, 261, 605, 2714, 503, 425, 21, 262, 9506, 202, 95, 6862, 202, 12849, 394, 1910, 503, 12, 425, 21, 18, 588, 2042, 1235, 1079, 12, 262, 11272, 9506, 202, 97, 1082, 202, 97, 1082, 202, 12107, 9506, 202, 3651, 13904, 1304, 18, 8622, 4742, 12, 290, 67, 8638, 16, 9494, 16, 2146, 16, 315, 1586, 3113, 374, 11272, 1082, 202, 9056, 290, 67, 1132, 273, 300, 21, 31, 1082, 202, 698, 1082, 202, 95, 9506, 202, 82, 67, 1132, 273, 14828, 1304, 18, 869, 5265, 12, 290, 67, 1612, 262, 18, 9056, 620, 5621, 1082, 202, 97, 1082, 202, 14683, 261, 605, 2714, 503, 425, 262, 1082, 202, 95, 9506, 202, 759, 4105, 555, 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, 1250, 5956, 12, 1772, 9494, 16, 22780, 2146, 262, 1216, 1910, 503, 202, 95, 202, 202, 430, 12, 1034, 6433, 2933, 18, 588, 10997, 7013, 1435, 262, 202, 202, 95, 1082, 202, 2896, 7013, 5621, 1082, 202, 2188, 6433, 2933, 18, 542, 10997, 7013, 12, 629, 11272, 202, 202, 97, 9506, 202, 430, 261, 423, 422, 300, 21, 262, 202, 202, 95, 1082, 202, 759, 1788, 279, 394, 18256, 1082, 202, 759, 18176, 423, 261, 12784, 353, 9886, 21, 13, 622, 333, 813, 1082, 202, 921, 290, 67, 1612, 273, 446, 31, 1082, 202, 430, 12, 4222, 480, 446, 262, 1082, 202, 95, 9506, 202, 698, 9506, 202, 95, 6862, 202, 82, 67, 1612, 273, 4222, 2 ]
return new EvaluatorException(message);
return new EvaluatorException(generateErrorMessage(message, sourceName, line));
public EvaluatorException runtimeError(String message, String sourceName, int line, String lineSource, int lineOffset) { return new EvaluatorException(message); }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/a4cf45ee330c5d727d7a7c46353fe09b24629912/DefaultErrorReporter.java/clean/js/rhino/src/org/mozilla/javascript/DefaultErrorReporter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 31956, 503, 3099, 668, 12, 780, 883, 16, 514, 28337, 16, 4766, 6647, 509, 980, 16, 514, 980, 1830, 16, 4766, 6647, 509, 980, 2335, 13, 565, 288, 3639, 327, 394, 31956, 503, 12, 7163, 14935, 12, 2150, 16, 28337, 16, 980, 10019, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 31956, 503, 3099, 668, 12, 780, 883, 16, 514, 28337, 16, 4766, 6647, 509, 980, 16, 514, 980, 1830, 16, 4766, 6647, 509, 980, 2335, 13, 565, 288, 3639, 327, 394, 31956, 503, 12, 7163, 14935, 12, 2150, 16, 28337, 16, 980, 10019, 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 ]
public void findAndInit(Object obj) {}
public void findAndInit(Iterator it) { while (it.hasNext()) { findAndInit(it.next()); } }
public void findAndInit(Object obj) {}
47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/2ef55fe9823e94c187d2e7adfb58b038035a2061/Layer.java/buggy/src/openmap/com/bbn/openmap/Layer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1104, 1876, 2570, 12, 921, 1081, 13, 2618, 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 ]
[ 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, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1104, 1876, 2570, 12, 921, 1081, 13, 2618, 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 ]
public List<Long> getMemberOfGroupIds( final Experimenter e ) { Assert.notNull(e); Assert.notNull(e.getId()); List<Long> groupIds = iQuery.execute(new HibernateCallback(){ public Object doInHibernate(Session session) throws HibernateException, SQLException { org.hibernate.Query q = session.createQuery( "select m.parent.id from GroupExperimenterMap m " + "where m.child.id = :id"); q.setParameter("id", e.getId()); return q.list(); } }); return groupIds; }
public List<Long> getMemberOfGroupIds(final Experimenter e) { Assert.notNull(e); Assert.notNull(e.getId()); List<Long> groupIds = iQuery.execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException, SQLException { org.hibernate.Query q = session .createQuery("select m.parent.id from GroupExperimenterMap m " + "where m.child.id = :id"); q.setParameter("id", e.getId()); return q.list(); } }); return groupIds; }
public List<Long> getMemberOfGroupIds( final Experimenter e ) { Assert.notNull(e); Assert.notNull(e.getId()); List<Long> groupIds = iQuery.execute(new HibernateCallback(){ public Object doInHibernate(Session session) throws HibernateException, SQLException { org.hibernate.Query q = session.createQuery( "select m.parent.id from GroupExperimenterMap m " + "where m.child.id = :id"); q.setParameter("id", e.getId()); return q.list(); } }); return groupIds; }
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/7e7c45d25ea1bbef3485ae116b3eb108d9f6f5ef/AdminImpl.java/buggy/components/server/src/ome/logic/AdminImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 32, 3708, 34, 18925, 951, 1114, 2673, 12, 727, 1312, 457, 381, 2328, 425, 262, 565, 288, 377, 202, 8213, 18, 902, 2041, 12, 73, 1769, 377, 202, 8213, 18, 902, 2041, 12, 73, 18, 26321, 10663, 377, 202, 377, 202, 682, 32, 3708, 34, 1041, 2673, 273, 277, 1138, 18, 8837, 12, 2704, 670, 24360, 2428, 1435, 95, 540, 202, 482, 1033, 741, 382, 44, 24360, 12, 2157, 1339, 13, 1850, 202, 15069, 670, 24360, 503, 16, 6483, 288, 540, 202, 202, 3341, 18, 15769, 22828, 18, 1138, 1043, 273, 1339, 18, 2640, 1138, 12, 540, 202, 202, 6, 4025, 312, 18, 2938, 18, 350, 628, 3756, 424, 457, 381, 2328, 863, 312, 315, 397, 540, 202, 202, 6, 6051, 312, 18, 3624, 18, 350, 273, 294, 350, 8863, 540, 202, 202, 85, 18, 542, 1662, 2932, 350, 3113, 425, 18, 26321, 10663, 540, 202, 202, 2463, 1043, 18, 1098, 5621, 540, 202, 97, 3639, 15549, 377, 202, 2463, 1041, 2673, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 32, 3708, 34, 18925, 951, 1114, 2673, 12, 727, 1312, 457, 381, 2328, 425, 262, 565, 288, 377, 202, 8213, 18, 902, 2041, 12, 73, 1769, 377, 202, 8213, 18, 902, 2041, 12, 73, 18, 26321, 10663, 377, 202, 377, 202, 682, 32, 3708, 34, 1041, 2673, 273, 277, 1138, 18, 8837, 12, 2704, 670, 24360, 2428, 1435, 95, 540, 202, 482, 1033, 741, 382, 44, 24360, 12, 2157, 1339, 13, 1850, 202, 15069, 670, 24360, 503, 16, 6483, 288, 540, 202, 202, 3341, 18, 15769, 22828, 18, 1138, 1043, 273, 1339, 18, 2640, 1138, 12, 540, 202, 202, 6, 4025, 312, 18, 2938, 18, 350, 628, 3756, 424, 457, 381, 2328, 863, 312, 315, 397, 2 ]
public static Object delete(Object obj, Object id) {
public static Object delete(Context cx, Scriptable scope, Object obj, Object id) { Scriptable sobj = (obj instanceof Scriptable) ? (Scriptable)obj : toObject(cx, scope, obj);
public static Object delete(Object obj, Object id) { String s = getStringId(id); boolean result = s != null ? ScriptableObject.deleteProperty((Scriptable) obj, s) : ScriptableObject.deleteProperty((Scriptable) obj, getIntId(id)); return result ? Boolean.TRUE : Boolean.FALSE; }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/4fa07f31de89d0efead3f273910f4ac52f44270d/ScriptRuntime.java/clean/js/rhino/src/org/mozilla/javascript/ScriptRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 1430, 12, 1042, 9494, 16, 22780, 2146, 16, 1033, 1081, 16, 1033, 612, 13, 288, 22780, 1427, 441, 273, 261, 2603, 1276, 22780, 13, 692, 261, 3651, 429, 13, 2603, 294, 24216, 12, 71, 92, 16, 2146, 16, 1081, 1769, 3639, 514, 272, 273, 4997, 548, 12, 350, 1769, 3639, 1250, 563, 273, 272, 480, 446, 5411, 692, 22780, 921, 18, 3733, 1396, 12443, 3651, 429, 13, 1081, 16, 272, 13, 5411, 294, 22780, 921, 18, 3733, 1396, 12443, 3651, 429, 13, 1081, 16, 8145, 548, 12, 350, 10019, 3639, 327, 563, 692, 3411, 18, 18724, 294, 3411, 18, 21053, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 1430, 12, 1042, 9494, 16, 22780, 2146, 16, 1033, 1081, 16, 1033, 612, 13, 288, 22780, 1427, 441, 273, 261, 2603, 1276, 22780, 13, 692, 261, 3651, 429, 13, 2603, 294, 24216, 12, 71, 92, 16, 2146, 16, 1081, 1769, 3639, 514, 272, 273, 4997, 548, 12, 350, 1769, 3639, 1250, 563, 273, 272, 480, 446, 5411, 692, 22780, 921, 18, 3733, 1396, 12443, 3651, 429, 13, 1081, 16, 272, 13, 5411, 294, 22780, 921, 18, 3733, 1396, 12443, 3651, 429, 13, 1081, 16, 8145, 548, 12, 350, 10019, 3639, 327, 563, 692, 3411, 18, 18724, 294, 3411, 18, 21053, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
throw new RubyNameException(getRuby(), "cannot remove " + id + " for " + toName());
throw new NameError(getRuby(), "cannot remove " + id + " for " + toName());
public RubyObject remove_class_variable(RubyObject name) { String id = name.toId(); if (!IdUtil.isClassVariable(id)) { throw new RubyNameException(getRuby(), "wrong class variable name " + id); } if (!isTaint() && getRuby().getSafeLevel() >= 4) { throw new RubySecurityException(getRuby(), "Insecure: can't remove class variable"); } if (isFrozen()) { throw new RubyFrozenException(getRuby(), "class/module"); } if (getInstanceVariables() != null) { Object value = getInstanceVariables().remove(id); if (value != null) { return (RubyObject) value; } } if (isClassVarDefined(id)) { throw new RubyNameException(getRuby(), "cannot remove " + id + " for " + toName()); } throw new RubyNameException(getRuby(), "class variable " + id + " not defined for " + toName()); }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 1206, 67, 1106, 67, 6105, 12, 54, 10340, 921, 508, 13, 288, 3639, 514, 612, 273, 508, 18, 869, 548, 5621, 3639, 309, 16051, 548, 1304, 18, 291, 797, 3092, 12, 350, 3719, 288, 5411, 604, 394, 19817, 26771, 12, 588, 54, 10340, 9334, 315, 21530, 667, 2190, 508, 315, 397, 612, 1769, 3639, 289, 3639, 309, 16051, 291, 29048, 1435, 597, 4170, 10340, 7675, 588, 9890, 2355, 1435, 1545, 1059, 13, 288, 5411, 604, 394, 19817, 24918, 12, 588, 54, 10340, 9334, 315, 382, 8869, 30, 848, 1404, 1206, 667, 2190, 8863, 3639, 289, 3639, 309, 261, 291, 42, 9808, 10756, 288, 5411, 604, 394, 19817, 42, 9808, 503, 12, 588, 54, 10340, 9334, 315, 1106, 19, 2978, 8863, 3639, 289, 3639, 309, 261, 588, 1442, 6158, 1435, 480, 446, 13, 288, 5411, 1033, 460, 273, 3694, 6158, 7675, 4479, 12, 350, 1769, 5411, 309, 261, 1132, 480, 446, 13, 288, 7734, 327, 261, 54, 10340, 921, 13, 460, 31, 5411, 289, 3639, 289, 3639, 309, 261, 291, 797, 1537, 8116, 12, 350, 3719, 288, 5411, 604, 394, 25473, 12, 588, 54, 10340, 9334, 315, 12892, 1206, 315, 397, 612, 397, 315, 364, 315, 397, 358, 461, 10663, 3639, 289, 3639, 604, 394, 19817, 26771, 12, 588, 54, 10340, 9334, 315, 1106, 2190, 315, 397, 612, 397, 315, 486, 2553, 364, 315, 397, 358, 461, 10663, 565, 289, 2, 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, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 1206, 67, 1106, 67, 6105, 12, 54, 10340, 921, 508, 13, 288, 3639, 514, 612, 273, 508, 18, 869, 548, 5621, 3639, 309, 16051, 548, 1304, 18, 291, 797, 3092, 12, 350, 3719, 288, 5411, 604, 394, 19817, 26771, 12, 588, 54, 10340, 9334, 315, 21530, 667, 2190, 508, 315, 397, 612, 1769, 3639, 289, 3639, 309, 16051, 291, 29048, 1435, 597, 4170, 10340, 7675, 588, 9890, 2355, 1435, 1545, 1059, 13, 288, 5411, 604, 394, 19817, 24918, 12, 588, 54, 10340, 9334, 315, 382, 8869, 30, 848, 1404, 1206, 667, 2190, 8863, 3639, 289, 3639, 309, 261, 291, 42, 9808, 10756, 288, 5411, 604, 394, 19817, 42, 9808, 503, 12, 588, 54, 10340, 9334, 2 ]
public void changeUserPassword(String omeName, String newPassword) { Experimenter e = lookupExperimenter(omeName); internalChangeUserPasswordById(e.getId(),newPassword); }
public void changeUserPassword(String omeName, String newPassword) { Experimenter e = lookupExperimenter(omeName); internalChangeUserPasswordById(e.getId(), newPassword); }
public void changeUserPassword(String omeName, String newPassword) { Experimenter e = lookupExperimenter(omeName); internalChangeUserPasswordById(e.getId(),newPassword); }
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/7e7c45d25ea1bbef3485ae116b3eb108d9f6f5ef/AdminImpl.java/buggy/components/server/src/ome/logic/AdminImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2549, 1299, 3913, 12, 780, 320, 3501, 461, 16, 514, 394, 3913, 13, 565, 288, 377, 202, 424, 457, 381, 2328, 425, 273, 3689, 424, 457, 381, 2328, 12, 1742, 461, 1769, 377, 202, 7236, 3043, 1299, 3913, 5132, 12, 73, 18, 26321, 9334, 2704, 3913, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2549, 1299, 3913, 12, 780, 320, 3501, 461, 16, 514, 394, 3913, 13, 565, 288, 377, 202, 424, 457, 381, 2328, 425, 273, 3689, 424, 457, 381, 2328, 12, 1742, 461, 1769, 377, 202, 7236, 3043, 1299, 3913, 5132, 12, 73, 18, 26321, 9334, 2704, 3913, 1769, 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 ]
entry.setData(value);
entry.setInternalData(value);
public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (!(value instanceof RubyString)) { throw new TypeError(entry.getRuby(), "value of " + id + " must be a String"); } entry.setData(value); }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/4e4bb40b2eb2d38881d15ca8ef7cda4c34323793/RubyGlobal.java/buggy/org/jruby/RubyGlobal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 444, 12, 54, 10340, 921, 460, 16, 514, 612, 16, 19817, 921, 501, 16, 19817, 5160, 1622, 1241, 13, 288, 5411, 309, 16051, 12, 1132, 1276, 19817, 780, 3719, 288, 7734, 604, 394, 3580, 12, 4099, 18, 588, 54, 10340, 9334, 315, 1132, 434, 315, 397, 612, 397, 315, 1297, 506, 279, 514, 8863, 5411, 289, 5411, 1241, 18, 542, 3061, 751, 12, 1132, 1769, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 444, 12, 54, 10340, 921, 460, 16, 514, 612, 16, 19817, 921, 501, 16, 19817, 5160, 1622, 1241, 13, 288, 5411, 309, 16051, 12, 1132, 1276, 19817, 780, 3719, 288, 7734, 604, 394, 3580, 12, 4099, 18, 588, 54, 10340, 9334, 315, 1132, 434, 315, 397, 612, 397, 315, 1297, 506, 279, 514, 8863, 5411, 289, 5411, 1241, 18, 542, 3061, 751, 12, 1132, 1769, 3639, 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 ]
private File getProgramsFolder(int userType) { String path = shortcut.getProgramsFolder(userType); return (new File(path)); //} //else //{ // TODO // 0pt. Test if KDE is installed. //boolean isKdeInstalled = UnixHelper.kdeIsInstalled(); // 1. Test if User can write into // File kdeRootShareApplinkDir = getKDERootShareApplinkDir(); // if so: return getKDERootShareApplinkDir() // else // return getKDEUsersShareApplinkDir() + //} //return(result); }
46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/ea2c1c334b491cd6926af6502699f487604c17bc/ShortcutPanel.java/buggy/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 3238, 1387, 3570, 28854, 3899, 12, 474, 729, 559, 13, 377, 288, 1850, 514, 589, 273, 10995, 18, 588, 9459, 87, 3899, 12, 1355, 559, 1769, 1850, 327, 261, 2704, 1387, 12, 803, 10019, 1850, 19363, 1850, 368, 12107, 1850, 368, 95, 1850, 368, 2660, 1850, 368, 374, 337, 18, 7766, 309, 1475, 1639, 353, 5876, 18, 1850, 368, 6494, 353, 47, 323, 16747, 273, 9480, 2276, 18, 79, 323, 2520, 16747, 5621, 1850, 368, 404, 18, 7766, 309, 2177, 848, 1045, 1368, 1850, 368, 1387, 417, 323, 2375, 9535, 1294, 20157, 1621, 273, 16566, 4179, 1632, 9535, 1294, 20157, 1621, 5621, 1850, 368, 565, 309, 1427, 30, 327, 16566, 4179, 1632, 9535, 1294, 20157, 1621, 1435, 1850, 368, 565, 469, 1850, 368, 565, 327, 16566, 1639, 6588, 9535, 1294, 20157, 1621, 1435, 397, 1850, 19363, 1850, 368, 2463, 12, 2088, 1769, 377, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 3238, 1387, 3570, 28854, 3899, 12, 474, 729, 559, 13, 377, 288, 1850, 514, 589, 273, 10995, 18, 588, 9459, 87, 3899, 12, 1355, 559, 1769, 1850, 327, 261, 2704, 1387, 12, 803, 10019, 1850, 19363, 1850, 368, 12107, 1850, 368, 95, 1850, 368, 2660, 1850, 368, 374, 337, 18, 7766, 309, 1475, 1639, 353, 5876, 18, 1850, 368, 6494, 353, 47, 323, 16747, 273, 9480, 2276, 18, 79, 323, 2520, 16747, 5621, 1850, 368, 404, 18, 7766, 309, 2177, 848, 1045, 1368, 1850, 368, 1387, 417, 323, 2375, 9535, 1294, 20157, 1621, 273, 16566, 4179, 1632, 9535, 1294, 20157, 1621, 5621, 1850, 368, 565, 309, 1427, 30, 327, 16566, 4179, 1632, 9535, 1294, 20157, 1621, 1435, 1850, 2 ]
mgtService= (CollectionManagementService) current.getService( "CollectionManagementService", "1.0"); current= mgtService.createCollection(token);
mgtService = (CollectionManagementService) current.getService( "CollectionManagementService", "1.0"); current = mgtService.createCollection(token);
private final void mkcol(String collPath) throws XMLDBException { System.out.println("creating " + collPath); if (collPath.startsWith("/db")) collPath= collPath.substring("/db".length()); CollectionManagementService mgtService; Collection c; String p= "/db", token; StringTokenizer tok= new StringTokenizer(collPath, "/"); while (tok.hasMoreTokens()) { token= tok.nextToken(); p= p + '/' + token; c= DatabaseManager.getCollection( properties.getProperty("uri") + p, properties.getProperty("user"), properties.getProperty("password")); if (c == null) { mgtService= (CollectionManagementService) current.getService( "CollectionManagementService", "1.0"); current= mgtService.createCollection(token); } else current= c; } path= p; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/96a020d1e295b0656cc0cf89c67a713d91bb61ad/InteractiveClient.java/clean/src/org/exist/client/InteractiveClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 918, 5028, 1293, 12, 780, 4508, 743, 13, 1216, 26014, 503, 288, 202, 202, 3163, 18, 659, 18, 8222, 2932, 23799, 315, 397, 4508, 743, 1769, 202, 202, 430, 261, 12910, 743, 18, 17514, 1190, 2932, 19, 1966, 6, 3719, 1082, 202, 12910, 743, 33, 4508, 743, 18, 28023, 2932, 19, 1966, 9654, 2469, 10663, 202, 202, 2532, 10998, 1179, 312, 4521, 1179, 31, 202, 202, 2532, 276, 31, 202, 202, 780, 293, 33, 2206, 1966, 3113, 1147, 31, 202, 202, 780, 10524, 946, 33, 394, 16370, 12, 12910, 743, 16, 4016, 1769, 202, 202, 17523, 261, 17692, 18, 5332, 7417, 5157, 10756, 288, 1082, 202, 2316, 33, 946, 18, 4285, 1345, 5621, 1082, 202, 84, 33, 293, 397, 2023, 397, 1147, 31, 1082, 202, 71, 33, 9506, 202, 4254, 1318, 18, 588, 2532, 12, 6862, 202, 4738, 18, 588, 1396, 2932, 1650, 7923, 397, 293, 16, 6862, 202, 4738, 18, 588, 1396, 2932, 1355, 6, 3631, 6862, 202, 4738, 18, 588, 1396, 2932, 3664, 7923, 1769, 1082, 202, 430, 261, 71, 422, 446, 13, 288, 9506, 202, 81, 4521, 1179, 33, 6862, 202, 12, 2532, 10998, 1179, 13, 783, 18, 588, 1179, 12, 25083, 202, 6, 2532, 10998, 1179, 3113, 25083, 202, 6, 21, 18, 20, 8863, 9506, 202, 2972, 33, 312, 4521, 1179, 18, 2640, 2532, 12, 2316, 1769, 1082, 202, 97, 469, 9506, 202, 2972, 33, 276, 31, 202, 202, 97, 202, 202, 803, 33, 293, 31, 202, 97, 2, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 918, 5028, 1293, 12, 780, 4508, 743, 13, 1216, 26014, 503, 288, 202, 202, 3163, 18, 659, 18, 8222, 2932, 23799, 315, 397, 4508, 743, 1769, 202, 202, 430, 261, 12910, 743, 18, 17514, 1190, 2932, 19, 1966, 6, 3719, 1082, 202, 12910, 743, 33, 4508, 743, 18, 28023, 2932, 19, 1966, 9654, 2469, 10663, 202, 202, 2532, 10998, 1179, 312, 4521, 1179, 31, 202, 202, 2532, 276, 31, 202, 202, 780, 293, 33, 2206, 1966, 3113, 1147, 31, 202, 202, 780, 10524, 946, 33, 394, 16370, 12, 12910, 743, 16, 4016, 1769, 202, 202, 17523, 261, 17692, 18, 5332, 7417, 5157, 10756, 288, 1082, 202, 2316, 33, 946, 18, 4285, 1345, 5621, 1082, 202, 2 ]
if ( parameters.getQueryPDBChainId() != null) query = query +"." + parameters.getQueryPDBChainId(); if ( parameters.getSubjectPDBChainId() != null) subject = subject + "." + parameters.getSubjectCoordinateSystem(); boolean found = false; for ( int i=0; i< aligs.length;i++ ){ Alignment a = aligs[i]; try { AlignmentTools.getObject(query,a); AlignmentTools.getObject(subject,a); finalAlig = a; found = true; break; } catch (NoSuchElementException e){ continue; } }
finalAlig = handleSubjectRequest(query,subject,parameters,aligs);
public void run() { DasCoordinateSystem queryCoordSys = parameters.getQueryCoordinateSystem(); String query = parameters.getQuery(); String subject = parameters.getSubject(); if ( queryCoordSys != null ){ String qcs = queryCoordSys.toString(); //logger.info("found queryCS " + qcs + " query " + query + " subject " + subject); if ( qcs.equals (PDB_COORD_SYS) ) { //logger.info("looks like a PDB " + qcs + " " + PDB_COORD_SYS); query = query.substring(0,4); } } //logger.info("requesting for query " + query); Alignment[] aligs = getAlignments(query); if ( aligs.length == 0) { triggerNoAlignmentFound(query,subject); return; } Alignment finalAlig = aligs[0]; // take the right alignment if ( subject != null) { //logger.info("subject " + subject); if ( parameters.getQueryPDBChainId() != null) query = query +"." + parameters.getQueryPDBChainId(); if ( parameters.getSubjectPDBChainId() != null) subject = subject + "." + parameters.getSubjectCoordinateSystem(); //logger.info("searching for " + query + " " + subject); boolean found = false; for ( int i=0; i< aligs.length;i++ ){ Alignment a = aligs[i]; //logger.info("checking alignment " + a.toString()); try { AlignmentTools.getObject(query,a); AlignmentTools.getObject(subject,a); //logger.info("found alignment for "+query + " " + subject); finalAlig = a; found = true; break; } catch (NoSuchElementException e){ //logger.info(" no such element " + e.getMessage()); continue; } } if ( ! found){ // hum somebdy requested a particular query & subject, but we do not find this. // give him the first alignment for query.. if ( parameters.getQueryPDBChainId() != null) query = query.substring(0,4); finalAlig = getAlignmentFromAligs(aligs,query); } } else { finalAlig = getAlignmentFromAligs(aligs,query); } AlignmentEvent event = new AlignmentEvent(finalAlig,aligs); Iterator iter = alignmentListeners.iterator(); while (iter.hasNext()){ AlignmentListener li = (AlignmentListener ) iter.next(); li.newAlignment(event) ; } }
52521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52521/9f57c1d3952dc53d21e908dc8478b11e29f39483/AlignmentThread.java/clean/src/org/biojava/spice/das/AlignmentThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 7734, 463, 345, 13503, 3163, 843, 5401, 12712, 273, 1472, 18, 588, 1138, 13503, 3163, 5621, 3639, 514, 843, 273, 1472, 18, 588, 1138, 5621, 3639, 514, 3221, 273, 1472, 18, 588, 6638, 5621, 7734, 309, 261, 843, 5401, 12712, 480, 446, 262, 95, 5411, 514, 1043, 2143, 273, 843, 5401, 12712, 18, 10492, 5621, 5411, 368, 4901, 18, 1376, 2932, 7015, 843, 4596, 315, 397, 1043, 2143, 397, 315, 843, 315, 397, 843, 397, 315, 3221, 315, 397, 3221, 1769, 13491, 309, 261, 1043, 2143, 18, 14963, 261, 52, 2290, 67, 27237, 40, 67, 30664, 13, 262, 288, 7734, 368, 4901, 18, 1376, 2932, 7330, 87, 3007, 279, 21601, 315, 397, 1043, 2143, 397, 315, 315, 397, 21601, 67, 27237, 40, 67, 30664, 1769, 7734, 843, 273, 843, 18, 28023, 12, 20, 16, 24, 1769, 5411, 289, 3639, 289, 3639, 368, 4901, 18, 1376, 2932, 2293, 310, 364, 843, 315, 397, 843, 1769, 3639, 17804, 8526, 524, 360, 87, 273, 336, 10044, 1346, 12, 2271, 1769, 3639, 309, 261, 524, 360, 87, 18, 2469, 422, 374, 13, 288, 5411, 3080, 2279, 11535, 2043, 12, 2271, 16, 7857, 1769, 5411, 327, 31, 3639, 289, 7734, 17804, 727, 1067, 360, 273, 225, 524, 360, 87, 63, 20, 15533, 7734, 368, 4862, 326, 2145, 8710, 3639, 309, 261, 225, 3221, 480, 446, 13, 288, 5411, 368, 4901, 18, 1376, 2932, 7857, 315, 397, 3221, 1769, 5411, 309, 261, 1472, 18, 588, 1138, 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, 1071, 918, 1086, 1435, 288, 7734, 463, 345, 13503, 3163, 843, 5401, 12712, 273, 1472, 18, 588, 1138, 13503, 3163, 5621, 3639, 514, 843, 273, 1472, 18, 588, 1138, 5621, 3639, 514, 3221, 273, 1472, 18, 588, 6638, 5621, 7734, 309, 261, 843, 5401, 12712, 480, 446, 262, 95, 5411, 514, 1043, 2143, 273, 843, 5401, 12712, 18, 10492, 5621, 5411, 368, 4901, 18, 1376, 2932, 7015, 843, 4596, 315, 397, 1043, 2143, 397, 315, 843, 315, 397, 843, 397, 315, 3221, 315, 397, 3221, 1769, 13491, 309, 261, 1043, 2143, 18, 14963, 261, 52, 2290, 67, 27237, 40, 67, 30664, 13, 262, 288, 7734, 368, 4901, 18, 1376, 2932, 7330, 87, 3007, 279, 21601, 315, 397, 1043, 2 ]
if (hasGetTicket && hasQuery) {
if (hasGetTicket && hasQuery && hasWikiToHtml) {
public void validate() throws TracException { Object[] result = (Object[]) call("system.listMethods"); boolean hasGetTicket = false, hasQuery = false; for (Object methodName : result) { if ("ticket.get".equals(methodName)) { hasGetTicket = true; } if ("ticket.query".equals(methodName)) { hasQuery = true; } if (hasGetTicket && hasQuery) { return; } } throw new TracException("XML-RPC is missing required API calls"); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/f7c0f499c594b7938487aec2bd090c61e0dd4123/TracXmlRpcClient.java/clean/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/core/TracXmlRpcClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1954, 1435, 1216, 2197, 71, 503, 288, 202, 202, 921, 8526, 563, 273, 261, 921, 63, 5717, 745, 2932, 4299, 18, 1098, 4712, 8863, 202, 202, 6494, 711, 967, 13614, 273, 629, 16, 711, 1138, 273, 629, 31, 202, 202, 1884, 261, 921, 4918, 294, 563, 13, 288, 1082, 202, 430, 7566, 16282, 18, 588, 9654, 14963, 12, 2039, 461, 3719, 288, 9506, 202, 5332, 967, 13614, 273, 638, 31, 1082, 202, 97, 1082, 202, 430, 7566, 16282, 18, 2271, 9654, 14963, 12, 2039, 461, 3719, 288, 9506, 202, 5332, 1138, 273, 638, 31, 1082, 202, 97, 1082, 202, 430, 261, 5332, 967, 13614, 597, 711, 1138, 13, 288, 9506, 202, 2463, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 12849, 394, 2197, 71, 503, 2932, 4201, 17, 8087, 353, 3315, 1931, 1491, 4097, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1954, 1435, 1216, 2197, 71, 503, 288, 202, 202, 921, 8526, 563, 273, 261, 921, 63, 5717, 745, 2932, 4299, 18, 1098, 4712, 8863, 202, 202, 6494, 711, 967, 13614, 273, 629, 16, 711, 1138, 273, 629, 31, 202, 202, 1884, 261, 921, 4918, 294, 563, 13, 288, 1082, 202, 430, 7566, 16282, 18, 588, 9654, 14963, 12, 2039, 461, 3719, 288, 9506, 202, 5332, 967, 13614, 273, 638, 31, 1082, 202, 97, 1082, 202, 430, 7566, 16282, 18, 2271, 9654, 14963, 12, 2039, 461, 3719, 288, 9506, 202, 5332, 1138, 273, 638, 31, 1082, 202, 97, 1082, 202, 430, 261, 5332, 967, 13614, 597, 711, 1138, 13, 288, 9506, 202, 2463, 31, 1082, 202, 2 ]
public ZArray(boolean[] xs) { this.xs = xs; }
public ZArray(boolean[] value) { this.value = value; }
public ZArray(boolean[] xs) { this.xs = xs; }
32355 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/32355/b5127bbfea6df39af5db3dc45bb9f7e698acb3f1/RunTime.java/buggy/sources/scala/runtime/RunTime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2285, 1076, 12, 6494, 8526, 9280, 13, 288, 333, 18, 13713, 273, 9280, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 377, 1071, 2285, 1076, 12, 6494, 8526, 9280, 13, 288, 333, 18, 13713, 273, 9280, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
elSD = axaOrthogonal[i].getSeriesDefinitions( );
if ( i == -1 ) { elSD = axaBase[0].getSeriesDefinitions( ); } else { elSD = axaOrthogonal[i].getSeriesDefinitions( ); }
private final Series findDesignTimeSeries( Series seRT ) throws ChartException { final ChartWithAxes cwaRT = (ChartWithAxes) iun.getRunTimeModel( ); final ChartWithAxes cwaDT = (ChartWithAxes) iun.getDesignTimeModel( ); Series seDT = null; Axis[] axaBase = cwaRT.getPrimaryBaseAxes( ); Axis axBase = axaBase[0]; Axis[] axaOrthogonal = cwaRT.getOrthogonalAxes( axBase, true ); EList elSD, elSE; SeriesDefinition sd; Series se = null; int i, j = 0, k = 0; boolean bFound = false; // LOCATE INDEXES FOR AXIS/SERIESDEFINITION/SERIES IN RUN TIME MODEL for ( i = 0; i < axaOrthogonal.length; i++ ) { elSD = axaOrthogonal[i].getSeriesDefinitions( ); for ( j = 0; j < elSD.size( ); j++ ) { sd = (SeriesDefinition) elSD.get( j ); elSE = sd.getSeries( ); for ( k = 0; k < elSE.size( ); k++ ) { se = (Series) elSE.get( k ); if ( seRT == se ) { bFound = true; break; } } if ( bFound ) { break; } } if ( bFound ) { break; } } if ( !bFound ) { throw new ChartException( ChartDeviceExtensionPlugin.ID, ChartException.OUT_OF_SYNC, "info.cannot.find.series", //$NON-NLS-1$ new Object[]{ seRT }, ResourceBundle.getBundle( Messages.DEVICE_EXTENSION, lcl ) ); } // MAP TO INDEXES FOR AXIS/SERIESDEFINITION/SERIES IN DESIGN TIME MODEL axaBase = cwaDT.getPrimaryBaseAxes( ); axBase = axaBase[0]; axaOrthogonal = cwaDT.getOrthogonalAxes( axBase, true ); elSD = axaOrthogonal[i].getSeriesDefinitions( ); sd = (SeriesDefinition) elSD.get( j ); elSE = sd.getSeries( ); seDT = (Series) elSE.get( k ); return seDT; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/8fbdafd2163f71f055ddc7b8f3d8bd27e32f6e63/SwingEventHandler.java/buggy/chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/swing/SwingEventHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 9225, 1104, 15478, 28486, 12, 9225, 695, 12185, 262, 1082, 202, 15069, 14804, 503, 202, 95, 202, 202, 6385, 14804, 1190, 26494, 14098, 69, 12185, 273, 261, 7984, 1190, 26494, 13, 277, 318, 18, 588, 1997, 950, 1488, 12, 11272, 202, 202, 6385, 14804, 1190, 26494, 14098, 69, 9081, 273, 261, 7984, 1190, 26494, 13, 277, 318, 18, 588, 15478, 950, 1488, 12, 11272, 202, 202, 6485, 695, 9081, 273, 446, 31, 202, 202, 6558, 8526, 1740, 69, 2171, 273, 14098, 69, 12185, 18, 588, 6793, 2171, 26494, 12, 11272, 202, 202, 6558, 1740, 2171, 273, 1740, 69, 2171, 63, 20, 15533, 202, 202, 6558, 8526, 1740, 69, 1162, 451, 28396, 273, 14098, 69, 12185, 18, 588, 1162, 451, 28396, 26494, 12, 1740, 2171, 16, 638, 11272, 202, 202, 41, 682, 415, 9903, 16, 415, 1090, 31, 202, 202, 6485, 1852, 8349, 31, 202, 202, 6485, 695, 273, 446, 31, 202, 202, 474, 277, 16, 525, 273, 374, 16, 417, 273, 374, 31, 202, 202, 6494, 324, 2043, 273, 629, 31, 202, 202, 759, 1806, 13000, 12425, 3991, 12108, 29539, 5127, 19, 2123, 8805, 25312, 19, 2123, 8805, 2120, 15484, 8721, 21700, 202, 202, 1884, 261, 277, 273, 374, 31, 277, 411, 1740, 69, 1162, 451, 28396, 18, 2469, 31, 277, 9904, 262, 202, 202, 95, 1082, 202, 292, 9903, 273, 1740, 69, 1162, 451, 28396, 63, 77, 8009, 588, 6485, 7130, 12, 11272, 1082, 202, 1884, 261, 525, 273, 374, 31, 525, 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, 727, 9225, 1104, 15478, 28486, 12, 9225, 695, 12185, 262, 1082, 202, 15069, 14804, 503, 202, 95, 202, 202, 6385, 14804, 1190, 26494, 14098, 69, 12185, 273, 261, 7984, 1190, 26494, 13, 277, 318, 18, 588, 1997, 950, 1488, 12, 11272, 202, 202, 6385, 14804, 1190, 26494, 14098, 69, 9081, 273, 261, 7984, 1190, 26494, 13, 277, 318, 18, 588, 15478, 950, 1488, 12, 11272, 202, 202, 6485, 695, 9081, 273, 446, 31, 202, 202, 6558, 8526, 1740, 69, 2171, 273, 14098, 69, 12185, 18, 588, 6793, 2171, 26494, 12, 11272, 202, 202, 6558, 1740, 2171, 273, 1740, 69, 2171, 63, 20, 15533, 202, 202, 6558, 8526, 1740, 69, 1162, 451, 28396, 273, 14098, 69, 12185, 2 ]
con.rollback();
throw ex;
public static void dropTable(Connection con, String table) throws SQLException { Statement stmt = con.createStatement(); try { String sql = "DROP TABLE " + table; if (haveMinimumServerVersion(con,"7.3")) { sql += " CASCADE "; } stmt.executeUpdate(sql); } catch (SQLException ex) { // Since every create table issues a drop table // it's easy to get a table doesn't exist error. // we want to ignore these, but if we're in a // transaction we need to restart. // If the test case wants to catch errors // itself it should issue the drop SQL directly. if (!con.getAutoCommit()) con.rollback(); } }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/ddf8296bead68552a8e5de0f5bb20875273bb02d/TestUtil.java/buggy/org/postgresql/test/TestUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 3640, 1388, 12, 1952, 356, 16, 514, 1014, 13, 1216, 6483, 202, 95, 202, 202, 3406, 3480, 273, 356, 18, 2640, 3406, 5621, 202, 202, 698, 288, 1082, 202, 780, 1847, 273, 315, 18768, 7567, 315, 397, 1014, 31, 1082, 202, 430, 261, 21516, 13042, 2081, 1444, 12, 591, 10837, 27, 18, 23, 6, 3719, 288, 9506, 202, 4669, 1011, 315, 6425, 25517, 13636, 1082, 202, 97, 1082, 202, 10589, 18, 8837, 1891, 12, 4669, 1769, 202, 202, 97, 1044, 261, 23116, 431, 13, 288, 1082, 202, 759, 7897, 3614, 752, 1014, 8296, 279, 3640, 1014, 1082, 202, 759, 518, 1807, 12779, 358, 336, 279, 1014, 3302, 1404, 1005, 555, 18, 1082, 202, 759, 732, 2545, 358, 2305, 4259, 16, 1496, 309, 732, 4565, 316, 279, 1082, 202, 759, 2492, 732, 1608, 358, 7870, 18, 1082, 202, 759, 971, 326, 1842, 648, 14805, 358, 1044, 1334, 1082, 202, 759, 6174, 518, 1410, 5672, 326, 3640, 3063, 5122, 18, 1082, 202, 430, 16051, 591, 18, 588, 4965, 5580, 10756, 9506, 202, 591, 18, 20050, 5621, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 760, 918, 3640, 1388, 12, 1952, 356, 16, 514, 1014, 13, 1216, 6483, 202, 95, 202, 202, 3406, 3480, 273, 356, 18, 2640, 3406, 5621, 202, 202, 698, 288, 1082, 202, 780, 1847, 273, 315, 18768, 7567, 315, 397, 1014, 31, 1082, 202, 430, 261, 21516, 13042, 2081, 1444, 12, 591, 10837, 27, 18, 23, 6, 3719, 288, 9506, 202, 4669, 1011, 315, 6425, 25517, 13636, 1082, 202, 97, 1082, 202, 10589, 18, 8837, 1891, 12, 4669, 1769, 202, 202, 97, 1044, 261, 23116, 431, 13, 288, 1082, 202, 759, 7897, 3614, 752, 1014, 8296, 279, 3640, 1014, 1082, 202, 759, 518, 1807, 12779, 358, 336, 279, 1014, 3302, 1404, 1005, 555, 18, 1082, 202, 759, 2 ]
private String getRoot() { Token t = getFirstToken(); // System.out.println("First token for " + ((Object) this ) + " : " + t ); /* * we have a special case where something like * $(\\)*!, where the user want's to see something * like $!blargh in the output, but the ! prevents it from showing. * I think that at this point, this isn't a reference. */ /* so, see if we have "\\!" */ int slashbang = t.image.indexOf("\\!"); if ( slashbang != -1 ) { /* * lets do all the work here. I would argue that if this occurrs, it's * not a reference at all, so preceeding \ characters in front of the $ * are just schmoo. So we just do the escape processing trick (even | odd) * and move on. This kind of breaks the rule pattern of $ and # but '!' really * tosses a wrench into things. */ /* * count the escapes : even # -> not escaped, odd -> escaped */ int i = 0; int len = t.image.length(); i = t.image.indexOf("$"); if (i == -1) { /* yikes! */ rsvc.error("ASTReference.getRoot() : internal error : no $ found for slashbang."); computableReference = false; nullString = t.image; return nullString; } while( i < len && t.image.charAt(i) != '\\') i++; /* ok, i is the first \ char */ int start = i; int count = 0; while( i < len && t.image.charAt(i++) == '\\' ) count++; /* * now construct the output string. We really don't care about leading * slashes as this is not a reference. It's quasi-schmoo */ nullString = t.image.substring(0,start); // prefix up to the first nullString += t.image.substring(start, start + count-1 ); // get the slashes nullString += t.image.substring(start+count); // and the rest, including the /* * this isn't a valid reference, so lets short circuit the value and set calcs */ computableReference = false; return nullString; } /* * we need to see if this reference is escaped. if so * we will clean off the leading \'s and let the * regular behavior determine if we should output this * as \$foo or $foo later on in render(). Lazyness.. */ escaped = false; if ( t.image.startsWith("\\")) { /* * count the escapes : even # -> not escaped, odd -> escaped */ int i = 0; int len = t.image.length(); while( i < len && t.image.charAt(i) == '\\' ) i++; if ( (i % 2) != 0 ) escaped = true; // System.out.println("Escaped? : " + i + " : " + escaped + " : " + ( (Object) this) ); if (i > 0) prefix = t.image.substring(0, i / 2 ); t.image = t.image.substring(i); } /* * get the literal in case this reference isn't backed by the context at runtime */ nullString = literal(); if (t.image.startsWith("$!")) { referenceType = QUIET_REFERENCE; /* * only if we aren't escaped do we want to null the output */ if (!escaped) nullString = ""; if (t.image.startsWith("$!{")) { /* * ex : $!{provider.Title} */ return t.next.image; } else { /* * ex : $!provider.Title */ return t.image.substring(2); } } else if (t.image.equals("${")) { /* * ex : ${provider.Title} */ referenceType = FORMAL_REFERENCE; return t.next.image; } else { /* * the magic <MORE> can prepend '#' and '$' * on the front of a reference - so lets clean it * and save that info as the prefix */ String img = t.image; int loc = 0; for( loc = 0; loc < img.length(); loc++) { char c = img.charAt(loc); if ( c != '#' && c != '$') { break; } } /* * if we have extra stuff, loc > 0 * ex. '#$foo' so attach that to * the prefix. */ if( loc > 0) { prefix = prefix + img.substring(0, loc-1); } referenceType = NORMAL_REFERENCE; return img.substring(loc); } }
55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/456e9f523ee98b14d81e8d53d0e83fa7622b1f48/ASTReference.java/buggy/src/java/org/apache/velocity/runtime/parser/node/ASTReference.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 514, 7656, 1435, 95, 1345, 268, 273, 7521, 1345, 5621, 759, 3163, 18, 659, 18, 8222, 2932, 3759, 1147, 364, 315, 397, 14015, 921, 13, 333, 262, 397, 315, 294, 315, 397, 268, 11272, 20308, 380, 1814, 1240, 279, 4582, 648, 1625, 5943, 3007, 26788, 24480, 17653, 5, 16, 1625, 326, 729, 2545, 1807, 358, 2621, 5943, 380, 5625, 271, 5, 3083, 3175, 76, 316, 326, 876, 16, 1496, 326, 401, 17793, 518, 628, 17253, 18, 380, 45, 15507, 716, 622, 333, 1634, 16, 333, 5177, 1404, 279, 2114, 18, 380, 759, 14, 1427, 16, 2621, 309, 732, 1240, 8422, 4442, 1195, 474, 9026, 70, 539, 273, 268, 18, 2730, 18, 31806, 2932, 1695, 4442, 1769, 430, 261, 9026, 70, 539, 480, 300, 21, 262, 95, 20308, 380, 17307, 741, 777, 326, 1440, 2674, 18, 45, 4102, 1501, 344, 716, 309, 333, 3334, 5453, 16, 518, 1807, 14, 902, 279, 2114, 622, 777, 16, 1427, 675, 5288, 310, 521, 3949, 316, 6641, 434, 326, 271, 380, 834, 2537, 18551, 81, 5161, 18, 10225, 732, 2537, 741, 326, 4114, 4929, 28837, 261, 16728, 571, 14800, 13, 380, 464, 3635, 603, 18, 2503, 3846, 434, 16217, 326, 1720, 1936, 434, 271, 471, 468, 1496, 15502, 8654, 380, 14627, 2420, 279, 341, 26728, 1368, 9198, 18, 1195, 1748, 380, 1883, 326, 23802, 294, 5456, 468, 317, 486, 8345, 16, 14800, 317, 8345, 5549, 474, 277, 273, 374, 31, 474, 562, 273, 268, 18, 2730, 18, 2469, 5621, 77, 273, 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, 3238, 514, 7656, 1435, 95, 1345, 268, 273, 7521, 1345, 5621, 759, 3163, 18, 659, 18, 8222, 2932, 3759, 1147, 364, 315, 397, 14015, 921, 13, 333, 262, 397, 315, 294, 315, 397, 268, 11272, 20308, 380, 1814, 1240, 279, 4582, 648, 1625, 5943, 3007, 26788, 24480, 17653, 5, 16, 1625, 326, 729, 2545, 1807, 358, 2621, 5943, 380, 5625, 271, 5, 3083, 3175, 76, 316, 326, 876, 16, 1496, 326, 401, 17793, 518, 628, 17253, 18, 380, 45, 15507, 716, 622, 333, 1634, 16, 333, 5177, 1404, 279, 2114, 18, 380, 759, 14, 1427, 16, 2621, 309, 732, 1240, 8422, 4442, 1195, 474, 9026, 70, 539, 273, 268, 18, 2730, 18, 31806, 2932, 1695, 4442, 1769, 430, 261, 2 ]
generator.appendDeletedSubdirectory(resource);
public boolean visit(IResourceDelta delta) throws CoreException { // Should the visitor keep iterating in current directory boolean keepLooking = false; IResource resource = delta.getResource(); // What kind of resource change has occurred if (resource.getType() == IResource.FILE) { String ext = resource.getFileExtension(); boolean moved = false; switch (delta.getKind()) { case IResourceDelta.ADDED: if (!generator.isGeneratedResource(resource)) { // This is a source file so just add its container if (info.buildsFileType(ext)) { generator.appendModifiedSubdirectory(resource); } } break; case IResourceDelta.REMOVED: // we get this notification if a resource is moved too if (!generator.isGeneratedResource(resource)) { // This is a source file so just add its container if (info.buildsFileType(ext)) { generator.appendDeletedSubdirectory(resource); generator.appendDeletedFile(resource); } } break; default: keepLooking = true; break; } } if (resource.getType() == IResource.PROJECT) { // If there is a zero-length delta, something the project depends on has changed so just call make IResourceDelta[] children = delta.getAffectedChildren(); if (children != null && children.length > 0) { keepLooking = true; } } else { // If the resource is part of the generated directory structure don't recurse if (!generator.isGeneratedResource(resource)) { keepLooking = true; } } return keepLooking; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/3dbe65030b3bb9602c42108a3af2e1301ba746de/GnuMakefileGenerator.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/makegen/gnu/GnuMakefileGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 3757, 12, 45, 1420, 9242, 3622, 13, 1216, 30015, 288, 1082, 202, 759, 9363, 326, 8000, 3455, 13099, 316, 783, 1867, 1875, 202, 6494, 3455, 9794, 310, 273, 629, 31, 1082, 202, 45, 1420, 1058, 273, 3622, 18, 588, 1420, 5621, 25083, 202, 759, 18734, 3846, 434, 1058, 2549, 711, 7841, 1082, 202, 430, 261, 3146, 18, 588, 559, 1435, 422, 467, 1420, 18, 3776, 13, 288, 9506, 202, 780, 1110, 273, 1058, 18, 29925, 3625, 5621, 9506, 202, 6494, 10456, 273, 629, 31, 9506, 202, 9610, 261, 9878, 18, 588, 5677, 10756, 288, 6862, 202, 3593, 467, 1420, 9242, 18, 1880, 7660, 30, 25083, 202, 430, 16051, 8812, 18, 291, 7823, 1420, 12, 3146, 3719, 288, 6862, 1082, 202, 759, 1220, 353, 279, 1084, 585, 1427, 2537, 527, 2097, 1478, 6862, 1082, 202, 430, 261, 1376, 18, 27324, 28941, 12, 408, 3719, 288, 6862, 9506, 202, 8812, 18, 6923, 4575, 1676, 5149, 12, 3146, 1769, 6862, 1082, 202, 97, 25083, 202, 97, 25083, 202, 8820, 31, 6862, 202, 3593, 467, 1420, 9242, 18, 11122, 12135, 30, 25083, 202, 759, 732, 336, 333, 3851, 309, 279, 1058, 353, 10456, 4885, 25083, 202, 430, 16051, 8812, 18, 291, 7823, 1420, 12, 3146, 3719, 288, 6862, 1082, 202, 759, 1220, 353, 279, 1084, 585, 1427, 2537, 527, 2097, 1478, 6862, 1082, 202, 430, 261, 1376, 18, 27324, 28941, 12, 408, 3719, 288, 6862, 9506, 202, 8812, 18, 6923, 7977, 1676, 5149, 12, 3146, 1769, 6862, 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, 3196, 202, 482, 1250, 3757, 12, 45, 1420, 9242, 3622, 13, 1216, 30015, 288, 1082, 202, 759, 9363, 326, 8000, 3455, 13099, 316, 783, 1867, 1875, 202, 6494, 3455, 9794, 310, 273, 629, 31, 1082, 202, 45, 1420, 1058, 273, 3622, 18, 588, 1420, 5621, 25083, 202, 759, 18734, 3846, 434, 1058, 2549, 711, 7841, 1082, 202, 430, 261, 3146, 18, 588, 559, 1435, 422, 467, 1420, 18, 3776, 13, 288, 9506, 202, 780, 1110, 273, 1058, 18, 29925, 3625, 5621, 9506, 202, 6494, 10456, 273, 629, 31, 9506, 202, 9610, 261, 9878, 18, 588, 5677, 10756, 288, 6862, 202, 3593, 467, 1420, 9242, 18, 1880, 7660, 30, 25083, 202, 430, 16051, 8812, 18, 291, 7823, 1420, 12, 3146, 2 ]
System.err.println(getCluster().getMessageAddress() + " LoadAllocator got task of unexpected type :"
System.err.println(getMessageAddress() + " LoadAllocator got task of unexpected type :"
public void execute() { //System.out.println(getCluster().getMessageAddress() + " In LoadAllocatorPlugin.execute"); for (Enumeration e = thisOrgSubs.getAddedList();e.hasMoreElements();) { // only expecting one thisOrg = (Organization)e.nextElement(); // Are we an MSB? isTransporter = isMSB();// System.out.println(getCluster().getMessageAddress() // + " LoadAllocator got self "// + thisOrg // + " isTransporter " + isTransporter); break; } // oplan is reset every time execute() runs oplanStartTime = TimeSpan.MAX_VALUE; for (Enumeration e = oplanSubs.elements(); e.hasMoreElements(); ) { Oplan oplan = (Oplan) e.nextElement(); oplanStartTime = Math.min(oplanStartTime, oplan.getCday().getTime()); } // We can't do anything without the oplan if (oplanStartTime == TimeSpan.MAX_VALUE) return; // change this: hard code end date for now oplanEndTime = oplanStartTime + (long)(181 * ScheduleUtilities.millisperday); // If we get to this point, we have the Oplan times and can create // capacity objects. (No Oplan, no start or end dates) // Create Transport Capacities at MSB if (isTransporter) { if (fuelTransportCapacity == null) { Capacity cap = createCapacity(BulkPOL.class, Constants.Verb.TRANSPORT); if (cap != null) { fuelTransportCapacity = new LACapacity(cap); publishAdd(cap); } } if (ammoTransportCapacity == null) { Capacity cap = createCapacity(Ammunition.class, Constants.Verb.TRANSPORT); if (cap != null) { ammoTransportCapacity = new LACapacity(cap); publishAdd(cap); } } } // Create Handling Capacities at FSB else { if (fuelHandlingCapacity == null) { Capacity cap = createCapacity(BulkPOL.class, Constants.Verb.LOAD); if (cap != null) { fuelHandlingCapacity = new LACapacity(cap); publishAdd(cap); } } if (ammoHandlingCapacity == null) { Capacity cap = createCapacity(Ammunition.class, Constants.Verb.LOAD); if (cap != null) { ammoHandlingCapacity = new LACapacity(cap); publishAdd(cap); } } } // Load tasks for(Enumeration e = loadTasks.getAddedList();e.hasMoreElements();) { Task task = (Task)e.nextElement(); if (isTransporter) { System.out.println(getCluster().getMessageAddress() + " LoadAllocator: Why do we have LOAD Tasks here? Isn't this the MSB?"); break; } Asset asset = null; if (task.getDirectObject() instanceof BulkPOL) { asset = fuelHandlingCapacity.getCapacity(); fuelHandlingCapacity.changed(true); // System.out.println(getCluster().getMessageAddress() + " LoadAllocator got Load fuel task"); } else if (task.getDirectObject() instanceof Ammunition){ asset = ammoHandlingCapacity.getCapacity(); ammoHandlingCapacity.changed(true); // System.out.println(getCluster().getMessageAddress() + " LoadAllocator got Load ammo task"); } else { System.err.println(getCluster().getMessageAddress() + " LoadAllocator got task of unexpected type :" + task); continue; } // System.out.println(getCluster().getMessageAddress() + "Creating AllocationResult for Load task"); AllocationResult allocation_result = computeAllocationResult(task); Allocation allocation = theLDMF.createAllocation(task.getPlan(), task, asset, allocation_result, Constants.Role.HANDLER);// System.out.println(getCluster().getMessageAddress() + " Allocating Handle Task " /*+ task*/ + " to " + asset); publishAdd(allocation); thePlan = task.getPlan(); } // Transport tasks for(Enumeration e = transportTasks.getAddedList();e.hasMoreElements();) { Task task = (Task)e.nextElement(); Role role = null; Asset asset = null; if (isTransporter) { // We are the MSB, allocate to capacity Object dobj = task.getDirectObject(); if (dobj instanceof BulkPOL) { asset = fuelTransportCapacity.getCapacity(); fuelTransportCapacity.changed(true); role = Constants.Role.FUELTRANSPORTPROVIDER; // System.out.println(getCluster().getMessageAddress() + " LoadAllocator got Transport fuel task"); } else if (dobj instanceof Ammunition){ asset = ammoTransportCapacity.getCapacity(); ammoTransportCapacity.changed(true); // System.out.println(getCluster().getMessageAddress() + " LoadAllocator got Transport ammo task"); } else if (dobj instanceof AggregateAsset){ Object o = ((AggregateAsset)task.getDirectObject()).getAsset(); if (o instanceof Ammunition) { asset = ammoTransportCapacity.getCapacity(); ammoTransportCapacity.changed(true); } else if (o instanceof BulkPOL) { asset = fuelTransportCapacity.getCapacity(); fuelTransportCapacity.changed(true); } else{ // we don't deal with whatever ends up here continue; //System.err.println(getCluster().getMessageAddress() + " LoadAllocator asset of unknown type: " + dobj); } } } // forward from FSB to MSB else // Bad! This assumes that either one will do. asset = getRoleProvider(Constants.Role.FUELTRANSPORTPROVIDER, false); if (asset == null) // try again asset = getRoleProvider(Constants.Role.AMMUNITIONTRANSPORTPROVIDER, false); if (asset == null) { System.err.println(getCluster().getMessageAddress() + " LoadAllocator - no MSB, can't forward the Transport task"); } else { // create and publish the allocation // System.out.println(getCluster().getMessageAddress() + "Creating AllocationResult for Transport task"); AllocationResult allocation_result = computeAllocationResult(task); Allocation allocation = theLDMF.createAllocation(task.getPlan(), task, asset, allocation_result, Constants.Role.TRANSPORTER);// System.out.println(getCluster().getMessageAddress() + "Allocating Transport Task " /*+ task*/ + " to " + asset); publishAdd(allocation); thePlan = task.getPlan(); } } // calculate capacity overruns // if overruns on a given day, ask for more capacity // assume we get new capacity, and add a QuantityScheduleElement to // Capacity.ScheduleContentPG.Schedule with added capacity if ((fuelHandlingCapacity !=null) && fuelHandlingCapacity.changed()) { checkOverruns(fuelHandlingCapacity); fuelHandlingCapacity.changed(false); } if ((ammoHandlingCapacity!=null) && ammoHandlingCapacity.changed()) { checkOverruns(ammoHandlingCapacity); ammoHandlingCapacity.changed(false); } if ((fuelTransportCapacity!=null) && fuelTransportCapacity.changed()) { checkOverruns(fuelTransportCapacity); fuelTransportCapacity.changed(false) ; } if ((ammoTransportCapacity!=null) && ammoTransportCapacity.changed()) { checkOverruns(ammoTransportCapacity); ammoTransportCapacity.changed(false); } }
7171 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7171/6c245e9a4b46cd0066408cc5ff7f4f953b95f742/LoadAllocatorPlugin.java/buggy/glm/src/org/cougaar/mlm/plugin/sample/LoadAllocatorPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1836, 1435, 282, 288, 565, 368, 3163, 18, 659, 18, 8222, 12, 588, 3629, 7675, 24906, 1887, 1435, 397, 315, 657, 4444, 21156, 3773, 18, 8837, 8863, 565, 364, 261, 21847, 425, 273, 333, 6001, 26123, 18, 588, 8602, 682, 5621, 73, 18, 5332, 7417, 3471, 5621, 13, 288, 1377, 368, 1338, 17012, 1245, 1377, 333, 6001, 273, 261, 8113, 13, 73, 18, 4285, 1046, 5621, 1377, 368, 12520, 732, 392, 9238, 38, 35, 1377, 353, 1429, 7988, 273, 353, 3537, 38, 5621, 759, 2398, 202, 565, 2332, 18, 659, 18, 8222, 12, 588, 3629, 7675, 24906, 1887, 1435, 368, 2398, 9506, 4202, 397, 315, 4444, 21156, 2363, 365, 16177, 2398, 9506, 4202, 397, 333, 6001, 368, 6647, 9506, 4202, 397, 315, 353, 1429, 7988, 315, 397, 353, 1429, 7988, 1769, 1377, 898, 31, 565, 289, 565, 368, 320, 7088, 353, 2715, 3614, 813, 1836, 1435, 7597, 565, 320, 7088, 13649, 273, 2647, 6952, 18, 6694, 67, 4051, 31, 565, 364, 261, 21847, 425, 273, 320, 7088, 26123, 18, 6274, 5621, 425, 18, 5332, 7417, 3471, 5621, 262, 288, 1377, 531, 7088, 320, 7088, 273, 261, 51, 7088, 13, 425, 18, 4285, 1046, 5621, 1377, 320, 7088, 13649, 273, 2361, 18, 1154, 12, 83, 7088, 13649, 16, 320, 7088, 18, 588, 39, 2881, 7675, 588, 950, 10663, 565, 289, 565, 368, 1660, 848, 1404, 741, 6967, 2887, 326, 320, 7088, 565, 309, 261, 83, 7088, 13649, 422, 2647, 6952, 18, 6694, 67, 4051, 13, 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, 918, 1836, 1435, 282, 288, 565, 368, 3163, 18, 659, 18, 8222, 12, 588, 3629, 7675, 24906, 1887, 1435, 397, 315, 657, 4444, 21156, 3773, 18, 8837, 8863, 565, 364, 261, 21847, 425, 273, 333, 6001, 26123, 18, 588, 8602, 682, 5621, 73, 18, 5332, 7417, 3471, 5621, 13, 288, 1377, 368, 1338, 17012, 1245, 1377, 333, 6001, 273, 261, 8113, 13, 73, 18, 4285, 1046, 5621, 1377, 368, 12520, 732, 392, 9238, 38, 35, 1377, 353, 1429, 7988, 273, 353, 3537, 38, 5621, 759, 2398, 202, 565, 2332, 18, 659, 18, 8222, 12, 588, 3629, 7675, 24906, 1887, 1435, 368, 2398, 9506, 4202, 397, 315, 4444, 21156, 2363, 365, 16177, 2398, 9506, 4202, 397, 333, 6001, 2 ]
}
public boolean removeContact(Contact c) { System.out.println("Remove contact"); Contact con=null; for(int i=0; i<this.contacts_.size(); i++) { con = (Contact)this.contacts_.elementAt(i); if(con.userID().compareTo(c.userID())==0) { String list = (String)this.userLists.get(new Integer(con.hashCode())); System.out.println("LisT:" + list); int l = Integer.parseInt(list); switch (l) { case 11: this.tr.newTransaction(); this.tr.setType("REM"); this.tr.addArgument("AL "+c.userID()); this.sh.sendRequest(this.tr.toString()); System.out.println("gggggg"+this.tr.toString()); case 1: this.tr.newTransaction(); this.tr.setType("REM"); this.tr.addArgument("FL "+this.userHashes.get(new Integer(con.hashCode()))); this.sh.sendRequest(this.tr.toString()); System.out.println("jjjjjjj"+this.tr.toString()); break; } this.contacts_.removeElementAt(i); return true; } } return false; }
56431 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56431/e3c244e53a6bfb0747def747c57d72ad964ec7a6/MSNProtocol.java/clean/trunk/jimmy/msn/MSNProtocol.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1206, 6567, 12, 6567, 276, 13, 565, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 3288, 5388, 8863, 202, 6567, 356, 33, 2011, 31, 202, 1884, 12, 474, 277, 33, 20, 31, 277, 32, 2211, 18, 20777, 27799, 1467, 5621, 277, 27245, 202, 95, 202, 377, 356, 273, 261, 6567, 13, 2211, 18, 20777, 27799, 2956, 861, 12, 77, 1769, 202, 377, 309, 12, 591, 18, 1355, 734, 7675, 9877, 774, 12, 71, 18, 1355, 734, 10756, 631, 20, 13, 202, 377, 288, 1082, 514, 666, 273, 261, 780, 13, 2211, 18, 1355, 7432, 18, 588, 12, 2704, 2144, 12, 591, 18, 2816, 1085, 1435, 10019, 1082, 2332, 18, 659, 18, 8222, 2932, 48, 291, 56, 2773, 397, 666, 1769, 1082, 509, 328, 273, 2144, 18, 2670, 1702, 12, 1098, 1769, 1082, 1620, 261, 80, 13, 1082, 288, 1082, 377, 648, 4648, 30, 9506, 333, 18, 313, 18, 2704, 3342, 5621, 9506, 333, 18, 313, 18, 542, 559, 2932, 862, 49, 8863, 6862, 333, 18, 313, 18, 1289, 1379, 2932, 1013, 13773, 71, 18, 1355, 734, 10663, 9506, 333, 18, 674, 18, 4661, 691, 12, 2211, 18, 313, 18, 10492, 10663, 9506, 2332, 18, 659, 18, 8222, 2932, 14253, 14253, 14253, 6, 15, 2211, 18, 313, 18, 10492, 10663, 1082, 377, 648, 404, 30, 9506, 333, 18, 313, 18, 2704, 3342, 5621, 9506, 333, 18, 313, 18, 542, 559, 2932, 862, 49, 8863, 9506, 4697, 333, 18, 313, 18, 1289, 1379, 2932, 19054, 13773, 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, 1250, 1206, 6567, 12, 6567, 276, 13, 565, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 3288, 5388, 8863, 202, 6567, 356, 33, 2011, 31, 202, 1884, 12, 474, 277, 33, 20, 31, 277, 32, 2211, 18, 20777, 27799, 1467, 5621, 277, 27245, 202, 95, 202, 377, 356, 273, 261, 6567, 13, 2211, 18, 20777, 27799, 2956, 861, 12, 77, 1769, 202, 377, 309, 12, 591, 18, 1355, 734, 7675, 9877, 774, 12, 71, 18, 1355, 734, 10756, 631, 20, 13, 202, 377, 288, 1082, 514, 666, 273, 261, 780, 13, 2211, 18, 1355, 7432, 18, 588, 12, 2704, 2144, 12, 591, 18, 2816, 1085, 1435, 10019, 1082, 2332, 18, 659, 18, 8222, 2932, 48, 291, 56, 2 ]
throw new BuildException(errs + " errors");
String m = errs + " errors"; MessageUtil.print(System.err, holder, "", MessageUtil.MESSAGE_ALL, MessageUtil.PICK_ERROR, true); throw new BuildException(m);
protected void executeInSameVM(String[] args) { if (null != maxMem) { log("maxMem ignored unless forked: " + maxMem, Project.MSG_WARN); } IMessageHolder holder = messageHolder; int numPreviousErrors; if (null == holder) { MessageHandler mhandler = new MessageHandler(true); final IMessageHandler delegate = verbose ? MessagePrinter.VERBOSE: MessagePrinter.TERSE; mhandler.setInterceptor(delegate); if (!verbose) { mhandler.ignore(IMessage.INFO); } holder = mhandler; numPreviousErrors = 0; } else { numPreviousErrors = holder.numMessages(IMessage.ERROR, true); } { Main newmain = new Main(); newmain.setHolder(holder); newmain.setCompletionRunner(new Runnable() { public void run() { doCompletionTasks(); } }); if (null != main) { MessageUtil.fail(holder, "still running prior main"); return; } main = newmain; } try { main.runMain(args, false); } finally { main = null; } if (failonerror) { int errs = holder.numMessages(IMessage.ERROR, false); errs -= numPreviousErrors; if (0 < errs) { // errors should already be printed by interceptor throw new BuildException(errs + " errors"); } } // Throw BuildException if there are any fail or abort // messages. // The BuildException message text has a list of class names // for the exceptions found in the messages, or the // number of fail/abort messages found if there were // no exceptions for any of the fail/abort messages. // The interceptor message handler should have already // printed the messages, including any stack traces. // HACK: this ignores the Usage message { IMessage[] fails = holder.getMessages(IMessage.FAIL, true); if (!LangUtil.isEmpty(fails)) { StringBuffer sb = new StringBuffer(); String prefix = "fail due to "; int numThrown = 0; for (int i = 0; i < fails.length; i++) { String message = fails[i].getMessage(); if (LangUtil.isEmpty(message)) { message = "<no message>"; } else if (-1 != message.indexOf(USAGE_SUBSTRING)) { continue; } Throwable t = fails[i].getThrown(); if (null != t) { numThrown++; sb.append(prefix); sb.append(LangUtil.unqualifiedClassName(t.getClass())); String thrownMessage = t.getMessage(); if (!LangUtil.isEmpty(thrownMessage)) { sb.append(" \"" + thrownMessage + "\""); } } sb.append("\"" + message + "\""); prefix = ", "; } if (0 < sb.length()) { sb.append(" (" + numThrown + " exceptions)"); throw new BuildException(sb.toString()); } } } }
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/83b5e4a3a53ef41d14c2e565bdcc742a363ab2f5/AjcTask.java/clean/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1836, 382, 8650, 7397, 12, 780, 8526, 833, 13, 288, 3639, 309, 261, 2011, 480, 943, 3545, 13, 288, 5411, 613, 2932, 1896, 3545, 5455, 3308, 12515, 329, 30, 315, 397, 943, 3545, 16, 5420, 18, 11210, 67, 27999, 1769, 3639, 289, 3639, 467, 1079, 6064, 10438, 273, 883, 6064, 31, 3639, 509, 818, 8351, 4229, 31, 3639, 309, 261, 2011, 422, 10438, 13, 288, 5411, 2350, 1503, 312, 4176, 273, 394, 2350, 1503, 12, 3767, 1769, 5411, 727, 467, 1079, 1503, 7152, 1171, 273, 3988, 692, 2350, 12149, 18, 21900, 30, 2350, 12149, 18, 2560, 1090, 31, 5411, 312, 4176, 18, 542, 10281, 12, 22216, 1769, 5411, 309, 16051, 11369, 13, 288, 7734, 312, 4176, 18, 6185, 12, 45, 1079, 18, 5923, 1769, 5411, 289, 5411, 10438, 273, 312, 4176, 31, 5411, 818, 8351, 4229, 273, 374, 31, 3639, 289, 469, 288, 5411, 818, 8351, 4229, 273, 10438, 18, 2107, 5058, 12, 45, 1079, 18, 3589, 16, 638, 1769, 3639, 289, 3639, 288, 5411, 12740, 394, 5254, 273, 394, 12740, 5621, 5411, 394, 5254, 18, 542, 6064, 12, 4505, 1769, 5411, 394, 5254, 18, 542, 11238, 9709, 12, 2704, 10254, 1435, 288, 7734, 1071, 918, 1086, 1435, 288, 10792, 741, 11238, 6685, 5621, 7734, 289, 5411, 15549, 5411, 309, 261, 2011, 480, 2774, 13, 288, 7734, 2350, 1304, 18, 6870, 12, 4505, 16, 315, 334, 737, 3549, 6432, 2774, 8863, 7734, 327, 31, 5411, 289, 5411, 2774, 273, 394, 5254, 31, 5375, 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, 4750, 918, 1836, 382, 8650, 7397, 12, 780, 8526, 833, 13, 288, 3639, 309, 261, 2011, 480, 943, 3545, 13, 288, 5411, 613, 2932, 1896, 3545, 5455, 3308, 12515, 329, 30, 315, 397, 943, 3545, 16, 5420, 18, 11210, 67, 27999, 1769, 3639, 289, 3639, 467, 1079, 6064, 10438, 273, 883, 6064, 31, 3639, 509, 818, 8351, 4229, 31, 3639, 309, 261, 2011, 422, 10438, 13, 288, 5411, 2350, 1503, 312, 4176, 273, 394, 2350, 1503, 12, 3767, 1769, 5411, 727, 467, 1079, 1503, 7152, 1171, 273, 3988, 692, 2350, 12149, 18, 21900, 30, 2350, 12149, 18, 2560, 1090, 31, 5411, 312, 4176, 18, 542, 10281, 12, 22216, 1769, 5411, 309, 16051, 11369, 13, 288, 7734, 312, 4176, 2 ]
if (getInput() instanceof ICElement || getInput() instanceof ITypeInfo) oldInput = getInput();
Object viewerInput = getInput(); if (viewerInput instanceof ICElement || viewerInput instanceof ITypeInfo) oldInput = viewerInput;
void adjustInputAndSetSelection(Object o) { if (!(o instanceof ICElement) && !(o instanceof ITypeInfo)) { setSelection(StructuredSelection.EMPTY, true); return; } Object elementToSelect= getSuitableElement(findElementToSelect(o)); Object newInput= findInputForElement(o); Object oldInput= null; if (getInput() instanceof ICElement || getInput() instanceof ITypeInfo) oldInput = getInput(); if (elementToSelect == null && !isValidInput(newInput) && (newInput == null && !isAncestorOf(o, oldInput))) // Clear input setInput(null); else if (mustSetNewInput(elementToSelect, oldInput, newInput)) { // Adjust input to selection setInput(newInput); // Recompute suitable element since it depends on the viewer's input elementToSelect= getSuitableElement(elementToSelect); } if (elementToSelect != null /*&& elementToSelect.exists()*/) setSelection(new StructuredSelection(elementToSelect), true); else setSelection(StructuredSelection.EMPTY, true); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/cd51bbd5f74702b10da18821cacea42e20722fe5/CBrowsingPart.java/clean/core/org.eclipse.cdt.ui/browser/org/eclipse/cdt/internal/ui/browser/cbrowsing/CBrowsingPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 5765, 1210, 13152, 6233, 12, 921, 320, 13, 288, 202, 202, 430, 16051, 12, 83, 1276, 26899, 1046, 13, 597, 401, 12, 83, 1276, 467, 17305, 3719, 288, 1082, 202, 542, 6233, 12, 30733, 6233, 18, 13625, 16, 638, 1769, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 921, 930, 774, 3391, 33, 1322, 89, 9085, 1046, 12, 4720, 1046, 774, 3391, 12, 83, 10019, 202, 202, 921, 394, 1210, 33, 1104, 1210, 1290, 1046, 12, 83, 1769, 202, 202, 921, 1592, 1210, 33, 446, 31, 202, 202, 430, 261, 588, 1210, 1435, 1276, 26899, 1046, 747, 12353, 1435, 1276, 467, 17305, 13, 1082, 202, 1673, 1210, 273, 12353, 5621, 202, 202, 430, 261, 2956, 774, 3391, 422, 446, 597, 401, 26810, 1210, 12, 2704, 1210, 13, 597, 261, 2704, 1210, 422, 446, 597, 401, 291, 15637, 951, 12, 83, 16, 1592, 1210, 20349, 1082, 202, 759, 10121, 810, 1082, 202, 542, 1210, 12, 2011, 1769, 202, 202, 12107, 309, 261, 11926, 694, 1908, 1210, 12, 2956, 774, 3391, 16, 1592, 1210, 16, 394, 1210, 3719, 288, 1082, 202, 759, 17720, 810, 358, 4421, 1082, 202, 542, 1210, 12, 2704, 1210, 1769, 1082, 202, 759, 868, 9200, 10631, 930, 3241, 518, 10935, 603, 326, 14157, 1807, 810, 1082, 202, 2956, 774, 3391, 33, 1322, 89, 9085, 1046, 12, 2956, 774, 3391, 1769, 202, 202, 97, 9506, 202, 430, 261, 2956, 774, 3391, 480, 446, 1748, 10, 10, 930, 774, 3391, 18, 1808, 1435, 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, 6459, 5765, 1210, 13152, 6233, 12, 921, 320, 13, 288, 202, 202, 430, 16051, 12, 83, 1276, 26899, 1046, 13, 597, 401, 12, 83, 1276, 467, 17305, 3719, 288, 1082, 202, 542, 6233, 12, 30733, 6233, 18, 13625, 16, 638, 1769, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 921, 930, 774, 3391, 33, 1322, 89, 9085, 1046, 12, 4720, 1046, 774, 3391, 12, 83, 10019, 202, 202, 921, 394, 1210, 33, 1104, 1210, 1290, 1046, 12, 83, 1769, 202, 202, 921, 1592, 1210, 33, 446, 31, 202, 202, 430, 261, 588, 1210, 1435, 1276, 26899, 1046, 747, 12353, 1435, 1276, 467, 17305, 13, 1082, 202, 1673, 1210, 273, 12353, 5621, 202, 202, 430, 261, 2956, 2 ]
public static Message createFNPSwapCommit(long uid, byte[] buf) {
public static final Message createFNPSwapCommit(long uid, byte[] buf) {
public static Message createFNPSwapCommit(long uid, byte[] buf) { Message msg = new Message(FNPSwapCommit); msg.set(UID, uid); msg.set(DATA, new ShortBuffer(buf)); return msg; }
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/d69dceaa72feee5ece14b8de951841aa9b614188/DMT.java/clean/src/freenet/io/comm/DMT.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 727, 2350, 752, 19793, 5857, 91, 438, 5580, 12, 5748, 4555, 16, 1160, 8526, 1681, 13, 288, 3639, 2350, 1234, 273, 394, 2350, 12, 19793, 5857, 91, 438, 5580, 1769, 3639, 1234, 18, 542, 12, 3060, 16, 4555, 1769, 3639, 1234, 18, 542, 12, 4883, 16, 394, 7925, 1892, 12, 4385, 10019, 3639, 327, 1234, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 760, 727, 2350, 752, 19793, 5857, 91, 438, 5580, 12, 5748, 4555, 16, 1160, 8526, 1681, 13, 288, 3639, 2350, 1234, 273, 394, 2350, 12, 19793, 5857, 91, 438, 5580, 1769, 3639, 1234, 18, 542, 12, 3060, 16, 4555, 1769, 3639, 1234, 18, 542, 12, 4883, 16, 394, 7925, 1892, 12, 4385, 10019, 3639, 327, 1234, 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 ]
case ts.WITH: {
case TokenStream.WITH: {
private Object statementHelper(TokenStream ts, Source source) throws IOException, JavaScriptException { Object pn = null; // If skipsemi == true, don't add SEMI + EOL to source at the // end of this statment. For compound statements, IF/FOR etc. boolean skipsemi = false; int tt; int lastExprType = 0; // For wellTerminated. 0 to avoid warning. tt = ts.getToken(); switch(tt) { case ts.IF: { skipsemi = true; source.append((char)ts.IF); int lineno = ts.getLineno(); Object cond = condition(ts, source); source.append((char)ts.LC); source.append((char)ts.EOL); Object ifTrue = statement(ts, source); Object ifFalse = null; if (ts.matchToken(ts.ELSE)) { source.append((char)ts.RC); source.append((char)ts.ELSE); source.append((char)ts.LC); source.append((char)ts.EOL); ifFalse = statement(ts, source); } source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createIf(cond, ifTrue, ifFalse, lineno); break; } case ts.SWITCH: { skipsemi = true; source.append((char)ts.SWITCH); pn = nf.createSwitch(ts.getLineno()); Object cur_case = null; // to kill warning Object case_statements; mustMatchToken(ts, ts.LP, "msg.no.paren.switch"); source.append((char)ts.LP); nf.addChildToBack(pn, expr(ts, source, false)); mustMatchToken(ts, ts.RP, "msg.no.paren.after.switch"); source.append((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.switch"); source.append((char)ts.LC); source.append((char)ts.EOL); while ((tt = ts.getToken()) != ts.RC && tt != ts.EOF) { switch(tt) { case ts.CASE: source.append((char)ts.CASE); cur_case = nf.createUnary(ts.CASE, expr(ts, source, false)); source.append((char)ts.COLON); source.append((char)ts.EOL); break; case ts.DEFAULT: cur_case = nf.createLeaf(ts.DEFAULT); source.append((char)ts.DEFAULT); source.append((char)ts.COLON); source.append((char)ts.EOL); // XXX check that there isn't more than one default break; default: reportError(ts, "msg.bad.switch"); break; } mustMatchToken(ts, ts.COLON, "msg.no.colon.case"); case_statements = nf.createLeaf(TokenStream.BLOCK); while ((tt = ts.peekToken()) != ts.RC && tt != ts.CASE && tt != ts.DEFAULT && tt != ts.EOF) { nf.addChildToBack(case_statements, statement(ts, source)); } // assert cur_case nf.addChildToBack(cur_case, case_statements); nf.addChildToBack(pn, cur_case); } source.append((char)ts.RC); source.append((char)ts.EOL); break; } case ts.WHILE: { skipsemi = true; source.append((char)ts.WHILE); int lineno = ts.getLineno(); Object cond = condition(ts, source); source.append((char)ts.LC); source.append((char)ts.EOL); Object body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createWhile(cond, body, lineno); break; } case ts.DO: { source.append((char)ts.DO); source.append((char)ts.LC); source.append((char)ts.EOL); int lineno = ts.getLineno(); Object body = statement(ts, source); source.append((char)ts.RC); mustMatchToken(ts, ts.WHILE, "msg.no.while.do"); source.append((char)ts.WHILE); Object cond = condition(ts, source); pn = nf.createDoWhile(body, cond, lineno); break; } case ts.FOR: { skipsemi = true; source.append((char)ts.FOR); int lineno = ts.getLineno(); Object init; // Node init is also foo in 'foo in Object' Object cond; // Node cond is also object in 'foo in Object' Object incr = null; // to kill warning Object body; mustMatchToken(ts, ts.LP, "msg.no.paren.for"); source.append((char)ts.LP); tt = ts.peekToken(); if (tt == ts.SEMI) { init = nf.createLeaf(ts.VOID); } else { if (tt == ts.VAR) { // set init to a var list or initial ts.getToken(); // throw away the 'var' token init = variables(ts, source, true); } else { init = expr(ts, source, true); } } tt = ts.peekToken(); if (tt == ts.RELOP && ts.getOp() == ts.IN) { ts.matchToken(ts.RELOP); source.append((char)ts.IN); // 'cond' is the object over which we're iterating cond = expr(ts, source, false); } else { // ordinary for loop mustMatchToken(ts, ts.SEMI, "msg.no.semi.for"); source.append((char)ts.SEMI); if (ts.peekToken() == ts.SEMI) { // no loop condition cond = nf.createLeaf(ts.VOID); } else { cond = expr(ts, source, false); } mustMatchToken(ts, ts.SEMI, "msg.no.semi.for.cond"); source.append((char)ts.SEMI); if (ts.peekToken() == ts.RP) { incr = nf.createLeaf(ts.VOID); } else { incr = expr(ts, source, false); } } mustMatchToken(ts, ts.RP, "msg.no.paren.for.ctrl"); source.append((char)ts.RP); source.append((char)ts.LC); source.append((char)ts.EOL); body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); if (incr == null) { // cond could be null if 'in obj' got eaten by the init node. pn = nf.createForIn(init, cond, body, lineno); } else { pn = nf.createFor(init, cond, incr, body, lineno); } break; } case ts.TRY: { int lineno = ts.getLineno(); Object tryblock; Object catchblocks = null; Object finallyblock = null; skipsemi = true; source.append((char)ts.TRY); source.append((char)ts.LC); source.append((char)ts.EOL); tryblock = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); catchblocks = nf.createLeaf(TokenStream.BLOCK); boolean sawDefaultCatch = false; int peek = ts.peekToken(); if (peek == ts.CATCH) { while (ts.matchToken(ts.CATCH)) { if (sawDefaultCatch) { reportError(ts, "msg.catch.unreachable"); } source.append((char)ts.CATCH); mustMatchToken(ts, ts.LP, "msg.no.paren.catch"); source.append((char)ts.LP); mustMatchToken(ts, ts.NAME, "msg.bad.catchcond"); String varName = ts.getString(); source.addString(ts.NAME, varName); Object catchCond = null; if (ts.matchToken(ts.IF)) { source.append((char)ts.IF); catchCond = expr(ts, source, false); } else { sawDefaultCatch = true; } mustMatchToken(ts, ts.RP, "msg.bad.catchcond"); source.append((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.catchblock"); source.append((char)ts.LC); source.append((char)ts.EOL); nf.addChildToBack(catchblocks, nf.createCatch(varName, catchCond, statements(ts, source), ts.getLineno())); mustMatchToken(ts, ts.RC, "msg.no.brace.after.body"); source.append((char)ts.RC); source.append((char)ts.EOL); } } else if (peek != ts.FINALLY) { mustMatchToken(ts, ts.FINALLY, "msg.try.no.catchfinally"); } if (ts.matchToken(ts.FINALLY)) { source.append((char)ts.FINALLY); source.append((char)ts.LC); source.append((char)ts.EOL); finallyblock = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); } pn = nf.createTryCatchFinally(tryblock, catchblocks, finallyblock, lineno); break; } case ts.THROW: { int lineno = ts.getLineno(); source.append((char)ts.THROW); pn = nf.createThrow(expr(ts, source, false), lineno); if (lineno == ts.getLineno()) wellTerminated(ts, ts.ERROR); break; } case ts.BREAK: { int lineno = ts.getLineno(); source.append((char)ts.BREAK); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { source.addString(ts.NAME, label); } pn = nf.createBreak(label, lineno); break; } case ts.CONTINUE: { int lineno = ts.getLineno(); source.append((char)ts.CONTINUE); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { source.addString(ts.NAME, label); } pn = nf.createContinue(label, lineno); break; } case ts.WITH: { skipsemi = true; source.append((char)ts.WITH); int lineno = ts.getLineno(); mustMatchToken(ts, ts.LP, "msg.no.paren.with"); source.append((char)ts.LP); Object obj = expr(ts, source, false); mustMatchToken(ts, ts.RP, "msg.no.paren.after.with"); source.append((char)ts.RP); source.append((char)ts.LC); source.append((char)ts.EOL); Object body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createWith(obj, body, lineno); break; } case ts.VAR: { int lineno = ts.getLineno(); pn = variables(ts, source, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); break; } case ts.RETURN: { Object retExpr = null; int lineno = 0; source.append((char)ts.RETURN); // bail if we're not in a (toplevel) function if ((ts.flags & ts.TSF_FUNCTION) == 0) reportError(ts, "msg.bad.return"); /* This is ugly, but we don't want to require a semicolon. */ ts.flags |= ts.TSF_REGEXP; tt = ts.peekTokenSameLine(); ts.flags &= ~ts.TSF_REGEXP; if (tt != ts.EOF && tt != ts.EOL && tt != ts.SEMI && tt != ts.RC) { lineno = ts.getLineno(); retExpr = expr(ts, source, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); ts.flags |= ts.TSF_RETURN_EXPR; } else { ts.flags |= ts.TSF_RETURN_VOID; } // XXX ASSERT pn pn = nf.createReturn(retExpr, lineno); break; } case ts.LC: skipsemi = true; pn = statements(ts, source); mustMatchToken(ts, ts.RC, "msg.no.brace.block"); break; case ts.ERROR: // Fall thru, to have a node for error recovery to work on case ts.EOL: case ts.SEMI: pn = nf.createLeaf(ts.VOID); skipsemi = true; break; default: { lastExprType = tt; int tokenno = ts.getTokenno(); ts.ungetToken(tt); int lineno = ts.getLineno(); pn = expr(ts, source, false); if (ts.peekToken() == ts.COLON) { /* check that the last thing the tokenizer returned was a * NAME and that only one token was consumed. */ if (lastExprType != ts.NAME || (ts.getTokenno() != tokenno)) reportError(ts, "msg.bad.label"); ts.getToken(); // eat the COLON /* in the C source, the label is associated with the * statement that follows: * nf.addChildToBack(pn, statement(ts)); */ String name = ts.getString(); pn = nf.createLabel(name, lineno); // depend on decompiling lookahead to guess that that // last name was a label. source.append((char)ts.COLON); source.append((char)ts.EOL); return pn; } if (lastExprType == ts.FUNCTION) nf.setFunctionExpressionStatement(pn); pn = nf.createExprStatement(pn, lineno); /* * Check explicitly against (multi-line) function * statement. * lastExprEndLine is a hack to fix an * automatic semicolon insertion problem with function * expressions; the ts.getLineno() == lineno check was * firing after a function definition even though the * next statement was on a new line, because * speculative getToken calls advanced the line number * even when they didn't succeed. */ if (ts.getLineno() == lineno || (lastExprType == ts.FUNCTION && ts.getLineno() == lastExprEndLine)) { wellTerminated(ts, lastExprType); } break; } } ts.matchToken(ts.SEMI); if (!skipsemi) { source.append((char)ts.SEMI); source.append((char)ts.EOL); } return pn; }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/8024efa9963a32d478db0d09899ffa61e921aa3e/Parser.java/buggy/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 3021, 2276, 12, 1345, 1228, 3742, 16, 4998, 1084, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 273, 446, 31, 3639, 368, 971, 2488, 307, 9197, 422, 638, 16, 2727, 1404, 527, 3174, 7492, 397, 19995, 358, 1084, 622, 326, 3639, 368, 679, 434, 333, 610, 475, 18, 225, 2457, 11360, 6317, 16, 11083, 19, 7473, 5527, 18, 3639, 1250, 2488, 307, 9197, 273, 629, 31, 3639, 509, 3574, 31, 3639, 509, 1142, 4742, 559, 273, 374, 31, 225, 368, 2457, 5492, 21888, 18, 225, 374, 358, 4543, 3436, 18, 3639, 3574, 273, 3742, 18, 588, 1345, 5621, 3639, 1620, 12, 748, 13, 288, 3639, 648, 3742, 18, 5501, 30, 288, 5411, 2488, 307, 9197, 273, 638, 31, 5411, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 5501, 1769, 5411, 509, 7586, 273, 3742, 18, 588, 48, 267, 5764, 5621, 5411, 1033, 6941, 273, 2269, 12, 3428, 16, 1084, 1769, 5411, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 13394, 1769, 5411, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 5842, 1769, 5411, 1033, 309, 5510, 273, 3021, 12, 3428, 16, 1084, 1769, 5411, 1033, 309, 8381, 273, 446, 31, 5411, 309, 261, 3428, 18, 1916, 1345, 12, 3428, 18, 2247, 1090, 3719, 288, 7734, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 11529, 1769, 7734, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 2247, 1090, 1769, 7734, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 13394, 1769, 7734, 1084, 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, 1033, 3021, 2276, 12, 1345, 1228, 3742, 16, 4998, 1084, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 273, 446, 31, 3639, 368, 971, 2488, 307, 9197, 422, 638, 16, 2727, 1404, 527, 3174, 7492, 397, 19995, 358, 1084, 622, 326, 3639, 368, 679, 434, 333, 610, 475, 18, 225, 2457, 11360, 6317, 16, 11083, 19, 7473, 5527, 18, 3639, 1250, 2488, 307, 9197, 273, 629, 31, 3639, 509, 3574, 31, 3639, 509, 1142, 4742, 559, 273, 374, 31, 225, 368, 2457, 5492, 21888, 18, 225, 374, 358, 4543, 3436, 18, 3639, 3574, 273, 3742, 18, 588, 1345, 5621, 3639, 1620, 12, 748, 13, 288, 3639, 648, 3742, 18, 5501, 30, 288, 5411, 2 ]
if (tokenType == DOC_COMMENT) { CompositeElement element = Factory.createCompositeElement(tokenType); LeafElement chameleon = Factory.createLeafElement(DOC_COMMENT_TEXT, lexer.getBuffer(), lexer.getTokenStart(),
if (tokenType == JavaTokenType.DOC_COMMENT) { LeafElement chameleon = Factory.createLeafElement(JavaDocElementType.DOC_COMMENT, lexer.getBuffer(), lexer.getTokenStart(),
public static TreeElement createTokenElement(Lexer lexer, CharTable table) { IElementType tokenType = lexer.getTokenType(); if (tokenType == null) return null; if (tokenType == DOC_COMMENT) { CompositeElement element = Factory.createCompositeElement(tokenType); LeafElement chameleon = Factory.createLeafElement(DOC_COMMENT_TEXT, lexer.getBuffer(), lexer.getTokenStart(), lexer.getTokenEnd(), lexer.getState(), table); TreeUtil.addChildren(element, chameleon); return element; } else { final LeafElement leafElement = Factory.createLeafElement(tokenType, lexer.getBuffer(), lexer.getTokenStart(), lexer.getTokenEnd(), lexer.getState(), table); leafElement.setState(lexer.getState()); return leafElement; } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/7cc49f57fd75f032b80560ecde54c4a99bda9ac7/ParseUtil.java/buggy/source/com/intellij/psi/impl/source/parsing/ParseUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 4902, 1046, 752, 1345, 1046, 12, 13356, 8512, 16, 3703, 1388, 1014, 13, 288, 565, 467, 17481, 22302, 273, 8512, 18, 588, 28675, 5621, 565, 309, 261, 2316, 559, 422, 446, 13, 327, 446, 31, 565, 309, 261, 2316, 559, 422, 5467, 39, 67, 12200, 13, 288, 1377, 14728, 1046, 930, 273, 7822, 18, 2640, 9400, 1046, 12, 2316, 559, 1769, 1377, 23383, 1046, 462, 301, 6516, 265, 273, 7822, 18, 2640, 9858, 1046, 12, 19693, 67, 12200, 67, 5151, 16, 8512, 18, 588, 1892, 9334, 8512, 18, 588, 1345, 1685, 9334, 4766, 13491, 8512, 18, 588, 1345, 1638, 9334, 8512, 18, 588, 1119, 9334, 1014, 1769, 1377, 4902, 1304, 18, 1289, 4212, 12, 2956, 16, 462, 301, 6516, 265, 1769, 1377, 327, 930, 31, 565, 289, 565, 469, 288, 1377, 727, 23383, 1046, 7839, 1046, 273, 7822, 18, 2640, 9858, 1046, 12, 2316, 559, 16, 8512, 18, 588, 1892, 9334, 8512, 18, 588, 1345, 1685, 9334, 8512, 18, 588, 1345, 1638, 9334, 4766, 27573, 8512, 18, 588, 1119, 9334, 1014, 1769, 1377, 7839, 1046, 18, 542, 1119, 12, 31731, 18, 588, 1119, 10663, 1377, 327, 7839, 1046, 31, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 4902, 1046, 752, 1345, 1046, 12, 13356, 8512, 16, 3703, 1388, 1014, 13, 288, 565, 467, 17481, 22302, 273, 8512, 18, 588, 28675, 5621, 565, 309, 261, 2316, 559, 422, 446, 13, 327, 446, 31, 565, 309, 261, 2316, 559, 422, 5467, 39, 67, 12200, 13, 288, 1377, 14728, 1046, 930, 273, 7822, 18, 2640, 9400, 1046, 12, 2316, 559, 1769, 1377, 23383, 1046, 462, 301, 6516, 265, 273, 7822, 18, 2640, 9858, 1046, 12, 19693, 67, 12200, 67, 5151, 16, 8512, 18, 588, 1892, 9334, 8512, 18, 588, 1345, 1685, 9334, 4766, 13491, 8512, 18, 588, 1345, 1638, 9334, 8512, 18, 588, 1119, 9334, 1014, 1769, 1377, 4902, 1304, 18, 1289, 4212, 12, 2956, 16, 2 ]
if(nextSplitPage.len + currentLen + 12 > fileHeader.getWorkSize()) {
realLen = (currentLen == OVERFLOW ? 8 : currentLen); if(nextSplitPage.len + realLen + 12 > fileHeader.getWorkSize()) {
private RecordPos splitDataPage(DocumentImpl doc, RecordPos rec) { if(currentDocument != null) currentDocument.incSplitCount(); // check if a split is really required boolean requireSplit = false; for (int pos = rec.offset; pos < rec.page.len;) { short currentId = ByteConversion.byteToShort(rec.page.data, pos); if(!ItemId.isLink(currentId)) { requireSplit = true; break; } pos += 10; } if(!requireSplit) {// LOG.debug("page " + rec.page.getPageNum() + ": no split required"); rec.offset = rec.page.len; return rec; } NodeIndexListener idx = doc.getIndexListener(); int oldDataLen = rec.page.getPageHeader().getDataLength(); byte[] oldData = rec.page.data; long oldPageNum = rec.page.getPageNum(); rec.page.data = new byte[fileHeader.getWorkSize()]; System.arraycopy(oldData, 0, rec.page.data, 0, rec.offset); rec.page.len = rec.offset; rec.page.setDirty(true); DOMPage firstSplitPage = new DOMPage(); DOMPage nextSplitPage = firstSplitPage; nextSplitPage.getPageHeader().setNextTID((short)(rec.page.getPageHeader().getNextTID() - 1)); short tid, currentId, currentLen; long backLink; short splitRecordCount = 0; LOG.debug("splitting " + rec.page.getPageNum() + ": new: " + nextSplitPage.getPageNum() + "; next: " + rec.page.getPageHeader().getNextDataPage()); for (int pos = rec.offset; pos < oldDataLen; splitRecordCount++) { // read the current id currentId = ByteConversion.byteToShort(oldData, pos); tid = ItemId.getId(currentId); pos += 2; if(ItemId.isLink(currentId)) { /* This is already a link, so we just copy it */ ByteConversion.shortToByte(currentId, rec.page.data, rec.page.len); rec.page.len += 2; System.arraycopy(oldData, pos, rec.page.data, rec.page.len, 8); rec.page.len += 8; pos += 8; continue; } // read data length currentLen = ByteConversion.byteToShort(oldData, pos); pos += 2; if(nextSplitPage.len + currentLen + 12 > fileHeader.getWorkSize()) { // not enough room in the split page: append a new page DOMPage newPage = new DOMPage(); newPage.getPageHeader().setNextTID((short)(rec.page.getPageHeader().getNextTID() - 1)); newPage.getPageHeader().setPrevDataPage(nextSplitPage.getPageNum()); LOG.debug("creating new split page: " + newPage.getPageNum()); nextSplitPage.getPageHeader().setNextDataPage(newPage.getPageNum()); nextSplitPage.getPageHeader().setDataLength(nextSplitPage.len); nextSplitPage.getPageHeader().setRecordCount(splitRecordCount); nextSplitPage.setDirty(true); dataCache.add(nextSplitPage); dataCache.add(newPage); nextSplitPage = newPage; splitRecordCount = 0; } /* if the record has already been relocated, read the original storage * address and update the link there. */ if(ItemId.isRelocated(currentId)) { backLink = ByteConversion.byteToLong(oldData, pos); pos += 8; RecordPos origRec = findRecord(backLink, false); long forwardLink = StorageAddress.createPointer((int) nextSplitPage .getPageNum(), tid); ByteConversion.longToByte(forwardLink, origRec.page.data, origRec.offset); origRec.page.setDirty(true); dataCache.add(origRec.page); } else backLink = StorageAddress.createPointer( (int) rec.page.getPageNum(), tid); // set the relocated flag and save the item id ByteConversion.shortToByte(ItemId.setIsRelocated(currentId), nextSplitPage.data, nextSplitPage.len); nextSplitPage.len += 2; // save length field ByteConversion.shortToByte(currentLen, nextSplitPage.data, nextSplitPage.len); nextSplitPage.len += 2; // save link to the original page ByteConversion.longToByte(backLink, nextSplitPage.data, nextSplitPage.len); nextSplitPage.len += 8; // now save the data if this is not an overflow record if (currentLen != OVERFLOW) { try { System.arraycopy(oldData, pos, nextSplitPage.data, nextSplitPage.len, currentLen); } catch (ArrayIndexOutOfBoundsException e) { LOG.error("pos = " + pos + "; len = " + nextSplitPage.len + "; currentLen = " + currentLen + "; tid = " + currentId + "; page = " + rec.page.getPageNum()); throw e; } nextSplitPage.len += currentLen; pos += currentLen; } // report the split to the index listener if(idx != null) { idx.nodeChanged(StorageAddress.createPointer((int) oldPageNum, tid), StorageAddress.createPointer( (int) nextSplitPage.getPageNum(), tid)); } // save a link pointer in the original page if the record has not been // relocated before. if(!ItemId.isRelocated(currentId)) { if(rec.page.len + 10 > fileHeader.getWorkSize()) { // the link doesn't fit into the old page. Append a new page DOMPage newPage = new DOMPage(); newPage.getPageHeader().setNextTID((short)(rec.page.getPageHeader().getNextTID() - 1)); newPage.getPageHeader().setPrevDataPage(rec.page.getPageNum()); newPage.getPageHeader().setNextDataPage(rec.page.getPageHeader().getNextDataPage());// LOG.debug("creating new page after split: " + newPage.getPageNum()); rec.page.getPageHeader().setNextDataPage(newPage.getPageNum()); rec.page.getPageHeader().setDataLength(rec.page.len); rec.page.getPageHeader().setRecordCount(countRecordsInPage(rec.page)); rec.page.setDirty(true); dataCache.add(rec.page); dataCache.add(newPage); rec.page = newPage; rec.page.len = 0; } ByteConversion.shortToByte(ItemId.setIsLink(currentId), rec.page.data, rec.page.len); rec.page.len += 2; long forwardLink = StorageAddress.createPointer((int) nextSplitPage .getPageNum(), tid); ByteConversion.longToByte(forwardLink, rec.page.data, rec.page.len); rec.page.len += 8; } } if(nextSplitPage.len == 0) { LOG.warn("page " + nextSplitPage.getPageNum() + " is empty. Remove it"); // if nothing has been copied to the last split page, // remove it dataCache.remove(nextSplitPage); if(nextSplitPage == firstSplitPage) firstSplitPage = null; try { unlinkPages(nextSplitPage.page); } catch (IOException e) { LOG.warn("Failed to remove empty split page: " + e.getMessage(), e); } nextSplitPage = null; } else { nextSplitPage.getPageHeader().setDataLength(nextSplitPage.len); nextSplitPage.getPageHeader().setNextDataPage( rec.page.getPageHeader().getNextDataPage()); nextSplitPage.getPageHeader().setRecordCount(splitRecordCount); nextSplitPage.setDirty(true); dataCache.add(nextSplitPage); firstSplitPage.getPageHeader().setPrevDataPage(rec.page.getPageNum()); if(nextSplitPage != firstSplitPage) { firstSplitPage.setDirty(true); dataCache.add(firstSplitPage); } } long next = rec.page.getPageHeader().getNextDataPage(); if(-1 < next) { DOMPage nextPage = getCurrentPage(next); nextPage.getPageHeader().setPrevDataPage(nextSplitPage.getPageNum()); nextPage.setDirty(true); dataCache.add(nextPage); } rec.page = getCurrentPage(rec.page.getPageNum()); if(firstSplitPage != null) { rec.page.getPageHeader().setNextDataPage(firstSplitPage.getPageNum()); } rec.page.getPageHeader().setDataLength(rec.page.len); rec.page.getPageHeader().setRecordCount(countRecordsInPage(rec.page)); rec.offset = rec.page.len; return rec; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/c6c262354be80bbd9bdb10a44e54a73f1be5a7ca/DOMFile.java/clean/src/org/exist/storage/store/DOMFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 5059, 1616, 1416, 751, 1964, 12, 2519, 2828, 997, 16, 5059, 1616, 1950, 13, 288, 3639, 309, 12, 2972, 2519, 480, 446, 13, 5411, 783, 2519, 18, 9523, 5521, 1380, 5621, 3639, 368, 866, 309, 279, 1416, 353, 8654, 1931, 3639, 1250, 2583, 5521, 273, 629, 31, 3639, 364, 261, 474, 949, 273, 1950, 18, 3348, 31, 949, 411, 1950, 18, 2433, 18, 1897, 30943, 288, 5411, 3025, 783, 548, 273, 3506, 6814, 18, 7229, 774, 4897, 12, 3927, 18, 2433, 18, 892, 16, 949, 1769, 5411, 309, 12, 5, 17673, 18, 291, 2098, 12, 2972, 548, 3719, 288, 7734, 2583, 5521, 273, 638, 31, 7734, 898, 31, 5411, 289, 5411, 949, 1011, 1728, 31, 3639, 289, 3639, 309, 12, 5, 6528, 5521, 13, 288, 759, 5411, 2018, 18, 4148, 2932, 2433, 315, 397, 1950, 18, 2433, 18, 588, 1964, 2578, 1435, 397, 6398, 1158, 1416, 1931, 8863, 5411, 1950, 18, 3348, 273, 1950, 18, 2433, 18, 1897, 31, 5411, 327, 1950, 31, 3639, 289, 3639, 2029, 1016, 2223, 2067, 273, 997, 18, 588, 1016, 2223, 5621, 3639, 509, 1592, 751, 2891, 273, 1950, 18, 2433, 18, 588, 1964, 1864, 7675, 588, 751, 1782, 5621, 3639, 1160, 8526, 1592, 751, 273, 1950, 18, 2433, 18, 892, 31, 3639, 1525, 1592, 1964, 2578, 273, 1950, 18, 2433, 18, 588, 1964, 2578, 5621, 3639, 1950, 18, 2433, 18, 892, 273, 394, 1160, 63, 768, 1864, 18, 588, 2421, 1225, 1435, 15533, 3639, 2332, 18, 1126, 3530, 12, 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, 5059, 1616, 1416, 751, 1964, 12, 2519, 2828, 997, 16, 5059, 1616, 1950, 13, 288, 3639, 309, 12, 2972, 2519, 480, 446, 13, 5411, 783, 2519, 18, 9523, 5521, 1380, 5621, 3639, 368, 866, 309, 279, 1416, 353, 8654, 1931, 3639, 1250, 2583, 5521, 273, 629, 31, 3639, 364, 261, 474, 949, 273, 1950, 18, 3348, 31, 949, 411, 1950, 18, 2433, 18, 1897, 30943, 288, 5411, 3025, 783, 548, 273, 3506, 6814, 18, 7229, 774, 4897, 12, 3927, 18, 2433, 18, 892, 16, 949, 1769, 5411, 309, 12, 5, 17673, 18, 291, 2098, 12, 2972, 548, 3719, 288, 7734, 2583, 5521, 273, 638, 31, 7734, 898, 31, 5411, 289, 5411, 949, 1011, 1728, 31, 3639, 289, 2 ]
return RubyFloat.newFloat(getRuby(), getDoubleValue()).round(); }
return RubyFloat.newFloat(getRuby(), getDoubleValue()).round(); }
public RubyInteger round() { return RubyFloat.newFloat(getRuby(), getDoubleValue()).round(); }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/RubyNumeric.java/buggy/org/jruby/RubyNumeric.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 4522, 3643, 1435, 288, 3639, 327, 19817, 4723, 18, 2704, 4723, 12, 588, 54, 10340, 9334, 16097, 620, 1435, 2934, 2260, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 19817, 4522, 3643, 1435, 288, 3639, 327, 19817, 4723, 18, 2704, 4723, 12, 588, 54, 10340, 9334, 16097, 620, 1435, 2934, 2260, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
nextListener = (SIPTransactionEventListener) listenerIterator.next();
nextListener = (SIPTransactionEventListener) listenerIterator .next();
protected void raiseErrorEvent(int errorEventID) { // Error event to send to all listeners SIPTransactionErrorEvent newErrorEvent; // Iterator through the list of listeners Iterator listenerIterator; // Next listener in the list SIPTransactionEventListener nextListener; // Create the error event newErrorEvent = new SIPTransactionErrorEvent(this, errorEventID); // Loop through all listeners of this transaction synchronized (eventListeners) { listenerIterator = eventListeners.iterator(); while (listenerIterator.hasNext()) { // Send the event to the next listener nextListener = (SIPTransactionEventListener) listenerIterator.next(); nextListener.transactionErrorEvent(newErrorEvent); } } // Clear the event listeners after propagating the error. // Retransmit notifications are just an alert to the // application (they are not an error). if (errorEventID != SIPTransactionErrorEvent.TIMEOUT_RETRANSMIT) { eventListeners.clear(); // Errors always terminate a transaction this.setState(TransactionState.TERMINATED); if (this instanceof SIPServerTransaction && this.isByeTransaction() && this.dialog != null) this.dialog.setState(SIPDialog.TERMINATED_STATE); } }
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/68c0ca844a7d5fe4a7744cbf9898184966ce0680/SIPTransaction.java/clean/src/gov/nist/javax/sip/stack/SIPTransaction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1002, 668, 1133, 12, 474, 555, 1133, 734, 13, 288, 202, 202, 759, 1068, 871, 358, 1366, 358, 777, 4679, 202, 202, 17739, 3342, 668, 1133, 394, 668, 1133, 31, 202, 202, 759, 4498, 3059, 326, 666, 434, 4679, 202, 202, 3198, 2991, 3198, 31, 202, 202, 759, 4804, 2991, 316, 326, 666, 202, 202, 17739, 3342, 7375, 1024, 2223, 31, 202, 202, 759, 1788, 326, 555, 871, 202, 202, 2704, 668, 1133, 273, 394, 348, 2579, 3342, 668, 1133, 12, 2211, 16, 555, 1133, 734, 1769, 202, 202, 759, 9720, 3059, 777, 4679, 434, 333, 2492, 202, 202, 22043, 261, 2575, 5583, 13, 288, 1082, 202, 12757, 3198, 273, 871, 5583, 18, 9838, 5621, 1082, 202, 17523, 261, 12757, 3198, 18, 5332, 2134, 10756, 288, 9506, 202, 759, 2479, 326, 871, 358, 326, 1024, 2991, 9506, 202, 4285, 2223, 273, 6862, 202, 12, 17739, 3342, 7375, 13, 2991, 3198, 18, 4285, 5621, 9506, 202, 4285, 2223, 18, 7958, 668, 1133, 12, 2704, 668, 1133, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 759, 10121, 326, 871, 4679, 1839, 9619, 1776, 326, 555, 18, 202, 202, 759, 534, 16354, 634, 1938, 9208, 854, 2537, 392, 6881, 358, 326, 3196, 202, 759, 2521, 261, 451, 402, 854, 486, 392, 555, 2934, 202, 202, 430, 261, 1636, 1133, 734, 480, 348, 2579, 3342, 668, 1133, 18, 9503, 67, 862, 16596, 6068, 13, 288, 1082, 202, 2575, 5583, 18, 8507, 5621, 1082, 202, 759, 9372, 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, 1117, 918, 1002, 668, 1133, 12, 474, 555, 1133, 734, 13, 288, 202, 202, 759, 1068, 871, 358, 1366, 358, 777, 4679, 202, 202, 17739, 3342, 668, 1133, 394, 668, 1133, 31, 202, 202, 759, 4498, 3059, 326, 666, 434, 4679, 202, 202, 3198, 2991, 3198, 31, 202, 202, 759, 4804, 2991, 316, 326, 666, 202, 202, 17739, 3342, 7375, 1024, 2223, 31, 202, 202, 759, 1788, 326, 555, 871, 202, 202, 2704, 668, 1133, 273, 394, 348, 2579, 3342, 668, 1133, 12, 2211, 16, 555, 1133, 734, 1769, 202, 202, 759, 9720, 3059, 777, 4679, 434, 333, 2492, 202, 202, 22043, 261, 2575, 5583, 13, 288, 1082, 202, 12757, 3198, 273, 871, 5583, 18, 9838, 5621, 2 ]
private static void quoteValue(Object o, StringBuffer buf, boolean isNumeric) {
private static void quoteValue( Object o, StringBuffer buf, boolean isNumeric) {
private static void quoteValue(Object o, StringBuffer buf, boolean isNumeric) { String s = o.toString(); if (isNumeric) { buf.append(s); } else { RolapUtil.singleQuoteForSql(s, buf); } }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/3041f930b5fc4bf6aa3339845b828801c1d8b366/RolapStar.java/clean/src/main/mondrian/rolap/RolapStar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 760, 918, 3862, 620, 12, 921, 320, 16, 4766, 4202, 6674, 1681, 16, 4766, 4202, 1250, 26434, 13, 288, 5411, 514, 272, 273, 320, 18, 10492, 5621, 5411, 309, 261, 291, 9902, 13, 288, 7734, 1681, 18, 6923, 12, 87, 1769, 5411, 289, 469, 288, 7734, 11714, 438, 1304, 18, 7526, 10257, 1290, 5101, 12, 87, 16, 1681, 1769, 5411, 289, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 760, 918, 3862, 620, 12, 921, 320, 16, 4766, 4202, 6674, 1681, 16, 4766, 4202, 1250, 26434, 13, 288, 5411, 514, 272, 273, 320, 18, 10492, 5621, 5411, 309, 261, 291, 9902, 13, 288, 7734, 1681, 18, 6923, 12, 87, 1769, 5411, 289, 469, 288, 7734, 11714, 438, 1304, 18, 7526, 10257, 1290, 5101, 12, 87, 16, 1681, 1769, 5411, 289, 3639, 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 ]
Thread.sleep(100);
public void testTCPExpireRequestsSent() throws Exception { drainAll(); for (int i = 0; i < 2; i++) { Socket s = new Socket("localhost", PORT); s.close(); Thread.sleep(100); assertTrue(RouterService.acceptedIncomingConnection()); // wait until the expire time is realized Thread.sleep(MY_EXPIRE_TIME + MY_VALIDATE_TIME + 1000); // query the Acceptor - it should send off more requests assertFalse(RouterService.acceptedIncomingConnection()); Thread.sleep(100); Message m = null; do { m = testUP[0].receive(TIMEOUT); } while (!(m instanceof TCPConnectBackVendorMessage)) ; } }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/62001fe440d953dc1abf30cfd36ebb9aa967678d/ClientSideValidateIncomingTest.java/buggy/components/gnutella-core/src/test/java/com/limegroup/gnutella/ClientSideValidateIncomingTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 13891, 17033, 6421, 7828, 1435, 1216, 1185, 288, 3639, 15427, 1595, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 576, 31, 277, 27245, 288, 5411, 8758, 272, 273, 394, 8758, 2932, 13014, 3113, 20987, 1769, 5411, 272, 18, 4412, 5621, 15604, 1815, 5510, 12, 8259, 1179, 18, 23847, 20370, 1952, 10663, 13491, 368, 2529, 3180, 326, 6930, 813, 353, 2863, 1235, 5411, 4884, 18, 19607, 12, 22114, 67, 18433, 862, 67, 4684, 397, 22069, 67, 14687, 67, 4684, 397, 4336, 1769, 13491, 368, 843, 326, 8662, 280, 300, 518, 1410, 1366, 3397, 1898, 3285, 5411, 1815, 8381, 12, 8259, 1179, 18, 23847, 20370, 1952, 10663, 15604, 2350, 312, 273, 446, 31, 5411, 741, 288, 7734, 312, 273, 1842, 3079, 63, 20, 8009, 18149, 12, 9503, 1769, 5411, 289, 1323, 16051, 12, 81, 1276, 9911, 5215, 2711, 14786, 1079, 3719, 274, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 13891, 17033, 6421, 7828, 1435, 1216, 1185, 288, 3639, 15427, 1595, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 576, 31, 277, 27245, 288, 5411, 8758, 272, 273, 394, 8758, 2932, 13014, 3113, 20987, 1769, 5411, 272, 18, 4412, 5621, 15604, 1815, 5510, 12, 8259, 1179, 18, 23847, 20370, 1952, 10663, 13491, 368, 2529, 3180, 326, 6930, 813, 353, 2863, 1235, 5411, 4884, 18, 19607, 12, 22114, 67, 18433, 862, 67, 4684, 397, 22069, 67, 14687, 67, 4684, 397, 4336, 1769, 13491, 368, 843, 326, 8662, 280, 300, 518, 1410, 1366, 3397, 1898, 3285, 5411, 1815, 8381, 12, 8259, 1179, 18, 23847, 20370, 1952, 10663, 15604, 2350, 312, 273, 446, 31, 5411, 2 ]
private static void generateMethod(ClassFileWriter cfw, String genName, String methodName, Class[] parms, Class returnType) { StringBuffer sb = new StringBuffer(); sb.append('('); short arrayLocal = 1; // includes this. for (int i = 0; i < parms.length; i++) { Class type = parms[i]; appendTypeString(sb, type); if (type.equals(Long.TYPE) || type.equals(Double.TYPE)) arrayLocal += 2; else arrayLocal += 1; } sb.append(')'); appendTypeString(sb, returnType); String methodSignature = sb.toString(); // System.out.println("generating " + m.getName() + methodSignature); // System.out.flush(); cfw.startMethod(methodName, methodSignature, ClassFileWriter.ACC_PUBLIC); cfw.add(ByteCode.BIPUSH, (byte) parms.length); // > 255 parms? cfw.add(ByteCode.ANEWARRAY, "java/lang/Object"); cfw.add(ByteCode.ASTORE, arrayLocal); // allocate a local variable to store the scope used to wrap native objects. short scopeLocal = (short) (arrayLocal + 1); boolean loadedScope = false; int paramOffset = 1; for (int i = 0; i < parms.length; i++) { cfw.add(ByteCode.ALOAD, arrayLocal); cfw.add(ByteCode.BIPUSH, i); if (parms[i].isPrimitive()) { paramOffset = generateWrapParam(cfw, paramOffset, parms[i]); } else { // An arbitary Java object; call Context.toObject to wrap in // a Scriptable object cfw.add(ByteCode.ALOAD, paramOffset++); if (! loadedScope) { // load this.self into a local the first time it's needed. // it will provide the scope needed by Context.toObject(). cfw.add(ByteCode.ALOAD_0); cfw.add(ByteCode.GETFIELD, genName, "self", "Lorg/mozilla/javascript/Scriptable;"); cfw.add(ByteCode.ASTORE, scopeLocal); loadedScope = true; } cfw.add(ByteCode.ALOAD, scopeLocal); // Get argument Class cfw.addLoadConstant(parms[i].getName()); cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/ScriptRuntime", "loadClassName", "(Ljava/lang/String;)", "Ljava/lang/Class;"); cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/JavaAdapter", "toObject", "(Ljava/lang/Object;" + "Lorg/mozilla/javascript/Scriptable;" + "Ljava/lang/Class;)", "Lorg/mozilla/javascript/Scriptable;"); } cfw.add(ByteCode.AASTORE); } cfw.add(ByteCode.ALOAD_0); // this cfw.add(ByteCode.GETFIELD, genName, "self", "Lorg/mozilla/javascript/Scriptable;"); cfw.addLoadConstant(methodName); cfw.add(ByteCode.ALOAD, arrayLocal); // go through utility method, which creates a Context to run the // method in. cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/JavaAdapter", "callMethod", "(Lorg/mozilla/javascript/Scriptable;" + "Ljava/lang/String;[Ljava/lang/Object;)", "Ljava/lang/Object;"); if (returnType.equals(Void.TYPE)) { cfw.add(ByteCode.POP); cfw.add(ByteCode.RETURN); } else { generateReturnResult(cfw, returnType); } cfw.stopMethod((short)(scopeLocal + 1), null); }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/f61a4fa629dd0699e1a2d0893806311ab8a9dfd1/JavaAdapter.java/clean/js/rhino/src/org/mozilla/javascript/JavaAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6015, 270, 395, 2126, 6459, 7163, 1305, 12, 797, 812, 2289, 8522, 91, 16, 780, 4507, 461, 16, 780, 2039, 461, 16, 797, 8526, 29927, 16, 797, 2463, 559, 15329, 780, 13699, 70, 33, 2704, 780, 1892, 5621, 18366, 18, 6923, 2668, 2668, 1769, 6620, 1126, 2042, 33, 21, 31, 202, 759, 267, 830, 1100, 395, 76, 291, 18, 1884, 12, 474, 77, 33, 20, 31, 77, 32, 29927, 18, 2469, 31, 77, 27245, 95, 2009, 345, 27273, 33, 29927, 63, 77, 15533, 6923, 559, 780, 12, 18366, 16, 723, 1769, 430, 12, 723, 18, 14963, 12, 3708, 18, 2399, 14047, 96, 723, 18, 14963, 12, 5265, 18, 2399, 3719, 1126, 2042, 15, 33, 22, 31, 12107, 1126, 2042, 15, 33, 21, 31, 97, 18366, 18, 6923, 2668, 2506, 1769, 6923, 559, 780, 12, 18366, 16, 2463, 559, 1769, 780, 2039, 5374, 33, 18366, 18, 10492, 5621, 759, 3163, 18, 659, 18, 8222, 2932, 3441, 1776, 6, 15, 81, 18, 17994, 1435, 15, 2039, 5374, 1769, 759, 3163, 18, 659, 18, 11330, 5621, 8522, 91, 18, 1937, 1305, 12, 2039, 461, 16, 2039, 5374, 16, 797, 812, 2289, 18, 31414, 67, 14939, 1769, 8522, 91, 18, 1289, 12, 3216, 1085, 18, 38, 2579, 57, 2664, 16, 12, 7229, 13, 29927, 18, 2469, 1769, 759, 34, 10395, 29927, 35, 8522, 91, 18, 1289, 12, 3216, 1085, 18, 1258, 7245, 8552, 10837, 6290, 19, 4936, 19, 921, 8863, 8522, 91, 18, 1289, 12, 3216, 1085, 18, 9053, 8607, 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, 6015, 270, 395, 2126, 6459, 7163, 1305, 12, 797, 812, 2289, 8522, 91, 16, 780, 4507, 461, 16, 780, 2039, 461, 16, 797, 8526, 29927, 16, 797, 2463, 559, 15329, 780, 13699, 70, 33, 2704, 780, 1892, 5621, 18366, 18, 6923, 2668, 2668, 1769, 6620, 1126, 2042, 33, 21, 31, 202, 759, 267, 830, 1100, 395, 76, 291, 18, 1884, 12, 474, 77, 33, 20, 31, 77, 32, 29927, 18, 2469, 31, 77, 27245, 95, 2009, 345, 27273, 33, 29927, 63, 77, 15533, 6923, 559, 780, 12, 18366, 16, 723, 1769, 430, 12, 723, 18, 14963, 12, 3708, 18, 2399, 14047, 96, 723, 18, 14963, 12, 5265, 18, 2399, 3719, 1126, 2042, 15, 33, 22, 31, 12107, 1126, 2042, 2 ]
public synchronized void setMaxKeys(long maxStoreKeys) throws DatabaseException, IOException { maxChkBlocks = maxStoreKeys;
public void setMaxKeys(long maxStoreKeys) throws DatabaseException, IOException { synchronized(this) { maxChkBlocks = maxStoreKeys; }
public synchronized void setMaxKeys(long maxStoreKeys) throws DatabaseException, IOException { maxChkBlocks = maxStoreKeys; maybeShrink(false); }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/30ad937435e0a871533e6523884264602ef0e8c8/BerkeleyDBFreenetStore.java/buggy/src/freenet/store/BerkeleyDBFreenetStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 10851, 2396, 12, 5748, 943, 2257, 2396, 13, 1216, 27215, 16, 1860, 288, 202, 202, 1896, 782, 79, 6450, 273, 943, 2257, 2396, 31, 202, 202, 19133, 28747, 12, 5743, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 10851, 2396, 12, 5748, 943, 2257, 2396, 13, 1216, 27215, 16, 1860, 288, 202, 202, 1896, 782, 79, 6450, 273, 943, 2257, 2396, 31, 202, 202, 19133, 28747, 12, 5743, 1769, 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 ]
catch(Exception f){ Util.handleExceptionNoRestart("Error committing upgrade data", f);
catch(Exception g){ Util.handleExceptionNoRestart("Error committing upgrade data", g);
public void run(){ try{ UpgradeSettings upgradeSettings = Util.getToolboxManager().getUpgradeSettings(); doSave( upgradeSettings, false ); Util.getToolboxManager().setUpgradeSettings( upgradeSettings ); } catch(Exception e){ try{ Util.handleExceptionWithRestart("Error committing upgrade data", e); } catch(Exception f){ Util.handleExceptionNoRestart("Error committing upgrade data", f); } } finally{ saveJButton.setIcon(Util.getButtonSaveSettings()); saveJButton.setEnabled(true); reloadJButton.setEnabled(true); closeJButton.setEnabled(true); } }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/e959c8f03b9b502d36e0190089207bc9abd8947b/UpgradeJDialog.java/buggy/gui/main/com/metavize/gui/upgrade/UpgradeJDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 95, 202, 565, 775, 95, 202, 202, 10784, 2628, 8400, 2628, 273, 3564, 18, 588, 6364, 2147, 1318, 7675, 588, 10784, 2628, 5621, 202, 202, 2896, 4755, 12, 8400, 2628, 16, 629, 11272, 202, 202, 1304, 18, 588, 6364, 2147, 1318, 7675, 542, 10784, 2628, 12, 8400, 2628, 11272, 202, 565, 289, 202, 565, 1044, 12, 503, 425, 15329, 202, 202, 698, 95, 1082, 565, 3564, 18, 4110, 503, 1190, 15057, 2932, 668, 3294, 1787, 8400, 501, 3113, 425, 1769, 202, 202, 97, 202, 202, 14683, 12, 503, 284, 15329, 1082, 565, 3564, 18, 4110, 503, 2279, 15057, 2932, 668, 3294, 1787, 8400, 501, 3113, 284, 1769, 202, 202, 97, 202, 565, 289, 202, 565, 3095, 95, 202, 202, 5688, 46, 3616, 18, 542, 5554, 12, 1304, 18, 588, 3616, 4755, 2628, 10663, 202, 202, 5688, 46, 3616, 18, 542, 1526, 12, 3767, 1769, 202, 202, 17517, 46, 3616, 18, 542, 1526, 12, 3767, 1769, 202, 202, 4412, 46, 3616, 18, 542, 1526, 12, 3767, 1769, 202, 565, 289, 9079, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 95, 202, 565, 775, 95, 202, 202, 10784, 2628, 8400, 2628, 273, 3564, 18, 588, 6364, 2147, 1318, 7675, 588, 10784, 2628, 5621, 202, 202, 2896, 4755, 12, 8400, 2628, 16, 629, 11272, 202, 202, 1304, 18, 588, 6364, 2147, 1318, 7675, 542, 10784, 2628, 12, 8400, 2628, 11272, 202, 565, 289, 202, 565, 1044, 12, 503, 425, 15329, 202, 202, 698, 95, 1082, 565, 3564, 18, 4110, 503, 1190, 15057, 2932, 668, 3294, 1787, 8400, 501, 3113, 425, 1769, 202, 202, 97, 202, 202, 14683, 12, 503, 284, 15329, 1082, 565, 3564, 18, 4110, 503, 2279, 15057, 2932, 668, 3294, 1787, 8400, 501, 3113, 284, 1769, 202, 202, 97, 202, 565, 289, 202, 2 ]
restoreEdges(nodeToOutGoing.entrySet(),true); if (nodesSize>0) restoreEdges(nodeToIncomingGoing.entrySet(),false);
restoreDisconnectedEdges(nodeToOutGoing, nodeToIncomingGoing);
private void layoutNodes(NodeList nodes, boolean virtualPass) { EdgeList edges = new EdgeList(); for (Iterator iter = nodes.iterator(); iter.hasNext();) { Node element = (Node) iter.next(); if (element instanceof Subgraph){ layoutNodes(((Subgraph)element).members,virtualPass); } for (Iterator edgesIter = element.outgoing.iterator(); edgesIter.hasNext();) { Edge edge = (Edge)edgesIter.next(); if (nodes.contains(edge.target)){ edges.add(edge); } } } if (!virtualPass){ virtualNodesToNodes virtualNodesNodes = new virtualNodesToNodes(); for (Iterator edgeIter = edges.iterator(); edgeIter.hasNext();) { Edge element = (Edge) edgeIter.next(); Node source = element.source; Node target = element.target; boolean sourceHandled = true; boolean targetHandled = true; Subgraph sg = virtualNodesNodes.getVirtualContainer(source); Subgraph sg1 = virtualNodesNodes.getVirtualContainer(target); if (sg==null){ sourceHandled = false; sg = sg1; } if (sg1==null) targetHandled = false; if (sourceHandled == false && targetHandled==false){ sg = new VirtualNode(null,source.getParent()); sg.setPadding(new Insets(30)); if (source.getParent()==null) nodes.add(sg); } if (!sourceHandled){ addNode(sg, source, nodes); virtualNodesNodes.addNode(sg, source); } if (!targetHandled){ addNode(sg, target, nodes); virtualNodesNodes.addNode(sg, target); } } NodeList vituralNodes = virtualNodesNodes.getVirtualNodes(); int size = vituralNodes.size(); // todo consider the commented out optimization later /*if (size==1 && nodes.size()==1){ nodes = ((VirtualNode)vituralNodes.get(0)).members; }else */ if (size > 0){ edges.clear(); layoutNodes(vituralNodes, true); adjustVirtualNodesWidthAndHeight(vituralNodes); } } Map nodeToOutGoing = new HashMap(); Map nodeToIncomingGoing = new HashMap(); int nodesSize = nodes.size(); for (Iterator iter = nodes.iterator(); iter.hasNext();) { Node element = (Node) iter.next(); pushExtraEdges(nodes, nodeToOutGoing, element, element.outgoing,false); if (nodesSize>0) pushExtraEdges(nodes, nodeToIncomingGoing, element, element.incoming,true); } if (nodesSize >= 2 || (nodesSize==1 && nodes.get(0) instanceof Subgraph )){ DirectedGraph g = new DirectedGraph(); g.nodes = nodes/*cloneNodeList(nodes)*/; g.edges = edges/*cloneEdgeList(edges)*/; DirectedGraphLayout layout = new DirectedGraphLayout(); layout.visit(g); } restoreEdges(nodeToOutGoing.entrySet(),true); if (nodesSize>0) restoreEdges(nodeToIncomingGoing.entrySet(),false); }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/6dfc1c90039e04338e566ab2e3bde202a63e39c3/CompositeDirectedGraphLayout.java/clean/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.draw2d.ui/src/org/eclipse/gmf/runtime/draw2d/ui/internal/graph/CompositeDirectedGraphLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3511, 3205, 12, 19914, 2199, 16, 1250, 5024, 6433, 13, 288, 3639, 11342, 682, 5231, 273, 394, 11342, 682, 5621, 3639, 364, 261, 3198, 1400, 273, 2199, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 5411, 2029, 930, 273, 261, 907, 13, 1400, 18, 4285, 5621, 5411, 309, 261, 2956, 1276, 2592, 4660, 15329, 7734, 3511, 3205, 12443, 12, 1676, 4660, 13, 2956, 2934, 7640, 16, 12384, 6433, 1769, 5411, 289, 5411, 364, 261, 3198, 5231, 2360, 273, 930, 18, 31891, 18, 9838, 5621, 5231, 2360, 18, 5332, 2134, 5621, 13, 288, 7734, 11342, 3591, 273, 261, 6098, 13, 8746, 2360, 18, 4285, 5621, 7734, 309, 261, 4690, 18, 12298, 12, 7126, 18, 3299, 3719, 95, 10792, 5231, 18, 1289, 12, 7126, 1769, 7734, 289, 5411, 289, 3639, 289, 3639, 309, 16051, 12384, 6433, 15329, 5411, 5024, 3205, 774, 3205, 5024, 3205, 3205, 273, 394, 5024, 3205, 774, 3205, 5621, 5411, 364, 261, 3198, 3591, 2360, 273, 5231, 18, 9838, 5621, 3591, 2360, 18, 5332, 2134, 5621, 13, 288, 7734, 11342, 930, 273, 261, 6098, 13, 3591, 2360, 18, 4285, 5621, 7734, 2029, 1084, 273, 930, 18, 3168, 31, 7734, 2029, 1018, 273, 930, 18, 3299, 31, 7734, 1250, 1084, 23186, 273, 638, 31, 7734, 1250, 1018, 23186, 273, 638, 31, 7734, 2592, 4660, 11150, 273, 5024, 3205, 3205, 18, 588, 6466, 2170, 12, 3168, 1769, 7734, 2592, 4660, 11150, 21, 273, 5024, 3205, 3205, 18, 588, 6466, 2170, 12, 3299, 1769, 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, 3511, 3205, 12, 19914, 2199, 16, 1250, 5024, 6433, 13, 288, 3639, 11342, 682, 5231, 273, 394, 11342, 682, 5621, 3639, 364, 261, 3198, 1400, 273, 2199, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 5411, 2029, 930, 273, 261, 907, 13, 1400, 18, 4285, 5621, 5411, 309, 261, 2956, 1276, 2592, 4660, 15329, 7734, 3511, 3205, 12443, 12, 1676, 4660, 13, 2956, 2934, 7640, 16, 12384, 6433, 1769, 5411, 289, 5411, 364, 261, 3198, 5231, 2360, 273, 930, 18, 31891, 18, 9838, 5621, 5231, 2360, 18, 5332, 2134, 5621, 13, 288, 7734, 11342, 3591, 273, 261, 6098, 13, 8746, 2360, 18, 4285, 5621, 7734, 309, 261, 4690, 18, 12298, 12, 7126, 18, 3299, 2 ]
Messages.showInfoMessage(project, "Some of the changes in the specified patch were skipped because are already contained in the code", "Apply Patch");
Messages.showInfoMessage(project, VcsBundle.message("patch.apply.partially.applied"), VcsBundle.message("patch.apply.dialog.title"));
public static void applyPatch(final Project project, final List<FilePatch> patches, final VirtualFile baseDirectory, final int stripLeadingDirectories) { for(FilePatch patch: patches) { VirtualFile fileToPatch = patch.findFileToPatch(baseDirectory, stripLeadingDirectories); if (fileToPatch != null) { FileType fileType = fileToPatch.getFileType(); if (fileType == StdFileTypes.UNKNOWN) { fileType = FileTypeChooser.associateFileType(fileToPatch.getPresentableName()); if (fileType == null) { return; } } } } ApplicationManager.getApplication().runWriteAction(new Runnable() { public void run() { CommandProcessor.getInstance().executeCommand(project, new Runnable() { public void run() { ApplyPatchStatus status = null; for(FilePatch patch: patches) { final ApplyPatchStatus patchStatus = applySinglePatch(project, patch, baseDirectory, stripLeadingDirectories); status = ApplyPatchStatus.and(status, patchStatus); } if (status == ApplyPatchStatus.ALREADY_APPLIED) { Messages.showInfoMessage(project, "All of the changes in the specified patch are already contained in the code", "Apply Patch"); } else if (status == ApplyPatchStatus.PARTIAL) { Messages.showInfoMessage(project, "Some of the changes in the specified patch were skipped because are already contained in the code", "Apply Patch"); } } }, "apply patch", null); } }); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/6511058dc3801970a0e38d454e454d85a975650e/ApplyPatchAction.java/clean/source/com/intellij/openapi/vcs/changes/patch/ApplyPatchAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2230, 7332, 12, 6385, 5420, 1984, 16, 727, 987, 32, 812, 7332, 34, 16482, 16, 727, 7269, 812, 1026, 2853, 16, 27573, 727, 509, 2569, 19112, 13071, 13, 288, 565, 364, 12, 812, 7332, 4729, 30, 16482, 13, 288, 1377, 7269, 812, 31044, 7332, 273, 4729, 18, 4720, 812, 774, 7332, 12, 1969, 2853, 16, 2569, 19112, 13071, 1769, 1377, 309, 261, 768, 774, 7332, 480, 446, 13, 288, 3639, 29449, 21939, 273, 31044, 7332, 18, 588, 28941, 5621, 3639, 309, 261, 768, 559, 422, 6276, 812, 2016, 18, 14737, 13, 288, 1850, 21939, 273, 29449, 17324, 18, 11577, 28941, 12, 768, 774, 7332, 18, 588, 6351, 429, 461, 10663, 1850, 309, 261, 768, 559, 422, 446, 13, 288, 5411, 327, 31, 1850, 289, 3639, 289, 1377, 289, 565, 289, 565, 4257, 1318, 18, 588, 3208, 7675, 2681, 3067, 1803, 12, 2704, 10254, 1435, 288, 1377, 1071, 918, 1086, 1435, 288, 3639, 3498, 5164, 18, 588, 1442, 7675, 8837, 2189, 12, 4406, 16, 394, 10254, 1435, 288, 1850, 1071, 918, 1086, 1435, 288, 5411, 5534, 7332, 1482, 1267, 273, 446, 31, 5411, 364, 12, 812, 7332, 4729, 30, 16482, 13, 288, 2868, 727, 5534, 7332, 1482, 4729, 1482, 273, 2230, 5281, 7332, 12, 4406, 16, 4729, 16, 1026, 2853, 16, 2569, 19112, 13071, 1769, 2868, 1267, 273, 5534, 7332, 1482, 18, 464, 12, 2327, 16, 4729, 1482, 1769, 5411, 289, 5411, 309, 261, 2327, 422, 5534, 7332, 1482, 18, 1013, 20305, 67, 7215, 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, 760, 918, 2230, 7332, 12, 6385, 5420, 1984, 16, 727, 987, 32, 812, 7332, 34, 16482, 16, 727, 7269, 812, 1026, 2853, 16, 27573, 727, 509, 2569, 19112, 13071, 13, 288, 565, 364, 12, 812, 7332, 4729, 30, 16482, 13, 288, 1377, 7269, 812, 31044, 7332, 273, 4729, 18, 4720, 812, 774, 7332, 12, 1969, 2853, 16, 2569, 19112, 13071, 1769, 1377, 309, 261, 768, 774, 7332, 480, 446, 13, 288, 3639, 29449, 21939, 273, 31044, 7332, 18, 588, 28941, 5621, 3639, 309, 261, 768, 559, 422, 6276, 812, 2016, 18, 14737, 13, 288, 1850, 21939, 273, 29449, 17324, 18, 11577, 28941, 12, 768, 774, 7332, 18, 588, 6351, 429, 461, 10663, 1850, 309, 261, 768, 559, 2 ]
if ( dAngleInDegrees == 90 || dAngleInDegrees == 0 ) { dOffset = -dUnitSize / 2; }
public final void renderEachAxis( IPrimitiveRenderer ipr, Plot pl, OneAxis ax, int iWhatToDraw ) throws ChartException { final RunTimeContext rtc = getRunTimeContext( ); final Axis axModel = ax.getModelAxis( ); final PlotWithAxes pwa = (PlotWithAxes) getComputations( ); final Insets insCA = pwa.getAxes( ).getInsets( ); final ScriptHandler sh = getRunTimeContext( ).getScriptHandler( ); double dLocation = ax.getAxisCoordinate( ); double dAngleInDegrees = ax.getLabel( ) .getCaption( ) .getFont( ) .getRotation( ); AutoScale sc = ax.getScale( ); IntersectionValue iv = ax.getIntersectionValue( ); int iMajorTickStyle = ax.getGrid( ).getTickStyle( IConstants.MAJOR ); int iMinorTickStyle = ax.getGrid( ).getTickStyle( IConstants.MINOR ); int iLabelLocation = ax.getLabelPosition( ); int iOrientation = ax.getOrientation( ); Label la = (Label) EcoreUtil.copy( ax.getLabel( ) ); final IDisplayServer xs = this.getDevice( ).getDisplayServer( ); double[] daEndPoints = sc.getEndPoints( ); double[] da = sc.getTickCordinates( ); double[] daMinor = sc.getMinorCoordinates( ax.getGrid( ) .getMinorCountPerMajor( ) ); String sText = null; int iDimension = pwa.getDimension( ); double dSeriesThickness = pwa.getSeriesThickness( ); final NumberDataElement nde = NumberDataElementImpl.create( 0 ); final FormatSpecifier fs = ax.getModelAxis( ).getFormatSpecifier( ); final double dStaggeredLabelOffset = sc.computeStaggeredAxisLabelOffset( xs, la, iOrientation ); final boolean bAxisLabelStaggered = sc.isAxisLabelStaggered( ); DecimalFormat df = null; LineAttributes lia = ax.getLineAttributes( ); LineAttributes liaMajorTick = ax.getGrid( ) .getTickAttributes( IConstants.MAJOR ); LineAttributes liaMinorTick = ax.getGrid( ) .getTickAttributes( IConstants.MINOR ); if ( !lia.isSetVisible( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.unset.axis.visibility", //$NON-NLS-1$ ResourceBundle.getBundle( Messages.ENGINE, getRunTimeContext( ).getLocale( ) ) ); } final boolean bRenderAxisLabels = ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS && la.isVisible( ) ); final boolean bRenderAxisTitle = ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS ); Location lo = LocationImpl.create( 0, 0 ); final TransformationEvent trae = (TransformationEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), TransformationEvent.class ); final TextRenderEvent tre = (TextRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), TextRenderEvent.class ); tre.setLabel( la ); tre.setTextPosition( iLabelLocation ); tre.setLocation( lo ); final LineRenderEvent lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( 0, 0 ) ); lre.setEnd( LocationImpl.create( 0, 0 ) ); // Prepare 3D rendering variables. final boolean bRendering3D = iDimension == IConstants.THREE_D; final boolean bRenderOrthogonal3DAxis = ( iWhatToDraw & IConstants.ORTHOGONAL_AXIS ) == IConstants.ORTHOGONAL_AXIS && bRendering3D; final boolean bRenderBase3DAxis = ( iWhatToDraw & IConstants.BASE_AXIS ) == IConstants.BASE_AXIS && bRendering3D; final boolean bRenderAncillary3DAxis = ( iWhatToDraw & IConstants.ANCILLARY_AXIS ) == IConstants.ANCILLARY_AXIS && bRendering3D; final DeferredCache dc = getDeferredCache( ); final int axisType = ax.getAxisType( ); final Bounds boPlot = getPlotBounds( ); double[] daEndPoints3D = null; double[] da3D = null; Location3D lo3d = null; Text3DRenderEvent t3dre = null; Line3DRenderEvent l3dre = null; double dXStart = 0; double dZStart = 0; double dXEnd = 0; double dZEnd = 0; if ( iDimension == IConstants.THREE_D ) { AllAxes aax = pwa.getAxes( ); dXEnd = aax.getPrimaryBase( ).getScale( ).getEnd( ); dZEnd = aax.getAncillaryBase( ).getScale( ).getEnd( ); dXStart = aax.getPrimaryBase( ).getScale( ).getStart( ); dZStart = aax.getAncillaryBase( ).getScale( ).getStart( ); daEndPoints3D = sc.getEndPoints( ); da3D = sc.getTickCordinates( ); lo3d = Location3DImpl.create( 0, 0, 0 ); t3dre = (Text3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Text3DRenderEvent.class ); t3dre.setLabel( la ); t3dre.setAction( Text3DRenderEvent.RENDER_TEXT_AT_LOCATION ); t3dre.setTextPosition( iLabelLocation ); t3dre.setLocation3D( lo3d ); l3dre = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dre.setLineAttributes( lia ); l3dre.setStart3D( Location3DImpl.create( 0, 0, 0 ) ); l3dre.setEnd3D( Location3DImpl.create( 0, 0, 0 ) ); } if ( iOrientation == IConstants.VERTICAL ) { int y; int y3d = 0; double dX = dLocation; double dZ = 0; if ( bRendering3D ) { Location3D l3d = ax.getAxisCoordinate3D( ); dX = l3d.getX( ); dZ = l3d.getZ( ); } if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTransform( TransformationEvent.TRANSLATE ); trae.setTranslation( dSeriesThickness, -dSeriesThickness ); ipr.applyTransformation( trae ); } double dXTick1 = ( ( iMajorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXTick2 = ( ( iMajorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS && lia.isVisible( ) ) { if ( bRenderOrthogonal3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); // center l3dre.setStart3D( dX, dStart, dZ ); l3dre.setEnd3D( dX, dEnd, dZ ); dc.addLine( l3dre ); // left l3dre.setStart3D( dX, dStart, dZEnd ); l3dre.setEnd3D( dX, dEnd, dZEnd ); dc.addLine( l3dre ); // right l3dre.setStart3D( dXEnd, dStart, dZ ); l3dre.setEnd3D( dXEnd, dEnd, dZ ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { ArrayList cachedTriggers = null; Location3D[] loaHotspot = new Location3D[4]; Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); // process center y-axis. loaHotspot[0] = Location3DImpl.create( dX - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZ + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dX + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZ - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dX + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZ - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dX - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZ + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); cachedTriggers = new ArrayList( ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); cachedTriggers.add( tg ); iev.addTrigger( (Trigger) EcoreUtil.copy( tg ) ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } // process left y-axis. pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dXStart - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dXStart + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dXStart + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dXStart - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); if ( cachedTriggers == null ) { cachedTriggers = new ArrayList( ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); cachedTriggers.add( tg ); iev.addTrigger( (Trigger) EcoreUtil.copy( tg ) ); } } else { for ( int t = 0; t < cachedTriggers.size( ); t++ ) { iev.addTrigger( (Trigger) EcoreUtil.copy( (Trigger) cachedTriggers.get( t ) ) ); } } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } // process right y-axis. pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dXEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZStart + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dXEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZStart - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dXEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZStart - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dXEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZStart + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); if ( cachedTriggers == null ) { for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } } else { for ( int t = 0; t < cachedTriggers.size( ); t++ ) { iev.addTrigger( (Trigger) cachedTriggers.get( t ) ); } } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else { final double dStart = daEndPoints[0] + insCA.getBottom( ), dEnd = daEndPoints[1] - insCA.getTop( ); if ( iv != null && iv.getType( ) == IntersectionValue.VALUE && iDimension == IConstants.TWO_5_D ) { final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( dX, dStart ); loa[1] = LocationImpl.create( dX + dSeriesThickness, dStart - dSeriesThickness ); loa[2] = LocationImpl.create( dX + dSeriesThickness, dEnd - dSeriesThickness ); loa[3] = LocationImpl.create( dX, dEnd ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( ColorDefinitionImpl.create( 255, 255, 255, 127 ) ); pre.setOutline( lia ); ipr.fillPolygon( pre ); } lre.setLineAttributes( lia ); lre.getStart( ).set( dX, dStart ); lre.getEnd( ).set( dX, dEnd ); ipr.drawLine( lre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } Location[] loaHotspot = new Location[4]; loaHotspot[0] = LocationImpl.create( dX - IConstants.LINE_EXPAND_SIZE, dStart ); loaHotspot[1] = LocationImpl.create( dX + IConstants.LINE_EXPAND_SIZE, dStart ); loaHotspot[2] = LocationImpl.create( dX + IConstants.LINE_EXPAND_SIZE, dEnd ); loaHotspot[3] = LocationImpl.create( dX - IConstants.LINE_EXPAND_SIZE, dEnd ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loaHotspot ); iev.setHotSpot( pre ); ipr.enableInteraction( iev ); } } } } if ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { double dOffset = 0; double dUnitSize = sc.getUnitSize( ); DataSetIterator dsi = sc.getData( ); final int iDateTimeUnit = ( sc.getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; final ITextMetrics itmText = xs.getTextMetrics( la ); if ( dAngleInDegrees == 90 || dAngleInDegrees == 0 ) { dOffset = -dUnitSize / 2; } double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { if ( bRenderAxisLabels ) { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), iDateTimeUnit ) ); if ( sc.isTickLabelVisible( i ) ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la ); // RECYCLED dOffset = -dUnitSize / 2; } } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx, y3d + dOffset, dZEnd ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2, y3d + dOffset, dZ ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y + dOffset ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } } y = (int) da[da.length - 1]; if ( bRendering3D ) { y3d = (int) da3D[da3D.length - 1]; } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } itmText.dispose( );// DISPOSED } else if ( ( sc.getType( ) & IConstants.LOGARITHMIC ) == IConstants.LOGARITHMIC ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { if ( bRenderAxisLabels ) // PERFORM COMPUTATIONS ONLY IF // AXIS LABEL IS VISIBLE { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) // RENDER // LABELS // ONLY // IF // REQUESTED { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx, y3d, dZEnd ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2, y3d, dZ ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue *= dAxisStep; } } else if ( ( sc.getType( ) & IConstants.LINEAR ) == IConstants.LINEAR ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( ) ); } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx, y3d, dZEnd ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2, y3d, dZ ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue += dAxisStep; } } else if ( ( sc.getType( ) & IConstants.DATE_TIME ) == IConstants.DATE_TIME ) { CDateTime cdt, cdtAxisValue = Methods.asDateTime( sc.getMinimum( ) ); final int iUnit = Methods.asInteger( sc.getUnit( ) ); final int iStep = Methods.asInteger( sc.getStep( ) ); SimpleDateFormat sdf = null; if ( fs == null ) { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); } cdt = cdtAxisValue; double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx, y3d, dZEnd ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2, y3d, dZ ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); // ALWAYS // W.R.T // START // VALUE } } la = (Label) EcoreUtil.copy( ax.getTitle( ) ); // TEMPORARILY USE // FOR AXIS TITLE if ( la.isVisible( ) && bRenderAxisTitle ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_TITLE, la ); final String sRestoreValue = la.getCaption( ).getValue( ); la.getCaption( ) .setValue( rtc.externalizedMessage( sRestoreValue ) ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, ax.getTitlePosition( ), la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } if ( ax.getTitle( ).isVisible( ) ) { if ( bRendering3D ) { Bounds cbo = getPlotBounds( ); tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ) / 2d, cbo.getTop( ) + 30, bb.getWidth( ), bb.getHeight( ) ) ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + cbo.getWidth( ) - bb.getWidth( ), cbo.getTop( ) + 30 * 2, bb.getWidth( ), bb.getHeight( ) ) ); ipr.drawText( tre ); } else { final Bounds bo = BoundsImpl.create( ax.getTitleCoordinate( ), daEndPoints[1], bb.getWidth( ), daEndPoints[0] - daEndPoints[1] ); tre.setBlockBounds( bo ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); if ( ax.getTitle( ).isVisible( ) ) { ipr.drawText( tre ); } } } la.getCaption( ).setValue( sRestoreValue ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = (Label) EcoreUtil.copy( ax.getLabel( ) ); if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTranslation( -dSeriesThickness, dSeriesThickness ); ipr.applyTransformation( trae ); } } else if ( iOrientation == IConstants.HORIZONTAL ) { int x; int x3d = 0; int z3d = 0; double dY = dLocation; double dX = 0; double dZ = 0; if ( bRendering3D ) { Location3D l3d = ax.getAxisCoordinate3D( ); dX = l3d.getX( ); dY = l3d.getY( ); dZ = l3d.getZ( ); } double dYTick1 = ( ( iMajorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYTick2 = ( ( iMajorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTransform( TransformationEvent.TRANSLATE ); trae.setTranslation( dSeriesThickness, -dSeriesThickness ); ipr.applyTransformation( trae ); } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS && lia.isVisible( ) ) { if ( bRenderBase3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); l3dre.setStart3D( dStart, dY, dZ ); l3dre.setEnd3D( dEnd, dY, dZ ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); Location3D[] loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dStart, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[1] = Location3DImpl.create( dStart, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[2] = Location3DImpl.create( dEnd, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[3] = Location3DImpl.create( dEnd, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else if ( bRenderAncillary3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); l3dre.setStart3D( dX, dY, dStart ); l3dre.setEnd3D( dX, dY, dEnd ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); Location3D[] loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dX, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart ); loaHotspot[1] = Location3DImpl.create( dX, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart ); loaHotspot[2] = Location3DImpl.create( dX, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd ); loaHotspot[3] = Location3DImpl.create( dX, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else { final double dStart = daEndPoints[0] - insCA.getLeft( ), dEnd = daEndPoints[1] + insCA.getRight( ); if ( iv != null && iv.getType( ) == IntersectionValue.VALUE && iDimension == IConstants.TWO_5_D ) { // Zero plane. final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( dStart, dY ); loa[1] = LocationImpl.create( dStart + dSeriesThickness, dY - dSeriesThickness ); loa[2] = LocationImpl.create( dEnd + dSeriesThickness, dY - dSeriesThickness ); loa[3] = LocationImpl.create( dEnd, dY ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( ColorDefinitionImpl.create( 255, 255, 255, 127 ) ); pre.setOutline( lia ); ipr.fillPolygon( pre ); } lre.setLineAttributes( lia ); lre.getStart( ).set( dStart, dY ); lre.getEnd( ).set( dEnd, dY ); ipr.drawLine( lre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } Location[] loaHotspot = new Location[4]; loaHotspot[0] = LocationImpl.create( dStart, dY - IConstants.LINE_EXPAND_SIZE ); loaHotspot[1] = LocationImpl.create( dEnd, dY - IConstants.LINE_EXPAND_SIZE ); loaHotspot[2] = LocationImpl.create( dEnd, dY + IConstants.LINE_EXPAND_SIZE ); loaHotspot[3] = LocationImpl.create( dStart, dY + IConstants.LINE_EXPAND_SIZE ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loaHotspot ); iev.setHotSpot( pre ); ipr.enableInteraction( iev ); } } } } if ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { double dOffset = 0; double dUnitSize = sc.getUnitSize( ); DataSetIterator dsi = sc.getData( ); final int iDateTimeUnit = ( sc.getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; final ITextMetrics itmText = xs.getTextMetrics( la ); if ( dAngleInDegrees == 90 || dAngleInDegrees == 0 ) { dOffset = dUnitSize / 2; } double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), // step to next value. iDateTimeUnit ) ); if ( sc.isTickLabelVisible( i ) ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la );// RECYCLED dOffset = dUnitSize / 2; double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d + dOffset, sy, dZEnd ); } else { lo3d.set( dXEnd, sy, z3d + dOffset ); } t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x + dOffset, sy ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } } } // ONE LAST TICK x = (int) da[da.length - 1]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } itmText.dispose( ); // DISPOSED } else if ( ( sc.getType( ) & IConstants.LINEAR ) == IConstants.LINEAR ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( ) ); } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) // OPTIMIZED: // ONLY // PROCESS // IF // AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy, dZEnd ); } else { lo3d.set( dXEnd, sy, z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue += dAxisStep; } } else if ( ( sc.getType( ) & IConstants.LOGARITHMIC ) == IConstants.LOGARITHMIC ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( lia ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) // OPTIMIZED: // ONLY // PROCESS // IF // AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy, dZEnd ); } else { lo3d.set( dXEnd, sy, z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue *= dAxisStep; } } else if ( ( sc.getType( ) & IConstants.DATE_TIME ) == IConstants.DATE_TIME ) { CDateTime cdt, cdtAxisValue = Methods.asDateTime( sc.getMinimum( ) ); final int iUnit = Methods.asInteger( sc.getUnit( ) ); final int iStep = Methods.asInteger( sc.getStep( ) ); SimpleDateFormat sdf = null; if ( fs == null ) { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); } cdt = cdtAxisValue; double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) // OPTIMIZED: // ONLY // PROCESS // IF // AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy, dZEnd ); } else { lo3d.set( dXEnd, sy, z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); // ALWAYS // W.R.T // START // VALUE } } // RENDER THE AXIS TITLE la = (Label) EcoreUtil.copy( ax.getTitle( ) ); // TEMPORARILY USE // FOR AXIS TITLE if ( la.isVisible( ) && bRenderAxisTitle ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_TITLE, la ); final String sRestoreValue = la.getCaption( ).getValue( ); la.getCaption( ) .setValue( rtc.externalizedMessage( sRestoreValue ) ); // EXTERNALIZE BoundingBox bb = null; try { bb = Methods.computeBox( xs, ax.getTitlePosition( ), la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } if ( ax.getTitle( ).isVisible( ) ) { if ( bRendering3D ) { Bounds cbo = getPlotBounds( ); if ( axisType == IConstants.BASE_AXIS ) { tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ), cbo.getTop( ) + cbo.getHeight( ) - Math.min( bb.getHeight( ), bb.getWidth( ) ) - 30, bb.getWidth( ), bb.getHeight( ) ) ); } else { tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + cbo.getWidth( ) * 2 / 3d + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ) / 2d, cbo.getTop( ) + cbo.getHeight( ) - Math.min( bb.getHeight( ), bb.getWidth( ) ) - 30 * 2, bb.getWidth( ), bb.getHeight( ) ) ); } tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } else { final Bounds bo = BoundsImpl.create( daEndPoints[0], ax.getTitleCoordinate( ), daEndPoints[1] - daEndPoints[0], bb.getHeight( ) ); tre.setBlockBounds( bo ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } } la.getCaption( ).setValue( sRestoreValue ); // RESTORE ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = (Label) EcoreUtil.copy( ax.getLabel( ) ); // RESTORE BACK TO // AXIS LABEL if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTranslation( -dSeriesThickness, dSeriesThickness ); ipr.applyTransformation( trae ); } } }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/536b54a46b25aa99e427a2fbd8217e09108c905a/AxesRenderer.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/AxesRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1743, 3442, 6558, 12, 467, 9840, 6747, 277, 683, 16, 15211, 886, 16, 1082, 202, 3335, 6558, 1740, 16, 509, 277, 23801, 774, 6493, 262, 1216, 14804, 503, 202, 95, 202, 202, 6385, 1939, 950, 1042, 436, 5111, 273, 336, 1997, 950, 1042, 12, 11272, 202, 202, 6385, 15509, 1740, 1488, 273, 1740, 18, 588, 1488, 6558, 12, 11272, 202, 202, 6385, 15211, 1190, 26494, 8772, 69, 273, 261, 11532, 1190, 26494, 13, 336, 7703, 1012, 12, 11272, 202, 202, 6385, 22300, 2763, 3587, 273, 8772, 69, 18, 588, 26494, 12, 262, 18, 588, 382, 4424, 12, 11272, 202, 202, 6385, 7739, 1503, 699, 273, 336, 1997, 950, 1042, 12, 262, 18, 588, 3651, 1503, 12, 11272, 202, 202, 9056, 302, 2735, 273, 1740, 18, 588, 6558, 13503, 12, 11272, 202, 202, 9056, 302, 8467, 382, 24400, 273, 1740, 18, 588, 2224, 12, 262, 9506, 202, 18, 588, 21158, 12, 262, 9506, 202, 18, 588, 5711, 12, 262, 9506, 202, 18, 588, 14032, 12, 11272, 202, 202, 4965, 5587, 888, 273, 1740, 18, 588, 5587, 12, 11272, 202, 202, 23634, 620, 4674, 273, 1740, 18, 588, 23634, 620, 12, 11272, 202, 202, 474, 277, 17581, 6264, 2885, 273, 1740, 18, 588, 6313, 12, 262, 18, 588, 6264, 2885, 12, 467, 2918, 18, 26976, 916, 11272, 202, 202, 474, 277, 19549, 6264, 2885, 273, 1740, 18, 588, 6313, 12, 262, 18, 588, 6264, 2885, 12, 467, 2918, 18, 6236, 916, 11272, 202, 202, 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, 1743, 3442, 6558, 12, 467, 9840, 6747, 277, 683, 16, 15211, 886, 16, 1082, 202, 3335, 6558, 1740, 16, 509, 277, 23801, 774, 6493, 262, 1216, 14804, 503, 202, 95, 202, 202, 6385, 1939, 950, 1042, 436, 5111, 273, 336, 1997, 950, 1042, 12, 11272, 202, 202, 6385, 15509, 1740, 1488, 273, 1740, 18, 588, 1488, 6558, 12, 11272, 202, 202, 6385, 15211, 1190, 26494, 8772, 69, 273, 261, 11532, 1190, 26494, 13, 336, 7703, 1012, 12, 11272, 202, 202, 6385, 22300, 2763, 3587, 273, 8772, 69, 18, 588, 26494, 12, 262, 18, 588, 382, 4424, 12, 11272, 202, 202, 6385, 7739, 1503, 699, 273, 336, 1997, 950, 1042, 12, 262, 18, 588, 3651, 2 ]
return true;
if(unignores.size() == 0) return true; boolean unignoreFound = false; for (Iterator iter2 = unignores.iterator(); iter2.hasNext(); ) { Pattern unignoreRegexp = (Pattern)iter2.next(); Matcher unignoreMatcher = unignoreRegexp.matcher(symbol); if (unignoreMatcher.matches()) { unignoreFound = true; break; } } if (!unignoreFound) return true;
public boolean shouldIgnore(String symbol) { //System.err.println("CHECKING IGNORE: " + symbol); // Simple case; the entire symbol is in the ignore table. if (ignores.contains(symbol)) { return true; } // Ok, the slow case. We need to check the entire table, in case the table // contains an regular expression that matches the symbol. for (Iterator iter = ignores.iterator(); iter.hasNext(); ) { Pattern regexp = (Pattern)iter.next(); Matcher matcher = regexp.matcher(symbol); if (matcher.matches()) { return true; } } // Check negated ignore table if not empty if (ignoreNots.size() > 0) { // Ok, the slow case. We need to check the entire table, in case the table // contains an regular expression that matches the symbol. for (Iterator iter = ignoreNots.iterator(); iter.hasNext(); ) { Pattern regexp = (Pattern)iter.next(); Matcher matcher = regexp.matcher(symbol); if (!matcher.matches()) { return true; } } } return false; }
48987 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48987/62c9fd1b4bcba9ad6cac5756b6113542f2d867e3/JavaConfiguration.java/clean/src/java/com/sun/gluegen/JavaConfiguration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1410, 3777, 12, 780, 3273, 13, 288, 565, 368, 3163, 18, 370, 18, 8222, 2932, 10687, 1360, 14919, 30, 315, 397, 3273, 1769, 565, 368, 4477, 648, 31, 326, 7278, 3273, 353, 316, 326, 2305, 1014, 18, 565, 309, 261, 724, 3485, 18, 12298, 12, 7175, 3719, 288, 3639, 309, 12, 318, 724, 3485, 18, 1467, 1435, 422, 374, 13, 327, 638, 31, 225, 1250, 640, 6185, 2043, 273, 629, 31, 364, 261, 3198, 1400, 22, 273, 640, 724, 3485, 18, 9838, 5621, 1400, 22, 18, 5332, 2134, 5621, 262, 288, 6830, 640, 6185, 14621, 273, 261, 3234, 13, 2165, 22, 18, 4285, 5621, 9757, 640, 6185, 6286, 273, 640, 6185, 14621, 18, 22761, 12, 7175, 1769, 309, 261, 318, 6185, 6286, 18, 8436, 10756, 288, 640, 6185, 2043, 273, 638, 31, 898, 31, 289, 289, 225, 309, 16051, 318, 6185, 2043, 13, 327, 638, 31, 565, 289, 565, 368, 16154, 16, 326, 11816, 648, 18, 1660, 1608, 358, 866, 326, 7278, 1014, 16, 316, 648, 326, 1014, 565, 368, 1914, 392, 6736, 2652, 716, 1885, 326, 3273, 18, 565, 364, 261, 3198, 1400, 273, 17868, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 262, 288, 1377, 6830, 7195, 273, 261, 3234, 13, 2165, 18, 4285, 5621, 1377, 9757, 4546, 273, 7195, 18, 22761, 12, 7175, 1769, 1377, 309, 261, 22761, 18, 8436, 10756, 288, 1850, 309, 12, 318, 724, 3485, 18, 1467, 1435, 422, 374, 13, 327, 638, 31, 225, 1250, 640, 6185, 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, 1250, 1410, 3777, 12, 780, 3273, 13, 288, 565, 368, 3163, 18, 370, 18, 8222, 2932, 10687, 1360, 14919, 30, 315, 397, 3273, 1769, 565, 368, 4477, 648, 31, 326, 7278, 3273, 353, 316, 326, 2305, 1014, 18, 565, 309, 261, 724, 3485, 18, 12298, 12, 7175, 3719, 288, 3639, 309, 12, 318, 724, 3485, 18, 1467, 1435, 422, 374, 13, 327, 638, 31, 225, 1250, 640, 6185, 2043, 273, 629, 31, 364, 261, 3198, 1400, 22, 273, 640, 724, 3485, 18, 9838, 5621, 1400, 22, 18, 5332, 2134, 5621, 262, 288, 6830, 640, 6185, 14621, 273, 261, 3234, 13, 2165, 22, 18, 4285, 5621, 9757, 640, 6185, 6286, 273, 640, 6185, 14621, 18, 22761, 12, 7175, 2 ]
public org.quickfix.field.Text getText() throws FieldNotFound { org.quickfix.field.Text value = new org.quickfix.field.Text();
public quickfix.field.Text getText() throws FieldNotFound { quickfix.field.Text value = new quickfix.field.Text();
public org.quickfix.field.Text getText() throws FieldNotFound { org.quickfix.field.Text value = new org.quickfix.field.Text(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReport.java/clean/src/java/src/quickfix/fix43/TradeCaptureReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1528, 6701, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1528, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 1528, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1528, 6701, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1528, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 1528, 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, -100, -100, -100, -100 ]
if (jj_3R_175()) return true;
if (jj_scan_token(INTERFACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(IDENTIFIER)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; xsp = jj_scanpos; if (jj_3R_317()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(LBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; while (true) { xsp = jj_scanpos; if (jj_3R_318()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } if (jj_scan_token(RBRACE)) return true;
final private boolean jj_3R_163() { if (jj_3R_175()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/83d81b076b32acdf3f82077c7f4c2a2e160aa32f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 30886, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 18865, 3719, 327, 638, 31, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 16606, 3719, 327, 638, 31, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 3155, 619, 1752, 31, 619, 1752, 273, 10684, 67, 9871, 917, 31, 309, 261, 78, 78, 67, 23, 54, 67, 23, 4033, 10756, 10684, 67, 9871, 917, 273, 619, 1752, 31, 469, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 12995, 9254, 3719, 327, 638, 31, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 1323, 261, 3767, 13, 288, 619, 1752, 273, 10684, 67, 9871, 917, 31, 309, 261, 78, 78, 67, 23, 54, 67, 23, 2643, 10756, 288, 10684, 67, 9871, 917, 273, 619, 1752, 31, 898, 31, 289, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 289, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 19437, 9254, 3719, 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, 727, 3238, 1250, 10684, 67, 23, 54, 67, 30886, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 18865, 3719, 327, 638, 31, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 16606, 3719, 327, 638, 31, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 3155, 619, 1752, 31, 619, 1752, 273, 10684, 67, 9871, 917, 31, 309, 261, 78, 78, 67, 23, 54, 67, 23, 4033, 10756, 10684, 67, 9871, 917, 273, 619, 1752, 31, 469, 309, 261, 2 ]
int pos = (int) RubyNumeric.num2long(obj);
int pos = (int) obj.convertToInteger().getLongValue();
public IRubyObject delete_at(IRubyObject obj) { modify(); int pos = (int) RubyNumeric.num2long(obj); int len = getLength(); if (pos >= len) { return getRuntime().getNil(); } return pos < 0 && (pos += len) < 0 ? getRuntime().getNil() : (IRubyObject) list.remove(pos); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyArray.java/clean/src/org/jruby/RubyArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 1430, 67, 270, 12, 7937, 10340, 921, 1081, 13, 288, 3639, 5612, 5621, 3639, 509, 949, 273, 261, 474, 13, 1081, 18, 6283, 774, 4522, 7675, 588, 3708, 620, 5621, 3639, 509, 562, 273, 9888, 5621, 3639, 309, 261, 917, 1545, 562, 13, 288, 5411, 327, 18814, 7675, 588, 12616, 5621, 3639, 289, 7734, 327, 949, 411, 374, 597, 261, 917, 1011, 562, 13, 411, 374, 692, 5411, 18814, 7675, 588, 12616, 1435, 294, 261, 7937, 10340, 921, 13, 666, 18, 4479, 12, 917, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 15908, 10340, 921, 1430, 67, 270, 12, 7937, 10340, 921, 1081, 13, 288, 3639, 5612, 5621, 3639, 509, 949, 273, 261, 474, 13, 1081, 18, 6283, 774, 4522, 7675, 588, 3708, 620, 5621, 3639, 509, 562, 273, 9888, 5621, 3639, 309, 261, 917, 1545, 562, 13, 288, 5411, 327, 18814, 7675, 588, 12616, 5621, 3639, 289, 7734, 327, 949, 411, 374, 597, 261, 917, 1011, 562, 13, 411, 374, 692, 5411, 18814, 7675, 588, 12616, 1435, 294, 261, 7937, 10340, 921, 13, 666, 18, 4479, 12, 917, 1769, 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 ]
SlotManager val1= null /** @todo fill in non-null value */;
SlotManager val1= null;
public void testGetMode() { SlotManager val1= null /** @todo fill in non-null value */; LnOpsModeProgrammer lnopsmodeprogrammer = new LnOpsModeProgrammer(val1, 1, true); int intRet = lnopsmodeprogrammer.getMode(); Assert.assertEquals("OpsByteMode", Programmer.OPSBYTEMODE, intRet); }
213 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/213/1161be0b8d8182413098f56d05ff856bc6fe64d2/LnOpsModeProgrammerTest.java/clean/test/jmri/jmrix/loconet/LnOpsModeProgrammerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 2309, 1435, 288, 202, 8764, 1318, 1244, 21, 33, 225, 446, 225, 1783, 632, 9012, 3636, 316, 1661, 17, 2011, 460, 1195, 31, 202, 13780, 8132, 2309, 9459, 6592, 7211, 4473, 3188, 12890, 6592, 273, 394, 511, 82, 8132, 2309, 9459, 6592, 12, 1125, 21, 16, 404, 16, 638, 1769, 202, 474, 509, 7055, 273, 7211, 4473, 3188, 12890, 6592, 18, 588, 2309, 5621, 202, 8213, 18, 11231, 8867, 2932, 8132, 3216, 2309, 3113, 13586, 6592, 18, 3665, 55, 15377, 7038, 16, 509, 7055, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 967, 2309, 1435, 288, 202, 8764, 1318, 1244, 21, 33, 225, 446, 225, 1783, 632, 9012, 3636, 316, 1661, 17, 2011, 460, 1195, 31, 202, 13780, 8132, 2309, 9459, 6592, 7211, 4473, 3188, 12890, 6592, 273, 394, 511, 82, 8132, 2309, 9459, 6592, 12, 1125, 21, 16, 404, 16, 638, 1769, 202, 474, 509, 7055, 273, 7211, 4473, 3188, 12890, 6592, 18, 588, 2309, 5621, 202, 8213, 18, 11231, 8867, 2932, 8132, 3216, 2309, 3113, 13586, 6592, 18, 3665, 55, 15377, 7038, 16, 509, 7055, 1769, 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 ]
selectedComboKeyConfiguration(); }
selectedComboKeyConfiguration(); }
public void widgetSelected(SelectionEvent selectionEvent) { selectedComboKeyConfiguration(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/664efbbd6fd6dba5c4d118b10afe31ab34b6890a/KeysPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/KeysPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 4421, 1133, 13, 288, 9506, 202, 8109, 16156, 653, 1750, 5621, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 4421, 1133, 13, 288, 9506, 202, 8109, 16156, 653, 1750, 5621, 1082, 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 ]
defineMethod("==", Arity.singleArgument(), "equal"); defineAlias("===", "=="); defineMethod("to_s", Arity.noArguments()); defineMethod("nil?", Arity.noArguments(), "nil_p"); defineMethod("to_a", Arity.noArguments()); defineMethod("hash", Arity.noArguments()); defineMethod("id", Arity.noArguments()); defineAlias("__id__", "id"); defineAlias("object_id", "id"); defineMethod("is_a?", Arity.singleArgument(), "kind_of"); defineAlias("kind_of?", "is_a?"); defineMethod("dup", Arity.noArguments()); defineAlias("eql?", "=="); defineMethod("equal?", Arity.singleArgument(), "same"); defineMethod("type", Arity.noArguments(), "type_deprecated"); defineMethod("class", Arity.noArguments(), "type"); defineMethod("inspect", Arity.noArguments()); defineMethod("=~", Arity.singleArgument(), "match"); defineMethod("clone", Arity.noArguments(), "rbClone"); defineMethod("display", Arity.optional(), "display"); defineMethod("extend", Arity.optional(), "extend"); defineMethod("freeze", Arity.noArguments()); defineMethod("frozen?", Arity.noArguments(), "frozen"); defineMethod("initialize_copy", Arity.singleArgument(), "initialize_copy"); defineMethod("instance_eval", Arity.optional()); defineMethod("instance_of?", Arity.singleArgument(), "instance_of"); defineMethod("instance_variables", Arity.noArguments()); defineMethod("instance_variable_get", Arity.singleArgument()); defineMethod("instance_variable_set", Arity.twoArguments()); defineMethod("method", Arity.singleArgument(), "method"); defineMethod("methods", Arity.optional()); defineMethod("private_methods", Arity.noArguments()); defineMethod("protected_methods", Arity.noArguments()); defineMethod("public_methods", Arity.optional()); defineMethod("respond_to?", Arity.optional(), "respond_to"); defineMethod("send", Arity.optional()); defineAlias("__send__", "send"); defineMethod("singleton_methods", Arity.noArguments()); defineMethod("taint", Arity.noArguments()); defineMethod("tainted?", Arity.noArguments(), "tainted"); defineMethod("untaint", Arity.noArguments());
protected void initializeClass() { defineMethod("==", Arity.singleArgument(), "equal"); defineAlias("===", "=="); defineMethod("to_s", Arity.noArguments()); defineMethod("nil?", Arity.noArguments(), "nil_p"); defineMethod("to_a", Arity.noArguments()); defineMethod("hash", Arity.noArguments()); defineMethod("id", Arity.noArguments()); defineAlias("__id__", "id"); defineAlias("object_id", "id"); defineMethod("is_a?", Arity.singleArgument(), "kind_of"); defineAlias("kind_of?", "is_a?"); defineMethod("dup", Arity.noArguments()); defineAlias("eql?", "=="); defineMethod("equal?", Arity.singleArgument(), "same"); defineMethod("type", Arity.noArguments(), "type_deprecated"); defineMethod("class", Arity.noArguments(), "type"); defineMethod("inspect", Arity.noArguments()); defineMethod("=~", Arity.singleArgument(), "match"); defineMethod("clone", Arity.noArguments(), "rbClone"); defineMethod("display", Arity.optional(), "display"); defineMethod("extend", Arity.optional(), "extend"); defineMethod("freeze", Arity.noArguments()); defineMethod("frozen?", Arity.noArguments(), "frozen"); defineMethod("initialize_copy", Arity.singleArgument(), "initialize_copy"); defineMethod("instance_eval", Arity.optional()); defineMethod("instance_of?", Arity.singleArgument(), "instance_of"); defineMethod("instance_variables", Arity.noArguments()); defineMethod("instance_variable_get", Arity.singleArgument()); defineMethod("instance_variable_set", Arity.twoArguments()); defineMethod("method", Arity.singleArgument(), "method"); defineMethod("methods", Arity.optional()); defineMethod("private_methods", Arity.noArguments()); defineMethod("protected_methods", Arity.noArguments()); defineMethod("public_methods", Arity.optional()); defineMethod("respond_to?", Arity.optional(), "respond_to"); defineMethod("send", Arity.optional()); defineAlias("__send__", "send"); defineMethod("singleton_methods", Arity.noArguments()); defineMethod("taint", Arity.noArguments()); defineMethod("tainted?", Arity.noArguments(), "tainted"); defineMethod("untaint", Arity.noArguments()); definePrivateMethod("initialize", Arity.optional()); definePrivateMethod("inherited", Arity.singleArgument()); }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/5e2d21a7295d01b2d891cfc8c8e67af99a3d858e/ObjectMetaClass.java/clean/src/org/jruby/runtime/builtin/meta/ObjectMetaClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 565, 4750, 918, 4046, 797, 1435, 288, 202, 3639, 4426, 1305, 2932, 631, 3113, 1201, 560, 18, 7526, 1379, 9334, 315, 9729, 8863, 202, 3639, 4426, 2936, 2932, 631, 1546, 16, 315, 631, 8863, 202, 3639, 4426, 1305, 2932, 869, 67, 87, 3113, 1201, 560, 18, 2135, 4628, 10663, 202, 3639, 4426, 1305, 2932, 20154, 35, 3113, 1201, 560, 18, 2135, 4628, 9334, 315, 20154, 67, 84, 8863, 202, 3639, 4426, 1305, 2932, 869, 67, 69, 3113, 1201, 560, 18, 2135, 4628, 10663, 202, 3639, 4426, 1305, 2932, 2816, 3113, 1201, 560, 18, 2135, 4628, 10663, 202, 3639, 4426, 1305, 2932, 350, 3113, 1201, 560, 18, 2135, 4628, 10663, 202, 3639, 4426, 2936, 2932, 972, 350, 972, 3113, 315, 350, 8863, 202, 3639, 4426, 2936, 2932, 1612, 67, 350, 3113, 315, 350, 8863, 202, 3639, 4426, 1305, 2932, 291, 67, 69, 35, 3113, 1201, 560, 18, 7526, 1379, 9334, 315, 9224, 67, 792, 8863, 202, 3639, 4426, 2936, 2932, 9224, 67, 792, 35, 3113, 315, 291, 67, 69, 7225, 1769, 202, 3639, 4426, 1305, 2932, 26427, 3113, 1201, 560, 18, 2135, 4628, 10663, 202, 3639, 4426, 2936, 2932, 73, 1217, 35, 3113, 315, 631, 8863, 202, 3639, 4426, 1305, 2932, 9729, 35, 3113, 1201, 560, 18, 7526, 1379, 9334, 315, 14307, 8863, 202, 3639, 4426, 1305, 2932, 723, 3113, 1201, 560, 18, 2135, 4628, 9334, 315, 723, 67, 14089, 8863, 202, 3639, 4426, 1305, 2932, 1106, 3113, 1201, 560, 18, 2135, 4628, 9334, 315, 723, 8863, 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, 3196, 565, 4750, 918, 4046, 797, 1435, 288, 202, 3639, 4426, 1305, 2932, 631, 3113, 1201, 560, 18, 7526, 1379, 9334, 315, 9729, 8863, 202, 3639, 4426, 2936, 2932, 631, 1546, 16, 315, 631, 8863, 202, 3639, 4426, 1305, 2932, 869, 67, 87, 3113, 1201, 560, 18, 2135, 4628, 10663, 202, 3639, 4426, 1305, 2932, 20154, 35, 3113, 1201, 560, 18, 2135, 4628, 9334, 315, 20154, 67, 84, 8863, 202, 3639, 4426, 1305, 2932, 869, 67, 69, 3113, 1201, 560, 18, 2135, 4628, 10663, 202, 3639, 4426, 1305, 2932, 2816, 3113, 1201, 560, 18, 2135, 4628, 10663, 202, 3639, 4426, 1305, 2932, 350, 3113, 1201, 560, 18, 2135, 4628, 10663, 202, 3639, 4426, 2936, 2932, 972, 350, 972, 3113, 2 ]
public boolean isSet(org.quickfix.field.AllocAccount field)
public boolean isSet(quickfix.field.AllocAccount field)
public boolean isSet(org.quickfix.field.AllocAccount field) { return isSetField(field); }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/AllocationInstructionAck.java/buggy/src/java/src/quickfix/fix44/AllocationInstructionAck.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 8763, 3032, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 1769, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 8763, 3032, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 1769, 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 ]
Iterator declarations = parse( "namespace N{ class A {}; } using namespace N; class B: public A{};").getDeclarations();
Iterator declarations = parse( "namespace N{ class A {}; } using namespace N; class B: public A{};").getDeclarations();
public void testAndrewsExample() throws Exception { Iterator declarations = parse( "namespace N{ class A {}; } using namespace N; class B: public A{};").getDeclarations(); IASTNamespaceDefinition namespaceN = (IASTNamespaceDefinition)declarations.next(); IASTClassSpecifier classA = (IASTClassSpecifier)((IASTAbstractTypeSpecifierDeclaration)getDeclarations( namespaceN ).next()).getTypeSpecifier(); IASTUsingDirective usingClause = (IASTUsingDirective)declarations.next(); IASTClassSpecifier classB = (IASTClassSpecifier)((IASTAbstractTypeSpecifierDeclaration)declarations.next()).getTypeSpecifier(); IASTBaseSpecifier baseSpec = (IASTBaseSpecifier)classB.getBaseClauses().next(); assertEquals( baseSpec.getParentClassSpecifier(), classA ); assertEquals( callback.getReferences().size(), 2 ); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/3a6ffef8f855652606f74a14d4b15478c81e5db4/CompleteParseASTTest.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/CompleteParseASTTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1876, 266, 4749, 10908, 1435, 1216, 1185, 202, 95, 202, 202, 3198, 12312, 273, 1109, 12, 315, 4937, 423, 95, 667, 432, 2618, 31, 289, 202, 9940, 1981, 423, 31, 202, 1106, 605, 30, 1071, 432, 2916, 4868, 2934, 588, 21408, 5621, 202, 202, 45, 9053, 3402, 1852, 1981, 50, 273, 261, 45, 9053, 3402, 1852, 13, 8840, 9642, 18, 4285, 5621, 202, 202, 45, 9053, 797, 21416, 667, 37, 273, 261, 45, 9053, 797, 21416, 13, 12443, 45, 9053, 7469, 559, 21416, 6094, 13, 588, 21408, 12, 1981, 50, 262, 18, 4285, 1435, 2934, 588, 559, 21416, 5621, 3196, 202, 45, 9053, 7736, 13307, 1450, 7044, 273, 261, 45, 9053, 7736, 13307, 13, 8840, 9642, 18, 4285, 5621, 202, 202, 45, 9053, 797, 21416, 667, 38, 273, 261, 45, 9053, 797, 21416, 13, 12443, 45, 9053, 7469, 559, 21416, 6094, 13, 8840, 9642, 18, 4285, 1435, 2934, 588, 559, 21416, 5621, 202, 202, 45, 9053, 2171, 21416, 1026, 1990, 273, 261, 45, 9053, 2171, 21416, 13, 1106, 38, 18, 588, 2171, 22434, 7675, 4285, 5621, 202, 202, 11231, 8867, 12, 1026, 1990, 18, 588, 3054, 797, 21416, 9334, 667, 37, 11272, 202, 202, 11231, 8867, 12, 1348, 18, 588, 8221, 7675, 1467, 9334, 576, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1876, 266, 4749, 10908, 1435, 1216, 1185, 202, 95, 202, 202, 3198, 12312, 273, 1109, 12, 315, 4937, 423, 95, 667, 432, 2618, 31, 289, 202, 9940, 1981, 423, 31, 202, 1106, 605, 30, 1071, 432, 2916, 4868, 2934, 588, 21408, 5621, 202, 202, 45, 9053, 3402, 1852, 1981, 50, 273, 261, 45, 9053, 3402, 1852, 13, 8840, 9642, 18, 4285, 5621, 202, 202, 45, 9053, 797, 21416, 667, 37, 273, 261, 45, 9053, 797, 21416, 13, 12443, 45, 9053, 7469, 559, 21416, 6094, 13, 588, 21408, 12, 1981, 50, 262, 18, 4285, 1435, 2934, 588, 559, 21416, 5621, 3196, 202, 45, 9053, 7736, 13307, 1450, 7044, 273, 261, 45, 9053, 7736, 13307, 13, 2 ]
return columnNumber;
return columnNumber();
public int getColumnNumber() { return columnNumber; }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/b538849b5b431bc21e58fb6e0fc818f0a017ed10/EcmaError.java/clean/js/rhino/src/org/mozilla/javascript/EcmaError.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 6716, 1854, 1435, 288, 3639, 327, 1057, 1854, 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, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6716, 1854, 1435, 288, 3639, 327, 1057, 1854, 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, -100, -100, -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 ( module instanceof ReportDesign ) { unit = ( (ReportDesign) module ).getUnits( ); if ( !StringUtil.isBlank( unit ) ) return unit; }
unit = module.getUnits( ); if ( !StringUtil.isBlank( unit ) ) return unit;
private String getDefaultUnit( Module module, PropertyDefn defn ) { String unit = defn.getDefaultUnit( ); if ( !StringUtil.isBlank( unit ) ) return unit; if ( module == null ) return DesignChoiceConstants.UNITS_IN; if ( module instanceof ReportDesign ) { unit = ( (ReportDesign) module ).getUnits( ); if ( !StringUtil.isBlank( unit ) ) return unit; } return module.getSession( ).getUnits( ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/2c471e2187ddd47fe87aa6e231a25fbfbc126e55/DimensionPropertyType.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/metadata/DimensionPropertyType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 4829, 2802, 12, 5924, 1605, 16, 4276, 3262, 82, 1652, 82, 262, 202, 95, 202, 202, 780, 2836, 273, 1652, 82, 18, 588, 1868, 2802, 12, 11272, 202, 202, 430, 261, 401, 13565, 18, 291, 7796, 12, 2836, 262, 262, 1082, 202, 2463, 2836, 31, 202, 202, 430, 261, 1605, 422, 446, 262, 1082, 202, 2463, 29703, 10538, 2918, 18, 24325, 67, 706, 31, 202, 202, 430, 261, 1605, 1276, 8706, 15478, 262, 202, 202, 95, 1082, 202, 4873, 273, 261, 261, 4820, 15478, 13, 1605, 262, 18, 588, 7537, 12, 11272, 1082, 202, 430, 261, 401, 13565, 18, 291, 7796, 12, 2836, 262, 262, 9506, 202, 2463, 2836, 31, 202, 202, 97, 202, 202, 2463, 1605, 18, 588, 2157, 12, 262, 18, 588, 7537, 12, 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, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 514, 4829, 2802, 12, 5924, 1605, 16, 4276, 3262, 82, 1652, 82, 262, 202, 95, 202, 202, 780, 2836, 273, 1652, 82, 18, 588, 1868, 2802, 12, 11272, 202, 202, 430, 261, 401, 13565, 18, 291, 7796, 12, 2836, 262, 262, 1082, 202, 2463, 2836, 31, 202, 202, 430, 261, 1605, 422, 446, 262, 1082, 202, 2463, 29703, 10538, 2918, 18, 24325, 67, 706, 31, 202, 202, 430, 261, 1605, 1276, 8706, 15478, 262, 202, 202, 95, 1082, 202, 4873, 273, 261, 261, 4820, 15478, 13, 1605, 262, 18, 588, 7537, 12, 11272, 1082, 202, 430, 261, 401, 13565, 18, 291, 7796, 12, 2836, 262, 262, 9506, 202, 2463, 2836, 31, 202, 202, 97, 202, 202, 2 ]
Map entries = new HashMap(); entries.put(SecurityContext.class, this); return new StandardEnvironment(getEnvironment(), entries);
return new StandardEnvironment(getEnvironment(), SecurityContext.class, this);
protected Environment getChildWidgetEnvironment() throws Exception { Map entries = new HashMap(); entries.put(SecurityContext.class, this); return new StandardEnvironment(getEnvironment(), entries); }
53585 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53585/cb34f03ff0fdf002dd06c5c6506832978bbde4ed/RootWidget.java/buggy/examples/main/src/org/araneaframework/example/main/web/RootWidget.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 7518, 8154, 4609, 5494, 1435, 1216, 1185, 288, 565, 1635, 3222, 273, 394, 4317, 5621, 565, 3222, 18, 458, 12, 28646, 18, 1106, 16, 333, 1769, 565, 327, 394, 8263, 5494, 12, 588, 5494, 9334, 3222, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7518, 8154, 4609, 5494, 1435, 1216, 1185, 288, 565, 1635, 3222, 273, 394, 4317, 5621, 565, 3222, 18, 458, 12, 28646, 18, 1106, 16, 333, 1769, 565, 327, 394, 8263, 5494, 12, 588, 5494, 9334, 3222, 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, -100, -100, -100 ]
if (rownr>=maxrows)
if (activeTableRow>=maxrows)
public void keyPressed(KeyEvent e) { boolean right=false; boolean left=false; left = e.keyCode == SWT.ARROW_LEFT && last_carret_position==0; if (combo!=null && !combo.isDisposed()) right = e.keyCode == SWT.ARROW_RIGHT && last_carret_position==combo.getText().length(); // "ENTER": close the text editor and copy the data over if ( e.character == SWT.CR || e.keyCode == SWT.TAB || left || right ) { TableItem row = cursor.getRow(); if (row==null) return; int colnr = cursor.getColumn(); int rownr = table.indexOf(row); if (combo!=null && !combo.isDisposed()) { row.setText(colnr, combo.getText()); // if (!combo.isDisposed()) combo.dispose(); } String after_edit[] = getItemText(row); checkChanged(new String[][] { before_edit }, new String[][] { after_edit }, new int[] { rownr }); int maxcols=table.getColumnCount(); int maxrows=table.getItemCount(); boolean sel=false; // TAB if ( (e.keyCode == SWT.TAB && (( e.stateMask & SWT.SHIFT )==0 )) || right ) { colnr++; sel=true; } // Shift Tab if ( (e.keyCode == SWT.TAB && (( e.stateMask & SWT.SHIFT )!=0 )) || right ) { colnr--; sel=true; } if (colnr<1) // from SHIFT-TAB { colnr=maxcols-1; if (rownr>0) rownr--; } if (colnr>=maxcols) // from TAB { colnr=1; rownr++; } // Tab beyond last line: add a line to table! if (rownr>=maxrows) { TableItem item = new TableItem(table, SWT.NONE, rownr); item.setText(1, "field"+(table.getItemCount()-1)); setRowNums(); } if (sel) { edit(rownr, colnr); } } else if (e.keyCode == SWT.ESC) { combo.dispose(); } last_carret_position = combo.isDisposed()?-1:0; }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/8bda43e46dbe3f74ca1c39b6f3e587c33efbf001/TableView.java/buggy/kettle/src/be/ibridge/kettle/core/widget/TableView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 498, 24624, 12, 653, 1133, 425, 13, 4697, 202, 95, 6862, 202, 6494, 2145, 33, 5743, 31, 6862, 202, 6494, 2002, 33, 5743, 31, 6862, 25083, 202, 4482, 225, 273, 425, 18, 856, 1085, 422, 348, 8588, 18, 985, 11226, 67, 10066, 225, 597, 1142, 67, 9815, 1349, 67, 3276, 631, 20, 31, 6862, 202, 430, 261, 25053, 5, 33, 2011, 597, 401, 25053, 18, 291, 1669, 7423, 10756, 6862, 202, 4083, 273, 425, 18, 856, 1085, 422, 348, 8588, 18, 985, 11226, 67, 11847, 597, 1142, 67, 9815, 1349, 67, 3276, 631, 25053, 18, 588, 1528, 7675, 2469, 5621, 6862, 25083, 202, 759, 315, 12278, 6877, 1746, 326, 977, 4858, 471, 1610, 326, 501, 1879, 4405, 202, 430, 261, 282, 425, 18, 11560, 422, 348, 8588, 18, 5093, 25083, 202, 20081, 425, 18, 856, 1085, 282, 422, 348, 8588, 18, 28899, 25083, 202, 20081, 2002, 747, 2145, 282, 25083, 202, 13, 4405, 202, 95, 25083, 202, 1388, 1180, 1027, 273, 3347, 18, 588, 1999, 5621, 25083, 202, 430, 261, 492, 631, 2011, 13, 327, 31, 25083, 202, 474, 645, 11611, 273, 3347, 18, 588, 1494, 5621, 25083, 202, 474, 1027, 11611, 273, 1014, 18, 31806, 12, 492, 1769, 25083, 202, 430, 261, 25053, 5, 33, 2011, 597, 401, 25053, 18, 291, 1669, 7423, 10756, 7682, 288, 18701, 1027, 18, 542, 1528, 12, 1293, 11611, 16, 16778, 18, 588, 1528, 10663, 18701, 368, 309, 16051, 25053, 18, 291, 1669, 7423, 10756, 16778, 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, 4697, 202, 482, 918, 498, 24624, 12, 653, 1133, 425, 13, 4697, 202, 95, 6862, 202, 6494, 2145, 33, 5743, 31, 6862, 202, 6494, 2002, 33, 5743, 31, 6862, 25083, 202, 4482, 225, 273, 425, 18, 856, 1085, 422, 348, 8588, 18, 985, 11226, 67, 10066, 225, 597, 1142, 67, 9815, 1349, 67, 3276, 631, 20, 31, 6862, 202, 430, 261, 25053, 5, 33, 2011, 597, 401, 25053, 18, 291, 1669, 7423, 10756, 6862, 202, 4083, 273, 425, 18, 856, 1085, 422, 348, 8588, 18, 985, 11226, 67, 11847, 597, 1142, 67, 9815, 1349, 67, 3276, 631, 25053, 18, 588, 1528, 7675, 2469, 5621, 6862, 25083, 202, 759, 315, 12278, 6877, 1746, 326, 977, 4858, 471, 1610, 326, 501, 2 ]
return "select count(*) from (" + sqlQuery.toString() + ")";
return "select count(*) from (" + sqlQuery.toString() + ") as foo";
String makeLevelMemberCountSql(RolapLevel level) { SqlQuery sqlQuery = newQuery( "while generating query to count members in level " + level); int levelDepth = level.getDepth(); RolapLevel[] levels = (RolapLevel[]) hierarchy.getLevels(); if (levelDepth == levels.length) { // "select count(*) from schema.customer" sqlQuery.addSelect("count(*)"); hierarchy.addToFrom(sqlQuery); return sqlQuery.toString(); } sqlQuery.setDistinct(true); for (int i = levelDepth; i >= 0; i--) { RolapLevel level2 = levels[i]; if (level2.isAll()) { continue; } sqlQuery.addSelect(sqlQuery.quoteIdentifier(level2.column)); if (level2.unique) { break; // no further qualification needed } } hierarchy.addToFrom(sqlQuery); return "select count(*) from (" + sqlQuery.toString() + ")"; }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/4c4f03eb140230cd53568dcd2b8f51e05663cbc4/SqlMemberSource.java/buggy/src/main/mondrian/rolap/SqlMemberSource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 780, 1221, 2355, 4419, 1380, 5101, 12, 4984, 438, 2355, 1801, 13, 202, 95, 202, 202, 5101, 1138, 24451, 273, 22955, 12, 1082, 202, 6, 17523, 12516, 843, 358, 1056, 4833, 316, 1801, 315, 397, 1801, 1769, 202, 202, 474, 1801, 6148, 273, 1801, 18, 588, 6148, 5621, 21114, 202, 4984, 438, 2355, 8526, 7575, 273, 261, 4984, 438, 2355, 63, 5717, 9360, 18, 588, 12240, 5621, 202, 202, 430, 261, 2815, 6148, 422, 7575, 18, 2469, 13, 288, 1082, 202, 759, 315, 4025, 1056, 24099, 628, 1963, 18, 10061, 6, 1082, 202, 4669, 1138, 18, 1289, 3391, 2932, 1883, 30857, 2225, 1769, 1082, 202, 17937, 18, 1289, 774, 1265, 12, 4669, 1138, 1769, 1082, 202, 2463, 24451, 18, 10492, 5621, 202, 202, 97, 202, 202, 4669, 1138, 18, 542, 23402, 12, 3767, 1769, 21114, 202, 1884, 261, 474, 277, 273, 1801, 6148, 31, 277, 1545, 374, 31, 277, 413, 13, 288, 26924, 202, 4984, 438, 2355, 1801, 22, 273, 7575, 63, 77, 15533, 26924, 202, 430, 261, 2815, 22, 18, 291, 1595, 10756, 288, 282, 9506, 202, 17143, 31, 26924, 202, 97, 1082, 202, 4669, 1138, 18, 1289, 3391, 12, 4669, 1138, 18, 6889, 3004, 12, 2815, 22, 18, 2827, 10019, 1082, 202, 430, 261, 2815, 22, 18, 6270, 13, 288, 9506, 202, 8820, 31, 368, 1158, 9271, 4544, 1480, 3577, 1082, 202, 97, 202, 202, 97, 202, 202, 17937, 18, 1289, 774, 1265, 12, 4669, 1138, 1769, 202, 202, 2463, 315, 4025, 1056, 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, 780, 1221, 2355, 4419, 1380, 5101, 12, 4984, 438, 2355, 1801, 13, 202, 95, 202, 202, 5101, 1138, 24451, 273, 22955, 12, 1082, 202, 6, 17523, 12516, 843, 358, 1056, 4833, 316, 1801, 315, 397, 1801, 1769, 202, 202, 474, 1801, 6148, 273, 1801, 18, 588, 6148, 5621, 21114, 202, 4984, 438, 2355, 8526, 7575, 273, 261, 4984, 438, 2355, 63, 5717, 9360, 18, 588, 12240, 5621, 202, 202, 430, 261, 2815, 6148, 422, 7575, 18, 2469, 13, 288, 1082, 202, 759, 315, 4025, 1056, 24099, 628, 1963, 18, 10061, 6, 1082, 202, 4669, 1138, 18, 1289, 3391, 2932, 1883, 30857, 2225, 1769, 1082, 202, 17937, 18, 1289, 774, 1265, 12, 4669, 1138, 1769, 1082, 202, 2463, 2 ]
String subSelectString = "SELECT LAYOUT_ID FROM UP_USER_PROFILE WHERE USER_ID=" + userId + " AND PROFILE_ID=" + profile.getProfileId(); LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + subSelectString); int layoutId = 0; rs = stmt.executeQuery(subSelectString); try { if (rs.next()) { layoutId = rs.getInt(1); if (rs.wasNull()) { layoutId = 0; } } } finally { rs.close(); }
int layoutId = this.getLayoutID(userId, profile.getProfileId());
public Document getUserLayout (IPerson person, UserProfile profile) throws Exception { int userId = person.getID(); int realUserId = userId; ResultSet rs; Connection con = RDBMServices.getConnection(); LocaleManager localeManager = profile.getLocaleManager(); RDBMServices.setAutoCommit(con, false); // May speed things up, can't hurt try { Document doc = DocumentFactory.getNewDocument(); Element root = doc.createElement("layout"); Statement stmt = con.createStatement(); // A separate statement is needed so as not to interfere with ResultSet // of statements used for queries Statement insertStmt = con.createStatement(); try { long startTime = System.currentTimeMillis(); // eventually, we need to fix template layout implementations so you can just do this: // int layoutId=profile.getLayoutId(); // but for now: String subSelectString = "SELECT LAYOUT_ID FROM UP_USER_PROFILE WHERE USER_ID=" + userId + " AND PROFILE_ID=" + profile.getProfileId(); LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + subSelectString); int layoutId = 0; rs = stmt.executeQuery(subSelectString); try { if (rs.next()) { layoutId = rs.getInt(1); if (rs.wasNull()) { layoutId = 0; } } } finally { rs.close(); } if (layoutId == 0) { // First time, grab the default layout for this user String sQuery = "SELECT USER_DFLT_USR_ID, USER_DFLT_LAY_ID FROM UP_USER WHERE USER_ID=" + userId; LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sQuery); rs = stmt.executeQuery(sQuery); try { rs.next(); userId = rs.getInt(1); layoutId = rs.getInt(2); } finally { rs.close(); } // Make sure the next struct id is set in case the user adds a channel sQuery = "SELECT NEXT_STRUCT_ID FROM UP_USER WHERE USER_ID=" + userId; LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sQuery); int nextStructId; rs = stmt.executeQuery(sQuery); try { rs.next(); nextStructId = rs.getInt(1); } finally { rs.close(); } int realNextStructId = 0; if (realUserId != userId) { // But never make the existing value SMALLER, change it only to make it LARGER // (so, get existing value) sQuery = "SELECT NEXT_STRUCT_ID FROM UP_USER WHERE USER_ID=" + realUserId; LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sQuery); rs = stmt.executeQuery(sQuery); try { rs.next(); realNextStructId = rs.getInt(1); } finally { rs.close(); } } if (nextStructId > realNextStructId) { sQuery = "UPDATE UP_USER SET NEXT_STRUCT_ID=" + nextStructId + " WHERE USER_ID=" + realUserId; LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sQuery); stmt.executeUpdate(sQuery); } /* insert row(s) into up_ss_user_atts */ sQuery = "DELETE FROM UP_SS_USER_ATTS WHERE USER_ID=" + realUserId; LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sQuery); stmt.executeUpdate(sQuery); // modifed INSERT INTO SELECT statement for MySQL support sQuery = " SELECT "+realUserId+", PROFILE_ID, SS_ID, SS_TYPE, STRUCT_ID, PARAM_NAME, PARAM_TYPE, PARAM_VAL "+ " FROM UP_SS_USER_ATTS WHERE USER_ID="+userId; rs = stmt.executeQuery(sQuery); while (rs.next()) { String Insert = "INSERT INTO UP_SS_USER_ATTS (USER_ID, PROFILE_ID, SS_ID, SS_TYPE, STRUCT_ID, PARAM_NAME, PARAM_TYPE, PARAM_VAL) " + "VALUES("+realUserId+","+ rs.getInt("PROFILE_ID")+","+ rs.getInt("SS_ID")+"," + rs.getInt("SS_TYPE")+"," + rs.getInt("STRUCT_ID")+"," + "'"+rs.getString("PARAM_NAME")+"'," + rs.getInt("PARAM_TYPE")+"," + "'"+rs.getString("PARAM_VAL")+"')"; LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + Insert); insertStmt.executeUpdate(Insert); } // Close Result Set if ( rs != null ) rs.close(); RDBMServices.commit(con); // Make sure it appears in the store } int firstStructId = -1; String sQuery = "SELECT INIT_STRUCT_ID FROM UP_USER_LAYOUT WHERE USER_ID=" + userId + " AND LAYOUT_ID = " + layoutId; LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sQuery); rs = stmt.executeQuery(sQuery); try { if (rs.next()) { firstStructId = rs.getInt(1); } else { throw new Exception("RDBMUserLayoutStore::getUserLayout(): No INIT_STRUCT_ID in UP_USER_LAYOUT for " + userId + " and LAYOUT_ID " + layoutId); } } finally { rs.close(); } String sql; if (localeAware) { // This needs to be changed to get the localized strings sql = "SELECT ULS.STRUCT_ID,ULS.NEXT_STRUCT_ID,ULS.CHLD_STRUCT_ID,ULS.CHAN_ID,ULS.NAME,ULS.TYPE,ULS.HIDDEN,"+ "ULS.UNREMOVABLE,ULS.IMMUTABLE"; } else { sql = "SELECT ULS.STRUCT_ID,ULS.NEXT_STRUCT_ID,ULS.CHLD_STRUCT_ID,ULS.CHAN_ID,ULS.NAME,ULS.TYPE,ULS.HIDDEN,"+ "ULS.UNREMOVABLE,ULS.IMMUTABLE"; } if (RDBMServices.supportsOuterJoins) { sql += ",USP.STRUCT_PARM_NM,USP.STRUCT_PARM_VAL FROM " + RDBMServices.joinQuery.getQuery("layout"); } else { sql += " FROM UP_LAYOUT_STRUCT ULS WHERE "; } sql += " ULS.USER_ID=" + userId + " AND ULS.LAYOUT_ID=" + layoutId + " ORDER BY ULS.STRUCT_ID"; HashMap layoutStructure = new HashMap(); LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sql); StringBuffer structChanIds = new StringBuffer(); rs = stmt.executeQuery(sql); try { int lastStructId = 0; LayoutStructure ls = null; String sepChar = ""; if (rs.next()) { int structId = rs.getInt(1); // Result Set returns 0 by default if structId was null // Except if you are using poolman 2.0.4 in which case you get -1 back if (rs.wasNull()) { structId = 0; } readLayout: while (true) { if (DEBUG > 1) System.err.println("Found layout structureID " + structId); int nextId = rs.getInt(2); if (rs.wasNull()) { nextId = 0; } int childId = rs.getInt(3); if (rs.wasNull()) { childId = 0; } int chanId = rs.getInt(4); if (rs.wasNull()) { chanId = 0; } String temp5=rs.getString(5); // Some JDBC drivers require columns accessed in order String temp6=rs.getString(6); // Access 5 and 6 now, save till needed. // uPortal i18n int name_index, value_index; if (localeAware) { ls = new LayoutStructure(structId, nextId, childId, chanId, rs.getString(7),rs.getString(8),rs.getString(9),localeManager.getLocales()[0].toString()); name_index=10; value_index=11; } else { ls = new LayoutStructure(structId, nextId, childId, chanId, rs.getString(7),rs.getString(8),rs.getString(9)); name_index=10; value_index=11; } layoutStructure.put(new Integer(structId), ls); lastStructId = structId; if (!ls.isChannel()) { ls.addFolderData(temp5, temp6); // Plug in saved column values } if (RDBMServices.supportsOuterJoins) { do { String name = rs.getString(name_index); String value = rs.getString(value_index); // Oracle JDBC requires us to do this for longs if (name != null) { // may not be there because of the join ls.addParameter(name, value); } if (!rs.next()) { break readLayout; } structId = rs.getInt(1); if (rs.wasNull()) { structId = 0; } } while (structId == lastStructId); } else { // Do second SELECT later on for structure parameters if (ls.isChannel()) { structChanIds.append(sepChar + ls.chanId); sepChar = ","; } if (rs.next()) { structId = rs.getInt(1); if (rs.wasNull()) { structId = 0; } } else { break readLayout; } } } // while } } finally { rs.close(); } if (!RDBMServices.supportsOuterJoins) { // Pick up structure parameters // first, get the struct ids for the channels sql = "SELECT STRUCT_ID FROM UP_LAYOUT_STRUCT WHERE USER_ID=" + userId + " AND LAYOUT_ID=" + layoutId + " AND CHAN_ID IN (" + structChanIds.toString() + ") ORDER BY STRUCT_ID"; LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sql); StringBuffer structIdsSB = new StringBuffer( "" ); String sep = ""; rs = stmt.executeQuery(sql); try { // use the results to build a correct list of struct ids to look for while( rs.next()) { structIdsSB.append(sep + rs.getString(1)); sep = ","; }// while } finally { rs.close(); } // be a good doobie sql = "SELECT STRUCT_ID, STRUCT_PARM_NM,STRUCT_PARM_VAL FROM UP_LAYOUT_PARAM WHERE USER_ID=" + userId + " AND LAYOUT_ID=" + layoutId + " AND STRUCT_ID IN (" + structIdsSB.toString() + ") ORDER BY STRUCT_ID"; LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sql); rs = stmt.executeQuery(sql); try { if (rs.next()) { int structId = rs.getInt(1); readParm: while(true) { LayoutStructure ls = (LayoutStructure)layoutStructure.get(new Integer(structId)); int lastStructId = structId; do { ls.addParameter(rs.getString(2), rs.getString(3)); if (!rs.next()) { break readParm; } } while ((structId = rs.getInt(1)) == lastStructId); } } } finally { rs.close(); } } if (layoutStructure.size() > 0) { // We have a layout to work with createLayout(layoutStructure, doc, root, firstStructId); layoutStructure.clear(); long stopTime = System.currentTimeMillis(); LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): Layout document for user " + userId + " took " + (stopTime - startTime) + " milliseconds to create"); doc.appendChild(root); if (DEBUG > 1) { System.err.println("--> created document"); dumpDoc(doc, ""); System.err.println("<--"); } } } finally { stmt.close(); insertStmt.close(); } return doc; } finally { RDBMServices.releaseConnection(con); } }
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/7be529899e68b22d93d233b1cf65cfe84e5b74ad/RDBMUserLayoutStore.java/buggy/source/org/jasig/portal/RDBMUserLayoutStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4319, 4735, 3744, 261, 2579, 3565, 6175, 16, 2177, 4029, 3042, 13, 1216, 1185, 288, 565, 509, 6249, 273, 6175, 18, 588, 734, 5621, 565, 509, 2863, 10502, 273, 6249, 31, 565, 10842, 3597, 31, 565, 4050, 356, 273, 534, 2290, 49, 5676, 18, 588, 1952, 5621, 565, 6458, 1318, 2573, 1318, 273, 3042, 18, 588, 3916, 1318, 5621, 565, 534, 2290, 49, 5676, 18, 542, 4965, 5580, 12, 591, 16, 629, 1769, 1850, 368, 16734, 8632, 9198, 731, 16, 848, 1404, 366, 295, 88, 565, 775, 288, 1377, 4319, 997, 273, 4319, 1733, 18, 588, 1908, 2519, 5621, 1377, 3010, 1365, 273, 997, 18, 2640, 1046, 2932, 6741, 8863, 1377, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 1377, 368, 432, 9004, 3021, 353, 3577, 1427, 487, 486, 358, 1554, 586, 73, 598, 10842, 1377, 368, 434, 6317, 1399, 364, 6218, 1377, 8056, 2243, 8952, 273, 356, 18, 2640, 3406, 5621, 1377, 775, 288, 3639, 1525, 8657, 273, 2332, 18, 2972, 28512, 5621, 3639, 368, 18011, 16, 732, 1608, 358, 2917, 1542, 3511, 16164, 1427, 1846, 848, 2537, 741, 333, 30, 3639, 368, 3639, 509, 3511, 548, 33, 5040, 18, 588, 3744, 548, 5621, 3639, 368, 1496, 364, 2037, 30, 3639, 514, 720, 3391, 780, 273, 315, 4803, 25239, 5069, 67, 734, 4571, 7376, 67, 4714, 67, 22462, 4852, 7443, 67, 734, 1546, 397, 6249, 397, 315, 4116, 4629, 3776, 67, 734, 1546, 397, 3042, 18, 588, 4029, 548, 5621, 3639, 1827, 1179, 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, 282, 1071, 4319, 4735, 3744, 261, 2579, 3565, 6175, 16, 2177, 4029, 3042, 13, 1216, 1185, 288, 565, 509, 6249, 273, 6175, 18, 588, 734, 5621, 565, 509, 2863, 10502, 273, 6249, 31, 565, 10842, 3597, 31, 565, 4050, 356, 273, 534, 2290, 49, 5676, 18, 588, 1952, 5621, 565, 6458, 1318, 2573, 1318, 273, 3042, 18, 588, 3916, 1318, 5621, 565, 534, 2290, 49, 5676, 18, 542, 4965, 5580, 12, 591, 16, 629, 1769, 1850, 368, 16734, 8632, 9198, 731, 16, 848, 1404, 366, 295, 88, 565, 775, 288, 1377, 4319, 997, 273, 4319, 1733, 18, 588, 1908, 2519, 5621, 1377, 3010, 1365, 273, 997, 18, 2640, 1046, 2932, 6741, 8863, 1377, 8056, 3480, 273, 356, 18, 2640, 2 ]
if( super.matchLevel( node, limit ) == IMPOSSIBLE_MATCH ){
String nodeName = ((IASTOffsetableNamedElement)node).getName(); if( simpleName != null && !matchesName( simpleName, nodeName.toCharArray() ) ){
public int matchLevel(ISourceElementCallbackDelegate node, LimitTo limit ) { if( !(node instanceof IASTField) ){ return IMPOSSIBLE_MATCH; } if( super.matchLevel( node, limit ) == IMPOSSIBLE_MATCH ){ return IMPOSSIBLE_MATCH; } //check containing scopes //create char[][] out of full name, String [] fullName = ((IASTQualifiedNameElement) node).getFullyQualifiedName(); char [][] qualName = new char [ fullName.length - 1 ][]; for( int i = 0; i < fullName.length - 1; i++ ){ qualName[i] = fullName[i].toCharArray(); } //check containing scopes if( !matchQualifications( qualifications, qualName ) ){ return IMPOSSIBLE_MATCH; } return ACCURATE_MATCH; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/04453687f088c5f51595b22b872f592fea0fa99c/FieldDeclarationPattern.java/clean/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/FieldDeclarationPattern.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 845, 2355, 12, 45, 1830, 1046, 2428, 9586, 756, 16, 7214, 774, 1800, 262, 288, 202, 202, 430, 12, 401, 12, 2159, 1276, 467, 9053, 974, 13, 262, 95, 1082, 202, 2463, 6246, 2419, 1260, 13450, 900, 67, 11793, 31, 202, 202, 97, 9506, 202, 430, 12, 2240, 18, 1916, 2355, 12, 756, 16, 1800, 262, 422, 6246, 2419, 1260, 13450, 900, 67, 11793, 262, 95, 1082, 202, 2463, 6246, 2419, 1260, 13450, 900, 67, 11793, 31, 202, 202, 97, 9506, 202, 759, 1893, 4191, 8124, 202, 202, 759, 2640, 1149, 63, 6362, 65, 596, 434, 1983, 508, 16, 3196, 202, 780, 5378, 12424, 273, 14015, 45, 9053, 12345, 1046, 13, 756, 2934, 588, 16999, 12345, 5621, 202, 202, 3001, 5378, 8526, 4544, 461, 273, 394, 1149, 306, 12424, 18, 2469, 300, 404, 308, 8526, 31, 202, 202, 1884, 12, 509, 277, 273, 374, 31, 277, 411, 12424, 18, 2469, 300, 404, 31, 277, 9904, 262, 95, 1082, 202, 3369, 461, 63, 77, 65, 273, 12424, 63, 77, 8009, 869, 15936, 5621, 202, 202, 97, 202, 202, 759, 1893, 4191, 8124, 202, 202, 430, 12, 401, 1916, 5628, 6640, 12, 4544, 6640, 16, 4544, 461, 262, 262, 95, 1082, 202, 2463, 6246, 2419, 1260, 13450, 900, 67, 11793, 31, 202, 202, 97, 9506, 202, 2463, 18816, 1099, 1777, 67, 11793, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 845, 2355, 12, 45, 1830, 1046, 2428, 9586, 756, 16, 7214, 774, 1800, 262, 288, 202, 202, 430, 12, 401, 12, 2159, 1276, 467, 9053, 974, 13, 262, 95, 1082, 202, 2463, 6246, 2419, 1260, 13450, 900, 67, 11793, 31, 202, 202, 97, 9506, 202, 430, 12, 2240, 18, 1916, 2355, 12, 756, 16, 1800, 262, 422, 6246, 2419, 1260, 13450, 900, 67, 11793, 262, 95, 1082, 202, 2463, 6246, 2419, 1260, 13450, 900, 67, 11793, 31, 202, 202, 97, 9506, 202, 759, 1893, 4191, 8124, 202, 202, 759, 2640, 1149, 63, 6362, 65, 596, 434, 1983, 508, 16, 3196, 202, 780, 5378, 12424, 273, 14015, 45, 9053, 12345, 1046, 13, 756, 2934, 588, 16999, 2 ]
public Object open() { Shell parent = getParent(); Display display = parent.getDisplay(); shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE); props.setLook(shell); lsMod = new ModifyListener() { public void modifyText(ModifyEvent e) { input.setChanged(); } }; changed = input.hasChanged(); FormLayout formLayout = new FormLayout (); formLayout.marginWidth = Const.FORM_MARGIN; formLayout.marginHeight = Const.FORM_MARGIN; shell.setLayout(formLayout); shell.setText(Messages.getString("TransHopDialog.Shell.Label")); //$NON-NLS-1$ int middle = props.getMiddlePct(); int margin = Const.MARGIN; int width = 0; // From step line wlFrom=new Label(shell, SWT.RIGHT); wlFrom.setText(Messages.getString("TransHopDialog.FromStep.Label")); //$NON-NLS-1$ props.setLook(wlFrom); fdlFrom=new FormData(); fdlFrom.left = new FormAttachment(0, 0); fdlFrom.right= new FormAttachment(middle, -margin); fdlFrom.top = new FormAttachment(0, margin); wlFrom.setLayoutData(fdlFrom); wFrom=new CCombo(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER); wFrom.setText(Messages.getString("TransHopDialog.FromStepDropdownList.Label")); //$NON-NLS-1$ props.setLook(wFrom); for (int i=0;i<transMeta.nrSteps();i++) { StepMeta stepMeta = transMeta.getStep(i); wFrom.add(stepMeta.getName()); } wFrom.addModifyListener(lsMod); fdFrom=new FormData(); fdFrom.left = new FormAttachment(middle, 0); fdFrom.top = new FormAttachment(0, margin); fdFrom.right= new FormAttachment(100, 0); wFrom.setLayoutData(fdFrom); // To line wlTo=new Label(shell, SWT.RIGHT); wlTo.setText(Messages.getString("TransHopDialog.TargetStep.Label")); //$NON-NLS-1$ props.setLook(wlTo); fdlTo=new FormData(); fdlTo.left = new FormAttachment(0, 0); fdlTo.right= new FormAttachment(middle, -margin); fdlTo.top = new FormAttachment(wFrom, margin); wlTo.setLayoutData(fdlTo); wTo=new CCombo(shell, SWT.BORDER | SWT.READ_ONLY); wTo.setText(Messages.getString("TransHopDialog.TargetStepDropdownList.Label")); //$NON-NLS-1$ props.setLook(wTo); for (int i=0;i<transMeta.nrSteps();i++) { StepMeta stepMeta = transMeta.getStep(i); wTo.add(stepMeta.getName()); } wTo.addModifyListener(lsMod); fdTo=new FormData(); fdTo.left = new FormAttachment(middle, 0); fdTo.top = new FormAttachment(wFrom, margin); fdTo.right= new FormAttachment(100, 0); wTo.setLayoutData(fdTo); // Enabled? wlEnabled=new Label(shell, SWT.RIGHT); wlEnabled.setText(Messages.getString("TransHopDialog.EnableHop.Label")); //$NON-NLS-1$ props.setLook(wlEnabled); fdlEnabled=new FormData(); fdlEnabled.left = new FormAttachment(0, 0); fdlEnabled.right= new FormAttachment(middle, -margin); fdlEnabled.top = new FormAttachment(wlTo, margin*5); wlEnabled.setLayoutData(fdlEnabled); wEnabled=new Button(shell, SWT.CHECK); props.setLook(wEnabled); fdEnabled=new FormData(); fdEnabled.left = new FormAttachment(middle, 0); fdEnabled.top = new FormAttachment(wlTo, margin*5); wEnabled.setLayoutData(fdEnabled); wEnabled.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { input.setEnabled( !input.isEnabled()); input.setChanged(); } } ); wFlip = new Button(shell, SWT.PUSH); wFlip.setText(Messages.getString("TransHopDialog.FromTo.Button")); //$NON-NLS-1$ fdFlip = new FormData(); fdFlip.left = new FormAttachment(wEnabled, margin*5); fdFlip.top = new FormAttachment(wlTo, margin*5); wFlip.setLayoutData(fdFlip); // Some buttons wOK=new Button(shell, SWT.PUSH); wOK.setText(Messages.getString("TransHopDialog.OK.Button")); //$NON-NLS-1$ wOK.pack(true); Rectangle rOK = wOK.getBounds(); wCancel=new Button(shell, SWT.PUSH); wCancel.setText(Messages.getString("System.Button.Cancel")); //$NON-NLS-1$ wCancel.pack(true); Rectangle rCancel = wCancel.getBounds(); width = (rOK.width > rCancel.width ? rOK.width : rCancel.width); width += margin; fdOK=new FormData(); fdOK.top = new FormAttachment(wFlip, margin*5); fdOK.left = new FormAttachment(50, -width); fdOK.right = new FormAttachment(50, -(margin/2)); //fdOK.bottom = new FormAttachment(100, 0); wOK.setLayoutData(fdOK); fdCancel=new FormData(); fdCancel.top = new FormAttachment(wFlip, margin*5); fdCancel.left = new FormAttachment(50, margin/2); fdCancel.right = new FormAttachment(50, width); //fdCancel.bottom = new FormAttachment(100, 0); wCancel.setLayoutData(fdCancel); // Add listeners lsCancel = new Listener() { public void handleEvent(Event e) { cancel(); } }; lsOK = new Listener() { public void handleEvent(Event e) { ok(); } }; lsFlip = new Listener() { public void handleEvent(Event e) { flip(); } }; wOK.addListener (SWT.Selection, lsOK ); wCancel.addListener(SWT.Selection, lsCancel ); wFlip.addListener (SWT.Selection, lsFlip ); // Detect [X] or ALT-F4 or something that kills this window... shell.addShellListener( new ShellAdapter() { public void shellClosed(ShellEvent e) { cancel(); } } ); getData(); WindowProperty winprop = props.getScreen(shell.getText()); if (winprop!=null) winprop.setShell(shell); else shell.pack(); input.setChanged(changed); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } return input; }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/af8fb85595814355051e1d978057a8eaf52f7d66/TransHopDialog.java/buggy/kettle/src/be/ibridge/kettle/trans/dialog/TransHopDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 1696, 1435, 202, 95, 202, 202, 13220, 982, 273, 5089, 5621, 202, 202, 4236, 2562, 273, 982, 18, 588, 4236, 5621, 202, 202, 10304, 273, 394, 19433, 12, 2938, 16, 348, 8588, 18, 2565, 18683, 67, 6566, 49, 571, 348, 8588, 18, 862, 4574, 1769, 3196, 202, 9693, 18, 542, 9794, 12, 10304, 1769, 9506, 202, 3251, 1739, 273, 394, 9518, 2223, 1435, 3196, 202, 95, 1082, 202, 482, 918, 5612, 1528, 12, 11047, 1133, 425, 13, 1875, 202, 95, 9506, 202, 2630, 18, 542, 5033, 5621, 1082, 202, 97, 202, 202, 20451, 202, 202, 6703, 273, 810, 18, 5332, 5033, 5621, 202, 202, 1204, 3744, 646, 3744, 273, 394, 2748, 3744, 261, 1769, 202, 202, 687, 3744, 18, 10107, 2384, 225, 273, 9333, 18, 4983, 67, 19772, 7702, 31, 202, 202, 687, 3744, 18, 10107, 2686, 273, 9333, 18, 4983, 67, 19772, 7702, 31, 202, 202, 10304, 18, 542, 3744, 12, 687, 3744, 1769, 202, 202, 10304, 18, 542, 1528, 12, 5058, 18, 588, 780, 2932, 1429, 27461, 6353, 18, 13220, 18, 2224, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 474, 7689, 273, 3458, 18, 588, 21924, 52, 299, 5621, 202, 202, 474, 7333, 273, 9333, 18, 19772, 7702, 31, 3639, 509, 1835, 273, 374, 31, 540, 202, 202, 759, 6338, 2235, 980, 202, 202, 21504, 1265, 33, 2704, 5287, 12, 10304, 16, 348, 8588, 18, 11847, 1769, 202, 202, 21504, 1265, 18, 542, 1528, 12, 5058, 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, 482, 1033, 1696, 1435, 202, 95, 202, 202, 13220, 982, 273, 5089, 5621, 202, 202, 4236, 2562, 273, 982, 18, 588, 4236, 5621, 202, 202, 10304, 273, 394, 19433, 12, 2938, 16, 348, 8588, 18, 2565, 18683, 67, 6566, 49, 571, 348, 8588, 18, 862, 4574, 1769, 3196, 202, 9693, 18, 542, 9794, 12, 10304, 1769, 9506, 202, 3251, 1739, 273, 394, 9518, 2223, 1435, 3196, 202, 95, 1082, 202, 482, 918, 5612, 1528, 12, 11047, 1133, 425, 13, 1875, 202, 95, 9506, 202, 2630, 18, 542, 5033, 5621, 1082, 202, 97, 202, 202, 20451, 202, 202, 6703, 273, 810, 18, 5332, 5033, 5621, 202, 202, 1204, 3744, 646, 3744, 273, 394, 2748, 3744, 261, 1769, 202, 2 ]
_t = __t2229;
_t = __t2235;
public final void return_options(AST _t) throws RecognitionException { AST return_options_AST_in = (_t == ASTNULL) ? null : (AST)_t; { boolean synPredMatched2230 = false; if (_t==null) _t=ASTNULL; if (((_tokenSet_3.member(_t.getType())))) { AST __t2230 = _t; synPredMatched2230 = true; inputState.guessing++; try { { AST __t2229 = _t; AST tmp2313_AST_in = (AST)_t; match(_t,ERROR); _t = _t.getFirstChild(); AST tmp2314_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); AST tmp2315_AST_in = (AST)_t; match(_t,RECORD_NAME); _t = _t.getNextSibling(); AST tmp2316_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t2229; _t = _t.getNextSibling(); } } catch (RecognitionException pe) { synPredMatched2230 = false; } _t = __t2230;inputState.guessing--; } if ( synPredMatched2230 ) { expression(_t); _t = _retTree; } else { boolean synPredMatched2232 = false; if (_t==null) _t=ASTNULL; if (((_t.getType()==ERROR))) { AST __t2232 = _t; synPredMatched2232 = true; inputState.guessing++; try { { AST tmp2317_AST_in = (AST)_t; match(_t,ERROR); _t = _t.getNextSibling(); } } catch (RecognitionException pe) { synPredMatched2232 = false; } _t = __t2232;inputState.guessing--; } if ( synPredMatched2232 ) { AST tmp2318_AST_in = (AST)_t; match(_t,ERROR); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; } else if ((_t.getType()==EOF||_t.getType()==3||_t.getType()==PERIOD)) { } else { throw new NoViableAltException(_t); } } } else if ((_t.getType()==NOAPPLY)) { AST tmp2319_AST_in = (AST)_t; match(_t,NOAPPLY); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; } else if ((_t.getType()==EOF||_t.getType()==3||_t.getType()==PERIOD)) { } else { throw new NoViableAltException(_t); } } } else if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } } _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, 327, 67, 2116, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 327, 67, 2116, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 95, 202, 202, 6494, 6194, 10391, 15400, 3787, 5082, 273, 629, 31, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 430, 261, 12443, 67, 2316, 694, 67, 23, 18, 5990, 24899, 88, 18, 588, 559, 1435, 3719, 3719, 288, 1082, 202, 9053, 1001, 88, 3787, 5082, 273, 389, 88, 31, 1082, 202, 11982, 10391, 15400, 3787, 5082, 273, 638, 31, 1082, 202, 2630, 1119, 18, 20885, 310, 9904, 31, 1082, 202, 698, 288, 9506, 202, 95, 9506, 202, 9053, 1001, 88, 3787, 5540, 273, 389, 88, 31, 9506, 202, 9053, 1853, 4366, 3437, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 9506, 202, 1916, 24899, 88, 16, 3589, 1769, 9506, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 9506, 202, 9053, 1853, 4366, 3461, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 9506, 202, 1916, 24899, 88, 16, 10066, 15111, 1769, 9506, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 9506, 202, 9053, 1853, 4366, 3600, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 9506, 202, 1916, 24899, 88, 16, 22261, 67, 1985, 1769, 9506, 202, 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, 327, 67, 2116, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 327, 67, 2116, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 95, 202, 202, 6494, 6194, 10391, 15400, 3787, 5082, 273, 629, 31, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 430, 261, 12443, 67, 2316, 694, 67, 23, 18, 5990, 24899, 88, 18, 588, 559, 1435, 3719, 3719, 288, 1082, 202, 9053, 1001, 88, 3787, 5082, 273, 389, 88, 31, 1082, 202, 11982, 10391, 15400, 3787, 5082, 273, 638, 31, 1082, 202, 2630, 1119, 18, 2 ]
int target; if (lead == BasicListUI.this.list.getFirstVisibleIndex()) { target = Math.max (0, lead - (BasicListUI.this.list.getLastVisibleIndex() - BasicListUI.this.list.getFirstVisibleIndex() + 1)); } else { target = BasicListUI.this.list.getFirstVisibleIndex(); } if (evt.getModifiers() == 0) BasicListUI.this.list.setSelectedIndex(target); else if (evt.getModifiers() == InputEvent.SHIFT_MASK) BasicListUI.this.list.getSelectionModel(). setLeadSelectionIndex(target);
public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // javax.swing.plaf.basic.BasicLookAndFeel.java if ((evt.getKeyCode() == KeyEvent.VK_DOWN) || (evt.getKeyCode() == KeyEvent.VK_KP_DOWN)) { if (!evt.isShiftDown()) { BasicListUI.this.list.clearSelection(); BasicListUI.this.list.setSelectedIndex(Math.min(lead+1,max)); } else { BasicListUI.this.list.getSelectionModel(). setLeadSelectionIndex(Math.min(lead+1,max)); } } else if ((evt.getKeyCode() == KeyEvent.VK_UP) || (evt.getKeyCode() == KeyEvent.VK_KP_UP)) { if (!evt.isShiftDown()) { BasicListUI.this.list.clearSelection(); BasicListUI.this.list.setSelectedIndex(Math.max(lead-1,0)); } else { BasicListUI.this.list.getSelectionModel(). setLeadSelectionIndex(Math.max(lead-1,0)); } } else if (evt.getKeyCode() == KeyEvent.VK_PAGE_UP) { // FIXME: implement, need JList.ensureIndexIsVisible to work } else if (evt.getKeyCode() == KeyEvent.VK_PAGE_DOWN) { // FIXME: implement, need JList.ensureIndexIsVisible to work } else if (evt.getKeyCode() == KeyEvent.VK_BACK_SLASH && evt.isControlDown()) { BasicListUI.this.list.clearSelection(); } else if ((evt.getKeyCode() == KeyEvent.VK_HOME) || evt.getKeyCode() == KeyEvent.VK_END) { // index is either 0 for HOME, or last cell for END int index = (evt.getKeyCode() == KeyEvent.VK_HOME) ? 0 : max; if (!evt.isShiftDown() ||(BasicListUI.this.list.getSelectionMode() == ListSelectionModel.SINGLE_SELECTION)) BasicListUI.this.list.setSelectedIndex(index); else if (BasicListUI.this.list.getSelectionMode() == ListSelectionModel.SINGLE_INTERVAL_SELECTION) BasicListUI.this.list.setSelectionInterval (BasicListUI.this.list.getAnchorSelectionIndex(), index); else BasicListUI.this.list.getSelectionModel(). setLeadSelectionIndex(index); } else if ((evt.getKeyCode() == KeyEvent.VK_A || evt.getKeyCode() == KeyEvent.VK_SLASH) && evt.isControlDown()) { BasicListUI.this.list.setSelectionInterval(0, max); // this next line is to restore the lead selection index to the old // position, because select-all should not change the lead index BasicListUI.this.list.addSelectionInterval(lead, lead); } else if (evt.getKeyCode() == KeyEvent.VK_SPACE && evt.isControlDown()) { BasicListUI.this.list.getSelectionModel(). setLeadSelectionIndex(Math.min(lead+1,max)); } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 509, 1018, 31, 309, 261, 24429, 422, 7651, 682, 5370, 18, 2211, 18, 1098, 18, 588, 3759, 6207, 1016, 10756, 288, 1018, 273, 2361, 18, 1896, 261, 20, 16, 5871, 300, 261, 8252, 682, 5370, 18, 2211, 18, 1098, 18, 588, 3024, 6207, 1016, 1435, 300, 7651, 682, 5370, 18, 2211, 18, 1098, 18, 588, 3759, 6207, 1016, 1435, 397, 404, 10019, 289, 469, 288, 1018, 273, 7651, 682, 5370, 18, 2211, 18, 1098, 18, 588, 3759, 6207, 1016, 5621, 289, 309, 261, 73, 11734, 18, 588, 11948, 1435, 422, 374, 13, 7651, 682, 5370, 18, 2211, 18, 1098, 18, 542, 7416, 1016, 12, 3299, 1769, 469, 309, 261, 73, 11734, 18, 588, 11948, 1435, 422, 2741, 1133, 18, 23191, 67, 11704, 13, 7651, 682, 5370, 18, 2211, 18, 1098, 18, 588, 6233, 1488, 7675, 444, 9678, 6233, 1016, 12, 3299, 1769, 509, 1018, 31, 309, 261, 24429, 422, 7651, 682, 5370, 18, 2211, 18, 1098, 18, 588, 3759, 6207, 1016, 10756, 288, 1018, 273, 2361, 18, 1896, 261, 20, 16, 5871, 300, 261, 8252, 682, 5370, 18, 2211, 18, 1098, 18, 588, 3024, 6207, 1016, 1435, 300, 7651, 682, 5370, 18, 2211, 18, 1098, 18, 588, 3759, 6207, 1016, 1435, 397, 404, 10019, 289, 469, 288, 1018, 273, 7651, 682, 5370, 18, 2211, 18, 1098, 18, 588, 3759, 6207, 1016, 5621, 289, 309, 261, 73, 11734, 18, 588, 11948, 1435, 422, 374, 13, 7651, 682, 5370, 18, 2211, 18, 1098, 18, 542, 7416, 1016, 12, 3299, 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, 509, 1018, 31, 309, 261, 24429, 422, 7651, 682, 5370, 18, 2211, 18, 1098, 18, 588, 3759, 6207, 1016, 10756, 288, 1018, 273, 2361, 18, 1896, 261, 20, 16, 5871, 300, 261, 8252, 682, 5370, 18, 2211, 18, 1098, 18, 588, 3024, 6207, 1016, 1435, 300, 7651, 682, 5370, 18, 2211, 18, 1098, 18, 588, 3759, 6207, 1016, 1435, 397, 404, 10019, 289, 469, 288, 1018, 273, 7651, 682, 5370, 18, 2211, 18, 1098, 18, 588, 3759, 6207, 1016, 5621, 289, 309, 261, 73, 11734, 18, 588, 11948, 1435, 422, 374, 13, 7651, 682, 5370, 18, 2211, 18, 1098, 18, 542, 7416, 1016, 12, 3299, 1769, 469, 309, 261, 73, 11734, 18, 588, 11948, 1435, 422, 2741, 1133, 18, 2 ]
Object source = evt.getSource(); if(source == showNextTime) { jEdit.setBooleanProperty("tip.show",showNextTime .isSelected()); } else if(source == nextTip) nextTip(); else if(source == close) dispose();
jEdit.setBooleanProperty("tip.show",showNextTime .isSelected());
public void actionPerformed(ActionEvent evt) { Object source = evt.getSource(); if(source == showNextTime) { jEdit.setBooleanProperty("tip.show",showNextTime .isSelected()); } else if(source == nextTip) nextTip(); else if(source == close) dispose(); }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/68dbdd95261b9680d2664b2510a57645537de714/TipOfTheDay.java/clean/org/gjt/sp/jedit/gui/TipOfTheDay.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 26100, 12, 1803, 1133, 6324, 13, 1082, 202, 95, 9506, 202, 921, 1084, 273, 6324, 18, 588, 1830, 5621, 9506, 202, 430, 12, 3168, 422, 2405, 2134, 950, 13, 9506, 202, 95, 6862, 202, 78, 4666, 18, 542, 5507, 1396, 2932, 14587, 18, 4500, 3113, 4500, 2134, 950, 25083, 202, 18, 291, 7416, 10663, 9506, 202, 97, 9506, 202, 12107, 309, 12, 3168, 422, 1024, 14189, 13, 6862, 202, 4285, 14189, 5621, 9506, 202, 12107, 309, 12, 3168, 422, 1746, 13, 6862, 202, 2251, 4150, 5621, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 26100, 12, 1803, 1133, 6324, 13, 1082, 202, 95, 9506, 202, 921, 1084, 273, 6324, 18, 588, 1830, 5621, 9506, 202, 430, 12, 3168, 422, 2405, 2134, 950, 13, 9506, 202, 95, 6862, 202, 78, 4666, 18, 542, 5507, 1396, 2932, 14587, 18, 4500, 3113, 4500, 2134, 950, 25083, 202, 18, 291, 7416, 10663, 9506, 202, 97, 9506, 202, 12107, 309, 12, 3168, 422, 1024, 14189, 13, 6862, 202, 4285, 14189, 5621, 9506, 202, 12107, 309, 12, 3168, 422, 1746, 13, 6862, 202, 2251, 4150, 5621, 1082, 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 ]
query.addHit(new MockQueryHit(taskList, repositoryUrl, task.getDescription(), "1"));
query.addHit(new MockQueryHit(taskList, repositoryUrl, task.getSummary(), "1"));
public void testDeleteRepositoryTask() { String repositoryUrl = "http://somewhere.com"; repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND, repositoryUrl); TasksUiPlugin.getRepositoryManager().addRepository(repository, TasksUiPlugin.getDefault().getRepositoriesFilePath()); MockRepositoryTask task = new MockRepositoryTask(repositoryUrl + "-1"); TaskList taskList = TasksUiPlugin.getTaskListManager().getTaskList(); taskList.moveToRoot(task); MockRepositoryQuery query = new MockRepositoryQuery("query", taskList); MockQueryHit hit = new MockQueryHit(taskList, repositoryUrl, task.getDescription(), "1"); hit.setCorrespondingTask(task); query.addHit(new MockQueryHit(taskList, repositoryUrl, task.getDescription(), "1")); taskList.addQuery(query); assertEquals(1, taskList.getAllTasks().size()); assertEquals(1, taskList.getRootTasks().size()); taskList.deleteTask(task); assertEquals(0, taskList.getAllTasks().size()); assertEquals(0, taskList.getRootTasks().size()); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/ec77cffc1535ed84f2f5f66fcf44a0b9753c54e8/TaskListManagerTest.java/buggy/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListManagerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2613, 3305, 2174, 1435, 288, 202, 202, 780, 3352, 1489, 273, 315, 2505, 2207, 87, 362, 359, 14852, 18, 832, 14432, 202, 202, 9071, 273, 394, 3837, 3305, 12, 9865, 3305, 7487, 18, 862, 30986, 67, 47, 2356, 16, 3352, 1489, 1769, 202, 202, 6685, 13943, 3773, 18, 588, 3305, 1318, 7675, 1289, 3305, 12, 9071, 16, 9506, 202, 6685, 13943, 3773, 18, 588, 1868, 7675, 588, 18429, 5598, 10663, 202, 202, 9865, 3305, 2174, 1562, 273, 394, 7867, 3305, 2174, 12, 9071, 1489, 397, 3701, 21, 8863, 202, 202, 2174, 682, 1562, 682, 273, 20350, 13943, 3773, 18, 588, 2174, 682, 1318, 7675, 588, 2174, 682, 5621, 202, 202, 4146, 682, 18, 8501, 774, 2375, 12, 4146, 1769, 202, 202, 9865, 3305, 1138, 843, 273, 394, 7867, 3305, 1138, 2932, 2271, 3113, 1562, 682, 1769, 202, 202, 9865, 1138, 13616, 6800, 273, 394, 7867, 1138, 13616, 12, 4146, 682, 16, 3352, 1489, 16, 1562, 18, 588, 3291, 9334, 315, 21, 8863, 202, 202, 15989, 18, 542, 6217, 17863, 310, 2174, 12, 4146, 1769, 202, 202, 2271, 18, 1289, 13616, 12, 2704, 7867, 1138, 13616, 12, 4146, 682, 16, 3352, 1489, 16, 1562, 18, 588, 3291, 9334, 315, 21, 7923, 1769, 202, 202, 4146, 682, 18, 1289, 1138, 12, 2271, 1769, 202, 202, 11231, 8867, 12, 21, 16, 1562, 682, 18, 588, 1595, 6685, 7675, 1467, 10663, 202, 202, 11231, 8867, 12, 21, 16, 1562, 682, 18, 588, 2375, 6685, 7675, 1467, 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, 2613, 3305, 2174, 1435, 288, 202, 202, 780, 3352, 1489, 273, 315, 2505, 2207, 87, 362, 359, 14852, 18, 832, 14432, 202, 202, 9071, 273, 394, 3837, 3305, 12, 9865, 3305, 7487, 18, 862, 30986, 67, 47, 2356, 16, 3352, 1489, 1769, 202, 202, 6685, 13943, 3773, 18, 588, 3305, 1318, 7675, 1289, 3305, 12, 9071, 16, 9506, 202, 6685, 13943, 3773, 18, 588, 1868, 7675, 588, 18429, 5598, 10663, 202, 202, 9865, 3305, 2174, 1562, 273, 394, 7867, 3305, 2174, 12, 9071, 1489, 397, 3701, 21, 8863, 202, 202, 2174, 682, 1562, 682, 273, 20350, 13943, 3773, 18, 588, 2174, 682, 1318, 7675, 588, 2174, 682, 5621, 202, 202, 4146, 682, 18, 8501, 2 ]
AbstractRepositoryConnector connector = MylarTaskListPlugin.getRepositoryManager().getRepositoryConnector(repository.getKind());
AbstractRepositoryConnector connector = TasksUiPlugin.getRepositoryManager().getRepositoryConnector(repository.getKind());
public boolean performFinish() { AbstractRepositoryQuery q = queryPage.getQuery(); if (q != null) { // String name;// if (q instanceof JiraRepositoryQuery) {// name = ((JiraRepositoryQuery) q).getNamedFilter().getName();// } else {// name = ((JiraCustomQuery) query).getFilterDefinition().getName();// } MylarTaskListPlugin.getTaskListManager().getTaskList().deleteQuery(query); MylarTaskListPlugin.getTaskListManager().getTaskList().addQuery(q); AbstractRepositoryConnector connector = MylarTaskListPlugin.getRepositoryManager().getRepositoryConnector(repository.getKind()); if (connector != null) { connector.synchronize(q, null); }// filter.refreshHits(); } return true; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/b23efbfef800ff6f85224f036d6a11e9fab7acba/WebQueryEditWizard.java/clean/sandbox/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/web/WebQueryEditWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3073, 11641, 1435, 288, 202, 202, 7469, 3305, 1138, 1043, 273, 843, 1964, 18, 588, 1138, 5621, 202, 202, 430, 261, 85, 480, 446, 13, 288, 1082, 202, 759, 1082, 202, 780, 508, 31, 759, 1082, 202, 430, 261, 85, 1276, 804, 11547, 3305, 1138, 13, 288, 759, 9506, 202, 529, 273, 14015, 46, 11547, 3305, 1138, 13, 1043, 2934, 588, 7604, 1586, 7675, 17994, 5621, 759, 1082, 202, 97, 469, 288, 759, 9506, 202, 529, 273, 14015, 46, 11547, 3802, 1138, 13, 843, 2934, 588, 1586, 1852, 7675, 17994, 5621, 759, 1082, 202, 97, 25083, 202, 12062, 7901, 2174, 682, 3773, 18, 588, 2174, 682, 1318, 7675, 588, 2174, 682, 7675, 3733, 1138, 12, 2271, 1769, 1082, 202, 12062, 7901, 2174, 682, 3773, 18, 588, 2174, 682, 1318, 7675, 588, 2174, 682, 7675, 1289, 1138, 12, 85, 1769, 25083, 202, 7469, 3305, 7487, 8703, 273, 8005, 7901, 2174, 682, 3773, 18, 588, 3305, 1318, 7675, 588, 3305, 7487, 12, 9071, 18, 588, 5677, 10663, 1082, 202, 430, 261, 23159, 480, 446, 13, 288, 9506, 202, 23159, 18, 87, 2600, 554, 12, 85, 16, 446, 1769, 1082, 202, 97, 759, 1082, 202, 2188, 18, 9144, 20950, 5621, 202, 202, 97, 3196, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3073, 11641, 1435, 288, 202, 202, 7469, 3305, 1138, 1043, 273, 843, 1964, 18, 588, 1138, 5621, 202, 202, 430, 261, 85, 480, 446, 13, 288, 1082, 202, 759, 1082, 202, 780, 508, 31, 759, 1082, 202, 430, 261, 85, 1276, 804, 11547, 3305, 1138, 13, 288, 759, 9506, 202, 529, 273, 14015, 46, 11547, 3305, 1138, 13, 1043, 2934, 588, 7604, 1586, 7675, 17994, 5621, 759, 1082, 202, 97, 469, 288, 759, 9506, 202, 529, 273, 14015, 46, 11547, 3802, 1138, 13, 843, 2934, 588, 1586, 1852, 7675, 17994, 5621, 759, 1082, 202, 97, 25083, 202, 12062, 7901, 2174, 682, 3773, 18, 588, 2174, 682, 1318, 7675, 588, 2174, 682, 7675, 3733, 1138, 12, 2 ]
node.unlock();
node2.unlock(); session2.logout();
public void testRemoveNodeParentLocked() throws LockException, NotExecutableException, RepositoryException { Session session = testRootNode.getSession(); if (session.getRepository().getDescriptor(Repository.OPTION_LOCKING_SUPPORTED) == null) { throw new NotExecutableException("Locking is not supported."); } // create a node that is lockable Node node = testRootNode.addNode(nodeName1, testNodeType); // or try to make it lockable if it is not if (!node.isNodeType(mixLockable)) { if (node.canAddMixin(mixLockable)) { node.addMixin(mixLockable); } else { throw new NotExecutableException("Node " + nodeName1 + " is not lockable and does not " + "allow to add mix:lockable"); } } // create a child node Node subNode = node.addNode(nodeName2, testNodeType); testRootNode.save(); node.lock(true, true); try { subNode.remove(); fail("Node.remove() must throw a LockException if the parent " + "of the node is locked"); } catch (LockException e) { // success } // unlock to remove node at tearDown() node.unlock(); }
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/0bc2f39ecd89956179a9e333b3b11fd9f3d0b968/NodeTest.java/buggy/src/test/org/apache/jackrabbit/test/api/NodeTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3288, 907, 3054, 8966, 1435, 5411, 1216, 3488, 503, 16, 2288, 17709, 503, 16, 13367, 288, 3639, 3877, 1339, 273, 1842, 29658, 18, 588, 2157, 5621, 3639, 309, 261, 3184, 18, 588, 3305, 7675, 588, 3187, 12, 3305, 18, 7425, 67, 6589, 1360, 67, 21134, 13, 422, 446, 13, 288, 5411, 604, 394, 2288, 17709, 503, 2932, 2531, 310, 353, 486, 3260, 1199, 1769, 3639, 289, 3639, 368, 752, 279, 756, 716, 353, 2176, 429, 3639, 2029, 756, 273, 1842, 29658, 18, 1289, 907, 12, 2159, 461, 21, 16, 1842, 15101, 1769, 3639, 368, 578, 775, 358, 1221, 518, 2176, 429, 309, 518, 353, 486, 3639, 309, 16051, 2159, 18, 291, 15101, 12, 14860, 2531, 429, 3719, 288, 5411, 309, 261, 2159, 18, 4169, 986, 14439, 12, 14860, 2531, 429, 3719, 288, 7734, 756, 18, 1289, 14439, 12, 14860, 2531, 429, 1769, 5411, 289, 469, 288, 7734, 604, 394, 2288, 17709, 503, 2932, 907, 315, 397, 7553, 21, 397, 315, 353, 486, 2176, 429, 471, 1552, 486, 315, 397, 13491, 315, 5965, 358, 527, 6843, 30, 739, 429, 8863, 5411, 289, 3639, 289, 3639, 368, 752, 279, 1151, 756, 3639, 2029, 720, 907, 273, 756, 18, 1289, 907, 12, 2159, 461, 22, 16, 1842, 15101, 1769, 3639, 1842, 29658, 18, 5688, 5621, 3639, 756, 18, 739, 12, 3767, 16, 638, 1769, 3639, 775, 288, 5411, 720, 907, 18, 4479, 5621, 5411, 2321, 2932, 907, 18, 4479, 1435, 1297, 604, 279, 3488, 503, 309, 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, 3288, 907, 3054, 8966, 1435, 5411, 1216, 3488, 503, 16, 2288, 17709, 503, 16, 13367, 288, 3639, 3877, 1339, 273, 1842, 29658, 18, 588, 2157, 5621, 3639, 309, 261, 3184, 18, 588, 3305, 7675, 588, 3187, 12, 3305, 18, 7425, 67, 6589, 1360, 67, 21134, 13, 422, 446, 13, 288, 5411, 604, 394, 2288, 17709, 503, 2932, 2531, 310, 353, 486, 3260, 1199, 1769, 3639, 289, 3639, 368, 752, 279, 756, 716, 353, 2176, 429, 3639, 2029, 756, 273, 1842, 29658, 18, 1289, 907, 12, 2159, 461, 21, 16, 1842, 15101, 1769, 3639, 368, 578, 775, 358, 1221, 518, 2176, 429, 309, 518, 353, 486, 3639, 309, 16051, 2159, 18, 291, 15101, 12, 14860, 2531, 2 ]
Document<Element> doc = Parser.INSTANCE.parse(stream);
Document<Element> doc = parser.parse(stream);
public void testBasics() { InputStream stream = OpenSearchTest.class.getResourceAsStream("/opensearch.xml"); Document<Element> doc = Parser.INSTANCE.parse(stream); TotalResults tr = doc.getRoot().getFirstChild(OpenSearchConstants.TOTAL_RESULTS); assertNotNull(tr); assertEquals(tr.getCount(), 47); ItemsPerPage ipp = doc.getRoot().getFirstChild(OpenSearchConstants.ITEMS_PER_PAGE); assertNotNull(ipp); assertEquals(ipp.getCount(), 1); StartIndex si = doc.getRoot().getFirstChild(OpenSearchConstants.START_INDEX); assertNotNull(si); assertEquals(si.getIndex(), 1); }
46425 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46425/1b0b78dca265e2636e9352f08a104c04a7b6b4e7/OpenSearchTest.java/buggy/extensions/src/test/java/org/apache/abdera/test/ext/opensearch/OpenSearchTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 11494, 2102, 1435, 225, 288, 565, 5037, 1407, 273, 3502, 2979, 4709, 18, 1106, 18, 588, 1420, 17052, 2932, 19, 3190, 3072, 18, 2902, 8863, 565, 4319, 32, 1046, 34, 997, 273, 2082, 18, 2670, 12, 3256, 1769, 565, 10710, 3447, 433, 273, 997, 18, 588, 2375, 7675, 588, 3759, 1763, 12, 3678, 2979, 2918, 18, 28624, 67, 20602, 1769, 565, 25395, 12, 313, 1769, 565, 1815, 8867, 12, 313, 18, 588, 1380, 9334, 17495, 1769, 565, 10240, 13005, 2359, 84, 273, 997, 18, 588, 2375, 7675, 588, 3759, 1763, 12, 3678, 2979, 2918, 18, 29887, 67, 3194, 67, 11219, 1769, 565, 25395, 12, 15491, 1769, 565, 1815, 8867, 12, 15491, 18, 588, 1380, 9334, 404, 1769, 565, 3603, 1016, 7533, 273, 997, 18, 588, 2375, 7675, 588, 3759, 1763, 12, 3678, 2979, 2918, 18, 7570, 67, 9199, 1769, 565, 25395, 12, 7722, 1769, 565, 1815, 8867, 12, 7722, 18, 588, 1016, 9334, 404, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 918, 1842, 11494, 2102, 1435, 225, 288, 565, 5037, 1407, 273, 3502, 2979, 4709, 18, 1106, 18, 588, 1420, 17052, 2932, 19, 3190, 3072, 18, 2902, 8863, 565, 4319, 32, 1046, 34, 997, 273, 2082, 18, 2670, 12, 3256, 1769, 565, 10710, 3447, 433, 273, 997, 18, 588, 2375, 7675, 588, 3759, 1763, 12, 3678, 2979, 2918, 18, 28624, 67, 20602, 1769, 565, 25395, 12, 313, 1769, 565, 1815, 8867, 12, 313, 18, 588, 1380, 9334, 17495, 1769, 565, 10240, 13005, 2359, 84, 273, 997, 18, 588, 2375, 7675, 588, 3759, 1763, 12, 3678, 2979, 2918, 18, 29887, 67, 3194, 67, 11219, 1769, 565, 25395, 12, 15491, 1769, 565, 1815, 8867, 12, 15491, 18, 588, 1380, 9334, 2 ]
System.setProperty("args4j.resource",resourceName);
if(resourceName==null) resourceName = ""; System.setProperty("args4j.resource",resourceName);
public int run(String[] args) throws Exception { CmdLineParser parser = new CmdLineParser(this); try { parser.parseArgument(args); } catch (CmdLineException e) { System.err.println(e.getMessage()); printUsage(parser); return -1; } if(aptArgs.isEmpty()) { printUsage(parser); return 0; } // we'll use a separate class loader to reload our classes, // so parameters need to be set as system properties. Ouch! System.setProperty("args4j.outdir",outDir.getPath()); System.setProperty("args4j.format",mode.name()); System.setProperty("args4j.resource",resourceName); // can be null aptArgs.add(0,"-nocompile"); // locate tools.jar ClassLoader cl = loadToolsJar(); Class<?> apt = cl.loadClass("com.sun.tools.apt.Main"); Method main = getProcessMethod(apt); return (Integer)main.invoke(null,new Object[]{ cl.loadClass("org.kohsuke.args4j.apt.AnnotationProcessorFactoryImpl").newInstance(), aptArgs.toArray(new String[0])}); }
51726 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51726/aceb12b6d77a348678662235f638dbca7906d161/Main.java/buggy/args4j-tools/src/org/kohsuke/args4j/apt/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1086, 12, 780, 8526, 833, 13, 1216, 1185, 288, 3639, 13328, 1670, 2678, 2082, 273, 394, 13328, 1670, 2678, 12, 2211, 1769, 3639, 775, 288, 5411, 2082, 18, 2670, 1379, 12, 1968, 1769, 3639, 289, 1044, 261, 5931, 1670, 503, 425, 13, 288, 5411, 2332, 18, 370, 18, 8222, 12, 73, 18, 24906, 10663, 5411, 1172, 5357, 12, 4288, 1769, 5411, 327, 300, 21, 31, 3639, 289, 3639, 309, 12, 1657, 2615, 18, 291, 1921, 10756, 288, 5411, 1172, 5357, 12, 4288, 1769, 5411, 327, 374, 31, 3639, 289, 3639, 368, 732, 5614, 999, 279, 9004, 667, 4088, 358, 7749, 3134, 3318, 16, 3639, 368, 1427, 1472, 1608, 358, 506, 444, 487, 2619, 1790, 18, 531, 2648, 5, 3639, 2332, 18, 542, 1396, 2932, 1968, 24, 78, 18, 659, 1214, 3113, 659, 1621, 18, 588, 743, 10663, 3639, 2332, 18, 542, 1396, 2932, 1968, 24, 78, 18, 2139, 3113, 3188, 18, 529, 10663, 3639, 309, 12, 3146, 461, 631, 2011, 13, 225, 9546, 273, 1408, 31, 2332, 18, 542, 1396, 2932, 1968, 24, 78, 18, 3146, 3113, 3146, 461, 1769, 368, 848, 506, 446, 3639, 279, 337, 2615, 18, 1289, 12, 20, 10837, 17, 82, 9970, 84, 398, 8863, 3639, 368, 10627, 8513, 18, 11930, 3639, 9403, 927, 273, 1262, 10348, 10813, 5621, 3639, 1659, 12880, 34, 279, 337, 273, 927, 18, 945, 797, 2932, 832, 18, 16924, 18, 6642, 18, 1657, 18, 6376, 8863, 3639, 2985, 2774, 273, 18758, 1305, 12, 1657, 1769, 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, 509, 1086, 12, 780, 8526, 833, 13, 1216, 1185, 288, 3639, 13328, 1670, 2678, 2082, 273, 394, 13328, 1670, 2678, 12, 2211, 1769, 3639, 775, 288, 5411, 2082, 18, 2670, 1379, 12, 1968, 1769, 3639, 289, 1044, 261, 5931, 1670, 503, 425, 13, 288, 5411, 2332, 18, 370, 18, 8222, 12, 73, 18, 24906, 10663, 5411, 1172, 5357, 12, 4288, 1769, 5411, 327, 300, 21, 31, 3639, 289, 3639, 309, 12, 1657, 2615, 18, 291, 1921, 10756, 288, 5411, 1172, 5357, 12, 4288, 1769, 5411, 327, 374, 31, 3639, 289, 3639, 368, 732, 5614, 999, 279, 9004, 667, 4088, 358, 7749, 3134, 3318, 16, 3639, 368, 1427, 1472, 1608, 358, 506, 444, 487, 2619, 1790, 18, 531, 2 ]
XNetMessage msg=XNetMessage.getBuildDoubleHeaderMsg(Integer.parseInt((String)ConsistList.get(0)),Integer.parseInt((String)ConsistList.get(1)));
XNetMessage msg=XNetMessage.getBuildDoubleHeaderMsg(Integer.parseInt((String)ConsistList.get(0)),LocoAddress);
private synchronized void addToCSConsist(int LocoAddress, boolean directionNormal) { // All we have to do here is create an apropriate XNetMessage, // and send it. XNetMessage msg=XNetMessage.getBuildDoubleHeaderMsg(Integer.parseInt((String)ConsistList.get(0)),Integer.parseInt((String)ConsistList.get(1))); XNetTrafficController.instance().sendXNetMessage(msg,this); _state=ADDREQUESTSENTSTATE; }
213 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/213/7b037050e9c911f02bd07e51645a6d830c736e8d/XNetConsist.java/buggy/jmri/jmrix/lenz/XNetConsist.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3852, 918, 9604, 4596, 17579, 12, 474, 2851, 83, 1887, 16, 1250, 4068, 5506, 13, 288, 202, 202, 759, 4826, 732, 1240, 358, 741, 2674, 353, 752, 392, 513, 1764, 566, 340, 1139, 7308, 1079, 16, 3196, 202, 759, 471, 1366, 518, 18, 202, 202, 60, 7308, 1079, 1234, 33, 60, 7308, 1079, 18, 588, 3116, 5265, 1864, 3332, 12, 4522, 18, 2670, 1702, 12443, 780, 13, 17579, 682, 18, 588, 12, 20, 13, 3631, 4522, 18, 2670, 1702, 12443, 780, 13, 17579, 682, 18, 588, 12, 21, 3719, 1769, 202, 202, 60, 7308, 16888, 2933, 18, 1336, 7675, 4661, 60, 7308, 1079, 12, 3576, 16, 2211, 1769, 202, 202, 67, 2019, 33, 8355, 5519, 17418, 7998, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3852, 918, 9604, 4596, 17579, 12, 474, 2851, 83, 1887, 16, 1250, 4068, 5506, 13, 288, 202, 202, 759, 4826, 732, 1240, 358, 741, 2674, 353, 752, 392, 513, 1764, 566, 340, 1139, 7308, 1079, 16, 3196, 202, 759, 471, 1366, 518, 18, 202, 202, 60, 7308, 1079, 1234, 33, 60, 7308, 1079, 18, 588, 3116, 5265, 1864, 3332, 12, 4522, 18, 2670, 1702, 12443, 780, 13, 17579, 682, 18, 588, 12, 20, 13, 3631, 4522, 18, 2670, 1702, 12443, 780, 13, 17579, 682, 18, 588, 12, 21, 3719, 1769, 202, 202, 60, 7308, 16888, 2933, 18, 1336, 7675, 4661, 60, 7308, 1079, 12, 3576, 16, 2211, 1769, 202, 202, 67, 2019, 33, 8355, 5519, 17418, 2 ]
if ( cmbSorting.getText( ) .equals( UNSORTED_OPTION ) ) { sdf.eUnset( DataPackage.eINSTANCE.getSeriesDefinition_Sorting( ) ); } else { sdf.setSorting( SortOption.getByName( LiteralHelper.sortOptionSet.getNameByDisplayName( cmbSorting.getText( ) ) ) ); }
sdf.setSorting( SortOption.getByName( LiteralHelper.sortOptionSet.getNameByDisplayName( cmbSorting.getText( ) ) ) );
public Object run( ) { List sds = ChartUIUtil.getAllOrthogonalSeriesDefinitions( context.getModel( ) ); for ( int i = 0; i < sds.size( ); i++ ) { if ( i != 0 ) { // Except for the first, which should be // changed manually. SeriesDefinition sdf = (SeriesDefinition) sds.get( i ); if ( cmbSorting.getText( ) .equals( UNSORTED_OPTION ) ) { sdf.eUnset( DataPackage.eINSTANCE.getSeriesDefinition_Sorting( ) ); } else { sdf.setSorting( SortOption.getByName( LiteralHelper.sortOptionSet.getNameByDisplayName( cmbSorting.getText( ) ) ) ); } } } return null; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/0157cc4583ff3885e9ce65191b74821a4308b3d8/MultipleSeriesComponent.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/data/MultipleSeriesComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 15106, 202, 482, 1033, 1086, 12, 262, 6862, 1082, 202, 95, 6862, 9506, 202, 682, 272, 2377, 273, 14804, 5370, 1304, 18, 588, 1595, 1162, 451, 28396, 6485, 7130, 12, 819, 18, 588, 1488, 12, 262, 11272, 6862, 9506, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 272, 2377, 18, 1467, 12, 11272, 277, 9904, 262, 6862, 9506, 202, 95, 6862, 6862, 202, 430, 261, 277, 480, 374, 262, 6862, 6862, 202, 95, 6862, 25083, 202, 759, 25209, 364, 326, 1122, 16, 1492, 1410, 506, 6862, 25083, 202, 759, 3550, 10036, 18, 6862, 25083, 202, 6485, 1852, 31789, 273, 261, 6485, 1852, 13, 272, 2377, 18, 588, 12, 277, 11272, 6862, 25083, 202, 430, 261, 276, 1627, 18236, 18, 588, 1528, 12, 262, 6862, 6862, 9506, 202, 18, 14963, 12, 26049, 11245, 67, 7425, 262, 262, 6862, 25083, 202, 95, 6862, 6862, 1082, 202, 87, 2180, 18, 73, 13250, 12, 1910, 2261, 18, 73, 13341, 18, 588, 6485, 1852, 67, 18236, 12, 262, 11272, 6862, 25083, 202, 97, 6862, 25083, 202, 12107, 6862, 25083, 202, 95, 6862, 6862, 1082, 202, 87, 2180, 18, 542, 18236, 12, 5928, 1895, 18, 588, 5911, 12, 14392, 2276, 18, 3804, 1895, 694, 18, 17994, 858, 20524, 12, 276, 1627, 18236, 18, 588, 1528, 12, 262, 262, 262, 11272, 6862, 25083, 202, 97, 6862, 6862, 202, 97, 6862, 9506, 202, 97, 6862, 9506, 202, 2463, 446, 31, 6862, 1082, 202, 97, 2, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 15106, 202, 482, 1033, 1086, 12, 262, 6862, 1082, 202, 95, 6862, 9506, 202, 682, 272, 2377, 273, 14804, 5370, 1304, 18, 588, 1595, 1162, 451, 28396, 6485, 7130, 12, 819, 18, 588, 1488, 12, 262, 11272, 6862, 9506, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 272, 2377, 18, 1467, 12, 11272, 277, 9904, 262, 6862, 9506, 202, 95, 6862, 6862, 202, 430, 261, 277, 480, 374, 262, 6862, 6862, 202, 95, 6862, 25083, 202, 759, 25209, 364, 326, 1122, 16, 1492, 1410, 506, 6862, 25083, 202, 759, 3550, 10036, 18, 6862, 25083, 202, 6485, 1852, 31789, 273, 261, 6485, 1852, 13, 272, 2377, 18, 588, 12, 277, 11272, 6862, 25083, 202, 430, 261, 276, 1627, 2 ]
public void createLocations() throws Exception { // 0. Hold Chromosomes in map by id makeChromosomeMap(); // 1. Find and hold locations of ChromosomeBands on Chromsomes makeChromosomeBandLocations(); // 2. Find and hold locations of Supercontigs on Chromosomes // Create locations of Supercontigs on ChromosomeBands makeSupercontigLocations(); // 3. hold offsets of Contigs on Supercontigs // create locations Contig->ChromosomeBand, Contig->Chromosome makeContigLocations(); // 4. For all BioEntities located on Contigs compute other offsets on all parents Iterator resIter = findLocations(os, Contig.class, BioEntity.class); // create map ChromsomeBands to avoid calling getObjectById // need to keep running query after each commit transaction Map idBands = new HashMap(); Iterator bandIter = PostProcessUtil.selectObjectsOfClass(os, ChromosomeBand.class); while (bandIter.hasNext()) { ChromosomeBand band = (ChromosomeBand) bandIter.next(); idBands.put(band.getId(), band); } LOG.info("built ChromosomeBand id map, size = " + idBands.keySet().size()); // create map of Supercontigs to avoid calling getObjectById // need to keep running query after each commit transaction Map idScs = new HashMap(); Iterator scIter = PostProcessUtil.selectObjectsOfClass(os, Supercontig.class); while (scIter.hasNext()) { Supercontig sc = (Supercontig) scIter.next(); idScs.put(sc.getId(), sc); } LOG.info("built Supercontig id map, size = " + idScs.keySet().size()); // maps from BioEntity to Location Map partialsOnChromosomes = new HashMap(); Map partialsOnSupercontigs = new HashMap(); Map partialsOnChromosomeBands = new HashMap(); i = 0; j = 0; k = 0; long start = System.currentTimeMillis(); osw.beginTransaction(); while (resIter.hasNext()) { i++; ResultsRow rr = (ResultsRow) resIter.next(); Location locBioOnContig = (Location) rr.get(2); //org.intermine.web.LogMe.log("i", "0: " + rr.get(0).getClass().getName() + " " + ((InterMineObject) rr.get(0)).getId()); //org.intermine.web.LogMe.log("i", "1: " + rr.get(1).getClass().getName() + " " + ((InterMineObject) rr.get(1)).getId()); //org.intermine.web.LogMe.log("i", "2: " + rr.get(2).getClass().getName() + " " + ((InterMineObject) rr.get(2)).getId()); Contig contig = (Contig) rr.get(0); BioEntity bio = (BioEntity) rr.get(1); SimpleLoc bioOnContig = new SimpleLoc(contig.getId().intValue(), bio.getId().intValue(), locBioOnContig); // first create location of feature on Chromosome SimpleLoc contigOnChr = (SimpleLoc) contigToChr.get(contig.getId()); Chromosome chr = (Chromosome) chrById.get(new Integer(contigOnChr.getParentId())); Location bioOnChrLoc = createChromosomeLocation(contigOnChr, bioOnContig, chr, bio); //org.intermine.web.LogMe.log("i", "locBioOnContig: " + locBioOnContig); if (locBioOnContig instanceof PartialLocation) { //org.intermine.web.LogMe.log("i", "found PartialLocation: " + locBioOnContig); addToMapOfLists(partialsOnChromosomes, bio, bioOnChrLoc); } else { osw.store(bioOnChrLoc); } SimpleLoc bioOnChr = new SimpleLoc(chr.getId().intValue(), bio.getId().intValue(), bioOnChrLoc); // create location of feature on Supercontig Set scs = (Set) chrToSc.get(chr.getId()); if (scs != null) { //org.intermine.web.LogMe.log("i", scs.size() + " scs"); Iterator iter = scs.iterator(); while (iter.hasNext()) { SimpleLoc scOnChr = (SimpleLoc) iter.next(); //org.intermine.web.LogMe.log("i", scOnChr + " = " + bioOnChr + " ?"); if (overlap(scOnChr, bioOnChr)) { Supercontig sc = (Supercontig) idScs.get(new Integer(scOnChr.getChildId())); //org.intermine.web.LogMe.log("i", "making new Location:"); Location bioOnScLoc = createLocation(sc, scOnChr, bio, bioOnChr); //org.intermine.web.LogMe.log("i", "scOnChr: " + scOnChr); //org.intermine.web.LogMe.log("i", "bioOnChr: " + bioOnChr); //org.intermine.web.LogMe.log("i", "new: " + bioOnScLoc); if (bioOnScLoc instanceof PartialLocation) { //org.intermine.web.LogMe.log("i", "found PartialLocation " + "on Supercontig: " + bioOnScLoc); addToMapOfLists(partialsOnSupercontigs, bio, bioOnScLoc); } else { //org.intermine.web.LogMe.log("i", "storing"); osw.store(bioOnScLoc); } j++; } } } // create location of feature on ChromosomeBand Set bands = (Set) chrToBand.get(chr.getId()); if (bands != null) { //org.intermine.web.LogMe.log("i", bands.size() + " bands"); Iterator iter = bands.iterator(); while (iter.hasNext()) { SimpleLoc bandOnChr = (SimpleLoc) iter.next(); //org.intermine.web.LogMe.log("i", bandOnChr + " = " + bioOnChr + " ?"); if (overlap(bandOnChr, bioOnChr)) { ChromosomeBand band = (ChromosomeBand) idBands.get(new Integer(bandOnChr.getChildId())); //org.intermine.web.LogMe.log("i", "making new Location:"); Location bioOnBandLoc = createLocation(band, bandOnChr, bio, bioOnChr); //org.intermine.web.LogMe.log("i", "bandOnChr: " + bandOnChr); //org.intermine.web.LogMe.log("i", "bioOnChr: " + bioOnChr); //org.intermine.web.LogMe.log("i", "new: " + bioOnBandLoc); if (bioOnBandLoc instanceof PartialLocation) { //org.intermine.web.LogMe.log("i", "found PartialLocation " + "on ChromosomeBand: " + bioOnBandLoc); addToMapOfLists(partialsOnChromosomeBands, bio, bioOnBandLoc); } else { //org.intermine.web.LogMe.log("i", "storing"); osw.store(bioOnBandLoc); } k++; } } } if (i % 100 == 0) { long now = System.currentTimeMillis(); LOG.info("Created " + i + " Chromosome, " + j + " SuperContig locations and " + k + " ChromosomeBand locations (avg = " + ((60000L * i) / (now - start)) + " per minute)"); } } //org.intermine.web.LogMe.log("i", "partialsOnChromosome: " + partialsOnChromosomes); // process partials Locations //org.intermine.web.LogMe.log("i", "processPartials(partialsOnChromosomes):"); processPartials(partialsOnChromosomes); //org.intermine.web.LogMe.log("i", "processPartials(partialsOnSupercontigs):"); processPartials(partialsOnSupercontigs); //org.intermine.web.LogMe.log("i", "processPartials(partialsOnChromosomeBands):"); processPartials(partialsOnChromosomeBands); osw.commitTransaction(); LOG.info("Stored " + i + " Locations between features and Chromosome."); LOG.info("Stored " + j + " Locations between features and Supercontig."); LOG.info("Stored " + k + " Locations between features and ChromosomeBand."); }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/8c465a4255cec26cc1122af615de75936a040d68/CalculateLocations.java/clean/flymine/model/genomic/src/java/org/flymine/postprocess/CalculateLocations.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 2640, 10985, 1435, 15069, 503, 95, 759, 20, 18, 20586, 30761, 538, 21912, 267, 1458, 1637, 350, 6540, 30761, 16958, 863, 5621, 759, 21, 18, 3125, 464, 21056, 12352, 792, 30761, 16958, 14231, 816, 30761, 87, 21912, 6540, 30761, 16958, 14231, 10985, 5621, 759, 22, 18, 3125, 464, 21056, 12352, 792, 8051, 26075, 816, 30761, 538, 21912, 759, 1996, 270, 9640, 1012, 792, 8051, 26075, 816, 30761, 16958, 14231, 4808, 911, 8051, 26075, 10985, 5621, 759, 23, 18, 21056, 16542, 792, 660, 360, 816, 8051, 26075, 87, 759, 27350, 9640, 1012, 660, 360, 2122, 30761, 16958, 14231, 16, 660, 360, 2122, 30761, 538, 362, 351, 911, 660, 360, 10985, 5621, 759, 24, 18, 1290, 454, 38, 1594, 8108, 1829, 690, 265, 660, 360, 87, 9200, 3011, 3348, 816, 454, 12606, 3198, 455, 2360, 33, 4720, 10985, 12, 538, 16, 660, 360, 18, 1106, 16, 38, 1594, 1943, 18, 1106, 1769, 759, 2640, 1458, 30761, 19068, 14231, 30168, 842, 839, 31623, 588, 921, 5132, 759, 14891, 17692, 1340, 683, 318, 2093, 2271, 5205, 13798, 7371, 7958, 863, 350, 26554, 33, 2704, 8658, 5621, 3198, 12752, 2360, 33, 3349, 2227, 1304, 18, 4025, 4710, 951, 797, 12, 538, 16, 30761, 16958, 14231, 18, 1106, 1769, 17523, 12, 12752, 2360, 18, 5332, 2134, 10756, 95, 30761, 16958, 14231, 12752, 28657, 30761, 16958, 14231, 13, 12752, 2360, 18, 4285, 5621, 350, 26554, 18, 458, 12, 12752, 18, 26321, 9334, 12752, 1769, 97, 4842, 18, 1376, 2932, 12406, 30761, 16958, 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, 6459, 2640, 10985, 1435, 15069, 503, 95, 759, 20, 18, 20586, 30761, 538, 21912, 267, 1458, 1637, 350, 6540, 30761, 16958, 863, 5621, 759, 21, 18, 3125, 464, 21056, 12352, 792, 30761, 16958, 14231, 816, 30761, 87, 21912, 6540, 30761, 16958, 14231, 10985, 5621, 759, 22, 18, 3125, 464, 21056, 12352, 792, 8051, 26075, 816, 30761, 538, 21912, 759, 1996, 270, 9640, 1012, 792, 8051, 26075, 816, 30761, 16958, 14231, 4808, 911, 8051, 26075, 10985, 5621, 759, 23, 18, 21056, 16542, 792, 660, 360, 816, 8051, 26075, 87, 759, 27350, 9640, 1012, 660, 360, 2122, 30761, 16958, 14231, 16, 660, 360, 2122, 30761, 538, 362, 351, 911, 660, 360, 10985, 5621, 759, 24, 18, 1290, 454, 38, 1594, 2 ]
PropertyNames stPropertyNames = server.getPropertyNames();
stPropertyNames = server.getPropertyNames(); stTypeNames = server.getTypeNames();
public List getModifications(Date lastBuild, Date now) { // Clean out the modifications list. Otherwise we get duplicate entries // when this function is called more than once in a quiet period breach // We normally would need to clean out the email list as well, except we // know that all entries in current list will still be required modifications.clear(); // Store OLEDate equivalents of now and lastbuild for performance nowDate = new OLEDate(now.getTime()); OLEDate lastBuildDate = new OLEDate(lastBuild.getTime()); Server server = null; try { // Set up two view snapshots, one at lastbuild time, one now View view = StarTeamFinder.openView(userName + ":" + password + "@" + url); server = view.getServer(); View snapshotAtNow = new View(view, ViewConfiguration.createFromTime(nowDate)); View snapshotAtLastBuild = new View(view, ViewConfiguration.createFromTime(lastBuildDate)); Map nowFiles = new HashMap(); Map lastBuildFiles = new HashMap(); Folder nowRoot = StarTeamFinder.findFolder(snapshotAtNow.getRootFolder(), folder); PropertyNames stPropertyNames = server.getPropertyNames(); // properties to fetch immediately and cache final String[] propertiesToCache = new String[] { stPropertyNames.FILE_CONTENT_REVISION, stPropertyNames.MODIFIED_TIME, stPropertyNames.FILE_FILE_TIME_AT_CHECKIN, stPropertyNames.COMMENT, stPropertyNames.MODIFIED_USER_ID, stPropertyNames.FILE_NAME }; if (preloadFileInformation) { // cache information for now nowRoot.populateNow(server.getTypeNames().FILE, propertiesToCache, -1); } // Visit all files in the snapshots and add to Maps addFolderModsToList(nowFiles, nowRoot); try { Folder lastBuildRoot = StarTeamFinder.findFolder(snapshotAtLastBuild.getRootFolder(), folder); if (preloadFileInformation) { // cache information for last build lastBuildRoot.populateNow(server.getTypeNames().FILE, propertiesToCache, -1); } addFolderModsToList(lastBuildFiles, lastBuildRoot); } catch (ServerException se) { LOG.error("Server Exception occurred visiting last build view: ", se); } compareFileLists(nowFiles, lastBuildFiles); // Discard cached items so memory is not eaten up snapshotAtNow.getRootFolder().discardItems(server.getTypeNames().FILE, -1); try { snapshotAtLastBuild.getRootFolder().discardItems(server.getTypeNames().FILE, -1); } catch (ServerException se) { LOG.error("Server Exception occurred discarding last build file cache: ", se); } LOG.info(modifications.size() + " modifications in " + folder); return modifications; } catch (Exception e) { LOG.error("Problem looking up modifications in StarTeam.", e); modifications.clear(); return modifications; } finally { if (server != null) { server.disconnect(); } } }
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/c497d927086710607b555326c941223e7e24f520/StarTeam.java/clean/main/src/net/sourceforge/cruisecontrol/sourcecontrols/StarTeam.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 336, 28340, 12, 1626, 1142, 3116, 16, 2167, 2037, 13, 288, 3639, 368, 9645, 596, 326, 17953, 666, 18, 225, 5272, 732, 336, 6751, 3222, 3639, 368, 1347, 333, 445, 353, 2566, 1898, 2353, 3647, 316, 279, 10902, 3879, 324, 12974, 3639, 368, 1660, 15849, 4102, 1608, 358, 2721, 596, 326, 2699, 666, 487, 5492, 16, 1335, 732, 3639, 368, 5055, 716, 777, 3222, 316, 783, 666, 903, 4859, 506, 1931, 3639, 17953, 18, 8507, 5621, 3639, 368, 4994, 531, 900, 1626, 1298, 5162, 4877, 434, 2037, 471, 1142, 3510, 364, 9239, 3639, 2037, 1626, 273, 394, 531, 900, 1626, 12, 3338, 18, 588, 950, 10663, 3639, 531, 900, 1626, 1142, 3116, 1626, 273, 394, 531, 900, 1626, 12, 2722, 3116, 18, 588, 950, 10663, 3639, 3224, 1438, 273, 446, 31, 3639, 775, 288, 5411, 368, 1000, 731, 2795, 1476, 12808, 16, 1245, 622, 1142, 3510, 813, 16, 1245, 2037, 5411, 4441, 1476, 273, 934, 297, 8689, 8441, 18, 3190, 1767, 12, 1355, 461, 397, 6153, 397, 2201, 397, 18265, 397, 880, 1769, 5411, 1438, 273, 1476, 18, 588, 2081, 5621, 5411, 4441, 4439, 861, 8674, 273, 394, 4441, 12, 1945, 16, 4441, 1750, 18, 2640, 1265, 950, 12, 3338, 1626, 10019, 5411, 4441, 4439, 861, 3024, 3116, 273, 7734, 394, 4441, 12, 1945, 16, 4441, 1750, 18, 2640, 1265, 950, 12, 2722, 3116, 1626, 10019, 5411, 1635, 2037, 2697, 273, 394, 4317, 5621, 5411, 1635, 1142, 3116, 2697, 273, 394, 4317, 5621, 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, 987, 336, 28340, 12, 1626, 1142, 3116, 16, 2167, 2037, 13, 288, 3639, 368, 9645, 596, 326, 17953, 666, 18, 225, 5272, 732, 336, 6751, 3222, 3639, 368, 1347, 333, 445, 353, 2566, 1898, 2353, 3647, 316, 279, 10902, 3879, 324, 12974, 3639, 368, 1660, 15849, 4102, 1608, 358, 2721, 596, 326, 2699, 666, 487, 5492, 16, 1335, 732, 3639, 368, 5055, 716, 777, 3222, 316, 783, 666, 903, 4859, 506, 1931, 3639, 17953, 18, 8507, 5621, 3639, 368, 4994, 531, 900, 1626, 1298, 5162, 4877, 434, 2037, 471, 1142, 3510, 364, 9239, 3639, 2037, 1626, 273, 394, 531, 900, 1626, 12, 3338, 18, 588, 950, 10663, 3639, 531, 900, 1626, 1142, 3116, 1626, 273, 394, 531, 2 ]
public void templateDeclarationEnd(Object templateDecl) {
public void templateDeclarationEnd(Object templateDecl, Token lastToken) {
public void templateDeclarationEnd(Object templateDecl) { }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/938a074dd8962c326220efab64196bd8a4dcef54/NullParserCallback.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/NullParserCallback.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1542, 6094, 1638, 12, 921, 1542, 3456, 13, 288, 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, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1542, 6094, 1638, 12, 921, 1542, 3456, 13, 288, 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, -100, -100, -100, -100, -100, -100 ]
((ReadMessageInternalFrame)mui).configureMessageInternalFrame(); }
public MessageUI createMessageUI(MessageProxy mp) { // each MessageProxy can have exactly one MessageUI. if (mp.getMessageUI() != null) return mp.getMessageUI(); MessageUI mui; if (mp instanceof NewMessageProxy) { mui = new NewMessageInternalFrame(getMessagePanel(), (NewMessageProxy) mp); } else mui = new ReadMessageInternalFrame(getMessagePanel(), mp); return mui; }
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/42ac8102e7ae8f3e47484c22f4467d39cb29f9ea/PookaDesktopPaneUIFactory.java/clean/net/suberic/pooka/gui/PookaDesktopPaneUIFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 14015, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 14015, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 14015, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 14015, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 1071, 12443, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 2350, 5370, 12443, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 23836, 5370, 12, 1079, 3886, 12443, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 6749, 13, 12443, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 288, 202, 759, 12443, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 1517, 12443, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 2350, 3886, 12443, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 848, 12443, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 1240, 12443, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 8950, 12443, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 1245, 12443, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 2350, 5370, 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, 14015, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 14015, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 14015, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 14015, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 1071, 12443, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 2350, 5370, 12443, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 23836, 5370, 12, 1079, 3886, 12443, 1994, 1079, 3061, 3219, 13, 81, 4881, 2934, 14895, 1079, 3061, 3219, 5621, 289, 6749, 13, 12443, 1994, 1079, 3061, 2 ]
tokfix(); yyVal = tok();
yyVal = tok();
private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0; // white spaces case ' ' : case '\t' : case '\f' : case '\r' : case '\013' : // '\v' space_seen++; continue retry; case '#' : // it's a comment while ((c = nextc()) != '\n') { if (c == -1) { return 0; } } // fall through case '\n' : switch (ph.getLexState()) { case LexState.EXPR_BEG : case LexState.EXPR_FNAME : case LexState.EXPR_DOT : continue retry; default : break; } ph.setLexState(LexState.EXPR_BEG); return '\n'; case '*' : if ((c = nextc()) == '*') { ph.setLexState(LexState.EXPR_BEG); if (nextc() == '=') { yyVal = "**"; // ph.newId(Token.tPOW); return Token.tOP_ASGN; } pushback(c); return Token.tPOW; } if (c == '=') { yyVal = "*"; // ph.newId('*'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("'*' interpreted as argument prefix"); c = Token.tSTAR; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tSTAR; } else { c = '*'; } ph.setLexState(LexState.EXPR_BEG); return c; case '!' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tNEQ; } if (c == '~') { return Token.tNMATCH; } pushback(c); return '!'; case '=' : if (lex_p == 1) { // skip embedded rd document if (lex_curline.startsWith("=begin") && (lex_pend == 6 || ISSPACE(lex_curline.charAt(6)))) { for (;;) { lex_p = lex_pend; c = nextc(); if (c == -1) { ph.rb_compile_error("embedded document meets end of file"); return 0; } if (c != '=') { continue; } if (lex_curline.substring(lex_p, lex_p + 3).equals("end") && (lex_p + 3 == lex_pend || ISSPACE(lex_curline.charAt(lex_p + 3)))) { break; } } lex_p = lex_pend; continue retry; } } ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { if ((c = nextc()) == '=') { return Token.tEQQ; } pushback(c); return Token.tEQ; } if (c == '~') { return Token.tMATCH; } else if (c == '>') { return Token.tASSOC; } pushback(c); return '='; case '<' : c = nextc(); if (c == '<' && ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG && ph.getLexState() != LexState.EXPR_CLASS && (!IS_ARG() || space_seen != 0)) { int c2 = nextc(); int indent = 0; if (c2 == '-') { indent = 1; c2 = nextc(); } if (!ISSPACE(c2) && ("\"'`".indexOf(c2) != -1 || is_identchar(c2))) { return here_document(c2, indent); } pushback(c2); } ph.setLexState(LexState.EXPR_BEG); if (c == '=') { if ((c = nextc()) == '>') { return Token.tCMP; } pushback(c); return Token.tLEQ; } if (c == '<') { if (nextc() == '=') { yyVal = "<<"; // ph.newId(Token.tLSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tLSHFT; } pushback(c); return '<'; case '>' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tGEQ; } if (c == '>') { if ((c = nextc()) == '=') { yyVal = ">>"; //ph.newId(Token.tRSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tRSHFT; } pushback(c); return '>'; case '"' : return parse_string(c, c, c); case '`' : if (ph.getLexState() == LexState.EXPR_FNAME) { return c; } if (ph.getLexState() == LexState.EXPR_DOT) { return c; } return parse_string(c, c, c); case '\'' : return parse_qstring(c, 0); case '?' : if (ph.getLexState() == LexState.EXPR_END) { ph.setLexState(LexState.EXPR_BEG); return '?'; } c = nextc(); if (c == -1) { /* FIX 1.6.5 */ ph.rb_compile_error("incomplete character syntax"); return 0; } if (IS_ARG() && ISSPACE(c)) { pushback(c); ph.setLexState(LexState.EXPR_BEG); return '?'; } if (c == '\\') { c = read_escape(); } c &= 0xff; yyVal = RubyFixnum.newFixnum(ruby, c); ph.setLexState(LexState.EXPR_END); return Token.tINTEGER; case '&' : if ((c = nextc()) == '&') { ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "&&"; // ph.newId(Token.tANDOP); return Token.tOP_ASGN; } pushback(c); return Token.tANDOP; } else if (c == '=') { yyVal = "&"; //ph.newId('&'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("`&' interpeted as argument prefix"); c = Token.tAMPER; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tAMPER; } else { c = '&'; } ph.setLexState(LexState.EXPR_BEG); return c; case '|' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '|') { if ((c = nextc()) == '=') { yyVal = "||"; // ph.newId(Token.tOROP); return Token.tOP_ASGN; } pushback(c); return Token.tOROP; } else if (c == '=') { yyVal = "|"; //ph.newId('|'); return Token.tOP_ASGN; } pushback(c); return '|'; case '+' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUPLUS; } pushback(c); return '+'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "+"; //ph.newId('+'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '+'; return start_num(c); } return Token.tUPLUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '+'; case '-' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUMINUS; } pushback(c); return '-'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "-"; // ph.newId('-'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '-'; return start_num(c); } return Token.tUMINUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '-'; case '.' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '.') { if ((c = nextc()) == '.') { return Token.tDOT3; } pushback(c); return Token.tDOT2; } pushback(c); if (!Character.isDigit((char) c)) { ph.setLexState(LexState.EXPR_DOT); return '.'; } c = '.'; // fall through //start_num: case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return start_num(c); case ']' : case '}' : ph.setLexState(LexState.EXPR_END); return c; case ')' : if (cond_nest > 0) { cond_stack >>= 1; } ph.setLexState(LexState.EXPR_END); return c; case ':' : c = nextc(); if (c == ':') { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0)) { ph.setLexState(LexState.EXPR_BEG); return Token.tCOLON3; } ph.setLexState(LexState.EXPR_DOT); return Token.tCOLON2; } pushback(c); if (ph.getLexState() == LexState.EXPR_END || ISSPACE(c)) { ph.setLexState(LexState.EXPR_BEG); return ':'; } ph.setLexState(LexState.EXPR_FNAME); return Token.tSYMBEG; case '/' : if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { return parse_regx('/', '/'); } if ((c = nextc()) == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "/"; // ph.newId('/'); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0) { if (!ISSPACE(c)) { arg_ambiguous(); return parse_regx('/', '/'); } } ph.setLexState(LexState.EXPR_BEG); return '/'; case '^' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "^"; //ph.newId('^'); return Token.tOP_ASGN; } pushback(c); return '^'; case ',' : case ';' : ph.setLexState(LexState.EXPR_BEG); return c; case '~' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) != '@') { pushback(c); } } ph.setLexState(LexState.EXPR_BEG); return '~'; case '(' : if (cond_nest > 0) { cond_stack = (cond_stack << 1) | 0; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLPAREN; } else if (ph.getLexState() == LexState.EXPR_ARG && space_seen != 0) { ph.rb_warning(tok() + " (...) interpreted as method call"); } ph.setLexState(LexState.EXPR_BEG); return c; case '[' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) == ']') { if ((c = nextc()) == '=') { return Token.tASET; } pushback(c); return Token.tAREF; } pushback(c); return '['; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLBRACK; } else if (IS_ARG() && space_seen != 0) { c = Token.tLBRACK; } ph.setLexState(LexState.EXPR_BEG); return c; case '{' : if (ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ARG) { c = Token.tLBRACE; } ph.setLexState(LexState.EXPR_BEG); return c; case '\\' : c = nextc(); if (c == '\n') { space_seen = 1; continue retry; // skip \\n } pushback(c); return '\\'; case '%' : quotation : for (;;) { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { int term; int paren; c = nextc(); if (!Character.isLetterOrDigit((char) c)) { term = c; c = 'Q'; } else { term = nextc(); } if (c == -1 || term == -1) { ph.rb_compile_error("unterminated quoted string meets end of file"); return 0; } paren = term; if (term == '(') { term = ')'; } else if (term == '[') { term = ']'; } else if (term == '{') { term = '}'; } else if (term == '<') { term = '>'; } else { paren = 0; } switch (c) { case 'Q' : return parse_string('"', term, paren); case 'q' : return parse_qstring(term, paren); case 'w' : return parse_quotedwords(term, paren); case 'x' : return parse_string('`', term, paren); case 'r' : return parse_regx(term, paren); default : yyerror("unknown type of %string"); return 0; } } if ((c = nextc()) == '=') { yyVal = "%"; //ph.newId('%'); return Token.tOP_ASGN; } if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { pushback(c); continue quotation; } break quotation; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '%'; case '$' : ph.setLexState(LexState.EXPR_END); newtok(); c = nextc(); switch (c) { case '_' : // $_: last read line string c = nextc(); if (is_identchar(c)) { tokadd('$'); tokadd('_'); break; } pushback(c); c = '_'; // fall through case '~' : // $~: match-data ph.getLocalIndex(String.valueOf(c)); // fall through case '*' : // $*: argv case '$' : // $$: pid case '?' : // $?: last status case '!' : // $!: error string case '@' : // $@: error position case '/' : // $/: input record separator case '\\' : // $\: output record separator case ';' : // $;: field separator case ',' : // $,: output field separator case '.' : // $.: last read line number case '=' : // $=: ignorecase case ':' : // $:: load path case '<' : // $<: reading filename case '>' : // $>: default output handle case '\"' : // $": already loaded files tokadd('$'); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); return Token.tGVAR; case '-' : tokadd('$'); tokadd(c); c = nextc(); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); /* xxx shouldn't check if valid option variable */ return Token.tGVAR; case '&' : // $&: last match case '`' : // $`: string before last match case '\'' : // $': string after last match case '+' : // $+: string matches last paren. yyVal = nf.newBackRef(c); return Token.tBACK_REF; case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : tokadd('$'); while (Character.isDigit((char) c)) { tokadd(c); c = nextc(); } if (is_identchar(c)) { break; } pushback(c); tokfix(); yyVal = nf.newNthRef(Integer.parseInt(tok().substring(1))); return Token.tNTH_REF; default : if (!is_identchar(c)) { pushback(c); return '$'; } case '0' : tokadd('$'); } break; case '@' : c = nextc(); newtok(); tokadd('@'); if (c == '@') { tokadd('@'); c = nextc(); } if (Character.isDigit((char) c)) { ph.rb_compile_error("`@" + c + "' is not a valid instance variable name"); } if (!is_identchar(c)) { pushback(c); return '@'; } break; default : if (!is_identchar(c) || Character.isDigit((char) c)) { ph.rb_compile_error("Invalid char `\\" + c + "' in expression"); continue retry; } newtok(); break; } break retry; } while (is_identchar(c)) { tokadd(c); c = nextc(); } if ((c == '!' || c == '?') && is_identchar(tok().charAt(0)) && !peek('=')) { tokadd(c); } else { pushback(c); } tokfix(); { int result = 0; switch (tok().charAt(0)) { case '$' : ph.setLexState(LexState.EXPR_END); result = Token.tGVAR; break; case '@' : ph.setLexState(LexState.EXPR_END); if (tok().charAt(1) == '@') { result = Token.tCVAR; } else { result = Token.tIVAR; } break; default : if (ph.getLexState() != LexState.EXPR_DOT) { // See if it is a reserved word. kw = rb_reserved_word(tok(), toklen()); if (kw != null) { // enum lex_state int state = ph.getLexState(); ph.setLexState(kw.state); if (state == LexState.EXPR_FNAME) { yyVal = kw.name; // ruby.intern(kw.name); } if (kw.id0 == Token.kDO) { if (COND_P()) { return Token.kDO_COND; } if (CMDARG_P()) { return Token.kDO_BLOCK; } return Token.kDO; } if (state == LexState.EXPR_BEG) { return kw.id0; } else { if (kw.id0 != kw.id1) { ph.setLexState(LexState.EXPR_BEG); } return kw.id1; } } } if (toklast() == '!' || toklast() == '?') { result = Token.tFID; } else { if (ph.getLexState() == LexState.EXPR_FNAME) { if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || lex_p + 1 < lex_pend && lex_curline.charAt(lex_p + 1) == '>')) { result = Token.tIDENTIFIER; tokadd(c); } else { pushback(c); } } if (result == 0 && Character.isUpperCase(tok().charAt(0))) { result = Token.tCONSTANT; } else { result = Token.tIDENTIFIER; } } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_DOT || ph.getLexState() == LexState.EXPR_ARG) { ph.setLexState(LexState.EXPR_ARG); } else { ph.setLexState(LexState.EXPR_END); } } tokfix(); yyVal = tok(); // ruby.intern(tok()); return result; } }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 509, 276, 31, 3639, 509, 3476, 67, 15156, 273, 374, 31, 3639, 5323, 2121, 5323, 31, 3639, 3300, 294, 364, 261, 25708, 13, 288, 5411, 1620, 261, 71, 273, 1024, 71, 10756, 288, 7734, 648, 2337, 20, 11, 294, 368, 423, 1506, 7734, 648, 2337, 26565, 11, 294, 368, 3602, 40, 7734, 648, 2337, 20, 1578, 11, 294, 368, 3602, 62, 7734, 648, 300, 21, 294, 368, 409, 434, 2728, 18, 10792, 327, 374, 31, 10792, 368, 9578, 7292, 7734, 648, 296, 296, 294, 7734, 648, 2337, 88, 11, 294, 7734, 648, 2337, 74, 11, 294, 7734, 648, 2337, 86, 11, 294, 7734, 648, 2337, 1611, 23, 11, 294, 368, 2337, 90, 11, 10792, 3476, 67, 15156, 9904, 31, 10792, 1324, 3300, 31, 7734, 648, 6501, 294, 368, 518, 1807, 279, 2879, 10792, 1323, 14015, 71, 273, 1024, 71, 10756, 480, 2337, 82, 6134, 288, 13491, 309, 261, 71, 422, 300, 21, 13, 288, 18701, 327, 374, 31, 13491, 289, 10792, 289, 10792, 368, 4159, 3059, 7734, 648, 2337, 82, 11, 294, 10792, 1620, 261, 844, 18, 588, 14756, 1119, 10756, 288, 13491, 648, 15123, 1119, 18, 2294, 8025, 67, 5948, 43, 294, 13491, 648, 15123, 1119, 18, 2294, 8025, 67, 42, 1985, 294, 13491, 648, 15123, 1119, 18, 2294, 8025, 67, 17591, 294, 18701, 1324, 3300, 31, 13491, 805, 294, 18701, 898, 31, 10792, 289, 10792, 1844, 18, 542, 14756, 1119, 12, 14756, 1119, 18, 2294, 8025, 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, 677, 1362, 92, 1435, 288, 3639, 509, 276, 31, 3639, 509, 3476, 67, 15156, 273, 374, 31, 3639, 5323, 2121, 5323, 31, 3639, 3300, 294, 364, 261, 25708, 13, 288, 5411, 1620, 261, 71, 273, 1024, 71, 10756, 288, 7734, 648, 2337, 20, 11, 294, 368, 423, 1506, 7734, 648, 2337, 26565, 11, 294, 368, 3602, 40, 7734, 648, 2337, 20, 1578, 11, 294, 368, 3602, 62, 7734, 648, 300, 21, 294, 368, 409, 434, 2728, 18, 10792, 327, 374, 31, 10792, 368, 9578, 7292, 7734, 648, 296, 296, 294, 7734, 648, 2337, 88, 11, 294, 7734, 648, 2337, 74, 11, 294, 7734, 648, 2337, 86, 11, 294, 7734, 648, 2337, 1611, 23, 11, 294, 368, 2 ]
if (HTML_TEMPLATE == null ) { Enumeration initParams = getInitParameterNames(); System.err.println("The init parameters were: "); while (initParams.hasMoreElements()) { System.err.println(initParams.nextElement()); } System.err.println("Should have seen one parameter name"); throw new UnavailableException (this, "Not given a directory to read init files"); }
if (HTML_TEMPLATE == null ) { Enumeration initParams = getInitParameterNames(); System.err.println("The init parameters were: "); while (initParams.hasMoreElements()) { System.err.println(initParams.nextElement()); } System.err.println("Should have seen one parameter name"); throw new UnavailableException (this, "Not given a directory to read init files"); }
public void init(ServletConfig config) throws ServletException { super.init(config); HTML_TEMPLATE = "AdminCounter.htm" ; /* HTML_TEMPLATE = getInitParameter("html_template"); if (HTML_TEMPLATE == null ) { Enumeration initParams = getInitParameterNames(); System.err.println("The init parameters were: "); while (initParams.hasMoreElements()) { System.err.println(initParams.nextElement()); } System.err.println("Should have seen one parameter name"); throw new UnavailableException (this, "Not given a directory to read init files"); } this.log("html_template:" + getInitParameter("html_template")) ; */ }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/cbaf8fbf9eeaf7b9db5163cf0496eea1be5ce141/AdminCounter.java/buggy/servlets/AdminCounter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1208, 12, 4745, 809, 642, 13, 202, 15069, 16517, 565, 288, 377, 202, 202, 9565, 18, 2738, 12, 1425, 1769, 565, 3982, 67, 12205, 273, 315, 4446, 4789, 18, 31180, 6, 274, 202, 565, 1748, 565, 3982, 67, 12205, 273, 26458, 1662, 2932, 2620, 67, 3202, 8863, 4202, 309, 261, 4870, 67, 12205, 422, 446, 262, 288, 202, 565, 13864, 1208, 1370, 273, 26458, 1662, 1557, 5621, 202, 565, 2332, 18, 370, 18, 8222, 2932, 1986, 1208, 1472, 4591, 30, 315, 1769, 202, 565, 1323, 261, 2738, 1370, 18, 5332, 7417, 3471, 10756, 288, 9506, 202, 3163, 18, 370, 18, 8222, 12, 2738, 1370, 18, 4285, 1046, 10663, 202, 565, 289, 202, 565, 2332, 18, 370, 18, 8222, 2932, 14309, 1240, 5881, 1245, 1569, 508, 8863, 202, 565, 604, 394, 1351, 5699, 503, 261, 2211, 16, 202, 202, 6, 1248, 864, 279, 1867, 358, 855, 1208, 1390, 8863, 202, 202, 97, 202, 202, 2211, 18, 1330, 2932, 2620, 67, 3202, 2773, 397, 26458, 1662, 2932, 2620, 67, 3202, 6, 3719, 274, 225, 1195, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1208, 12, 4745, 809, 642, 13, 202, 15069, 16517, 565, 288, 377, 202, 202, 9565, 18, 2738, 12, 1425, 1769, 565, 3982, 67, 12205, 273, 315, 4446, 4789, 18, 31180, 6, 274, 202, 565, 1748, 565, 3982, 67, 12205, 273, 26458, 1662, 2932, 2620, 67, 3202, 8863, 4202, 309, 261, 4870, 67, 12205, 422, 446, 262, 288, 202, 565, 13864, 1208, 1370, 273, 26458, 1662, 1557, 5621, 202, 565, 2332, 18, 370, 18, 8222, 2932, 1986, 1208, 1472, 4591, 30, 315, 1769, 202, 565, 1323, 261, 2738, 1370, 18, 5332, 7417, 3471, 10756, 288, 9506, 202, 3163, 18, 370, 18, 8222, 12, 2738, 1370, 18, 4285, 1046, 10663, 202, 565, 289, 202, 565, 2332, 18, 2 ]
{ initialize( keysize, new SecureRandom() ); }
{ initialize( keysize, new SecureRandom() ); }
public void initialize(int keysize){ initialize( keysize, new SecureRandom() );}
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/929d12f9c1cf27322f4228118023127504d9e8ac/KeyPairGenerator.java/buggy/java/security/KeyPairGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 4046, 12, 474, 1311, 554, 15329, 202, 11160, 12, 1311, 554, 16, 394, 15653, 8529, 1435, 11272, 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, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1071, 918, 4046, 12, 474, 1311, 554, 15329, 202, 11160, 12, 1311, 554, 16, 394, 15653, 8529, 1435, 11272, 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, -100 ]
while (codePoint != -1) { switch (codePoint) { case CodePoint.RDBNAM: setDatabase(CodePoint.PRPSQLSTT); databaseToSet = database; break; case CodePoint.PKGNAMCSN: pkgnamcsn = parsePKGNAMCSN(); break; case CodePoint.RTNSQLDA: rtnsqlda = readBoolean(CodePoint.RTNSQLDA); break; case CodePoint.TYPSQLDA: rtnOutput = parseTYPSQLDA(); break; case CodePoint.MONITOR: parseMONITOR(); break; default: invalidCodePoint(codePoint);
while (codePoint != -1) { switch (codePoint) { case CodePoint.RDBNAM: setDatabase(CodePoint.PRPSQLSTT); databaseToSet = database; break; case CodePoint.PKGNAMCSN: pkgnamcsn = parsePKGNAMCSN(); break; case CodePoint.RTNSQLDA: rtnsqlda = readBoolean(CodePoint.RTNSQLDA); break; case CodePoint.TYPSQLDA: rtnOutput = parseTYPSQLDA(); break; case CodePoint.MONITOR: parseMONITOR(); break; default: invalidCodePoint(codePoint);
private int parsePRPSQLSTT() throws DRDAProtocolException,SQLException { int codePoint; boolean rtnsqlda = false; boolean rtnOutput = true; // Return output SQLDA is default String typdefnam; Pkgnamcsn pkgnamcsn = null; DRDAStatement stmt = null; Database databaseToSet = null; reader.markCollection(); codePoint = reader.getCodePoint(); while (codePoint != -1) { switch (codePoint) { // optional case CodePoint.RDBNAM: setDatabase(CodePoint.PRPSQLSTT); databaseToSet = database; break; // required case CodePoint.PKGNAMCSN: pkgnamcsn = parsePKGNAMCSN(); break; //optional case CodePoint.RTNSQLDA: // Return SQLDA with description of statement rtnsqlda = readBoolean(CodePoint.RTNSQLDA); break; //optional case CodePoint.TYPSQLDA: rtnOutput = parseTYPSQLDA(); break; //optional case CodePoint.MONITOR: parseMONITOR(); break; default: invalidCodePoint(codePoint); } codePoint = reader.getCodePoint(); } stmt = database.newDRDAStatement(pkgnamcsn); String sqlStmt = parsePRPSQLSTTobjects(stmt); if (databaseToSet != null) stmt.setDatabase(database); stmt.explicitPrepare(sqlStmt); // set the statement as the current statement database.setCurrentStatement(stmt); if (!rtnsqlda) return 0; else if (rtnOutput) return 2; else return 1; }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/d2989b7c8e85d8e5237ca2f36344eb4f163a426b/DRDAConnThread.java/clean/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 1109, 8025, 52, 3997, 882, 56, 1435, 1216, 16801, 9793, 5752, 503, 16, 23116, 565, 288, 202, 474, 18614, 31, 202, 6494, 8253, 2387, 1217, 2414, 273, 629, 31, 202, 6494, 12119, 1447, 273, 638, 31, 225, 202, 759, 2000, 876, 3063, 9793, 353, 805, 202, 780, 3815, 536, 17808, 31, 202, 7789, 1600, 301, 2143, 82, 2365, 1600, 301, 2143, 82, 273, 446, 31, 202, 6331, 9793, 3406, 3480, 273, 446, 31, 282, 202, 4254, 2063, 25208, 273, 446, 31, 202, 10530, 18, 3355, 2532, 5621, 202, 710, 2148, 273, 2949, 18, 588, 31536, 5621, 202, 17523, 261, 710, 2148, 480, 300, 21, 13, 202, 565, 288, 202, 202, 9610, 261, 710, 2148, 13, 1082, 565, 288, 1082, 202, 759, 3129, 1082, 565, 648, 3356, 2148, 18, 54, 2290, 50, 2192, 30, 1082, 202, 542, 4254, 12, 31536, 18, 8025, 52, 3997, 882, 56, 1769, 1082, 202, 6231, 25208, 273, 2063, 31, 1082, 202, 8820, 31, 1082, 202, 759, 1931, 1082, 565, 648, 3356, 2148, 18, 8784, 8318, 2192, 4596, 50, 30, 1082, 202, 5465, 1600, 301, 2143, 82, 273, 1109, 8784, 8318, 2192, 4596, 50, 5621, 1875, 202, 8820, 31, 1082, 202, 759, 10444, 1082, 565, 648, 3356, 2148, 18, 12185, 3156, 2024, 9793, 30, 1082, 202, 759, 2000, 3063, 9793, 598, 2477, 434, 3021, 1082, 202, 3797, 2387, 1217, 2414, 273, 855, 5507, 12, 31536, 18, 12185, 3156, 2024, 9793, 1769, 1082, 202, 8820, 31, 1082, 202, 759, 10444, 1082, 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, 509, 1109, 8025, 52, 3997, 882, 56, 1435, 1216, 16801, 9793, 5752, 503, 16, 23116, 565, 288, 202, 474, 18614, 31, 202, 6494, 8253, 2387, 1217, 2414, 273, 629, 31, 202, 6494, 12119, 1447, 273, 638, 31, 225, 202, 759, 2000, 876, 3063, 9793, 353, 805, 202, 780, 3815, 536, 17808, 31, 202, 7789, 1600, 301, 2143, 82, 2365, 1600, 301, 2143, 82, 273, 446, 31, 202, 6331, 9793, 3406, 3480, 273, 446, 31, 282, 202, 4254, 2063, 25208, 273, 446, 31, 202, 10530, 18, 3355, 2532, 5621, 202, 710, 2148, 273, 2949, 18, 588, 31536, 5621, 202, 17523, 261, 710, 2148, 480, 300, 21, 13, 202, 565, 288, 202, 202, 9610, 261, 710, 2148, 13, 1082, 2 ]
mReSessionFinished2 = new RE( "Debugged program terminated.", 0,
mReCommandFinished2 = new RE("^\\s+DB<\\d+>", 0,
public PerlDB(DebugTarget fTarget) throws InstantiationException { IPath path; String command; mTarget = fTarget; mCurrentCommand = mCommandNone; mCurrentSubCommand = mCommandNone; mIsSessionTerminated = false; mDebugIn = null; mDebugOut = null; mDebugOutput = null; mDebugSubCommandOutput = null; mCurrentCommandDest = null; mReCommandFinished1 = null; mReSessionFinished1 = null; mReSessionFinished2 = null; mIsCommandFinished = false; mIsCommandRunning = false; mPendingBreakpoints = new BreakpointMap(); mActiveBreakpoints = new BreakpointMap(); mThreads = new PerlDebugThread[1]; mThreads[0] = new PerlDebugThread( "Main-Thread", fTarget.getLaunch(), fTarget, this); try { mReCommandFinished1 = new RE("\n\\s+DB<\\d+>", 0, RESyntax.RE_SYNTAX_PERL5); mReCommandFinished2 = new RE("^\\s+DB<\\d+>", 0, RESyntax.RE_SYNTAX_PERL5); mReSessionFinished1 = new RE( "Use `q' to quit or `R' to restart", 0, RESyntax.RE_SYNTAX_PERL5); mReSessionFinished2 = new RE( "Debugged program terminated.", 0, RESyntax.RE_SYNTAX_PERL5); mRe_IP_Pos = new RE( "^[^\\(]*\\((.*):(\\d+)\\):[\\n\\t]", 0, RESyntax.RE_SYNTAX_PERL5); mRe_IP_Pos_Eval = new RE( "^[^\\(]*\\(eval\\s+\\d+\\)\\[(.*):(\\d+)\\]$", 0, RESyntax.RE_SYNTAX_PERL5); mReSwitchFileFail = new RE("^No file", 0, RESyntax.RE_SYNTAX_PERL5); mReSetLineBreakpoint = new RE("^\\s+DB<\\d+>", 0, RESyntax.RE_SYNTAX_PERL5); mReStackTrace = new RE( "^(.)\\s+=\\s+(.*)called from .* \\`([^\\']+)\\'\\s*line (\\d+)\\s*$", RE.REG_MULTILINE, RESyntax.RE_SYNTAX_PERL5); mReEnterFrame = new RE("^\\s*entering", 0, RESyntax.RE_SYNTAX_PERL5); mReExitFrame = new RE("^\\s*exited", 0, RESyntax.RE_SYNTAX_PERL5); } catch (REException e) { new InstantiationException("Couldn't RegEX"); }; mWorkingDir = mTarget.getWorkingDir(); mDebugIn = mTarget.getDebugWriteStream(); mDebugOut = mTarget.getDebugReadSrream(); mPathMapper = null; String interpreterType = PerlEditorPlugin.getDefault().getPreferenceStore().getString( PerlEditorPlugin.INTERPRETER_TYPE_PREFERENCE); // Check if cygwin is used if (interpreterType.equals(PerlEditorPlugin.INTERPRETER_TYPE_CYGWIN)) { mPathMapper = new PathMapperCygwin(); } startCommand(mCommandClearOutput, null, false, this); if (!isTerminated(this)) { String version = getPerlVersion(); mPerlVersion ="5.8"; command = mDBinitPerl_5_8; if( version.startsWith("5.6.") ) { mPerlVersion ="5.6"; command = mDBinitPerl_5_6; } startCommand(mCommandExecuteCode, command, false, this); // /****************test only*****/ // getLaunch().setAttribute(PerlLaunchConfigurationConstants.ATTR_DEBUG_IO_PORT,"4041"); // getLaunch().setAttribute(PerlLaunchConfigurationConstants.ATTR_DEBUG_ERROR_PORT,"4042"); // DebuggerProxy p = new DebuggerProxy(this, "Proxy"); //getLaunch().addProcess(p); // mTarget.setProcess(p); /***********************************/ PerlDebugPlugin.getPerlBreakPointmanager().addDebugger(this); updateStackFrames(null); generateDebugInitEvent(); } else generateDebugTermEvent(); }
48756 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48756/4f81787a2d23f94f26be1df973be28848897fde6/PerlDB.java/clean/org.epic.debug/src/org/epic/debug/PerlDB.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5722, 80, 2290, 12, 2829, 2326, 284, 2326, 13, 1216, 19248, 202, 95, 202, 202, 45, 743, 589, 31, 202, 202, 780, 1296, 31, 202, 202, 81, 2326, 273, 284, 2326, 31, 202, 202, 81, 3935, 2189, 273, 312, 2189, 7036, 31, 202, 202, 81, 3935, 1676, 2189, 273, 312, 2189, 7036, 31, 202, 202, 81, 2520, 2157, 21888, 273, 629, 31, 202, 202, 81, 2829, 382, 273, 446, 31, 202, 202, 81, 2829, 1182, 273, 446, 31, 202, 202, 81, 2829, 1447, 273, 446, 31, 202, 202, 81, 2829, 1676, 2189, 1447, 273, 446, 31, 202, 202, 81, 3935, 2189, 9378, 273, 446, 31, 202, 202, 81, 426, 2189, 10577, 21, 273, 446, 31, 202, 202, 81, 426, 2157, 10577, 21, 273, 446, 31, 202, 202, 81, 426, 2157, 10577, 22, 273, 446, 31, 202, 202, 81, 2520, 2189, 10577, 273, 629, 31, 202, 202, 81, 2520, 2189, 7051, 273, 629, 31, 202, 202, 81, 8579, 7634, 4139, 273, 394, 17030, 1153, 863, 5621, 202, 202, 81, 3896, 7634, 4139, 273, 394, 17030, 1153, 863, 5621, 202, 202, 81, 13233, 273, 394, 5722, 80, 2829, 3830, 63, 21, 15533, 202, 202, 81, 13233, 63, 20, 65, 273, 1082, 202, 2704, 5722, 80, 2829, 3830, 12, 9506, 202, 6, 6376, 17, 3830, 3113, 9506, 202, 74, 2326, 18, 588, 9569, 9334, 9506, 202, 74, 2326, 16, 9506, 202, 2211, 1769, 202, 202, 698, 202, 202, 95, 1082, 202, 81, 426, 2189, 10577, 21, 273, 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, 5722, 80, 2290, 12, 2829, 2326, 284, 2326, 13, 1216, 19248, 202, 95, 202, 202, 45, 743, 589, 31, 202, 202, 780, 1296, 31, 202, 202, 81, 2326, 273, 284, 2326, 31, 202, 202, 81, 3935, 2189, 273, 312, 2189, 7036, 31, 202, 202, 81, 3935, 1676, 2189, 273, 312, 2189, 7036, 31, 202, 202, 81, 2520, 2157, 21888, 273, 629, 31, 202, 202, 81, 2829, 382, 273, 446, 31, 202, 202, 81, 2829, 1182, 273, 446, 31, 202, 202, 81, 2829, 1447, 273, 446, 31, 202, 202, 81, 2829, 1676, 2189, 1447, 273, 446, 31, 202, 202, 81, 3935, 2189, 9378, 273, 446, 31, 202, 202, 81, 426, 2189, 10577, 21, 273, 446, 31, 202, 2 ]
assertEquals( 1, data.getCells( ).size( ) );
assertEquals( 1, ApiTestUtil.getCopiedCells( data ).size( ) );
public void testPasteMergedCells2NonMergedCells( ) throws Exception { openDesign( fileName ); TableHandle copyTable = (TableHandle) designHandle .findElement( "CopyTable2" ); //$NON-NLS-1$ assertNotNull( copyTable ); TableHandle pasteTable = (TableHandle) designHandle .findElement( "PasteTable2" ); //$NON-NLS-1$ assertNotNull( pasteTable ); SlotHandle detail = pasteTable.getDetail( ); RowHandle row1 = (RowHandle) detail.get( 0 ); RowHandle row2 = (RowHandle) detail.get( 1 ); assertEquals( 2, row1.getCells( ).getCount( ) ); assertEquals( 2, row2.getCells( ).getCount( ) ); SlotHandle columns = pasteTable.getColumns( ); assertEquals( 1, columns.getCount( ) ); ColumnHandle column1 = (ColumnHandle) columns.get( 0 ); assertEquals( 2, column1.getRepeatCount( ) ); assertEquals( IColorConstants.AQUA, column1 .getStringProperty( Style.COLOR_PROP ) ); ColumnBandData data = copyTable.copyColumn( 1 ); assertEquals( 1, data.getCells( ).size( ) ); // different layout, the exception is thrown. assertFalse( pasteTable.canPasteColumn( data, 2, false ) ); assertTrue( pasteTable.canPasteColumn( data, 2, true ) ); try { pasteTable.pasteColumn( data, 2, false ); fail( ); } catch ( SemanticException e ) { assertEquals( SemanticError.DESIGN_EXCEPTION_COLUMN_PASTE_DIFFERENT_LAYOUT, e.getErrorCode( ) ); } // paste cells in force. // verify the layout of the pasted table. pasteTable.pasteColumn( data, 2, true ); detail = pasteTable.getDetail( ); assertEquals( 2, detail.getCount( ) ); row1 = (RowHandle) detail.get( 0 ); row2 = (RowHandle) detail.get( 1 ); assertEquals( 2, row1.getCells( ).getCount( ) ); assertEquals( 1, row2.getCells( ).getCount( ) ); CellHandle cell1 = (CellHandle) row1.getCells( ).get( 1 ); assertEquals( 2, cell1.getRowSpan( ) ); // vefiry that the new cell has a label element. assertEquals( 1, cell1.getContent( ).getCount( ) ); columns = pasteTable.getColumns( ); assertEquals( 2, columns.getCount( ) ); // verify column information ColumnHandle column2 = (ColumnHandle) columns.get( 1 ); assertEquals( IColorConstants.YELLOW, column2 .getStringProperty( Style.COLOR_PROP ) ); assertEquals( 1, column2.getRepeatCount( ) ); column1 = (ColumnHandle) columns.get( 0 ); assertEquals( IColorConstants.AQUA, column1 .getStringProperty( Style.COLOR_PROP ) ); assertEquals( 1, column2.getRepeatCount( ) ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/de4e32d64d24337e8801521456bb895f21408aa9/TableColumnBandTest.java/buggy/model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/TableColumnBandTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 52, 14725, 19043, 10505, 22, 3989, 19043, 10505, 12, 262, 1216, 1185, 202, 95, 202, 202, 3190, 15478, 12, 3968, 11272, 202, 202, 1388, 3259, 1610, 1388, 273, 261, 1388, 3259, 13, 8281, 3259, 9506, 202, 18, 4720, 1046, 12, 315, 2951, 1388, 22, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 11231, 5962, 12, 1610, 1388, 11272, 202, 202, 1388, 3259, 19401, 1388, 273, 261, 1388, 3259, 13, 8281, 3259, 9506, 202, 18, 4720, 1046, 12, 315, 52, 14725, 1388, 22, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 11231, 5962, 12, 19401, 1388, 11272, 202, 202, 8764, 3259, 7664, 273, 19401, 1388, 18, 588, 6109, 12, 11272, 202, 202, 1999, 3259, 1027, 21, 273, 261, 1999, 3259, 13, 7664, 18, 588, 12, 374, 11272, 202, 202, 1999, 3259, 1027, 22, 273, 261, 1999, 3259, 13, 7664, 18, 588, 12, 404, 11272, 202, 202, 11231, 8867, 12, 576, 16, 1027, 21, 18, 588, 10505, 12, 262, 18, 588, 1380, 12, 262, 11272, 202, 202, 11231, 8867, 12, 576, 16, 1027, 22, 18, 588, 10505, 12, 262, 18, 588, 1380, 12, 262, 11272, 202, 202, 8764, 3259, 2168, 273, 19401, 1388, 18, 588, 3380, 12, 11272, 202, 202, 11231, 8867, 12, 404, 16, 2168, 18, 588, 1380, 12, 262, 11272, 202, 202, 1494, 3259, 1057, 21, 273, 261, 1494, 3259, 13, 2168, 18, 588, 12, 374, 11272, 202, 202, 11231, 8867, 12, 576, 16, 1057, 21, 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, 52, 14725, 19043, 10505, 22, 3989, 19043, 10505, 12, 262, 1216, 1185, 202, 95, 202, 202, 3190, 15478, 12, 3968, 11272, 202, 202, 1388, 3259, 1610, 1388, 273, 261, 1388, 3259, 13, 8281, 3259, 9506, 202, 18, 4720, 1046, 12, 315, 2951, 1388, 22, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 11231, 5962, 12, 1610, 1388, 11272, 202, 202, 1388, 3259, 19401, 1388, 273, 261, 1388, 3259, 13, 8281, 3259, 9506, 202, 18, 4720, 1046, 12, 315, 52, 14725, 1388, 22, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 11231, 5962, 12, 19401, 1388, 11272, 202, 202, 8764, 3259, 7664, 273, 19401, 1388, 18, 588, 6109, 12, 2 ]
return WorkbenchPlugin.getDefault().getPreferenceManager(); }
return WorkbenchPlugin.getDefault().getPreferenceManager(); }
public PreferenceManager getPreferenceManager() { return WorkbenchPlugin.getDefault().getPreferenceManager(); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/9337b828e86179850647141c34d497be28275ed2/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 29125, 1318, 336, 9624, 1318, 1435, 288, 3639, 327, 4147, 22144, 3773, 18, 588, 1868, 7675, 588, 9624, 1318, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 29125, 1318, 336, 9624, 1318, 1435, 288, 3639, 327, 4147, 22144, 3773, 18, 588, 1868, 7675, 588, 9624, 1318, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Object fileSystemObject, int depth)
Object fileSystemObject)
protected FileSystemElement createElement( FileSystemElement parent, Object fileSystemObject, int depth) throws InterruptedException { ModalContext.checkCanceled(monitor); boolean isContainer = provider.isFolder(fileSystemObject); String elementLabel = parent == null ? provider.getFullPath(fileSystemObject) : provider.getLabel(fileSystemObject); MinimizedFileSystemElement result = new MinimizedFileSystemElement(elementLabel, parent, isContainer); result.setFileSystemObject(fileSystemObject); if (isContainer) { if (depth > 0) { List children = provider.getChildren(fileSystemObject); if (children == null) children = new ArrayList(1); Iterator childrenEnum = children.iterator(); while (childrenEnum.hasNext()) { createElement(result, childrenEnum.next(), depth - 1); } result.setPopulated(); } } return result;}
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/cc97b9a809e6814474642e1e2131704f1c481f9a/PopulateRootOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/wizards/datatransfer/PopulateRootOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 10931, 1046, 6310, 12, 202, 11785, 1046, 982, 16, 202, 921, 18458, 921, 16, 202, 474, 3598, 13, 202, 15069, 7558, 288, 202, 20191, 1042, 18, 1893, 23163, 12, 10259, 1769, 202, 6494, 353, 2170, 273, 2893, 18, 291, 3899, 12, 768, 3163, 921, 1769, 202, 780, 930, 2224, 273, 202, 202, 2938, 422, 446, 1082, 202, 35, 2893, 18, 588, 24173, 12, 768, 3163, 921, 13, 1082, 202, 30, 2893, 18, 588, 2224, 12, 768, 3163, 921, 1769, 202, 2930, 381, 1235, 11785, 1046, 563, 273, 202, 202, 2704, 5444, 381, 1235, 11785, 1046, 12, 2956, 2224, 16, 982, 16, 353, 2170, 1769, 202, 2088, 18, 542, 11785, 921, 12, 768, 3163, 921, 1769, 202, 430, 261, 291, 2170, 13, 288, 202, 202, 430, 261, 5979, 405, 374, 13, 288, 1082, 202, 682, 2325, 273, 2893, 18, 588, 4212, 12, 768, 3163, 921, 1769, 1082, 202, 430, 261, 5906, 422, 446, 13, 9506, 202, 5906, 273, 394, 2407, 12, 21, 1769, 1082, 202, 3198, 2325, 3572, 273, 2325, 18, 9838, 5621, 1082, 202, 17523, 261, 5906, 3572, 18, 5332, 2134, 10756, 288, 9506, 202, 2640, 1046, 12, 2088, 16, 2325, 3572, 18, 4285, 9334, 3598, 300, 404, 1769, 1082, 202, 97, 1082, 202, 2088, 18, 542, 7049, 11799, 5621, 202, 202, 97, 202, 97, 202, 2463, 563, 31, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 10931, 1046, 6310, 12, 202, 11785, 1046, 982, 16, 202, 921, 18458, 921, 16, 202, 474, 3598, 13, 202, 15069, 7558, 288, 202, 20191, 1042, 18, 1893, 23163, 12, 10259, 1769, 202, 6494, 353, 2170, 273, 2893, 18, 291, 3899, 12, 768, 3163, 921, 1769, 202, 780, 930, 2224, 273, 202, 202, 2938, 422, 446, 1082, 202, 35, 2893, 18, 588, 24173, 12, 768, 3163, 921, 13, 1082, 202, 30, 2893, 18, 588, 2224, 12, 768, 3163, 921, 1769, 202, 2930, 381, 1235, 11785, 1046, 563, 273, 202, 202, 2704, 5444, 381, 1235, 11785, 1046, 12, 2956, 2224, 16, 982, 16, 353, 2170, 1769, 202, 2088, 18, 542, 11785, 921, 12, 768, 3163, 921, 1769, 202, 430, 261, 2 ]
main.toolBar.setEnabled(true);
debugGui.toolBar.setEnabled(true);
public void run() { String lastFrameUrl = lastFrame.getUrl(); int line = lastFrame.getLineNumber(); main.statusBar.setText("Thread: " + threadTitle); if (lastFrameUrl != null && !lastFrameUrl.equals("<stdin>")) { FileWindow w = main.getFileWindow(lastFrameUrl); if (w != null) { new SetFilePosition(main, w, line).run(); } else { SourceInfo si = lastFrame.sourceInfo(); CreateFileWindow.action(main, si, line).run(); } } else { if (main.console.isVisible()) { main.console.show(); } } if (alertMessage != null) { MessageDialogWrapper.showMessageDialog(main, alertMessage, "Exception in Script", JOptionPane.ERROR_MESSAGE); } JMenu menu = main.getJMenuBar().getMenu(0); //menu.getItem(0).setEnabled(false); // File->Load menu = main.getJMenuBar().getMenu(2); menu.getItem(0).setEnabled(false); // Debug->Break int count = menu.getItemCount(); for (int i = 1; i < count; ++i) { menu.getItem(i).setEnabled(true); } boolean b = false; for (int ci = 0, cc = main.toolBar.getComponentCount(); ci < cc; ci++) { main.toolBar.getComponent(ci).setEnabled(b); b = true; } main.toolBar.setEnabled(true); // raise the debugger window main.toFront(); ContextData contextData = lastFrame.contextData(); main.context.enable(); JComboBox ctx = main.context.context; Vector toolTips = main.context.toolTips; main.context.disableUpdate(); int frameCount = contextData.frameCount(); ctx.removeAllItems(); // workaround for JDK 1.4 bug that caches selected value even after // removeAllItems() is called ctx.setSelectedItem(null); toolTips.removeAllElements(); for (int i = 0; i < frameCount; i++) { StackFrame frame = contextData.getFrame(i); String url = frame.getUrl(); int lineNumber = frame.getLineNumber(); String shortName = url; if (url.length() > 20) { shortName = "..." + url.substring(url.length() - 17); } String location = "\"" + shortName + "\", line " + lineNumber; ctx.insertItemAt(location, i); location = "\"" + url + "\", line " + lineNumber; toolTips.addElement(location); } main.context.enableUpdate(); ctx.setSelectedIndex(0); ctx.setMinimumSize(new Dimension(50, ctx.getMinimumSize().height)); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/7ceadc8e69bfcf427fd421373c750f8de120f15c/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 565, 288, 3639, 514, 1142, 3219, 1489, 273, 1142, 3219, 18, 588, 1489, 5621, 3639, 509, 980, 273, 1142, 3219, 18, 588, 31063, 5621, 3639, 2774, 18, 2327, 5190, 18, 542, 1528, 2932, 3830, 30, 315, 397, 2650, 4247, 1769, 3639, 309, 261, 2722, 3219, 1489, 480, 446, 597, 401, 2722, 3219, 1489, 18, 14963, 2932, 32, 21772, 2984, 3719, 288, 5411, 1387, 3829, 341, 273, 2774, 18, 29925, 3829, 12, 2722, 3219, 1489, 1769, 5411, 309, 261, 91, 480, 446, 13, 288, 7734, 394, 1000, 812, 2555, 12, 5254, 16, 341, 16, 980, 2934, 2681, 5621, 5411, 289, 469, 288, 7734, 4998, 966, 7533, 273, 1142, 3219, 18, 3168, 966, 5621, 7734, 1788, 812, 3829, 18, 1128, 12, 5254, 16, 7533, 16, 980, 2934, 2681, 5621, 5411, 289, 3639, 289, 469, 288, 5411, 309, 261, 5254, 18, 8698, 18, 291, 6207, 10756, 288, 7734, 2774, 18, 8698, 18, 4500, 5621, 5411, 289, 3639, 289, 3639, 309, 261, 11798, 1079, 480, 446, 13, 288, 5411, 2350, 6353, 3611, 18, 4500, 1079, 6353, 12, 5254, 16, 4766, 10402, 6881, 1079, 16, 4766, 10402, 315, 503, 316, 7739, 3113, 4766, 10402, 804, 1895, 8485, 18, 3589, 67, 8723, 1769, 3639, 289, 3639, 804, 4599, 3824, 273, 2774, 18, 588, 46, 4599, 5190, 7675, 588, 4599, 12, 20, 1769, 3639, 368, 5414, 18, 588, 1180, 12, 20, 2934, 542, 1526, 12, 5743, 1769, 368, 1387, 2122, 2563, 3639, 3824, 273, 2774, 18, 588, 46, 4599, 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, 1086, 1435, 565, 288, 3639, 514, 1142, 3219, 1489, 273, 1142, 3219, 18, 588, 1489, 5621, 3639, 509, 980, 273, 1142, 3219, 18, 588, 31063, 5621, 3639, 2774, 18, 2327, 5190, 18, 542, 1528, 2932, 3830, 30, 315, 397, 2650, 4247, 1769, 3639, 309, 261, 2722, 3219, 1489, 480, 446, 597, 401, 2722, 3219, 1489, 18, 14963, 2932, 32, 21772, 2984, 3719, 288, 5411, 1387, 3829, 341, 273, 2774, 18, 29925, 3829, 12, 2722, 3219, 1489, 1769, 5411, 309, 261, 91, 480, 446, 13, 288, 7734, 394, 1000, 812, 2555, 12, 5254, 16, 341, 16, 980, 2934, 2681, 5621, 5411, 289, 469, 288, 7734, 4998, 966, 7533, 273, 1142, 3219, 18, 3168, 966, 5621, 7734, 1788, 2 ]
case 9 :
case 6 :
final void TokenLexicalActions(Token matchedToken){ switch(jjmatchedKind) { case 8 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); if (!inComment) lparen++; /* * If in REFERENCE and we have seen the dot, then move * to REFMOD2 -> Modifier() */ if (curLexState == REFMODIFIER ) SwitchTo( REFMOD2 ); break; case 9 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); RPARENHandler(); break; case 10 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); /* * need to simply switch back to REFERENCE, not drop down the stack * because we can (infinitely) chain, ala * $foo.bar().blargh().woogie().doogie() */ SwitchTo( REFERENCE ); break; case 12 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); if (! inComment) { inDirective = true; if ( debugPrint ) System.out.print("#set : going to " + DIRECTIVE ); stateStackPush(); inSet = true; SwitchTo(DIRECTIVE); } /* * need the LPAREN action */ if (!inComment) { lparen++; /* * If in REFERENCE and we have seen the dot, then move * to REFMOD2 -> Modifier() */ if (curLexState == REFMODIFIER ) SwitchTo( REFMOD2 ); } break; case 22 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); inComment = false; stateStackPop(); break; case 23 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); inComment = false; stateStackPop(); break; case 24 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); inComment = false; stateStackPop(); break; case 27 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); /* * - if we are in DIRECTIVE and haven't seen ( yet, then also drop out. * don't forget to account for the beloved yet wierd #set * - finally, if we are in REFMOD2 (remember : $foo.bar( ) then " is ok! */ if( curLexState == DIRECTIVE && !inSet && lparen == 0) stateStackPop(); break; case 30 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); if ( debugPrint ) System.out.println(" NEWLINE :"); stateStackPop(); if (inSet) inSet = false; if (inDirective) inDirective = false; break; case 46 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); inDirective = false; stateStackPop(); break; case 47 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); SwitchTo(DIRECTIVE); break; case 48 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); SwitchTo(DIRECTIVE); break; case 49 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); inDirective = false; stateStackPop(); break; case 50 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); matchedToken.kind = EOF; fileDepth = 0; break; case 52 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); /* * check to see if we are in set * ex. #set $foo = $foo + 3 * because we want to handle the \n after */ if ( lparen == 0 && !inSet && curLexState != REFMOD2) { stateStackPop(); } break; case 60 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); /* * push the alpha char back into the stream so the following identifier * is complete */ input_stream.backup(1); /* * and munge the <DOT> so we just get a . when we have normal text that * looks like a ref.ident */ matchedToken.image = "."; if ( debugPrint ) System.out.print("DOT : switching to " + REFMODIFIER); SwitchTo(REFMODIFIER); break; case 62 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); stateStackPop(); break; default : break; }}
55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/89173502837b4d67a69cd30d0b93cf47ed84c8cc/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 727, 918, 3155, 14756, 1706, 6100, 12, 1345, 4847, 1345, 15329, 282, 1620, 12, 78, 78, 11073, 5677, 13, 282, 288, 1377, 648, 1725, 294, 3639, 309, 261, 2730, 422, 446, 13, 5411, 1316, 273, 394, 6674, 12, 2704, 514, 12, 2630, 67, 3256, 18, 967, 5791, 12, 78, 78, 2730, 2891, 397, 261, 2469, 951, 2060, 273, 10684, 11073, 1616, 397, 404, 3719, 10019, 540, 469, 5411, 1316, 18, 6923, 12, 2630, 67, 3256, 18, 967, 5791, 12, 78, 78, 2730, 2891, 397, 261, 2469, 951, 2060, 273, 10684, 11073, 1616, 397, 404, 3719, 1769, 3639, 309, 16051, 267, 4469, 13, 5411, 328, 13012, 9904, 31, 3639, 1748, 540, 380, 971, 316, 22898, 471, 732, 1240, 5881, 326, 3928, 16, 1508, 3635, 540, 380, 358, 20557, 6720, 22, 317, 12832, 1435, 540, 1195, 3639, 309, 261, 1397, 14756, 1119, 422, 20557, 6720, 10591, 262, 5411, 13967, 774, 12, 20557, 6720, 22, 11272, 540, 898, 31, 1377, 648, 1666, 294, 3639, 309, 261, 2730, 422, 446, 13, 5411, 1316, 273, 394, 6674, 12, 2704, 514, 12, 2630, 67, 3256, 18, 967, 5791, 12, 78, 78, 2730, 2891, 397, 261, 2469, 951, 2060, 273, 10684, 11073, 1616, 397, 404, 3719, 10019, 540, 469, 5411, 1316, 18, 6923, 12, 2630, 67, 3256, 18, 967, 5791, 12, 78, 78, 2730, 2891, 397, 261, 2469, 951, 2060, 273, 10684, 11073, 1616, 397, 404, 3719, 1769, 4202, 534, 15111, 1503, 5621, 540, 898, 31, 1377, 648, 1728, 294, 3639, 309, 261, 2730, 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, 727, 918, 3155, 14756, 1706, 6100, 12, 1345, 4847, 1345, 15329, 282, 1620, 12, 78, 78, 11073, 5677, 13, 282, 288, 1377, 648, 1725, 294, 3639, 309, 261, 2730, 422, 446, 13, 5411, 1316, 273, 394, 6674, 12, 2704, 514, 12, 2630, 67, 3256, 18, 967, 5791, 12, 78, 78, 2730, 2891, 397, 261, 2469, 951, 2060, 273, 10684, 11073, 1616, 397, 404, 3719, 10019, 540, 469, 5411, 1316, 18, 6923, 12, 2630, 67, 3256, 18, 967, 5791, 12, 78, 78, 2730, 2891, 397, 261, 2469, 951, 2060, 273, 10684, 11073, 1616, 397, 404, 3719, 1769, 3639, 309, 16051, 267, 4469, 13, 5411, 328, 13012, 9904, 31, 3639, 1748, 540, 380, 971, 316, 22898, 471, 732, 1240, 5881, 326, 2 ]
public List selectByUserByLimit(int userId, int startFrom, int count) throws Exception
public List selectByUserByLimit(int userId, int startFrom, int count)
public List selectByUserByLimit(int userId, int startFrom, int count) throws Exception { return super.selectByUserByLimit(startFrom, count, userId); }
52144 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52144/f4af364dacad27a1238104a19d90e4a102043281/HsqldbPostDAO.java/buggy/src/net/jforum/dao/hsqldb/HsqldbPostDAO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 2027, 25895, 858, 3039, 12, 474, 6249, 16, 509, 787, 1265, 16, 509, 1056, 13, 1216, 1185, 202, 95, 202, 202, 2463, 2240, 18, 4025, 25895, 858, 3039, 12, 1937, 1265, 16, 1056, 16, 6249, 1769, 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, 987, 2027, 25895, 858, 3039, 12, 474, 6249, 16, 509, 787, 1265, 16, 509, 1056, 13, 1216, 1185, 202, 95, 202, 202, 2463, 2240, 18, 4025, 25895, 858, 3039, 12, 1937, 1265, 16, 1056, 16, 6249, 1769, 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 ]
protected void fireTimeoutTimer() { if (LogWriter.needsLogging) sipStack.logWriter.logMessage("fireTimeoutTimer " + this); SIPDialog dialogImpl = this.dialog; if (TransactionState.CALLING == this.getState() || TransactionState.TRYING == this.getState() || TransactionState.PROCEEDING == this.getState()) { // Timeout occured. If this is asociated with a transaction // creation then kill the dialog. if (dialogImpl != null) { if (((SIPTransactionStack) getSIPStack()) .isDialogCreated(this.getOriginalRequest().getMethod())) { // terminate the enclosing dialog. dialogImpl.setState(SIPDialog.TERMINATED_STATE); } else if ( getOriginalRequest().getMethod().equalsIgnoreCase( Request.BYE)) { // Terminate the associated dialog on BYE Timeout. dialogImpl.setState(SIPDialog.TERMINATED_STATE); } } } if (TransactionState.COMPLETED != this.getState()) { raiseErrorEvent(SIPTransactionErrorEvent.TIMEOUT_ERROR); } else { this.setState(TransactionState.TERMINATED); } }
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/d231d2c6c5ca907b5c90d5737c6ae873878b219f/SIPClientTransaction.java/clean/src/gov/nist/javax/sip/stack/SIPClientTransaction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4452, 2694, 6777, 1435, 288, 7734, 309, 261, 1343, 2289, 18, 20600, 7735, 13, 5411, 10341, 2624, 18, 1330, 2289, 18, 1330, 1079, 2932, 12179, 2694, 6777, 315, 397, 333, 1769, 7734, 348, 2579, 6353, 6176, 2828, 273, 225, 333, 18, 12730, 31, 3639, 309, 261, 3342, 1119, 18, 13730, 1360, 422, 333, 18, 588, 1119, 1435, 3639, 747, 5947, 1119, 18, 17805, 1360, 422, 333, 18, 588, 1119, 1435, 3639, 747, 5947, 1119, 18, 3373, 1441, 2056, 1360, 422, 333, 18, 588, 1119, 10756, 288, 5411, 368, 7804, 16206, 18, 971, 333, 353, 487, 1882, 690, 598, 279, 2492, 5411, 368, 6710, 1508, 8673, 326, 6176, 18, 5411, 309, 261, 12730, 2828, 480, 446, 13, 288, 7734, 309, 261, 12443, 17739, 3342, 2624, 13, 1322, 2579, 2624, 10756, 7734, 263, 291, 6353, 6119, 12, 2211, 18, 588, 8176, 691, 7675, 588, 1305, 1435, 3719, 288, 10792, 368, 10850, 326, 16307, 6176, 18, 10792, 6176, 2828, 18, 542, 1119, 12, 17739, 6353, 18, 29516, 6344, 67, 7998, 1769, 7734, 289, 469, 309, 261, 7734, 18354, 691, 7675, 588, 1305, 7675, 14963, 5556, 12, 7734, 1567, 18, 6486, 41, 3719, 288, 10792, 368, 23945, 326, 3627, 6176, 603, 6953, 41, 7804, 18, 10792, 6176, 2828, 18, 542, 1119, 12, 17739, 6353, 18, 29516, 6344, 67, 7998, 1769, 7734, 289, 5411, 289, 3639, 289, 3639, 309, 261, 3342, 1119, 18, 15795, 40, 480, 333, 18, 588, 1119, 10756, 288, 5411, 1002, 668, 1133, 12, 17739, 3342, 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, 4452, 2694, 6777, 1435, 288, 7734, 309, 261, 1343, 2289, 18, 20600, 7735, 13, 5411, 10341, 2624, 18, 1330, 2289, 18, 1330, 1079, 2932, 12179, 2694, 6777, 315, 397, 333, 1769, 7734, 348, 2579, 6353, 6176, 2828, 273, 225, 333, 18, 12730, 31, 3639, 309, 261, 3342, 1119, 18, 13730, 1360, 422, 333, 18, 588, 1119, 1435, 3639, 747, 5947, 1119, 18, 17805, 1360, 422, 333, 18, 588, 1119, 1435, 3639, 747, 5947, 1119, 18, 3373, 1441, 2056, 1360, 422, 333, 18, 588, 1119, 10756, 288, 5411, 368, 7804, 16206, 18, 971, 333, 353, 487, 1882, 690, 598, 279, 2492, 5411, 368, 6710, 1508, 8673, 326, 6176, 18, 5411, 309, 261, 12730, 2828, 480, 446, 13, 2 ]
cmbDataType.select( 0 );
cmbDataType.setText( DATA_TYPE_NUMBER );
private void populateLists( ) { this.bEnableEvents = false; cmbDataType.add( Messages.getString("FormatSpecifierComposite.Lbl.Number") ); //$NON-NLS-1$ cmbDataType.add( Messages.getString("FormatSpecifierComposite.Lbl.DateTime") ); //$NON-NLS-1$ if ( formatspecifier == null ) { cmbDataType.select( 0 ); btnUndefined.setSelection( true ); slStandardDetails.topControl = this.cmpStandardNumberDetails; slAdvancedDetails.topControl = this.cmpAdvancedNumberDetails; } else if ( formatspecifier instanceof DateFormatSpecifier || formatspecifier instanceof JavaDateFormatSpecifier ) { cmbDataType.select( 1 ); if ( formatspecifier instanceof DateFormatSpecifier ) { btnStandard.setSelection( true ); } else if ( formatspecifier instanceof JavaDateFormatSpecifier ) { btnAdvanced.setSelection( true ); } else { btnUndefined.setSelection( true ); } slStandardDetails.topControl = this.cmpStandardDateDetails; slAdvancedDetails.topControl = this.cmpAdvancedDateDetails; } else if ( formatspecifier instanceof NumberFormatSpecifier || formatspecifier instanceof JavaNumberFormatSpecifier ) { cmbDataType.select( 0 ); if ( formatspecifier instanceof NumberFormatSpecifier ) { btnStandard.setSelection( true ); } else if ( formatspecifier instanceof JavaNumberFormatSpecifier ) { btnAdvanced.setSelection( true ); } else { btnUndefined.setSelection( true ); } slStandardDetails.topControl = this.cmpStandardNumberDetails; slAdvancedDetails.topControl = this.cmpAdvancedNumberDetails; } else if ( formatspecifier instanceof FractionNumberFormatSpecifier ) { cmbDataType.select( 0 ); btnFraction.setSelection( true ); slStandardDetails.topControl = this.cmpStandardNumberDetails; slAdvancedDetails.topControl = this.cmpAdvancedNumberDetails; } updateUIState( ); cpWrapStandardDate.populateLists( ); cpWrapStandardNumber.populateLists( ); cpWrapAdvancedNumber.populateLists( ); cpWrapAdvancedDate.populateLists( ); cpWrapFractionNumber.populateLists( ); this.layout( ); this.bEnableEvents = true; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/a8cbb3bd39fd0de535656d42c24e44059a9ca11b/FormatSpecifierComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FormatSpecifierComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 6490, 7432, 12, 262, 202, 95, 202, 202, 2211, 18, 70, 8317, 3783, 273, 629, 31, 202, 202, 71, 1627, 6273, 18, 1289, 12, 4838, 18, 588, 780, 2932, 1630, 21416, 9400, 18, 48, 3083, 18, 1854, 7923, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 71, 1627, 6273, 18, 1289, 12, 4838, 18, 588, 780, 2932, 1630, 21416, 9400, 18, 48, 3083, 18, 5096, 7923, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 430, 261, 740, 2793, 1251, 422, 446, 262, 202, 202, 95, 1082, 202, 71, 1627, 6273, 18, 4025, 12, 374, 11272, 1082, 202, 11898, 10317, 18, 542, 6233, 12, 638, 11272, 1082, 202, 2069, 8336, 3790, 18, 3669, 3367, 273, 333, 18, 9625, 8336, 1854, 3790, 31, 1082, 202, 2069, 23618, 3790, 18, 3669, 3367, 273, 333, 18, 9625, 23618, 1854, 3790, 31, 202, 202, 97, 202, 202, 12107, 309, 261, 740, 2793, 1251, 1276, 18371, 21416, 9506, 202, 20081, 740, 2793, 1251, 1276, 5110, 11878, 21416, 262, 202, 202, 95, 1082, 202, 71, 1627, 6273, 18, 4025, 12, 404, 11272, 1082, 202, 430, 261, 740, 2793, 1251, 1276, 18371, 21416, 262, 1082, 202, 95, 9506, 202, 11898, 8336, 18, 542, 6233, 12, 638, 11272, 1082, 202, 97, 1082, 202, 12107, 309, 261, 740, 2793, 1251, 1276, 5110, 11878, 21416, 262, 1082, 202, 95, 9506, 202, 11898, 23618, 18, 542, 6233, 12, 638, 11272, 1082, 202, 97, 1082, 202, 12107, 1082, 202, 95, 9506, 202, 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, 6490, 7432, 12, 262, 202, 95, 202, 202, 2211, 18, 70, 8317, 3783, 273, 629, 31, 202, 202, 71, 1627, 6273, 18, 1289, 12, 4838, 18, 588, 780, 2932, 1630, 21416, 9400, 18, 48, 3083, 18, 1854, 7923, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 71, 1627, 6273, 18, 1289, 12, 4838, 18, 588, 780, 2932, 1630, 21416, 9400, 18, 48, 3083, 18, 5096, 7923, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 430, 261, 740, 2793, 1251, 422, 446, 262, 202, 202, 95, 1082, 202, 71, 1627, 6273, 18, 4025, 12, 374, 11272, 1082, 202, 11898, 10317, 18, 542, 6233, 12, 638, 11272, 1082, 202, 2069, 8336, 3790, 18, 2 ]
if (writer != null && writer.isPaused()) { return; } super.resetHeader();
if (writer != null && writer.isPaused()) { return; } super.resetHeader();
public void resetHeader() { if (writer != null && writer.isPaused()) { return; } super.resetHeader(); }
3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/6288f051b807f9da0a0f308a00b5851da285b8fb/PdfDocument.java/buggy/itext/src/com/lowagie/text/pdf/PdfDocument.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2715, 1864, 1435, 288, 3639, 309, 261, 6299, 480, 446, 597, 2633, 18, 291, 28590, 10756, 288, 5411, 327, 31, 3639, 289, 3639, 2240, 18, 6208, 1864, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2715, 1864, 1435, 288, 3639, 309, 261, 6299, 480, 446, 597, 2633, 18, 291, 28590, 10756, 288, 5411, 327, 31, 3639, 289, 3639, 2240, 18, 6208, 1864, 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, -100, -100, -100, -100, -100, -100, -100 ]
soapHeaderBlock.setText(result.getText());
String serviceGroupId = result.getHeader().getFirstChildWithName(new QName("ReplyTo")) .getFirstChildWithName(new QName("ReferenceParameters")). getFirstChildWithName(new QName("ServiceGroupId")).getText(); soapHeaderBlock.setText(serviceGroupId);
public void testEchoXMLSync() throws Exception { SOAPFactory fac = OMAbstractFactory.getSOAP11Factory(); OMElement payload = TestingUtils.createDummyOMElement(); org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call("target/test-resources/intregrationRepo"); call.setTo(targetEPR); call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false); call.setWsaAction(operationName.getLocalPart()); OMElement result = call.invokeBlocking(operationName.getLocalPart(), payload);// print(result); OMNamespace axis2Namespace = fac.createOMNamespace(Constants.AXIS2_NAMESPACE_URI, Constants.AXIS2_NAMESPACE_PREFIX); SOAPEnvelope defaultEnvelope = fac.getDefaultEnvelope(); SOAPHeaderBlock soapHeaderBlock = defaultEnvelope.getHeader().addHeaderBlock(Constants.SERVICE_GROUP_ID, axis2Namespace); soapHeaderBlock.setText(result.getText()); SOAPEnvelope soapEnvelope = call.invokeBlocking(operationName.getLocalPart(), defaultEnvelope);// print(soapEnvelope.getBody().getFirstElement()); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/927cc42f2cfcf4f8f114655f1d1bdba05e7731aa/ServiceGroupContextTest.java/clean/modules/integration/test/org/apache/axis2/engine/ServiceGroupContextTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 19704, 4201, 4047, 1435, 1216, 1185, 288, 3639, 16434, 1733, 5853, 273, 531, 5535, 3336, 1733, 18, 588, 27952, 2499, 1733, 5621, 3639, 531, 12310, 2385, 273, 7766, 310, 1989, 18, 2640, 20094, 51, 12310, 5621, 3639, 2358, 18, 19211, 18, 4890, 22, 18, 2625, 2425, 18, 1477, 745, 273, 394, 2358, 18, 19211, 18, 4890, 22, 18, 2625, 2425, 18, 1477, 2932, 3299, 19, 3813, 17, 4683, 19, 474, 1574, 7034, 8791, 8863, 3639, 745, 18, 542, 774, 12, 3299, 41, 8025, 1769, 3639, 745, 18, 542, 6568, 966, 12, 2918, 18, 8989, 31943, 67, 3693, 16, 5245, 18, 8989, 31943, 67, 3693, 16, 629, 1769, 3639, 745, 18, 542, 59, 13098, 1803, 12, 7624, 461, 18, 588, 2042, 1988, 10663, 3639, 531, 12310, 563, 273, 745, 18, 14407, 8728, 12, 7624, 461, 18, 588, 2042, 1988, 9334, 2385, 1769, 759, 3639, 1172, 12, 2088, 1769, 3639, 28839, 3402, 2654, 22, 3402, 273, 5853, 18, 2640, 1872, 3402, 12, 2918, 18, 25614, 22, 67, 11368, 67, 3098, 16, 4766, 21821, 5245, 18, 25614, 22, 67, 11368, 67, 6307, 1769, 3639, 16434, 10862, 805, 10862, 273, 5853, 18, 588, 1868, 10862, 5621, 3639, 16434, 1864, 1768, 9930, 1864, 1768, 273, 805, 10862, 18, 588, 1864, 7675, 1289, 1864, 1768, 12, 2918, 18, 12426, 67, 8468, 67, 734, 16, 28524, 5397, 2654, 22, 3402, 1769, 540, 514, 1156, 8722, 273, 563, 18, 588, 1864, 7675, 588, 3759, 1763, 17557, 12, 2704, 16723, 2932, 7817, 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, 19704, 4201, 4047, 1435, 1216, 1185, 288, 3639, 16434, 1733, 5853, 273, 531, 5535, 3336, 1733, 18, 588, 27952, 2499, 1733, 5621, 3639, 531, 12310, 2385, 273, 7766, 310, 1989, 18, 2640, 20094, 51, 12310, 5621, 3639, 2358, 18, 19211, 18, 4890, 22, 18, 2625, 2425, 18, 1477, 745, 273, 394, 2358, 18, 19211, 18, 4890, 22, 18, 2625, 2425, 18, 1477, 2932, 3299, 19, 3813, 17, 4683, 19, 474, 1574, 7034, 8791, 8863, 3639, 745, 18, 542, 774, 12, 3299, 41, 8025, 1769, 3639, 745, 18, 542, 6568, 966, 12, 2918, 18, 8989, 31943, 67, 3693, 16, 5245, 18, 8989, 31943, 67, 3693, 16, 629, 1769, 3639, 745, 18, 542, 59, 13098, 1803, 12, 2 ]
public SArray(short[] xs) { this.xs = xs; }
public SArray(short[] value) { this.value = value; }
public SArray(short[] xs) { this.xs = xs; }
9617 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9617/16669f0c1edfc2716f2a396c87b3f031fd64255a/RunTime.java/buggy/sources/scala/runtime/RunTime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 348, 1076, 12, 6620, 8526, 9280, 13, 288, 333, 18, 13713, 273, 9280, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 377, 1071, 348, 1076, 12, 6620, 8526, 9280, 13, 288, 333, 18, 13713, 273, 9280, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
boolean allowCycle = this.enableScrolling; if (allowCycle) { if (forwardFocus) { allowCycle = (this.yOffset + this.itemHeight <= this.yBottom); } else { allowCycle = (this.yOffset == 0);
boolean allowCycle = this.enableScrolling && this.allowCycling; if (allowCycle) { if (forwardFocus) { allowCycle = (this.yOffset + this.itemHeight <= this.yBottom); } else { allowCycle = (this.yOffset == 0); }
private boolean shiftFocus(boolean forwardFocus, int steps ) { if ( this.items == null ) { return false; } int i = this.focusedIndex + steps; if (i > this.items.length) { i = this.items.length - 2; } if (i < 0) { i = 1; } Item item = null; boolean allowCycle = this.enableScrolling; if (allowCycle) { if (forwardFocus) { // when you scroll to the bottom and // there is still space, do // scroll first before cycling to the // first item: allowCycle = (this.yOffset + this.itemHeight <= this.yBottom); } else { // when you scroll to the top and // there is still space, do // scroll first before cycling to the // last item: allowCycle = (this.yOffset == 0); } } while (true) { if (forwardFocus) { i++; if (i >= this.items.length) { if (allowCycle) { allowCycle = false; i = 0; } else { break; } } } else { i--; if (i < 0) { if (allowCycle) { allowCycle = false; i = this.items.length - 1; } else { break; } } } item = this.items[i]; if (item.appearanceMode != Item.PLAIN) { break; } } if (item == null || item.appearanceMode == Item.PLAIN) { return false; } focus(i, item); return true; }
9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/2d2ee1a8b2dd39fe6c831aded2568d110a1ee975/Container.java/clean/enough-polish-j2me/source/src/de/enough/polish/ui/Container.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 4654, 9233, 12, 6494, 5104, 9233, 16, 509, 6075, 262, 288, 202, 202, 430, 261, 333, 18, 3319, 422, 446, 262, 288, 1082, 202, 2463, 629, 31, 202, 202, 97, 202, 202, 474, 277, 273, 333, 18, 74, 14569, 1016, 397, 6075, 31, 202, 202, 430, 261, 77, 405, 333, 18, 3319, 18, 2469, 13, 288, 1082, 202, 77, 273, 333, 18, 3319, 18, 2469, 300, 576, 31, 202, 202, 97, 202, 202, 430, 261, 77, 411, 374, 13, 288, 1082, 202, 77, 273, 404, 31, 202, 202, 97, 202, 202, 1180, 761, 273, 446, 31, 202, 202, 6494, 1699, 13279, 273, 333, 18, 7589, 1541, 15742, 31, 202, 202, 430, 261, 5965, 13279, 13, 288, 1082, 202, 430, 261, 11565, 9233, 13, 288, 9506, 202, 759, 1347, 1846, 5532, 358, 326, 5469, 471, 9506, 202, 759, 1915, 353, 4859, 3476, 16, 741, 9506, 202, 759, 5532, 1122, 1865, 6143, 830, 310, 358, 326, 9506, 202, 759, 1122, 761, 30, 9506, 202, 5965, 13279, 273, 261, 2211, 18, 93, 2335, 397, 333, 18, 1726, 2686, 1648, 333, 18, 93, 10393, 1769, 1082, 202, 97, 469, 288, 9506, 202, 759, 1347, 1846, 5532, 358, 326, 1760, 471, 9506, 202, 759, 1915, 353, 4859, 3476, 16, 741, 9506, 202, 759, 5532, 1122, 1865, 6143, 830, 310, 358, 326, 9506, 202, 759, 1142, 761, 30, 9506, 202, 5965, 13279, 273, 261, 2211, 18, 93, 2335, 422, 374, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 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, 4654, 9233, 12, 6494, 5104, 9233, 16, 509, 6075, 262, 288, 202, 202, 430, 261, 333, 18, 3319, 422, 446, 262, 288, 1082, 202, 2463, 629, 31, 202, 202, 97, 202, 202, 474, 277, 273, 333, 18, 74, 14569, 1016, 397, 6075, 31, 202, 202, 430, 261, 77, 405, 333, 18, 3319, 18, 2469, 13, 288, 1082, 202, 77, 273, 333, 18, 3319, 18, 2469, 300, 576, 31, 202, 202, 97, 202, 202, 430, 261, 77, 411, 374, 13, 288, 1082, 202, 77, 273, 404, 31, 202, 202, 97, 202, 202, 1180, 761, 273, 446, 31, 202, 202, 6494, 1699, 13279, 273, 333, 18, 7589, 1541, 15742, 31, 202, 202, 430, 261, 5965, 13279, 13, 2 ]
else if ( CVariableFormat.HEXADECIMAL.equals( format ) ) { StringBuffer sb = new StringBuffer( "0x" ); if ( isUnsigned() ) { BigInteger bigValue = new BigInteger( value.getValueString() ); sb.append( bigValue.toString( 16 ) ); } else sb.append( Long.toHexString( value.longValue() ) ); return sb.toString();
catch( NumberFormatException e ) {
private String getLongLongValueString( ICDILongLongValue value ) throws CDIException { CVariableFormat format = getParentVariable().getFormat(); if ( CVariableFormat.NATURAL.equals( format ) || CVariableFormat.DECIMAL.equals( format ) ) { if ( isUnsigned() ) { BigInteger bigValue = new BigInteger( value.getValueString() ); return bigValue.toString(); } return Long.toString( value.longValue() ); } else if ( CVariableFormat.HEXADECIMAL.equals( format ) ) { StringBuffer sb = new StringBuffer( "0x" ); //$NON-NLS-1$ if ( isUnsigned() ) { BigInteger bigValue = new BigInteger( value.getValueString() ); sb.append( bigValue.toString( 16 ) ); } else sb.append( Long.toHexString( value.longValue() ) ); return sb.toString(); } return null; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/4389ea8a9b926e8f1d012648524e04e2796d3706/CValue.java/buggy/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 11105, 3708, 620, 780, 12, 26899, 2565, 3708, 3708, 620, 460, 262, 1216, 385, 2565, 503, 288, 202, 202, 39, 3092, 1630, 740, 273, 5089, 3092, 7675, 588, 1630, 5621, 3196, 202, 430, 261, 385, 3092, 1630, 18, 25665, 27015, 18, 14963, 12, 740, 262, 747, 385, 3092, 1630, 18, 23816, 18, 14963, 12, 740, 262, 262, 288, 1082, 202, 430, 261, 353, 13290, 1435, 262, 288, 9506, 202, 24198, 5446, 620, 273, 394, 10246, 12, 460, 18, 24805, 780, 1435, 11272, 9506, 202, 2463, 5446, 620, 18, 10492, 5621, 1082, 202, 97, 1082, 202, 2463, 3407, 18, 10492, 12, 460, 18, 5748, 620, 1435, 11272, 202, 202, 97, 202, 202, 12107, 309, 261, 385, 3092, 1630, 18, 20661, 37, 23816, 18, 14963, 12, 740, 262, 262, 288, 1082, 202, 780, 1892, 2393, 273, 394, 6674, 12, 315, 20, 92, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 430, 261, 353, 13290, 1435, 262, 288, 9506, 202, 24198, 5446, 620, 273, 394, 10246, 12, 460, 18, 24805, 780, 1435, 11272, 9506, 202, 18366, 18, 6923, 12, 5446, 620, 18, 10492, 12, 2872, 262, 11272, 1082, 202, 97, 1082, 202, 12107, 9506, 202, 18366, 18, 6923, 12, 3407, 18, 869, 14866, 12, 460, 18, 5748, 620, 1435, 262, 11272, 1082, 202, 2463, 2393, 18, 10492, 5621, 202, 202, 97, 202, 202, 2463, 446, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 11105, 3708, 620, 780, 12, 26899, 2565, 3708, 3708, 620, 460, 262, 1216, 385, 2565, 503, 288, 202, 202, 39, 3092, 1630, 740, 273, 5089, 3092, 7675, 588, 1630, 5621, 3196, 202, 430, 261, 385, 3092, 1630, 18, 25665, 27015, 18, 14963, 12, 740, 262, 747, 385, 3092, 1630, 18, 23816, 18, 14963, 12, 740, 262, 262, 288, 1082, 202, 430, 261, 353, 13290, 1435, 262, 288, 9506, 202, 24198, 5446, 620, 273, 394, 10246, 12, 460, 18, 24805, 780, 1435, 11272, 9506, 202, 2463, 5446, 620, 18, 10492, 5621, 1082, 202, 97, 1082, 202, 2463, 3407, 18, 10492, 12, 460, 18, 5748, 620, 1435, 11272, 202, 202, 97, 202, 202, 12107, 309, 261, 385, 2 ]
buildDictAndDumpTrans(dictionary,phones);
public boolean compute() throws Exception{ System.out.println("Preparing voice database for labelling"); /* get the directories of sphinxtrain and edinburgh speech tools */ sphinxtraindir = System.getProperty("SPHINXTRAINDIR"); if ( sphinxtraindir == null ) { System.out.println( "Warning: The environment variable SPHINXTRAINDIR was not found on your system." ); System.out.println( " Defaulting SPHINXTRAINDIR to [ /project/mary/anna/sphinx/SphinxTrain/ ]." ); sphinxtraindir = "/project/mary/anna/sphinx/SphinxTrain/"; } estdir = System.getProperty("ESTDIR"); if ( estdir == null ) { System.out.println( "Warning: The environment variable ESTDIR was not found on your system." ); System.out.println( " Defaulting ESTDIR to [ /project/mary/Festival/speech_tools/ ]." ); estdir = "/project/mary/Festival/speech_tools/"; } //get the root dir and the voicename rootDir = new File(dbLayout.rootDirName()); voicename = rootDir.getName(); //make new directories st and lab st = new File(rootDir.getAbsolutePath()+"/st"); // get the output directory of files used by sphinxtrain outputDir = st.getAbsolutePath()+"/etc"; //get the filenames filenames = baseNames.getListAsArray(); /* setup the Sphinx directory */ System.out.println("Setting up sphinx directory ..."); setup(); System.out.println(" ... done."); /* dump the filenames */ System.out.println("Dumping the filenames ..."); dumpFilenames(); System.out.println(" ... done."); /* read in the transcriptions, * build up dictionary and phone set; * dump the transcriptions */ //dictionary Map dictionary = new HashMap(); //set of phones Set phones = new HashSet(); //fill dictionary and phone set, dump transcriptions System.out.println("Building dictionary, phone set and dumping transcriptions ..."); //buildDictAndDumpTrans(dictionary,phones); System.out.println(" ... done."); /* dump phone file */ System.out.println("Dumping phone set ..."); //dumpPhoneFile(phones); System.out.println(" ... done."); /* dump dictionary file */ System.out.println("Dumping dictionary ..."); //dumpDictFile(dictionary); System.out.println(" ... done."); /* dump filler dictionary file */ System.out.println("Dumping filler dictionary ..."); //dumpFillerDictFile(); System.out.println(" ... done."); /* Convert MFCCs for Sphinxtrain */ System.out.println("Converting MFCCs ..."); convertMFCCs(); System.out.println(" ... done."); /* rewrite the config file */ System.out.println("Rewriting config file ..."); rewriteConfigFile(); System.out.println(" ... done."); //exit System.out.println("All done!"); return true; }
48071 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48071/08cf95f8cfb2a58fcbed670081c984325c57d384/SphinxLabelingPreparator.java/clean/java/de/dfki/lt/mary/unitselection/voiceimport/SphinxLabelingPreparator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1071, 3510, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1250, 3510, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 3671, 1435, 3510, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1216, 3510, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1185, 95, 3510, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 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, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1071, 3510, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1250, 3510, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 3671, 1435, 3510, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1216, 3510, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1185, 95, 3510, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 1876, 10628, 1429, 12, 15556, 16, 844, 5322, 1769, 1361, 5014, 2 ]
return new SingleCheckboxOptionsPanel("Ignore fully qualified names in javadoc", this, "m_ignoreJavadoc");
return new SingleCheckboxOptionsPanel( "Ignore fully qualified names in javadoc", this, "m_ignoreJavadoc");
public JComponent createOptionsPanel(){ return new SingleCheckboxOptionsPanel("Ignore fully qualified names in javadoc", this, "m_ignoreJavadoc"); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/426a78217e23e2d5485db1ec81e44f7e6ea657e3/UnnecessaryFullyQualifiedNameInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/style/UnnecessaryFullyQualifiedNameInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 29058, 752, 1320, 5537, 1435, 95, 3639, 327, 394, 10326, 21272, 1320, 5537, 2932, 3777, 7418, 9348, 1257, 316, 30829, 3113, 4766, 2868, 333, 16, 4766, 2868, 315, 81, 67, 6185, 24060, 8863, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 29058, 752, 1320, 5537, 1435, 95, 3639, 327, 394, 10326, 21272, 1320, 5537, 2932, 3777, 7418, 9348, 1257, 316, 30829, 3113, 4766, 2868, 333, 16, 4766, 2868, 315, 81, 67, 6185, 24060, 8863, 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 ]
IBinaryExecutable exeFile = verifyBinary(project, exePath);
IBinaryObject exeFile = verifyBinary(project, exePath);
public void launch(ILaunchConfiguration config, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { if (monitor == null) { monitor = new NullProgressMonitor(); } monitor.beginTask(LaunchMessages.getString("CoreFileLaunchDelegate.Launching_postmortem_debugger"), 10); //$NON-NLS-1$ // check for cancellation if (monitor.isCanceled()) { return; } try { monitor.worked(1); IPath exePath = verifyProgramPath(config); ICProject project = verifyCProject(config); IBinaryExecutable exeFile = verifyBinary(project, exePath); ICDebugConfiguration debugConfig = getDebugConfig(config); ICDISession dsession = null; ICProject cproject = getCProject(config); String path = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_COREFILE_PATH, (String)null); if (path == null) { IPath corefile = promptForCoreFilePath((IProject)cproject.getResource(), debugConfig); if (corefile == null) { cancel(LaunchMessages.getString("CoreFileLaunchDelegate.No_Corefile_selected"), //$NON-NLS-1$ ICDTLaunchConfigurationConstants.ERR_NO_COREFILE); } ILaunchConfigurationWorkingCopy wc = config.getWorkingCopy(); wc.setAttribute(ICDTLaunchConfigurationConstants.ATTR_COREFILE_PATH, corefile.toString()); wc.launch(mode, new SubProgressMonitor(monitor, 9)); wc.setAttribute(ICDTLaunchConfigurationConstants.ATTR_COREFILE_PATH, (String)null); cancel("", -1); //$NON-NLS-1$ } else { dsession = debugConfig.createDebugger().createDebuggerSession(launch, exeFile, new SubProgressMonitor(monitor, 8)); try { // set the source locator setDefaultSourceLocator(launch, config); ICDITarget[] targets = dsession.getTargets(); for (int i = 0; i < targets.length; i++) { Process process = targets[i].getProcess(); IProcess iprocess = null; if (process != null) { iprocess = DebugPlugin.newProcess(launch, process, renderProcessLabel(exePath.toOSString())); } CDIDebugModel.newDebugTarget(launch, project.getProject(), targets[i], renderTargetLabel(debugConfig), iprocess, exeFile, true, false, false); } } catch (CoreException e) { try { dsession.terminate(); } catch (CDIException cdi) { } throw e; } } } finally { monitor.done(); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/176c7265677179a23f56d08515beed62629ad5eb/CoreFileLaunchDelegate.java/buggy/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CoreFileLaunchDelegate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 8037, 12, 2627, 4760, 1750, 642, 16, 514, 1965, 16, 467, 9569, 8037, 16, 467, 5491, 7187, 6438, 13, 1216, 30015, 288, 202, 202, 430, 261, 10259, 422, 446, 13, 288, 1082, 202, 10259, 273, 394, 4112, 5491, 7187, 5621, 202, 202, 97, 202, 202, 10259, 18, 10086, 2174, 12, 9569, 5058, 18, 588, 780, 2932, 4670, 812, 9569, 9586, 18, 9569, 310, 67, 2767, 81, 499, 351, 67, 4148, 693, 6, 3631, 1728, 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, 202, 202, 698, 288, 1082, 202, 10259, 18, 1252, 329, 12, 21, 1769, 1082, 202, 45, 743, 15073, 743, 273, 3929, 9459, 743, 12, 1425, 1769, 1082, 202, 2871, 4109, 1984, 273, 3929, 39, 4109, 12, 1425, 1769, 1082, 202, 45, 5905, 17709, 15073, 812, 273, 3929, 5905, 12, 4406, 16, 15073, 743, 1769, 1082, 202, 2871, 2829, 1750, 1198, 809, 273, 29264, 809, 12, 1425, 1769, 1082, 202, 2871, 2565, 2157, 302, 3184, 273, 446, 31, 1082, 202, 2871, 4109, 276, 4406, 273, 1927, 4109, 12, 1425, 1769, 1082, 202, 780, 589, 273, 642, 18, 588, 1499, 12, 2871, 40, 5967, 4760, 1750, 2918, 18, 12043, 67, 15715, 3776, 67, 4211, 16, 261, 780, 13, 2011, 1769, 1082, 202, 430, 261, 803, 422, 446, 13, 288, 9506, 202, 45, 743, 2922, 768, 273, 6866, 1290, 4670, 5598, 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, 642, 16, 514, 1965, 16, 467, 9569, 8037, 16, 467, 5491, 7187, 6438, 13, 1216, 30015, 288, 202, 202, 430, 261, 10259, 422, 446, 13, 288, 1082, 202, 10259, 273, 394, 4112, 5491, 7187, 5621, 202, 202, 97, 202, 202, 10259, 18, 10086, 2174, 12, 9569, 5058, 18, 588, 780, 2932, 4670, 812, 9569, 9586, 18, 9569, 310, 67, 2767, 81, 499, 351, 67, 4148, 693, 6, 3631, 1728, 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, 202, 202, 698, 288, 1082, 202, 10259, 18, 1252, 329, 2 ]
public void textDecl(String version, String encoding) throws XNIException { }
public void textDecl(String version, String encoding, Augmentations augs) throws XNIException{ }
public void textDecl(String version, String encoding) throws XNIException { } // textDecl(String,String)
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/1281996de10d3af1b51f0b4d78cfcd75d8ade6fe/AbstractXMLDocumentParser.java/clean/src/org/apache/xerces/parsers/AbstractXMLDocumentParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 977, 3456, 12, 780, 1177, 16, 514, 2688, 13, 1216, 1139, 50, 45, 503, 288, 565, 289, 368, 977, 3456, 12, 780, 16, 780, 13, 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, 377, 1071, 918, 977, 3456, 12, 780, 1177, 16, 514, 2688, 13, 1216, 1139, 50, 45, 503, 288, 565, 289, 368, 977, 3456, 12, 780, 16, 780, 13, 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 ]
log("Switching diagnostic mode " + (diagnostic ? "on" : "off"));
logger.info("Switching diagnostic mode " + (diagnostic ? "on" : "off"));
public boolean switchDiagnosticMode(boolean diagnostic) { log("Switching diagnostic mode " + (diagnostic ? "on" : "off")); try { setMonitoring(false); boolean ret = commHelper.sendMessage(diagnostic ? DIAGNOSTIC_ON : DIAGNOSTIC_OFF, MAXIMUM_TIMEOUT); setMonitoring(true); if (!ret) return false; } catch (IOException e) { return false; } catch (PortInUseException e) { return false; } diagnosticMode = diagnostic; return true; }
14316 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14316/6282e6faabb09150b53af9b09b1ea304a66deb6e/SerialConnector.java/buggy/src/java/RelateAuthentication/src/uk/ac/lancs/relate/SerialConnector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1620, 26836, 2309, 12, 6494, 21396, 13, 288, 202, 202, 1330, 2932, 10200, 310, 21396, 1965, 315, 397, 261, 12264, 11388, 692, 315, 265, 6, 294, 315, 3674, 7923, 1769, 202, 202, 698, 288, 1082, 202, 542, 18410, 12, 5743, 1769, 1082, 202, 6494, 325, 273, 1543, 2276, 18, 4661, 1079, 12, 12264, 11388, 692, 3690, 1781, 3417, 882, 2871, 67, 673, 294, 3690, 1781, 3417, 882, 2871, 67, 8797, 16, 4552, 18605, 67, 9503, 1769, 1082, 202, 542, 18410, 12, 3767, 1769, 1082, 202, 430, 16051, 1349, 13, 9506, 202, 2463, 629, 31, 202, 202, 97, 3196, 202, 14683, 261, 14106, 425, 13, 288, 1082, 202, 2463, 629, 31, 202, 202, 97, 202, 202, 14683, 261, 2617, 15435, 503, 425, 13, 288, 1082, 202, 2463, 629, 31, 202, 202, 97, 202, 202, 12264, 11388, 2309, 273, 21396, 31, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1620, 26836, 2309, 12, 6494, 21396, 13, 288, 202, 202, 1330, 2932, 10200, 310, 21396, 1965, 315, 397, 261, 12264, 11388, 692, 315, 265, 6, 294, 315, 3674, 7923, 1769, 202, 202, 698, 288, 1082, 202, 542, 18410, 12, 5743, 1769, 1082, 202, 6494, 325, 273, 1543, 2276, 18, 4661, 1079, 12, 12264, 11388, 692, 3690, 1781, 3417, 882, 2871, 67, 673, 294, 3690, 1781, 3417, 882, 2871, 67, 8797, 16, 4552, 18605, 67, 9503, 1769, 1082, 202, 542, 18410, 12, 3767, 1769, 1082, 202, 430, 16051, 1349, 13, 9506, 202, 2463, 629, 31, 202, 202, 97, 3196, 202, 14683, 261, 14106, 425, 13, 288, 1082, 202, 2463, 629, 31, 202, 202, 97, 202, 202, 2 ]
protected boolean isPropertySupported(EStructuralFeature feature, EClass featureClass) { View element = getViewElement(); if (element.getStyle(featureClass) != null) return true; return featureClass.isInstance(element);
public final boolean isPropertySupported(Object id) { Assert.isTrue(id instanceof String); EStructuralFeature feature = (EStructuralFeature) MetaModelUtil.getElement((String)id); if (feature != null) { return isPropertySupported(feature, feature.getEContainingClass()); } return false;
protected boolean isPropertySupported(EStructuralFeature feature, EClass featureClass) { View element = getViewElement(); // check if the id belongs to the view if (element.getStyle(featureClass) != null) return true; // check if the id belongs to a style owned by the view return featureClass.isInstance(element); }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/af130b3fb6c9e6d14720afee4133e9fa73d2e955/AbstractView.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui/src/org/eclipse/gmf/runtime/diagram/ui/internal/view/AbstractView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 353, 1396, 7223, 12, 41, 14372, 4595, 2572, 16, 8233, 2572, 797, 13, 288, 202, 202, 1767, 930, 273, 8893, 1046, 5621, 202, 202, 759, 866, 309, 326, 612, 11081, 358, 326, 1476, 202, 202, 430, 261, 2956, 18, 588, 2885, 12, 7238, 797, 13, 480, 446, 13, 1082, 202, 2463, 638, 31, 9506, 202, 759, 866, 309, 326, 612, 11081, 358, 279, 2154, 16199, 635, 326, 1476, 202, 202, 2463, 2572, 797, 18, 291, 1442, 12, 2956, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 353, 1396, 7223, 12, 41, 14372, 4595, 2572, 16, 8233, 2572, 797, 13, 288, 202, 202, 1767, 930, 273, 8893, 1046, 5621, 202, 202, 759, 866, 309, 326, 612, 11081, 358, 326, 1476, 202, 202, 430, 261, 2956, 18, 588, 2885, 12, 7238, 797, 13, 480, 446, 13, 1082, 202, 2463, 638, 31, 9506, 202, 759, 866, 309, 326, 612, 11081, 358, 279, 2154, 16199, 635, 326, 1476, 202, 202, 2463, 2572, 797, 18, 291, 1442, 12, 2956, 1769, 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 ]
public boolean victory() { if (game.isForceVictory()) { int victoryPlayerId = game.getVictoryPlayerId(); int victoryTeam = game.getVictoryTeam(); Vector players = game.getPlayersVector(); boolean forceVictory = true; // Individual victory. if (victoryPlayerId != Player.PLAYER_NONE) { for (int i = 0; i < players.size(); i++) { Player player = (Player) players.elementAt(i); if (player.getId() != victoryPlayerId && !player.isObserver()) { if (!player.admitsDefeat()) { forceVictory = false; break; } } } } // Team victory. if (victoryTeam != Player.TEAM_NONE) { for (int i = 0; i < players.size(); i++) { Player player = (Player) players.elementAt(i); if (player.getTeam() != victoryTeam && !player.isObserver()) { if (!player.admitsDefeat()) { forceVictory = false; break; } } } } for (int i = 0; i < players.size(); i++) { Player player = (Player) players.elementAt(i); player.setAdmitsDefeat(false); } if (forceVictory) { return true; } cancelVictory(); } if (!game.getOptions().booleanOption("check_victory")) { return false; } // check all players/teams for aliveness int playersAlive = 0; Player lastPlayer = null; boolean oneTeamAlive = false; int lastTeam = Player.TEAM_NONE; boolean unteamedAlive = false; for (Enumeration e = game.getPlayers(); e.hasMoreElements();) { Player player = (Player)e.nextElement(); int team = player.getTeam(); if (game.getLiveDeployedEntitiesOwnedBy(player) <= 0) { continue; } // we found a live one! playersAlive++; lastPlayer = player; // check team if (team == Player.TEAM_NONE) { unteamedAlive = true; } else if (lastTeam == Player.TEAM_NONE) { // possibly only one team alive oneTeamAlive = true; lastTeam = team; } else if (team != lastTeam) { // more than one team alive oneTeamAlive = false; lastTeam = team; } } // check if there's one player alive if (playersAlive < 1) { game.setVictoryPlayerId( Player.PLAYER_NONE ); game.setVictoryTeam( Player.TEAM_NONE ); return true; } else if ( playersAlive == 1 ) { if (lastPlayer.getTeam() == Player.TEAM_NONE) { // individual victory game.setVictoryPlayerId(lastPlayer.getId()); game.setVictoryTeam(Player.TEAM_NONE); return true; } } // did we only find one live team? if (oneTeamAlive && !unteamedAlive) { // team victory game.setVictoryPlayerId(Player.PLAYER_NONE); game.setVictoryTeam(lastTeam); return true; } return false; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/359f7976ea7b886c35ce9187dadb639fb01ebfca/Server.java/clean/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 28873, 630, 1435, 288, 3639, 309, 261, 13957, 18, 291, 10997, 58, 933, 630, 10756, 288, 540, 202, 474, 28873, 630, 12148, 548, 273, 7920, 18, 588, 58, 933, 630, 12148, 548, 5621, 540, 202, 474, 28873, 630, 8689, 273, 7920, 18, 588, 58, 933, 630, 8689, 5621, 540, 202, 5018, 18115, 273, 7920, 18, 588, 1749, 3907, 5018, 5621, 540, 202, 6494, 2944, 58, 933, 630, 273, 638, 31, 540, 202, 540, 202, 759, 24147, 28873, 630, 18, 540, 202, 430, 261, 11946, 630, 12148, 548, 480, 19185, 18, 52, 22166, 67, 9826, 13, 288, 540, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 18115, 18, 1467, 5621, 277, 27245, 288, 540, 1082, 202, 12148, 7291, 273, 261, 12148, 13, 18115, 18, 2956, 861, 12, 77, 1769, 540, 9506, 540, 1082, 202, 430, 261, 14872, 18, 26321, 1435, 480, 28873, 630, 12148, 548, 597, 401, 14872, 18, 291, 11048, 10756, 288, 540, 9506, 202, 430, 16051, 14872, 18, 20864, 1282, 758, 29735, 10756, 288, 540, 6862, 202, 5734, 58, 933, 630, 273, 629, 31, 540, 6862, 202, 8820, 31, 540, 9506, 202, 97, 540, 1082, 202, 97, 540, 202, 202, 97, 540, 202, 97, 540, 202, 759, 10434, 28873, 630, 18, 540, 202, 430, 261, 11946, 630, 8689, 480, 19185, 18, 1448, 2192, 67, 9826, 13, 288, 540, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 18115, 18, 1467, 5621, 277, 27245, 288, 540, 1082, 202, 12148, 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, 1250, 28873, 630, 1435, 288, 3639, 309, 261, 13957, 18, 291, 10997, 58, 933, 630, 10756, 288, 540, 202, 474, 28873, 630, 12148, 548, 273, 7920, 18, 588, 58, 933, 630, 12148, 548, 5621, 540, 202, 474, 28873, 630, 8689, 273, 7920, 18, 588, 58, 933, 630, 8689, 5621, 540, 202, 5018, 18115, 273, 7920, 18, 588, 1749, 3907, 5018, 5621, 540, 202, 6494, 2944, 58, 933, 630, 273, 638, 31, 540, 202, 540, 202, 759, 24147, 28873, 630, 18, 540, 202, 430, 261, 11946, 630, 12148, 548, 480, 19185, 18, 52, 22166, 67, 9826, 13, 288, 540, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 18115, 18, 1467, 5621, 277, 27245, 288, 540, 2 ]
Log.debug("found " + url);
Log.debug("getResource("+name+")=" + url);
public synchronized URL getResource(String name) { URL url= null; boolean tried_parent= false; if (_context.isParentLoaderPriority() || isSystemPath(name)) { if (Log.isDebugEnabled()) Log.debug("try getResource " + name + " from " + _parent); tried_parent= true; if (_parent!=null) url= _parent.getResource(name); } if (url == null) { if (Log.isDebugEnabled()) Log.debug("try findResource " + name + " from " + _urlClassPath); url= this.findResource(name); if (url == null && name.startsWith("/")) { if (Log.isDebugEnabled()) Log.debug("HACK leading / off " + name); url= this.findResource(name.substring(1)); } } if (url == null && !tried_parent) { if (Log.isDebugEnabled()) Log.debug("try getResource " + name + " from " + _parent); if (_parent!=null) url= _parent.getResource(name); } if (url != null) if (Log.isDebugEnabled()) Log.debug("found " + url); return url; }
13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/acf4447fe7eca1c2a1629742b38c5f81e1cc9b4a/WebAppClassLoader.java/buggy/modules/jetty/src/main/java/org/mortbay/jetty/webapp/WebAppClassLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 1976, 5070, 12, 780, 508, 13, 565, 288, 3639, 1976, 880, 33, 446, 31, 3639, 1250, 12928, 67, 2938, 33, 629, 31, 3639, 309, 261, 67, 2472, 18, 291, 3054, 2886, 8183, 1435, 747, 353, 3163, 743, 12, 529, 3719, 3639, 288, 5411, 309, 261, 1343, 18, 291, 2829, 1526, 10756, 7734, 1827, 18, 4148, 2932, 698, 5070, 315, 397, 508, 397, 315, 628, 315, 397, 389, 2938, 1769, 5411, 12928, 67, 2938, 33, 638, 31, 13491, 309, 261, 67, 2938, 5, 33, 2011, 13, 7734, 880, 33, 389, 2938, 18, 588, 1420, 12, 529, 1769, 3639, 289, 3639, 309, 261, 718, 422, 446, 13, 3639, 288, 5411, 309, 261, 1343, 18, 291, 2829, 1526, 10756, 7734, 1827, 18, 4148, 2932, 698, 1104, 1420, 315, 397, 508, 397, 315, 628, 315, 397, 389, 718, 22158, 1769, 5411, 880, 33, 333, 18, 4720, 1420, 12, 529, 1769, 5411, 309, 261, 718, 422, 446, 597, 508, 18, 17514, 1190, 2932, 4898, 3719, 5411, 288, 7734, 309, 261, 1343, 18, 291, 2829, 1526, 10756, 10792, 1827, 18, 4148, 2932, 44, 3649, 7676, 342, 3397, 315, 397, 508, 1769, 7734, 880, 33, 333, 18, 4720, 1420, 12, 529, 18, 28023, 12, 21, 10019, 5411, 289, 3639, 289, 3639, 309, 261, 718, 422, 446, 597, 401, 313, 2092, 67, 2938, 13, 3639, 288, 5411, 309, 261, 1343, 18, 291, 2829, 1526, 10756, 7734, 1827, 18, 4148, 2932, 698, 5070, 315, 397, 508, 397, 315, 628, 315, 397, 389, 2938, 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, 3852, 1976, 5070, 12, 780, 508, 13, 565, 288, 3639, 1976, 880, 33, 446, 31, 3639, 1250, 12928, 67, 2938, 33, 629, 31, 3639, 309, 261, 67, 2472, 18, 291, 3054, 2886, 8183, 1435, 747, 353, 3163, 743, 12, 529, 3719, 3639, 288, 5411, 309, 261, 1343, 18, 291, 2829, 1526, 10756, 7734, 1827, 18, 4148, 2932, 698, 5070, 315, 397, 508, 397, 315, 628, 315, 397, 389, 2938, 1769, 5411, 12928, 67, 2938, 33, 638, 31, 13491, 309, 261, 67, 2938, 5, 33, 2011, 13, 7734, 880, 33, 389, 2938, 18, 588, 1420, 12, 529, 1769, 3639, 289, 3639, 309, 261, 718, 422, 446, 13, 3639, 288, 5411, 309, 261, 1343, 18, 291, 2829, 1526, 10756, 2 ]
LoggerAdapter.error("Error", ex, LOGGER_NAME);
LoggerAdapter.error(MessageKey.ERROR.getLocalizedMessage(), ex, LOGGER_NAME);
public static void main(String [] args) throws ConfigFileLoadingException { String configFile = CONFIG_FILE_NAME; if(args.length == 1) { configFile = args[0]; } sOMS = createOMS(configFile); try { sOMS.init(); LoggerAdapter.info("Starting.", LOGGER_NAME); sOMS.run(); Thread.currentThread().join(); } catch (JMSException jmse) { LoggerAdapter.error("JMS error", jmse, LOGGER_NAME); } catch (quickfix.ConfigError ce) { LoggerAdapter.error("Config error", ce, LOGGER_NAME); } catch (FileNotFoundException fnf) { LoggerAdapter.error("Config file not found: ", fnf, LOGGER_NAME); } catch (ClassNotFoundException cnfe) { LoggerAdapter.error("Class not found ", cnfe, LOGGER_NAME); } catch (Exception ex) { LoggerAdapter.error("Error", ex, LOGGER_NAME); } finally { LoggerAdapter.info("Exiting application.", LOGGER_NAME); } }
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/6af9be60f3f74798ea673e46171c016ea3551f5a/OrderManagementSystem.java/buggy/source/oms/src/main/java/org/marketcetera/oms/OrderManagementSystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 5378, 833, 13, 1216, 31988, 10515, 503, 565, 288, 3639, 514, 12247, 273, 9128, 67, 3776, 67, 1985, 31, 3639, 309, 12, 1968, 18, 2469, 422, 404, 13, 288, 5411, 12247, 273, 833, 63, 20, 15533, 3639, 289, 3639, 272, 1872, 55, 273, 752, 1872, 55, 12, 1425, 812, 1769, 3639, 775, 288, 5411, 272, 1872, 55, 18, 2738, 5621, 5411, 4242, 4216, 18, 1376, 2932, 11715, 1199, 16, 4145, 67, 1985, 1769, 5411, 272, 1872, 55, 18, 2681, 5621, 5411, 4884, 18, 2972, 3830, 7675, 5701, 5621, 3639, 289, 1044, 261, 46, 3537, 503, 28296, 307, 13, 288, 5411, 4242, 4216, 18, 1636, 2932, 46, 3537, 555, 3113, 28296, 307, 16, 4145, 67, 1985, 1769, 3639, 289, 1044, 261, 19525, 904, 18, 809, 668, 5898, 13, 288, 5411, 4242, 4216, 18, 1636, 2932, 809, 555, 3113, 5898, 16, 4145, 67, 1985, 1769, 3639, 289, 1044, 261, 812, 3990, 2295, 74, 13, 288, 5411, 4242, 4216, 18, 1636, 2932, 809, 585, 486, 1392, 30, 3104, 2295, 74, 16, 4145, 67, 1985, 1769, 3639, 289, 1044, 261, 797, 3990, 6227, 3030, 13, 288, 5411, 4242, 4216, 18, 1636, 2932, 797, 486, 1392, 3104, 6227, 3030, 16, 4145, 67, 1985, 1769, 3639, 289, 1044, 261, 503, 431, 13, 288, 5411, 4242, 4216, 18, 1636, 12, 1079, 653, 18, 3589, 18, 588, 2042, 1235, 1079, 9334, 431, 16, 4145, 67, 1985, 1769, 3639, 289, 3095, 288, 5411, 4242, 4216, 18, 1376, 2932, 6767, 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, 2774, 12, 780, 5378, 833, 13, 1216, 31988, 10515, 503, 565, 288, 3639, 514, 12247, 273, 9128, 67, 3776, 67, 1985, 31, 3639, 309, 12, 1968, 18, 2469, 422, 404, 13, 288, 5411, 12247, 273, 833, 63, 20, 15533, 3639, 289, 3639, 272, 1872, 55, 273, 752, 1872, 55, 12, 1425, 812, 1769, 3639, 775, 288, 5411, 272, 1872, 55, 18, 2738, 5621, 5411, 4242, 4216, 18, 1376, 2932, 11715, 1199, 16, 4145, 67, 1985, 1769, 5411, 272, 1872, 55, 18, 2681, 5621, 5411, 4884, 18, 2972, 3830, 7675, 5701, 5621, 3639, 289, 1044, 261, 46, 3537, 503, 28296, 307, 13, 288, 5411, 4242, 4216, 18, 1636, 2932, 46, 3537, 555, 3113, 28296, 307, 16, 2 ]
{ Pack pack = (Pack) packs.get(rowIndex); switch(columnIndex) { case 0: int val = 0; if (pack.required) { val = -1; } else { val = (packsToInstall.contains(pack) ? 1 : 0 ); } return new Integer( val );
{ Pack pack = (Pack) packs.get(rowIndex); switch (columnIndex) { case 0 : int val = 0; if (pack.required) { val = -1; } else { val = (packsToInstall.contains(pack) ? 1 : 0); } return new Integer(val);
public Object getValueAt(int rowIndex, int columnIndex) { Pack pack = (Pack) packs.get(rowIndex); switch(columnIndex) { case 0: int val = 0; if (pack.required) { val = -1; } else { val = (packsToInstall.contains(pack) ? 1 : 0 ); } return new Integer( val ); case 1: return pack.name; case 2: return Pack.toByteUnitsString((int)pack.nbytes); default : return null; } }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/PacksPanel.java/buggy/src/lib/com/izforge/izpack/panels/PacksPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1033, 2366, 861, 12, 474, 15361, 16, 509, 14882, 13, 3639, 288, 5411, 7930, 2298, 273, 261, 4420, 13, 2298, 87, 18, 588, 12, 492, 1016, 1769, 5411, 1620, 12, 2827, 1016, 13, 5411, 288, 7734, 648, 374, 30, 10792, 509, 1244, 273, 374, 31, 10792, 309, 261, 2920, 18, 4718, 13, 10792, 288, 13491, 1244, 273, 300, 21, 31, 10792, 289, 10792, 469, 10792, 288, 13491, 1244, 273, 261, 2920, 11634, 6410, 18, 12298, 12, 2920, 13, 692, 404, 294, 374, 11272, 10792, 289, 10792, 327, 394, 2144, 12, 1244, 11272, 7734, 648, 404, 30, 10792, 327, 2298, 18, 529, 31, 7734, 648, 576, 30, 10792, 327, 7930, 18, 869, 3216, 7537, 780, 12443, 474, 13, 2920, 18, 82, 3890, 1769, 7734, 805, 294, 10792, 327, 446, 31, 5411, 289, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1033, 2366, 861, 12, 474, 15361, 16, 509, 14882, 13, 3639, 288, 5411, 7930, 2298, 273, 261, 4420, 13, 2298, 87, 18, 588, 12, 492, 1016, 1769, 5411, 1620, 12, 2827, 1016, 13, 5411, 288, 7734, 648, 374, 30, 10792, 509, 1244, 273, 374, 31, 10792, 309, 261, 2920, 18, 4718, 13, 10792, 288, 13491, 1244, 273, 300, 21, 31, 10792, 289, 10792, 469, 10792, 288, 13491, 1244, 273, 261, 2920, 11634, 6410, 18, 12298, 12, 2920, 13, 692, 404, 294, 374, 11272, 10792, 289, 10792, 327, 394, 2144, 12, 1244, 11272, 7734, 648, 404, 30, 10792, 327, 2298, 18, 529, 31, 7734, 648, 576, 30, 10792, 327, 7930, 18, 869, 3216, 7537, 780, 12443, 474, 13, 2 ]