rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
if (!sElement.startsWith("'"))
if (!sElement.startsWith("'"))
private String getConvertedBaseSampleDataRepresentation(String sOldRepresentation) { StringTokenizer strtok = new StringTokenizer(sOldRepresentation, ","); StringBuffer sbNewRepresentation = new StringBuffer(""); while (strtok.hasMoreTokens()) { String sElement = strtok.nextToken().trim(); if (!sElement.startsWith("'")) { sbNewRepresentation.append("'"); sbNewRepresentation.append(sElement); sbNewRepresentation.append("'"); } else { sbNewRepresentation.append(sElement); } sbNewRepresentation.append(","); } return sbNewRepresentation.toString().substring(0, sbNewRepresentation.length() - 1); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/7793e94b4d7fab5891f226c6c937e37d85bebad8/LineChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/LineChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 336, 22063, 2171, 8504, 751, 13742, 12, 780, 272, 7617, 13742, 13, 565, 288, 3639, 16370, 609, 17692, 273, 394, 16370, 12, 87, 7617, 13742, 16, 5753, 1769, 3639, 6674, 2393, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 336, 22063, 2171, 8504, 751, 13742, 12, 780, 272, 7617, 13742, 13, 565, 288, 3639, 16370, 609, 17692, 273, 394, 16370, 12, 87, 7617, 13742, 16, 5753, 1769, 3639, 6674, 2393, 19...
protected Object clone ()
protected Object clone()
protected Object clone () throws CloneNotSupportedException { // Clone this formatter. AbstractFormatter newFormatter = (AbstractFormatter)super.clone(); // And remove the association to the JFormattedTextField. newFormatter.textField = null; return newFormatter; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JFormattedTextField.java/buggy/core/src/classpath/javax/javax/swing/JFormattedTextField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1033, 3236, 1435, 1377, 1216, 12758, 25482, 565, 288, 1377, 368, 12758, 333, 4453, 18, 1377, 4115, 5074, 394, 5074, 273, 261, 7469, 5074, 13, 9565, 18, 14056, 5621, 5411, 368, 7835, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 3236, 1435, 1377, 1216, 12758, 25482, 565, 288, 1377, 368, 12758, 333, 4453, 18, 1377, 4115, 5074, 394, 5074, 273, 261, 7469, 5074, 13, 9565, 18, 14056, 5621, 5411, 368, 7835, ...
String oldCwd = System.getProperty("user.dir");
String oldCwd = NormalizedFile.getFileProperty("user.dir");
public static IRubyObject chdir(IRubyObject recv, IRubyObject[] args) { recv.checkArgumentCount(args, 0, 1); RubyString path = args.length == 1 ? (RubyString) args[0].convertToString() : getHomeDirectoryPath(recv); NormalizedFile dir = getDir(recv.getRuntime(), path.toString(), true); String realPath = null; String oldCwd = System.getProperty("user.dir"); // We get canonical path to try and flatten the path out. // a dir '/subdir/..' should return as '/' // cnutter: Do we want to flatten path out? try { realPath = dir.getCanonicalPath(); } catch (IOException e) { realPath = dir.getAbsolutePath(); } IRubyObject result = null; if (recv.getRuntime().getCurrentContext().isBlockGiven()) { // FIXME: Don't use user.dir for cwd System.setProperty("user.dir", realPath); result = recv.getRuntime().getCurrentContext().yield(path); System.setProperty("user.dir", oldCwd); } else { System.setProperty("user.dir", realPath); result = recv.getRuntime().newFixnum(0); } return result; }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/c506a9979e35512d57d5f29f0d18b3da14ef2919/RubyDir.java/buggy/src/org/jruby/RubyDir.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 14029, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 10665, 18, 1893, 1379, 1380, 12, 1968, 16, 374, 16, 404, 1769, 3639, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 14029, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 10665, 18, 1893, 1379, 1380, 12, 1968, 16, 374, 16, 404, 1769, 3639, 198...
.getPropertyValue(Properties.ID_CLOSESTDISTANCE);
.getStructuralFeatureValue(NotationPackage.eINSTANCE.getRoutingStyle_ClosestDistance());
public void run() { // Update display from model ConnectionEditPart obj = (ConnectionEditPart) getSingleInput(); if (!avoidObstaclesButton.isDisposed()) { Boolean val = (Boolean) obj .getPropertyValue(Properties.ID_AVOIDOBSTRUCTIONS); avoidObstaclesButton.setSelection(val.booleanValue()); } if (!closestDistanceButton.isDisposed()) { Boolean val = (Boolean) obj .getPropertyValue(Properties.ID_CLOSESTDISTANCE); closestDistanceButton.setSelection(val.booleanValue()); } if (!reverseJumpLinksButton.isDisposed()) { Boolean val = (Boolean) obj .getPropertyValue(Properties.ID_JUMPLINKS_REVERSE); reverseJumpLinksButton.setSelection(val.booleanValue()); } Button button = (Button) buttons.get(obj .getPropertyValue(Properties.ID_JUMPLINKS_STATUS)); if (button != null) button.setSelection(true); button = (Button) buttons.get(obj .getPropertyValue(Properties.ID_JUMPLINKS_TYPE)); if (button != null) button.setSelection(true); button = (Button) buttons.get(obj .getPropertyValue(Properties.ID_ROUTING)); if (button != null) button.setSelection(true); button = (Button) buttons.get(obj .getPropertyValue(Properties.ID_SMOOTHNESS)); if (button != null) button.setSelection(true); }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/a2c4f90ee5a24e30394a33d50744cac16e2ca06b/ConnectorAppearancePropertySection.java/clean/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui.properties/src/org/eclipse/gmf/runtime/diagram/ui/properties/sections/appearance/ConnectorAppearancePropertySection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 1086, 1435, 288, 6862, 202, 759, 2315, 2562, 628, 938, 6862, 202, 1952, 4666, 1988, 1081, 273, 261, 1952, 4666, 1988, 13, 19108, 1210, 5621, 6862, 202, 430, 16051, 842, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 1086, 1435, 288, 6862, 202, 759, 2315, 2562, 628, 938, 6862, 202, 1952, 4666, 1988, 1081, 273, 261, 1952, 4666, 1988, 13, 19108, 1210, 5621, 6862, 202, 430, 16051, 842, 83...
protected List parseElements(String aValue)
protected List parseElements(final String aValue)
protected List parseElements(String aValue) throws NullPointerException { // Validate the passed argument if (aValue == null) { throw new NullPointerException(); } // Trim any matching '{' and '}' delimiters aValue = aValue.trim(); if (aValue.startsWith("{") && aValue.endsWith("}")) { aValue = aValue.substring(1, aValue.length() - 1); } final StringTokenizer st = new StringTokenizer(aValue, ","); final List retVal = new ArrayList(); while (st.hasMoreTokens()) { final String token = st.nextToken(); retVal.add(token.trim()); } return retVal; }
50482 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50482/6ade6c0c3caf3cc6c05e63c185f0630e616f66a9/AutomaticBean.java/buggy/src/checkstyle/com/puppycrawl/tools/checkstyle/api/AutomaticBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 987, 1109, 3471, 12, 6385, 514, 24406, 13, 3639, 1216, 10108, 565, 288, 3639, 368, 3554, 326, 2275, 1237, 3639, 309, 261, 69, 620, 422, 446, 13, 288, 5411, 604, 394, 10108, 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, 377, 4750, 987, 1109, 3471, 12, 6385, 514, 24406, 13, 3639, 1216, 10108, 565, 288, 3639, 368, 3554, 326, 2275, 1237, 3639, 309, 261, 69, 620, 422, 446, 13, 288, 5411, 604, 394, 10108, 5621, ...
public void execute( PluginExecutionRequest request, PluginExecutionResponse response ) throws Exception { String outputDirectory = ( String ) request.getParameter( "outputDirectory" ); String jarName = ( String ) request.getParameter( "jarName" ); File jarFile = new File( outputDirectory , jarName + ".jar" ); MavenProject project = ( MavenProject ) request.getParameter( "project" ); ArtifactInstaller artifactInstaller = ( ArtifactInstaller ) request.getParameter( "component.org.apache.maven.artifact.installer.ArtifactInstaller" ); artifactInstaller.install( jarFile, "jar", project ); }
11530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11530/7e90a620815f8e0df641904c6c631a756c6f2788/JarInstallMojo.java/clean/maven-plugins/maven-jar-plugin/src/main/java/org/apache/maven/plugin/jar/JarInstallMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 90, 11359, 561, 557, 624, 12, 3773, 3210, 691, 2293, 16, 3773, 3210, 607, 500, 550, 281, 575, 13, 15069, 503, 95, 780, 2844, 2853, 28657, 780, 13, 2293, 18, 588, 1662, 2932, 2844, 2853...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 90, 11359, 561, 557, 624, 12, 3773, 3210, 691, 2293, 16, 3773, 3210, 607, 500, 550, 281, 575, 13, 15069, 503, 95, 780, 2844, 2853, 28657, 780, 13, 2293, 18, 588, 1662, 2932, 2844, 2853...
RangeToken range = Token.getRange(name, true); if (range == null) throw ex("parser.cc.3", this.offset);
RangeToken range = Token.getRange(name, positive); if (range == null) throw this.ex("parser.cc.3", this.offset);
private RangeToken parseCharacterClass(boolean useNrange) throws ParseException { this.setContext(S_INBRACKETS); this.next(); // '[' boolean nrange = false; RangeToken base = null; RangeToken tok; if (this.read() == T_CHAR && this.chardata == '^') { nrange = true; this.next(); // '^' if (useNrange) { tok = Token.createNRange(); } else { base = Token.createRange(); base.addRange(0, 0xffff); tok = Token.createRange(); } } else { tok = Token.createRange(); } int type; while ((type = this.read()) != T_EOF && !(type == T_CHAR && this.chardata == ']')) { int c = this.chardata; /* if (type == T_CHAR && c == '^') { this.next(); type = this.read(); c = this.chardata; if (type == T_EOF) break; nrange = !nrange; if (nrange) tok = Token.createRange(); else { base.subtractRanges(tok); tok = base; } } */ boolean end = false; if (type == T_BACKSOLIDUS) { switch (c) { case 'd': case 'D': case 'w': case 'W': case 's': case 'S': tok.mergeRanges(this.getTokenForShorthand(c)); end = true; break; case 'i': case 'I': case 'c': case 'C': c = this.processCIinCharacterClass(tok, c); if (c < 0) end = true; break; case 'p': case 'P': boolean positive = c == 'p'; int pstart = this.offset; this.next(); if (this.read() != T_CHAR) throw ex("parser.atom.2", this.offset-1); RangeToken tok2 = null; switch (this.chardata) { case 'L': // Letter tok2 = Token.getRange("L", positive); break; case 'M': // Mark tok2 = Token.getRange("M", positive); break; case 'N': // Number tok2 = Token.getRange("N", positive); break; case 'Z': // Separator tok2 = Token.getRange("Z", positive); break; case 'C': // Other tok2 = Token.getRange("C", positive); break; case 'P': // Punctuation tok2 = Token.getRange("P", positive); break; case 'S': // Symbol tok2 = Token.getRange("S", positive); break; case '{': // this.offset points the next of '{'. pstart = this.offset; int namestart = this.offset; int nameend = this.regex.indexOf('}', namestart); if (nameend < 0) throw ex("parser.atom.3", this.offset); this.offset = nameend+1; tok2 = Token.getRange(this.regex.substring(namestart, nameend), positive); break; default: throw ex("parser.atom.2", this.offset-1); } if (tok2 == null) throw ex("parser.atom.5", pstart); tok.mergeRanges(tok2); end = true; break; default: c = this.decodeEscaped(); } // \ + c } // backsolidus // POSIX Character class such as [:alnum:] else if (type == T_POSIX_CHARCLASS_START) { int nameend = this.regex.indexOf(':', this.offset); if (nameend < 0) throw ex("parser.cc.1", this.offset); String name = this.regex.substring(this.offset, nameend); RangeToken range = Token.getRange(name, true); if (range == null) throw ex("parser.cc.3", this.offset); tok.mergeRanges(range); end = true; if (nameend+1 >= this.regexlen || this.regex.charAt(nameend+1) != ']') throw ex("parser.cc.1", nameend); this.offset = nameend+2; } this.next(); if (!end) { if (this.read() != T_CHAR || this.chardata != '-') { // Here is no '-'. tok.addRange(c, c); } else { this.next(); // Skips '-' if ((type = this.read()) == T_EOF) throw ex("parser.cc.2", this.offset); int rangeend = this.chardata; if (type == T_BACKSOLIDUS) rangeend = this.decodeEscaped(); this.next(); tok.addRange(c, rangeend); } } if (this.read() == T_CHAR && this.chardata == ',') this.next(); } if (this.read() == T_EOF) throw ex("parser.cc.2", this.offset); if (!useNrange && nrange) { base.subtractRanges(tok); tok = base; } tok.sortRanges(); tok.compactRanges(); //tok.dumpRanges(); /* if (this.isSet(RegularExpression.IGNORE_CASE)) tok = RangeToken.createCaseInsensitiveToken(tok); */ this.setContext(S_NORMAL); this.next(); // Skips ']' return tok; }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/8b11a848810bb412bb54724cba3f489008bafdc9/RegexParser.java/buggy/src/org/apache/xerces/utils/regex/RegexParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 8086, 1345, 1109, 7069, 797, 12, 6494, 999, 50, 3676, 13, 1216, 10616, 288, 3639, 333, 18, 542, 1042, 12, 55, 67, 706, 21217, 55, 1769, 3639, 333, 18, 4285, 5621, 18701, 368, 8375...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8086, 1345, 1109, 7069, 797, 12, 6494, 999, 50, 3676, 13, 1216, 10616, 288, 3639, 333, 18, 542, 1042, 12, 55, 67, 706, 21217, 55, 1769, 3639, 333, 18, 4285, 5621, 18701, 368, 8375...
return new RubyJavaObject(ruby, RubyJavaObject.getRubyClass(ruby, javaClass), object);
return new RubyJavaObject(ruby, RubyJavaObject.loadClass(ruby, javaClass, null), object);
public static RubyObject convertJavaToRuby(Ruby ruby, Object object, Class javaClass) { if (object == null) { return ruby.getNil(); } if (javaClass == Boolean.TYPE || javaClass == Boolean.class) { return RubyBoolean.m_newBoolean(ruby, ((Boolean)object).booleanValue()); } if (javaClass == Integer.TYPE || javaClass == Integer.class || javaClass == Long.TYPE || javaClass == Long.class) { return RubyFixnum.m_newFixnum(ruby, ((Number)object).intValue()); } if (javaClass == Float.TYPE || javaClass == Float.class || javaClass == Double.TYPE || javaClass == Double.class) { return RubyFloat.m_newFloat(ruby, ((Number)object).doubleValue()); } if (javaClass == String.class) { return RubyString.m_newString(ruby, object.toString()); } if (javaClass.isArray()) { Class arrayClass = javaClass.getComponentType(); int len = Array.getLength(object); RubyObject[] items = new RubyObject[len]; for (int i = 0; i < len; i++) { items[i] = convertJavaToRuby(ruby, Array.get(object, i), arrayClass); } return RubyArray.m_create(ruby, items); } return new RubyJavaObject(ruby, RubyJavaObject.getRubyClass(ruby, javaClass), object); }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/4dd998b9c4d1045cac5a54d7601156dae6301fae/JavaUtil.java/buggy/org/jruby/javasupport/JavaUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 921, 1765, 5852, 774, 54, 10340, 12, 54, 10340, 22155, 16, 1033, 733, 16, 1659, 2252, 797, 13, 288, 3639, 309, 261, 1612, 422, 446, 13, 288, 5411, 327, 22155, 18, 588,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 921, 1765, 5852, 774, 54, 10340, 12, 54, 10340, 22155, 16, 1033, 733, 16, 1659, 2252, 797, 13, 288, 3639, 309, 261, 1612, 422, 446, 13, 288, 5411, 327, 22155, 18, 588,...
|| modelElement == null || !(listener instanceof MElementListener)) { throw new IllegalArgumentException("listener is null or " + "an illegal type"); } EventKey[] keys = _definition.getEventTypes(modelElement.getClass()); for (int i = 0; i < keys.length; i++) { _listenerMap.remove( modelElement, keys[i], (MElementListener) listener);
|| !(listener instanceof MElementListener) || modelElement == null || eventNames == null || eventNames.length == 0) throw new IllegalArgumentException(); for (int i = 0; i < eventNames.length; i++) { EventKey[] keys = _definition.getEventTypes( modelElement.getClass(), eventNames[i]); for (int j = 0; j < keys.length; j++) { _listenerMap.remove(modelElement, keys[j], (MElementListener) listener); }
public void removeModelEventListener(Object/*MElementListener*/ listener, Object handle) { if (handle == null) return; // we don't support eventlisteners other then NSUML ModelEventListener. // to be forward compatible with other ModelEventListeners, we do not throw an exception but // simply return. if (!(handle instanceof MBase)) // throw new IllegalArgumentException(); return; MBase modelElement = (MBase) handle; if (listener == null || modelElement == null || !(listener instanceof MElementListener)) { throw new IllegalArgumentException("listener is null or " + "an illegal type"); } EventKey[] keys = _definition.getEventTypes(modelElement.getClass()); for (int i = 0; i < keys.length; i++) { _listenerMap.remove( modelElement, keys[i], (MElementListener) listener); } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/05418c443f18f9fa8eab4e0d468de1c94e2950f1/UmlModelEventPump.java/buggy/src_new/org/argouml/model/uml/UmlModelEventPump.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1206, 1488, 7375, 12, 921, 20308, 12310, 2223, 5549, 2991, 16, 25083, 1033, 1640, 13, 565, 288, 3639, 309, 261, 4110, 422, 446, 13, 5411, 327, 31, 3639, 368, 732, 2727, 1404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 1488, 7375, 12, 921, 20308, 12310, 2223, 5549, 2991, 16, 25083, 1033, 1640, 13, 565, 288, 3639, 309, 261, 4110, 422, 446, 13, 5411, 327, 31, 3639, 368, 732, 2727, 1404, ...
logln("==test_01: BadPaddingException==");
public void testBadPaddingException01() { logln("==test_01: BadPaddingException=="); BadPaddingException tE = new BadPaddingException(); assertTrue(errNotExc, tE instanceof BadPaddingException); assertNull("getMessage() must return null.", tE.getMessage()); assertNull("getCause() must return null", tE.getCause()); try { throw tE; } catch (Exception e) { assertTrue(createErr(tE, e), tE.equals(e)); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/a9fd98c8fca0593ca0da8ba774c48808f903f221/BadPaddingExceptionTest.java/clean/modules/security2/test/common/unit/javax/crypto/BadPaddingExceptionTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 6434, 9485, 503, 1611, 1435, 288, 2868, 6107, 9485, 503, 268, 41, 273, 394, 6107, 9485, 503, 5621, 3639, 1815, 5510, 12, 370, 1248, 29924, 16, 268, 41, 1276, 6107, 9485, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6434, 9485, 503, 1611, 1435, 288, 2868, 6107, 9485, 503, 268, 41, 273, 394, 6107, 9485, 503, 5621, 3639, 1815, 5510, 12, 370, 1248, 29924, 16, 268, 41, 1276, 6107, 9485, ...
bean = NutchBean.get(this.getServletContext());
bean = NutchBean.get(this.getServletContext(), nutchConf);
public void init() { try { bean = NutchBean.get(this.getServletContext()); } catch (IOException e) { // nothing } }
57484 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57484/329ff64e9d7295aff108f85e9a8103f5e5f8f398/Cached.java/clean/src/java/org/apache/nutch/servlet/Cached.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1208, 1435, 288, 565, 775, 288, 1377, 3931, 273, 423, 322, 343, 3381, 18, 588, 12, 2211, 18, 588, 4745, 1042, 9334, 290, 322, 343, 3976, 1769, 565, 289, 1044, 261, 14106, 425...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 918, 1208, 1435, 288, 565, 775, 288, 1377, 3931, 273, 423, 322, 343, 3381, 18, 588, 12, 2211, 18, 588, 4745, 1042, 9334, 290, 322, 343, 3976, 1769, 565, 289, 1044, 261, 14106, 425...
StackTraceElement[] current = getCurrentTrace(); int length = Math.min(trace.length, current.length); int entry = 0; while (entry < length && trace[entry].equals(current[entry])) entry++; assert entry <= stop : "entry = " + entry + " > " + stop + " = stop";
this.trace = getCurrentTrace(); while (traceAtStartsWith(entry, "scalai.")) entry++;
public void addScalaEntryPoint() { StackTraceElement[] current = getCurrentTrace(); // find entry point int length = Math.min(trace.length, current.length); int entry = 0; while (entry < length && trace[entry].equals(current[entry])) entry++; assert entry <= stop : "entry = " + entry + " > " + stop + " = stop"; // skip calls through proxy class while (entry > 0 && traceAtStartsWith(entry - 1, "$Proxy")) entry--; // save new trace end stop = entry; }
32355 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/32355/a766b31106fb883025d966e9dbe725c385ed22ad/EvaluatorException.java/buggy/sources/scala/tools/scalai/EvaluatorException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 55, 771, 69, 1622, 2148, 1435, 288, 3639, 25663, 8526, 783, 273, 5175, 3448, 5621, 3639, 368, 1104, 1241, 1634, 3639, 509, 769, 273, 2361, 18, 1154, 12, 5129, 18, 2469, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 55, 771, 69, 1622, 2148, 1435, 288, 3639, 25663, 8526, 783, 273, 5175, 3448, 5621, 3639, 368, 1104, 1241, 1634, 3639, 509, 769, 273, 2361, 18, 1154, 12, 5129, 18, 2469, ...
suite.addTestSuite(TestBugsClosed.class);
suite.addTestSuite( TestBugsClosed.class);
static public Test suite() { TestSuite suite = new TestSuite(); // TODO Split suite.addTestSuite(TestBugsClosed.class); return suite; } // static public Test suite()
5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/f08c86858f7af1a89edd3862c3aaf8569b47ed92/SuiteBugsClosed.java/buggy/grouper/src/test/edu/internet2/middleware/grouper/SuiteBugsClosed.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1071, 7766, 11371, 1435, 288, 565, 7766, 13587, 11371, 273, 394, 7766, 13587, 5621, 5411, 368, 2660, 5385, 565, 11371, 18, 1289, 4709, 13587, 12, 7766, 31559, 7395, 18, 1106, 1769, 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, 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, 282, 760, 1071, 7766, 11371, 1435, 288, 565, 7766, 13587, 11371, 273, 394, 7766, 13587, 5621, 5411, 368, 2660, 5385, 565, 11371, 18, 1289, 4709, 13587, 12, 7766, 31559, 7395, 18, 1106, 1769, 565...
}
} else { isScrolling = false; };
public void mousePressed(MouseEvent me) { scrolled = false; // not scrolled yet if ( null == me.getPoint() ) { return; } oldMousePosition = me.getPoint(); isTipPossible = false; for (int i = 0; i < displayables.size(); i++) { Displayable disp = (Displayable) displayables.elementAt(i); if (disp.isHit(me.getPoint(), backSize)) { return; } } // Disable scrolling when ctrl or alt is held down, since this // means the user wants to use the LOS/ruler tools. int mask = InputEvent.CTRL_MASK | InputEvent.ALT_MASK; if ( !Settings.rightDragScroll && game.getPhase() == Game.PHASE_FIRING ) { // In the firing phase, also disable scrolling if // the right or middle buttons are clicked, since // this means the user wants to activate the // popup menu or ruler tool. mask |= InputEvent.BUTTON2_MASK | InputEvent.BUTTON3_MASK; } // disable auto--edge-scrolling if no option set if ( !Settings.autoEdgeScroll ) { mask |= InputEvent.BUTTON1_MASK; }; // disable edge-scrolling if no option set if ( !Settings.clickEdgeScroll ) { mask |= InputEvent.BUTTON3_MASK; }; if ( (me.getModifiers() & mask ) == 0 ) { isScrolling = true; //activate scrolling } if (isTipShowing()) { hideTooltip(); } game.board.mouseAction(getCoordsAt(me.getPoint()), Board.BOARD_HEX_DRAG, me.getModifiers()); }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/b3ab7dae4d0034b252f54fac13ce933c155accb4/BoardView1.java/clean/megamek/src/megamek/client/ui/AWT/BoardView1.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7644, 24624, 12, 9186, 1133, 1791, 13, 288, 3639, 888, 25054, 273, 629, 31, 368, 486, 888, 25054, 4671, 3639, 309, 261, 446, 422, 1791, 18, 588, 2148, 1435, 262, 288, 5411, 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, 1071, 918, 7644, 24624, 12, 9186, 1133, 1791, 13, 288, 3639, 888, 25054, 273, 629, 31, 368, 486, 888, 25054, 4671, 3639, 309, 261, 446, 422, 1791, 18, 588, 2148, 1435, 262, 288, 5411, 3...
JButton play = new JButton("Play"); play.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { play(); } });
JButton play = new JButton("Play"); play.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { play(crossBreeder.getCurrentPatch()); } });
public CrossBreedDialog(JFrame parent) { super(parent, "Patch Cross-Breeder", false); crossBreeder = new CrossBreeder(); JPanel container = new JPanel(); container.setLayout (new BorderLayout()); JPanel p4 = new JPanel(); p4.setLayout (new ColumnLayout()); l1 = new JLabel("Patch Type: "); JPanel buttonPanel = new JPanel(); JPanel buttonPanel2 = new JPanel(); JButton gen = new JButton("Generate"); gen.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { generatePressed(); } }); buttonPanel2.add(gen); JButton play = new JButton("Play"); play.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { play(); } }); buttonPanel2.add(play); JButton keep = new JButton("Keep"); keep.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { try { PatchBasket library = (PatchBasket) JSLDesktop.getSelectedFrame(); IPatch q = crossBreeder.getCurrentPatch(); library.pastePatch(q); } catch (Exception ex) { JOptionPane.showMessageDialog (null, "Destination Library Must be Focused", "Error", JOptionPane.ERROR_MESSAGE); } } }); buttonPanel2.add(keep); JButton ok = new JButton("Close"); ok.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { OKPressed(); } }); buttonPanel.add(ok); getRootPane().setDefaultButton(ok); p4.add(l1); container.add(p4, BorderLayout.NORTH); container.add(buttonPanel2, BorderLayout.CENTER); container.add(buttonPanel, BorderLayout.SOUTH); getContentPane().add(container); // setSize(400,300); pack(); Utility.centerDialog(this); }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/c9a5855c255671437a6d4444aa96a48a5f7fa399/CrossBreedDialog.java/buggy/JSynthLib/core/CrossBreedDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19742, 38, 15656, 6353, 12, 46, 3219, 982, 13, 288, 3639, 2240, 12, 2938, 16, 315, 7332, 19742, 17, 38, 15656, 264, 3113, 629, 1769, 3639, 6828, 38, 15656, 264, 273, 394, 19742, 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, 1071, 19742, 38, 15656, 6353, 12, 46, 3219, 982, 13, 288, 3639, 2240, 12, 2938, 16, 315, 7332, 19742, 17, 38, 15656, 264, 3113, 629, 1769, 3639, 6828, 38, 15656, 264, 273, 394, 19742, 3...
JavaGenerationParameters params = getJavaGenerationParameters(); String altClassName = AlternativeGenerator.qualifiedClassName(params, type, alt); String protoVar = prototypeVariable(type, alt);
JavaGenerationParameters params = getJavaGenerationParameters(); String altClassName = AlternativeGenerator.qualifiedClassName(params, type, alt); String protoVar = prototypeVariable(type, alt);
private void genInternalMakeMethod(Type type, Alternative alt) { JavaGenerationParameters params = getJavaGenerationParameters(); String altClassName = AlternativeGenerator.qualifiedClassName(params, type, alt); String protoVar = prototypeVariable(type, alt); print(" public " + altClassName + " make" + concatTypeAlt(type, alt)); println("(aterm.AFun fun, aterm.ATerm[] args, aterm.ATermList annos) {"); println(" synchronized (" + protoVar + ") {"); println(" " + protoVar + ".initHashCode(annos, fun, args);"); println(" return (" + altClassName + ") factory.build(" + protoVar + ");"); println(" }"); println(" }"); println(); }
3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/76875cdfe2af0d6de4ab58a245cce8bd703a86ab/FactoryGenerator.java/clean/apigen/apigen/gen/java/FactoryGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3157, 3061, 6464, 1305, 12, 559, 618, 16, 21498, 1535, 3770, 13, 288, 202, 202, 5852, 13842, 2402, 859, 273, 18911, 13842, 2402, 5621, 202, 202, 780, 3770, 3834, 273, 2149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3157, 3061, 6464, 1305, 12, 559, 618, 16, 21498, 1535, 3770, 13, 288, 202, 202, 5852, 13842, 2402, 859, 273, 18911, 13842, 2402, 5621, 202, 202, 780, 3770, 3834, 273, 2149...
System.err.println(">>> " + handle) ITask task = MylarTaskListPlugin.getTaskListManager().getTaskList().getTask(handle);
ITask task = MylarTaskListPlugin.getTaskListManager().getTaskList().getTask(handle); if (task == null) { for (ITask currTask : MylarTaskListPlugin.getTaskListManager().getTaskList().getAllTasks()) { if (currTask instanceof AbstractRepositoryTask) { String currUrl = ((AbstractRepositoryTask)currTask).getUrl(); if (currUrl != null && currUrl.equals(fullUrl)) { task = currTask; break; } } } }
public static boolean openRepositoryTask(String repositoryUrl, String taskId, String fullUrl) { boolean opened = false; String handle = AbstractRepositoryTask.getHandle(repositoryUrl, taskId); System.err.println(">>> " + handle) ITask task = MylarTaskListPlugin.getTaskListManager().getTaskList().getTask(handle); if (task != null) { TaskUiUtil.refreshAndOpenTaskListElement(task); opened = true; } else { AbstractRepositoryConnector connector = MylarTaskListPlugin.getRepositoryManager().getRepositoryForTaskUrl(fullUrl); if (connector != null) { connector.openRemoteTask(repositoryUrl, taskId); opened = true; } } if (!opened) { TaskUiUtil.openUrl("Web Browser", "Web Browser", fullUrl); opened = true; } return opened; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/9ad93dc68daa856ee8fdcf1bcc5d97cab2d55edc/TaskUiUtil.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/TaskUiUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1250, 1696, 3305, 2174, 12, 780, 3352, 1489, 16, 514, 15321, 16, 514, 1983, 1489, 13, 288, 202, 202, 6494, 10191, 273, 629, 31, 202, 202, 780, 1640, 273, 4115, 3305, 2174...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1696, 3305, 2174, 12, 780, 3352, 1489, 16, 514, 15321, 16, 514, 1983, 1489, 13, 288, 202, 202, 6494, 10191, 273, 629, 31, 202, 202, 780, 1640, 273, 4115, 3305, 2174...
execute(new PersonalInfoEditting(_user, _life));
try { execute(new PersonalInfoEditting(_user, _life)); } catch (RuntimeException e) { e.printStackTrace(); }
public void editPersonalInfo() { execute(new PersonalInfoEditting(_user, _life)); }
28035 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28035/a98465f7d2fef6d280c0ed8eb035595eaf7e3cf1/Sneer.java/clean/sneer/src/main/sneer/Sneer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3874, 8346, 287, 966, 1435, 288, 202, 202, 8837, 12, 2704, 11573, 287, 966, 4666, 1787, 24899, 1355, 16, 389, 10256, 73, 10019, 202, 97, 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, 225, 202, 482, 918, 3874, 8346, 287, 966, 1435, 288, 202, 202, 8837, 12, 2704, 11573, 287, 966, 4666, 1787, 24899, 1355, 16, 389, 10256, 73, 10019, 202, 97, 2, -100, -100, -100, -100, -100, ...
private void createDrillthroughCreateLinkExpression( )
private void createDrillthroughCreateLinkExpression( Composite container )
private void createDrillthroughCreateLinkExpression( ) { Group group = new Group( displayArea, SWT.NONE ); group.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); group.setText( Messages.getString("HyperlinkBuilder.DrillThroughStep3") ); //$NON-NLS-1$ GridLayout layout = new GridLayout( ); layout.numColumns = 3; group.setLayout( layout ); new Label( group, SWT.NONE ).setText( Messages.getString("HyperlinkBuilder.DrillThroughLinkExpression") ); //$NON-NLS-1$ bookmarkEditor = new Text( group, SWT.BORDER | SWT.READ_ONLY ); bookmarkEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); createExpressionButton( group, bookmarkEditor ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/997fe3f12c3ab07a8443c8931cda3cf4f6ef22da/HyperlinkBuilder.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/HyperlinkBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 8956, 737, 10064, 1684, 2098, 2300, 12, 262, 202, 95, 202, 202, 1114, 1041, 273, 394, 3756, 12, 2562, 5484, 16, 348, 8588, 18, 9826, 11272, 202, 202, 1655, 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, 1152, 918, 752, 8956, 737, 10064, 1684, 2098, 2300, 12, 262, 202, 95, 202, 202, 1114, 1041, 273, 394, 3756, 12, 2562, 5484, 16, 348, 8588, 18, 9826, 11272, 202, 202, 1655, 18, 542,...
static void collect () { if (VM.BuildForEventLogging && VM.EventLoggingEnabled) VM_EventLogger.logGarbageCollectionEvent(); // set running threads context regs so that a scan of its stack // will start at the caller of collect (ie. VM_CollectorThread.run) // VM_Address fp = VM_Magic.getFramePointer(); VM_Address caller_ip = VM_Magic.getReturnAddress(fp); VM_Address caller_fp = VM_Magic.getCallerFramePointer(fp); VM_Thread.getCurrentThread().contextRegisters.setInnermost( caller_ip, caller_fp ); // BEGIN SINGLE GC THREAD SECTION - GC INITIALIZATION double tempStart = 0.0, tempEnd = 0.0; if ( VM_GCLocks.testAndSetInitLock() ) { // Start timers to measure time since GC requested // startTime.start(VM_CollectorThread.gcBarrier.rendezvousStartTime); initTime.start(startTime); GCTime.start(initTime.lastStart); // Set up flags // if (VM.VerifyAssertions) VM.assert( initGCDone == false ); gcInProgress = true; gcDone = false; gcCount++; if (verbose >= 2) VM.sysWriteln("Starting GC ", gcCount); // Set up common workqueue for num VPs participating which varies from GC to GC. VM_GCWorkQueue.workQueue.initialSetup(VM_CollectorThread.numCollectors()); gcInProgress = true; gcDone = false; // invert the mark_flag value, used for marking BootImage objects BOOT_MARK_VALUE = BOOT_MARK_VALUE ^ VM_CommonAllocatorHeader.GC_MARK_BIT_MASK; // Now prepare large space for collection - clears out mark array largeHeap.startCollect(); if (VM.ParanoidGCCheck) toHeap.unprotect(); // this gc thread copies its own VM_Processor, resets processor register & processor // local allocation pointers (before copying first object to ToSpace) gc_initProcessor(); // Some RVM VM_Processors may // be blocked in native C and not participating in a collection. prepareNonParticipatingVPsForGC(); // precopy new VM_Thread objects, updating schedulers threads array // here done by one thread. could divide among multiple collector threads gc_copyThreads(); VM_GCLocks.resetFinishLock(); // for singlethread'ing end of collections // must sync memory changes so GC threads on other processors see above changes // sync before setting initGCDone flag to allow other GC threads to proceed VM_Magic.sync(); rootTime.start(initTime); // set Done flag to allow other GC threads to begin processing initGCDone = true; } // END SINGLE GC THREAD SECTION - GC INITIALIZATION else { // Each GC thread must wait here until initialization is complete // this should be short, if necessary at all, so we spin instead of sysYield // // It is NOT required that all GC threads reach here before any can proceed // tempStart = RENDEZVOUS_WAIT_TIME ? VM_Time.now() : 0.0; while( initGCDone == false ); // spin until initialization finished VM_Magic.isync(); // prevent following inst. from moving infront of waitloop tempEnd = RENDEZVOUS_WAIT_TIME ? VM_Time.now() : 0.0; // each gc thread copies own VM_Processor, resets processor register & processor // local allocation pointers, copies activeThread (itself) and resets workqueue buffers gc_initProcessor(); } // ALL GC THREADS IN PARALLEL // each GC threads acquires ptr to its thread object, for accessing thread local counters // and workqueue pointers. If the thread object needs to be moved, it has been, in copyThreads // above, and its ref in the threads array (in copyThreads) and the activeThread field of the // current processors VM_Processor (in initProcessor) have been updated This means using either // of those fields to get "currentThread" get the copied thread object. // VM_CollectorThread mylocal = VM_Magic.threadAsCollectorThread(VM_Thread.getCurrentThread()); if (RENDEZVOUS_WAIT_TIME) mylocal.rendezvousWaitTime += VM_CollectorThread.gcBarrier.rendezvousRecord(tempStart, tempEnd); // following rendezvous seems to be necessary, we are not sure why. Without it, // some processors proceed into finding roots, before all gc threads have // executed the above gc_initProcessor, and this seems related to the failure. // mylocal.rendezvousWaitTime += VM_CollectorThread.gcBarrier.rendezvous(RENDEZVOUS_TIMES || RENDEZVOUS_WAIT_TIME); // Begin finding roots for this collection. // Root refs are updated and the copied object is enqueued for later scanning. gc_scanProcessor(); // each gc threads scans its own processor object VM_ScanStatics.scanStatics(); // all threads scan JTOC in parallel gc_scanThreads(); // all GC threads process thread objects & scan their stacks // This synchronization is necessary to ensure all stacks have been scanned // and all internal save ip values have been updated before we scan copied // objects. Because if we scan a VM_Method, and then update its code pointer // we can no longer compute old ip offsets for updating saved ip values // // REQUIRED SYNCHRONIZATION - WAIT FOR ALL GC THREADS TO REACH HERE mylocal.rendezvousWaitTime += VM_CollectorThread.gcBarrier.rendezvous(RENDEZVOUS_TIMES || RENDEZVOUS_WAIT_TIME); if (mylocal.gcOrdinal == 1) scanTime.start(rootTime); // each GC thread processes its own work queue until empty if (verbose >= 2) VM.sysWriteln(" Emptying work queue"); gc_emptyWorkQueue(); if (mylocal.gcOrdinal == 1) finalizeTime.start(scanTime); // If counting or timing in VM_GCWorkQueue, save current counter values // if (VM_GCWorkQueue.WORKQUEUE_COUNTS) VM_GCWorkQueue.saveCounters(mylocal); if (VM_GCWorkQueue.MEASURE_WAIT_TIMES || VM_CollectorThread.MEASURE_WAIT_TIMES) VM_GCWorkQueue.saveWaitTimes(mylocal); // If there are not any objects with finalizers skip finalization phases. // Otherwise, one thread scans finalizer list for dead objects and resuscitated. // Then, all threads process objects in parallel. if (VM_Finalizer.existObjectsWithFinalizers()) { /*** The following reset() will wait for previous use of workqueue to finish ie. all threads to leave. So no rendezvous is necessary (we hope) Without the reset, a rendezvous is necessary because some "slow" gc threads may still be in emptyWorkQueue (in VM_GCWorkQueue.getBufferAndWait) and have not seen the completionFlag==true. The following call to reset will reset that flag to false, possibly leaving the slow GC threads stuck. This rendezvous ensures that all threads have left the previous emptyWorkQueue, before doing the reset. (We could make reset smarter, and have it wait until the threadsWaiting count returns to 0, before doing the reset - TODO) One thread scans the hasFinalizer list for dead objects. They are made live again, and put into that threads work queue buffers. ***/ if (mylocal.gcOrdinal == 1) { VM_GCWorkQueue.workQueue.reset(); // reset work queue shared control variables VM_Finalizer.moveToFinalizable(); } // ALL threads have to wait to see if any finalizable objects are found mylocal.rendezvousWaitTime += VM_CollectorThread.gcBarrier.rendezvous(RENDEZVOUS_TIMES || RENDEZVOUS_WAIT_TIME); if (VM_Finalizer.foundFinalizableObject) gc_emptyWorkQueue(); } // end of Finalization Processing if (verbose >= 2) VM.sysWriteln(" Finished finalizer processing"); if (mylocal.gcOrdinal == 1) finishTime.start(finalizeTime); // gcDone flag has been set to false earlier // if ( VM_GCLocks.testAndSetFinishLock() ) { // BEGIN SINGLE GC THREAD SECTION FOR END OF GC // make any access to discarded fromspace impossible if (VM.ParanoidGCCheck) { VM.sysWriteln(" Protecting fromspace"); fromHeap.protect(); toHeap.paranoidScan(fromHeap, false); } // Swap sense of toHeap and fromHeap VM_ContiguousHeap temp = fromHeap; fromHeap = toHeap; toHeap = temp; // toHeap is ready to be used for the next collection toHeap.reset(); // round up current address in fromHeap to allow using efficient zeroPages() fromHeap.roundUpPage(); // notify large space that all live objects marked at this point largeHeap.endCollect(); // The remainder of the current semi-space must be zero'ed before allowing // any allocations. This collector can be compiled to do this in either // of three ways: // - 1 GC threads zeros it all (the executing thread) (BAD !!) // - All threads zero chunks in parallel (the executing thread // determines the per thread regions to be zero'ed // - Zeroing is deferred until processors allocate processor // local chunks, while mutators are running (BEST ??) // if (!ZERO_NURSERY_IN_PARALLEL && !ZERO_CHUNKS_ON_ALLOCATION) { // have one processor (the executing one) do all the zeroing fromHeap.zeroFreeSpace(); } // reset lock for next GC before starting mutators VM_GCLocks.reset(); prepareNonParticipatingVPsForAllocation(); gcInProgress = false; // reset the flag used to make GC threads wait until GC initialization // completed....for the next GC initGCDone = false; VM_Magic.sync(); gcDone = true; // lets spinning GC threads continue } // END OF SINGLE THREAD SECTION else { // other GC threads spin wait until finishing thread completes double start = RENDEZVOUS_WAIT_TIME ? VM_Time.now() : 0.0; while( gcDone == false ); VM_Magic.isync(); // prevent from moving infront of waitloop if (RENDEZVOUS_WAIT_TIME) mylocal.rendezvousWaitTime += VM_CollectorThread.gcBarrier.rendezvousRecord(start, VM_Time.now()); } // ALL GC THREADS IN PARALLEL - AFTER COLLECTION // have each processor begin allocations in next mutator cycle in what // remains of the current chunk acquired for copying objects during GC. // Note. it must be zero'ed // if (PROCESSOR_LOCAL_ALLOCATE) { if (PROCESSOR_LOCAL_MATURE_ALLOCATE) VM_Chunk.swapChunks(VM_Processor.getCurrentProcessor()); else VM_Chunk.resetChunk1(VM_Processor.getCurrentProcessor(), fromHeap, false); } if (ZERO_NURSERY_IN_PARALLEL) fromHeap.zeroFreeSpaceParallel(); // Each GC thread increments adds its wait times for this collection // into its total wait time - for printSummaryStatistics output // if (VM_CollectorThread.MEASURE_WAIT_TIMES) mylocal.incrementWaitTimeTotals(); if (mylocal.gcOrdinal == 1) { finishTime.stop(); GCTime.stop(finishTime.lastStop); } // generate -verbosegc output, done here after zeroing nursery. // only approx. since other gc threads may be zeroing in parallel // this is done by the 1 gc thread that finished the preceeding GC // if (mylocal.gcOrdinal == 1) { updateGCStats(DEFAULT, fromHeap.current().diff(fromHeap.start)); printGCStats(DEFAULT); } return; } // collect
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/fdb83e49fd5329748100ce3648dcbd729e9b8e34/VM_Allocator.java/clean/rvm/src/vm/memoryManagers/watson/semispace/VM_Allocator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 3274, 1832, 288, 430, 261, 7397, 18, 3116, 1290, 1133, 7735, 597, 8251, 18, 1133, 7735, 1526, 13, 225, 8251, 67, 1133, 3328, 18, 1330, 43, 12332, 2532, 1133, 5621, 368, 444, 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, 282, 760, 918, 3274, 1832, 288, 430, 261, 7397, 18, 3116, 1290, 1133, 7735, 597, 8251, 18, 1133, 7735, 1526, 13, 225, 8251, 67, 1133, 3328, 18, 1330, 43, 12332, 2532, 1133, 5621, 368, 444, 3...
log().debug("Walking "+getName()+" for "+getAddress()+" using version "+SnmpSMI.getVersionString(getVersion()));
log().info("Walking "+getName()+" for "+getAddress()+" using version "+SnmpSMI.getVersionString(getVersion()));
public void start() { log().debug("Walking "+getName()+" for "+getAddress()+" using version "+SnmpSMI.getVersionString(getVersion())); super.start(); }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/598c2fc286eabd1d4244fd55331652deb2abc7ff/JoeSnmpWalker.java/clean/opennms-snmp/opennms-snmp-joesnmp/src/main/java/org/opennms/netmgt/snmp/joesnmp/JoeSnmpWalker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 1435, 288, 3639, 613, 7675, 1376, 2932, 9463, 310, 13773, 17994, 1435, 9078, 364, 13773, 588, 1887, 1435, 9078, 1450, 1177, 13773, 10461, 1291, 7303, 45, 18, 588, 1444, 780,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 1435, 288, 3639, 613, 7675, 1376, 2932, 9463, 310, 13773, 17994, 1435, 9078, 364, 13773, 588, 1887, 1435, 9078, 1450, 1177, 13773, 10461, 1291, 7303, 45, 18, 588, 1444, 780,...
public OrganizeImportsAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(getCompilationUnit(fEditor) != null);
public OrganizeImportsAction(IWorkbenchSite site) { super(site); setText(ActionMessages.getString("OrganizeImportsAction.label")); setToolTipText(ActionMessages.getString("OrganizeImportsAction.tooltip")); setDescription(ActionMessages.getString("OrganizeImportsAction.description")); WorkbenchHelp.setHelp(this, IJavaHelpContextIds.ORGANIZE_IMPORTS_ACTION);
public OrganizeImportsAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(getCompilationUnit(fEditor) != null); }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/e2697da91e907b33aa9195a2ba6e54f7af661c9d/OrganizeImportsAction.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8533, 304, 554, 13347, 1803, 12, 5852, 6946, 4858, 13, 288, 202, 202, 2211, 12, 9177, 18, 588, 6946, 4956, 10663, 202, 202, 74, 6946, 33, 4858, 31, 202, 202, 542, 1526, 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, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8533, 304, 554, 13347, 1803, 12, 5852, 6946, 4858, 13, 288, 202, 202, 2211, 12, 9177, 18, 588, 6946, 4956, 10663, 202, 202, 74, 6946, 33, 4858, 31, 202, 202, 542, 1526, 12, ...
if (isInvalid(field) && !filterDescription.hasOptions())
if (BaseConfigurationObject.isInvalid(field) && !filterDescription.hasOptions())
private void configureList( JComboBox list, FilterDescription filterDescription) { String field = filterDescription.getField(); if (isInvalid(field) && !filterDescription.hasOptions()) throw new RuntimeException( "Invalid filterDescription: " + filterDescription); setOptions(filterDescription.getOptions()); }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/19dd1e43b38d7b83a4513a906a601601f10de257/ListFilterWidget.java/clean/src/java/org/ensembl/mart/explorer/ListFilterWidget.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 5068, 682, 12, 565, 804, 22199, 666, 16, 565, 4008, 3291, 1034, 3291, 13, 288, 565, 514, 652, 273, 1034, 3291, 18, 588, 974, 5621, 565, 309, 261, 2171, 1750, 921, 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, 282, 3238, 918, 5068, 682, 12, 565, 804, 22199, 666, 16, 565, 4008, 3291, 1034, 3291, 13, 288, 565, 514, 652, 273, 1034, 3291, 18, 588, 974, 5621, 565, 309, 261, 2171, 1750, 921, 18, 291, ...
FunctionSource functionSource(DebuggableScript fnOrScript) {
private FunctionSource functionSource(DebuggableScript fnOrScript) {
FunctionSource functionSource(DebuggableScript fnOrScript) { return (FunctionSource)functionToSource.get(fnOrScript); }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/e4c74a91b5c4165a9c90cde4d7b2ddd72e81af8d/Dim.java/clean/toolsrc/org/mozilla/javascript/tools/debugger/Dim.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4284, 1830, 445, 1830, 12, 2829, 8455, 3651, 2295, 1162, 3651, 13, 565, 288, 3639, 327, 261, 2083, 1830, 13, 915, 774, 1830, 18, 588, 12, 4293, 1162, 3651, 1769, 565, 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, 377, 4284, 1830, 445, 1830, 12, 2829, 8455, 3651, 2295, 1162, 3651, 13, 565, 288, 3639, 327, 261, 2083, 1830, 13, 915, 774, 1830, 18, 588, 12, 4293, 1162, 3651, 1769, 565, 289, 2, -100, -100...
jj_la1[81] = jj_gen;
jj_la1[83] = jj_gen;
final public void Literal() throws ParseException { /*@bgen(jjtree) Literal */ ASTLiteral jjtn000 = new ASTLiteral(this, JJTLITERAL); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case INTEGER_LITERAL: String intValue = ""; Token t = null; t = jj_consume_token(INTEGER_LITERAL); intValue=t.image; jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage(intValue); break; case FLOATING_POINT_LITERAL: String floatValue = ""; t = jj_consume_token(FLOATING_POINT_LITERAL); floatValue=t.image; jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage(floatValue); break; case CHARACTER_LITERAL: String charValue = ""; t = jj_consume_token(CHARACTER_LITERAL); charValue=t.image; jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage(charValue); break; case STRING_LITERAL: String stringValue = ""; t = jj_consume_token(STRING_LITERAL); stringValue=t.image; jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage(stringValue); break; case FALSE: case TRUE: BooleanLiteral(); break; case NULL: NullLiteral(); break; default: jj_la1[81] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (RuntimeException)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/6b2ea5d38e0b6b4adb468f80aa5e82b2d9884c6d/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 918, 14392, 1435, 1216, 10616, 288, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 14392, 1195, 225, 9183, 6177, 10684, 5088, 3784, 273, 394, 9183, 6177, 12, 2211, 16, 804, 46, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 918, 14392, 1435, 1216, 10616, 288, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 14392, 1195, 225, 9183, 6177, 10684, 5088, 3784, 273, 394, 9183, 6177, 12, 2211, 16, 804, 46, 59...
RubyModule rbModule = this;
RubyModule rbModule = this;
public RubyArray m_class_variables() { RubyArray ary = RubyArray.m_newArray(getRuby()); RubyModule rbModule = this; if (isSingleton()) { rbModule = ((RubyObject) rbModule.getInstanceVar("__atached__")).getClassVarSingleton(); } while (rbModule != null) { if (rbModule.getInstanceVariables() != null) { Iterator iter = rbModule.getInstanceVariables().keySet().iterator(); while (iter.hasNext()) { RubyId id = (RubyId) iter.next(); if (id.isClassId()) { RubyString kval = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(kval).isFalse()) { ary.push(kval); } } } } rbModule = rbModule.getSuperClass(); } return ary; }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 1076, 312, 67, 1106, 67, 7528, 1435, 288, 202, 202, 54, 10340, 1076, 11841, 273, 19817, 1076, 18, 81, 67, 2704, 1076, 12, 588, 54, 10340, 10663, 202, 202, 54, 10340, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 1076, 312, 67, 1106, 67, 7528, 1435, 288, 202, 202, 54, 10340, 1076, 11841, 273, 19817, 1076, 18, 81, 67, 2704, 1076, 12, 588, 54, 10340, 10663, 202, 202, 54, 10340, 31...
for(Iterator handled = exceptionHandled.iterator(); handled.hasNext();){ final PsiType handledType = (PsiType) handled.next();
for(Object aExceptionHandled : exceptionHandled){ final PsiType handledType = (PsiType) aExceptionHandled;
private static void calculateExceptionsThrownForTryStatement(PsiTryStatement tryStatement, PsiElementFactory factory, Set exceptionTypes){ final Set exceptionThrown = new HashSet(10); final PsiCodeBlock tryBlock = tryStatement.getTryBlock(); calculateExceptionsThrownForCodeBlock(tryBlock, exceptionThrown, factory); final Set exceptionHandled = ExceptionUtils.getExceptionTypesHandled(tryStatement); for(Iterator thrown = exceptionThrown.iterator(); thrown.hasNext();){ final PsiType thrownType = (PsiType) thrown.next(); boolean found = false; for(Iterator handled = exceptionHandled.iterator(); handled.hasNext();){ final PsiType handledType = (PsiType) handled.next(); if(handledType.isAssignableFrom(thrownType)){ found = true; break; } } if(!found){ exceptionTypes.add(thrownType); } } final PsiCodeBlock finallyBlock = tryStatement.getFinallyBlock(); if(finallyBlock != null){ calculateExceptionsThrownForCodeBlock(finallyBlock, exceptionTypes, factory); } final PsiCodeBlock[] catchBlocks = tryStatement.getCatchBlocks(); for(int i = 0; i < catchBlocks.length; i++){ calculateExceptionsThrownForCodeBlock(catchBlocks[i], exceptionTypes, factory); } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/e4329a48065fe37b7b5d3d9883a02a38ec8f42fa/ExceptionUtils.java/buggy/plugins/IntentionPowerPak/src/com/siyeh/ipp/exceptions/ExceptionUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4604, 11416, 29591, 1290, 7833, 3406, 12, 52, 7722, 7833, 3406, 775, 3406, 16, 28524, 453, 7722, 1046, 1733, 3272, 16, 28524, 1000, 1520, 2016, 15329, 3639, 727, 1000, 1520,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4604, 11416, 29591, 1290, 7833, 3406, 12, 52, 7722, 7833, 3406, 775, 3406, 16, 28524, 453, 7722, 1046, 1733, 3272, 16, 28524, 1000, 1520, 2016, 15329, 3639, 727, 1000, 1520,...
ResultSet odaResultSet ) throws DataException
ResultSet odaResultSet, IEventHandler eventHandler ) throws DataException
public CachedResultSet( BaseQuery query, IResultClass meta, ResultSet odaResultSet ) throws DataException { this.resultSetPopulator = new ResultSetPopulator( query, meta, this ); resultSetPopulator.populateResultSet( new OdiResultSetWrapper( odaResultSet) ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/83c61e18ec014b0a0d7683b4196d0a84fb37ac77/CachedResultSet.java/buggy/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/transform/CachedResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15771, 13198, 12, 3360, 1138, 843, 16, 467, 1253, 797, 2191, 16, 1082, 202, 13198, 320, 2414, 13198, 262, 1216, 1910, 503, 202, 95, 202, 202, 2211, 18, 2088, 694, 7049, 11775, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15771, 13198, 12, 3360, 1138, 843, 16, 467, 1253, 797, 2191, 16, 1082, 202, 13198, 320, 2414, 13198, 262, 1216, 1910, 503, 202, 95, 202, 202, 2211, 18, 2088, 694, 7049, 11775, ...
public Object fastpath(String name, boolean resulttype, FastpathArg[] args) throws SQLException
public Object fastpath(int fnid, boolean resulttype, FastpathArg[] args) throws SQLException
public Object fastpath(String name, boolean resulttype, FastpathArg[] args) throws SQLException { if (Driver.logDebug) Driver.debug("Fastpath: calling " + name); return fastpath(getID(name), resulttype, args); }
11803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11803/0378a269f3ab3c44e67b14f96414b6ca95263263/Fastpath.java/buggy/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 14469, 12, 780, 508, 16, 1250, 563, 723, 16, 9545, 803, 4117, 8526, 833, 13, 1216, 6483, 202, 95, 202, 202, 430, 261, 4668, 18, 1330, 2829, 13, 1082, 202, 4668, 18, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 14469, 12, 780, 508, 16, 1250, 563, 723, 16, 9545, 803, 4117, 8526, 833, 13, 1216, 6483, 202, 95, 202, 202, 430, 261, 4668, 18, 1330, 2829, 13, 1082, 202, 4668, 18, 41...
Queue txQueue = session.getTxQueue();
CommandQueue txQueue = session.getTxQueue();
public void run () { try { while (true) { Command cmd = null; Queue txQueue = session.getTxQueue(); // removeCommand() will block until a command is available. try { cmd = txQueue.removeCommand(); } catch (InterruptedException e) { // signal by the session of time to die. if (session.getChannelOutputStream() == null) { throw new IOException(); } //e.printStackTrace(); } if (cmd != null) { // Give the command a token and increment. cmd.setToken(token++); // shove in the pipe String str = cmd.toString(); OutputStream out = session.getChannelOutputStream(); out.write(str.getBytes()); out.flush(); // Move to the RxQueue only if we have // a valid token, this is to permit input(HACK!) // or commands that do not want to wait for responses. if (cmd.getToken() > 0) { Queue rxQueue = session.getRxQueue(); rxQueue.addCommand(cmd); } } } } catch (IOException e) { //e.printStackTrace(); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/1354f9e661fc35bfd0d47664f5c71e5127b46a99/TxThread.java/buggy/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/TxThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1832, 288, 202, 202, 698, 288, 1082, 202, 17523, 261, 3767, 13, 288, 9506, 202, 2189, 1797, 273, 446, 31, 9506, 202, 3183, 2229, 3183, 273, 1339, 18, 588, 4188, 318...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 1832, 288, 202, 202, 698, 288, 1082, 202, 17523, 261, 3767, 13, 288, 9506, 202, 2189, 1797, 273, 446, 31, 9506, 202, 3183, 2229, 3183, 273, 1339, 18, 588, 4188, 318...
menuItem.setImage(PlatformUI.getWorkbench().getSharedImages().getImage( ISharedImages.IMG_DEF_VIEW));
Image tbImage = WorkbenchImages.getImage(IWorkbenchGraphicConstants.IMG_ETOOL_NEW_FASTVIEW); menuItem.setImage(tbImage);
protected void createChildControls() { int newSide = getSide(); int orientation = Geometry.isHorizontal(newSide) ? SWT.HORIZONTAL : SWT.VERTICAL; // Create a ControlLayout apropriate for the new orientation CellLayout controlLayout; if (Geometry.isHorizontal(newSide)) { controlLayout = new CellLayout(0) .setMargins(0, 0) .setDefaultRow(Row.growing()) .setDefaultColumn(Row.fixed()) .setColumn(1, Row.growing()); } else { controlLayout = new CellLayout(1) .setMargins(0, 3) .setDefaultColumn(Row.growing()) .setDefaultRow(Row.fixed()) .setRow(1, Row.growing()); } // Set up the composite for the new orientation fvbComposite.setLayout(controlLayout); // Create a toolbar to show an 'Add FastView' menu 'button' menuTB = new ToolBar(fvbComposite, SWT.FLAT | orientation); // Construct an item to act as a 'menu button' (a la the PerspectiveSwitcher) menuItem = new ToolItem(menuTB, SWT.PUSH, 0); menuItem.setImage(PlatformUI.getWorkbench().getSharedImages().getImage( ISharedImages.IMG_DEF_VIEW)); String menuTip = WorkbenchMessages.FastViewBar_0; menuItem.setToolTipText(menuTip); //new ToolItem(menuTB, SWT.SEPARATOR, 1); // Now that the ToolBar is populated calculate its size... Point size = menuTB.computeSize(SWT.DEFAULT, SWT.DEFAULT, true); menuTB.setBounds(0, 0, size.x, size.y); // Bring up the 'Add Fast View' menu on a left -or- right button click // Right click (context menu) menuItem.addListener(SWT.MenuDetect, addMenuListener); menuTB.addListener(SWT.MenuDetect, addMenuListener); // Left Click... menuItem.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { Rectangle bb = DragUtil.getDisplayBounds(menuTB); showAddFastViewPopup(new Point(bb.x,bb.y+bb.height)); } public void widgetDefaultSelected(SelectionEvent e) { } }); // try to get the layout correct... toolBarData = new CellData(); toolBarData.align(SWT.FILL, SWT.FILL); menuTB.setLayoutData(toolBarData); // Construct the ToolBar containing the 'Fast' views fastViewBar = new ToolBarManager(SWT.FLAT | SWT.WRAP | orientation); fastViewBar.add(new ShowFastViewContribution(window)); fastViewBar.createControl(fvbComposite); getToolBar().addListener(SWT.MenuDetect, menuListener); IDragOverListener fastViewDragTarget = new IDragOverListener() { public IDropTarget drag(Control currentControl, Object draggedObject, Point position, Rectangle dragRectangle) { ToolItem targetItem = getToolItem(position); if (draggedObject instanceof ViewPane) { ViewPane pane = (ViewPane) draggedObject; // Can't drag views between windows if (pane.getWorkbenchWindow() != window) { return null; } List newList = new ArrayList(1); newList.add(draggedObject); return createDropTarget(newList, targetItem); } if (draggedObject instanceof ViewStack) { ViewStack folder = (ViewStack) draggedObject; if (folder.getWorkbenchWindow() != window) { return null; } List viewList = new ArrayList(folder.getItemCount()); LayoutPart[] children = folder.getChildren(); for (int idx = 0; idx < children.length; idx++) { if (!(children[idx] instanceof PartPlaceholder)) { viewList.add(children[idx]); } } return createDropTarget(viewList, targetItem); } return null; } }; toolBarData = new CellData(); toolBarData.align(SWT.FILL, SWT.FILL); getToolBar().setLayoutData(toolBarData); PresentationUtil.addDragListener(getToolBar(), dragListener); DragUtil.addDragTarget(getControl(), fastViewDragTarget); update(true); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/a16d46abd361b08651223399a25fc4355ba5e78f/FastViewBar.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/FastViewBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 752, 1763, 16795, 1435, 288, 3639, 509, 394, 8895, 273, 1322, 831, 5621, 3639, 509, 9820, 273, 8344, 18, 291, 14457, 12, 2704, 8895, 13, 692, 348, 8588, 18, 44, 20344, 7734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 1763, 16795, 1435, 288, 3639, 509, 394, 8895, 273, 1322, 831, 5621, 3639, 509, 9820, 273, 8344, 18, 291, 14457, 12, 2704, 8895, 13, 692, 348, 8588, 18, 44, 20344, 7734, ...
m_trapHandler = new TrapHandler(); m_trapHandler.setTrapdConfig(mockTrapdConfig); m_trapHandler.setEventManager(m_eventMgr); m_trapHandler.init(); m_trapHandler.start(); }
m_trapHandler = new TrapHandler(); m_trapHandler.setTrapdConfig(mockTrapdConfig); m_trapHandler.setEventManager(m_eventMgr); m_trapHandler.init(); m_trapHandler.start(); }
protected void setUpTrapHandler(boolean newSuspectOnTrap) { MockTrapdConfig mockTrapdConfig = new MockTrapdConfig(); mockTrapdConfig.setSnmpTrapPort(m_port); mockTrapdConfig.setNewSuspectOnTrap(newSuspectOnTrap); m_trapHandler = new TrapHandler(); m_trapHandler.setTrapdConfig(mockTrapdConfig); m_trapHandler.setEventManager(m_eventMgr); m_trapHandler.init(); m_trapHandler.start(); }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/f8a7ac955940d4193c7c67c228bcbee9918c8141/TrapHandlerTest.java/buggy/opennms-services/src/test/java/org/opennms/netmgt/trapd/TrapHandlerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24292, 56, 1266, 1503, 12, 6494, 30826, 407, 1181, 1398, 56, 1266, 13, 288, 3639, 7867, 56, 1266, 72, 809, 5416, 56, 1266, 72, 809, 273, 394, 7867, 56, 1266, 72, 809, 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, 377, 4750, 918, 24292, 56, 1266, 1503, 12, 6494, 30826, 407, 1181, 1398, 56, 1266, 13, 288, 3639, 7867, 56, 1266, 72, 809, 5416, 56, 1266, 72, 809, 273, 394, 7867, 56, 1266, 72, 809, 5621, ...
Set directories = new HashSet();
final Set directories = new HashSet();
protected final Set getParentDirs(File[] aFiles) { Set directories = new HashSet(); for (int i = 0; i < aFiles.length; i++) { File file = aFiles[i].getAbsoluteFile(); if (file.getName().endsWith(".java")) { File dir = file.getParentFile(); directories.add(dir); // duplicates are handled automatically } } return directories; }
31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/65277d30422d758d9a6195fac042e239131942ec/PackageHtmlCheck.java/clean/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/PackageHtmlCheck.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 727, 1000, 5089, 9872, 12, 812, 8526, 279, 2697, 13, 565, 288, 3639, 727, 1000, 6402, 273, 394, 6847, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 279, 2697, 18, 2469, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 1000, 5089, 9872, 12, 812, 8526, 279, 2697, 13, 565, 288, 3639, 727, 1000, 6402, 273, 394, 6847, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 279, 2697, 18, 2469, ...
content = convertFile(source, content);
if ("page".equals(type) || ("plain".equals(type)) || ("XMLTemplate".equals(type))) { content = convertFile(source, content); }
private void importResource(String source, String destination, String type, String user, String group, String access, Hashtable properties, String launcherStartClass, Vector writtenFilenames, Vector fileCodes) { // print out the information for shell-users m_report.addString("Importing " + destination + " "); boolean success = true; byte[] content = null; String fullname = null; try { if (source != null){ content = getFileBytes(source); // change the filecontent for encoding if necessary content = convertFile(source, content); } // set invalid files to type compatible_plain type = fitFileType(m_importPath + destination, content, type, properties); CmsResource res = m_cms.importResource(source, destination, type, user, group, access, properties, launcherStartClass, content, m_importPath); if(res != null){ fullname = res.getAbsolutePath(); if(C_TYPE_PAGE_NAME.equals(type)){ m_importedPages.add(fullname); } } m_report.addString("OK"); m_report.addSeperator(0); } catch (Exception exc) { // an error while importing the file success = false; m_report.addString("Error: " + exc.toString() + Utils.getStackTrace(exc)); m_report.addSeperator(0); try { // Sleep some time after an error so that the report output has a chance to keep up Thread.sleep(1000); } catch (Exception e) {}; } byte[] digestContent = {0}; if (content != null) { digestContent = m_digest.digest(content); } if (success && (fullname != null)){ if (writtenFilenames != null){ writtenFilenames.addElement(fullname); } if (fileCodes != null){ fileCodes.addElement(new String(digestContent)); } }}
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/0f3fd3bbb53a2edab84522dfdfac6c35df01575f/CmsImport.java/clean/src/com/opencms/file/CmsImport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 1930, 1420, 12, 780, 1084, 16, 514, 2929, 16, 514, 618, 16, 514, 729, 16, 514, 1041, 16, 514, 2006, 16, 18559, 1790, 16, 514, 26618, 1685, 797, 16, 5589, 5941, 25579, 6809, 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, 3238, 918, 1930, 1420, 12, 780, 1084, 16, 514, 2929, 16, 514, 618, 16, 514, 729, 16, 514, 1041, 16, 514, 2006, 16, 18559, 1790, 16, 514, 26618, 1685, 797, 16, 5589, 5941, 25579, 6809, 16, ...
if (children[outIndex].uri != -1) {
if (children[outIndex].uri != StringPool.EMPTY_STRING) {
public int validateContent(QName children[], int offset, int length) throws Exception { // must match order if (fOrdered) { int inIndex = 0; for (int outIndex = 0; outIndex < length; outIndex++) { // ignore mixed text final QName curChild = children[offset + outIndex]; if (curChild.localpart == -1) { continue; } // element must match int type = fChildrenType[inIndex]; if (type == XMLContentSpec.CONTENTSPECNODE_LEAF) { if (fDTD) { if (fChildren[inIndex].rawname != children[offset + outIndex].rawname) { return outIndex; } } else { if (fChildren[inIndex].uri != children[offset + outIndex].uri && fChildren[inIndex].localpart != children[offset + outIndex].localpart) { return outIndex; } } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY) { int uri = fChildren[inIndex].uri; if (uri != -1 && uri != children[outIndex].uri) { return outIndex; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_LOCAL) { if (children[outIndex].uri != -1) { return outIndex; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_OTHER) { if (fChildren[inIndex].uri == children[outIndex].uri) { return outIndex; } } // advance index inIndex++; } } // can appear in any order else { for (int outIndex = 0; outIndex < length; outIndex++) { // Get the current child out of the source index final QName curChild = children[offset + outIndex]; // If its PCDATA, then we just accept that if (curChild.localpart == -1) continue; // And try to find it in our list int inIndex = 0; for (; inIndex < fCount; inIndex++) { int type = fChildrenType[inIndex]; if (type == XMLContentSpec.CONTENTSPECNODE_LEAF) { if (fDTD) { if (curChild.rawname == fChildren[inIndex].rawname) { break; } } else { if (curChild.uri == fChildren[inIndex].uri && curChild.localpart == fChildren[inIndex].localpart) break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY) { int uri = fChildren[inIndex].uri; if (uri == -1 || uri == children[outIndex].uri) { break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_LOCAL) { if (children[outIndex].uri == -1) { break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_OTHER) { if (fChildren[inIndex].uri != children[outIndex].uri) { break; } } // REVISIT: What about checking for multiple ANY matches? // The content model ambiguity *could* be checked // by the caller before constructing the mixed // content model. } // We did not find this one, so the validation failed if (inIndex == fCount) return outIndex; } } // Everything seems to be in order, so return success return -1; }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/0622c6defe56e9e4c66eb469c351d4ff12fbc046/MixedContentModel.java/buggy/src/org/apache/xerces/validators/common/MixedContentModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1954, 1350, 12, 13688, 2325, 63, 6487, 509, 1384, 16, 509, 769, 13, 540, 1216, 1185, 288, 7734, 368, 1297, 845, 1353, 3639, 309, 261, 74, 16756, 13, 288, 5411, 509, 316, 1016...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1954, 1350, 12, 13688, 2325, 63, 6487, 509, 1384, 16, 509, 769, 13, 540, 1216, 1185, 288, 7734, 368, 1297, 845, 1353, 3639, 309, 261, 74, 16756, 13, 288, 5411, 509, 316, 1016...
return parseURNGet(requestLine.substring(1));
int slashes = requestLine.indexOf(" return parseURNGet(requestLine.substring(slashes+1));
private HttpRequestLine parseMalformedURNGet(final String requestLine) throws IOException { return parseURNGet(requestLine.substring(1)); }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/7664a81c038cce799d0a5ad783f1f9245e87c06b/UploadManager.java/buggy/components/gnutella-core/src/main/java/com/limegroup/gnutella/UploadManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 14069, 1670, 1109, 18695, 8521, 967, 12, 6385, 514, 590, 1670, 13, 3196, 202, 15069, 1860, 288, 202, 202, 2463, 1109, 8521, 967, 12, 2293, 1670, 18, 28023, 12, 21, 10019, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 14069, 1670, 1109, 18695, 8521, 967, 12, 6385, 514, 590, 1670, 13, 3196, 202, 15069, 1860, 288, 202, 202, 2463, 1109, 8521, 967, 12, 2293, 1670, 18, 28023, 12, 21, 10019, 202, ...
public void testCalculateStringWithNestedGroups() throws Exception { NewOrderCross noc = new NewOrderCross(); noc.getHeader().setString(BeginString.FIELD, FixVersions.BEGINSTRING_FIX44); noc.getHeader().setInt(MsgSeqNum.FIELD, 5); noc.getHeader().setString(SenderCompID.FIELD, "sender"); noc.getHeader().setString(TargetCompID.FIELD, "target"); noc.getHeader().setString(SendingTime.FIELD, "20060319-09:08:20.881"); noc.setString(SecurityIDSource.FIELD, SecurityIDSource.EXCHANGE_SYMBOL); noc.setChar(OrdType.FIELD, OrdType.LIMIT); noc.setDouble(Price.FIELD, 9.00); noc.setString(SecurityID.FIELD, "ABC"); noc.setString(Symbol.FIELD, "ABC"); noc.setString(TransactTime.FIELD, "20060319-09:08:19"); noc.setString(CrossID.FIELD, "184214"); noc.setInt(CrossType.FIELD, CrossType.CROSS_TRADE_WHICH_IS_EXECUTED_PARTIALLY_AND_THE_REST_IS_CANCELLED); noc.setInt(CrossPrioritization.FIELD, CrossPrioritization.NONE); NewOrderCross.NoSides side = new NewOrderCross.NoSides(); side.setChar(Side.FIELD, Side.BUY); side.setDouble(OrderQty.FIELD, 9); NewOrderCross.NoSides.NoPartyIDs party = new NewOrderCross.NoSides.NoPartyIDs(); party.setString(PartyID.FIELD, "8"); party.setChar(PartyIDSource.FIELD, PartyIDSource.PROPRIETARY_CUSTOM_CODE); party.setInt(PartyRole.FIELD, PartyRole.CLEARING_FIRM); side.addGroup(party); party.setString(PartyID.FIELD, "AAA35777"); party.setChar(PartyIDSource.FIELD, PartyIDSource.PROPRIETARY_CUSTOM_CODE); party.setInt(PartyRole.FIELD, PartyRole.CLIENT_ID); side.addGroup(party); noc.addGroup(side); side.clear(); side.setChar(Side.FIELD, Side.SELL); side.setDouble(OrderQty.FIELD, 9); party.clear(); party.setString(PartyID.FIELD, "8"); party.setChar(PartyIDSource.FIELD, PartyIDSource.PROPRIETARY_CUSTOM_CODE); party.setInt(PartyRole.FIELD, PartyRole.CLEARING_FIRM); side.addGroup(party); party.clear(); party.setString(PartyID.FIELD, "aaa"); party.setChar(PartyIDSource.FIELD, PartyIDSource.PROPRIETARY_CUSTOM_CODE); party.setInt(PartyRole.FIELD, PartyRole.CLIENT_ID); side.addGroup(party); noc.addGroup(side); String expectedMessage = "8=FIX.4.49=24735=s34=549=sender52=20060319-09:08:20.881" + "56=target22=840=244=948=ABC55=ABC60=20060319-09:08:19548=184214549=2" + "550=0552=254=1453=2448=8447=D452=4448=AAA35777447=D452=338=954=2" + "453=2448=8447=D452=4448=aaa447=D452=338=910=056"; assertEquals("wrong message", expectedMessage, noc.toString()); }
52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/cef58b9915bca1229085d00c3cf25481dfa7b62f/MessageTest.java/buggy/test/quickfix/MessageTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 8695, 780, 1190, 8649, 3621, 1435, 1216, 1185, 288, 3639, 1166, 2448, 13941, 30601, 273, 394, 1166, 2448, 13941, 5621, 3639, 30601, 18, 588, 1864, 7675, 542, 780, 12, 8149,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8695, 780, 1190, 8649, 3621, 1435, 1216, 1185, 288, 3639, 1166, 2448, 13941, 30601, 273, 394, 1166, 2448, 13941, 5621, 3639, 30601, 18, 588, 1864, 7675, 542, 780, 12, 8149,...
if(kommando.equals(res.getString("EXIT"))) {
if(kommando.equals(res.getString("file.exit"))) {
public void actionPerformed(ActionEvent ae) { String kommando = ((JMenuItem)ae.getSource()).getText(); if(kommando.equals(res.getString("EXIT"))) { Rectangle rv = new Rectangle(); frame.getBounds(rv); try { InputStream in = new FileInputStream(System.getProperty("user.home") + "/.yamm/.config"); props.load(in); in.close(); } catch (IOException propsioe) { System.err.println(propsioe); } props.setProperty("mainx", new Integer(rv.x).toString()); props.setProperty("mainy", new Integer(rv.y).toString()); props.setProperty("mainw", new Integer(rv.width).toString()); props.setProperty("mainh", new Integer(rv.height).toString());// props.setProperty("vsplit", new Integer(((JSplitPane)frame.SPane2).getDividerLocation()).toString());// props.setProperty("hsplit", new Integer(((JSplitPane)frame.SPane).getDividerLocation()).toString()); try { OutputStream out = new FileOutputStream(System.getProperty("user.home") + "/.yamm/.config"); props.store(out, "YAMM configuration file"); out.close(); } catch(IOException propsioe) { System.err.println(propsioe); } frame.dispose(); System.exit(0); } else if(kommando.equals(res.getString("HELP_ABOUTYOU"))) { String host = null, ipaddress = null; try { InetAddress myInetaddr = InetAddress.getLocalHost(); ipaddress = myInetaddr.getHostAddress(); host = myInetaddr.getHostName(); } catch (UnknownHostException uhe) {}; if (ipaddress == null) ipaddress = "unknown"; if (host == null) host = "unknown"; new MsgDialog(null, res.getString("HELP_ABOUTYOU"), res.getString("OS") + " : " + System.getProperty("os.name") + " " + System.getProperty("os.version") + "\n" + res.getString("CPU") + " : " + System.getProperty("os.arch") + "\n" + res.getString("IPADDRESS") + " : " + ipaddress + "\n" + res.getString("HOST") + " : " + host + "\n" + res.getString("JVERSION") + " : " + System.getProperty("java.version") + "\n" + res.getString("JVENDOR") + " : " + System.getProperty("java.vendor") + "\n" + res.getString("JVENDHOME") + " : " + System.getProperty("java.vendor.url") + "\n" + res.getString("USERNAME") + " : " + System.getProperty("user.name") + "\n" + res.getString("USERHOME") + " : " + System.getProperty("user.home")); } else if(kommando.equals(res.getString("HELP_ABOUT"))) { new MsgDialog(null, res.getString("HELP_ABOUT"), "Copyright (C) 1999 Fredrik Ehnbom\n" + "YAMM-version: " + YAMM.yammVersion + "\n" + "Compiledate: " + YAMM.compDate + "\n" + "Homepage: http://www.gjt.org/fredde/\n" + "E-mail: <fredde@gjt.org>\n" + "\n" + "Most icons are made or based on icons made\n" + "by Tuomas Kuosmanen <tigert@gimp.org>"); } else if(kommando.equals(res.getString("LICENSE"))) { new MsgDialog(null, res.getString("LICENSE"), "Yet Another Mail Manager " + YAMM.yammVersion + " E-Mail Client\nCopyright (C) 1999 Fredrik Ehnbom\n\nThis program is free software; you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; either version 2 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program; if not, write to the Free Software\nFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA", MsgDialog.OK, JLabel.LEFT); } else if(kommando.equals(res.getString("SETTINGS"))) { new Options(frame); } else if(kommando.equals(res.getString("NEW"))) { new YAMMWrite(); } else if(kommando.equals(res.getString("VSOURCE"))) { int test = ((JTable)frame.mailList).getSelectedRow(); if(test != -1 && test <= frame.listOfMails.size()) { int i = 0; while(i<4) { if(((JTable)frame.mailList).getColumnName(i).equals("#")) { break; } i++; } int msg = Integer.parseInt(((JTable)frame.mailList).getValueAt(((JTable)frame.mailList).getSelectedRow(), i).toString()); if(msg != -1) Mailbox.viewSource(frame.selectedbox, msg, new sourceViewer().jtarea); } } else if(kommando.equals(res.getString("SAVEAS"))) { int test = ((JTable)frame.mailList).getSelectedRow(); if(test != -1 && test <= frame.listOfMails.size()) { JFileChooser jfs = new JFileChooser(); jfs.setFileSelectionMode(JFileChooser.FILES_ONLY); jfs.setMultiSelectionEnabled(false); jfs.setFileFilter(new filter()); jfs.setSelectedFile(new File("mail.html")); int ret = jfs.showSaveDialog(frame); if(ret == JFileChooser.APPROVE_OPTION) { new File(System.getProperty("user.home") + "/.yamm/tmp/" + frame.mailName + ".html").renameTo(jfs.getSelectedFile()); } } } }
3248 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3248/167e737d6ea0b48f9bc605902017dd18685e1a8d/mainMenu.java/buggy/gui/main/mainMenu.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 14221, 13, 288, 1377, 514, 417, 362, 889, 83, 273, 14015, 46, 12958, 13, 8906, 18, 588, 1830, 1435, 2934, 588, 1528, 5621, 1377, 309, 12, 79, 362, 889,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14221, 13, 288, 1377, 514, 417, 362, 889, 83, 273, 14015, 46, 12958, 13, 8906, 18, 588, 1830, 1435, 2934, 588, 1528, 5621, 1377, 309, 12, 79, 362, 889,...
String doc = "<a>foo</a>";
String doc = "<a x='y'>food</a>";
public void testAStream() throws XMLStreamException { String doc = "<a>foo</a>"; StringReader sr = new StringReader(doc); final XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(sr); dumpReader(reader); }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/37fa2a8fe6c98a08f475db43f514a9e3f14c2c1e/MarshalTests.java/buggy/v2/test/src/drt/drtcases/MarshalTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 37, 1228, 1435, 1216, 21526, 565, 288, 3639, 514, 997, 273, 3532, 69, 619, 2218, 93, 29256, 617, 369, 1757, 69, 2984, 31, 3639, 26227, 9133, 273, 394, 26227, 12, 2434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 37, 1228, 1435, 1216, 21526, 565, 288, 3639, 514, 997, 273, 3532, 69, 619, 2218, 93, 29256, 617, 369, 1757, 69, 2984, 31, 3639, 26227, 9133, 273, 394, 26227, 12, 2434, ...
if(isStreaming()) {
if (isStreaming()) {
public Object getTransformedMessage() throws TransformerException { if(isStreaming()) { return message.getAdapter(); } if (transformedMessage == null) { UMOTransformer tran = endpoint.getTransformer(); if (tran != null) { transformedMessage = tran.transform(message.getPayload()); } else { transformedMessage = message.getPayload(); } } return transformedMessage; }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/2aea4d41675cd6cec0e26049bc35ab4f5ff8e4f2/MuleEvent.java/clean/mule/src/java/org/mule/impl/MuleEvent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 336, 4059, 329, 1079, 1435, 1216, 21684, 565, 288, 3639, 309, 261, 291, 15973, 10756, 288, 5411, 327, 883, 18, 588, 4216, 5621, 3639, 289, 3639, 309, 261, 6547, 329, 1079, 422...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 336, 4059, 329, 1079, 1435, 1216, 21684, 565, 288, 3639, 309, 261, 291, 15973, 10756, 288, 5411, 327, 883, 18, 588, 4216, 5621, 3639, 289, 3639, 309, 261, 6547, 329, 1079, 422...
DFSFileInfo info[] = dfs.listFiles(getPath(f));
DFSFileInfo info[] = dfs.listPaths(getPath(f));
public long getLength(File f) throws IOException { if (f instanceof DFSFile) { return ((DFSFile)f).length(); } DFSFileInfo info[] = dfs.listFiles(getPath(f)); return info[0].getLen(); }
50331 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50331/ee01fef4b4fb82c7492a4a747793839a4d14cd39/DistributedFileSystem.java/buggy/src/java/org/apache/hadoop/dfs/DistributedFileSystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1525, 9888, 12, 812, 284, 13, 1216, 1860, 288, 3639, 309, 261, 74, 1276, 23872, 812, 13, 288, 1850, 327, 14015, 31999, 812, 13, 74, 2934, 2469, 5621, 3639, 289, 3639, 23872, 11995, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1525, 9888, 12, 812, 284, 13, 1216, 1860, 288, 3639, 309, 261, 74, 1276, 23872, 812, 13, 288, 1850, 327, 14015, 31999, 812, 13, 74, 2934, 2469, 5621, 3639, 289, 3639, 23872, 11995, ...
if(path != null) { assertEquals(assertID, path, actualPath); }
if (path != null) { assertEquals(assertID, path, actualPath); }
public void assertURIEquals(String assertID, String scheme, String path, String host, String file, String name, String query, String fragment, Boolean isAbsolute, String actual) { // // URI must be non-null assertNotNull(assertID, actual); String uri = actual; int lastPound = actual.lastIndexOf("#"); String actualFragment = ""; if(lastPound != -1) { // // substring before pound // uri = actual.substring(0,lastPound); actualFragment = actual.substring(lastPound+1); } if(fragment != null) assertEquals(assertID,fragment, actualFragment); int lastQuestion = uri.lastIndexOf("?"); String actualQuery = ""; if(lastQuestion != -1) { // // substring before pound // uri = actual.substring(0,lastQuestion); actualQuery = actual.substring(lastQuestion+1); } if(query != null) assertEquals(assertID, query, actualQuery); int firstColon = uri.indexOf(":"); int firstSlash = uri.indexOf("/"); String actualPath = uri; String actualScheme = ""; if(firstColon != -1 && firstColon < firstSlash) { actualScheme = uri.substring(0,firstColon); actualPath = uri.substring(firstColon + 1); } if(scheme != null) { assertEquals(assertID, scheme, actualScheme); } if(path != null) { assertEquals(assertID, path, actualPath); } if(host != null) { String actualHost = ""; if(actualPath.startsWith("//")) { int termSlash = actualPath.indexOf("/",2); actualHost = actualPath.substring(0,termSlash); } assertEquals(assertID, host, actualHost); } String actualFile = actualPath; if(file != null || name != null) { int finalSlash = actualPath.lastIndexOf("/"); if(finalSlash != -1) { actualFile = actualPath.substring(finalSlash+1); } if (file != null) { assertEquals(assertID, file, actualFile); } } if(name != null) { String actualName = actualFile; int finalPeriod = actualFile.lastIndexOf("."); if(finalPeriod != -1) { actualName = actualFile.substring(0, finalPeriod); } assertEquals(assertID, name, actualName); } if(isAbsolute != null) { // // Jar URL's will have any actual path like file:/c:/somedrive... assertEquals(assertID, isAbsolute.booleanValue(), actualPath.startsWith("/") || actualPath.startsWith("file:/")); } }
54650 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54650/1c337c060f06f2e58a7fb72c742255c663809b9c/DOMTestCase.java/clean/java/org/w3c/domts/DOMTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1815, 3098, 8867, 12, 780, 1815, 734, 16, 514, 4355, 16, 514, 589, 16, 514, 1479, 16, 514, 585, 16, 514, 508, 16, 514, 843, 16, 514, 5481, 16, 3411, 20082, 16, 514, 3214, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1815, 3098, 8867, 12, 780, 1815, 734, 16, 514, 4355, 16, 514, 589, 16, 514, 1479, 16, 514, 585, 16, 514, 508, 16, 514, 843, 16, 514, 5481, 16, 3411, 20082, 16, 514, 3214, ...
public static double[][] squnch(double[][] matrix){
public static double[][] squnch(double[][] matrix, double[][] result){
public static double[][] squnch(double[][] matrix){ int numRows = numFullRows(matrix); int numColumns = numFullColumns(matrix); if (numRows==0 || numColumns==0) return null; double[][] result = new double[numRows][numColumns]; //flip columns for (int i=0; i<numColumns; i++) { for (int j=0; j<numRows; j++) { result[i][numRows - j - 1]=matrix[i][j]; } } //flip rows for (int i=0; i<numColumns/2; i++) { for (int j=0; j<numRows; j++) { double t = result[numColumns-i-1][j]; result[numColumns-i-1][j]=result[i][j]; result[i][j] = t; } } return result; }
57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/f2a5ece689b0fe22a409c5c1b478caa4694a391f/Double2DArray.java/buggy/trunk/Mesquite Project/Source/mesquite/lib/Double2DArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1645, 63, 6362, 65, 4744, 4384, 12, 9056, 63, 6362, 65, 3148, 15329, 202, 202, 474, 12934, 273, 818, 5080, 4300, 12, 5667, 1769, 202, 202, 474, 30109, 273, 818, 5080, 338...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1645, 63, 6362, 65, 4744, 4384, 12, 9056, 63, 6362, 65, 3148, 15329, 202, 202, 474, 12934, 273, 818, 5080, 4300, 12, 5667, 1769, 202, 202, 474, 30109, 273, 818, 5080, 338...
bugTreeSourceViewSplitter = new javax.swing.JSplitPane();
bugTreeBugDetailsSplitter = new javax.swing.JSplitPane();
private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; consoleSplitter = new javax.swing.JSplitPane(); navigatorViewSplitter = new javax.swing.JSplitPane(); navigatorScrollPane = new javax.swing.JScrollPane(); navigatorTree = new javax.swing.JTree(); viewPanel = new javax.swing.JPanel(); emptyPanel = new javax.swing.JPanel(); reportPanel = new javax.swing.JPanel(); editProjectPanel = new javax.swing.JPanel(); jarFileLabel = new javax.swing.JLabel(); jarNameTextField = new javax.swing.JTextField(); addJarButton = new javax.swing.JButton(); jarFileListLabel = new javax.swing.JLabel(); sourceDirLabel = new javax.swing.JLabel(); srcDirTextField = new javax.swing.JTextField(); addSourceDirButton = new javax.swing.JButton(); sourceDirListLabel = new javax.swing.JLabel(); removeJarButton = new javax.swing.JButton(); removeSrcDirButton = new javax.swing.JButton(); jSeparator1 = new javax.swing.JSeparator(); browseJarButton = new javax.swing.JButton(); browseSrcDirButton = new javax.swing.JButton(); editProjectLabel = new javax.swing.JLabel(); jSeparator2 = new javax.swing.JSeparator(); findBugsButton = new javax.swing.JButton(); jSeparator4 = new javax.swing.JSeparator(); jarFileListScrollPane = new javax.swing.JScrollPane(); jarFileList = new javax.swing.JList(); sourceDirListScrollPane = new javax.swing.JScrollPane(); sourceDirList = new javax.swing.JList(); bugTreePanel = new javax.swing.JPanel(); groupByChooser = new javax.swing.JComboBox(); groupByLabel = new javax.swing.JLabel(); bugTreeSourceViewSplitter = new javax.swing.JSplitPane(); bugTreeScrollPane = new javax.swing.JScrollPane(); bugTree = new javax.swing.JTree(); sourceTextAreaScrollPane = new javax.swing.JScrollPane(); sourceTextArea = new javax.swing.JTextArea(); consoleScrollPane = new javax.swing.JScrollPane(); consoleMessageArea = new javax.swing.JTextArea(); theMenuBar = new javax.swing.JMenuBar(); fileMenu = new javax.swing.JMenu(); newProjectItem = new javax.swing.JMenuItem(); openProjectItem = new javax.swing.JMenuItem(); saveProjectItem = new javax.swing.JMenuItem(); closeProjectItem = new javax.swing.JMenuItem(); jSeparator3 = new javax.swing.JSeparator(); exitItem = new javax.swing.JMenuItem(); viewMenu = new javax.swing.JMenu(); viewConsoleItem = new javax.swing.JCheckBoxMenuItem(); helpMenu = new javax.swing.JMenu(); aboutItem = new javax.swing.JMenuItem(); setTitle("FindBugs"); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { exitForm(evt); } public void windowOpened(java.awt.event.WindowEvent evt) { formWindowOpened(evt); } }); consoleSplitter.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); consoleSplitter.setResizeWeight(1.0); consoleSplitter.setOneTouchExpandable(true); consoleSplitter.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { consoleSplitterPropertyChange(evt); } }); navigatorScrollPane.setPreferredSize(new java.awt.Dimension(140, 0)); navigatorTree.setModel(createNavigatorTreeModel()); navigatorScrollPane.setViewportView(navigatorTree); navigatorViewSplitter.setLeftComponent(navigatorScrollPane); viewPanel.setLayout(new java.awt.CardLayout()); viewPanel.add(emptyPanel, "EmptyPanel"); viewPanel.add(reportPanel, "ReportPanel"); editProjectPanel.setLayout(new java.awt.GridBagLayout()); jarFileLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileLabel.setText("Jar file:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileLabel, gridBagConstraints); jarNameTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jarNameTextFieldActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(jarNameTextField, gridBagConstraints); addJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); addJarButton.setText("Add"); addJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(addJarButton, gridBagConstraints); jarFileListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileListLabel.setText("Jar Files:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileListLabel, gridBagConstraints); sourceDirLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirLabel.setText("Source Dir:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 6; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirLabel, gridBagConstraints); srcDirTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { srcDirTextFieldActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(srcDirTextField, gridBagConstraints); addSourceDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); addSourceDirButton.setText("Add"); addSourceDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addSourceDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 6; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(addSourceDirButton, gridBagConstraints); sourceDirListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirListLabel.setText("Source Dirs:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirListLabel, gridBagConstraints); removeJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeJarButton.setText("Remove"); removeJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 4; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(removeJarButton, gridBagConstraints); removeSrcDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeSrcDirButton.setText("Remove"); removeSrcDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeSrcDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 7; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(removeSrcDirButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator1, gridBagConstraints); browseJarButton.setText("..."); browseJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 3; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(browseJarButton, gridBagConstraints); browseSrcDirButton.setText("..."); browseSrcDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseSrcDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 6; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(browseSrcDirButton, gridBagConstraints); editProjectLabel.setBackground(new java.awt.Color(0, 0, 204)); editProjectLabel.setFont(new java.awt.Font("Dialog", 1, 24)); editProjectLabel.setForeground(new java.awt.Color(255, 255, 255)); editProjectLabel.setText("Project"); editProjectLabel.setOpaque(true); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; editProjectPanel.add(editProjectLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator2, gridBagConstraints); findBugsButton.setText("Find Bugs!"); findBugsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { findBugsButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 9; gridBagConstraints.gridwidth = 4; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(findBugsButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 8; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator4, gridBagConstraints); jarFileListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1)); jarFileList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); jarFileList.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jarFileListScrollPane.setViewportView(jarFileList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 4; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.7; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileListScrollPane, gridBagConstraints); sourceDirListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1)); sourceDirList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); sourceDirList.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); sourceDirListScrollPane.setViewportView(sourceDirList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 7; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.3; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirListScrollPane, gridBagConstraints); viewPanel.add(editProjectPanel, "EditProjectPanel"); bugTreePanel.setLayout(new java.awt.GridBagLayout()); groupByChooser.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { groupByChooserActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; bugTreePanel.add(groupByChooser, gridBagConstraints); groupByLabel.setFont(new java.awt.Font("Dialog", 0, 12)); groupByLabel.setText("Group:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; bugTreePanel.add(groupByLabel, gridBagConstraints); bugTreeSourceViewSplitter.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); bugTreeSourceViewSplitter.setResizeWeight(1.0); bugTreeSourceViewSplitter.setOneTouchExpandable(true); bugTree.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent evt) { bugTreeMousePressed(evt); } }); bugTreeScrollPane.setViewportView(bugTree); bugTreeSourceViewSplitter.setLeftComponent(bugTreeScrollPane); sourceTextAreaScrollPane.setMinimumSize(new java.awt.Dimension(22, 180)); sourceTextAreaScrollPane.setPreferredSize(new java.awt.Dimension(0, 100)); sourceTextArea.setEditable(false); sourceTextArea.setFont(new java.awt.Font("Lucida Sans Typewriter", 0, 12)); sourceTextAreaScrollPane.setViewportView(sourceTextArea); bugTreeSourceViewSplitter.setRightComponent(sourceTextAreaScrollPane); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; bugTreePanel.add(bugTreeSourceViewSplitter, gridBagConstraints); viewPanel.add(bugTreePanel, "BugTree"); navigatorViewSplitter.setRightComponent(viewPanel); consoleSplitter.setTopComponent(navigatorViewSplitter); consoleScrollPane.setMinimumSize(new java.awt.Dimension(22, 100)); consoleScrollPane.setPreferredSize(new java.awt.Dimension(0, 100)); consoleMessageArea.setBackground(new java.awt.Color(204, 204, 204)); consoleMessageArea.setEditable(false); consoleMessageArea.setFont(new java.awt.Font("Lucida Sans Typewriter", 0, 12)); consoleMessageArea.setMinimumSize(new java.awt.Dimension(0, 0)); consoleMessageArea.setAutoscrolls(false); consoleScrollPane.setViewportView(consoleMessageArea); consoleSplitter.setBottomComponent(consoleScrollPane); getContentPane().add(consoleSplitter, java.awt.BorderLayout.CENTER); theMenuBar.setFont(new java.awt.Font("Dialog", 0, 12)); fileMenu.setMnemonic('F'); fileMenu.setText("File"); fileMenu.setFont(new java.awt.Font("Dialog", 0, 12)); newProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); newProjectItem.setMnemonic('N'); newProjectItem.setText("New Project"); newProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { newProjectItemActionPerformed(evt); } }); fileMenu.add(newProjectItem); openProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); openProjectItem.setMnemonic('O'); openProjectItem.setText("Open Project"); openProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { openProjectItemActionPerformed(evt); } }); fileMenu.add(openProjectItem); saveProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); saveProjectItem.setMnemonic('S'); saveProjectItem.setText("Save project"); saveProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveProjectItemActionPerformed(evt); } }); fileMenu.add(saveProjectItem); closeProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); closeProjectItem.setMnemonic('C'); closeProjectItem.setText("Close Project"); fileMenu.add(closeProjectItem); fileMenu.add(jSeparator3); exitItem.setFont(new java.awt.Font("Dialog", 0, 12)); exitItem.setMnemonic('X'); exitItem.setText("Exit"); exitItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitItemActionPerformed(evt); } }); fileMenu.add(exitItem); theMenuBar.add(fileMenu); viewMenu.setMnemonic('V'); viewMenu.setText("View"); viewMenu.setFont(new java.awt.Font("Dialog", 0, 12)); viewConsoleItem.setMnemonic('C'); viewConsoleItem.setSelected(true); viewConsoleItem.setText("Console"); viewConsoleItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewConsoleItemActionPerformed(evt); } }); viewMenu.add(viewConsoleItem); theMenuBar.add(viewMenu); helpMenu.setMnemonic('H'); helpMenu.setText("Help"); helpMenu.setFont(new java.awt.Font("Dialog", 0, 12)); aboutItem.setFont(new java.awt.Font("Dialog", 0, 12)); aboutItem.setMnemonic('A'); aboutItem.setText("About"); aboutItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { aboutItemActionPerformed(evt); } }); helpMenu.add(aboutItem); theMenuBar.add(helpMenu); setJMenuBar(theMenuBar); pack(); }//GEN-END:initComponents
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/c2f017366515c74be71bc7b5368e03ae15eed2ae/FindBugsFrame.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 759, 16652, 17, 16061, 30, 2738, 7171, 3639, 2252, 18, 2219, 88, 18, 6313, 6852, 8747, 31, 3639, 2983, 26738, 273, 394, 6863, 18, 5328, 310, 18, 46, 55...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 759, 16652, 17, 16061, 30, 2738, 7171, 3639, 2252, 18, 2219, 88, 18, 6313, 6852, 8747, 31, 3639, 2983, 26738, 273, 394, 6863, 18, 5328, 310, 18, 46, 55...
org.eclipse.birt.chart.model.component.Label lblCurrent, boolean bPositionEnabled)
org.eclipse.birt.chart.model.component.Label lblCurrent, boolean bPositionEnabled, boolean bVisibilityEnabled)
public LabelAttributesComposite(Composite parent, int style, String sGroupName, Position lpCurrent, org.eclipse.birt.chart.model.component.Label lblCurrent, boolean bPositionEnabled) { super(parent, style); this.sGroupName = sGroupName; this.lpCurrent = lpCurrent; this.lblCurrent = lblCurrent; this.fdCurrent = lblCurrent.getCaption().getFont(); this.cdFont = lblCurrent.getCaption().getColor(); this.fBackground = lblCurrent.getBackground(); this.cdShadow = lblCurrent.getShadowColor(); this.laCurrent = lblCurrent.getOutline(); this.insets = lblCurrent.getInsets(); this.bPositionEnabled = bPositionEnabled; init(); placeComponents(); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/588e7d9d61e91804070df10605592e7dbd22ac16/LabelAttributesComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/LabelAttributesComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5287, 2498, 9400, 12, 9400, 982, 16, 509, 2154, 16, 514, 272, 3943, 16, 11010, 12423, 3935, 16, 3639, 2358, 18, 20416, 18, 70, 2714, 18, 11563, 18, 2284, 18, 4652, 18, 2224, 14284...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5287, 2498, 9400, 12, 9400, 982, 16, 509, 2154, 16, 514, 272, 3943, 16, 11010, 12423, 3935, 16, 3639, 2358, 18, 20416, 18, 70, 2714, 18, 11563, 18, 2284, 18, 4652, 18, 2224, 14284...
myTableModel = new DefaultTableModel(TREE_COLUMNS, 0) { public boolean isCellEditable(int row, int col) { if(col < 1) return false; else return true; } }; myTableModel.addTableModelListener(this); setLayout(new GridLayout(0,1)); newTable = new ClickableTable(myTableModel, this); newTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); newTable.getColumnModel().getColumn(0).setPreferredWidth(125); newTable.getColumnModel().getColumn(1).setPreferredWidth(500); newTable.getColumnModel().getColumn(0).setMinWidth(125); JTableHeader tHead = newTable.getTableHeader(); tHead.setResizingAllowed(false); tHead.setReorderingAllowed(false); noteButton = new JButton("Notes"); noteButton.setPreferredSize(new Dimension(85,15)); noteButton.addActionListener(this); noteButton.setActionCommand("getNotes"); JButton addButton = new JButton("Make New"); addButton.setPreferredSize(new Dimension(85,15)); addButton.addActionListener(this); addButton.setActionCommand("Make"); if ( !isTopLevel && tPanel.oNode == null) addButton.setEnabled(false); builder.add(tableName, cc.xy(1,1)); builder.add(noteButton, cc.xy(3,1, "left,center")); builder.add(addButton, cc.xyw(3,1, 2, "right,center")); builder.add(tHead, cc.xyw(1,3,4)); builder.add(newTable, cc.xyw(1,4,4)); if (oNode == null) { tHead.setVisible(false); noteButton.setVisible(false); newTable.setVisible(false); }
public TablePanel(Element e, TabPanel tp, OMEXMLNode on) { isTopLevel = false; //check if this TablePanel is "top level" if ( tp.oNode == null ) { Vector foundEles = DOMUtil.getChildElements("OMEElement", tParse.getRoot()); for (int i = 0;i < foundEles.size();i++) { Element thisNode = (Element) foundEles.get(i); if (thisNode == e) isTopLevel = true; } } else if(tp.oNode != null && tp.oNode == on) isTopLevel = true; el = e; oNode = on; tPanel = tp; id = null; newTable = null; refTable = null; JComboBox comboBox = null; if (on != null) name = getTreePathName(e,on); else name = getTreePathName(e); String thisName = name; panelList.add(this); Vector fullList = DOMUtil.getChildElements("OMEAttribute",e); Vector attrList = new Vector(); Vector refList = new Vector(); for(int i = 0;i<fullList.size();i++) { Element thisE = (Element) fullList.get(i); if(thisE.hasAttribute("Type") ) { if(thisE.getAttribute("Type").equals("Ref")) { if (oNode != null) { String value = oNode.getAttribute(thisE.getAttribute("XMLName")); if (value != null && !value.equals("")) { if ( addItems.indexOf("(External) " + value) < 0) { addItems.add("(External) " + value); } } } refList.add(thisE); } else if(thisE.getAttribute("Type").equals("ID") && oNode != null) { if (oNode.getDOMElement().hasAttribute("ID")) { id = oNode.getAttribute("ID"); panelsWithID.add(this); } } else attrList.add(thisE); } else attrList.add(thisE); } Element cDataEl = DOMUtil.getChildElement("CData",e); if (cDataEl != null) attrList.add(0,cDataEl); JPanel lowPanel = new JPanel(); FormLayout layout = new FormLayout( "pref, 10dlu, pref:grow, pref", "pref,2dlu,pref,pref,pref,3dlu,pref,3dlu"); PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); JLabel tableName = null; if(oNode == null) tableName = new JLabel(thisName, NO_DATA_BULLET, JLabel.LEFT); else tableName = new JLabel(thisName, DATA_BULLET, JLabel.LEFT); Font thisFont = tableName.getFont(); thisFont = new Font(thisFont.getFontName(), Font.BOLD,thisFont.getSize()); tableName.setFont(thisFont); if (attrList.size() != 0) { myTableModel = new DefaultTableModel(TREE_COLUMNS, 0) { public boolean isCellEditable(int row, int col) { if(col < 1) return false; else return true; } }; myTableModel.addTableModelListener(this); setLayout(new GridLayout(0,1)); newTable = new ClickableTable(myTableModel, this); newTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); newTable.getColumnModel().getColumn(0).setPreferredWidth(125); newTable.getColumnModel().getColumn(1).setPreferredWidth(500); newTable.getColumnModel().getColumn(0).setMinWidth(125); JTableHeader tHead = newTable.getTableHeader(); tHead.setResizingAllowed(false); tHead.setReorderingAllowed(false); noteButton = new JButton("Notes"); noteButton.setPreferredSize(new Dimension(85,15)); noteButton.addActionListener(this); noteButton.setActionCommand("getNotes"); JButton addButton = new JButton("Make New"); addButton.setPreferredSize(new Dimension(85,15)); addButton.addActionListener(this); addButton.setActionCommand("Make"); if ( !isTopLevel && tPanel.oNode == null) addButton.setEnabled(false); builder.add(tableName, cc.xy(1,1)); builder.add(noteButton, cc.xy(3,1, "left,center")); builder.add(addButton, cc.xyw(3,1, 2, "right,center")); builder.add(tHead, cc.xyw(1,3,4)); builder.add(newTable, cc.xyw(1,4,4)); if (oNode == null) { tHead.setVisible(false); noteButton.setVisible(false); newTable.setVisible(false); } // update OME-XML attributes table myTableModel.setRowCount(attrList.size()); for (int i=0; i<attrList.size(); i++) { Element thisEle = null; if (attrList.get(i) instanceof Element) { thisEle = (Element) attrList.get(i); } if (thisEle != null) { String attrName = thisEle.getAttribute("XMLName"); if (thisEle.hasAttribute("Name")) { myTableModel.setValueAt(thisEle.getAttribute("Name"), i, 0); if(oNode != null) { if(oNode.getDOMElement().hasAttribute(attrName)) { myTableModel.setValueAt(oNode.getAttribute(attrName), i, 1); } } } else if (thisEle.hasAttribute("XMLName")) { myTableModel.setValueAt(thisEle.getAttribute("XMLName"), i, 0); if(oNode != null) { if(oNode.getDOMElement().hasAttribute(attrName)) { myTableModel.setValueAt(oNode.getAttribute(attrName), i, 1); } } } else { if(e.hasAttribute("Name")) { myTableModel.setValueAt(e.getAttribute("Name") + " CharData", i, 0); } else { myTableModel.setValueAt(e.getAttribute("XMLName") + " CharData", i, 0); } if(oNode != null) { if(DOMUtil.getCharacterData(oNode.getDOMElement()) != null) { myTableModel.setValueAt( DOMUtil.getCharacterData(oNode.getDOMElement() ), i, 1); } } } } } } if (refList.size() > 0) { myTableModel = new DefaultTableModel(TREE_COLUMNS, 0) { public boolean isCellEditable(int row, int col) { if(col < 1) return false; else return true; } }; myTableModel.addTableModelListener(this); refTable = new ClickableTable(myTableModel, this); refTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); refTable.getColumnModel().getColumn(0).setPreferredWidth(125); refTable.getColumnModel().getColumn(1).setPreferredWidth(430); refTable.getColumnModel().getColumn(0).setMinWidth(125); TableColumn refColumn = refTable.getColumnModel().getColumn(1); comboBox = new JComboBox(); refColumn.setCellEditor(new DefaultCellEditor(comboBox)); JPanel buttonPanel; String rowString = ""; for (int i=0; i<refList.size(); i++) { rowString = rowString + "pref:grow, "; } rowString = rowString.substring(0,rowString.length()-2); FormLayout layout2 = new FormLayout( "pref", rowString); PanelBuilder builder2 = new PanelBuilder(layout2); CellConstraints cc2 = new CellConstraints(); myTableModel.setRowCount(refList.size()); for (int i=0; i<refList.size(); i++) { Element thisEle = null; if (refList.get(i) instanceof Element) { thisEle = (Element) refList.get(i); } if (thisEle != null) { if (thisEle.hasAttribute("Name")) { myTableModel.setValueAt(thisEle.getAttribute("Name"), i, 0); } else if (thisEle.hasAttribute("XMLName")) { myTableModel.setValueAt(thisEle.getAttribute("XMLName"), i, 0); } } TableButton tb = new TableButton(refTable,i); tb.addActionListener(this); builder2.add(tb, cc2.xy(1,i+1, "center,fill")); } buttonPanel = builder2.getPanel(); if(attrList.size() == 0) { JTableHeader tHead = refTable.getTableHeader(); tHead.setResizingAllowed(false); tHead.setReorderingAllowed(false); noteButton = new JButton("Notes"); noteButton.setPreferredSize(new Dimension(85,15)); noteButton.addActionListener(this); noteButton.setActionCommand("getNotes"); JButton addButton = new JButton("Make New"); addButton.setPreferredSize(new Dimension(85,15)); addButton.addActionListener(this); addButton.setActionCommand("Make"); if (!isTopLevel && tPanel.oNode == null) addButton.setEnabled(false); builder.add(tableName, cc.xy(1,1)); builder.add(noteButton, cc.xy(3,1, "left,center")); builder.add(addButton, cc.xyw(3,1,2, "right,center")); builder.add(tHead, cc.xyw(1,3,3)); builder.add(refTable, cc.xyw(1,4,3)); builder.add(buttonPanel, cc.xy(4,4)); if (oNode == null) { tHead.setVisible(false); noteButton.setVisible(false); refTable.setVisible(false); buttonPanel.setVisible(false); } } else { builder.add(refTable, cc.xyw(1,5,3)); builder.add(buttonPanel, cc.xy(4,5, "center,fill")); if (oNode == null) { refTable.setVisible(false); buttonPanel.setVisible(false); } } } noteP = new NotePanel(this); builder.add(noteP, cc.xyw(1,7,4, "fill,center")); setNumNotes(noteP.getNumNotes()); add(builder.getPanel()); }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/b42c864cb203850e496d6d8313f92675605092c6/MetadataPane.java/clean/loci/ome/notebook/MetadataPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3555, 5537, 12, 1046, 425, 16, 9483, 5537, 8071, 16, 531, 958, 4201, 907, 603, 13, 288, 1377, 353, 27046, 273, 629, 31, 5411, 368, 1893, 309, 333, 3555, 5537, 353, 315, 3669, 1801...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3555, 5537, 12, 1046, 425, 16, 9483, 5537, 8071, 16, 531, 958, 4201, 907, 603, 13, 288, 1377, 353, 27046, 273, 629, 31, 5411, 368, 1893, 309, 333, 3555, 5537, 353, 315, 3669, 1801...
{ return null; }
{ return null; }
public String getCatalog() throws SQLException { return null; }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/0c8299478c05542a0f240973829223c7dae7e4dd/Connection.java/clean/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1927, 4392, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 446, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1927, 4392, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 446, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
JobProgressManager manager = JobProgressManager.getInstance(); showingError = manager.hasErrorsDisplayed(); jobs.clear(); Object[] currentJobs = manager.getJobs(); for (int i = 0; i < currentJobs.length; i++) { jobs.add(currentJobs[i]); } setAnimated(showingError);
public void refreshAll() { // XXX Auto-generated method stub }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/cc72ec84df4d93cc632406d8e555ffcc65f0b1b1/AnimationItem.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/AnimationItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 2278, 5491, 1318, 3301, 273, 3956, 5491, 1318, 18, 588, 1442, 5621, 17253, 668, 273, 3301, 18, 5332, 4229, 4236, 329, 5621, 6550, 18, 8507, 5621, 1033, 8526, 783, 7276, 273, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2278, 5491, 1318, 3301, 273, 3956, 5491, 1318, 18, 588, 1442, 5621, 17253, 668, 273, 3301, 18, 5332, 4229, 4236, 329, 5621, 6550, 18, 8507, 5621, 1033, 8526, 783, 7276, 273, 33...
public TTypeForm(byte nodeType, Type type) { super(nodeType); this.type = type;
public TTypeForm(TTypeForm f) { super(f.getNodeType()); nodeText = f.nodeText; type = f.type; bNative = f.bNative;
public TTypeForm(byte nodeType, Type type) { //@ set comesFromLoad = false; super(nodeType); this.type = type; }
46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/0940a87c901e3039e16d12394d1430d557784068/TTypeForm.java/buggy/src/Jack/Tool/Software/Jack/Jack/src/jml2b/formula/TTypeForm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 399, 559, 1204, 12, 7229, 9507, 16, 1412, 618, 13, 288, 202, 202, 759, 36, 444, 14535, 1265, 2563, 273, 629, 31, 202, 202, 9565, 12, 2159, 559, 1769, 202, 202, 2211, 18, 723...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 399, 559, 1204, 12, 7229, 9507, 16, 1412, 618, 13, 288, 202, 202, 759, 36, 444, 14535, 1265, 2563, 273, 629, 31, 202, 202, 9565, 12, 2159, 559, 1769, 202, 202, 2211, 18, 723...
{
try { { if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) { input.consume();
public void mHEX_DIGIT() throws RecognitionException { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.lexer.g:182:22: ( ('0'..'9'|'a'..'f'|'A'..'F')) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.lexer.g:182:22: ('0'..'9'|'a'..'f'|'A'..'F') { if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recover(mse); throw mse; } } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/024138fd0e08f5f4cd91a30959fe962d30fec435/JavaParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 20661, 67, 21243, 1285, 1435, 1216, 9539, 288, 3639, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 20661, 67, 21243, 1285, 1435, 1216, 9539, 288, 3639, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 1...
Result result = runQuery(taglibQueries[1]);
runQueryCheckResult(taglibQueries[1]);
public void testTaglib1() { Result result = runQuery(taglibQueries[1]); }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/7509e0f25235fd2cb529aabfa3408833d5f3a58b/FoodMartTestCase.java/buggy/src/main/mondrian/test/FoodMartTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1805, 2941, 21, 1435, 288, 202, 202, 1253, 563, 273, 1086, 1138, 12, 2692, 2941, 9592, 63, 21, 19226, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1805, 2941, 21, 1435, 288, 202, 202, 1253, 563, 273, 1086, 1138, 12, 2692, 2941, 9592, 63, 21, 19226, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
FindOverlappingPosition(int start, char[] tempValues, int tempCount) { for (int i = 0; i < tempCount; i += 1) { int currentCount = BLOCKCOUNT; if (i + BLOCKCOUNT > tempCount) { currentCount = tempCount - i; } if (arrayRegionMatches(values, start, tempValues, i, currentCount)) return i; } return tempCount; }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/e87b31606f688d97d1580bcab4c7589a7d24935d/CompactCharArray.java/buggy/icu4j/src/com/ibm/util/CompactCharArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4163, 17411, 1382, 2555, 12, 474, 1937, 16, 3001, 8526, 5814, 1972, 16, 474, 5814, 1380, 15329, 1884, 12, 474, 77, 33, 20, 31, 77, 32, 5814, 1380, 31, 77, 15, 33, 21, 15329, 474, 2972, 138...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4163, 17411, 1382, 2555, 12, 474, 1937, 16, 3001, 8526, 5814, 1972, 16, 474, 5814, 1380, 15329, 1884, 12, 474, 77, 33, 20, 31, 77, 32, 5814, 1380, 31, 77, 15, 33, 21, 15329, 474, 2972, 138...
" contentSpecHandle=" + typeInfo.contentSpecHandle +
" contentSpecHandle=" + typeInfo.contentSpecHandle +
private int traverseComplexTypeDecl( Element complexTypeDecl ) throws Exception { // ------------------------------------------------------------------ // Get the attributes of the type // ------------------------------------------------------------------ String isAbstract = complexTypeDecl.getAttribute( SchemaSymbols.ATT_ABSTRACT ); String blockSet = null; Attr blockAttr = complexTypeDecl.getAttributeNode( SchemaSymbols.ATT_BLOCK ); if (blockAttr != null) blockSet = blockAttr.getValue(); String finalSet = null; Attr finalAttr = complexTypeDecl.getAttributeNode( SchemaSymbols.ATT_FINAL ); if (finalAttr != null) finalSet = finalAttr.getValue(); String typeId = complexTypeDecl.getAttribute( SchemaSymbols.ATTVAL_ID ); String typeName = complexTypeDecl.getAttribute(SchemaSymbols.ATT_NAME); String mixed = complexTypeDecl.getAttribute(SchemaSymbols.ATT_MIXED); boolean isNamedType = false; // ------------------------------------------------------------------ // Generate a type name, if one wasn't specified // ------------------------------------------------------------------ if (typeName.equals("")) { // gensym a unique name typeName = genAnonTypeName(complexTypeDecl); } if ( DEBUGGING ) System.out.println("traversing complex Type : " + typeName); fCurrentTypeNameStack.push(typeName); int typeNameIndex = fStringPool.addSymbol(typeName); // ------------------------------------------------------------------ // Check if the type has already been registered // ------------------------------------------------------------------ if (isTopLevel(complexTypeDecl)) { String fullName = fTargetNSURIString+","+typeName; ComplexTypeInfo temp = (ComplexTypeInfo) fComplexTypeRegistry.get(fullName); if (temp != null ) { return fStringPool.addSymbol(fullName); } } int scopeDefined = fScopeCount++; int previousScope = fCurrentScope; fCurrentScope = scopeDefined; Element child = null; ComplexTypeInfo typeInfo = new ComplexTypeInfo(); try { // ------------------------------------------------------------------ // First, handle any ANNOTATION declaration and get next child // ------------------------------------------------------------------ child = checkContent(complexTypeDecl,XUtil.getFirstChildElement(complexTypeDecl), true); // ------------------------------------------------------------------ // Process the content of the complex type declaration // ------------------------------------------------------------------ if (child==null) { // // EMPTY complexType with complexContent // processComplexContent(typeNameIndex, child, typeInfo, null, false); } else { String childName = child.getLocalName(); int index = -2; if (childName.equals(SchemaSymbols.ELT_SIMPLECONTENT)) { // // SIMPLE CONTENT element // traverseSimpleContentDecl(typeNameIndex, child, typeInfo); if (XUtil.getNextSiblingElement(child) != null) throw new ComplexTypeRecoverableError( "Invalid child following the simpleContent child in the complexType"); } else if (childName.equals(SchemaSymbols.ELT_COMPLEXCONTENT)) { // // COMPLEX CONTENT element // traverseComplexContentDecl(typeNameIndex, child, typeInfo, mixed.equals(SchemaSymbols.ATTVAL_TRUE) ? true:false); if (XUtil.getNextSiblingElement(child) != null) throw new ComplexTypeRecoverableError( "Invalid child following the complexContent child in the complexType"); } else { // // We must have .... // GROUP, ALL, SEQUENCE or CHOICE, followed by optional attributes // Note that it's possible that only attributes are specified. // processComplexContent(typeNameIndex, child, typeInfo, null, mixed.equals(SchemaSymbols.ATTVAL_TRUE) ? true:false); } } typeInfo.blockSet = parseBlockSet(blockSet); // make sure block's value was absent, #all or in {extension, restriction} if( (blockSet != null ) && !blockSet.equals("") && (!blockSet.equals(SchemaSymbols.ATTVAL_POUNDALL) && (((typeInfo.blockSet & SchemaSymbols.RESTRICTION) == 0) && ((typeInfo.blockSet & SchemaSymbols.EXTENSION) == 0)))) throw new ComplexTypeRecoverableError("The values of the 'block' attribute of a complexType must be either #all or a list of 'restriction' and 'extension'; " + blockSet + " was found"); typeInfo.finalSet = parseFinalSet(finalSet); // make sure final's value was absent, #all or in {extension, restriction} if( (finalSet != null ) && !finalSet.equals("") && (!finalSet.equals(SchemaSymbols.ATTVAL_POUNDALL) && (((typeInfo.finalSet & SchemaSymbols.RESTRICTION) == 0) && ((typeInfo.finalSet & SchemaSymbols.EXTENSION) == 0)))) throw new ComplexTypeRecoverableError("The values of the 'final' attribute of a complexType must be either #all or a list of 'restriction' and 'extension'; " + finalSet + " was found"); } catch (ComplexTypeRecoverableError e) { String message = e.getMessage(); handleComplexTypeError(message,typeNameIndex,typeInfo); } // ------------------------------------------------------------------ // Finish the setup of the typeInfo and register the type // ------------------------------------------------------------------ typeInfo.scopeDefined = scopeDefined; typeInfo.isAbstract = isAbstract.equals(SchemaSymbols.ATTVAL_TRUE) ? true:false ; typeName = fTargetNSURIString + "," + typeName; typeInfo.typeName = new String(typeName); if ( DEBUGGING ) System.out.println(">>>add complex Type to Registry: " + typeName + " baseDTValidator=" + typeInfo.baseDataTypeValidator + " baseCTInfo=" + typeInfo.baseComplexTypeInfo + " derivedBy=" + typeInfo.derivedBy + " contentType=" + typeInfo.contentType + " contentSpecHandle=" + typeInfo.contentSpecHandle + " datatypeValidator=" + typeInfo.datatypeValidator); fComplexTypeRegistry.put(typeName,typeInfo); // ------------------------------------------------------------------ // Before exiting, restore the scope, mainly for nested anonymous types // ------------------------------------------------------------------ fCurrentScope = previousScope; fCurrentTypeNameStack.pop(); checkRecursingComplexType(); //set template element's typeInfo fSchemaGrammar.setElementComplexTypeInfo(typeInfo.templateElementIndex, typeInfo); typeNameIndex = fStringPool.addSymbol(typeName); return typeNameIndex; } // end traverseComplexTypeDecl
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/87731f2b2070ba79da173a5e6be82410b096d7c5/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 10080, 12795, 559, 3456, 12, 3010, 7233, 559, 3456, 262, 1216, 1185, 288, 1171, 368, 8879, 17, 3639, 368, 968, 326, 1677, 434, 326, 618, 3639, 368, 8879, 17, 3639, 514, 24996, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10080, 12795, 559, 3456, 12, 3010, 7233, 559, 3456, 262, 1216, 1185, 288, 1171, 368, 8879, 17, 3639, 368, 968, 326, 1677, 434, 326, 618, 3639, 368, 8879, 17, 3639, 514, 24996, ...
public DoubleHolder(double initial_value)
public DoubleHolder()
public DoubleHolder(double initial_value) { value = initial_value; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/DoubleHolder.java/buggy/core/src/classpath/org/org/omg/CORBA/DoubleHolder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3698, 6064, 1435, 225, 288, 565, 460, 273, 2172, 67, 1132, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3698, 6064, 1435, 225, 288, 565, 460, 273, 2172, 67, 1132, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return gm.connect(newNode, _content.getOwner(),
return gm.connect(newNode, getContent().getOwner(),
protected Object createEdgeLeft(MutableGraphModel gm, Object newNode) { return gm.connect(newNode, _content.getOwner(), (Class) Model.getMetaTypes().getLink()); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/55b1a2bf9e5a1ff91e4f97c63ed8d76eb2a68f27/SelectionNodeInstance.java/buggy/src_new/org/argouml/uml/diagram/deployment/ui/SelectionNodeInstance.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1033, 752, 6098, 3910, 12, 19536, 4137, 1488, 14125, 16, 1033, 10942, 13, 288, 3639, 327, 14125, 18, 3612, 12, 2704, 907, 16, 389, 1745, 18, 588, 5541, 9334, 9506, 225, 261, 797, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4750, 1033, 752, 6098, 3910, 12, 19536, 4137, 1488, 14125, 16, 1033, 10942, 13, 288, 3639, 327, 14125, 18, 3612, 12, 2704, 907, 16, 389, 1745, 18, 588, 5541, 9334, 9506, 225, 261, 797, ...
list.add( elementHandle.getName( ) );
list.add( elementHandle.getQualifiedName( ) );
public static String[] getThemes( ) { ArrayList list = new ArrayList( ); list.add( CHOICE_NONE ); ModuleHandle handle = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ); Iterator iterator = handle.getAllThemes( ).iterator( ); if ( iterator != null ) { while ( iterator.hasNext( ) ) { ReportElementHandle elementHandle = (ReportElementHandle) iterator.next( ); list.add( elementHandle.getName( ) ); } } return (String[]) list.toArray( new String[0] ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/46391ca6598965d83bfc34ce19f4abb02bb2143d/ChoiceSetFactory.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/views/attributes/providers/ChoiceSetFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 8526, 336, 30224, 12, 262, 202, 95, 202, 202, 19558, 666, 273, 394, 2407, 12, 11272, 202, 202, 1098, 18, 1289, 12, 6469, 51, 11774, 67, 9826, 11272, 202, 202, 3120, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 8526, 336, 30224, 12, 262, 202, 95, 202, 202, 19558, 666, 273, 394, 2407, 12, 11272, 202, 202, 1098, 18, 1289, 12, 6469, 51, 11774, 67, 9826, 11272, 202, 202, 3120, ...
String sqlStr = "GetUserPermissionSet (?,?)" ;
String sqlStr = "GetUserPermissionSet" ;
public int getUserHighestPermissionSet (int meta_id, int user_id) { try{ DBConnect dbc = new DBConnect(m_conPool) ; dbc.getConnection() ; String sqlStr = "GetUserPermissionSet (?,?)" ; String[] sqlAry = {String.valueOf(meta_id),String.valueOf(user_id)} ; dbc.setProcedure(sqlStr,sqlAry) ; Vector perms = (Vector)dbc.executeProcedure() ; dbc.clearResultSet() ; dbc.closeConnection() ; if (perms.size() == 0){ return IMCConstants.DOC_PERM_SET_NONE ;//nothing was returned so give no rights at all. } int set_id = Integer.parseInt((String)perms.elementAt(0)) ; switch (set_id) { case IMCConstants.DOC_PERM_SET_FULL: // User has full permission for this document case IMCConstants.DOC_PERM_SET_RESTRICTED_1: // User has restricted 1 permission for this document case IMCConstants.DOC_PERM_SET_RESTRICTED_2: // User has restricted 2 permission for this document case IMCConstants.DOC_PERM_SET_READ: // User has only read permission for this document return set_id ; // We have a valid permission-set-id. Return it. default: // We didn't get a valid permission-set-id. return DOC_PERM_SET_NONE ; // User has no permission at all for this document } } catch (RuntimeException ex){ log.error("Exception in getUserHighestPermissionSet(int,int)",ex) ; throw ex ; } }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/f231d16af5b11e6f3f5820c909b7c86f64a2db7a/IMCService.java/buggy/server/src/imcode/server/IMCService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 4735, 8573, 395, 5041, 694, 261, 474, 2191, 67, 350, 16, 509, 729, 67, 350, 13, 565, 288, 202, 698, 95, 202, 565, 2383, 5215, 9881, 273, 394, 2383, 5215, 12, 81, 67, 591, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 4735, 8573, 395, 5041, 694, 261, 474, 2191, 67, 350, 16, 509, 729, 67, 350, 13, 565, 288, 202, 698, 95, 202, 565, 2383, 5215, 9881, 273, 394, 2383, 5215, 12, 81, 67, 591, ...
public Buffer(byte[] data) {
public Buffer(DataInputStream dis) throws IOException { _data = new byte[dis.readInt()]; _length = _data.length;
public Buffer(byte[] data) { _start = 0; _length = data.length; _data = data; }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/62fd59041864b4ed1f43adc676de6bfb5ea977f3/Buffer.java/buggy/src/freenet/support/Buffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3525, 12, 7229, 8526, 501, 13, 288, 202, 202, 67, 1937, 273, 374, 31, 202, 202, 67, 2469, 273, 501, 18, 2469, 31, 202, 202, 67, 892, 273, 501, 31, 202, 97, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3525, 12, 7229, 8526, 501, 13, 288, 202, 202, 67, 1937, 273, 374, 31, 202, 202, 67, 2469, 273, 501, 18, 2469, 31, 202, 202, 67, 892, 273, 501, 31, 202, 97, 2, -100, -100, ...
public boolean suspend(long timeout) { synchronized (this) { _new = false; if (_pending) { _pending=false; return _resumed; } _pending=true; _resumed=false; if (!isExpired() && timeout > 0) { if (_endPoint != null) { throw new IllegalStateException(); } _timeout = timeout; throw new RetryRequest(); } } return _resumed; }
13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/20cbe59a44bd82503e0e1bb0a3d50f25de5dc48b/SelectChannelConnector.java/clean/trunk/modules/jetty/src/main/java/org/mortbay/jetty/nio/SelectChannelConnector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 20413, 12, 5748, 2021, 13, 3639, 288, 5411, 3852, 261, 2211, 13, 5411, 288, 7734, 389, 2704, 273, 629, 31, 27573, 309, 261, 67, 9561, 13, 7734, 288, 5397, 389, 9561, 33, 574...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 20413, 12, 5748, 2021, 13, 3639, 288, 5411, 3852, 261, 2211, 13, 5411, 288, 7734, 389, 2704, 273, 629, 31, 27573, 309, 261, 67, 9561, 13, 7734, 288, 5397, 389, 9561, 33, 574...
ArchiverStub.ArchiverFile file = (ArchiverStub.ArchiverFile) archiverFiles.get( archivedFile );
JarArchiverStub.ArchiverFile file = (JarArchiverStub.ArchiverFile) archiverFiles.get( archivedFile );
public void testFileItemWithOutputName() throws Exception { generateTestFileSets( "\r\n" ); AssemblyMojo mojo = executeMojo( "fileItem-output-name-plugin-config.xml" ); Map archiverFiles = ArchiverManagerStub.archiverStub.getFiles(); assertEquals( "Test archive files", 1, archiverFiles.size() ); File archivedFile = (File) archiverFiles.keySet().iterator().next(); ArchiverStub.ArchiverFile file = (ArchiverStub.ArchiverFile) archiverFiles.get( archivedFile ); assertEquals( "Test archive file path", "assembly/output/READTHIS.txt", file.getOutputName() ); assertTrue( "Test if archived file exists", archivedFile.exists() ); String contents = FileUtils.fileRead( archivedFile.getAbsolutePath() ); assertTrue( "Test if file filtering is disabled", contents.indexOf( "${project.artifactId}" ) >= 0 ); }
51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/48c7b948a87dd88a4fa822a246fc1caa00432529/AssemblyMojoTest.java/clean/maven-assembly-plugin/src/test/java/org/apache/maven/plugin/assembly/AssemblyMojoTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 812, 1180, 1190, 1447, 461, 1435, 3639, 1216, 1185, 565, 288, 3639, 2103, 4709, 812, 2785, 12, 1548, 86, 64, 82, 6, 11272, 3639, 2970, 11534, 49, 10007, 312, 10007, 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, 1842, 812, 1180, 1190, 1447, 461, 1435, 3639, 1216, 1185, 565, 288, 3639, 2103, 4709, 812, 2785, 12, 1548, 86, 64, 82, 6, 11272, 3639, 2970, 11534, 49, 10007, 312, 10007, 273, ...
if (oldPrefix.equals(prefix)) { return; } hiddenPrefixes.remove(nsReg.getPrefix(uri));
void setNamespacePrefix(String prefix, String uri) throws NamespaceException, RepositoryException { if (prefix == null || uri == null) { throw new IllegalArgumentException("prefix/uri can not be null"); } if (QName.NS_EMPTY_PREFIX.equals(prefix) || QName.NS_DEFAULT_URI.equals(uri)) { throw new NamespaceException("default namespace is reserved and can not be changed"); } // special case: xml namespace if (uri.equals(QName.NS_XML_URI)) { throw new NamespaceException("xml namespace is reserved and can not be changed."); } // special case: prefixes xml* if (prefix.toLowerCase().startsWith(QName.NS_XML_PREFIX)) { throw new NamespaceException("reserved prefix: " + prefix); } // check if the prefix is a valid XML prefix if (!XMLChar.isValidNCName(prefix)) { throw new NamespaceException("invalid prefix: " + prefix); } // check if namespace exists (the following call will // trigger a NamespaceException if it doesn't) String globalPrefix = nsReg.getPrefix(uri); // check new prefix for collision String globalURI = null; try { globalURI = nsReg.getURI(prefix); } catch (NamespaceException nse) { // ignore } if (globalURI != null) { // prefix is already mapped in global namespace registry; // check if it is redundant or if it refers to a namespace // that has been locally remapped, thus hiding it if (!hiddenPrefixes.contains(prefix)) { if (uri.equals(globalURI) && prefix.equals(globalPrefix)) { // redundant mapping, silently ignore return; } // we don't allow to hide a namespace because we can't // guarantee that there are no references to it // (in names of nodes/properties/node types etc.) throw new NamespaceException(prefix + ": prefix is already mapped to the namespace: " + globalURI); } } // check if namespace is already locally mapped String oldPrefix = (String) uriToPrefix.get(uri); if (oldPrefix != null) { if (oldPrefix.equals(prefix)) { // redundant mapping, silently ignore return; } // resurrect hidden global prefix hiddenPrefixes.remove(nsReg.getPrefix(uri)); // remove old mapping uriToPrefix.remove(uri); prefixToURI.remove(oldPrefix); } // check if prefix is already locally mapped String oldURI = (String) prefixToURI.get(prefix); if (oldURI != null) { // resurrect hidden global prefix hiddenPrefixes.remove(nsReg.getPrefix(oldURI)); // remove old mapping uriToPrefix.remove(oldURI); prefixToURI.remove(prefix); } if (!prefix.equals(globalPrefix)) { // store new mapping prefixToURI.put(prefix, uri); uriToPrefix.put(uri, prefix); hiddenPrefixes.add(globalPrefix); } }
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/dfb46d2dad51a044b30d1d4feb1927a30c7a78ba/LocalNamespaceMappings.java/clean/jackrabbit/src/main/java/org/apache/jackrabbit/core/LocalNamespaceMappings.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 27372, 2244, 12, 780, 1633, 16, 514, 2003, 13, 5411, 1216, 6005, 503, 16, 13367, 288, 3639, 309, 261, 3239, 422, 446, 747, 2003, 422, 446, 13, 288, 5411, 604, 394, 2754, 2932, 3239...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27372, 2244, 12, 780, 1633, 16, 514, 2003, 13, 5411, 1216, 6005, 503, 16, 13367, 288, 3639, 309, 261, 3239, 422, 446, 747, 2003, 422, 446, 13, 288, 5411, 604, 394, 2754, 2932, 3239...
comment += lang.getLanguageValue("task.label.editor") + ": " + Utils.getFullName(cms.readUser(agentName)) + "\n";
comment += lang.getLanguageValue("task.label.editor") + ": " + Utils.getFullName(cms.readUser(task.getAgentUser())) + "\n";
public static void create(CmsObject cms, String agentName, String roleName, String taskName, String taskcomment, String timeoutString, String priorityString, String paraAcceptation, String paraAll, String paraCompletion, String paraDelivery) throws CmsException { CmsXmlLanguageFile lang = new CmsXmlLanguageFile(cms); if(roleName.equals(C_ALL_ROLES)) { roleName = cms.readUser(agentName).getDefaultGroup().getName(); } // try to create the task int priority = Integer.parseInt(priorityString); // create a long from the overgiven date. String splittetDate[] = Utils.split(timeoutString, "."); GregorianCalendar cal = new GregorianCalendar(Integer.parseInt(splittetDate[2]), Integer.parseInt(splittetDate[1]) - 1, Integer.parseInt(splittetDate[0]), 0, 0, 0); long timeout = cal.getTime().getTime(); CmsTask task = cms.createTask(agentName, roleName, taskName, taskcomment, timeout, priority); cms.setTaskPar(task.getId(), C_TASKPARA_ACCEPTATION, paraAcceptation); cms.setTaskPar(task.getId(), C_TASKPARA_ALL, paraAll); cms.setTaskPar(task.getId(), C_TASKPARA_COMPLETION, paraCompletion); cms.setTaskPar(task.getId(), C_TASKPARA_DELIVERY, paraDelivery); String comment = lang.getLanguageValue("task.label.forrole") + ": " + roleName + "\n"; comment += lang.getLanguageValue("task.label.editor") + ": " + Utils.getFullName(cms.readUser(agentName)) + "\n"; comment += taskcomment; cms.writeTaskLog(task.getId(), comment, C_TASKLOGTYPE_CREATED); // send an email // per default send a mail from task's organizer to task's recipient. StringBuffer contentBuf = new StringBuffer(lang.getLanguageValue("task.email.create.content")); contentBuf.append("\n"); contentBuf.append(lang.getLanguageValue("task.label.project")); contentBuf.append(": "); String projectname = "?"; try { projectname = cms.readTask(task.getRoot()).getName(); } catch(Exception exc) { // no root?! } contentBuf.append(projectname); contentBuf.append("\n"); contentBuf.append(lang.getLanguageValue("task.label.task")); contentBuf.append(": "); contentBuf.append(task.getName()); contentBuf.append("\n"); contentBuf.append(lang.getLanguageValue("task.label.actuator")); contentBuf.append(": "); contentBuf.append(Utils.getFullName(cms.readOwner(task))); int projectid = cms.readProject(task).getId(); String servletPath = cms.getRequestContext().getRequest().getServletUrl(); String serverName = ((HttpServletRequest)cms.getRequestContext().getRequest().getOriginalRequest()).getServerName(); CmsXmlWpConfigFile conf = new CmsXmlWpConfigFile(cms); String actionPath = conf.getWorkplaceActionPath(); contentBuf.append("\n\n\nhttp://" + serverName + servletPath + actionPath + "login.html?startTaskId=" + task.getId() + "&startProjectId=" + projectid); String subject = lang.getLanguageValue("task.email.create.subject"); CmsUser[] users = { cms.readAgent(task) }; com.opencms.defaults.CmsMail mail = null; try { mail = new com.opencms.defaults.CmsMail(cms, cms.readOwner(task), users, subject, contentBuf.toString(), "text/plain"); } catch(CmsException e) { if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging() ) { A_OpenCms.log(C_OPENCMS_INFO, "[CmsTaskAction] Could not generate mail while creating task for " + cms.readOwner(task).getName() + ". "); A_OpenCms.log(C_OPENCMS_INFO, "[CmsTaskAction] " + e); } } // if "Alle Rollenmitglieder von Aufgabe Benachrichtigen" checkbox is selected. if(cms.getTaskPar(task.getId(), C_TASKPARA_ALL) != null) { // the news deliver always "checked" or "" if(cms.getTaskPar(task.getId(), C_TASKPARA_ALL).equals("checked")) { try { mail = new com.opencms.defaults.CmsMail(cms, cms.readOwner(task), cms.readGroup(task), subject, contentBuf.toString(), "text/plain"); } catch(CmsException e) { if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging() ) { A_OpenCms.log(C_OPENCMS_INFO, "[CmsTaskAction] Could not generate mail while creating task for " + cms.readOwner(task).getName() + ". "); A_OpenCms.log(C_OPENCMS_INFO, "[CmsTaskAction] " + e); } } } } if(mail != null) { mail.start(); } }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/5a1562c7d1530429ed3866d2fd2a61f24d3df420/CmsTaskAction.java/clean/src/com/opencms/workplace/CmsTaskAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 752, 12, 4747, 921, 6166, 16, 514, 4040, 461, 16, 514, 19746, 16, 514, 20172, 16, 5411, 514, 1562, 3469, 16, 514, 2021, 780, 16, 514, 4394, 780, 16, 514, 12602, 5933, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 752, 12, 4747, 921, 6166, 16, 514, 4040, 461, 16, 514, 19746, 16, 514, 20172, 16, 5411, 514, 1562, 3469, 16, 514, 2021, 780, 16, 514, 4394, 780, 16, 514, 12602, 5933, ...
.createCSeqHeader(1, Request.INVITE);
.createCSeqHeader(1L, Request.INVITE);
public void sendInvite() { try { String fromName = "BigGuy"; String fromSipAddress = "here.com"; String fromDisplayName = "The Master Blaster"; String toSipAddress = "there.com"; String toUser = "LittleGuy"; String toDisplayName = "The Little Blister"; // create >From Header SipURI fromAddress = protocolObjects.addressFactory.createSipURI( fromName, fromSipAddress); Address fromNameAddress = protocolObjects.addressFactory .createAddress(fromAddress); fromNameAddress.setDisplayName(fromDisplayName); FromHeader fromHeader = protocolObjects.headerFactory .createFromHeader(fromNameAddress, "12345"); // create To Header SipURI toAddress = protocolObjects.addressFactory.createSipURI( toUser, toSipAddress); Address toNameAddress = protocolObjects.addressFactory .createAddress(toAddress); toNameAddress.setDisplayName(toDisplayName); ToHeader toHeader = protocolObjects.headerFactory.createToHeader( toNameAddress, null); // create Request URI String peerHostPort = peerHost + ":" + peerPort; SipURI requestURI = protocolObjects.addressFactory.createSipURI( toUser, peerHostPort); // Create ViaHeaders ArrayList viaHeaders = new ArrayList(); ViaHeader viaHeader = protocolObjects.headerFactory .createViaHeader(host, sipProvider.getListeningPoint( protocolObjects.transport).getPort(), protocolObjects.transport, null); // add via headers viaHeaders.add(viaHeader); SipURI sipuri = protocolObjects.addressFactory.createSipURI(null, host); sipuri.setPort(peerPort); sipuri.setLrParam(); RouteHeader routeHeader = protocolObjects.headerFactory .createRouteHeader(protocolObjects.addressFactory .createAddress(sipuri)); // Create ContentTypeHeader ContentTypeHeader contentTypeHeader = protocolObjects.headerFactory .createContentTypeHeader("application", "sdp"); // Create a new CallId header CallIdHeader callIdHeader = sipProvider.getNewCallId(); // JvB: Make sure that the implementation matches the messagefactory callIdHeader = protocolObjects.headerFactory.createCallIdHeader( callIdHeader.getCallId() ); // Create a new Cseq header CSeqHeader cSeqHeader = protocolObjects.headerFactory .createCSeqHeader(1, Request.INVITE); // Create a new MaxForwardsHeader MaxForwardsHeader maxForwards = protocolObjects.headerFactory .createMaxForwardsHeader(70); // Create the request. Request request = protocolObjects.messageFactory.createRequest( requestURI, Request.INVITE, callIdHeader, cSeqHeader, fromHeader, toHeader, viaHeaders, maxForwards); // Create contact headers SipURI contactUrl = protocolObjects.addressFactory.createSipURI( fromName, host); contactUrl.setPort(listeningPoint.getPort()); // Create the contact name address. SipURI contactURI = protocolObjects.addressFactory.createSipURI( fromName, host); contactURI.setPort(sipProvider.getListeningPoint(protocolObjects.transport).getPort()); contactURI.setTransportParam(protocolObjects.transport); Address contactAddress = protocolObjects.addressFactory .createAddress(contactURI); // Add the contact address. contactAddress.setDisplayName(fromName); contactHeader = protocolObjects.headerFactory .createContactHeader(contactAddress); request.addHeader(contactHeader); // Dont use the Outbound Proxy. Use Lr instead. request.setHeader(routeHeader); // Add the extension header. Header extensionHeader = protocolObjects.headerFactory .createHeader("My-Header", "my header value"); request.addHeader(extensionHeader); String sdpData = "v=0\r\n" + "o=4855 13760799956958020 13760799956958020" + " IN IP4 129.6.55.78\r\n" + "s=mysession session\r\n" + "p=+46 8 52018010\r\n" + "c=IN IP4 129.6.55.78\r\n" + "t=0 0\r\n" + "m=audio 6022 RTP/AVP 0 4 18\r\n" + "a=rtpmap:0 PCMU/8000\r\n" + "a=rtpmap:4 G723/8000\r\n" + "a=rtpmap:18 G729A/8000\r\n" + "a=ptime:20\r\n"; byte[] contents = sdpData.getBytes(); request.setContent(contents, contentTypeHeader); extensionHeader = protocolObjects.headerFactory.createHeader( "My-Other-Header", "my new header value "); request.addHeader(extensionHeader); Header callInfoHeader = protocolObjects.headerFactory.createHeader( "Call-Info", "<http://www.antd.nist.gov>"); request.addHeader(callInfoHeader); // Create the client transaction. inviteTid = sipProvider.getNewClientTransaction(request); // send the request out. inviteTid.sendRequest(); Dialog dialog = inviteTid.getDialog(); this.originalDialog = dialog; TestHarness.assertTrue("Initial dialog state should be null", dialog.getState() == null); TestHarness.assertTrue("Initial transaction state should be CALLING", inviteTid.getState() == TransactionState.CALLING); } catch (Exception ex) { logger.error(unexpectedException, ex); TestHarness.fail(unexpectedException); } }
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/8ebc988247b71d84f7fe59ac4ee6450486bdec69/Shootist.java/buggy/src/test/tck/msgflow/callflows/forkedinvite/Shootist.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1366, 22730, 1435, 288, 202, 202, 698, 288, 1082, 202, 780, 628, 461, 273, 315, 9901, 6099, 93, 14432, 1082, 202, 780, 628, 17550, 1887, 273, 315, 14852, 18, 832, 14432, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1366, 22730, 1435, 288, 202, 202, 698, 288, 1082, 202, 780, 628, 461, 273, 315, 9901, 6099, 93, 14432, 1082, 202, 780, 628, 17550, 1887, 273, 315, 14852, 18, 832, 14432, ...
public EditorPluginAction(IConfigurationElement actionElement, String runAttribute, IEditorPart part, String definitionId) { this(actionElement, runAttribute, part, definitionId, IAction.AS_PUSH_BUTTON);
public EditorPluginAction(IConfigurationElement actionElement, String runAttribute, IEditorPart part, String definitionId, int style) { super(actionElement, runAttribute, definitionId, style); if (part != null) editorChanged(part);
public EditorPluginAction(IConfigurationElement actionElement, String runAttribute, IEditorPart part, String definitionId) { this(actionElement, runAttribute, part, definitionId, IAction.AS_PUSH_BUTTON); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6c4dec68da8bcbdece7a53825bc6144255329aeb/EditorPluginAction.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorPluginAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 18451, 3773, 1803, 12, 45, 1750, 1046, 1301, 1046, 16, 514, 1086, 1499, 16, 467, 6946, 1988, 1087, 16, 514, 2379, 548, 13, 288, 202, 202, 2211, 12, 1128, 1046, 16, 1086, 1499,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 18451, 3773, 1803, 12, 45, 1750, 1046, 1301, 1046, 16, 514, 1086, 1499, 16, 467, 6946, 1988, 1087, 16, 514, 2379, 548, 13, 288, 202, 202, 2211, 12, 1128, 1046, 16, 1086, 1499,...
if(application().isConcurrentRequestHandlingEnabled()) cat.warn("This Component is not multi-threading safe!");
public ERXOncePerRequestConditional(WOContext context) { super(context); if(application().isConcurrentRequestHandlingEnabled()) cat.warn("This Component is not multi-threading safe!"); }
810 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/810/5f44720596605ca3ffa3f611cf7e8819e3f9b747/ERXOncePerRequestConditional.java/clean/Wonder/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXOncePerRequestConditional.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4232, 60, 12212, 2173, 691, 14132, 12, 59, 51, 1042, 819, 13, 288, 3639, 2240, 12, 2472, 1769, 202, 430, 12, 3685, 7675, 291, 18521, 691, 14701, 1526, 10756, 202, 565, 6573, 18, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4232, 60, 12212, 2173, 691, 14132, 12, 59, 51, 1042, 819, 13, 288, 3639, 2240, 12, 2472, 1769, 202, 430, 12, 3685, 7675, 291, 18521, 691, 14701, 1526, 10756, 202, 565, 6573, 18, 8...
private TrustSet[] checkOutgoing(Message msg) { if(msg == null)return null; TrustSet[] trust; trust = outgoingTrust(msg); if(!outgoingMessageAction(msg, trust[0])) return null; if(!outgoingAgentAction(msg)) return null; return trust; }
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/dc9fd5855e50eaadd5520fad9ce9335764830777/SecurityAspect.java/buggy/securityservices/src/com/nai/security/crypto/SecurityAspect.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 14146, 694, 8526, 1893, 24866, 12, 49, 403, 346, 351, 1055, 15329, 430, 12, 3576, 631, 2011, 13, 2463, 2011, 31, 14146, 694, 8526, 21879, 31, 21879, 33, 31891, 14146, 12, 3576, 1769, 430...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14146, 694, 8526, 1893, 24866, 12, 49, 403, 346, 351, 1055, 15329, 430, 12, 3576, 631, 2011, 13, 2463, 2011, 31, 14146, 694, 8526, 21879, 31, 21879, 33, 31891, 14146, 12, 3576, 1769, 430...
invokables.add(invokable); }
invokables.add(invokable); }
public void add( Invokable invokable ) { invokables.add(invokable); }
2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/a917aff361c58c31c5dce12a5e8052df6803dbe1/LIFOInvocationDispatcher.java/buggy/jmock/core/src/org/jmock/core/LIFOInvocationDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 12, 17602, 429, 5770, 429, 262, 288, 202, 202, 5768, 601, 1538, 18, 1289, 12, 5768, 601, 429, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 12, 17602, 429, 5770, 429, 262, 288, 202, 202, 5768, 601, 1538, 18, 1289, 12, 5768, 601, 429, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if(request.isParameterSet("inverse")){ isInversed = true;
if(request.isParameterSet("reversed")){ isReverted = true;
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { final HTTPRequest request = new HTTPRequest(uri); String path = uri.getPath(); if(path.endsWith("myref.fref")) { SimpleFieldSet fs = node.exportPublicFieldSet(); StringWriter sw = new StringWriter(); fs.writeTo(sw); this.writeReply(ctx, 200, "text/plain", "OK", sw.toString()); return; } final boolean advancedEnabled = node.isAdvancedDarknetEnabled(); final boolean fProxyJavascriptEnabled = node.isFProxyJavascriptEnabled(); /* gather connection statistics */ PeerNodeStatus[] peerNodeStatuses = node.getPeerNodeStatuses(); Arrays.sort(peerNodeStatuses, new Comparator() { public int compare(Object first, Object second) { int result = 0; boolean isSet = true; PeerNodeStatus firstNode = (PeerNodeStatus) first; PeerNodeStatus secondNode = (PeerNodeStatus) second; if(request.isParameterSet("sortBy")){ final String sortBy = request.getParam("sortBy"); if(sortBy.equals("name")){ result = firstNode.getName().compareToIgnoreCase(secondNode.getName()); }else if(sortBy.equals("address")){ result = firstNode.getPeerAddress().compareToIgnoreCase(secondNode.getPeerAddress()); }else if(sortBy.equals("location")){ double diff = firstNode.getLocation() - secondNode.getLocation(); result = diff > 0 ? -1 : 1; // It shouldn't ever be equal anyway }else if(sortBy.equals("version")){ result = firstNode.getVersion().compareTo(secondNode.getVersion()); }else if(sortBy.equals("privnote")){ result = firstNode.getPrivateDarknetCommentNote().compareTo(secondNode.getPrivateDarknetCommentNote()); }else isSet=false; } if(!isSet){ int statusDifference = firstNode.getStatusValue() - secondNode.getStatusValue(); if (statusDifference == 0) result = statusDifference; else result = firstNode.getName().compareToIgnoreCase(secondNode.getName()); } if(request.isParameterSet("inverse")){ isInversed = true; return (result == 0 ? 0 : (result == 1 ? -1 : 1)); }else{ isInversed = false; return result; } } }); int numberOfConnected = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_CONNECTED); int numberOfRoutingBackedOff = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF); int numberOfTooNew = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_TOO_NEW); int numberOfTooOld = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_TOO_OLD); int numberOfDisconnected = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_DISCONNECTED); int numberOfNeverConnected = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_NEVER_CONNECTED); int numberOfDisabled = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_DISABLED); int numberOfBursting = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_BURSTING); int numberOfListening = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_LISTENING); int numberOfListenOnly = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_LISTEN_ONLY); int numberOfSimpleConnected = numberOfConnected + numberOfRoutingBackedOff; int numberOfNotConnected = numberOfTooNew + numberOfTooOld + numberOfDisconnected + numberOfNeverConnected + numberOfDisabled + numberOfBursting + numberOfListening + numberOfListenOnly; String titleCountString = null; if(advancedEnabled) { titleCountString = "(" + numberOfConnected + '/' + numberOfRoutingBackedOff + '/' + numberOfTooNew + '/' + numberOfTooOld + '/' + numberOfNotConnected + ')'; } else { titleCountString = (numberOfNotConnected + numberOfSimpleConnected)>0 ? String.valueOf(numberOfSimpleConnected) : ""; } HTMLNode pageNode = ctx.getPageMaker().getPageNode(titleCountString + " Darknet Peers of " + node.getMyName()); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); // FIXME! We need some nice images long now = System.currentTimeMillis(); contentNode.addChild(core.alerts.createSummary()); if(peerNodeStatuses.length>0){ /* node status values */ long nodeUptimeSeconds = (now - node.startupTime) / 1000; int bwlimitDelayTime = (int) node.getBwlimitDelayTime(); int nodeAveragePingTime = (int) node.getNodeAveragePingTime(); int networkSizeEstimateSession = node.getNetworkSizeEstimate(-1); int networkSizeEstimateRecent = 0; if(nodeUptimeSeconds > (48*60*60)) { // 48 hours networkSizeEstimateRecent = node.getNetworkSizeEstimate(now - (48*60*60*1000)); // 48 hours } DecimalFormat fix4 = new DecimalFormat("0.0000"); double routingMissDistance = node.routingMissDistance.currentValue(); DecimalFormat fix1 = new DecimalFormat("##0.0%"); double backedOffPercent = node.backedOffPercent.currentValue(); String nodeUptimeString = TimeUtil.formatTime(nodeUptimeSeconds * 1000); // *1000 to convert to milliseconds // BEGIN OVERVIEW TABLE HTMLNode overviewTable = contentNode.addChild("table", "class", "column"); HTMLNode overviewTableRow = overviewTable.addChild("tr"); HTMLNode nextTableCell = overviewTableRow.addChild("td", "class", "first"); /* node status overview box */ if(advancedEnabled) { HTMLNode overviewInfobox = nextTableCell.addChild("div", "class", "infobox"); overviewInfobox.addChild("div", "class", "infobox-header", "Node status overview"); HTMLNode overviewInfoboxContent = overviewInfobox.addChild("div", "class", "infobox-content"); HTMLNode overviewList = overviewInfoboxContent.addChild("ul"); overviewList.addChild("li", "bwlimitDelayTime:\u00a0" + bwlimitDelayTime + "ms"); overviewList.addChild("li", "nodeAveragePingTime:\u00a0" + nodeAveragePingTime + "ms"); overviewList.addChild("li", "networkSizeEstimateSession:\u00a0" + networkSizeEstimateSession + "\u00a0nodes"); if(nodeUptimeSeconds > (48*60*60)) { // 48 hours overviewList.addChild("li", "networkSizeEstimateRecent:\u00a0" + networkSizeEstimateRecent + "\u00a0nodes"); } overviewList.addChild("li", "nodeUptime:\u00a0" + nodeUptimeString); overviewList.addChild("li", "routingMissDistance:\u00a0" + fix4.format(routingMissDistance)); overviewList.addChild("li", "backedOffPercent:\u00a0" + fix1.format(backedOffPercent)); overviewList.addChild("li", "pInstantReject:\u00a0" + fix1.format(node.pRejectIncomingInstantly())); nextTableCell = overviewTableRow.addChild("td"); } // Activity box int numInserts = node.getNumInserts(); int numRequests = node.getNumRequests(); int numTransferringRequests = node.getNumTransferringRequests(); int numARKFetchers = node.getNumARKFetchers(); HTMLNode activityInfobox = nextTableCell.addChild("div", "class", "infobox"); activityInfobox.addChild("div", "class", "infobox-header", "Current activity"); HTMLNode activityInfoboxContent = activityInfobox.addChild("div", "class", "infobox-content"); if ((numInserts == 0) && (numRequests == 0) && (numTransferringRequests == 0) && (numARKFetchers == 0)) { activityInfoboxContent.addChild("#", "Your node is not processing any requests right now."); } else { HTMLNode activityList = activityInfoboxContent.addChild("ul"); if (numInserts > 0) { activityList.addChild("li", "Inserts:\u00a0" + numInserts); } if (numRequests > 0) { activityList.addChild("li", "Requests:\u00a0" + numRequests); } if (numTransferringRequests > 0) { activityList.addChild("li", "Transferring\u00a0Requests:\u00a0" + numTransferringRequests); } if (advancedEnabled) { if (numARKFetchers > 0) { activityList.addChild("li", "ARK\u00a0Fetch\u00a0Requests:\u00a0" + numARKFetchers); } long[] total = IOStatisticCollector.getTotalIO(); long total_output_rate = (total[0]) / nodeUptimeSeconds; long total_input_rate = (total[1]) / nodeUptimeSeconds; long totalPayload = node.getTotalPayloadSent(); long total_payload_rate = totalPayload / nodeUptimeSeconds; int percent = (int) (100 * totalPayload / total[0]); activityList.addChild("li", "Total Output:\u00a0" + SizeUtil.formatSize(total[0], true) + "\u00a0(" + SizeUtil.formatSize(total_output_rate, true) + "ps)"); activityList.addChild("li", "Payload Output:\u00a0" + SizeUtil.formatSize(totalPayload, true) + "\u00a0(" + SizeUtil.formatSize(total_payload_rate, true) + "ps) ("+percent+"%)"); activityList.addChild("li", "Total Input:\u00a0" + SizeUtil.formatSize(total[1], true) + "\u00a0(" + SizeUtil.formatSize(total_input_rate, true) + "ps)"); long[] rate = node.getNodeIOStats(); long delta = (rate[5] - rate[2]) / 1000; long output_rate = (rate[3] - rate[0]) / delta; long input_rate = (rate[4] - rate[1]) / delta; SubConfig nodeConfig = node.config.get("node"); int outputBandwidthLimit = nodeConfig.getInt("outputBandwidthLimit"); int inputBandwidthLimit = nodeConfig.getInt("inputBandwidthLimit"); if(inputBandwidthLimit == -1) { inputBandwidthLimit = outputBandwidthLimit * 4; } activityList.addChild("li", "Output Rate:\u00a0" + SizeUtil.formatSize(output_rate, true) + "ps (of\u00a0"+SizeUtil.formatSize(outputBandwidthLimit, true)+"ps)"); activityList.addChild("li", "Input Rate:\u00a0" + SizeUtil.formatSize(input_rate, true) + "ps (of\u00a0"+SizeUtil.formatSize(inputBandwidthLimit, true)+"ps)"); } } nextTableCell = advancedEnabled ? overviewTableRow.addChild("td") : overviewTableRow.addChild("td", "class", "last"); // Peer statistics box HTMLNode peerStatsInfobox = nextTableCell.addChild("div", "class", "infobox"); peerStatsInfobox.addChild("div", "class", "infobox-header", "Peer statistics"); HTMLNode peerStatsContent = peerStatsInfobox.addChild("div", "class", "infobox-content"); HTMLNode peerStatsList = peerStatsContent.addChild("ul"); if (numberOfConnected > 0) { HTMLNode peerStatsConnectedListItem = peerStatsList.addChild("li").addChild("span"); peerStatsConnectedListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_connected", "Connected: We're successfully connected to these nodes", "border-bottom: 1px dotted; cursor: help;" }, "Connected"); peerStatsConnectedListItem.addChild("span", ":\u00a0" + numberOfConnected); } if (numberOfRoutingBackedOff > 0) { HTMLNode peerStatsRoutingBackedOffListItem = peerStatsList.addChild("li").addChild("span"); peerStatsRoutingBackedOffListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_backed_off", (advancedEnabled ? "Connected but backed off: These peers are connected but we're backed off of them" : "Busy: These peers are connected but they're busy") + ", so the node is not routing requests to them", "border-bottom: 1px dotted; cursor: help;" }, advancedEnabled ? "Backed off" : "Busy"); peerStatsRoutingBackedOffListItem.addChild("span", ":\u00a0" + numberOfRoutingBackedOff); } if (numberOfTooNew > 0) { HTMLNode peerStatsTooNewListItem = peerStatsList.addChild("li").addChild("span"); peerStatsTooNewListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_too_new", "Connected but too new: These peers' minimum mandatory build is higher than this node's build. This node is not routing requests to them", "border-bottom: 1px dotted; cursor: help;" }, "Too New"); peerStatsTooNewListItem.addChild("span", ":\u00a0" + numberOfTooNew); } if (numberOfTooOld > 0) { HTMLNode peerStatsTooOldListItem = peerStatsList.addChild("li").addChild("span"); peerStatsTooOldListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_too_old", "Connected but too old: This node's minimum mandatory build is higher than these peers' build. This node is not routing requests to them", "border-bottom: 1px dotted; cursor: help;" }, "Too Old"); peerStatsTooOldListItem.addChild("span", ":\u00a0" + numberOfTooOld); } if (numberOfDisconnected > 0) { HTMLNode peerStatsDisconnectedListItem = peerStatsList.addChild("li").addChild("span"); peerStatsDisconnectedListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_disconnected", "Not connected: No connection so far but this node is continuously trying to connect", "border-bottom: 1px dotted; cursor: help;" }, "Disconnected"); peerStatsDisconnectedListItem.addChild("span", ":\u00a0" + numberOfDisconnected); } if (numberOfNeverConnected > 0) { HTMLNode peerStatsNeverConnectedListItem = peerStatsList.addChild("li").addChild("span"); peerStatsNeverConnectedListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_never_connected", "Never Connected: The node has never connected with these peers", "border-bottom: 1px dotted; cursor: help;" }, "Never Connected"); peerStatsNeverConnectedListItem.addChild("span", ":\u00a0" + numberOfNeverConnected); } if (numberOfDisabled > 0) { HTMLNode peerStatsDisabledListItem = peerStatsList.addChild("li").addChild("span"); peerStatsDisabledListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_disabled", "Not connected and disabled: because the user has instructed to not connect to peers ", "border-bottom: 1px dotted; cursor: help;" }, "Disabled"); peerStatsDisabledListItem.addChild("span", ":\u00a0" + numberOfDisabled); } if (numberOfBursting > 0) { HTMLNode peerStatsBurstingListItem = peerStatsList.addChild("li").addChild("span"); peerStatsBurstingListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_bursting", "Not connected and bursting: this node is, for a short period, trying to connect to these peers because the user has set BurstOnly on them", "border-bottom: 1px dotted; cursor: help;" }, "Bursting"); peerStatsBurstingListItem.addChild("span", ":\u00a0" + numberOfBursting); } if (numberOfListening > 0) { HTMLNode peerStatsListeningListItem = peerStatsList.addChild("li").addChild("span"); peerStatsListeningListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_listening", "Not connected but listening: this node won't try to connect to these peers very often because the user has set BurstOnly on them", "border-bottom: 1px dotted; cursor: help;" }, "Listening"); peerStatsListeningListItem.addChild("span", ":\u00a0" + numberOfListening); } if (numberOfListenOnly > 0) { HTMLNode peerStatsListenOnlyListItem = peerStatsList.addChild("li").addChild("span"); peerStatsListenOnlyListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_listen_only", "Not connected and listen only: this node won't try to connect to these peers at all because the user has set ListenOnly on them", "border-bottom: 1px dotted; cursor: help;" }, "Listen Only"); peerStatsListenOnlyListItem.addChild("span", ":\u00a0" + numberOfListenOnly); } // Peer routing backoff reason box if(advancedEnabled) { nextTableCell = overviewTableRow.addChild("td", "class", "last"); HTMLNode backoffReasonInfobox = nextTableCell.addChild("div", "class", "infobox"); backoffReasonInfobox.addChild("div", "class", "infobox-header", "Peer backoff reasons"); HTMLNode backoffReasonContent = backoffReasonInfobox.addChild("div", "class", "infobox-content"); String [] routingBackoffReasons = node.getPeerNodeRoutingBackoffReasons(); if(routingBackoffReasons.length == 0) { backoffReasonContent.addChild("#", "Good, your node is not backed off from any peers!"); } else { HTMLNode reasonList = backoffReasonContent.addChild("ul"); for(int i=0;i<routingBackoffReasons.length;i++) { int reasonCount = node.getPeerNodeRoutingBackoffReasonSize(routingBackoffReasons[i]); if(reasonCount > 0) { reasonList.addChild("li", routingBackoffReasons[i] + '\u00a0' + reasonCount); } } } } // END OVERVIEW TABLE // BEGIN PEER TABLE if(fProxyJavascriptEnabled) { StringBuffer jsBuf = new StringBuffer(); // FIXME: There's probably some icky Javascript in here (this is the first thing that worked for me); feel free to fix up to Javascript guru standards jsBuf.append( " function peerNoteChange() {\n" ); jsBuf.append( " var theobj = document.getElementById( \"action\" );\n" ); jsBuf.append( " var length = theobj.options.length;\n" ); jsBuf.append( " for (var i = 0; i < length; i++) {\n" ); jsBuf.append( " if(theobj.options[i] == \"update_notes\") {\n" ); jsBuf.append( " theobj.options[i].select = true;\n" ); jsBuf.append( " } else {\n" ); jsBuf.append( " theobj.options[i].select = false;\n" ); jsBuf.append( " }\n" ); jsBuf.append( " }\n" ); jsBuf.append( " theobj.value=\"update_notes\";\n" ); //jsBuf.append( " document.getElementById( \"peersForm\" ).submit();\n" ); jsBuf.append( " document.getElementById( \"peersForm\" ).doAction.click();\n" ); jsBuf.append( " }\n" ); jsBuf.append( " function peerNoteBlur() {\n" ); jsBuf.append( " var theobj = document.getElementById( \"action\" );\n" ); jsBuf.append( " var length = theobj.options.length;\n" ); jsBuf.append( " for (var i = 0; i < length; i++) {\n" ); jsBuf.append( " if(theobj.options[i] == \"update_notes\") {\n" ); jsBuf.append( " theobj.options[i].select = true;\n" ); jsBuf.append( " } else {\n" ); jsBuf.append( " theobj.options[i].select = false;\n" ); jsBuf.append( " }\n" ); jsBuf.append( " }\n" ); jsBuf.append( " theobj.value=\"update_notes\";\n" ); jsBuf.append( " }\n" ); contentNode.addChild("script", "type", "text/javascript").addChild("%", jsBuf.toString()); } HTMLNode peerTableInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); HTMLNode peerTableInfoboxHeader = peerTableInfobox.addChild("div", "class", "infobox-header"); peerTableInfoboxHeader.addChild("#", "My peers"); if (advancedEnabled) { if (!path.endsWith("displaymessagetypes.html")) { peerTableInfoboxHeader.addChild("#", " "); peerTableInfoboxHeader.addChild("a", "href", "displaymessagetypes.html", "(more detailed)"); } } HTMLNode peerTableInfoboxContent = peerTableInfobox.addChild("div", "class", "infobox-content"); if (peerNodeStatuses.length == 0) { peerTableInfoboxContent.addChild("#", "Freenet can not work as you have not added any peers so far. Please go to the "); peerTableInfoboxContent.addChild("a", "href", "/", "node homepage"); peerTableInfoboxContent.addChild("#", " and read the top infobox to see how it is done."); } else { HTMLNode peerForm = ctx.addFormChild(peerTableInfoboxContent, ".", "peersForm"); HTMLNode peerTable = peerForm.addChild("table", "class", "darknet_connections"); HTMLNode peerTableHeaderRow = peerTable.addChild("tr"); peerTableHeaderRow.addChild("th"); peerTableHeaderRow.addChild("th").addChild("a", "href", (!isInversed ? "?sortBy=status&inversed=true" : "?sortBy=status")).addChild("#", "Status"); peerTableHeaderRow.addChild("th").addChild("a", "href", (!isInversed ? "?sortBy=name&inversed=true" : "?sortBy=name")).addChild("span", new String[] { "title", "style" }, new String[] { "The node's name. Click on the name link to send the node a N2NTM (Node To Node Text Message)", "border-bottom: 1px dotted; cursor: help;" }, "Name"); if (advancedEnabled) { peerTableHeaderRow.addChild("th").addChild("a", "href", (!isInversed ? "?sortBy=address&inversed=true" : "?sortBy=address")).addChild("span", new String[] { "title", "style" }, new String[] { "The node's network address as IP:Port", "border-bottom: 1px dotted; cursor: help;" }, "Address"); } peerTableHeaderRow.addChild("th").addChild("a", "href", (!isInversed ? "?sortBy=version&inversed=true" : "?sortBy=version")).addChild("#", "Version"); if (advancedEnabled) { peerTableHeaderRow.addChild("th").addChild("a", "href", (!isInversed ? "?sortBy=location&inversed=true" : "?sortBy=location")).addChild("#", "Location"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Other node busy? Display: Percentage of time the node is overloaded, Current wait time remaining (0=not overloaded)/total/last overload reason", "border-bottom: 1px dotted; cursor: help;" }, "Backoff"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Probability of the node rejecting a request due to overload or causing a timeout.", "border-bottom: 1px dotted; cursor: help;" }, "Overload Probability"); } peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "How long since the node was connected or last seen", "border-bottom: 1px dotted; cursor: help;" }, "Connected\u00a0/\u00a0Idle"); peerTableHeaderRow.addChild("th").addChild("a", "href", (!isInversed ? "?sortBy=privnote&inversed=true" : "?sortBy=privnote")).addChild("span", new String[] { "title", "style" }, new String[] { "A private note concerning this peer", "border-bottom: 1px dotted; cursor: help;" }, "Private Note"); if(advancedEnabled) { peerTableHeaderRow.addChild("th", "%\u00a0Time Routable"); peerTableHeaderRow.addChild("th", "Total\u00a0Traffic\u00a0(in/out)"); } for (int peerIndex = 0, peerCount = peerNodeStatuses.length; peerIndex < peerCount; peerIndex++) { PeerNodeStatus peerNodeStatus = peerNodeStatuses[peerIndex]; HTMLNode peerRow = peerTable.addChild("tr"); // check box column peerRow.addChild("td", "class", "peer-marker").addChild("input", new String[] { "type", "name" }, new String[] { "checkbox", "node_" + peerNodeStatus.hashCode() }); // status column String statusString = peerNodeStatus.getStatusName(); if (!advancedEnabled && (peerNodeStatus.getStatusValue() == Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF)) { statusString = "BUSY"; } peerRow.addChild("td", "class", "peer-status").addChild("span", "class", peerNodeStatus.getStatusCSSName(), statusString + (peerNodeStatus.isFetchingARK() ? "*" : "")); // name column peerRow.addChild("td", "class", "peer-name").addChild("a", "href", "/send_n2ntm/?peernode_hashcode=" + peerNodeStatus.hashCode(), peerNodeStatus.getName()); // address column if (advancedEnabled) { String pingTime = ""; if (peerNodeStatus.isConnected()) { pingTime = " (" + (int) peerNodeStatus.getAveragePingTime() + "ms)"; } peerRow.addChild("td", "class", "peer-address").addChild("#", ((peerNodeStatus.getPeerAddress() != null) ? (peerNodeStatus.getPeerAddress() + ':' + peerNodeStatus.getPeerPort()) : ("(unknown address)")) + pingTime); } // version column if (peerNodeStatus.getStatusValue() != Node.PEER_NODE_STATUS_NEVER_CONNECTED && (peerNodeStatus.isPublicInvalidVersion() || peerNodeStatus.isPublicReverseInvalidVersion())) { // Don't draw attention to a version problem if NEVER CONNECTED peerRow.addChild("td", "class", "peer-version").addChild("span", "class", "peer_version_problem", peerNodeStatus.getSimpleVersion()); } else { peerRow.addChild("td", "class", "peer-version").addChild("#", peerNodeStatus.getSimpleVersion()); } // location column if (advancedEnabled) { peerRow.addChild("td", "class", "peer-location", String.valueOf(peerNodeStatus.getLocation())); } if (advancedEnabled) { // backoff column HTMLNode backoffCell = peerRow.addChild("td", "class", "peer-backoff"); backoffCell.addChild("#", fix1.format(peerNodeStatus.getBackedOffPercent())); int backoff = (int) (Math.max(peerNodeStatus.getRoutingBackedOffUntil() - now, 0)); // Don't list the backoff as zero before it's actually zero if ((backoff > 0) && (backoff < 1000)) { backoff = 1000; } backoffCell.addChild("#", ' ' + String.valueOf(backoff / 1000) + '/' + String.valueOf(peerNodeStatus.getRoutingBackoffLength() / 1000)); backoffCell.addChild("#", (peerNodeStatus.getLastBackoffReason() == null) ? "" : ('/' + (peerNodeStatus.getLastBackoffReason()))); // overload probability column HTMLNode pRejectCell = peerRow.addChild("td", "class", "peer-backoff"); // FIXME pRejectCell.addChild("#", fix1.format(peerNodeStatus.getPReject())); } // idle column long idle = peerNodeStatus.getTimeLastRoutable(); if (peerNodeStatus.isRoutable()) { idle = peerNodeStatus.getTimeLastConnectionCompleted(); } else if (peerNodeStatus.getStatusValue() == Node.PEER_NODE_STATUS_NEVER_CONNECTED) { idle = peerNodeStatus.getPeerAddedTime(); } if(!peerNodeStatus.isConnected() && (now - idle) > (2 * 7 * 24 * 60 * 60 * (long) 1000)) { // 2 weeks peerRow.addChild("td", "class", "peer-idle").addChild("span", "class", "peer_idle_old", idleToString(now, idle)); } else { peerRow.addChild("td", "class", "peer-idle", idleToString(now, idle)); } // private darknet node comment note column if(fProxyJavascriptEnabled) { peerRow.addChild("td", "class", "peer-private-darknet-comment-note").addChild("input", new String[] { "type", "name", "size", "maxlength", "onBlur", "onChange", "value" }, new String[] { "text", "peerPrivateNote_" + peerNodeStatus.hashCode(), "16", "250", "peerNoteBlur();", "peerNoteChange();", peerNodeStatus.getPrivateDarknetCommentNote() }); } else { peerRow.addChild("td", "class", "peer-private-darknet-comment-note").addChild("input", new String[] { "type", "name", "size", "maxlength", "value" }, new String[] { "text", "peerPrivateNote_" + peerNodeStatus.hashCode(), "16", "250", peerNodeStatus.getPrivateDarknetCommentNote() }); } if(advancedEnabled) { // percent of time connected column peerRow.addChild("td", "class", "peer-idle" /* FIXME */).addChild("#", fix1.format(peerNodeStatus.getPercentTimeRoutableConnection())); // total traffic column peerRow.addChild("td", "class", "peer-idle" /* FIXME */).addChild("#", SizeUtil.formatSize(peerNodeStatus.getTotalInputBytes())+" / "+SizeUtil.formatSize(peerNodeStatus.getTotalOutputBytes())); } if (path.endsWith("displaymessagetypes.html")) { HTMLNode messageCountRow = peerTable.addChild("tr", "class", "message-status"); messageCountRow.addChild("td", "colspan", "2"); HTMLNode messageCountCell = messageCountRow.addChild("td", "colspan", String.valueOf(advancedEnabled ? 9 : 5)); // = total table row width - 2 from above colspan HTMLNode messageCountTable = messageCountCell.addChild("table", "class", "message-count"); HTMLNode countHeaderRow = messageCountTable.addChild("tr"); countHeaderRow.addChild("th", "Message"); countHeaderRow.addChild("th", "Incoming"); countHeaderRow.addChild("th", "Outgoing"); List messageNames = new ArrayList(); Map messageCounts = new HashMap(); for (Iterator incomingMessages = peerNodeStatus.getLocalMessagesReceived().keySet().iterator(); incomingMessages.hasNext(); ) { String messageName = (String) incomingMessages.next(); messageNames.add(messageName); Long messageCount = (Long) peerNodeStatus.getLocalMessagesReceived().get(messageName); messageCounts.put(messageName, new Long[] { messageCount, new Long(0) }); } for (Iterator outgoingMessages = peerNodeStatus.getLocalMessagesSent().keySet().iterator(); outgoingMessages.hasNext(); ) { String messageName = (String) outgoingMessages.next(); if (!messageNames.contains(messageName)) { messageNames.add(messageName); } Long messageCount = (Long) peerNodeStatus.getLocalMessagesSent().get(messageName); Long[] existingCounts = (Long[]) messageCounts.get(messageName); if (existingCounts == null) { messageCounts.put(messageName, new Long[] { new Long(0), messageCount }); } else { existingCounts[1] = messageCount; } } Collections.sort(messageNames, new Comparator() { public int compare(Object first, Object second) { return ((String) first).compareToIgnoreCase((String) second); } }); for (Iterator messageNamesIterator = messageNames.iterator(); messageNamesIterator.hasNext(); ) { String messageName = (String) messageNamesIterator.next(); Long[] messageCount = (Long[]) messageCounts.get(messageName); HTMLNode messageRow = messageCountTable.addChild("tr"); messageRow.addChild("td", messageName); messageRow.addChild("td", "class", "right-align", String.valueOf(messageCount[0])); messageRow.addChild("td", "class", "right-align", String.valueOf(messageCount[1])); } } } HTMLNode actionSelect = peerForm.addChild("select", new String[] { "id", "name" }, new String[] { "action", "action" }); actionSelect.addChild("option", "value", "", "-- Select action --"); actionSelect.addChild("option", "value", "send_n2ntm", "Send N2NTM to selected peers"); actionSelect.addChild("option", "value", "update_notes", "Update changed private notes"); if(advancedEnabled) { actionSelect.addChild("option", "value", "enable", "Enable selected peers"); actionSelect.addChild("option", "value", "disable", "Disable selected peers"); actionSelect.addChild("option", "value", "set_burst_only", "On selected peers, set BurstOnly (only set this if you have a static IP and are not NATed and neither is the peer)"); actionSelect.addChild("option", "value", "clear_burst_only", "On selected peers, clear BurstOnly"); actionSelect.addChild("option", "value", "set_listen_only", "On selected peers, set ListenOnly (not recommended)"); actionSelect.addChild("option", "value", "clear_listen_only", "On selected peers, clear ListenOnly"); actionSelect.addChild("option", "value", "set_allow_local", "On selected peers, set allowLocalAddresses (useful if you are connecting to another node on the same LAN)"); actionSelect.addChild("option", "value", "clear_allow_local", "On selected peers, clear allowLocalAddresses"); actionSelect.addChild("option", "value", "set_ignore_source_port", "On selected peers, set ignoreSourcePort (try this if behind an evil corporate firewall; otherwise not recommended)"); actionSelect.addChild("option", "value", "clear_ignore_source_port", "On selected peers, clear ignoreSourcePort"); } actionSelect.addChild("option", "value", "", "-- -- --"); actionSelect.addChild("option", "value", "remove", "Remove selected peers"); peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "doAction", "Go" }); } // END PEER TABLE } // BEGIN PEER ADDITION BOX HTMLNode peerAdditionInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); peerAdditionInfobox.addChild("div", "class", "infobox-header", "Add another peer"); HTMLNode peerAdditionContent = peerAdditionInfobox.addChild("div", "class", "infobox-content"); HTMLNode peerAdditionForm = ctx.addFormChild(peerAdditionContent, ".", "addPeerForm"); peerAdditionForm.addChild("#", "Paste the reference here:"); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("textarea", new String[] { "id", "name", "rows", "cols" }, new String[] { "reftext", "ref", "8", "74" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Enter the URL of the reference here: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name" }, new String[] { "refurl", "text", "url" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Choose the file containing the reference here: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name" }, new String[] { "reffile", "file", "reffile" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Enter a node description: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name", "size", "maxlength", "value" }, new String[] { "peerPrivateNote", "text", "peerPrivateNote", "16", "250", "" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "add", "Add" }); // our reference HTMLNode referenceInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); referenceInfobox.addChild("div", "class", "infobox-header").addChild("a", "href", "myref.fref", "My reference"); referenceInfobox.addChild("div", "class", "infobox-content").addChild("pre", "id", "reference", node.exportPublicFieldSet().toString()); // our ports HTMLNode portInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); portInfobox.addChild("div", "class", "infobox-header", "Node's Ports"); HTMLNode portInfoboxContent = portInfobox.addChild("div", "class", "infobox-content"); HTMLNode portInfoList = portInfoboxContent.addChild("ul"); SimpleFieldSet fproxyConfig = node.config.get("fproxy").exportFieldSet(true); SimpleFieldSet fcpConfig = node.config.get("fcp").exportFieldSet(true); SimpleFieldSet tmciConfig = node.config.get("console").exportFieldSet(true); portInfoList.addChild("li", "FNP:\u00a0" + node.getFNPPort() + "/udp\u00a0\u00a0\u00a0(between nodes; this is usually the only port that you might want to port forward)"); try { if(fproxyConfig.getBoolean("enabled", false)) { portInfoList.addChild("li", "FProxy:\u00a0" + fproxyConfig.getInt("port") + "/tcp\u00a0\u00a0\u00a0(this web interface)"); } else { portInfoList.addChild("li", "FProxy:\u00a0disabled/tcp\u00a0\u00a0\u00a0(this web interface)"); } if(fcpConfig.getBoolean("enabled", false)) { portInfoList.addChild("li", "FCP:\u00a0" + fcpConfig.getInt("port") + "/tcp\u00a0\u00a0\u00a0(for Freenet clients such as Frost and Thaw)"); } else { portInfoList.addChild("li", "FCP:\u00a0disabled/tcp\u00a0\u00a0\u00a0(for Freenet clients such as Frost and Thaw)"); } if(tmciConfig.getBoolean("enabled", false)) { portInfoList.addChild("li", "TMCI:\u00a0" + tmciConfig.getInt("port") + "/tcp\u00a0\u00a0\u00a0(simple telnet-based command-line interface)"); } else { portInfoList.addChild("li", "TMCI:\u00a0disabled/tcp\u00a0\u00a0\u00a0(simple telnet-based command-line interface)"); } } catch (FSParseException e) { // ignore } StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); this.writeReply(ctx, 200, "text/html", "OK", pageBuffer.toString()); }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/c0ace656fce78eb9788046a23b7c72f8de626007/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, 202, 202, 6385, 25238, 590, 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, 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, 202, 202, 6385, 25238, 590, 273, 394...
while (true) { final Exception exception = m_acceptor.getPendingException(true); if (exception == null) { break; } m_errorQueue.handleException(exception);
if (m_sender != null) { m_sender.isPeerShutdown();
public void run() { while (true) { final Exception exception = m_acceptor.getPendingException(true); if (exception == null) { // Acceptor is shutting down. break; } m_errorQueue.handleException(exception); } }
7770 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7770/3b01ba32dd6bdafa760e57d5fe634661f72d4b25/ConsoleCommunicationImplementation.java/buggy/source/src/net/grinder/console/communication/ConsoleCommunicationImplementation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 1850, 1323, 261, 3767, 13, 288, 5411, 727, 1185, 1520, 273, 312, 67, 1077, 6757, 18, 588, 8579, 503, 12, 3767, 1769, 5411, 309, 261, 4064, 422, 446, 13, 288,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 1850, 1323, 261, 3767, 13, 288, 5411, 727, 1185, 1520, 273, 312, 67, 1077, 6757, 18, 588, 8579, 503, 12, 3767, 1769, 5411, 309, 261, 4064, 422, 446, 13, 288,...
Box floater = bfc.getLeftFloatX(box);
Box floater = bfc.newGetLeftFloatX(box);
private static void positionBoxLeft(Context c, Box box) { // Uu.p("positionBoxLeft()"); // Uu.p("calling the new float routine"); BlockFormattingContext bfc = c.getBlockFormattingContext(); Box floater = bfc.getLeftFloatX(box); // Uu.p("floater = " + floater); // Uu.p("extents = " + c.getExtents()); if (floater == null) { // Uu.p("no floater blocked. returning"); box.x = 0; return; } box.x = floater.x + floater.width; if (box.x + box.width > c.getExtents().width && box.width <= c.getExtents().width) { // Uu.p("not enough room!!!"); // move the box to be below the last float and // try it again box.y = floater.y + floater.height; // Uu.p("trying again with box: " + box); positionBoxLeft(c, box); // Uu.p("final box = " + box); } }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/3f7f1ad563975d526a941d1eb9629a543d42be24/FloatUtil.java/clean/src/java/org/xhtmlrenderer/layout/block/FloatUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1754, 3514, 3910, 12, 1042, 276, 16, 8549, 3919, 13, 288, 3639, 368, 587, 89, 18, 84, 2932, 3276, 3514, 3910, 1435, 8863, 3639, 368, 587, 89, 18, 84, 2932, 31623, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1754, 3514, 3910, 12, 1042, 276, 16, 8549, 3919, 13, 288, 3639, 368, 587, 89, 18, 84, 2932, 3276, 3514, 3910, 1435, 8863, 3639, 368, 587, 89, 18, 84, 2932, 31623, 326, ...
throw new CmsSearchException(Messages.get().container(Messages.ERR_INDEX_SOURCE_ASSOCIATION_1, sourceName), exc);
throw new CmsSearchException(Messages.get().container( Messages.ERR_INDEX_SOURCE_ASSOCIATION_1, sourceName), exc);
public void initialize() throws CmsSearchException { String sourceName = null; CmsSearchIndexSource indexSource = null; List searchIndexSourceDocumentTypes = null; List resourceNames = null; String resourceName = null; m_path = OpenCms.getSystemInfo().getAbsoluteRfsPathRelativeToWebInf( OpenCms.getSearchManager().getDirectory() + "/" + m_name); for (int i = 0, n = m_sourceNames.size(); i < n; i++) { try { sourceName = (String)m_sourceNames.get(i); indexSource = OpenCms.getSearchManager().getIndexSource(sourceName); resourceNames = indexSource.getResourcesNames(); searchIndexSourceDocumentTypes = indexSource.getDocumentTypes(); for (int j = 0, m = resourceNames.size(); j < m; j++) { resourceName = (String)resourceNames.get(j); m_documenttypes.put(resourceName, searchIndexSourceDocumentTypes); } } catch (Exception exc) { throw new CmsSearchException(Messages.get().container(Messages.ERR_INDEX_SOURCE_ASSOCIATION_1, sourceName), exc); } } }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/f12328204dd4cd4c2d95d0595fb352cd0e93c475/CmsSearchIndex.java/buggy/src/org/opencms/search/CmsSearchIndex.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4046, 1435, 1216, 26905, 503, 288, 3639, 514, 28337, 273, 446, 31, 3639, 26905, 1016, 1830, 770, 1830, 273, 446, 31, 3639, 987, 1623, 1016, 1830, 2519, 2016, 273, 446, 31, 3639...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4046, 1435, 1216, 26905, 503, 288, 3639, 514, 28337, 273, 446, 31, 3639, 26905, 1016, 1830, 770, 1830, 273, 446, 31, 3639, 987, 1623, 1016, 1830, 2519, 2016, 273, 446, 31, 3639...
AST tmp1797_AST_in = (AST)_t;
AST tmp1799_AST_in = (AST)_t;
public final void sqlscalar(AST _t) throws RecognitionException { AST sqlscalar_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PLUS: { AST __t2509 = _t; AST tmp1793_AST_in = (AST)_t; match(_t,PLUS); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; sqlscalar(_t); _t = _retTree; _t = __t2509; _t = _t.getNextSibling(); break; } case MINUS: { AST __t2510 = _t; AST tmp1794_AST_in = (AST)_t; match(_t,MINUS); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; sqlscalar(_t); _t = _retTree; _t = __t2510; _t = _t.getNextSibling(); break; } case MULTIPLY: { AST __t2511 = _t; AST tmp1795_AST_in = (AST)_t; match(_t,MULTIPLY); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; sqlscalar(_t); _t = _retTree; _t = __t2511; _t = _t.getNextSibling(); break; } case DIVIDE: { AST __t2512 = _t; AST tmp1796_AST_in = (AST)_t; match(_t,DIVIDE); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; sqlscalar(_t); _t = _retTree; _t = __t2512; _t = _t.getNextSibling(); break; } case MODULO: { AST __t2513 = _t; AST tmp1797_AST_in = (AST)_t; match(_t,MODULO); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; sqlscalar(_t); _t = _retTree; _t = __t2513; _t = _t.getNextSibling(); break; } case UNARY_PLUS: { AST __t2514 = _t; AST tmp1798_AST_in = (AST)_t; match(_t,UNARY_PLUS); _t = _t.getFirstChild(); exprt(_t); _t = _retTree; _t = __t2514; _t = _t.getNextSibling(); break; } case UNARY_MINUS: { AST __t2515 = _t; AST tmp1799_AST_in = (AST)_t; match(_t,UNARY_MINUS); _t = _t.getFirstChild(); exprt(_t); _t = _retTree; _t = __t2515; _t = _t.getNextSibling(); break; } default: boolean synPredMatched2517 = false; if (_t==null) _t=ASTNULL; if (((_t.getType()==LEFTPAREN))) { AST __t2517 = _t; synPredMatched2517 = true; inputState.guessing++; try { { AST tmp1800_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); } } catch (RecognitionException pe) { synPredMatched2517 = false; } _t = __t2517;inputState.guessing--; } if ( synPredMatched2517 ) { AST __t2518 = _t; AST tmp1801_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getFirstChild(); sqlexpression(_t); _t = _retTree; AST tmp1802_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t2518; _t = _t.getNextSibling(); } else if ((_tokenSet_1.member(_t.getType()))) { exprt(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1847, 8748, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1847, 8748, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1847, 8748, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1847, 8748, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053...
} else if ((ch == '\r' || ch == '\n') && !doubleQuotes) {
} else if ((ch == '\r' || ch == '\n') && !doubleQuotes && (parsingHeader || lastField)) {
private static String parseField(BufferedReader reader, boolean doubleQuotes, int firstChar) throws IOException, ParseException { StringBuffer sb = new StringBuffer(); if (firstChar != -1) sb.append((char)firstChar); int ch; reader.mark(1); while ((ch = reader.read()) != -1) { if (ch == '"' && doubleQuotes) { reader.mark(1); ch = reader.read(); if (ch != '"') { reader.reset(); if (sb.length() == 0) return null; else return sb.toString(); } sb.append((char)ch); } else if (ch == ',' && !doubleQuotes) { //reader.reset(); return sb.toString(); } else if ((ch == '\r' || ch == '\n') && !doubleQuotes) { reader.reset(); return sb.toString(); } else { sb.append((char)ch); } reader.mark(1); } if (doubleQuotes) throw new ParseException("end of stream reached while parsing field"); else return sb.toString(); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/d1aa3b085b60615b9503fb863e6b03079ef3c645/ContactCSV.java/clean/ZimbraServer/src/java/com/zimbra/cs/mailbox/ContactCSV.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 1109, 974, 12, 17947, 2514, 2949, 16, 1250, 1645, 14292, 16, 509, 27648, 13, 1216, 1860, 16, 10616, 288, 3639, 6674, 2393, 273, 394, 6674, 5621, 3639, 309, 261, 3645, 2156...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 1109, 974, 12, 17947, 2514, 2949, 16, 1250, 1645, 14292, 16, 509, 27648, 13, 1216, 1860, 16, 10616, 288, 3639, 6674, 2393, 273, 394, 6674, 5621, 3639, 309, 261, 3645, 2156...
this.segment = segment; this.values = values; }
this.segment = segment; this.values = values; }
DenseSegmentDataset(Segment segment, Object[] values) { this.segment = segment; this.values = values; }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/DenseSegmentDataset.java/buggy/src/main/mondrian/rolap/agg/DenseSegmentDataset.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 40, 3558, 4131, 10656, 12, 4131, 3267, 16, 1033, 8526, 924, 13, 288, 202, 202, 2211, 18, 9273, 273, 3267, 31, 202, 202, 2211, 18, 2372, 273, 924, 31, 202, 97, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 40, 3558, 4131, 10656, 12, 4131, 3267, 16, 1033, 8526, 924, 13, 288, 202, 202, 2211, 18, 9273, 273, 3267, 31, 202, 202, 2211, 18, 2372, 273, 924, 31, 202, 97, 2, -100, -100, -100...
"RadioButtonMenuItem.font", MetalLookAndFeel.getControlTextFont(),
"RadioButtonMenuItem.font", getMenuTextFont(),
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", getInactiveControlTextColor(), "Button.focus", getFocusColor(), "Button.font", getControlTextFont(), "Button.foreground", getControlTextColor(), "Button.highlight", getControlHighlight(), "Button.light", getControlHighlight(), "Button.margin", new InsetsUIResource(2, 14, 2, 14), "Button.select", getControlShadow(), "Button.shadow", getControlShadow(), "CheckBox.background", getControl(), "CheckBox.border", MetalBorders.getButtonBorder(), "CheckBox.disabledText", getInactiveControlTextColor(), "CheckBox.focus", getFocusColor(), "CheckBox.font", new FontUIResource("Dialog", Font.BOLD, 12), "CheckBox.foreground", getControlTextColor(), "CheckBox.icon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.metal.MetalCheckBoxIcon"), "CheckBox.checkIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.metal.MetalCheckBoxIcon"), "Checkbox.select", getControlShadow(), "CheckBoxMenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 10), "CheckBoxMenuItem.acceleratorForeground", getAcceleratorForeground(), "CheckBoxMenuItem.acceleratorSelectionForeground", getAcceleratorSelectedForeground(), "CheckBoxMenuItem.background", getMenuBackground(), "CheckBoxMenuItem.borderPainted", Boolean.TRUE, "CheckBoxMenuItem.commandSound", "sounds/MenuItemCommand.wav", "CheckBoxMenuItem.checkIcon", MetalIconFactory.getCheckBoxMenuItemIcon(), "CheckBoxMenuItem.disabledForeground", getMenuDisabledForeground(), "CheckBoxMenuItem.font", new FontUIResource("Dialog", Font.BOLD, 12), "CheckBoxMenuItem.foreground", getMenuForeground(), "CheckBoxMenuItem.selectionBackground", getMenuSelectedBackground(), "CheckBoxMenuItem.selectionForeground", getMenuSelectedForeground(), "ColorChooser.background", getControl(), "ColorChooser.foreground", getControlTextColor(), "ColorChooser.rgbBlueMnemonic", new Integer(0), "ColorChooser.rgbGreenMnemonic", new Integer(0), "ColorChooser.rgbRedMnemonic", new Integer(0), "ColorChooser.swatchesDefaultRecentColor", getControl(), "ComboBox.background", getControl(), "ComboBox.buttonBackground", getControl(), "ComboBox.buttonDarkShadow", getControlDarkShadow(), "ComboBox.buttonHighlight", getControlHighlight(), "ComboBox.buttonShadow", getControlShadow(), "ComboBox.disabledBackground", getControl(), "ComboBox.disabledForeground", getInactiveSystemTextColor(), "ComboBox.font", new FontUIResource("Dialog", Font.BOLD, 12), "ComboBox.foreground", getControlTextColor(), "ComboBox.selectionBackground", getPrimaryControlShadow(), "ComboBox.selectionForeground", getControlTextColor(), "Desktop.background", getDesktopColor(), "DesktopIcon.background", getControl(), "DesktopIcon.foreground", getControlTextColor(), "DesktopIcon.width", new Integer(160), "DesktopIcon.border", MetalBorders.getDesktopIconBorder(), "EditorPane.background", getWindowBackground(), "EditorPane.caretForeground", getUserTextColor(), "EditorPane.font", new FontUIResource("Dialog", Font.BOLD, 12), "EditorPane.foreground", getUserTextColor(), "EditorPane.inactiveForeground", getInactiveSystemTextColor(), "EditorPane.selectionBackground", getTextHighlightColor(), "EditorPane.selectionForeground", getHighlightedTextColor(), "FormattedTextField.background", getWindowBackground(), "FormattedTextField.border", new BorderUIResource(MetalBorders.getTextFieldBorder()), "FormattedTextField.caretForeground", getUserTextColor(), "FormattedTextField.font", new FontUIResource("Dialog", Font.PLAIN, 12), "FormattedTextField.foreground", getUserTextColor(), "FormattedTextField.inactiveBackground", getControl(), "FormattedTextField.inactiveForeground", getInactiveSystemTextColor(), "FormattedTextField.selectionBackground", getTextHighlightColor(), "FormattedTextField.selectionForeground", getHighlightedTextColor(), "FileChooser.upFolderIcon", MetalIconFactory.getFileChooserUpFolderIcon(), "FileChooser.listViewIcon", MetalIconFactory.getFileChooserListViewIcon(), "FileChooser.newFolderIcon", MetalIconFactory.getFileChooserNewFolderIcon(), "FileChooser.homeFolderIcon", MetalIconFactory.getFileChooserHomeFolderIcon(), "FileChooser.detailsViewIcon", MetalIconFactory.getFileChooserDetailViewIcon(), "FileChooser.fileNameLabelMnemonic", new Integer(78), "FileChooser.filesOfTypeLabelMnemonic", new Integer(84), "FileChooser.lookInLabelMnemonic", new Integer(73), "FileView.computerIcon", MetalIconFactory.getTreeComputerIcon(), "FileView.directoryIcon", MetalIconFactory.getTreeFolderIcon(), "FileView.fileIcon", MetalIconFactory.getTreeLeafIcon(), "FileView.floppyDriveIcon", MetalIconFactory.getTreeFloppyDriveIcon(), "FileView.hardDriveIcon", MetalIconFactory.getTreeHardDriveIcon(), "InternalFrame.activeTitleBackground", getWindowTitleBackground(), "InternalFrame.activeTitleForeground", getWindowTitleForeground(), "InternalFrame.border", new MetalBorders.InternalFrameBorder(), "InternalFrame.borderColor", getControl(), "InternalFrame.borderDarkShadow", getControlDarkShadow(), "InternalFrame.borderHighlight", getControlHighlight(), "InternalFrame.borderLight", getControlHighlight(), "InternalFrame.borderShadow", getControlShadow(), "InternalFrame.icon", MetalIconFactory.getInternalFrameDefaultMenuIcon(), "InternalFrame.closeIcon", MetalIconFactory.getInternalFrameCloseIcon(16), "InternalFrame.closeSound", "sounds/FrameClose.wav", "InternalFrame.inactiveTitleBackground", getWindowTitleInactiveBackground(), "InternalFrame.inactiveTitleForeground", getWindowTitleInactiveForeground(), "InternalFrame.maximizeIcon", MetalIconFactory.getInternalFrameMaximizeIcon(16), "InternalFrame.maximizeSound", "sounds/FrameMaximize.wav", "InternalFrame.iconifyIcon", MetalIconFactory.getInternalFrameMinimizeIcon(16), "InternalFrame.minimizeSound", "sounds/FrameMinimize.wav", "InternalFrame.paletteBorder", new MetalBorders.PaletteBorder(), "InternalFrame.paletteCloseIcon", new MetalIconFactory.PaletteCloseIcon(), "InternalFrame.paletteTitleHeight", new Integer(11), "InternalFrame.restoreDownSound", "sounds/FrameRestoreDown.wav", "InternalFrame.restoreUpSound", "sounds/FrameRestoreUp.wav", "Label.background", getControl(), "Label.disabledForeground", getInactiveSystemTextColor(), "Label.disabledShadow", getControlShadow(), "Label.font", getControlTextFont(), "Label.foreground", getSystemTextColor(), "List.font", getControlTextFont(), "List.background", getWindowBackground(), "List.foreground", getUserTextColor(), "List.selectionBackground", getTextHighlightColor(), "List.selectionForeground", getHighlightedTextColor(), "List.focusCellHighlightBorder", new LineBorderUIResource(MetalLookAndFeel.getFocusColor()), "Menu.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 10), "Menu.acceleratorForeground", getAcceleratorForeground(), "Menu.acceleratorSelectionForeground", getAcceleratorSelectedForeground(), "Menu.arrowIcon", MetalIconFactory.getMenuArrowIcon(), "Menu.background", getMenuBackground(), "Menu.border", new MetalBorders.MenuItemBorder(), "Menu.borderPainted", Boolean.TRUE, "MenuItem.commandSound", "sounds/MenuItemCommand.wav", "Menu.disabledForeground", getMenuDisabledForeground(), "Menu.font", getControlTextFont(), "Menu.foreground", getMenuForeground(), "Menu.selectionBackground", getMenuSelectedBackground(), "Menu.selectionForeground", getMenuSelectedForeground(), "Menu.submenuPopupOffsetX", new Integer(-4), "Menu.submenuPopupOffsetY", new Integer(-3), "MenuBar.background", getMenuBackground(), "MenuBar.border", new MetalBorders.MenuBarBorder(), "MenuBar.font", getControlTextFont(), "MenuBar.foreground", getMenuForeground(), "MenuBar.highlight", getControlHighlight(), "MenuBar.shadow", getControlShadow(), "MenuItem.acceleratorDelimiter", "-", "MenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 10), "MenuItem.acceleratorForeground", getAcceleratorForeground(), "MenuItem.acceleratorSelectionForeground", getAcceleratorSelectedForeground(), "MenuItem.arrowIcon", MetalIconFactory.getMenuItemArrowIcon(), "MenuItem.background", getMenuBackground(), "MenuItem.border", new MetalBorders.MenuItemBorder(), "MenuItem.borderPainted", Boolean.TRUE, "MenuItem.disabledForeground", getMenuDisabledForeground(), "MenuItem.font", getControlTextFont(), "MenuItem.foreground", getMenuForeground(), "MenuItem.selectionBackground", getMenuSelectedBackground(), "MenuItem.selectionForeground", getMenuSelectedForeground(), "OptionPane.background", getControl(), "OptionPane.errorSound", "sounds/OptionPaneError.wav", "OptionPane.informationSound", "sounds/OptionPaneInformation.wav", "OptionPane.questionSound", "sounds/OptionPaneQuestion.wav", "OptionPane.warningSound", "sounds/OptionPaneWarning.wav", "OptionPane.errorDialog.border.background", new ColorUIResource(153, 51, 51), "OptionPane.errorDialog.titlePane.background", new ColorUIResource(255, 153, 153), "OptionPane.errorDialog.titlePane.foreground", new ColorUIResource(51, 0, 0), "OptionPane.errorDialog.titlePane.shadow", new ColorUIResource(204, 102, 102), "OptionPane.foreground", getControlTextColor(), "OptionPane.messageForeground", getControlTextColor(), "OptionPane.questionDialog.border.background", new ColorUIResource(51, 102, 51), "OptionPane.questionDialog.titlePane.background", new ColorUIResource(153, 204, 153), "OptionPane.questionDialog.titlePane.foreground", new ColorUIResource(0, 51, 0), "OptionPane.questionDialog.titlePane.shadow", new ColorUIResource(102, 153, 102), "OptionPane.warningDialog.border.background", new ColorUIResource(153, 102, 51), "OptionPane.warningDialog.titlePane.background", new ColorUIResource(255, 204, 153), "OptionPane.warningDialog.titlePane.foreground", new ColorUIResource(102, 51, 0), "OptionPane.warningDialog.titlePane.shadow", new ColorUIResource(204, 153, 102), "Panel.background", getControl(), "Panel.foreground", getUserTextColor(), "PasswordField.background", getWindowBackground(), "PasswordField.border", new BorderUIResource(MetalBorders.getTextFieldBorder()), "PasswordField.caretForeground", getUserTextColor(), "PasswordField.foreground", getUserTextColor(), "PasswordField.font", new FontUIResource("Dialog", Font.PLAIN, 12), "PasswordField.inactiveBackground", getControl(), "PasswordField.inactiveForeground", getInactiveSystemTextColor(), "PasswordField.selectionBackground", getTextHighlightColor(), "PasswordField.selectionForeground", getHighlightedTextColor(), "PopupMenu.background", getMenuBackground(), "PopupMenu.border", new MetalBorders.PopupMenuBorder(), "PopupMenu.font", new FontUIResource("Dialog", Font.BOLD, 12), "PopupMenu.foreground", getMenuForeground(), "PopupMenu.popupSound", "sounds/PopupMenuPopup.wav", "ProgressBar.background", getControl(), "ProgressBar.border", new BorderUIResource.LineBorderUIResource(getControlDarkShadow(), 1), "ProgressBar.font", new FontUIResource("Dialog", Font.BOLD, 12), "ProgressBar.foreground", getPrimaryControlShadow(), "ProgressBar.selectionBackground", getPrimaryControlDarkShadow(), "ProgressBar.selectionForeground", getControl(), "RadioButton.background", getControl(), "RadioButton.darkShadow", getControlDarkShadow(), "RadioButton.disabledText", getInactiveControlTextColor(), "RadioButton.icon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return MetalIconFactory.getRadioButtonIcon(); } }, "RadioButton.focus", MetalLookAndFeel.getFocusColor(), "RadioButton.font", MetalLookAndFeel.getControlTextFont(), "RadioButton.foreground", getControlTextColor(), "RadioButton.highlight", getControlHighlight(), "RadioButton.light", getControlHighlight(), "RadioButton.select", getControlShadow(), "RadioButton.shadow", getControlShadow(), "RadioButtonMenuItem.acceleratorFont", new Font("Dialog", Font.PLAIN, 10), "RadioButtonMenuItem.acceleratorForeground", getAcceleratorForeground(), "RadioButtonMenuItem.acceleratorSelectionForeground", getAcceleratorSelectedForeground(), "RadioButtonMenuItem.background", getMenuBackground(), "RadioButtonMenuItem.border", new MetalBorders.MenuItemBorder(), "RadioButtonMenuItem.borderPainted", Boolean.TRUE, "RadioButtonMenuItem.checkIcon", MetalIconFactory.getRadioButtonMenuItemIcon(), "RadioButtonMenuItem.commandSound", "sounds/MenuItemCommand.wav", "RadioButtonMenuItem.disabledForeground", getMenuDisabledForeground(), "RadioButtonMenuItem.font", MetalLookAndFeel.getControlTextFont(), "RadioButtonMenuItem.foreground", getMenuForeground(), "RadioButtonMenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "RadioButtonMenuItem.selectionBackground", MetalLookAndFeel.getMenuSelectedBackground(), "RadioButtonMenuItem.selectionForeground", MetalLookAndFeel.getMenuSelectedForeground(), "ScrollBar.allowsAbsolutePositioning", Boolean.TRUE, "ScrollBar.background", getControl(), "ScrollBar.darkShadow", getControlDarkShadow(), "ScrollBar.foreground", getControl(), "ScrollBar.highlight", getControlHighlight(), "ScrollBar.shadow", getControlShadow(), "ScrollBar.thumb", getPrimaryControlShadow(), "ScrollBar.thumbDarkShadow", getControlDarkShadow(), "ScrollBar.thumbHighlight", getPrimaryControl(), "ScrollBar.thumbShadow", getPrimaryControlDarkShadow(), "ScrollBar.track", getControl(), "ScrollBar.trackHighlight", getControlDarkShadow(), "ScrollBar.width", new Integer(17), "ScrollPane.background", getControl(), "ScrollPane.border", new MetalBorders.ScrollPaneBorder(), "ScrollPane.foreground", getControlTextColor(), "Separator.background", getSeparatorBackground(), "Separator.foreground", getSeparatorForeground(), "Separator.highlight", getControlHighlight(), "Separator.shadow", getControlShadow(), "Slider.background", getControl(), "Slider.focus", getFocusColor(), "Slider.focusInsets", new InsetsUIResource(0, 0, 0, 0), "Slider.foreground", getPrimaryControlShadow(), "Slider.highlight", getControlHighlight(), "Slider.horizontalThumbIcon", MetalIconFactory.getHorizontalSliderThumbIcon(), "Slider.majorTickLength", new Integer(6), "Slider.shadow", getControlShadow(), "Slider.trackWidth", new Integer(7), "Slider.verticalThumbIcon", MetalIconFactory.getVerticalSliderThumbIcon(), "Spinner.arrowButtonInsets", new InsetsUIResource(0, 0, 0, 0), "Spinner.background", getControl(), "Spinner.border", MetalBorders.getTextFieldBorder(), "Spinner.font", new FontUIResource("Dialog", Font.BOLD, 12), "Spinner.foreground", getControl(), "SplitPane.background", getControl(), "SplitPane.darkShadow", getControlDarkShadow(), "SplitPane.dividerFocusColor", getPrimaryControl(), "SplitPane.dividerSize", new Integer(10), "SplitPane.highlight", getControlHighlight(), "SplitPane.shadow", getControlShadow(), "SplitPaneDivider.draggingColor", Color.DARK_GRAY, "TabbedPane.background", getControlShadow(), "TabbedPane.contentBorderInsets", new InsetsUIResource(2, 2, 3, 3), "TabbedPane.contentOpaque", Boolean.TRUE, "TabbedPane.darkShadow", getControlDarkShadow(), "TabbedPane.focus", getPrimaryControlDarkShadow(), "TabbedPane.font", new FontUIResource("Dialog", Font.BOLD, 12), "TabbedPane.foreground", getControlTextColor(), "TabbedPane.highlight", getControlHighlight(), "TabbedPane.light", getControl(), "TabbedPane.selected", getControl(), // overridden in OceanTheme "TabbedPane.selectHighlight", getControlHighlight(), "TabbedPane.selectedTabPadInsets", new InsetsUIResource(2, 2, 2, 1), "TabbedPane.shadow", getControlShadow(), "TabbedPane.tabAreaBackground", getControl(), // overridden in OceanTheme "TabbedPane.tabAreaInsets", new InsetsUIResource(4, 2, 0, 6), // dito "TabbedPane.tabInsets", new InsetsUIResource(0, 9, 1, 9), // new properties in OceanTheme: // TabbedPane.contentAreaColor // TabbedPane.unselectedBackground "Table.background", getWindowBackground(), "Table.focusCellBackground", getWindowBackground(), "Table.focusCellForeground", getControlTextColor(), "Table.foreground", getControlTextColor(), "Table.focusCellHighlightBorder", new BorderUIResource.LineBorderUIResource(getFocusColor()), "Table.focusCellBackground", getWindowBackground(), "Table.gridColor", getControlDarkShadow(), "Table.selectionBackground", new ColorUIResource(204, 204, 255), "Table.selectionForeground", new ColorUIResource(0, 0, 0), "TableHeader.background", getControl(), "TableHeader.cellBorder", new MetalBorders.TableHeaderBorder(), "TableHeader.foreground", getControlTextColor(), "TextArea.background", getWindowBackground(), "TextArea.caretForeground", getUserTextColor(), "TextArea.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TextArea.foreground", getUserTextColor(), "TextArea.inactiveForeground", getInactiveSystemTextColor(), "TextArea.selectionBackground", getTextHighlightColor(), "TextArea.selectionForeground", getHighlightedTextColor(), "TextField.background", getWindowBackground(), "TextField.border", new BorderUIResource(MetalBorders.getTextFieldBorder()), "TextField.caretForeground", getUserTextColor(), "TextField.darkShadow", getControlDarkShadow(), "TextField.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TextField.foreground", getUserTextColor(), "TextField.highlight", getControlHighlight(), "TextField.inactiveBackground", getControl(), "TextField.inactiveForeground", getInactiveSystemTextColor(), "TextField.light", getControlHighlight(), "TextField.selectionBackground", getTextHighlightColor(), "TextField.selectionForeground", getHighlightedTextColor(), "TextField.shadow", getControlShadow(), "TextPane.background", getWindowBackground(), "TextPane.caretForeground", getUserTextColor(), "TextPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TextPane.foreground", getUserTextColor(), "TextPane.inactiveForeground", getInactiveSystemTextColor(), "TextPane.selectionBackground", getTextHighlightColor(), "TextPane.selectionForeground", getHighlightedTextColor(), "TitledBorder.border", new LineBorderUIResource(getPrimaryControl(), 1), "TitledBorder.font", new FontUIResource("Dialog", Font.BOLD, 12), "TitledBorder.titleColor", getSystemTextColor(), "ToggleButton.background", getControl(), "ToggleButton.border", MetalBorders.getToggleButtonBorder(), "ToggleButton.darkShadow", getControlDarkShadow(), "ToggleButton.disabledText", getInactiveControlTextColor(), "ToggleButton.focus", getFocusColor(), "ToggleButton.font", getControlTextFont(), "ToggleButton.foreground", getControlTextColor(), "ToggleButton.highlight", getControlHighlight(), "ToggleButton.light", getControlHighlight(), "ToggleButton.margin", new InsetsUIResource(2, 14, 2, 14), "ToggleButton.select", getControlShadow(), "ToggleButton.shadow", getControlShadow(), "ToolBar.background", getMenuBackground(), "ToolBar.darkShadow", getControlDarkShadow(), "ToolBar.dockingBackground", getMenuBackground(), "ToolBar.dockingForeground", getPrimaryControlDarkShadow(), "ToolBar.floatingBackground", getMenuBackground(), "ToolBar.floatingForeground", getPrimaryControl(), "ToolBar.font", new FontUIResource("Dialog", Font.BOLD, 12), "ToolBar.foreground", getMenuForeground(), "ToolBar.highlight", getControlHighlight(), "ToolBar.light", getControlHighlight(), "ToolBar.shadow", getControlShadow(), "ToolBar.border", new MetalBorders.ToolBarBorder(), "ToolBar.rolloverBorder", MetalBorders.getToolbarButtonBorder(), "ToolBar.nonrolloverBorder", MetalBorders.getToolbarButtonBorder(), "ToolTip.background", getPrimaryControl(), "ToolTip.backgroundInactive", getControl(), "ToolTip.border", new BorderUIResource.LineBorderUIResource(getPrimaryControlDarkShadow(), 1), "ToolTip.borderInactive", new BorderUIResource.LineBorderUIResource(getControlDarkShadow(), 1), "ToolTip.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ToolTip.foreground", getPrimaryControlInfo(), "ToolTip.foregroundInactive", getControlDarkShadow(), "ToolTip.hideAccelerator", Boolean.FALSE, "Tree.background", getWindowBackground(), "Tree.closedIcon", MetalIconFactory.getTreeFolderIcon(), "Tree.collapsedIcon", MetalIconFactory.getTreeControlIcon(true), "Tree.expandedIcon", MetalIconFactory.getTreeControlIcon(false), "Tree.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Tree.foreground", getUserTextColor(), "Tree.hash", getPrimaryControl(), "Tree.leafIcon", MetalIconFactory.getTreeLeafIcon(), "Tree.leftChildIndent", new Integer(7), "Tree.line", getPrimaryControl(), "Tree.openIcon", MetalIconFactory.getTreeFolderIcon(), "Tree.rightChildIndent", new Integer(13), "Tree.rowHeight", new Integer(0), "Tree.scrollsOnExpand", Boolean.TRUE, "Tree.selectionBackground", getTextHighlightColor(), "Tree.selectionBorder", new BorderUIResource.LineBorderUIResource(new Color(102, 102, 153)), "Tree.selectionBorderColor", getFocusColor(), "Tree.selectionForeground", getHighlightedTextColor(), "Tree.textBackground", getWindowBackground(), "Tree.textForeground", getUserTextColor(), "Viewport.background", getControl(), "Viewport.foreground", getUserTextColor() }; defaults.putDefaults(myDefaults); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c703200057968fb1fad7e17bbcfd87040b579718/MetalLookAndFeel.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalLookAndFeel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 1841, 7019, 12, 3060, 73, 643, 87, 3467, 13, 225, 288, 565, 2240, 18, 2738, 1841, 7019, 12, 7606, 1769, 565, 1033, 8526, 3399, 7019, 273, 394, 1033, 8526, 288, 1377, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 1841, 7019, 12, 3060, 73, 643, 87, 3467, 13, 225, 288, 565, 2240, 18, 2738, 1841, 7019, 12, 7606, 1769, 565, 1033, 8526, 3399, 7019, 273, 394, 1033, 8526, 288, 1377, 31...
assertNotNull(many2one);
assertNotNull(child); template.save(one2many);
public void testHibernateOneToMany() { GrailsDomainClass one2ManyDomain = grailsApplication.getGrailsDomainClass( "org.codehaus.groovy.grails.domain.RelationshipsTest" ); GroovyObject one2many = one2ManyDomain.newInstance(); GroovyObject many2one = grailsApplication.getGrailsDomainClass( "org.codehaus.groovy.grails.domain.OneToManyTest2" ).newInstance(); HibernateTemplate template = new HibernateTemplate(this.sessionFactory); assertNotNull(many2one); // create one-to-many relationship Set set = new HashSet(); one2many.setProperty("ones", set); ((Set)one2many.getProperty("ones")).add( many2one ); // persist template.save(one2many); // now get it back and check it works as expected one2many = (GroovyObject) template.get(one2ManyDomain.getClazz(),new Long(1)); assertNotNull(one2many); set = (Set)one2many.getProperty("ones"); assertNotNull(set); assertEquals(1, set.size()); }
50465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50465/f10158289e199fd6dded0741ba29caeb6adb52a9/GrailsHibernateConfigurationTests.java/buggy/test/persistence/org/codehaus/groovy/grails/orm/hibernate/GrailsHibernateConfigurationTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 44, 24360, 3335, 12601, 1435, 288, 202, 202, 14571, 14573, 3748, 797, 1245, 22, 5594, 3748, 273, 3087, 14573, 3208, 18, 588, 14571, 14573, 3748, 797, 12, 315, 3341, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 44, 24360, 3335, 12601, 1435, 288, 202, 202, 14571, 14573, 3748, 797, 1245, 22, 5594, 3748, 273, 3087, 14573, 3208, 18, 588, 14571, 14573, 3748, 797, 12, 315, 3341, 1...
long startPos = in.getFilePointer();
long startPos = fileLength - in.available();
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessFile(id, "r"); offsets = new Vector(); byte[] list = new byte[4]; String listString; type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("RIFF")) { bigChunkSize = size; if (!fcc.equals("AVI ")) { whine("Sorry, AVI RIFF format not found."); } } else { whine("Not an AVI file"); } while (in.read(list) == 4) { in.seek(in.getFilePointer() - 4); listString = new String(list); if (listString.equals("JUNK")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("JUNK")) { in.seek(in.getFilePointer() + size); } } else if (listString.equals("LIST")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); in.seek(in.getFilePointer() - 12); if (fcc.equals("hdrl")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("LIST")) { if (fcc.equals("hdrl")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("avih")) { pos = in.getFilePointer(); dwMicroSecPerFrame = DataTools.read4SignedBytes(in, little); dwMaxBytesPerSec = DataTools.read4SignedBytes(in, little); dwReserved1 = DataTools.read4SignedBytes(in, little); dwFlags = DataTools.read4SignedBytes(in, little); dwTotalFrames = DataTools.read4SignedBytes(in, little); dwInitialFrames = DataTools.read4SignedBytes(in, little); dwStreams = DataTools.read4SignedBytes(in, little); dwSuggestedBufferSize = DataTools.read4SignedBytes(in, little); dwWidth = DataTools.read4SignedBytes(in, little); dwHeight = DataTools.read4SignedBytes(in, little); dwScale = DataTools.read4SignedBytes(in, little); dwRate = DataTools.read4SignedBytes(in, little); dwStart = DataTools.read4SignedBytes(in, little); dwLength = DataTools.read4SignedBytes(in, little); metadata.put("Microseconds per frame", new Integer(dwMicroSecPerFrame)); metadata.put("Max. bytes per second", new Integer(dwMaxBytesPerSec)); metadata.put("Total frames", new Integer(dwTotalFrames)); metadata.put("Initial frames", new Integer(dwInitialFrames)); metadata.put("Frame width", new Integer(dwWidth)); metadata.put("Frame height", new Integer(dwHeight)); metadata.put("Scale factor", new Integer(dwScale)); metadata.put("Frame rate", new Integer(dwRate)); metadata.put("Start time", new Integer(dwStart)); metadata.put("Length", new Integer(dwLength)); in.seek(pos + size); } } } } else if (fcc.equals("strl")) { long startPos = in.getFilePointer(); long streamSize = size; type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("LIST")) { if (fcc.equals("strl")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strh")) { pos = in.getFilePointer(); String fccStreamTypeOld = fccStreamType; fccStreamType = readStringBytes(); if (!fccStreamType.equals("vids")) { fccStreamType = fccStreamTypeOld; } fccStreamHandler = readStringBytes(); dwStreamFlags = DataTools.read4SignedBytes(in, little); dwStreamReserved1 = DataTools.read4SignedBytes(in, little); dwStreamInitialFrames = DataTools.read4SignedBytes(in, little); dwStreamScale = DataTools.read4SignedBytes(in, little); dwStreamRate = DataTools.read4SignedBytes(in, little); dwStreamStart = DataTools.read4SignedBytes(in, little); dwStreamLength = DataTools.read4SignedBytes(in, little); dwStreamSuggestedBufferSize = DataTools.read4SignedBytes(in, little); dwStreamQuality = DataTools.read4SignedBytes(in, little); dwStreamSampleSize = DataTools.read4SignedBytes(in, little); metadata.put("Stream quality", new Integer(dwStreamQuality)); metadata.put("Stream sample size", new Integer(dwStreamSampleSize)); in.seek(pos + size); } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strf")) { pos = in.getFilePointer(); bmpSize = DataTools.read4SignedBytes(in, little); bmpWidth = DataTools.read4SignedBytes(in, little); bmpHeight = DataTools.read4SignedBytes(in, little); bmpPlanes = DataTools.read2SignedBytes(in, little); bmpBitsPerPixel = DataTools.read2SignedBytes(in, little); bmpCompression = DataTools.read4SignedBytes(in, little); bmpSizeOfBitmap = DataTools.read4SignedBytes(in, little); bmpHorzResolution = DataTools.read4SignedBytes(in, little); bmpVertResolution = DataTools.read4SignedBytes(in, little); bmpColorsUsed = DataTools.read4SignedBytes(in, little); bmpColorsImportant = DataTools.read4SignedBytes(in, little); bmpTopDown = (bmpHeight < 0); bmpNoOfPixels = bmpWidth * bmpHeight; metadata.put("Bitmap compression value", new Integer(bmpCompression)); metadata.put("Horizontal resolution", new Integer(bmpHorzResolution)); metadata.put("Vertical resolution", new Integer(bmpVertResolution)); metadata.put("Number of colors used", new Integer(bmpColorsUsed)); metadata.put("Bits per pixel", new Integer(bmpBitsPerPixel)); // scan line is padded with zeros to be a multiple of 4 bytes int npad = bmpWidth % 4; if (npad > 0) npad = 4 - npad; bmpScanLineSize = (bmpWidth + npad) * (bmpBitsPerPixel / 8); if (bmpSizeOfBitmap != 0) { bmpActualSize = bmpSizeOfBitmap; } else { // a value of 0 doesn't mean 0 -- it means we have // to calculate it bmpActualSize = bmpScanLineSize * bmpHeight; } if (bmpColorsUsed != 0) { bmpActualColorsUsed = bmpColorsUsed; } else { // a value of 0 means we determine this based on the // bits per pixel if (bmpBitsPerPixel < 16) { bmpActualColorsUsed = 1 << bmpBitsPerPixel; } else { // no palette bmpActualColorsUsed = 0; } } if (bmpCompression != 0) { whine("Sorry, compressed AVI files not supported."); } if (!(bmpBitsPerPixel == 8 || bmpBitsPerPixel == 24 || bmpBitsPerPixel == 32)) { whine("Sorry, " + bmpBitsPerPixel + " bits per pixel not " + "supported"); } if (bmpActualColorsUsed != 0) { // read the palette long pos1 = in.getFilePointer(); pr = new byte[bmpColorsUsed]; pg = new byte[bmpColorsUsed]; pb = new byte[bmpColorsUsed]; for (int i=0; i<bmpColorsUsed; i++) { pb[i] = (byte) in.read(); pg[i] = (byte) in.read(); pr[i] = (byte) in.read(); in.read(); } } in.seek(pos + size); } } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strd")) { in.seek(in.getFilePointer() + size); } else { in.seek(in.getFilePointer() - 8); } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strn")) { in.seek(in.getFilePointer() + size); } else { in.seek(in.getFilePointer() - 8); } } in.seek(startPos + 8 + streamSize); } else if (fcc.equals("movi")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("LIST")) { if (fcc.equals("movi")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (!(type.equals("LIST") && fcc.equals("rec "))) { in.seek(in.getFilePointer() - 12); } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); long startPos = in.getFilePointer(); while (type.substring(2).equals("db") || type.substring(2).equals("dc") || type.substring(2).equals("wb")) { pos = in.getFilePointer(); if (type.substring(2).equals("db") || type.substring(2).equals("dc")) { offsets.add(new Long(in.getFilePointer())); in.skipBytes(bmpHeight * bmpScanLineSize); } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("JUNK")) { in.seek(in.getFilePointer() + size); type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); } } in.seek(in.getFilePointer() - 8); } } } else { // skipping unknown block in.seek(in.getFilePointer() + 8 + size); } } else { // skipping unknown block type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); in.seek(in.getFilePointer() + size); } } numImages = offsets.size(); initOMEMetadata(); }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/91859a26506b8a1d312b398da2c3ecd94e02fa60/AVIReader.java/buggy/loci/formats/AVIReader.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, 8738...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8738...
LoggingEvent event; Logger remoteLogger;
LoggingEvent event; Logger remoteLogger;
public void run() { LoggingEvent event; Logger remoteLogger; try { while (true) { // read an event from the wire event = (LoggingEvent) ois.readObject(); // get a logger from the hierarchy. The name of the logger is taken to // be the name contained in the event. remoteLogger = context.getLogger(event.getLoggerRemoteView().getName()); // apply the logger-level filter if (remoteLogger.isEnabledFor(event.getLevel())) { // finally log the event as if was generated locally remoteLogger.callAppenders(event); } } } catch (java.io.EOFException e) { logger.info("Caught java.io.EOFException closing connection."); } catch (java.net.SocketException e) { logger.info("Caught java.net.SocketException closing connection."); } catch (IOException e) { logger.info("Caught java.io.IOException: " + e); logger.info("Closing connection."); } catch (Exception e) { logger.error("Unexpected exception. Closing connection.", e); } try { ois.close(); } catch (Exception e) { logger.info("Could not close connection.", e); } }
48827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48827/e220856dd8a2ab701296029034c8ddf6d8b81757/SocketNode.java/clean/logback-classic/src/main/java/ch/qos/logback/classic/net/SocketNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 202, 7735, 1133, 871, 31, 202, 202, 3328, 2632, 3328, 31, 202, 202, 698, 288, 1082, 202, 17523, 261, 3767, 13, 288, 9506, 202, 759, 855, 392, 871, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 1435, 288, 202, 202, 7735, 1133, 871, 31, 202, 202, 3328, 2632, 3328, 31, 202, 202, 698, 288, 1082, 202, 17523, 261, 3767, 13, 288, 9506, 202, 759, 855, 392, 871, ...
Asserts.notReached("unsupported encoding " + e);
assert false : "unsupported encoding " + e;
public static String bytesToString(byte[] bytes) { try { return new String(bytes, encoding); } catch (java.io.UnsupportedEncodingException e) { Asserts.notReached("unsupported encoding " + e); return null; } }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/b72a2862ae5b2f01f9a767ef2ce248fd785857c4/RubyString.java/clean/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 1731, 5808, 12, 7229, 8526, 1731, 13, 288, 202, 202, 698, 288, 1082, 202, 2463, 394, 514, 12, 3890, 16, 2688, 1769, 202, 202, 97, 1044, 261, 6290, 18, 1594, 18, 85...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 1731, 5808, 12, 7229, 8526, 1731, 13, 288, 202, 202, 698, 288, 1082, 202, 2463, 394, 514, 12, 3890, 16, 2688, 1769, 202, 202, 97, 1044, 261, 6290, 18, 1594, 18, 85...
return new Timestamp(df.parse(rs.sbuf.toString()).getTime());
Timestamp result = new Timestamp(df.parse(rs.sbuf.toString()).getTime()); result.setNanos(nanos); return result;
public static Timestamp toTimestamp(String s, java.sql.ResultSet resultSet, String pgDataType) throws SQLException { AbstractJdbc1ResultSet rs = (AbstractJdbc1ResultSet)resultSet; if (s == null) return null; // We must be synchronized here incase more theads access the ResultSet // bad practice but possible. Anyhow this is to protect sbuf and // SimpleDateFormat objects synchronized (rs) { SimpleDateFormat df = null; if ( org.postgresql.Driver.logDebug ) org.postgresql.Driver.debug("the data from the DB is " + s); // If first time, create the buffer, otherwise clear it. if (rs.sbuf == null) rs.sbuf = new StringBuffer(32); else { rs.sbuf.setLength(0); } // Copy s into sbuf for parsing. rs.sbuf.append(s); int slen = s.length(); if (slen > 19) { // The len of the ISO string to the second value is 19 chars. If // greater then 19, there may be tz info and perhaps fractional // second info which we need to change to java to read it. // cut the copy to second value "2001-12-07 16:29:22" int i = 19; rs.sbuf.setLength(i); char c = s.charAt(i++); if (c == '.') { // Found a fractional value. Append up to 3 digits including // the leading '.' do { if (i < 24) rs.sbuf.append(c); c = s.charAt(i++); } while (i < slen && Character.isDigit(c)); // If there wasn't at least 3 digits we should add some zeros // to make up the 3 digits we tell java to expect. for (int j = i; j < 24; j++) rs.sbuf.append('0'); } else { // No fractional seconds, lets add some. rs.sbuf.append(".000"); } if (i < slen) { // prepend the GMT part and then add the remaining bit of // the string. rs.sbuf.append(" GMT"); rs.sbuf.append(c); rs.sbuf.append(s.substring(i, slen)); // Lastly, if the tz part doesn't specify the :MM part then // we add ":00" for java. if (slen - i < 5) rs.sbuf.append(":00"); // we'll use this dateformat string to parse the result. df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS z"); } else { // Just found fractional seconds but no timezone. //If timestamptz then we use GMT, else local timezone if (pgDataType.equals("timestamptz")) { rs.sbuf.append(" GMT"); df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS z"); } else { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); } } } else if (slen == 19) { // No tz or fractional second info. //If timestamptz then we use GMT, else local timezone if (pgDataType.equals("timestamptz")) { rs.sbuf.append(" GMT"); df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z"); } else { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); } } else { if (slen == 8 && s.equals("infinity")) //java doesn't have a concept of postgres's infinity //so set to an arbitrary future date s = "9999-01-01"; if (slen == 9 && s.equals("-infinity")) //java doesn't have a concept of postgres's infinity //so set to an arbitrary old date s = "0001-01-01"; // We must just have a date. This case is // needed if this method is called on a date // column df = new SimpleDateFormat("yyyy-MM-dd"); } try { // All that's left is to parse the string and return the ts. if ( org.postgresql.Driver.logDebug ) org.postgresql.Driver.debug( "" + df.parse(rs.sbuf.toString()).getTime() ); return new Timestamp(df.parse(rs.sbuf.toString()).getTime()); } catch (ParseException e) { throw new PSQLException("postgresql.res.badtimestamp", new Integer(e.getErrorOffset()), s); } } }
45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/feefc329bd64ee552d12c8e40bed76e3573c3fa4/AbstractJdbc1ResultSet.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 8159, 358, 4921, 12, 780, 272, 16, 2252, 18, 4669, 18, 13198, 12168, 16, 514, 7184, 6273, 13, 202, 15069, 6483, 202, 95, 202, 202, 7469, 25316, 21, 13198, 3597, 273, 261,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 8159, 358, 4921, 12, 780, 272, 16, 2252, 18, 4669, 18, 13198, 12168, 16, 514, 7184, 6273, 13, 202, 15069, 6483, 202, 95, 202, 202, 7469, 25316, 21, 13198, 3597, 273, 261,...
previewCanvas = new Canvas( cmpPreview, SWT.NONE );
previewCanvas = new Canvas( cmpPreview, SWT.BORDER );
private void createPreviewArea( ) { cmpPreview = new Composite( cmpTask, SWT.NONE ); cmpPreview.setLayout( new GridLayout( ) ); GridData gridData = new GridData( GridData.FILL_BOTH ); gridData.heightHint = 500; gridData.heightHint = 250; cmpPreview.setLayoutData( gridData ); Label label = new Label( cmpPreview, SWT.NONE ); { label.setText( Messages.getString( "TaskSelectType.Label.Preview" ) ); //$NON-NLS-1$ label.setFont( JFaceResources.getBannerFont( ) ); } previewCanvas = new Canvas( cmpPreview, SWT.NONE ); previewCanvas.setLayoutData( new GridData( GridData.FILL_BOTH ) ); whiteColor = new Color( Display.getDefault( ), 255, 255, 255 ); previewCanvas.setBackground( whiteColor ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ac26365eb54b9a10e69498a213cb6f605f15760b/TaskSelectType.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 11124, 5484, 12, 262, 202, 95, 202, 202, 9625, 11124, 273, 394, 14728, 12, 9411, 2174, 16, 348, 8588, 18, 9826, 11272, 202, 202, 9625, 11124, 18, 542, 3744, 12, 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, 1152, 918, 752, 11124, 5484, 12, 262, 202, 95, 202, 202, 9625, 11124, 273, 394, 14728, 12, 9411, 2174, 16, 348, 8588, 18, 9826, 11272, 202, 202, 9625, 11124, 18, 542, 3744, 12, 394...
IEditorInput input = editor.getEditorInput(); if (input instanceof IFileEditorInput) { IFile file = ((IFileEditorInput) input).getFile();
IFile file = ResourceUtil.getFile(editor.getEditorInput()); if (file != null) {
public void run() { IStructuredSelection selection = getStructuredSelection(); Object obj = selection.getFirstElement(); if (obj == null || !(obj instanceof IMarker)) return; IMarker marker = (IMarker) obj; IEditorPart editor = part.getSite().getPage().getActiveEditor(); if (editor == null) return; IEditorInput input = editor.getEditorInput(); if (input instanceof IFileEditorInput) { IFile file = ((IFileEditorInput) input).getFile(); if (marker.getResource().equals(file)) { try { IDE.openEditor(part.getSite().getPage(), marker, false); } catch (CoreException e) { } } } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/35591c7d55a12520aa70b2436fcd06526a22de81/ActionRevealMarker.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionRevealMarker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 467, 30733, 6233, 4421, 273, 1322, 8813, 2862, 6233, 5621, 3639, 1033, 1081, 273, 4421, 18, 588, 3759, 1046, 5621, 3639, 309, 261, 2603, 422, 446, 747, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 467, 30733, 6233, 4421, 273, 1322, 8813, 2862, 6233, 5621, 3639, 1033, 1081, 273, 4421, 18, 588, 3759, 1046, 5621, 3639, 309, 261, 2603, 422, 446, 747, 4...
setting = new PowerOfTwoSetting(new Properties(), new Properties(),
new PowerOfTwoSetting(new Properties(), new Properties(),
public void testDefaultValueChecks() throws Exception { PowerOfTwoSetting setting = null; try { setting = new PowerOfTwoSetting(new Properties(), new Properties(), "", 65, "", 1, BIG_POWER_OF_TWO); fail("PowerOfTwoSetting has a default value that isn't a power of two."); } catch (IllegalArgumentException expectedException) {;} try { setting = new PowerOfTwoSetting(new Properties(), new Properties(), "", 192, "", 1, BIG_POWER_OF_TWO); fail("PowerOfTwoSetting has a default value that isn't a power of two."); } catch (IllegalArgumentException expectedException) {;} try { setting = new PowerOfTwoSetting(new Properties(), new Properties(), "", 0, "", 1, BIG_POWER_OF_TWO); fail("PowerOfTwoSetting has a default value that isn't a power of two."); } catch (IllegalArgumentException expectedException) {;} try { setting = new PowerOfTwoSetting(new Properties(), new Properties(), "", -2, "", 1, BIG_POWER_OF_TWO); fail("PowerOfTwoSetting has a default value that isn't a power of two."); } catch (IllegalArgumentException expectedException) {;} }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/2cd6c4a96369272d11c63d55dfb5a2671a5efcad/PowerOfTwoSettingTest.java/clean/components/gnutella-core/src/test/java/com/limegroup/gnutella/settings/PowerOfTwoSettingTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 15646, 4081, 1435, 1216, 1185, 288, 3639, 23783, 951, 11710, 5568, 3637, 273, 446, 31, 3639, 775, 288, 5411, 394, 23783, 951, 11710, 5568, 12, 2704, 6183, 9334, 394, 6183, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15646, 4081, 1435, 1216, 1185, 288, 3639, 23783, 951, 11710, 5568, 3637, 273, 446, 31, 3639, 775, 288, 5411, 394, 23783, 951, 11710, 5568, 12, 2704, 6183, 9334, 394, 6183, ...
if(pos < grammarSize){ toReturn[pos++] = fNoNSSchemaGrammar; if(DEBUG){ System.out.println("RETRIEVING INITIAL GRAMMAR " + pos ) ; Grammar temp = toReturn[pos - 1] ; print(temp.getGrammarDescription()); } } return toReturn;
Grammar[] toReturn = new Grammar[pos]; System.arraycopy(tempGrammars, 0, toReturn, 0, pos); return toReturn;
public Grammar [] getSchemaGrammars() { int grammarSize = fSchemaGrammars.size() + ((fNoNSSchemaGrammar == null) ? 0 : 1); Grammar [] toReturn = new Grammar[grammarSize]; int pos = 0; Enumeration grammarsNS = fSchemaGrammars.elements(); while (grammarsNS.hasMoreElements()) { toReturn[pos++] = (Grammar)grammarsNS.nextElement(); if(DEBUG){ System.out.println("RETRIEVING INITIAL GRAMMAR " + pos ) ; Grammar temp = toReturn[pos - 1] ; print(temp.getGrammarDescription()); } } if(pos < grammarSize){ toReturn[pos++] = fNoNSSchemaGrammar; if(DEBUG){ System.out.println("RETRIEVING INITIAL GRAMMAR " + pos ) ; Grammar temp = toReturn[pos - 1] ; print(temp.getGrammarDescription()); } } return toReturn; } // getSchemaGrammars()
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/9159d1b97dccbaab007fb2dc060bc33377e21800/XMLGrammarPoolImpl.java/buggy/src/org/apache/xerces/impl/validation/XMLGrammarPoolImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 27809, 5378, 11088, 18576, 87, 1435, 288, 3639, 509, 6473, 1225, 273, 284, 3078, 18576, 87, 18, 1467, 1435, 397, 14015, 74, 2279, 50, 1260, 1243, 18576, 422, 446, 13, 692, 374, 294,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27809, 5378, 11088, 18576, 87, 1435, 288, 3639, 509, 6473, 1225, 273, 284, 3078, 18576, 87, 18, 1467, 1435, 397, 14015, 74, 2279, 50, 1260, 1243, 18576, 422, 446, 13, 692, 374, 294,...
handleJavaSearch(false);
handleJavaSearch(true);
public void run() { handleJavaSearch(false); }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/ce5666c21b80a887680bcd38f67bb34f549505ad/PluginsView.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/view/PluginsView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 4110, 5852, 2979, 12, 5743, 1769, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 4110, 5852, 2979, 12, 5743, 1769, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
final TestGraphPanel graphPanel = new TestGraphPanel(tabbedPane, model);
final TestGraphPanel graphPanel = new TestGraphPanel(tabbedPane, model, swingDispatcherFactory);
public ConsoleUI(Model model, ProcessControl processControl, FileDistribution fileDistribution) throws ConsoleException { m_model = model; m_processControl = processControl; m_fileDistribution = fileDistribution; final Resources resources = m_model.getResources(); m_editorModel = new EditorModel(resources, new Editor.TextSourceFactory(), m_fileDistribution); m_editorModel.addListener(new EditorModel.AbstractListener() { public void bufferNotUpToDate(Buffer buffer) { if (buffer.equals(m_editorModel.getSelectedBuffer())) { // TODO // Should be swing dispatched. System.err.println(buffer.getFile()); } } }); // LookAndFeel constructor will set initial Look and Feel from properties. m_lookAndFeel = new LookAndFeel(m_model.getProperties()); // Create the frame to contain the a menu and the top level pane. // Need to do this before our actions are constructed as we use // the frame to create dialogs. m_frame = new JFrame(resources.getString("title")); m_errorHandler = new ErrorDialogHandler(m_frame, resources); m_errorHandler.registerWithLookAndFeel(m_lookAndFeel); m_optionalConfirmDialog = new OptionalConfirmDialog(m_frame, resources, m_model.getProperties()); m_stateIgnoringString = resources.getString("state.ignoring.label") + ' '; m_stateWaitingString = resources.getString("state.waiting.label"); m_stateStoppedString = resources.getString("state.stopped.label"); m_stateStoppedAndIgnoringString = resources.getString("state.stoppedAndIgnoring.label") + ' '; m_stateCapturingString = resources.getString("state.capturing.label") + ' '; m_stateUnknownString = resources.getString("state.unknown.label"); m_closeFileAction = new CloseFileAction(); m_exitAction = new ExitAction(); m_startAction = new StartAction(); m_stopAction = new StopAction(); m_saveFileAsAction = new SaveFileAsAction(); addAction(m_closeFileAction); addAction(m_exitAction); addAction(m_startAction); addAction(m_stopAction); addAction(m_saveFileAsAction); addAction(new AboutAction(resources.getImageIcon("logo.image"))); addAction(new ChooseDirectoryAction()); addAction(new StartProcessesAction()); addAction(new DistributeFilesAction()); addAction(new NewFileAction()); addAction(new OptionsAction()); addAction(new ResetProcessesAction()); addAction(new SaveFileAction()); addAction(new SaveResultsAction()); addAction(new StopProcessesAction()); m_stateLabel = new JLabel(); m_samplingControlPanel = new SamplingControlPanel(resources); final JPanel controlAndTotalPanel = createControlAndTotalPanel(); final JPanel hackToFixLayout = new JPanel(); hackToFixLayout.add(controlAndTotalPanel); // Create the tabbed test display. final JTabbedPane tabbedPane = new JTabbedPane(); final Border threePixelBorder = BorderFactory.createEmptyBorder(3, 3, 3, 3); final TestGraphPanel graphPanel = new TestGraphPanel(tabbedPane, model); graphPanel.resetTestsAndStatisticsViews(); // Show logo. final JScrollPane graphTabPane = new JScrollPane(graphPanel, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); graphTabPane.setBorder(BorderFactory.createEmptyBorder()); tabbedPane.addTab(resources.getString("graphTab.title"), resources.getImageIcon("graphTab.image"), graphTabPane, resources.getString("graphTab.tip")); final Font tabLabelFont = new JLabel().getFont().deriveFont(Font.PLAIN | Font.ITALIC); m_cumulativeTableModel = new CumulativeStatisticsTableModel(model); final JScrollPane cumulativeTablePane = new JScrollPane(new Table(m_cumulativeTableModel)); final TitledBorder cumulativeTableTitledBorder = BorderFactory.createTitledBorder( threePixelBorder, resources.getString("cumulativeTable.label")); cumulativeTableTitledBorder.setTitleFont(tabLabelFont); cumulativeTableTitledBorder.setTitleColor(Colours.HIGHLIGHT_TEXT); cumulativeTableTitledBorder.setTitleJustification(TitledBorder.RIGHT); cumulativeTablePane.setBorder(cumulativeTableTitledBorder); cumulativeTablePane.setMinimumSize(new Dimension(100, 60)); final SampleStatisticsTableModel sampleModel = new SampleStatisticsTableModel(model); final JScrollPane sampleTablePane = new JScrollPane(new Table(sampleModel)); final TitledBorder sampleTableTitledBorder = BorderFactory.createTitledBorder( threePixelBorder, resources.getString("sampleTable.label")); sampleTableTitledBorder.setTitleFont(tabLabelFont); sampleTableTitledBorder.setTitleColor(Colours.HIGHLIGHT_TEXT); sampleTableTitledBorder.setTitleJustification(TitledBorder.RIGHT); sampleTablePane.setBorder(sampleTableTitledBorder); sampleTablePane.setMinimumSize(new Dimension(100, 60)); final JSplitPane resultsPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, cumulativeTablePane, sampleTablePane); resultsPane.setOneTouchExpandable(true); resultsPane.setResizeWeight(1.0d); resultsPane.setBorder(BorderFactory.createEmptyBorder()); tabbedPane.addTab(resources.getString("resultsTab.title"), resources.getImageIcon("resultsTab.image"), resultsPane, resources.getString("resultsTab.tip")); final ProcessStatusTableModel processStatusModel = new ProcessStatusTableModel(resources, m_processControl); final JScrollPane processStatusPane = new JScrollPane(new Table(processStatusModel)); final TitledBorder processTableTitledBorder = BorderFactory.createTitledBorder( threePixelBorder, resources.getString("processStatusTableTab.tip")); processTableTitledBorder.setTitleFont(tabLabelFont); processTableTitledBorder.setTitleColor(Colours.HIGHLIGHT_TEXT); processTableTitledBorder.setTitleJustification(TitledBorder.RIGHT); processStatusPane.setBorder(processTableTitledBorder); tabbedPane.addTab(resources.getString("processStatusTableTab.title"), resources.getImageIcon( "processStatusTableTab.image"), processStatusPane, resources.getString("processStatusTableTab.tip")); final Editor editor = new Editor(resources, m_editorModel, tabLabelFont); final FileTreeModel fileTreeModel = new FileTreeModel(m_editorModel); fileTreeModel.setRootDirectory( m_model.getProperties().getDistributionDirectory().getFile()); m_model.getProperties().addPropertyChangeListener( new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals( ConsoleProperties.DISTRIBUTION_DIRECTORY_PROPERTY)) { fileTreeModel.setRootDirectory( m_model.getProperties().getDistributionDirectory().getFile()); } } }); m_fileDistribution.addFilesChangedListener( fileTreeModel.new RefreshChangedDirectoriesListener()); m_fileTree = new FileTree(resources, getErrorHandler(), m_editorModel, new BufferTreeModel(m_editorModel), fileTreeModel); addAction(m_fileTree.getOpenFileAction()); addAction(m_fileTree.getSetScriptAction()); // Place JEditTextArea in JPanel so border background is correct. final JPanel editorPanel = new JPanel(); editorPanel.add(editor.getComponent()); final JToolBar editorToolBar = createToolBar("editor.toolbar"); editorToolBar.setFloatable(false); editorToolBar.setAlignmentX(Component.LEFT_ALIGNMENT); final JComponent fileTreeComponent = m_fileTree.getComponent(); fileTreeComponent.setAlignmentX(Component.LEFT_ALIGNMENT); fileTreeComponent.setPreferredSize(new Dimension(200, 100)); final JPanel editorControlPanel = new JPanel(); editorControlPanel.setLayout( new BoxLayout(editorControlPanel, BoxLayout.Y_AXIS)); editorControlPanel.setBorder(BorderFactory.createEmptyBorder()); editorControlPanel.add(editorToolBar); editorControlPanel.add(fileTreeComponent); final JSplitPane scriptPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, editorControlPanel, editorPanel); scriptPane.setOneTouchExpandable(true); scriptPane.setBorder(BorderFactory.createEmptyBorder()); tabbedPane.addTab(resources.getString("scriptTab.title"), resources.getImageIcon("scriptTab.image"), scriptPane, resources.getString("scriptTab.tip")); final JPanel contentPanel = new JPanel(new BorderLayout()); contentPanel.add(hackToFixLayout, BorderLayout.WEST); contentPanel.add(tabbedPane, BorderLayout.CENTER); // Create a panel to hold the tool bar and the test pane. final JPanel toolBarPanel = new JPanel(new BorderLayout()); toolBarPanel.add(createToolBar("main.toolbar"), BorderLayout.NORTH); toolBarPanel.add(contentPanel, BorderLayout.CENTER); m_frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); m_frame.addWindowListener(new WindowCloseAdapter()); final Container topLevelPane = m_frame.getContentPane(); topLevelPane.add(createMenuBar(), BorderLayout.NORTH); topLevelPane.add(toolBarPanel, BorderLayout.CENTER); final ImageIcon logoIcon = resources.getImageIcon("logo.image"); if (logoIcon != null) { final Image logoImage = logoIcon.getImage(); if (logoImage != null) { m_frame.setIconImage(logoImage); } } m_model.addModelListener(new SwingDispatchedModelListener(this)); update(); m_lookAndFeel.addListener( new LookAndFeel.ComponentListener(m_frame) { public void lookAndFeelChanged() { m_frame.setVisible(false); super.lookAndFeelChanged(); packAndSize(m_frame); m_frame.setVisible(true); } }); packAndSize(m_frame); resultsPane.setDividerLocation(resultsPane.getMaximumDividerLocation()); final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); m_frame.setLocation(screenSize.width / 2 - m_frame.getSize().width / 2, screenSize.height / 2 - m_frame.getSize().height / 2); m_frame.setVisible(true); }
7770 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7770/3b5ea0ecaf0f297f6d78a567e0ba54228a179f7c/ConsoleUI.java/buggy/src/net/grinder/console/swingui/ConsoleUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9657, 5370, 12, 1488, 938, 16, 10402, 4389, 3367, 1207, 3367, 16, 10402, 1387, 9003, 585, 9003, 13, 565, 1216, 9657, 503, 288, 565, 312, 67, 2284, 273, 938, 31, 565, 312, 67, 2567...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9657, 5370, 12, 1488, 938, 16, 10402, 4389, 3367, 1207, 3367, 16, 10402, 1387, 9003, 585, 9003, 13, 565, 1216, 9657, 503, 288, 565, 312, 67, 2284, 273, 938, 31, 565, 312, 67, 2567...
atomsToDraw.addElement(currentAtom);
if (!sharedAtoms.contains(currentAtom)) { atomsToDraw.addElement(currentAtom); }
private void placeBridgedRing(Ring ring, AtomContainer sharedAtoms, Point2d sharedAtomsCenter, Vector2d ringCenterVector, double bondLength ) { double radius = getNativeRingRadius(ring, bondLength); Point2d ringCenter = new Point2d(sharedAtomsCenter); ringCenterVector.normalize(); if (debug) System.out.println("placeFusedRing->: ringCenterVector.length()" + ringCenterVector.length()); ringCenterVector.scale(radius); ringCenter.add(ringCenterVector); Atom[] bridgeAtoms = getBridgeAtoms(sharedAtoms); Atom bondAtom1 = bridgeAtoms[0]; Atom bondAtom2 = bridgeAtoms[1]; Vector2d bondAtom1Vector = new Vector2d(bondAtom1.getPoint2D()); Vector2d bondAtom2Vector = new Vector2d(bondAtom2.getPoint2D()); Vector2d originRingCenterVector = new Vector2d(ringCenter); bondAtom1Vector.sub(originRingCenterVector); bondAtom2Vector.sub(originRingCenterVector); double occupiedAngle = bondAtom1Vector.angle(bondAtom2Vector); double remainingAngle = (2 * Math.PI) - occupiedAngle; double addAngle = remainingAngle / (ring.getRingSize() - sharedAtoms.getAtomCount() + 1); if (debug) System.out.println("placeFusedRing->occupiedAngle: " + Math.toDegrees(occupiedAngle)); if (debug) System.out.println("placeFusedRing->remainingAngle: " + Math.toDegrees(remainingAngle)); if (debug) System.out.println("placeFusedRing->addAngle: " + Math.toDegrees(addAngle)); Atom startAtom; double centerX = ringCenter.x; double centerY = ringCenter.y; double xDiff = bondAtom1.getX2D() - bondAtom2.getX2D(); double yDiff = bondAtom1.getY2D() - bondAtom2.getY2D(); double startAngle;; int direction = 1; // if bond is vertical if (xDiff == 0) { if (debug) System.out.println("placeFusedRing->Bond is vertical"); //starts with the lower Atom if (bondAtom1.getY2D() > bondAtom2.getY2D()) { startAtom = bondAtom1; } else { startAtom = bondAtom2; } //changes the drawing direction if (centerX < bondAtom1.getX2D()) { direction = 1; } else { direction = -1; } } // if bond is not vertical else { //starts with the left Atom if (bondAtom1.getX2D() > bondAtom2.getX2D()) { startAtom = bondAtom1; } else { startAtom = bondAtom2; } //changes the drawing direction if (centerY - bondAtom1.getY2D() > (centerX - bondAtom1.getX2D()) * yDiff / xDiff) { direction = 1; } else { direction = -1; } } startAngle = GeometryTools.getAngle(startAtom.getX2D() - ringCenter.x, startAtom.getY2D() - ringCenter.y); Atom currentAtom = startAtom; Bond currentBond = sharedAtoms.getBondAt(0); Vector atomsToDraw = new Vector(); for (int i = 0; i < ring.getBondCount() - 2; i++) { currentBond = ring.getNextBond(currentBond, currentAtom); currentAtom = currentBond.getConnectedAtom(currentAtom); atomsToDraw.addElement(currentAtom); } try { if (debug) System.out.println("placeFusedRing->startAtom is: " + molecule.getAtomNumber(startAtom)); } catch(Exception exc) { } if (debug) System.out.println("placeFusedRing->startAngle: " + Math.toDegrees(startAngle)); if (debug) System.out.println("placeFusedRing->addAngle: " + Math.toDegrees(addAngle)); addAngle = addAngle * direction; atomPlacer.populatePolygonCorners(atomsToDraw, ringCenter, startAngle, addAngle, radius); }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/34bc71f72cf2676165c2b4ab2ea57d0a6b7dc876/RingPlacer.java/buggy/org/openscience/cdk/layout/RingPlacer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 225, 918, 3166, 38, 1691, 2423, 10369, 12, 10369, 9221, 16, 7149, 2170, 5116, 14280, 16, 4686, 22, 72, 5116, 14280, 8449, 16, 5589, 22, 72, 9221, 8449, 5018, 16, 1645, 8427, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 918, 3166, 38, 1691, 2423, 10369, 12, 10369, 9221, 16, 7149, 2170, 5116, 14280, 16, 4686, 22, 72, 5116, 14280, 8449, 16, 5589, 22, 72, 9221, 8449, 5018, 16, 1645, 8427, ...
checkHTTPConfiguration("MyHTTP", "MyHTTP", 22, 2222, 22222, 222, 222222, "opennms.com", 212, "", "Home", "/index.html");
checkHTTPConfiguration("MyHTTP", "MyHTTP", 22, 2222, 22222, 222, 222222, "opennms.com", 212, "", "Home", "/index.html", "user", "pw", "");
public void testAddServiceHTTPNoResponseCode() throws Exception { expectUpdateEvent(); expectRrdInitialize(); m_provisioner.addServiceHTTP("MyHTTP", 22, 2222, 22222, 222, 222222, "opennms.com", 212, "", "Home", "/index.html", "user", "pw", ""); checkHTTPConfiguration("MyHTTP", "MyHTTP", 22, 2222, 22222, 222, 222222, "opennms.com", 212, "", "Home", "/index.html"); verifyEvents(); }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/a9bcca4081118fbb1274196564073fecb50b83b9/OpenNMSProvisionerTest.java/buggy/src/services/org/opennms/netmgt/xmlrpcd/OpenNMSProvisionerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 986, 1179, 3693, 2279, 1064, 1085, 1435, 1216, 1185, 288, 3639, 4489, 1891, 1133, 5621, 3639, 4489, 54, 13623, 7520, 5621, 3639, 312, 67, 17051, 264, 18, 1289, 1179, 3693, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 986, 1179, 3693, 2279, 1064, 1085, 1435, 1216, 1185, 288, 3639, 4489, 1891, 1133, 5621, 3639, 4489, 54, 13623, 7520, 5621, 3639, 312, 67, 17051, 264, 18, 1289, 1179, 3693, ...
as1.setDataSet( orthoValues1 ); as1.setTranslucent( true ); as1.getLineAttributes( ).setColor( ColorDefinitionImpl.PINK( ) ); as1.getLineAttributes( ).setThickness( 5 );
as1.setDataSet( orthoValues1 );; as1.getLineAttributes( ).setVisible( false );
public static final Chart createArea( ) { ChartWithAxes cwa3DArea = ChartWithAxesImpl.create( ); cwa3DArea.setDimension( ChartDimension.THREE_DIMENSIONAL_LITERAL ); // Title cwa3DArea.getBlock( ).setBackground( ColorDefinitionImpl.WHITE( ) ); cwa3DArea.getTitle( ).getLabel( ).getCaption( ).setValue( "3D Area Chart" );//$NON-NLS-1$ cwa3DArea.getTitle( ).setVisible( true ); // Legend Legend lg = cwa3DArea.getLegend( ); LineAttributes lia = lg.getOutline( ); lg.getText( ).getFont( ).setSize( 16 ); lia.setStyle( LineStyle.SOLID_LITERAL ); lg.getInsets( ).set( 10, 5, 0, 0 ); lg.getOutline( ).setVisible( false ); lg.setAnchor( Anchor.NORTH_LITERAL ); // X-Axis Axis xAxisPrimary = cwa3DArea.getPrimaryBaseAxes( )[0]; xAxisPrimary.setType( AxisType.TEXT_LITERAL ); xAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.BELOW_LITERAL ); xAxisPrimary.getMajorGrid( ) .setLineAttributes( LineAttributesImpl.create( ColorDefinitionImpl.BLUE( ), LineStyle.SOLID_LITERAL, 1 ) ); xAxisPrimary.getMinorGrid( ).getLineAttributes( ).setVisible( true ); xAxisPrimary.getOrigin( ).setType( IntersectionType.MIN_LITERAL ); // Y-Axis Axis yAxisPrimary = cwa3DArea.getPrimaryOrthogonalAxis( xAxisPrimary ); yAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.LEFT_LITERAL ); yAxisPrimary.getMajorGrid( ) .setLineAttributes( LineAttributesImpl.create( ColorDefinitionImpl.BLACK( ), LineStyle.SOLID_LITERAL, 1 ) ); yAxisPrimary.getMinorGrid( ).getLineAttributes( ).setVisible( true ); yAxisPrimary.setPercent( false ); // Z-Axis Axis zAxis = AxisImpl.create( Axis.ANCILLARY_BASE ); zAxis.setType( AxisType.TEXT_LITERAL ); zAxis.setLabelPosition( Position.BELOW_LITERAL ); zAxis.setTitlePosition( Position.BELOW_LITERAL ); zAxis.getMajorGrid( ).setTickStyle( TickStyle.BELOW_LITERAL ); zAxis.setOrientation( Orientation.HORIZONTAL_LITERAL ); xAxisPrimary.getAncillaryAxes( ).add( zAxis ); // Data Set TextDataSet categoryValues = TextDataSetImpl.create( new String[]{ "Jan.", "Feb.", "Mar.", "Apr", "May"} ); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$//$NON-NLS-5$ NumberDataSet orthoValues1 = NumberDataSetImpl.create( new double[]{ 14.32, -19.5, 8.38, 0.34, 9.22 } ); // X-Series Series seCategory = SeriesImpl.create( ); seCategory.setDataSet( categoryValues ); SeriesDefinition sdX = SeriesDefinitionImpl.create( ); sdX.getSeriesPalette( ).update( 0 ); xAxisPrimary.getSeriesDefinitions( ).add( sdX ); sdX.getSeries( ).add( seCategory ); // Y-Series AreaSeries as1 = (AreaSeries) AreaSeriesImpl.create( ); as1.setSeriesIdentifier( "Series 1" );//$NON-NLS-1$ as1.setDataSet( orthoValues1 ); as1.setTranslucent( true ); as1.getLineAttributes( ).setColor( ColorDefinitionImpl.PINK( ) ); as1.getLineAttributes( ).setThickness( 5 ); as1.getLabel( ).setVisible( true ); SeriesDefinition sdY = SeriesDefinitionImpl.create( ); sdY.getSeriesPalette( ).update( -1 ); yAxisPrimary.getSeriesDefinitions( ).add( sdY ); sdY.getSeries( ).add( as1 ); // Z-Series SeriesDefinition sdZ = SeriesDefinitionImpl.create( ); zAxis.getSeriesDefinitions( ).add( sdZ ); // Rotate the chart cwa3DArea.setRotation( Rotation3DImpl.create( new Angle3D[]{ Angle3DImpl.create( -10, 25, 0 ) } ) ); return cwa3DArea; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/87be376b194f799be46893d03147e84946c9d70b/Area.java/buggy/chart/org.eclipse.birt.chart.examples/src/org/eclipse/birt/chart/examples/view/models/Area.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 727, 14804, 752, 5484, 12, 262, 202, 95, 202, 202, 7984, 1190, 26494, 14098, 69, 23, 40, 5484, 273, 14804, 1190, 26494, 2828, 18, 2640, 12, 11272, 202, 202, 71, 91, 69, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 14804, 752, 5484, 12, 262, 202, 95, 202, 202, 7984, 1190, 26494, 14098, 69, 23, 40, 5484, 273, 14804, 1190, 26494, 2828, 18, 2640, 12, 11272, 202, 202, 71, 91, 69, ...
return componentMgr; }
return componentMgr; }
public static nsIComponentManager getComponentManager() { return componentMgr; }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/d20d6b37b44befd8d862bbde1bda4569bf065d57/Components.java/buggy/java/xpcom/java/classes/org/mozilla/xpcom/Components.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 3153, 45, 1841, 1318, 10322, 1318, 1435, 288, 202, 202, 2463, 1794, 9455, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 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, 225, 202, 482, 760, 3153, 45, 1841, 1318, 10322, 1318, 1435, 288, 202, 202, 2463, 1794, 9455, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
CalculatedStyle style = c.css.getStyle(block.getRealElement());
CalculatedStyle style = null; if (box.getContent() == null) { XRLog.render(Level.WARNING, "null content in BoxRenderer.paintBackground for " + box.getClass().getName()); } else { style = box.getContent().getStyle(); }
public void paintBackground(Context c, Box box) { Box block = box; // cache the background color getBackgroundColor(c, block); // get the css properties CalculatedStyle style = c.css.getStyle(block.getRealElement()); String back_image = style.getStringProperty("background-image"); block.repeat = style.getStringProperty("background-repeat"); block.attachment = style.getStringProperty("background-attachment"); // handle image positioning issues // need to update this to support vert and horz, not just vert if (style.hasProperty("background-position")) { Point pt = style.getBackgroundPosition(); block.background_position_horizontal = (int) pt.getX(); block.background_position_vertical = (int) pt.getY(); } // load the background image block.background_image = null; if (back_image != null && !"none".equals(back_image)) { try { block.background_image = ImageUtil.loadImage(c, back_image); } catch (Exception ex) { ex.printStackTrace(); u.p(ex); } /* * ImageIcon icon = new ImageIcon(back_image); * if(icon.getImageLoadStatus() == MediaTracker.COMPLETE) { * block.background_image = icon.getImage(); * } */ } // actually paint the background BackgroundPainter.paint(c, block); }
8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/BoxRenderer.java/buggy/src/java/org/xhtmlrenderer/render/BoxRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12574, 8199, 12, 1042, 276, 16, 8549, 3919, 13, 288, 3639, 8549, 1203, 273, 3919, 31, 3639, 368, 1247, 326, 5412, 2036, 3639, 336, 21699, 12, 71, 16, 1203, 1769, 3639, 368, 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, 1071, 918, 12574, 8199, 12, 1042, 276, 16, 8549, 3919, 13, 288, 3639, 8549, 1203, 273, 3919, 31, 3639, 368, 1247, 326, 5412, 2036, 3639, 336, 21699, 12, 71, 16, 1203, 1769, 3639, 368, 3...
public static void enableAllLogging() {
public void enableAllLogging() {
public static void enableAllLogging() { System.getProperties().put("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog"); System.getProperties().put("org.apache.commons.logging.simplelog.defaultlog", "trace"); final String prefix = "org.apache.commons.logging.simplelog.log."; System.getProperties().put(prefix+"org.apache.commons.httpclient.Authenticator", "info"); System.getProperties().put(prefix+"org.apache.commons.httpclient.Cookie", "info"); System.getProperties().put(prefix+"org.apache.commons.httpclient.HeaderElement", "info"); System.getProperties().put(prefix+"org.apache.commons.httpclient.HttpClient", "info"); System.getProperties().put(prefix+"org.apache.commons.httpclient.HttpConnection", "info"); System.getProperties().put(prefix+"org.apache.commons.httpclient.HttpMethod", "info"); System.getProperties().put(prefix+"org.apache.commons.httpclient.HttpParser", "info"); System.getProperties().put(prefix+"org.apache.commons.httpclient.HttpState", "info"); System.getProperties().put(prefix+"org.apache.commons.httpclient.ResponseInputStream", "info"); System.getProperties().put(prefix+"org.apache.commons.httpclient.cookie.CookieSpec", "info"); System.getProperties().put(prefix+"org.apache.commons.httpclient.methods.GetMethod", "info"); System.getProperties().put(prefix+"org.apache.commons.httpclient.HttpMethodBase", "info"); }
47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/783d471ff77551d375049ea8616139ee55dcc78f/MainTestSuite.java/buggy/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/MainTestSuite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4237, 1595, 7735, 1435, 288, 3639, 2332, 18, 588, 2297, 7675, 458, 2932, 3341, 18, 19211, 18, 6054, 87, 18, 11167, 18, 1343, 3113, 315, 3341, 18, 19211, 18, 6054, 87, 18, 111...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4237, 1595, 7735, 1435, 288, 3639, 2332, 18, 588, 2297, 7675, 458, 2932, 3341, 18, 19211, 18, 6054, 87, 18, 11167, 18, 1343, 3113, 315, 3341, 18, 19211, 18, 6054, 87, 18, 111...
match(input,56,FOLLOW_56_in_lhs_eval2638);
match(input,56,FOLLOW_56_in_lhs_eval2642);
public PatternDescr lhs_eval() throws RecognitionException { PatternDescr d; Token loc=null; String c = null; d = null; String text = ""; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:940:17: ( 'eval' loc= '(' c= paren_chunk2 ')' ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:940:17: 'eval' loc= '(' c= paren_chunk2 ')' { match(input,56,FOLLOW_56_in_lhs_eval2638); loc=(Token)input.LT(1); match(input,21,FOLLOW_21_in_lhs_eval2642); following.push(FOLLOW_paren_chunk2_in_lhs_eval2650); c=paren_chunk2(); following.pop(); match(input,23,FOLLOW_23_in_lhs_eval2654); checkTrailingSemicolon( c, offset(loc.getLine()) ); d = new EvalDescr( c ); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/e3fb9256ae6e5fcb8c78a2c3dbd47f678d9b1287/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6830, 16198, 8499, 67, 8622, 1435, 1216, 9539, 288, 6647, 6830, 16198, 302, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 514, 276, 273, 446, 31, 1171, 202, 202, 72, 273, 446, 31, 540...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6830, 16198, 8499, 67, 8622, 1435, 1216, 9539, 288, 6647, 6830, 16198, 302, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 514, 276, 273, 446, 31, 1171, 202, 202, 72, 273, 446, 31, 540...
public boolean getFeature (String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { Boolean value = (Boolean) flags.get (name); if (value != null) return value.booleanValue (); else try { return new JaxpParser ().getXMLReader ().getFeature (name); } catch (SAXNotRecognizedException e) { throw new SAXNotRecognizedException (name); } catch (SAXNotSupportedException e) { throw new SAXNotSupportedException (name); } catch (SAXException e) { throw new ParserConfigurationException ( e.getClass ().getName () + ": " + e.getMessage ()); } }
public boolean getFeature(String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { Boolean value = (Boolean) flags.get(name); if (value != null) { return value.booleanValue(); } else { try { return new JaxpParser().getXMLReader().getFeature(name); } catch (SAXNotRecognizedException e) { throw new SAXNotRecognizedException(name); } catch (SAXNotSupportedException e) { throw new SAXNotSupportedException(name); } catch (SAXException e) { throw new ParserConfigurationException(e.getClass().getName() + ": " + e.getMessage()); } } }
public boolean getFeature (String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { Boolean value = (Boolean) flags.get (name); if (value != null) return value.booleanValue (); else try { return new JaxpParser ().getXMLReader ().getFeature (name); } catch (SAXNotRecognizedException e) { throw new SAXNotRecognizedException (name); } catch (SAXNotSupportedException e) { throw new SAXNotSupportedException (name); } catch (SAXException e) { throw new ParserConfigurationException ( e.getClass ().getName () + ": " + e.getMessage ()); } }
56365 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56365/7fb7568e63c3fe14af521de4699cb37898923ca7/JAXPFactory.java/buggy/libjava/gnu/xml/aelfred2/JAXPFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 17961, 261, 780, 508, 13, 377, 1216, 202, 2678, 10737, 16, 202, 55, 2501, 1248, 5650, 9367, 503, 16, 202, 55, 2501, 25482, 565, 288, 202, 5507, 202, 1132, 273, 261, 5507, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 17961, 261, 780, 508, 13, 377, 1216, 202, 2678, 10737, 16, 202, 55, 2501, 1248, 5650, 9367, 503, 16, 202, 55, 2501, 25482, 565, 288, 202, 5507, 202, 1132, 273, 261, 5507, 13...
InputStream is = ConfigurationManager.class.getResourceAsStream( "/dspace.cfg"); properties = new Properties(); properties.load(is);
String configProperty = System.getProperty("dspace.configuration"); if (configProperty != null) { is = new FileInputStream(configProperty); } else { is = ConfigurationManager.class.getResourceAsStream( "/dspace.cfg"); } if (is==null) { log.fatal("Cannot find dspace.cfg"); System.exit(1); } else { properties = new Properties(); properties.load(is); }
private static void loadProperties() { if (properties != null) return; try { InputStream is = ConfigurationManager.class.getResourceAsStream( "/dspace.cfg"); properties = new Properties(); properties.load(is); } catch (IOException e) { // FIXME: Should be logged properly System.err.println("Can't load configuration: " + e); e.printStackTrace(); // FIXME: Maybe something more graceful here, but with the // configuration we can't do anything System.exit(1); } }
1868 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1868/79dfe618441fa781e22f0ff1e935c2b4cf6e2be2/ConfigurationManager.java/buggy/dspace/src/org/dspace/core/ConfigurationManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1262, 2297, 1435, 565, 288, 3639, 309, 261, 4738, 480, 446, 13, 327, 31, 5411, 775, 3639, 288, 5411, 5037, 353, 273, 4659, 1318, 18, 1106, 18, 588, 1420, 17052, 12, 7734...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1262, 2297, 1435, 565, 288, 3639, 309, 261, 4738, 480, 446, 13, 327, 31, 5411, 775, 3639, 288, 5411, 5037, 353, 273, 4659, 1318, 18, 1106, 18, 588, 1420, 17052, 12, 7734...
RolapMember[] cloneCurrentMembers = (RolapMember[]) this.currentMembers.clone(); return new RolapEvaluator(cube, connection, cloneCurrentMembers, this); }
RolapMember[] cloneCurrentMembers = (RolapMember[]) this.currentMembers.clone(); return new RolapEvaluator(cube, connection, cloneCurrentMembers, this); }
private final RolapEvaluator _push() { RolapMember[] cloneCurrentMembers = (RolapMember[]) this.currentMembers.clone(); return new RolapEvaluator(cube, connection, cloneCurrentMembers, this); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/RolapEvaluator.java/buggy/src/main/mondrian/rolap/RolapEvaluator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 11714, 438, 15876, 389, 6206, 1435, 288, 202, 202, 4984, 438, 4419, 8526, 3236, 3935, 6918, 273, 261, 4984, 438, 4419, 63, 5717, 333, 18, 2972, 6918, 18, 14056, 5621, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 11714, 438, 15876, 389, 6206, 1435, 288, 202, 202, 4984, 438, 4419, 8526, 3236, 3935, 6918, 273, 261, 4984, 438, 4419, 63, 5717, 333, 18, 2972, 6918, 18, 14056, 5621, 202,...
processEvent(AWTEvent event) { if (event instanceof ItemEvent) processItemEvent((ItemEvent)event); else super.processEvent(event); }
protected void processEvent(AWTEvent event) { if (event instanceof ItemEvent) processItemEvent((ItemEvent)event); else super.processEvent(event); }
processEvent(AWTEvent event){ if (event instanceof ItemEvent) processItemEvent((ItemEvent)event); else super.processEvent(event);}
1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/de1def922d61f2c8775ff796242c973408a67856/Choice.java/clean/libjava/classpath/java/awt/Choice.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1207, 1133, 12, 37, 8588, 1133, 871, 15329, 225, 309, 261, 2575, 1276, 4342, 1133, 13, 565, 1207, 1180, 1133, 12443, 1180, 1133, 13, 2575, 1769, 225, 469, 565, 2240, 18, 2567, 1133, 12, 2575, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 1133, 12, 37, 8588, 1133, 871, 15329, 225, 309, 261, 2575, 1276, 4342, 1133, 13, 565, 1207, 1180, 1133, 12443, 1180, 1133, 13, 2575, 1769, 225, 469, 565, 2240, 18, 2567, 1133, 12, 2575, ...
distance = machCodeOffset - MCSites[i]; if (distance >= 0) {
distance = machCodeOffset.sub(MCSites[i]); if (distance.sGE(Offset.zero())) {
public int locateGCPoint(int machCodeOffset, VM_Method method) { machCodeOffset = machCodeOffset - (1 << VM.LG_INSTRUCTION_WIDTH); // this assumes that machCodeOffset points // to "next" instruction eg bal type instruction if (VM.TraceStkMaps) { VM.sysWrite("VM_QuickReferenceMaps-locateGCPoint for machine code offset = "); VM.sysWrite(machCodeOffset); VM.sysWrite(" --- in method = "); VM.sysWrite(method.getName()); VM.sysWrite("\n"); } // Scan the list of machine code addresses to find the // closest site offset BEFORE the input machine code index ( offset in the code) int distance = 0; int index = 0; // get the first possible location for (int i = 0; i < mapCount; i++) { // get an initial non zero distance distance = machCodeOffset - MCSites[i]; if (distance >= 0) { index = i; break; } } // scan to find any better location ie closer to the site for(int i = index+1; i < mapCount; i++) { int dist = machCodeOffset- MCSites[i]; if (dist < 0) continue; if (dist <= distance) { index = i; distance = dist; } } if (VM.TraceStkMaps) { VM.sysWrite(" VM_QuickReferenceMaps-locateGCPoint located index = "); VM.sysWrite(index); VM.sysWrite(" byte = "); VM.sysWrite(referenceMaps[index]); VM.sysWrite( "\n"); if (index - 1 >= 0) { VM.sysWrite(" MCSites[index-1] = "); VM.sysWrite(machCodeOffset - MCSites[index-1]); VM.sysWrite("\n"); } VM.sysWrite(" MCSites[index ] = "); VM.sysWrite(machCodeOffset - MCSites[index ]); VM.sysWrite("\n"); if (index + 1 < MCSites.length) { VM.sysWrite(" MCSites[index+1] = "); VM.sysWrite(machCodeOffset - MCSites[index+1]); VM.sysWrite("\n"); } } // test for a site within a jsr subroutine if ((0x000000FF & (referenceMaps[index*bytesPerMap] & JSR_MASK)) == (0x000000FF & JSR_MASK)) { // test for jsr map index = -index; // indicate site within a jsr to caller if (VM.TraceStkMaps) { VM.sysWrite(" VM_QuickReferenceMaps-locateGCPoint jsr mapid = "); VM.sysWrite( -index); VM.sysWrite( "\n"); } } if (VM.TraceStkMaps) { VM.sysWrite(" VM_QuickReferenceMaps-locateGCPoint machine offset = "); VM.sysWrite( machCodeOffset); VM.sysWrite(" - return map index = "); VM.sysWrite( index); VM.sysWrite( "\n"); } return index; }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/9b22bffbb06319b08a93aed2a8f11de10ba3fecf/VM_QuickReferenceMaps.java/buggy/rvm/src/vm/compilers/quick/GCMap/VM_QuickReferenceMaps.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 10627, 15396, 2148, 12, 474, 25046, 1085, 2335, 16, 8251, 67, 1305, 707, 13, 225, 288, 565, 25046, 1085, 2335, 273, 25046, 1085, 2335, 300, 261, 21, 2296, 8251, 18, 48, 43, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 10627, 15396, 2148, 12, 474, 25046, 1085, 2335, 16, 8251, 67, 1305, 707, 13, 225, 288, 565, 25046, 1085, 2335, 273, 25046, 1085, 2335, 300, 261, 21, 2296, 8251, 18, 48, 43, 6...
logger.log(Level.WARNING, "persistencemanager.unabletoflush", e);
Log.warn(LocaleUtils.getLocalizedString("persistencemanager.unabletoflush", "gateway"), e);
public void run() { try { store(); } catch (Exception e) { logger.log(Level.WARNING, "persistencemanager.unabletoflush", e); e.printStackTrace(); } }
6161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6161/9965e1e02a95a3353ab10a1b613fc995ce3f666c/PersistenceManager.java/buggy/src/plugins/gateway/src/java/org/jivesoftware/wildfire/gateway/roster/PersistenceManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 775, 288, 7734, 1707, 5621, 5411, 289, 5411, 1044, 261, 503, 425, 13, 288, 7734, 1827, 18, 8935, 12, 3916, 1989, 18, 588, 2042, 1235, 780, 2932, 24854, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 775, 288, 7734, 1707, 5621, 5411, 289, 5411, 1044, 261, 503, 425, 13, 288, 7734, 1827, 18, 8935, 12, 3916, 1989, 18, 588, 2042, 1235, 780, 2932, 24854, ...
dataEngine.defineDataSource( adaptor.createDataSourceDesign( dataSource)); dataEngine.defineDataSet( adaptor.createDataSetDesign( dataSet));
dataEngine.defineDataSource( adaptor .createDataSourceDesign( dataSource ) ); dataEngine.defineDataSet( adaptor .createDataSetDesign( dataSet ) );
private Collection createDynamicSelectionChoices( String dataSetName, String labelStmt, String valueStmt, String dataType, int limit, boolean fixedOrder ) { ArrayList choices = new ArrayList( ); ReportDesignHandle report = ( ReportDesignHandle ) this.runnable .getDesignHandle( ); DataSetHandle dataSet = report.findDataSet( dataSetName ); if ( dataSet != null ) { try { DataEngine dataEngine = getDataEngine( ); // Define data source and data set DataSourceHandle dataSource = dataSet.getDataSource( ); ModelDteApiAdapter adaptor = new ModelDteApiAdapter( executionContext.getReportContext(), executionContext.getSharedScope() ); try { dataEngine.defineDataSource( adaptor.createDataSourceDesign( dataSource)); dataEngine.defineDataSet( adaptor.createDataSetDesign( dataSet)); } catch ( BirtException e ) { log.log( Level.SEVERE, e.getMessage( ) ); } ScriptExpression labelExpr = null; if ( labelStmt != null && labelStmt.length( ) > 0 ) { labelExpr = new ScriptExpression( labelStmt ); } ScriptExpression valueExpr = new ScriptExpression( valueStmt ); QueryDefinition queryDefn = new QueryDefinition( ); queryDefn.setDataSetName( dataSetName ); // add parameters if have any Iterator paramIter = dataSet.paramBindingsIterator( ); while ( paramIter.hasNext( ) ) { ParamBindingHandle binding = ( ParamBindingHandle ) paramIter .next( ); String paramName = binding.getParamName( ); String paramExpr = binding.getExpression( ); queryDefn.getInputParamBindings( ).add( new InputParameterBinding( paramName, new ScriptExpression( paramExpr ) ) ); } if ( labelExpr != null ) { queryDefn.getRowExpressions( ).add( labelExpr ); } queryDefn.getRowExpressions( ).add( valueExpr ); // Create a group to skip all of the duplicate values GroupDefinition groupDef = new GroupDefinition( ); groupDef.setKeyExpression( valueStmt ); queryDefn.addGroup( groupDef ); IPreparedQuery query = dataEngine.prepare( queryDefn ); IQueryResults result = query.execute( executionContext .getSharedScope( ) ); IResultIterator iter = result.getResultIterator( ); int count = 0; while ( iter.next( ) ) { String label = null; if ( labelExpr != null ) { label = iter.getString( labelExpr ); } Object value = iter.getValue( valueExpr ); choices.add( new SelectionChoice( label, convertToType( value, dataType ) ) ); count++; if ( ( limit != 0 ) && ( count >= limit ) ) { break; } iter.skipToEnd( 1 ); // Skip all of the duplicate values } } catch ( BirtException ex ) { ex.printStackTrace( ); } } if ( !fixedOrder ) Collections.sort( choices, new SelectionChoiceComparator( true ) ); return choices; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/c0422a1db84842d1e332663c3d4c7e2a8109aca8/GetParameterDefinitionTask.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/GetParameterDefinitionTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 2200, 752, 9791, 6233, 17442, 12, 514, 501, 11924, 16, 1082, 202, 780, 1433, 8952, 16, 514, 460, 8952, 16, 514, 8891, 16, 509, 1800, 16, 1082, 202, 6494, 5499, 2448, 262, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 2200, 752, 9791, 6233, 17442, 12, 514, 501, 11924, 16, 1082, 202, 780, 1433, 8952, 16, 514, 460, 8952, 16, 514, 8891, 16, 509, 1800, 16, 1082, 202, 6494, 5499, 2448, 262, 202...