rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
new StructMember("value", new primitiveTypeCode(TCKind.tk_any), null);
new StructMember("value", new PrimitiveTypeCode(TCKind.tk_any), null);
public static TypeCode type() { if (typeCode == null) { StructMember[] members = new StructMember[ 2 ]; TypeCode t_id = new aliasTypeCode(new stringTypeCode(TCKind.tk_string), "", "id"); members [ 0 ] = new StructMember("id", t_id, null); members [ 1 ] = new StructMember("value", new primitiveTypeCode(TCKind.tk_any), null); typeCode = ORB.init().create_struct_tc(id(), "NameValuePair", members); } return typeCode; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e9344cb85925e12da0e0cccb4ba0521d8696a226/NameValuePairHelper.java/buggy/core/src/classpath/org/org/omg/CORBA/NameValuePairHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 30332, 618, 1435, 225, 288, 565, 309, 261, 723, 1085, 422, 446, 13, 1377, 288, 3639, 7362, 4419, 8526, 4833, 273, 394, 7362, 4419, 63, 576, 308, 31, 3639, 30332, 268, 67, 350...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30332, 618, 1435, 225, 288, 565, 309, 261, 723, 1085, 422, 446, 13, 1377, 288, 3639, 7362, 4419, 8526, 4833, 273, 394, 7362, 4419, 63, 576, 308, 31, 3639, 30332, 268, 67, 350...
public void clearLiveAcrossCall() { itsLiveAcrossCall = false; }
void clearLiveAcrossCall() { itsLiveAcrossCall = false; }
public void clearLiveAcrossCall() { itsLiveAcrossCall = false; }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/e497d2b898e781a5052344191ab878cd469f3f53/OptLocalVariable.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/OptLocalVariable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2424, 12328, 9988, 3984, 1477, 1435, 565, 288, 2097, 12328, 9988, 3984, 1477, 273, 629, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2424, 12328, 9988, 3984, 1477, 1435, 565, 288, 2097, 12328, 9988, 3984, 1477, 273, 629, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (!Character.isJavaIdentifierPart(c))
if (!Character.isJavaIdentifierPart(c) && (c != '-'))
public static boolean isJavaClassNameInternalForm( char val[], int first, int last) { if (val[first++] != ClassTypeCode) // the L return false; if (val[last--] != ';') // malformed("a class ('L') must end in a ';'"); return false; boolean identStart = true; // pretend we just saw a separator for (int i = first; i <= last; ++i) { char c = val[i]; if (identStart) { if (! Character.isJavaIdentifierStart(c)) return false; // failure to match identifier start. identStart = false; // on to the next one. continue; } if (c == '/') { identStart = true; continue; } /* We have a character that is not the first one of a Java identifier */ if (!Character.isJavaIdentifierPart(c)) return false; /* And on we go around the loop */ } // Must not finish by needing the start of another identifier. return ! identStart; }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/ec910ebd96b04eb3025068399cfd2fd4ad5a8468/VM_TypeDescriptorParsing.java/clean/rvm/src/vm/classLoader/VM_TypeDescriptorParsing.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1250, 353, 5852, 3834, 3061, 1204, 12, 7734, 1149, 1244, 63, 6487, 509, 1122, 16, 509, 1142, 13, 282, 288, 565, 309, 261, 1125, 63, 3645, 9904, 65, 480, 1659, 15460, 13, 368,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1250, 353, 5852, 3834, 3061, 1204, 12, 7734, 1149, 1244, 63, 6487, 509, 1122, 16, 509, 1142, 13, 282, 288, 565, 309, 261, 1125, 63, 3645, 9904, 65, 480, 1659, 15460, 13, 368,...
" [--help] | pathtospells2da\n"+
" [--help] | [-f replacestart] pathtospells2da\n"+
private static void readMe(){ System.out.println("Usage:\n"+ " [--help] | pathtospells2da\n"+ "\n" + " pathtospells2da path of the spells.2da to check\n"+ "\n" + " --help prints this text\n" + "\n" + "\n" + "Looks for duplicate subradial IDs in the FeatID column of the given\n" + "spells.2da\n" ); System.exit(0); }
9794 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9794/01c25f39a8c2e199ed8fa0e3bdd47b0ad552f4b7/DuplicateSubradials.java/clean/DocGen/prc/utils/DuplicateSubradials.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 855, 4667, 1435, 95, 202, 202, 3163, 18, 659, 18, 8222, 2932, 5357, 5581, 82, 6, 15, 21821, 315, 225, 306, 413, 5201, 65, 571, 23059, 74, 6831, 1077, 27893, 65, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 855, 4667, 1435, 95, 202, 202, 3163, 18, 659, 18, 8222, 2932, 5357, 5581, 82, 6, 15, 21821, 315, 225, 306, 413, 5201, 65, 571, 23059, 74, 6831, 1077, 27893, 65, 5...
return "select next value for notifNxtId from seqQueryTable;";
return "select next value for notifNxtId from seqQueryTable";
public String getNextNotifIdSql() { return "select next value for notifNxtId from seqQueryTable;"; }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/04746173cf38a546ba42b9bcbba17788505818bb/MockDatabase.java/buggy/src/services/org/opennms/netmgt/mock/MockDatabase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 6927, 1248, 430, 548, 5101, 1435, 288, 3639, 327, 315, 4025, 1024, 460, 364, 486, 430, 50, 15239, 548, 628, 3833, 1138, 1388, 14432, 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, 514, 6927, 1248, 430, 548, 5101, 1435, 288, 3639, 327, 315, 4025, 1024, 460, 364, 486, 430, 50, 15239, 548, 628, 3833, 1138, 1388, 14432, 565, 289, 2, -100, -100, -100, -100, -100, ...
public abstract List<String> getAllTagNames();
public List<String> getAllTagNames() { ArrayList<String> names = new ArrayList<String>(mNameToTag.keySet()); Collections.sort(names); return names; }
public abstract List<String> getAllTagNames();
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/b17d05d071612293d6f09ab67b1bbdcf47c5a136/ZMailbox.java/clean/ZimbraServer/src/java/com/zimbra/cs/zclient/ZMailbox.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 987, 32, 780, 34, 5514, 1805, 1557, 5621, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 987, 32, 780, 34, 5514, 1805, 1557, 5621, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if(i >= 0) {
if (i >= 0) {
void runToCursor(String fileName, int lineNumber, ActionEvent evt) { Vector v = (Vector) sourceNames.get(fileName); if(v == null) { System.out.println("debugger error: Couldn't find source: " + fileName); } int i; SourceEntry se = null; for (i = v.size() -1; i >= 0; i--) { se = (SourceEntry) v.elementAt(i); if (se.fnOrScript.removeBreakpoint(lineNumber)) { se.fnOrScript.placeBreakpoint(lineNumber); break; } else if(se.fnOrScript.placeBreakpoint(lineNumber)) { se.fnOrScript.removeBreakpoint(lineNumber); break; } } if(i >= 0) { runToCursorFile = fileName; runToCursorLine = lineNumber; actionPerformed(evt); } }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/bebd557da53b74c60ab8525aa96904d4cee6224c/Main.java/buggy/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1086, 774, 6688, 12, 780, 3968, 16, 5397, 509, 13629, 16, 5397, 19641, 6324, 13, 288, 3639, 5589, 331, 273, 261, 5018, 13, 1084, 1557, 18, 588, 12, 17812, 1769, 3639, 309, 12, 90, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 774, 6688, 12, 780, 3968, 16, 5397, 509, 13629, 16, 5397, 19641, 6324, 13, 288, 3639, 5589, 331, 273, 261, 5018, 13, 1084, 1557, 18, 588, 12, 17812, 1769, 3639, 309, 12, 90, ...
if (i == 0) {
if (c == divider) { if (maximize == Maximize.NONE) { if (splitVertical) { c.setBounds(firstSize + margin, margin, dividerSize, innerHeight - (margin * 2)); } else { c.setBounds(margin, firstSize + margin, innerWidth - (margin * 2), dividerSize); } c.setVisible(true); } else { c.setVisible(false); } } else if (cnt == 0) { if (maximize == Maximize.FIRST) { c.setVisible(false); } else { if (splitVertical) { c.setBounds(firstSize + dividerSize + margin, margin, secondSize, innerHeight - (margin * 2)); } else { c.setBounds(margin, firstSize + dividerSize + margin, innerWidth - (margin * 2), secondSize); } c.setVisible(true); } cnt++; } else if (cnt == 1) {
public void apply() { if (container == null) return; int innerHeight = container.getInnerHeight(); int innerWidth = container.getInnerWidth(); if (innerHeight < 10 || innerWidth < 10) return; layoutInProgress = true; int firstSize = (splitVertical ? innerWidth : innerHeight) - dividerSize; int secondSize; if (maximize == Maximize.NONE) { secondSize = firstSize; if (split >= 1) { firstSize = (int)Math.floor(split); } else { firstSize *= split; } secondSize -= firstSize; } else { if (maximize == Maximize.FIRST) { secondSize = 0; } else { secondSize = firstSize; firstSize = 0; } } List<Component> children = container.getChildren(); for (int i = children.size(); --i >= 0;) { Component c = children.get(i); if (i == 0) { if (maximize == Maximize.SECOND) { c.setVisible(false); } else { if (splitVertical) { c.setBounds(0, 0, firstSize, innerHeight); } else { c.setBounds(0, 0, innerWidth, firstSize); } c.setVisible(true); } } else if (i == 1) { if (maximize == Maximize.FIRST) { c.setVisible(false); } else { if (splitVertical) { c.setBounds(firstSize + dividerSize, 0, secondSize, innerHeight); } else { c.setBounds(0, firstSize + dividerSize, innerWidth, secondSize); } c.setVisible(true); } } else if (c == divider) { if (splitVertical) { c.setBounds(firstSize, 0, dividerSize, innerHeight); } else { c.setBounds(0, firstSize, innerWidth, dividerSize); } c.setVisible(true); } else { c.setVisible(false); } } layoutInProgress = false; }
51553 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51553/6042f676d50664ac240f4d4b2ddb5ede5cd53200/SplitLayout.java/buggy/src/thinwire/ui/layout/SplitLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2230, 1435, 288, 4202, 309, 261, 3782, 422, 446, 13, 327, 31, 4202, 509, 3443, 2686, 273, 1478, 18, 588, 2857, 2686, 5621, 4202, 509, 3443, 2384, 273, 1478, 18, 588, 2857, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2230, 1435, 288, 4202, 309, 261, 3782, 422, 446, 13, 327, 31, 4202, 509, 3443, 2686, 273, 1478, 18, 588, 2857, 2686, 5621, 4202, 509, 3443, 2384, 273, 1478, 18, 588, 2857, 23...
public org.quickfix.field.ExpireDate getExpireDate() throws FieldNotFound { org.quickfix.field.ExpireDate value = new org.quickfix.field.ExpireDate();
public quickfix.field.ExpireDate getExpireDate() throws FieldNotFound { quickfix.field.ExpireDate value = new quickfix.field.ExpireDate();
public org.quickfix.field.ExpireDate getExpireDate() throws FieldNotFound { org.quickfix.field.ExpireDate value = new org.quickfix.field.ExpireDate(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderList.java/clean/src/java/src/quickfix/fix44/NewOrderList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 17033, 1626, 336, 17033, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 17033, 1626, 460, 273, 394, 2358, 18, 19525,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 17033, 1626, 336, 17033, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 17033, 1626, 460, 273, 394, 2358, 18, 19525,...
null, null, Binding.SYSTEM);
null, null, Binding.SYSTEM, null);
public void testDoubleParent() throws NotDefinedException { final String parent = "parent"; final String child = "child"; // Set-up the contexts final Context parentContext = contextManager.getContext(parent); parentContext.define(parent, parent, null); final Context childContext = contextManager.getContext(child); childContext.define(child, child, parent); final Set activeContextIds = new HashSet(); activeContextIds.add(parent); activeContextIds.add(child); contextManager.setActiveContextIds(activeContextIds); // Set-up the schemes. final Scheme parentScheme = bindingManager.getScheme(parent); parentScheme.define(parent, parent, null); final Scheme childScheme = bindingManager.getScheme(child); childScheme.define(child, child, parent); bindingManager.setActiveScheme(childScheme); // Add two bindings. final Binding parentBinding = new TestBinding(parent, parent, parent, null, null, Binding.SYSTEM); final Binding childBinding = new TestBinding(child, child, child, null, null, Binding.SYSTEM); bindingManager.addBinding(parentBinding); bindingManager.addBinding(childBinding); // Test to see that only the child is active. assertTrue("The parent should not be active", bindingManager .getActiveBindingsFor(parent).length == 0); assertTrue("The child should be active", bindingManager .getActiveBindingsFor(child).length != 0); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e61bf96d546738a5dfebc5feb8c2bcbe110e4371/BindingInteractionsTest.java/clean/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/keys/BindingInteractionsTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5265, 3054, 1435, 1216, 2288, 8116, 503, 288, 202, 202, 6385, 514, 982, 273, 315, 2938, 14432, 202, 202, 6385, 514, 1151, 273, 315, 3624, 14432, 202, 202, 759, 1000, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5265, 3054, 1435, 1216, 2288, 8116, 503, 288, 202, 202, 6385, 514, 982, 273, 315, 2938, 14432, 202, 202, 6385, 514, 1151, 273, 315, 3624, 14432, 202, 202, 759, 1000, ...
return ((RubyString) getClassPath()).getValue(); }
return ((RubyString) getClassPath()).getValue(); }
public String toName() { if (this == getRuby().getClasses().getNilClass()) { return "nil"; } if (this == getRuby().getClasses().getTrueClass()) { return "true"; } if (this == getRuby().getClasses().getFalseClass()) { return "false"; } return ((RubyString) getClassPath()).getValue(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 358, 461, 1435, 288, 202, 202, 430, 261, 2211, 422, 4170, 10340, 7675, 588, 4818, 7675, 588, 12616, 797, 10756, 288, 1082, 202, 2463, 315, 20154, 14432, 202, 202, 97, 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, 514, 358, 461, 1435, 288, 202, 202, 430, 261, 2211, 422, 4170, 10340, 7675, 588, 4818, 7675, 588, 12616, 797, 10756, 288, 1082, 202, 2463, 315, 20154, 14432, 202, 202, 97, 202, ...
public synchronized void add(EventKey key, MElementListener listener) { if (listener == null || key == null) throw new IllegalArgumentException("Null key or null listener"); // check if there allready is a listener // if (!Arrays.asList(getListeners(key)).contains(listener)) { if (listenerList == NULL_ARRAY) { // if this is the first listener added, // initialize the lists listenerList = new Object[] { key.getType(), key.getName(), listener }; } else { if (!contains(key, listener)) { // Otherwise copy the array and add the new listener int i = listenerList.length; Object[] tmp = new Object[i + 3]; System.arraycopy(listenerList, 0, tmp, 0, i); tmp[i] = key.getType(); tmp[i + 1] = key.getName(); tmp[i + 2] = listener; listenerList = tmp; } } // } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/77a71243718889b5cdf554ddc64e2c066e3441a5/UmlModelEventPump.java/buggy/src_new/org/argouml/model/uml/UmlModelEventPump.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 527, 12, 1133, 653, 498, 16, 490, 1046, 2223, 2991, 13, 288, 3639, 309, 261, 12757, 422, 446, 747, 498, 422, 446, 13, 5411, 604, 394, 2754, 2932, 2041, 498, 578, 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, 3852, 918, 527, 12, 1133, 653, 498, 16, 490, 1046, 2223, 2991, 13, 288, 3639, 309, 261, 12757, 422, 446, 747, 498, 422, 446, 13, 5411, 604, 394, 2754, 2932, 2041, 498, 578, 446, ...
favorites = new LinkedList();
public static void loadFavorites() { favorites = new LinkedList(); synchronized(lock) { String favorite; int i = 0; while((favorite = jEdit.getProperty("vfs.favorite." + i)) != null) { favorites.add(new FavoritesEntry(favorite, jEdit.getIntegerProperty("vfs.favorite." + i + ".type", VFS.DirectoryEntry.DIRECTORY))); i++; } } } //}}}
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/175462262085673c8ed99e5470fc1d9acb48400b/FavoritesVFS.java/buggy/org/gjt/sp/jedit/io/FavoritesVFS.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1262, 31745, 2997, 1435, 202, 95, 202, 202, 19731, 280, 2997, 273, 394, 10688, 5621, 202, 202, 22043, 12, 739, 13, 202, 202, 95, 1082, 202, 780, 30705, 31, 1082, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1262, 31745, 2997, 1435, 202, 95, 202, 202, 19731, 280, 2997, 273, 394, 10688, 5621, 202, 202, 22043, 12, 739, 13, 202, 202, 95, 1082, 202, 780, 30705, 31, 1082, 202...
CHECK_INTERVAL = 0;
checkInterval = 0;
public static boolean checkNeeded() { if (alreadyChecked) { return false; } final UpdateSettingsConfigurable settings = UpdateSettingsConfigurable.getInstance(); if (settings == null || UPDATE_URL == null) return false; final String checkPeriod = settings.CHECK_PERIOD; if (checkPeriod.equals(UpdateSettingsConfigurable.ON_START_UP)) { CHECK_INTERVAL = 0; } if (checkPeriod.equals(UpdateSettingsConfigurable.DAILY)) { CHECK_INTERVAL = DateFormatUtil.DAY; } if (settings.CHECK_PERIOD.equals(UpdateSettingsConfigurable.WEEKLY)) { CHECK_INTERVAL = DateFormatUtil.WEEK; } if (settings.CHECK_PERIOD.equals(UpdateSettingsConfigurable.MONTHLY)) { CHECK_INTERVAL = DateFormatUtil.MONTH; } final long timeDelta = System.currentTimeMillis() - settings.LAST_TIME_CHECKED; if (Math.abs(timeDelta) < CHECK_INTERVAL) return false; return settings.CHECK_NEEDED; }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/e78d542acc516f7398ad2fa3a200de135592eda9/UpdateChecker.java/buggy/source/com/intellij/openapi/updateSettings/impl/UpdateChecker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1250, 866, 11449, 1435, 288, 565, 309, 261, 17583, 11454, 13, 288, 3639, 327, 629, 31, 565, 289, 565, 727, 2315, 2628, 31660, 1947, 273, 2315, 2628, 31660, 18, 588, 1442, 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, 282, 1071, 760, 1250, 866, 11449, 1435, 288, 565, 309, 261, 17583, 11454, 13, 288, 3639, 327, 629, 31, 565, 289, 565, 727, 2315, 2628, 31660, 1947, 273, 2315, 2628, 31660, 18, 588, 1442, 5621,...
int bracketLevel = 0; while(true) { char ch = more(); if(ch == '[') ++bracketLevel; if(ch == ']') --bracketLevel; if(ch == '>' && bracketLevel == 0) break;
char ch = requireNextS(); if(!isNameStartChar(ch)) { throwNotNameStart(ch);
protected void parseDocdecl() throws XMLStreamException { //ASSUMPTION: seen <!D posStart = pos-3; try { if(more() != 'O' || more() != 'C' || more() != 'T' || more() != 'Y' || more() != 'P' || more() != 'E') { throw new XMLStreamException("expected <!DOCTYPE", getLocation()); } // do simple and crude scanning for end of doctype // [28] doctypedecl ::= '<!DOCTYPE' S Name (S ExternalID)? S? ('[' // (markupdecl | DeclSep)* ']' S?)? '>' /* 07-Nov-2004, TSa: Should be fairly easy to verify (obligatory) * root element, and optional public/system ids too. */ int bracketLevel = 0; while(true) { char ch = more(); if(ch == '[') ++bracketLevel; if(ch == ']') --bracketLevel; if(ch == '>' && bracketLevel == 0) break; } posEnd = pos ; processDTD(); } catch (EOFException eofe) { throw new XMLStreamException(EOF_MSG, getLocation(), eofe); } }
2047 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2047/0a48261e76a836a4396f2c4bf6848c3d734fe1fd/MXParser.java/buggy/dev/src/com/bea/xml/stream/MXParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1109, 1759, 8840, 1435, 3639, 1216, 21526, 565, 288, 3639, 368, 8423, 2799, 3725, 30, 5881, 5719, 40, 3639, 949, 1685, 273, 949, 17, 23, 31, 3639, 775, 288, 5411, 309, 12, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1109, 1759, 8840, 1435, 3639, 1216, 21526, 565, 288, 3639, 368, 8423, 2799, 3725, 30, 5881, 5719, 40, 3639, 949, 1685, 273, 949, 17, 23, 31, 3639, 775, 288, 5411, 309, 12, 10...
anchor = null;
public static SVNWCAccess create(File file) throws SVNException { File parentFile = file.getParentFile(); String name = file.getName(); try { if (file.exists()) { name = file.getCanonicalFile().getName(); } } catch (IOException e) { } if (parentFile != null && (!parentFile.exists() || !parentFile.isDirectory())) { // parent doesn't exist or not a directory SVNErrorManager.error(1, null); } SVNDirectory anchor = parentFile != null ? new SVNDirectory(parentFile) : null; SVNDirectory target = file.isDirectory() ? new SVNDirectory(file) : null; if (anchor == null || !anchor.isVersioned()) { // parent is not versioned, do not use it. anchor = null; } if (target == null || !target.isVersioned()) { // target is missing, target is file or not versioned dir. // do not use it. target = null; } if (target != null && anchor != null) { // both are versioned dirs, // check whether target is switched. SVNEntry targetInAnchor = anchor.getEntries().getEntry(name); SVNDirectory anchorCopy = anchor; try { if (targetInAnchor == null) { // target is disjoint, do not use anchor. anchor = null; } else { SVNEntry anchorEntry = anchor.getEntries().getEntry(""); SVNEntry targetEntry = target.getEntries().getEntry(""); String anchorURL = anchorEntry.getURL(); String targetURL = targetEntry.getURL(); if (anchorURL != null && targetURL != null) { String urlName = PathUtil.encode(targetInAnchor.getName()); String expectedURL = PathUtil.append(anchorURL, urlName); if (!expectedURL.equals(targetURL) || !anchorURL.equals(PathUtil.removeTail(targetURL))) { // switched, do not use anchor. anchor = null; } else if (targetInAnchor.isDirectory()){ // not switched, target is valid dir, just use it. anchor = null; } } } } finally { // close entries. if (anchor == null) { anchorCopy.getEntries().close(); anchorCopy.dispose(); anchorCopy = null; } target.dispose(); } } else if (target == null && anchor == null) { // both are not versioned :( SVNErrorManager.error(1, null); } return new SVNWCAccess( anchor != null ? anchor : target, target != null ? target : anchor, anchor != null ? name : ""); }
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/ca031849d6f28ee2148e391794aba07de239432a/SVNWCAccess.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/ws/log/SVNWCAccess.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 29537, 50, 59, 39, 1862, 752, 12, 812, 585, 13, 1216, 29537, 50, 503, 288, 3639, 1387, 982, 812, 273, 585, 18, 588, 3054, 812, 5621, 3639, 514, 508, 273, 585, 18, 17994, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 29537, 50, 59, 39, 1862, 752, 12, 812, 585, 13, 1216, 29537, 50, 503, 288, 3639, 1387, 982, 812, 273, 585, 18, 588, 3054, 812, 5621, 3639, 514, 508, 273, 585, 18, 17994, 56...
public void setSelectedScope(int scope) {}
public void setSelectedScope(int scope) { }
public BugzillaSearchOptionPage(){ scontainer = new ISearchPageContainer(){ public ISelection getSelection() { // TODO Auto-generated method stub return null; } public IRunnableContext getRunnableContext() { return null; } public void setPerformActionEnabled(boolean state) { Button ok = BugzillaQueryDialog.this.getButton(Dialog.OK); if(ok != null) ok.setEnabled(state); } public int getSelectedScope() { return 0; } public void setSelectedScope(int scope) {} public boolean hasValidScope() { return true; } public IWorkingSet[] getSelectedWorkingSets() { return null; } public void setSelectedWorkingSets(IWorkingSet[] workingSets) {} }; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/dccfe33af49d21c69bb06978dc05b7fc4ac8d8b1/BugzillaQueryDialog.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasks/BugzillaQueryDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 16907, 15990, 2979, 1895, 1964, 1435, 95, 1082, 202, 87, 3782, 273, 394, 467, 2979, 1964, 2170, 1435, 95, 9506, 202, 482, 467, 6233, 23204, 1435, 288, 6862, 202, 759, 2660, 806...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 16907, 15990, 2979, 1895, 1964, 1435, 95, 1082, 202, 87, 3782, 273, 394, 467, 2979, 1964, 2170, 1435, 95, 9506, 202, 482, 467, 6233, 23204, 1435, 288, 6862, 202, 759, 2660, 806...
return toPDFColorSpace(fopImage.getColorSpace());
if (isCCF || isDCT || isPS) { return toPDFColorSpace(fopImage.getColorSpace()); } else { return toPDFColorSpace(ColorSpace.getInstance(ColorSpace.CS_sRGB)); }
public PDFColorSpace getColorSpace() { // DeviceGray, DeviceRGB, or DeviceCMYK return toPDFColorSpace(fopImage.getColorSpace()); }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/f7ad4807b947517931b8b97513de728104cea2e2/FopPDFImage.java/clean/src/java/org/apache/fop/render/pdf/FopPDFImage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 12667, 2957, 3819, 15672, 3819, 1435, 288, 3639, 368, 6077, 23521, 16, 6077, 11343, 16, 578, 6077, 9611, 61, 47, 3639, 309, 261, 291, 6743, 42, 747, 353, 40, 1268, 747, 353, 5857, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12667, 2957, 3819, 15672, 3819, 1435, 288, 3639, 368, 6077, 23521, 16, 6077, 11343, 16, 578, 6077, 9611, 61, 47, 3639, 309, 261, 291, 6743, 42, 747, 353, 40, 1268, 747, 353, 5857, ...
_min = null; _size = 0;
_min = null; _size = 0;
public void clear() { _modify++; _min = null; _size = 0; }
47032 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47032/f63e1142cae73862c9c4f7b6ce46225b40f3ef86/FibonacciHeap.java/clean/src/org/_3pq/jgrapht/experimental/heap/FibonacciHeap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2424, 1435, 288, 3639, 389, 17042, 9904, 31, 3639, 389, 1154, 273, 446, 31, 3639, 389, 1467, 273, 374, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 2424, 1435, 288, 3639, 389, 17042, 9904, 31, 3639, 389, 1154, 273, 446, 31, 3639, 389, 1467, 273, 374, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (perspList.isEmpty()) return;
if (perspList.isEmpty()) { return; }
public void closeAllPerspectives(boolean saveEditors, boolean closePage) { if (perspList.isEmpty()) return; // Always unzoom if (isZoomed()) zoomOut(); // Close all editors if (!closeAllEditors(saveEditors)) return; // Deactivate the active perspective and part setPerspective((Perspective) null); // Close each perspective in turn PerspectiveList oldList = perspList; perspList = new PerspectiveList(); Iterator itr = oldList.iterator(); while (itr.hasNext()) closePerspective((Perspective) itr.next(), false, false); if (closePage) { close(); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WorkbenchPage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1746, 1595, 14781, 1181, 3606, 12, 6494, 1923, 4666, 1383, 16, 1250, 1746, 1964, 13, 288, 3639, 309, 261, 10422, 84, 682, 18, 291, 1921, 10756, 5411, 327, 31, 3639, 368, 14178,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1746, 1595, 14781, 1181, 3606, 12, 6494, 1923, 4666, 1383, 16, 1250, 1746, 1964, 13, 288, 3639, 309, 261, 10422, 84, 682, 18, 291, 1921, 10756, 5411, 327, 31, 3639, 368, 14178,...
private void createDropDownComponent(int iXLoc, int iYLoc) { int iShellHeight = 220; int iShellWidth = 160; if (!bGradientEnabled) { iShellHeight = iShellHeight - 30; } if (!bImageEnabled) { iShellHeight = iShellHeight - 30; } Shell shell = new Shell(this.getShell(), SWT.NONE); shell.setLayout(new FillLayout()); shell.setSize(iShellWidth, iShellHeight); shell.setLocation(iXLoc, iYLoc);
private void createDropDownComponent(int iXLoc, int iYLoc) { int iShellHeight = 220; int iShellWidth = 160; if (!bGradientEnabled) { iShellHeight = iShellHeight - 30; } if (!bImageEnabled) { iShellHeight = iShellHeight - 30; } Shell shell = new Shell(this.getShell(), SWT.NONE); shell.setLayout(new FillLayout()); shell.setSize(iShellWidth, iShellHeight); shell.setLocation(iXLoc, iYLoc);
private void createDropDownComponent(int iXLoc, int iYLoc) { int iShellHeight = 220; int iShellWidth = 160; // Reduce the height based on which buttons are to be shown. if (!bGradientEnabled) { iShellHeight = iShellHeight - 30; } if (!bImageEnabled) { iShellHeight = iShellHeight - 30; } Shell shell = new Shell(this.getShell(), SWT.NONE); shell.setLayout(new FillLayout()); shell.setSize(iShellWidth, iShellHeight); shell.setLocation(iXLoc, iYLoc); cmpDropDown = new Composite(shell, SWT.NONE); GridLayout glDropDown = new GridLayout(); glDropDown.marginHeight = 2; glDropDown.marginWidth = 2; glDropDown.horizontalSpacing = 1; glDropDown.verticalSpacing = 1; glDropDown.numColumns = 8; cmpDropDown.setLayout(glDropDown); cmpDropDown.addKeyListener(this); if (colorArray == null) { colorArray = createColorMap(getDisplay()); } ColorSelectionCanvas cnv = new ColorSelectionCanvas(cmpDropDown, SWT.BORDER, colorArray); GridData gdCnv = new GridData(GridData.FILL_BOTH); gdCnv.horizontalSpan = 8; gdCnv.heightHint = 100; cnv.setLayoutData(gdCnv); cnv.addMouseListener(this); if (this.fCurrent instanceof ColorDefinition) { cnv.setColor(new Color(this.getDisplay(), ((ColorDefinition) fCurrent).getRed(), ((ColorDefinition) fCurrent).getGreen(), ((ColorDefinition) fCurrent).getBlue())); } btnTransparent = new Button(cmpDropDown, SWT.TOGGLE); GridData gdTransparent = new GridData(GridData.FILL_BOTH); gdTransparent.heightHint = 26; gdTransparent.horizontalSpan = 8; btnTransparent.setLayoutData(gdTransparent); btnTransparent.setText("Transparent"); btnTransparent.addSelectionListener(this); if (fCurrent == null) { btnTransparent.setSelection(true); } else { btnTransparent.setSelection(false); } if (this.bGradientEnabled) { btnGradient = new Button(cmpDropDown, SWT.NONE); GridData gdGradient = new GridData(GridData.FILL_BOTH); gdTransparent.heightHint = 26; gdGradient.horizontalSpan = 8; btnGradient.setLayoutData(gdGradient); btnGradient.setText("Gradient..."); btnGradient.addSelectionListener(this); } btnCustom = new Button(cmpDropDown, SWT.NONE); GridData gdCustom = new GridData(GridData.FILL_BOTH); gdTransparent.heightHint = 26; gdCustom.horizontalSpan = 8; btnCustom.setLayoutData(gdCustom); btnCustom.setText("Custom Color..."); btnCustom.addSelectionListener(this); if (this.bImageEnabled) { btnImage = new Button(cmpDropDown, SWT.NONE); GridData gdImage = new GridData(GridData.FILL_BOTH); gdTransparent.heightHint = 26; gdImage.horizontalSpan = 8; btnImage.setLayoutData(gdImage); btnImage.setText("Image..."); btnImage.addSelectionListener(this); } shell.layout(); shell.open(); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/12ceaf47df2f9cd8a8b8c900d32f0a3b4518158f/FillChooserComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FillChooserComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 7544, 4164, 1841, 12, 474, 277, 60, 1333, 16, 509, 277, 61, 1333, 13, 288, 202, 202, 474, 277, 13220, 2686, 273, 576, 3462, 31, 202, 202, 474, 277, 13220, 2384, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 7544, 4164, 1841, 12, 474, 277, 60, 1333, 16, 509, 277, 61, 1333, 13, 288, 202, 202, 474, 277, 13220, 2686, 273, 576, 3462, 31, 202, 202, 474, 277, 13220, 2384, 2...
error(XSLTErrorResources.ER_FUNCTION_NOT_SUPPORTED);
error(XMLErrorResources.ER_FUNCTION_NOT_SUPPORTED);
public DocumentType getDoctype() { error(XSLTErrorResources.ER_FUNCTION_NOT_SUPPORTED); return null; }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/b8535aab90f53557026b4cc2ea5220c402d57322/UnImplNode.java/clean/src/org/apache/xml/utils/UnImplNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4319, 559, 11165, 12387, 1435, 225, 288, 565, 555, 12, 4201, 668, 3805, 18, 654, 67, 7788, 67, 4400, 67, 21134, 1769, 565, 327, 446, 31, 225, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4319, 559, 11165, 12387, 1435, 225, 288, 565, 555, 12, 4201, 668, 3805, 18, 654, 67, 7788, 67, 4400, 67, 21134, 1769, 565, 327, 446, 31, 225, 289, 2, -100, -100, -100, -100, -100,...
public IStatus run(IProgressMonitor monitor) { if (shutdown)// Cancelled on shutdown return Status.CANCEL_STATUS; while(updatesPending()){ try { Thread.sleep(100); } catch (InterruptedException e) { //Cancel and try again if there was an error schedule(); return Status.CANCEL_STATUS; } } monitor.beginTask( WorkbenchMessages.DecorationScheduler_CalculatingTask, 100); // will block if there are no resources to be decorated DecorationReference reference; monitor.worked(5); int workCount = 5; while ((reference = nextElement()) != null) { // Count up to 90 to give the appearance of updating if (workCount < 90) { monitor.worked(1); workCount++; } DecorationBuilder cacheResult = new DecorationBuilder(); monitor.subTask(reference.getSubTask()); // Don't decorate if there is already a pending result Object element = reference.getElement(); boolean elementIsCached = true; // Synchronize on the result lock as we want to // be sure that we do not try and decorate during // label update servicing. elementIsCached = resultCache.containsKey(element); if (elementIsCached) { pendingUpdate.add(element); } if (!elementIsCached) { // Calculate the decoration decoratorManager.getLightweightManager() .getDecorations(element, cacheResult); // If we should update regardless then put a result // anyways if (cacheResult.hasValue() || reference.shouldForceUpdate()) { // Synchronize on the result lock as we want to // be sure that we do not try and decorate during // label update servicing. // Note: resultCache and pendingUpdate modifications // must be done atomically. // Add the decoration even if it's empty in // order to indicate that the decoration is // ready resultCache .put(element, cacheResult.createResult()); // Add an update for only the original element // to // prevent multiple updates and clear the cache. pendingUpdate.add(element); } } // Only notify listeners when we have exhausted the // queue of decoration requests. if (awaitingDecoration.isEmpty()) { decorated(); } } monitor.worked(100 - workCount); monitor.done(); return Status.OK_STATUS; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/9f91fdc102dc0bda0f133ae3012af277ee55d3ef/DecorationScheduler.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/DecorationScheduler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 45, 1482, 2681, 12, 45, 5491, 11415, 305, 535, 4089, 15329, 9506, 202, 430, 12, 15132, 13, 759, 21890, 265, 15132, 6862, 202, 2463, 1482, 18, 25268, 67, 8608, 31, 6862, 9506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 45, 1482, 2681, 12, 45, 5491, 11415, 305, 535, 4089, 15329, 9506, 202, 430, 12, 15132, 13, 759, 21890, 265, 15132, 6862, 202, 2463, 1482, 18, 25268, 67, 8608, 31, 6862, 9506, ...
options.upgmaStartingTree = upgmaStartingTreeCheck.isSelected(); }
options.upgmaStartingTree = upgmaStartingTreeCheck.isSelected(); }
public void getOptions(BeautiOptions options) { if (settingOptions) return; if (treePriorCombo.getSelectedIndex() == 0) { options.nodeHeightPrior = BeautiOptions.CONSTANT; } else if (treePriorCombo.getSelectedIndex() == 1) { options.nodeHeightPrior = BeautiOptions.EXPONENTIAL; } else if (treePriorCombo.getSelectedIndex() == 2) { options.nodeHeightPrior = BeautiOptions.LOGISTIC; } else if (treePriorCombo.getSelectedIndex() == 3) { options.nodeHeightPrior = BeautiOptions.EXPANSION; } else if (treePriorCombo.getSelectedIndex() == 4) { options.nodeHeightPrior = BeautiOptions.SKYLINE; Integer groupCount = groupCountField.getValue(); if (groupCount != null) { options.skylineGroupCount = groupCount.intValue(); } else { options.skylineGroupCount = 5; } } else if (treePriorCombo.getSelectedIndex() == 5) { options.nodeHeightPrior = BeautiOptions.YULE; } else if (treePriorCombo.getSelectedIndex() == 6) { options.nodeHeightPrior = BeautiOptions.BIRTH_DEATH; Double samplingProportion = samplingProportionField.getValue(); if (samplingProportion != null) { options.birthDeathSamplingProportion = samplingProportion.doubleValue(); } else { options.birthDeathSamplingProportion = 1.0; } } else { throw new RuntimeException("Unexpected value from treePriorCombo"); } options.parameterization = parameterizationCombo.getSelectedIndex(); options.skylineModel = bayesianSkylineCombo.getSelectedIndex(); options.upgmaStartingTree = upgmaStartingTreeCheck.isSelected(); }
51824 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51824/1e32ed210b082e8b868c30911b1bb42c7fed4f71/PriorsPanel.java/buggy/src/dr/app/beauti/PriorsPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9849, 12, 1919, 5854, 77, 1320, 702, 13, 288, 3639, 309, 261, 8920, 1320, 13, 327, 31, 3639, 309, 261, 3413, 25355, 16156, 18, 588, 7416, 1016, 1435, 422, 374, 13, 288, 5411,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9849, 12, 1919, 5854, 77, 1320, 702, 13, 288, 3639, 309, 261, 8920, 1320, 13, 327, 31, 3639, 309, 261, 3413, 25355, 16156, 18, 588, 7416, 1016, 1435, 422, 374, 13, 288, 5411,...
stopRadioButtons.setEnabled(true);
stopOnErrorButton.setEnabled(true);
public void widgetSelected(SelectionEvent e) { if (defButton.getSelection() == true) { commandText.setEnabled(false); stopRadioButtons.setEnabled(true); } else { commandText.setEnabled(true); stopRadioButtons.setEnabled(false); } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/c1d289e14d321f3ae46d5e7502730f784a338546/MakeTargetDialog.java/buggy/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/dialogs/MakeTargetDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 9506, 202, 430, 261, 536, 3616, 18, 588, 6233, 1435, 422, 638, 13, 288, 6862, 202, 3076, 1528, 18, 542, 1526, 12, 5743, 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, 1875, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 9506, 202, 430, 261, 536, 3616, 18, 588, 6233, 1435, 422, 638, 13, 288, 6862, 202, 3076, 1528, 18, 542, 1526, 12, 5743, 1769, ...
String s = executeExpr("[Gender].DefaultMember.Level.UniqueName"); Assert.assertEquals("[Gender].[(All)]", s);
assertExprReturns("[Gender].DefaultMember.Level.UniqueName", "[Gender].[(All)]");
public void testLevelUniqueName() { String s = executeExpr("[Gender].DefaultMember.Level.UniqueName"); Assert.assertEquals("[Gender].[(All)]", s); }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/3041f930b5fc4bf6aa3339845b828801c1d8b366/FunctionTest.java/clean/testsrc/main/mondrian/olap/fun/FunctionTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2355, 6303, 461, 1435, 288, 3639, 514, 272, 273, 1836, 4742, 2932, 63, 43, 2345, 8009, 1868, 4419, 18, 2355, 18, 6303, 461, 8863, 3639, 5452, 18, 11231, 8867, 2932, 63, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2355, 6303, 461, 1435, 288, 3639, 514, 272, 273, 1836, 4742, 2932, 63, 43, 2345, 8009, 1868, 4419, 18, 2355, 18, 6303, 461, 8863, 3639, 5452, 18, 11231, 8867, 2932, 63, ...
parse(0, in.getFilePointer(), in.length());
parse(0, 0, in.length());
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessFile(id, "r"); spork = true; offsets = new Vector(); chunkSizes = new Vector(); parse(0, 0, in.length()); numImages = offsets.size(); String pixelType = "int"; int bpp = bitsPerPixel / 8; bpp %= 4; if (bpp == 0) bpp++; bpp *= 8; pixelType += bpp; // The metadata store we're working with. MetadataStore store = getMetadataStore(); store.setPixels( new Integer(width), new Integer(height), new Integer(numImages), new Integer(bitsPerPixel < 40 ? 3 : 1), new Integer(1), pixelType, new Boolean(little), "XYCZT", null); // this handles the case where the data and resource forks have been // separated if (spork) { // first we want to check if there is a resource fork present // the resource fork will generally have the same name as the data fork, // but will have either the prefix "._" or the suffix ".qtr" // (or <filename>/rsrc on a Mac) String base = null; if (id.indexOf(".") != -1) { base = id.substring(0, id.lastIndexOf(".")); } else base = id; File f = new File(base + ".qtr"); if (f.exists()) { in = new RandomAccessFile(f.getAbsolutePath(), "r"); stripHeader(); parse(0, in.getFilePointer(), in.length()); numImages = offsets.size(); return; } else { f = new File(base.substring(0, base.lastIndexOf(File.separator) + 1) + "._" + base.substring(base.lastIndexOf(File.separator) + 1)); if (f.exists()) { in = new RandomAccessFile(f.getAbsolutePath(), "r"); stripHeader(); parse(0, in.getFilePointer(), in.length()); numImages = offsets.size(); return; } else { f = new File(base + "/rsrc"); if (f.exists()) { in = new RandomAccessFile(f.getAbsolutePath(), "r"); stripHeader(); parse(0, in.getFilePointer(), in.length()); numImages = offsets.size(); return; } } } throw new FormatException("QuickTime resource fork not found. " + " To avoid this issue, please flatten your QuickTime movies " + "before importing with Bio-Formats."); /* TODO // If we didn't find the resource fork, we can check to see if the file // uses a JPEG-compatible codec. In this case, we can do some guesswork // to read the file; otherwise we will fail gracefully. if (DEBUG) { System.out.println("Failed to find the QuickTime resource fork. " + "Attempting to proceed using only the data fork."); } // read through the file looking for occurences of the codec string numImages = 0; String codecString = new String(pixels, 4, 4); if (codecString.equals("mjpg")) codec = "mjpb"; else codec = codecString; if (codec.equals("mjpb") || codec.equals("jpeg")) { // grab the width, height, and bits per pixel from the first plane } else { throw new FormatException("Sorry, this QuickTime movie does not " + "contain a Resource Fork. Support for this case will be improved " + "as time permits. To avoid this issue, please flatten your " + "QuickTime movies before importing with Bio-Formats."); } boolean canAdd = true; for (int i=0; i<pixels.length-5; i++) { if (codecString.equals(new String(pixels, i, 4))) { if (canAdd) { offsets.add(new Integer(i - 4)); numImages++; canAdd = false; } else { canAdd = true; } i += 1000; } } */ } }
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/2df09d33bfdc966378aae0cc09cb503afb983bc2/QTReader.java/clean/loci/formats/in/QTReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 316, 273, 394, 8072, 26933, 12, 350, 16, 315, 86, 8863, 565, 1694...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 316, 273, 394, 8072, 26933, 12, 350, 16, 315, 86, 8863, 565, 1694...
public void visitFADD(FADD obj) { pushValue(Type.FLOAT); }
public void visitFADD(FADD obj) { consumeStack(obj); pushValue(Type.FLOAT); }
public void visitFADD(FADD obj) { pushValue(Type.FLOAT); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/9e55b32a478d9bf623212d8a8aa6e1446e58c8b5/TypeFrameModelingVisitor.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/TypeFrameModelingVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 42, 8355, 12, 42, 8355, 1081, 13, 6862, 202, 95, 1817, 620, 12, 559, 18, 15640, 1769, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 42, 8355, 12, 42, 8355, 1081, 13, 6862, 202, 95, 1817, 620, 12, 559, 18, 15640, 1769, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SendEMailDialog semd = new SendEMailDialog(me.frame,screen);
SendEMailDialog semd = new SendEMailDialog(me.getParentView((Session)this),screen);
private void sendScreenEMail() { SendEMailDialog semd = new SendEMailDialog(me.frame,screen); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/a61dbdd53c996e8a76dc4165e5010c2379355b80/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 1366, 7956, 3375, 671, 1435, 288, 1377, 2479, 3375, 671, 6353, 6111, 72, 273, 394, 2479, 3375, 671, 6353, 12, 3501, 18, 588, 3054, 1767, 12443, 2157, 13, 2211, 3631, 9252, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 1366, 7956, 3375, 671, 1435, 288, 1377, 2479, 3375, 671, 6353, 6111, 72, 273, 394, 2479, 3375, 671, 6353, 12, 3501, 18, 588, 3054, 1767, 12443, 2157, 13, 2211, 3631, 9252, 1769...
WorkbenchJob openJob = new WorkbenchJob(ProgressMessages.ProgressMonitorFocusJobDialog_UserDialogJob) {
WorkbenchJob openJob = new WorkbenchJob( ProgressMessages.ProgressMonitorFocusJobDialog_UserDialogJob) {
public void show(Job jobToWatch,final Shell originatingShell) { job = jobToWatch; //after the dialog is opened we can get access to its monitor job.setProperty(IProgressConstants.PROPERTY_IN_DIALOG, Boolean.TRUE); ProgressManager.getInstance().progressFor(job).addProgressListener( getBlockingProgressMonitor()); setOpenOnRun(false); aboutToRun(); //start with a quick busy indicator. Lock the UI as we //want to preserve modality BusyIndicator.showWhile(PlatformUI.getWorkbench().getDisplay(), new Runnable() { public void run() { try { Thread .sleep(ProgressManagerUtil.SHORT_OPERATION_TIME); } catch (InterruptedException e) { //Do not log as this is a common operation from the lock listener } } }); WorkbenchJob openJob = new WorkbenchJob(ProgressMessages.ProgressMonitorFocusJobDialog_UserDialogJob) { /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { //if the job is done at this point, we don't need the dialog if (job.getState() == Job.NONE) { finishedRun(); cleanUpFinishedJob(); return Status.CANCEL_STATUS; } //now open the progress dialog if nothing else is if (!ProgressManagerUtil .safeToOpen(ProgressMonitorFocusJobDialog.this,originatingShell)) { return Status.CANCEL_STATUS; } //Do not bother if the parent is disposed if (getParentShell() != null && getParentShell().isDisposed()) { return Status.CANCEL_STATUS; } open(); return Status.OK_STATUS; } }; openJob.setSystem(true); openJob.schedule(); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/35d15f71cf899f7392f14dee1944aa390f1a1388/ProgressMonitorFocusJobDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressMonitorFocusJobDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2405, 12, 2278, 1719, 774, 5234, 16, 6385, 19433, 4026, 1776, 13220, 13, 288, 202, 202, 4688, 273, 1719, 774, 5234, 31, 202, 202, 759, 5205, 326, 6176, 353, 10191, 732, 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, 2405, 12, 2278, 1719, 774, 5234, 16, 6385, 19433, 4026, 1776, 13220, 13, 288, 202, 202, 4688, 273, 1719, 774, 5234, 31, 202, 202, 759, 5205, 326, 6176, 353, 10191, 732, 8...
try { while (true) {
while (true) { try {
public void run() { try { while (true) { MapOutputLocation loc = null; long size = -1; synchronized (scheduledCopies) { while (scheduledCopies.isEmpty()) { scheduledCopies.wait(); } loc = (MapOutputLocation)scheduledCopies.remove(0); } try { start(loc); pingTimer.progress(); size = copyOutput(loc, pingTimer); pingTimer.reset(); } catch (IOException e) { LOG.warn(reduceTask.getTaskId() + " copy failed: " + loc.getMapTaskId() + " from " + loc.getHost()); LOG.warn(StringUtils.stringifyException(e)); } finish(size); } } catch (InterruptedException e) { } // ALL DONE! }
55137 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55137/68bc787be3d35fb0628d5185b88a6cc2f0576a87/ReduceTaskRunner.java/buggy/src/java/org/apache/hadoop/mapred/ReduceTaskRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 1377, 775, 288, 3639, 1323, 261, 3767, 13, 288, 5375, 1635, 1447, 2735, 1515, 273, 446, 31, 1850, 1525, 963, 273, 300, 21, 31, 10792, 3852, 261, 23307, 15670, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 1377, 775, 288, 3639, 1323, 261, 3767, 13, 288, 5375, 1635, 1447, 2735, 1515, 273, 446, 31, 1850, 1525, 963, 273, 300, 21, 31, 10792, 3852, 261, 23307, 15670, ...
public static void sync() throws InlinePragma {}
public static void sync() throws InlinePragma { }
public static void sync() throws InlinePragma {}
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/30524c62fa391922d51289c03075f714c772951c/Memory.java/buggy/MMTk/ext/vm/stub/org/mmtk/vm/Memory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 3792, 1435, 1216, 16355, 2050, 9454, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 3792, 1435, 1216, 16355, 2050, 9454, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
m_report.print(Messages.get().container(Messages.RPT_WRITE_CONTENT_1, resFolder1Name), I_CmsReport.C_FORMAT_NOTE);
m_report.print( Messages.get().container(Messages.RPT_WRITE_CONTENT_1, resFolder1Name), I_CmsReport.C_FORMAT_NOTE);
private void mergePages() throws CmsException { int size = m_foldersEqualnames.size(); if (size > 0) { m_report.println(Messages.get().container(Messages.RPT_MERGE_PAGES_BEGIN_1, String.valueOf(size)) , I_CmsReport.C_FORMAT_HEADLINE); String defaultLocale = CmsLocaleManager.getDefaultLocale().toString(); String locale2 = m_cms.readPropertyObject(getParamFolder2(), "locale", true).getValue(defaultLocale); // lock the source and the target folder m_report.print(Messages.get().container(Messages.RPT_LOCK_FOLDER_0), I_CmsReport.C_FORMAT_NOTE); m_report.print(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_ARGUMENT_1, getParamFolder1())); m_report.print(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_DOTS_0)); m_cms.lockResource(getParamFolder1()); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); m_report.print(Messages.get().container(Messages.RPT_LOCK_FOLDER_0), I_CmsReport.C_FORMAT_NOTE); m_report.print(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_ARGUMENT_1, getParamFolder2())); m_report.print(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_DOTS_0)); m_cms.lockResource(getParamFolder2()); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); // now loop through all collected resources int count = 1; Iterator i = m_foldersEqualnames.iterator(); while (i.hasNext()) { String resFolder1Name = (String)i.next(); try { String resFolder2Name = getResourceNameInOtherFolder(resFolder1Name, getParamFolder1(), getParamFolder2()); m_report.print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_SUCCESSION_2, String.valueOf(count++), String.valueOf(size)), I_CmsReport.C_FORMAT_NOTE); m_report.print(Messages.get().container(Messages.RPT_PROCESS_0), I_CmsReport.C_FORMAT_NOTE); m_report.print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_ARGUMENT_1, resFolder1Name)); m_report.print(Messages.get().container(Messages.RPT_DOUBLE_ARROW_0), I_CmsReport.C_FORMAT_NOTE); m_report.print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_ARGUMENT_1, resFolder2Name)); m_report.println(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_DOTS_0)); // get the content of the resource in folder1 String locale = m_cms.readPropertyObject(resFolder1Name, "locale", true).getValue(defaultLocale); m_report.print(Messages.get().container(Messages.RPT_READ_CONTENT_2, resFolder1Name, locale), I_CmsReport.C_FORMAT_NOTE); CmsResource resFolder1 = m_cms.readResource(resFolder1Name, CmsResourceFilter.IGNORE_EXPIRATION); CmsFile fileFolder1 = CmsFile.upgrade(resFolder1, m_cms); CmsXmlPage pageFolder1 = CmsXmlPageFactory.unmarshal(m_cms, fileFolder1); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); // get the content of the resource in folder2 locale = m_cms.readPropertyObject(resFolder2Name, "locale", true).getValue(defaultLocale); m_report.print(Messages.get().container(Messages.RPT_READ_CONTENT_2, resFolder2Name, locale), I_CmsReport.C_FORMAT_NOTE); CmsResource resFolder2 = m_cms.readResource(resFolder2Name, CmsResourceFilter.IGNORE_EXPIRATION); CmsFile fileFolder2 = CmsFile.upgrade(resFolder2, m_cms); CmsXmlPage pageFolder2 = CmsXmlPageFactory.unmarshal(m_cms, fileFolder2); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); // now get all the text elements from the resource in folder 2 which match the the locale of folder 2 Locale loc = new Locale(locale2); List textElements2 = pageFolder2.getNames(loc); Iterator j = textElements2.iterator(); while (j.hasNext()) { String textElementName = (String) j.next(); m_report.print(Messages.get().container(Messages.RPT_PROCESS_TEXT_ELEM_1, textElementName), I_CmsReport.C_FORMAT_NOTE); // get the text element from the resource in folder 2... String textElement = pageFolder2.getValue(textElementName, loc).getStringValue(m_cms); // and set it in the resource in folder 1... // WARNING: An existing content will be overwritten! if (!pageFolder1.hasValue(textElementName, loc)) { pageFolder1.addValue(textElementName, loc); } pageFolder1.setStringValue(m_cms, textElementName, loc, textElement); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); } // the resource in folder 1 now has all text elements in both locales, so update it in the vfs m_report.print(Messages.get().container(Messages.RPT_WRITE_CONTENT_1, resFolder1Name), I_CmsReport.C_FORMAT_NOTE); fileFolder1.setContents(pageFolder1.marshal()); m_cms.writeFile(fileFolder1); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); // save all properties from the resource in folder2 m_report.print(Messages.get().container(Messages.RPT_READ_PROPERTIES_1, resFolder2Name), I_CmsReport.C_FORMAT_NOTE); List properties = m_cms.readPropertyObjects(resFolder2Name, false); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); // the next thing to do is to delete the old resource in folder 2 m_report.print(Messages.get().container(Messages.RPT_DELETE_PAGE_1, resFolder2Name), I_CmsReport.C_FORMAT_NOTE); m_cms.deleteResource(resFolder2Name, I_CmsConstants.C_DELETE_OPTION_PRESERVE_SIBLINGS); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); // copy a sibling of the resource from folder 1 to folder 2 m_report.print(Messages.get().container(Messages.RPT_COPY_2, resFolder1Name, resFolder2Name), I_CmsReport.C_FORMAT_NOTE); m_cms.copyResource(resFolder1Name, resFolder2Name, I_CmsConstants.C_COPY_AS_SIBLING); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); // restore the properties at the sibling in folder 2 m_report.print(Messages.get().container(Messages.RPT_RESORE_PROPERTIES_1, resFolder2Name), I_CmsReport.C_FORMAT_NOTE); m_cms.writePropertyObjects(resFolder2Name, properties); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); resFolder1 = null; resFolder2 = null; fileFolder1 = null; fileFolder2 = null; pageFolder1 = null; pageFolder2 = null; } catch (CmsException e) { m_report.println(e); } } // lock the source and the target folder m_report.print(Messages.get().container(Messages.RPT_UNLOCK_1, getParamFolder1()), I_CmsReport.C_FORMAT_NOTE); m_cms.unlockResource(getParamFolder1()); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); m_report.print(Messages.get().container(Messages.RPT_UNLOCK_1, getParamFolder2()), I_CmsReport.C_FORMAT_NOTE); m_cms.unlockResource(getParamFolder2()); m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); m_report.println(Messages.get().container(Messages.RPT_MERGE_PAGES_END_0), I_CmsReport.C_FORMAT_HEADLINE); } }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/41dcaa9d1a1b8f8fa6c1dd9a04fc8532eb83ebb7/CmsMergePages.java/buggy/src-modules/org/opencms/workplace/tools/content/CmsMergePages.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2691, 5716, 1435, 1216, 11228, 288, 3639, 509, 963, 273, 312, 67, 16064, 5812, 1973, 18, 1467, 5621, 3639, 309, 261, 1467, 405, 374, 13, 288, 13491, 312, 67, 6006, 18, 8222, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2691, 5716, 1435, 1216, 11228, 288, 3639, 509, 963, 273, 312, 67, 16064, 5812, 1973, 18, 1467, 5621, 3639, 309, 261, 1467, 405, 374, 13, 288, 13491, 312, 67, 6006, 18, 8222, ...
synchronized (SynchronizedMap.this.sync) { return e.getValue(); } }
return e.getValue(); }
public Object getValue() { synchronized (SynchronizedMap.this.sync) { return e.getValue(); } }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/47cce1a055a8b9980001e3157e04b9b6369a7b0e/Collections.java/buggy/java/util/Collections.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 15604, 1071, 1033, 2366, 1435, 288, 13491, 3852, 261, 55, 15666, 863, 18, 2211, 18, 8389, 13, 288, 12900, 327, 425, 18, 24805, 5621, 13491, 289, 8227, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 15604, 1071, 1033, 2366, 1435, 288, 13491, 3852, 261, 55, 15666, 863, 18, 2211, 18, 8389, 13, 288, 12900, 327, 425, 18, 24805, 5621, 13491, 289, 8227, 289, 2, -100, -100, -100, -100, -100, -10...
throw new ServletException(sm.getString( "applicationDispatcher.specViolation.request"));
throw new ServletException(sm.getString("applicationDispatcher.specViolation.request"));
private void checkSameObjects() throws ServletException { ServletRequest originalRequest = ApplicationFilterChain.getLastServicedRequest(); ServletResponse originalResponse = ApplicationFilterChain.getLastServicedResponse(); // Some forwards, eg from valves will not set original values if (originalRequest == null || originalResponse == null) { return; } boolean same = false; ServletRequest dispatchedRequest = appRequest; while (!same) { if (originalRequest.equals(dispatchedRequest)) { same = true; } if (!same && dispatchedRequest instanceof ServletRequestWrapper) { dispatchedRequest = ((ServletRequestWrapper) dispatchedRequest).getRequest(); } else { break; } } if (!same) { throw new ServletException(sm.getString( "applicationDispatcher.specViolation.request")); } same = false; ServletResponse dispatchedResponse = appResponse; while (!same) { if (originalResponse.equals(dispatchedResponse)) { same = true; } if (!same && dispatchedResponse instanceof ServletResponseWrapper) { dispatchedResponse = ((ServletResponseWrapper) dispatchedResponse).getResponse(); } else { break; } } if (!same) { throw new ServletException(sm.getString( "applicationDispatcher.specViolation.response")); } }
48155 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48155/144a62199d7fa8bfdc26b6496909b07fde5f71dc/ApplicationDispatcher.java/clean/java/org/apache/catalina/core/ApplicationDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 866, 8650, 4710, 1435, 1216, 16517, 288, 3639, 26470, 2282, 691, 273, 5411, 4257, 1586, 3893, 18, 588, 3024, 1179, 72, 691, 5621, 3639, 7971, 1064, 2282, 1064, 273, 5411, 4257, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 8650, 4710, 1435, 1216, 16517, 288, 3639, 26470, 2282, 691, 273, 5411, 4257, 1586, 3893, 18, 588, 3024, 1179, 72, 691, 5621, 3639, 7971, 1064, 2282, 1064, 273, 5411, 4257, ...
} tree.movedFile(source, destination); destination.refreshLocal(IResource.DEPTH_ZERO, monitor); } catch (SVNClientException e) { throw SVNException.wrapException(e); } catch (TeamException e) { throw SVNException.wrapException(e); } catch (CoreException e) { throw SVNException.wrapException(e); } finally { OperationManager.getInstance().endOperation(); }
svnClient.addFile(destination.getLocation().toFile()); svnClient.remove( new File[] { source.getLocation().toFile() }, true); tree.deletedFile(source); } else { svnClient.move(source.getLocation().toFile(), destination .getLocation().toFile(), true);
public boolean moveFile(IResourceTree tree, IFile source, IFile destination, int updateFlags, IProgressMonitor monitor) { try { ISVNLocalFile resource = new LocalFile(source); if (!resource.isManaged()) return false; // pass ISVNClientAdapter svnClient = resource.getRepository() .getSVNClient(); monitor.beginTask(null, 1000); monitor.setTaskName("Working.."); boolean force = (updateFlags & IResource.FORCE) != 0; boolean keepHistory = (updateFlags & IResource.KEEP_HISTORY) != 0; // If the file is not in sync with the local file system and force // is false, // then signal that we have an error. if (!force && !tree.isSynchronized(source, IResource.DEPTH_INFINITE)) { String message = org.eclipse.core.internal.utils.Policy .bind( "localstore.resourceIsOutOfSync", source.getFullPath().toString()); //$NON-NLS-1$ IStatus status = new ResourceStatus( IResourceStatus.OUT_OF_SYNC_LOCAL, source.getFullPath(), message); tree.failed(status); return true; // we attempted even if we failed } // Add the file contents to the local history if requested by the // user. if (keepHistory) tree.addToLocalHistory(source); try { OperationManager.getInstance().beginOperation(svnClient); // add destination directory to version control if necessary // see bug #15 if (!SVNWorkspaceRoot.getSVNFolderFor(destination.getParent()) .isManaged()) { SVNTeamProvider provider = (SVNTeamProvider) RepositoryProvider .getProvider(destination.getProject()); provider.add(new IResource[]{destination.getParent()}, IResource.DEPTH_ZERO, new NullProgressMonitor()); } // force is set to true because when we rename (refactor) a // java class, the file is modified before being moved // A modified file cannot be moved without force if(SVNWorkspaceRoot.getSVNFileFor(source).getStatus().isAdded()){ //can't move a file that's in state added, so copy to new location //remove old location, add new location //fix for issue 87 -mml source.copy(destination.getFullPath(), force, monitor); svnClient.addFile(destination.getLocation().toFile()); svnClient.remove(new File[]{source.getLocation().toFile()},true); tree.deletedFile(source); }else{ svnClient.move(source.getLocation().toFile(), destination .getLocation().toFile(), true); } //movedFile must be done before endOperation because // destination file must not already exist in the workspace // resource tree. tree.movedFile(source, destination); destination.refreshLocal(IResource.DEPTH_ZERO, monitor); } catch (SVNClientException e) { throw SVNException.wrapException(e); } catch (TeamException e) { throw SVNException.wrapException(e); } catch (CoreException e) { throw SVNException.wrapException(e); } finally { OperationManager.getInstance().endOperation(); } } catch (SVNException e) { tree.failed(new org.eclipse.core.runtime.Status( org.eclipse.core.runtime.Status.ERROR, "SUBCLIPSE", 0, "Error move file", e)); e.printStackTrace(); return true; // we attempted } finally { monitor.done(); } return true; }
6016 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6016/d9753466f2b16a2d61f18e2ed7b37335853cfb44/SVNMoveDeleteHook.java/buggy/core/src/org/tigris/subversion/subclipse/core/resources/SVNMoveDeleteHook.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3635, 812, 12, 45, 1420, 2471, 2151, 16, 467, 812, 1084, 16, 1082, 202, 45, 812, 2929, 16, 509, 1089, 5094, 16, 467, 5491, 7187, 6438, 13, 288, 202, 202, 698, 288, 108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3635, 812, 12, 45, 1420, 2471, 2151, 16, 467, 812, 1084, 16, 1082, 202, 45, 812, 2929, 16, 509, 1089, 5094, 16, 467, 5491, 7187, 6438, 13, 288, 202, 202, 698, 288, 108...
ValueNumberAnalysis analysis = new ValueNumberAnalysis(methodGen, dfs);
ValueNumberAnalysis analysis = new ValueNumberAnalysis(methodGen, dfs, lookupFailureCallback);
public ValueNumberDataflow getValueNumberDataflow(Method method) throws DataflowAnalysisException, CFGBuilderException { ValueNumberDataflow vnaDataflow = vnaDataflowMap.get(method); if (vnaDataflow == null) { MethodGen methodGen = getMethodGen(method); DepthFirstSearch dfs = getDepthFirstSearch(method); ValueNumberAnalysis analysis = new ValueNumberAnalysis(methodGen, dfs); CFG cfg = getCFG(method); vnaDataflow = new ValueNumberDataflow(cfg, analysis); vnaDataflow.execute(); vnaDataflowMap.put(method, vnaDataflow); } return vnaDataflow; }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/0cb8b5532a501fb30117ec4a7118ae06a10c5f62/ClassContext.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/ClassContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1445, 1854, 751, 2426, 2366, 1854, 751, 2426, 12, 1305, 707, 13, 1216, 1910, 2426, 9418, 503, 16, 7577, 1263, 503, 288, 202, 202, 620, 1854, 751, 2426, 331, 6582, 751, 2426, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1445, 1854, 751, 2426, 2366, 1854, 751, 2426, 12, 1305, 707, 13, 1216, 1910, 2426, 9418, 503, 16, 7577, 1263, 503, 288, 202, 202, 620, 1854, 751, 2426, 331, 6582, 751, 2426, 2...
BugzillaReportSubmitForm bugReportPostHandler;
BugzillaReportSubmitForm form;
public static BugzillaReportSubmitForm makeExistingBugPost(RepositoryTaskData bug, String repositoryUrl, String userName, String password, Proxy proxySettings, Set<String> removeCC, String characterEncoding) throws UnsupportedEncodingException { BugzillaReportSubmitForm bugReportPostHandler; if (characterEncoding != null) { bugReportPostHandler = new BugzillaReportSubmitForm(characterEncoding); } else { bugReportPostHandler = new BugzillaReportSubmitForm(BugzillaPlugin.ENCODING_UTF_8); } // setDefaultCCValue(bug, userName); setConnectionsSettings(bugReportPostHandler, repositoryUrl, userName, password, proxySettings, PROCESS_BUG_CGI); // go through all of the attributes and add them to the bug post for (Iterator<RepositoryTaskAttribute> it = bug.getAttributes().iterator(); it.hasNext();) { RepositoryTaskAttribute a = it.next(); if (a.getID().equals(BugzillaReportElement.CC.getKeyString()) || a.getID().equals(BugzillaReportElement.REPORTER.getKeyString()) || a.getID().equals(BugzillaReportElement.ASSIGNED_TO.getKeyString()) || a.getID().equals(BugzillaReportElement.CREATION_TS.getKeyString())) { continue; } if (a != null && a.getID() != null && a.getID().compareTo("") != 0 && !a.isHidden()) { String value = a.getValue(); // System.err.println(a.getID()+" "+a.getValue()); // add the attribute to the bug post bugReportPostHandler.add(a.getID(), value != null ? value : ""); } else if (a != null && a.getID() != null && a.getID().compareTo("") != 0 && a.isHidden()) { // we have a hidden attribute and we should send it back. // System.err.println(a.getID()+" "+a.getValue()); String value = a.getValue(); // Strip off timezone information // 149513: Constant bugzilla mid-air collisions if (a.getID().equals(BugzillaReportElement.DELTA_TS.getKeyString()) && value != null) { value = stripTimeZone(value); } bugReportPostHandler.add(a.getID(), value); } } bugReportPostHandler.add("cc", "somewhere@nowhere.com"); // when posting the bug id is encoded in a hidden field named 'id' bugReportPostHandler.add(KEY_ID, bug.getAttributeValue(BugzillaReportElement.BUG_ID.getKeyString())); // add the operation to the bug post RepositoryOperation o = bug.getSelectedOperation(); if (o == null) bugReportPostHandler.add(KEY_KNOB, VAL_NONE); else { bugReportPostHandler.add(KEY_KNOB, o.getKnobName()); if (o.hasOptions()) { String sel = o.getOptionValue(o.getOptionSelection()); bugReportPostHandler.add(o.getOptionName(), sel); } else if (o.isInput()) { String sel = o.getInputValue(); bugReportPostHandler.add(o.getInputName(), sel); } } bugReportPostHandler.add(KEY_FORM_NAME, VAL_PROCESS_BUG); if (bug.getAttribute(BugzillaReportElement.SHORT_DESC.getKeyString()) != null) { bugReportPostHandler.add(KEY_SHORT_DESC, bug.getAttribute(BugzillaReportElement.SHORT_DESC.getKeyString()) .getValue()); } if (bug.getNewComment().length() != 0) { bugReportPostHandler.add(KEY_COMMENT, bug.getNewComment()); } if (removeCC != null && removeCC.size() > 0) { String[] s = new String[removeCC.size()]; bugReportPostHandler.add(KEY_CC, toCommaSeparatedList(removeCC.toArray(s))); bugReportPostHandler.add(KEY_REMOVECC, VAL_TRUE); } bugReportPostHandler.attachment = bug.getNewAttachment(); return bugReportPostHandler; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/882c44a389a07bdae03037a4deadb1c1bc05cdc8/BugzillaReportSubmitForm.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaReportSubmitForm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 16907, 15990, 4820, 11620, 1204, 1221, 9895, 19865, 3349, 12, 3305, 2174, 751, 7934, 16, 514, 3352, 1489, 16, 1082, 202, 780, 12065, 16, 514, 2201, 16, 7659, 2889, 2628, 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, 225, 202, 482, 760, 16907, 15990, 4820, 11620, 1204, 1221, 9895, 19865, 3349, 12, 3305, 2174, 751, 7934, 16, 514, 3352, 1489, 16, 1082, 202, 780, 12065, 16, 514, 2201, 16, 7659, 2889, 2628, 16...
else if ( (executions/iteration)*100 <= getPercentThroughput() )
else if ( ((float)executions/iteration)*100 <= getPercentThroughputAsFloat() )
public boolean canExecute() { if (returnTrue) return true; int executions, iterations; boolean retval = false; executions = getExecutions(); iterations = getIteration(); if ( getStyle() == BYNUMBER ) { if ( executions < getMaxThroughput() ) { retval = true; } } else { if (iteration==0 && getPercentThroughput()>0) retval = true; else if ( (executions/iteration)*100 <= getPercentThroughput() ) retval = true; } if (retval) { returnTrue = true; increaseExecutions(); } return retval; }
50179 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50179/2dd71f5312e21ddd32750913cfa2757294487393/ThroughputController.java/clean/src/components/org/apache/jmeter/control/ThroughputController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 848, 5289, 1435, 225, 202, 95, 202, 202, 430, 261, 2463, 5510, 13, 1082, 202, 2463, 638, 31, 202, 202, 474, 26845, 16, 11316, 31, 202, 202, 6494, 5221, 273, 629, 31, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 848, 5289, 1435, 225, 202, 95, 202, 202, 430, 261, 2463, 5510, 13, 1082, 202, 2463, 638, 31, 202, 202, 474, 26845, 16, 11316, 31, 202, 202, 6494, 5221, 273, 629, 31, 2...
if (property != null && modifications.size() > 0) { properties.put(property, "true");
if (modifications.size() > 0) { properties.modificationFound();
public List getModifications(Date lastBuild, Date now) { List modifications = new ArrayList(); Process p = null; try { LOG.info("Getting modifications for " + vssPath); p = Runtime.getRuntime().exec(getCommandLine(lastBuild, now), VSSHelper.loadVSSEnvironment(serverPath)); logErrorStream(p.getErrorStream()); p.waitFor(); parseTempFile(modifications); } catch (Exception e) { // TODO: Revisit this when ThreadQueue is more stable. Would prefer throwing a RuntimeException. LOG.error("Problem occurred while attempting to get VSS modifications. Returning empty modifications.", e); return Collections.EMPTY_LIST; } finally { if (p != null) { try { p.getInputStream().close(); p.getOutputStream().close(); p.getErrorStream().close(); } catch (IOException e) { LOG.error("Could not close process streams. Destroying anyway...", e); } finally { if (p != null) { p.destroy(); } } } } if (property != null && modifications.size() > 0) { properties.put(property, "true"); } return modifications; }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/9d75e2a7ce76b395549de6ca3875fafce57946c9/Vss.java/buggy/main/src/net/sourceforge/cruisecontrol/sourcecontrols/Vss.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 336, 28340, 12, 1626, 1142, 3116, 16, 2167, 2037, 13, 288, 3639, 987, 17953, 273, 394, 2407, 5621, 3639, 4389, 293, 273, 446, 31, 3639, 775, 288, 5411, 2018, 18, 1376, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 336, 28340, 12, 1626, 1142, 3116, 16, 2167, 2037, 13, 288, 3639, 987, 17953, 273, 394, 2407, 5621, 3639, 4389, 293, 273, 446, 31, 3639, 775, 288, 5411, 2018, 18, 1376, 2932, ...
boolean toolFound = false;
ITool tool = null; if (resConfig != null) { ITool[] tools = resConfig.getToolsToInvoke(); if (tools != null && tools.length > 0) { tool = tools[0]; } }
protected void addFragmentMakefileEntriesForSource (LinkedHashMap buildVarToRuleStringMap, StringBuffer ruleBuffer, IFolder folder, String relativePath, IResource resource, IPath sourceLocation, String varName, boolean generatedSource) { // Determine which tool, if any, builds files with this extension String ext = sourceLocation.getFileExtension(); boolean toolFound = false; for (int j=0; j<buildTools.length; j++) { if (buildTools[j].buildsFileType(ext)) { toolFound = true; ITool tool = buildTools[j]; // look for the extension in the map StringBuffer bufferForExtension = new StringBuffer(); if (varName == null) { varName = getSourceMacroName(ext).toString(); // Add the resource to the list of all resources associated with a variable. List varList = (List)buildSrcVars.get(varName); // Since we don't know how these files will be used, we store them using a "location" // path rather than a relative path varList.add(sourceLocation); } else { // Add the resource to the list of all resources associated with a variable. List varList = (List)buildOutVars.get(varName); if (varList != null) { // Since we don't know how these files will be used, we store them using a "location" // path rather than a relative path varList.add(sourceLocation); } } if (!buildVarToRuleStringMap.containsKey(varName)) { // TODO - is this an error? continue; } // Add the resource name to the makefile line that adds resources to the build variable addMacroAdditionFile(buildVarToRuleStringMap, varName, relativePath, sourceLocation, generatedSource); // Generate the rule to build this source file IInputType primaryInputType = tool.getPrimaryInputType(); IInputType inputType = tool.getInputType(ext); if ((primaryInputType != null && !primaryInputType.getMultipleOfType()) || (inputType == null && !(tool == info.getToolFromOutputExtension(buildTargetExt)))) { // Try to add the rule for the file StringBuffer generatedDepFile = new StringBuffer(); Vector generatedOutputs = new Vector(); addRuleForSource(relativePath, ruleBuffer, resource, sourceLocation, generatedSource, generatedDepFile, generatedOutputs); // If the rule generates a dependency file, add the file to the DEPS variable if (generatedDepFile.length() > 0) { addMacroAdditionFile(buildVarToRuleStringMap, DEPS_MACRO, generatedDepFile.toString()); } // If the generated outputs of this tool are input to another tool, // 1. add the output to the appropriate macro // 2. If the tool does not have multipleOfType input, generate the rule. IOutputType outType = tool.getPrimaryOutputType(); String buildVariable = null; if (outType != null) { buildVariable = outType.getBuildVariable(); } else { // For support of pre-CDT 3.0 integrations. buildVariable = OBJS_MACRO; } for (int k=0; k<generatedOutputs.size(); k++) { IPath generatedOutput; if (((IPath)generatedOutputs.get(k)).isAbsolute()) { // TODO: Should we use relative paths when possible (e.g., see MbsMacroSupplier.calculateRelPath) generatedOutput = (IPath)generatedOutputs.get(k); } else { generatedOutput = project.getLocation().append(getBuildWorkingDir()).append((IPath)generatedOutputs.get(k)); } // If this file has an absolute path, then the generateOutputResource will not be correct // because the file is not under the project. We use this resource in the calls to the dependency generator IResource generateOutputResource = project.getFile(generatedOutput); addFragmentMakefileEntriesForSource(buildVarToRuleStringMap, ruleBuffer, folder, relativePath, generateOutputResource, generatedOutput, buildVariable, true); } } } } if (!toolFound) { // If this generated output is identified as a secondary output, add the file to the build variable if (varName != null) { IOutputType[] secondaryOutputs = config.getToolChain().getSecondaryOutputs(); if (secondaryOutputs.length > 0) { if (isSecondaryOutputVar(secondaryOutputs, varName)) { addMacroAdditionFile(buildVarToRuleStringMap, varName, relativePath, sourceLocation, generatedSource); } } } } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1eb10a46a0557db040085203edd85b33f11279dd/GnuMakefileGenerator.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/makegen/gnu/GnuMakefileGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 527, 7456, 6464, 768, 5400, 1290, 1830, 261, 13174, 8658, 1361, 1537, 774, 2175, 780, 863, 16, 6674, 1720, 1892, 16, 1875, 202, 45, 3899, 3009, 16, 514, 12820, 16, 467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 7456, 6464, 768, 5400, 1290, 1830, 261, 13174, 8658, 1361, 1537, 774, 2175, 780, 863, 16, 6674, 1720, 1892, 16, 1875, 202, 45, 3899, 3009, 16, 514, 12820, 16, 467, ...
try { return _native.getExpLangRuntime().evaluateNode(expr, new ExprEvaluationContextImpl(_scopeInstance, _native, root)); } catch (org.apache.ode.bpel.explang.EvaluationException e) { throw new InvalidProcessException("Expression Failed: " + expr, e);
try { return _native.getExpLangRuntime().evaluateNode(expr, new ExprEvaluationContextImpl(_scopeInstance, _native, root)); } catch (org.apache.ode.bpel.explang.EvaluationException e) { throw new InvalidProcessException("Expression Failed: " + expr, e); }
public Node evaluateQuery(Node root, OExpression expr) throws FaultException { try { return _native.getExpLangRuntime().evaluateNode(expr, new ExprEvaluationContextImpl(_scopeInstance, _native, root)); } catch (org.apache.ode.bpel.explang.EvaluationException e) { throw new InvalidProcessException("Expression Failed: " + expr, e); } }
47044 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47044/1183932ca4a81d65d22482f0b44fb17eebce0f37/ExprEvaluationContextImpl.java/buggy/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ExprEvaluationContextImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2029, 5956, 1138, 12, 907, 1365, 16, 531, 2300, 3065, 13, 1216, 25609, 503, 288, 565, 775, 288, 1377, 327, 389, 13635, 18, 588, 2966, 7275, 5576, 7675, 21024, 907, 12, 8638, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2029, 5956, 1138, 12, 907, 1365, 16, 531, 2300, 3065, 13, 1216, 25609, 503, 288, 565, 775, 288, 1377, 327, 389, 13635, 18, 588, 2966, 7275, 5576, 7675, 21024, 907, 12, 8638, 16, 1...
index -= occurrences;
index -= occurrences;
public void backup(int occurrences) { index -= occurrences; if (index < 0) { throw new IllegalArgumentException(); } }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/415b1e0db282c02d672a7e34a34a2bea0f69ccb2/Pack.java/clean/src/org/jruby/util/Pack.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 5114, 12, 474, 15698, 13, 288, 1082, 565, 770, 3947, 15698, 31, 1082, 565, 309, 261, 1615, 411, 374, 13, 288, 1082, 3639, 604, 394, 2754, 5621, 1082, 565, 289, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 5114, 12, 474, 15698, 13, 288, 1082, 565, 770, 3947, 15698, 31, 1082, 565, 309, 261, 1615, 411, 374, 13, 288, 1082, 3639, 604, 394, 2754, 5621, 1082, 565, 289, 202, 202,...
Font font = parent.getFont();
initializeDialogUnits(parent);
public void createControl(Composite parent) { Font font = parent.getFont(); Composite composite = new Composite(parent, SWT.NULL); composite.setLayout(new GridLayout()); composite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); setControl(composite); PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, IIDEHelpContextIds.WORKING_SET_RESOURCE_PAGE); Label label = new Label(composite, SWT.WRAP); label.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_message); GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); label.setLayoutData(data); label.setFont(font); text = new Text(composite, SWT.SINGLE | SWT.BORDER); text.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL)); text.setFont(font); text.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { validateInput(); } }); text.setFocus(); text.setBackground(FieldAssistColors.getRequiredFieldBackgroundColor(text)); label = new Label(composite, SWT.WRAP); label.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_label_tree); data = new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); label.setLayoutData(data); label.setFont(font); tree = new CheckboxTreeViewer(composite); tree.setUseHashlookup(true); final ITreeContentProvider treeContentProvider = new WorkbenchContentProvider(); tree.setContentProvider(treeContentProvider); tree.setLabelProvider(new DecoratingLabelProvider( new WorkbenchLabelProvider(), IDEWorkbenchPlugin.getDefault() .getWorkbench().getDecoratorManager() .getLabelDecorator())); tree.setInput(IDEWorkbenchPlugin.getPluginWorkspace().getRoot()); tree.setSorter(new ResourceSorter(ResourceSorter.NAME)); data = new GridData(GridData.FILL_BOTH | GridData.GRAB_VERTICAL); data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT; data.widthHint = SIZING_SELECTION_WIDGET_WIDTH; tree.getControl().setLayoutData(data); tree.getControl().setFont(font); tree.addCheckStateListener(new ICheckStateListener() { public void checkStateChanged(CheckStateChangedEvent event) { handleCheckStateChange(event); } }); tree.addTreeListener(new ITreeViewerListener() { public void treeCollapsed(TreeExpansionEvent event) { } public void treeExpanded(TreeExpansionEvent event) { final Object element = event.getElement(); if (tree.getGrayed(element) == false) { BusyIndicator.showWhile(getShell().getDisplay(), new Runnable() { public void run() { setSubtreeChecked((IContainer) element, tree.getChecked(element), false); } }); } } }); // Add select / deselect all buttons for bug 46669 Composite buttonComposite = new Composite(composite, SWT.NONE); buttonComposite.setLayout(new GridLayout(2, false)); buttonComposite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); Button selectAllButton = new Button(buttonComposite, SWT.PUSH); selectAllButton.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_selectAll_label); selectAllButton.setToolTipText(IDEWorkbenchMessages.ResourceWorkingSetPage_selectAll_toolTip); selectAllButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent selectionEvent) { tree.setCheckedElements(treeContentProvider.getElements(tree.getInput())); validateInput(); } }); selectAllButton.setFont(font); setButtonLayoutData(selectAllButton); Button deselectAllButton = new Button(buttonComposite, SWT.PUSH); deselectAllButton.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_deselectAll_label); deselectAllButton.setToolTipText(IDEWorkbenchMessages.ResourceWorkingSetPage_deselectAll_toolTip); deselectAllButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent selectionEvent) { tree.setCheckedElements(new Object[0]); validateInput(); } }); deselectAllButton.setFont(font); setButtonLayoutData(deselectAllButton); initializeCheckedState(); if (workingSet != null) { text.setText(workingSet.getName()); } setPageComplete(false); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/a0d24374fa989b241b43a0fdb846df0624ab7054/ResourceWorkingSetPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceWorkingSetPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 3367, 12, 9400, 982, 13, 288, 3639, 4046, 6353, 7537, 12, 2938, 1769, 540, 14728, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 3639, 9635, 18, 542, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 3367, 12, 9400, 982, 13, 288, 3639, 4046, 6353, 7537, 12, 2938, 1769, 540, 14728, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 3639, 9635, 18, 542, 37...
public void testSetReturn() throws SQLException
public void testSetReturn() throws SQLException
public void testSetReturn() throws SQLException { System.out.println("*** testSetReturn()"); Statement stmt = m_connection.createStatement(); ResultSet rs = stmt.executeQuery("SELECT base, incbase, ctime FROM setReturnExample(1, 5)"); while(rs.next()) { int base = rs.getInt(1); int incbase = rs.getInt(2); Timestamp ctime = rs.getTimestamp(3); System.out.println( "Base = \"" + base + "\", incbase = \"" + incbase + "\", ctime = \"" + ctime + "\""); } rs.close(); }
1170 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1170/efa76a6b7645e410731c10cec532ef6e6ea9f3f1/Tester.java/buggy/src/java/test/org/postgresql/pljava/test/Tester.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 694, 990, 1435, 202, 15069, 6483, 202, 95, 202, 202, 3163, 18, 659, 18, 8222, 2932, 14465, 1842, 694, 990, 1435, 8863, 202, 202, 3406, 3480, 273, 312, 67, 4071, 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, 482, 918, 1842, 694, 990, 1435, 202, 15069, 6483, 202, 95, 202, 202, 3163, 18, 659, 18, 8222, 2932, 14465, 1842, 694, 990, 1435, 8863, 202, 202, 3406, 3480, 273, 312, 67, 4071, 18,...
manager.fireDataChanged(IGroup.class, new DataEvent(g, "lstBusy", type, new Object[] { lesson }));
else if (r instanceof IRoom) { IRoom ro = (IRoom) r; if(newOne || !ro.getSetBusy().contains(lesson)) ro.addBusy(lesson); try { RoomStorage.save(ro); } catch (HibernateException e) { e.printStackTrace(); return null; } manager.fireDataChanged(IRoom.class, new DataEvent(ro, "lstBusy", type, new Object[] { lesson })); } else if (r instanceof ITeacher) { ITeacher t = (ITeacher) r; if(newOne || !t.getSetBusy().contains(lesson)) t.addBusy(lesson); try { TeacherStorage.save(t); } catch (HibernateException e) { e.printStackTrace(); return null; } manager.fireDataChanged(ITeacher.class, new DataEvent(t, "lstBusy", type, new Object[] { lesson })); }
public ILesson saveOrUpdateLesson(ILesson lesson) throws RemoteException { int type = lesson.getIdBusy() == null ? DataEvent.TYPE_PROPERTY_SUBDATA_ADDED : DataEvent.TYPE_PROPERTY_SUBDATA_CHANGED; for (Iterator<IGroup> it = lesson.getLstGroup().iterator() ; it .hasNext() ;) { IGroup g = it.next(); try { GroupStorage.save(g); } catch (HibernateException e) { // TODO Auto-generated catch block e.printStackTrace(); return null; } manager.fireDataChanged(IGroup.class, new DataEvent(g, "lstBusy", type, new Object[] { lesson })); } for (Iterator<IDevice> it = lesson.getLstDevice().iterator() ; it .hasNext() ;) { IDevice d = it.next(); try { DeviceStorage.save(d); } catch (HibernateException e) { // TODO Auto-generated catch block e.printStackTrace(); return null; } manager.fireDataChanged(IDevice.class, new DataEvent(d, "lstBusy", type, new Object[] { lesson })); } for (Iterator<IRoom> it = lesson.getLstRoom().iterator() ; it.hasNext() ;) { IRoom r = it.next(); try { RoomStorage.save(r); } catch (HibernateException e) { // TODO Auto-generated catch block e.printStackTrace(); return null; } manager.fireDataChanged(IRoom.class, new DataEvent(r, "lstBusy", type, new Object[] { lesson })); } for (Iterator<ITeacher> it = lesson.getLstTeacher().iterator() ; it .hasNext() ;) { ITeacher t = it.next(); try { TeacherStorage.save(t); } catch (HibernateException e) { // TODO Auto-generated catch block e.printStackTrace(); return null; } manager.fireDataChanged(ITeacher.class, new DataEvent(t, "lstBusy", type, new Object[] { lesson })); } return lesson; }
13357 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13357/88394371c35f4389a1cd4ba2e6c30c902f533ddc/DataManagerImpl.java/clean/current/src/fr/umlv/ir3/flexitime/server/core/DataManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 15313, 265, 1923, 10466, 15313, 265, 12, 2627, 403, 265, 22766, 13, 1216, 18361, 565, 288, 3639, 509, 618, 273, 22766, 18, 26321, 29289, 1435, 422, 446, 692, 1910, 1133, 18, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15313, 265, 1923, 10466, 15313, 265, 12, 2627, 403, 265, 22766, 13, 1216, 18361, 565, 288, 3639, 509, 618, 273, 22766, 18, 26321, 29289, 1435, 422, 446, 692, 1910, 1133, 18, 23...
if (s_length==8) { X="toString";id=Id_toString; }
if (s_length==8) { c=s.charAt(3); if (c=='o') { X="toSource";id=Id_toSource; } else if (c=='t') { X="toString";id=Id_toString; } }
protected int findPrototypeId(String s) { int id;// #generated# Last update: 2004-07-18 12:32:51 CEST L0: { id = 0; String X = null; int s_length = s.length(); if (s_length==8) { X="toString";id=Id_toString; } else if (s_length==11) { X="constructor";id=Id_constructor; } if (X!=null && X!=s && !X.equals(s)) id = 0; }// #/generated# return id; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/347734a288cc52cc58154ef5e55d0c26058627eb/QName.java/clean/js/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 1104, 15846, 548, 12, 780, 272, 13, 565, 288, 3639, 509, 612, 31, 759, 468, 11168, 7, 6825, 1089, 30, 4044, 24, 17, 8642, 17, 2643, 2593, 30, 1578, 30, 10593, 385, 11027, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 1104, 15846, 548, 12, 780, 272, 13, 565, 288, 3639, 509, 612, 31, 759, 468, 11168, 7, 6825, 1089, 30, 4044, 24, 17, 8642, 17, 2643, 2593, 30, 1578, 30, 10593, 385, 11027, 3...
RubyFixnum.newFixnum(getRuntime(), getValue().charAt(idx));
getRuntime().newFixnum(getValue().charAt(idx));
public IRubyObject aref(IRubyObject[] args) { if (checkArgumentCount(args, 1, 2) == 2) { return substr(RubyNumeric.fix2int(args[0]), RubyNumeric.fix2int(args[1])); } if (args[0] instanceof RubyFixnum) { int idx = RubyNumeric.fix2int(args[0]); if (idx < 0) { idx += getValue().length(); } return idx < 0 || idx >= getValue().length() ? getRuntime().getNil() : RubyFixnum.newFixnum(getRuntime(), getValue().charAt(idx)); } else if (args[0] instanceof RubyRegexp) { return RubyRegexp.regexpValue(args[0]).search(this, 0) >= 0 ? RubyRegexp.last_match(getRuntime().getBackref()) : getRuntime().getNil(); } else if (args[0] instanceof RubyString) { return getValue().indexOf(stringValue(args[0]).getValue()) != -1 ? args[0] : getRuntime().getNil(); } else if (args[0] instanceof RubyRange) { long[] begLen = ((RubyRange) args[0]).getBeginLength(getValue().length(), true, false); return begLen == null ? getRuntime().getNil() : substr((int) begLen[0], (int) begLen[1]); } int idx = (int) RubyNumeric.num2long(args[0]); if (idx < 0) { idx += getValue().length(); } return idx < 0 || idx >= getValue().length() ? getRuntime().getNil() : RubyFixnum.newFixnum(getRuntime(), getValue().charAt(idx)); }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyString.java/clean/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 854, 74, 12, 7937, 10340, 921, 8526, 833, 13, 288, 202, 565, 309, 261, 1893, 1379, 1380, 12, 1968, 16, 404, 16, 576, 13, 422, 576, 13, 288, 202, 3639, 327...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 854, 74, 12, 7937, 10340, 921, 8526, 833, 13, 288, 202, 565, 309, 261, 1893, 1379, 1380, 12, 1968, 16, 404, 16, 576, 13, 422, 576, 13, 288, 202, 3639, 327...
if (! use_addr2line)
if (! use_addr2line || blacklist.contains(file))
public void lookup (String file, long addr) { binaryFile = file; sourceFile = null; lineNum = -1; if (! use_addr2line) return; Addr2Line addr2line = (Addr2Line) procs.get(file); if (addr2line == null) { addr2line = new Addr2Line(file); procs.put(file, addr2line); } if (addr2line.proc == null) return; String hexAddr = "0x" + Long.toHexString(addr); String name; try { addr2line.out.write(hexAddr); addr2line.out.newLine(); addr2line.out.flush(); String result = addr2line.in.readLine(); if (result.indexOf("??") == -1) { int split = result.lastIndexOf(':'); sourceFile = result.substring(0, split); String lineNumStr = result.substring(split + 1, result.length()); lineNum = Integer.parseInt (lineNumStr); } } catch (IOException ioe) { addr2line = null; } catch (NumberFormatException x) { } }
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/af2b21637931567dec52f37c2a8397b26936d8d1/NameFinder.java/clean/libjava/gnu/gcj/runtime/NameFinder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3689, 261, 780, 585, 16, 1525, 3091, 13, 225, 288, 565, 3112, 812, 273, 585, 31, 565, 16338, 273, 446, 31, 565, 980, 2578, 273, 300, 21, 31, 3639, 309, 16051, 999, 67, 4793...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3689, 261, 780, 585, 16, 1525, 3091, 13, 225, 288, 565, 3112, 812, 273, 585, 31, 565, 16338, 273, 446, 31, 565, 980, 2578, 273, 300, 21, 31, 3639, 309, 16051, 999, 67, 4793...
c2dm.setDrawMode(c2dm.RING);
c2dm.setDrawMode(Controller2DModel.RING);
public void actionPerformed(ActionEvent e) { if (jcpPanel.lastAction != null) { jcpPanel.lastAction.setBackground(Color.LIGHT_GRAY); } else { (((JChemPaintEditorPanel)jcpPanel).getToolBar().getComponentAtIndex(0)).setBackground(Color.LIGHT_GRAY); } ((JComponent) e.getSource()).setBackground(Color.GRAY); jcpPanel.lastAction = (JComponent) e.getSource(); logger.debug("ChemAction performed!"); JChemPaintModel jcpm; Controller2DModel c2dm; String s = e.getActionCommand(); String type = s.substring(s.indexOf("@") + 1); logger.info(" type ", type); logger.debug(" source ", e.getSource()); jcpm = jcpPanel.getJChemPaintModel(); if (jcpm != null) { c2dm = jcpm.getControllerModel(); if (type.equals("bond")) { c2dm.setDrawMode(c2dm.DRAWBOND); } else if (type.equals("select")) { c2dm.setDrawMode(c2dm.SELECT); } else if (type.equals("move")) { c2dm.setDrawMode(c2dm.MOVE); } else if (type.equals("select")) { c2dm.setDrawMode(c2dm.SELECT); } else if (type.equals("eraser")) { c2dm.setDrawMode(c2dm.ERASER); } else if (type.equals("element")) { if (dialog == null) { // open PeriodicTable panel dialog = new PTDialog( new PTDialogChangeListener(c2dm) ); } dialog.pack(); dialog.show(); c2dm.setDrawMode(c2dm.ELEMENT); } else if (type.equals("symbol")) { c2dm.setDrawMode(c2dm.SYMBOL); } else if (type.equals("triangle")) { c2dm.setDrawMode(c2dm.RING); c2dm.setRingSize(3); } else if (type.equals("square")) { c2dm.setDrawMode(c2dm.RING); c2dm.setRingSize(4); } else if (type.equals("pentagon")) { c2dm.setDrawMode(c2dm.RING); c2dm.setRingSize(5); } else if (type.equals("hexagon")) { c2dm.setDrawMode(c2dm.RING); c2dm.setRingSize(6); } else if (type.equals("heptagon")) { c2dm.setDrawMode(c2dm.RING); c2dm.setRingSize(7); } else if (type.equals("octagon")) { c2dm.setDrawMode(c2dm.RING); c2dm.setRingSize(8); } else if (type.equals("benzene")) { c2dm.setDrawMode(c2dm.BENZENERING); c2dm.setRingSize(6); } else if (type.equals("cleanup")) { c2dm.setDrawMode(c2dm.CLEANUP); } else if (type.equals("flip_H")) { // not implemented c2dm.setDrawMode(c2dm.FLIP_H); } else if (type.equals("flip_V")) { // not implemented c2dm.setDrawMode(c2dm.FLIP_V); } else if (type.equals("rotation")) { // not implemented c2dm.setDrawMode(c2dm.ROTATION); } else if (type.equals("up_bond")) { c2dm.setDrawMode(c2dm.UP_BOND); } else if (type.equals("down_bond")) { c2dm.setDrawMode(c2dm.DOWN_BOND); } else if (type.equals("normalize")) { c2dm.setDrawMode(c2dm.NORMALIZE); } else if (type.equals("plus")) { c2dm.setDrawMode(c2dm.INCCHARGE); } else if (type.equals("minus")) { c2dm.setDrawMode(c2dm.DECCHARGE); } else if (type.equals("lasso")) { c2dm.setDrawMode(c2dm.LASSO); } else if (type.equals("map")) { c2dm.setDrawMode(c2dm.MAPATOMATOM); } } jcpPanel.stateChanged(new ChangeEvent(this)); if (jcpm != null) { jcpm.fireChange(); } }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/b26a7336f19d2669cc404aabf392e4fc14a8d7ad/ChemAction.java/clean/src/org/openscience/cdk/applications/jchempaint/action/ChemAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 202, 95, 565, 309, 261, 78, 4057, 5537, 18, 2722, 1803, 480, 446, 13, 202, 202, 95, 1082, 202, 78, 4057, 5537, 18, 2722, 1803, 18, 542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26100, 12, 1803, 1133, 425, 13, 202, 95, 565, 309, 261, 78, 4057, 5537, 18, 2722, 1803, 480, 446, 13, 202, 202, 95, 1082, 202, 78, 4057, 5537, 18, 2722, 1803, 18, 542, ...
m_aspectManager.getUuid());
m_aspectManager);
public void register(final AspectContainer container, final PointcutManager pointcutManager) { if (container == null) { throw new IllegalArgumentException("aspect container can not be null"); } if (pointcutManager == null) { throw new IllegalArgumentException("pointcut manager can not be null"); } synchronized (m_aspectContainers) { synchronized (m_aspectIndexes) { synchronized (m_adviceIndexes) { synchronized (m_mixins) { synchronized (m_pointcutManagerMap) { try { CrossCuttingInfo crossCuttingInfo = container.getCrossCuttingInfo(); m_pointcutManagerMap.put(crossCuttingInfo.getName(), pointcutManager); final int indexAspect = m_aspectContainers.length + 1; m_aspectIndexes.put(crossCuttingInfo.getName(), indexAspect); final Object[] tmpAspects = new Object[m_aspectContainers.length + 1]; java.lang.System.arraycopy(m_aspectContainers, 0, tmpAspects, 0, m_aspectContainers.length); tmpAspects[m_aspectContainers.length] = container; m_aspectContainers = new AspectContainer[m_aspectContainers.length + 1]; java.lang.System.arraycopy(tmpAspects, 0, m_aspectContainers, 0, tmpAspects.length); // retrieve a sorted advices list => matches the sorted method list in the container List advices = crossCuttingInfo.getAspectDefinition().getAllAdvices(); for (Iterator it = advices.iterator(); it.hasNext();) { final AdviceDefinition adviceDef = (AdviceDefinition)it.next(); IndexTuple tuple = new IndexTuple(indexAspect, adviceDef.getMethodIndex(), m_aspectManager.getUuid()); //prefix AdviceName with AspectName to allow AspectReuse m_adviceIndexes.put(crossCuttingInfo.getName() + "/" + adviceDef.getName(), tuple); } // mixins List introductions = crossCuttingInfo.getAspectDefinition().getIntroductions(); for (Iterator it = introductions.iterator(); it.hasNext();) { IntroductionDefinition introDef = (IntroductionDefinition)it.next(); // load default mixin impl from the aspect which defines it Class defaultImplClass = crossCuttingInfo.getAspectClass().getClassLoader() .loadClass(introDef.getName()); Introduction mixin = new Introduction(introDef.getName(), defaultImplClass, crossCuttingInfo, introDef); // prepare the container mixin.setContainer(new IntroductionContainer(mixin, container)); final Mixin[] tmpMixins = new Mixin[m_mixins.length + 1]; java.lang.System.arraycopy(m_mixins, 0, tmpMixins, 0, m_mixins.length); tmpMixins[m_mixins.length] = mixin; m_mixins = new Mixin[m_mixins.length + 1]; java.lang.System.arraycopy(tmpMixins, 0, m_mixins, 0, tmpMixins.length); } } catch (Exception e) { throw new DefinitionException("could not register aspect [" + container.getCrossCuttingInfo().getName() + "] due to: " + e.toString()); } if (m_aspectContainers.length != m_aspectIndexes.size()) { throw new IllegalStateException("aspect indexing out of synch"); } } } } } } }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/f4570b533c4b1d9eb8f134919d9eedbccc4ea1ce/AspectRegistry.java/clean/aspectwerkz3/src/main/org/codehaus/aspectwerkz/aspect/management/AspectRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1744, 12, 6385, 2970, 1181, 2170, 1478, 16, 727, 4686, 5150, 1318, 29774, 1318, 13, 288, 3639, 309, 261, 3782, 422, 446, 13, 288, 5411, 604, 394, 2754, 2932, 23579, 1478, 848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1744, 12, 6385, 2970, 1181, 2170, 1478, 16, 727, 4686, 5150, 1318, 29774, 1318, 13, 288, 3639, 309, 261, 3782, 422, 446, 13, 288, 5411, 604, 394, 2754, 2932, 23579, 1478, 848, ...
}
}
public GameData loadGame(File savedGameFile) throws IOException { ObjectInputStream input = null; try { input = new ObjectInputStream(new FileInputStream(savedGameFile)); return loadGame(input); } finally { try { input.close(); } catch(Exception e) {} } }
8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/e67103093b828d2ca7762eb2192fac18f472393c/GameDataManager.java/buggy/src/games/strategy/engine/framework/GameDataManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 14121, 751, 1262, 12496, 12, 812, 5198, 12496, 812, 13, 1216, 1860, 202, 95, 202, 202, 921, 4348, 810, 273, 446, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 2630, 273, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 14121, 751, 1262, 12496, 12, 812, 5198, 12496, 812, 13, 1216, 1860, 202, 95, 202, 202, 921, 4348, 810, 273, 446, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 2630, 273, 394, ...
SplitFileInserter sfi = new SplitFileInserter(parent, sh, data, bestCodec, block.clientMetadata, ctx, getCHKOnly, metadata, token, insertAsArchiveManifest);
SplitFileInserter sfi = new SplitFileInserter(parent, sh, data, bestCodec, block.clientMetadata, ctx, getCHKOnly, metadata, token, insertAsArchiveManifest, false);
private void tryCompress() throws InserterException { // First, determine how small it needs to be Bucket origData = block.getData(); Bucket data = origData; int blockSize; boolean dontCompress = ctx.dontCompress; long origSize = data.size(); String type = block.desiredURI.getKeyType().toUpperCase(); if(type.equals("SSK") || type.equals("KSK") || type.equals("USK")) { blockSize = SSKBlock.DATA_LENGTH; } else if(type.equals("CHK")) { blockSize = CHKBlock.DATA_LENGTH; } else { throw new InserterException(InserterException.INVALID_URI, "Unknown key type: "+type, null); } Compressor bestCodec = null; Bucket bestCompressedData = null; if((origSize > blockSize) && (!ctx.dontCompress) && (!dontCompress)) { // Try to compress the data. // Try each algorithm, starting with the fastest and weakest. // Stop when run out of algorithms, or the compressed data fits in a single block. int algos = Compressor.countCompressAlgorithms(); try { for(int i=0;i<algos;i++) { // Only produce if we are compressing *the original data* if(parent == cb) ctx.eventProducer.produceEvent(new StartedCompressionEvent(i)); Compressor comp = Compressor.getCompressionAlgorithmByDifficulty(i); Bucket result; result = comp.compress(origData, ctx.persistentBucketFactory, Long.MAX_VALUE); if(result.size() < blockSize) { bestCodec = comp; data = result; if(bestCompressedData != null) ctx.bf.freeBucket(bestCompressedData); bestCompressedData = data; break; } if((bestCompressedData != null) && (result.size() < bestCompressedData.size())) { ctx.bf.freeBucket(bestCompressedData); bestCompressedData = result; data = result; bestCodec = comp; } else if((bestCompressedData == null) && (result.size() < data.size())) { bestCompressedData = result; bestCodec = comp; data = result; } } } catch (IOException e) { throw new InserterException(InserterException.BUCKET_ERROR, e, null); } catch (CompressionOutputSizeException e) { // Impossible throw new Error(e); } } if(parent == cb) { ctx.eventProducer.produceEvent(new FinishedCompressionEvent(bestCodec == null ? -1 : bestCodec.codecNumberForMetadata(), origSize, data.size())); Logger.minor(this, "Compressed "+origSize+" to "+data.size()+" on "+this); } // Compressed data // Insert it... short codecNumber = bestCodec == null ? -1 : bestCodec.codecNumberForMetadata(); if(block.getData().size() > Integer.MAX_VALUE) throw new InserterException(InserterException.INTERNAL_ERROR, "2GB+ should not encode to one block!", null); if(((block.clientMetadata == null) || block.clientMetadata.isTrivial()) && !insertAsArchiveManifest) { if(data.size() < blockSize) { // Just insert it ClientPutState bi = createInserter(parent, data, codecNumber, block.desiredURI, ctx, cb, metadata, (int)block.getData().size(), -1, getCHKOnly, true); cb.onTransition(this, bi); bi.schedule(); cb.onBlockSetFinished(this); return; } } if (data.size() < ClientCHKBlock.MAX_COMPRESSED_DATA_LENGTH) { // Insert single block, then insert pointer to it if(reportMetadataOnly) { SingleBlockInserter dataPutter = new SingleBlockInserter(parent, data, codecNumber, FreenetURI.EMPTY_CHK_URI, ctx, cb, metadata, (int)origSize, -1, getCHKOnly, true, true, token); Metadata meta = new Metadata(insertAsArchiveManifest ? Metadata.ZIP_MANIFEST : Metadata.SIMPLE_REDIRECT, dataPutter.getURI(), block.clientMetadata); cb.onMetadata(meta, this); cb.onTransition(this, dataPutter); dataPutter.schedule(); cb.onBlockSetFinished(this); } else { MultiPutCompletionCallback mcb = new MultiPutCompletionCallback(cb, parent, token); SingleBlockInserter dataPutter = new SingleBlockInserter(parent, data, codecNumber, FreenetURI.EMPTY_CHK_URI, ctx, mcb, metadata, (int)origSize, -1, getCHKOnly, true, false, token); Metadata meta = new Metadata(insertAsArchiveManifest ? Metadata.ZIP_MANIFEST : Metadata.SIMPLE_REDIRECT, dataPutter.getURI(), block.clientMetadata); Bucket metadataBucket; try { metadataBucket = BucketTools.makeImmutableBucket(ctx.bf, meta.writeToByteArray()); } catch (IOException e) { Logger.error(this, "Caught "+e, e); throw new InserterException(InserterException.BUCKET_ERROR, e, null); } catch (MetadataUnresolvedException e) { // Impossible, we're not inserting a manifest. Logger.error(this, "Caught "+e, e); throw new InserterException(InserterException.INTERNAL_ERROR, "Got MetadataUnresolvedException in SingleFileInserter: "+e.toString(), null); } ClientPutState metaPutter = createInserter(parent, metadataBucket, (short) -1, block.desiredURI, ctx, mcb, true, (int)origSize, -1, getCHKOnly, true); mcb.addURIGenerator(metaPutter); mcb.add(dataPutter); cb.onTransition(this, mcb); mcb.arm(); dataPutter.schedule(); metaPutter.schedule(); cb.onBlockSetFinished(this); } return; } // Otherwise the file is too big to fit into one block // We therefore must make a splitfile // Job of SplitHandler: when the splitinserter has the metadata, // insert it. Then when the splitinserter has finished, and the // metadata insert has finished too, tell the master callback. if(reportMetadataOnly) { SplitFileInserter sfi = new SplitFileInserter(parent, cb, data, bestCodec, block.clientMetadata, ctx, getCHKOnly, metadata, token, insertAsArchiveManifest); cb.onTransition(this, sfi); sfi.start(); } else { SplitHandler sh = new SplitHandler(); SplitFileInserter sfi = new SplitFileInserter(parent, sh, data, bestCodec, block.clientMetadata, ctx, getCHKOnly, metadata, token, insertAsArchiveManifest); sh.sfi = sfi; cb.onTransition(this, sh); sfi.start(); } }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/ba61984610fbdc6ae89adf37e39660cc27c3f343/SingleFileInserter.java/clean/src/freenet/client/async/SingleFileInserter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 775, 16552, 1435, 1216, 657, 550, 387, 503, 288, 202, 202, 759, 5783, 16, 4199, 3661, 5264, 518, 4260, 358, 506, 202, 202, 4103, 1647, 751, 273, 1203, 18, 588, 751, 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, 1152, 918, 775, 16552, 1435, 1216, 657, 550, 387, 503, 288, 202, 202, 759, 5783, 16, 4199, 3661, 5264, 518, 4260, 358, 506, 202, 202, 4103, 1647, 751, 273, 1203, 18, 588, 751, 5621...
String encoding = connection.getEncoding(); if (encoding == null) return new String(this_row[columnIndex - 1]); else { try { return new String(this_row[columnIndex - 1], encoding); } catch (UnsupportedEncodingException unse) { throw new PSQLException("postgresql.res.encoding", unse); } }
Encoding encoding = connection.getEncoding(); return encoding.decode(this_row[columnIndex - 1]);
public String getString(int columnIndex) throws SQLException { //byte[] bytes = getBytes(columnIndex); // //if (bytes == null) //return null; //return new String(bytes); if (columnIndex < 1 || columnIndex > fields.length) throw new PSQLException("postgresql.res.colrange"); wasNullFlag = (this_row[columnIndex - 1] == null); if(wasNullFlag) return null; String encoding = connection.getEncoding(); if (encoding == null) return new String(this_row[columnIndex - 1]); else { try { return new String(this_row[columnIndex - 1], encoding); } catch (UnsupportedEncodingException unse) { throw new PSQLException("postgresql.res.encoding", unse); } } }
49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/ff21a8e5c86457e205ff7c598b930efd711cb2dc/ResultSet.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 4997, 12, 474, 14882, 13, 1216, 6483, 225, 288, 565, 368, 7229, 8526, 1731, 273, 8425, 12, 2827, 1016, 1769, 565, 368, 565, 368, 430, 261, 3890, 422, 446, 13, 565, 368, 2463,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 4997, 12, 474, 14882, 13, 1216, 6483, 225, 288, 565, 368, 7229, 8526, 1731, 273, 8425, 12, 2827, 1016, 1769, 565, 368, 565, 368, 430, 261, 3890, 422, 446, 13, 565, 368, 2463,...
Map map = new HashMap();
Map map = new LinkedHashMap();
private Object getValue(Element setting) { if ("map".equals(setting.getAttributeValue("type"))) { Map map = new HashMap(); for (Iterator it = setting.getChildren().iterator(); it.hasNext();) { Element child = (Element)it.next(); Object key = getKey(child); if (key != null) { map.put(key, getValue(child)); } } return map; } else { return (setting.getText() == null) ? "" : setting.getTextTrim(); } }
12751 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12751/0e63e98cd8c849d0fc649e82deff90ba4a162544/ReportSettings.java/clean/statcvs-xml2/src/de/berlios/statcvs/xml/output/ReportSettings.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1033, 2366, 12, 1046, 3637, 13, 202, 95, 202, 202, 430, 7566, 1458, 9654, 14963, 12, 8920, 18, 588, 14942, 2932, 723, 6, 20349, 288, 1082, 202, 863, 852, 273, 394, 4317, 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, 1152, 1033, 2366, 12, 1046, 3637, 13, 202, 95, 202, 202, 430, 7566, 1458, 9654, 14963, 12, 8920, 18, 588, 14942, 2932, 723, 6, 20349, 288, 1082, 202, 863, 852, 273, 394, 4317, 5621...
public boolean isSet(org.quickfix.field.SecurityStatusReqID field)
public boolean isSet(quickfix.field.SecurityStatusReqID field)
public boolean isSet(org.quickfix.field.SecurityStatusReqID field) { return isSetField(field); }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityStatusRequest.java/clean/src/java/src/quickfix/fix42/SecurityStatusRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 4368, 1482, 6113, 734, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 1769, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 4368, 1482, 6113, 734, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 1769, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
String path = ""; if (aMozBinDirectory != null) { path = aMozBinDirectory + File.separator; } System.load(path + System.mapLibraryName("javaxpcomglue"));
registerJavaXPCOMMethods(aMozBinDirectory);
public nsIServiceManager initXPCOM(File aMozBinDirectory, IAppFileLocProvider aAppFileLocProvider) { // load JNI library String path = ""; if (aMozBinDirectory != null) { path = aMozBinDirectory + File.separator; } System.load(path + System.mapLibraryName("javaxpcomglue")); return initXPCOMNative(aMozBinDirectory, aAppFileLocProvider); }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/dee2288e08fadd7ad27ae2fdfb1375b392c75ea9/XPCOMImpl.java/clean/extensions/java/xpcom/src/XPCOMImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3153, 45, 1179, 1318, 1208, 60, 3513, 1872, 12, 812, 279, 49, 11142, 9913, 2853, 16, 1850, 467, 3371, 812, 1333, 2249, 279, 3371, 812, 1333, 2249, 13, 288, 565, 368, 1262, 804, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3153, 45, 1179, 1318, 1208, 60, 3513, 1872, 12, 812, 279, 49, 11142, 9913, 2853, 16, 1850, 467, 3371, 812, 1333, 2249, 279, 3371, 812, 1333, 2249, 13, 288, 565, 368, 1262, 804, 50...
settings), settings);
settings));
public JavaLanguage() { super("JAVA", "text/java"); myFormattingModelBuilder = new FormattingModelBuilder() { public FormattingModel createModel(final PsiElement element, final CodeStyleSettings settings) { return new PsiBasedFormattingModel(element.getContainingFile(), AbstractJavaBlock.createJavaBlock(SourceTreeToPsiMap.psiElementToTree(element), settings), settings); } }; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/8440b555a5532a243be03bd555d1348ef20331b3/JavaLanguage.java/buggy/source/com/intellij/lang/java/JavaLanguage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5110, 3779, 1435, 288, 565, 2240, 2932, 27264, 3113, 315, 955, 19, 6290, 8863, 565, 3399, 23974, 1488, 1263, 273, 394, 4077, 1787, 1488, 1263, 1435, 288, 1377, 1071, 4077, 1787, 1488,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5110, 3779, 1435, 288, 565, 2240, 2932, 27264, 3113, 315, 955, 19, 6290, 8863, 565, 3399, 23974, 1488, 1263, 273, 394, 4077, 1787, 1488, 1263, 1435, 288, 1377, 1071, 4077, 1787, 1488,...
Iterator names = _runtimeSettings.getNames();
Iterator names = _buildSettings.getNames();
private final CallResult doGetSettings() { CallResultBuilder builder = new CallResultBuilder(); // Build settings Iterator names = _runtimeSettings.getNames(); builder.startTag("build"); while (names.hasNext()) { String key = (String) names.next(); String value = _buildSettings.get(key); builder.startTag("property"); builder.attribute("name", key); builder.pcdata(value); builder.endTag(); } builder.endTag(); // Runtime settings names = _runtimeSettings.getNames(); builder.startTag("runtime"); while (names.hasNext()) { String key = (String) names.next(); String value = _runtimeSettings.get(key); builder.startTag("property"); builder.attribute("name", key); builder.pcdata(value); builder.endTag(); } builder.endTag(); // System properties Enumeration e = System.getProperties().propertyNames(); builder.startTag("system"); while (e.hasMoreElements()) { String key = (String) e.nextElement(); String value = System.getProperty(key); if (key != null && value != null && key.length() > 0 && value.length() > 0) { builder.startTag("property"); builder.attribute("name", key); builder.pcdata(value); builder.endTag(); } } builder.endTag(); return builder; }
45757 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45757/721e431f06f662bd7851822bce2d5c4a0441030c/API.java/buggy/src/java-server-framework/org/xins/server/API.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 727, 3049, 1253, 23611, 2628, 1435, 288, 1377, 3049, 1253, 1263, 2089, 273, 394, 3049, 1253, 1263, 5621, 1377, 368, 3998, 1947, 1377, 4498, 1257, 273, 389, 3510, 2628, 18, 588, 1557, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 727, 3049, 1253, 23611, 2628, 1435, 288, 1377, 3049, 1253, 1263, 2089, 273, 394, 3049, 1253, 1263, 5621, 1377, 368, 3998, 1947, 1377, 4498, 1257, 273, 389, 3510, 2628, 18, 588, 1557, ...
ze.csize = ze.size; if (ze.crc == -1) {
ze.setCompressedSize(ze.getSize()); if (ze.getCrc() == -1) {
public void putNextEntry(ZipEntry ze) throws IOException{ closeEntry(); // Close previous entry if (ze.method == -1) { ze.method = method; } if (ze.method == STORED) { if (ze.size == -1) { throw new ZipException("size not set in stored entry"); } ze.csize = ze.size; if (ze.crc == -1) { throw new ZipException("crc not set in stored entry"); } ze.flag = 0; } else { ze.flag = 0x0008; } if (curr == null || curr.method != ze.method) { if (ze.method == STORED) { def = new Storer(); } else { def = new Deflater(level, true); } } // Convert name to UTF-8 binary byte[] nameBuf = (ze.name != null) ? UTF8.encode(ze.name) : new byte[0]; byte[] lh = new byte[LOCHDR]; put32(lh, 0, (int)LOCSIG); put16(lh, LOCVER, ze.method == STORED ? ZIPVER_1_0 : ZIPVER_2_0); put16(lh, LOCFLG, ze.flag); put16(lh, LOCHOW, ze.method); put32(lh, LOCTIM, ze.dosTime); if (ze.method == STORED) { put32(lh, LOCCRC, (int)ze.crc); put32(lh, LOCSIZ, (int)ze.csize); put32(lh, LOCLEN, (int)ze.size); } else { put32(lh, LOCCRC, 0); put32(lh, LOCSIZ, 0); put32(lh, LOCLEN, 0); } put16(lh, LOCNAM, nameBuf.length); put16(lh, LOCEXT, ze.extra == null ? 0 : ze.extra.length); strm.write(lh); ze.offset = dout; dout += LOCHDR; // Write name strm.write(nameBuf); dout += nameBuf.length; // Write any extra stuff if (ze.extra != null) { strm.write(ze.extra); dout += ze.extra.length; } // Add entry to list of entries we need to write at the end. dir.addElement(ze); curr = ze;}
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/548f0268ceac96f6ee3dd768a091b0017e5d68fe/ZipOutputStream.java/clean/libraries/javalib/java/util/zip/ZipOutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1378, 2134, 1622, 12, 9141, 1622, 26637, 13, 1216, 1860, 95, 202, 4412, 1622, 5621, 202, 759, 3527, 2416, 1241, 202, 430, 261, 8489, 18, 2039, 422, 300, 21, 13, 288, 202, 202, 848...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1378, 2134, 1622, 12, 9141, 1622, 26637, 13, 1216, 1860, 95, 202, 4412, 1622, 5621, 202, 759, 3527, 2416, 1241, 202, 430, 261, 8489, 18, 2039, 422, 300, 21, 13, 288, 202, 202, 848...
_list.set(previousIndex(),o); }
throw new java.lang.UnsupportedOperationException("Method set() not yet implemented."); }
public void set(Object o) { _list.set(previousIndex(),o); }
52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/b9fbb270ca27018c79852f6e7ea1a7f2aeff42b8/IDOPrimaryKeyList.java/buggy/src/java/com/idega/data/IDOPrimaryKeyList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 444, 12, 921, 320, 13, 288, 9506, 202, 67, 1098, 18, 542, 12, 11515, 1016, 9334, 83, 1769, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 444, 12, 921, 320, 13, 288, 9506, 202, 67, 1098, 18, 542, 12, 11515, 1016, 9334, 83, 1769, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
updateTreeWithRoot(event.getRoot());
SModelTreeNode.this.update();
public void run() { SModelEventVisitor visitor = new SModelEventVisitor() { public void visitRootEvent(SModelRootEvent event) { updateTreeWithRoot(event.getRoot()); } public void visitChildEvent(SModelChildEvent event) { updateTreeWithRoot(event.getParent()); } public void visitPropertyEvent(SModelPropertyEvent event) { } public void visitReferenceEvent(SModelReferenceEvent event) { } }; for (SModelEvent event : events) { event.accept(visitor); } ((DefaultTreeModel) myTree.getModel()).nodeStructureChanged(SModelTreeNode.this); }
14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/7b4629c0ecf21b65692579527562aed76818854c/ProjectPane.java/buggy/source/jetbrains/mps/ide/projectPane/ProjectPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1086, 1435, 288, 2868, 348, 1488, 1133, 7413, 8000, 273, 394, 348, 1488, 1133, 7413, 1435, 288, 7734, 1071, 918, 3757, 2375, 1133, 12, 55, 1488, 2375, 1133, 871, 13, 288, 5375...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1086, 1435, 288, 2868, 348, 1488, 1133, 7413, 8000, 273, 394, 348, 1488, 1133, 7413, 1435, 288, 7734, 1071, 918, 3757, 2375, 1133, 12, 55, 1488, 2375, 1133, 871, 13, 288, 5375...
super("Interaction", _interactionIcon, 3);
super("Interaction", _interactionIcon, 2); addCaption(Argo.localize("UMLMenu", "label.name"),1,0,0); addField(nameField,1,0,0); addCaption(Argo.localize("UMLMenu", "label.stereotype"),2,0,1); addField(stereotypeBox,2,0,0); /* addCaption("Messages:",0,1,0); JList messageList = new UMLList(new UMLMessagesListModel(this,"message",true), true); messageList.setBackground(getBackground()); messageList.setForeground(Color.blue); addField(new JScrollPane(messageList),0,1,1); */
public PropPanelInteraction() { super("Interaction", _interactionIcon, 3); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ce70ef5bfb9cd8048629e594c83ac220e41b89b0/PropPanelInteraction.java/clean/src_new/org/argouml/uml/ui/behavior/collaborations/PropPanelInteraction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 10484, 5537, 17419, 1435, 288, 202, 202, 9565, 2932, 17419, 3113, 389, 30303, 5554, 16, 890, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 10484, 5537, 17419, 1435, 288, 202, 202, 9565, 2932, 17419, 3113, 389, 30303, 5554, 16, 890, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
RenderRequest renderRequest = new RenderRequestImpl(request, portalContext, portletContext);
RenderRequest renderRequest = new RenderRequestImpl(request, portalContext, portletContext, supports);
public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { registry = PortletRegistry.getInstance(); // If no portlet ID exists, this may be a command to init or shutdown a portlet instance // currently either all portlets are initailized or shutdown, not one individually... String method = (String) request.getAttribute(SportletProperties.PORTLET_LIFECYCLE_METHOD); if (method.equals(SportletProperties.INIT)) { Set set = portlets.keySet(); Iterator it = set.iterator(); while (it.hasNext()) { String portletClass = (String) it.next(); Portlet portlet = (Portlet) portlets.get(portletClass); log.debug("in PortletServlet: service(): Initializing portlet " + portletClass); PortletDefinition portletDef = portletWebApp.getPortletDefinition(portletClass); PortletConfig portletConfig = new PortletConfigImpl(getServletConfig(), portletDef, Thread.currentThread().getContextClassLoader()); try { portlet.init(portletConfig); portletConfigHash.put(portletClass, portletConfig); } catch (Exception e) { log.error("in PortletServlet: service(): Unable to INIT portlet " + portletClass, e); // PLT.5.5.2.1 Portlet that fails to initialize must not be placed in active service it.remove(); } } manager.addWebApp(portletWebApp); return; } else if (method.equals(SportletProperties.INIT_CONCRETE)) { // do nothing for concrete portlets return; } else if (method.equals(SportletProperties.DESTROY)) { Iterator it = portlets.keySet().iterator(); while (it.hasNext()) { String portletClass = (String) it.next(); Portlet portlet = (Portlet) portlets.get(portletClass); log.debug("in PortletServlet: service(): Destroying portlet " + portletClass); try { portlet.destroy(); } catch (RuntimeException e) { log.error("Caught exception during portlet destroy", e); } } manager.removePortletWebApplication(portletWebApp); return; } else if (method.equals(SportletProperties.DESTROY_CONCRETE)) { // do nothing for concrete portlets return; } // There must be a portlet ID to know which portlet to service String portletClassName = (String) request.getAttribute(SportletProperties.PORTLETID); String compId = (String) request.getAttribute(SportletProperties.COMPONENT_ID); if (portletClassName == null) { // it may be in the request parameter portletClassName = request.getParameter(SportletProperties.PORTLETID); if (portletClassName == null) { log.debug("in PortletServlet: service(): No PortletID found in request!"); return; } request.setAttribute(SportletProperties.PORTLETID, portletClassName); } log.debug("have a portlet id " + portletClassName + " component id= " + compId); Portlet portlet = (Portlet) portlets.get(portletClassName); JSRApplicationPortletImpl appPortlet = (JSRApplicationPortletImpl) registry.getApplicationPortlet(portletClassName); //Supports[] supports = appPortlet.getSupports(); setPortletModes(request, appPortlet); // perform user conversion from gridsphere to JSR model User user = (User) request.getAttribute(SportletProperties.PORTLET_USER); Map userInfo; if (user instanceof GuestUser) { userInfo = null; } else { userInfo = new HashMap(); userInfo.put("user.name", user.getUserName()); //userInfo.put("user.name.nickName", user.getUserName()); userInfo.put("user.id", user.getID()); userInfo.put("user.email", user.getEmailAddress()); userInfo.put("user.organization", user.getOrganization()); userInfo.put("user.lastlogintime", new Long(user.getLastLoginTime()).toString()); userInfo.put("user.name.full", user.getFullName()); userInfo.put("user.timezone", user.getAttribute(User.TIMEZONE)); userInfo.put("user.locale", user.getAttribute(User.LOCALE)); userInfo.put("user.theme", user.getAttribute(User.THEME)); //userInfo.put("user.name.given", user.getGivenName()); //userInfo.put("user.name.family", user.getFamilyName()); request.setAttribute(PortletRequest.USER_INFO, userInfo); } /* UserAttribute[] userAttrs = portletWebApp.getUserAttributes(); for (int i = 0; i < userAttrs.length; i++) { UserAttribute userAttr = userAttrs[i]; String name = userAttr.getName().getContent(); userInfo.put(name, ""); } request.setAttribute(PortletRequest.USER_INFO, userInfo); */ // portlet preferences PortalContext portalContext = appPortlet.getPortalContext(); request.setAttribute(SportletProperties.PORTAL_CONTEXT, portalContext); request.setAttribute(SportletProperties.PORTLET_CONFIG, portletConfigHash.get(portletClassName)); if (portlet == null) { log.error("in PortletServlet: service(): No portlet matching " + portletClassName + " found!"); return; } if (method.equals(SportletProperties.SERVICE)) { String action = (String) request.getAttribute(SportletProperties.PORTLET_ACTION_METHOD); if (action != null) { log.debug("in PortletServlet: action is not NULL"); if (action.equals(SportletProperties.DO_TITLE)) { RenderRequest renderRequest = new RenderRequestImpl(request, portalContext, portletContext); RenderResponse renderResponse = new RenderResponseImpl(request, response, portalContext); renderRequest.setAttribute(SportletProperties.RENDER_REQUEST, renderRequest); renderRequest.setAttribute(SportletProperties.RENDER_RESPONSE, renderResponse); log.debug("in PortletServlet: do title " + portletClassName); try { doTitle(portlet, renderRequest, renderResponse); } catch (PortletException e) { log.error("Error during doTitle:", e); } } else if (action.equals(SportletProperties.WINDOW_EVENT)) { // do nothing } else if (action.equals(SportletProperties.MESSAGE_RECEIVED)) { // do nothing } else if (action.equals(SportletProperties.ACTION_PERFORMED)) { PortletPreferences prefs = prefsManager.getPortletPreferences(appPortlet, user, Thread.currentThread().getContextClassLoader(), false); request.setAttribute(SportletProperties.PORTLET_PREFERENCES, prefs); ActionRequestImpl actionRequest = new ActionRequestImpl(request, portalContext, portletContext); ActionResponse actionResponse = new ActionResponseImpl(request, response, portalContext); //setGroupAndRole(actionRequest, actionResponse); log.debug("in PortletServlet: action handling portlet " + portletClassName); try { portlet.processAction(actionRequest, actionResponse); } catch (Exception e) { log.error("Error during processAction:", e); request.setAttribute(SportletProperties.PORTLETERROR + portletClassName, new org.gridlab.gridsphere.portlet.PortletException(e)); } Map params = ((ActionResponseImpl) actionResponse).getRenderParameters(); String cid = (String) request.getAttribute(SportletProperties.COMPONENT_ID); actionRequest.setAttribute("renderParams" + "_" + portletClassName + "_" + cid, params); log.debug("placing render params in attribute: " + "renderParams" + "_" + portletClassName + "_" + cid); //actionRequest.clearParameters(); redirect(request, response, actionRequest, actionResponse, portalContext); } } else { PortletPreferences prefs = prefsManager.getPortletPreferences(appPortlet, user, Thread.currentThread().getContextClassLoader(), true); request.setAttribute(SportletProperties.PORTLET_PREFERENCES, prefs); RenderRequest renderRequest = new RenderRequestImpl(request, portalContext, portletContext); RenderResponse renderResponse = new RenderResponseImpl(request, response, portalContext); renderRequest.setAttribute(SportletProperties.RENDER_REQUEST, renderRequest); renderRequest.setAttribute(SportletProperties.RENDER_RESPONSE, renderResponse); //setGroupAndRole(renderRequest, renderResponse); log.debug("in PortletServlet: rendering portlet " + portletClassName); if (renderRequest.getAttribute(SportletProperties.RESPONSE_COMMITTED) == null) { try { portlet.render(renderRequest, renderResponse); } catch (UnavailableException e) { log.error("in PortletServlet(): doRender() caught unavailable exception: "); try { portlet.destroy(); } catch (Exception d) { log.error("in PortletServlet(): destroy caught unavailable exception: ", d); } } catch (Exception e) { if (request.getAttribute(SportletProperties.PORTLETERROR + portletClassName) == null) { request.setAttribute(SportletProperties.PORTLETERROR + portletClassName, e); } log.error("in PortletServlet(): doRender() caught exception", e); throw new ServletException(e); } request.removeAttribute(SportletProperties.PORTLET_MODE_JSR); } } request.removeAttribute(SportletProperties.PORTLET_ACTION_METHOD); } else { log.error("in PortletServlet: service(): No " + SportletProperties.PORTLET_LIFECYCLE_METHOD + " found in request!"); } request.removeAttribute(SportletProperties.PORTLET_LIFECYCLE_METHOD); }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/bba92452c598d888d0f72546fa610dec7ba5b8f5/PortletServlet.java/buggy/src/org/gridlab/gridsphere/provider/portlet/jsr/PortletServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1156, 12, 2940, 18572, 590, 16, 12446, 766, 13, 1216, 16517, 16, 1860, 288, 3639, 4023, 273, 21305, 4243, 18, 588, 1442, 5621, 3639, 368, 971, 1158, 13114, 1599, 1704, 16, 333,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1156, 12, 2940, 18572, 590, 16, 12446, 766, 13, 1216, 16517, 16, 1860, 288, 3639, 4023, 273, 21305, 4243, 18, 588, 1442, 5621, 3639, 368, 971, 1158, 13114, 1599, 1704, 16, 333,...
assertEquals("/nextapp/echo2/test/componentxml/BackgroundImage.png",
assertEquals("nextapp/echo2/test/componentxml/BackgroundImage.png",
public void testSimple() { Style alphaStyle = styleSheet.getStyle(WindowPane.class, "alpha"); FillImageBorder fillImageBorder = (FillImageBorder) alphaStyle.getProperty(WindowPane.PROPERTY_BORDER); assertEquals(new Color(0xabcdef), fillImageBorder.getColor()); assertEquals(new Insets(12), fillImageBorder.getContentInsets()); assertEquals(new Insets(6, 4), fillImageBorder.getBorderInsets()); FillImage topLeftFillImage = fillImageBorder.getFillImage(FillImageBorder.TOP_LEFT); assertNotNull(topLeftFillImage); ImageReference imageReference = topLeftFillImage.getImage(); assertNotNull(imageReference); assertTrue(imageReference instanceof ResourceImageReference); assertEquals("/nextapp/echo2/test/componentxml/BackgroundImage.png", ((ResourceImageReference) imageReference).getResource()); assertEquals(FillImage.REPEAT_HORIZONTAL, topLeftFillImage.getRepeat()); assertEquals(new Extent(50), topLeftFillImage.getHorizontalOffset()); assertEquals(new Extent(-30, Extent.PERCENT), topLeftFillImage.getVerticalOffset()); }
45635 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45635/5fcac2fd891a28c14ed2f2c9a85e98b45e7eba44/FillImageBorderPeerTest.java/buggy/src/app/test/nextapp/echo2/app/test/componentxml/FillImageBorderPeerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5784, 1435, 288, 3639, 9767, 4190, 2885, 273, 2154, 8229, 18, 588, 2885, 12, 3829, 8485, 18, 1106, 16, 315, 5429, 8863, 3639, 14192, 2040, 8107, 3636, 2040, 8107, 273, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5784, 1435, 288, 3639, 9767, 4190, 2885, 273, 2154, 8229, 18, 588, 2885, 12, 3829, 8485, 18, 1106, 16, 315, 5429, 8863, 3639, 14192, 2040, 8107, 3636, 2040, 8107, 273, 26...
Object p = getSelectedProposal();
IContentProposal p = getSelectedProposal();
private void showProposalDescription(String description) { // If we have not created an info popup yet, do so now. if (infoPopup == null && description != null) { // Create a thread that will sleep for the specified delay // before creating the popup. We do not use Jobs since this // code must be able to run independently of the Eclipse runtime. Runnable runnable = new Runnable() { public void run() { try { Thread.sleep(POPUP_DELAY); } catch (InterruptedException e) { } if (!isValid()) return; getShell().getDisplay().syncExec(new Runnable() { public void run() { // The selection may have changed by the time we // open, so double check it. Object p = getSelectedProposal(); if (p != null) { infoPopup = new InfoPopupDialog(getShell()); infoPopup .setContents(getProposalDescription(p)); infoPopup.open(); infoPopup.getShell().addDisposeListener( new DisposeListener() { public void widgetDisposed( DisposeEvent event) { infoPopup = null; } }); } } }); } }; Thread t = new Thread(runnable); t.start(); } else if (infoPopup != null) { // We already have a popup, so just reset the contents. infoPopup.setContents(description); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/54f5816382677a87ac1d149868af2370808e4f06/ContentProposalPopup.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalPopup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2405, 14592, 3291, 12, 780, 2477, 13, 288, 202, 202, 759, 971, 732, 1240, 486, 2522, 392, 1123, 10431, 4671, 16, 741, 1427, 2037, 18, 202, 202, 430, 261, 1376, 13770, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2405, 14592, 3291, 12, 780, 2477, 13, 288, 202, 202, 759, 971, 732, 1240, 486, 2522, 392, 1123, 10431, 4671, 16, 741, 1427, 2037, 18, 202, 202, 430, 261, 1376, 13770, 42...
keepAliveTimer.scheduleAtFixedRate(new KeepAliveTask(), 30000, 30000);
int keepAliveInterval = SmackConfiguration.getKeepAliveInterval(); if (keepAliveInterval > 0) { Thread keepAliveThread = new Thread(new KeepAliveTask(keepAliveInterval)); keepAliveThread.setDaemon(true); keepAliveThread.start(); }
protected PacketWriter(XMPPConnection connection) { this.connection = connection; this.writer = connection.writer; this.queue = new LinkedList(); writerThread = new Thread() { public void run() { writePackets(); } }; writerThread.setName("Smack Packet Writer"); writerThread.setDaemon(true); listenerThread = new Thread() { public void run() { processListeners(); } }; listenerThread.setName("Smack Writer Listener Processor"); listenerThread.setDaemon(true); // Schedule a keep-alive task for once every 30 seconds. It will write // out a space character each time it runs to keep the TCP/IP connection open. keepAliveTimer.scheduleAtFixedRate(new KeepAliveTask(), 30000, 30000); }
1538 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1538/4459125f7d162fa876ea443fcf97c40a489e81a3/PacketWriter.java/buggy/source/org/jivesoftware/smack/PacketWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 11114, 2289, 12, 60, 19388, 1952, 1459, 13, 288, 3639, 333, 18, 4071, 273, 1459, 31, 3639, 333, 18, 6299, 273, 1459, 18, 6299, 31, 3639, 333, 18, 4000, 273, 394, 10688, 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, 4750, 11114, 2289, 12, 60, 19388, 1952, 1459, 13, 288, 3639, 333, 18, 4071, 273, 1459, 31, 3639, 333, 18, 6299, 273, 1459, 18, 6299, 31, 3639, 333, 18, 4000, 273, 394, 10688, 5621, 3639...
return null;
return new Boolean(facade.isAuthorized(agent, WizardFunctionConstants.VIEW_WIZARD, id));
protected Boolean isWizardViewAuth(AuthorizationFacade facade, Agent agent, Id id, boolean allowAnonymous) { String siteStr = getWizardManager().getWizardIdSiteId(id); if (siteStr == null) { return null; } return isWizardViewAuth(id, facade, agent, id, allowAnonymous); }
48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/2d3b6798d600d5fd9e95ed1fe9a998e6c9900bea/WizardAuthorizerImpl.java/clean/wizard/api-impl/src/java/org/theospi/portfolio/wizard/WizardAuthorizerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 3411, 353, 27130, 1767, 1730, 12, 6063, 12467, 11270, 16, 8669, 4040, 16, 3124, 612, 16, 1250, 1699, 18792, 13, 288, 5411, 514, 2834, 1585, 273, 13876, 13412, 1318, 7675, 588, 27130, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 3411, 353, 27130, 1767, 1730, 12, 6063, 12467, 11270, 16, 8669, 4040, 16, 3124, 612, 16, 1250, 1699, 18792, 13, 288, 5411, 514, 2834, 1585, 273, 13876, 13412, 1318, 7675, 588, 27130, ...
if(range.getFrom().compareTo( propertyValue ) == -1) {
if(range.getFrom().compareTo( propertyValue ) == 1) {
protected void processValidate(Object propertyValue, Errors errors) { Object[] args = new Object[] { constraintPropertyName, constraintOwningClass, propertyValue, range.getFrom(), range.getTo() }; if(propertyValue == null) { super.rejectValue(errors,SIZE_CONSTRAINT + INVALID_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_SIZE_MESSAGE, args )); return; } if(propertyValue.getClass().isArray()) { Integer length = new Integer(Array.getLength( propertyValue )); if(!range.contains(length)) { if(range.getFrom().compareTo( length ) == -1) { super.rejectValue(errors,LENGTH_CONSTRAINT + TOOSHORT_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_LENGTH_MESSAGE, args )); } else if(range.getFrom().compareTo(length) == 1) { super.rejectValue(errors,LENGTH_CONSTRAINT + TOOLONG_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_LENGTH_MESSAGE, args )); } return; } } if(propertyValue instanceof Collection) { Integer collectionSize = new Integer(((Collection)propertyValue).size()); if(!range.contains( collectionSize )) { if(range.getFrom().compareTo( collectionSize ) == -1) { super.rejectValue(errors,SIZE_CONSTRAINT + TOOSMALL_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_SIZE_MESSAGE, args )); } else if(range.getFrom().compareTo(collectionSize) == 1) { super.rejectValue(errors,SIZE_CONSTRAINT + TOOBIG_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_SIZE_MESSAGE, args )); } } } else if(propertyValue instanceof Number) { if(range.getFrom().compareTo( propertyValue ) == -1) { super.rejectValue(errors,SIZE_CONSTRAINT + TOOSMALL_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_SIZE_MESSAGE, args )); } else if(range.getFrom().compareTo(propertyValue) == 1) { super.rejectValue(errors,SIZE_CONSTRAINT + TOOBIG_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_SIZE_MESSAGE, args )); } } else if(propertyValue instanceof String) { Integer stringLength = new Integer(((String)propertyValue ).length()); if(!range.contains(stringLength)) { if(range.getFrom().compareTo( stringLength ) == -1) { super.rejectValue(errors,LENGTH_CONSTRAINT + TOOSHORT_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_LENGTH_MESSAGE, args )); } else if(range.getFrom().compareTo(stringLength) == 1) { super.rejectValue(errors,LENGTH_CONSTRAINT + TOOLONG_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_LENGTH_MESSAGE, args )); } } } }
50670 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50670/1db9771587982d3c4e7d8b077a7c3357d6207c4c/ConstrainedProperty.java/clean/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 918, 1207, 4270, 12, 921, 12337, 16, 9372, 1334, 13, 288, 5411, 1033, 8526, 833, 273, 394, 1033, 8526, 288, 4954, 13073, 16, 4954, 3494, 2093, 797, 16, 12337, 16, 225, 1048, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 918, 1207, 4270, 12, 921, 12337, 16, 9372, 1334, 13, 288, 5411, 1033, 8526, 833, 273, 394, 1033, 8526, 288, 4954, 13073, 16, 4954, 3494, 2093, 797, 16, 12337, 16, 225, 1048, 18, 5...
return user;
if (user == null) { log.warn("Username '" + username + "' not found in database."); } return user;
public User getUser(String username) { User user = dao.getUser(username); if (user == null) { log.warn("Username '" + username + "' not found in database."); } return user; }
12750 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12750/9103df0ad33639349fd96f1968e8e3d6d08d8dcd/UserManagerImpl.java/buggy/Springbreak/src/at/newsagg/service/impl/UserManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2177, 4735, 12, 780, 2718, 13, 288, 3196, 202, 1299, 729, 273, 15229, 18, 588, 1299, 12, 5053, 1769, 4697, 202, 430, 261, 1355, 422, 446, 13, 288, 1875, 202, 1330, 18, 8935, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2177, 4735, 12, 780, 2718, 13, 288, 3196, 202, 1299, 729, 273, 15229, 18, 588, 1299, 12, 5053, 1769, 4697, 202, 430, 261, 1355, 422, 446, 13, 288, 1875, 202, 1330, 18, 8935, ...
f.show();
f.setVisible(true);
public void actionPerformed(ActionEvent e) { // create a SerialDriverFrame SerialDriverFrame f = new SerialDriverFrame(); try { f.initComponents(); } catch (Exception ex) { log.error("starting SerialDriverFrame caught exception: "+ex.toString()); } f.show(); };
2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/89dff04b232b6f5481d3316073942be783334028/SerialDriverAction.java/buggy/jmri/jmrix/xpa/serialdriver/SerialDriverAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 202, 202, 759, 752, 279, 7366, 4668, 3219, 202, 202, 6342, 4668, 3219, 284, 273, 394, 7366, 4668, 3219, 5621, 202, 202, 698, 288, 1082, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 202, 202, 759, 752, 279, 7366, 4668, 3219, 202, 202, 6342, 4668, 3219, 284, 273, 394, 7366, 4668, 3219, 5621, 202, 202, 698, 288, 1082, 2...
JMenuItem replaceInProjectItem = new JMenuItem("Replace In Project"); replaceInProjectItem.addActionListener(replaceInProjectAction); replaceInProjectAction.addPropertyChangeListener(new ActionButtonAssociation(replaceInProjectAction, replaceInProjectItem));
JMenuItem replaceInProjectItem = new JMenuItem("Replace In Project"); replaceInProjectItem.addActionListener(replaceInProjectAction); replaceInProjectAction.addPropertyChangeListener( new ActionButtonAssociation(replaceInProjectAction, replaceInProjectItem));
private JMenu createSearchMenu() { JMenu searchMenu = new JMenu("Search"); JMenuItem findInProjectItem = new JMenuItem("Find In Project"); findInProjectItem.addActionListener(findInProjectAction); findInProjectAction.addPropertyChangeListener(new ActionButtonAssociation(findInProjectAction,findInProjectItem)); JMenuItem replaceInProjectItem = new JMenuItem("Replace In Project"); replaceInProjectItem.addActionListener(replaceInProjectAction); replaceInProjectAction.addPropertyChangeListener(new ActionButtonAssociation(replaceInProjectAction, replaceInProjectItem)); searchMenu.add(findInProjectAction); searchMenu.add(replaceInProjectAction); searchMenu.setMnemonic(KeyEvent.VK_A); return searchMenu; }
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/b614d4abef68545f39b6afc1e8521d6ccc484b8e/MainFrame.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 804, 4599, 30396, 4599, 1435, 288, 202, 202, 46, 4599, 1623, 4599, 273, 394, 804, 4599, 2932, 2979, 8863, 202, 202, 46, 12958, 1104, 382, 4109, 1180, 273, 394, 804, 12958, 2932...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 804, 4599, 30396, 4599, 1435, 288, 202, 202, 46, 4599, 1623, 4599, 273, 394, 804, 4599, 2932, 2979, 8863, 202, 202, 46, 12958, 1104, 382, 4109, 1180, 273, 394, 804, 12958, 2932...
catch (AuthenticationException authentication) { JOptionPane.showMessageDialog(getDialog(), authentication .getMessage(), "Authentication Failure", JOptionPane.ERROR_MESSAGE); return false; } if (displaySuccess) JOptionPane.showMessageDialog(getDialog(), "You have logged in as '" + loginGeneralPanel.getValue(SessionDetails.PROPERTY_USERNAME) + "'.", "Authentication Successful", JOptionPane.INFORMATION_MESSAGE); return true; }
protected boolean onFinish() { // todo EXCEPTION workflow! this joption pane stuff has got to // go...:-) try { loginGeneralPanel.commit(); } catch (AuthenticationException authentication) { JOptionPane.showMessageDialog(getDialog(), authentication .getMessage(), "Authentication Failure", JOptionPane.ERROR_MESSAGE); return false; } if (displaySuccess) JOptionPane.showMessageDialog(getDialog(), "You have logged in as '" + loginGeneralPanel.getValue(SessionDetails.PROPERTY_USERNAME) + "'.", "Authentication Successful", JOptionPane.INFORMATION_MESSAGE); return true; }
55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/dce5fadf490cdd0ae7869f6955e264cb546dc632/LoginCommand.java/clean/src/org/springframework/richclient/security/LoginCommand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 4750, 1250, 603, 11641, 1435, 288, 7734, 368, 10621, 23136, 6095, 5, 333, 525, 3482, 13618, 10769, 711, 2363, 358, 7734, 368, 1960, 2777, 30, 17, 13, 7734, 775, 288, 10792, 3925, 12580, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4750, 1250, 603, 11641, 1435, 288, 7734, 368, 10621, 23136, 6095, 5, 333, 525, 3482, 13618, 10769, 711, 2363, 358, 7734, 368, 1960, 2777, 30, 17, 13, 7734, 775, 288, 10792, 3925, 12580, ...
ret = INCREASING_MAX_CAPACITY_COMPARATOR;
ret = INCREASING_CAPACITY_COUNT_COMPARATOR;
public static final Comparator getComparator( boolean increasing, String name) { Comparator ret; if (name == null) { ret = null; } else if (name.equals(SIZE)) { if (increasing) { ret = INCREASING_SIZE_COMPARATOR; } else { ret = DECREASING_SIZE_COMPARATOR; } } else if (name.equals(COMPARE_TO)) { if (increasing) { ret = INCREASING_COMPARE_TO_COMPARATOR; } else { ret = DECREASING_COMPARE_TO_COMPARATOR; } } else if (name.equals(HASHCODE)) { if (increasing) { ret = INCREASING_HASHCODE_COMPARATOR; } else { ret = DECREASING_HASHCODE_COMPARATOR; } } else if (name.equals(CAPACITY)) { if (increasing) { ret = INCREASING_CAPACITY_COMPARATOR; } else { ret = DECREASING_CAPACITY_COMPARATOR; } } else if (name.equals(MAX_SIZE)) { if (increasing) { ret = INCREASING_MAX_SIZE_COMPARATOR; } else { ret = DECREASING_MAX_SIZE_COMPARATOR; } } else if (name.equals(MAX_CAPACITY)) { if (increasing) { ret = INCREASING_MAX_CAPACITY_COMPARATOR; } else { ret = DECREASING_MAX_CAPACITY_COMPARATOR; } } else if (name.equals(EXCESS_CAPACITY)) { if (increasing) { ret = INCREASING_EXCESS_CAPACITY_COMPARATOR; } else { ret = DECREASING_EXCESS_CAPACITY_COMPARATOR; } } else if (name.equals(TIME)) { if (increasing) { ret = INCREASING_TIME_COMPARATOR; } else { ret = DECREASING_TIME_COMPARATOR; } } else if (name.equals(GROUP_COUNT)) { if (increasing) { ret = INCREASING_GROUP_COUNT_COMPARATOR; } else { ret = DECREASING_GROUP_COUNT_COMPARATOR; } } else { ret = null; } return ret; }
10688 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10688/1d14349b46f4d57f1262d289891f1194920c84c0/Comparators.java/clean/profiler_impl/src/org/cougaar/profiler/Comparators.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 727, 13359, 336, 5559, 12, 1377, 1250, 21006, 16, 514, 508, 13, 288, 565, 13359, 325, 31, 565, 309, 261, 529, 422, 446, 13, 288, 1377, 325, 273, 446, 31, 565, 289, 469, 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, 282, 1071, 760, 727, 13359, 336, 5559, 12, 1377, 1250, 21006, 16, 514, 508, 13, 288, 565, 13359, 325, 31, 565, 309, 261, 529, 422, 446, 13, 288, 1377, 325, 273, 446, 31, 565, 289, 469, 309...
return errorInfo.isNil() ? runtime.getNil() : errorInfo.callMethod(errorInfo.getRuntime().getCurrentContext(), "backtrace");
IRubyObject backtrace = errorInfo.isNil() ? runtime.getNil() : errorInfo.callMethod(errorInfo.getRuntime().getCurrentContext(), "backtrace"); if (!(backtrace instanceof RubyArray)) { backtrace = runtime.getNil(); } return backtrace;
public IRubyObject get() { IRubyObject errorInfo = runtime.getGlobalVariables().get("$!"); return errorInfo.isNil() ? runtime.getNil() : errorInfo.callMethod(errorInfo.getRuntime().getCurrentContext(), "backtrace"); }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/fe628a940467ceda783730ea34173dec3d365fa4/RubyGlobal.java/clean/src/org/jruby/RubyGlobal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 15908, 10340, 921, 336, 1435, 288, 5411, 15908, 10340, 921, 23280, 273, 3099, 18, 588, 5160, 6158, 7675, 588, 2932, 8, 4442, 1769, 5411, 15908, 10340, 921, 13902, 273, 23280, 18, 291,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 336, 1435, 288, 5411, 15908, 10340, 921, 23280, 273, 3099, 18, 588, 5160, 6158, 7675, 588, 2932, 8, 4442, 1769, 5411, 15908, 10340, 921, 13902, 273, 23280, 18, 291,...
VM.sysExit(VM.exitStatusHPMTrouble);
VM.sysExit(VM.EXIT_STATUS_HPM_TROUBLE);
static public String short_name(int i) throws UninterruptiblePragma { if (i>numberOfEvents) { VM.sysWrite("***HPM_info.short_name(");VM.sysWrite(i);VM.sysWrite(") ");VM.sysWrite(i); VM.sysWrite(" > number of events ");VM.sysWrite(numberOfEvents);VM.sysWrite("!***"); VM.sysWriteln(); VM.sysExit(VM.exitStatusHPMTrouble); } return short_names[i]; }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/d6068c5ba70e6ee40bffe9c49b0e352cd82ebe7e/HPM_info.java/clean/rvm/src/vm/HPM/HPM_info.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1071, 514, 3025, 67, 529, 12, 474, 277, 13, 1216, 1351, 31847, 1523, 2050, 9454, 288, 565, 309, 261, 77, 34, 2696, 951, 3783, 13, 288, 1377, 8251, 18, 9499, 3067, 2932, 14465, 2500...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 1071, 514, 3025, 67, 529, 12, 474, 277, 13, 1216, 1351, 31847, 1523, 2050, 9454, 288, 565, 309, 261, 77, 34, 2696, 951, 3783, 13, 288, 1377, 8251, 18, 9499, 3067, 2932, 14465, 2500...
Hierarchy hierarchy, int returnType,
Type type, int returnCategory,
ParameterFunDef(FunDef funDef, String parameterName, Hierarchy hierarchy, int returnType, Exp exp, String description) { super(funDef.getName(), funDef.getSignature(), funDef.getDescription(), funDef.getSyntax(), returnType, funDef.getParameterCategories()); assertPrecondition(getName().equals("Parameter") || getName().equals("ParamRef")); this.parameterName = parameterName; this.hierarchy = hierarchy; this.exp = exp; this.parameterDescription = description; }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/9a688e588ec59e84012f03e73f06a05a27fccd8e/ParameterFunDef.java/buggy/src/main/mondrian/olap/fun/ParameterFunDef.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 5498, 22783, 3262, 12, 22783, 3262, 9831, 3262, 16, 5411, 514, 15524, 16, 5411, 670, 6000, 9360, 16, 5411, 509, 9424, 16, 5411, 7784, 1329, 16, 5411, 514, 2477, 13, 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, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 5498, 22783, 3262, 12, 22783, 3262, 9831, 3262, 16, 5411, 514, 15524, 16, 5411, 670, 6000, 9360, 16, 5411, 509, 9424, 16, 5411, 7784, 1329, 16, 5411, 514, 2477, 13, 288, 3639, 2240, 12, ...
void disableNotifications() { mNotificationsSuspended = true; }
void disableNotifications() { mNotificationsSuspended = true; }
void disableNotifications() { mNotificationsSuspended = true; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/3c20b46d84fb970a4580fe8a0ff9f824a8fbf34d/ImapFolder.java/clean/ZimbraServer/src/java/com/zimbra/cs/imap/ImapFolder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 4056, 14111, 1435, 377, 288, 312, 14111, 55, 22942, 273, 638, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 4056, 14111, 1435, 377, 288, 312, 14111, 55, 22942, 273, 638, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
sortOrder = request.getParameter( REQUEST_PARAMETER__SORT_ORDER ); if ( null != sortOrder ) {
String sortOrderParameter = request.getParameter( REQUEST_PARAMETER__SORT_ORDER ); if ( null != sortOrderParameter ) { sortOrder = sortOrderParameter ;
public void updateFromRequest( HttpServletRequest request ) { DocumentMapper documentMapper = Imcms.getServices().getDocumentMapper(); if ( documentFinder.isDocumentsSelectable() ) { try { selectedDocument = documentMapper.getDocument( Integer.parseInt( request.getParameter( REQUEST_PARAMETER__SELECTED_DOCUMENT_ID ) ) ); } catch ( NumberFormatException nfe ) { } } firstDocumentIndex = Math.max( 0, NumberUtils.stringToInt( request.getParameter( REQUEST_PARAMETER__FIRST_DOCUMENT_INDEX ) ) ); boolean gotNewFirstDocumentIndex = Utility.parameterIsSet( request, REQUEST_PARAMETER__FIRST_DOCUMENT_INDEX ); if ( !gotNewFirstDocumentIndex ) { try { sections.clear(); int[] sectionIds = Utility.getParameterInts( request, REQUEST_PARAMETER__SECTION_ID ); for ( int i = 0; i < sectionIds.length; i++ ) { int sectionId = sectionIds[i]; SectionDomainObject section = documentMapper.getSectionById( sectionId ); sections.add( section ); } } catch ( NumberFormatException nfe ) { } statusIds = Utility.getParameterInts( request, REQUEST_PARAMETER__STATUS_ID ); } String userDocumentsRestrictionParameter = request.getParameter( REQUEST_PARAMETER__PERMISSION ); if ( null != userDocumentsRestrictionParameter ) { userDocumentsRestriction = userDocumentsRestrictionParameter; } String dateTypeRestrictionParameter = request.getParameter( REQUEST_PARAMETER__DATE_TYPE ); if ( null != dateTypeRestrictionParameter ) { dateTypeRestriction = dateTypeRestrictionParameter; } DateFormat dateFormat = createDateFormat(); String startDateParameter = request.getParameter( REQUEST_PARAMETER__START_DATE ); if ( null != startDateParameter ) { try { startDate = dateFormat.parse( startDateParameter ); } catch ( java.text.ParseException pe ) { startDate = null; } } String endDateParameter = request.getParameter( REQUEST_PARAMETER__END_DATE ); if ( null != endDateParameter ) { try { endDate = dateFormat.parse( endDateParameter ); } catch ( java.text.ParseException ignored ) { endDate = null; } } sortOrder = request.getParameter( REQUEST_PARAMETER__SORT_ORDER ); if ( null != sortOrder ) { Comparator documentComparator = AdminManager.getComparator( sortOrder ); documentFinder.setDocumentComparator( documentComparator ); } try { documentsPerPage = Integer.parseInt( request.getParameter( REQUEST_PARAMETER__DOCUMENTS_PER_PAGE ) ); } catch ( NumberFormatException ignored ) {} if ( documentsPerPage <= 0 ) { documentsPerPage = DEFAULT_DOCUMENTS_PER_PAGE; } queryString = StringUtils.defaultString( request.getParameter( REQUEST_PARAMETER__QUERY_STRING ) ); searchButtonPressed = null != request.getParameter( REQUEST_PARAMETER__SEARCH_BUTTON ); query = createQuery( documentFinder, Utility.getLoggedOnUser( request ) ); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/f277e1a65ca5f7fc353a8e8c2ae4008d0c4af966/SearchDocumentsPage.java/buggy/server/src/com/imcode/imcms/servlet/SearchDocumentsPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 25074, 12, 9984, 590, 262, 288, 3639, 4319, 4597, 1668, 4597, 273, 2221, 6851, 18, 588, 5676, 7675, 588, 2519, 4597, 5621, 3639, 309, 261, 1668, 8441, 18, 291, 12922, 315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25074, 12, 9984, 590, 262, 288, 3639, 4319, 4597, 1668, 4597, 273, 2221, 6851, 18, 588, 5676, 7675, 588, 2519, 4597, 5621, 3639, 309, 261, 1668, 8441, 18, 291, 12922, 315...
throw new IllegalArgumentException("can use only one violation macro.");
throw new IllegalParameterException("can use only one violation macro.");
protected void processParameter() throws IOException, IllegalParameterException { if("--violation-macro".equals(args[i])||"-vm".equals(args[i])) { if(violationmacro!=null) throw new IllegalArgumentException("can use only one violation macro."); i++; if(i>=args.length) throw new IllegalArgumentException("violation macro not given."); violationmacro=args[i]; } else if("--trace-types".equals(args[i])||"-tt".equals(args[i])) { if(typeTraceConfig==null) typeTraceConfig=new TypeTraceConfig(); } else if("--modify".equals(args[i])||"-m".equals(args[i])) modify=true; else if("--clean".equals(args[i])||"-c".equals(args[i])) conf.clean=true; else if("--insert-immediately".equals(args[i])) conf.insertimmediately=true; else if("--simple-hash".equals(args[i])) conf.hashmode=HashSize.class; else if("--modcount-hash".equals(args[i])) conf.hashmode=HashModCount.class; else if(args[i].startsWith("-")) throw new IllegalArgumentException("unknown option: "+args[i]); else { for(; i<args.length; i++) expand(sourcefiles, args[i]); } }
6381 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6381/2e097add93b2bec59bd88e5b54b4bb12c99ba219/Main.java/buggy/ocl/src/tudresden/ocl/injection/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1207, 1662, 1435, 1216, 1860, 16, 2141, 14819, 202, 95, 202, 202, 430, 2932, 413, 522, 12255, 17, 26448, 9654, 14963, 12, 1968, 63, 77, 5717, 20081, 6, 17, 3489, 9654, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 1662, 1435, 1216, 1860, 16, 2141, 14819, 202, 95, 202, 202, 430, 2932, 413, 522, 12255, 17, 26448, 9654, 14963, 12, 1968, 63, 77, 5717, 20081, 6, 17, 3489, 9654, 1...
htmlStr = IMCServiceRMI.parseDoc(imcserver,vec,"inPage_admin_no_template.html",lang_prefix) ;
String htmlStr = IMCServiceRMI.parseDoc(imcserver,vec,"inPage_admin_no_template.html",lang_prefix) ;
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String host = req.getHeader("Host") ; String imcserver = Utility.getDomainPref("adminserver",host) ; String start_url = Utility.getDomainPref( "start_url",host ) ; imcode.server.User user ; String htmlStr = "" ; String submit_name = "" ; String search_string = "" ; String text = "" ; String values[] ; int txt_no = 0 ; // get meta_id int meta_id = Integer.parseInt(req.getParameter("meta_id")) ; // int parent_meta_id = Integer.parseInt(req.getParameter("parent_meta_id")) ; // get form data imcode.server.Table doc = new imcode.server.Table() ; String template = req.getParameter("template") ; String groupId = req.getParameter("group"); //the template group admin is a ugly mess but lets try to do the best of it //we save the group_id but if the group gets deleted else where it doesn't get changed //in the text_docs table, but the system vill not crash it only shows an empty group string. if(groupId == null) groupId= "-1"; //if there isn'n anyone lets set it to -1 if ( template != null ) { doc.addField("template",template) ; // String menu_template = req.getParameter("menu_template") ; doc.addField("menu_template",template) ; // String text_template = req.getParameter("text_template") ; doc.addField("text_template",template) ; doc.addField("group_id",groupId); } // Check if user logged on if( (user=Check.userLoggedOn( req,res,start_url ))==null ) { return ; } // Check if user has write rights if ( !IMCServiceRMI.checkDocAdminRights(imcserver,meta_id,user,imcode.server.IMCConstants.PERM_DT_TEXT_CHANGE_TEMPLATE ) ) { // Checking to see if user may edit this res.setContentType("text/html"); String output = AdminDoc.adminDoc(meta_id,meta_id,host,user,req,res) ; if ( output != null ) { Writer out = res.getWriter(); out.write(output) ; } return ; } String lang_prefix = IMCServiceRMI.sqlQueryStr(imcserver, "select lang_prefix from lang_prefixes where lang_id = "+user.getInt("lang_id")) ; /*if (req.getParameter("metadata")!=null) { //htmlStr = IMCServiceRMI.interpretAdminTemplate(imcserver,meta_id,user,"change_meta.html",1,meta_id,0,0) ; htmlStr = imcode.util.MetaDataParser.parseMetaData(String.valueOf(meta_id), String.valueOf(meta_id),user,host) ; } else */ if (req.getParameter("update")!=null) { Writer out = res.getWriter(); res.setContentType("text/html"); user.put("flags",new Integer(0)) ; if ( template == null ) { Vector vec = new Vector() ; vec.add("#meta_id#") ; vec.add(String.valueOf(meta_id)) ; htmlStr = IMCServiceRMI.parseDoc(imcserver,vec,"inPage_admin_no_template.html",lang_prefix) ; out.write(htmlStr) ; return ; } // save textdoc IMCServiceRMI.saveTextDoc(imcserver,meta_id,user,doc) ; SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd") ; Date dt = IMCServiceRMI.getCurrentDate(imcserver) ; // FIXME: Move to SProc String sqlStr = "update meta set date_modified = '"+dateformat.format(dt)+"' where meta_id = "+meta_id ; IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr); // return page String output = AdminDoc.adminDoc(meta_id,meta_id,host,user,req,res) ; if ( output != null ) { out.write(output) ; } return ; } else if (req.getParameter("preview")!=null) { if ( template == null ) { Vector vec = new Vector() ; vec.add("#meta_id#") ; vec.add(String.valueOf(meta_id)) ; htmlStr = IMCServiceRMI.parseDoc(imcserver,vec,"inPage_admin_no_template.html",lang_prefix) ; Writer out = res.getWriter(); out.write(htmlStr) ; return ; } Object[] temp = null ; try { temp = IMCServiceRMI.getDemoTemplate(imcserver,Integer.parseInt(template)) ; String demoTemplateName = template+"."+(String)temp[0] ; // Set content-type depending on type of demo-template. res.setContentType(getServletContext().getMimeType(demoTemplateName)) ; byte[] bytes = (byte[])temp[1] ; ServletOutputStream out = res.getOutputStream() ; res.setContentLength(bytes.length) ; out.write(bytes) ; return; } catch ( Exception ex ) { htmlStr = IMCServiceRMI.parseDoc( imcserver, null, "no_demotemplate.html", lang_prefix ) ; } } else if ( req.getParameter("change_group")!=null ) { res.setContentType("text/html"); Writer out = res.getWriter(); user.put("flags",new Integer(imcode.server.IMCConstants.PERM_DT_TEXT_CHANGE_TEMPLATE)) ; String group = req.getParameter("group") ; if ( group != null ) { user.setTemplateGroup(Integer.parseInt(req.getParameter("group"))) ; } String output = AdminDoc.adminDoc(meta_id,meta_id,host,user,req,res) ; if ( output != null ) { out.write(output) ; } return ; } Writer out = res.getWriter(); out.write(htmlStr) ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/e68d5aa511615d27212fb0539680d961c3f0ea6b/SaveInPage.java/buggy/servlets/SaveInPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 1216, 16517, 16, 1860, 288, 202, 780, 1479, 9506, 202, 33, 1111, 18, 588, 1864, 2932, 2594, 7923, 274, 202, 780, 709, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 1216, 16517, 16, 1860, 288, 202, 780, 1479, 9506, 202, 33, 1111, 18, 588, 1864, 2932, 2594, 7923, 274, 202, 780, 709, 71...
if( htmlElement instanceof HtmlButton ) { javaScriptClassName = getJavaScriptClassNameForButtonKludge((HtmlButton)htmlElement); } else { javaScriptClassName = (String)getHtmlJavaScriptMapping().get(htmlElement.getClass()); }
javaScriptClassName = (String)getHtmlJavaScriptMapping().get(htmlElement.getClass());
public SimpleScriptable getScriptableFor( final HtmlElement htmlElement ) { final Object scriptObject = htmlElement.getScriptObject(); if( scriptObject != null ) { return (SimpleScriptable)scriptObject; } final String javaScriptClassName; if( htmlElement instanceof HtmlButton ) { // TODO: The proper solution is to make HtmlButton abstract and have a hierarchy just like HtmlInput // Until that happens, we touch up the javascript name here. javaScriptClassName = getJavaScriptClassNameForButtonKludge((HtmlButton)htmlElement); } else { javaScriptClassName = (String)getHtmlJavaScriptMapping().get(htmlElement.getClass()); } if( javaScriptClassName == null ) { // We don't have a specific subclass for this element so create something generic. final SimpleScriptable scriptable = makeJavaScriptObject("HTMLElement"); scriptable.setHtmlElement(htmlElement); //getLog().info("No javascript class found for element <"+htmlElement.getTagName()+">. Using HTMLElement"); return scriptable; } else { final SimpleScriptable scriptable = makeJavaScriptObject(javaScriptClassName); scriptable.setHtmlElement(htmlElement); return scriptable; } }
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/f7dbdc20c547b2f09395f3a0a0085bb7a76492f0/SimpleScriptable.java/clean/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript/SimpleScriptable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4477, 3651, 429, 22611, 429, 1290, 12, 727, 5430, 1046, 1729, 1046, 262, 288, 3639, 727, 1033, 2728, 921, 273, 1729, 1046, 18, 588, 3651, 921, 5621, 3639, 309, 12, 2728, 921, 480, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4477, 3651, 429, 22611, 429, 1290, 12, 727, 5430, 1046, 1729, 1046, 262, 288, 3639, 727, 1033, 2728, 921, 273, 1729, 1046, 18, 588, 3651, 921, 5621, 3639, 309, 12, 2728, 921, 480, ...
public Iterator getItems(String name, String node, JID senderJID)
public Iterator<Element> getItems(String name, String node, JID senderJID)
public Iterator getItems(String name, String node, JID senderJID) throws UnauthorizedException { return serverItems.iterator(); }
6312 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6312/0fd0788165fac0a5126b55650ec10b6cc71ee351/IQDiscoItemsHandler.java/buggy/src/java/org/jivesoftware/messenger/disco/IQDiscoItemsHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 4498, 32, 1046, 34, 15515, 12, 780, 508, 16, 514, 756, 16, 804, 734, 5793, 46, 734, 13, 10792, 1216, 24830, 288, 7734, 327, 1438, 3126, 18, 9838, 5621, 5411, 289, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 4498, 32, 1046, 34, 15515, 12, 780, 508, 16, 514, 756, 16, 804, 734, 5793, 46, 734, 13, 10792, 1216, 24830, 288, 7734, 327, 1438, 3126, 18, 9838, 5621, 5411, 289, 2, -100, -100, ...
subsecond = false; } else { subsecond = true; }
public Timestamp getTimestamp(int columnIndex) throws SQLException { String s = getString(columnIndex); if (s == null) return null; boolean subsecond; //if string contains a '.' we have fractional seconds if (s.indexOf('.') == -1) { subsecond = false; } else { subsecond = true; } //here we are modifying the string from ISO format to a format java can understand //java expects timezone info as 'GMT-08:00' instead of '-08' in postgres ISO format //and java expects three digits if fractional seconds are present instead of two for postgres //so this code strips off timezone info and adds on the GMT+/-... //as well as adds a third digit for partial seconds if necessary StringBuffer strBuf = new StringBuffer(s); //we are looking to see if the backend has appended on a timezone. //currently postgresql will return +/-HH:MM or +/-HH for timezone offset //(i.e. -06, or +06:30, note the expectation of the leading zero for the //hours, and the use of the : for delimiter between hours and minutes) //if the backend ISO format changes in the future this code will //need to be changed as well char sub = strBuf.charAt(strBuf.length() - 3); if (sub == '+' || sub == '-') { strBuf.setLength(strBuf.length() - 3); if (subsecond) { strBuf.append('0').append("GMT").append(s.substring(s.length() - 3, s.length())).append(":00"); } else { strBuf.append("GMT").append(s.substring(s.length() - 3, s.length())).append(":00"); } } else if (sub == ':') { //we may have found timezone info of format +/-HH:MM, or there is no //timezone info at all and this is the : preceding the seconds char sub2 = strBuf.charAt(strBuf.length() - 5); if (sub2 == '+' || sub2 == '-') { //we have found timezone info of format +/-HH:MM strBuf.setLength(strBuf.length() - 5); if (subsecond) { strBuf.append('0').append("GMT").append(s.substring(s.length() - 5)); } else { strBuf.append("GMT").append(s.substring(s.length() - 5)); } } else if (subsecond) { strBuf.append('0'); } } else if (subsecond) { strBuf = strBuf.append('0'); } s = strBuf.toString(); SimpleDateFormat df = null; if (s.length() > 23 && subsecond) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSzzzzzzzzz"); } else if (s.length() > 23 && !subsecond) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:sszzzzzzzzz"); } else if (s.length() > 10 && subsecond) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); } else if (s.length() > 10 && !subsecond) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); } else { df = new SimpleDateFormat("yyyy-MM-dd"); } try { return new Timestamp(df.parse(s).getTime()); } catch (ParseException e) { throw new PSQLException("postgresql.res.badtimestamp", new Integer(e.getErrorOffset()), s); } }
45497 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45497/3dd85bcb08440bae6210114124aa0002a83c957c/ResultSet.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8159, 11940, 12, 474, 14882, 13, 1216, 6483, 202, 95, 202, 202, 780, 272, 273, 4997, 12, 2827, 1016, 1769, 202, 202, 430, 261, 87, 422, 446, 13, 1082, 202, 2463, 446, 31, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8159, 11940, 12, 474, 14882, 13, 1216, 6483, 202, 95, 202, 202, 780, 272, 273, 4997, 12, 2827, 1016, 1769, 202, 202, 430, 261, 87, 422, 446, 13, 1082, 202, 2463, 446, 31, 20...
String childName = fSymbolTable.addSymbol(DOMUtil.getLocalName(child));
String childName = DOMUtil.getLocalName(child);
XSElementDecl traverseNamedElement(Element elmDecl, Object[] attrValues, XSDocumentInfo schemaDoc, SchemaGrammar grammar, boolean isGlobal) { Boolean abstractAtt = (Boolean) attrValues[XSAttributeChecker.ATTIDX_ABSTRACT]; XInt blockAtt = (XInt) attrValues[XSAttributeChecker.ATTIDX_BLOCK]; String defaultAtt = (String) attrValues[XSAttributeChecker.ATTIDX_DEFAULT]; XInt finalAtt = (XInt) attrValues[XSAttributeChecker.ATTIDX_FINAL]; String fixedAtt = (String) attrValues[XSAttributeChecker.ATTIDX_FIXED]; XInt formAtt = (XInt) attrValues[XSAttributeChecker.ATTIDX_FORM]; String nameAtt = (String) attrValues[XSAttributeChecker.ATTIDX_NAME]; Boolean nillableAtt = (Boolean) attrValues[XSAttributeChecker.ATTIDX_NILLABLE]; QName subGroupAtt = (QName) attrValues[XSAttributeChecker.ATTIDX_SUBSGROUP]; QName typeAtt = (QName) attrValues[XSAttributeChecker.ATTIDX_TYPE]; // Step 1: get declaration information XSElementDecl element = new XSElementDecl(); // get 'name' if (nameAtt != null) element.fName = fSymbolTable.addSymbol(nameAtt); // get 'target namespace' if (isGlobal) { element.fTargetNamespace = schemaDoc.fTargetNamespace; } else if (formAtt != null) { if (formAtt.intValue() == SchemaSymbols.FORM_QUALIFIED) element.fTargetNamespace = schemaDoc.fTargetNamespace; else element.fTargetNamespace = null; } else if (schemaDoc.fAreLocalElementsQualified) { element.fTargetNamespace = schemaDoc.fTargetNamespace; } else { element.fTargetNamespace = null; } // get 'block', 'final', 'nillable', 'abstract' element.fBlock = blockAtt == null ? schemaDoc.fBlockDefault : blockAtt.shortValue(); element.fFinal = finalAtt == null ? schemaDoc.fFinalDefault : finalAtt.shortValue(); if (nillableAtt.booleanValue()) element.setIsNillable(); if (abstractAtt != null && abstractAtt.booleanValue()) element.setIsAbstract(); // get 'value constraint' if (fixedAtt != null) { element.fDefault = fixedAtt; element.setConstraintType(XSElementDecl.FIXED_VALUE); } else if (defaultAtt != null) { element.fDefault = defaultAtt; element.setConstraintType(XSElementDecl.DEFAULT_VALUE); } else { element.setConstraintType(XSElementDecl.NO_CONSTRAINT); } // get 'substitutionGroup affiliation' // REVISIT: allow mutual-substitution // we need to back-patch both fSubGroup and fType // if there is no type attribute and no anonymous type if (subGroupAtt != null) { element.fSubGroup = (XSElementDecl)fSchemaHandler.getGlobalDecl(schemaDoc, XSDHandler.ELEMENT_TYPE, subGroupAtt); } // get 'annotation' Element child = DOMUtil.getFirstChildElement(elmDecl); if(child != null && DOMUtil.getLocalName(child).equals(SchemaSymbols.ELT_ANNOTATION)) { traverseAnnotationDecl(child, attrValues, false, schemaDoc); child = DOMUtil.getNextSiblingElement(child); } // get 'type definition' XSTypeDecl elementType = null; boolean haveAnonType = false; // Handle Anonymous type if there is one if (child != null) { String childName = DOMUtil.getLocalName(child); if (childName.equals(SchemaSymbols.ELT_COMPLEXTYPE)) { elementType = fSchemaHandler.fComplexTypeTraverser.traverseLocal(child, schemaDoc, grammar); haveAnonType = true; child = DOMUtil.getNextSiblingElement(child); } else if (childName.equals(SchemaSymbols.ELT_SIMPLETYPE)) { elementType = fSchemaHandler.fSimpleTypeTraverser.traverseLocal(child, schemaDoc, grammar); haveAnonType = true; child = DOMUtil.getNextSiblingElement(child); } } // Handler type attribute if (elementType == null && typeAtt != null) { elementType = (XSTypeDecl)fSchemaHandler.getGlobalDecl(schemaDoc, XSDHandler.TYPEDECL_TYPE, typeAtt); } // Get it from the substitutionGroup declaration if (elementType == null && element.fSubGroup != null) { elementType = element.fSubGroup.fType; } if (elementType == null) { elementType = SchemaGrammar.fAnyType; } element.fType = elementType; // get 'identity constraint' // see if there's something here; it had better be key, keyref or unique. if (child != null) { String childName = fSymbolTable.addSymbol(DOMUtil.getLocalName(child)); while (child != null && (childName.equals(SchemaSymbols.ELT_KEY) || childName.equals(SchemaSymbols.ELT_KEYREF) || childName.equals(SchemaSymbols.ELT_UNIQUE))) { if(childName == SchemaSymbols.ELT_KEY || childName == SchemaSymbols.ELT_UNIQUE) { fSchemaHandler.fUniqueOrKeyTraverser.traverse(child, element, schemaDoc, grammar); if(DOMUtil.getAttrValue(child, SchemaSymbols.ATT_NAME).length() != 0 ) { fSchemaHandler.checkForDuplicateNames( (schemaDoc.fTargetNamespace == null) ? ","+DOMUtil.getAttrValue(child, SchemaSymbols.ATT_NAME) : schemaDoc.fTargetNamespace+","+ DOMUtil.getAttrValue(child, SchemaSymbols.ATT_NAME), fSchemaHandler.getIDRegistry(), child, schemaDoc); } } else if (childName == SchemaSymbols.ELT_KEYREF) { fSchemaHandler.storeKeyRef(child, schemaDoc, element); } child = DOMUtil.getNextSiblingElement(child); if (child != null) { childName = fSymbolTable.addSymbol(DOMUtil.getLocalName(child)); } } } // Step 2: register the element decl to the grammar if (nameAtt != null) grammar.addGlobalElementDecl(element); // Step 3: check against schema for schemas // required attributes if (nameAtt == null) { if (isGlobal) reportSchemaError("s4s-att-must-appear", new Object[]{NO_NAME, SchemaSymbols.ATT_NAME}); else reportSchemaError("src-element.2.1", null); nameAtt = NO_NAME; } // element if (child != null) { reportSchemaError("s4s-elt-must-match", new Object[]{nameAtt, "(annotation?, (simpleType | complexType)?, (unique | key | keyref)*))"}); } // Step 4: check 3.3.3 constraints // src-element // 1 default and fixed must not both be present. if (defaultAtt != null && fixedAtt != null) { reportSchemaError("src-element.1", new Object[]{nameAtt}); } // 2 If the item's parent is not <schema>, then all of the following must be true: // 2.1 One of ref or name must be present, but not both. // This is checked in XSAttributeChecker // 2.2 If ref is present, then all of <complexType>, <simpleType>, <key>, <keyref>, <unique>, nillable, default, fixed, form, block and type must be absent, i.e. only minOccurs, maxOccurs, id are allowed in addition to ref, along with <annotation>. // Attributes are checked in XSAttributeChecker, elements are checked in "traverse" method // 3 type and either <simpleType> or <complexType> are mutually exclusive. if (haveAnonType && (typeAtt != null)) { reportSchemaError("src-element.3", new Object[]{nameAtt}); } // Step 5: check 3.3.6 constraints // check for NOTATION type checkNotationType(nameAtt, elementType); // e-props-correct // 2 If there is a {value constraint}, the canonical lexical representation of its value must be valid with respect to the {type definition} as defined in Element Default Valid (Immediate) (3.3.6). if (element.fDefault != null) { if (!checkDefaultValid(element)) { reportSchemaError ("e-props-correct.2", new Object[]{nameAtt, element.fDefault}); } } // 3 If there is an {substitution group affiliation}, the {type definition} of the element declaration must be validly derived from the {type definition} of the {substitution group affiliation}, given the value of the {substitution group exclusions} of the {substitution group affiliation}, as defined in Type Derivation OK (Complex) (3.4.6) (if the {type definition} is complex) or as defined in Type Derivation OK (Simple) (3.14.6) (if the {type definition} is simple). if (element.fSubGroup != null) { if (!fSubGroupHandler.checkSubstitutionGroupOK(element)) { reportSchemaError ("e-props-correct.3", new Object[]{nameAtt, subGroupAtt.prefix+":"+subGroupAtt.localpart}); } } // 4 If the {type definition} or {type definition}'s {content type} is or is derived from ID then there must not be a {value constraint}. if (element.fDefault != null) { if (elementType instanceof IDDatatypeValidator || elementType instanceof XSComplexTypeDecl && ((XSComplexTypeDecl)elementType).containsTypeID()) { reportSchemaError ("e-props-correct.4", new Object[]{element.fName}); } } // Step 6: add substitutionGroup information to the handler if (element.fSubGroup != null) { fSubGroupHandler.addSubstitutionGroup(element); } return element; }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/430ad6c0c52b8ba0b9168957afb30c3ea45959d8/XSDElementTraverser.java/clean/src/org/apache/xerces/impl/v2/XSDElementTraverser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1139, 55, 1046, 3456, 10080, 7604, 1046, 12, 1046, 12531, 3456, 16, 4766, 4202, 1033, 8526, 1604, 1972, 16, 4766, 4202, 1139, 55, 2519, 966, 1963, 1759, 16, 4766, 4202, 4611, 18576, 6473, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1139, 55, 1046, 3456, 10080, 7604, 1046, 12, 1046, 12531, 3456, 16, 4766, 4202, 1033, 8526, 1604, 1972, 16, 4766, 4202, 1139, 55, 2519, 966, 1963, 1759, 16, 4766, 4202, 4611, 18576, 6473, ...
private void jButtonToEndActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonToEndActionPerformed myParent.mTableEnd(); jButtonToEnd.setEnabled(false); jButtonOneRowP.setEnabled(false); jButtonToEnd.repaint(); jButtonOneRowP.repaint(); jButtonToBegin.setEnabled(true); jButtonOneRowM.setEnabled(true); jButtonToBegin.repaint(); jButtonOneRowM.repaint(); repaintComp(); }//GEN-LAST:event_jButtonToEndActionPerformed
12667 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12667/569073a4ee24627a55124c91e85973b13ebcffa2/aeIncom.java/clean/src/nom/aeIncom.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 525, 3616, 774, 1638, 19449, 12, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 6324, 13, 288, 759, 16652, 17, 15354, 30, 2575, 67, 78, 3616, 774, 1638, 19449, 4811, 3054, 18, 81, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 525, 3616, 774, 1638, 19449, 12, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 6324, 13, 288, 759, 16652, 17, 15354, 30, 2575, 67, 78, 3616, 774, 1638, 19449, 4811, 3054, 18, 81, ...
titleCountString = Integer.valueOf(numberOfSimpleConnected).toString();
titleCountString = String.valueOf(numberOfSimpleConnected);
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { String path = uri.getPath(); if(path.endsWith("myref.txt")) { SimpleFieldSet fs = node.exportPublicFieldSet(); StringWriter sw = new StringWriter(); fs.writeTo(sw); this.writeReply(ctx, 200, "text/plain", "OK", sw.toString()); return; } StringBuffer buf = new StringBuffer(1024); //HTTPRequest request = new HTTPRequest(uri); final boolean advancedEnabled = node.getToadletContainer().isAdvancedDarknetEnabled(); /* gather connection statistics */ int numberOfConnected = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_CONNECTED); int numberOfRoutingBackedOff = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF); int numberOfTooNew = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_TOO_NEW); int numberOfTooOld = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_TOO_OLD); int numberOfDisconnected = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_DISCONNECTED); int numberOfNeverConnected = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_NEVER_CONNECTED); int numberOfDisabled = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_DISABLED); int numberOfListening = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_LISTENING); int numberOfSimpleConnected = numberOfConnected + numberOfRoutingBackedOff; int numberOfNotConnected = numberOfTooNew + numberOfTooOld + numberOfDisconnected + numberOfNeverConnected + numberOfDisabled + numberOfListening; String titleCountString = null; if(advancedEnabled) { titleCountString = "(" + numberOfConnected + "/" + numberOfRoutingBackedOff + "/" + numberOfTooNew+numberOfTooOld + "/" + numberOfNotConnected + ")"; } else { titleCountString = Integer.valueOf(numberOfSimpleConnected).toString(); } String pageTitle = titleCountString + " Darknet Peers"; ctx.getPageMaker().makeHead(buf, pageTitle); // FIXME! We need some nice images PeerNode[] peerNodes = node.getDarknetConnections(); long now = System.currentTimeMillis(); node.alerts.toSummaryHtml(buf); /* node status values */ int bwlimitDelayTime = (int) node.getBwlimitDelayTime(); int nodeAveragePingTime = (int) node.getNodeAveragePingTime(); int networkSizeEstimate = (int) node.getNetworkSizeEstimate( 0 ); DecimalFormat fix4 = new DecimalFormat("0.0000"); double missRoutingDistance = node.missRoutingDistance.currentValue(); DecimalFormat fix1 = new DecimalFormat("##0.0%"); double backedoffPercent = node.backedoffPercent.currentValue(); String nodeUptimeString = timeIntervalToString(( now - node.startupTime ) / 1000); buf.append("<table class=\"column\"><tr><td class=\"first\">"); /* node status overview box */ if(advancedEnabled) { buf.append("<div class=\"infobox\">"); buf.append("<div class=\"infobox-header\">Node status overview</div>"); buf.append("<div class=\"infobox-content\">"); buf.append("<ul>"); buf.append("<li>bwlimitDelayTime:&nbsp;").append(bwlimitDelayTime).append("ms</li>"); buf.append("<li>nodeAveragePingTime:&nbsp;").append(nodeAveragePingTime).append("ms</li>"); buf.append("<li>networkSizeEstimate:&nbsp;").append(networkSizeEstimate).append("&nbsp;nodes</li>"); buf.append("<li>nodeUptime:&nbsp;").append(nodeUptimeString).append("</li>"); buf.append("<li>missRoutingDistance:&nbsp;").append(fix4.format(missRoutingDistance)).append("</li>"); buf.append("<li>backedoffPercent:&nbsp;").append(fix1.format(backedoffPercent)).append("</li>"); buf.append("</ul></div>"); buf.append("</div>\n"); buf.append("</td><td>"); } // Activity box int numInserts = node.getNumInserts(); int numRequests = node.getNumRequests(); int numTransferringRequests = node.getNumTransferringRequests(); int numARKFetchers = node.getNumARKFetchers(); buf.append("<div class=\"infobox\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Current Activity\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); if ((numInserts == 0) && (numRequests == 0) && (numTransferringRequests == 0) && (numARKFetchers == 0)) { buf.append("Your node is not processing any requests right now."); } else { buf.append("<ul id=\"activity\">\n"); if (numInserts > 0) { buf.append("<li>Inserts:&nbsp;").append(numInserts).append("</li>"); } if (numRequests > 0) { buf.append("<li>Requests:&nbsp;").append(numRequests).append("</li>"); } if (numTransferringRequests > 0) { buf.append("<li>Transferring&nbsp;Requests:&nbsp;").append(numTransferringRequests).append("</li>"); } if(advancedEnabled) { if (numARKFetchers > 0) { buf.append("<li>ARK&nbsp;Fetch&nbsp;Requests:&nbsp;").append(numARKFetchers).append("</li>"); } } buf.append("</ul>\n"); } buf.append("</div>\n"); buf.append("</div>\n"); buf.append("</td><td>"); // Peer statistics box buf.append("<div class=\"infobox\">"); buf.append("<div class=\"infobox-header\">Peer statistics</div>"); buf.append("<div class=\"infobox-content\">"); buf.append("<ul>"); if (numberOfConnected > 0) { buf.append("<li><span class=\"peer_connected\">Connected:&nbsp;").append(numberOfConnected).append("</span></li>"); } if (numberOfRoutingBackedOff > 0) { String backoffName = "Busy"; if(advancedEnabled) { backoffName = "Backed off"; } buf.append("<li><span class=\"peer_backedoff\">").append(backoffName).append(":&nbsp;").append(numberOfRoutingBackedOff).append("</span></li>"); } if (numberOfTooNew > 0) { buf.append("<li><span class=\"peer_too_new\">Too new:&nbsp;").append(numberOfTooNew).append("</span></li>"); } if (numberOfTooOld > 0) { buf.append("<li><span class=\"peer_too_old\">Too old:&nbsp;").append(numberOfTooOld).append("</span></li>"); } if (numberOfDisconnected > 0) { buf.append("<li><span class=\"peer_disconnected\">Disconnected:&nbsp;").append(numberOfDisconnected).append("</span></li>"); } if (numberOfNeverConnected > 0) { buf.append("<li><span class=\"peer_never_connected\">Never Connected:&nbsp;").append(numberOfNeverConnected).append("</span></li>"); } if (numberOfDisabled > 0) { buf.append("<li><span class=\"peer_never_connected\">Disabled:&nbsp;").append(numberOfDisabled).append("</span></li>"); // **FIXME** } if (numberOfListening > 0) { buf.append("<li><span class=\"peer_never_connected\">Listening:&nbsp;").append(numberOfListening).append("</span></li>"); // **FIXME** } buf.append("</ul>"); buf.append("</div>"); buf.append("</div>\n"); // Peer routing backoff reason box if(advancedEnabled) { buf.append("</td><td class=\"last\">"); buf.append("<div class=\"infobox\">"); buf.append("<div class=\"infobox-header\">Peer backoff reasons</div>"); buf.append("<div class=\"infobox-content\">"); String [] routingBackoffReasons = node.getPeerNodeRoutingBackoffReasons(); if(routingBackoffReasons.length == 0) { buf.append("Good, your node is not backed off from any peers!<br/>\n"); } else { buf.append("<ul>\n"); for(int i=0;i<routingBackoffReasons.length;i++) { int reasonCount = node.getPeerNodeRoutingBackoffReasonSize(routingBackoffReasons[i]); if(reasonCount > 0) { buf.append("<li>").append(routingBackoffReasons[i]).append(":&nbsp;").append(reasonCount).append("</li>\n"); } } buf.append("</ul>\n"); } buf.append("</div>"); buf.append("</div>\n"); } buf.append("</td></tr></table>\n"); buf.append("<div class=\"infobox infobox-normal\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("My Peers"); if(advancedEnabled) { if (!path.endsWith("displaymessagetypes.html")) { buf.append(" <a href=\"displaymessagetypes.html\">(more detailed)</a>"); } } buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("<form action=\".\" method=\"post\" enctype=\"multipart/form-data\">\n"); StringBuffer buf2 = new StringBuffer(1024); buf2.append("<table class=\"darknet_connections\">\n"); buf2.append(" <tr>\n"); buf2.append(" <th></th>\n"); buf2.append(" <th>Status</th>\n"); buf2.append(" <th><span title=\"Click on the nodename link to send a N2NTM\" style=\"border-bottom:1px dotted;cursor:help;\">Name</span></th>\n"); if(advancedEnabled) { buf2.append(" <th><span title=\"Address:Port\" style=\"border-bottom:1px dotted;cursor:help;\">Address</span></th>\n"); } buf2.append(" <th>Version</th>\n"); if(advancedEnabled) { buf2.append(" <th>Location</th>\n"); buf2.append(" <th><span title=\"Temporarily disconnected. Other node busy? Wait time(s) remaining/total\" style=\"border-bottom:1px dotted;cursor:help;\">Backoff</span></th>\n"); } buf2.append(" <th><span title=\"How long since the node was last seen\" style=\"border-bottom:1px dotted;cursor:help;\">Idle</span></th>\n"); buf2.append(" </tr>\n"); if (peerNodes.length == 0) { buf2.append("<tr><td colspan=\"8\">Freenet can't work - you have not added any peers so far. <a href=\"/\">Go here</a> and read the top infobox to see how it's done.</td></tr>\n"); buf2.append("</table>\n"); // buf.append(buf2); } else { // Create array Object[][] rows = new Object[peerNodes.length][]; for(int i=0;i<peerNodes.length;i++) { PeerNode pn = peerNodes[i]; long routingBackedOffUntil = pn.getRoutingBackedOffUntil(); int backoff = (int)(Math.max(routingBackedOffUntil - now, 0)); // Don't list the backoff as zero before it's actually zero if((backoff > 0) && (backoff < 1000) ) backoff = 1000; // Elements must be HTML encoded. Object[] row = new Object[10]; // where [0] is the pn object and 9 is the node name only for sorting! rows[i] = row; Object status = new Integer(pn.getPeerNodeStatus()); long idle = pn.lastReceivedPacketTime(); if(((Integer) status).intValue() == Node.PEER_NODE_STATUS_NEVER_CONNECTED) idle = pn.getPeerAddedTime(); String lastBackoffReasonOutputString = ""; if(advancedEnabled) { String backoffReason = pn.getLastBackoffReason(); if( backoffReason != null ) { lastBackoffReasonOutputString = "/"+backoffReason; } else { lastBackoffReasonOutputString = "/"; } } String avgPingTimeString = ""; if(advancedEnabled) { if(pn.isConnected()) { avgPingTimeString = " ("+(int) pn.averagePingTime()+"ms)"; } } String versionPrefixString = ""; String versionString = ""; String versionSuffixString = ""; if(pn.publicInvalidVersion() || pn.publicReverseInvalidVersion()) { versionPrefixString = "<span class=\"peer_version_problem\">"; versionSuffixString = "</span>"; } String namePrefixString = ""; String nameSuffixString = ""; if(pn.isConnected()) { namePrefixString = "<a href=\"/send_n2ntm/?peernode_hashcode="+pn.hashCode()+"\">"; nameSuffixString = "</a>"; } if(advancedEnabled) { versionString = HTMLEncoder.encode(pn.getVersion()); } else { versionString = HTMLEncoder.encode(pn.getSimpleVersion()); } row[0] = pn; row[1] = "<input type=\"checkbox\" name=\"node_"+pn.hashCode()+"\" />"; row[2] = status; row[3] = namePrefixString+HTMLEncoder.encode(pn.getName())+nameSuffixString; row[4] = ( pn.getDetectedPeer() != null ? HTMLEncoder.encode(pn.getDetectedPeer().toString()) : "(address unknown)" ) + avgPingTimeString; row[5] = versionPrefixString+versionString+versionSuffixString; row[6] = new Double(pn.getLocation().getValue()); row[7] = fix1.format(pn.backedOffPercent.currentValue())+" "+backoff/1000 + "/" + pn.getRoutingBackoffLength()/1000+lastBackoffReasonOutputString; row[8] = idleToString(now, idle, ((Integer) status).intValue()); row[9] = HTMLEncoder.encode(pn.getName()); } // Sort array Arrays.sort(rows, new MyComparator()); // Convert status codes into status strings for(int i=0;i<rows.length;i++) { Object[] row = rows[i]; String arkAsterisk = ""; if(advancedEnabled) { if(((PeerNode) row[0]).isFetchingARK()) { arkAsterisk = "*"; } } String statusString = ((PeerNode) row[0]).getPeerNodeStatusString(); if(!advancedEnabled && (((PeerNode) row[0]).getPeerNodeStatus() == Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF)) { statusString = "BUSY"; } row[2] = "<span class=\""+((PeerNode) row[0]).getPeerNodeStatusCSSClassName()+"\">"+statusString+arkAsterisk+"</span>"; } // Turn array into HTML for(int i=0;i<rows.length;i++) { Object[] row = rows[i]; buf2.append("<tr>"); for(int j=1;j<row.length;j++) { // skip index 0 as it's the PeerNode object if(j == 9) { // skip index 9 as it's used for sorting purposes only continue; } if(!advancedEnabled) { // if not in advanced Darknet page output mode if( (j == 4) || (j == 6) || (j == 7) ) { // skip IP address/name, location and backoff times continue; } } buf2.append("<td>"+row[j]+"</td>"); } buf2.append("</tr>\n"); if (path.endsWith("displaymessagetypes.html")) { buf2.append("<tr class=\"messagetypes\"><td colspan=\"8\">\n"); buf2.append("<table class=\"sentmessagetypes\">\n"); buf2.append("<tr><th>Sent Message Type</th><th>Count</th></tr>\n"); for (Enumeration keys=((PeerNode)row[0]).getLocalNodeSentMessagesToStatistic().keys(); keys.hasMoreElements(); ) { Object curkey = keys.nextElement(); buf2.append("<tr><td>"); buf2.append((String)curkey); buf2.append("</td><td>"); buf2.append(((Long)((PeerNode)row[0]).getLocalNodeSentMessagesToStatistic().get(curkey)) + ""); buf2.append("</td></tr>\n"); } buf2.append("</table>\n"); buf2.append("<table class=\"receivedmessagetypes\">\n"); buf2.append("<tr><th>Received Message Type</th><th>Count</th></tr>\n"); for (Enumeration keys=((PeerNode)row[0]).getLocalNodeReceivedMessagesFromStatistic().keys(); keys.hasMoreElements(); ) { Object curkey = keys.nextElement(); buf2.append("<tr><td>"); buf2.append((String)curkey); buf2.append("</td><td>"); buf2.append(((Long)((PeerNode)row[0]).getLocalNodeReceivedMessagesFromStatistic().get(curkey)) + ""); buf2.append("</td></tr>\n"); } buf2.append("</table>\n"); buf2.append("</td></tr>\n"); } } buf2.append("</table>\n"); // buf.append(buf2); // if(!advancedEnabled) { buf.append("<input type=\"submit\" name=\"remove\" value=\"Remove selected peers\" />"); } else { buf.append("<select name=\"action\">\n"); buf.append(" <option value=\"\">-- Select Action --</option>\n"); buf.append(" <option value=\"enable\">Enable Selected Peers</option>\n"); buf.append(" <option value=\"disable\">Disable Selected Peers</option>\n"); buf.append(" <option value=\"set_listen_only\">On Selected Peers, Set ListenOnly</option>\n"); buf.append(" <option value=\"clear_listen_only\">On Selected Peers, Clear ListenOnly</option>\n"); buf.append(" <option value=\"\">-- -- --</option>\n"); buf.append(" <option value=\"remove\">Remove Selected Peers</option>\n"); buf.append("</select>\n"); buf.append("<input type=\"submit\" name=\"submit\" value=\"Go\" />\n"); buf.append("&nbsp;&nbsp;&nbsp;<span class=\"darknet_connections\">* Requesting ARK</span>\n"); } buf.append("<input type=\"hidden\" name=\"formPassword\" value=\"").append(node.formPassword).append("\" />"); buf.append("</form>\n"); } buf.append("</div>\n"); buf.append("</div>\n"); // new peer addition box buf.append("<div class=\"infobox infobox-normal\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Add another peer\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("<form action=\".\" method=\"post\" enctype=\"multipart/form-data\">\n"); buf.append("Reference:<br />\n"); buf.append("<textarea id=\"reftext\" name=\"ref\" rows=\"8\" cols=\"74\"></textarea>\n"); buf.append("<br />\n"); buf.append("or URL:\n"); buf.append("<input id=\"refurl\" type=\"text\" name=\"url\" />\n"); buf.append("<br />\n"); buf.append("or file:\n"); buf.append("<input id=\"reffile\" type=\"file\" name=\"reffile\" />\n"); buf.append("<br />\n"); buf.append("<input type=\"hidden\" name=\"formPassword\" value=\"").append(node.formPassword).append("\" />"); buf.append("<input type=\"submit\" name=\"add\" value=\"Add\" />\n"); buf.append("</form>\n"); buf.append("</div>\n"); buf.append("</div>\n"); // our reference buf.append("<div class=\"infobox infobox-normal\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("<a href=\"myref.txt\">My Reference</a>\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("<pre id=\"reference\">\n"); buf.append(HTMLEncoder.encode(this.node.exportPublicFieldSet().toString())); buf.append("</pre>\n"); buf.append("</div>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 200, "text/html", "OK", buf.toString()); }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/e4b56ee557db84a1625b3568c05150291fe2d5bb/DarknetConnectionsToadlet.java/clean/src/freenet/clients/http/DarknetConnectionsToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 780, 589, 273, 2003, 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, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 780, 589, 273, 2003, 18, ...
int moveNumber = NodeUtils.getMoveNumber(node);
int moveNumber = NodeUtil.getMoveNumber(node);
private String printTree(GameTree gameTree) { GameInformation gameInformation = gameTree.getGameInformation(); StringBuffer comment = new StringBuffer(); int size = gameInformation.m_boardSize; Node firstMoveAtPoint[][] = new Node[size][size]; ArrayList needsComment = new ArrayList(); boolean blackToMove = true; m_out.println("\\setcounter{gomove}{0}"); Node node = gameTree.getRoot(); while (node != null) { for (int i = 0; i < node.getNumberAddBlack(); ++i) printStone(GoColor.BLACK, node.getAddBlack(i), null, false, false); for (int i = 0; i < node.getNumberAddWhite(); ++i) printStone(GoColor.WHITE, node.getAddWhite(i), null, false, false); Move move = node.getMove(); if (move == null) { node = node.getChild(); continue; } GoPoint point = move.getPoint(); GoColor color = move.getColor(); int moveNumber = NodeUtils.getMoveNumber(node); boolean isColorUnexpected = (blackToMove && color != GoColor.BLACK) || (! blackToMove && color != GoColor.WHITE); boolean isPass = (point == null); if (isPass || firstMoveAtPoint[point.getX()][point.getY()] != null) { needsComment.add(node); if (m_usePass) m_out.print("\\pass"); else m_out.print("\\refstepcounter{gomove} \\toggleblackmove"); if (isPass) { if (! m_usePass) m_out.print(" % \\pass"); } else { m_out.print(" % \\move"); printCoordinates(point); } m_out.println(" % " + (blackToMove ? "B " : "W ") + moveNumber); } else { if (isColorUnexpected) { m_out.println("\\toggleblackmove"); blackToMove = ! blackToMove; } m_out.print("\\move"); printCoordinates(point); m_out.println(" % " + (blackToMove ? "B " : "W ") + moveNumber); firstMoveAtPoint[point.getX()][point.getY()] = node; } blackToMove = ! blackToMove; node = node.getChild(); } for (int i = 0; i < needsComment.size(); ++i) { node = (Node)needsComment.get(i); Move move = node.getMove(); GoPoint point = move.getPoint(); GoColor color = move.getColor(); if (comment.length() > 0) comment.append(" \\enspace\n"); comment.append(getStoneInTextString(i + 1, color)); if (point == null) comment.append("~pass"); else { int x = point.getX(); int y = point.getY(); comment.append("~at~"); Node first = firstMoveAtPoint[x][y]; GoColor firstMoveColor = first.getMove().getColor(); int firstMoveNumber = NodeUtils.getMoveNumber(first); comment.append(getStoneInTextString(firstMoveNumber, firstMoveColor)); } } return comment.toString(); }
51310 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51310/1f50ffb219183ddaf94720a4aba453e11f412425/TexWriter.java/buggy/src/net/sf/gogui/tex/TexWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 1172, 2471, 12, 12496, 2471, 7920, 2471, 13, 565, 288, 3639, 14121, 5369, 7920, 5369, 273, 7920, 2471, 18, 588, 12496, 5369, 5621, 3639, 6674, 2879, 273, 394, 6674, 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, 514, 1172, 2471, 12, 12496, 2471, 7920, 2471, 13, 565, 288, 3639, 14121, 5369, 7920, 5369, 273, 7920, 2471, 18, 588, 12496, 5369, 5621, 3639, 6674, 2879, 273, 394, 6674, 5621, 3639, ...
DirectoryScanner ds = fileset.getDirectoryScanner(this.project); if (ds.getIncludedFiles().length == 0) { return; }
DirectoryScanner ds = fileset.getDirectoryScanner(this.project); if (ds.getIncludedFiles().length == 0) { return; }
protected void importFileset(FileSet fileset) { DirectoryScanner ds = fileset.getDirectoryScanner(this.project); if (ds.getIncludedFiles().length == 0) { return; } Vector classes = new Vector(); Vector sources = new Vector(); Vector resources = new Vector(); String[] classesArr = null; String[] sourcesArr = null; String[] resourcesArr = null; StringBuffer msg = new StringBuffer(); msg.append("Importing "); String connector = ""; ImportCodeSpec importSpec = new ImportCodeSpec(); importSpec.setDefaultProject(vajproject); scan( fileset.getDir(this.project), ds.getIncludedFiles(), classes, sources, resources); if (importClasses) { classesArr = new String[classes.size()]; classes.copyInto(classesArr); importSpec.setClassFiles(classesArr); if (classesArr.length > 0) { logFiles(classes, "class"); msg.append( classesArr.length ); msg.append( " class " ); msg.append( classesArr.length > 1 ? "files" : "file" ); connector = ", "; } } if (importSources) { sourcesArr = new String[sources.size()]; sources.copyInto(sourcesArr); importSpec.setJavaFiles(sourcesArr); if (sourcesArr.length > 0) { logFiles(sources, "source"); msg.append( connector ); msg.append( sourcesArr.length ); msg.append( " source " ); msg.append( sourcesArr.length > 1 ? "files" : "file" ); connector = ", "; } } if (importResources) { String resourcePath = fileset.getDir(this.project).getAbsolutePath(); resourcesArr = new String[resources.size()]; resources.copyInto(resourcesArr); importSpec.setResourcePath(resourcePath); importSpec.setResourceFiles(resourcesArr); if (resourcesArr.length > 0) { logFiles(resources, "resource"); log( " (relative to resource path '" + resourcePath + "')", org.apache.tools.ant.Project.MSG_VERBOSE ); msg.append( connector ); msg.append( resourcesArr.length ); msg.append( " resource " ); msg.append( resourcesArr.length > 1 ? "files" : "file" ); } } msg.append( " into the " ); msg.append( importProject ); msg.append( " project." ); log(msg.toString()); try { Type[] importedTypes = VAJUtil.getWorkspace().importData(importSpec); if (importedTypes == null) { throw new BuildException("Unable to import into Workspace!"); } } catch (IvjException ivje) { throw VAJUtil.createBuildException("Error while importing into Workspace: ", ivje); } }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/fcd6548344aa3f590435beff55530cfdb6983588/VAJImport.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/ide/VAJImport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1930, 2697, 278, 12, 812, 694, 1390, 278, 13, 288, 3639, 8930, 11338, 3780, 273, 1390, 278, 18, 588, 2853, 11338, 12, 2211, 18, 4406, 1769, 3639, 309, 261, 2377, 18, 588, 193...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1930, 2697, 278, 12, 812, 694, 1390, 278, 13, 288, 3639, 8930, 11338, 3780, 273, 1390, 278, 18, 588, 2853, 11338, 12, 2211, 18, 4406, 1769, 3639, 309, 261, 2377, 18, 588, 193...
if (newStr.equals(getValue())) {
if (sameAs(newStr)) {
public IRubyObject tr_bang(IRubyObject search, IRubyObject replace) { String newStr = tr(search, replace, false); if (newStr.equals(getValue())) { return getRuntime().getNil(); } setValue(newStr); return this; }
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/9f2efc63a858fa0507245b207025eab027840a04/RubyString.java/clean/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 433, 67, 70, 539, 12, 7937, 10340, 921, 1623, 16, 15908, 10340, 921, 1453, 13, 288, 202, 202, 780, 394, 1585, 273, 433, 12, 3072, 16, 1453, 16, 629, 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, 15908, 10340, 921, 433, 67, 70, 539, 12, 7937, 10340, 921, 1623, 16, 15908, 10340, 921, 1453, 13, 288, 202, 202, 780, 394, 1585, 273, 433, 12, 3072, 16, 1453, 16, 629, 1769, ...
public static Element parseJSON(String js) throws SoapParseException { return parseJSON(js, JavaScriptElement.mFactory); }
public static Element parseJSON(InputStream is) throws SoapParseException { return parseJSON(is, JavaScriptElement.mFactory); }
public static Element parseJSON(String js) throws SoapParseException { return parseJSON(js, JavaScriptElement.mFactory); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/0c9fab6c109d16c5d723fd25631e62949944518a/Element.java/buggy/ZimbraServer/src/java/com/zimbra/soap/Element.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3010, 1109, 2986, 12, 780, 3828, 13, 1216, 21789, 13047, 288, 327, 1109, 2986, 12, 2924, 16, 11905, 1046, 18, 81, 1733, 1769, 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, 760, 3010, 1109, 2986, 12, 780, 3828, 13, 1216, 21789, 13047, 288, 327, 1109, 2986, 12, 2924, 16, 11905, 1046, 18, 81, 1733, 1769, 289, 2, -100, -100, -100, -100, -100, -100, -100, ...
sql += " AND a.attname LIKE '"+escapeQuotes(columnNamePattern.toLowerCase())+"' ";
sql += " AND a.attname LIKE '"+escapeQuotes(columnNamePattern)+"' ";
public java.sql.ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException { Field f[] = new Field[8]; Vector v = new Vector(); if (table == null) table = "%"; if (columnNamePattern == null) columnNamePattern = "%"; else columnNamePattern = columnNamePattern.toLowerCase(); f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, getMaxNameLength()); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, getMaxNameLength()); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, getMaxNameLength()); f[3] = new Field(connection, "COLUMN_NAME", iVarcharOid, getMaxNameLength()); f[4] = new Field(connection, "GRANTOR", iVarcharOid, getMaxNameLength()); f[5] = new Field(connection, "GRANTEE", iVarcharOid, getMaxNameLength()); f[6] = new Field(connection, "PRIVILEGE", iVarcharOid, getMaxNameLength()); f[7] = new Field(connection, "IS_GRANTABLE", iVarcharOid, getMaxNameLength()); String sql; if (connection.haveMinimumServerVersion("7.3")) { sql = "SELECT n.nspname,c.relname,u.usename,c.relacl,a.attname "+ " FROM pg_catalog.pg_namespace n, pg_catalog.pg_class c, pg_catalog.pg_user u, pg_catalog.pg_attribute a "+ " WHERE c.relnamespace = n.oid "+ " AND u.usesysid = c.relowner "+ " AND c.oid = a.attrelid "+ " AND c.relkind = 'r' "+ " AND a.attnum > 0 AND NOT a.attisdropped "; if (schema != null && !"".equals(schema)) { sql += " AND n.nspname = '"+escapeQuotes(schema.toLowerCase())+"' "; } } else { sql = "SELECT NULL::text AS nspname,c.relname,u.usename,c.relacl,a.attname "+ "FROM pg_class c, pg_user u,pg_attribute a "+ " WHERE u.usesysid = c.relowner "+ " AND c.oid = a.attrelid "+ " AND a.attnum > 0 "+ " AND c.relkind = 'r' "; } sql += " AND c.relname = '"+escapeQuotes(table.toLowerCase())+"' "; if (columnNamePattern != null && !"".equals(columnNamePattern)) { sql += " AND a.attname LIKE '"+escapeQuotes(columnNamePattern.toLowerCase())+"' "; } sql += " ORDER BY attname "; ResultSet rs = connection.createStatement().executeQuery(sql); while (rs.next()) { byte schemaName[] = rs.getBytes("nspname"); byte tableName[] = rs.getBytes("relname"); byte column[] = rs.getBytes("attname"); String owner = rs.getString("usename"); String acl = rs.getString("relacl"); Hashtable permissions = parseACL(acl); String permNames[] = new String[permissions.size()]; Enumeration e = permissions.keys(); int i=0; while (e.hasMoreElements()) { permNames[i++] = (String)e.nextElement(); } sortStringArray(permNames); for (i=0; i<permNames.length; i++) { byte[] privilege = permNames[i].getBytes(); Vector grantees = (Vector)permissions.get(permNames[i]); for (int j=0; j<grantees.size(); j++) { String grantee = (String)grantees.elementAt(j); String grantable = owner.equals(grantee) ? "YES" : "NO"; byte[][] tuple = new byte[8][]; tuple[0] = null; tuple[1] = schemaName; tuple[2] = tableName; tuple[3] = column; tuple[4] = owner.getBytes(); tuple[5] = grantee.getBytes(); tuple[6] = privilege; tuple[7] = grantable.getBytes(); v.addElement(tuple); } } } rs.close(); return connection.getResultSet(null, f, v, "OK", 1); }
49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/718820fdcbe37650edf9773102d952e1d9fc6432/AbstractJdbc1DatabaseMetaData.java/clean/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 6716, 27692, 12, 780, 6222, 16, 514, 1963, 16, 514, 1014, 16, 514, 7578, 3234, 13, 1216, 6483, 202, 95, 202, 202, 974, 284, 8526, 273, 394, 2286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2252, 18, 4669, 18, 13198, 6716, 27692, 12, 780, 6222, 16, 514, 1963, 16, 514, 1014, 16, 514, 7578, 3234, 13, 1216, 6483, 202, 95, 202, 202, 974, 284, 8526, 273, 394, 2286, ...
EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(changeEvent);
ChangeListener[] listeners = getChangeListeners(); for (int i = 0; i < listeners.length; i++) listeners[i].stateChanged(changeEvent);
public void fireStateChanged(ChangeEvent e) { EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(changeEvent); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractButton.java/buggy/core/src/classpath/javax/javax/swing/AbstractButton.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4452, 1119, 5033, 12, 20930, 425, 13, 225, 288, 565, 22090, 8526, 6579, 273, 2991, 682, 18, 588, 5583, 12, 15744, 18, 1106, 1769, 565, 364, 261, 474, 277, 273, 374, 31, 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, 282, 1071, 918, 4452, 1119, 5033, 12, 20930, 425, 13, 225, 288, 565, 22090, 8526, 6579, 273, 2991, 682, 18, 588, 5583, 12, 15744, 18, 1106, 1769, 565, 364, 261, 474, 277, 273, 374, 31, 277, ...
if (isBinary) {
if (binary) {
private int getFinalLOC() { if (isBinary) { return 0; } String revision = null; try { revision = builder.getRevision(name); } catch (final IOException e) { if (!finalRevisionIsDead()) { LOGGER.warning(e.getMessage()); } } try { // if ("1.1".equals(revision)) { // return builder.getLOC(name) + locDelta; // } else { if (!revisions.isEmpty()) { final RevisionData firstAdded = (RevisionData) revisions.get(0); if (!finalRevisionIsDead() && !firstAdded.getRevisionNumber().equals(revision)) { LOGGER.warning("Revision of " + name + " does not match expected revision"); } } return builder.getLOC(name); // } } catch (final NoLineCountException e) { if (!finalRevisionIsDead()) { LOGGER.warning(e.getMessage()); } return approximateFinalLOC(); } }
48585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48585/4e7ce090e642cacf9f92e8fbdc24fab0c88c47c5/FileBuilder.java/buggy/statsvn/src/net/sf/statsvn/input/FileBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2812, 1490, 29450, 1435, 288, 3639, 309, 261, 8578, 13, 288, 5411, 327, 374, 31, 3639, 289, 3639, 514, 6350, 273, 446, 31, 3639, 775, 288, 5411, 6350, 273, 2089, 18, 588, 793...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2812, 1490, 29450, 1435, 288, 3639, 309, 261, 8578, 13, 288, 5411, 327, 374, 31, 3639, 289, 3639, 514, 6350, 273, 446, 31, 3639, 775, 288, 5411, 6350, 273, 2089, 18, 588, 793...
public void createControl(Composite parent) { Composite container = new Composite(parent, SWT.NULL); FillLayout layout = new FillLayout(); container.setLayout(layout); serverUrlEditor = new StringFieldEditor("", LABEL_SERVER, StringFieldEditor.UNLIMITED, container) { @Override protected boolean doCheckState() { return isValidUrl(getStringValue()); } @Override protected void valueChanged() { super.valueChanged(); getWizard().getContainer().updateButtons(); } }; serverUrlEditor.setErrorMessage("Server path must be a valid http(s):// url"); userNameEditor = new StringFieldEditor("", LABEL_USER, StringFieldEditor.UNLIMITED, container); passwordEditor = new RepositoryStringFieldEditor("", LABEL_PASSWORD, StringFieldEditor.UNLIMITED, container); if (repository != null) { try { serverUrlEditor.setStringValue(repository.getUrl()); userNameEditor.setStringValue(repository.getUserName()); passwordEditor.setStringValue(repository.getPassword()); } catch (Throwable t) { MylarStatusHandler.fail(t, "could not set field value for: " + repository, false); } } // bug 131656: must set echo char after setting value on Mac passwordEditor.getTextControl().setEchoChar('*'); createAdditionalControls(container); validateServerButton = new Button(container, SWT.PUSH); validateServerButton.setText("Validate Settings"); validateServerButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { validateSettings(); } }); setControl(container); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/d41c4a120fae710254e27245566966390ce439f9/AbstractRepositorySettingsPage.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/wizards/AbstractRepositorySettingsPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 9400, 982, 13, 288, 202, 202, 9400, 1478, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 202, 202, 8026, 3744, 3511, 273, 394, 14192, 3744, 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, 482, 918, 752, 3367, 12, 9400, 982, 13, 288, 202, 202, 9400, 1478, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 202, 202, 8026, 3744, 3511, 273, 394, 14192, 3744, 5621...
return value == ((ZipShort) o).getValue();
return value == ( (ZipShort) o ).getValue();
public boolean equals(Object o) { if (o == null || !(o instanceof ZipShort)) { return false; } return value == ((ZipShort) o).getValue(); }
55907 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55907/4da7a225ba9c01ca94805923e06e3fb2d46bf201/ZipShort.java/clean/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/zip/ZipShort.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 12, 921, 320, 13, 288, 3639, 309, 261, 83, 422, 446, 747, 401, 12, 83, 1276, 8603, 4897, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 327, 460, 422, 261, 261, 914...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 12, 921, 320, 13, 288, 3639, 309, 261, 83, 422, 446, 747, 401, 12, 83, 1276, 8603, 4897, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 327, 460, 422, 261, 261, 914...
ColorType col = (ColorType)area.getTrait(Trait.COLOR);
Color col = (Color)area.getTrait(Trait.COLOR);
public void renderLeader(Leader area) { renderInlineAreaBackAndBorders(area); endTextObject(); saveGraphicsState(); int style = area.getRuleStyle(); float startx = (currentIPPosition + area.getBorderAndPaddingWidthStart()) / 1000f; float starty = (currentBPPosition + area.getOffset()) / 1000f; float endx = (currentIPPosition + area.getBorderAndPaddingWidthStart() + area.getIPD()) / 1000f; float ruleThickness = area.getRuleThickness() / 1000f; ColorType col = (ColorType)area.getTrait(Trait.COLOR); try { switch (style) { case EN_SOLID: case EN_DASHED: case EN_DOUBLE: drawBorderLine(startx, starty, endx, starty + ruleThickness, true, true, style, col); break; case EN_DOTTED: clipRect(startx, starty, endx - startx, ruleThickness); //This displaces the dots to the right by half a dot's width //TODO There's room for improvement here gen.concatMatrix(1, 0, 0, 1, ruleThickness / 2, 0); drawBorderLine(startx, starty, endx, starty + ruleThickness, true, true, style, col); break; case EN_GROOVE: case EN_RIDGE: float half = area.getRuleThickness() / 2000f; gen.useRGBColor(lightenColor(toColor(col), 0.6f)); moveTo(startx, starty); lineTo(endx, starty); lineTo(endx, starty + 2 * half); lineTo(startx, starty + 2 * half); closePath(); gen.writeln(" fill newpath"); gen.useRGBColor(toColor(col)); if (style == EN_GROOVE) { moveTo(startx, starty); lineTo(endx, starty); lineTo(endx, starty + half); lineTo(startx + half, starty + half); lineTo(startx, starty + 2 * half); } else { moveTo(endx, starty); lineTo(endx, starty + 2 * half); lineTo(startx, starty + 2 * half); lineTo(startx, starty + half); lineTo(endx - half, starty + half); } closePath(); gen.writeln(" fill newpath"); break; default: throw new UnsupportedOperationException("rule style not supported"); } } catch (IOException ioe) { handleIOTrouble(ioe); } restoreGraphicsState(); super.renderLeader(area); }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/ed31364eaf18c370b5fb76ea05c7e84508c2c44c/PSRenderer.java/buggy/src/java/org/apache/fop/render/ps/PSRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1743, 15254, 12, 15254, 5091, 13, 288, 3639, 1743, 10870, 5484, 2711, 1876, 21621, 12, 5036, 1769, 3639, 679, 1528, 921, 5621, 3639, 1923, 17558, 1119, 5621, 3639, 509, 2154, 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, 1743, 15254, 12, 15254, 5091, 13, 288, 3639, 1743, 10870, 5484, 2711, 1876, 21621, 12, 5036, 1769, 3639, 679, 1528, 921, 5621, 3639, 1923, 17558, 1119, 5621, 3639, 509, 2154, 273...
if ( this.contains(gm) ) throw new GroupsException(gm + " is already a member of " + this);
if ( this.contains(gm) ) throw new GroupsException(gm + " is already a member of " + this);
private void checkIfAlreadyMember(IGroupMember gm) throws GroupsException { if ( this.contains(gm) ) throw new GroupsException(gm + " is already a member of " + this); }
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/4c34db578b77ba3c1f4c891c4e5bc40fe5d7a231/EntityGroupImpl.java/buggy/source/org/jasig/portal/groups/EntityGroupImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 19130, 9430, 4419, 12, 45, 1114, 4419, 14125, 13, 1216, 14712, 503, 288, 202, 430, 261, 333, 18, 12298, 12, 23336, 13, 262, 202, 202, 12849, 394, 14712, 503, 12, 23336, 397, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 19130, 9430, 4419, 12, 45, 1114, 4419, 14125, 13, 1216, 14712, 503, 288, 202, 430, 261, 333, 18, 12298, 12, 23336, 13, 262, 202, 202, 12849, 394, 14712, 503, 12, 23336, 397, 315, ...
String newStr = getSqueeze(args); if (newStr.equals(getValue())) {
StringBuffer newStr = getSqueeze(args); if (sameAs(newStr)) {
public IRubyObject squeeze_bang(IRubyObject[] args) { String newStr = getSqueeze(args); if (newStr.equals(getValue())) { return getRuntime().getNil(); } setValue(newStr); return this; }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/9f2efc63a858fa0507245b207025eab027840a04/RubyString.java/clean/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 17173, 67, 70, 539, 12, 7937, 10340, 921, 8526, 833, 13, 288, 202, 202, 780, 394, 1585, 273, 1322, 14652, 12, 1968, 1769, 202, 202, 430, 261, 2704, 1585, 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, 482, 15908, 10340, 921, 17173, 67, 70, 539, 12, 7937, 10340, 921, 8526, 833, 13, 288, 202, 202, 780, 394, 1585, 273, 1322, 14652, 12, 1968, 1769, 202, 202, 430, 261, 2704, 1585, 18...
public final Object postCreate(final TransactionContext tx, final OID oid,
public Object postCreate(final TransactionContext tx, final OID oid,
public final Object postCreate(final TransactionContext tx, final OID oid, final Object object, final Object field, final Object createdId) { return field; }
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/3253146e50bfcc6526ac0284fa20a7ffd2f6ec6d/OneToManyRelationResolver.java/buggy/trunk/castor/src/main/org/castor/persist/resolver/OneToManyRelationResolver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1603, 1684, 12, 6385, 5947, 1042, 2229, 16, 727, 18026, 7764, 16, 5411, 727, 1033, 733, 16, 727, 1033, 652, 16, 2398, 727, 1033, 2522, 548, 13, 288, 3639, 327, 652, 31, 565,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1603, 1684, 12, 6385, 5947, 1042, 2229, 16, 727, 18026, 7764, 16, 5411, 727, 1033, 733, 16, 727, 1033, 652, 16, 2398, 727, 1033, 2522, 548, 13, 288, 3639, 327, 652, 31, 565,...