rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
this.ranges.set(lhs,m);
public synchronized void add(RangeSet that) { int lhs=0,rhs=0; while(lhs<this.ranges.size() && rhs<that.ranges.size()) { Range lr = this.ranges.get(lhs); Range rr = that.ranges.get(rhs); // no overlap if(lr.end<rr.start) { lhs++; continue; } if(rr.end<lr.start) { ranges.add(lhs,rr); lhs++; rhs++; continue; } // overlap. merge two Range m = lr.combine(rr); rhs++; // since ranges[lhs] is explanded, it might overlap with others in this.ranges while(lhs+1<this.ranges.size() && !m.isIndependent(this.ranges.get(lhs+1))) { m = m.combine(this.ranges.get(lhs+1)); this.ranges.remove(lhs+1); } this.ranges.set(lhs,m); } // if anything is left in that.ranges, add them all this.ranges.addAll(that.ranges.subList(rhs,that.ranges.size())); }
51053 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51053/4cabee9f1879beff5e0336b407bd3bcfe596826e/Fingerprint.java/buggy/core/src/main/java/hudson/model/Fingerprint.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 3852, 918, 527, 12, 2655, 694, 716, 13, 288, 5411, 509, 8499, 33, 20, 16, 86, 4487, 33, 20, 31, 5411, 1323, 12, 80, 4487, 32, 2211, 18, 14530, 18, 1467, 1435, 597, 7711, 32, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 3852, 918, 527, 12, 2655, 694, 716, 13, 288, 5411, 509, 8499, 33, 20, 16, 86, 4487, 33, 20, 31, 5411, 1323, 12, 80, 4487, 32, 2211, 18, 14530, 18, 1467, 1435, 597, 7711, 32, 1...
List<Contact> roster;
Assert.assertNotNull( "The team provider requires an artifact id: java.lang.Long.", input); Assert.assertOfType( "The team provider requires an artifact id: java.lang.Long.", Long.class, input); final Long artifactId = (Long) input; List<Contact> artifactContacts;
public Object[] getElements(final Object input) { List<Contact> roster; try { roster = sessionModel.readContacts(); // remove all team members from the roster list final Contact[] team = (Contact[]) input; if(null != team) { for(final Contact contact : team) roster.remove(contact); } } catch(final ParityException px) { throw new RuntimeException(px); } return roster.toArray(new Contact[] {}); }
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/e397e185a7860feada91b8307956a3b3a60d5857/ProviderFactory.java/clean/client-ui/src/main/java/com/thinkparity/browser/application/browser/display/provider/ProviderFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 1033, 8526, 8886, 12, 6385, 1033, 810, 13, 288, 9506, 202, 682, 32, 6567, 34, 721, 8190, 31, 9506, 202, 698, 288, 6862, 202, 303, 8190, 273, 1339, 1488, 18, 896, 20017, 5621,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 1033, 8526, 8886, 12, 6385, 1033, 810, 13, 288, 9506, 202, 682, 32, 6567, 34, 721, 8190, 31, 9506, 202, 698, 288, 6862, 202, 303, 8190, 273, 1339, 1488, 18, 896, 20017, 5621,...
parseCandCPP(buffer.toString(), false, true);
parseCandCPP(buffer.toString(), true, 0);
public void test6_7_3s11() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("int f() {\n"); //$NON-NLS-1$ buffer.append("const struct s { int mem; } cs = { 1 };\n"); //$NON-NLS-1$ buffer.append("struct s ncs; // the object ncs is modifiable\n"); //$NON-NLS-1$ buffer.append("typedef int A[2][3];\n"); //$NON-NLS-1$ buffer.append("const A a = {{4, 5, 6}, {7, 8, 9}}; // array of array of const int\n"); //$NON-NLS-1$ buffer.append("int *pi;\n"); //$NON-NLS-1$ buffer.append("const int *pci;\n"); //$NON-NLS-1$ buffer.append("ncs = cs; // valid\n"); //$NON-NLS-1$ buffer.append("cs = ncs; // violates modifiable lvalue constraint for =\n"); //$NON-NLS-1$ buffer.append("pi = &ncs.mem; // valid\n"); //$NON-NLS-1$ buffer.append("pi = &cs.mem; // violates type constraints for =\n"); //$NON-NLS-1$ buffer.append("pci = &cs.mem; // valid\n"); //$NON-NLS-1$ buffer.append("pi = a[0]; // invalid: a[0] has type const int *\n"); //$NON-NLS-1$ buffer.append("}\n"); //$NON-NLS-1$ parseCandCPP(buffer.toString(), false, true); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/7d7fa374bfd169ce8924a5c15bd01444e6e6e445/AST2CSpecTest.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CSpecTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 26, 67, 27, 67, 23, 87, 2499, 1435, 1216, 1185, 288, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 202, 202, 4106, 18, 6923, 2932, 474, 284, 1435, 18890, 82, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 26, 67, 27, 67, 23, 87, 2499, 1435, 1216, 1185, 288, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 202, 202, 4106, 18, 6923, 2932, 474, 284, 1435, 18890, 82, 8...
}
}
private VM_BasicBlock[] addBasicBlock(VM_BasicBlock newBB, VM_BasicBlock basicBlocks[]) { int blocknum; // Check whether basicBlock array must be grown. // blocknum = newBB.getBlockNumber(); if (blocknum >= basicBlocks.length) { int currentSize = basicBlocks.length; int newSize = 15; if (currentSize!=2) { if (currentSize==15) newSize = bytelength >> 4; // assume 16 bytecodes per basic block else newSize = currentSize + currentSize >> 3; // increase by 12.5% if (newSize <= blocknum) newSize = blocknum + 20; } VM_BasicBlock biggerBlocks[] = new VM_BasicBlock[newSize]; for (int i=0; i<currentSize; i++) biggerBlocks[i] = basicBlocks[i]; basicBlocks = biggerBlocks; biggerBlocks = null; } // if (blocknum >= basicBlocks.length // Go ahead and add block basicBlocks[blocknum] = newBB; return basicBlocks; }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/1a5a7330932a1cc2e7d086437e6658aa6c7c8008/VM_BuildBB.java/buggy/rvm/src/vm/compilers/baseline/GCMap/VM_BuildBB.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 8251, 67, 8252, 1768, 8526, 527, 8252, 1768, 12, 7397, 67, 8252, 1768, 394, 9676, 16, 4405, 202, 7397, 67, 8252, 1768, 5337, 6450, 63, 5717, 288, 565, 509, 1203, 2107, 31, 565, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 8251, 67, 8252, 1768, 8526, 527, 8252, 1768, 12, 7397, 67, 8252, 1768, 394, 9676, 16, 4405, 202, 7397, 67, 8252, 1768, 5337, 6450, 63, 5717, 288, 565, 509, 1203, 2107, 31, 565, 36...
void createCaretBitmaps() { int caretWidth = BIDI_CARET_WIDTH; Display display = getDisplay(); if (caretPalette == null) { caretPalette = new PaletteData(new RGB[] {new RGB (0,0,0), new RGB (255,255,255)}); } if (leftCaretBitmap != null) { leftCaretBitmap.dispose(); } ImageData imageData = new ImageData(caretWidth, lineHeight, 1, caretPalette); leftCaretBitmap = new Image(display, imageData); GC gc = new GC (leftCaretBitmap); gc.setForeground(display.getSystemColor(SWT.COLOR_WHITE)); gc.drawLine(0,0,0,lineHeight); gc.drawLine(0,0,caretWidth-1,0); gc.drawLine(0,1,1,1); gc.dispose(); if (rightCaretBitmap != null) { rightCaretBitmap.dispose(); } rightCaretBitmap = new Image(display, imageData); gc = new GC (rightCaretBitmap); gc.setForeground(display.getSystemColor(SWT.COLOR_WHITE)); gc.drawLine(caretWidth-1,0,caretWidth-1,lineHeight); gc.drawLine(0,0,caretWidth-1,0); gc.drawLine(caretWidth-1,1,1,1); gc.dispose(); }
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/b206c3d5f3a448a2b6dfbc2c13ed7e271cef1597/StyledText.java/clean/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 2640, 39, 20731, 5775, 10711, 1435, 95, 202, 474, 71, 20731, 2384, 33, 38, 30218, 67, 3587, 10238, 67, 10023, 31, 202, 202, 4236, 5417, 33, 588, 4236, 5621, 202, 202, 430, 12, 71, 20731...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 2640, 39, 20731, 5775, 10711, 1435, 95, 202, 474, 71, 20731, 2384, 33, 38, 30218, 67, 3587, 10238, 67, 10023, 31, 202, 202, 4236, 5417, 33, 588, 4236, 5621, 202, 202, 430, 12, 71, 20731...
IPath path = packageFragment.getPath().append(getResourceNameHelper(resourceBundle));
IPath path = packageFragment.getPath().append(getResourceNamePartHelper(resourceBundle));
public IFile getResourceBundleFile(NLSElement nlsElement) { try { String resourceBundle = getResourceBundle(nlsElement); IPackageFragment packageFragment = getResourceBundlePackage(resourceBundle); if (packageFragment != null) { IPath path = packageFragment.getPath().append(getResourceNameHelper(resourceBundle)); return (IFile) (ResourcesPlugin.getWorkspace().getRoot().findMember(path)); } } catch (JavaModelException e) { // do nothing, no file } return null; }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/eb6f0619842c7f0cb11df4bd9684e3bf0c5c49ab/NLSInfo.java/buggy/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 812, 5070, 3405, 812, 12, 5106, 1046, 19668, 1046, 13, 288, 7734, 775, 288, 5411, 514, 1058, 3405, 273, 5070, 3405, 12, 82, 3251, 1046, 1769, 5411, 467, 2261, 7456, 2181, 7456,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 812, 5070, 3405, 812, 12, 5106, 1046, 19668, 1046, 13, 288, 7734, 775, 288, 5411, 514, 1058, 3405, 273, 5070, 3405, 12, 82, 3251, 1046, 1769, 5411, 467, 2261, 7456, 2181, 7456,...
if ((c & 0xFFF) == 0) System.err.println(UCA.hex(c));
if ((c & 0xFFF) == 0) System.err.println(Utility.hex(c));
static public void writeJavascriptInfo() throws IOException { System.err.println("Writing Javascript data"); Normalizer normKD = new Normalizer(Normalizer.NFKD); Normalizer normD = new Normalizer(Normalizer.NFD); log = new PrintWriter(new FileOutputStream("Normalization_data.js")); int count = 0; int datasize = 0; int max = 0; int over7 = 0; log.println("var KD = new Object(); // NFKD compatibility decomposition mappings"); log.println("// NOTE: Hangul is done in code!"); CompactShortArray csa = new CompactShortArray((short)0); for (char c = 0; c < 0xFFFF; ++c) { if ((c & 0xFFF) == 0) System.err.println(UCA.hex(c)); if (0xAC00 <= c && c <= 0xD7A3) continue; if (normKD.hasDecomposition(c)) { ++count; String decomp = normKD.normalize(c); datasize += decomp.length(); if (max < decomp.length()) max = decomp.length(); if (decomp.length() > 7) ++over7; csa.setElementAt(c, (short)count); log.println("\t KD[0x" + UCA.hex(c) + "]='\\u" + UCA.hex(decomp,"\\u") + "';"); } } csa.compact(); log.println("// " + count + " NFKD mappings total"); log.println("// " + datasize + " total characters of results"); log.println("// " + max + " string length, maximum"); log.println("// " + over7 + " result strings with length > 7"); log.println("// " + csa.storage() + " trie length (doesn't count string size)"); log.println(); count = 0; datasize = 0; max = 0; log.println("var D = new Object(); // NFD canonical decomposition mappings"); log.println("// NOTE: Hangul is done in code!"); csa = new CompactShortArray((short)0); for (char c = 0; c < 0xFFFF; ++c) { if ((c & 0xFFF) == 0) System.err.println(UCA.hex(c)); if (0xAC00 <= c && c <= 0xD7A3) continue; if (normD.hasDecomposition(c)) { ++count; String decomp = normD.normalize(c); datasize += decomp.length(); if (max < decomp.length()) max = decomp.length(); csa.setElementAt(c, (short)count); log.println("\t D[0x" + UCA.hex(c) + "]='\\u" + UCA.hex(decomp,"\\u") + "';"); } } csa.compact(); log.println("// " + count + " NFD mappings total"); log.println("// " + datasize + " total characters of results"); log.println("// " + max + " string length, maximum"); log.println("// " + csa.storage() + " trie length (doesn't count string size)"); log.println(); count = 0; datasize = 0; log.println("var CC = new Object(); // canonical class mappings"); CompactByteArray cba = new CompactByteArray(); for (char c = 0; c < 0xFFFF; ++c) { if ((c & 0xFFF) == 0) System.err.println(UCA.hex(c)); int canClass = normKD.getCanonicalClass(c); if (canClass != 0) { ++count; log.println("\t CC[0x" + UCA.hex(c) + "]=" + canClass + ";"); } } cba.compact(); log.println("// " + count + " canonical class mappings total"); log.println("// " + cba.storage() + " trie length"); log.println(); count = 0; datasize = 0; log.println("var C = new Object(); // composition mappings"); log.println("// NOTE: Hangul is done in code!"); System.out.println("WARNING -- COMPOSITIONS UNFINISHED!!"); /* IntHashtable.IntEnumeration enum = normKD.getComposition(); while (enum.hasNext()) { int key = enum.next(); char val = (char) enum.value(); if (0xAC00 <= val && val <= 0xD7A3) continue; ++count; log.println("\tC[0x" + UCA.hex(key) + "]=0x" + UCA.hex(val) + ";"); } log.println("// " + count + " composition mappings total"); log.println(); */ log.close(); System.err.println("Done writing Javascript data"); }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/73ed7bfac58f6e4cb69f3eca850e00afa4d1bd03/WriteCollationData.java/buggy/tools/unicodetools/com/ibm/text/UCA/WriteCollationData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1071, 918, 1045, 27129, 966, 1435, 1216, 1860, 288, 3639, 2332, 18, 370, 18, 8222, 2932, 18835, 22326, 501, 8863, 3639, 8769, 1824, 4651, 47, 40, 273, 394, 8769, 1824, 12, 16132, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1071, 918, 1045, 27129, 966, 1435, 1216, 1860, 288, 3639, 2332, 18, 370, 18, 8222, 2932, 18835, 22326, 501, 8863, 3639, 8769, 1824, 4651, 47, 40, 273, 394, 8769, 1824, 12, 16132, 18,...
if (reopenEditors(oldBug)) {
if (forceSync) {
public BugzillaOfflineStatus add(BugzillaReport entry, boolean saveChosen) throws CoreException { BugzillaOfflineStatus status = BugzillaOfflineStatus.SAVED; try { int index = -1; if ((index = find(entry.getRepositoryUrl(), entry.getId())) >= 0) { BugzillaReport oldBug = list.get(index); String handle = AbstractRepositoryTask.getHandle(entry.getRepositoryUrl(), entry.getId()); ITask task = MylarTaskListPlugin.getTaskListManager().getTaskList().getTask(handle); if (task != null && task instanceof AbstractRepositoryTask) { AbstractRepositoryTask repositoryTask = (AbstractRepositoryTask) task; if (repositoryTask.getLastOpened() == null || entry.getLastModified().compareTo(repositoryTask.getLastOpened()) > 0) { ITask dirtyTask = getDirtyTask(entry); if (oldBug.hasChanges() || dirtyTask != null) { if (!MessageDialog .openQuestion( null, "Update Local Copy", "Local copy of Report " + entry.getId() + " on " + entry.getRepositoryUrl() + " has changes.\nWould you like to override local changes? \n\nNote: if you select No, only the new comment will be saved with the updated bug, all other changes will be lost.")) { ((BugzillaReport) entry).setNewComment(((BugzillaReport) oldBug).getNewComment()); ((BugzillaReport) entry).setHasChanged(true); status = BugzillaOfflineStatus.CONFLICT; } else { ((BugzillaReport) entry).setHasChanged(false); status = BugzillaOfflineStatus.SAVED; } if (dirtyTask != null) { TaskUiUtil.closeEditorInActivePage(dirtyTask); TaskUiUtil.openEditor(dirtyTask, false); } } else { if (reopenEditors(oldBug)) { status = BugzillaOfflineStatus.SAVED; } else { status = BugzillaOfflineStatus.SAVED_WITH_INCOMMING_CHANGES; } } } } list.remove(index); } if (entry.hasChanges() && status != BugzillaOfflineStatus.CONFLICT) { status = BugzillaOfflineStatus.SAVED_WITH_OUTGOING_CHANGES; } list.add(entry); writeFile(); } catch (Exception e) { e.printStackTrace(); IStatus runtimestatus = new Status(IStatus.ERROR, BugzillaUiPlugin.PLUGIN_ID, IStatus.OK, "failed to add offline report", e); throw new CoreException(runtimestatus); } return status; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/89e9926b0a4d823d40d15b9e2db644c9db87e68e/OfflineReportsFile.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/OfflineReportsFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16907, 15990, 23106, 1482, 527, 12, 19865, 15990, 4820, 1241, 16, 1250, 1923, 782, 8918, 13, 1216, 30015, 288, 202, 202, 19865, 15990, 23106, 1482, 1267, 273, 16907, 15990, 23106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16907, 15990, 23106, 1482, 527, 12, 19865, 15990, 4820, 1241, 16, 1250, 1923, 782, 8918, 13, 1216, 30015, 288, 202, 202, 19865, 15990, 23106, 1482, 1267, 273, 16907, 15990, 23106, ...
private void writeMGRLEVELS() throws DRDAProtocolException { int manager; int appLevel; int serverLevel; writer.startDdm(CodePoint.MGRLVLLS); for (int i = 0; i < knownManagers.size(); i++) { manager = ((Integer)knownManagers.elementAt(i)).intValue(); appLevel = appRequester.getManagerLevel(manager); serverLevel = server.getManagerLevel(manager); if (serverLevel >= appLevel) { writer.writeCodePoint4Bytes(manager, appLevel); } else { writer.writeCodePoint4Bytes(manager, serverLevel); appRequester.setManagerLevel(manager, serverLevel); }
private void writeMGRLEVELS() throws DRDAProtocolException { int manager; int appLevel; int serverLevel; writer.startDdm(CodePoint.MGRLVLLS); for (int i = 0; i < knownManagers.size(); i++) { manager = ((Integer)knownManagers.elementAt(i)).intValue(); appLevel = appRequester.getManagerLevel(manager); serverLevel = server.getManagerLevel(manager); if (serverLevel >= appLevel) { writer.writeCodePoint4Bytes(manager, appLevel); } else { writer.writeCodePoint4Bytes(manager, serverLevel); appRequester.setManagerLevel(manager, serverLevel); } } for (int i = 0; i < unknownManagers.size(); i++) { manager = ((Integer)unknownManagers.elementAt(i)).intValue(); writer.writeCodePoint4Bytes(manager, 0); } writer.endDdm();
private void writeMGRLEVELS() throws DRDAProtocolException { int manager; int appLevel; int serverLevel; writer.startDdm(CodePoint.MGRLVLLS); for (int i = 0; i < knownManagers.size(); i++) { manager = ((Integer)knownManagers.elementAt(i)).intValue(); appLevel = appRequester.getManagerLevel(manager); serverLevel = server.getManagerLevel(manager); if (serverLevel >= appLevel) { //Note appLevel has already been set to 0 if we can't support //the original app Level writer.writeCodePoint4Bytes(manager, appLevel); } else { writer.writeCodePoint4Bytes(manager, serverLevel); // reset application manager level to server level appRequester.setManagerLevel(manager, serverLevel); } } // write 0 for all unknown managers for (int i = 0; i < unknownManagers.size(); i++) { manager = ((Integer)unknownManagers.elementAt(i)).intValue(); writer.writeCodePoint4Bytes(manager, 0); } writer.endDdm(); }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/977561c9de22d12b40a3a2f79a8df22ba7fc7752/DRDAConnThread.java/buggy/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 49, 6997, 10398, 55, 1435, 1216, 16801, 9793, 5752, 503, 288, 202, 474, 3301, 31, 202, 474, 595, 2355, 31, 202, 474, 1438, 2355, 31, 202, 6299, 18, 1937, 40, 10956, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 49, 6997, 10398, 55, 1435, 1216, 16801, 9793, 5752, 503, 288, 202, 474, 3301, 31, 202, 474, 595, 2355, 31, 202, 474, 1438, 2355, 31, 202, 6299, 18, 1937, 40, 10956, 12,...
size = new Dimension( size.height, size.width );
int width = (int) DEUtil.convertoToPixel( masterPage.getWidth( ) ); int height = (int) DEUtil.convertoToPixel( masterPage.getHeight( ) ); size = new Dimension( width, height );
public static Dimension getMasterPageSize( MasterPageHandle masterPage ) { Dimension size = null; if ( masterPage == null || masterPage.getPageType( ).equalsIgnoreCase( DesignChoiceConstants.PAGE_SIZE_US_LETTER ) ) { size = new Dimension( MetricUtility.inchToPixel( 8.5, 11 ).x, MetricUtility.inchToPixel( 8.5, 11 ).y ); } else if ( masterPage.getPageType( ).equalsIgnoreCase( DesignChoiceConstants.PAGE_SIZE_US_LEGAL ) ) { size = new Dimension( MetricUtility.inchToPixel( 8.5, 14 ).x, MetricUtility.inchToPixel( 8.5, 14 ).y ); } else if ( masterPage.getPageType( ).equalsIgnoreCase( DesignChoiceConstants.PAGE_SIZE_A4 ) ) { size = new Dimension( MetricUtility.inchToPixel( 8.3, 11.7 ).x, MetricUtility.inchToPixel( 8.3, 11.7 ).y ); } else if ( masterPage.getPageType( ).equalsIgnoreCase( DesignChoiceConstants.PAGE_SIZE_CUSTOM ) ) { int width = (int) DEUtil.convertoToPixel( masterPage.getWidth( ) ); int height = (int) DEUtil.convertoToPixel( masterPage.getHeight( ) ); size = new Dimension( width, height ); } if ( DesignChoiceConstants.PAGE_ORIENTATION_LANDSCAPE .equalsIgnoreCase( masterPage.getOrientation( ) ) ) { size = new Dimension( size.height, size.width ); } return size; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/68f7bb71acd809afccaf1f576b1a498d1218bfe0/EditorRulerComposite.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/rulers/EditorRulerComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 13037, 27607, 24035, 12, 13453, 1964, 3259, 4171, 1964, 262, 202, 95, 202, 202, 8611, 963, 273, 446, 31, 202, 202, 430, 261, 4171, 1964, 422, 446, 9506, 202, 20081, 4171, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 13037, 27607, 24035, 12, 13453, 1964, 3259, 4171, 1964, 262, 202, 95, 202, 202, 8611, 963, 273, 446, 31, 202, 202, 430, 261, 4171, 1964, 422, 446, 9506, 202, 20081, 4171, ...
IOperationApprover approver = (IOperationApprover)approvers.get(i);
IOperationApprover approver = (IOperationApprover) approvers.get(i);
protected IStatus getRedoApproval(IUndoableOperation operation, IAdaptable info) { for (int i = 0; i < approvers.size(); i++) { IOperationApprover approver = (IOperationApprover)approvers.get(i); IStatus approval = approver.proceedRedoing(operation, this, info); if (!approval.isOK()) { if (DEBUG_OPERATION_HISTORY_APPROVAL) { System.out.print("OPERATIONHISTORY >>> Redo not approved by "); //$NON-NLS-1$ System.out.print(approver); System.out.print("for operation "); //$NON-NLS-1$ System.out.print(operation); System.out.print(approval); System.out.println(); } return approval; } } return Status.OK_STATUS; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/3bad50e6f68ff26b260565b7df8938cfe4826b83/DefaultOperationHistory.java/clean/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/operations/DefaultOperationHistory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 1482, 336, 3715, 83, 23461, 12, 45, 31224, 429, 2988, 1674, 16, 467, 13716, 429, 1123, 13, 288, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 6617, 2496, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 1482, 336, 3715, 83, 23461, 12, 45, 31224, 429, 2988, 1674, 16, 467, 13716, 429, 1123, 13, 288, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 6617, 2496, 18, ...
System.err.println("didn't find "+title);
protected static PanelWindowData findPanel(String title, boolean musthave) throws ProtocolError { for (int i=0; i<panelv.size(); i++) { PanelWindowData panel = (PanelWindowData)panelv.get(i); System.err.println("checking "+title+" against "+panel.title); if (panel.title.equals(title)) return panel; } System.err.println("didn't find "+title); if (musthave) throw new ProtocolError("before NEWPANEL"); else return null; }
1286 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1286/94be957a9baec92475aea8404387311072eb44c1/PanelWindowData.java/buggy/distrib/java_GUI/uk/org/jape/PanelWindowData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 760, 23641, 3829, 751, 1104, 5537, 12, 780, 2077, 16, 1250, 1297, 21516, 13, 1216, 4547, 668, 288, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 32, 13916, 90, 18, 1467, 5621, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 23641, 3829, 751, 1104, 5537, 12, 780, 2077, 16, 1250, 1297, 21516, 13, 1216, 4547, 668, 288, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 32, 13916, 90, 18, 1467, 5621, 277, ...
}
public void keyPressed(KeyEvent ke) { int code = ke.getKeyCode(); if(code == KeyEvent.VK_ESCAPE) { ke.consume(); value = null; setVisible(false); } }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/bebd557da53b74c60ab8525aa96904d4cee6224c/Main.java/clean/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 498, 24624, 12, 653, 1133, 12519, 13, 288, 7734, 509, 981, 273, 12519, 18, 588, 653, 1085, 5621, 7734, 309, 12, 710, 422, 23737, 18, 58, 47, 67, 24849, 13, 288, 10792, 12519...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 498, 24624, 12, 653, 1133, 12519, 13, 288, 7734, 509, 981, 273, 12519, 18, 588, 653, 1085, 5621, 7734, 309, 12, 710, 422, 23737, 18, 58, 47, 67, 24849, 13, 288, 10792, 12519...
if (root != null) { root.setBounds(getParent().getClientArea()); }
public void resizeChild(LayoutPart childThatChanged) { forceLayout(); if (root != null) { root.setBounds(getParent().getClientArea()); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ba0fdd9a5113101382b472bafbaa83f334f2ef9c/PartSashContainer.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PartSashContainer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7041, 1763, 12, 3744, 1988, 1151, 18163, 5033, 13, 288, 3639, 2944, 3744, 5621, 3639, 309, 261, 3085, 480, 446, 13, 288, 5411, 1365, 18, 542, 5694, 12, 588, 3054, 7675, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7041, 1763, 12, 3744, 1988, 1151, 18163, 5033, 13, 288, 3639, 2944, 3744, 5621, 3639, 309, 261, 3085, 480, 446, 13, 288, 5411, 1365, 18, 542, 5694, 12, 588, 3054, 7675, 588, ...
removePropertyChangeListener((EObject) objects[0],
removeNotificationListener((EObject) objects[0],
protected void removeListenerFilter(String filterId) { if (listenerFilters == null) return; Object[] objects = (Object[]) listenerFilters.get(filterId); if (objects == null) return; if (objects.length>2){ PresentationListener.getInstance(). removePropertyChangeListener((EObject) objects[0], (EStructuralFeature) objects[1], (PropertyChangeListener) objects[2]); }else{ if (objects[0] instanceof PropertyChangeNotifier){ ((PropertyChangeNotifier) objects[0]) .removePropertyChangeListener((PropertyChangeListener) objects[1]); } else { PresentationListener.getInstance().removePropertyChangeListener((EObject) objects[0],(PropertyChangeListener) objects[1]); } } listenerFilters.remove(filterId); }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/94c38bd9865b5750d956f0b2101c832d2c93177f/GraphicalEditPart.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui/src/org/eclipse/gmf/runtime/diagram/ui/editparts/GraphicalEditPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 18873, 1586, 12, 780, 1034, 548, 13, 288, 202, 202, 430, 261, 12757, 5422, 422, 446, 13, 1082, 202, 2463, 31, 202, 202, 921, 8526, 2184, 273, 261, 921, 63, 5717, 2991, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18873, 1586, 12, 780, 1034, 548, 13, 288, 202, 202, 430, 261, 12757, 5422, 422, 446, 13, 1082, 202, 2463, 31, 202, 202, 921, 8526, 2184, 273, 261, 921, 63, 5717, 2991, ...
if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); }
if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); }
public RubyObject m_private(RubyObject[] args) { if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); } if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PRIVATE); } else { setMethodVisibility(args, Constants.NOEX_PRIVATE); } return this; }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 312, 67, 1152, 12, 54, 10340, 921, 8526, 833, 13, 288, 202, 202, 430, 261, 588, 54, 10340, 7675, 588, 4368, 2355, 1435, 1545, 1059, 597, 401, 291, 29048, 10756, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 312, 67, 1152, 12, 54, 10340, 921, 8526, 833, 13, 288, 202, 202, 430, 261, 588, 54, 10340, 7675, 588, 4368, 2355, 1435, 1545, 1059, 597, 401, 291, 29048, 10756, 28...
public ISourcePosition getPosition() { return _curPos; }
public ISourcePosition getPosition() { return _curPos; }
public ISourcePosition getPosition() { return _curPos; }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/buggy/org/jruby/lexer/yacc/RubyYaccLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 467, 1830, 2555, 14441, 1435, 202, 202, 95, 1082, 202, 2463, 389, 1397, 1616, 31, 202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 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, 3196, 202, 482, 467, 1830, 2555, 14441, 1435, 202, 202, 95, 1082, 202, 2463, 389, 1397, 1616, 31, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
final String prefixForNamespace ( String ns, String suggestion, boolean createIfMissing ) { if (ns == null) ns = ""; // special cases if (ns.equals( Locale._xml1998Uri )) return "xml"; if (ns.equals( Locale._xmlnsUri )) return "xmlns"; // Get the closest container for the spot we're on Xobj base = this; while ( !base.isContainer() ) base = base.ensureParent(); // Special handling for the no-namespace case if (ns.length() == 0) { // Search for a namespace decl which defines the default namespace Xobj a = base.findXmlnsForPrefix( "" ); // If I did not find a default decl or the decl maps to the no namespace, then // the default namespace is mapped to "" if (a == null || a.getXmlnsUri().length() == 0) return ""; // At this point, I've found a default namespace which is *not* the no-namespace. // If I can't modify the document to mape the desired no-namespace, I must fail. if (!createIfMissing) return null; // Ok, I need to make the default namespace on the nearest container map to "" base.setAttr( _locale.createXmlns( null ), "" ); return ""; } // Look for an exisiting mapping for the desired uri which has a visible prefix for ( Xobj c = base ; c != null ; c = c._parent ) for ( Xobj a = c.firstAttr() ; a != null ; a = a.nextAttr() ) if (a.isXmlns() && a.getXmlnsUri().equals( ns )) if (base.findXmlnsForPrefix( a.getXmlnsPrefix() ) == a) return a.getXmlnsPrefix(); // No exisiting xmlns I can use, need to create one. See if I can first if (!createIfMissing) return null; // Sanitize the suggestion. if (suggestion != null && (suggestion.length() == 0 || suggestion.toLowerCase().startsWith( "xml" ) || base.findXmlnsForPrefix( suggestion ) != null)) { suggestion = null; } // If no suggestion, make one up if (suggestion == null) { String prefixBase = QNameHelper.suggestPrefix( ns ); suggestion = prefixBase; for ( int i = 1 ; ; suggestion = prefixBase + i++ ) if (base.findXmlnsForPrefix( suggestion ) == null) break; } // Add a new namespace decl at the top elem if one exists, otherwise at root Xobj c = base; while ( !c.isRoot() && !c.ensureParent().isRoot() ) c = c._parent; base.setAttr( _locale.createXmlns( suggestion ), ns ); return suggestion; }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/992293ff82d9e7521bc6792bda27b12a095d135c/Xobj.java/clean/src/store/org/apache/xmlbeans/impl/store/Xobj.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 727, 514, 1633, 1290, 3402, 261, 514, 3153, 16, 514, 19715, 16, 1250, 752, 2047, 4841, 262, 565, 288, 3639, 309, 261, 2387, 422, 446, 13, 5411, 3153, 273, 1408, 31, 3639, 368, 4582, 608...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 514, 1633, 1290, 3402, 261, 514, 3153, 16, 514, 19715, 16, 1250, 752, 2047, 4841, 262, 565, 288, 3639, 309, 261, 2387, 422, 446, 13, 5411, 3153, 273, 1408, 31, 3639, 368, 4582, 608...
&& contentSpecType != XMLElementDecl.TYPE_SIMPLE
private void validateElementAndAttributes(QName element, XMLAttrList attrList) throws Exception { if ((fElementDepth >= 0 && fValidationFlagStack[fElementDepth] != 0 )|| (fGrammar == null && !fValidating && !fNamespacesEnabled) ) { fCurrentElementIndex = -1; fCurrentContentSpecType = -1; fInElementContent = false; if (fAttrListHandle != -1) { fAttrList.endAttrList(); int index = fAttrList.getFirstAttr(fAttrListHandle); while (index != -1) { if (fStringPool.equalNames(fAttrList.getAttrName(index), fXMLLang)) { fDocumentScanner.checkXMLLangAttributeValue(fAttrList.getAttValue(index)); break; } index = fAttrList.getNextAttr(index); } } return; } int elementIndex = -1; int contentSpecType = -1; boolean skipThisOne = false; boolean laxThisOne = false; if ( fGrammarIsSchemaGrammar && fContentLeafStack[fElementDepth] != null ) { ContentLeafNameTypeVector cv = fContentLeafStack[fElementDepth]; QName[] fElemMap = cv.leafNames; for (int i=0; i<cv.leafCount; i++) { int type = cv.leafTypes[i] ; //System.out.println("******* see a ANY_OTHER_SKIP, "+type+","+element+","+fElemMap[i]+"\n*******"); if (type == XMLContentSpec.CONTENTSPECNODE_LEAF) { if (fElemMap[i].uri==element.uri && fElemMap[i].localpart == element.localpart) break; } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY) { int uri = fElemMap[i].uri; if (uri == -1 || uri == element.uri) { break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_LOCAL) { if (element.uri == -1) { break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_OTHER) { if (fElemMap[i].uri != element.uri) { break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_SKIP) { int uri = fElemMap[i].uri; if (uri == -1 || uri == element.uri) { skipThisOne = true; break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_LOCAL_SKIP) { if (element.uri == -1) { skipThisOne = true; break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_OTHER_SKIP) { if (fElemMap[i].uri != element.uri) { skipThisOne = true; break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_LAX) { int uri = fElemMap[i].uri; if (uri == -1 || uri == element.uri) { laxThisOne = true; break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_LOCAL_LAX) { if (element.uri == -1) { laxThisOne = true; break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_OTHER_LAX) { if (fElemMap[i].uri != element.uri) { laxThisOne = true; break; } } } } if (skipThisOne) { fNeedValidationOff = true; } else { //REVISIT: is this the right place to check on if the Schema has changed? if ( fNamespacesEnabled && fValidating && element.uri != fGrammarNameSpaceIndex && element.uri != -1 ) { fGrammarNameSpaceIndex = element.uri; boolean success = switchGrammar(fGrammarNameSpaceIndex); if (!success && !laxThisOne) { reportRecoverableXMLError(XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, "Grammar with uri : " + fStringPool.toString(fGrammarNameSpaceIndex) + " , can not found"); } } if ( fGrammar != null ) { if (DEBUG_SCHEMA_VALIDATION) { System.out.println("*******Lookup element: uri: " + fStringPool.toString(element.uri)+ "localpart: '" + fStringPool.toString(element.localpart) +"' and scope : " + fCurrentScope+"\n"); } elementIndex = fGrammar.getElementDeclIndex(element,fCurrentScope); if (elementIndex == -1 ) { elementIndex = fGrammar.getElementDeclIndex(element, TOP_LEVEL_SCOPE); } if (elementIndex == -1) { // if validating based on a Schema, try to resolve the element again by look it up in its ancestor types if (fGrammarIsSchemaGrammar && fCurrentElementIndex != -1) { TraverseSchema.ComplexTypeInfo baseTypeInfo = null; baseTypeInfo = ((SchemaGrammar)fGrammar).getElementComplexTypeInfo(fCurrentElementIndex); //TO DO: // should check if baseTypeInfo is from the same Schema. while (baseTypeInfo != null) { elementIndex = fGrammar.getElementDeclIndex(element, baseTypeInfo.scopeDefined); if (elementIndex > -1 ) { break; } baseTypeInfo = baseTypeInfo.baseComplexTypeInfo; } } //if still can't resolve it, try TOP_LEVEL_SCOPE AGAIN /**** if ( element.uri == -1 && elementIndex == -1 && fNamespacesScope != null && fNamespacesScope.getNamespaceForPrefix(StringPool.EMPTY_STRING) != -1 ) { elementIndex = fGrammar.getElementDeclIndex(element.localpart, TOP_LEVEL_SCOPE); // REVISIT: // this is a hack to handle the situation where namespace prefix "" is bound to nothing, and there // is a "noNamespaceSchemaLocation" specified, and element element.uri = StringPool.EMPTY_STRING; } /****/ /****/ if (elementIndex == -1) { if (laxThisOne) { fNeedValidationOff = true; } else if (DEBUG_SCHEMA_VALIDATION) System.out.println("!!! can not find elementDecl in the grammar, " + " the element localpart: " + element.localpart + "["+fStringPool.toString(element.localpart) +"]" + " the element uri: " + element.uri + "["+fStringPool.toString(element.uri) +"]" + " and the current enclosing scope: " + fCurrentScope ); } /****/ } if (DEBUG_SCHEMA_VALIDATION) { fGrammar.getElementDecl(elementIndex, fTempElementDecl); System.out.println("elementIndex: " + elementIndex+" \n and itsName : '" + fStringPool.toString(fTempElementDecl.name.localpart) +"' \n its ContentType:" + fTempElementDecl.type +"\n its ContentSpecIndex : " + fTempElementDecl.contentSpecIndex +"\n"+ " and the current enclosing scope: " + fCurrentScope); } } contentSpecType = getContentSpecType(elementIndex); if (fGrammarIsSchemaGrammar && elementIndex != -1) { // handle "xsi:type" right here if (fXsiTypeAttValue > -1) { String xsiType = fStringPool.toString(fXsiTypeAttValue); int colonP = xsiType.indexOf(":"); String prefix = ""; String localpart = xsiType; if (colonP > -1) { prefix = xsiType.substring(0,colonP); localpart = xsiType.substring(colonP+1); } String uri = ""; int uriIndex = -1; if (fNamespacesScope != null) { uriIndex = fNamespacesScope.getNamespaceForPrefix(fStringPool.addSymbol(prefix)); if (uriIndex > -1) { uri = fStringPool.toString(uriIndex); if (uriIndex != fGrammarNameSpaceIndex) { fGrammarNameSpaceIndex = fCurrentSchemaURI = uriIndex; boolean success = switchGrammar(fCurrentSchemaURI); if (!success && !fNeedValidationOff) { reportRecoverableXMLError(XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, "Grammar with uri : " + fStringPool.toString(fCurrentSchemaURI) + " , can not found"); } } } } Hashtable complexRegistry = ((SchemaGrammar)fGrammar).getComplexTypeRegistry(); DatatypeValidatorFactoryImpl dataTypeReg = ((SchemaGrammar)fGrammar).getDatatypeRegistry(); if (complexRegistry==null || dataTypeReg == null) { reportRecoverableXMLError(XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, fErrorReporter.getLocator().getSystemId() +" line"+fErrorReporter.getLocator().getLineNumber() +", canot resolve xsi:type = " + xsiType+" ---2"); } else { TraverseSchema.ComplexTypeInfo typeInfo = (TraverseSchema.ComplexTypeInfo) complexRegistry.get(uri+","+localpart); //TO DO: // here need to check if this substitution is legal based on the current active grammar, // this should be easy, cause we already saved final, block and base type information in // the SchemaGrammar. if (typeInfo==null) { if (uri.length() == 0 || uri.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) ) { fXsiTypeValidator = dataTypeReg.getDatatypeValidator(localpart); } else fXsiTypeValidator = dataTypeReg.getDatatypeValidator(uri+","+localpart); if ( fXsiTypeValidator == null ) reportRecoverableXMLError(XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, "unresolved type : "+uri+","+localpart +" found in xsi:type handling"); } else elementIndex = typeInfo.templateElementIndex; } fXsiTypeAttValue = -1; } //Change the current scope to be the one defined by this element. fCurrentScope = ((SchemaGrammar) fGrammar).getElementDefinedScope(elementIndex); // here need to check if we need to switch Grammar by asking SchemaGrammar whether // this element actually is of a type in another Schema. String anotherSchemaURI = ((SchemaGrammar)fGrammar).getElementFromAnotherSchemaURI(elementIndex); if (anotherSchemaURI != null) { //before switch Grammar, set the elementIndex to be the template elementIndex of its type if (contentSpecType != -1 && contentSpecType != XMLElementDecl.TYPE_SIMPLE && contentSpecType != XMLElementDecl.TYPE_EMPTY ) { TraverseSchema.ComplexTypeInfo typeInfo = ((SchemaGrammar) fGrammar).getElementComplexTypeInfo(elementIndex); if (typeInfo != null) { elementIndex = typeInfo.templateElementIndex; } } // now switch the grammar fGrammarNameSpaceIndex = fCurrentSchemaURI = fStringPool.addSymbol(anotherSchemaURI); boolean success = switchGrammar(fCurrentSchemaURI); if (!success && !fNeedValidationOff) { reportRecoverableXMLError(XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, "Grammar with uri : " + fStringPool.toString(fCurrentSchemaURI) + " , can not found"); } } } if (contentSpecType == -1 && fValidating && !fNeedValidationOff ) { reportRecoverableXMLError(XMLMessages.MSG_ELEMENT_NOT_DECLARED, XMLMessages.VC_ELEMENT_VALID, element.rawname); } if (fGrammar != null && fGrammarIsSchemaGrammar && elementIndex != -1) { fAttrListHandle = addDefaultAttributes(elementIndex, attrList, fAttrListHandle, fValidating, fStandaloneReader != -1); } if (fAttrListHandle != -1) { fAttrList.endAttrList(); } if (DEBUG_PRINT_ATTRIBUTES) { String elementStr = fStringPool.toString(element.rawname); System.out.print("startElement: <" + elementStr); if (fAttrListHandle != -1) { int index = attrList.getFirstAttr(fAttrListHandle); while (index != -1) { System.out.print(" " + fStringPool.toString(attrList.getAttrName(index)) + "=\"" + fStringPool.toString(attrList.getAttValue(index)) + "\""); index = attrList.getNextAttr(index); } } System.out.println(">"); } // REVISIT: Validation. Do we need to recheck for the xml:lang // attribute? It was already checked above -- perhaps // this is to check values that are defaulted in? If // so, this check could move to the attribute decl // callback so we can check the default value before // it is used. if (fAttrListHandle != -1 && !fNeedValidationOff ) { int index = fAttrList.getFirstAttr(fAttrListHandle); while (index != -1) { int attrNameIndex = attrList.getAttrName(index); if (fStringPool.equalNames(attrNameIndex, fXMLLang)) { fDocumentScanner.checkXMLLangAttributeValue(attrList.getAttValue(index)); // break; } // here, we validate every "user-defined" attributes int _xmlns = fStringPool.addSymbol("xmlns"); if (attrNameIndex != _xmlns && attrList.getAttrPrefix(index) != _xmlns) if (fGrammar != null) { fAttrNameLocator = getLocatorImpl(fAttrNameLocator); fTempQName.setValues(attrList.getAttrPrefix(index), attrList.getAttrLocalpart(index), attrList.getAttrName(index), attrList.getAttrURI(index) ); int attDefIndex = getAttDefByElementIndex(elementIndex, fTempQName); if (fTempQName.uri != fXsiURI) if (attDefIndex == -1 ) { if (fValidating) { // REVISIT - cache the elem/attr tuple so that we only give // this error once for each unique occurrence Object[] args = { fStringPool.toString(element.rawname), fStringPool.toString(attrList.getAttrName(index))}; /*****/ fErrorReporter.reportError(fAttrNameLocator, XMLMessages.XML_DOMAIN, XMLMessages.MSG_ATTRIBUTE_NOT_DECLARED, XMLMessages.VC_ATTRIBUTE_VALUE_TYPE, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); /******/ } } else { fGrammar.getAttributeDecl(attDefIndex, fTempAttDecl); int attributeType = attributeTypeName(fTempAttDecl); attrList.setAttType(index, attributeType); if (fValidating) { if (fGrammarIsDTDGrammar && (fTempAttDecl.type == XMLAttributeDecl.TYPE_ENTITY || fTempAttDecl.type == XMLAttributeDecl.TYPE_ENUMERATION || fTempAttDecl.type == XMLAttributeDecl.TYPE_ID || fTempAttDecl.type == XMLAttributeDecl.TYPE_IDREF || fTempAttDecl.type == XMLAttributeDecl.TYPE_NMTOKEN || fTempAttDecl.type == XMLAttributeDecl.TYPE_NOTATION) ) { validateDTDattribute(element, attrList.getAttValue(index), fTempAttDecl); } // check to see if this attribute matched an attribute wildcard else if ( fGrammarIsSchemaGrammar && (fTempAttDecl.type == XMLAttributeDecl.TYPE_ANY_ANY ||fTempAttDecl.type == XMLAttributeDecl.TYPE_ANY_LIST ||fTempAttDecl.type == XMLAttributeDecl.TYPE_ANY_LOCAL ||fTempAttDecl.type == XMLAttributeDecl.TYPE_ANY_OTHER) ) { if (fTempAttDecl.defaultType == XMLAttributeDecl.PROCESSCONTENTS_SKIP) { // attribute should just be bypassed, } else if ( fTempAttDecl.defaultType == XMLAttributeDecl.PROCESSCONTENTS_STRICT || fTempAttDecl.defaultType == XMLAttributeDecl.PROCESSCONTENTS_LAX) { boolean reportError = false; boolean processContentStrict = fTempAttDecl.defaultType == XMLAttributeDecl.PROCESSCONTENTS_STRICT; if (fTempQName.uri == -1) { if (processContentStrict) { reportError = true; } } else { Grammar aGrammar = fGrammarResolver.getGrammar(fStringPool.toString(fTempQName.uri)); if (aGrammar == null || !(aGrammar instanceof SchemaGrammar) ) { if (processContentStrict) { reportError = true; } } else { SchemaGrammar sGrammar = (SchemaGrammar) aGrammar; Hashtable attRegistry = sGrammar.getAttirubteDeclRegistry(); if (attRegistry == null) { if (processContentStrict) { reportError = true; } } else { XMLAttributeDecl attDecl = (XMLAttributeDecl) attRegistry.get(fStringPool.toString(fTempQName.localpart)); if (attDecl == null) { if (processContentStrict) { reportError = true; } } else { DatatypeValidator attDV = attDecl.datatypeValidator; if (attDV == null) { if (processContentStrict) { reportError = true; } } else { try { String unTrimValue = fStringPool.toString(attrList.getAttValue(index)); String value = unTrimValue.trim(); if (attDecl.type == XMLAttributeDecl.TYPE_ID ) { this.fStoreIDRef.setDatatypeObject( fValID.validate( value, null ) ); } if (attDecl.type == XMLAttributeDecl.TYPE_IDREF ) { attDV.validate(value, this.fStoreIDRef ); } else attDV.validate(unTrimValue, null ); } catch (InvalidDatatypeValueException idve) { fErrorReporter.reportError(fErrorReporter.getLocator(), SchemaMessageProvider.SCHEMA_DOMAIN, SchemaMessageProvider.DatatypeError, SchemaMessageProvider.MSG_NONE, new Object [] { idve.getMessage()}, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); } } } } } } if (reportError) { Object[] args = { fStringPool.toString(element.rawname), "ANY---"+fStringPool.toString(attrList.getAttrName(index))}; fErrorReporter.reportError(fAttrNameLocator, XMLMessages.XML_DOMAIN, XMLMessages.MSG_ATTRIBUTE_NOT_DECLARED, XMLMessages.VC_ATTRIBUTE_VALUE_TYPE, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); } } } else if (fTempAttDecl.datatypeValidator == null) { Object[] args = { fStringPool.toString(element.rawname), fStringPool.toString(attrList.getAttrName(index))}; System.out.println("[Error] Datatypevalidator for attribute " + fStringPool.toString(attrList.getAttrName(index)) + " not found in element type " + fStringPool.toString(element.rawname)); //REVISIT : is this the right message? /****/ fErrorReporter.reportError(fAttrNameLocator, XMLMessages.XML_DOMAIN, XMLMessages.MSG_ATTRIBUTE_NOT_DECLARED, XMLMessages.VC_ATTRIBUTE_VALUE_TYPE, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); /****/ } else { try { String unTrimValue = fStringPool.toString(attrList.getAttValue(index)); String value = unTrimValue.trim(); if (fTempAttDecl.type == XMLAttributeDecl.TYPE_ID ) { this.fStoreIDRef.setDatatypeObject( fValID.validate( value, null ) ); } else if (fTempAttDecl.type == XMLAttributeDecl.TYPE_IDREF ) { fTempAttDecl.datatypeValidator.validate(value, this.fStoreIDRef ); } else { fTempAttDecl.datatypeValidator.validate(unTrimValue, null ); } } catch (InvalidDatatypeValueException idve) { fErrorReporter.reportError(fErrorReporter.getLocator(), SchemaMessageProvider.SCHEMA_DOMAIN, SchemaMessageProvider.DatatypeError, SchemaMessageProvider.MSG_NONE, new Object [] { idve.getMessage()}, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); } } } // end of if (fValidating) } // end of if (attDefIndex == -1) else }// end of if (fGrammar != null) index = fAttrList.getNextAttr(index); } } } if (fAttrListHandle != -1) { int index = attrList.getFirstAttr(fAttrListHandle); while (index != -1) { int attName = attrList.getAttrName(index); if (!fStringPool.equalNames(attName, fNamespacesPrefix)) { int attPrefix = attrList.getAttrPrefix(index); if (attPrefix != fNamespacesPrefix) { if (attPrefix != -1) { int uri = fNamespacesScope.getNamespaceForPrefix(attPrefix); if (uri == -1) { Object[] args = { fStringPool.toString(attPrefix)}; fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XMLNS_DOMAIN, XMLMessages.MSG_PREFIX_DECLARED, XMLMessages.NC_PREFIX_DECLARED, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); } attrList.setAttrURI(index, uri); } } } index = attrList.getNextAttr(index); } } fCurrentElementIndex = elementIndex; fCurrentContentSpecType = contentSpecType; if (fValidating && contentSpecType == XMLElementDecl.TYPE_SIMPLE) { fBufferDatatype = true; fDatatypeBuffer.setLength(0); } fInElementContent = (contentSpecType == XMLElementDecl.TYPE_CHILDREN); } // validateElementAndAttributes(QName,XMLAttrList)
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/0e374e549a5155529f80a7019391d2828d9a9b37/XMLValidator.java/buggy/src/org/apache/xerces/validators/common/XMLValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1954, 1046, 1876, 2498, 12, 13688, 930, 16, 4766, 9079, 3167, 3843, 682, 1604, 682, 13, 540, 1216, 1185, 288, 3639, 309, 14015, 74, 1046, 6148, 1545, 374, 597, 284, 4354, 4678,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1954, 1046, 1876, 2498, 12, 13688, 930, 16, 4766, 9079, 3167, 3843, 682, 1604, 682, 13, 540, 1216, 1185, 288, 3639, 309, 14015, 74, 1046, 6148, 1545, 374, 597, 284, 4354, 4678,...
plugin.setParent(this);
plugin.setParent(data);
public ComponentData addComponentData(ComponentData data) {// data.setType(ComponentData.AGENT);// data.setName(getFullName().toString());// data.setClassName(agentClassName);// data.setOwner(this);// data.setParent(getParent()); // Add Asset Data PlugIn GenericComponentData plugin = new GenericComponentData(); plugin.setType(ComponentData.PLUGIN); plugin.setParent(this); plugin.setName(AssetDataPlugIn_name); data.addChild(plugin); // Add Asset Report PlugIn plugin = new GenericComponentData(); plugin.setType(ComponentData.PLUGIN); plugin.setParent(this); plugin.setName(AssetReportPlugIn_name); data.addChild(plugin); if(getFullName().toString().equals(getProperty(PROP_INITIALIZER).getValue())) { ABCPlugIn init = new ABCPlugIn("MetricsInitializer", MetricsInitializerPlugIn_name); addChild(init); init.initProperties(); addPropertyAlias(init, getProperty(PROP_NUMBPROVIDERS)); addPropertyAlias(init, getProperty(PROP_SAMPLEINTERVAL)); addPropertyAlias(init, getProperty(PROP_STARTDELAY)); addPropertyAlias(init, getProperty(PROP_MAXNUMBSAMPLES)); data.addChild(init.addComponentData(new GenericComponentData())); } for(int i = 0 ; i < getChildCount(); i++) { if(getChild(i) instanceof ABCPlugIn) { ABCPlugIn pg = (ABCPlugIn) getChild(i); data.addChild(pg.addComponentData(new GenericComponentData())); } } plugin = new GenericComponentData(); plugin.setType(ComponentData.PLUGIN); plugin.setParent(this); plugin.setName(PlanServerPlugIn_name); data.addChild(plugin); // Add data file leaves. data = createLeafComponents(data); // Add Time Phased Data. data = addTimePhasedData(data); return data; }
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/a289d32495251616572637fef65bfaf05a419909/ABCAgent.java/clean/csmart/src/org/cougaar/tools/csmart/configgen/abcsociety/ABCAgent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 5435, 751, 15218, 751, 12, 1841, 751, 501, 13, 288, 759, 377, 501, 18, 542, 559, 12, 1841, 751, 18, 15005, 1769, 759, 377, 501, 18, 542, 461, 12, 588, 19223, 7675, 10492, 10663, 759, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5435, 751, 15218, 751, 12, 1841, 751, 501, 13, 288, 759, 377, 501, 18, 542, 559, 12, 1841, 751, 18, 15005, 1769, 759, 377, 501, 18, 542, 461, 12, 588, 19223, 7675, 10492, 10663, 759, ...
byte[] quantizationTableData = segmentReader.readSegment(JpegSegmentReader.SEGMENT_MARKER_DQT);
byte[] quantizationTableData = segmentReader.readSegment(JpegSegmentReader.SEGMENT_DQT);
public void testReadDQTSegment() throws Exception { File jpeg = new File("src/com/drew/imaging/exif/test/withExif.jpg"); JpegSegmentReader segmentReader = new JpegSegmentReader(jpeg); byte[] quantizationTableData = segmentReader.readSegment(JpegSegmentReader.SEGMENT_MARKER_DQT); assertTrue("shouldn't have zero length quantizationTableData", quantizationTableData.length > 0); assertTrue("quantizationTableData shouldn't start with 'Exif'", !"Exif".equals(new String(quantizationTableData, 0, 4))); }
13212 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13212/86405a5c4ff12f30fd2796244d129975a8483ac3/JpegSegmentReaderTest.java/buggy/src/com/drew/imaging/jpeg/test/JpegSegmentReaderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1994, 40, 53, 56, 4131, 1435, 1216, 1185, 565, 288, 3639, 1387, 29726, 273, 394, 1387, 2932, 4816, 19, 832, 19, 72, 16052, 19, 381, 5755, 19, 338, 430, 19, 3813, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1994, 40, 53, 56, 4131, 1435, 1216, 1185, 565, 288, 3639, 1387, 29726, 273, 394, 1387, 2932, 4816, 19, 832, 19, 72, 16052, 19, 381, 5755, 19, 338, 430, 19, 3813, 19, ...
public String jsFunction_toString(Object base) { int i = base == Undefined.instance ? 10 : ScriptRuntime.toInt32(base); return ScriptRuntime.numberToString(doubleValue, i);
private String jsFunction_toString(int base) { return ScriptRuntime.numberToString(doubleValue, base);
public String jsFunction_toString(Object base) { int i = base == Undefined.instance ? 10 : ScriptRuntime.toInt32(base); return ScriptRuntime.numberToString(doubleValue, i); }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/8584f9aa43e87015068b51a9cd8ce3a893b2449a/NativeNumber.java/buggy/js/rhino/org/mozilla/javascript/NativeNumber.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 3828, 2083, 67, 10492, 12, 921, 1026, 13, 288, 3639, 509, 277, 273, 1026, 422, 22243, 18, 1336, 7734, 692, 1728, 1171, 294, 7739, 5576, 18, 869, 1702, 1578, 12, 1969, 1769, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 3828, 2083, 67, 10492, 12, 921, 1026, 13, 288, 3639, 509, 277, 273, 1026, 422, 22243, 18, 1336, 7734, 692, 1728, 1171, 294, 7739, 5576, 18, 869, 1702, 1578, 12, 1969, 1769, 3...
if (children[0] == oldChild) children[0] = newChild; else if (children[1] == oldChild) children[1] = newChild;
if (children[0] == oldChild) { children[0] = newChild; } else if (children[1] == oldChild) { children[1] = newChild; }
void replaceChild(LayoutTree oldChild, LayoutTree newChild) { if (children[0] == oldChild) children[0] = newChild; else if (children[1] == oldChild) children[1] = newChild; newChild.setParent(this); if (!children[0].isVisible() || !children[0].isVisible()) getSash().dispose(); flushCache(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/LayoutTreeNode.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/LayoutTreeNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1453, 1763, 12, 3744, 2471, 1592, 1763, 16, 9995, 2471, 19783, 13, 288, 3639, 309, 261, 5906, 63, 20, 65, 422, 1592, 1763, 13, 5411, 2325, 63, 20, 65, 273, 19783, 31, 3639, 469, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1453, 1763, 12, 3744, 2471, 1592, 1763, 16, 9995, 2471, 19783, 13, 288, 3639, 309, 261, 5906, 63, 20, 65, 422, 1592, 1763, 13, 5411, 2325, 63, 20, 65, 273, 19783, 31, 3639, 469, ...
public void testClone_Reaction() {
public void testClone_Reaction() throws Exception {
public void testClone_Reaction() { ISetOfReactions reactionSet = builder.newSetOfReactions(); reactionSet.addReaction(builder.newReaction()); // 1 reactionSet.addReaction(builder.newReaction()); // 2 reactionSet.addReaction(builder.newReaction()); // 3 reactionSet.addReaction(builder.newReaction()); // 4 ISetOfReactions clone = (ISetOfReactions)reactionSet.clone(); assertEquals(reactionSet.getReactionCount(), clone.getReactionCount()); for (int f = 0; f < reactionSet.getReactionCount(); f++) { for (int g = 0; g < clone.getReactionCount(); g++) { assertNotNull(reactionSet.getReaction(f)); assertNotNull(clone.getReaction(g)); assertNotSame(reactionSet.getReaction(f), clone.getReaction(g)); } } }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/2b55a607674535cd8492e3539d8f3dce16fc3b92/SetOfReactionsTest.java/clean/src/org/openscience/cdk/test/SetOfReactionsTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 10930, 67, 21581, 1435, 288, 202, 202, 45, 694, 951, 426, 4905, 12836, 694, 273, 2089, 18, 2704, 694, 951, 426, 4905, 5621, 202, 202, 266, 1128, 694, 18, 1289, 21581, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10930, 67, 21581, 1435, 288, 202, 202, 45, 694, 951, 426, 4905, 12836, 694, 273, 2089, 18, 2704, 694, 951, 426, 4905, 5621, 202, 202, 266, 1128, 694, 18, 1289, 21581, 1...
label = " (" + fileName.substring(fileName.indexOf(LABEL_SEPARATOR) + 1, fileName.lastIndexOf(".xml")) + ")";
label = " (" + fileName.substring(fileName.indexOf(LABEL_SEPARATOR) + 1, fileName.lastIndexOf(".xml")) + ")";
protected String getLinkText(String fileName) { String dateString = ""; String label = ""; if (fileName.lastIndexOf(LABEL_SEPARATOR) > -1) { dateString = fileName.substring(3, fileName.indexOf(LABEL_SEPARATOR)); label = " (" + fileName.substring(fileName.indexOf(LABEL_SEPARATOR) + 1, fileName.lastIndexOf(".xml")) + ")"; } else { dateString = fileName.substring(3, fileName.lastIndexOf(".xml")); } DateFormat inputDate = null; if (dateString.length() == 14) { inputDate = new SimpleDateFormat("yyyyMMddHHmmss"); } else { inputDate = new SimpleDateFormat("yyyyMMddHHmm"); } Date date = null; try { date = inputDate.parse(dateString); } catch (ParseException e) { e.printStackTrace(); } return dateFormat.format(date) + label; }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/9d239446f36898c383c58d54746e86ef94148810/NavigationTag.java/buggy/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/NavigationTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 15545, 1528, 12, 780, 3968, 13, 288, 3639, 514, 24757, 273, 1408, 31, 3639, 514, 1433, 273, 1408, 31, 3639, 309, 261, 17812, 18, 2722, 31985, 12, 13545, 67, 4550, 13, 405, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 15545, 1528, 12, 780, 3968, 13, 288, 3639, 514, 24757, 273, 1408, 31, 3639, 514, 1433, 273, 1408, 31, 3639, 309, 261, 17812, 18, 2722, 31985, 12, 13545, 67, 4550, 13, 405, 30...
protected void closeBuffer(OpenableInfo info) {
protected void closeBuffer() {
protected void closeBuffer(OpenableInfo info) { if (!hasBuffer()) return; // nothing to do IBuffer buffer = null; buffer = getBufferManager().getBuffer(this); if (buffer != null) { buffer.close(); buffer.removeBufferChangedListener(this); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/a443caeb08f5ebfeb103b91f9ece5f9775887585/Openable.java/clean/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Openable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1746, 1892, 12, 3678, 429, 966, 1123, 13, 288, 202, 202, 430, 16051, 5332, 1892, 10756, 327, 31, 368, 5083, 358, 741, 202, 202, 45, 1892, 1613, 273, 446, 31, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1746, 1892, 12, 3678, 429, 966, 1123, 13, 288, 202, 202, 430, 16051, 5332, 1892, 10756, 327, 31, 368, 5083, 358, 741, 202, 202, 45, 1892, 1613, 273, 446, 31, 202, 202, ...
entry.setCardNumber(CreditCardBusinessBean.encodeCreditCardNumber(cardnumber));
entry.setCardNumber(encodedCardNumber);
private String doAuth(String cardnumber, String monthExpires, String yearExpires, double amount, String currency, String transactionType, Object parentDataPK, String authRspID) throws TPosException { if(_client != null) { _client.setProperty(TPOS3Client.PN_USERID, _userId); _client.setProperty(TPOS3Client.PN_PASSWORD, _passwd); _client.setProperty(TPOS3Client.PN_MERCHANTID, _merchantId); _client.setProperty(TPOS3Client.PN_LOCATIONID, _locationId); _client.setProperty(TPOS3Client.PN_POSID, _posId); _client.setProperty(TPOS3Client.PN_PAN, cardnumber); _client.setProperty(TPOS3Client.PN_EXPIRE, monthExpires + yearExpires); //_client.setProperty(TPOS3Client.PN_EXPIRE, yearExpires + monthExpires); amount *= amountMultiplier; String stringAmount = Integer.toString((int)amount); _client.setProperty(TPOS3Client.PN_AMOUNT, stringAmount); _client.setProperty(TPOS3Client.PN_CURRENCY, currency); _client.setProperty(TPOS3Client.PN_TRANSACTIONTYPE, transactionType); if (transactionType.equals("2")) { _client.setProperty(TPOS3Client.PN_CARDHOLDERCODE, "2"); } boolean valid = false; try { valid = _client.sendAuthorisationReq(); } catch (IllegalArgumentException e) { getKeys(); createNewBatch(); _client.setProperty(TPOS3Client.PN_USERID, _userId); _client.setProperty(TPOS3Client.PN_PASSWORD, _passwd); _client.setProperty(TPOS3Client.PN_MERCHANTID, _merchantId); _client.setProperty(TPOS3Client.PN_LOCATIONID, _locationId); _client.setProperty(TPOS3Client.PN_POSID, _posId); _client.setProperty(TPOS3Client.PN_PAN, cardnumber); _client.setProperty(TPOS3Client.PN_EXPIRE, monthExpires + yearExpires); //_client.setProperty(TPOS3Client.PN_EXPIRE, yearExpires + monthExpires); _client.setProperty(TPOS3Client.PN_AMOUNT, stringAmount); _client.setProperty(TPOS3Client.PN_CURRENCY, currency); _client.setProperty(TPOS3Client.PN_TRANSACTIONTYPE, transactionType); if (transactionType.equals("2")) { _client.setProperty(TPOS3Client.PN_CARDHOLDERCODE, "2"); } valid = _client.sendAuthorisationReq(); } boolean inserted = false; TPosAuthorisationEntriesBean entry; try { entry = TPosAuthorisationEntriesHome.getInstance().getNewElement(); // entry.setAttachmentCount(_client.getProperty(TPOS3Client.pn)); entry.setAuthorisationAmount(_client.getProperty(TPOS3Client.PN_AUTHORAMOUNT)); entry.setAuthorisationCode(_client.getProperty(TPOS3Client.PN_AUTHORISATIONCODE)); entry.setAuthorisationCurrency(_client.getProperty(TPOS3Client.PN_AUTHORCURRENCY)); entry.setAuthorisationIdRsp(_client.getProperty(TPOS3Client.PN_AUTHORIDENTIFYRSP)); entry.setAuthorisationPathReasonCode(_client.getProperty(TPOS3Client.PN_AUTHPATHREASONCODE)); entry.setBatchNumber(_client.getProperty(TPOS3Client.PN_BATCHNUMBER)); entry.setBrandId(_client.getProperty(TPOS3Client.PN_CARDBRANDID)); entry.setBrandName(_client.getProperty(TPOS3Client.PN_CARDBRANDNAME)); entry.setCardCharacteristics(_client.getProperty(TPOS3Client.PN_CARDCHARACTER)); entry.setCardExpires(_client.getProperty(TPOS3Client.PN_EXPIRE)); entry.setCardName(_client.getProperty(TPOS3Client.PN_CARDTYPENAME)); entry.setCardType(_client.getProperty(TPOS3Client.PN_CARDTYPEID)); entry.setDetailExpected(_client.getProperty(TPOS3Client.PN_DETAILEXPECTED)); entry.setEntryDate(_client.getProperty(TPOS3Client.PN_DATE)); entry.setEntryTime(_client.getProperty(TPOS3Client.PN_TIME)); entry.setErrorNo(_client.getProperty(TPOS3Client.PN_ERRORNUMBER)); entry.setErrorText(_client.getProperty(TPOS3Client.PN_ERRORTEXT)); entry.setLocationNr(_client.getProperty(TPOS3Client.PN_LOCATIONNUMBER)); entry.setMerchantNrAuthorisation(_client.getProperty(TPOS3Client.PN_MERCHANTNUMBERAUTHOR)); entry.setMerchantNrOtherServices(_client.getProperty(TPOS3Client.PN_MERCHANTNUMBEROTHERSERVICES)); entry.setMerchantNrSubmission(_client.getProperty(TPOS3Client.PN_MERCHANTNUMBERSUBMISSION)); // entry.setPan("***********"); entry.setPosNr(_client.getProperty(TPOS3Client.PN_POSNUMBER)); entry.setPosSerialNr(_client.getProperty(TPOS3Client.PN_POSSERIAL)); // entry.setPrintData(_client.getProperty(TPOS3Client.pn_p)); entry.setSubmissionAmount(_client.getProperty(TPOS3Client.PN_SUBMISSIONAMOUNT)); entry.setSubmissionCurrency(_client.getProperty(TPOS3Client.PN_SUBMISSIONCURRENCY)); entry.setTotalResponseCode(_client.getProperty(TPOS3Client.PN_TOTALRESPONSECODE)); entry.setTransactionNr(_client.getProperty(TPOS3Client.PN_TRANSACTIONNUMBER)); entry.setVoidedAuthorisationIdResponse(_client.getProperty(TPOS3Client.PN_VOIDEDAUTHIDRSP)); entry.setVoidedTransactionNr(_client.getProperty(TPOS3Client.PN_VOIDEDTRANSNUMBER)); // entry.setXMLAttachment(_client.getProperty(TPOS3Client.)); entry.setCardNumber(CreditCardBusinessBean.encodeCreditCardNumber(cardnumber)); if (parentDataPK != null) { try { entry.setParentID(((Integer) parentDataPK).intValue()); } catch (Exception e) { System.out.println("TPosClient : could not set parentID : "+parentDataPK); } } inserted = TPosAuthorisationEntriesHome.getInstance().insert(entry);// String tmpTest;// tmpTest = _client.getProperty(TPOS3Client.PN_AUTHORAMOUNT);// System.out.println("PN_AUTHORAMOUNT : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_AUTHORCURRENCY);// System.out.println("PN_AUTHORCURRENCY : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_AUTHORIDENTIFYRSP);// System.out.println("PN_AUTHORIDENTIFYRSP : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_AUTHPATHREASONCODE);// System.out.println("PN_AUTHPATHREASONCODE : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_BATCHNUMBER);// System.out.println("PN_BATCHNUMBER : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_CARDBRANDID);// System.out.println("PN_CARDBRANDNAME : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_CARDBRANDNAME);// System.out.println("PN_CARDBRANDNAME : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_CARDCHARACTER);// System.out.println("PN_CARDCHARACTER : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_EXPIRE);// System.out.println("PN_EXPIRE : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_CARDTYPENAME);// System.out.println("PN_CARDTYPENAME : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_CARDTYPEID);// System.out.println("PN_CARDTYPEID : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_DETAILEXPECTED);// System.out.println("PN_DETAILEXPECTED : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_DATE);// System.out.println("PN_DATE : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_TIME);// System.out.println("PN_TIME : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_ERRORNUMBER);// System.out.println("PN_ERRORNUMBER : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_ERRORTEXT);// System.out.println("PN_ERRORTEXT : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_LOCATIONNUMBER);// System.out.println("PN_LOCATIONNUMBER : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_MERCHANTNUMBERAUTHOR);// System.out.println("PN_MERCHANTNUMBEROTHERSERVICES : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_MERCHANTNUMBEROTHERSERVICES);// System.out.println("PN_MERCHANTNUMBEROTHERSERVICES : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_MERCHANTNUMBERSUBMISSION);// System.out.println("PN_MERCHANTNUMBERSUBMISSION : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_POSNUMBER);// System.out.println("PN_POSNUMBER : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_POSSERIAL);// System.out.println("PN_POSSERIAL : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_SUBMISSIONAMOUNT);// System.out.println("PN_SUBMISSIONAMOUNT : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_SUBMISSIONCURRENCY);// System.out.println("PN_SUBMISSIONCURRENCY : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_TOTALRESPONSECODE);// System.out.println("PN_TOTALRESPONSECODE : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_TRANSACTIONNUMBER);// System.out.println("PN_TRANSACTIONNUMBER : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_VOIDEDAUTHIDRSP);// System.out.println("PN_VOIDEDAUTHIDRSP : "+tmpTest.length());// tmpTest = _client.getProperty(TPOS3Client.PN_VOIDEDTRANSNUMBER);// System.out.println("PN_VOIDEDTRANSNUMBER : "+tmpTest.length()); } catch (Exception e) { e.printStackTrace(); } if (!inserted) { System.err.println("Unable to save entry to database"); } if (!valid) { TPosException e = new TPosException("Error in authorisation"); e.setErrorNumber(_client.getProperty(TPOS3Client.PN_ERRORNUMBER)); e.setErrorMessage(_client.getProperty(TPOS3Client.PN_ERRORTEXT)); e.setDisplayError("Error in authorisation (" + _client.getProperty(TPOS3Client.PN_ERRORNUMBER) + ")"); throw e; } TPosException tposEx = null; switch (Integer.parseInt(_client.getProperty(TPOS3Client.PN_TOTALRESPONSECODE), 10)) { case 0: return (_client.getProperty(TPOS3Client.PN_AUTHORIDENTIFYRSP)); case 1: tposEx = new TPosException("Authorisation denied"); tposEx.setErrorNumber(_client.getProperty(TPOS3Client.PN_ERRORNUMBER)); tposEx.setErrorMessage(_client.getProperty(TPOS3Client.PN_ERRORTEXT)); tposEx.setDisplayError("Authorisation denied (" + _client.getProperty(TPOS3Client.PN_ERRORNUMBER) + ")"); throw tposEx; case 2: tposEx = new TPosException("Authorisation denied, pick up card"); tposEx.setErrorNumber(_client.getProperty(TPOS3Client.PN_ERRORNUMBER)); tposEx.setErrorMessage(_client.getProperty(TPOS3Client.PN_ERRORTEXT)); tposEx.setDisplayError("Authorisation denied (" + _client.getProperty(TPOS3Client.PN_ERRORNUMBER) + ")"); throw tposEx; case 3: tposEx = new TPosException("Authorisation denied, call for manual authorisation"); tposEx.setErrorNumber(_client.getProperty(TPOS3Client.PN_ERRORNUMBER)); tposEx.setErrorMessage(_client.getProperty(TPOS3Client.PN_ERRORTEXT)); tposEx.setDisplayError("Authorisation denied (" + _client.getProperty(TPOS3Client.PN_ERRORNUMBER) + ")"); throw tposEx; } } return ("-1"); }
57901 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57901/48cbf3a34dede3ad67a101ee7e846c0d8bd62d65/TPosClient.java/buggy/src/java/com/idega/block/creditcard/business/TPosClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 514, 741, 1730, 12, 780, 5270, 2696, 16, 514, 3138, 14449, 16, 514, 3286, 14449, 16, 1645, 3844, 16, 514, 5462, 16, 514, 2492, 559, 16, 1033, 982, 751, 8784, 16, 514, 1357, 54, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 514, 741, 1730, 12, 780, 5270, 2696, 16, 514, 3138, 14449, 16, 514, 3286, 14449, 16, 1645, 3844, 16, 514, 5462, 16, 514, 2492, 559, 16, 1033, 982, 751, 8784, 16, 514, 1357, 54, ...
model.setSelectedFile( view.choice.getSelectedFile().getAbsolutePath() ); XFilter filter = (XFilter) view.choice.getFileFilter();
model.setSelectedFile( choice.getSelectedFile().getAbsolutePath() ); XFilter filter = (XFilter) choice.getFileFilter();
public void setVisible(boolean visible) { if(visible) { int result = view.choice.showDialog(null, L10n.getString("Export.Title")); if( result == JFileChooser.APPROVE_OPTION ) { if(view.choice.getSelectedFile() == null) { JOptionPane.showMessageDialog(null, L10n.getString("Error.MissingFileName"), L10n.getString("Error.NothingSelected"), JOptionPane.WARNING_MESSAGE); return; } model.setSelectedFile( view.choice.getSelectedFile().getAbsolutePath() ); XFilter filter = (XFilter) view.choice.getFileFilter(); model.setActiveFileFilter( filter ); if( filter.isColumnSelectionEnabled() ) viewB.setVisible(true); else try { ExportTask task = model.createExportTask(); progressCtrl.setModel(task); progressView.setModel(task); task.execute(); progressView.setVisible(true); } catch(Exception e) { JOptionPane.showMessageDialog(null, L10n.getString("Error.ExportFailed") + e, L10n.getString("Export.Failed"), JOptionPane.WARNING_MESSAGE); } } } }
57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/7ada29324f1377c8a31a19e85ac2bc948f1baf43/ExportMngCtrlA.java/clean/trunk/src/net/sf/plantlore/client/export/ExportMngCtrlA.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 16697, 12, 6494, 6021, 13, 288, 202, 202, 430, 12, 8613, 13, 288, 1082, 202, 474, 563, 273, 1476, 18, 11569, 18, 4500, 6353, 12, 2011, 16, 511, 2163, 82, 18, 588, 780, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 16697, 12, 6494, 6021, 13, 288, 202, 202, 430, 12, 8613, 13, 288, 1082, 202, 474, 563, 273, 1476, 18, 11569, 18, 4500, 6353, 12, 2011, 16, 511, 2163, 82, 18, 588, 780, ...
inputGroup.setKeyExpr( newKey ); if ( newKey != null && !newKey.equals( oldKey ) )
inputGroup.setKeyExpr( newKeyExpr ); if ( newKeyExpr != null && !newKeyExpr.equals( oldKeyExpr ) )
protected void okPressed( ) { try { inputGroup.setName( nameEditor.getText( ) ); String newToc = UIUtil.convertToModelString( tocEditor.getText( ), true ); if ( newToc != inputGroup.getTocExpression( ) ) { if ( newToc == null || !newToc.equals( inputGroup.getTocExpression( ) ) ) { inputGroup.setTocExpression( newToc ); } } int index = keyChooser.getSelectionIndex( ); String oldKey = inputGroup.getKeyExpr( ); String newKey = getKeyExpression( ); inputGroup.setKeyExpr( newKey ); if ( newKey != null && !newKey.equals( oldKey ) ) { SlotHandle slotHandle = null; if ( inputGroup instanceof ListGroupHandle ) { slotHandle = inputGroup.getHeader( ); } else if ( inputGroup instanceof TableGroupHandle ) { if ( inputGroup.getHeader( ).getCount( ) != 0 ) { RowHandle rowHandle = ( (RowHandle) inputGroup.getHeader( ) .get( 0 ) ); CellHandle cellHandle = (CellHandle) rowHandle.getCells( ) .get( 0 ); slotHandle = cellHandle.getContent( ); } } if ( slotHandle != null ) { DesignElementHandle dataItemHandle = InsertInLayoutUtil.performInsert( columnList.get( index ), slotHandle, inputGroup.getContainer( ) ); slotHandle.add( dataItemHandle ); } } index = intervalType.getSelectionIndex( ); inputGroup.setInterval( intervalChoices[index].getName( ) ); if ( index != 0 ) { inputGroup.setIntervalRange( intervalRange.getSelection( ) ); } if ( inputGroup instanceof TableGroupHandle ) { if ( includeHeader.getSelection( ) != inputGroup.hasHeader( ) ) {// the include header status changed if ( includeHeader.getSelection( ) ) {// from unchecked to checked inputGroup.getHeader( ).add( createRow( ) ); } else {// from checked to unchecked,clear the slot inputGroup.clearContents( GroupHandle.HEADER_SLOT ); } } if ( includeFooter.getSelection( ) != inputGroup.hasFooter( ) ) {// the include footer status changed if ( includeFooter.getSelection( ) ) {// from unchecked to checked inputGroup.getFooter( ).add( createRow( ) ); } else {// from checked to unchecked,clear the slot inputGroup.clearContents( GroupHandle.FOOTER_SLOT ); } } } if ( ascending.getSelection( ) ) { inputGroup.setSortDirection( DesignChoiceConstants.SORT_DIRECTION_ASC ); } else { inputGroup.setSortDirection( DesignChoiceConstants.SORT_DIRECTION_DESC ); } } catch ( SemanticException e ) { ExceptionHandler.handle( e ); return; } setResult( inputGroup ); super.okPressed( ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/8b6ff42fe8bd2e96a8642bf17e25db688f81d46a/GroupDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/GroupDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1529, 24624, 12, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 2630, 1114, 18, 542, 461, 12, 508, 6946, 18, 588, 1528, 12, 262, 11272, 1082, 202, 780, 394, 56,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1529, 24624, 12, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 2630, 1114, 18, 542, 461, 12, 508, 6946, 18, 588, 1528, 12, 262, 11272, 1082, 202, 780, 394, 56,...
Object newValue, String reason)
Object newValue)
public CallParticipantChangeEvent(CallParticipant source, String type, Object oldValue, Object newValue, String reason) { super(source, type, oldValue, newValue); this.reason = reason; }
27035 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27035/4b7af66795876f56cf66335081d9d374016ece8d/CallParticipantChangeEvent.java/clean/src/net/java/sip/communicator/service/protocol/event/CallParticipantChangeEvent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3049, 22540, 20930, 12, 1477, 22540, 1084, 16, 4766, 1377, 514, 618, 16, 4766, 1377, 1033, 11144, 16, 4766, 1377, 1033, 6129, 16, 4766, 1377, 514, 3971, 13, 565, 288, 3639, 2240, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3049, 22540, 20930, 12, 1477, 22540, 1084, 16, 4766, 1377, 514, 618, 16, 4766, 1377, 1033, 11144, 16, 4766, 1377, 1033, 6129, 16, 4766, 1377, 514, 3971, 13, 565, 288, 3639, 2240, 12...
long time = cal.getTimeInMillis();
long time = getTimeInMillis();
public RubyObject op_plus(RubyObject other) { long time = cal.getTimeInMillis(); if (other instanceof RubyTime) { throw new TypeError(ruby, "time + time ?"); } else { time += ((RubyNumeric) other).getDoubleValue() * 1000; RubyTime newTime = new RubyTime(ruby, getRubyClass()); newTime.cal = Calendar.getInstance(); newTime.cal.setTime(new Date(time)); return newTime; } }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/1d7a03bf28c697f2c006eafab8faa91982894617/RubyTime.java/clean/org/jruby/RubyTime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 1061, 67, 10103, 12, 54, 10340, 921, 1308, 13, 288, 3639, 1525, 813, 273, 6135, 16620, 5621, 3639, 309, 261, 3011, 1276, 19817, 950, 13, 288, 5411, 604, 394, 3580, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 1061, 67, 10103, 12, 54, 10340, 921, 1308, 13, 288, 3639, 1525, 813, 273, 6135, 16620, 5621, 3639, 309, 261, 3011, 1276, 19817, 950, 13, 288, 5411, 604, 394, 3580, 12, ...
public void showPopupMenu(MouseEvent me) { JPopupMenu popup = new JPopupMenu("test"); Object obj = getSelectedObject(); if (obj instanceof PopupGenerator) { Vector actions = ((PopupGenerator) obj).getPopUpActions(me); for (Enumeration e = actions.elements(); e.hasMoreElements(); ) { popup.add((AbstractAction) e.nextElement()); } } else { if ((obj instanceof MClassifier && !(obj instanceof MDataType)) || ((obj instanceof MPackage) && (obj != ProjectManager .getManager() .getCurrentProject() .getModel())) || ((obj instanceof MStateVertex) && ((ProjectManager.getManager().getCurrentProject().getActiveDiagram() instanceof UMLStateDiagram) && (((UMLStateDiagram)ProjectManager.getManager().getCurrentProject().getActiveDiagram()).getStateMachine() == StateMachinesHelper.getHelper().getStateMachine(obj)))) || (obj instanceof MInstance && !(obj instanceof MDataValue) && !(ProjectManager.getManager().getCurrentProject().getActiveDiagram() instanceof UMLSequenceDiagram))) { UMLAction action = new ActionAddExistingNode( menuLocalize("menu.popup.add-to-diagram"), obj); action.setEnabled(action.shouldBeEnabled()); popup.add(action); } if ((obj instanceof MRelationship && !(obj instanceof MFlow)) || ((obj instanceof MLink) && !(ProjectManager.getManager().getCurrentProject().getActiveDiagram() instanceof UMLSequenceDiagram)) || (obj instanceof MTransition)) { UMLAction action = new ActionAddExistingEdge( menuLocalize("menu.popup.add-to-diagram"), obj); action.setEnabled(action.shouldBeEnabled()); popup.add(action); } if ((obj instanceof MModelElement && (obj != ProjectManager .getManager() .getCurrentProject() .getModel())) || obj instanceof Diagram) { popup.add(ActionRemoveFromModel.SINGLETON); } if (obj instanceof MClassifier || obj instanceof MPackage) { popup.add(ActionSetSourcePath.SINGLETON); } if (obj instanceof MPackage || obj instanceof MModel){ popup.add(ActionAddPackage.SINGLETON); } popup.add(new ActionGoToDetails(menuLocalize("action.properties"))); } popup.show(_tree, me.getX(), me.getY()); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/1de82fde02a61c9bdec214aae29c615c3554fab5/NavigatorPane.java/clean/src_new/org/argouml/ui/NavigatorPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 2405, 13770, 4599, 12, 9186, 1133, 1791, 13, 288, 13491, 804, 13770, 4599, 10431, 273, 394, 804, 13770, 4599, 2932, 3813, 8863, 5411, 1033, 1081, 273, 16625, 921, 5621, 5411, 309...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 2405, 13770, 4599, 12, 9186, 1133, 1791, 13, 288, 13491, 804, 13770, 4599, 10431, 273, 394, 804, 13770, 4599, 2932, 3813, 8863, 5411, 1033, 1081, 273, 16625, 921, 5621, 5411, 309...
final IHandlerService handlerService = (IHandlerService) PlatformUI .getWorkbench().getAdapter(IHandlerService.class);
final IHandlerService handlerService = (IHandlerService) PlatformUI.getWorkbench().getService(IHandlerService.class);
public void dispose() { final IHandlerService handlerService = (IHandlerService) PlatformUI .getWorkbench().getAdapter(IHandlerService.class); final Iterator iterator = activations.iterator(); while (iterator.hasNext()) { handlerService.deactivateHandler((IHandlerActivation) iterator .next()); } activations.clear(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/a01c00a13234dc298b4800ef0faaed1ec6320911/PreferencePageHistory.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/PreferencePageHistory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 15825, 1435, 288, 202, 202, 6385, 467, 1503, 1179, 1838, 1179, 273, 261, 45, 1503, 1179, 13, 11810, 5370, 9506, 202, 18, 588, 2421, 22144, 7675, 588, 4216, 12, 45, 1503, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15825, 1435, 288, 202, 202, 6385, 467, 1503, 1179, 1838, 1179, 273, 261, 45, 1503, 1179, 13, 11810, 5370, 9506, 202, 18, 588, 2421, 22144, 7675, 588, 4216, 12, 45, 1503, ...
throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing PriorityClass field: "+e.getMessage(), identifier);
throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing PriorityClass field: "+e.getMessage(), identifier, global);
public ClientPutMessage(SimpleFieldSet fs) throws MessageInvalidException { String fnam = null; identifier = fs.get("Identifier"); if(identifier == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "No Identifier", null); try { String u = fs.get("URI"); if(u == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "No URI", identifier); FreenetURI uu = new FreenetURI(fs.get("URI")); String[] metas = uu.getAllMetaStrings(); if(metas != null && metas.length == 1) { fnam = metas[0]; uu = uu.setMetaString(null); } // if >1, will fail later uri = uu; } catch (MalformedURLException e) { throw new MessageInvalidException(ProtocolErrorMessage.URI_PARSE_ERROR, e.getMessage(), identifier); } global = Fields.stringToBool(fs.get("Global"), false); String verbosityString = fs.get("Verbosity"); if(verbosityString == null) verbosity = 0; else { try { verbosity = Integer.parseInt(verbosityString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Verbosity field: "+e.getMessage(), identifier); } } contentType = fs.get("Metadata.ContentType"); String maxRetriesString = fs.get("MaxRetries"); if(maxRetriesString == null) // default to 0 maxRetries = 0; else { try { maxRetries = Integer.parseInt(maxRetriesString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier); } } getCHKOnly = Fields.stringToBool(fs.get("GetCHKOnly"), false); String priorityString = fs.get("PriorityClass"); if(priorityString == null) { // defaults to the one just below FProxy priorityClass = RequestStarter.IMMEDIATE_SPLITFILE_PRIORITY_CLASS; } else { try { priorityClass = Short.parseShort(priorityString, 10); if((priorityClass < RequestStarter.MAXIMUM_PRIORITY_CLASS) || (priorityClass > RequestStarter.MINIMUM_PRIORITY_CLASS)) throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Valid priorities are from "+RequestStarter.MAXIMUM_PRIORITY_CLASS+" to "+RequestStarter.MINIMUM_PRIORITY_CLASS, identifier); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing PriorityClass field: "+e.getMessage(), identifier); } } String uploadFrom = fs.get("UploadFrom"); if((uploadFrom == null) || uploadFrom.equalsIgnoreCase("direct")) { uploadFromType = UPLOAD_FROM_DIRECT; String dataLengthString = fs.get("DataLength"); if(dataLengthString == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "Need DataLength on a ClientPut", identifier); try { dataLength = Long.parseLong(dataLengthString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing DataLength field: "+e.getMessage(), identifier); } this.origFilename = null; redirectTarget = null; } else if(uploadFrom.equalsIgnoreCase("disk")) { uploadFromType = UPLOAD_FROM_DISK; String filename = fs.get("Filename"); if(filename == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "Missing field Filename", identifier); File f = new File(filename); if(!(f.exists() && f.isFile() && f.canRead())) throw new MessageInvalidException(ProtocolErrorMessage.FILE_NOT_FOUND, null, identifier); dataLength = f.length(); FileBucket fileBucket = new FileBucket(f, true, false, false, false); this.bucket = fileBucket; this.origFilename = f; redirectTarget = null; if(fnam == null) fnam = origFilename.getName(); } else if(uploadFrom.equalsIgnoreCase("redirect")) { uploadFromType = UPLOAD_FROM_REDIRECT; String target = fs.get("TargetURI"); if(target == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "TargetURI missing but UploadFrom=redirect", identifier); try { redirectTarget = new FreenetURI(target); } catch (MalformedURLException e) { throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Invalid TargetURI: "+e, identifier); } dataLength = 0; origFilename = null; bucket = null; } else throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "UploadFrom invalid or unrecognized: "+uploadFrom, identifier); dontCompress = Fields.stringToBool(fs.get("DontCompress"), false); String persistenceString = fs.get("Persistence"); if((persistenceString == null) || persistenceString.equalsIgnoreCase("connection")) { // Default: persists until connection loss. persistenceType = ClientRequest.PERSIST_CONNECTION; } else if(persistenceString.equalsIgnoreCase("reboot")) { // Reports to client by name; persists over connection loss. // Not saved to disk, so dies on reboot. persistenceType = ClientRequest.PERSIST_REBOOT; } else if(persistenceString.equalsIgnoreCase("forever")) { // Same as reboot but saved to disk, persists forever. persistenceType = ClientRequest.PERSIST_FOREVER; } else { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Persistence field: "+persistenceString, identifier); } clientToken = fs.get("ClientToken"); String f = fs.get("TargetFilename"); if(f != null) fnam = f; if(fnam != null && fnam.indexOf('/') > -1) { throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "TargetFilename must not contain slashes", identifier); } if(fnam != null && fnam.length() == 0) { fnam = null; // Deliberate override to tell us not to create one. } if(uri.getKeyType().equals("CHK")) targetFilename = fnam; else targetFilename = null; earlyEncode = Fields.stringToBool(fs.get("EarlyEncode"), false); }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/ClientPutMessage.java/clean/src/freenet/node/fcp/ClientPutMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2445, 6426, 1079, 12, 5784, 974, 694, 2662, 13, 1216, 2350, 1941, 503, 288, 202, 202, 780, 2295, 301, 273, 446, 31, 202, 202, 5644, 273, 2662, 18, 588, 2932, 3004, 8863, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2445, 6426, 1079, 12, 5784, 974, 694, 2662, 13, 1216, 2350, 1941, 503, 288, 202, 202, 780, 2295, 301, 273, 446, 31, 202, 202, 5644, 273, 2662, 18, 588, 2932, 3004, 8863, 202, ...
_context.jobQueue().addJob(r);
getContext().jobQueue().addJob(r);
private void requestParticipation(TunnelInfo participant) { // find the info about who we're looking for RouterInfo target = _context.netDb().lookupRouterInfoLocally(participant.getThisHop()); if (target == null) { if (_log.shouldLog(Log.ERROR)) _log.error("Error - no db info known for participant " + participant.getThisHop()); fail(); return; } if (target.getIdentity().getHash().equals(_context.routerHash())) { // short circuit the ok okLocalParticipation(participant); return; } // select send method [outbound tunnel or garlic through peers] TunnelId outboundTunnel = selectOutboundTunnel(); if (outboundTunnel == null) { if (_log.shouldLog(Log.WARN)) _log.warn("No outbound tunnels! unable to request a new tunnel!"); fail(); return; } // select reply peer [peer to which SourceRouteReply should be sent, and // from which the reply will be forwarded to an inbound tunnel] RouterInfo replyPeer = selectReplyPeer(participant); if (replyPeer == null) { if (_log.shouldLog(Log.WARN)) _log.warn("No reply peers available! unable to request a new tunnel!"); fail(); return; } // select inbound tunnel gateway TunnelGateway inboundGateway = selectInboundGateway(participant, replyPeer); if (inboundGateway == null) { if (_log.shouldLog(Log.ERROR)) _log.error("Unable to find an inbound gateway"); fail(); return; } SessionKey wrappedKey = new SessionKey(); Set wrappedTags = new HashSet(64); PublicKey wrappedTo = new PublicKey(); RequestState state = new RequestState(wrappedKey, wrappedTags, wrappedTo, participant, inboundGateway, replyPeer, outboundTunnel, target); Request r = new Request(state); _context.jobQueue().addJob(r); }
45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/e737e5c9507ed0d463dc9e45a8f63657f466b177/RequestTunnelJob.java/clean/router/java/src/net/i2p/router/tunnelmanager/RequestTunnelJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 590, 1988, 24629, 367, 12, 20329, 966, 14188, 13, 288, 3639, 368, 1104, 326, 1123, 2973, 10354, 732, 4565, 7849, 364, 3639, 9703, 966, 1018, 273, 389, 2472, 18, 2758, 4331, 767...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 590, 1988, 24629, 367, 12, 20329, 966, 14188, 13, 288, 3639, 368, 1104, 326, 1123, 2973, 10354, 732, 4565, 7849, 364, 3639, 9703, 966, 1018, 273, 389, 2472, 18, 2758, 4331, 767...
cell.setStaticValue(value);
cell = new Cell(value);
public int doEndTag() throws JspException { TableTag tableTag = getTableTag(); MediaTypeEnum currentMediaType = (MediaTypeEnum) this.pageContext.findAttribute(TableTag.PAGE_ATTRIBUTE_MEDIA); if (currentMediaType != null && !MediaUtil.availableForMedia(this, currentMediaType)) { if (log.isDebugEnabled()) { log.debug("skipping column body, currentMediaType=" + currentMediaType); } return SKIP_BODY; } // add column header only once if (tableTag.isFirstIteration()) { addHeaderToTable(tableTag); } if (!tableTag.isIncludedRow()) { return super.doEndTag(); } HtmlAttributeMap perRowValues = new HtmlAttributeMap(); perRowValues.put(TagConstants.ATTRIBUTE_STYLE, this.attributeMap.get(TagConstants.ATTRIBUTE_STYLE)); perRowValues.put(TagConstants.ATTRIBUTE_CLASS, this.attributeMap.get(TagConstants.ATTRIBUTE_CLASS)); Cell cell = new Cell(null); cell.setPerRowAttributes(perRowValues); if (this.property == null && this.bodyContent != null) { String value = this.bodyContent.getString(); if (value == null && this.nulls) { value = TagConstants.EMPTY_STRING; } cell.setStaticValue(value); } tableTag.addCell(cell); // cleanup non-attribute variables this.alreadySorted = false; return super.doEndTag(); }
7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/8d125235a8f193adeb2bb37719a23f36dc2acb98/ColumnTag.java/buggy/displaytag/src/main/java/org/displaytag/tags/ColumnTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 25633, 1435, 1216, 27485, 565, 288, 3639, 3555, 1805, 1014, 1805, 273, 5638, 1805, 5621, 3639, 6128, 10549, 783, 20870, 273, 261, 5419, 10549, 13, 333, 18, 2433, 1042, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 25633, 1435, 1216, 27485, 565, 288, 3639, 3555, 1805, 1014, 1805, 273, 5638, 1805, 5621, 3639, 6128, 10549, 783, 20870, 273, 261, 5419, 10549, 13, 333, 18, 2433, 1042, 18, ...
public void setDifficulty(er.bugtracker.Difficulty aValue) {
public void setDifficulty(Difficulty aValue) {
public void setDifficulty(er.bugtracker.Difficulty aValue) { takeStoredValueForKey(aValue, "difficulty"); }
50512 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50512/e2f6d086a1ca4f9bae07e93767b99fcb6f6fa2ac/_Requirement.java/clean/Common/Applications/BugTracker/Frameworks/BTBusinessLogic/Sources/er/bugtracker/_Requirement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 5938, 21934, 12, 5938, 21934, 24406, 13, 288, 3639, 4862, 18005, 620, 19759, 12, 69, 620, 16, 315, 5413, 21934, 8863, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 5938, 21934, 12, 5938, 21934, 24406, 13, 288, 3639, 4862, 18005, 620, 19759, 12, 69, 620, 16, 315, 5413, 21934, 8863, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100...
shd.preInvokeEndpointHook(context.getMessageContext());
public void receive(MessageInfo messageInfo) { try { XMLMessage xmlMessage = null; try { xmlMessage = getXMLMessage(messageInfo); } catch(Exception e) { sendResponseError(messageInfo, e); return; } // If FI is accepted by client, set property to optimistic if (xmlMessage.acceptFastInfoset()) { messageInfo.setMetaData(CONTENT_NEGOTIATION_PROPERTY, "optimistic"); } XMLHandlerContext context = new XMLHandlerContext(messageInfo, null, xmlMessage); updateContextPropertyBag(messageInfo, context); boolean skipEndpoint = false; SystemHandlerDelegate shd = getSystemHandlerDelegate(messageInfo); if (shd != null) { /* skipEndpoint = !shd.processRequest( context.getLogicalMessageContext()); */ // TODO: need to act if processRequest() retuns false } boolean peekOneWay = false; // Call inbound handlers. It also calls outbound handlers incase of // reversal of flow. if (!skipEndpoint) { skipEndpoint = callHandlersOnRequest( messageInfo, context, !peekOneWay); } if (skipEndpoint) { xmlMessage = context.getXMLMessage(); if (xmlMessage == null) { InternalMessage internalMessage = context.getInternalMessage(); XMLEPTFactory eptf = (XMLEPTFactory)messageInfo.getEPTFactory(); XMLEncoder encoder = eptf.getXMLEncoder(); xmlMessage = encoder.toXMLMessage(internalMessage, messageInfo); } sendResponse(messageInfo, xmlMessage); } else { toMessageInfo(messageInfo, context); if (isOneway(messageInfo)) { sendResponseOneway(messageInfo); if (!peekOneWay) { // handler chain didn't already clos closeHandlers(messageInfo, context); } } if (!isFailure(messageInfo)) { if (shd != null) { shd.preInvokeEndpointHook(context.getMessageContext()); } updateWebServiceContext(messageInfo, context); invokeEndpoint(messageInfo, context); } if (isOneway(messageInfo)) { if (isFailure(messageInfo)) { // Just log the error. Not much to do } } else { updateContextPropertyBag(messageInfo, context); xmlMessage = getResponse(messageInfo, context); if (shd != null) { /* shd.processResponse( context.getXMLMessageContext()); */ } sendResponse(messageInfo, xmlMessage); } } } catch(Exception e) { sendResponseError(messageInfo, e); } }
9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/be52bc232fe6fd7de16373e8de892d0eaea55212/XMLMessageDispatcher.java/clean/jaxws-ri/rt/src/com/sun/xml/ws/protocol/xml/server/XMLMessageDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 6798, 12, 1079, 966, 883, 966, 13, 288, 3639, 775, 288, 5411, 3167, 1079, 2025, 1079, 273, 446, 31, 5411, 775, 288, 7734, 2025, 1079, 273, 336, 4201, 1079, 12, 2150, 966, 176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6798, 12, 1079, 966, 883, 966, 13, 288, 3639, 775, 288, 5411, 3167, 1079, 2025, 1079, 273, 446, 31, 5411, 775, 288, 7734, 2025, 1079, 273, 336, 4201, 1079, 12, 2150, 966, 176...
model1.getCursor().prev();
model1.move(-1);
public void testQuoteBreaksComment() { model1.insertSlash(); model1.insertStar(); model1.insertStar(); model1.insertSlash(); model1.getCursor().prev(); assertEquals("#0.0", "/*", model1.getCursor().prevItem().getType()); assertEquals("#0.1", "*/", model1.getCursor().current().getType()); model1.insertQuote(); model1.getCursor().prev(); // /*#"*/ assertEquals("#1.1", ReducedToken.INSIDE_BLOCK_COMMENT, model1.getStateAtCurrent()); assertEquals("#1.2", ReducedToken.INSIDE_BLOCK_COMMENT, model1.getCursor().current().getState()); assertEquals("#1.1", ReducedToken.FREE, model1.getCursor().prevItem().getState()); assertEquals("#1.2", ReducedToken.FREE, model1.getCursor().nextItem().getState()); model1.getCursor().prev(); // #/*"*/ model1.insertQuote(); assertEquals("#2.0", ReducedToken.INSIDE_QUOTE, model1.getStateAtCurrent()); assertEquals("#2.1", ReducedToken.INSIDE_QUOTE, model1.getCursor().current().getState()); assertEquals("#2.2", ReducedToken.FREE, model1.getCursor().prevItem().getState()); assertEquals("#2.3", "/", model1.getCursor().current().getType()); assertEquals("#2.4", "*", model1.getCursor().nextItem().getType()); model1.getCursor().next(); // "/#*"*/ assertEquals("#3.0", ReducedToken.INSIDE_QUOTE, model1.getStateAtCurrent()); assertEquals("#3.1", ReducedToken.INSIDE_QUOTE, model1.getCursor().current().getState()); assertEquals("#3.2", ReducedToken.INSIDE_QUOTE, model1.getCursor().prevItem().getState()); assertEquals("#3.3", "*", model1.getCursor().current().getType()); assertEquals("#3.4", "\"", model1.getCursor().nextItem().getType()); model1.getCursor().next(); // "/*#"*/ assertEquals("#4.0", ReducedToken.INSIDE_QUOTE, model1.getStateAtCurrent()); assertEquals("#4.1", ReducedToken.FREE, model1.getCursor().current().getState()); assertEquals("#4.2", ReducedToken.INSIDE_QUOTE, model1.getCursor().prevItem().getState()); assertEquals("#4.3", "\"", model1.getCursor().current().getType()); assertEquals("#4.4", "*", model1.getCursor().nextItem().getType()); assertEquals("#4.5", ReducedToken.FREE, model1.getCursor().nextItem().getState()); assertTrue("#4.6", model1.getCursor().current().isClosed()); model1.getCursor().next(); // "/*"#*/ assertEquals("#5.0", ReducedToken.FREE, model1.getStateAtCurrent()); assertEquals("#5.1", ReducedToken.FREE, model1.getCursor().current().getState()); assertEquals("#5.2", ReducedToken.FREE, model1.getCursor().prevItem().getState()); assertEquals("#5.3", "*", model1.getCursor().current().getType()); assertEquals("#5.4", "/", model1.getCursor().nextItem().getType()); assertEquals("#5.5", ReducedToken.FREE, model1.getCursor().nextItem().getState()); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/28c4be6b04d5867405916840b451c47e4acad060/ReducedModelTest.java/clean/drjava/src/edu/rice/cs/drjava/ReducedModelTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 10257, 26806, 4469, 1435, 202, 202, 95, 1082, 202, 2284, 21, 18, 6387, 11033, 5621, 1082, 202, 2284, 21, 18, 6387, 18379, 5621, 1082, 202, 2284, 21, 18, 6387, 18379, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10257, 26806, 4469, 1435, 202, 202, 95, 1082, 202, 2284, 21, 18, 6387, 11033, 5621, 1082, 202, 2284, 21, 18, 6387, 18379, 5621, 1082, 202, 2284, 21, 18, 6387, 18379, ...
throws Exception
public Expr []bindArguments(Env env, Expr fun, Expr []args) throws Exception { if (_defaultExprs.length == args.length) return args; int length = _defaultExprs.length; if (_defaultExprs.length < args.length) { if (_hasRestArgs) length = args.length; else { env.warning(L.l( "function '{0}' has {1} required arguments, but {2} were provided", _method.getName(), _defaultExprs.length, args.length)); return null; } } else if (_defaultExprs[args.length] == null) { int required; for (required = args.length; required < _defaultExprs.length; required++) { if (_defaultExprs[required] != null) break; } env.warning(L.l( "function '{0}' has {1} required arguments, but only {2} were provided", _method.getName(), required, args.length)); return null; } Expr []expandedArgs = new Expr[length]; System.arraycopy(args, 0, expandedArgs, 0, args.length); if (args.length < expandedArgs.length) { for (int i = args.length; i < expandedArgs.length; i++) { Expr defaultExpr = _defaultExprs[i]; if (defaultExpr == null) defaultExpr = NullLiteralExpr.NULL; expandedArgs[i] = defaultExpr; } } return expandedArgs; }
3863 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3863/87fa828f676c349c54c585677eb7eeab11f5627f/StaticFunction.java/buggy/quercus/src/main/java/com/caucho/quercus/module/StaticFunction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8074, 5378, 4376, 4628, 12, 3491, 1550, 16, 8074, 9831, 16, 8074, 5378, 1968, 13, 377, 288, 565, 309, 261, 67, 1886, 22947, 18, 2469, 422, 833, 18, 2469, 13, 1377, 327, 833, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8074, 5378, 4376, 4628, 12, 3491, 1550, 16, 8074, 9831, 16, 8074, 5378, 1968, 13, 377, 288, 565, 309, 261, 67, 1886, 22947, 18, 2469, 422, 833, 18, 2469, 13, 1377, 327, 833, 31, ...
g2.setColor(color.leftColor); if (border.left == 1) {
g2.setColor(bcolor.leftColor()); if ((int)border.left() == 1) {
private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBevelledPolygon(bounds, border, sides, currentSide, false); //Shape old_clip = g2.getClip(); //if (poly != null) g2.clip(poly); if (currentSide == TOP) { g2.setColor(color.topColor); // draw a 1px border with a line instead of a polygon if (border.top == 1) { g2.drawLine(bounds.x, bounds.y, bounds.x + bounds.width - 1, bounds.y); } else { // use polygons for borders over 1px wide g2.fillPolygon(poly); } } else if (currentSide == BOTTOM) { g2.setColor(color.bottomColor); if (border.bottom == 1) { g2.drawLine(bounds.x, bounds.y + bounds.height - 1, bounds.x + bounds.width - 1, bounds.y + bounds.height - 1); } else { g2.fillPolygon(poly); } } else if (currentSide == RIGHT) { g2.setColor(color.rightColor); if (border.right == 1) { g2.drawLine(bounds.x + bounds.width - 1, bounds.y, bounds.x + bounds.width - 1, bounds.y + bounds.height - 1); } else { g2.fillPolygon(poly); } } else if (currentSide == LEFT) { g2.setColor(color.leftColor); if (border.left == 1) { g2.drawLine(bounds.x, bounds.y, bounds.x, bounds.y + bounds.height - 1); } else { g2.fillPolygon(poly); } } //g2.setClip(old_clip); }
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 12574, 25044, 12, 6385, 16830, 22, 40, 314, 22, 16, 727, 13264, 4972, 16, 727, 13525, 5795, 16, 727, 13525, 2957, 2036, 16, 727, 509, 22423, 16, 509, 783, 8895, 13, 288,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 12574, 25044, 12, 6385, 16830, 22, 40, 314, 22, 16, 727, 13264, 4972, 16, 727, 13525, 5795, 16, 727, 13525, 2957, 2036, 16, 727, 509, 22423, 16, 509, 783, 8895, 13, 288,...
MNode modelElement = MFactory.getDefaultFactory().createNode(); super.initialize(modelElement); return modelElement; }
MNode modelElement = MFactory.getDefaultFactory().createNode(); super.initialize(modelElement); return modelElement; }
public MNode createNode() { MNode modelElement = MFactory.getDefaultFactory().createNode(); super.initialize(modelElement); return modelElement; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/CoreFactory.java/buggy/src_new/org/argouml/model/uml/foundation/core/CoreFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 490, 907, 24584, 1435, 288, 202, 202, 49, 907, 938, 1046, 273, 490, 1733, 18, 588, 1868, 1733, 7675, 2640, 907, 5621, 202, 202, 9565, 18, 11160, 12, 2284, 1046, 1769, 202, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 490, 907, 24584, 1435, 288, 202, 202, 49, 907, 938, 1046, 273, 490, 1733, 18, 588, 1868, 1733, 7675, 2640, 907, 5621, 202, 202, 9565, 18, 11160, 12, 2284, 1046, 1769, 202, 202...
public ResourceListSelectionDialog(Shell parentShell, IContainer container, int typeMask) {
public ResourceListSelectionDialog(Shell parentShell, IResource[] resources) {
public ResourceListSelectionDialog(Shell parentShell, IContainer container, int typeMask) { super(parentShell); this.container = container; this.typeMask = typeMask; setShellStyle(getShellStyle() | SWT.RESIZE); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/0b3a13758e4666f59d7bd12cdbb8dd272205910f/ResourceListSelectionDialog.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ResourceListSelectionDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2591, 682, 6233, 6353, 12, 13220, 982, 13220, 16, 467, 2170, 1478, 16, 5411, 509, 618, 5796, 13, 288, 3639, 2240, 12, 2938, 13220, 1769, 3639, 333, 18, 3782, 273, 1478, 31, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2591, 682, 6233, 6353, 12, 13220, 982, 13220, 16, 467, 2170, 1478, 16, 5411, 509, 618, 5796, 13, 288, 3639, 2240, 12, 2938, 13220, 1769, 3639, 333, 18, 3782, 273, 1478, 31, 3639, ...
sendPatch(p, bankNum + 1, patchNum);
sendPatch((Patch)p, bankNum + 1, patchNum);
public void storePatch(Patch p, int bankNum, int patchNum) { if (bankNum > 1) { JOptionPane.showMessageDialog(PatchEdit.getInstance(), "Cannot send to a preset bank", "Store Patch", JOptionPane.WARNING_MESSAGE ); } else { sendPatch(p, bankNum + 1, patchNum); } }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/b6e99a36d447b749f8ec1622f6d2477fcd586fcb/VirusProgSingleDriver.java/buggy/JSynthLib/synthdrivers/AccessVirus/VirusProgSingleDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1707, 7332, 12, 7332, 293, 16, 509, 11218, 2578, 16, 509, 4729, 2578, 13, 288, 565, 309, 261, 10546, 2578, 405, 404, 13, 288, 1377, 804, 1895, 8485, 18, 4500, 1079, 6353, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1707, 7332, 12, 7332, 293, 16, 509, 11218, 2578, 16, 509, 4729, 2578, 13, 288, 565, 309, 261, 10546, 2578, 405, 404, 13, 288, 1377, 804, 1895, 8485, 18, 4500, 1079, 6353, 12,...
if (!(_useType instanceof StringType)) {
public Type typeCheck(SymbolTable stable) throws TypeCheckError { _match.typeCheck(stable); _useType = _use.typeCheck(stable); // If the 'use' attribute is not a string... if (!(_useType instanceof StringType)) { // ...it must hold an expression for a node... if (_useType instanceof NodeType) { _use = new CastExpr(_use, Type.String); } // ...or a node-set. else if (!(_useType instanceof NodeSetType)) { throw new TypeCheckError(this); } } return Type.Void; }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/be60972735dc72ea42ae9a13af0902b0d94e7e1f/Key.java/clean/src/org/apache/xalan/xsltc/compiler/Key.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1412, 618, 1564, 12, 5335, 1388, 14114, 13, 1216, 1412, 1564, 668, 288, 202, 67, 1916, 18, 723, 1564, 12, 15021, 1769, 202, 67, 1202, 559, 273, 389, 1202, 18, 723, 1564, 12, 15021...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1412, 618, 1564, 12, 5335, 1388, 14114, 13, 1216, 1412, 1564, 668, 288, 202, 67, 1916, 18, 723, 1564, 12, 15021, 1769, 202, 67, 1202, 559, 273, 389, 1202, 18, 723, 1564, 12, 15021...
Integer sizeC, Integer sizeT, String pixelType, Boolean bigEndian, String dimensionOrder, Integer i) {
Integer sizeC, Integer sizeT, String pixelType, Boolean bigEndian, String dimensionOrder, Integer i) {
public void setPixels(Integer sizeX, Integer sizeY, Integer sizeZ, Integer sizeC, Integer sizeT, String pixelType, Boolean bigEndian, String dimensionOrder, Integer i) { for (Iterator iter = delegates.iterator(); iter.hasNext();) { MetadataStore s = (MetadataStore) iter.next(); s.setPixels(sizeX, sizeY, sizeZ, sizeC, sizeT, pixelType, bigEndian, dimensionOrder, i); } }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/70f56ee3fa101ec0d5c6f5c67bc3511fe51aa484/AggregateMetadataStore.java/clean/loci/formats/AggregateMetadataStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 18079, 12, 4522, 963, 60, 16, 2144, 963, 61, 16, 2144, 963, 62, 16, 1377, 2144, 963, 39, 16, 2144, 963, 56, 16, 514, 4957, 559, 16, 3411, 5446, 7583, 16, 1377, 514, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 18079, 12, 4522, 963, 60, 16, 2144, 963, 61, 16, 2144, 963, 62, 16, 1377, 2144, 963, 39, 16, 2144, 963, 56, 16, 514, 4957, 559, 16, 3411, 5446, 7583, 16, 1377, 514, ...
if(line.equals("End")) return; throw new IOException("Unknown end-marker: \""+line+"\"");
endMarker = line; return;
private void read(BufferedReader br) throws IOException { boolean firstLine = true; while(true) { String line = br.readLine(); if(line == null) { if(firstLine) throw new EOFException(); throw new IOException(); } firstLine = false; int index = line.indexOf('='); if(index >= 0) { // Mapping String before = line.substring(0, index); String after = line.substring(index+1); map.put(before, after); } else { if(line.equals("End")) return; throw new IOException("Unknown end-marker: \""+line+"\""); } } }
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/87760d0ac57e5e39f75661e91adeb3a9ffcc5dfb/SimpleFieldSet.java/clean/src/freenet/support/SimpleFieldSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 855, 12, 17947, 2514, 5186, 13, 1216, 1860, 288, 3639, 1250, 24415, 273, 638, 31, 3639, 1323, 12, 3767, 13, 288, 5411, 514, 980, 273, 5186, 18, 896, 1670, 5621, 5411, 309, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 855, 12, 17947, 2514, 5186, 13, 1216, 1860, 288, 3639, 1250, 24415, 273, 638, 31, 3639, 1323, 12, 3767, 13, 288, 5411, 514, 980, 273, 5186, 18, 896, 1670, 5621, 5411, 309, 12...
pn = nf.createSwitch(expr(false), lineno); mustMatchToken(Token.RP, "msg.no.paren.after.switch"); decompiler.addToken(Token.RP); mustMatchToken(Token.LC, "msg.no.brace.switch"); decompiler.addEOL(Token.LC); boolean hasDefault = false; while ((tt = ts.getToken()) != Token.RC && tt != Token.EOF) { Node caseExpression; if (tt == Token.CASE) { decompiler.addToken(Token.CASE); caseExpression = expr(false); } else { if (tt != Token.DEFAULT) { reportError("msg.bad.switch"); } if (hasDefault) { reportError("msg.double.switch.default"); } decompiler.addToken(Token.DEFAULT); hasDefault = true; caseExpression = null; } mustMatchToken(Token.COLON, "msg.no.colon.case"); decompiler.addEOL(Token.COLON); Node block = nf.createLeaf(Token.BLOCK); while ((tt = ts.peekToken()) != Token.RC && tt != Token.CASE && tt != Token.DEFAULT && tt != Token.EOF) { nf.addChildToBack(block, statement()); } nf.addSwitchCase(pn, caseExpression, block); } decompiler.addEOL(Token.RC); nf.closeSwitch(pn);
pn = enterSwitch(expr(false), lineno, statementLabel); try { mustMatchToken(Token.RP, "msg.no.paren.after.switch"); decompiler.addToken(Token.RP); mustMatchToken(Token.LC, "msg.no.brace.switch"); decompiler.addEOL(Token.LC); boolean hasDefault = false; while ((tt = ts.getToken()) != Token.RC && tt != Token.EOF) { Node caseExpression; if (tt == Token.CASE) { decompiler.addToken(Token.CASE); caseExpression = expr(false); } else { if (tt != Token.DEFAULT) { reportError("msg.bad.switch"); } if (hasDefault) { reportError("msg.double.switch.default"); } decompiler.addToken(Token.DEFAULT); hasDefault = true; caseExpression = null; } mustMatchToken(Token.COLON, "msg.no.colon.case"); decompiler.addEOL(Token.COLON); Node block = nf.createLeaf(Token.BLOCK); while ((tt = ts.peekToken()) != Token.RC && tt != Token.CASE && tt != Token.DEFAULT && tt != Token.EOF) { nf.addChildToBack(block, statement()); } nf.addSwitchCase(pn, caseExpression, block); } decompiler.addEOL(Token.RC); nf.closeSwitch(pn); } finally { exitSwitch(); }
private Node statementHelper() throws IOException, ParserException { Node 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; tt = ts.getToken(); switch(tt) { case Token.IF: { skipsemi = true; decompiler.addToken(Token.IF); int lineno = ts.getLineno(); Node cond = condition(); decompiler.addEOL(Token.LC); Node ifTrue = statement(); Node ifFalse = null; if (ts.matchToken(Token.ELSE)) { decompiler.addToken(Token.RC); decompiler.addToken(Token.ELSE); decompiler.addEOL(Token.LC); ifFalse = statement(); } decompiler.addEOL(Token.RC); pn = nf.createIf(cond, ifTrue, ifFalse, lineno); break; } case Token.SWITCH: { skipsemi = true; decompiler.addToken(Token.SWITCH); int lineno = ts.getLineno(); mustMatchToken(Token.LP, "msg.no.paren.switch"); decompiler.addToken(Token.LP); pn = nf.createSwitch(expr(false), lineno); mustMatchToken(Token.RP, "msg.no.paren.after.switch"); decompiler.addToken(Token.RP); mustMatchToken(Token.LC, "msg.no.brace.switch"); decompiler.addEOL(Token.LC); boolean hasDefault = false; while ((tt = ts.getToken()) != Token.RC && tt != Token.EOF) { Node caseExpression; if (tt == Token.CASE) { decompiler.addToken(Token.CASE); caseExpression = expr(false); } else { if (tt != Token.DEFAULT) { reportError("msg.bad.switch"); } if (hasDefault) { reportError("msg.double.switch.default"); } decompiler.addToken(Token.DEFAULT); hasDefault = true; caseExpression = null; } mustMatchToken(Token.COLON, "msg.no.colon.case"); decompiler.addEOL(Token.COLON); Node block = nf.createLeaf(Token.BLOCK); while ((tt = ts.peekToken()) != Token.RC && tt != Token.CASE && tt != Token.DEFAULT && tt != Token.EOF) { nf.addChildToBack(block, statement()); } // caseExpression == null => add default lable nf.addSwitchCase(pn, caseExpression, block); } decompiler.addEOL(Token.RC); nf.closeSwitch(pn); break; } case Token.WHILE: { skipsemi = true; decompiler.addToken(Token.WHILE); int lineno = ts.getLineno(); Node cond = condition(); decompiler.addEOL(Token.LC); Node body = statement(); decompiler.addEOL(Token.RC); pn = nf.createWhile(cond, body, lineno); break; } case Token.DO: { decompiler.addToken(Token.DO); decompiler.addEOL(Token.LC); int lineno = ts.getLineno(); Node body = statement(); decompiler.addToken(Token.RC); mustMatchToken(Token.WHILE, "msg.no.while.do"); decompiler.addToken(Token.WHILE); Node cond = condition(); pn = nf.createDoWhile(body, cond, lineno); break; } case Token.FOR: { boolean isForEach = false; skipsemi = true; decompiler.addToken(Token.FOR); int lineno = ts.getLineno(); Node init; // Node init is also foo in 'foo in Object' Node cond; // Node cond is also object in 'foo in Object' Node incr = null; // to kill warning Node body; // See if this is a for each () instead of just a for () if (ts.matchToken(Token.NAME)) { decompiler.addName(ts.getString()); if (ts.getString().equals("each")) { isForEach = true; } else { reportError("msg.no.paren.for"); } } mustMatchToken(Token.LP, "msg.no.paren.for"); decompiler.addToken(Token.LP); tt = ts.peekToken(); if (tt == Token.SEMI) { init = nf.createLeaf(Token.EMPTY); } else { if (tt == Token.VAR) { // set init to a var list or initial ts.getToken(); // throw away the 'var' token init = variables(true); } else { init = expr(true); } } if (ts.matchToken(Token.IN)) { decompiler.addToken(Token.IN); // 'cond' is the object over which we're iterating cond = expr(false); } else { // ordinary for loop mustMatchToken(Token.SEMI, "msg.no.semi.for"); decompiler.addToken(Token.SEMI); if (ts.peekToken() == Token.SEMI) { // no loop condition cond = nf.createLeaf(Token.EMPTY); } else { cond = expr(false); } mustMatchToken(Token.SEMI, "msg.no.semi.for.cond"); decompiler.addToken(Token.SEMI); if (ts.peekToken() == Token.RP) { incr = nf.createLeaf(Token.EMPTY); } else { incr = expr(false); } } mustMatchToken(Token.RP, "msg.no.paren.for.ctrl"); decompiler.addToken(Token.RP); decompiler.addEOL(Token.LC); body = statement(); decompiler.addEOL(Token.RC); if (incr == null) { // cond could be null if 'in obj' got eaten by the init node. pn = nf.createForIn(init, cond, body, isForEach, lineno); } else { pn = nf.createFor(init, cond, incr, body, lineno); } break; } case Token.TRY: { int lineno = ts.getLineno(); Node tryblock; Node catchblocks = null; Node finallyblock = null; skipsemi = true; decompiler.addToken(Token.TRY); decompiler.addEOL(Token.LC); tryblock = statement(); decompiler.addEOL(Token.RC); catchblocks = nf.createLeaf(Token.BLOCK); boolean sawDefaultCatch = false; int peek = ts.peekToken(); if (peek == Token.CATCH) { while (ts.matchToken(Token.CATCH)) { if (sawDefaultCatch) { reportError("msg.catch.unreachable"); } decompiler.addToken(Token.CATCH); mustMatchToken(Token.LP, "msg.no.paren.catch"); decompiler.addToken(Token.LP); mustMatchToken(Token.NAME, "msg.bad.catchcond"); String varName = ts.getString(); decompiler.addName(varName); Node catchCond = null; if (ts.matchToken(Token.IF)) { decompiler.addToken(Token.IF); catchCond = expr(false); } else { sawDefaultCatch = true; } mustMatchToken(Token.RP, "msg.bad.catchcond"); decompiler.addToken(Token.RP); mustMatchToken(Token.LC, "msg.no.brace.catchblock"); decompiler.addEOL(Token.LC); nf.addChildToBack(catchblocks, nf.createCatch(varName, catchCond, statements(), ts.getLineno())); mustMatchToken(Token.RC, "msg.no.brace.after.body"); decompiler.addEOL(Token.RC); } } else if (peek != Token.FINALLY) { mustMatchToken(Token.FINALLY, "msg.try.no.catchfinally"); } if (ts.matchToken(Token.FINALLY)) { decompiler.addToken(Token.FINALLY); decompiler.addEOL(Token.LC); finallyblock = statement(); decompiler.addEOL(Token.RC); } pn = nf.createTryCatchFinally(tryblock, catchblocks, finallyblock, lineno); break; } case Token.THROW: { int lineno = ts.getLineno(); decompiler.addToken(Token.THROW); pn = nf.createThrow(expr(false), lineno); if (lineno == ts.getLineno()) checkWellTerminated(); break; } case Token.BREAK: { int lineno = ts.getLineno(); decompiler.addToken(Token.BREAK); // matchLabel only matches if there is one String label = matchLabel(); if (label != null) { decompiler.addName(label); } pn = nf.createBreak(label, lineno); break; } case Token.CONTINUE: { int lineno = ts.getLineno(); decompiler.addToken(Token.CONTINUE); // matchLabel only matches if there is one String label = matchLabel(); if (label != null) { decompiler.addName(label); } pn = nf.createContinue(label, lineno); break; } case Token.WITH: { skipsemi = true; decompiler.addToken(Token.WITH); int lineno = ts.getLineno(); mustMatchToken(Token.LP, "msg.no.paren.with"); decompiler.addToken(Token.LP); Node obj = expr(false); mustMatchToken(Token.RP, "msg.no.paren.after.with"); decompiler.addToken(Token.RP); decompiler.addEOL(Token.LC); ++nestingOfWith; Node body; try { body = statement(); } finally { --nestingOfWith; } decompiler.addEOL(Token.RC); pn = nf.createWith(obj, body, lineno); break; } case Token.VAR: { int lineno = ts.getLineno(); pn = variables(false); if (ts.getLineno() == lineno) checkWellTerminated(); break; } case Token.RETURN: { Node retExpr = null; decompiler.addToken(Token.RETURN); if (!insideFunction()) reportError("msg.bad.return"); /* This is ugly, but we don't want to require a semicolon. */ ts.allowRegExp = true; tt = ts.peekTokenSameLine(); ts.allowRegExp = false; int lineno = ts.getLineno(); if (tt != Token.EOF && tt != Token.EOL && tt != Token.SEMI && tt != Token.RC) { retExpr = expr(false); if (ts.getLineno() == lineno) checkWellTerminated(); } // XXX ASSERT pn pn = nf.createReturn(retExpr, lineno); break; } case Token.LC: skipsemi = true; pn = statements(); mustMatchToken(Token.RC, "msg.no.brace.block"); break; case Token.ERROR: // Fall thru, to have a node for error recovery to work on case Token.EOL: case Token.SEMI: pn = nf.createLeaf(Token.EMPTY); skipsemi = true; break; case Token.FUNCTION: { pn = function(FunctionNode.FUNCTION_EXPRESSION_STATEMENT); break; } case Token.DEFAULT : mustHaveXML(); int nsLine = ts.getLineno(); if (!(ts.matchToken(Token.NAME) && ts.getString().equals("xml"))) { reportError("msg.bad.namespace"); } decompiler.addName(ts.getString()); if (!(ts.matchToken(Token.NAME) && ts.getString().equals("namespace"))) { reportError("msg.bad.namespace"); } decompiler.addName(ts.getString()); if (!ts.matchToken(Token.ASSIGN)) { reportError("msg.bad.namespace"); } decompiler.addToken(Token.ASSIGN); Node expr = expr(false); pn = nf.createDefaultNamespace(expr, nsLine); break; default: { int lastExprType = tt; int tokenno = ts.getTokenno(); ts.ungetToken(tt); int lineno = ts.getLineno(); pn = expr(false); if (ts.peekToken() == Token.COLON) { /* check that the last thing the tokenizer returned was a * NAME and that only one token was consumed. */ if (lastExprType != Token.NAME || (ts.getTokenno() != tokenno)) reportError("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()); */ String name = ts.getString(); pn = nf.createLabel(name, lineno); // depend on decompiling lookahead to guess that that // last name was a label. decompiler.addEOL(Token.COLON); return pn; } pn = nf.createExprStatement(pn, lineno); if (ts.getLineno() == lineno) { checkWellTerminated(); } break; } } ts.matchToken(Token.SEMI); if (!skipsemi) { decompiler.addEOL(Token.SEMI); } return pn; }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/792304a2a96cea5a80c02ff6a02a98f830f7393d/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2029, 3021, 2276, 1435, 3639, 1216, 1860, 16, 27990, 565, 288, 3639, 2029, 11059, 273, 446, 31, 3639, 368, 971, 2488, 307, 9197, 422, 638, 16, 2727, 1404, 527, 3174, 7492, 397, 1999...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2029, 3021, 2276, 1435, 3639, 1216, 1860, 16, 27990, 565, 288, 3639, 2029, 11059, 273, 446, 31, 3639, 368, 971, 2488, 307, 9197, 422, 638, 16, 2727, 1404, 527, 3174, 7492, 397, 1999...
if (!removedNodes.contains(n)) {
if (lattice.hasNode(n)) {
protected void optimizeBackward() { //System.err.println("*** Optimizing backward ***"); boolean moreChanges = true; while (moreChanges) { moreChanges = false; // search for a node that can be optimized for (Iterator i=lattice.getCopyOfNodes().iterator(); i.hasNext();) { Node n = (Node) i.next(); if (!removedNodes.contains(n)) { moreChanges |= optimizeNodeBackward(n); } } } }
8321 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8321/73f075ae4a01ecf914ef4ce231f3a02b9d73d850/LatticeOptimizer.java/clean/sphinx4/edu/cmu/sphinx/result/LatticeOptimizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 10979, 26283, 1435, 288, 3639, 368, 3163, 18, 370, 18, 8222, 2932, 14465, 19615, 6894, 12555, 18852, 8863, 3639, 1250, 1898, 7173, 273, 638, 31, 3639, 1323, 261, 10161, 7173, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 10979, 26283, 1435, 288, 3639, 368, 3163, 18, 370, 18, 8222, 2932, 14465, 19615, 6894, 12555, 18852, 8863, 3639, 1250, 1898, 7173, 273, 638, 31, 3639, 1323, 261, 10161, 7173, 13,...
KeyBindingService(IWorkbenchPartSite workbenchPartSite) {
public KeyBindingService(IWorkbenchPartSite workbenchPartSite) {
KeyBindingService(IWorkbenchPartSite workbenchPartSite) { this(workbenchPartSite, null); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/84c3360a0de46f10d9977426d71a0bfb78afc489/KeyBindingService.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/KeyBindingService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1929, 5250, 1179, 12, 45, 2421, 22144, 1988, 4956, 1440, 22144, 1988, 4956, 13, 288, 3639, 333, 12, 1252, 22144, 1988, 4956, 16, 446, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 1929, 5250, 1179, 12, 45, 2421, 22144, 1988, 4956, 1440, 22144, 1988, 4956, 13, 288, 3639, 333, 12, 1252, 22144, 1988, 4956, 16, 446, 1769, 565, 289, 2, -100, -100, -100, -100, -100...
return new CArray(xs);
return new CArray(xs);
public static Array box_carray(char [] xs) { return new CArray(xs); }
5590 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5590/27b51e096e467f35a33e37e0191031477ea9ba8b/RunTime.java/clean/sources/scala/runtime/RunTime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1510, 282, 3919, 67, 71, 1126, 12, 3001, 282, 5378, 9280, 13, 288, 202, 2463, 394, 385, 1076, 12, 13713, 1769, 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, 0, 0, 0, 0, 0, 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, 1510, 282, 3919, 67, 71, 1126, 12, 3001, 282, 5378, 9280, 13, 288, 202, 2463, 394, 385, 1076, 12, 13713, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if (!mergeChannels && splitWindows) slice(stackB, fileName, channels); else new ImagePlus(fileName, stackB).show();
if (!mergeChannels && splitWindows) { slice(stackB, fileName, channels, fi); } else ip = new ImagePlus(fileName, stackB);
public synchronized void run(String arg) { success = false; boolean quiet = !"".equals(arg); String id = null; ImageReader reader = new ImageReader(); if ((new File(arg)).exists()) { id = arg; // we still want to prompt for channel merge/split GenericDialog gd = new GenericDialog("LOCI Bio-Formats Import Options"); gd.addCheckbox("Merge channels", true); gd.addCheckbox("Open each channel in a new window", false); gd.addCheckbox("Stitch together files with a similar name", true); gd.showDialog(); mergeChannels = gd.getNextBoolean(); splitWindows = gd.getNextBoolean(); stitchFiles = gd.getNextBoolean(); } else { JFileChooser chooser = reader.getFileChooser(); // add some additional options to the file chooser JPanel panel = new JPanel(new BorderLayout()); merge = new JCheckBox("Merge channels", true); newWindows = new JCheckBox("Open each channel in a new window", false); stitching = new JCheckBox("Stitch together files with a similar name", true); merge.addItemListener(this); newWindows.addItemListener(this); stitching.addItemListener(this); panel.add(merge, BorderLayout.NORTH); panel.add(newWindows, BorderLayout.EAST); panel.add(stitching, BorderLayout.SOUTH); chooser.setAccessory(panel); int rval = chooser.showOpenDialog(null); if (rval == JFileChooser.APPROVE_OPTION) { final File file = chooser.getSelectedFile(); if (file != null) { id = file.getAbsolutePath(); OpenDialog.setDefaultDirectory( chooser.getCurrentDirectory().getPath()); } } } if (id == null) return; String fileName = id.substring(id.lastIndexOf(File.separator) + 1); IJ.showStatus("Opening " + fileName); try { FormatReader r = (FormatReader) reader.getReader(id); FileStitcher fs = new FileStitcher(r); ChannelMerger cm = new ChannelMerger(stitchFiles ? fs : r); cm.setSeparated(!mergeChannels); int num = cm.getImageCount(id); ImageStack stackB = null, stackS = null, stackF = null, stackO = null; long start = System.currentTimeMillis(); long time = start; int channels = cm.getSizeC(id); for (int i=0; i<num; i++) { // limit message update rate long clock = System.currentTimeMillis(); if (clock - time >= 50) { IJ.showStatus("Reading plane " + (i + 1) + "/" + num); time = clock; } IJ.showProgress((double) i / num); BufferedImage img = cm.openImage(id, i); img = ImageTools.padImage(img, cm.getSizeX(id), cm.getSizeY(id)); ImageProcessor ip = null; WritableRaster raster = img.getRaster(); int c = raster.getNumBands(); int tt = raster.getTransferType(); int w = img.getWidth(), h = img.getHeight(); if (c == 1) { if (tt == DataBuffer.TYPE_BYTE) { byte[] b = ImageTools.getBytes(img)[0]; if (b.length > w*h) { byte[] tmp = b; b = new byte[w*h]; System.arraycopy(tmp, 0, b, 0, b.length); } ip = new ByteProcessor(w, h, b, null); if (stackB == null) stackB = new ImageStack(w, h); stackB.addSlice(fileName + ":" + (i + 1), ip); } else if (tt == DataBuffer.TYPE_USHORT) { short[] s = ImageTools.getShorts(img)[0]; if (s.length > w*h) { short[] tmp = s; s = new short[w*h]; System.arraycopy(tmp, 0, s, 0, s.length); } ip = new ShortProcessor(w, h, s, null); if (stackS == null) stackS = new ImageStack(w, h); stackS.addSlice(fileName + ":" + (i + 1), ip); } else if (tt == DataBuffer.TYPE_FLOAT) { float[] f = ImageTools.getFloats(img)[0]; if (f.length > w*h) { float[] tmp = f; f = new float[w*h]; System.arraycopy(tmp, 0, f, 0, f.length); } ip = new FloatProcessor(w, h, f, null); if (stackF == null) stackF = new ImageStack(w, h); stackF.addSlice(fileName + ":" + (i + 1), ip); } } if (ip == null) { ip = new ImagePlus(null, img).getProcessor(); // slow if (stackO == null) stackO = new ImageStack(w, h); stackO.addSlice(fileName + ":" + (i + 1), ip); } } IJ.showStatus("Creating image"); IJ.showProgress(1); if (stackB != null) { if (!mergeChannels && splitWindows) slice(stackB, fileName, channels); else new ImagePlus(fileName, stackB).show(); } if (stackS != null) { if (!mergeChannels && splitWindows) slice(stackS, fileName, channels); else new ImagePlus(fileName, stackS).show(); } if (stackF != null) { if (!mergeChannels && splitWindows) slice(stackF, fileName, channels); else new ImagePlus(fileName, stackF).show(); } if (stackO != null) { if (!mergeChannels && splitWindows) slice(stackO, fileName, channels); else new ImagePlus(fileName, stackO).show(); } long end = System.currentTimeMillis(); double elapsed = (end - start) / 1000.0; if (num == 1) IJ.showStatus(elapsed + " seconds"); else { long average = (end - start) / num; IJ.showStatus("LOCI Bio-Formats : " + elapsed + " seconds (" + average + " ms per plane)"); } success = true; mergeChannels = true; splitWindows = false; } catch (Exception exc) { exc.printStackTrace(); IJ.showStatus(""); if (!quiet) { String msg = exc.getMessage(); IJ.showMessage("LOCI Bio-Formats", "Sorry, there was a problem " + "reading the data" + (msg == null ? "." : (": " + msg))); } } }
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/a9f08f4144d9b190b40353d537c4cdbd539859c8/LociImporter.java/clean/loci/plugins/LociImporter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3852, 918, 1086, 12, 780, 1501, 13, 288, 565, 2216, 273, 629, 31, 565, 1250, 10902, 273, 401, 3660, 18, 14963, 12, 3175, 1769, 565, 514, 612, 273, 446, 31, 565, 3421, 2514, 2949, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 1086, 12, 780, 1501, 13, 288, 565, 2216, 273, 629, 31, 565, 1250, 10902, 273, 401, 3660, 18, 14963, 12, 3175, 1769, 565, 514, 612, 273, 446, 31, 565, 3421, 2514, 2949, ...
tsvTask.setSourceName("tsv");
tsvTask.setSourceName("testsource");
public void testFastaLoad() throws Exception { TSVFileReaderTask tsvTask = new TSVFileReaderTask(); tsvTask.setIgnoreDuplicates(true); tsvTask.setIntegrationWriterAlias("integration.unittestsingle"); tsvTask.setSourceName("tsv"); File file = new File("resources/TSVFileReaderTaskTest.tsv"); FileSet fileSet = new FileSet(); fileSet.setFile(file); tsvTask.addFileSet(fileSet); InputStream confInputStream = getClass().getClassLoader().getResourceAsStream("TSVFileReaderTaskTest.properties"); DelimitedFileConfiguration dfc = new DelimitedFileConfiguration(model, confInputStream); tsvTask.executeInternal(dfc, file); //Check the results to see if we have some data... ObjectStore os = tsvTask.getDirectDataLoader().getIntegrationWriter().getObjectStore(); Query q = new Query(); QueryClass empQueryClass = new QueryClass(Employee.class); q.addToSelect(empQueryClass); q.addFrom(empQueryClass); Results r = os.execute(q); assertEquals(3, r.size()); }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/d779e9d8a559f4ec5617c263d017ce1d7af86a60/TSVFileReaderTaskTest.java/buggy/intermine/integrate/test/src/org/intermine/task/TSVFileReaderTaskTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 12305, 69, 2563, 1435, 1216, 1185, 288, 3639, 15508, 58, 812, 2514, 2174, 22731, 2174, 273, 394, 15508, 58, 812, 2514, 2174, 5621, 3639, 22731, 2174, 18, 542, 3777, 23897, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12305, 69, 2563, 1435, 1216, 1185, 288, 3639, 15508, 58, 812, 2514, 2174, 22731, 2174, 273, 394, 15508, 58, 812, 2514, 2174, 5621, 3639, 22731, 2174, 18, 542, 3777, 23897, ...
} finally {
} finally {
public void run() { try { // // test if active since the editpartg may have been deleted // by the time this method is executed. if ( ShapeCompartmentEditPart.this.isActive() ) { getConnectorRefreshMgr().refreshConnectors(ShapeCompartmentEditPart.this); } } finally { ShapeCompartmentEditPart.this._refreshQueued = false; } }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/8cde65fc058a9faaf847d04bf9b28594ea600f8f/ShapeCompartmentEditPart.java/clean/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui/src/org/eclipse/gmf/runtime/diagram/ui/editparts/ShapeCompartmentEditPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 1086, 1435, 288, 6862, 202, 698, 288, 25083, 202, 759, 25083, 202, 759, 1842, 309, 2695, 3241, 326, 3874, 2680, 75, 2026, 1240, 2118, 4282, 25083, 202, 759, 635, 326, 813,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 1435, 288, 6862, 202, 698, 288, 25083, 202, 759, 25083, 202, 759, 1842, 309, 2695, 3241, 326, 3874, 2680, 75, 2026, 1240, 2118, 4282, 25083, 202, 759, 635, 326, 813,...
public void processEvent(String comp_name, AWTEvent evt) { AWTEvent copy_evt=null; Component src=findComponent(mainFrame, comp_name); if(src == null) { log.error("processEvent(): src is null"); return; } System.out.println("Received " + evt.getClass().getName()); copy_evt=copyEvent(src, evt); if(copy_evt == null) { log.error("copy_evt is NULL"); return; } dispatch(src, copy_evt);// if(evt instanceof ComponentEvent && evt.getID() == ComponentEvent.COMPONENT_RESIZED) {// Dimension dim=mainFrame.getSize();// try {// dispatcher.sendGetN(groupname, "setSize", new Integer(dim.height),// new Integer(dim.width), 0, 0);// }// catch(Exception e) {// log.error(e);// }// } }
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/5ad015d9a78e1da3350d9b398b46b2f5d4508564/DrawRepl.java/buggy/src/org/jgroups/demos/DrawRepl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1207, 1133, 12, 780, 1161, 67, 529, 16, 432, 8588, 1133, 6324, 13, 288, 202, 37, 8588, 1133, 282, 1610, 67, 73, 11734, 33, 2011, 31, 202, 1841, 225, 1705, 33, 4720, 1841, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 1133, 12, 780, 1161, 67, 529, 16, 432, 8588, 1133, 6324, 13, 288, 202, 37, 8588, 1133, 282, 1610, 67, 73, 11734, 33, 2011, 31, 202, 1841, 225, 1705, 33, 4720, 1841, 1...
if (graphics.getFont().toString().indexOf("dialog") != -1)
if (graphics.getFont().toString().indexOf("dialog") != -1 || graphics.getFont().toString().indexOf("Dialog") != -1)
public void testGetFont() throws Exception { Font f = graphics.getFont(); if (graphics.getFont().toString().indexOf("dialog") != -1) // if dialog is returned we can't run the test properly. return; assertEquals("java.awt.Font[family=Arial,name=Arial,style=plain,size=10]", f.toString()); }
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/82030466d1987a8b59878e0e8fe18d0536bdab41/TestEscherGraphics2d.java/buggy/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics2d.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 5711, 1435, 1216, 1185, 565, 288, 3639, 10063, 284, 273, 17313, 18, 588, 5711, 5621, 3639, 309, 261, 31586, 18, 588, 5711, 7675, 10492, 7675, 31806, 2932, 12730, 7923,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 5711, 1435, 1216, 1185, 565, 288, 3639, 10063, 284, 273, 17313, 18, 588, 5711, 5621, 3639, 309, 261, 31586, 18, 588, 5711, 7675, 10492, 7675, 31806, 2932, 12730, 7923,...
int length = args == null ? 0 : args.length;
int length = nargs == null ? 0 : nargs.length;
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { if (method.getName().equals("toString") && method.getParameterTypes().length == 0) { return proxy.getClass().getName(); } else if (method.getName().equals("hashCode") && method.getParameterTypes().length == 0) { return new Integer(proxy.getClass().hashCode()); } else if (method.getName().equals("equals") && method.getParameterTypes().length == 1 && method.getParameterTypes()[0].equals(Object.class)) { return Boolean.valueOf(proxy == args[0]); } int length = args == null ? 0 : args.length; IRubyObject[] rubyArgs = new IRubyObject[length + 2]; rubyArgs[0] = JavaObject.wrap(recv.getRuntime(), proxy); rubyArgs[1] = new JavaMethod(recv.getRuntime(), method); for (int i = 0; i < length; i++) { rubyArgs[i + 2] = JavaObject.wrap(recv.getRuntime(), args[i]); } return JavaUtil.convertArgument(proc.call(rubyArgs), method.getReturnType()); }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/ca6b16e996ea9af83ce593594b9c69b9364a9924/Java.java/buggy/src/org/jruby/javasupport/Java.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1033, 4356, 12, 921, 2889, 16, 2985, 707, 16, 1033, 8526, 833, 13, 1216, 4206, 288, 7734, 309, 261, 2039, 18, 17994, 7675, 14963, 2932, 10492, 7923, 597, 707, 18, 588, 1662, 2016, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1033, 4356, 12, 921, 2889, 16, 2985, 707, 16, 1033, 8526, 833, 13, 1216, 4206, 288, 7734, 309, 261, 2039, 18, 17994, 7675, 14963, 2932, 10492, 7923, 597, 707, 18, 588, 1662, 2016, ...
writer.write("/>");
writer.write('>');
public void endElement() throws IOException { switch (state) { case IN_START_TAG: writer.write("/>"); pop(); state = OTHER; break; case OTHER: indent(); // fall through case AFTER_DATA: writer.write("</"); writer.write(pop()); writer.write("/>"); break; } writer.write(newline); }
50651 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50651/3c9836492b8b3a8420614d07bb7de2c2d68e3870/XmlWriter.java/buggy/dtdinst/src/com/thaiopensource/xml/dtd/XmlWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 14840, 1435, 1216, 1860, 288, 565, 1620, 261, 2019, 13, 288, 565, 648, 2120, 67, 7570, 67, 7927, 30, 1377, 2633, 18, 2626, 2668, 1870, 1769, 1377, 1843, 5621, 1377, 919, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 14840, 1435, 1216, 1860, 288, 565, 1620, 261, 2019, 13, 288, 565, 648, 2120, 67, 7570, 67, 7927, 30, 1377, 2633, 18, 2626, 2668, 1870, 1769, 1377, 1843, 5621, 1377, 919, 273, ...
def = testF2(file, offset);
def = testCtrl_F3(file, offset);
public void testNoDefinitions() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("extern int a1; // declares a\n"); //$NON-NLS-1$ buffer.append("extern const int c1; // declares c\n"); //$NON-NLS-1$ buffer.append("int f1(int); // declares f\n"); //$NON-NLS-1$ buffer.append("struct S1; // declares S\n"); //$NON-NLS-1$ buffer.append("typedef int Int; // declares Int\n"); //$NON-NLS-1$ String code = buffer.toString(); IFile file = importFile("testNoDefinitions.c", code); //$NON-NLS-1$ int offset = code.indexOf("a1; // declares a"); //$NON-NLS-1$ IASTNode def = testF2(file, offset); IASTNode decl = testF3(file, offset); assertNull(def); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "a1"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 11); assertEquals(((ASTNode)decl).getLength(), 2); offset = code.indexOf("c1; // declares c"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertNull(def); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "c1"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 46); assertEquals(((ASTNode)decl).getLength(), 2); offset = code.indexOf("f1(int); // declares f"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertNull(def); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "f1"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 68); assertEquals(((ASTNode)decl).getLength(), 2); offset = code.indexOf("S1; // declares S"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertNull(def); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "S1"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 98); assertEquals(((ASTNode)decl).getLength(), 2); offset = code.indexOf("Int; // declares Int"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "Int"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 128); assertEquals(((ASTNode)decl).getLength(), 3); assertEquals(((IASTName)def).toString(), "Int"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 128); assertEquals(((ASTNode)def).getLength(), 3); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/a80f774ac034fed44b578ede9c708e773e1fabcf/CSelectionTestsDOMIndexer.java/clean/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CSelectionTestsDOMIndexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2279, 7130, 1435, 1216, 1185, 288, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 202, 202, 4106, 18, 6923, 2932, 338, 798, 509, 279, 21, 31, 368, 3496, 4807, 279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2279, 7130, 1435, 1216, 1185, 288, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 202, 202, 4106, 18, 6923, 2932, 338, 798, 509, 279, 21, 31, 368, 3496, 4807, 279...
if ( element instanceof ICSharedLibrary ) { label.append( getSharedLibraryText( (ICSharedLibrary)element, showQualified ) ); return label.toString();
try { if ( element instanceof ICSharedLibrary ) { label.append( getSharedLibraryText( (ICSharedLibrary)element, showQualified ) ); return label.toString(); } if ( element instanceof ICModule ) { label.append( getModuleText( (ICModule)element, showQualified ) ); return label.toString(); } if ( element instanceof ICSignal ) { label.append( getSignalText( (ICSignal)element ) ); return label.toString(); } if ( element instanceof IRegisterGroup ) { label.append( ((IRegisterGroup)element).getName() ); return label.toString(); } if ( element instanceof IWatchExpression ) { return getWatchExpressionText( (IWatchExpression)element ); } if ( element instanceof IVariable ) { label.append( getVariableText( (IVariable)element ) ); return label.toString(); } if ( element instanceof IValue ) { label.append( getValueText( (IValue)element ) ); return label.toString(); } if ( element instanceof IStackFrame ) { label.append( getStackFrameText( (IStackFrame)element, showQualified ) ); return label.toString(); } if ( element instanceof IMarker ) { IBreakpoint breakpoint = getBreakpoint( (IMarker)element ); if ( breakpoint != null ) { return getBreakpointText( breakpoint, showQualified ); } return null; } if ( element instanceof IBreakpoint ) { return getBreakpointText( (IBreakpoint)element, showQualified ); } if ( element instanceof IDebugTarget ) label.append( getTargetText( (IDebugTarget)element, showQualified ) ); else if ( element instanceof IThread ) label.append( getThreadText( (IThread)element, showQualified ) ); if ( element instanceof ITerminate ) { if ( ((ITerminate)element).isTerminated() ) { label.insert( 0, CDebugUIMessages.getString( "CDTDebugModelPresentation.0" ) ); return label.toString(); } } if ( element instanceof IDisconnect ) { if ( ((IDisconnect)element).isDisconnected() ) { label.insert( 0, CDebugUIMessages.getString( "CDTDebugModelPresentation.1" ) ); return label.toString(); } } if ( label.length() > 0 ) { return label.toString(); }
private String getBaseText( Object element ) { boolean showQualified = isShowQualifiedNames(); StringBuffer label = new StringBuffer(); if ( element instanceof ICSharedLibrary ) { label.append( getSharedLibraryText( (ICSharedLibrary)element, showQualified ) ); return label.toString(); } if ( element instanceof IRegisterGroup ) { label.append( getRegisterGroupText( (IRegisterGroup)element ) ); return label.toString(); } if ( label.length() > 0 ) { return label.toString(); } return getDefaultText( element ); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/4fe2f1e7d8918c1523fe6d9bda577c522ea51134/CDebugModelPresentation.java/clean/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugModelPresentation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 8297, 1528, 12, 1033, 930, 262, 288, 202, 202, 6494, 2405, 8708, 273, 353, 5706, 8708, 1557, 5621, 202, 202, 780, 1892, 1433, 273, 394, 6674, 5621, 202, 202, 430, 261, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 8297, 1528, 12, 1033, 930, 262, 288, 202, 202, 6494, 2405, 8708, 273, 353, 5706, 8708, 1557, 5621, 202, 202, 780, 1892, 1433, 273, 394, 6674, 5621, 202, 202, 430, 261, 9...
ElementContainer ec = new ElementContainer();
protected Element getCustomCredits(String text, IMG logo) { ElementContainer ec = new ElementContainer(); Table t = new Table().setCellSpacing( 0 ).setCellPadding( 0 ).setBorder( 0 ).setWidth("90%").setAlign("RIGHT"); TR tr = new TR(); tr.addElement( new TD(text).setVAlign("MIDDLE").setAlign("RIGHT").setWidth("100%")); tr.addElement( new TD(logo).setVAlign("MIDDLE").setAlign("RIGHT")); t.addElement(tr); return t; }
47703 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47703/e5b3b00b0f724a9834bcadb34453e906f7c0d25b/LessonAdapter.java/buggy/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/LessonAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 3010, 12736, 24201, 1282, 12, 780, 977, 16, 26582, 19128, 13, 225, 202, 95, 202, 202, 1046, 2170, 6557, 273, 394, 225, 3010, 2170, 5621, 1082, 202, 1388, 268, 273, 394, 3555, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3010, 12736, 24201, 1282, 12, 780, 977, 16, 26582, 19128, 13, 225, 202, 95, 202, 202, 1046, 2170, 6557, 273, 394, 225, 3010, 2170, 5621, 1082, 202, 1388, 268, 273, 394, 3555, ...
if( initialCheckedState_ ) {
if( defaultCheckedState_ ) {
public void reset() { if( initialCheckedState_ ) { setAttributeValue("checked", "checked"); } else { removeAttribute("checked"); } }
47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/5c32aadc1f81f752c09ec8b58b935ff4ed4be01e/HtmlRadioButtonInput.java/clean/htmlunit/src/java/com/gargoylesoftware/htmlunit/html/HtmlRadioButtonInput.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2715, 1435, 288, 3639, 309, 12, 805, 11454, 1119, 67, 262, 288, 5411, 4730, 620, 2932, 4532, 3113, 315, 4532, 8863, 3639, 289, 3639, 469, 288, 5411, 18831, 2932, 4532, 8863, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1435, 288, 3639, 309, 12, 805, 11454, 1119, 67, 262, 288, 5411, 4730, 620, 2932, 4532, 3113, 315, 4532, 8863, 3639, 289, 3639, 469, 288, 5411, 18831, 2932, 4532, 8863, 36...
attrib.cpu = "x86_64";
attrib.cpu = "x86_64"; break; case Elf.ELFhdr.EM_XILINX_MICROBLAZE: attrib.cpu = "microblaze";
public Attribute getAttributes() throws IOException { Attribute attrib = new Attribute(); switch (ehdr.e_type) { case Elf.ELFhdr.ET_CORE : attrib.type = Attribute.ELF_TYPE_CORE; break; case Elf.ELFhdr.ET_EXEC : attrib.type = Attribute.ELF_TYPE_EXE; break; case Elf.ELFhdr.ET_REL : attrib.type = Attribute.ELF_TYPE_OBJ; break; case Elf.ELFhdr.ET_DYN : attrib.type = Attribute.ELF_TYPE_SHLIB; break; } switch (ehdr.e_machine) { case Elf.ELFhdr.EM_386 : case Elf.ELFhdr.EM_486 : attrib.cpu = "x86"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_68K : attrib.cpu = "m68k"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_PPC : case Elf.ELFhdr.EM_CYGNUS_POWERPC : case Elf.ELFhdr.EM_RS6000 : attrib.cpu = "ppc"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_PPC64 : attrib.cpu = "ppc64"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_SH : attrib.cpu = "sh"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_ARM : attrib.cpu = "arm"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_MIPS_RS3_LE : case Elf.ELFhdr.EM_MIPS : attrib.cpu = "mips"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_SPARC32PLUS : case Elf.ELFhdr.EM_SPARC : case Elf.ELFhdr.EM_SPARCV9 : attrib.cpu = "sparc"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_H8_300 : case Elf.ELFhdr.EM_H8_300H : attrib.cpu = "h8300"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_V850 : case Elf.ELFhdr.EM_CYGNUS_V850 : attrib.cpu = "v850"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_MN10300 : case Elf.ELFhdr.EM_CYGNUS_MN10300 : attrib.cpu = "mn10300"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_MN10200 : case Elf.ELFhdr.EM_CYGNUS_MN10200 : attrib.cpu = "mn10200"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_M32R : attrib.cpu = "m32r"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_FR30 : case Elf.ELFhdr.EM_CYGNUS_FR30 : attrib.cpu = "fr30"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_XSTORMY16 : attrib.cpu = "xstormy16"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_CYGNUS_FRV : attrib.cpu = "frv"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_IQ2000 : attrib.cpu = "iq2000"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_EXCESS : attrib.cpu = "excess"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_NIOSII : attrib.cpu = "alteranios2"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_NIOS : attrib.cpu = "alteranios"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_IA_64 : attrib.cpu = "ia64"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_AVR : attrib.cpu = "avr"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_MSP430 : attrib.cpu = "msp430"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_ST100: attrib.cpu = "st100"; //$NON-NLS-1$ break; case Elf.ELFhdr.EM_X86_64: attrib.cpu = "x86_64"; break; case Elf.ELFhdr.EM_NONE : default : attrib.cpu = "none"; //$NON-NLS-1$ } switch (ehdr.e_ident[Elf.ELFhdr.EI_DATA]) { case Elf.ELFhdr.ELFDATA2LSB : attrib.isle = true; break; case Elf.ELFhdr.ELFDATA2MSB : attrib.isle = false; break; } switch (ehdr.e_ident[ELFhdr.EI_CLASS]) { case ELFhdr.ELFCLASS32 : attrib.addressFactory = new Addr32Factory(); break; case ELFhdr.ELFCLASS64 : attrib.addressFactory = new Addr64Factory(); break; case ELFhdr.ELFCLASSNONE : default : attrib.addressFactory = null; } // getSections // find .debug using toString Section[] sec = getSections(); if (sec != null) { for (int i = 0; i < sec.length; i++) { String s = sec[i].toString(); if (s.equals(".debug_info")) { //$NON-NLS-1$ attrib.debugType = Attribute.DEBUG_TYPE_DWARF; break; } else if (s.equals(".stab")) { //$NON-NLS-1$ attrib.debugType = Attribute.DEBUG_TYPE_STABS; break; } } } return attrib; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/082189fd80d9383953a7c8c713679ef71cf9a159/Elf.java/buggy/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/Elf.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3601, 10183, 1435, 1216, 1860, 288, 202, 202, 1499, 5885, 273, 394, 3601, 5621, 202, 202, 9610, 261, 73, 16587, 18, 73, 67, 723, 13, 288, 1082, 202, 3593, 10426, 74, 18, 2247,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3601, 10183, 1435, 1216, 1860, 288, 202, 202, 1499, 5885, 273, 394, 3601, 5621, 202, 202, 9610, 261, 73, 16587, 18, 73, 67, 723, 13, 288, 1082, 202, 3593, 10426, 74, 18, 2247,...
break;
if (allowCycle) { allowCycle = false; i = 0; } else { break; }
private boolean shiftFocus(boolean forwardFocus, int steps ) { int i = this.focusedIndex + steps; if (i > this.items.length) { i = this.items.length - 2; } if (i < 0) { i = 1; } Item item = null; while (true) { if (forwardFocus) { i++; if (i >= this.items.length) { break; } } else { i--; if (i < 0) { 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/8eb74be06bdd32498c3b8d7c38a4b0b48028440d/Container.java/buggy/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, 474, 277, 273, 333, 18, 74, 14569, 1016, 397, 6075, 31, 202, 202, 430, 261, 77, 405, 333, 18, 331...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 4654, 9233, 12, 6494, 5104, 9233, 16, 509, 6075, 262, 288, 202, 202, 474, 277, 273, 333, 18, 74, 14569, 1016, 397, 6075, 31, 202, 202, 430, 261, 77, 405, 333, 18, 331...
public void eventDequeued( Stage a_stage, EventObject an_event )
public void eventDequeued( Stage stage, EventObject event )
public void eventDequeued( Stage a_stage, EventObject an_event ) { }
17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/3c44e553bec32a1c486c37615cd1a2bca43cf59f/StageMonitorAdapter.java/clean/eve/frontend/common/api/src/java/org/apache/eve/seda/StageMonitorAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 871, 758, 19499, 12, 16531, 6009, 16, 2587, 921, 871, 262, 565, 288, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 871, 758, 19499, 12, 16531, 6009, 16, 2587, 921, 871, 262, 565, 288, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
public void constraint(List constraints) throws RecognitionException { Token fb=null; Token f=null; Token op=null; Token bvc=null; String lc = null; String rvc = null; PatternDescr d = null; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:486:17: ( opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? opt_eol ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:486:17: opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? opt_eol { following.push(FOLLOW_opt_eol_in_constraint1558); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:487:17: (fb= ID opt_eol ':' opt_eol )? int alt48=2; alt48 = dfa48.predict(input); switch (alt48) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:487:19: fb= ID opt_eol ':' opt_eol { fb=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1566); following.push(FOLLOW_opt_eol_in_constraint1568); opt_eol(); following.pop(); match(input,30,FOLLOW_30_in_constraint1570); following.push(FOLLOW_opt_eol_in_constraint1572); opt_eol(); following.pop(); } break; } f=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1582); if ( fb != null ) { //System.err.println( "fb: " + fb.getText() ); //System.err.println( " f: " + f.getText() ); d = new FieldBindingDescr( f.getText(), fb.getText() ); //System.err.println( "fbd: " + d ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); constraints.add( d ); } following.push(FOLLOW_opt_eol_in_constraint1592); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:500:33: (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? int alt50=2; int LA50_0 = input.LA(1); if ( (LA50_0>=40 && LA50_0<=47) ) { alt50=1; } else if ( LA50_0==EOL||(LA50_0>=22 && LA50_0<=23) ) { alt50=2; } else { NoViableAltException nvae = new NoViableAltException("500:33: (op= (\'==\'|\'>\'|\'>=\'|\'<\'|\'<=\'|\'!=\'|\'contains\'|\'matches\') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )?", 50, 0, input); throw nvae; } switch (alt50) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:500:41: op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) { op=(Token)input.LT(1); if ( (input.LA(1)>=40 && input.LA(1)<=47) ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint1600); throw mse; } following.push(FOLLOW_opt_eol_in_constraint1672); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:510:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) int alt49=4; switch ( input.LA(1) ) { case ID: int LA49_1 = input.LA(2); if ( LA49_1==48 ) { alt49=2; } else if ( LA49_1==EOL||(LA49_1>=22 && LA49_1<=23) ) { alt49=1; } else { NoViableAltException nvae = new NoViableAltException("510:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 49, 1, input); throw nvae; } break; case INT: case BOOL: case STRING: case FLOAT: alt49=3; break; case 21: alt49=4; break; default: NoViableAltException nvae = new NoViableAltException("510:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 49, 0, input); throw nvae; } switch (alt49) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:510:49: bvc= ID { bvc=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1690); d = new BoundVariableDescr( f.getText(), op.getText(), bvc.getText() ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); constraints.add( d ); } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:517:49: lc= enum_constraint { following.push(FOLLOW_enum_constraint_in_constraint1715); lc=enum_constraint(); following.pop(); d = new LiteralDescr( f.getText(), op.getText(), lc, true ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); constraints.add( d ); } break; case 3 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:524:49: lc= literal_constraint { following.push(FOLLOW_literal_constraint_in_constraint1747); lc=literal_constraint(); following.pop(); d = new LiteralDescr( f.getText(), op.getText(), lc ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); constraints.add( d ); } break; case 4 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:530:49: rvc= retval_constraint { following.push(FOLLOW_retval_constraint_in_constraint1767); rvc=retval_constraint(); following.pop(); d = new ReturnValueDescr( f.getText(), op.getText(), rvc ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); constraints.add( d ); } break; } } break; } following.push(FOLLOW_opt_eol_in_constraint1800); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/9c6423b7a31fdc4a1317e71a6d2850c94e2140e0/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4954, 12, 682, 6237, 13, 1216, 9539, 288, 6647, 3155, 12754, 33, 2011, 31, 3639, 3155, 284, 33, 2011, 31, 3639, 3155, 1061, 33, 2011, 31, 3639, 3155, 324, 4227, 33, 2011, 31,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4954, 12, 682, 6237, 13, 1216, 9539, 288, 6647, 3155, 12754, 33, 2011, 31, 3639, 3155, 284, 33, 2011, 31, 3639, 3155, 1061, 33, 2011, 31, 3639, 3155, 324, 4227, 33, 2011, 31,...
SortedVectorByNumber s = removeFirstAccordingToPriorities(choosenPriorityClass);
choosenPriorityClass = removeFirstAccordingToPriorities(choosenPriorityClass); if(choosenPriorityClass == -1) return null; SortedVectorByNumber s = priorities[choosenPriorityClass];
public SendableRequest removeFirst() { // Priorities start at 0 if(logMINOR) Logger.minor(this, "removeFirst()"); int choosenPriorityClass = Integer.MAX_VALUE; SortedVectorByNumber s = removeFirstAccordingToPriorities(choosenPriorityClass); if(s != null){ while(true) { SectoredRandomGrabArrayWithInt rga = (SectoredRandomGrabArrayWithInt) s.getFirst(); if(rga == null) { if(logMINOR) Logger.minor(this, "No retrycount's left"); break; } SendableRequest req = (SendableRequest) rga.removeRandom(); if(rga.isEmpty()) { if(logMINOR) Logger.minor(this, "Removing retrycount "+rga.getNumber()); s.remove(rga.getNumber()); if(s.isEmpty()) { if(logMINOR) Logger.minor(this, "Should remove priority "); } } if(req == null) { if(logMINOR) Logger.minor(this, "No requests, adjusted retrycount "+rga.getNumber()+" ("+rga+")"); break; } else if(req.getPriorityClass() != choosenPriorityClass) { // Reinsert it : shouldn't happen if we are calling reregisterAll, // maybe we should ask people to report that error if seen if(logMINOR) Logger.minor(this, "In wrong priority class: "+req); innerRegister(req); continue; } if(logMINOR) Logger.minor(this, "removeFirst() returning "+req+" ("+rga.getNumber()+", prio "+ req.getPriorityClass()+", retries "+req.getRetryCount()+", client "+req.getClient()+", client-req "+req.getClientRequest()+")"); ClientRequester cr = req.getClientRequest(); HashSet v = (HashSet) allRequestsByClientRequest.get(cr); v.remove(req); if(v.isEmpty()) allRequestsByClientRequest.remove(cr); return req; } } if(logMINOR) Logger.minor(this, "No requests to run"); return null; }
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/e2596af33a77ad5174e61e768ac168ffc2cf3e84/ClientRequestScheduler.java/clean/src/freenet/client/async/ClientRequestScheduler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2479, 429, 691, 1206, 3759, 1435, 288, 202, 202, 759, 30326, 1961, 787, 622, 374, 202, 202, 430, 12, 1330, 6236, 916, 13, 4242, 18, 17364, 12, 2211, 16, 315, 4479, 3759, 1435,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2479, 429, 691, 1206, 3759, 1435, 288, 202, 202, 759, 30326, 1961, 787, 622, 374, 202, 202, 430, 12, 1330, 6236, 916, 13, 4242, 18, 17364, 12, 2211, 16, 315, 4479, 3759, 1435,...
mtuJSpinner = new javax.swing.JSpinner();
mtuJTextField = new javax.swing.JTextField();
private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; natButtonGroup = new javax.swing.ButtonGroup(); forwardingButtonGroup = new javax.swing.ButtonGroup(); natJPanel = new javax.swing.JPanel(); jTextArea2 = new javax.swing.JTextArea(); mtuJPanel = new javax.swing.JPanel(); jLabel5 = new javax.swing.JLabel(); jPanel4 = new javax.swing.JPanel(); jLabel6 = new javax.swing.JLabel(); mtuJSpinner = new javax.swing.JSpinner(); setLayout(new java.awt.GridBagLayout()); setMinimumSize(new java.awt.Dimension(515, 231)); setPreferredSize(new java.awt.Dimension(515, 231)); natJPanel.setLayout(new java.awt.GridBagLayout()); natJPanel.setBorder(new javax.swing.border.TitledBorder(null, "Public Space", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 1, 16))); jTextArea2.setEditable(false); jTextArea2.setLineWrap(true); jTextArea2.setText("The Public Space is the Space that is bound to EdgeGuard's External network interface. Most of its settings are configured through a config panel in Config -> Networking. However, for advanced purposes, you may specify the MTU here."); jTextArea2.setWrapStyleWord(true); jTextArea2.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 15, 0, 15); natJPanel.add(jTextArea2, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 10); add(natJPanel, gridBagConstraints); mtuJPanel.setLayout(new java.awt.GridBagLayout()); mtuJPanel.setBorder(new javax.swing.border.TitledBorder(null, "MTU (Maximum Transfer Unit)", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 1, 16))); jLabel5.setFont(new java.awt.Font("Dialog", 0, 12)); jLabel5.setText("<html>The MTU specifies the maximum amount of data per packet that should be transferred out of this Space. This value should not be changed unless explicitly necessary.</html>"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(10, 15, 0, 15); mtuJPanel.add(jLabel5, gridBagConstraints); jPanel4.setLayout(new java.awt.GridBagLayout()); jLabel6.setFont(new java.awt.Font("Dialog", 0, 12)); jLabel6.setText("MTU (bytes) "); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; jPanel4.add(jLabel6, gridBagConstraints); mtuJSpinner.setFont(new java.awt.Font("Dialog", 0, 12)); mtuJSpinner.setMaximumSize(new java.awt.Dimension(100, 20)); mtuJSpinner.setMinimumSize(new java.awt.Dimension(100, 20)); mtuJSpinner.setPreferredSize(new java.awt.Dimension(100, 20)); mtuJSpinner.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { mtuJSpinnerStateChanged(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; jPanel4.add(mtuJSpinner, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(15, 0, 5, 0); mtuJPanel.add(jPanel4, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(10, 10, 10, 10); add(mtuJPanel, gridBagConstraints); }//GEN-END:initComponents
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/57900e78a8177576829521920f2b729a06705819/PrimarySpaceJPanel.java/buggy/tran/nat/main/com/metavize/tran/nat/gui/PrimarySpaceJPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 918, 1208, 7171, 1435, 288, 759, 16652, 17, 16061, 30, 2738, 7171, 7734, 2252, 18, 2219, 88, 18, 6313, 6852, 8747, 31, 7734, 10535, 3616, 1114, 273, 394, 6863, 18, 5328, 310, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 918, 1208, 7171, 1435, 288, 759, 16652, 17, 16061, 30, 2738, 7171, 7734, 2252, 18, 2219, 88, 18, 6313, 6852, 8747, 31, 7734, 10535, 3616, 1114, 273, 394, 6863, 18, 5328, 310, 18, ...
try { String newPlats[] = sinfo.getValidPlatformTypes(); platSet = getPlatformTypeSet(newPlats); } catch(FinderException exc){ throw new CreateException("Could not setup " + "server '" + sinfo.getName() + "' because: " + exc.getMessage()); } stype.setPlatformTypes(platSet);
String newPlats[] = sinfo.getValidPlatformTypes(); findAndSetPlatformType(newPlats, stype);
public void updateServerTypes(String plugin, ServerTypeInfo[] infos) throws CreateException, FinderException, RemoveException { // First, put all of the infos into a Hash HashMap infoMap = new HashMap(); for (int i = 0; i < infos.length; i++) { String name = infos[i].getName(); ServerTypeInfo sinfo = (ServerTypeInfo)infoMap.get(name); if (sinfo == null) { //first time we've seen this type //clone it incase we have to update the platforms infoMap.put(name, infos[i].clone()); } else { //already seen this type; just update the platforms. //this allows server types of the same name to support //different families of platforms in the plugins. String[] platforms = (String[])ArrayUtil.merge(sinfo.getValidPlatformTypes(), infos[i].getValidPlatformTypes(), new String[0]); sinfo.setValidPlatformTypes(platforms); } } ServerTypeDAO stLHome = getServerTypeDAO(); Collection curServers = stLHome.findByPlugin(plugin); for (Iterator i = curServers.iterator(); i.hasNext();) { ServerType stlocal = (ServerType) i.next(); String serverName = stlocal.getName(); ServerTypeInfo sinfo = (ServerTypeInfo) infoMap.remove(serverName); // See if this exists if (sinfo == null) { log.debug("Removing ServerType: " + serverName); stLHome.remove(stlocal); } else { String curDesc = stlocal.getDescription(); Collection curPlats = stlocal.getPlatformTypes(); String newDesc = sinfo.getDescription(); String[] newPlats = sinfo.getValidPlatformTypes(); boolean updatePlats; log.debug("Updating ServerType: " + serverName); if (!newDesc.equals(curDesc)) stlocal.setDescription(newDesc); // See if we need to update the supported platforms updatePlats = newPlats.length != curPlats.size(); if(updatePlats == false){ // Ensure that the lists are the same for(Iterator k = curPlats.iterator(); k.hasNext(); ){ PlatformType pLocal = (PlatformType)k.next(); int j; for(j=0; j<newPlats.length; j++){ if(newPlats[j].equals(pLocal.getName())) break; } if(j == newPlats.length){ updatePlats = true; break; } } } if(updatePlats == true){ Set platSet; try { platSet = getPlatformTypeSet(newPlats); } catch(FinderException exc){ throw new CreateException("Could not setup " + "server '" + serverName + "' because: " + exc.getMessage()); } stlocal.setPlatformTypes(platSet); } } } // Now create the left-overs for (Iterator i = infoMap.values().iterator(); i.hasNext(); ) { ServerTypeInfo sinfo = (ServerTypeInfo) i.next(); ServerType stype = new ServerType(); Set platSet; log.debug("Creating new ServerType: " + sinfo.getName()); stype.setPlugin(plugin); stype.setName(sinfo.getName()); stype.setDescription(sinfo.getDescription()); stype.setVirtual(sinfo.isVirtual()); try { String newPlats[] = sinfo.getValidPlatformTypes(); platSet = getPlatformTypeSet(newPlats); } catch(FinderException exc){ throw new CreateException("Could not setup " + "server '" + sinfo.getName() + "' because: " + exc.getMessage()); } stype.setPlatformTypes(platSet); // Now create the server type stLHome.create(stype); } }
52591 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52591/b9efc9b35e5c6d897ce38ed4bb4e69771ee4038a/ServerManagerEJBImpl.java/clean/src/org/hyperic/hq/appdef/server/session/ServerManagerEJBImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 2081, 2016, 12, 780, 1909, 16, 3224, 17305, 8526, 10626, 13, 3639, 1216, 1788, 503, 16, 19307, 503, 16, 3581, 503, 288, 3639, 368, 5783, 16, 1378, 777, 434, 326, 10626, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 2081, 2016, 12, 780, 1909, 16, 3224, 17305, 8526, 10626, 13, 3639, 1216, 1788, 503, 16, 19307, 503, 16, 3581, 503, 288, 3639, 368, 5783, 16, 1378, 777, 434, 326, 10626, ...
private static String getName( int userPermissionSetId ) { String result = null; switch( userPermissionSetId ) { case IMCConstants.DOC_PERM_SET_FULL: result = NAME_FULL; break; case IMCConstants.DOC_PERM_SET_RESTRICTED_1: result = NAME_RESTRICTED_1; break; case IMCConstants.DOC_PERM_SET_RESTRICTED_2: result = NAME_RESTRICTED_2; break; case IMCConstants.DOC_PERM_SET_READ: result = NAME_READ; break; default: result = NAME_NONE; break; } return result;
public String getName() { return internalDocPermSet.getName();
private static String getName( int userPermissionSetId ) { String result = null; switch( userPermissionSetId ) { case IMCConstants.DOC_PERM_SET_FULL: result = NAME_FULL; break; case IMCConstants.DOC_PERM_SET_RESTRICTED_1: result = NAME_RESTRICTED_1; break; case IMCConstants.DOC_PERM_SET_RESTRICTED_2: result = NAME_RESTRICTED_2; break; case IMCConstants.DOC_PERM_SET_READ: result = NAME_READ; break; default: result = NAME_NONE; break; } return result; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/ddfceb90cb867c79274d94d47cfdb3c0078fd2ed/DocumentPermissionSet.java/clean/server/src/com/imcode/imcms/DocumentPermissionSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 1723, 12, 509, 729, 5041, 18523, 262, 288, 3639, 514, 563, 273, 446, 31, 3639, 1620, 12, 729, 5041, 18523, 262, 288, 5411, 648, 6246, 39, 2918, 18, 19693, 67, 3194, 49, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 1723, 12, 509, 729, 5041, 18523, 262, 288, 3639, 514, 563, 273, 446, 31, 3639, 1620, 12, 729, 5041, 18523, 262, 288, 5411, 648, 6246, 39, 2918, 18, 19693, 67, 3194, 49, ...
if (!weapon.canFire()) {
if (!weapon.canFire() && !exchangeSwarmTarget) {
private static String toHitIsImpossible(IGame game, Entity ae, Targetable target, Mounted weapon, AmmoType atype, WeaponType wtype, int ttype, boolean exchangeSwarmTarget, boolean usesAmmo, Entity te, boolean isTAG, boolean isInferno, boolean isAttackerInfantry, boolean isIndirect, int attackerId, int weaponId, boolean isArtilleryIndirect, Mounted ammo, boolean isArtilleryFLAK, boolean targetInBuilding, boolean isArtilleryDirect) { boolean isHoming = false; ToHitData toHit = null; if ( ae.hasShield() && ae.hasActiveShield(weapon.getLocation(),weapon.isRearMounted()) ) { return "Weapon blocked by active shield"; } // If it has a torso-mounted cockpit and two head sensor hits or three sensor hits... // It gets a =4 penalty for being blind! if (ae instanceof Mech && ((Mech)ae).getCockpitType() == Mech.COCKPIT_TORSO_MOUNTED) { int sensorHits = ae.getBadCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_SENSORS, Mech.LOC_HEAD); int sensorHits2 = ae.getBadCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_SENSORS, Mech.LOC_CT); if ((sensorHits + sensorHits2) == 3) { return "Sensors Completely Destroyed for Torso-Mounted Cockpit"; } } // missing, breached or jammed weapons can't fire if (!weapon.canFire()) { return "Weapon is not in a state where it can be fired"; } // If we're lying mines, we can't shoot. if (ae.isLayingMines()) { return "Can't fire weapons when laying mines"; } // make sure weapon can deliver minefield if (target.getTargetType() == Targetable.TYPE_MINEFIELD_DELIVER && !AmmoType.canDeliverMinefield(atype)) { return "Weapon can't deliver minefields"; } if (target.getTargetType() == Targetable.TYPE_FLARE_DELIVER && !(usesAmmo && atype.getAmmoType() == AmmoType.T_LRM && atype.getMunitionType() == AmmoType.M_FLARE)) { return "Weapon can't deliver flares"; } if (game.getPhase() == IGame.PHASE_TARGETING && !isArtilleryIndirect) { return "Only indirect artillery can be fired in the targeting phase"; } if (game.getPhase() == IGame.PHASE_OFFBOARD && !isTAG) { return "Only TAG can be fired in the offboard attack phase"; } if (game.getPhase() != IGame.PHASE_OFFBOARD && isTAG) { return "TAG can only be fired in the offboard attack phase"; } if ( atype != null && atype.getAmmoType() == AmmoType.T_LRM && ( atype.getMunitionType() == AmmoType.M_THUNDER || atype.getMunitionType() == AmmoType.M_THUNDER_ACTIVE || atype.getMunitionType() == AmmoType.M_THUNDER_INFERNO || atype.getMunitionType() == AmmoType.M_THUNDER_VIBRABOMB|| atype.getMunitionType() == AmmoType.M_THUNDER_AUGMENTED ) && target.getTargetType() != Targetable.TYPE_MINEFIELD_DELIVER) { return "Weapon can only deliver minefields"; } if ( atype != null && atype.getAmmoType() == AmmoType.T_LRM && atype.getMunitionType() == AmmoType.M_FLARE && target.getTargetType() != Targetable.TYPE_FLARE_DELIVER) { return "Weapon can only deliver flares"; } // some weapons can only target infantry if ( wtype.hasFlag(WeaponType.F_INFANTRY_ONLY) ) { if (te != null && !(te instanceof Infantry) || target.getTargetType() != Targetable.TYPE_ENTITY) { return "Weapon can only be used against infantry"; } } // make sure weapon can clear minefield if (target instanceof MinefieldTarget && !AmmoType.canClearMinefield(atype)) { return "Weapon can't clear minefields"; } // Arty shots have to be with arty, non arty shots with non arty. if (wtype.hasFlag(WeaponType.F_ARTILLERY)) { //check artillery is targetted appropriately for its ammo long munition = AmmoType.M_STANDARD; if (atype != null) { munition = atype.getMunitionType(); } if (munition == AmmoType.M_HOMING) { //target type checked later because its different for direct/indirect (BMRr p77 on board arrow IV) isHoming = true; } else if (ttype != Targetable.TYPE_HEX_ARTILLERY && !isArtilleryFLAK) { return "Weapon must make artillery attacks."; } } else { //weapon is not artillery if (ttype == Targetable.TYPE_HEX_ARTILLERY) { return "Weapon can't make artillery attacks."; } } // can't target yourself, unless those are swarm missiles that // continued to a new target if (ae.equals(te) && !exchangeSwarmTarget) { return "You can't target yourself"; } // weapon operational? if (weapon.isDestroyed() || weapon.isBreached()) { return "Weapon not operational."; } // got ammo? // don't check if it's a swarm-missile-follow-on-attack, we used the ammo previously if ( usesAmmo && !exchangeSwarmTarget && (ammo == null || ammo.getShotsLeft() == 0 || ammo.isBreached()) ) { return "Weapon out of ammo."; } // Are we dumping that ammo? if ( usesAmmo && ammo.isDumping() ) { ae.loadWeaponWithSameAmmo( weapon ); if ( ammo.getShotsLeft() == 0 || ammo.isDumping() ) { return "Dumping remaining ammo."; } } // is the attacker even active? if (ae.isShutDown() || !ae.getCrew().isActive()) { return "Attacker is in no condition to fire weapons."; } // sensors operational? int sensorHits = ae.getBadCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_SENSORS, Mech.LOC_HEAD); if (ae instanceof Mech && ((Mech)ae).getCockpitType() == Mech.COCKPIT_TORSO_MOUNTED) { sensorHits += ae.getBadCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_SENSORS, Mech.LOC_CT); if (sensorHits > 2) return "Attacker sensors destroyed."; } else if (sensorHits > 1) { return "Attacker sensors destroyed."; } // Is the weapon blocked by a passenger? if ( ae.isWeaponBlockedAt(weapon.getLocation(), weapon.isRearMounted()) ) { return "Weapon blocked by passenger."; } // Can't target an entity conducting a swarm attack. if ( te != null && Entity.NONE != te.getSwarmTargetId() ) { return "Target is swarming a Mek."; } //"Cool" mode for vehicle flamer requires coolant system boolean vf_cool = false; if(atype != null && wtype.hasFlag(WeaponType.F_FLAMER) && weapon.curMode().equals("Cool")) { vf_cool = true; if(!ae.hasWorkingMisc(MiscType.F_COOLANT_SYSTEM,-1)) { return "Vehicle does not have a working coolant system"; } } if(Targetable.TYPE_HEX_EXTINGUISH == target.getTargetType()) { if(!wtype.hasFlag(WeaponType.F_EXTINGUISHER) && !vf_cool) { return "Weapon can't put out fires"; } IHex hexTarget = game.getBoard().getHex(target.getPosition()); if(!hexTarget.containsTerrain(Terrains.FIRE)) { return "Target is not on fire."; } } else if(wtype.hasFlag(WeaponType.F_EXTINGUISHER)) { if(!((target instanceof Tank && ((Tank)target).isOnFire()) || (target instanceof Entity && ((Entity)target).infernos.getTurnsLeftToBurn() > 0))) { return "Target is not on fire."; } } // can't target non-wood hexes for clearing (except thin ice) if (Targetable.TYPE_HEX_CLEAR == target.getTargetType()) { IHex hexTarget = game.getBoard().getHex(target.getPosition()); if(!hexTarget.containsTerrain(Terrains.WOODS) && !hexTarget.containsTerrain(Terrains.JUNGLE) && !(hexTarget.containsTerrain(Terrains.ICE) && hexTarget.containsTerrain(Terrains.WATER))) { return "Target terrain cannot be cleared."; } // Infantry can't clear woods. if ( isAttackerInfantry ) { return "Infantry can not clear terrain."; } } // Infantry can't clear woods. if ( isAttackerInfantry && Targetable.TYPE_HEX_CLEAR == target.getTargetType() ) { return "Infantry can not clear woods."; } // Some weapons can't cause fires, but Infernos always can. if ( (vf_cool || wtype.hasFlag(WeaponType.F_NO_FIRES) && !isInferno) && Targetable.TYPE_HEX_IGNITE == target.getTargetType() ) { return "Weapon can not cause fires."; } // only woods and buildings can be set intentionally on fire if (target.getTargetType() == Targetable.TYPE_HEX_IGNITE && game.getOptions().booleanOption("no_ignite_clear") && !(game.getBoard().getHex(((HexTarget) target).getPosition()).containsTerrain(Terrains.WOODS) || game.getBoard().getHex(((HexTarget) target).getPosition()).containsTerrain(Terrains.JUNGLE) || game.getBoard().getHex(((HexTarget) target).getPosition()).containsTerrain(Terrains.BUILDING))) { return "Only woods and building hexes can be set on fire intentionally."; } // Can't target infantry with Inferno rounds (BMRr, pg. 141). // Also, enforce options for keeping vehicles and protos safe // if those options are checked. if ( isInferno && (te instanceof Infantry || te instanceof Tank && game.getOptions().booleanOption("vehicles_safe_from_infernos") || te instanceof Protomech && game.getOptions().booleanOption("protos_safe_from_infernos")) ) { return "Can not target that unit type with Inferno rounds."; } // The TAG system cannot target infantry. if( isTAG && te instanceof Infantry ) { return "Can not target infantry with TAG."; } // Can't raise the heat of infantry or tanks. if ( wtype.hasFlag(WeaponType.F_FLAMER) && wtype.hasModes() && weapon.curMode().equals("Heat") && !(te instanceof Mech) ) { return "Can only raise the heat level of Meks."; } // Handle solo attack weapons. if ( wtype.hasFlag(WeaponType.F_SOLO_ATTACK) ) { for ( Enumeration i = game.getActions(); i.hasMoreElements(); ) { Object o = i.nextElement(); if (!(o instanceof WeaponAttackAction)) { continue; } WeaponAttackAction prevAttack = (WeaponAttackAction)o; if (prevAttack.getEntityId() == attackerId) { // If the attacker fires another weapon, this attack fails. if ( weaponId != prevAttack.getWeaponId() ) { return "Other weapon attacks declared."; } } } } else if(isAttackerInfantry && !(ae instanceof BattleArmor)) { // check for trying to fire field gun after moving if(!wtype.hasFlag(WeaponType.F_INFANTRY) && ae.moved != IEntityMovementType.MOVE_NONE) { return "Can't fire field guns in same turn as moving"; } //check for mixing infantry and field gun attacks for ( Enumeration i = game.getActions(); i.hasMoreElements(); ) { Object o = i.nextElement(); if (!(o instanceof WeaponAttackAction)) { continue; } WeaponAttackAction prevAttack = (WeaponAttackAction)o; if (prevAttack.getEntityId() == attackerId) { Mounted prevWeapon = ae.getEquipment(prevAttack.getWeaponId()); if( prevWeapon.getType().hasFlag(WeaponType.F_INFANTRY) != wtype.hasFlag(WeaponType.F_INFANTRY) ) { return "Can't fire field guns and small arms at the same time."; } } } } // check if indirect fire is valid if (isIndirect && !game.getOptions().booleanOption("indirect_fire")) { return "Indirect fire option not enabled"; } if (isIndirect && game.getOptions().booleanOption("indirect_fire") && !game.getOptions().booleanOption("indirect_always_possible") && LosEffects.calculateLos(game, attackerId, target).canSee()) { return "Indirect fire impossible with direct LOS"; } // hull down vees can't fire front weapons if(ae instanceof Tank && ae.isHullDown() && weapon.getLocation() == Tank.LOC_FRONT) { return "Nearby terrain blocks front weapons."; } // Weapon in arc? if (!Compute.isInArc(game, attackerId, weaponId, target)) { return "Target not in arc."; } // BA Micro bombs only when flying if (atype != null && atype.getAmmoType() == AmmoType.T_BA_MICRO_BOMB) { if (ae.getElevation() == 0) { return "attacker must be at least at elevation 1"; } else if (target.getTargetType() != Targetable.TYPE_HEX_BOMB) { return "must target hex with bombs"; } } if (target.getTargetType() == Targetable.TYPE_HEX_BOMB && !(usesAmmo && atype.getAmmoType() == AmmoType.T_BA_MICRO_BOMB)) { return "Weapon can't deliver bombs"; } Entity spotter = null; if (isIndirect) { spotter = Compute.findSpotter(game, ae, target); if (spotter == null) { return "No available spotter"; } } int eistatus=0; // check LOS (indirect LOS is from the spotter) LosEffects los; ToHitData losMods; if (!isIndirect) { los = LosEffects.calculateLos(game, attackerId, target); if(ae.hasActiveEiCockpit()) { if(los.getLightWoods() > 0) eistatus = 2; else eistatus = 1; } losMods = los.losModifiers(game, eistatus); } else { los = LosEffects.calculateLos(game, spotter.getId(), target); // do not count attacker partial cover in indirect fire los.setAttackerCover(LosEffects.COVER_NONE); if(spotter.hasActiveEiCockpit()) { if(los.getLightWoods() > 0) eistatus = 2; else eistatus = 1; } losMods = los.losModifiers(game); } // if LOS is blocked, block the shot if (losMods.getValue() == ToHitData.IMPOSSIBLE && !isArtilleryIndirect) { return losMods.getDesc(); } // Must target infantry in buildings from the inside. if ( targetInBuilding && te instanceof Infantry && null == los.getThruBldg() ) { return "Attack on infantry crosses building exterior wall."; } // attacker partial cover means no leg weapons if (los.isAttackerCover() && ae.locationIsLeg(weapon.getLocation()) && ae.getLocationStatus(weapon.getLocation()) != ILocationExposureStatus.WET) { return "Nearby terrain blocks leg weapons."; } // Leg attacks, Swarm attacks, and // Mine Launchers don't use gunnery. if ( Infantry.LEG_ATTACK.equals( wtype.getInternalName() ) ) { toHit = Compute.getLegAttackBaseToHit( ae, te ); // Return if the attack is impossible. if ( ToHitData.IMPOSSIBLE == toHit.getValue() ) { return toHit.getDesc(); } } else if ( Infantry.SWARM_MEK.equals( wtype.getInternalName() ) ) { toHit = Compute.getSwarmMekBaseToHit( ae, te ); // Return if the attack is impossible. if ( ToHitData.IMPOSSIBLE == toHit.getValue() ) { return toHit.getDesc(); } } else if ( Infantry.STOP_SWARM.equals( wtype.getInternalName() ) ) { // Can't stop if we're not swarming, otherwise automatic. if ( Entity.NONE == ae.getSwarmTargetId() ) { return "Not swarming a Mek."; } } else if ( BattleArmor.MINE_LAUNCHER.equals(wtype.getInternalName()) ) { // Mine launchers can not hit infantry. if ( te instanceof Infantry ) { return "Can not attack infantry."; } } // Swarming infantry always hit their target, but // they can only target the Mek they're swarming. else if ( te != null && ae.getSwarmTargetId() == te.getId() ) { // Only certain weapons can be used in a swarm attack. if ( wtype.getDamage() == 0 ) { return "Weapon causes no damage."; } } else if ( Entity.NONE != ae.getSwarmTargetId() ) { return "Must target the Mek being swarmed."; } int aElev = ae.getElevation(); int tElev = target.getElevation(); int distance = Compute.effectiveDistance(game, ae, target); if(atype != null && atype.getAmmoType() == AmmoType.T_LRM && atype.getMunitionType() == AmmoType.M_SEMIGUIDED) { if (te == null || te.getTaggedBy() == -1) { // from a rules clarification return "Semi-guided LRMs must target a unit tagged this turn"; } } // Handle direct artillery attacks. if (isArtilleryDirect) { if (distance >17) { return "Direct artillery attack at range >17 hexes."; } if (isHoming) { if (te == null || te.getTaggedBy() == -1) { // see BMRr p77 on board arrow IV return "On board homing shot must target a unit tagged this turn"; } } } if (isArtilleryIndirect) { int boardRange=(int)Math.ceil((double) (distance / 17f)); if (boardRange>wtype.getLongRange()) { return "Indirect artillery attack out of range"; } if (distance<=17 && !(losMods.getValue()==ToHitData.IMPOSSIBLE)) { return "Cannot fire indirectly at range <=17 hexes unless no LOS."; } if (isHoming) { if(ttype != Targetable.TYPE_HEX_ARTILLERY) { return "Off board homing shot must target a map sheet"; } } } if(ae instanceof Mech) { int grapple = ((Mech)ae).getGrappled(); if(grapple != Entity.NONE) { if(grapple != target.getTargetId()) { return "Can only attack grappled mech"; } int loc = weapon.getLocation(); if((loc != Mech.LOC_CT && loc != Mech.LOC_LT && loc != Mech.LOC_RT && loc != Mech.LOC_HEAD) || weapon.isRearMounted()) { return "Can only fire head and front torso weapons when grappled"; } } } return null; }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/7137212a2cb35a36e4e1aee06b389c76596e3e32/WeaponAttackAction.java/clean/megamek/src/megamek/common/actions/WeaponAttackAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 358, 13616, 2520, 1170, 12708, 12, 3047, 339, 7920, 16, 3887, 14221, 16, 1171, 9079, 5916, 429, 1018, 16, 13076, 329, 732, 28629, 16, 3986, 8683, 559, 30965, 16, 17311, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 358, 13616, 2520, 1170, 12708, 12, 3047, 339, 7920, 16, 3887, 14221, 16, 1171, 9079, 5916, 429, 1018, 16, 13076, 329, 732, 28629, 16, 3986, 8683, 559, 30965, 16, 17311, 16...
String pa = nup.getPublicAddress( this.networkSettings, newSettings, this.ddnsSettings ); this.remote = new RemoteInternalSettings( newSettings, pa );
this.remote = nup.makeRemoteInternal( this.networkSettings, newSettings, this.ddnsSettings );
public synchronized void setRemoteSettings( RemoteSettings newSettings ) throws NetworkException { /* XXXXXXXXX Implement me */ if ( logger.isDebugEnabled()) logger.debug( "Loaded remote settings: " + newSettings ); NetworkUtilPriv nup = NetworkUtilPriv.getPrivInstance(); String pa = nup.getPublicAddress( this.networkSettings, newSettings, this.ddnsSettings ); this.remote = new RemoteInternalSettings( newSettings, pa ); saveRemoteSettings( this.remote ); /* Update the rules */ generateRules(); if ( logger.isDebugEnabled()) logger.debug( "Loaded remote settings: " + this.remote ); /* Have to do this too, because the hostname may have changed */ try { updateServicesSettings(); } catch ( Exception e ) { logger.warn( "Error updating services settings, continuing", e ); } callRemoteListeners(); }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/4e51932474176f923e4507c926dc5bfdc7595322/NetworkManagerImpl.java/clean/mvvm/main/com/metavize/mvvm/networking/NetworkManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 444, 5169, 2628, 12, 6304, 2628, 394, 2628, 262, 3639, 1216, 5128, 503, 565, 288, 3639, 1748, 11329, 24303, 5619, 10886, 1791, 1195, 3639, 309, 261, 1194, 18, 291, 2829, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 444, 5169, 2628, 12, 6304, 2628, 394, 2628, 262, 3639, 1216, 5128, 503, 565, 288, 3639, 1748, 11329, 24303, 5619, 10886, 1791, 1195, 3639, 309, 261, 1194, 18, 291, 2829, ...
private void getRandomSpeed(Vector3f speed) {
private void getRandomSpeed(Vector3f pSpeed) {
private void getRandomSpeed(Vector3f speed) { float randDir = FastMath.TWO_PI * FastMath.nextRandomFloat(); float clampAngle = clampToMaxAngle(FastMath.PI * FastMath.nextRandomFloat()); speed.x = (float) (FastMath.cos(randDir) * FastMath.sin(clampAngle)); speed.y = (float) FastMath.cos(clampAngle); speed.z = (float) (FastMath.sin(randDir) * FastMath.sin(clampAngle)); rotateVectorSpeed(speed); speed.multLocal(initialVelocity); }
19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/c194f5f13060d42e9bad1df9b12ae08aebc688d1/RenParticleManager.java/buggy/src/com/jme/effects/RenParticleManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 20581, 16562, 12, 5018, 23, 74, 293, 16562, 13, 288, 565, 1431, 5605, 1621, 273, 26915, 18, 18869, 51, 67, 1102, 380, 26915, 18, 4285, 8529, 4723, 5621, 565, 1431, 19049, 8467,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 20581, 16562, 12, 5018, 23, 74, 293, 16562, 13, 288, 565, 1431, 5605, 1621, 273, 26915, 18, 18869, 51, 67, 1102, 380, 26915, 18, 4285, 8529, 4723, 5621, 565, 1431, 19049, 8467,...
IServiceProvider container = getServiceContainer(); return container.getService(adapter);
IServiceProvider container = getServiceContainer(); Object adapted = container.getService(adapter); if (adapted != null) return adapted;
public final Object getAdapter(Class adapter) { if (IWorkbenchSiteProgressService.class == adapter) { return getSiteProgressService(); } try { IServiceProvider container = getServiceContainer(); return container.getService(adapter); } catch (ComponentException e) { WorkbenchPlugin.getDefault().getLog().log(e.getStatus()); } return null; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/a5bfa815827ee3b3621df2fe89d04dc323ca5a97/PartSite.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PartSite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 1033, 16679, 12, 797, 4516, 13, 288, 7734, 309, 261, 45, 2421, 22144, 4956, 5491, 1179, 18, 1106, 422, 4516, 13, 288, 5411, 327, 11021, 5491, 1179, 5621, 3639, 289, 3639, 775, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 1033, 16679, 12, 797, 4516, 13, 288, 7734, 309, 261, 45, 2421, 22144, 4956, 5491, 1179, 18, 1106, 422, 4516, 13, 288, 5411, 327, 11021, 5491, 1179, 5621, 3639, 289, 3639, 775, ...
public IWindowTrim getInsertBefore(int swtSide, Point pos) { int id = convertSwtConstantToAreaId(swtSide); List area = fTrimArea[id]; if (area == null || area.size() == 0) {
public IWindowTrim getInsertBefore(int areaId, Point pos) { TrimArea area = (TrimArea) fTrimArea.get(new Integer(areaId)); if (area == null || area.isEmpty()) {
public IWindowTrim getInsertBefore(int swtSide, Point pos) { int id = convertSwtConstantToAreaId(swtSide); List area = fTrimArea[id]; if (area == null || area.size() == 0) { return null; } boolean isHorizontal = swtSide == SWT.TOP || swtSide == SWT.BOTTOM; Iterator d = area.iterator(); while (d.hasNext()) { TrimDescriptor desc = (TrimDescriptor) d.next(); Rectangle bounds = DragUtil.getDisplayBounds(desc.getCache() .getControl()); if (isHorizontal) { // Left of center means 'insert before me' if (pos.x < Geometry.centerPoint(bounds).x) return desc.getTrim(); } else { // Above center means 'insert before me' if (pos.y < Geometry.centerPoint(bounds).y) return desc.getTrim(); } } return null; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c02ce808ddcd3a887071a5c31104b81c396819e2/TrimLayout.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/layout/TrimLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 3829, 14795, 336, 4600, 4649, 12, 474, 1352, 88, 8895, 16, 4686, 949, 13, 288, 202, 202, 474, 612, 273, 1765, 55, 6046, 6902, 774, 5484, 548, 12, 5328, 88, 8895, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 3829, 14795, 336, 4600, 4649, 12, 474, 1352, 88, 8895, 16, 4686, 949, 13, 288, 202, 202, 474, 612, 273, 1765, 55, 6046, 6902, 774, 5484, 548, 12, 5328, 88, 8895, 1769, ...
public String getContentType() {
private static final String getContentType(String resourceName) { String contentType; int extensionDelimiterPosition = resourceName.lastIndexOf("."); if (extensionDelimiterPosition == -1) { throw new IllegalArgumentException("Invalid file extension (resource has no extension: " + resourceName + ")"); } else { String extension = resourceName.substring(extensionDelimiterPosition + 1).toLowerCase(); contentType = (String) extensionToContentType.get(extension); if (contentType == null) { throw new IllegalArgumentException("Invalid file extension (no matching content type: " + resourceName + ")"); } }
public String getContentType() { return contentType; }
45635 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45635/5fcac2fd891a28c14ed2f2c9a85e98b45e7eba44/ResourceImageReference.java/buggy/src/app/java/nextapp/echo2/app/ResourceImageReference.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 727, 514, 17470, 12, 780, 9546, 13, 288, 514, 5064, 31, 282, 509, 2710, 12007, 2555, 273, 9546, 18, 2722, 31985, 2932, 1199, 1769, 309, 261, 6447, 12007, 2555, 422, 300, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 727, 514, 17470, 12, 780, 9546, 13, 288, 514, 5064, 31, 282, 509, 2710, 12007, 2555, 273, 9546, 18, 2722, 31985, 2932, 1199, 1769, 309, 261, 6447, 12007, 2555, 422, 300, 21, ...
public abstract void setDetail_type(int newDetail_type);
private void setDetail_type(int newDetail_type) { try { this.modified = true; set_Detail_type((java.lang.Integer) getDetail_typeConverter().toDB(new Integer(newDetail_type))); } catch (org.openxava.converters.ConversionException ex) { ex.printStackTrace(); throw new EJBException(XavaResources.getString("generator.conversion_error", "Detail_type", "Detail", "int")); } }
public abstract void setDetail_type(int newDetail_type);
14127 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14127/9641eb5f7cc99ebafb4c13adfa841fe41068b799/ServiceBean.java/clean/OpenXavaTest/gen-src-xava/org/openxava/test/ejb/xejb/ServiceBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 444, 6109, 67, 723, 12, 474, 394, 6109, 67, 723, 13, 288, 775, 288, 333, 18, 7342, 273, 638, 31, 444, 67, 6109, 67, 723, 12443, 6290, 18, 4936, 18, 4522, 13, 2343, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 6109, 67, 723, 12, 474, 394, 6109, 67, 723, 13, 288, 775, 288, 333, 18, 7342, 273, 638, 31, 444, 67, 6109, 67, 723, 12443, 6290, 18, 4936, 18, 4522, 13, 2343, 1...
void queueResendPacket(byte[] payload, int packetNumber, KeyTracker k) { ResendPacketItem item = new ResendPacketItem(payload, packetNumber, k);
void queueResendPacket(byte[] payload, int packetNumber, KeyTracker k, AsyncMessageCallback[] callbacks) { ResendPacketItem item = new ResendPacketItem(payload, packetNumber, k, callbacks);
void queueResendPacket(byte[] payload, int packetNumber, KeyTracker k) { ResendPacketItem item = new ResendPacketItem(payload, packetNumber, k); synchronized(this) { resendPackets.add(item); notifyAll(); } }
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/f48ad5c9057903788f63aaa8ccd26e567faf4317/PacketSender.java/clean/src/freenet/node/PacketSender.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 2389, 607, 409, 6667, 12, 7229, 8526, 2385, 16, 509, 4414, 1854, 16, 1929, 8135, 417, 13, 288, 3639, 1124, 409, 6667, 1180, 761, 273, 394, 1124, 409, 6667, 1180, 12, 7648, 16, 4414...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 2389, 607, 409, 6667, 12, 7229, 8526, 2385, 16, 509, 4414, 1854, 16, 1929, 8135, 417, 13, 288, 3639, 1124, 409, 6667, 1180, 761, 273, 394, 1124, 409, 6667, 1180, 12, 7648, 16, 4414...
if (array[i] == tofind) return i;
if (array[i].equals(tofind)) return i;
public static final int indexOf(int[] array, int tofind) { for (int i = 0; i < array.length; ++ i) { if (array[i] == tofind) return i; } return -1; }
50671 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50671/4badfac7e337473380be098ea08169dbb24357d5/ArrayUtil.java/buggy/src/uk/org/ponder/arrayutil/ArrayUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 727, 509, 3133, 12, 474, 8526, 526, 16, 509, 358, 4720, 13, 288, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 526, 18, 2469, 31, 965, 277, 13, 288, 1377, 309, 261, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 727, 509, 3133, 12, 474, 8526, 526, 16, 509, 358, 4720, 13, 288, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 526, 18, 2469, 31, 965, 277, 13, 288, 1377, 309, 261, 11...
matchAny();
matchAny(); if (failed) return ;
public void mSTRING() throws RecognitionException { try { int type = STRING; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:781:17: ( ( '"' ( options {greedy=false; } : . )* '"' ) | ( '\'' ( options {greedy=false; } : . )* '\'' ) ) int alt9=2; int LA9_0 = input.LA(1); if ( LA9_0=='"' ) { alt9=1; } else if ( LA9_0=='\'' ) { alt9=2; } else { NoViableAltException nvae = new NoViableAltException("780:1: STRING : ( ( \'\"\' ( options {greedy=false; } : . )* \'\"\' ) | ( \'\\\'\' ( options {greedy=false; } : . )* \'\\\'\' ) );", 9, 0, input); throw nvae; } switch (alt9) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:781:17: ( '"' ( options {greedy=false; } : . )* '"' ) { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:781:17: ( '"' ( options {greedy=false; } : . )* '"' ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:781:18: '"' ( options {greedy=false; } : . )* '"' { match('"'); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:781:22: ( options {greedy=false; } : . )* loop7: do { int alt7=2; int LA7_0 = input.LA(1); if ( LA7_0=='"' ) { alt7=2; } else if ( (LA7_0>='\u0000' && LA7_0<='!')||(LA7_0>='#' && LA7_0<='\uFFFE') ) { alt7=1; } switch (alt7) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:781:49: . { matchAny(); } break; default : break loop7; } } while (true); match('"'); } } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:781:61: ( '\'' ( options {greedy=false; } : . )* '\'' ) { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:781:61: ( '\'' ( options {greedy=false; } : . )* '\'' ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:781:62: '\'' ( options {greedy=false; } : . )* '\'' { match('\''); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:781:67: ( options {greedy=false; } : . )* loop8: do { int alt8=2; int LA8_0 = input.LA(1); if ( LA8_0=='\'' ) { alt8=2; } else if ( (LA8_0>='\u0000' && LA8_0<='&')||(LA8_0>='(' && LA8_0<='\uFFFE') ) { alt8=1; } switch (alt8) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:781:94: . { matchAny(); } break; default : break loop8; } } while (true); match('\''); } } break; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/9c6423b7a31fdc4a1317e71a6d2850c94e2140e0/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 5804, 1435, 1216, 9539, 288, 3639, 775, 288, 5411, 509, 618, 273, 9469, 31, 5411, 509, 787, 273, 23577, 1016, 5621, 5411, 509, 980, 273, 9851, 5621, 5411, 509, 1149, 2555,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 5804, 1435, 1216, 9539, 288, 3639, 775, 288, 5411, 509, 618, 273, 9469, 31, 5411, 509, 787, 273, 23577, 1016, 5621, 5411, 509, 980, 273, 9851, 5621, 5411, 509, 1149, 2555,...
myCurrentDirectory = new SVNDirectoryInfo(myCurrentDirectory, path, true);
myCurrentDirectory = new SVNDirectoryInfo(myCurrentDirectory, path);
public void addDir(String path, String copyFromPath, long copyFromRevision) throws SVNException { path = PathUtil.removeLeadingSlash(path); path = PathUtil.removeTrailingSlash(path); myCurrentDirectory = new SVNDirectoryInfo(myCurrentDirectory, path, true); myCurrentDirectory.myBaseProperties = Collections.EMPTY_MAP; }
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/6c2a9b21ad94c8ea1ae6d43c84b3c1225fe4e460/SVNRemoteDiffEditor.java/clean/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNRemoteDiffEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 1621, 12, 780, 589, 16, 514, 1610, 23064, 16, 1525, 25189, 7939, 13, 1216, 29537, 50, 503, 288, 3639, 589, 273, 2666, 1304, 18, 4479, 19112, 11033, 12, 803, 1769, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 1621, 12, 780, 589, 16, 514, 1610, 23064, 16, 1525, 25189, 7939, 13, 1216, 29537, 50, 503, 288, 3639, 589, 273, 2666, 1304, 18, 4479, 19112, 11033, 12, 803, 1769, 3639, ...
makeTestTables(stmt); makeObjects(stmt, 8);
makeTestTables(cstmt); makeObjects(cstmt, 8);
public void testCallableStatementCall1() throws Exception { CallableStatement stmt = con.prepareCall("{call sp_who}"); makeTestTables(stmt); makeObjects(stmt, 8); ResultSet rs = stmt.executeQuery(); dump(rs); stmt.close(); rs.close(); }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/17b3b8c78bf3187424a07300c6c5e5f3e0dc3054/CallableStatementTest.java/buggy/src/test/net/sourceforge/jtds/test/CallableStatementTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 11452, 3406, 1477, 21, 1435, 1216, 1185, 288, 3639, 10464, 3406, 3480, 273, 356, 18, 9366, 1477, 2932, 95, 1991, 1694, 67, 3350, 83, 1532, 1769, 3639, 1221, 4709, 6905, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 11452, 3406, 1477, 21, 1435, 1216, 1185, 288, 3639, 10464, 3406, 3480, 273, 356, 18, 9366, 1477, 2932, 95, 1991, 1694, 67, 3350, 83, 1532, 1769, 3639, 1221, 4709, 6905, 1...
int nameIndex = -1;
String functionName = null;
private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case TokenStream.FUNCTION : { Node fn = (Node) node.getProp(Node.FUNCTION_PROP); int index = fn.getExistingIntProp(Node.FUNCTION_PROP); iCodeTop = addByte(TokenStream.CLOSURE, iCodeTop); iCodeTop = addShort(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != TokenStream.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNextSibling(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.LABEL : case TokenStream.WITH : case TokenStream.LOOP : case TokenStream.DEFAULT : case TokenStream.BLOCK : case TokenStream.VOID : case TokenStream.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.COMMA : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); break; case TokenStream.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; ObjArray cases = (ObjArray) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.get(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(TokenStream.SHEQ, iCodeTop); itsStackDepth--; Node target = new Node(TokenStream.TARGET); thisCase.addChildAfter(target, first); iCodeTop = addGoto(target, TokenStream.IFEQ, iCodeTop); } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(TokenStream.TARGET); defaultNode.getFirstChild(). addChildToFront(defaultTarget); iCodeTop = addGoto(defaultTarget, TokenStream.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); iCodeTop = addGoto(breakTarget, TokenStream.GOTO, iCodeTop); } break; case TokenStream.TARGET : { markTargetLabel(node, iCodeTop); // if this target has a FINALLY_PROP, it is a JSR target // and so has a PC value on the top of the stack if (node.getProp(Node.FINALLY_PROP) != null) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.EQOP : case TokenStream.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int op = node.getOperation(); if (version == Context.VERSION_1_2) { if (op == TokenStream.EQ) op = TokenStream.SHEQ; else if (op == TokenStream.NE) op = TokenStream.SHNE; } iCodeTop = addByte(op, iCodeTop); itsStackDepth--; } break; case TokenStream.NEW : case TokenStream.CALL : { if (itsSourceFile != null && (itsData.itsSourceFile == null || !itsSourceFile.equals(itsData.itsSourceFile))) { itsData.itsSourceFile = itsSourceFile; } iCodeTop = addByte(SOURCEFILE_ICODE, iCodeTop); int childCount = 0; int nameIndex = -1; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (nameIndex == -1) { int childType = child.getType(); if (childType == TokenStream.NAME || childType == TokenStream.GETPROP) { nameIndex = lastStringIndex; } } child = child.getNextSibling(); childCount++; } if (node.getProp(Node.SPECIALCALL_PROP) != null) { // embed line number and source filename iCodeTop = addByte(TokenStream.CALLSPECIAL, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); iCodeTop = addString(itsSourceFile, iCodeTop); } else { iCodeTop = addByte(type, iCodeTop); iCodeTop = addShort(nameIndex, iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == TokenStream.NEW) childCount -= 1; else childCount -= 2; iCodeTop = addShort(childCount, iCodeTop); if (childCount > itsData.itsMaxCalleeArgs) itsData.itsMaxCalleeArgs = childCount; iCodeTop = addByte(SOURCEFILE_ICODE, iCodeTop); } break; case TokenStream.NEWLOCAL : case TokenStream.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); } break; case TokenStream.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) iCodeTop = addByte(TokenStream.RETSUB, iCodeTop); else { iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); } break; case TokenStream.USETEMP : { iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.IFEQ : case TokenStream.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case TokenStream.GOTO : { Node target = (Node)(node.getProp(Node.TARGET_PROP)); iCodeTop = addGoto(target, (byte) type, iCodeTop); } break; case TokenStream.JSR : { /* mark the target with a FINALLY_PROP to indicate that it will have an incoming PC value on the top of the stack. !!! This only works if the target follows the JSR in the tree. !!! */ Node target = (Node)(node.getProp(Node.TARGET_PROP)); target.putProp(Node.FINALLY_PROP, node); // Bug 115717 is due to adding a GOSUB here before // we insert an ENDTRY. I'm not sure of the best way // to fix this; perhaps we need to maintain a stack // of pending trys and have some knowledge of how // many trys we need to close when we perform a // GOTO or GOSUB. iCodeTop = addGoto(target, TokenStream.GOSUB, iCodeTop); } break; case TokenStream.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseJumpStart = iCodeTop; iCodeTop = addForwardGoto(TokenStream.IFNE, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(falseJumpStart, iCodeTop); } break; case TokenStream.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueJumpStart = iCodeTop; iCodeTop = addForwardGoto(TokenStream.IFEQ, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(trueJumpStart, iCodeTop); } break; case TokenStream.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte(TokenStream.GETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte(TokenStream.GETSCOPEPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.GETPROP, iCodeTop); itsStackDepth--; } } break; case TokenStream.DELPROP : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.ADD : case TokenStream.SUB : case TokenStream.MOD : case TokenStream.DIV : case TokenStream.MUL : case TokenStream.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case TokenStream.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) iCodeTop = addByte(TokenStream.POS, iCodeTop); else badTree(node); } break; case TokenStream.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getOperation()) { case TokenStream.VOID : iCodeTop = addByte(TokenStream.POP, iCodeTop); iCodeTop = addByte(TokenStream.UNDEFINED, iCodeTop); break; case TokenStream.NOT : { int trueJumpStart = iCodeTop; iCodeTop = addForwardGoto(TokenStream.IFEQ, iCodeTop); iCodeTop = addByte(TokenStream.TRUE, iCodeTop); int beyondJumpStart = iCodeTop; iCodeTop = addForwardGoto(TokenStream.GOTO, iCodeTop); resolveForwardGoto(trueJumpStart, iCodeTop); iCodeTop = addByte(TokenStream.FALSE, iCodeTop); resolveForwardGoto(beyondJumpStart, iCodeTop); } break; case TokenStream.BITNOT : iCodeTop = addByte(TokenStream.BITNOT, iCodeTop); break; case TokenStream.TYPEOF : iCodeTop = addByte(TokenStream.TYPEOF, iCodeTop); break; case TokenStream.SUB : iCodeTop = addByte(TokenStream.NEG, iCodeTop); break; case TokenStream.ADD : iCodeTop = addByte(TokenStream.POS, iCodeTop); break; default: badTree(node); break; } break; case TokenStream.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte(TokenStream.SETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte(TokenStream.SETPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.SETPROP, iCodeTop); itsStackDepth -= 2; } } break; case TokenStream.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth -= 2; break; case TokenStream.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case TokenStream.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = itsVariableTable.getOrdinal(name); if (index == -1) { iCodeTop = addByte(TokenStream.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte(TokenStream.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); iCodeTop = addByte(TokenStream.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.GETPARENT, iCodeTop); break; case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.NAME : case TokenStream.STRING : iCodeTop = addByte(type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.INC : case TokenStream.DEC : { int childType = child.getType(); switch (childType) { case TokenStream.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte(TokenStream.SCOPE, iCodeTop); iCodeTop = addByte(TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC, iCodeTop); itsStackDepth--; } else { int i = itsVariableTable.getOrdinal(name); iCodeTop = addByte(type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC, iCodeTop); iCodeTop = addByte(i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.GETPROP : case TokenStream.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNextSibling(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == TokenStream.GETPROP) iCodeTop = addByte(type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC, iCodeTop); else iCodeTop = addByte(type == TokenStream.INC ? TokenStream.ELEMINC : TokenStream.ELEMDEC, iCodeTop); itsStackDepth--; } break; default : { iCodeTop = addByte(type == TokenStream.INC ? TokenStream.NAMEINC : TokenStream.NAMEDEC, iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } } break; case TokenStream.NUMBER : { double num = node.getDouble(); int inum = (int)num; if (inum == num) { if (inum == 0) { iCodeTop = addByte(TokenStream.ZERO, iCodeTop); } else if (inum == 1) { iCodeTop = addByte(TokenStream.ONE, iCodeTop); } else if ((short)inum == inum) { iCodeTop = addByte(SHORTNUMBER_ICODE, iCodeTop); iCodeTop = addShort(inum, iCodeTop); } else { iCodeTop = addByte(INTNUMBER_ICODE, iCodeTop); iCodeTop = addInt(inum, iCodeTop); } } else { iCodeTop = addByte(TokenStream.NUMBER, iCodeTop); iCodeTop = addDouble(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case TokenStream.POP : case TokenStream.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case TokenStream.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case TokenStream.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); break; case TokenStream.NEWSCOPE : iCodeTop = addByte(type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.LEAVEWITH : iCodeTop = addByte(type, iCodeTop); break; case TokenStream.TRY : { itsTryDepth++; if (itsTryDepth > itsData.itsMaxTryDepth) itsData.itsMaxTryDepth = itsTryDepth; Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); int tryStart = iCodeTop; if (catchTarget == null) { iCodeTop = addByte(TokenStream.TRY, iCodeTop); iCodeTop = addShort(0, iCodeTop); } else { iCodeTop = addGoto(catchTarget, TokenStream.TRY, iCodeTop); } iCodeTop = addShort(0, iCodeTop); Node lastChild = null; /* when we encounter the child of the catchTarget, we set the stackDepth to 1 to account for the incoming exception object. */ boolean insertedEndTry = false; while (child != null) { if (catchTarget != null && lastChild == catchTarget) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } /* When the following child is the catchTarget (or the finallyTarget if there are no catches), the current child is the goto at the end of the try statemets, we need to emit the endtry before that goto. */ Node nextSibling = child.getNextSibling(); if (!insertedEndTry && nextSibling != null && (nextSibling == catchTarget || nextSibling == finallyTarget)) { iCodeTop = addByte(TokenStream.ENDTRY, iCodeTop); insertedEndTry = true; } iCodeTop = generateICode(child, iCodeTop); lastChild = child; child = child.getNextSibling(); } itsStackDepth = 0; if (finallyTarget != null) { // normal flow goes around the finally handler stublet int skippyJumpStart = iCodeTop; iCodeTop = addForwardGoto(TokenStream.GOTO, iCodeTop); int finallyOffset = iCodeTop - tryStart; recordJumpOffset(tryStart + 3, finallyOffset); // on entry the stack will have the exception object itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); iCodeTop = addGoto(finallyTarget, TokenStream.GOSUB, iCodeTop); iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.JTHROW, iCodeTop); itsStackDepth = 0; resolveForwardGoto(skippyJumpStart, iCodeTop); } itsTryDepth--; } break; case TokenStream.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.THROW, iCodeTop); itsStackDepth--; break; case TokenStream.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.RETURN, iCodeTop); itsStackDepth--; } else { iCodeTop = addByte(RETURN_UNDEF_ICODE, iCodeTop); } break; case TokenStream.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte(TokenStream.SCOPE, iCodeTop); iCodeTop = addByte(TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(TokenStream.GETPROP, iCodeTop); itsStackDepth--; } else { int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte(TokenStream.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(TokenStream.BINDNAME); node.setType(TokenStream.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte(TokenStream.SETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); } } break; case TokenStream.PRIMARY: iCodeTop = addByte(node.getOperation(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case TokenStream.ENUMNEXT : { iCodeTop = addByte(TokenStream.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.ENUMDONE : // could release the local here?? break; case TokenStream.REGEXP : { Node regexp = (Node) node.getProp(Node.REGEXP_PROP); int index = regexp.getExistingIntProp(Node.REGEXP_PROP); iCodeTop = addByte(TokenStream.REGEXP, iCodeTop); iCodeTop = addShort(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; default : badTree(node); break; } return iCodeTop; }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/85132aacd6645eb0864e9deff934a25c44792a21/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, ...
log.error(ex);
System.err.println(ex);
public void actionPerformed(ActionEvent e) { String command=e.getActionCommand(); if("Gossip".equals(command)) { sendGossip(); } else if("Clear".equals(command)) sendClearPanelMsg(); else if("Leave & Exit".equals(command)) { try { channel.disconnect(); channel.close(); } catch(Exception ex) { log.error(ex); } mainFrame.setVisible(false); System.exit(0); } else System.out.println("Unknown action"); }
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/13de68466e3cf7fde6ee0bde0cee09a33e837e89/Gossip.java/buggy/src/org/jgroups/demos/Gossip.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 514, 1296, 33, 73, 18, 588, 1803, 2189, 5621, 3639, 309, 2932, 43, 15616, 9654, 14963, 12, 3076, 3719, 288, 5411, 1366, 43, 15616, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 514, 1296, 33, 73, 18, 588, 1803, 2189, 5621, 3639, 309, 2932, 43, 15616, 9654, 14963, 12, 3076, 3719, 288, 5411, 1366, 43, 15616, ...
breakdownElement.setIdEPF("idEPF1");
breakdownElement.setIdEPF("idEPF1") ;
public void testRemoveFromAllBreakdownElements() { BreakdownElement breakdownElement = new BreakdownElement() ; breakdownElement.setIdEPF("idEPF1"); breakdownElement.setName("name1") ; breakdownElement.setDescription("description1") ; breakdownElement.setPrefix("prefix1") ; breakdownElement.setIsOptional(true) ; breakdownElement.setIsPlanned(false) ; breakdownElement.setHasMultipleOccurrences(false) ; BreakdownElement tmp = new BreakdownElement() ; tmp.setIdEPF("idEPF2"); tmp.setName("name2") ; tmp.setDescription("description1") ; tmp.setPrefix("prefix1") ; tmp.setIsOptional(true) ; tmp.setIsPlanned(false) ; tmp.setHasMultipleOccurrences(false) ; Set<BreakdownElement> set = new HashSet<BreakdownElement>() ; set.add(breakdownElement) ; set.add(tmp) ; assertTrue(set.size() == 2); this.activity.addToAllBreakdownElements(set); this.activity.removeFromAllBreakdownElements() ; assertTrue("bdes", this.activity.getBreakDownElements().isEmpty()) ; assertTrue("bde.acts", breakdownElement.getSuperActivities().isEmpty()) ; assertTrue("tmp.acts", tmp.getSuperActivities().isEmpty()) ; }
55530 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55530/be9c7e4c4a9f96eff6615ce765eacb786416035d/ActivityTest.java/clean/woops2/trunk/test/woops2/test/model/activity/ActivityTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3288, 1265, 1595, 7634, 2378, 3471, 1435, 288, 202, 202, 7634, 2378, 1046, 898, 2378, 1046, 273, 394, 17030, 2378, 1046, 1435, 274, 202, 202, 8820, 2378, 1046, 18, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3288, 1265, 1595, 7634, 2378, 3471, 1435, 288, 202, 202, 7634, 2378, 1046, 898, 2378, 1046, 273, 394, 17030, 2378, 1046, 1435, 274, 202, 202, 8820, 2378, 1046, 18, 54...
protected Object[] getArgumentsOfServiceToBeTestedSuccessfuly() { InfoCurriculum oldCurriculum = new InfoCurriculum(); ISuportePersistente sp = null; IExecutionYear executionYear = null; IExecutionPeriod executionPeriod = null; IDisciplinaExecucao executionCourse = null; try { sp = SuportePersistenteOJB.getInstance(); sp.iniciarTransaccao(); IPersistentExecutionYear ieyp = sp.getIPersistentExecutionYear(); executionYear = ieyp.readExecutionYearByName("2002/2003"); IPersistentExecutionPeriod iepp = sp.getIPersistentExecutionPeriod(); executionPeriod = iepp.readByNameAndExecutionYear("2 Semestre", executionYear); IDisciplinaExecucaoPersistente idep = sp.getIDisciplinaExecucaoPersistente(); executionCourse = idep.readByExecutionCourseInitialsAndExecutionPeriod( "IP", executionPeriod); sp.confirmarTransaccao(); InfoExecutionCourse infoExecutionCourse =Cloner.copyIExecutionCourse2InfoExecutionCourse(executionCourse); oldCurriculum = new InfoCurriculum(); oldCurriculum.setGeneralObjectives("bla"); oldCurriculum.setOperacionalObjectives("bla"); oldCurriculum.setProgram("ba"); oldCurriculum.setInfoExecutionCourse(infoExecutionCourse); } catch (ExcepcaoPersistencia e) { System.out.println("failed setting up the test data"); e.printStackTrace(); } Object[] args = { oldCurriculum }; return args; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/6944d7cfc5eeb38ca4fde3ec4fd59b88cb9bbd30/InsertCurriculumServiceTest.java/clean/src_tests/ServidorAplicacao/Servicos/gesdis/teacher/InsertCurriculumServiceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1033, 8526, 17839, 951, 1179, 15360, 56, 3149, 14277, 93, 1435, 288, 202, 202, 966, 2408, 1512, 332, 379, 1592, 2408, 1512, 332, 379, 273, 394, 3807, 2408, 1512, 332, 379, 5621...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1033, 8526, 17839, 951, 1179, 15360, 56, 3149, 14277, 93, 1435, 288, 202, 202, 966, 2408, 1512, 332, 379, 1592, 2408, 1512, 332, 379, 273, 394, 3807, 2408, 1512, 332, 379, 5621...
Account account = prov.get(AccountBy.name, authenticateId); Account authacct = authorizeId.equals("") ? account : prov.get(AccountBy.name, authorizeId);
Account account = prov.get(AccountBy.name, username); Account authacct = username.equals("") ? account : prov.get(AccountBy.name, authenticateId);
private Account authenticate(String authorizeId, String authenticateId, String password, String command, String tag) throws ServiceException, IOException { Provisioning prov = Provisioning.getInstance(); Account account = prov.get(AccountBy.name, authenticateId); Account authacct = authorizeId.equals("") ? account : prov.get(AccountBy.name, authorizeId); if (account == null || authacct == null) { sendNO(tag, command + " failed"); return null; } prov.authAccount(authacct, password); if (!AccountUtil.isAuthorized(account, authacct)) { sendNO(tag, command + " failed"); return null; } return account; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/e8d85a03f7e2a0df0e81c50ee31bcc711a798664/OzImapConnectionHandler.java/buggy/ZimbraServer/src/java/com/zimbra/cs/imap/OzImapConnectionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 6590, 8929, 12, 780, 12229, 548, 16, 514, 8929, 548, 16, 514, 2201, 16, 514, 1296, 16, 514, 1047, 13, 1216, 16489, 16, 1860, 288, 3639, 26423, 17197, 273, 26423, 18, 588, 1442, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 6590, 8929, 12, 780, 12229, 548, 16, 514, 8929, 548, 16, 514, 2201, 16, 514, 1296, 16, 514, 1047, 13, 1216, 16489, 16, 1860, 288, 3639, 26423, 17197, 273, 26423, 18, 588, 1442, 56...
lVar = (OptLocalVariable) vars.get(name);
lVar = (OptLocalVariable) vars.getVariable(name);
private void visitGetVar(OptLocalVariable lVar, boolean isNumber, String name) { // TODO: Clean up use of lVar here and in set. if (hasVarsInRegs && lVar == null) lVar = (OptLocalVariable) vars.get(name); if (lVar != null) { if (lVar.getJRegister() == -1) if (lVar.isNumber()) lVar.assignJRegister(getNewWordPairLocal()); else lVar.assignJRegister(getNewWordLocal()); if (lVar.isParameter() && inDirectCallFunction && !itsForcedObjectParameters) {/* Remember that here the isNumber flag means that we want to use the incoming parameter in a Number context, so test the object type and convert the value as necessary. */ if (isNumber) { aload(lVar.getJRegister()); classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); int isNumberLabel = acquireLabel(); int beyond = acquireLabel(); addByteCode(ByteCode.IF_ACMPEQ, isNumberLabel); aload(lVar.getJRegister()); addScriptRuntimeInvoke("toNumber", "(Ljava/lang/Object;)", "D"); addByteCode(ByteCode.GOTO, beyond); markLabel(isNumberLabel); dload((short)(lVar.getJRegister() + 1)); markLabel(beyond); } else { aload(lVar.getJRegister()); classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); int isNumberLabel = acquireLabel(); int beyond = acquireLabel(); addByteCode(ByteCode.IF_ACMPEQ, isNumberLabel); aload(lVar.getJRegister()); addByteCode(ByteCode.GOTO, beyond); markLabel(isNumberLabel); addByteCode(ByteCode.NEW,"java/lang/Double"); addByteCode(ByteCode.DUP); dload((short)(lVar.getJRegister() + 1)); addDoubleConstructor(); markLabel(beyond); } } else { if (lVar.isNumber()) dload(lVar.getJRegister()); else aload(lVar.getJRegister()); } return; } aload(variableObjectLocal); push(name); aload(variableObjectLocal); addScriptRuntimeInvoke("getProp", "(Ljava/lang/Object;Ljava/lang/String;" + "Lorg/mozilla/javascript/Scriptable;)", "Ljava/lang/Object;"); }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/3eb542db2c80d7521ea272c802d999a32072bfb6/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 967, 1537, 12, 6179, 2042, 3092, 328, 1537, 16, 1250, 18103, 16, 17311, 514, 508, 13, 377, 288, 3639, 368, 2660, 30, 9645, 731, 999, 434, 328, 1537, 2674, 471, 316, 444...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 967, 1537, 12, 6179, 2042, 3092, 328, 1537, 16, 1250, 18103, 16, 17311, 514, 508, 13, 377, 288, 3639, 368, 2660, 30, 9645, 731, 999, 434, 328, 1537, 2674, 471, 316, 444...
static int hashFunction(double value)
static int hashFunction(double value, ATermList annos)
static int hashFunction(double value) { return Math.abs((new Double(value)).hashCode()); }
3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/e2ebd7014dd772d64841a1c9b3ee54d9e9975973/ATermRealImpl.java/buggy/aterm/java/aterm/pure/ATermRealImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 509, 1651, 2083, 12, 9056, 460, 16, 432, 4065, 682, 8226, 538, 13, 225, 288, 565, 327, 2361, 18, 5113, 12443, 2704, 3698, 12, 1132, 13, 2934, 2816, 1085, 10663, 225, 289, 2, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 509, 1651, 2083, 12, 9056, 460, 16, 432, 4065, 682, 8226, 538, 13, 225, 288, 565, 327, 2361, 18, 5113, 12443, 2704, 3698, 12, 1132, 13, 2934, 2816, 1085, 10663, 225, 289, 2, -100, ...
super.projectOpened();
public void projectOpened() { super.projectOpened(); final ProjectLevelVcsManager vcsManager = ProjectLevelVcsManager.getInstance(myProject); myAddOptions = vcsManager.getStandardOption(VcsConfiguration.StandardOption.ADD, this); myRemoveOptions = vcsManager.getStandardOption(VcsConfiguration.StandardOption.ADD, this); myCheckoutOptions = vcsManager.getStandardOption(VcsConfiguration.StandardOption.CHECKOUT, this); myEditOption = vcsManager.getStandardOption(VcsConfiguration.StandardOption.EDIT, this); myAddConfirmation = vcsManager.getStandardConfirmation(VcsConfiguration.StandardConfirmation.ADD, this); myRemoveConfirmation = vcsManager.getStandardConfirmation(VcsConfiguration.StandardConfirmation.REMOVE, this); myProjectIsOpened = true; }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/83c4fc2b6d4a05e261f447ec85311094eb49aaf7/CvsVcs2.java/clean/plugins/cvs2/source/com/intellij/cvsSupport2/CvsVcs2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1984, 23115, 1435, 288, 4202, 727, 5420, 2355, 58, 2143, 1318, 20255, 1318, 273, 5420, 2355, 58, 2143, 1318, 18, 588, 1442, 12, 4811, 4109, 1769, 565, 3399, 986, 1320, 273, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1984, 23115, 1435, 288, 4202, 727, 5420, 2355, 58, 2143, 1318, 20255, 1318, 273, 5420, 2355, 58, 2143, 1318, 18, 588, 1442, 12, 4811, 4109, 1769, 565, 3399, 986, 1320, 273, 202...
int calculateLength() { int result = 0; for (Iterator iter = fields.values().iterator(); iter.hasNext();) { Field field = (Field) iter.next(); if (field.getField() == BeginString.FIELD || field.getField() == BodyLength.FIELD || field.getField() == CheckSum.FIELD) { continue; } result += field.getLength(); } Iterator iterator = groups.entrySet().iterator(); while (iterator.hasNext()) { Map.Entry entry = (Map.Entry)iterator.next(); List groupList = (List)entry.getValue();// IntField groupField = new IntField(((Integer)entry.getKey()).intValue());// groupField.setValue(groupList.size());// result += groupField.getLength(); for (int i = 0; i < groupList.size(); i++) { Group group = (Group)groupList.get(i); result += group.calculateLength(); } } return result; }
52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/ac62cdb33fe9cdcbdda5568204116691fedd13fb/FieldMap.java/buggy/src/quickfix/FieldMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 509, 11162, 1782, 1435, 95, 474, 2088, 33, 20, 31, 1884, 12, 3198, 2165, 33, 2821, 18, 2372, 7675, 9838, 5621, 2165, 18, 5332, 2134, 5621, 15329, 974, 1518, 28657, 974, 13, 2165, 18, 4285, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 509, 11162, 1782, 1435, 95, 474, 2088, 33, 20, 31, 1884, 12, 3198, 2165, 33, 2821, 18, 2372, 7675, 9838, 5621, 2165, 18, 5332, 2134, 5621, 15329, 974, 1518, 28657, 974, 13, 2165, 18, 4285, 5...
context.setInFile(key, file, prefix.isGlobal()); prefix.setGlobal(false);
context.setInFile(key, file, true);
public void execute(final Flags prefix, final Context context, final TokenSource source, final Typesetter typesetter) throws InterpreterException { String key = AbstractFileCode.scanInFileKey(context, source, typesetter); source.getOptionalEquals(context); String name = scanFileName(context, source); InFile file; try { file = new InFile(source.getTokenStreamFactory().newInstance(name, "tex", "iso-8859-1")); //TODO gene: encoding? } catch (FileNotFoundException e) { file = null; //ignored on purpose } catch (ConfigurationException e) { throw new InterpreterException(e); } context.setInFile(key, file, prefix.isGlobal()); prefix.setGlobal(false); }
9123 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9123/9e7bc70ca66e1f0db1073d4a0ad229fbdada1af5/Openin.java/buggy/ExTeX/src/java/de/dante/extex/interpreter/primitives/file/Openin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 12, 6385, 10104, 1633, 16, 727, 1772, 819, 16, 5411, 727, 3155, 1830, 1084, 16, 727, 7658, 11214, 1953, 11214, 13, 5411, 1216, 5294, 11599, 503, 288, 3639, 514, 498, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 12, 6385, 10104, 1633, 16, 727, 1772, 819, 16, 5411, 727, 3155, 1830, 1084, 16, 727, 7658, 11214, 1953, 11214, 13, 5411, 1216, 5294, 11599, 503, 288, 3639, 514, 498, 273,...
System.out.println("got an image for: " + e.getAttribute("src") + " " + im);
public JComponent getCustomComponent(Element e, Context c, int setWidth, int setHeight) { JComponent cc = null; if (e == null) { return null; } if (e.getNodeName().equals("img")) { cc = getImageComponent(e); if (cc != null) { return cc; } JButton jb = null; Image im = null; im = c.getCtx().getUac().getImage(e.getAttribute("src")); System.out.println("got an image for: " + e.getAttribute("src") + " " + im); if (im == null) { jb = new JButton("Image unreachable. " + e.getAttribute("alt")); } else { Image i2 = im.getScaledInstance(setWidth, setHeight, Image.SCALE_FAST); System.out.println("i2 = " + i2); ImageIcon ii = new ImageIcon(i2, e.getAttribute("alt")); jb = new JButton(ii); } jb.setBorder(BorderFactory.createEmptyBorder()); jb.setSize(jb.getPreferredSize()); addImageComponent(e, jb); return jb; } //form components Element parentForm = getParentForm(e); //parentForm may be null! No problem! Assume action is this document and method is get. XhtmlForm form = getForm(parentForm); if (form == null) { form = new XhtmlForm(c, parentForm); addForm(parentForm, form); } cc = form.addComponent(c, e); return cc; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/80cc2692a845c0f2174e63bf6a973c279ba11598/XhtmlNamespaceHandler.java/buggy/src/java/org/xhtmlrenderer/simple/extend/XhtmlNamespaceHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 29058, 12736, 1841, 12, 1046, 425, 16, 1772, 276, 16, 509, 20855, 16, 509, 27276, 13, 288, 3639, 29058, 4946, 273, 446, 31, 3639, 309, 261, 73, 422, 446, 13, 288, 5411, 327, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 29058, 12736, 1841, 12, 1046, 425, 16, 1772, 276, 16, 509, 20855, 16, 509, 27276, 13, 288, 3639, 29058, 4946, 273, 446, 31, 3639, 309, 261, 73, 422, 446, 13, 288, 5411, 327, 446, ...
jj_la1[72] = jj_gen;
jj_la1[73] = jj_gen;
final public void MultiplicativeExpression() throws ParseException { /*@bgen(jjtree) MultiplicativeExpression */ ASTMultiplicativeExpression jjtn000 = new ASTMultiplicativeExpression(this, JJTMULTIPLICATIVEEXPRESSION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { UnaryExpression(); checkForDiscard(jjtn000); label_32: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STAR: case SLASH: case REM: ; break; default: jj_la1[72] = jj_gen; break label_32; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STAR: jj_consume_token(STAR); jjtn000.setImage("*");jjtn000.setUnDiscardable(); break; case SLASH: jj_consume_token(SLASH); jjtn000.setImage("/");jjtn000.setUnDiscardable(); break; case REM: jj_consume_token(REM); jjtn000.setImage("%");jjtn000.setUnDiscardable(); break; default: jj_la1[73] = jj_gen; jj_consume_token(-1); throw new ParseException(); } UnaryExpression(); } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (RuntimeException)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/c02806442559ca74c050ba0d574007ed840a210a/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 918, 5991, 28884, 2300, 1435, 1216, 10616, 288, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 5991, 28884, 2300, 1195, 225, 9183, 5002, 28884, 2300, 10684, 5088, 3784, 273, 394, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1071, 918, 5991, 28884, 2300, 1435, 1216, 10616, 288, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 5991, 28884, 2300, 1195, 225, 9183, 5002, 28884, 2300, 10684, 5088, 3784, 273, 394, 91...
sbuf.append(" table { "); sbuf.append(" margin-left: 2em; "); sbuf.append(" margin-right: 2em; "); sbuf.append(" border-left: 2px solid #AAA; ");
sbuf.append("table{ "); sbuf.append("margin-left: 2em; "); sbuf.append("margin-right: 2em; "); sbuf.append("border-left: 2px solid #AAA; ");
public void addCss(StringBuffer sbuf) { sbuf.append("<STYLE type=\"text/css\">"); sbuf.append(" table { "); sbuf.append(" margin-left: 2em; "); sbuf.append(" margin-right: 2em; "); sbuf.append(" border-left: 2px solid #AAA; "); sbuf.append("}"); sbuf.append(LINE_SEP); sbuf.append("TR.even { "); sbuf.append(" background: #FFFFFF; "); sbuf.append("}"); sbuf.append(LINE_SEP); sbuf.append("TR.odd { "); sbuf.append(" background: #EAEAEA; "); sbuf.append("}"); sbuf.append(LINE_SEP); sbuf.append("TD { "); sbuf.append(" padding-right: 1ex; "); sbuf.append(" padding-left: 1ex; "); sbuf.append(" border-right: 2px solid #AAA;"); sbuf.append("}"); sbuf.append(LINE_SEP); sbuf.append("TD.Time, TD.Date { "); sbuf.append(" text-align: right; "); sbuf.append(" font-family: courier, monospace; "); sbuf.append(" font-size: smaller; "); sbuf.append("}"); sbuf.append(LINE_SEP); sbuf .append("TD.RemoteHost, TD.RequestProtocol, TD.RequestHeader, TD.RequestURL, TD.RemoteUser, TD.RequestURI, TD.ServerName {"); sbuf.append(" text-align: left; "); sbuf.append("}"); sbuf.append(LINE_SEP); sbuf .append("TD.RequestAttribute, TD.RequestCookie, TD.ResponseHeader, TD.RequestParameter {"); sbuf.append(" text-align: left; "); sbuf.append("}"); sbuf.append(LINE_SEP); sbuf .append("TD.RemoteIPAddress, TD.LocalIPAddress, TD.ContentLength, TD.StatusCode, TD.LocalPort {"); sbuf.append(" text-align: right; "); sbuf.append("}"); sbuf.append(LINE_SEP); sbuf.append("TR.header { "); sbuf.append(" background: #596ED5; "); sbuf.append(" color: #FFF; "); sbuf.append(" font-weight: bold; "); sbuf.append(" font-size: larger; "); sbuf.append("}"); sbuf.append(LINE_SEP); sbuf.append(" }"); sbuf.append("}"); }
52049 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52049/72de6f8151b7528215bcfe228f8ae4bd010d1715/DefaultCssBuilder.java/buggy/logback-access/src/main/java/ch/qos/logback/access/html/DefaultCssBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 7359, 12, 780, 1892, 2393, 696, 13, 288, 565, 2393, 696, 18, 6923, 2932, 32, 15066, 225, 618, 5189, 955, 19, 5212, 21121, 1769, 565, 2393, 696, 18, 6923, 2932, 565, 1014...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 7359, 12, 780, 1892, 2393, 696, 13, 288, 565, 2393, 696, 18, 6923, 2932, 32, 15066, 225, 618, 5189, 955, 19, 5212, 21121, 1769, 565, 2393, 696, 18, 6923, 2932, 565, 1014...
method.getConstantPool().setConstant(index, new ConstantUtf8(newSignature));
cp.setConstant(index, new ConstantUtf8(newSignature));
public void visitMethod(Method method) { // we search for outer-class-access functions, which // are static, have exactly one argument of this class' type and // return an instance of the outer class' type if (method.getName().startsWith("access$")){ if (!method.isStatic() ) return; String returnType = Type.getReturnType(method.getSignature()).toString(); if (!Tools.sameClass(returnType,oldOuterClassName)) return; Type[] argTypes = Type.getArgumentTypes(method.getSignature()); if (argTypes.length != 1) return; // construct the new signature & use it to overwrite the old one String newSignature = "(L"+newClassName+";)L"+newOuterClassName+";"; int index = method.getSignatureIndex(); method.getConstantPool().setConstant(index, new ConstantUtf8(newSignature)); } // and we check for constructors else if (method.getName().equals("<init>")){ Type[] argTypes = Type.getArgumentTypes(method.getSignature()); if (argTypes.length != 1) return; // modify the signature if neccessary if (Tools.sameClass(argTypes[0].toString(),oldOuterClassName)){ // construct the new signature and use it to overwrite the old one String newSignature = "(L"+newOuterClassName+";)V"; int index = method.getSignatureIndex(); method.getConstantPool().setConstant(index, new ConstantUtf8(newSignature)); } // KK Check code for super-cosntructor call and adjust its signature? } }
56789 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56789/4ec5ee92e1ae3b87f8c7108d35e46b56ade5b60c/ClassModifyingVisitor.java/buggy/src/org/caesarj/mixer/intern/ClassModifyingVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 25138, 12, 1305, 707, 13, 288, 202, 202, 759, 732, 1623, 364, 6390, 17, 1106, 17, 3860, 4186, 16, 1492, 202, 202, 759, 854, 760, 16, 1240, 8950, 1245, 1237, 434, 333, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 25138, 12, 1305, 707, 13, 288, 202, 202, 759, 732, 1623, 364, 6390, 17, 1106, 17, 3860, 4186, 16, 1492, 202, 202, 759, 854, 760, 16, 1240, 8950, 1245, 1237, 434, 333, 6...
recognizer.recognize(batchItem.getTranscript());
Result result = recognizer.recognize(batchItem.getTranscript()); logger.info("File : " + batchItem.getFilename()); logger.info("Result: " + result);
public void decode(String batchFile) { BatchItem batchItem; try { recognizer.allocate(); setBatchFile(batchFile); batchManager.start(); System.out.println("\nBatchDecoder: decoding files in " + batchManager.getFilename()); System.out.println(); while ((batchItem = batchManager.getNextItem()) != null) { InputStream is = setInputStream(batchItem.getFilename()); recognizer.recognize(batchItem.getTranscript()); is.close(); } batchManager.stop(); } catch (IOException io) { System.err.println("I/O error during decoding: " + io.getMessage()); } recognizer.deallocate(); System.out.println("\nBatchDecoder: All files decoded\n"); }
48839 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48839/e159cae0ac153e14888c3bac8f4df4a5cfe66e5e/BatchModeRecognizer.java/buggy/sphinx4/edu/cmu/sphinx/tools/batch/BatchModeRecognizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2495, 12, 780, 2581, 812, 13, 288, 3639, 5982, 1180, 2581, 1180, 31, 3639, 775, 288, 5411, 14603, 1824, 18, 16247, 5621, 5411, 444, 4497, 812, 12, 5303, 812, 1769, 5411, 2581, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2495, 12, 780, 2581, 812, 13, 288, 3639, 5982, 1180, 2581, 1180, 31, 3639, 775, 288, 5411, 14603, 1824, 18, 16247, 5621, 5411, 444, 4497, 812, 12, 5303, 812, 1769, 5411, 2581, ...
public ManualRequestPanel(ManualRequest manualRequest) { _manualRequest = manualRequest;
public ManualRequestPanel(Framework framework) { _manualRequest = new ManualRequest(framework); framework.addPlugin(_manualRequest);
public ManualRequestPanel(ManualRequest manualRequest) { _manualRequest = manualRequest; initComponents(); requestPanel = new RequestPanel(); requestPanel.setEditable(true); requestPanel.setBorder(new TitledBorder("Request")); conversationSplitPane.setLeftComponent(requestPanel); responsePanel = new ResponsePanel(); responsePanel.setBorder(new TitledBorder("Response")); conversationSplitPane.setRightComponent(responsePanel); }
31053 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31053/c2ebd3923045ca4b18d412f095eff8297b496973/ManualRequestPanel.java/buggy/src/org/owasp/webscarab/ui/swing/manualrequest/ManualRequestPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8660, 1462, 691, 5537, 12, 25139, 691, 11297, 691, 13, 288, 3639, 389, 19840, 691, 273, 11297, 691, 31, 7734, 1208, 7171, 5621, 3639, 590, 5537, 273, 394, 1567, 5537, 5621, 3639, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8660, 1462, 691, 5537, 12, 25139, 691, 11297, 691, 13, 288, 3639, 389, 19840, 691, 273, 11297, 691, 31, 7734, 1208, 7171, 5621, 3639, 590, 5537, 273, 394, 1567, 5537, 5621, 3639, 59...
return new XmlStructureViewTreeModel((XmlFile)psiFile); }
return new XmlStructureViewTreeModel((XmlFile)psiFile); }
public StructureViewModel createStructureViewModel() { return new XmlStructureViewTreeModel((XmlFile)psiFile); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/940a7cc9063a0a6ce7d88d2163829a43993aa384/XMLLanguage.java/buggy/source/com/intellij/lang/xml/XMLLanguage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 13348, 1767, 1488, 752, 6999, 1767, 1488, 1435, 288, 3639, 327, 394, 5714, 6999, 1767, 2471, 1488, 12443, 4432, 812, 13, 24275, 812, 1769, 1377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 13348, 1767, 1488, 752, 6999, 1767, 1488, 1435, 288, 3639, 327, 394, 5714, 6999, 1767, 2471, 1488, 12443, 4432, 812, 13, 24275, 812, 1769, 1377, 289, 2, -100, -100, -100, -100, -100,...
StringBuffer value = new StringBuffer();
StringBuilder value = new StringBuilder();
public void parse(InputStream in) throws IOException { LineInputStream lin = (in instanceof LineInputStream) ? (LineInputStream) in : new LineInputStream(in); String name = null; StringBuffer value = new StringBuffer(); while (true) { String line = lin.readLine(); if (line == null) { if (name != null) { addValue(name, value.toString()); } break; } int len = line.length(); if (len < 2) { if (name != null) { addValue(name, value.toString()); } break; } char c1 = line.charAt(0); if (c1 == ' ' || c1 == '\t') { // Continuation int last = len - 1; if (line.charAt(last) != '\r') ++last; value.append(line.substring(0, last)); } else { if (name != null) { addValue(name, value.toString()); } int di = line.indexOf(':'); name = line.substring(0, di); value.setLength(0); do { di++; } while (di < len && line.charAt(di) == ' '); int last = len - 1; if (line.charAt(last) != '\r') ++last; value.append(line.substring(di, last)); } } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/91f4232dfb8a5dff7627558a11285391ca44ebfd/Headers.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/Headers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1109, 12, 4348, 316, 13, 565, 1216, 1860, 225, 288, 565, 5377, 4348, 4739, 273, 261, 267, 1276, 5377, 4348, 13, 692, 1377, 261, 1670, 4348, 13, 316, 294, 394, 5377, 4348, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1109, 12, 4348, 316, 13, 565, 1216, 1860, 225, 288, 565, 5377, 4348, 4739, 273, 261, 267, 1276, 5377, 4348, 13, 692, 1377, 261, 1670, 4348, 13, 316, 294, 394, 5377, 4348, 12,...